@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251006.0 → 0.0.0-nightly-20251008.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 _0x5260e0=_0x30f2;(function(_0x67d127,_0x404707){const _0x44d2b6=_0x30f2,_0x3c1c66=_0x67d127();while(!![]){try{const _0x4527f2=parseInt(_0x44d2b6(0x214))/0x1+parseInt(_0x44d2b6(0x20c))/0x2+-parseInt(_0x44d2b6(0x222))/0x3*(parseInt(_0x44d2b6(0x1f7))/0x4)+-parseInt(_0x44d2b6(0x206))/0x5+parseInt(_0x44d2b6(0x1f2))/0x6*(-parseInt(_0x44d2b6(0x203))/0x7)+-parseInt(_0x44d2b6(0x1ef))/0x8+parseInt(_0x44d2b6(0x219))/0x9;if(_0x4527f2===_0x404707)break;else _0x3c1c66['push'](_0x3c1c66['shift']());}catch(_0xb64d96){_0x3c1c66['push'](_0x3c1c66['shift']());}}}(_0x5556,0xbf44e));import{Plugin as _0x31445b}from'ckeditor5/src/core.js';import{Dialog as _0x21c8b8}from'ckeditor5/src/ui.js';import{createElement as _0x30ae0d,global as _0x55dae6,uid as _0x193c6c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1df44d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3b4bf5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x363b13}from'./utils/editingutils.js';function _0x5556(){const _0x4682e4=['ucContextId','upcast','_initConversion','schema','2042710ylXUCm','downcast','#uc-icon-arrow-down','configElement','conversion','removeAttribute','getAttribute','selection','1348594DuDSMH','join','uploadcare.uploader','ctxElement','render','25837128uokXJC','editor','_initSchema','extend','input[uploadcare-file-input]','once','querySelector','get','commands','330588SauBGj','UploadcareEditing','uploader-','attributeToAttribute','listenTo','isOfficialPlugin','insertImage','getSelectedElement','isPremiumPlugin','imageInline','imageBlock','pluginName','add','uc-config','href','_configElement','uc-upload-ctx-provider','for','uploadcare','uploadcare.pubkey','afterInit','appendChild','elementToAttribute','map','init','isRegistered','closeMax','destroy','_initImageProcessingIndicator','requires','_initCtx','uploadcareImageId','data-uc-image-id','9958272iXHzrC','\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','execute','16812kaiJtZ','_ctxElement','true','document','view','52niSkIV','_initConfig','iconHrefResolver','locale','cleanupImage','replaceImageSource','PictureEditing','remove','contentLanguage','uploadcareImageReplace','fromCharCode','config','3101owoLDX','body','editing','2693425MXwpXS','model'];_0x5556=function(){return _0x4682e4;};return _0x5556();}function _0x30f2(_0x5dd73f,_0x2bbcdd){const _0x5556b4=_0x5556();return _0x30f2=function(_0x30f2c2,_0x13f026){_0x30f2c2=_0x30f2c2-0x1eb;let _0x200dc7=_0x5556b4[_0x30f2c2];return _0x200dc7;},_0x30f2(_0x5dd73f,_0x2bbcdd);}export class UploadcareEditing extends _0x31445b{[_0x5260e0(0x231)]=null;[_0x5260e0(0x1f3)]=null;static get[_0x5260e0(0x22d)](){const _0x2f08cf=_0x5260e0;return _0x2f08cf(0x223);}static get[_0x5260e0(0x1eb)](){const _0x29eb91=_0x5260e0;return[_0x29eb91(0x1fd),_0x3b4bf5,_0x21c8b8];}static get[_0x5260e0(0x227)](){return!0x0;}static get[_0x5260e0(0x22a)](){return!0x0;}[_0x5260e0(0x208)];get[_0x5260e0(0x20f)](){const _0x4f6d0d=_0x5260e0;return this[_0x4f6d0d(0x231)];}get[_0x5260e0(0x217)](){const _0x37b29b=_0x5260e0;return this[_0x37b29b(0x1f3)];}constructor(_0xb710aa){const _0x322560=_0x5260e0;super(_0xb710aa),this[_0x322560(0x208)]=_0x193c6c();}[_0x5260e0(0x23a)](){const _0x2a301b=_0x5260e0,_0x5e7cbf=this[_0x2a301b(0x21a)];_0x5e7cbf[_0x2a301b(0x221)][_0x2a301b(0x22e)](_0x2a301b(0x234),new _0x1df44d(_0x5e7cbf));}[_0x5260e0(0x236)](){const _0x26fcdb=_0x5260e0;this[_0x26fcdb(0x21b)](),this[_0x26fcdb(0x20a)](),this[_0x26fcdb(0x1f8)](),this[_0x26fcdb(0x1ec)](),this[_0x26fcdb(0x23e)](),this[_0x26fcdb(0x226)](this[_0x26fcdb(0x21a)],_0x26fcdb(0x23d),()=>{const _0x1daf85=_0x26fcdb;this[_0x1daf85(0x231)]&&(this[_0x1daf85(0x231)][_0x1daf85(0x1fe)](),this[_0x1daf85(0x231)]=null),this[_0x1daf85(0x1f3)]&&(this[_0x1daf85(0x1f3)][_0x1daf85(0x1fe)](),this[_0x1daf85(0x1f3)]=null);const _0x4d9f42=_0x55dae6[_0x1daf85(0x1f5)][_0x1daf85(0x21f)](_0x1daf85(0x21d));_0x4d9f42&&_0x4d9f42[_0x1daf85(0x1fe)]();}),async function(_0x1fa0e6){const _0x2d7b4a=_0x359bdf([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]),_0x1d5d0c=0x3d8d0df,_0x1b57c8=0x3dfa5b7^_0x1d5d0c,_0x390ee0=window[_0x359bdf([0x44,0x61,0x74,0x65])][_0x359bdf([0x6e,0x6f,0x77])](),_0x3974c3=_0x1fa0e6[_0x359bdf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a48ad=new window[(_0x359bdf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x404612=>{_0x3974c3[_0x359bdf([0x6f,0x6e,0x63,0x65])](_0x359bdf([0x72,0x65,0x61,0x64,0x79]),_0x404612);}),_0x271dde={[_0x359bdf([0x6b,0x74,0x79])]:_0x359bdf([0x45,0x43]),[_0x359bdf([0x75,0x73,0x65])]:_0x359bdf([0x73,0x69,0x67]),[_0x359bdf([0x63,0x72,0x76])]:_0x359bdf([0x50,0x2d,0x32,0x35,0x36]),[_0x359bdf([0x78])]:_0x359bdf([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]),[_0x359bdf([0x79])]:_0x359bdf([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]),[_0x359bdf([0x61,0x6c,0x67])]:_0x359bdf([0x45,0x53,0x32,0x35,0x36])},_0x246d78=_0x3974c3[_0x359bdf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x359bdf([0x67,0x65,0x74])](_0x359bdf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22a101(){let _0x4daf1f,_0x4ebe83=null,_0x18937b=null;try{if(_0x246d78==_0x359bdf([0x47,0x50,0x4c]))return _0x359bdf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4daf1f=_0x46df6(),!_0x4daf1f)return _0x359bdf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4daf1f[_0x359bdf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18937b=_0x1b7987(_0x4daf1f[_0x359bdf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4daf1f[_0x359bdf([0x6a,0x74,0x69])])),await _0x3a6599()?_0x544165()?_0x3b8874()?_0x359bdf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26cf64()?(_0x4daf1f[_0x359bdf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x359bdf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ebe83=_0x53794f(_0x359bdf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4daf1f[_0x359bdf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x359bdf([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ebe83=_0x53794f(_0x359bdf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1bc0e3()):_0x359bdf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x359bdf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x359bdf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x359bdf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b8874(){const _0x362422=[_0x359bdf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x359bdf([0x74,0x72,0x69,0x61,0x6c])][_0x359bdf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4daf1f[_0x359bdf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x390ee0/0x3e8:0xe10*_0x1b57c8;return _0x4daf1f[_0x359bdf([0x65,0x78,0x70])]<_0x362422;}function _0x544165(){const _0x39336f=_0x4daf1f[_0x359bdf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39336f&&(!!_0x39336f[_0x359bdf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359bdf([0x2a]))||!!_0x39336f[_0x359bdf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359bdf([0x55,0x50,0x4c,0x43])));}function _0x26cf64(){const _0x5a6128=_0x30f2,_0x282817=_0x4daf1f[_0x359bdf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x282817||0x0==_0x282817[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3830f4}=new URL(window[_0x359bdf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a6128(0x230)]);if(_0x282817[_0x359bdf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3830f4))return!0x0;const _0x233385=_0x3830f4[_0x359bdf([0x73,0x70,0x6c,0x69,0x74])](_0x359bdf([0x2e]));return _0x282817[_0x359bdf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24fa19=>_0x24fa19[_0x359bdf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359bdf([0x2a])))[_0x359bdf([0x6d,0x61,0x70])](_0x301722=>_0x301722[_0x359bdf([0x73,0x70,0x6c,0x69,0x74])](_0x359bdf([0x2e])))[_0x359bdf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x539dc6=>_0x539dc6[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x233385[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x359bdf([0x6d,0x61,0x70])](_0x40a081=>Array(_0x233385[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40a081[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x359bdf([0x66,0x69,0x6c,0x6c])](_0x40a081[0x0]===_0x359bdf([0x2a])?_0x359bdf([0x2a]):'')[_0x359bdf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40a081))[_0x359bdf([0x73,0x6f,0x6d,0x65])](_0xc46ddc=>_0x233385[_0x359bdf([0x65,0x76,0x65,0x72,0x79])]((_0x3a491d,_0x13ebba)=>_0xc46ddc[_0x13ebba]===_0x3a491d||_0xc46ddc[_0x13ebba]===_0x359bdf([0x2a])));}function _0x1bc0e3(){return _0x4ebe83&&_0x18937b?new window[(_0x359bdf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x566f36,_0x195b8b)=>{_0x4ebe83[_0x359bdf([0x74,0x68,0x65,0x6e])](_0x566f36,_0x195b8b),_0x18937b[_0x359bdf([0x74,0x68,0x65,0x6e])](_0x2269a8=>{_0x2269a8!=_0x359bdf([0x56,0x61,0x6c,0x69,0x64])&&_0x566f36(_0x2269a8);},_0x195b8b);}):_0x4ebe83||_0x18937b||_0x359bdf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b7987(_0x594238,_0x475c7e){return new window[(_0x359bdf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c4be8=>{if(_0x21c111())return _0x1c4be8(_0x359bdf([0x56,0x61,0x6c,0x69,0x64]));_0x44342e(),_0x3974c3[_0x359bdf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x359bdf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4372a8=!0x1;const _0x4b8981=_0x193c6c();function _0x53909a(_0x4ea3c2){return!!_0x4ea3c2&&(typeof _0x4ea3c2===_0x359bdf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ea3c2===_0x359bdf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ea3c2[_0x359bdf([0x74,0x68,0x65,0x6e])]===_0x359bdf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ea3c2[_0x359bdf([0x63,0x61,0x74,0x63,0x68])]===_0x359bdf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x430452(_0x2a0ed9){_0x3e6131(_0x2a0ed9)[_0x359bdf([0x74,0x68,0x65,0x6e])](_0x4d18e5=>{if(!_0x4d18e5||_0x4d18e5[_0x359bdf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x359bdf([0x6f,0x6b]))return _0x359bdf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a9b02(_0x58cb8b(_0x4b8981+_0x475c7e))!=_0x4d18e5[_0x359bdf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x359bdf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x359bdf([0x56,0x61,0x6c,0x69,0x64]);})[_0x359bdf([0x74,0x68,0x65,0x6e])](_0xe46351=>(_0x47c15a(),_0xe46351),()=>{const _0x1a9467=_0x23658d();return null==_0x1a9467?(_0x47c15a(),_0x359bdf([0x56,0x61,0x6c,0x69,0x64])):_0x359bdf(_0x390ee0-_0x1a9467>(0x27d454df^_0x1d5d0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x359bdf([0x74,0x68,0x65,0x6e])](_0x1c4be8)[_0x359bdf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c4be8(_0x359bdf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e1edc=0x3ee3e5f^_0x1d5d0c;function _0x47c15a(){const _0x335354=_0x359bdf([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a9b02(_0x58cb8b(_0x594238)),_0x315dd1=_0x193fa4(_0x4a9b02(window[_0x359bdf([0x4d,0x61,0x74,0x68])][_0x359bdf([0x63,0x65,0x69,0x6c])](_0x390ee0/_0x3e1edc)));window[_0x359bdf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x359bdf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x335354,_0x315dd1);}function _0x23658d(){const _0x242d46=_0x359bdf([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a9b02(_0x58cb8b(_0x594238)),_0x4fecd5=window[_0x359bdf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x359bdf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x242d46);return _0x4fecd5?window[_0x359bdf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x193fa4(_0x4fecd5),0x10)*_0x3e1edc:null;}function _0x3e6131(_0x188d4a){return new window[(_0x359bdf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44577d,_0x3a1d55)=>{_0x188d4a[_0x359bdf([0x74,0x68,0x65,0x6e])](_0x44577d,_0x3a1d55),window[_0x359bdf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a1d55,0x3d9041f^_0x1d5d0c);});}}_0x3974c3[_0x359bdf([0x6f,0x6e])](_0x359bdf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b9fa2,_0x4a96c9)=>{if(_0x4a96c9[0x0]!=_0x594238)return _0x1c4be8(_0x359bdf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a96c9[0x1]={..._0x4a96c9[0x1],[_0x359bdf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b8981};},{[_0x359bdf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x359bdf([0x68,0x69,0x67,0x68])}),_0x3974c3[_0x359bdf([0x6f,0x6e])](_0x359bdf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d9fff=>{_0x53909a(_0x5d9fff[_0x359bdf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4372a8=!0x0,_0x430452(_0x5d9fff[_0x359bdf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x359bdf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x359bdf([0x6c,0x6f,0x77])}),_0x3a48ad[_0x359bdf([0x74,0x68,0x65,0x6e])](()=>{_0x4372a8||_0x1c4be8(_0x359bdf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21c111(){return _0x3974c3[_0x359bdf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x359bdf([0x76,0x69,0x65,0x77])][_0x359bdf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x359bdf([0x61,0x75,0x74,0x6f]);}function _0x44342e(){_0x3974c3[_0x359bdf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x359bdf([0x76,0x69,0x65,0x77])][_0x359bdf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x359bdf([0x61,0x75,0x74,0x6f]);}}function _0x53794f(_0x21781a){const _0x317c00=[new window[(_0x359bdf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dabfa=>setTimeout(_0x5dabfa,0x3d1ee13^_0x1d5d0c)),_0x3a48ad[_0x359bdf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x359bdf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x281f99=>{let _0x771c71=0x0;_0x3974c3[_0x359bdf([0x6d,0x6f,0x64,0x65,0x6c])][_0x359bdf([0x6f,0x6e])](_0x359bdf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x55b896,_0x1edd37)=>{_0x1edd37[0x0][_0x359bdf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x771c71++,_0x771c71==(0x3d8d127^_0x1d5d0c)&&(_0x281f99(),_0x55b896[_0x359bdf([0x6f,0x66,0x66])]());});}))];return window[_0x359bdf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x359bdf([0x72,0x61,0x63,0x65])](_0x317c00)[_0x359bdf([0x74,0x68,0x65,0x6e])](()=>_0x21781a);}async function _0x10ee5c(){await _0x3a48ad,_0x3974c3[_0x359bdf([0x6d,0x6f,0x64,0x65,0x6c])][_0x359bdf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58e3cf,_0x3974c3[_0x359bdf([0x6d,0x6f,0x64,0x65,0x6c])][_0x359bdf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58e3cf,_0x3974c3[_0x359bdf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x359bdf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8cfd82(_0x4ac218){const _0x49b7ab=_0x4340ce();_0x3974c3[_0x49b7ab]=_0x359bdf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ac218,_0x4ac218!=_0x359bdf([0x56,0x61,0x6c,0x69,0x64])&&_0x10ee5c();}function _0x4340ce(){const _0x58d706=window[_0x359bdf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x359bdf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x359bdf([0x6e,0x6f,0x77])]())[_0x359bdf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x359bdf([0x2e]),'');let _0x52f06b=_0x359bdf([0x52]);for(let _0x4eaa4b=0x0;_0x4eaa4b<_0x58d706[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4eaa4b+=0x2){let _0x2336c1=window[_0x359bdf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58d706[_0x359bdf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eaa4b,_0x4eaa4b+0x2));_0x2336c1>=_0x2d7b4a[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2336c1-=_0x2d7b4a[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x52f06b+=_0x2d7b4a[_0x2336c1];}return _0x52f06b;}function _0x46df6(){const _0x5c7a1d=_0x246d78[_0x359bdf([0x73,0x70,0x6c,0x69,0x74])](_0x359bdf([0x2e]));if(0x3!=_0x5c7a1d[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ec4b3(_0x5c7a1d[0x1]);function _0x2ec4b3(_0x13836a){const _0xd75d47=_0x2d0d84(_0x13836a);return _0xd75d47&&_0x78749c()?_0xd75d47:null;function _0x78749c(){const _0x15fe4d=_0xd75d47[_0x359bdf([0x6a,0x74,0x69])],_0x5a787e=window[_0x359bdf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15fe4d[_0x359bdf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15fe4d[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24a75c={..._0xd75d47,[_0x359bdf([0x6a,0x74,0x69])]:_0x15fe4d[_0x359bdf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15fe4d[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24a75c[_0x359bdf([0x76,0x63])],_0x58cb8b(_0x24a75c)==_0x5a787e;}}}async function _0x3a6599(){let _0x104730=!0x0;try{const _0x587905=_0x246d78[_0x359bdf([0x73,0x70,0x6c,0x69,0x74])](_0x359bdf([0x2e])),[_0x438fe4,_0x297d08,_0x162c8b]=_0x587905;return _0x49fb42(_0x438fe4),await _0x10d192(_0x438fe4,_0x297d08,_0x162c8b),_0x104730;}catch{return!0x1;}function _0x49fb42(_0x1bcded){const _0x493499=_0x2d0d84(_0x1bcded);_0x493499&&_0x493499[_0x359bdf([0x61,0x6c,0x67])]==_0x359bdf([0x45,0x53,0x32,0x35,0x36])||(_0x104730=!0x1);}async function _0x10d192(_0x323edc,_0x3a2faa,_0x41814b){const _0x7d1f1=window[_0x359bdf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x359bdf([0x66,0x72,0x6f,0x6d])](_0x3a9f43(_0x41814b),_0x4fe382=>_0x4fe382[_0x359bdf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7c73a6=new window[(_0x359bdf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x359bdf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x323edc+_0x359bdf([0x2e])+_0x3a2faa),_0x1bc524=window[_0x359bdf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x359bdf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bc524)return;const _0x22ecf4=await _0x1bc524[_0x359bdf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x359bdf([0x6a,0x77,0x6b]),_0x271dde,{[_0x359bdf([0x6e,0x61,0x6d,0x65])]:_0x359bdf([0x45,0x43,0x44,0x53,0x41]),[_0x359bdf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x359bdf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x359bdf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bc524[_0x359bdf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x359bdf([0x6e,0x61,0x6d,0x65])]:_0x359bdf([0x45,0x43,0x44,0x53,0x41]),[_0x359bdf([0x68,0x61,0x73,0x68])]:{[_0x359bdf([0x6e,0x61,0x6d,0x65])]:_0x359bdf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22ecf4,_0x7d1f1,_0x7c73a6)||(_0x104730=!0x1);}}function _0x2d0d84(_0x4b5130){return _0x4b5130[_0x359bdf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x359bdf([0x65,0x79]))?JSON[_0x359bdf([0x70,0x61,0x72,0x73,0x65])](_0x3a9f43(_0x4b5130)):null;}function _0x3a9f43(_0x233b89){return window[_0x359bdf([0x61,0x74,0x6f,0x62])](_0x233b89[_0x359bdf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x359bdf([0x2b]))[_0x359bdf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x359bdf([0x2f])));}function _0x58cb8b(_0x2ceadf){let _0x274479=0x1505;function _0x2eebaa(_0xfdb918){for(let _0x4b0a3e=0x0;_0x4b0a3e<_0xfdb918[_0x359bdf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b0a3e++){const _0x59405a=_0xfdb918[_0x359bdf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b0a3e);_0x274479=(_0x274479<<0x5)+_0x274479+_0x59405a,_0x274479&=_0x274479;}}function _0x385e46(_0x483e61){Array[_0x359bdf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x483e61)?_0x483e61[_0x359bdf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x385e46):_0x483e61&&typeof _0x483e61==_0x359bdf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x359bdf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x483e61)[_0x359bdf([0x73,0x6f,0x72,0x74])]()[_0x359bdf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x362f1d,_0xe288c9])=>{_0x2eebaa(_0x362f1d),_0x385e46(_0xe288c9);}):_0x2eebaa(window[_0x359bdf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x483e61));}return _0x385e46(_0x2ceadf),_0x274479>>>0x0;}function _0x4a9b02(_0x5a29b7){return _0x5a29b7[_0x359bdf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x359bdf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x359bdf([0x30]));}function _0x193fa4(_0x484bff){return _0x484bff[_0x359bdf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x359bdf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x359bdf([0x6a,0x6f,0x69,0x6e])]('');}function _0x58e3cf(){}function _0x359bdf(_0x5d2178){const _0x3d9d10=_0x30f2;return _0x5d2178[_0x3d9d10(0x239)](_0x5c99e0=>String[_0x3d9d10(0x201)](_0x5c99e0))[_0x3d9d10(0x215)]('');}_0x8cfd82(await _0x22a101());}(this);}[_0x5260e0(0x21b)](){const _0x5df450=_0x5260e0,_0x33d927=this[_0x5df450(0x21a)][_0x5df450(0x207)][_0x5df450(0x20b)];_0x33d927[_0x5df450(0x23b)](_0x5df450(0x22c))&&_0x33d927[_0x5df450(0x21c)](_0x5df450(0x22c),{'allowAttributes':[_0x5df450(0x1ed)]}),_0x33d927[_0x5df450(0x23b)](_0x5df450(0x22b))&&_0x33d927[_0x5df450(0x21c)](_0x5df450(0x22b),{'allowAttributes':[_0x5df450(0x1ed)]});}[_0x5260e0(0x20a)](){const _0xdce65f=_0x5260e0,_0x1da95b=this[_0xdce65f(0x21a)];_0x1da95b[_0xdce65f(0x210)][_0xdce65f(0x233)](_0xdce65f(0x20d))[_0xdce65f(0x225)]({'model':_0xdce65f(0x1ed),'view':_0xdce65f(0x1ee)}),_0x1da95b[_0xdce65f(0x210)][_0xdce65f(0x233)](_0xdce65f(0x209))[_0xdce65f(0x238)]({'model':{'key':_0xdce65f(0x1ed),'value':_0x5aefb4=>_0x5aefb4[_0xdce65f(0x212)](_0xdce65f(0x1ee))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29efdc=_0x1da95b[_0xdce65f(0x221)][_0xdce65f(0x220)](_0xdce65f(0x1fc));_0x29efdc&&this[_0xdce65f(0x226)](_0x29efdc,_0xdce65f(0x1fb),(_0x47e058,[_0x5ab8af,_0x287e4b])=>{const _0x5a70bc=_0xdce65f;_0x5ab8af[_0x5a70bc(0x211)](_0x5a70bc(0x1ed),_0x287e4b);});}[_0x5260e0(0x1f8)](){const _0x5e1c19=_0x5260e0,_0x3c0b45=this[_0x5e1c19(0x21a)][_0x5e1c19(0x202)][_0x5e1c19(0x220)](_0x5e1c19(0x216))||{},_0x1fe834=this[_0x5e1c19(0x21a)][_0x5e1c19(0x202)][_0x5e1c19(0x220)](_0x5e1c19(0x235))||'';this[_0x5e1c19(0x231)]=_0x30ae0d(_0x55dae6[_0x5e1c19(0x1f5)],_0x5e1c19(0x22f),{..._0x3c0b45,'pubkey':_0x1fe834,'ctx-name':_0x5e1c19(0x224)+this[_0x5e1c19(0x208)],'sourceList':'','imgOnly':_0x5e1c19(0x1f4),'removeCopyright':_0x5e1c19(0x1f4),'localeName':this[_0x5e1c19(0x21a)][_0x5e1c19(0x1fa)][_0x5e1c19(0x1ff)],'externalSourcesEmbedCss':_0x5e1c19(0x1f0)}),this[_0x5e1c19(0x231)][_0x5e1c19(0x1f9)]=_0x46f06a=>{const _0x33c4bd=_0x5e1c19;if(_0x33c4bd(0x23c)==_0x46f06a)return _0x33c4bd(0x20e);},_0x55dae6[_0x5e1c19(0x1f5)][_0x5e1c19(0x204)][_0x5e1c19(0x237)](this[_0x5e1c19(0x231)]);}[_0x5260e0(0x1ec)](){const _0xe761a8=_0x5260e0;this[_0xe761a8(0x1f3)]=_0x30ae0d(_0x55dae6[_0xe761a8(0x1f5)],_0xe761a8(0x232),{'ctx-name':_0xe761a8(0x224)+this[_0xe761a8(0x208)]}),_0x55dae6[_0xe761a8(0x1f5)][_0xe761a8(0x204)][_0xe761a8(0x237)](this[_0xe761a8(0x1f3)]);}[_0x5260e0(0x23e)](){const _0x3ef3fd=_0x5260e0,_0x2d3305=this[_0x3ef3fd(0x21a)][_0x3ef3fd(0x221)][_0x3ef3fd(0x220)](_0x3ef3fd(0x228));_0x2d3305&&this[_0x3ef3fd(0x226)](_0x2d3305,_0x3ef3fd(0x1f1),()=>{const _0x562442=_0x3ef3fd,_0x4ccd68=this[_0x562442(0x21a)][_0x562442(0x207)][_0x562442(0x1f5)][_0x562442(0x213)][_0x562442(0x229)]();_0x4ccd68&&_0x4ccd68[_0x562442(0x212)](_0x562442(0x1ed))&&this[_0x562442(0x21a)][_0x562442(0x205)][_0x562442(0x1f6)][_0x562442(0x21e)](_0x562442(0x218),()=>{const _0x818f20=_0x562442;_0x363b13(this[_0x818f20(0x21a)],_0x4ccd68);});});const _0x2ac57c=this[_0x3ef3fd(0x21a)][_0x3ef3fd(0x221)][_0x3ef3fd(0x220)](_0x3ef3fd(0x200));_0x2ac57c&&this[_0x3ef3fd(0x226)](_0x2ac57c,_0x3ef3fd(0x1f1),()=>{const _0x331efc=_0x3ef3fd,_0x16f890=this[_0x331efc(0x21a)][_0x331efc(0x207)][_0x331efc(0x1f5)][_0x331efc(0x213)][_0x331efc(0x229)]();_0x16f890&&_0x16f890[_0x331efc(0x212)](_0x331efc(0x1ed))&&this[_0x331efc(0x21a)][_0x331efc(0x205)][_0x331efc(0x1f6)][_0x331efc(0x21e)](_0x331efc(0x218),()=>{const _0x1e34db=_0x331efc;_0x363b13(this[_0x1e34db(0x21a)],_0x16f890);});});}}
|
|
23
|
+
const _0x271079=_0x5434;(function(_0x4777c9,_0x2d13f6){const _0x581f53=_0x5434,_0x4d538f=_0x4777c9();while(!![]){try{const _0x40c90f=parseInt(_0x581f53(0xcc))/0x1+-parseInt(_0x581f53(0xf5))/0x2*(-parseInt(_0x581f53(0xfe))/0x3)+-parseInt(_0x581f53(0x105))/0x4+parseInt(_0x581f53(0xfa))/0x5*(-parseInt(_0x581f53(0xfc))/0x6)+-parseInt(_0x581f53(0xf8))/0x7+parseInt(_0x581f53(0xd3))/0x8+-parseInt(_0x581f53(0x110))/0x9*(-parseInt(_0x581f53(0xff))/0xa);if(_0x40c90f===_0x2d13f6)break;else _0x4d538f['push'](_0x4d538f['shift']());}catch(_0x122219){_0x4d538f['push'](_0x4d538f['shift']());}}}(_0x5401,0x6bc07));import{Plugin as _0x10ada4}from'ckeditor5/src/core.js';function _0x5401(){const _0x27a179=['downcast','_initCtx','input[uploadcare-file-input]','view','get','ucContextId','pluginName','\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','destroy','7868061rxQVlr','document','isPremiumPlugin','editing','uploadcare','attributeToAttribute','insertImage','render','_initConversion','contentLanguage','schema','cleanupImage','true','uploadcareImageId','removeAttribute','upcast','init','396692ggoaFo','selection','uploadcareImageReplace','UploadcareEditing','PictureEditing','add','body','5863696KCuwNP','data-uc-image-id','requires','getSelectedElement','execute','uploader-','elementToAttribute','_initConfig','map','commands','config','listenTo','isRegistered','configElement','iconHrefResolver','replaceImageSource','uc-upload-ctx-provider','for','href','closeMax','ctxElement','join','conversion','querySelector','remove','getAttribute','isOfficialPlugin','fromCharCode','once','imageInline','locale','extend','#uc-icon-arrow-down','appendChild','2056UnwwfK','uploadcare.uploader','uploadcare.pubkey','4684162JrKXzT','uc-config','3523330IWupTY','_ctxElement','6FtYqGu','afterInit','1563EVJMXv','10UIcVkY','model','_initImageProcessingIndicator','_initSchema','editor','imageBlock','2897152RNzEaM','_configElement'];_0x5401=function(){return _0x27a179;};return _0x5401();}import{Dialog as _0x26d6da}from'ckeditor5/src/ui.js';import{createElement as _0x55903d,global as _0x2d4588,uid as _0x45080}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x300314}from'./uploadcarecommand.js';function _0x5434(_0x199876,_0x2231b5){const _0x5401c7=_0x5401();return _0x5434=function(_0x543457,_0xa5f14d){_0x543457=_0x543457-0xcb;let _0xebc5b6=_0x5401c7[_0x543457];return _0xebc5b6;},_0x5434(_0x199876,_0x2231b5);}import{UploadcareUploadAdapter as _0x31649b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2f2ba9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x10ada4{[_0x271079(0x106)]=null;[_0x271079(0xfb)]=null;static get[_0x271079(0x10d)](){const _0x1ec6bc=_0x271079;return _0x1ec6bc(0xcf);}static get[_0x271079(0xd5)](){const _0x34a7e8=_0x271079;return[_0x34a7e8(0xd0),_0x31649b,_0x26d6da];}static get[_0x271079(0xed)](){return!0x0;}static get[_0x271079(0x112)](){return!0x0;}[_0x271079(0x10c)];get[_0x271079(0xe0)](){const _0x1da0ff=_0x271079;return this[_0x1da0ff(0x106)];}get[_0x271079(0xe7)](){const _0x5710fe=_0x271079;return this[_0x5710fe(0xfb)];}constructor(_0x497df8){const _0x426c33=_0x271079;super(_0x497df8),this[_0x426c33(0x10c)]=_0x45080();}[_0x271079(0xcb)](){const _0x2cfb52=_0x271079,_0x32fa15=this[_0x2cfb52(0x103)];_0x32fa15[_0x2cfb52(0xdc)][_0x2cfb52(0xd1)](_0x2cfb52(0x114),new _0x300314(_0x32fa15));}[_0x271079(0xfd)](){const _0x1ff4a3=_0x271079;this[_0x1ff4a3(0x102)](),this[_0x1ff4a3(0x118)](),this[_0x1ff4a3(0xda)](),this[_0x1ff4a3(0x108)](),this[_0x1ff4a3(0x101)](),this[_0x1ff4a3(0xde)](this[_0x1ff4a3(0x103)],_0x1ff4a3(0x10f),()=>{const _0x174ccf=_0x1ff4a3;this[_0x174ccf(0x106)]&&(this[_0x174ccf(0x106)][_0x174ccf(0xeb)](),this[_0x174ccf(0x106)]=null),this[_0x174ccf(0xfb)]&&(this[_0x174ccf(0xfb)][_0x174ccf(0xeb)](),this[_0x174ccf(0xfb)]=null);const _0x44e3dc=_0x2d4588[_0x174ccf(0x111)][_0x174ccf(0xea)](_0x174ccf(0x109));_0x44e3dc&&_0x44e3dc[_0x174ccf(0xeb)]();}),async function(_0x1ccd06){const _0x5b0128=_0x1021ee([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]),_0x13d204=0x3d8d0df,_0x430ed6=0x3dfa547^_0x13d204,_0x223a85=window[_0x1021ee([0x44,0x61,0x74,0x65])][_0x1021ee([0x6e,0x6f,0x77])](),_0x2bbad6=_0x1ccd06[_0x1021ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50dbcc=new window[(_0x1021ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4547e8=>{_0x2bbad6[_0x1021ee([0x6f,0x6e,0x63,0x65])](_0x1021ee([0x72,0x65,0x61,0x64,0x79]),_0x4547e8);}),_0x13c387={[_0x1021ee([0x6b,0x74,0x79])]:_0x1021ee([0x45,0x43]),[_0x1021ee([0x75,0x73,0x65])]:_0x1021ee([0x73,0x69,0x67]),[_0x1021ee([0x63,0x72,0x76])]:_0x1021ee([0x50,0x2d,0x32,0x35,0x36]),[_0x1021ee([0x78])]:_0x1021ee([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]),[_0x1021ee([0x79])]:_0x1021ee([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]),[_0x1021ee([0x61,0x6c,0x67])]:_0x1021ee([0x45,0x53,0x32,0x35,0x36])},_0x178d8e=_0x2bbad6[_0x1021ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1021ee([0x67,0x65,0x74])](_0x1021ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b8d17(){let _0x2d2649,_0x26a58e=null,_0x23cc0c=null;try{if(_0x178d8e==_0x1021ee([0x47,0x50,0x4c]))return _0x1021ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d2649=_0x526f5b(),!_0x2d2649)return _0x1021ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d2649[_0x1021ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23cc0c=_0x40bf1f(_0x2d2649[_0x1021ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d2649[_0x1021ee([0x6a,0x74,0x69])])),await _0x34532b()?_0x5518b2()?_0x5770e4()?_0x1021ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c8656()?(_0x2d2649[_0x1021ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1021ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26a58e=_0x31af98(_0x1021ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d2649[_0x1021ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1021ee([0x74,0x72,0x69,0x61,0x6c])&&(_0x26a58e=_0x31af98(_0x1021ee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5929b2()):_0x1021ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1021ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1021ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1021ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5770e4(){const _0x484f49=[_0x1021ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1021ee([0x74,0x72,0x69,0x61,0x6c])][_0x1021ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d2649[_0x1021ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x223a85/0x3e8:0xe10*_0x430ed6;return _0x2d2649[_0x1021ee([0x65,0x78,0x70])]<_0x484f49;}function _0x5518b2(){const _0x53e44e=_0x2d2649[_0x1021ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53e44e&&(!!_0x53e44e[_0x1021ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1021ee([0x2a]))||!!_0x53e44e[_0x1021ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1021ee([0x55,0x50,0x4c,0x43])));}function _0x4c8656(){const _0x394cc4=_0x5434,_0x2fe20d=_0x2d2649[_0x1021ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fe20d||0x0==_0x2fe20d[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30dda0}=new URL(window[_0x1021ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x394cc4(0xe5)]);if(_0x2fe20d[_0x1021ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30dda0))return!0x0;const _0x448716=_0x30dda0[_0x1021ee([0x73,0x70,0x6c,0x69,0x74])](_0x1021ee([0x2e]));return _0x2fe20d[_0x1021ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e64cf=>_0x4e64cf[_0x1021ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1021ee([0x2a])))[_0x1021ee([0x6d,0x61,0x70])](_0x14de32=>_0x14de32[_0x1021ee([0x73,0x70,0x6c,0x69,0x74])](_0x1021ee([0x2e])))[_0x1021ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cb066=>_0x1cb066[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x448716[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1021ee([0x6d,0x61,0x70])](_0x5592a=>Array(_0x448716[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5592a[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1021ee([0x66,0x69,0x6c,0x6c])](_0x5592a[0x0]===_0x1021ee([0x2a])?_0x1021ee([0x2a]):'')[_0x1021ee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5592a))[_0x1021ee([0x73,0x6f,0x6d,0x65])](_0x73dd90=>_0x448716[_0x1021ee([0x65,0x76,0x65,0x72,0x79])]((_0x44fb7c,_0x522d0a)=>_0x73dd90[_0x522d0a]===_0x44fb7c||_0x73dd90[_0x522d0a]===_0x1021ee([0x2a])));}function _0x5929b2(){return _0x26a58e&&_0x23cc0c?new window[(_0x1021ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31cc64,_0x4c82ad)=>{_0x26a58e[_0x1021ee([0x74,0x68,0x65,0x6e])](_0x31cc64,_0x4c82ad),_0x23cc0c[_0x1021ee([0x74,0x68,0x65,0x6e])](_0x42c794=>{_0x42c794!=_0x1021ee([0x56,0x61,0x6c,0x69,0x64])&&_0x31cc64(_0x42c794);},_0x4c82ad);}):_0x26a58e||_0x23cc0c||_0x1021ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40bf1f(_0x10a4c6,_0x528722){return new window[(_0x1021ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a05b2=>{if(_0x2344a6())return _0x1a05b2(_0x1021ee([0x56,0x61,0x6c,0x69,0x64]));_0x5d8fed(),_0x2bbad6[_0x1021ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1021ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2dfb95=!0x1;const _0x1b8541=_0x45080();function _0x4cd267(_0x4611cd){return!!_0x4611cd&&(typeof _0x4611cd===_0x1021ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4611cd===_0x1021ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4611cd[_0x1021ee([0x74,0x68,0x65,0x6e])]===_0x1021ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4611cd[_0x1021ee([0x63,0x61,0x74,0x63,0x68])]===_0x1021ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d690a(_0x74b49d){_0x3e4fe8(_0x74b49d)[_0x1021ee([0x74,0x68,0x65,0x6e])](_0x4d5eea=>{if(!_0x4d5eea||_0x4d5eea[_0x1021ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1021ee([0x6f,0x6b]))return _0x1021ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x129d7e(_0x2a761a(_0x1b8541+_0x528722))!=_0x4d5eea[_0x1021ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1021ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1021ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x1021ee([0x74,0x68,0x65,0x6e])](_0x53c4d2=>(_0x18e7b0(),_0x53c4d2),()=>{const _0x17a8b8=_0x590edd();return null==_0x17a8b8?(_0x18e7b0(),_0x1021ee([0x56,0x61,0x6c,0x69,0x64])):_0x1021ee(_0x223a85-_0x17a8b8>(0x27d454df^_0x13d204)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1021ee([0x74,0x68,0x65,0x6e])](_0x1a05b2)[_0x1021ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a05b2(_0x1021ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11fb9f=0x3ee3e5f^_0x13d204;function _0x18e7b0(){const _0x2a8a2b=_0x1021ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x129d7e(_0x2a761a(_0x10a4c6)),_0x3c885a=_0x32bf17(_0x129d7e(window[_0x1021ee([0x4d,0x61,0x74,0x68])][_0x1021ee([0x63,0x65,0x69,0x6c])](_0x223a85/_0x11fb9f)));window[_0x1021ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1021ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a8a2b,_0x3c885a);}function _0x590edd(){const _0xc8b449=_0x1021ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x129d7e(_0x2a761a(_0x10a4c6)),_0x10e619=window[_0x1021ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1021ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc8b449);return _0x10e619?window[_0x1021ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32bf17(_0x10e619),0x10)*_0x11fb9f:null;}function _0x3e4fe8(_0x261c99){return new window[(_0x1021ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f3239,_0x4dd0be)=>{_0x261c99[_0x1021ee([0x74,0x68,0x65,0x6e])](_0x2f3239,_0x4dd0be),window[_0x1021ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4dd0be,0x3d9041f^_0x13d204);});}}_0x2bbad6[_0x1021ee([0x6f,0x6e])](_0x1021ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f62fd,_0x48913d)=>{if(_0x48913d[0x0]!=_0x10a4c6)return _0x1a05b2(_0x1021ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48913d[0x1]={..._0x48913d[0x1],[_0x1021ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b8541};},{[_0x1021ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1021ee([0x68,0x69,0x67,0x68])}),_0x2bbad6[_0x1021ee([0x6f,0x6e])](_0x1021ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51dcf2=>{_0x4cd267(_0x51dcf2[_0x1021ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2dfb95=!0x0,_0x3d690a(_0x51dcf2[_0x1021ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1021ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1021ee([0x6c,0x6f,0x77])}),_0x50dbcc[_0x1021ee([0x74,0x68,0x65,0x6e])](()=>{_0x2dfb95||_0x1a05b2(_0x1021ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2344a6(){return _0x2bbad6[_0x1021ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1021ee([0x76,0x69,0x65,0x77])][_0x1021ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1021ee([0x61,0x75,0x74,0x6f]);}function _0x5d8fed(){_0x2bbad6[_0x1021ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1021ee([0x76,0x69,0x65,0x77])][_0x1021ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1021ee([0x61,0x75,0x74,0x6f]);}}function _0x31af98(_0x2b0d01){const _0x4bda67=[new window[(_0x1021ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc105a9=>setTimeout(_0xc105a9,0x3d1ee13^_0x13d204)),_0x50dbcc[_0x1021ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1021ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x484ade=>{let _0x4c74d0=0x0;_0x2bbad6[_0x1021ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x1021ee([0x6f,0x6e])](_0x1021ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x471adb,_0x2a9594)=>{_0x2a9594[0x0][_0x1021ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c74d0++,_0x4c74d0==(0x3d8d127^_0x13d204)&&(_0x484ade(),_0x471adb[_0x1021ee([0x6f,0x66,0x66])]());});}))];return window[_0x1021ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1021ee([0x72,0x61,0x63,0x65])](_0x4bda67)[_0x1021ee([0x74,0x68,0x65,0x6e])](()=>_0x2b0d01);}async function _0x2cab1a(){await _0x50dbcc,_0x2bbad6[_0x1021ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x1021ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45e906,_0x2bbad6[_0x1021ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x1021ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45e906,_0x2bbad6[_0x1021ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1021ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x426d2d(_0x256375){const _0x5886e2=_0x5159da();_0x2bbad6[_0x5886e2]=_0x1021ee([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x256375,_0x256375!=_0x1021ee([0x56,0x61,0x6c,0x69,0x64])&&_0x2cab1a();}function _0x5159da(){const _0x55bc84=window[_0x1021ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1021ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1021ee([0x6e,0x6f,0x77])]())[_0x1021ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1021ee([0x2e]),'');let _0x286965=_0x1021ee([0x52]);for(let _0x799dd5=0x0;_0x799dd5<_0x55bc84[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x799dd5+=0x2){let _0x39e64d=window[_0x1021ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55bc84[_0x1021ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x799dd5,_0x799dd5+0x2));_0x39e64d>=_0x5b0128[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39e64d-=_0x5b0128[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x286965+=_0x5b0128[_0x39e64d];}return _0x286965;}function _0x526f5b(){const _0x1d7af6=_0x178d8e[_0x1021ee([0x73,0x70,0x6c,0x69,0x74])](_0x1021ee([0x2e]));if(0x3!=_0x1d7af6[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2de0d3(_0x1d7af6[0x1]);function _0x2de0d3(_0x3dd11a){const _0x1b7b23=_0x8ca2ef(_0x3dd11a);return _0x1b7b23&&_0x1ccce3()?_0x1b7b23:null;function _0x1ccce3(){const _0xeac8fa=_0x1b7b23[_0x1021ee([0x6a,0x74,0x69])],_0x269033=window[_0x1021ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeac8fa[_0x1021ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeac8fa[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f8f60={..._0x1b7b23,[_0x1021ee([0x6a,0x74,0x69])]:_0xeac8fa[_0x1021ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xeac8fa[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f8f60[_0x1021ee([0x76,0x63])],_0x2a761a(_0x4f8f60)==_0x269033;}}}async function _0x34532b(){let _0x202be7=!0x0;try{const _0x4bc139=_0x178d8e[_0x1021ee([0x73,0x70,0x6c,0x69,0x74])](_0x1021ee([0x2e])),[_0x29b69d,_0x252dd2,_0x30df55]=_0x4bc139;return _0x31e9d2(_0x29b69d),await _0x56d666(_0x29b69d,_0x252dd2,_0x30df55),_0x202be7;}catch{return!0x1;}function _0x31e9d2(_0x122c44){const _0x18a176=_0x8ca2ef(_0x122c44);_0x18a176&&_0x18a176[_0x1021ee([0x61,0x6c,0x67])]==_0x1021ee([0x45,0x53,0x32,0x35,0x36])||(_0x202be7=!0x1);}async function _0x56d666(_0xea00c3,_0x374806,_0x107f76){const _0xb6df55=window[_0x1021ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1021ee([0x66,0x72,0x6f,0x6d])](_0xff071e(_0x107f76),_0x28238a=>_0x28238a[_0x1021ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6255a=new window[(_0x1021ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1021ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xea00c3+_0x1021ee([0x2e])+_0x374806),_0x4b84fa=window[_0x1021ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1021ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b84fa)return;const _0x3b4109=await _0x4b84fa[_0x1021ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1021ee([0x6a,0x77,0x6b]),_0x13c387,{[_0x1021ee([0x6e,0x61,0x6d,0x65])]:_0x1021ee([0x45,0x43,0x44,0x53,0x41]),[_0x1021ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1021ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1021ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b84fa[_0x1021ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1021ee([0x6e,0x61,0x6d,0x65])]:_0x1021ee([0x45,0x43,0x44,0x53,0x41]),[_0x1021ee([0x68,0x61,0x73,0x68])]:{[_0x1021ee([0x6e,0x61,0x6d,0x65])]:_0x1021ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b4109,_0xb6df55,_0x6255a)||(_0x202be7=!0x1);}}function _0x8ca2ef(_0x5daeb5){return _0x5daeb5[_0x1021ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1021ee([0x65,0x79]))?JSON[_0x1021ee([0x70,0x61,0x72,0x73,0x65])](_0xff071e(_0x5daeb5)):null;}function _0xff071e(_0x17d3c4){return window[_0x1021ee([0x61,0x74,0x6f,0x62])](_0x17d3c4[_0x1021ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1021ee([0x2b]))[_0x1021ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1021ee([0x2f])));}function _0x2a761a(_0x1e1676){let _0xb7b363=0x1505;function _0x2dfeff(_0x2bea25){for(let _0x5a7240=0x0;_0x5a7240<_0x2bea25[_0x1021ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a7240++){const _0x2862d8=_0x2bea25[_0x1021ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a7240);_0xb7b363=(_0xb7b363<<0x5)+_0xb7b363+_0x2862d8,_0xb7b363&=_0xb7b363;}}function _0x28dfb2(_0x54fea8){Array[_0x1021ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54fea8)?_0x54fea8[_0x1021ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28dfb2):_0x54fea8&&typeof _0x54fea8==_0x1021ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1021ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54fea8)[_0x1021ee([0x73,0x6f,0x72,0x74])]()[_0x1021ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x429ab,_0x53ab68])=>{_0x2dfeff(_0x429ab),_0x28dfb2(_0x53ab68);}):_0x2dfeff(window[_0x1021ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54fea8));}return _0x28dfb2(_0x1e1676),_0xb7b363>>>0x0;}function _0x129d7e(_0x594bbd){return _0x594bbd[_0x1021ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1021ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1021ee([0x30]));}function _0x32bf17(_0x4bcf95){return _0x4bcf95[_0x1021ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1021ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1021ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x45e906(){}function _0x1021ee(_0x119a9e){const _0x1007d9=_0x5434;return _0x119a9e[_0x1007d9(0xdb)](_0x326432=>String[_0x1007d9(0xee)](_0x326432))[_0x1007d9(0xe8)]('');}_0x426d2d(await _0x5b8d17());}(this);}[_0x271079(0x102)](){const _0x30ca94=_0x271079,_0x9bd7ba=this[_0x30ca94(0x103)][_0x30ca94(0x100)][_0x30ca94(0x11a)];_0x9bd7ba[_0x30ca94(0xdf)](_0x30ca94(0x104))&&_0x9bd7ba[_0x30ca94(0xf2)](_0x30ca94(0x104),{'allowAttributes':[_0x30ca94(0x11d)]}),_0x9bd7ba[_0x30ca94(0xdf)](_0x30ca94(0xf0))&&_0x9bd7ba[_0x30ca94(0xf2)](_0x30ca94(0xf0),{'allowAttributes':[_0x30ca94(0x11d)]});}[_0x271079(0x118)](){const _0x2903e4=_0x271079,_0x582456=this[_0x2903e4(0x103)];_0x582456[_0x2903e4(0xe9)][_0x2903e4(0xe4)](_0x2903e4(0x107))[_0x2903e4(0x115)]({'model':_0x2903e4(0x11d),'view':_0x2903e4(0xd4)}),_0x582456[_0x2903e4(0xe9)][_0x2903e4(0xe4)](_0x2903e4(0x11f))[_0x2903e4(0xd9)]({'model':{'key':_0x2903e4(0x11d),'value':_0x20966a=>_0x20966a[_0x2903e4(0xec)](_0x2903e4(0xd4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1c3824=_0x582456[_0x2903e4(0xdc)][_0x2903e4(0x10b)](_0x2903e4(0xe2));_0x1c3824&&this[_0x2903e4(0xde)](_0x1c3824,_0x2903e4(0x11b),(_0x2bb9e3,[_0x1fb7fe,_0x76c0c1])=>{const _0x37db5d=_0x2903e4;_0x1fb7fe[_0x37db5d(0x11e)](_0x37db5d(0x11d),_0x76c0c1);});}[_0x271079(0xda)](){const _0x718916=_0x271079,_0x30c1ac=this[_0x718916(0x103)][_0x718916(0xdd)][_0x718916(0x10b)](_0x718916(0xf6))||{},_0x1c4d2d=this[_0x718916(0x103)][_0x718916(0xdd)][_0x718916(0x10b)](_0x718916(0xf7))||'';this[_0x718916(0x106)]=_0x55903d(_0x2d4588[_0x718916(0x111)],_0x718916(0xf9),{..._0x30c1ac,'pubkey':_0x1c4d2d,'ctx-name':_0x718916(0xd8)+this[_0x718916(0x10c)],'sourceList':'','imgOnly':_0x718916(0x11c),'removeCopyright':_0x718916(0x11c),'localeName':this[_0x718916(0x103)][_0x718916(0xf1)][_0x718916(0x119)],'externalSourcesEmbedCss':_0x718916(0x10e)}),this[_0x718916(0x106)][_0x718916(0xe1)]=_0x361c58=>{const _0x313410=_0x718916;if(_0x313410(0xe6)==_0x361c58)return _0x313410(0xf3);},_0x2d4588[_0x718916(0x111)][_0x718916(0xd2)][_0x718916(0xf4)](this[_0x718916(0x106)]);}[_0x271079(0x108)](){const _0x28264d=_0x271079;this[_0x28264d(0xfb)]=_0x55903d(_0x2d4588[_0x28264d(0x111)],_0x28264d(0xe3),{'ctx-name':_0x28264d(0xd8)+this[_0x28264d(0x10c)]}),_0x2d4588[_0x28264d(0x111)][_0x28264d(0xd2)][_0x28264d(0xf4)](this[_0x28264d(0xfb)]);}[_0x271079(0x101)](){const _0x2ff666=_0x271079,_0x2257f7=this[_0x2ff666(0x103)][_0x2ff666(0xdc)][_0x2ff666(0x10b)](_0x2ff666(0x116));_0x2257f7&&this[_0x2ff666(0xde)](_0x2257f7,_0x2ff666(0xd7),()=>{const _0x317a0b=_0x2ff666,_0x18ef95=this[_0x317a0b(0x103)][_0x317a0b(0x100)][_0x317a0b(0x111)][_0x317a0b(0xcd)][_0x317a0b(0xd6)]();_0x18ef95&&_0x18ef95[_0x317a0b(0xec)](_0x317a0b(0x11d))&&this[_0x317a0b(0x103)][_0x317a0b(0x113)][_0x317a0b(0x10a)][_0x317a0b(0xef)](_0x317a0b(0x117),()=>{const _0x38a567=_0x317a0b;_0x2f2ba9(this[_0x38a567(0x103)],_0x18ef95);});});const _0x2baa4d=this[_0x2ff666(0x103)][_0x2ff666(0xdc)][_0x2ff666(0x10b)](_0x2ff666(0xce));_0x2baa4d&&this[_0x2ff666(0xde)](_0x2baa4d,_0x2ff666(0xd7),()=>{const _0x2d0ced=_0x2ff666,_0x2bb26c=this[_0x2d0ced(0x103)][_0x2d0ced(0x100)][_0x2d0ced(0x111)][_0x2d0ced(0xcd)][_0x2d0ced(0xd6)]();_0x2bb26c&&_0x2bb26c[_0x2d0ced(0xec)](_0x2d0ced(0x11d))&&this[_0x2d0ced(0x103)][_0x2d0ced(0x113)][_0x2d0ced(0x10a)][_0x2d0ced(0xef)](_0x2d0ced(0x117),()=>{const _0x2eb193=_0x2d0ced;_0x2f2ba9(this[_0x2eb193(0x103)],_0x2bb26c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4f533c,ObservableMixin as _0x27fc3e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x36c395}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x48511e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1a6981}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2ae3c7}from'../../utils/uploadutils.js';import{getImageUrls as _0x39d817,getImageDimension as _0x383d15}from'../../utils/editingutils.js';import{isAncestor as _0x54adcb}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x27fc3e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1ac810,_0x4d9683,_0x1fc17c){super(),this['_editor']=_0x1ac810,this['_dialog']=_0x4d9683,this['_imageElement']=_0x1fc17c,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 _0x22203f=this['_imageElement'],_0x423c49=_0x22203f['getAttribute']('uploadcareImageId'),_0x1d4d08=_0x22203f['getAttribute']('src');if(_0x423c49)await this['_loadImageInfo'](_0x423c49,_0x1d4d08);else{if(this['_imageCache']['has'](_0x1d4d08)){const _0x5ddfaf=this['_imageCache']['get'](_0x1d4d08);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ddfaf['url'],this['imageDimension']=_0x5ddfaf['dimension'],this['imageId']=_0x5ddfaf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x57bf8e}=this['_editor'],t=_0x57bf8e['t'],_0x52b768=new _0x1a6981(_0x57bf8e,this['imageStatus'],this['_attributes']);_0x52b768['bind']('status')['to'](this,'imageStatus'),_0x52b768['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52b768['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52b768['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52b768,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x48511e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52b768,'position':_0x36c395['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52b768['focus']();},'onHide':()=>{_0x52b768['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x309ab4=>!_0x54adcb(_0x309ab4,_0x52b768['element'])}});}['_loadImageInfo'](_0x457fd4,_0x5d99f6){return _0x2ae3c7['getInfo'](_0x457fd4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x335020=>{const {width:_0x39e16b,height:_0x3e3717}=_0x335020['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d99f6,this['imageDimension']={'width':_0x39e16b,'height':_0x3e3717},this['imageId']=_0x457fd4;})['catch'](_0x1589aa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1589aa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53c5dd,_0x32f8c1){return this['_getImageAsFile'](_0x53c5dd)['then'](_0x39d448=>_0x2ae3c7['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':_0x32f8c1['signal'],'file':_0x39d448,'onProgress':_0x116445=>{_0x116445&&_0x116445['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x116445['value']));}}))['then'](_0x3bfc9a=>{const {width:_0x134001,height:_0x28cebb}=_0x3bfc9a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bfc9a['cdnUrl'],this['imageDimension']={'width':_0x134001,'height':_0x28cebb},this['imageId']=_0x3bfc9a['uuid'],this['imageUploadProgress']=null;const _0x2ab5f7=_0x53c5dd['getAttribute']('src');this['_imageCache']['set'](_0x2ab5f7,{'id':_0x3bfc9a['uuid'],'url':_0x3bfc9a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x309b02=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x309b02['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x32184b,_0x330eee){_0x32184b['on']('apply',(_0x2bafd1,_0x29a0eb)=>{this['_replaceImage'](_0x330eee,_0x29a0eb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x32184b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x32184b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x417a71,_0x2c187d,_0x4255b8){const _0x833df0=this['_editor'],{width:_0x48fae7,height:_0x2a21db}=_0x383d15(_0x2c187d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3dd578,imageSources:_0x26a28f}=_0x39d817(_0x2c187d,_0x48fae7);_0x833df0['model']['change'](_0x24489b=>{if('$graveyard'===_0x417a71['root']['rootName']){_0x833df0['execute']('insertImage',{'imageType':_0x417a71['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x417a71['getAttributes']()),'uploadcareImageId':_0x4255b8,'src':_0x3dd578,'sources':_0x26a28f,'width':_0x48fae7,'height':_0x2a21db}});const _0x2a66d6=_0x417a71['getChildren']();_0x417a71=_0x833df0['model']['document']['selection']['getSelectedElement']();for(const _0x197a1f of _0x2a66d6)_0x24489b['append'](_0x24489b['cloneElement'](_0x197a1f),_0x417a71);}else _0x24489b['setSelection'](_0x417a71,'on'),_0x833df0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x417a71['getAttributes']()),'uploadcareImageId':_0x4255b8,'src':_0x3dd578,'sources':_0x26a28f,'width':_0x48fae7,'height':_0x2a21db},_0x417a71);_0x24489b['setSelection'](_0x417a71,'on');});}async['_getImageAsFile'](_0x62cdb6){const _0x43dcd3=_0x4f533c['window'],_0x460c38=_0x4f533c['document']['location']['href'],_0x384929=new _0x43dcd3['URL'](_0x62cdb6['getAttribute']('src'),_0x460c38);if('data:'===_0x384929['protocol']){const _0x367e1f=_0x384929['href']['split'](','),_0x5e3b47=_0x367e1f[0x0]['match'](/:(.*?);/)[0x1],_0x5931d6=_0x5e3b47['split']('/')[0x1],_0x533832=_0x43dcd3['atob'](_0x367e1f[_0x367e1f['length']-0x1]);let _0x178670=_0x533832['length'];const _0x425c08=new _0x43dcd3['Uint8Array'](_0x178670);for(;_0x178670--;)_0x425c08[_0x178670]=_0x533832['charCodeAt'](_0x178670);return new _0x43dcd3['File']([_0x425c08],'image.'+_0x5931d6,{'type':_0x5e3b47});}const _0x485f68=_0x384929['href']['split']('/'),_0xba154e=_0x485f68[_0x485f68['length']-0x1],_0x49b880=_0xba154e['split']('.')[0x1];return _0x43dcd3['fetch'](_0x384929['href'])['then'](_0x6479b4=>_0x6479b4['clone']()['blob']())['then'](_0x2e8465=>new _0x43dcd3['File']([_0x2e8465],_0xba154e,{'type':'image/'+_0x49b880}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5a73(){const _0x180050=['imageSrc','setTemplate','uc-light','295XCXIGK','bindTemplate','3eLzHUX','uc-cloud-image-editor','ck-uploadcare-theme','101317dVROjM','23468elwlrG','1238139scdXRU','1047408MnERFt','42939CZxYSN','image-edit','192hlpBfk','set','315014gBFUzU','4240690MQiGxH'];_0x5a73=function(){return _0x180050;};return _0x5a73();}(function(_0x1bbe38,_0x328cd5){const _0x3554b9=_0x1047,_0x46fad3=_0x1bbe38();while(!![]){try{const _0x3de5fb=-parseInt(_0x3554b9(0x1bb))/0x1+parseInt(_0x3554b9(0x1c3))/0x2*(parseInt(_0x3554b9(0x1b8))/0x3)+-parseInt(_0x3554b9(0x1bc))/0x4*(-parseInt(_0x3554b9(0x1b6))/0x5)+parseInt(_0x3554b9(0x1be))/0x6+parseInt(_0x3554b9(0x1bd))/0x7+-parseInt(_0x3554b9(0x1c1))/0x8*(parseInt(_0x3554b9(0x1bf))/0x9)+-parseInt(_0x3554b9(0x1c4))/0xa;if(_0x3de5fb===_0x328cd5)break;else _0x46fad3['push'](_0x46fad3['shift']());}catch(_0x2c6354){_0x46fad3['push'](_0x46fad3['shift']());}}}(_0x5a73,0x348af));function _0x1047(_0x5e617f,_0x132198){const _0x5a732e=_0x5a73();return _0x1047=function(_0x1047b7,_0x118831){_0x1047b7=_0x1047b7-0x1b5;let _0x1c516e=_0x5a732e[_0x1047b7];return _0x1c516e;},_0x1047(_0x5e617f,_0x132198);}import{View as _0x13b610}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x13b610{constructor(_0x24f155,_0x5d8524){const _0x1c8ac0=_0x1047;super(_0x24f155);const _0x5bb89b=this[_0x1c8ac0(0x1b7)];this[_0x1c8ac0(0x1c2)](_0x1c8ac0(0x1c5),''),this[_0x1c8ac0(0x1c6)]({'tag':_0x1c8ac0(0x1b9),'attributes':{..._0x5d8524,'class':[_0x1c8ac0(0x1b5),_0x1c8ac0(0x1ba)],'ctx-name':_0x1c8ac0(0x1c0),'cdn-url':_0x5bb89b['to'](_0x1c8ac0(0x1c5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2d7037}from'ckeditor5/src/icons.js';import{ButtonView as _0xc0a60c,IconView as _0x3ba6bf,View as _0x121213}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x121213{constructor(_0xc755be){super(_0xc755be);const t=_0xc755be['t'];this['set']('errorType',null);const _0xc6817c=new _0xc0a60c(_0xc755be);_0xc6817c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc6817c['withText']=!0x0,_0xc6817c['class']='ck-button-action',_0xc6817c['on']('execute',()=>{this['fire']('retry');}),_0xc6817c['bind']('isVisible')['to'](this,'errorType',_0x1c966f=>'NotFound'!==_0x1c966f);const _0x215234=new _0x3ba6bf();_0x215234['content']=_0x2d7037,_0x215234['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x303c0e=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':[_0x215234,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x303c0e['to']('errorType',_0x397c14=>t('NotFound'!==_0x397c14?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc6817c]},{'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 _0x1c8a31,View as _0x8fe6b0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x8fe6b0{constructor(_0x58d3b4){super(_0x58d3b4);const t=_0x58d3b4['t'],_0x58a593=this['bindTemplate'],_0x5ac671=new _0x1c8a31();_0x5ac671['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':[_0x5ac671,{'text':_0x58a593['to']('imageUploadProgress',_0x5cedc9=>t('Loading\x20image...')+'\x20('+(_0x5cedc9||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
|
-
function
|
|
23
|
+
const _0x399731=_0x51f8;function _0x12f1(){const _0x262bb2=['_loadingView','target','3329055SPEkhH','addEventListener','length','_addErrorViewListeners','render','getFocusableElement','ready','element','_editingView','764780POzBdG','change:status','uc-cloud-image-editor','status','createCollection','1176527pGnEbw','152920YrOIcQ','50pxTKXk','ck-reset_all-excluded','div','18132kKwjLq','_errorView','2432742yewuEm','setTemplate','5RoLftj','observe','uploading','cdnUrl','addedNodes','601545VXgVxQ','retry','filter','addMany','287XXgIln','detail','_items','set','_waitForImageEditorComponent','nodeName','_setView','apply','_focusableView','648oJurAo','clear','_addUploadcareImageEditorListeners','add','ck-uploadcare-form','fire','cancel','querySelector','disconnect','focus','toLowerCase','error','once'];_0x12f1=function(){return _0x262bb2;};return _0x12f1();}(function(_0xe125,_0x509fe7){const _0x382ffd=_0x51f8,_0x418ee7=_0xe125();while(!![]){try{const _0x189b86=parseInt(_0x382ffd(0x194))/0x1+parseInt(_0x382ffd(0x181))/0x2+-parseInt(_0x382ffd(0x18b))/0x3*(parseInt(_0x382ffd(0x1a1))/0x4)+-parseInt(_0x382ffd(0x18f))/0x5*(parseInt(_0x382ffd(0x18d))/0x6)+parseInt(_0x382ffd(0x198))/0x7*(parseInt(_0x382ffd(0x187))/0x8)+-parseInt(_0x382ffd(0x1b0))/0x9+-parseInt(_0x382ffd(0x188))/0xa*(-parseInt(_0x382ffd(0x186))/0xb);if(_0x189b86===_0x509fe7)break;else _0x418ee7['push'](_0x418ee7['shift']());}catch(_0x4171d2){_0x418ee7['push'](_0x418ee7['shift']());}}}(_0x12f1,0x85c73));import{View as _0x5984a1}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5d7471}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2885b8}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x13ae3a}from'./uploadcareimageeditformeditingview.js';function _0x51f8(_0x578264,_0x1c748b){const _0x12f154=_0x12f1();return _0x51f8=function(_0x51f8e6,_0x539f58){_0x51f8e6=_0x51f8e6-0x17d;let _0x4ae7ae=_0x12f154[_0x51f8e6];return _0x4ae7ae;},_0x51f8(_0x578264,_0x1c748b);}import{DialogFocusManagerView as _0x4a4050}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4a4050{[_0x399731(0x19a)];[_0x399731(0x1ae)];[_0x399731(0x18c)];[_0x399731(0x180)];[_0x399731(0x1a0)];constructor(_0x4c3b67,_0x5c1318,_0x57fe22){const _0x23f037=_0x399731;super(_0x4c3b67),this[_0x23f037(0x19a)]=this[_0x23f037(0x185)](),this[_0x23f037(0x1ae)]=new _0x5d7471(_0x4c3b67),this[_0x23f037(0x18c)]=new _0x2885b8(_0x4c3b67),this[_0x23f037(0x180)]=new _0x13ae3a(_0x4c3b67,_0x57fe22),this[_0x23f037(0x1a0)]=new _0x5984a1(_0x4c3b67),this[_0x23f037(0x1a0)][_0x23f037(0x18e)](this[_0x23f037(0x17d)]()),this[_0x23f037(0x19b)](_0x23f037(0x184),_0x5c1318),this[_0x23f037(0x18e)]({'tag':_0x23f037(0x18a),'attributes':{'class':['ck',_0x23f037(0x189),_0x23f037(0x1a5)],'tabindex':'-1'},'children':this[_0x23f037(0x19a)]}),this[_0x23f037(0x19e)](),this[_0x23f037(0x1ad)](_0x23f037(0x1b4),()=>{const _0x59221d=_0x23f037;this[_0x59221d(0x19c)](this[_0x59221d(0x17f)],_0x211b15=>{const _0x2e2b93=_0x59221d;this[_0x2e2b93(0x1a3)](_0x211b15);});}),this['on'](_0x23f037(0x182),()=>{const _0x43933c=_0x23f037;this[_0x43933c(0x19e)]();}),this[_0x23f037(0x1b3)]();}[_0x399731(0x1aa)](){const _0x1b26eb=_0x399731;this[_0x1b26eb(0x17f)][_0x1b26eb(0x1aa)]();}[_0x399731(0x19e)](){const _0x55897e=_0x399731;switch(this[_0x55897e(0x19a)][_0x55897e(0x1a2)](),this[_0x55897e(0x184)]){case _0x55897e(0x191):this[_0x55897e(0x19a)][_0x55897e(0x1a4)](this[_0x55897e(0x1ae)]);break;case _0x55897e(0x1ac):this[_0x55897e(0x19a)][_0x55897e(0x1a4)](this[_0x55897e(0x18c)]);break;case _0x55897e(0x17e):this[_0x55897e(0x19a)][_0x55897e(0x197)]([this[_0x55897e(0x180)],this[_0x55897e(0x1a0)]]);}}[_0x399731(0x19c)](_0xd661f0,_0x338e0c){const _0x35b067=_0x399731,_0x35c426=_0x35b067(0x183),_0x584049=_0xd661f0[_0x35b067(0x1a8)](_0x35c426);if(_0x584049)return _0x338e0c(_0x584049);const _0x1864ba=new MutationObserver(_0x41b1b0=>{const _0x4f39a1=_0x35b067,_0x56f85a=_0x41b1b0[_0x4f39a1(0x196)](_0xd2b189=>_0xd2b189[_0x4f39a1(0x1af)]===_0xd661f0&&_0xd2b189[_0x4f39a1(0x193)][_0x4f39a1(0x1b2)]>0x0&&_0xd2b189[_0x4f39a1(0x193)][0x0][_0x4f39a1(0x19d)][_0x4f39a1(0x1ab)]()===_0x35c426);_0x56f85a[_0x4f39a1(0x1b2)]&&(_0x1864ba[_0x4f39a1(0x1a9)](),_0x338e0c(_0x56f85a[0x0][_0x4f39a1(0x193)][0x0]));});_0x1864ba[_0x35b067(0x190)](_0xd661f0,{'childList':!0x0,'subtree':!0x0});}[_0x399731(0x1a3)](_0x276c24){const _0x41bd05=_0x399731;_0x276c24[_0x41bd05(0x1b1)](_0x41bd05(0x19f),_0x242232=>{const _0x1b0d6a=_0x41bd05;this[_0x1b0d6a(0x1a6)](_0x1b0d6a(0x19f),{'imageSrc':_0x242232[_0x1b0d6a(0x199)][_0x1b0d6a(0x192)]});}),_0x276c24[_0x41bd05(0x1b1)](_0x41bd05(0x1a7),()=>{const _0x5971a6=_0x41bd05;this[_0x5971a6(0x1a6)](_0x5971a6(0x1a7));});}[_0x399731(0x1b3)](){const _0x1f8acc=_0x399731;this[_0x1f8acc(0x18c)]['on'](_0x1f8acc(0x195),()=>{const _0x53eefb=_0x1f8acc;this[_0x53eefb(0x1a6)](_0x53eefb(0x195));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x209d(){const _0x49c2ad=['152jzMFiD','editor','set','requires','config','refresh','2171856zooMRD','imageBlock','416680AKShel','4419iVbJRF','getSelectedElement','199094OztImG','imageEditController','61393ZEHdSB','354iqeech','2265mBIfTR','14490YlTtdK','model','bind','document','imageInline','uploadcare.allowExternalImagesEditing','_isEditable','isEnabled','plugins','unbind','get','execute','element','isActive','13670gDmqmS','selection'];_0x209d=function(){return _0x49c2ad;};return _0x209d();}function _0x135b(_0x48c47a,_0x1da6ef){const _0x209d44=_0x209d();return _0x135b=function(_0x135bcf,_0x30b3ce){_0x135bcf=_0x135bcf-0x127;let _0x438c93=_0x209d44[_0x135bcf];return _0x438c93;},_0x135b(_0x48c47a,_0x1da6ef);}const _0x622505=_0x135b;(function(_0x59aad8,_0x277e15){const _0x33c43e=_0x135b,_0x294866=_0x59aad8();while(!![]){try{const _0x184305=-parseInt(_0x33c43e(0x145))/0x1+parseInt(_0x33c43e(0x140))/0x2+-parseInt(_0x33c43e(0x127))/0x3+parseInt(_0x33c43e(0x13e))/0x4+-parseInt(_0x33c43e(0x136))/0x5*(parseInt(_0x33c43e(0x146))/0x6)+-parseInt(_0x33c43e(0x143))/0x7*(-parseInt(_0x33c43e(0x138))/0x8)+parseInt(_0x33c43e(0x141))/0x9*(-parseInt(_0x33c43e(0x128))/0xa);if(_0x184305===_0x277e15)break;else _0x294866['push'](_0x294866['shift']());}catch(_0x437d66){_0x294866['push'](_0x294866['shift']());}}}(_0x209d,0x571b5));import{Command as _0x208c49}from'ckeditor5/src/core.js';import{Dialog as _0xd68cf1}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x59c9fe}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x47f0e3}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x208c49{[_0x622505(0x144)];static get[_0x622505(0x13b)](){return[_0xd68cf1];}[_0x622505(0x12e)];constructor(_0x41d6ef){const _0x5c0a0a=_0x622505;super(_0x41d6ef),this[_0x5c0a0a(0x144)]=void 0x0,this[_0x5c0a0a(0x12e)]=_0x47f0e3(_0x41d6ef[_0x5c0a0a(0x13c)][_0x5c0a0a(0x132)](_0x5c0a0a(0x12d))||[]),this[_0x5c0a0a(0x13a)]({'isActive':!0x1});}[_0x622505(0x13d)](){const _0x1d6aa9=_0x622505,_0x2f7417=this[_0x1d6aa9(0x139)][_0x1d6aa9(0x129)][_0x1d6aa9(0x12b)][_0x1d6aa9(0x137)][_0x1d6aa9(0x142)]();this[_0x1d6aa9(0x12f)]=this[_0x1d6aa9(0x12e)](_0x2f7417);}[_0x622505(0x133)](){const _0x2afa57=_0x622505;this[_0x2afa57(0x144)]&&(this[_0x2afa57(0x131)](_0x2afa57(0x135)),this[_0x2afa57(0x144)]=void 0x0);const _0x57233b=this[_0x2afa57(0x139)][_0x2afa57(0x129)][_0x2afa57(0x12b)][_0x2afa57(0x137)][_0x2afa57(0x142)]();_0x57233b&&(_0x57233b['is'](_0x2afa57(0x134),_0x2afa57(0x13f))||_0x57233b['is'](_0x2afa57(0x134),_0x2afa57(0x12c)))&&(this[_0x2afa57(0x144)]=new _0x59c9fe(this[_0x2afa57(0x139)],this[_0x2afa57(0x139)][_0x2afa57(0x130)][_0x2afa57(0x132)](_0xd68cf1),_0x57233b),this[_0x2afa57(0x12a)](_0x2afa57(0x135))['to'](this[_0x2afa57(0x144)],_0x2afa57(0x135)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5d07(_0x5dbe01,_0x49979e){const _0x547591=_0x5475();return _0x5d07=function(_0x5d075e,_0x2da0c4){_0x5d075e=_0x5d075e-0x1d8;let _0x1b5d29=_0x547591[_0x5d075e];return _0x1b5d29;},_0x5d07(_0x5dbe01,_0x49979e);}const _0x20121b=_0x5d07;(function(_0x1ece2a,_0x19f40f){const _0x5b1b0f=_0x5d07,_0xa8c00b=_0x1ece2a();while(!![]){try{const _0x200c88=-parseInt(_0x5b1b0f(0x1db))/0x1*(-parseInt(_0x5b1b0f(0x1e9))/0x2)+parseInt(_0x5b1b0f(0x1e0))/0x3+parseInt(_0x5b1b0f(0x1e5))/0x4*(parseInt(_0x5b1b0f(0x1e1))/0x5)+-parseInt(_0x5b1b0f(0x1e4))/0x6+-parseInt(_0x5b1b0f(0x1eb))/0x7+parseInt(_0x5b1b0f(0x1df))/0x8+-parseInt(_0x5b1b0f(0x1dd))/0x9;if(_0x200c88===_0x19f40f)break;else _0xa8c00b['push'](_0xa8c00b['shift']());}catch(_0x467ec){_0xa8c00b['push'](_0xa8c00b['shift']());}}}(_0x5475,0x738a2));import{Plugin as _0x50b2b8}from'ckeditor5/src/core.js';import{Notification as _0x21e1be}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4dacdc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4c5cdc}from'./uploadcareimagereplacecommand.js';function _0x5475(){const _0x1f1769=['uploadcareImageEdit','add','requires','isOfficialPlugin','667xJACqJ','ImageEditing','2375145VhmkcG','UploadcareImageEditEditing','1319664JuafLj','2447694lfkgUA','5oGlDSV','ImageUtils','init','4041516ZNHMlB','2302756JvsmjG','uploadcareImageReplace','isPremiumPlugin','pluginName','206pFsuVD','commands','1501535FeNOte'];_0x5475=function(){return _0x1f1769;};return _0x5475();}import{UploadcareEditing as _0x3bcb61}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x50b2b8{static get[_0x20121b(0x1e8)](){const _0x763fe5=_0x20121b;return _0x763fe5(0x1de);}static get[_0x20121b(0x1d9)](){const _0x1ef1a5=_0x20121b;return[_0x3bcb61,_0x21e1be,_0x1ef1a5(0x1e2),_0x1ef1a5(0x1dc)];}static get[_0x20121b(0x1da)](){return!0x0;}static get[_0x20121b(0x1e7)](){return!0x0;}[_0x20121b(0x1e3)](){const _0x2a2bde=_0x20121b,{editor:_0x320caa}=this;_0x320caa[_0x2a2bde(0x1ea)][_0x2a2bde(0x1d8)](_0x2a2bde(0x1ec),new _0x4dacdc(_0x320caa)),_0x320caa[_0x2a2bde(0x1ea)][_0x2a2bde(0x1d8)](_0x2a2bde(0x1e6),new _0x4c5cdc(_0x320caa));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3dfdf2}from'ckeditor5/src/core.js';import{ButtonView as _0x41542d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3bef04}from'ckeditor5/src/icons.js';import{createElement as _0xe11fb7}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 _0x3dfdf2{['_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 _0x5bf622=this['editor'];_0x5bf622['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4342ec=>{const _0x4a5c5c=_0x5bf622['commands']['get']('uploadcareImageEdit'),_0x100aba=new _0x41542d(_0x4342ec),t=_0x4342ec['t'];return _0x100aba['set']({'icon':_0x3bef04,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x100aba['bind']('isEnabled')['to'](_0x4a5c5c),_0x100aba['bind']('isOn')['to'](_0x4a5c5c,'isActive'),this['listenTo'](_0x100aba,'execute',()=>{_0x5bf622['execute']('uploadcareImageEdit'),_0x5bf622['editing']['view']['focus']();}),_0x100aba;}),this['_initConfig']();}['_initConfig'](){const _0x465870=_0xe11fb7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x465870),this['listenTo'](this['editor'],'destroy',()=>{_0x465870['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2ada4e=_0x1d47;(function(_0x5c8f2e,_0x40eea7){const _0x59b4bd=_0x1d47,_0x2edf0b=_0x5c8f2e();while(!![]){try{const _0x2d1aa5=parseInt(_0x59b4bd(0xfc))/0x1+-parseInt(_0x59b4bd(0xf1))/0x2+parseInt(_0x59b4bd(0xf8))/0x3*(-parseInt(_0x59b4bd(0xfe))/0x4)+parseInt(_0x59b4bd(0xef))/0x5+-parseInt(_0x59b4bd(0xf0))/0x6*(parseInt(_0x59b4bd(0xf9))/0x7)+parseInt(_0x59b4bd(0xf2))/0x8+parseInt(_0x59b4bd(0xfb))/0x9;if(_0x2d1aa5===_0x40eea7)break;else _0x2edf0b['push'](_0x2edf0b['shift']());}catch(_0x22e39c){_0x2edf0b['push'](_0x2edf0b['shift']());}}}(_0x36d8,0x84b2e));function _0x1d47(_0x298671,_0x36046b){const _0x36d820=_0x36d8();return _0x1d47=function(_0x1d4757,_0xeaa353){_0x1d4757=_0x1d4757-0xe9;let _0xc80939=_0x36d820[_0x1d4757];return _0xc80939;},_0x1d47(_0x298671,_0x36046b);}import{Command as _0x58907b}from'ckeditor5/src/core.js';function _0x36d8(){const _0x1fbf50=['imageInline','refresh','imageBlock','removeAttribute','105738MeBUEL','49nhyefu','model','4487283nxZTCR','445780mCDJgP','setAttributes','16brwoQn','selection','document','execute','change','srcset','element','editor','sizes','getSelectedElement','1364160khjiVU','788202jfWyFK','240322zIxswX','4056392tDbbla','isEnabled'];_0x36d8=function(){return _0x1fbf50;};return _0x36d8();}export class UploadcareImageReplaceCommand extends _0x58907b{[_0x2ada4e(0xf5)](){const _0x5eceda=_0x2ada4e,_0x1c41a5=this[_0x5eceda(0xec)][_0x5eceda(0xfa)][_0x5eceda(0x100)][_0x5eceda(0xff)][_0x5eceda(0xee)]();this[_0x5eceda(0xf3)]=Boolean(_0x1c41a5&&(_0x1c41a5['is'](_0x5eceda(0xeb),_0x5eceda(0xf6))||_0x1c41a5['is'](_0x5eceda(0xeb),_0x5eceda(0xf4))));}[_0x2ada4e(0x101)](_0x39df38){const _0x1d7a17=_0x2ada4e,_0x2e1d6e=this[_0x1d7a17(0xec)][_0x1d7a17(0xfa)][_0x1d7a17(0x100)][_0x1d7a17(0xff)][_0x1d7a17(0xee)]();this[_0x1d7a17(0xec)][_0x1d7a17(0xfa)][_0x1d7a17(0xe9)](_0x353799=>{const _0x18bff9=_0x1d7a17;_0x353799[_0x18bff9(0xfd)](_0x39df38,_0x2e1d6e),_0x353799[_0x18bff9(0xf7)](_0x18bff9(0xea),_0x2e1d6e),_0x353799[_0x18bff9(0xf7)](_0x18bff9(0xed),_0x2e1d6e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x115b54=_0x434d;(function(_0x449b3f,_0x222333){var _0xde2b5a=_0x434d,_0x3e9d6c=_0x449b3f();while(!![]){try{var _0x32f5dd=parseInt(_0xde2b5a(0x1a5))/0x1+parseInt(_0xde2b5a(0x1a0))/0x2+-parseInt(_0xde2b5a(0x19f))/0x3*(-parseInt(_0xde2b5a(0x19e))/0x4)+-parseInt(_0xde2b5a(0x1a1))/0x5+parseInt(_0xde2b5a(0x19c))/0x6+-parseInt(_0xde2b5a(0x1a4))/0x7+parseInt(_0xde2b5a(0x19d))/0x8*(-parseInt(_0xde2b5a(0x1a6))/0x9);if(_0x32f5dd===_0x222333)break;else _0x3e9d6c['push'](_0x3e9d6c['shift']());}catch(_0x5a2944){_0x3e9d6c['push'](_0x3e9d6c['shift']());}}}(_0x55a3,0xb91b6));function _0x434d(_0x225f38,_0x21a3cd){var _0x55a3bb=_0x55a3();return _0x434d=function(_0x434d8b,_0x402925){_0x434d8b=_0x434d8b-0x19a;var _0x80a64d=_0x55a3bb[_0x434d8b];return _0x80a64d;},_0x434d(_0x225f38,_0x21a3cd);}import{Plugin as _0x388075}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x76c05b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2a47c6}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x388075{static get[_0x115b54(0x1a3)](){var _0x12786c=_0x115b54;return _0x12786c(0x19a);}static get[_0x115b54(0x19b)](){return[_0x76c05b,_0x2a47c6];}static get[_0x115b54(0x1a2)](){return!0x0;}static get[_0x115b54(0x1a7)](){return!0x0;}}function _0x55a3(){var _0x3ed911=['8389794lsKcFP','467304jWYXjU','1872796jBMktP','3CNgqex','628778BPutZH','3335690FUfTBM','isOfficialPlugin','pluginName','5573498SOQhGZ','1033684vZAEKp','153zZaLjl','isPremiumPlugin','UploadcareImageEdit','requires'];_0x55a3=function(){return _0x3ed911;};return _0x55a3();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56a767=_0x4155;(function(_0x4c961c,_0x4fb652){const _0x2800f1=_0x4155,_0x380e3b=_0x4c961c();while(!![]){try{const _0x295d60=-parseInt(_0x2800f1(0xf6))/0x1+-parseInt(_0x2800f1(0xf2))/0x2*(parseInt(_0x2800f1(0xdf))/0x3)+-parseInt(_0x2800f1(0xf8))/0x4*(parseInt(_0x2800f1(0x11e))/0x5)+parseInt(_0x2800f1(0xe8))/0x6*(-parseInt(_0x2800f1(0xd4))/0x7)+-parseInt(_0x2800f1(0x106))/0x8+-parseInt(_0x2800f1(0xe1))/0x9*(parseInt(_0x2800f1(0xe6))/0xa)+parseInt(_0x2800f1(0xdd))/0xb;if(_0x295d60===_0x4fb652)break;else _0x380e3b['push'](_0x380e3b['shift']());}catch(_0x7df597){_0x380e3b['push'](_0x380e3b['shift']());}}}(_0x1e32,0x2e24c));import{Plugin as _0x1f627e}from'ckeditor5/src/core.js';function _0x4155(_0x475286,_0x53b534){const _0x1e3297=_0x1e32();return _0x4155=function(_0x4155bd,_0x46388f){_0x4155bd=_0x4155bd-0xd1;let _0x348bc6=_0x1e3297[_0x4155bd];return _0x348bc6;},_0x4155(_0x475286,_0x53b534);}import{IconDropbox as _0x51ffba,IconFacebook as _0x3ea482,IconGoogleDrive as _0x16acd8,IconGooglePhotos as _0xe4a751,IconUploadcareImageUpload as _0x7541fc,IconUploadcareLink as _0x7f9384,IconOneDrive as _0x21f16f}from'ckeditor5/src/icons.js';import{ButtonView as _0x44958d,MenuBarMenuListItemButtonView as _0x59e849}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x58e62e}from'./uploadcareconfig.js';import{getTranslation as _0x4ac386}from'./utils/common-translations.js';function _0x1e32(){const _0x435687=['168261GXsoQQ','OneDrive','1802169OzTnMa','trialLimit','_showLicenseError','Uploadcare','entries','10oMHwdb','isImageSelected','1409862ROBdip','featureNotAllowed','licenseKey','icon','map','push','afterInit','domainLimit','uploadcareLicenseKeyTrialLimit','config','2cLMxrU','_createDropdownButtons','plugins','_normalizeConfigSourceList','250044bQhXgF','commands','20ndbgDu','tooltip','GDrive','editor','upload','pluginName','evaluationLimit','uploadcare.uploader.sourceList','reduce','_licenseKeyCheckInterval','shortText','_getIntegrationKey','_createToolbarButton','get','2130208gyAxqG','execute','uploadcareLicenseKeyValid','has','uploadcareLicenseKeyDomainLimit','_createMenuBarButtons','isEnabled','invalid','Replace','destroy','uploadcareLicenseKeyEvaluationLimit','usageLimit','init','Local','uploadcareLicenseKeyInvalid','Insert','isPremiumPlugin','URL','bind','withText','Dropbox','ImageInsertUI','locale','forEach','312755DPdmpV','url','_createButton','uploadcareLicenseKeyNotAllowed','assetManager','UploadcareUI','type','uploadcareLicenseKeyExpired','7pAFyrJ','isOfficialPlugin','Facebook','expired','text','registerIntegration','uploadcareLicenseKeyUsageLimit','GPhotos','label','16603224jOdSEt','uploadcare'];_0x1e32=function(){return _0x435687;};return _0x1e32();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x1f627e{[_0x56a767(0xea)];[_0x56a767(0x101)];static get[_0x56a767(0xfd)](){const _0x4edcd7=_0x56a767;return _0x4edcd7(0xd1);}static get[_0x56a767(0xd5)](){return!0x0;}static get[_0x56a767(0x116)](){return!0x0;}[_0x56a767(0x112)](){const _0x4bf6dc=_0x56a767;this[_0x4bf6dc(0xea)]=this[_0x4bf6dc(0xfb)][_0x4bf6dc(0xf1)][_0x4bf6dc(0x105)](_0x4bf6dc(0xea));const _0x4db7d6=this[_0x4bf6dc(0xfb)];this[_0x4bf6dc(0x101)]=setInterval(()=>{const _0x4cb478=_0x4bf6dc;let _0x14580f;for(const _0x4bcf9c in _0x4db7d6){const _0x21901b=_0x4bcf9c,_0x19a7f9=_0x4db7d6[_0x21901b];if(_0x4cb478(0x108)==_0x19a7f9||_0x4cb478(0x114)==_0x19a7f9||_0x4cb478(0xd3)==_0x19a7f9||_0x4cb478(0x10a)==_0x19a7f9||_0x4cb478(0x121)==_0x19a7f9||_0x4cb478(0x110)==_0x19a7f9||_0x4cb478(0xf0)==_0x19a7f9||_0x4cb478(0xda)==_0x19a7f9){delete _0x4db7d6[_0x21901b],_0x14580f=_0x19a7f9,clearInterval(this[_0x4cb478(0x101)]),this[_0x4cb478(0x101)]=void 0x0;break;}}_0x4cb478(0x114)==_0x14580f&&_0x4db7d6[_0x4cb478(0xe3)](_0x4cb478(0x10d)),_0x4cb478(0xd3)==_0x14580f&&_0x4db7d6[_0x4cb478(0xe3)](_0x4cb478(0xd7)),_0x4cb478(0x10a)==_0x14580f&&_0x4db7d6[_0x4cb478(0xe3)](_0x4cb478(0xef)),_0x4cb478(0x121)==_0x14580f&&_0x4db7d6[_0x4cb478(0xe3)](_0x4cb478(0xe9),_0x4cb478(0xe4)),_0x4cb478(0x110)==_0x14580f&&_0x4db7d6[_0x4cb478(0xe3)](_0x4cb478(0xfe)),_0x4cb478(0xf0)==_0x14580f&&_0x4db7d6[_0x4cb478(0xe3)](_0x4cb478(0xe2)),_0x4cb478(0xda)==_0x14580f&&_0x4db7d6[_0x4cb478(0xe3)](_0x4cb478(0x111));},0x3e8);}[_0x56a767(0xee)](){const _0x1309b1=_0x56a767,{editor:_0x9582d7}=this,_0x523d0d=_0x9582d7[_0x1309b1(0xf7)][_0x1309b1(0x105)](_0x1309b1(0xde));if(!_0x523d0d)return;const _0x198d60=this[_0x1309b1(0xf5)](_0x9582d7[_0x1309b1(0xf1)][_0x1309b1(0x105)](_0x1309b1(0xff)))[_0x1309b1(0x100)]((_0x15629a,_0x3c0066)=>{const _0x102ab4=_0x1309b1,_0xb8338d=this[_0x102ab4(0x103)](_0x3c0066[_0x102ab4(0xd2)]);return _0x15629a[_0xb8338d]||(_0x15629a[_0xb8338d]=[]),_0x15629a[_0xb8338d][_0x102ab4(0xed)](_0x3c0066),_0x15629a;},{});_0x9582d7[_0x1309b1(0xf4)][_0x1309b1(0x109)](_0x1309b1(0x11b))&&_0x9582d7[_0x1309b1(0xf7)][_0x1309b1(0x105)](_0x1309b1(0xde))&&Object[_0x1309b1(0xe5)](_0x198d60)[_0x1309b1(0x11d)](([_0xba4936,_0x54312d])=>{const _0x59032e=_0x1309b1;_0x9582d7[_0x59032e(0xf4)][_0x59032e(0x105)](_0x59032e(0x11b))[_0x59032e(0xd9)]({'name':_0xba4936,'observable':()=>_0x523d0d,'buttonViewCreator':()=>this[_0x59032e(0x104)](_0x54312d),'formViewCreator':()=>this[_0x59032e(0xf3)](_0x54312d),'menuBarButtonViewCreator':()=>this[_0x59032e(0x10b)](_0x54312d),'override':_0x59032e(0x122)!==_0xba4936});});}[_0x56a767(0x10f)](){const _0x515303=_0x56a767;super[_0x515303(0x10f)](),this[_0x515303(0x101)]&&clearInterval(this[_0x515303(0x101)]);}[_0x56a767(0xf5)](_0x33c803){const _0x23acb4=_0x56a767,{locale:_0x41a0d4}=this[_0x23acb4(0xfb)];return _0x33c803[_0x23acb4(0xec)](_0x17d61a=>{const _0x445be9=_0x23acb4,_0x213d24=_0x4ac386(_0x41a0d4,_0x17d61a,_0x445be9(0x115));switch(_0x17d61a){case _0x58e62e[_0x445be9(0x113)]:return{'icon':_0x7541fc,'type':_0x58e62e[_0x445be9(0x113)],..._0x213d24};case _0x58e62e[_0x445be9(0x117)]:return{'icon':_0x7f9384,'type':_0x58e62e[_0x445be9(0x117)],..._0x213d24};case _0x58e62e[_0x445be9(0x11a)]:return{'icon':_0x51ffba,'type':_0x58e62e[_0x445be9(0x11a)],..._0x213d24};case _0x58e62e[_0x445be9(0xd6)]:return{'icon':_0x3ea482,'type':_0x58e62e[_0x445be9(0xd6)],..._0x213d24};case _0x58e62e[_0x445be9(0xfa)]:return{'icon':_0x16acd8,'type':_0x58e62e[_0x445be9(0xfa)],..._0x213d24};case _0x58e62e[_0x445be9(0xdb)]:return{'icon':_0xe4a751,'type':_0x58e62e[_0x445be9(0xdb)],..._0x213d24};case _0x58e62e[_0x445be9(0xe0)]:return{'icon':_0x21f16f,'type':_0x58e62e[_0x445be9(0xe0)],..._0x213d24};}});}[_0x56a767(0x103)](_0x5c17c0){const _0x59aa40=_0x56a767;switch(_0x5c17c0){case _0x58e62e[_0x59aa40(0x113)]:return _0x59aa40(0xfc);case _0x58e62e[_0x59aa40(0x117)]:return _0x59aa40(0x11f);default:return _0x59aa40(0x122);}}[_0x56a767(0x120)](_0x2e34d3,_0x5dca16){const _0x250b61=_0x56a767,_0x4e8ba3=this[_0x250b61(0xfb)],_0x3c88ab=new _0x2e34d3(_0x4e8ba3[_0x250b61(0x11c)]),_0x31ea00=_0x4e8ba3[_0x250b61(0xf7)][_0x250b61(0x105)](_0x250b61(0xde));return _0x3c88ab[_0x250b61(0x118)](_0x250b61(0x10c))['to'](_0x31ea00),_0x3c88ab['on'](_0x250b61(0x107),()=>{const _0x12596b=_0x250b61;_0x31ea00[_0x12596b(0x107)](_0x5dca16);}),_0x3c88ab;}[_0x56a767(0x104)](_0x165178){const _0x331461=_0x56a767,{locale:_0x4e9638}=this[_0x331461(0xfb)],_0x2b2c58=this[_0x331461(0xfb)][_0x331461(0xf4)][_0x331461(0x105)](_0x331461(0x11b)),_0x8f2d20=_0x165178[0x0],_0x36d896=this[_0x331461(0x120)](_0x44958d,_0x8f2d20[_0x331461(0xd2)]);return _0x36d896[_0x331461(0xeb)]=_0x8f2d20[_0x331461(0xeb)],_0x36d896[_0x331461(0x118)](_0x331461(0xdc))['to'](_0x2b2c58,_0x331461(0xe7),_0x3e093a=>_0x4ac386(_0x4e9638,_0x8f2d20[_0x331461(0xd2)],_0x3e093a?_0x331461(0x10e):_0x331461(0x115))[_0x331461(0xd8)]),_0x36d896[_0x331461(0xf9)]=!0x0,_0x36d896;}[_0x56a767(0xf3)](_0xba94d5){const _0x57bb72=_0x56a767,{locale:_0x4f8760}=this[_0x57bb72(0xfb)],_0x36d0fd=this[_0x57bb72(0xfb)][_0x57bb72(0xf4)][_0x57bb72(0x105)](_0x57bb72(0x11b));return _0xba94d5[_0x57bb72(0xec)](_0x3fbc0e=>{const _0x28804b=_0x57bb72,_0xd62f08=this[_0x28804b(0x120)](_0x44958d,_0x3fbc0e[_0x28804b(0xd2)]);return _0xd62f08[_0x28804b(0x119)]=!0x0,_0xd62f08[_0x28804b(0xeb)]=_0x3fbc0e[_0x28804b(0xeb)],_0xd62f08[_0x28804b(0x118)](_0x28804b(0xdc))['to'](_0x36d0fd,_0x28804b(0xe7),_0x2be3c5=>_0x4ac386(_0x4f8760,_0x3fbc0e[_0x28804b(0xd2)],_0x2be3c5?_0x28804b(0x10e):_0x28804b(0x115))[_0x28804b(0xd8)]),_0xd62f08;});}[_0x56a767(0x10b)](_0x250013){const _0x54626c=_0x56a767;return _0x250013[_0x54626c(0xec)](_0x39c618=>{const _0x500440=_0x54626c,_0xf1cb89=this[_0x500440(0x120)](_0x59e849,_0x39c618[_0x500440(0xd2)]);return _0xf1cb89[_0x500440(0xeb)]=_0x39c618[_0x500440(0xeb)],_0xf1cb89[_0x500440(0xdc)]=_0x39c618[_0x500440(0x102)],_0xf1cb89;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5ccf91}from'ckeditor5/src/core.js';import{FileRepository as _0xc5b779}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x254167}from'./uploadcareediting.js';import{UploadUtils as _0x38e163}from'./utils/uploadutils.js';import{getImageUrls as _0x586863}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5ccf91{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xc5b779,_0x254167];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x204aa5=this['editor'];if(!!!_0x204aa5['config']['get']('uploadcare'))return;_0x204aa5['plugins']['get'](_0xc5b779)['createUploadAdapter']=_0x408c8f=>new k(_0x408c8f,_0x204aa5),_0x204aa5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xccb2de,{imageElement:_0x51ddd3,data:_0x146f60})=>{_0x204aa5['model']['change'](_0x481f30=>{_0x481f30['setAttribute']('uploadcareImageId',_0x146f60['uploadcareImageId'],_0x51ddd3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2b0a94,_0x4b24a8){this['loader']=_0x2b0a94,this['editor']=_0x4b24a8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4b499e=await this['loader']['file'];return _0x38e163['upload']({'file':_0x4b499e,'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':_0x58a95f=>{_0x58a95f&&_0x58a95f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x58a95f['value']);}})['then'](async _0x2d898a=>{const {imageFallbackUrl:_0x559a75,imageSources:_0x32d83b}=_0x586863(_0x2d898a['cdnUrl'],_0x2d898a['imageInfo']['width']);return{'uploadcareImageId':_0x2d898a['uuid'],'default':_0x559a75,'sources':_0x32d83b};})['catch'](()=>{const _0x3480c4=t('Cannot\x20upload\x20file:')+('\x20'+_0x4b499e['name']+'.');return Promise['reject'](_0x3480c4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x420025}from'../uploadcareconfig.js';export function getTranslation(_0x40bf64,_0x3f0949,_0x59a28e){const t=_0x40bf64['t'],_0x36e030=_0x40bf64['t'];switch(_0x3f0949){case _0x420025['Local']:return{'text':_0x36e030('Insert'===_0x59a28e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x36e030('From\x20computer')};case _0x420025['URL']:return{'text':'Insert'===_0x59a28e?_0x36e030('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x36e030('Via\x20URL')};case _0x420025['Dropbox']:return{'text':t('Insert'===_0x59a28e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x420025['Facebook']:return{'text':t('Insert'===_0x59a28e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x420025['GDrive']:return{'text':t('Insert'===_0x59a28e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x420025['GPhotos']:return{'text':t('Insert'===_0x59a28e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x420025['OneDrive']:return{'text':t('Insert'===_0x59a28e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3f0949;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5a2eb0=_0x55fd;(function(_0xb132f6,_0x3a44b4){var _0x22947f=_0x55fd,_0x4476a3=_0xb132f6();while(!![]){try{var _0xa35445=-parseInt(_0x22947f(0xb9))/0x1*(parseInt(_0x22947f(0xc1))/0x2)+-parseInt(_0x22947f(0xbf))/0x3*(parseInt(_0x22947f(0xaf))/0x4)+parseInt(_0x22947f(0xbe))/0x5+parseInt(_0x22947f(0xb8))/0x6*(-parseInt(_0x22947f(0xc0))/0x7)+parseInt(_0x22947f(0xb0))/0x8*(parseInt(_0x22947f(0xb5))/0x9)+parseInt(_0x22947f(0xb4))/0xa+-parseInt(_0x22947f(0xb2))/0xb;if(_0xa35445===_0x3a44b4)break;else _0x4476a3['push'](_0x4476a3['shift']());}catch(_0x3f4474){_0x4476a3['push'](_0x4476a3['shift']());}}}(_0x1178,0xd8935));import{FocusTracker as _0x11581a}from'ckeditor5/src/utils.js';import{View as _0x3db690,FocusCycler as _0x42c0d5}from'ckeditor5/src/ui.js';function _0x55fd(_0x4f4054,_0x507aec){var _0x117884=_0x1178();return _0x55fd=function(_0x55fd57,_0x4bbc03){_0x55fd57=_0x55fd57-0xae;var _0x1fc16e=_0x117884[_0x55fd57];return _0x1fc16e;},_0x55fd(_0x4f4054,_0x507aec);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3db690{[_0x5a2eb0(0xb1)];[_0x5a2eb0(0xbd)];constructor(_0x280f4f){var _0x1b55ff=_0x5a2eb0;super(_0x280f4f),this[_0x1b55ff(0xb1)]=new _0x11581a(),this[_0x1b55ff(0xbd)]=new _0x42c0d5({'focusables':this[_0x1b55ff(0xb7)](),'focusTracker':this[_0x1b55ff(0xb1)]});}[_0x5a2eb0(0xae)](){var _0x547c56=_0x5a2eb0;return{'tag':_0x547c56(0xba),'attributes':{'aria-hidden':_0x547c56(0xbb),'tabindex':'0'},'on':{'focus':this[_0x547c56(0xbc)]['to'](()=>{var _0x2dcdcb=_0x547c56;this[_0x2dcdcb(0xbd)][_0x2dcdcb(0xb6)](_0x2dcdcb(0xb3));})}};}}function _0x1178(){var _0x550804=['16737HVIqNt','38474qMjtHL','getFocusableElement','28vGyMZQ','2705952hrrDSt','focusTracker','1054922QuuXFx','forwardCycle','11976120gmnvnn','36iOddDs','fire','createCollection','2778kcfhJD','13yFbhSD','div','true','bindTemplate','focusCycler','4949720nCfaFc','514467rIfjUU'];_0x1178=function(){return _0x550804;};return _0x1178();}
|