@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250924.0 → 0.0.0-nightly-20250926.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
|
+
const _0x27a8ba=_0x1796;(function(_0x302a53,_0x4c5467){const _0x302f8b=_0x1796,_0x3b1161=_0x302a53();while(!![]){try{const _0x5992d3=parseInt(_0x302f8b(0xf6))/0x1+parseInt(_0x302f8b(0xee))/0x2+-parseInt(_0x302f8b(0x100))/0x3*(parseInt(_0x302f8b(0x119))/0x4)+parseInt(_0x302f8b(0xe4))/0x5*(-parseInt(_0x302f8b(0x135))/0x6)+parseInt(_0x302f8b(0xf9))/0x7+parseInt(_0x302f8b(0xe2))/0x8+-parseInt(_0x302f8b(0xf8))/0x9;if(_0x5992d3===_0x4c5467)break;else _0x3b1161['push'](_0x3b1161['shift']());}catch(_0xee2f5){_0x3b1161['push'](_0x3b1161['shift']());}}}(_0x5b86,0x62026));import{Plugin as _0x104b3d}from'ckeditor5/src/core.js';import{Dialog as _0x13f858}from'ckeditor5/src/ui.js';function _0x1796(_0x177f41,_0x484893){const _0x5b86d1=_0x5b86();return _0x1796=function(_0x1796a3,_0x479960){_0x1796a3=_0x1796a3-0xe2;let _0x1f3652=_0x5b86d1[_0x1796a3];return _0x1f3652;},_0x1796(_0x177f41,_0x484893);}function _0x5b86(){const _0x2913bc=['remove','removeAttribute','_configElement','uploader-','imageInline','ctxElement','editing','uc-upload-ctx-provider','uploadcare','1270730FtWTEK','schema','\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','render','config','imageBlock','uploadcareImageId','getAttribute','347365rLqSqE','PictureEditing','10711557eCjWIm','4387726YRcSgu','true','input[uploadcare-file-input]','uploadcare.pubkey','view','body','conversion','1249485KDKiIk','downcast','uploadcare.uploader','data-uc-image-id','_initConversion','_initSchema','_initImageProcessingIndicator','upcast','#uc-icon-arrow-down','_initCtx','_initConfig','extend','editor','isPremiumPlugin','requires','closeMax','contentLanguage','get','afterInit','selection','execute','uc-config','destroy','configElement','locale','4tMnbEX','model','replaceImageSource','init','ucContextId','map','document','commands','cleanupImage','_ctxElement','join','href','isOfficialPlugin','pluginName','fromCharCode','elementToAttribute','UploadcareEditing','uploadcareImageReplace','listenTo','for','add','querySelector','isRegistered','attributeToAttribute','insertImage','appendChild','once','getSelectedElement','36aaPlZQ','3436256hqCujN','iconHrefResolver','25805dtpOmC'];_0x5b86=function(){return _0x2913bc;};return _0x5b86();}import{createElement as _0x1eea02,global as _0x4884ca,uid as _0x452e90}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x57cd3a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4fb8c0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x46b6db}from'./utils/editingutils.js';export class UploadcareEditing extends _0x104b3d{[_0x27a8ba(0xe7)]=null;[_0x27a8ba(0x122)]=null;static get[_0x27a8ba(0x126)](){const _0x198bad=_0x27a8ba;return _0x198bad(0x129);}static get[_0x27a8ba(0x10e)](){const _0x4a8298=_0x27a8ba;return[_0x4a8298(0xf7),_0x4fb8c0,_0x13f858];}static get[_0x27a8ba(0x125)](){return!0x0;}static get[_0x27a8ba(0x10d)](){return!0x0;}[_0x27a8ba(0x11d)];get[_0x27a8ba(0x117)](){const _0x441cec=_0x27a8ba;return this[_0x441cec(0xe7)];}get[_0x27a8ba(0xea)](){const _0x4aaa9d=_0x27a8ba;return this[_0x4aaa9d(0x122)];}constructor(_0x467adf){const _0x5a4a95=_0x27a8ba;super(_0x467adf),this[_0x5a4a95(0x11d)]=_0x452e90();}[_0x27a8ba(0x11c)](){const _0x1763fc=_0x27a8ba,_0x491013=this[_0x1763fc(0x10c)];_0x491013[_0x1763fc(0x120)][_0x1763fc(0x12d)](_0x1763fc(0xed),new _0x57cd3a(_0x491013));}[_0x27a8ba(0x112)](){const _0x10c01e=_0x27a8ba;this[_0x10c01e(0x105)](),this[_0x10c01e(0x104)](),this[_0x10c01e(0x10a)](),this[_0x10c01e(0x109)](),this[_0x10c01e(0x106)](),this[_0x10c01e(0x12b)](this[_0x10c01e(0x10c)],_0x10c01e(0x116),()=>{const _0x161797=_0x10c01e;this[_0x161797(0xe7)]&&(this[_0x161797(0xe7)][_0x161797(0xe5)](),this[_0x161797(0xe7)]=null),this[_0x161797(0x122)]&&(this[_0x161797(0x122)][_0x161797(0xe5)](),this[_0x161797(0x122)]=null);const _0x52d9f0=_0x4884ca[_0x161797(0x11f)][_0x161797(0x12e)](_0x161797(0xfb));_0x52d9f0&&_0x52d9f0[_0x161797(0xe5)]();}),async function(_0x392d7b){const _0x5d4b71=_0x460bd6([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]),_0x5541cc=0x3d8d0df,_0x53428d=0x3dfa4a7^_0x5541cc,_0x3e34ee=window[_0x460bd6([0x44,0x61,0x74,0x65])][_0x460bd6([0x6e,0x6f,0x77])](),_0x56b7df=_0x392d7b[_0x460bd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfe5831=new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372243=>{_0x56b7df[_0x460bd6([0x6f,0x6e,0x63,0x65])](_0x460bd6([0x72,0x65,0x61,0x64,0x79]),_0x372243);}),_0x1bcac1={[_0x460bd6([0x6b,0x74,0x79])]:_0x460bd6([0x45,0x43]),[_0x460bd6([0x75,0x73,0x65])]:_0x460bd6([0x73,0x69,0x67]),[_0x460bd6([0x63,0x72,0x76])]:_0x460bd6([0x50,0x2d,0x32,0x35,0x36]),[_0x460bd6([0x78])]:_0x460bd6([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]),[_0x460bd6([0x79])]:_0x460bd6([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]),[_0x460bd6([0x61,0x6c,0x67])]:_0x460bd6([0x45,0x53,0x32,0x35,0x36])},_0x612a4f=_0x56b7df[_0x460bd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x460bd6([0x67,0x65,0x74])](_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bfbd5(){let _0x3ee9a5,_0x117e89=null,_0x4aedb2=null;try{if(_0x612a4f==_0x460bd6([0x47,0x50,0x4c]))return _0x460bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ee9a5=_0x1bb226(),!_0x3ee9a5)return _0x460bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ee9a5[_0x460bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4aedb2=_0x273084(_0x3ee9a5[_0x460bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ee9a5[_0x460bd6([0x6a,0x74,0x69])])),await _0x4f6b81()?_0x580407()?_0x542b8b()?_0x460bd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33c7ef()?(_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x460bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x117e89=_0x4c217b(_0x460bd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x460bd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x117e89=_0x4c217b(_0x460bd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54dc84()):_0x460bd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x460bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x460bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x460bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x542b8b(){const _0x40f66f=[_0x460bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x460bd6([0x74,0x72,0x69,0x61,0x6c])][_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e34ee/0x3e8:0xe10*_0x53428d;return _0x3ee9a5[_0x460bd6([0x65,0x78,0x70])]<_0x40f66f;}function _0x580407(){const _0x49d1ab=_0x3ee9a5[_0x460bd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49d1ab&&(!!_0x49d1ab[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460bd6([0x2a]))||!!_0x49d1ab[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460bd6([0x55,0x50,0x4c,0x43])));}function _0x33c7ef(){const _0xccf7c3=_0x1796,_0x45c173=_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45c173||0x0==_0x45c173[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d88b2}=new URL(window[_0x460bd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xccf7c3(0x124)]);if(_0x45c173[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d88b2))return!0x0;const _0x193667=_0x5d88b2[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e]));return _0x45c173[_0x460bd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x591ef7=>_0x591ef7[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460bd6([0x2a])))[_0x460bd6([0x6d,0x61,0x70])](_0x515b76=>_0x515b76[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e])))[_0x460bd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55b4ca=>_0x55b4ca[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x193667[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x460bd6([0x6d,0x61,0x70])](_0x5f202d=>Array(_0x193667[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f202d[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x460bd6([0x66,0x69,0x6c,0x6c])](_0x5f202d[0x0]===_0x460bd6([0x2a])?_0x460bd6([0x2a]):'')[_0x460bd6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f202d))[_0x460bd6([0x73,0x6f,0x6d,0x65])](_0x51c6ed=>_0x193667[_0x460bd6([0x65,0x76,0x65,0x72,0x79])]((_0x43cf2f,_0x16e096)=>_0x51c6ed[_0x16e096]===_0x43cf2f||_0x51c6ed[_0x16e096]===_0x460bd6([0x2a])));}function _0x54dc84(){return _0x117e89&&_0x4aedb2?new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e0fa8,_0x11014a)=>{_0x117e89[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x5e0fa8,_0x11014a),_0x4aedb2[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x4eb97b=>{_0x4eb97b!=_0x460bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x5e0fa8(_0x4eb97b);},_0x11014a);}):_0x117e89||_0x4aedb2||_0x460bd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x273084(_0x50b939,_0x22850c){return new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17891d=>{if(_0x45ec4f())return _0x17891d(_0x460bd6([0x56,0x61,0x6c,0x69,0x64]));_0x3790d6(),_0x56b7df[_0x460bd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x460bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d71f7=!0x1;const _0x2c96ea=_0x452e90();function _0x9e8922(_0x57762a){return!!_0x57762a&&(typeof _0x57762a===_0x460bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57762a===_0x460bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57762a[_0x460bd6([0x74,0x68,0x65,0x6e])]===_0x460bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57762a[_0x460bd6([0x63,0x61,0x74,0x63,0x68])]===_0x460bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e0c7f(_0x339cf9){_0x144c03(_0x339cf9)[_0x460bd6([0x74,0x68,0x65,0x6e])](_0xc1a27=>{if(!_0xc1a27||_0xc1a27[_0x460bd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x460bd6([0x6f,0x6b]))return _0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e3da1(_0x4d4d77(_0x2c96ea+_0x22850c))!=_0xc1a27[_0x460bd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x460bd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x1ef6d4=>(_0x40c81a(),_0x1ef6d4),()=>{const _0x3b35f2=_0x12c507();return null==_0x3b35f2?(_0x40c81a(),_0x460bd6([0x56,0x61,0x6c,0x69,0x64])):_0x460bd6(_0x3e34ee-_0x3b35f2>(0x27d454df^_0x5541cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x17891d)[_0x460bd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17891d(_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27803d=0x3ee3e5f^_0x5541cc;function _0x40c81a(){const _0x310a99=_0x460bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3da1(_0x4d4d77(_0x50b939)),_0x24a5fc=_0x5109ba(_0x4e3da1(window[_0x460bd6([0x4d,0x61,0x74,0x68])][_0x460bd6([0x63,0x65,0x69,0x6c])](_0x3e34ee/_0x27803d)));window[_0x460bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x460bd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x310a99,_0x24a5fc);}function _0x12c507(){const _0x26b0b5=_0x460bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3da1(_0x4d4d77(_0x50b939)),_0x540f38=window[_0x460bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x460bd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26b0b5);return _0x540f38?window[_0x460bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5109ba(_0x540f38),0x10)*_0x27803d:null;}function _0x144c03(_0x1e89ef){return new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37d450,_0x49568c)=>{_0x1e89ef[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x37d450,_0x49568c),window[_0x460bd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49568c,0x3d9041f^_0x5541cc);});}}_0x56b7df[_0x460bd6([0x6f,0x6e])](_0x460bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfe2392,_0x4e592b)=>{if(_0x4e592b[0x0]!=_0x50b939)return _0x17891d(_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e592b[0x1]={..._0x4e592b[0x1],[_0x460bd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c96ea};},{[_0x460bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x460bd6([0x68,0x69,0x67,0x68])}),_0x56b7df[_0x460bd6([0x6f,0x6e])](_0x460bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x271027=>{_0x9e8922(_0x271027[_0x460bd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d71f7=!0x0,_0x2e0c7f(_0x271027[_0x460bd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x460bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x460bd6([0x6c,0x6f,0x77])}),_0xfe5831[_0x460bd6([0x74,0x68,0x65,0x6e])](()=>{_0x2d71f7||_0x17891d(_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45ec4f(){return _0x56b7df[_0x460bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x460bd6([0x76,0x69,0x65,0x77])][_0x460bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x460bd6([0x61,0x75,0x74,0x6f]);}function _0x3790d6(){_0x56b7df[_0x460bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x460bd6([0x76,0x69,0x65,0x77])][_0x460bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x460bd6([0x61,0x75,0x74,0x6f]);}}function _0x4c217b(_0x2c48aa){const _0x440632=[new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c662f=>setTimeout(_0x1c662f,0x3d1ee13^_0x5541cc)),_0xfe5831[_0x460bd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b2b20=>{let _0x2cc87f=0x0;_0x56b7df[_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x460bd6([0x6f,0x6e])](_0x460bd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4101d8,_0x11d956)=>{_0x11d956[0x0][_0x460bd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2cc87f++,_0x2cc87f==(0x3d8d127^_0x5541cc)&&(_0x4b2b20(),_0x4101d8[_0x460bd6([0x6f,0x66,0x66])]());});}))];return window[_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x460bd6([0x72,0x61,0x63,0x65])](_0x440632)[_0x460bd6([0x74,0x68,0x65,0x6e])](()=>_0x2c48aa);}async function _0x58b3f2(){await _0xfe5831,_0x56b7df[_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x460bd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ec7d8,_0x56b7df[_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x460bd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ec7d8,_0x56b7df[_0x460bd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59ea30(_0x2a5936){const _0xc33989=_0x2c45db();_0x56b7df[_0xc33989]=_0x460bd6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a5936,_0x2a5936!=_0x460bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x58b3f2();}function _0x2c45db(){const _0x299ab0=window[_0x460bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x460bd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x460bd6([0x6e,0x6f,0x77])]())[_0x460bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x460bd6([0x2e]),'');let _0xe35f26=_0x460bd6([0x52]);for(let _0x3f026c=0x0;_0x3f026c<_0x299ab0[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f026c+=0x2){let _0xbc13a3=window[_0x460bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x299ab0[_0x460bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f026c,_0x3f026c+0x2));_0xbc13a3>=_0x5d4b71[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbc13a3-=_0x5d4b71[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe35f26+=_0x5d4b71[_0xbc13a3];}return _0xe35f26;}function _0x1bb226(){const _0x3288bc=_0x612a4f[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e]));if(0x3!=_0x3288bc[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b3577(_0x3288bc[0x1]);function _0x1b3577(_0x4dc3ec){const _0x57f143=_0x1ab173(_0x4dc3ec);return _0x57f143&&_0x3ddd14()?_0x57f143:null;function _0x3ddd14(){const _0x40d94c=_0x57f143[_0x460bd6([0x6a,0x74,0x69])],_0x253700=window[_0x460bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40d94c[_0x460bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40d94c[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf8f4f={..._0x57f143,[_0x460bd6([0x6a,0x74,0x69])]:_0x40d94c[_0x460bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40d94c[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf8f4f[_0x460bd6([0x76,0x63])],_0x4d4d77(_0xf8f4f)==_0x253700;}}}async function _0x4f6b81(){let _0x23caaa=!0x0;try{const _0x22499b=_0x612a4f[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e])),[_0x53beaa,_0x3a9b8c,_0x5d826b]=_0x22499b;return _0x46d82a(_0x53beaa),await _0x23d08a(_0x53beaa,_0x3a9b8c,_0x5d826b),_0x23caaa;}catch{return!0x1;}function _0x46d82a(_0x3cba59){const _0x55aed2=_0x1ab173(_0x3cba59);_0x55aed2&&_0x55aed2[_0x460bd6([0x61,0x6c,0x67])]==_0x460bd6([0x45,0x53,0x32,0x35,0x36])||(_0x23caaa=!0x1);}async function _0x23d08a(_0x5cb670,_0x128472,_0x5c60c5){const _0x151f3f=window[_0x460bd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x460bd6([0x66,0x72,0x6f,0x6d])](_0x1c7dc2(_0x5c60c5),_0x217a87=>_0x217a87[_0x460bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2552fb=new window[(_0x460bd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x460bd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cb670+_0x460bd6([0x2e])+_0x128472),_0x5a54ce=window[_0x460bd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x460bd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a54ce)return;const _0x417027=await _0x5a54ce[_0x460bd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x460bd6([0x6a,0x77,0x6b]),_0x1bcac1,{[_0x460bd6([0x6e,0x61,0x6d,0x65])]:_0x460bd6([0x45,0x43,0x44,0x53,0x41]),[_0x460bd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x460bd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x460bd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a54ce[_0x460bd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x460bd6([0x6e,0x61,0x6d,0x65])]:_0x460bd6([0x45,0x43,0x44,0x53,0x41]),[_0x460bd6([0x68,0x61,0x73,0x68])]:{[_0x460bd6([0x6e,0x61,0x6d,0x65])]:_0x460bd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x417027,_0x151f3f,_0x2552fb)||(_0x23caaa=!0x1);}}function _0x1ab173(_0xb54b2f){return _0xb54b2f[_0x460bd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x460bd6([0x65,0x79]))?JSON[_0x460bd6([0x70,0x61,0x72,0x73,0x65])](_0x1c7dc2(_0xb54b2f)):null;}function _0x1c7dc2(_0x8834db){return window[_0x460bd6([0x61,0x74,0x6f,0x62])](_0x8834db[_0x460bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x460bd6([0x2b]))[_0x460bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x460bd6([0x2f])));}function _0x4d4d77(_0x2f9faa){let _0x3271bf=0x1505;function _0x1b9555(_0x31f6e4){for(let _0x571aba=0x0;_0x571aba<_0x31f6e4[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x571aba++){const _0x13c446=_0x31f6e4[_0x460bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x571aba);_0x3271bf=(_0x3271bf<<0x5)+_0x3271bf+_0x13c446,_0x3271bf&=_0x3271bf;}}function _0x2ddf1e(_0xe67e12){Array[_0x460bd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe67e12)?_0xe67e12[_0x460bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ddf1e):_0xe67e12&&typeof _0xe67e12==_0x460bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x460bd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe67e12)[_0x460bd6([0x73,0x6f,0x72,0x74])]()[_0x460bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5dcb5d,_0x25b8d6])=>{_0x1b9555(_0x5dcb5d),_0x2ddf1e(_0x25b8d6);}):_0x1b9555(window[_0x460bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe67e12));}return _0x2ddf1e(_0x2f9faa),_0x3271bf>>>0x0;}function _0x4e3da1(_0x150166){return _0x150166[_0x460bd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x460bd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x460bd6([0x30]));}function _0x5109ba(_0xb4a42c){return _0xb4a42c[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x460bd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x460bd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ec7d8(){}function _0x460bd6(_0x504ad9){const _0x4989cb=_0x1796;return _0x504ad9[_0x4989cb(0x11e)](_0x397336=>String[_0x4989cb(0x127)](_0x397336))[_0x4989cb(0x123)]('');}_0x59ea30(await _0x2bfbd5());}(this);}[_0x27a8ba(0x105)](){const _0x55ca38=_0x27a8ba,_0x44444a=this[_0x55ca38(0x10c)][_0x55ca38(0x11a)][_0x55ca38(0xef)];_0x44444a[_0x55ca38(0x12f)](_0x55ca38(0xf3))&&_0x44444a[_0x55ca38(0x10b)](_0x55ca38(0xf3),{'allowAttributes':[_0x55ca38(0xf4)]}),_0x44444a[_0x55ca38(0x12f)](_0x55ca38(0xe9))&&_0x44444a[_0x55ca38(0x10b)](_0x55ca38(0xe9),{'allowAttributes':[_0x55ca38(0xf4)]});}[_0x27a8ba(0x104)](){const _0x112334=_0x27a8ba,_0x3e436e=this[_0x112334(0x10c)];_0x3e436e[_0x112334(0xff)][_0x112334(0x12c)](_0x112334(0x101))[_0x112334(0x130)]({'model':_0x112334(0xf4),'view':_0x112334(0x103)}),_0x3e436e[_0x112334(0xff)][_0x112334(0x12c)](_0x112334(0x107))[_0x112334(0x128)]({'model':{'key':_0x112334(0xf4),'value':_0x1f2552=>_0x1f2552[_0x112334(0xf5)](_0x112334(0x103))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x488df8=_0x3e436e[_0x112334(0x120)][_0x112334(0x111)](_0x112334(0x11b));_0x488df8&&this[_0x112334(0x12b)](_0x488df8,_0x112334(0x121),(_0x3148d5,[_0x58efbc,_0x1ce089])=>{const _0x5e936d=_0x112334;_0x58efbc[_0x5e936d(0xe6)](_0x5e936d(0xf4),_0x1ce089);});}[_0x27a8ba(0x10a)](){const _0x12fcb4=_0x27a8ba,_0x2ffa37=this[_0x12fcb4(0x10c)][_0x12fcb4(0xf2)][_0x12fcb4(0x111)](_0x12fcb4(0x102))||{},_0x425a08=this[_0x12fcb4(0x10c)][_0x12fcb4(0xf2)][_0x12fcb4(0x111)](_0x12fcb4(0xfc))||'';this[_0x12fcb4(0xe7)]=_0x1eea02(_0x4884ca[_0x12fcb4(0x11f)],_0x12fcb4(0x115),{..._0x2ffa37,'pubkey':_0x425a08,'ctx-name':_0x12fcb4(0xe8)+this[_0x12fcb4(0x11d)],'sourceList':'','imgOnly':_0x12fcb4(0xfa),'removeCopyright':_0x12fcb4(0xfa),'localeName':this[_0x12fcb4(0x10c)][_0x12fcb4(0x118)][_0x12fcb4(0x110)],'externalSourcesEmbedCss':_0x12fcb4(0xf0)}),this[_0x12fcb4(0xe7)][_0x12fcb4(0xe3)]=_0x5c2e51=>{const _0x192c26=_0x12fcb4;if(_0x192c26(0x10f)==_0x5c2e51)return _0x192c26(0x108);},_0x4884ca[_0x12fcb4(0x11f)][_0x12fcb4(0xfe)][_0x12fcb4(0x132)](this[_0x12fcb4(0xe7)]);}[_0x27a8ba(0x109)](){const _0x398d0a=_0x27a8ba;this[_0x398d0a(0x122)]=_0x1eea02(_0x4884ca[_0x398d0a(0x11f)],_0x398d0a(0xec),{'ctx-name':_0x398d0a(0xe8)+this[_0x398d0a(0x11d)]}),_0x4884ca[_0x398d0a(0x11f)][_0x398d0a(0xfe)][_0x398d0a(0x132)](this[_0x398d0a(0x122)]);}[_0x27a8ba(0x106)](){const _0x5e5d3a=_0x27a8ba,_0x23387b=this[_0x5e5d3a(0x10c)][_0x5e5d3a(0x120)][_0x5e5d3a(0x111)](_0x5e5d3a(0x131));_0x23387b&&this[_0x5e5d3a(0x12b)](_0x23387b,_0x5e5d3a(0x114),()=>{const _0x25ddfd=_0x5e5d3a,_0x3b2ee6=this[_0x25ddfd(0x10c)][_0x25ddfd(0x11a)][_0x25ddfd(0x11f)][_0x25ddfd(0x113)][_0x25ddfd(0x134)]();_0x3b2ee6&&_0x3b2ee6[_0x25ddfd(0xf5)](_0x25ddfd(0xf4))&&this[_0x25ddfd(0x10c)][_0x25ddfd(0xeb)][_0x25ddfd(0xfd)][_0x25ddfd(0x133)](_0x25ddfd(0xf1),()=>{const _0x42b1d7=_0x25ddfd;_0x46b6db(this[_0x42b1d7(0x10c)],_0x3b2ee6);});});const _0x4348de=this[_0x5e5d3a(0x10c)][_0x5e5d3a(0x120)][_0x5e5d3a(0x111)](_0x5e5d3a(0x12a));_0x4348de&&this[_0x5e5d3a(0x12b)](_0x4348de,_0x5e5d3a(0x114),()=>{const _0x37a56c=_0x5e5d3a,_0xee3853=this[_0x37a56c(0x10c)][_0x37a56c(0x11a)][_0x37a56c(0x11f)][_0x37a56c(0x113)][_0x37a56c(0x134)]();_0xee3853&&_0xee3853[_0x37a56c(0xf5)](_0x37a56c(0xf4))&&this[_0x37a56c(0x10c)][_0x37a56c(0xeb)][_0x37a56c(0xfd)][_0x37a56c(0x133)](_0x37a56c(0xf1),()=>{const _0x258db4=_0x37a56c;_0x46b6db(this[_0x258db4(0x10c)],_0xee3853);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x365b2c,ObservableMixin as _0x12b7d4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x785c17}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x48211e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x8f80b5}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x501aee}from'../../utils/uploadutils.js';import{getImageUrls as _0x1f6f1,getImageDimension as _0x1e9a81}from'../../utils/editingutils.js';import{isAncestor as _0x59e05a}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x12b7d4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x779412,_0x33c22d,_0x974584){super(),this['_editor']=_0x779412,this['_dialog']=_0x33c22d,this['_imageElement']=_0x974584,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 _0xa59dce=this['_imageElement'],_0x5a2cc8=_0xa59dce['getAttribute']('uploadcareImageId'),_0x1a59fc=_0xa59dce['getAttribute']('src');if(_0x5a2cc8)await this['_loadImageInfo'](_0x5a2cc8,_0x1a59fc);else{if(this['_imageCache']['has'](_0x1a59fc)){const _0x3d22ab=this['_imageCache']['get'](_0x1a59fc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d22ab['url'],this['imageDimension']=_0x3d22ab['dimension'],this['imageId']=_0x3d22ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x60c700}=this['_editor'],t=_0x60c700['t'],_0x57bcdb=new _0x8f80b5(_0x60c700,this['imageStatus'],this['_attributes']);_0x57bcdb['bind']('status')['to'](this,'imageStatus'),_0x57bcdb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x57bcdb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x57bcdb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x57bcdb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x48211e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x57bcdb,'position':_0x785c17['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x57bcdb['focus']();},'onHide':()=>{_0x57bcdb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa23f16=>!_0x59e05a(_0xa23f16,_0x57bcdb['element'])}});}['_loadImageInfo'](_0x567cb6,_0x42a54d){return _0x501aee['getInfo'](_0x567cb6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x178a94=>{const {width:_0x46112d,height:_0x1840bd}=_0x178a94['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42a54d,this['imageDimension']={'width':_0x46112d,'height':_0x1840bd},this['imageId']=_0x567cb6;})['catch'](_0xbbfc34=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xbbfc34['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x83fa49,_0x1d38b9){return this['_getImageAsFile'](_0x83fa49)['then'](_0x18af6a=>_0x501aee['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':_0x1d38b9['signal'],'file':_0x18af6a,'onProgress':_0x2835ca=>{_0x2835ca&&_0x2835ca['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2835ca['value']));}}))['then'](_0x51cb98=>{const {width:_0x564260,height:_0x2439e1}=_0x51cb98['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51cb98['cdnUrl'],this['imageDimension']={'width':_0x564260,'height':_0x2439e1},this['imageId']=_0x51cb98['uuid'],this['imageUploadProgress']=null;const _0x2b1c8d=_0x83fa49['getAttribute']('src');this['_imageCache']['set'](_0x2b1c8d,{'id':_0x51cb98['uuid'],'url':_0x51cb98['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x15d381=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15d381['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x45b903,_0x14ac62){_0x45b903['on']('apply',(_0x2ed790,_0x216216)=>{this['_replaceImage'](_0x14ac62,_0x216216['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x45b903['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x45b903['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x48c376,_0x5c5b4b,_0x447a0d){const _0x2b30df=this['_editor'],{width:_0x26aed7,height:_0x3cd975}=_0x1e9a81(_0x5c5b4b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c20a1,imageSources:_0x5586f3}=_0x1f6f1(_0x5c5b4b,_0x26aed7);_0x2b30df['model']['change'](_0x40ee34=>{if('$graveyard'===_0x48c376['root']['rootName']){_0x2b30df['execute']('insertImage',{'imageType':_0x48c376['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x48c376['getAttributes']()),'uploadcareImageId':_0x447a0d,'src':_0x2c20a1,'sources':_0x5586f3,'width':_0x26aed7,'height':_0x3cd975}});const _0xbba9b9=_0x48c376['getChildren']();_0x48c376=_0x2b30df['model']['document']['selection']['getSelectedElement']();for(const _0x3bcf24 of _0xbba9b9)_0x40ee34['append'](_0x40ee34['cloneElement'](_0x3bcf24),_0x48c376);}else _0x40ee34['setSelection'](_0x48c376,'on'),_0x2b30df['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x48c376['getAttributes']()),'uploadcareImageId':_0x447a0d,'src':_0x2c20a1,'sources':_0x5586f3,'width':_0x26aed7,'height':_0x3cd975},_0x48c376);_0x40ee34['setSelection'](_0x48c376,'on');});}async['_getImageAsFile'](_0x10597d){const _0x5973a8=_0x365b2c['window'],_0x269279=_0x365b2c['document']['location']['href'],_0xd0c2a7=new _0x5973a8['URL'](_0x10597d['getAttribute']('src'),_0x269279);if('data:'===_0xd0c2a7['protocol']){const _0x83a578=_0xd0c2a7['href']['split'](','),_0x4c68b3=_0x83a578[0x0]['match'](/:(.*?);/)[0x1],_0x28b916=_0x4c68b3['split']('/')[0x1],_0x5a5511=_0x5973a8['atob'](_0x83a578[_0x83a578['length']-0x1]);let _0x5b98ac=_0x5a5511['length'];const _0x1e662a=new _0x5973a8['Uint8Array'](_0x5b98ac);for(;_0x5b98ac--;)_0x1e662a[_0x5b98ac]=_0x5a5511['charCodeAt'](_0x5b98ac);return new _0x5973a8['File']([_0x1e662a],'image.'+_0x28b916,{'type':_0x4c68b3});}const _0x1af819=_0xd0c2a7['href']['split']('/'),_0x21930c=_0x1af819[_0x1af819['length']-0x1],_0x3cc96c=_0x21930c['split']('.')[0x1];return _0x5973a8['fetch'](_0xd0c2a7['href'])['then'](_0x32ef71=>_0x32ef71['clone']()['blob']())['then'](_0xcdc7f3=>new _0x5973a8['File']([_0xcdc7f3],_0x21930c,{'type':'image/'+_0x3cc96c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x349b(_0x3315be,_0x18fef9){const _0x3adf1b=_0x3adf();return _0x349b=function(_0x349bb9,_0x454bd2){_0x349bb9=_0x349bb9-0xc7;let _0x22b386=_0x3adf1b[_0x349bb9];return _0x22b386;},_0x349b(_0x3315be,_0x18fef9);}(function(_0x5e361c,_0x456d58){const _0x2b6270=_0x349b,_0x25fda8=_0x5e361c();while(!![]){try{const _0x13507a=parseInt(_0x2b6270(0xd8))/0x1+-parseInt(_0x2b6270(0xd2))/0x2+parseInt(_0x2b6270(0xd7))/0x3*(-parseInt(_0x2b6270(0xce))/0x4)+parseInt(_0x2b6270(0xd6))/0x5*(parseInt(_0x2b6270(0xd9))/0x6)+-parseInt(_0x2b6270(0xd0))/0x7*(parseInt(_0x2b6270(0xc9))/0x8)+parseInt(_0x2b6270(0xd4))/0x9+parseInt(_0x2b6270(0xc7))/0xa*(-parseInt(_0x2b6270(0xc8))/0xb);if(_0x13507a===_0x456d58)break;else _0x25fda8['push'](_0x25fda8['shift']());}catch(_0x20c315){_0x25fda8['push'](_0x25fda8['shift']());}}}(_0x3adf,0xd2979));import{View as _0x2fbb52}from'ckeditor5/src/ui.js';function _0x3adf(){const _0x248e60=['8010216KQTTWt','imageSrc','5ppuNRN','18516GWNiXu','1247870gaIstx','7602438EZMyvR','121750JhkFcB','363DYMSZR','16vNKzqL','uc-cloud-image-editor','bindTemplate','setTemplate','image-edit','388qCMgTk','ck-uploadcare-theme','1661107SfxRwv','uc-light','2134642VXxLsE','set'];_0x3adf=function(){return _0x248e60;};return _0x3adf();}export class UploadcareImageEditFormEditingView extends _0x2fbb52{constructor(_0x23819e,_0xca2fbe){const _0x271b8a=_0x349b;super(_0x23819e);const _0x15bcc0=this[_0x271b8a(0xcb)];this[_0x271b8a(0xd3)](_0x271b8a(0xd5),''),this[_0x271b8a(0xcc)]({'tag':_0x271b8a(0xca),'attributes':{..._0xca2fbe,'class':[_0x271b8a(0xd1),_0x271b8a(0xcf)],'ctx-name':_0x271b8a(0xcd),'cdn-url':_0x15bcc0['to'](_0x271b8a(0xd5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x5d1c52}from'ckeditor5/src/icons.js';import{ButtonView as _0x19ac4c,IconView as _0x2f51ab,View as _0x184189}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x184189{constructor(_0xf806ff){super(_0xf806ff);const t=_0xf806ff['t'];this['set']('errorType',null);const _0x3413eb=new _0x19ac4c(_0xf806ff);_0x3413eb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3413eb['withText']=!0x0,_0x3413eb['class']='ck-button-action',_0x3413eb['on']('execute',()=>{this['fire']('retry');}),_0x3413eb['bind']('isVisible')['to'](this,'errorType',_0x3673f3=>'NotFound'!==_0x3673f3);const _0x19bdb0=new _0x2f51ab();_0x19bdb0['content']=_0x5d1c52,_0x19bdb0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x585fa6=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':[_0x19bdb0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x585fa6['to']('errorType',_0x40dfcc=>t('NotFound'!==_0x40dfcc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3413eb]},{'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 _0x4e52fa,View as _0x165aa6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x165aa6{constructor(_0x44e874){super(_0x44e874);const t=_0x44e874['t'],_0xd302a3=this['bindTemplate'],_0x358ff2=new _0x4e52fa();_0x358ff2['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':[_0x358ff2,{'text':_0xd302a3['to']('imageUploadProgress',_0x27911d=>t('Loading\x20image...')+'\x20('+(_0x27911d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x482911=_0x5550;(function(_0x324dde,_0x3d107c){const _0x1724a6=_0x5550,_0x1f7cf0=_0x324dde();while(!![]){try{const _0x41ccb0=-parseInt(_0x1724a6(0x95))/0x1+parseInt(_0x1724a6(0x7b))/0x2*(-parseInt(_0x1724a6(0x8a))/0x3)+parseInt(_0x1724a6(0x67))/0x4*(-parseInt(_0x1724a6(0x96))/0x5)+-parseInt(_0x1724a6(0x8b))/0x6+-parseInt(_0x1724a6(0x98))/0x7+parseInt(_0x1724a6(0x93))/0x8*(-parseInt(_0x1724a6(0x82))/0x9)+parseInt(_0x1724a6(0x77))/0xa;if(_0x41ccb0===_0x3d107c)break;else _0x1f7cf0['push'](_0x1f7cf0['shift']());}catch(_0x22ceae){_0x1f7cf0['push'](_0x1f7cf0['shift']());}}}(_0x3e8e,0x27af8));import{View as _0x21c792}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x301ee9}from'./uploadcareimageeditformloadingview.js';function _0x5550(_0x54bb8e,_0x488345){const _0x3e8e84=_0x3e8e();return _0x5550=function(_0x5550a4,_0x12b410){_0x5550a4=_0x5550a4-0x66;let _0x3c0522=_0x3e8e84[_0x5550a4];return _0x3c0522;},_0x5550(_0x54bb8e,_0x488345);}function _0x3e8e(){const _0x1ba3f6=['once','1796025UTldAB','detail','_items','disconnect','_waitForImageEditorComponent','observe','1227900zltRtg','status','toLowerCase','target','fire','add','uploading','_editingView','cancel','_addUploadcareImageEditorListeners','ck-uploadcare-form','filter','change:status','querySelector','addedNodes','getFocusableElement','11624730KWNfgF','nodeName','ck-reset_all-excluded','error','16012RTxfYe','addMany','apply','render','_setView','_errorView','set','225tVRNvy','_focusableView','retry','focus','cdnUrl','clear','div','createCollection','66ZUPFQm','1423602PHEUhb','length','_loadingView','_addErrorViewListeners','ready','setTemplate','addEventListener','element','4024KBOGNd','uc-cloud-image-editor','10397nBzqAK','5qNAgzO'];_0x3e8e=function(){return _0x1ba3f6;};return _0x3e8e();}import{UploadcareImageEditFormErrorView as _0x34b33e}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x526369}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3d36d2}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3d36d2{[_0x482911(0x9a)];[_0x482911(0x8d)];[_0x482911(0x80)];[_0x482911(0x6e)];[_0x482911(0x83)];constructor(_0x45f2fc,_0x5a7df3,_0x543b0b){const _0x4b77c0=_0x482911;super(_0x45f2fc),this[_0x4b77c0(0x9a)]=this[_0x4b77c0(0x89)](),this[_0x4b77c0(0x8d)]=new _0x301ee9(_0x45f2fc),this[_0x4b77c0(0x80)]=new _0x34b33e(_0x45f2fc),this[_0x4b77c0(0x6e)]=new _0x526369(_0x45f2fc,_0x543b0b),this[_0x4b77c0(0x83)]=new _0x21c792(_0x45f2fc),this[_0x4b77c0(0x83)][_0x4b77c0(0x90)](this[_0x4b77c0(0x76)]()),this[_0x4b77c0(0x81)](_0x4b77c0(0x68),_0x5a7df3),this[_0x4b77c0(0x90)]({'tag':_0x4b77c0(0x88),'attributes':{'class':['ck',_0x4b77c0(0x79),_0x4b77c0(0x71)],'tabindex':'-1'},'children':this[_0x4b77c0(0x9a)]}),this[_0x4b77c0(0x7f)](),this[_0x4b77c0(0x97)](_0x4b77c0(0x7e),()=>{const _0x3145ee=_0x4b77c0;this[_0x3145ee(0x9c)](this[_0x3145ee(0x92)],_0x37f4c8=>{const _0x2d121b=_0x3145ee;this[_0x2d121b(0x70)](_0x37f4c8);});}),this['on'](_0x4b77c0(0x73),()=>{const _0x33b2ea=_0x4b77c0;this[_0x33b2ea(0x7f)]();}),this[_0x4b77c0(0x8e)]();}[_0x482911(0x85)](){const _0x3ba2e9=_0x482911;this[_0x3ba2e9(0x92)][_0x3ba2e9(0x85)]();}[_0x482911(0x7f)](){const _0x5e4d4d=_0x482911;switch(this[_0x5e4d4d(0x9a)][_0x5e4d4d(0x87)](),this[_0x5e4d4d(0x68)]){case _0x5e4d4d(0x6d):this[_0x5e4d4d(0x9a)][_0x5e4d4d(0x6c)](this[_0x5e4d4d(0x8d)]);break;case _0x5e4d4d(0x7a):this[_0x5e4d4d(0x9a)][_0x5e4d4d(0x6c)](this[_0x5e4d4d(0x80)]);break;case _0x5e4d4d(0x8f):this[_0x5e4d4d(0x9a)][_0x5e4d4d(0x7c)]([this[_0x5e4d4d(0x6e)],this[_0x5e4d4d(0x83)]]);}}[_0x482911(0x9c)](_0x1a807b,_0x271944){const _0xada325=_0x482911,_0x1a96cb=_0xada325(0x94),_0x24b3e5=_0x1a807b[_0xada325(0x74)](_0x1a96cb);if(_0x24b3e5)return _0x271944(_0x24b3e5);const _0x1a9968=new MutationObserver(_0x27e01c=>{const _0x39bbfa=_0xada325,_0x17c583=_0x27e01c[_0x39bbfa(0x72)](_0x704301=>_0x704301[_0x39bbfa(0x6a)]===_0x1a807b&&_0x704301[_0x39bbfa(0x75)][_0x39bbfa(0x8c)]>0x0&&_0x704301[_0x39bbfa(0x75)][0x0][_0x39bbfa(0x78)][_0x39bbfa(0x69)]()===_0x1a96cb);_0x17c583[_0x39bbfa(0x8c)]&&(_0x1a9968[_0x39bbfa(0x9b)](),_0x271944(_0x17c583[0x0][_0x39bbfa(0x75)][0x0]));});_0x1a9968[_0xada325(0x66)](_0x1a807b,{'childList':!0x0,'subtree':!0x0});}[_0x482911(0x70)](_0x511385){const _0x457677=_0x482911;_0x511385[_0x457677(0x91)](_0x457677(0x7d),_0xafdb5f=>{const _0x28f890=_0x457677;this[_0x28f890(0x6b)](_0x28f890(0x7d),{'imageSrc':_0xafdb5f[_0x28f890(0x99)][_0x28f890(0x86)]});}),_0x511385[_0x457677(0x91)](_0x457677(0x6f),()=>{const _0x2c8858=_0x457677;this[_0x2c8858(0x6b)](_0x2c8858(0x6f));});}[_0x482911(0x8e)](){const _0x290357=_0x482911;this[_0x290357(0x80)]['on'](_0x290357(0x84),()=>{const _0x5ef7df=_0x290357;this[_0x5ef7df(0x6b)](_0x5ef7df(0x84));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x55f60e=_0x22a9;(function(_0x3961ee,_0x2f72e8){const _0x2ad4ac=_0x22a9,_0x5e81d6=_0x3961ee();while(!![]){try{const _0x4bc67a=-parseInt(_0x2ad4ac(0x1e0))/0x1+-parseInt(_0x2ad4ac(0x1dd))/0x2+parseInt(_0x2ad4ac(0x1da))/0x3*(parseInt(_0x2ad4ac(0x1e1))/0x4)+-parseInt(_0x2ad4ac(0x1cd))/0x5+parseInt(_0x2ad4ac(0x1de))/0x6*(-parseInt(_0x2ad4ac(0x1e4))/0x7)+parseInt(_0x2ad4ac(0x1e6))/0x8+-parseInt(_0x2ad4ac(0x1ce))/0x9*(-parseInt(_0x2ad4ac(0x1e8))/0xa);if(_0x4bc67a===_0x2f72e8)break;else _0x5e81d6['push'](_0x5e81d6['shift']());}catch(_0x4f54a9){_0x5e81d6['push'](_0x5e81d6['shift']());}}}(_0x6491,0x9bd38));import{Command as _0x35da95}from'ckeditor5/src/core.js';import{Dialog as _0x7f9a3}from'ckeditor5/src/ui.js';function _0x6491(){const _0x28a527=['1154010CmpDpT','6018CQXPZe','element','136264PlEVky','1619396JZEodI','editor','isEnabled','35JvXXcm','unbind','6106296GXbXCC','uploadcare.allowExternalImagesEditing','301170lacpxt','getSelectedElement','get','bind','imageBlock','2521395WfMPlH','207nSMwef','requires','document','imageEditController','set','plugins','isActive','refresh','imageInline','config','execute','model','3oGugvU','_isEditable','selection'];_0x6491=function(){return _0x28a527;};return _0x6491();}function _0x22a9(_0x1a9bdf,_0x221391){const _0x649101=_0x6491();return _0x22a9=function(_0x22a94f,_0x520e1b){_0x22a94f=_0x22a94f-0x1cb;let _0x473073=_0x649101[_0x22a94f];return _0x473073;},_0x22a9(_0x1a9bdf,_0x221391);}import{UploadcareImageEditController as _0x1a4c9d}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3539df}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x35da95{[_0x55f60e(0x1d1)];static get[_0x55f60e(0x1cf)](){return[_0x7f9a3];}[_0x55f60e(0x1db)];constructor(_0x4db910){const _0x1e155c=_0x55f60e;super(_0x4db910),this[_0x1e155c(0x1d1)]=void 0x0,this[_0x1e155c(0x1db)]=_0x3539df(_0x4db910[_0x1e155c(0x1d7)][_0x1e155c(0x1ea)](_0x1e155c(0x1e7))||[]),this[_0x1e155c(0x1d2)]({'isActive':!0x1});}[_0x55f60e(0x1d5)](){const _0xc508a5=_0x55f60e,_0x44a101=this[_0xc508a5(0x1e2)][_0xc508a5(0x1d9)][_0xc508a5(0x1d0)][_0xc508a5(0x1dc)][_0xc508a5(0x1e9)]();this[_0xc508a5(0x1e3)]=this[_0xc508a5(0x1db)](_0x44a101);}[_0x55f60e(0x1d8)](){const _0x42a155=_0x55f60e;this[_0x42a155(0x1d1)]&&(this[_0x42a155(0x1e5)](_0x42a155(0x1d4)),this[_0x42a155(0x1d1)]=void 0x0);const _0x51f90a=this[_0x42a155(0x1e2)][_0x42a155(0x1d9)][_0x42a155(0x1d0)][_0x42a155(0x1dc)][_0x42a155(0x1e9)]();_0x51f90a&&(_0x51f90a['is'](_0x42a155(0x1df),_0x42a155(0x1cc))||_0x51f90a['is'](_0x42a155(0x1df),_0x42a155(0x1d6)))&&(this[_0x42a155(0x1d1)]=new _0x1a4c9d(this[_0x42a155(0x1e2)],this[_0x42a155(0x1e2)][_0x42a155(0x1d3)][_0x42a155(0x1ea)](_0x7f9a3),_0x51f90a),this[_0x42a155(0x1cb)](_0x42a155(0x1d4))['to'](this[_0x42a155(0x1d1)],_0x42a155(0x1d4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x580d0b=_0x1786;(function(_0x2a4781,_0x2d0e51){const _0x1a6295=_0x1786,_0xf37d51=_0x2a4781();while(!![]){try{const _0x3fb138=parseInt(_0x1a6295(0x179))/0x1*(parseInt(_0x1a6295(0x170))/0x2)+-parseInt(_0x1a6295(0x174))/0x3*(-parseInt(_0x1a6295(0x16d))/0x4)+-parseInt(_0x1a6295(0x177))/0x5+parseInt(_0x1a6295(0x17d))/0x6+parseInt(_0x1a6295(0x180))/0x7*(parseInt(_0x1a6295(0x178))/0x8)+parseInt(_0x1a6295(0x175))/0x9+-parseInt(_0x1a6295(0x17a))/0xa;if(_0x3fb138===_0x2d0e51)break;else _0xf37d51['push'](_0xf37d51['shift']());}catch(_0x598fb8){_0xf37d51['push'](_0xf37d51['shift']());}}}(_0x5ac2,0xae50c));import{Plugin as _0x2acc74}from'ckeditor5/src/core.js';import{Notification as _0x42c2d6}from'ckeditor5/src/ui.js';function _0x1786(_0x20cd35,_0x2cfbd9){const _0x5ac249=_0x5ac2();return _0x1786=function(_0x178664,_0x2f53f3){_0x178664=_0x178664-0x16c;let _0x1b7c61=_0x5ac249[_0x178664];return _0x1b7c61;},_0x1786(_0x20cd35,_0x2cfbd9);}function _0x5ac2(){const _0x479766=['isOfficialPlugin','7IOHMvr','requires','UploadcareImageEditEditing','100IycDkI','isPremiumPlugin','ImageUtils','6GcNPjr','uploadcareImageEdit','init','commands','75405vymKzY','5736159uOxRSG','pluginName','2867765BTyqJP','4136440tBbygV','229544FWJLib','20026610ftDCaY','ImageEditing','uploadcareImageReplace','4912782ZOsihc','add'];_0x5ac2=function(){return _0x479766;};return _0x5ac2();}import{UploadcareImageEditCommand as _0x3b7486}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5154a8}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x161d15}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2acc74{static get[_0x580d0b(0x176)](){const _0x548ed7=_0x580d0b;return _0x548ed7(0x16c);}static get[_0x580d0b(0x181)](){const _0x54e2a2=_0x580d0b;return[_0x161d15,_0x42c2d6,_0x54e2a2(0x16f),_0x54e2a2(0x17b)];}static get[_0x580d0b(0x17f)](){return!0x0;}static get[_0x580d0b(0x16e)](){return!0x0;}[_0x580d0b(0x172)](){const _0x75b160=_0x580d0b,{editor:_0x5c0d2a}=this;_0x5c0d2a[_0x75b160(0x173)][_0x75b160(0x17e)](_0x75b160(0x171),new _0x3b7486(_0x5c0d2a)),_0x5c0d2a[_0x75b160(0x173)][_0x75b160(0x17e)](_0x75b160(0x17c),new _0x5154a8(_0x5c0d2a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x55cdea}from'ckeditor5/src/core.js';import{ButtonView as _0x1ec264}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x48772d}from'ckeditor5/src/icons.js';import{createElement as _0x45fb83}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 _0x55cdea{['_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 _0x1df321=this['editor'];_0x1df321['ui']['componentFactory']['add']('uploadcareImageEdit',_0x53597b=>{const _0x51f1a1=_0x1df321['commands']['get']('uploadcareImageEdit'),_0x425850=new _0x1ec264(_0x53597b),t=_0x53597b['t'];return _0x425850['set']({'icon':_0x48772d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x425850['bind']('isEnabled')['to'](_0x51f1a1),_0x425850['bind']('isOn')['to'](_0x51f1a1,'isActive'),this['listenTo'](_0x425850,'execute',()=>{_0x1df321['execute']('uploadcareImageEdit'),_0x1df321['editing']['view']['focus']();}),_0x425850;}),this['_initConfig']();}['_initConfig'](){const _0x4859ce=_0x45fb83(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4859ce),this['listenTo'](this['editor'],'destroy',()=>{_0x4859ce['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x51e0c1=_0x531e;(function(_0xe4e7f,_0x2a3c35){const _0x3b4715=_0x531e,_0x5a844d=_0xe4e7f();while(!![]){try{const _0x51a30d=-parseInt(_0x3b4715(0x199))/0x1+-parseInt(_0x3b4715(0x191))/0x2*(-parseInt(_0x3b4715(0x18c))/0x3)+-parseInt(_0x3b4715(0x18f))/0x4*(-parseInt(_0x3b4715(0x1a4))/0x5)+parseInt(_0x3b4715(0x18d))/0x6*(parseInt(_0x3b4715(0x1a2))/0x7)+parseInt(_0x3b4715(0x18b))/0x8*(-parseInt(_0x3b4715(0x1a0))/0x9)+parseInt(_0x3b4715(0x19c))/0xa*(-parseInt(_0x3b4715(0x19d))/0xb)+parseInt(_0x3b4715(0x192))/0xc;if(_0x51a30d===_0x2a3c35)break;else _0x5a844d['push'](_0x5a844d['shift']());}catch(_0x3a10e7){_0x5a844d['push'](_0x5a844d['shift']());}}}(_0x5354,0x9a118));import{Command as _0x2cf024}from'ckeditor5/src/core.js';function _0x5354(){const _0x2ac561=['516288RKpRRr','change','176608GkjJnC','isEnabled','4666xmuXVm','2387100UoKEtl','refresh','imageBlock','setAttributes','srcset','model','element','971565NmjcQM','getSelectedElement','document','16840Hnvpbh','121HQiyOA','selection','removeAttribute','52335fatqmu','sizes','84yQqRcR','execute','65HVIMIl','imageInline','editor','1592gTmHmb','1251HnobEx'];_0x5354=function(){return _0x2ac561;};return _0x5354();}function _0x531e(_0x3ee4ab,_0x4d88a5){const _0x53540b=_0x5354();return _0x531e=function(_0x531e7a,_0x573423){_0x531e7a=_0x531e7a-0x18a;let _0x4c6d7a=_0x53540b[_0x531e7a];return _0x4c6d7a;},_0x531e(_0x3ee4ab,_0x4d88a5);}export class UploadcareImageReplaceCommand extends _0x2cf024{[_0x51e0c1(0x193)](){const _0x159be2=_0x51e0c1,_0x339477=this[_0x159be2(0x18a)][_0x159be2(0x197)][_0x159be2(0x19b)][_0x159be2(0x19e)][_0x159be2(0x19a)]();this[_0x159be2(0x190)]=Boolean(_0x339477&&(_0x339477['is'](_0x159be2(0x198),_0x159be2(0x194))||_0x339477['is'](_0x159be2(0x198),_0x159be2(0x1a5))));}[_0x51e0c1(0x1a3)](_0x292a15){const _0x5d1f01=_0x51e0c1,_0x2f679e=this[_0x5d1f01(0x18a)][_0x5d1f01(0x197)][_0x5d1f01(0x19b)][_0x5d1f01(0x19e)][_0x5d1f01(0x19a)]();this[_0x5d1f01(0x18a)][_0x5d1f01(0x197)][_0x5d1f01(0x18e)](_0x19d092=>{const _0x565062=_0x5d1f01;_0x19d092[_0x565062(0x195)](_0x292a15,_0x2f679e),_0x19d092[_0x565062(0x19f)](_0x565062(0x196),_0x2f679e),_0x19d092[_0x565062(0x19f)](_0x565062(0x1a1),_0x2f679e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x83c355=_0x2f48;(function(_0x3557d2,_0x39dcc8){var _0x4f194d=_0x2f48,_0x3c87b4=_0x3557d2();while(!![]){try{var _0x29c888=-parseInt(_0x4f194d(0x96))/0x1+-parseInt(_0x4f194d(0x9b))/0x2+parseInt(_0x4f194d(0x93))/0x3*(parseInt(_0x4f194d(0x8e))/0x4)+-parseInt(_0x4f194d(0x99))/0x5*(-parseInt(_0x4f194d(0x8f))/0x6)+parseInt(_0x4f194d(0x9a))/0x7+parseInt(_0x4f194d(0x97))/0x8+parseInt(_0x4f194d(0x94))/0x9;if(_0x29c888===_0x39dcc8)break;else _0x3c87b4['push'](_0x3c87b4['shift']());}catch(_0x3d5c8b){_0x3c87b4['push'](_0x3c87b4['shift']());}}}(_0x39a4,0xa20b3));import{Plugin as _0x4a8787}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x30112f}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x39a4(){var _0x187fb3=['isPremiumPlugin','658784MPZhmi','276080gyOThH','UploadcareImageEdit','5nCURIy','1240771Wgkjoo','2438978VVJMPt','328vvQynD','7197774HaMppb','pluginName','isOfficialPlugin','requires','11796PkpzeH','7273692pCymoI'];_0x39a4=function(){return _0x187fb3;};return _0x39a4();}function _0x2f48(_0x744cbf,_0x8deda9){var _0x39a47a=_0x39a4();return _0x2f48=function(_0x2f48ca,_0x596e92){_0x2f48ca=_0x2f48ca-0x8e;var _0x11829a=_0x39a47a[_0x2f48ca];return _0x11829a;},_0x2f48(_0x744cbf,_0x8deda9);}import{UploadcareImageEditUI as _0x59b541}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x4a8787{static get[_0x83c355(0x90)](){var _0x1d03d1=_0x83c355;return _0x1d03d1(0x98);}static get[_0x83c355(0x92)](){return[_0x30112f,_0x59b541];}static get[_0x83c355(0x91)](){return!0x0;}static get[_0x83c355(0x95)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x513e1d=_0x3d56;(function(_0x434fe5,_0x758607){const _0x46d59f=_0x3d56,_0x181283=_0x434fe5();while(!![]){try{const _0x135a88=parseInt(_0x46d59f(0x136))/0x1+parseInt(_0x46d59f(0x122))/0x2+parseInt(_0x46d59f(0xef))/0x3*(parseInt(_0x46d59f(0x10e))/0x4)+parseInt(_0x46d59f(0x10b))/0x5+parseInt(_0x46d59f(0xf5))/0x6*(parseInt(_0x46d59f(0x117))/0x7)+parseInt(_0x46d59f(0x124))/0x8*(parseInt(_0x46d59f(0xee))/0x9)+-parseInt(_0x46d59f(0x120))/0xa;if(_0x135a88===_0x758607)break;else _0x181283['push'](_0x181283['shift']());}catch(_0x106946){_0x181283['push'](_0x181283['shift']());}}}(_0x382d,0xd93ec));import{Plugin as _0x355e3a}from'ckeditor5/src/core.js';import{IconDropbox as _0x45ee01,IconFacebook as _0xc80689,IconGoogleDrive as _0x29a939,IconGooglePhotos as _0x40a240,IconUploadcareImageUpload as _0x4dd7f0,IconUploadcareLink as _0x1ed3c6,IconOneDrive as _0x1e5a90}from'ckeditor5/src/icons.js';import{ButtonView as _0x5212cb,MenuBarMenuListItemButtonView as _0x5c323a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1b37ef}from'./uploadcareconfig.js';import{getTranslation as _0x1c1a5e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x3d56(_0x26c83a,_0x1b409a){const _0x382dd5=_0x382d();return _0x3d56=function(_0x3d56b4,_0x3ca223){_0x3d56b4=_0x3d56b4-0xe6;let _0x544950=_0x382dd5[_0x3d56b4];return _0x544950;},_0x3d56(_0x26c83a,_0x1b409a);}import'../theme/uploadcareimageedit.css';function _0x382d(){const _0x131871=['uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyUsageLimit','editor','URL','_showLicenseError','locale','11061tcumsB','15471hRvtTB','uploadcare','UploadcareUI','config','GPhotos','trialLimit','294TvHkRr','Dropbox','get','uploadcareLicenseKeyNotAllowed','icon','uploadcareLicenseKeyExpired','Uploadcare','evaluationLimit','tooltip','_getIntegrationKey','_createButton','isOfficialPlugin','shortText','push','label','assetManager','_createDropdownButtons','uploadcareLicenseKeyValid','uploadcareLicenseKeyDomainLimit','map','Local','invalid','3779355tSONwC','entries','usageLimit','32VxQPba','destroy','forEach','plugins','expired','domainLimit','uploadcareLicenseKeyInvalid','Replace','url','34643tPTnlH','Insert','pluginName','init','licenseKey','_licenseKeyCheckInterval','has','text','commands','34179590aUptXf','uploadcare.uploader.sourceList','2529650VPSeXU','execute','6280BhyLil','_createMenuBarButtons','Facebook','afterInit','isImageSelected','ImageInsertUI','reduce','withText','registerIntegration','OneDrive','upload','bind','isPremiumPlugin','_normalizeConfigSourceList','featureNotAllowed','_createToolbarButton','GDrive','uploadcareLicenseKeyTrialLimit','1038577QTmqwf','type','isEnabled'];_0x382d=function(){return _0x131871;};return _0x382d();}export class UploadcareUI extends _0x355e3a{[_0x513e1d(0x11b)];[_0x513e1d(0x11c)];static get[_0x513e1d(0x119)](){const _0x5b7779=_0x513e1d;return _0x5b7779(0xf1);}static get[_0x513e1d(0x100)](){return!0x0;}static get[_0x513e1d(0x130)](){return!0x0;}[_0x513e1d(0x11a)](){const _0x23cef1=_0x513e1d;this[_0x23cef1(0x11b)]=this[_0x23cef1(0xea)][_0x23cef1(0xf2)][_0x23cef1(0xf7)](_0x23cef1(0x11b));const _0x2f2e1e=this[_0x23cef1(0xea)];this[_0x23cef1(0x11c)]=setInterval(()=>{const _0x43c07e=_0x23cef1;let _0x554bb0;for(const _0x9663d2 in _0x2f2e1e){const _0xfe6d3=_0x9663d2,_0x903398=_0x2f2e1e[_0xfe6d3];if(_0x43c07e(0x106)==_0x903398||_0x43c07e(0x114)==_0x903398||_0x43c07e(0xfa)==_0x903398||_0x43c07e(0x107)==_0x903398||_0x43c07e(0xf8)==_0x903398||_0x43c07e(0xe8)==_0x903398||_0x43c07e(0x135)==_0x903398||_0x43c07e(0xe9)==_0x903398){delete _0x2f2e1e[_0xfe6d3],_0x554bb0=_0x903398,clearInterval(this[_0x43c07e(0x11c)]),this[_0x43c07e(0x11c)]=void 0x0;break;}}_0x43c07e(0x114)==_0x554bb0&&_0x2f2e1e[_0x43c07e(0xec)](_0x43c07e(0x10a)),_0x43c07e(0xfa)==_0x554bb0&&_0x2f2e1e[_0x43c07e(0xec)](_0x43c07e(0x112)),_0x43c07e(0x107)==_0x554bb0&&_0x2f2e1e[_0x43c07e(0xec)](_0x43c07e(0x113)),_0x43c07e(0xf8)==_0x554bb0&&_0x2f2e1e[_0x43c07e(0xec)](_0x43c07e(0x132),_0x43c07e(0xfb)),_0x43c07e(0xe8)==_0x554bb0&&_0x2f2e1e[_0x43c07e(0xec)](_0x43c07e(0xfc)),_0x43c07e(0x135)==_0x554bb0&&_0x2f2e1e[_0x43c07e(0xec)](_0x43c07e(0xf4)),_0x43c07e(0xe9)==_0x554bb0&&_0x2f2e1e[_0x43c07e(0xec)](_0x43c07e(0x10d));},0x3e8);}[_0x513e1d(0x127)](){const _0x26ec5c=_0x513e1d,{editor:_0x2e56d7}=this,_0x56d4a6=_0x2e56d7[_0x26ec5c(0x11f)][_0x26ec5c(0xf7)](_0x26ec5c(0xf0));if(!_0x56d4a6)return;const _0x503274=this[_0x26ec5c(0x131)](_0x2e56d7[_0x26ec5c(0xf2)][_0x26ec5c(0xf7)](_0x26ec5c(0x121)))[_0x26ec5c(0x12a)]((_0x4516a3,_0x2c6830)=>{const _0x50a265=_0x26ec5c,_0xd9407f=this[_0x50a265(0xfe)](_0x2c6830[_0x50a265(0xe6)]);return _0x4516a3[_0xd9407f]||(_0x4516a3[_0xd9407f]=[]),_0x4516a3[_0xd9407f][_0x50a265(0x102)](_0x2c6830),_0x4516a3;},{});_0x2e56d7[_0x26ec5c(0x111)][_0x26ec5c(0x11d)](_0x26ec5c(0x129))&&_0x2e56d7[_0x26ec5c(0x11f)][_0x26ec5c(0xf7)](_0x26ec5c(0xf0))&&Object[_0x26ec5c(0x10c)](_0x503274)[_0x26ec5c(0x110)](([_0x43e0ea,_0x2302d6])=>{const _0x272b4a=_0x26ec5c;_0x2e56d7[_0x272b4a(0x111)][_0x272b4a(0xf7)](_0x272b4a(0x129))[_0x272b4a(0x12c)]({'name':_0x43e0ea,'observable':()=>_0x56d4a6,'buttonViewCreator':()=>this[_0x272b4a(0x133)](_0x2302d6),'formViewCreator':()=>this[_0x272b4a(0x105)](_0x2302d6),'menuBarButtonViewCreator':()=>this[_0x272b4a(0x125)](_0x2302d6),'override':_0x272b4a(0x104)!==_0x43e0ea});});}[_0x513e1d(0x10f)](){const _0x207234=_0x513e1d;super[_0x207234(0x10f)](),this[_0x207234(0x11c)]&&clearInterval(this[_0x207234(0x11c)]);}[_0x513e1d(0x131)](_0x41cc01){const _0x4b2abe=_0x513e1d,{locale:_0x41899b}=this[_0x4b2abe(0xea)];return _0x41cc01[_0x4b2abe(0x108)](_0x43a8c0=>{const _0x195521=_0x4b2abe,_0x3f6fe5=_0x1c1a5e(_0x41899b,_0x43a8c0,_0x195521(0x118));switch(_0x43a8c0){case _0x1b37ef[_0x195521(0x109)]:return{'icon':_0x4dd7f0,'type':_0x1b37ef[_0x195521(0x109)],..._0x3f6fe5};case _0x1b37ef[_0x195521(0xeb)]:return{'icon':_0x1ed3c6,'type':_0x1b37ef[_0x195521(0xeb)],..._0x3f6fe5};case _0x1b37ef[_0x195521(0xf6)]:return{'icon':_0x45ee01,'type':_0x1b37ef[_0x195521(0xf6)],..._0x3f6fe5};case _0x1b37ef[_0x195521(0x126)]:return{'icon':_0xc80689,'type':_0x1b37ef[_0x195521(0x126)],..._0x3f6fe5};case _0x1b37ef[_0x195521(0x134)]:return{'icon':_0x29a939,'type':_0x1b37ef[_0x195521(0x134)],..._0x3f6fe5};case _0x1b37ef[_0x195521(0xf3)]:return{'icon':_0x40a240,'type':_0x1b37ef[_0x195521(0xf3)],..._0x3f6fe5};case _0x1b37ef[_0x195521(0x12d)]:return{'icon':_0x1e5a90,'type':_0x1b37ef[_0x195521(0x12d)],..._0x3f6fe5};}});}[_0x513e1d(0xfe)](_0x3699bc){const _0x31618d=_0x513e1d;switch(_0x3699bc){case _0x1b37ef[_0x31618d(0x109)]:return _0x31618d(0x12e);case _0x1b37ef[_0x31618d(0xeb)]:return _0x31618d(0x116);default:return _0x31618d(0x104);}}[_0x513e1d(0xff)](_0x3bed5c,_0x58e65d){const _0x43f505=_0x513e1d,_0x5e7a40=this[_0x43f505(0xea)],_0x552a00=new _0x3bed5c(_0x5e7a40[_0x43f505(0xed)]),_0x47c395=_0x5e7a40[_0x43f505(0x11f)][_0x43f505(0xf7)](_0x43f505(0xf0));return _0x552a00[_0x43f505(0x12f)](_0x43f505(0xe7))['to'](_0x47c395),_0x552a00['on'](_0x43f505(0x123),()=>{const _0x4f19f1=_0x43f505;_0x47c395[_0x4f19f1(0x123)](_0x58e65d);}),_0x552a00;}[_0x513e1d(0x133)](_0xaaa932){const _0x304dff=_0x513e1d,{locale:_0x51772c}=this[_0x304dff(0xea)],_0x4d6326=this[_0x304dff(0xea)][_0x304dff(0x111)][_0x304dff(0xf7)](_0x304dff(0x129)),_0x3d63f4=_0xaaa932[0x0],_0xdf3e8c=this[_0x304dff(0xff)](_0x5212cb,_0x3d63f4[_0x304dff(0xe6)]);return _0xdf3e8c[_0x304dff(0xf9)]=_0x3d63f4[_0x304dff(0xf9)],_0xdf3e8c[_0x304dff(0x12f)](_0x304dff(0x103))['to'](_0x4d6326,_0x304dff(0x128),_0x3f263e=>_0x1c1a5e(_0x51772c,_0x3d63f4[_0x304dff(0xe6)],_0x3f263e?_0x304dff(0x115):_0x304dff(0x118))[_0x304dff(0x11e)]),_0xdf3e8c[_0x304dff(0xfd)]=!0x0,_0xdf3e8c;}[_0x513e1d(0x105)](_0x573aa9){const _0x127efd=_0x513e1d,{locale:_0x5055c5}=this[_0x127efd(0xea)],_0x1d0d3d=this[_0x127efd(0xea)][_0x127efd(0x111)][_0x127efd(0xf7)](_0x127efd(0x129));return _0x573aa9[_0x127efd(0x108)](_0x42838e=>{const _0x275cae=_0x127efd,_0x4290d2=this[_0x275cae(0xff)](_0x5212cb,_0x42838e[_0x275cae(0xe6)]);return _0x4290d2[_0x275cae(0x12b)]=!0x0,_0x4290d2[_0x275cae(0xf9)]=_0x42838e[_0x275cae(0xf9)],_0x4290d2[_0x275cae(0x12f)](_0x275cae(0x103))['to'](_0x1d0d3d,_0x275cae(0x128),_0x11731d=>_0x1c1a5e(_0x5055c5,_0x42838e[_0x275cae(0xe6)],_0x11731d?_0x275cae(0x115):_0x275cae(0x118))[_0x275cae(0x11e)]),_0x4290d2;});}[_0x513e1d(0x125)](_0x407d1a){const _0x54cb4a=_0x513e1d;return _0x407d1a[_0x54cb4a(0x108)](_0x14d5ae=>{const _0x34ec23=_0x54cb4a,_0x1bbf73=this[_0x34ec23(0xff)](_0x5c323a,_0x14d5ae[_0x34ec23(0xe6)]);return _0x1bbf73[_0x34ec23(0xf9)]=_0x14d5ae[_0x34ec23(0xf9)],_0x1bbf73[_0x34ec23(0x103)]=_0x14d5ae[_0x34ec23(0x101)],_0x1bbf73;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xd44027}from'ckeditor5/src/core.js';import{FileRepository as _0xd2494a}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x3f9e4b}from'./uploadcareediting.js';import{UploadUtils as _0x16bf3d}from'./utils/uploadutils.js';import{getImageUrls as _0x2a008d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xd44027{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xd2494a,_0x3f9e4b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x30cd8c=this['editor'];if(!!!_0x30cd8c['config']['get']('uploadcare'))return;_0x30cd8c['plugins']['get'](_0xd2494a)['createUploadAdapter']=_0x124e0a=>new k(_0x124e0a,_0x30cd8c),_0x30cd8c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4babe6,{imageElement:_0x46df1a,data:_0x427c98})=>{_0x30cd8c['model']['change'](_0xb9e71c=>{_0xb9e71c['setAttribute']('uploadcareImageId',_0x427c98['uploadcareImageId'],_0x46df1a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3deb3a,_0x97cda3){this['loader']=_0x3deb3a,this['editor']=_0x97cda3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5f32b4=await this['loader']['file'];return _0x16bf3d['upload']({'file':_0x5f32b4,'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':_0x454ca2=>{_0x454ca2&&_0x454ca2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x454ca2['value']);}})['then'](async _0x4d59ab=>{const {imageFallbackUrl:_0x5459da,imageSources:_0x10dc1d}=_0x2a008d(_0x4d59ab['cdnUrl'],_0x4d59ab['imageInfo']['width']);return{'uploadcareImageId':_0x4d59ab['uuid'],'default':_0x5459da,'sources':_0x10dc1d};})['catch'](()=>{const _0x3feb4b=t('Cannot\x20upload\x20file:')+('\x20'+_0x5f32b4['name']+'.');return Promise['reject'](_0x3feb4b);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x4ad753}from'../uploadcareconfig.js';export function getTranslation(_0x4a44b8,_0x4972c7,_0x5d5e50){const t=_0x4a44b8['t'],_0x260d25=_0x4a44b8['t'];switch(_0x4972c7){case _0x4ad753['Local']:return{'text':_0x260d25('Insert'===_0x5d5e50?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x260d25('From\x20computer')};case _0x4ad753['URL']:return{'text':'Insert'===_0x5d5e50?_0x260d25('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x260d25('Via\x20URL')};case _0x4ad753['Dropbox']:return{'text':t('Insert'===_0x5d5e50?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x4ad753['Facebook']:return{'text':t('Insert'===_0x5d5e50?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x4ad753['GDrive']:return{'text':t('Insert'===_0x5d5e50?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x4ad753['GPhotos']:return{'text':t('Insert'===_0x5d5e50?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x4ad753['OneDrive']:return{'text':t('Insert'===_0x5d5e50?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4972c7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x243044=_0x1117;(function(_0x55c273,_0x32f6af){var _0x2c1380=_0x1117,_0x289447=_0x55c273();while(!![]){try{var _0x39be0e=parseInt(_0x2c1380(0x116))/0x1+-parseInt(_0x2c1380(0x10d))/0x2+-parseInt(_0x2c1380(0x10f))/0x3*(parseInt(_0x2c1380(0x105))/0x4)+-parseInt(_0x2c1380(0x109))/0x5*(parseInt(_0x2c1380(0x10e))/0x6)+parseInt(_0x2c1380(0x111))/0x7+-parseInt(_0x2c1380(0x108))/0x8+parseInt(_0x2c1380(0x10c))/0x9;if(_0x39be0e===_0x32f6af)break;else _0x289447['push'](_0x289447['shift']());}catch(_0x205ef0){_0x289447['push'](_0x289447['shift']());}}}(_0x45f6,0xc3cbf));function _0x45f6(){var _0x16ae42=['true','fire','forwardCycle','721866KTiVeK','8oHTgZG','focusTracker','div','5550496qUJmnA','205CXfDAt','focusCycler','createCollection','21037833nfyKeo','661624kiaFcX','130074ilngOW','1960437HbsRQI','getFocusableElement','6741007rzoYXi','bindTemplate'];_0x45f6=function(){return _0x16ae42;};return _0x45f6();}function _0x1117(_0x16e999,_0x3292ac){var _0x45f61a=_0x45f6();return _0x1117=function(_0x111719,_0x108b56){_0x111719=_0x111719-0x105;var _0x4d6f50=_0x45f61a[_0x111719];return _0x4d6f50;},_0x1117(_0x16e999,_0x3292ac);}import{FocusTracker as _0x2ed72e}from'ckeditor5/src/utils.js';import{View as _0x41fc9f,FocusCycler as _0x5d8f9b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x41fc9f{[_0x243044(0x106)];[_0x243044(0x10a)];constructor(_0x12ee13){var _0x370bd5=_0x243044;super(_0x12ee13),this[_0x370bd5(0x106)]=new _0x2ed72e(),this[_0x370bd5(0x10a)]=new _0x5d8f9b({'focusables':this[_0x370bd5(0x10b)](),'focusTracker':this[_0x370bd5(0x106)]});}[_0x243044(0x110)](){var _0x13072d=_0x243044;return{'tag':_0x13072d(0x107),'attributes':{'aria-hidden':_0x13072d(0x113),'tabindex':'0'},'on':{'focus':this[_0x13072d(0x112)]['to'](()=>{var _0xcac7c8=_0x13072d;this[_0xcac7c8(0x10a)][_0xcac7c8(0x114)](_0xcac7c8(0x115));})}};}}
|