@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260129.0 → 0.0.0-nightly-20260130.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
|
-
function _0x58b7(_0x25c1c1,_0x3bb4c7){const _0x40fb48=_0x40fb();return _0x58b7=function(_0x58b7c5,_0x23b7ca){_0x58b7c5=_0x58b7c5-0x1e9;let _0x61c1cb=_0x40fb48[_0x58b7c5];return _0x61c1cb;},_0x58b7(_0x25c1c1,_0x3bb4c7);}const _0x30194a=_0x58b7;(function(_0x5d1d10,_0x35d18d){const _0x1d5f54=_0x58b7,_0x2ceb2a=_0x5d1d10();while(!![]){try{const _0x4d285e=parseInt(_0x1d5f54(0x1ec))/0x1*(parseInt(_0x1d5f54(0x21e))/0x2)+-parseInt(_0x1d5f54(0x1f3))/0x3+parseInt(_0x1d5f54(0x1fe))/0x4*(parseInt(_0x1d5f54(0x21f))/0x5)+-parseInt(_0x1d5f54(0x1ee))/0x6+parseInt(_0x1d5f54(0x209))/0x7+-parseInt(_0x1d5f54(0x238))/0x8+-parseInt(_0x1d5f54(0x1ed))/0x9*(-parseInt(_0x1d5f54(0x1eb))/0xa);if(_0x4d285e===_0x35d18d)break;else _0x2ceb2a['push'](_0x2ceb2a['shift']());}catch(_0x2e5e53){_0x2ceb2a['push'](_0x2ceb2a['shift']());}}}(_0x40fb,0x87564));import{Plugin as _0x5b5e52}from'ckeditor5/src/core.js';import{Dialog as _0x24234e}from'ckeditor5/src/ui.js';import{createElement as _0x2098a1,global as _0x295177,uid as _0x2efe7d}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x43f2a7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x27e3e1}from'./uploadcareuploadadapter.js';function _0x40fb(){const _0x528fdc=['_ctxElement','input[uploadcare-file-input]','#uc-icon-arrow-down','extend','remove','get','editor','insertImage','downcast','3778wjgoXd','130hGQYsW','uploadcareImageReplace','conversion','closeMax','contentLanguage','execute','removeAttribute','\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','view','uploadcare.pubkey','init','uploader-','isPremiumPlugin','isRegistered','querySelector','appendChild','href','configElement','listenTo','PictureEditing','pluginName','imageInline','getSelectedElement','uploadcareImageId','_initImageProcessingIndicator','1628968RQxjfn','_initConfig','cleanupImage','render','_initSchema','fromCharCode','requires','for','2780Ggqolf','542rdyWHl','2844ucheCK','6275940PYMzVM','_configElement','true','document','replaceImageSource','2581545ymrbLe','join','data-uc-image-id','imageBlock','once','uploadcare.uploader','_initCtx','map','uc-config','_initConversion','isOfficialPlugin','100316AEfHCG','destroy','selection','uploadcare','schema','afterInit','iconHrefResolver','getAttribute','config','body','UploadcareEditing','6305082kOLwtO','uc-upload-ctx-provider','attributeToAttribute','elementToAttribute','locale','add','editing','model','upcast','ctxElement','commands','ucContextId'];_0x40fb=function(){return _0x528fdc;};return _0x40fb();}import{showImageProcessingIndicator as _0x2af1d8}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5b5e52{[_0x30194a(0x1ef)]=null;[_0x30194a(0x215)]=null;static get[_0x30194a(0x233)](){const _0x35e8c4=_0x30194a;return _0x35e8c4(0x208);}static get[_0x30194a(0x1e9)](){const _0x4bcafd=_0x30194a;return[_0x4bcafd(0x232),_0x27e3e1,_0x24234e];}static get[_0x30194a(0x1fd)](){return!0x0;}static get[_0x30194a(0x22b)](){return!0x0;}[_0x30194a(0x214)];get[_0x30194a(0x230)](){const _0x51c4ba=_0x30194a;return this[_0x51c4ba(0x1ef)];}get[_0x30194a(0x212)](){const _0x5dd90e=_0x30194a;return this[_0x5dd90e(0x215)];}constructor(_0x14cede){const _0x27be7d=_0x30194a;super(_0x14cede),this[_0x27be7d(0x214)]=_0x2efe7d();}[_0x30194a(0x229)](){const _0x663865=_0x30194a,_0x595072=this[_0x663865(0x21b)];_0x595072[_0x663865(0x213)][_0x663865(0x20e)](_0x663865(0x201),new _0x43f2a7(_0x595072));}[_0x30194a(0x203)](){const _0x26ad72=_0x30194a;this[_0x26ad72(0x23c)](),this[_0x26ad72(0x1fc)](),this[_0x26ad72(0x239)](),this[_0x26ad72(0x1f9)](),this[_0x26ad72(0x237)](),this[_0x26ad72(0x231)](this[_0x26ad72(0x21b)],_0x26ad72(0x1ff),()=>{const _0x4dbd8e=_0x26ad72;this[_0x4dbd8e(0x1ef)]&&(this[_0x4dbd8e(0x1ef)][_0x4dbd8e(0x219)](),this[_0x4dbd8e(0x1ef)]=null),this[_0x4dbd8e(0x215)]&&(this[_0x4dbd8e(0x215)][_0x4dbd8e(0x219)](),this[_0x4dbd8e(0x215)]=null);const _0x4ac0cb=_0x295177[_0x4dbd8e(0x1f1)][_0x4dbd8e(0x22d)](_0x4dbd8e(0x216));_0x4ac0cb&&_0x4ac0cb[_0x4dbd8e(0x219)]();}),async function(_0x13a588){const _0x5c5a29=_0x5a5424([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x403196=0x535f8c3a,_0x2f0138=0x53580c0a^_0x403196,_0x326733=window[_0x5a5424([0x44,0x61,0x74,0x65])][_0x5a5424([0x6e,0x6f,0x77])](),_0x4314c5=_0x13a588[_0x5a5424([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37966b=new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fe3e=>{_0x4314c5[_0x5a5424([0x6f,0x6e,0x63,0x65])](_0x5a5424([0x72,0x65,0x61,0x64,0x79]),_0x11fe3e);}),_0x561be5={[_0x5a5424([0x6b,0x74,0x79])]:_0x5a5424([0x45,0x43]),[_0x5a5424([0x75,0x73,0x65])]:_0x5a5424([0x73,0x69,0x67]),[_0x5a5424([0x63,0x72,0x76])]:_0x5a5424([0x50,0x2d,0x32,0x35,0x36]),[_0x5a5424([0x78])]:_0x5a5424([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]),[_0x5a5424([0x79])]:_0x5a5424([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]),[_0x5a5424([0x61,0x6c,0x67])]:_0x5a5424([0x45,0x53,0x32,0x35,0x36])},_0x18fb24=_0x4314c5[_0x5a5424([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a5424([0x67,0x65,0x74])](_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a0803(){let _0x26fac7,_0x57fee7=null,_0xea830e=null;try{if(_0x18fb24==_0x5a5424([0x47,0x50,0x4c]))return _0x5a5424([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26fac7=_0x433ef5(),!_0x26fac7)return _0x5a5424([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26fac7[_0x5a5424([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xea830e=_0x5d36c2(_0x26fac7[_0x5a5424([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26fac7[_0x5a5424([0x6a,0x74,0x69])])),await _0x274f92()?_0x4cbf17()?_0x3163ce()?_0x5a5424([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b96aa()?(_0x26fac7[_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a5424([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57fee7=_0x42c568(_0x5a5424([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d3710()):_0x5a5424([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5424([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a5424([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a5424([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3163ce(){const _0x1ff638=[_0x5a5424([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a5424([0x74,0x72,0x69,0x61,0x6c])][_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26fac7[_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x326733/0x3e8:0xe10*_0x2f0138;return _0x26fac7[_0x5a5424([0x65,0x78,0x70])]<_0x1ff638;}function _0x4cbf17(){const _0x59cb24=_0x26fac7[_0x5a5424([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59cb24&&(!!_0x59cb24[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5424([0x2a]))||!!_0x59cb24[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5424([0x55,0x50,0x4c,0x43])));}function _0x3b96aa(){const _0x258e54=_0x58b7,_0xc232f4=_0x26fac7[_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc232f4||0x0==_0xc232f4[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e0b01}=new URL(window[_0x5a5424([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x258e54(0x22f)]);if(_0xc232f4[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0b01))return!0x0;const _0x1ceb66=_0x3e0b01[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e]));return _0xc232f4[_0x5a5424([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16266f=>_0x16266f[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5424([0x2a])))[_0x5a5424([0x6d,0x61,0x70])](_0x3c4199=>_0x3c4199[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e])))[_0x5a5424([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f7e5a=>_0x2f7e5a[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ceb66[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5424([0x6d,0x61,0x70])](_0x3e98ed=>Array(_0x1ceb66[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e98ed[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5424([0x66,0x69,0x6c,0x6c])](_0x3e98ed[0x0]===_0x5a5424([0x2a])?_0x5a5424([0x2a]):'')[_0x5a5424([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e98ed))[_0x5a5424([0x73,0x6f,0x6d,0x65])](_0x54bade=>_0x1ceb66[_0x5a5424([0x65,0x76,0x65,0x72,0x79])]((_0x23fa0b,_0x56e12b)=>_0x54bade[_0x56e12b]===_0x23fa0b||_0x54bade[_0x56e12b]===_0x5a5424([0x2a])));}function _0x3d3710(){return _0x57fee7&&_0xea830e?new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bd2cd,_0x47d9ed)=>{_0x57fee7[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x2bd2cd,_0x47d9ed),_0xea830e[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x2e93da=>{_0x2e93da!=_0x5a5424([0x56,0x61,0x6c,0x69,0x64])&&_0x2bd2cd(_0x2e93da);},_0x47d9ed);}):_0x57fee7||_0xea830e||_0x5a5424([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d36c2(_0x47e4db,_0x4a85fa){return new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x366b30=>{if(_0x5c0901())return _0x366b30(_0x5a5424([0x56,0x61,0x6c,0x69,0x64]));_0x23ea1a(),_0x4314c5[_0x5a5424([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a5424([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26c539=!0x1;const _0x502ab3=_0x2efe7d();function _0x294dd7(_0x386de5){return!!_0x386de5&&(typeof _0x386de5===_0x5a5424([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x386de5===_0x5a5424([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x386de5[_0x5a5424([0x74,0x68,0x65,0x6e])]===_0x5a5424([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x386de5[_0x5a5424([0x63,0x61,0x74,0x63,0x68])]===_0x5a5424([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x346c0e(_0x1dec92){_0x15a4d7(_0x1dec92)[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x240518=>{if(!_0x240518||_0x240518[_0x5a5424([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a5424([0x6f,0x6b]))return _0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d365c(_0x4148ce(_0x502ab3+_0x4a85fa))!=_0x240518[_0x5a5424([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5424([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x52a9bb=>(_0x2b6e48(),_0x52a9bb),()=>{const _0x2c1d03=_0x174deb();return null==_0x2c1d03?(_0x2b6e48(),_0x5a5424([0x56,0x61,0x6c,0x69,0x64])):_0x5a5424(_0x326733-_0x2c1d03>(0x7753083a^_0x403196)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x366b30)[_0x5a5424([0x63,0x61,0x74,0x63,0x68])](()=>{_0x366b30(_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b73f5=0x536962ba^_0x403196;function _0x2b6e48(){const _0xd4ce72=_0x5a5424([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d365c(_0x4148ce(_0x47e4db)),_0x556f5b=_0x3255d8(_0x4d365c(window[_0x5a5424([0x4d,0x61,0x74,0x68])][_0x5a5424([0x63,0x65,0x69,0x6c])](_0x326733/_0x5b73f5)));window[_0x5a5424([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5424([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd4ce72,_0x556f5b);}function _0x174deb(){const _0x3e92ad=_0x5a5424([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d365c(_0x4148ce(_0x47e4db)),_0x207e70=window[_0x5a5424([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5424([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e92ad);return _0x207e70?window[_0x5a5424([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3255d8(_0x207e70),0x10)*_0x5b73f5:null;}function _0x15a4d7(_0x4256fd){return new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x486897,_0x31b6e0)=>{_0x4256fd[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x486897,_0x31b6e0),window[_0x5a5424([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31b6e0,0x535e58fa^_0x403196);});}}_0x4314c5[_0x5a5424([0x6f,0x6e])](_0x5a5424([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48f91f,_0x138baf)=>{if(_0x138baf[0x0]!=_0x47e4db)return _0x366b30(_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x138baf[0x1]={..._0x138baf[0x1],[_0x5a5424([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x502ab3};},{[_0x5a5424([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5424([0x68,0x69,0x67,0x68])}),_0x4314c5[_0x5a5424([0x6f,0x6e])](_0x5a5424([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f0c40=>{_0x294dd7(_0x4f0c40[_0x5a5424([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26c539=!0x0,_0x346c0e(_0x4f0c40[_0x5a5424([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a5424([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5424([0x6c,0x6f,0x77])}),_0x37966b[_0x5a5424([0x74,0x68,0x65,0x6e])](()=>{_0x26c539||_0x366b30(_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c0901(){return _0x4314c5[_0x5a5424([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5424([0x76,0x69,0x65,0x77])][_0x5a5424([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a5424([0x61,0x75,0x74,0x6f]);}function _0x23ea1a(){_0x4314c5[_0x5a5424([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5424([0x76,0x69,0x65,0x77])][_0x5a5424([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a5424([0x61,0x75,0x74,0x6f]);}}function _0x42c568(_0x25d73f){const _0xd553a3=[new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d5afd=>setTimeout(_0x3d5afd,0x5356b2f6^_0x403196)),_0x37966b[_0x5a5424([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7e8e=>{let _0x251a58=0x0;_0x4314c5[_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5424([0x6f,0x6e])](_0x5a5424([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25258e,_0x3da919)=>{_0x3da919[0x0][_0x5a5424([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x251a58++,_0x251a58==(0x535f89d2^_0x403196)&&(_0x3b7e8e(),_0x25258e[_0x5a5424([0x6f,0x66,0x66])]());});}))];return window[_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a5424([0x72,0x61,0x63,0x65])](_0xd553a3)[_0x5a5424([0x74,0x68,0x65,0x6e])](()=>_0x25d73f);}async function _0x3ba962(){await _0x37966b,_0x4314c5[_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5424([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25a1c4,_0x4314c5[_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5424([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25a1c4,_0x4314c5[_0x5a5424([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x595e45(_0x157e9a){const _0x357f44=_0x5409a0();_0x4314c5[_0x357f44]=_0x5a5424([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x157e9a,_0x157e9a!=_0x5a5424([0x56,0x61,0x6c,0x69,0x64])&&_0x3ba962();}function _0x5409a0(){const _0x20e6c2=window[_0x5a5424([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a5424([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a5424([0x6e,0x6f,0x77])]())[_0x5a5424([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a5424([0x2e]),'');let _0x2b3fe9=_0x5a5424([0x68]);for(let _0x468559=0x0;_0x468559<_0x20e6c2[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x468559+=0x2){let _0x4d7a39=window[_0x5a5424([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20e6c2[_0x5a5424([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x468559,_0x468559+0x2));_0x4d7a39>=_0x5c5a29[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d7a39-=_0x5c5a29[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b3fe9+=_0x5c5a29[_0x4d7a39];}return _0x2b3fe9;}function _0x433ef5(){const _0x35088e=_0x18fb24[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e]));if(0x3!=_0x35088e[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x278fa7(_0x35088e[0x1]);function _0x278fa7(_0x25f104){const _0x25be77=_0x41e708(_0x25f104);return _0x25be77&&_0x500ef6()?_0x25be77:null;function _0x500ef6(){const _0x4c6933=_0x25be77[_0x5a5424([0x6a,0x74,0x69])],_0x1aecb7=window[_0x5a5424([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c6933[_0x5a5424([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c6933[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xacb66a={..._0x25be77,[_0x5a5424([0x6a,0x74,0x69])]:_0x4c6933[_0x5a5424([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c6933[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xacb66a[_0x5a5424([0x76,0x63])],_0x4148ce(_0xacb66a)==_0x1aecb7;}}}async function _0x274f92(){let _0x5b435f=!0x0;try{const _0x58493b=_0x18fb24[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e])),[_0x428ee0,_0x3cf937,_0x13a112]=_0x58493b;return _0x2981b1(_0x428ee0),await _0x8f97f3(_0x428ee0,_0x3cf937,_0x13a112),_0x5b435f;}catch{return!0x1;}function _0x2981b1(_0x137074){const _0x312ab7=_0x41e708(_0x137074);_0x312ab7&&_0x312ab7[_0x5a5424([0x61,0x6c,0x67])]==_0x5a5424([0x45,0x53,0x32,0x35,0x36])||(_0x5b435f=!0x1);}async function _0x8f97f3(_0x493882,_0x274c51,_0x1615e8){const _0x346fae=window[_0x5a5424([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a5424([0x66,0x72,0x6f,0x6d])](_0x5be7a6(_0x1615e8),_0x544af5=>_0x544af5[_0x5a5424([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31810f=new window[(_0x5a5424([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a5424([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x493882+_0x5a5424([0x2e])+_0x274c51),_0x76d233=window[_0x5a5424([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a5424([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x76d233)return;const _0x1d3fe4=await _0x76d233[_0x5a5424([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a5424([0x6a,0x77,0x6b]),_0x561be5,{[_0x5a5424([0x6e,0x61,0x6d,0x65])]:_0x5a5424([0x45,0x43,0x44,0x53,0x41]),[_0x5a5424([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a5424([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a5424([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x76d233[_0x5a5424([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a5424([0x6e,0x61,0x6d,0x65])]:_0x5a5424([0x45,0x43,0x44,0x53,0x41]),[_0x5a5424([0x68,0x61,0x73,0x68])]:{[_0x5a5424([0x6e,0x61,0x6d,0x65])]:_0x5a5424([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d3fe4,_0x346fae,_0x31810f)||(_0x5b435f=!0x1);}}function _0x41e708(_0xc31522){return _0xc31522[_0x5a5424([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a5424([0x65,0x79]))?JSON[_0x5a5424([0x70,0x61,0x72,0x73,0x65])](_0x5be7a6(_0xc31522)):null;}function _0x5be7a6(_0x372415){return window[_0x5a5424([0x61,0x74,0x6f,0x62])](_0x372415[_0x5a5424([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a5424([0x2b]))[_0x5a5424([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a5424([0x2f])));}function _0x4148ce(_0x165524){let _0x59a18e=0x1505;function _0x1d58c0(_0x5ae522){for(let _0x104472=0x0;_0x104472<_0x5ae522[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104472++){const _0x133c7c=_0x5ae522[_0x5a5424([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x104472);_0x59a18e=(_0x59a18e<<0x5)+_0x59a18e+_0x133c7c,_0x59a18e&=_0x59a18e;}}function _0x2c7133(_0x832d5f){Array[_0x5a5424([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x832d5f)?_0x832d5f[_0x5a5424([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c7133):_0x832d5f&&typeof _0x832d5f==_0x5a5424([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a5424([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x832d5f)[_0x5a5424([0x73,0x6f,0x72,0x74])]()[_0x5a5424([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cca92,_0x44037a])=>{_0x1d58c0(_0x2cca92),_0x2c7133(_0x44037a);}):_0x1d58c0(window[_0x5a5424([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x832d5f));}return _0x2c7133(_0x165524),_0x59a18e>>>0x0;}function _0x4d365c(_0x1e078f){return _0x1e078f[_0x5a5424([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a5424([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a5424([0x30]));}function _0x3255d8(_0x1f7575){return _0x1f7575[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a5424([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a5424([0x6a,0x6f,0x69,0x6e])]('');}function _0x25a1c4(){}function _0x5a5424(_0x4c1b9d){const _0x3ffa1b=_0x58b7;return _0x4c1b9d[_0x3ffa1b(0x1fa)](_0x5a838d=>String[_0x3ffa1b(0x23d)](_0x5a838d))[_0x3ffa1b(0x1f4)]('');}_0x595e45(await _0x4a0803());}(this);}[_0x30194a(0x23c)](){const _0x318557=_0x30194a,_0x225ba3=this[_0x318557(0x21b)][_0x318557(0x210)][_0x318557(0x202)];_0x225ba3[_0x318557(0x22c)](_0x318557(0x1f6))&&_0x225ba3[_0x318557(0x218)](_0x318557(0x1f6),{'allowAttributes':[_0x318557(0x236)]}),_0x225ba3[_0x318557(0x22c)](_0x318557(0x234))&&_0x225ba3[_0x318557(0x218)](_0x318557(0x234),{'allowAttributes':[_0x318557(0x236)]});}[_0x30194a(0x1fc)](){const _0x372676=_0x30194a,_0x4b42fc=this[_0x372676(0x21b)];_0x4b42fc[_0x372676(0x221)][_0x372676(0x1ea)](_0x372676(0x21d))[_0x372676(0x20b)]({'model':_0x372676(0x236),'view':_0x372676(0x1f5)}),_0x4b42fc[_0x372676(0x221)][_0x372676(0x1ea)](_0x372676(0x211))[_0x372676(0x20c)]({'model':{'key':_0x372676(0x236),'value':_0x2e9224=>_0x2e9224[_0x372676(0x205)](_0x372676(0x1f5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e5e90=_0x4b42fc[_0x372676(0x213)][_0x372676(0x21a)](_0x372676(0x1f2));_0x1e5e90&&this[_0x372676(0x231)](_0x1e5e90,_0x372676(0x23a),(_0x5f431c,[_0x232d95,_0x6315e5])=>{const _0x553140=_0x372676;_0x232d95[_0x553140(0x225)](_0x553140(0x236),_0x6315e5);});}[_0x30194a(0x239)](){const _0x6c1b53=_0x30194a,_0x4906aa=this[_0x6c1b53(0x21b)][_0x6c1b53(0x206)][_0x6c1b53(0x21a)](_0x6c1b53(0x1f8))||{},_0x4b308d=this[_0x6c1b53(0x21b)][_0x6c1b53(0x206)][_0x6c1b53(0x21a)](_0x6c1b53(0x228))||'';this[_0x6c1b53(0x1ef)]=_0x2098a1(_0x295177[_0x6c1b53(0x1f1)],_0x6c1b53(0x1fb),{..._0x4906aa,'pubkey':_0x4b308d,'ctx-name':_0x6c1b53(0x22a)+this[_0x6c1b53(0x214)],'sourceList':'','imgOnly':_0x6c1b53(0x1f0),'removeCopyright':_0x6c1b53(0x1f0),'localeName':this[_0x6c1b53(0x21b)][_0x6c1b53(0x20d)][_0x6c1b53(0x223)],'externalSourcesEmbedCss':_0x6c1b53(0x226)}),this[_0x6c1b53(0x1ef)][_0x6c1b53(0x204)]=_0x533b2f=>{const _0x15ff77=_0x6c1b53;if(_0x15ff77(0x222)==_0x533b2f)return _0x15ff77(0x217);},_0x295177[_0x6c1b53(0x1f1)][_0x6c1b53(0x207)][_0x6c1b53(0x22e)](this[_0x6c1b53(0x1ef)]);}[_0x30194a(0x1f9)](){const _0x41d761=_0x30194a;this[_0x41d761(0x215)]=_0x2098a1(_0x295177[_0x41d761(0x1f1)],_0x41d761(0x20a),{'ctx-name':_0x41d761(0x22a)+this[_0x41d761(0x214)]}),_0x295177[_0x41d761(0x1f1)][_0x41d761(0x207)][_0x41d761(0x22e)](this[_0x41d761(0x215)]);}[_0x30194a(0x237)](){const _0x440382=_0x30194a,_0x59f707=this[_0x440382(0x21b)][_0x440382(0x213)][_0x440382(0x21a)](_0x440382(0x21c));_0x59f707&&this[_0x440382(0x231)](_0x59f707,_0x440382(0x224),()=>{const _0x2adb1c=_0x440382,_0x42fae1=this[_0x2adb1c(0x21b)][_0x2adb1c(0x210)][_0x2adb1c(0x1f1)][_0x2adb1c(0x200)][_0x2adb1c(0x235)]();_0x42fae1&&_0x42fae1[_0x2adb1c(0x205)](_0x2adb1c(0x236))&&this[_0x2adb1c(0x21b)][_0x2adb1c(0x20f)][_0x2adb1c(0x227)][_0x2adb1c(0x1f7)](_0x2adb1c(0x23b),()=>{const _0x547e1f=_0x2adb1c;_0x2af1d8(this[_0x547e1f(0x21b)],_0x42fae1);});});const _0x28a1f3=this[_0x440382(0x21b)][_0x440382(0x213)][_0x440382(0x21a)](_0x440382(0x220));_0x28a1f3&&this[_0x440382(0x231)](_0x28a1f3,_0x440382(0x224),()=>{const _0x230622=_0x440382,_0x2acbe=this[_0x230622(0x21b)][_0x230622(0x210)][_0x230622(0x1f1)][_0x230622(0x200)][_0x230622(0x235)]();_0x2acbe&&_0x2acbe[_0x230622(0x205)](_0x230622(0x236))&&this[_0x230622(0x21b)][_0x230622(0x20f)][_0x230622(0x227)][_0x230622(0x1f7)](_0x230622(0x23b),()=>{const _0x2eaa8d=_0x230622;_0x2af1d8(this[_0x2eaa8d(0x21b)],_0x2acbe);});});}}
|
|
23
|
+
const _0x4e3a91=_0xe679;(function(_0x52630d,_0x273f83){const _0x8c32c7=_0xe679,_0x248586=_0x52630d();while(!![]){try{const _0x15665a=parseInt(_0x8c32c7(0xbc))/0x1+parseInt(_0x8c32c7(0xb3))/0x2+parseInt(_0x8c32c7(0xa9))/0x3+-parseInt(_0x8c32c7(0xd5))/0x4*(-parseInt(_0x8c32c7(0xd9))/0x5)+-parseInt(_0x8c32c7(0xa3))/0x6+-parseInt(_0x8c32c7(0xbf))/0x7+parseInt(_0x8c32c7(0xd3))/0x8*(parseInt(_0x8c32c7(0xd7))/0x9);if(_0x15665a===_0x273f83)break;else _0x248586['push'](_0x248586['shift']());}catch(_0x3906c8){_0x248586['push'](_0x248586['shift']());}}}(_0x5b94,0xe2f53));function _0xe679(_0x3d406b,_0x1f8edc){const _0x5b9456=_0x5b94();return _0xe679=function(_0xe679be,_0x593ac8){_0xe679be=_0xe679be-0x92;let _0x4847fa=_0x5b9456[_0xe679be];return _0x4847fa;},_0xe679(_0x3d406b,_0x1f8edc);}function _0x5b94(){const _0x4fc4c2=['listenTo','6078714pfUNzo','destroy','configElement','editor','_initConversion','document','3934083ddDIcd','data-uc-image-id','render','_initCtx','schema','replaceImageSource','requires','removeAttribute','isPremiumPlugin','contentLanguage','1751984QTfGsw','join','\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','elementToAttribute','extend','model','closeMax','selection','imageInline','482409FIqNUt','afterInit','view','12589654OGlgMD','imageBlock','iconHrefResolver','add','isRegistered','pluginName','PictureEditing','appendChild','getAttribute','downcast','locale','true','map','uc-config','_initImageProcessingIndicator','input[uploadcare-file-input]','upcast','cleanupImage','fromCharCode','_ctxElement','1330520VxkJBU','for','1624952MYIkkB','uploadcareImageId','36uabBPO','uploadcare.uploader','5eaLhoh','init','getSelectedElement','ucContextId','uploader-','uploadcare.pubkey','get','#uc-icon-arrow-down','uc-upload-ctx-provider','attributeToAttribute','body','ctxElement','isOfficialPlugin','querySelector','execute','insertImage','config','once','_configElement','remove','_initConfig','conversion','commands','uploadcareImageReplace','uploadcare','UploadcareEditing','_initSchema','href','editing'];_0x5b94=function(){return _0x4fc4c2;};return _0x5b94();}import{Plugin as _0x19cb54}from'ckeditor5/src/core.js';import{Dialog as _0x59cdab}from'ckeditor5/src/ui.js';import{createElement as _0x390f43,global as _0x394905,uid as _0x2c6a26}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x653b5e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2e1e8a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x40fc90}from'./utils/editingutils.js';export class UploadcareEditing extends _0x19cb54{[_0x4e3a91(0x97)]=null;[_0x4e3a91(0xd2)]=null;static get[_0x4e3a91(0xc4)](){const _0x36898d=_0x4e3a91;return _0x36898d(0x9e);}static get[_0x4e3a91(0xaf)](){const _0x3f5f6d=_0x4e3a91;return[_0x3f5f6d(0xc5),_0x2e1e8a,_0x59cdab];}static get[_0x4e3a91(0xe5)](){return!0x0;}static get[_0x4e3a91(0xb1)](){return!0x0;}[_0x4e3a91(0xdc)];get[_0x4e3a91(0xa5)](){const _0xf429dc=_0x4e3a91;return this[_0xf429dc(0x97)];}get[_0x4e3a91(0xe4)](){const _0x579394=_0x4e3a91;return this[_0x579394(0xd2)];}constructor(_0x2de535){const _0x25766a=_0x4e3a91;super(_0x2de535),this[_0x25766a(0xdc)]=_0x2c6a26();}[_0x4e3a91(0xda)](){const _0x3258d0=_0x4e3a91,_0xe5920d=this[_0x3258d0(0xa6)];_0xe5920d[_0x3258d0(0x9b)][_0x3258d0(0xc2)](_0x3258d0(0x9d),new _0x653b5e(_0xe5920d));}[_0x4e3a91(0xbd)](){const _0xacb866=_0x4e3a91;this[_0xacb866(0x9f)](),this[_0xacb866(0xa7)](),this[_0xacb866(0x99)](),this[_0xacb866(0xac)](),this[_0xacb866(0xcd)](),this[_0xacb866(0xa2)](this[_0xacb866(0xa6)],_0xacb866(0xa4),()=>{const _0x647607=_0xacb866;this[_0x647607(0x97)]&&(this[_0x647607(0x97)][_0x647607(0x98)](),this[_0x647607(0x97)]=null),this[_0x647607(0xd2)]&&(this[_0x647607(0xd2)][_0x647607(0x98)](),this[_0x647607(0xd2)]=null);const _0x31fbc7=_0x394905[_0x647607(0xa8)][_0x647607(0x92)](_0x647607(0xce));_0x31fbc7&&_0x31fbc7[_0x647607(0x98)]();}),async function(_0x20b7e2){const _0x44648f=_0x5c0efa([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x331bca=0x535f8c3a,_0x5a2716=0x53580c72^_0x331bca,_0xdaf0e0=window[_0x5c0efa([0x44,0x61,0x74,0x65])][_0x5c0efa([0x6e,0x6f,0x77])](),_0x2ef96b=_0x20b7e2[_0x5c0efa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f5066=new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a25d7=>{_0x2ef96b[_0x5c0efa([0x6f,0x6e,0x63,0x65])](_0x5c0efa([0x72,0x65,0x61,0x64,0x79]),_0x1a25d7);}),_0x1f3d2e={[_0x5c0efa([0x6b,0x74,0x79])]:_0x5c0efa([0x45,0x43]),[_0x5c0efa([0x75,0x73,0x65])]:_0x5c0efa([0x73,0x69,0x67]),[_0x5c0efa([0x63,0x72,0x76])]:_0x5c0efa([0x50,0x2d,0x32,0x35,0x36]),[_0x5c0efa([0x78])]:_0x5c0efa([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]),[_0x5c0efa([0x79])]:_0x5c0efa([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]),[_0x5c0efa([0x61,0x6c,0x67])]:_0x5c0efa([0x45,0x53,0x32,0x35,0x36])},_0x7e5b=_0x2ef96b[_0x5c0efa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c0efa([0x67,0x65,0x74])](_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x537932(){let _0x396295,_0xd9f764=null,_0x4e3afb=null;try{if(_0x7e5b==_0x5c0efa([0x47,0x50,0x4c]))return _0x5c0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x396295=_0x49c770(),!_0x396295)return _0x5c0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x396295[_0x5c0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e3afb=_0x14e2cf(_0x396295[_0x5c0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x396295[_0x5c0efa([0x6a,0x74,0x69])])),await _0x2080f0()?_0x145d7c()?_0x3dc6f7()?_0x5c0efa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5514c8()?(_0x396295[_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd9f764=_0x246ffb(_0x5c0efa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4aa573()):_0x5c0efa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3dc6f7(){const _0x528275=[_0x5c0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c0efa([0x74,0x72,0x69,0x61,0x6c])][_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x396295[_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdaf0e0/0x3e8:0xe10*_0x5a2716;return _0x396295[_0x5c0efa([0x65,0x78,0x70])]<_0x528275;}function _0x145d7c(){const _0x336a06=_0x396295[_0x5c0efa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x336a06&&(!!_0x336a06[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0efa([0x2a]))||!!_0x336a06[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0efa([0x55,0x50,0x4c,0x43])));}function _0x5514c8(){const _0x9cf5af=_0xe679,_0x5d73eb=_0x396295[_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d73eb||0x0==_0x5d73eb[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3160f7}=new URL(window[_0x5c0efa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x9cf5af(0xa0)]);if(_0x5d73eb[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3160f7))return!0x0;const _0x4685ab=_0x3160f7[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e]));return _0x5d73eb[_0x5c0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cf6a9=>_0x5cf6a9[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0efa([0x2a])))[_0x5c0efa([0x6d,0x61,0x70])](_0x70e137=>_0x70e137[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e])))[_0x5c0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c557c=>_0x2c557c[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4685ab[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c0efa([0x6d,0x61,0x70])](_0x584594=>Array(_0x4685ab[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x584594[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c0efa([0x66,0x69,0x6c,0x6c])](_0x584594[0x0]===_0x5c0efa([0x2a])?_0x5c0efa([0x2a]):'')[_0x5c0efa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x584594))[_0x5c0efa([0x73,0x6f,0x6d,0x65])](_0x1187e2=>_0x4685ab[_0x5c0efa([0x65,0x76,0x65,0x72,0x79])]((_0x2b33e3,_0x1d6f09)=>_0x1187e2[_0x1d6f09]===_0x2b33e3||_0x1187e2[_0x1d6f09]===_0x5c0efa([0x2a])));}function _0x4aa573(){return _0xd9f764&&_0x4e3afb?new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x79045d,_0x100342)=>{_0xd9f764[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x79045d,_0x100342),_0x4e3afb[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x52162f=>{_0x52162f!=_0x5c0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x79045d(_0x52162f);},_0x100342);}):_0xd9f764||_0x4e3afb||_0x5c0efa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14e2cf(_0x462def,_0x4b3d64){return new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x103461=>{if(_0x5a8f4e())return _0x103461(_0x5c0efa([0x56,0x61,0x6c,0x69,0x64]));_0x4a1a33(),_0x2ef96b[_0x5c0efa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52d3ca=!0x1;const _0x1f4aeb=_0x2c6a26();function _0x4a0a15(_0x1c2e32){return!!_0x1c2e32&&(typeof _0x1c2e32===_0x5c0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c2e32===_0x5c0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c2e32[_0x5c0efa([0x74,0x68,0x65,0x6e])]===_0x5c0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c2e32[_0x5c0efa([0x63,0x61,0x74,0x63,0x68])]===_0x5c0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb037(_0x31d969){_0xedd60e(_0x31d969)[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x260a12=>{if(!_0x260a12||_0x260a12[_0x5c0efa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c0efa([0x6f,0x6b]))return _0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x437460(_0x1dc8ae(_0x1f4aeb+_0x4b3d64))!=_0x260a12[_0x5c0efa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c0efa([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x289c40=>(_0x440099(),_0x289c40),()=>{const _0x4b2eac=_0x4f7095();return null==_0x4b2eac?(_0x440099(),_0x5c0efa([0x56,0x61,0x6c,0x69,0x64])):_0x5c0efa(_0xdaf0e0-_0x4b2eac>(0x7753083a^_0x331bca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x103461)[_0x5c0efa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x103461(_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a808b=0x536962ba^_0x331bca;function _0x440099(){const _0x13fde8=_0x5c0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x437460(_0x1dc8ae(_0x462def)),_0x15ffc5=_0x3e2c22(_0x437460(window[_0x5c0efa([0x4d,0x61,0x74,0x68])][_0x5c0efa([0x63,0x65,0x69,0x6c])](_0xdaf0e0/_0x4a808b)));window[_0x5c0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c0efa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13fde8,_0x15ffc5);}function _0x4f7095(){const _0x3311ef=_0x5c0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x437460(_0x1dc8ae(_0x462def)),_0x4d19e7=window[_0x5c0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c0efa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3311ef);return _0x4d19e7?window[_0x5c0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2c22(_0x4d19e7),0x10)*_0x4a808b:null;}function _0xedd60e(_0x17e537){return new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bb7ba,_0x650f85)=>{_0x17e537[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x3bb7ba,_0x650f85),window[_0x5c0efa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x650f85,0x535e58fa^_0x331bca);});}}_0x2ef96b[_0x5c0efa([0x6f,0x6e])](_0x5c0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4cdfb6,_0x5d4e2e)=>{if(_0x5d4e2e[0x0]!=_0x462def)return _0x103461(_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d4e2e[0x1]={..._0x5d4e2e[0x1],[_0x5c0efa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f4aeb};},{[_0x5c0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c0efa([0x68,0x69,0x67,0x68])}),_0x2ef96b[_0x5c0efa([0x6f,0x6e])](_0x5c0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8498d9=>{_0x4a0a15(_0x8498d9[_0x5c0efa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52d3ca=!0x0,_0x2fb037(_0x8498d9[_0x5c0efa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c0efa([0x6c,0x6f,0x77])}),_0x3f5066[_0x5c0efa([0x74,0x68,0x65,0x6e])](()=>{_0x52d3ca||_0x103461(_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a8f4e(){return _0x2ef96b[_0x5c0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c0efa([0x76,0x69,0x65,0x77])][_0x5c0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c0efa([0x61,0x75,0x74,0x6f]);}function _0x4a1a33(){_0x2ef96b[_0x5c0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c0efa([0x76,0x69,0x65,0x77])][_0x5c0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c0efa([0x61,0x75,0x74,0x6f]);}}function _0x246ffb(_0x3a3a68){const _0x5393c9=[new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17de7f=>setTimeout(_0x17de7f,0x5356b2f6^_0x331bca)),_0x3f5066[_0x5c0efa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8053=>{let _0x19bf05=0x0;_0x2ef96b[_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c0efa([0x6f,0x6e])](_0x5c0efa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26c8e9,_0x3ae5f7)=>{_0x3ae5f7[0x0][_0x5c0efa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19bf05++,_0x19bf05==(0x535f89d2^_0x331bca)&&(_0x4c8053(),_0x26c8e9[_0x5c0efa([0x6f,0x66,0x66])]());});}))];return window[_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c0efa([0x72,0x61,0x63,0x65])](_0x5393c9)[_0x5c0efa([0x74,0x68,0x65,0x6e])](()=>_0x3a3a68);}async function _0x348e4a(){await _0x3f5066,_0x2ef96b[_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c0efa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12eac5,_0x2ef96b[_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c0efa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12eac5,_0x2ef96b[_0x5c0efa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45a997(_0xcd04df){const _0x1e4b3c=_0x5b2792();_0x2ef96b[_0x1e4b3c]=_0x5c0efa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xcd04df,_0xcd04df!=_0x5c0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x348e4a();}function _0x5b2792(){const _0x59c4ff=window[_0x5c0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c0efa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c0efa([0x6e,0x6f,0x77])]())[_0x5c0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c0efa([0x2e]),'');let _0x239f8a=_0x5c0efa([0x68]);for(let _0x4104e2=0x0;_0x4104e2<_0x59c4ff[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4104e2+=0x2){let _0x33b92a=window[_0x5c0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c4ff[_0x5c0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4104e2,_0x4104e2+0x2));_0x33b92a>=_0x44648f[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33b92a-=_0x44648f[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x239f8a+=_0x44648f[_0x33b92a];}return _0x239f8a;}function _0x49c770(){const _0x38dd07=_0x7e5b[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e]));if(0x3!=_0x38dd07[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3489e3(_0x38dd07[0x1]);function _0x3489e3(_0x594acf){const _0x341cd6=_0x52eae6(_0x594acf);return _0x341cd6&&_0x4fcd7f()?_0x341cd6:null;function _0x4fcd7f(){const _0x15122c=_0x341cd6[_0x5c0efa([0x6a,0x74,0x69])],_0x50152d=window[_0x5c0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15122c[_0x5c0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15122c[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5133d2={..._0x341cd6,[_0x5c0efa([0x6a,0x74,0x69])]:_0x15122c[_0x5c0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15122c[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5133d2[_0x5c0efa([0x76,0x63])],_0x1dc8ae(_0x5133d2)==_0x50152d;}}}async function _0x2080f0(){let _0x19e74a=!0x0;try{const _0x54626c=_0x7e5b[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e])),[_0x43d75f,_0x545eff,_0x48a3bc]=_0x54626c;return _0x4f8dde(_0x43d75f),await _0x231bb7(_0x43d75f,_0x545eff,_0x48a3bc),_0x19e74a;}catch{return!0x1;}function _0x4f8dde(_0x1aeeaa){const _0x16b2a4=_0x52eae6(_0x1aeeaa);_0x16b2a4&&_0x16b2a4[_0x5c0efa([0x61,0x6c,0x67])]==_0x5c0efa([0x45,0x53,0x32,0x35,0x36])||(_0x19e74a=!0x1);}async function _0x231bb7(_0x2570b9,_0x368756,_0x2ef4e0){const _0x29911e=window[_0x5c0efa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c0efa([0x66,0x72,0x6f,0x6d])](_0x11aab5(_0x2ef4e0),_0x24300e=>_0x24300e[_0x5c0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd559=new window[(_0x5c0efa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c0efa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2570b9+_0x5c0efa([0x2e])+_0x368756),_0x421397=window[_0x5c0efa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c0efa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x421397)return;const _0x3dc008=await _0x421397[_0x5c0efa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c0efa([0x6a,0x77,0x6b]),_0x1f3d2e,{[_0x5c0efa([0x6e,0x61,0x6d,0x65])]:_0x5c0efa([0x45,0x43,0x44,0x53,0x41]),[_0x5c0efa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c0efa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c0efa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x421397[_0x5c0efa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c0efa([0x6e,0x61,0x6d,0x65])]:_0x5c0efa([0x45,0x43,0x44,0x53,0x41]),[_0x5c0efa([0x68,0x61,0x73,0x68])]:{[_0x5c0efa([0x6e,0x61,0x6d,0x65])]:_0x5c0efa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dc008,_0x29911e,_0x4dd559)||(_0x19e74a=!0x1);}}function _0x52eae6(_0x1d42f6){return _0x1d42f6[_0x5c0efa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c0efa([0x65,0x79]))?JSON[_0x5c0efa([0x70,0x61,0x72,0x73,0x65])](_0x11aab5(_0x1d42f6)):null;}function _0x11aab5(_0x4ab53c){return window[_0x5c0efa([0x61,0x74,0x6f,0x62])](_0x4ab53c[_0x5c0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c0efa([0x2b]))[_0x5c0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c0efa([0x2f])));}function _0x1dc8ae(_0x1142a0){let _0x4b037a=0x1505;function _0x2a2460(_0x1b03a6){for(let _0x441575=0x0;_0x441575<_0x1b03a6[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x441575++){const _0x53772e=_0x1b03a6[_0x5c0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x441575);_0x4b037a=(_0x4b037a<<0x5)+_0x4b037a+_0x53772e,_0x4b037a&=_0x4b037a;}}function _0x4cd7ad(_0x5f4bd4){Array[_0x5c0efa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f4bd4)?_0x5f4bd4[_0x5c0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cd7ad):_0x5f4bd4&&typeof _0x5f4bd4==_0x5c0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c0efa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f4bd4)[_0x5c0efa([0x73,0x6f,0x72,0x74])]()[_0x5c0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf78d7d,_0x259ac4])=>{_0x2a2460(_0xf78d7d),_0x4cd7ad(_0x259ac4);}):_0x2a2460(window[_0x5c0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f4bd4));}return _0x4cd7ad(_0x1142a0),_0x4b037a>>>0x0;}function _0x437460(_0x2eec72){return _0x2eec72[_0x5c0efa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c0efa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c0efa([0x30]));}function _0x3e2c22(_0x5a86d4){return _0x5a86d4[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c0efa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c0efa([0x6a,0x6f,0x69,0x6e])]('');}function _0x12eac5(){}function _0x5c0efa(_0x39ba6f){const _0x38d4f7=_0xe679;return _0x39ba6f[_0x38d4f7(0xcb)](_0x2330f7=>String[_0x38d4f7(0xd1)](_0x2330f7))[_0x38d4f7(0xb4)]('');}_0x45a997(await _0x537932());}(this);}[_0x4e3a91(0x9f)](){const _0x3ca042=_0x4e3a91,_0x8cee34=this[_0x3ca042(0xa6)][_0x3ca042(0xb8)][_0x3ca042(0xad)];_0x8cee34[_0x3ca042(0xc3)](_0x3ca042(0xc0))&&_0x8cee34[_0x3ca042(0xb7)](_0x3ca042(0xc0),{'allowAttributes':[_0x3ca042(0xd6)]}),_0x8cee34[_0x3ca042(0xc3)](_0x3ca042(0xbb))&&_0x8cee34[_0x3ca042(0xb7)](_0x3ca042(0xbb),{'allowAttributes':[_0x3ca042(0xd6)]});}[_0x4e3a91(0xa7)](){const _0x2c934a=_0x4e3a91,_0x3869f0=this[_0x2c934a(0xa6)];_0x3869f0[_0x2c934a(0x9a)][_0x2c934a(0xd4)](_0x2c934a(0xc8))[_0x2c934a(0xe2)]({'model':_0x2c934a(0xd6),'view':_0x2c934a(0xaa)}),_0x3869f0[_0x2c934a(0x9a)][_0x2c934a(0xd4)](_0x2c934a(0xcf))[_0x2c934a(0xb6)]({'model':{'key':_0x2c934a(0xd6),'value':_0x5d9351=>_0x5d9351[_0x2c934a(0xc7)](_0x2c934a(0xaa))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57e05c=_0x3869f0[_0x2c934a(0x9b)][_0x2c934a(0xdf)](_0x2c934a(0xae));_0x57e05c&&this[_0x2c934a(0xa2)](_0x57e05c,_0x2c934a(0xd0),(_0x3bd95e,[_0x143831,_0x4e5934])=>{const _0x1fb2ca=_0x2c934a;_0x143831[_0x1fb2ca(0xb0)](_0x1fb2ca(0xd6),_0x4e5934);});}[_0x4e3a91(0x99)](){const _0x3f8e5f=_0x4e3a91,_0x1f288f=this[_0x3f8e5f(0xa6)][_0x3f8e5f(0x95)][_0x3f8e5f(0xdf)](_0x3f8e5f(0xd8))||{},_0x414c4d=this[_0x3f8e5f(0xa6)][_0x3f8e5f(0x95)][_0x3f8e5f(0xdf)](_0x3f8e5f(0xde))||'';this[_0x3f8e5f(0x97)]=_0x390f43(_0x394905[_0x3f8e5f(0xa8)],_0x3f8e5f(0xcc),{..._0x1f288f,'pubkey':_0x414c4d,'ctx-name':_0x3f8e5f(0xdd)+this[_0x3f8e5f(0xdc)],'sourceList':'','imgOnly':_0x3f8e5f(0xca),'removeCopyright':_0x3f8e5f(0xca),'localeName':this[_0x3f8e5f(0xa6)][_0x3f8e5f(0xc9)][_0x3f8e5f(0xb2)],'externalSourcesEmbedCss':_0x3f8e5f(0xb5)}),this[_0x3f8e5f(0x97)][_0x3f8e5f(0xc1)]=_0x485008=>{const _0x194951=_0x3f8e5f;if(_0x194951(0xb9)==_0x485008)return _0x194951(0xe0);},_0x394905[_0x3f8e5f(0xa8)][_0x3f8e5f(0xe3)][_0x3f8e5f(0xc6)](this[_0x3f8e5f(0x97)]);}[_0x4e3a91(0xac)](){const _0x191575=_0x4e3a91;this[_0x191575(0xd2)]=_0x390f43(_0x394905[_0x191575(0xa8)],_0x191575(0xe1),{'ctx-name':_0x191575(0xdd)+this[_0x191575(0xdc)]}),_0x394905[_0x191575(0xa8)][_0x191575(0xe3)][_0x191575(0xc6)](this[_0x191575(0xd2)]);}[_0x4e3a91(0xcd)](){const _0x146afe=_0x4e3a91,_0x2232fd=this[_0x146afe(0xa6)][_0x146afe(0x9b)][_0x146afe(0xdf)](_0x146afe(0x94));_0x2232fd&&this[_0x146afe(0xa2)](_0x2232fd,_0x146afe(0x93),()=>{const _0x32accc=_0x146afe,_0x5cb255=this[_0x32accc(0xa6)][_0x32accc(0xb8)][_0x32accc(0xa8)][_0x32accc(0xba)][_0x32accc(0xdb)]();_0x5cb255&&_0x5cb255[_0x32accc(0xc7)](_0x32accc(0xd6))&&this[_0x32accc(0xa6)][_0x32accc(0xa1)][_0x32accc(0xbe)][_0x32accc(0x96)](_0x32accc(0xab),()=>{const _0x1c06ef=_0x32accc;_0x40fc90(this[_0x1c06ef(0xa6)],_0x5cb255);});});const _0x3ca785=this[_0x146afe(0xa6)][_0x146afe(0x9b)][_0x146afe(0xdf)](_0x146afe(0x9c));_0x3ca785&&this[_0x146afe(0xa2)](_0x3ca785,_0x146afe(0x93),()=>{const _0x4cf79c=_0x146afe,_0x46504f=this[_0x4cf79c(0xa6)][_0x4cf79c(0xb8)][_0x4cf79c(0xa8)][_0x4cf79c(0xba)][_0x4cf79c(0xdb)]();_0x46504f&&_0x46504f[_0x4cf79c(0xc7)](_0x4cf79c(0xd6))&&this[_0x4cf79c(0xa6)][_0x4cf79c(0xa1)][_0x4cf79c(0xbe)][_0x4cf79c(0x96)](_0x4cf79c(0xab),()=>{const _0x375cb=_0x4cf79c;_0x40fc90(this[_0x375cb(0xa6)],_0x46504f);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xf4f596,ObservableMixin as _0x199a79}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x12a993}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x13dcf8}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x54fb97}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x20ccf3}from'../../utils/uploadutils.js';import{getImageUrls as _0x2a7a36,getImageDimension as _0x22606f}from'../../utils/editingutils.js';import{isAncestor as _0x14be79}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x199a79(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x528c54,_0x178313,_0x3d6ec8){super(),this['_editor']=_0x528c54,this['_dialog']=_0x178313,this['_imageElement']=_0x3d6ec8,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 _0x28c42a=this['_imageElement'],_0x11e429=_0x28c42a['getAttribute']('uploadcareImageId'),_0x569f9a=_0x28c42a['getAttribute']('src');if(_0x11e429)await this['_loadImageInfo'](_0x11e429,_0x569f9a);else{if(this['_imageCache']['has'](_0x569f9a)){const _0xdb21c2=this['_imageCache']['get'](_0x569f9a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xdb21c2['url'],this['imageDimension']=_0xdb21c2['dimension'],this['imageId']=_0xdb21c2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x298b2c}=this['_editor'],t=_0x298b2c['t'],_0x4695aa=new _0x54fb97(_0x298b2c,this['imageStatus'],this['_attributes']);_0x4695aa['bind']('status')['to'](this,'imageStatus'),_0x4695aa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4695aa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4695aa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4695aa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x13dcf8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4695aa,'position':_0x12a993['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4695aa['focus']();},'onHide':()=>{_0x4695aa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4eda3d=>!_0x14be79(_0x4eda3d,_0x4695aa['element'])}});}['_loadImageInfo'](_0x34aca9,_0xbc03ab){return _0x20ccf3['getInfo'](_0x34aca9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x193415=>{const {width:_0x47100e,height:_0x3e7730}=_0x193415['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbc03ab,this['imageDimension']={'width':_0x47100e,'height':_0x3e7730},this['imageId']=_0x34aca9;})['catch'](_0x5eb423=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5eb423['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x335f0c,_0xb7afe4){return this['_getImageAsFile'](_0x335f0c)['then'](_0x380239=>_0x20ccf3['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':_0xb7afe4['signal'],'file':_0x380239,'onProgress':_0x39ea2e=>{_0x39ea2e&&_0x39ea2e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x39ea2e['value']));}}))['then'](_0x32e857=>{const {width:_0x360395,height:_0x254f03}=_0x32e857['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32e857['cdnUrl'],this['imageDimension']={'width':_0x360395,'height':_0x254f03},this['imageId']=_0x32e857['uuid'],this['imageUploadProgress']=null;const _0x6840dd=_0x335f0c['getAttribute']('src');this['_imageCache']['set'](_0x6840dd,{'id':_0x32e857['uuid'],'url':_0x32e857['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2b7041=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b7041['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x46aa72,_0x219a3d){_0x46aa72['on']('apply',(_0x1caf0f,_0x1a2e6b)=>{this['_replaceImage'](_0x219a3d,_0x1a2e6b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x46aa72['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x46aa72['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe0d4b7,_0x3a0403,_0x32a242){const _0x388c2e=this['_editor'],{width:_0x5ddfa5,height:_0x232bec}=_0x22606f(_0x3a0403,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x44b6ec,imageSources:_0x5645ad}=_0x2a7a36(_0x3a0403,_0x5ddfa5);_0x388c2e['model']['change'](_0x5c0b14=>{if('$graveyard'===_0xe0d4b7['root']['rootName']){_0x388c2e['execute']('insertImage',{'imageType':_0xe0d4b7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe0d4b7['getAttributes']()),'uploadcareImageId':_0x32a242,'src':_0x44b6ec,'sources':_0x5645ad,'width':_0x5ddfa5,'height':_0x232bec}});const _0xde8486=_0xe0d4b7['getChildren']();_0xe0d4b7=_0x388c2e['model']['document']['selection']['getSelectedElement']();for(const _0x5560cc of _0xde8486)_0x5c0b14['append'](_0x5c0b14['cloneElement'](_0x5560cc),_0xe0d4b7);}else _0x5c0b14['setSelection'](_0xe0d4b7,'on'),_0x388c2e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe0d4b7['getAttributes']()),'uploadcareImageId':_0x32a242,'src':_0x44b6ec,'sources':_0x5645ad,'width':_0x5ddfa5,'height':_0x232bec},_0xe0d4b7);_0x5c0b14['setSelection'](_0xe0d4b7,'on');});}async['_getImageAsFile'](_0x54b91d){const _0x5ca923=_0xf4f596['window'],_0xd1ddf6=_0xf4f596['document']['location']['href'],_0x4e929a=new _0x5ca923['URL'](_0x54b91d['getAttribute']('src'),_0xd1ddf6);if('data:'===_0x4e929a['protocol']){const _0x122bf1=_0x4e929a['href']['split'](','),_0x2f90ef=_0x122bf1[0x0]['match'](/:(.*?);/)[0x1],_0x1c6820=_0x2f90ef['split']('/')[0x1],_0x3bbee0=_0x5ca923['atob'](_0x122bf1[_0x122bf1['length']-0x1]);let _0x3a8d17=_0x3bbee0['length'];const _0x41e491=new _0x5ca923['Uint8Array'](_0x3a8d17);for(;_0x3a8d17--;)_0x41e491[_0x3a8d17]=_0x3bbee0['charCodeAt'](_0x3a8d17);return new _0x5ca923['File']([_0x41e491],'image.'+_0x1c6820,{'type':_0x2f90ef});}const _0x1ee07f=_0x4e929a['href']['split']('/'),_0x2aa555=_0x1ee07f[_0x1ee07f['length']-0x1],_0x447f67=_0x2aa555['split']('.')[0x1];return _0x5ca923['fetch'](_0x4e929a['href'])['then'](_0x1e82b1=>_0x1e82b1['clone']()['blob']())['then'](_0x142efd=>new _0x5ca923['File']([_0x142efd],_0x2aa555,{'type':'image/'+_0x447f67}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x10a6(){const _0x344f7a=['10932OKWcOF','3SdAOLa','4526982ynDLPh','614584Hltskx','209204QTVQSE','imageSrc','1253505XtiIbp','ck-uploadcare-theme','setTemplate','uc-light','set','bindTemplate','48915CzEiDc','image-edit','5261443EmUoEa','uc-cloud-image-editor','260SNUXLk','63LCNZEG','512DMBYUC'];_0x10a6=function(){return _0x344f7a;};return _0x10a6();}function _0x3c15(_0x94961f,_0x19e909){const _0x10a683=_0x10a6();return _0x3c15=function(_0x3c152f,_0x34dc0f){_0x3c152f=_0x3c152f-0x1b2;let _0x45fd8f=_0x10a683[_0x3c152f];return _0x45fd8f;},_0x3c15(_0x94961f,_0x19e909);}(function(_0x85c148,_0x172422){const _0x48d7b6=_0x3c15,_0x11e725=_0x85c148();while(!![]){try{const _0x560ef8=-parseInt(_0x48d7b6(0x1ba))/0x1*(-parseInt(_0x48d7b6(0x1bd))/0x2)+-parseInt(_0x48d7b6(0x1b9))/0x3*(parseInt(_0x48d7b6(0x1b8))/0x4)+-parseInt(_0x48d7b6(0x1bf))/0x5+parseInt(_0x48d7b6(0x1bb))/0x6+parseInt(_0x48d7b6(0x1b7))/0x7*(parseInt(_0x48d7b6(0x1bc))/0x8)+-parseInt(_0x48d7b6(0x1b2))/0x9*(parseInt(_0x48d7b6(0x1b6))/0xa)+-parseInt(_0x48d7b6(0x1b4))/0xb;if(_0x560ef8===_0x172422)break;else _0x11e725['push'](_0x11e725['shift']());}catch(_0x2cc7ec){_0x11e725['push'](_0x11e725['shift']());}}}(_0x10a6,0x6742a));import{View as _0x4a8c4d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x4a8c4d{constructor(_0x36b834,_0x5b52e5){const _0x461c58=_0x3c15;super(_0x36b834);const _0x856343=this[_0x461c58(0x1c4)];this[_0x461c58(0x1c3)](_0x461c58(0x1be),''),this[_0x461c58(0x1c1)]({'tag':_0x461c58(0x1b5),'attributes':{..._0x5b52e5,'class':[_0x461c58(0x1c2),_0x461c58(0x1c0)],'ctx-name':_0x461c58(0x1b3),'cdn-url':_0x856343['to'](_0x461c58(0x1be))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x55ed62}from'ckeditor5/src/icons.js';import{ButtonView as _0x3983f8,IconView as _0x5072e5,View as _0x21d067}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x21d067{constructor(_0x4b2841){super(_0x4b2841);const t=_0x4b2841['t'];this['set']('errorType',null);const _0x8c5b3f=new _0x3983f8(_0x4b2841);_0x8c5b3f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x8c5b3f['withText']=!0x0,_0x8c5b3f['class']='ck-button-action',_0x8c5b3f['on']('execute',()=>{this['fire']('retry');}),_0x8c5b3f['bind']('isVisible')['to'](this,'errorType',_0x53b579=>'NotFound'!==_0x53b579);const _0x376db2=new _0x5072e5();_0x376db2['content']=_0x55ed62,_0x376db2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17129e=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':[_0x376db2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17129e['to']('errorType',_0x2dbae2=>t('NotFound'!==_0x2dbae2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x8c5b3f]},{'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 _0x206fd4,View as _0x437930}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x437930{constructor(_0x5f37b8){super(_0x5f37b8);const t=_0x5f37b8['t'],_0x32fc26=this['bindTemplate'],_0xed783f=new _0x206fd4();_0xed783f['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':[_0xed783f,{'text':_0x32fc26['to']('imageUploadProgress',_0x12e6db=>t('Loading\x20image...')+'\x20('+(_0x12e6db||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49be90=_0x2b8c;(function(_0x278169,_0x5011f3){const _0xc24d89=_0x2b8c,_0x8137f=_0x278169();while(!![]){try{const _0x3b3aac=parseInt(_0xc24d89(0x17a))/0x1*(-parseInt(_0xc24d89(0x176))/0x2)+parseInt(_0xc24d89(0x1a2))/0x3*(-parseInt(_0xc24d89(0x16e))/0x4)+parseInt(_0xc24d89(0x194))/0x5+-parseInt(_0xc24d89(0x175))/0x6*(-parseInt(_0xc24d89(0x17b))/0x7)+-parseInt(_0xc24d89(0x188))/0x8+parseInt(_0xc24d89(0x16d))/0x9*(parseInt(_0xc24d89(0x193))/0xa)+parseInt(_0xc24d89(0x190))/0xb;if(_0x3b3aac===_0x5011f3)break;else _0x8137f['push'](_0x8137f['shift']());}catch(_0x1669e5){_0x8137f['push'](_0x8137f['shift']());}}}(_0x4aed,0xd5a78));import{View as _0x42a67d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2b75c7}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x48c2aa}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x184afc}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5ca752}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5ca752{[_0x49be90(0x18a)];[_0x49be90(0x180)];[_0x49be90(0x19c)];[_0x49be90(0x184)];[_0x49be90(0x19b)];constructor(_0x435f83,_0x584347,_0x2ec962){const _0x5b2952=_0x49be90;super(_0x435f83),this[_0x5b2952(0x18a)]=this[_0x5b2952(0x185)](),this[_0x5b2952(0x180)]=new _0x2b75c7(_0x435f83),this[_0x5b2952(0x19c)]=new _0x48c2aa(_0x435f83),this[_0x5b2952(0x184)]=new _0x184afc(_0x435f83,_0x2ec962),this[_0x5b2952(0x19b)]=new _0x42a67d(_0x435f83),this[_0x5b2952(0x19b)][_0x5b2952(0x189)](this[_0x5b2952(0x178)]()),this[_0x5b2952(0x181)](_0x5b2952(0x198),_0x584347),this[_0x5b2952(0x189)]({'tag':_0x5b2952(0x174),'attributes':{'class':['ck',_0x5b2952(0x18b),_0x5b2952(0x199)],'tabindex':'-1'},'children':this[_0x5b2952(0x18a)]}),this[_0x5b2952(0x16b)](),this[_0x5b2952(0x177)](_0x5b2952(0x191),()=>{const _0x585ae0=_0x5b2952;this[_0x585ae0(0x18e)](this[_0x585ae0(0x192)],_0x4b80da=>{const _0x4b58ae=_0x585ae0;this[_0x4b58ae(0x1a0)](_0x4b80da);});}),this['on'](_0x5b2952(0x18f),()=>{const _0x42ff38=_0x5b2952;this[_0x42ff38(0x16b)]();}),this[_0x5b2952(0x17f)]();}[_0x49be90(0x187)](){const _0x5a38fb=_0x49be90;this[_0x5a38fb(0x192)][_0x5a38fb(0x187)]();}[_0x49be90(0x16b)](){const _0x1e0239=_0x49be90;switch(this[_0x1e0239(0x18a)][_0x1e0239(0x18d)](),this[_0x1e0239(0x198)]){case _0x1e0239(0x17c):this[_0x1e0239(0x18a)][_0x1e0239(0x173)](this[_0x1e0239(0x180)]);break;case _0x1e0239(0x16c):this[_0x1e0239(0x18a)][_0x1e0239(0x173)](this[_0x1e0239(0x19c)]);break;case _0x1e0239(0x19d):this[_0x1e0239(0x18a)][_0x1e0239(0x1a1)]([this[_0x1e0239(0x184)],this[_0x1e0239(0x19b)]]);}}[_0x49be90(0x18e)](_0x2412b5,_0x31f890){const _0x161133=_0x49be90,_0x19a50e=_0x161133(0x18c),_0x417f56=_0x2412b5[_0x161133(0x19f)](_0x19a50e);if(_0x417f56)return _0x31f890(_0x417f56);const _0x152683=new MutationObserver(_0x4bb5ab=>{const _0x3fead2=_0x161133,_0x5b320f=_0x4bb5ab[_0x3fead2(0x195)](_0x2dc641=>_0x2dc641[_0x3fead2(0x179)]===_0x2412b5&&_0x2dc641[_0x3fead2(0x16f)][_0x3fead2(0x19a)]>0x0&&_0x2dc641[_0x3fead2(0x16f)][0x0][_0x3fead2(0x197)][_0x3fead2(0x19e)]()===_0x19a50e);_0x5b320f[_0x3fead2(0x19a)]&&(_0x152683[_0x3fead2(0x17e)](),_0x31f890(_0x5b320f[0x0][_0x3fead2(0x16f)][0x0]));});_0x152683[_0x161133(0x182)](_0x2412b5,{'childList':!0x0,'subtree':!0x0});}[_0x49be90(0x1a0)](_0x2f8160){const _0x2252b1=_0x49be90;_0x2f8160[_0x2252b1(0x172)](_0x2252b1(0x17d),_0x2bf0d4=>{const _0x5e4b6b=_0x2252b1;this[_0x5e4b6b(0x171)](_0x5e4b6b(0x17d),{'imageSrc':_0x2bf0d4[_0x5e4b6b(0x196)][_0x5e4b6b(0x183)]});}),_0x2f8160[_0x2252b1(0x172)](_0x2252b1(0x186),()=>{const _0x230b5c=_0x2252b1;this[_0x230b5c(0x171)](_0x230b5c(0x186));});}[_0x49be90(0x17f)](){const _0x2b4567=_0x49be90;this[_0x2b4567(0x19c)]['on'](_0x2b4567(0x170),()=>{const _0xb318fa=_0x2b4567;this[_0xb318fa(0x171)](_0xb318fa(0x170));});}}function _0x2b8c(_0x4fc0d9,_0x5f3d8b){const _0x4aed72=_0x4aed();return _0x2b8c=function(_0x2b8c78,_0x3f9fbd){_0x2b8c78=_0x2b8c78-0x16b;let _0x502dba=_0x4aed72[_0x2b8c78];return _0x502dba;},_0x2b8c(_0x4fc0d9,_0x5f3d8b);}function _0x4aed(){const _0x1377d7=['retry','fire','addEventListener','add','div','108hqGOfo','2cSFUNL','once','getFocusableElement','target','1724621mJKsKt','629461ZfqYbF','uploading','apply','disconnect','_addErrorViewListeners','_loadingView','set','observe','cdnUrl','_editingView','createCollection','cancel','focus','8429880QxeKqE','setTemplate','_items','ck-reset_all-excluded','uc-cloud-image-editor','clear','_waitForImageEditorComponent','change:status','20198464WYpxjU','render','element','10ixhUNT','3712260URjfXG','filter','detail','nodeName','status','ck-uploadcare-form','length','_focusableView','_errorView','ready','toLowerCase','querySelector','_addUploadcareImageEditorListeners','addMany','569961pBpQhu','_setView','error','10494693HMnfVf','36DJGCcs','addedNodes'];_0x4aed=function(){return _0x1377d7;};return _0x4aed();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5aab(){const _0x5d4c54=['model','105676jdAnjE','config','unbind','6512zzavWn','isActive','document','161jmUANp','1399104DUIXro','bind','selection','requires','getSelectedElement','_isEditable','10ElRonu','789mICWmD','uploadcare.allowExternalImagesEditing','44364jwHwFB','930KMQdHO','set','165818qGQKfF','execute','imageBlock','imageInline','editor','imageEditController','3400kfLsiH','element','refresh','get','1424616ladeKJ','isEnabled','plugins'];_0x5aab=function(){return _0x5d4c54;};return _0x5aab();}const _0x422982=_0x56bb;(function(_0xef522,_0x1b1b97){const _0x436273=_0x56bb,_0x557fb8=_0xef522();while(!![]){try{const _0x940740=-parseInt(_0x436273(0x9f))/0x1+parseInt(_0x436273(0x9d))/0x2*(-parseInt(_0x436273(0x9a))/0x3)+parseInt(_0x436273(0x8c))/0x4*(parseInt(_0x436273(0x99))/0x5)+parseInt(_0x436273(0x9c))/0x6*(-parseInt(_0x436273(0x92))/0x7)+parseInt(_0x436273(0xa9))/0x8+parseInt(_0x436273(0x93))/0x9+-parseInt(_0x436273(0xa5))/0xa*(-parseInt(_0x436273(0x8f))/0xb);if(_0x940740===_0x1b1b97)break;else _0x557fb8['push'](_0x557fb8['shift']());}catch(_0x881efe){_0x557fb8['push'](_0x557fb8['shift']());}}}(_0x5aab,0x1f9c4));import{Command as _0x18757f}from'ckeditor5/src/core.js';import{Dialog as _0xfc4caa}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x30f0fe}from'./ui/uploadcareimageeditcontroller.js';function _0x56bb(_0x210f75,_0x3eae9f){const _0x5aab14=_0x5aab();return _0x56bb=function(_0x56bbf2,_0x370a4b){_0x56bbf2=_0x56bbf2-0x89;let _0x16475c=_0x5aab14[_0x56bbf2];return _0x16475c;},_0x56bb(_0x210f75,_0x3eae9f);}import{createEditabilityChecker as _0x41ace1}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x18757f{[_0x422982(0xa4)];static get[_0x422982(0x96)](){return[_0xfc4caa];}[_0x422982(0x98)];constructor(_0xff4544){const _0x92cbab=_0x422982;super(_0xff4544),this[_0x92cbab(0xa4)]=void 0x0,this[_0x92cbab(0x98)]=_0x41ace1(_0xff4544[_0x92cbab(0x8d)][_0x92cbab(0xa8)](_0x92cbab(0x9b))||[]),this[_0x92cbab(0x9e)]({'isActive':!0x1});}[_0x422982(0xa7)](){const _0x334efe=_0x422982,_0x5a7130=this[_0x334efe(0xa3)][_0x334efe(0x8b)][_0x334efe(0x91)][_0x334efe(0x95)][_0x334efe(0x97)]();this[_0x334efe(0x89)]=this[_0x334efe(0x98)](_0x5a7130);}[_0x422982(0xa0)](){const _0x7883c4=_0x422982;this[_0x7883c4(0xa4)]&&(this[_0x7883c4(0x8e)](_0x7883c4(0x90)),this[_0x7883c4(0xa4)]=void 0x0);const _0x521282=this[_0x7883c4(0xa3)][_0x7883c4(0x8b)][_0x7883c4(0x91)][_0x7883c4(0x95)][_0x7883c4(0x97)]();_0x521282&&(_0x521282['is'](_0x7883c4(0xa6),_0x7883c4(0xa1))||_0x521282['is'](_0x7883c4(0xa6),_0x7883c4(0xa2)))&&(this[_0x7883c4(0xa4)]=new _0x30f0fe(this[_0x7883c4(0xa3)],this[_0x7883c4(0xa3)][_0x7883c4(0x8a)][_0x7883c4(0xa8)](_0xfc4caa),_0x521282),this[_0x7883c4(0x94)](_0x7883c4(0x90))['to'](this[_0x7883c4(0xa4)],_0x7883c4(0x90)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bca0a=_0x1297;(function(_0x35b6a2,_0x5acc8b){const _0x47377c=_0x1297,_0x34c52f=_0x35b6a2();while(!![]){try{const _0x2f776a=-parseInt(_0x47377c(0x1d8))/0x1+-parseInt(_0x47377c(0x1cd))/0x2+-parseInt(_0x47377c(0x1dd))/0x3+-parseInt(_0x47377c(0x1dc))/0x4+-parseInt(_0x47377c(0x1cf))/0x5+parseInt(_0x47377c(0x1d3))/0x6+parseInt(_0x47377c(0x1cb))/0x7*(parseInt(_0x47377c(0x1d5))/0x8);if(_0x2f776a===_0x5acc8b)break;else _0x34c52f['push'](_0x34c52f['shift']());}catch(_0x1322d1){_0x34c52f['push'](_0x34c52f['shift']());}}}(_0x3d66,0xa2343));import{Plugin as _0x1a0f09}from'ckeditor5/src/core.js';import{Notification as _0x32ccd4}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x574d67}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x328686}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x132abf}from'../uploadcareediting.js';function _0x3d66(){const _0x1d26ec=['uploadcareImageReplace','requires','3113094JoRZhu','commands','4205736aQsdOF','add','pluginName','125456JmjKET','isPremiumPlugin','isOfficialPlugin','ImageEditing','3477468etBXUZ','2043336YNxsEg','UploadcareImageEditEditing','49zmRBvK','uploadcareImageEdit','2277106hMQHwq','init','3599965shhUtO','ImageUtils'];_0x3d66=function(){return _0x1d26ec;};return _0x3d66();}function _0x1297(_0x43ce05,_0x13a05a){const _0x3d6695=_0x3d66();return _0x1297=function(_0x1297be,_0x4d17b8){_0x1297be=_0x1297be-0x1ca;let _0x233204=_0x3d6695[_0x1297be];return _0x233204;},_0x1297(_0x43ce05,_0x13a05a);}export class UploadcareImageEditEditing extends _0x1a0f09{static get[_0x1bca0a(0x1d7)](){const _0x4bfb2d=_0x1bca0a;return _0x4bfb2d(0x1ca);}static get[_0x1bca0a(0x1d2)](){const _0x19d9c7=_0x1bca0a;return[_0x132abf,_0x32ccd4,_0x19d9c7(0x1d0),_0x19d9c7(0x1db)];}static get[_0x1bca0a(0x1da)](){return!0x0;}static get[_0x1bca0a(0x1d9)](){return!0x0;}[_0x1bca0a(0x1ce)](){const _0x188635=_0x1bca0a,{editor:_0x1aee29}=this;_0x1aee29[_0x188635(0x1d4)][_0x188635(0x1d6)](_0x188635(0x1cc),new _0x574d67(_0x1aee29)),_0x1aee29[_0x188635(0x1d4)][_0x188635(0x1d6)](_0x188635(0x1d1),new _0x328686(_0x1aee29));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3b74f5}from'ckeditor5/src/core.js';import{ButtonView as _0x593fb7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x292129}from'ckeditor5/src/icons.js';import{createElement as _0x2e70a6}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 _0x3b74f5{['_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 _0x3080e2=this['editor'];_0x3080e2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1e96ef=>{const _0xa03594=_0x3080e2['commands']['get']('uploadcareImageEdit'),_0x2f2003=new _0x593fb7(_0x1e96ef),t=_0x1e96ef['t'];return _0x2f2003['set']({'icon':_0x292129,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2f2003['bind']('isEnabled')['to'](_0xa03594),_0x2f2003['bind']('isOn')['to'](_0xa03594,'isActive'),this['listenTo'](_0x2f2003,'execute',()=>{_0x3080e2['execute']('uploadcareImageEdit'),_0x3080e2['editing']['view']['focus']();}),_0x2f2003;}),this['_initConfig']();}['_initConfig'](){const _0x221c54=_0x2e70a6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x221c54),this['listenTo'](this['editor'],'destroy',()=>{_0x221c54['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4285(){const _0x274da3=['refresh','selection','execute','editor','1986760LKPBDy','1278759eKwnPw','change','removeAttribute','isEnabled','setAttributes','imageInline','model','document','2484AvftDw','srcset','sizes','3474632QxftDY','1658052TAEZpI','331171LynZSZ','1535dJkCUo','imageBlock','406718wNdUdn','getSelectedElement','element'];_0x4285=function(){return _0x274da3;};return _0x4285();}const _0x4dec6f=_0xa809;(function(_0x5e8721,_0x2daa50){const _0x3489e9=_0xa809,_0x56e0cd=_0x5e8721();while(!![]){try{const _0xfab5ca=-parseInt(_0x3489e9(0x1d9))/0x1+parseInt(_0x3489e9(0x1c4))/0x2+-parseInt(_0x3489e9(0x1cc))/0x3+parseInt(_0x3489e9(0x1d4))/0x4*(-parseInt(_0x3489e9(0x1da))/0x5)+parseInt(_0x3489e9(0x1d8))/0x6+parseInt(_0x3489e9(0x1d7))/0x7+parseInt(_0x3489e9(0x1cb))/0x8;if(_0xfab5ca===_0x2daa50)break;else _0x56e0cd['push'](_0x56e0cd['shift']());}catch(_0x325b26){_0x56e0cd['push'](_0x56e0cd['shift']());}}}(_0x4285,0x4377f));function _0xa809(_0x3b26b8,_0x3cc1ac){const _0x42855a=_0x4285();return _0xa809=function(_0xa8092a,_0x26debb){_0xa8092a=_0xa8092a-0x1c4;let _0x35f566=_0x42855a[_0xa8092a];return _0x35f566;},_0xa809(_0x3b26b8,_0x3cc1ac);}import{Command as _0x3fa5f1}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x3fa5f1{[_0x4dec6f(0x1c7)](){const _0x1198bb=_0x4dec6f,_0x2b6076=this[_0x1198bb(0x1ca)][_0x1198bb(0x1d2)][_0x1198bb(0x1d3)][_0x1198bb(0x1c8)][_0x1198bb(0x1c5)]();this[_0x1198bb(0x1cf)]=Boolean(_0x2b6076&&(_0x2b6076['is'](_0x1198bb(0x1c6),_0x1198bb(0x1db))||_0x2b6076['is'](_0x1198bb(0x1c6),_0x1198bb(0x1d1))));}[_0x4dec6f(0x1c9)](_0x1e685b){const _0xc1a0a7=_0x4dec6f,_0x491264=this[_0xc1a0a7(0x1ca)][_0xc1a0a7(0x1d2)][_0xc1a0a7(0x1d3)][_0xc1a0a7(0x1c8)][_0xc1a0a7(0x1c5)]();this[_0xc1a0a7(0x1ca)][_0xc1a0a7(0x1d2)][_0xc1a0a7(0x1cd)](_0x22a5da=>{const _0x3a0bee=_0xc1a0a7;_0x22a5da[_0x3a0bee(0x1d0)](_0x1e685b,_0x491264),_0x22a5da[_0x3a0bee(0x1ce)](_0x3a0bee(0x1d5),_0x491264),_0x22a5da[_0x3a0bee(0x1ce)](_0x3a0bee(0x1d6),_0x491264);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1407(){var _0x16b578=['pluginName','requires','6825030xtOwqy','293936QAyQEa','1298LsXsjd','isPremiumPlugin','8FEmjxo','6689070ErXSst','7CayDwc','66840GFbISJ','UploadcareImageEdit','2019265lvlWid','isOfficialPlugin','4317656JgSgYJ','93urnlaO','112940NuqeEP'];_0x1407=function(){return _0x16b578;};return _0x1407();}function _0x5845(_0x21f0b5,_0x3445b2){var _0x140790=_0x1407();return _0x5845=function(_0x5845c8,_0x4c540e){_0x5845c8=_0x5845c8-0xbb;var _0x8bb6b0=_0x140790[_0x5845c8];return _0x8bb6b0;},_0x5845(_0x21f0b5,_0x3445b2);}var _0x3757a0=_0x5845;(function(_0x425a7d,_0x2495d3){var _0x46c32c=_0x5845,_0x1a1113=_0x425a7d();while(!![]){try{var _0x114f6b=parseInt(_0x46c32c(0xbd))/0x1+parseInt(_0x46c32c(0xc3))/0x2*(-parseInt(_0x46c32c(0xc8))/0x3)+-parseInt(_0x46c32c(0xc0))/0x4*(parseInt(_0x46c32c(0xc5))/0x5)+parseInt(_0x46c32c(0xbc))/0x6+parseInt(_0x46c32c(0xc2))/0x7*(parseInt(_0x46c32c(0xc7))/0x8)+-parseInt(_0x46c32c(0xc1))/0x9+-parseInt(_0x46c32c(0xc9))/0xa*(-parseInt(_0x46c32c(0xbe))/0xb);if(_0x114f6b===_0x2495d3)break;else _0x1a1113['push'](_0x1a1113['shift']());}catch(_0x2ac203){_0x1a1113['push'](_0x1a1113['shift']());}}}(_0x1407,0xaf054));import{Plugin as _0x2f5b4b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x5ee768}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2e1f5d}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2f5b4b{static get[_0x3757a0(0xca)](){var _0xfb9571=_0x3757a0;return _0xfb9571(0xc4);}static get[_0x3757a0(0xbb)](){return[_0x5ee768,_0x2e1f5d];}static get[_0x3757a0(0xc6)](){return!0x0;}static get[_0x3757a0(0xbf)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x232cba=_0x2468;function _0x2d15(){const _0x378c65=['afterInit','type','_createDropdownButtons','4301625TwRwqC','text','_normalizeConfigSourceList','forEach','GPhotos','plugins','upload','get','ImageInsertUI','shortText','isImageSelected','uploadcareLicenseKeyDomainLimit','isOfficialPlugin','locale','_showLicenseError','editor','GDrive','push','reduce','domainLimit','destroy','Dropbox','uploadcare','has','4196XnpcxT','expired','withText','8526042ePOunh','85aRDDCr','_licenseKeyCheckInterval','URL','_createMenuBarButtons','_createButton','_createToolbarButton','icon','UploadcareUI','uploadcareLicenseKeyEvaluationLimit','pluginName','label','Local','4157928skgBes','registerIntegration','uploadcareLicenseKeyInvalid','assetManager','2969048gGKzoZ','config','OneDrive','430680IUSIno','Uploadcare','uploadcareLicenseKeyUsageLimit','bind','init','entries','tooltip','isPremiumPlugin','map','execute','uploadcareLicenseKeyNotAllowed','commands','Facebook','Replace','url','isEnabled','1mpAGTn','licenseKey','10060071JjEGMc','_getIntegrationKey','Insert','uploadcare.uploader.sourceList','evaluationLimit','uploadcareLicenseKeyValid','invalid','usageLimit','featureNotAllowed','uploadcareLicenseKeyExpired'];_0x2d15=function(){return _0x378c65;};return _0x2d15();}(function(_0x3878af,_0x23beac){const _0x14bbe4=_0x2468,_0x8ed171=_0x3878af();while(!![]){try{const _0x4eff36=parseInt(_0x14bbe4(0x107))/0x1*(-parseInt(_0x14bbe4(0xe0))/0x2)+-parseInt(_0x14bbe4(0xc8))/0x3+-parseInt(_0x14bbe4(0xf4))/0x4+parseInt(_0x14bbe4(0xe4))/0x5*(parseInt(_0x14bbe4(0xf7))/0x6)+parseInt(_0x14bbe4(0x109))/0x7+-parseInt(_0x14bbe4(0xf0))/0x8+parseInt(_0x14bbe4(0xe3))/0x9;if(_0x4eff36===_0x23beac)break;else _0x8ed171['push'](_0x8ed171['shift']());}catch(_0x3e3ba7){_0x8ed171['push'](_0x8ed171['shift']());}}}(_0x2d15,0xdd617));import{Plugin as _0x46734c}from'ckeditor5/src/core.js';import{IconDropbox as _0x461c75,IconFacebook as _0x7d0c7,IconGoogleDrive as _0x318153,IconGooglePhotos as _0x3def1a,IconUploadcareImageUpload as _0x5f1ff9,IconUploadcareLink as _0x271765,IconOneDrive as _0x2c35d5}from'ckeditor5/src/icons.js';import{ButtonView as _0x34ed14,MenuBarMenuListItemButtonView as _0x76c515}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4c814b}from'./uploadcareconfig.js';import{getTranslation as _0x30d003}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x2468(_0x54975c,_0x8ec491){const _0x2d1554=_0x2d15();return _0x2468=function(_0x24688c,_0x3eb1ba){_0x24688c=_0x24688c-0xc2;let _0x371f34=_0x2d1554[_0x24688c];return _0x371f34;},_0x2468(_0x54975c,_0x8ec491);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x46734c{[_0x232cba(0x108)];[_0x232cba(0xe5)];static get[_0x232cba(0xed)](){const _0x3c0165=_0x232cba;return _0x3c0165(0xeb);}static get[_0x232cba(0xd4)](){return!0x0;}static get[_0x232cba(0xfe)](){return!0x0;}[_0x232cba(0xfb)](){const _0x54198d=_0x232cba;this[_0x54198d(0x108)]=this[_0x54198d(0xd7)][_0x54198d(0xf5)][_0x54198d(0xcf)](_0x54198d(0x108));const _0xc71155=this[_0x54198d(0xd7)];this[_0x54198d(0xe5)]=setInterval(()=>{const _0x1b3dc1=_0x54198d;let _0x49140d;for(const _0xfb04d2 in _0xc71155){const _0x17dd00=_0xfb04d2,_0x49dd7a=_0xc71155[_0x17dd00];if(_0x1b3dc1(0x10e)==_0x49dd7a||_0x1b3dc1(0xf2)==_0x49dd7a||_0x1b3dc1(0xc4)==_0x49dd7a||_0x1b3dc1(0xd3)==_0x49dd7a||_0x1b3dc1(0x101)==_0x49dd7a||_0x1b3dc1(0xec)==_0x49dd7a||_0x1b3dc1(0xf9)==_0x49dd7a){delete _0xc71155[_0x17dd00],_0x49140d=_0x49dd7a,clearInterval(this[_0x1b3dc1(0xe5)]),this[_0x1b3dc1(0xe5)]=void 0x0;break;}}_0x1b3dc1(0xf2)==_0x49140d&&_0xc71155[_0x1b3dc1(0xd6)](_0x1b3dc1(0x10f)),_0x1b3dc1(0xc4)==_0x49140d&&_0xc71155[_0x1b3dc1(0xd6)](_0x1b3dc1(0xe1)),_0x1b3dc1(0xd3)==_0x49140d&&_0xc71155[_0x1b3dc1(0xd6)](_0x1b3dc1(0xdb)),_0x1b3dc1(0x101)==_0x49140d&&_0xc71155[_0x1b3dc1(0xd6)](_0x1b3dc1(0xc3),_0x1b3dc1(0xf8)),_0x1b3dc1(0xec)==_0x49140d&&_0xc71155[_0x1b3dc1(0xd6)](_0x1b3dc1(0x10d)),_0x1b3dc1(0xf9)==_0x49140d&&_0xc71155[_0x1b3dc1(0xd6)](_0x1b3dc1(0xc2));},0x3e8);}[_0x232cba(0xc5)](){const _0x5639a4=_0x232cba,{editor:_0x58c68e}=this,_0x156c61=_0x58c68e[_0x5639a4(0x102)][_0x5639a4(0xcf)](_0x5639a4(0xde));if(!_0x156c61)return;const _0x78663d=this[_0x5639a4(0xca)](_0x58c68e[_0x5639a4(0xf5)][_0x5639a4(0xcf)](_0x5639a4(0x10c)))[_0x5639a4(0xda)]((_0xe01f69,_0x25df0d)=>{const _0x3aa298=_0x5639a4,_0x3718ea=this[_0x3aa298(0x10a)](_0x25df0d[_0x3aa298(0xc6)]);return _0xe01f69[_0x3718ea]||(_0xe01f69[_0x3718ea]=[]),_0xe01f69[_0x3718ea][_0x3aa298(0xd9)](_0x25df0d),_0xe01f69;},{});_0x58c68e[_0x5639a4(0xcd)][_0x5639a4(0xdf)](_0x5639a4(0xd0))&&_0x58c68e[_0x5639a4(0x102)][_0x5639a4(0xcf)](_0x5639a4(0xde))&&Object[_0x5639a4(0xfc)](_0x78663d)[_0x5639a4(0xcb)](([_0x1df911,_0x32c9a0])=>{const _0x4d3cc5=_0x5639a4;_0x58c68e[_0x4d3cc5(0xcd)][_0x4d3cc5(0xcf)](_0x4d3cc5(0xd0))[_0x4d3cc5(0xf1)]({'name':_0x1df911,'observable':()=>_0x156c61,'buttonViewCreator':()=>this[_0x4d3cc5(0xe9)](_0x32c9a0),'formViewCreator':()=>this[_0x4d3cc5(0xc7)](_0x32c9a0),'menuBarButtonViewCreator':()=>this[_0x4d3cc5(0xe7)](_0x32c9a0),'override':_0x4d3cc5(0xf3)!==_0x1df911});});}[_0x232cba(0xdc)](){const _0x4b1941=_0x232cba;super[_0x4b1941(0xdc)](),this[_0x4b1941(0xe5)]&&clearInterval(this[_0x4b1941(0xe5)]);}[_0x232cba(0xca)](_0x1bee91){const _0x2e6f0a=_0x232cba,{locale:_0x2f2784}=this[_0x2e6f0a(0xd7)];return _0x1bee91[_0x2e6f0a(0xff)](_0x3a9e28=>{const _0x6f7053=_0x2e6f0a,_0x4df636=_0x30d003(_0x2f2784,_0x3a9e28,_0x6f7053(0x10b));switch(_0x3a9e28){case _0x4c814b[_0x6f7053(0xef)]:return{'icon':_0x5f1ff9,'type':_0x4c814b[_0x6f7053(0xef)],..._0x4df636};case _0x4c814b[_0x6f7053(0xe6)]:return{'icon':_0x271765,'type':_0x4c814b[_0x6f7053(0xe6)],..._0x4df636};case _0x4c814b[_0x6f7053(0xdd)]:return{'icon':_0x461c75,'type':_0x4c814b[_0x6f7053(0xdd)],..._0x4df636};case _0x4c814b[_0x6f7053(0x103)]:return{'icon':_0x7d0c7,'type':_0x4c814b[_0x6f7053(0x103)],..._0x4df636};case _0x4c814b[_0x6f7053(0xd8)]:return{'icon':_0x318153,'type':_0x4c814b[_0x6f7053(0xd8)],..._0x4df636};case _0x4c814b[_0x6f7053(0xcc)]:return{'icon':_0x3def1a,'type':_0x4c814b[_0x6f7053(0xcc)],..._0x4df636};case _0x4c814b[_0x6f7053(0xf6)]:return{'icon':_0x2c35d5,'type':_0x4c814b[_0x6f7053(0xf6)],..._0x4df636};}});}[_0x232cba(0x10a)](_0x3e6b3e){const _0x1121ab=_0x232cba;switch(_0x3e6b3e){case _0x4c814b[_0x1121ab(0xef)]:return _0x1121ab(0xce);case _0x4c814b[_0x1121ab(0xe6)]:return _0x1121ab(0x105);default:return _0x1121ab(0xf3);}}[_0x232cba(0xe8)](_0x40429f,_0x2ef888){const _0x2a97f3=_0x232cba,_0x27b350=this[_0x2a97f3(0xd7)],_0x42aba4=new _0x40429f(_0x27b350[_0x2a97f3(0xd5)]),_0x784ad6=_0x27b350[_0x2a97f3(0x102)][_0x2a97f3(0xcf)](_0x2a97f3(0xde));return _0x42aba4[_0x2a97f3(0xfa)](_0x2a97f3(0x106))['to'](_0x784ad6),_0x42aba4['on'](_0x2a97f3(0x100),()=>{const _0x565673=_0x2a97f3;_0x784ad6[_0x565673(0x100)](_0x2ef888);}),_0x42aba4;}[_0x232cba(0xe9)](_0x3b39aa){const _0x526cd7=_0x232cba,{locale:_0x116276}=this[_0x526cd7(0xd7)],_0x3bc392=this[_0x526cd7(0xd7)][_0x526cd7(0xcd)][_0x526cd7(0xcf)](_0x526cd7(0xd0)),_0x10477a=_0x3b39aa[0x0],_0x235a0e=this[_0x526cd7(0xe8)](_0x34ed14,_0x10477a[_0x526cd7(0xc6)]);return _0x235a0e[_0x526cd7(0xea)]=_0x10477a[_0x526cd7(0xea)],_0x235a0e[_0x526cd7(0xfa)](_0x526cd7(0xee))['to'](_0x3bc392,_0x526cd7(0xd2),_0xa7111=>_0x30d003(_0x116276,_0x10477a[_0x526cd7(0xc6)],_0xa7111?_0x526cd7(0x104):_0x526cd7(0x10b))[_0x526cd7(0xc9)]),_0x235a0e[_0x526cd7(0xfd)]=!0x0,_0x235a0e;}[_0x232cba(0xc7)](_0x484b42){const _0xd6c83e=_0x232cba,{locale:_0x789e49}=this[_0xd6c83e(0xd7)],_0x2a52ce=this[_0xd6c83e(0xd7)][_0xd6c83e(0xcd)][_0xd6c83e(0xcf)](_0xd6c83e(0xd0));return _0x484b42[_0xd6c83e(0xff)](_0x2cda29=>{const _0x121ba8=_0xd6c83e,_0x1947c6=this[_0x121ba8(0xe8)](_0x34ed14,_0x2cda29[_0x121ba8(0xc6)]);return _0x1947c6[_0x121ba8(0xe2)]=!0x0,_0x1947c6[_0x121ba8(0xea)]=_0x2cda29[_0x121ba8(0xea)],_0x1947c6[_0x121ba8(0xfa)](_0x121ba8(0xee))['to'](_0x2a52ce,_0x121ba8(0xd2),_0x328d9d=>_0x30d003(_0x789e49,_0x2cda29[_0x121ba8(0xc6)],_0x328d9d?_0x121ba8(0x104):_0x121ba8(0x10b))[_0x121ba8(0xc9)]),_0x1947c6;});}[_0x232cba(0xe7)](_0x5a7d64){const _0x3b56a5=_0x232cba;return _0x5a7d64[_0x3b56a5(0xff)](_0x588b45=>{const _0x36725e=_0x3b56a5,_0x3b5028=this[_0x36725e(0xe8)](_0x76c515,_0x588b45[_0x36725e(0xc6)]);return _0x3b5028[_0x36725e(0xea)]=_0x588b45[_0x36725e(0xea)],_0x3b5028[_0x36725e(0xee)]=_0x588b45[_0x36725e(0xd1)],_0x3b5028;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x9fc945}from'ckeditor5/src/core.js';import{FileRepository as _0x2c7f29}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x331f81}from'./uploadcareediting.js';import{UploadUtils as _0x286ec0}from'./utils/uploadutils.js';import{getImageUrls as _0x3c8291}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x9fc945{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2c7f29,_0x331f81];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x550e32=this['editor'];if(!!!_0x550e32['config']['get']('uploadcare'))return;_0x550e32['plugins']['get'](_0x2c7f29)['createUploadAdapter']=_0xa882a1=>new k(_0xa882a1,_0x550e32),_0x550e32['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x102513,{imageElement:_0x44fbda,data:_0x462c11})=>{_0x550e32['model']['change'](_0x590d58=>{_0x590d58['setAttribute']('uploadcareImageId',_0x462c11['uploadcareImageId'],_0x44fbda);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4e7750,_0x37b63a){this['loader']=_0x4e7750,this['editor']=_0x37b63a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x42d4f2=await this['loader']['file'];return _0x286ec0['upload']({'file':_0x42d4f2,'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':_0xfa3f2a=>{_0xfa3f2a&&_0xfa3f2a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xfa3f2a['value']);}})['then'](async _0x1c1a16=>{const {imageFallbackUrl:_0x16964e,imageSources:_0x58da6c}=_0x3c8291(_0x1c1a16['cdnUrl'],_0x1c1a16['imageInfo']['width']);return{'uploadcareImageId':_0x1c1a16['uuid'],'default':_0x16964e,'sources':_0x58da6c};})['catch'](()=>{const _0x316054=t('Cannot\x20upload\x20file:')+('\x20'+_0x42d4f2['name']+'.');return Promise['reject'](_0x316054);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x251cf3}from'../uploadcareconfig.js';export function getTranslation(_0x56e990,_0x3f31fe,_0x4562f9){const t=_0x56e990['t'],_0x4deb08=_0x56e990['t'];switch(_0x3f31fe){case _0x251cf3['Local']:return{'text':_0x4deb08('Insert'===_0x4562f9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4deb08('From\x20computer')};case _0x251cf3['URL']:return{'text':'Insert'===_0x4562f9?_0x4deb08('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4deb08('Via\x20URL')};case _0x251cf3['Dropbox']:return{'text':t('Insert'===_0x4562f9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x251cf3['Facebook']:return{'text':t('Insert'===_0x4562f9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x251cf3['GDrive']:return{'text':t('Insert'===_0x4562f9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x251cf3['GPhotos']:return{'text':t('Insert'===_0x4562f9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x251cf3['OneDrive']:return{'text':t('Insert'===_0x4562f9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3f31fe;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xbf32d7=_0x2c1c;(function(_0x520fc6,_0x2cf273){var _0x2be49c=_0x2c1c,_0x1ccf81=_0x520fc6();while(!![]){try{var _0x559593=parseInt(_0x2be49c(0x1d5))/0x1*(parseInt(_0x2be49c(0x1d9))/0x2)+parseInt(_0x2be49c(0x1d6))/0x3+-parseInt(_0x2be49c(0x1d8))/0x4+-parseInt(_0x2be49c(0x1d4))/0x5*(-parseInt(_0x2be49c(0x1cf))/0x6)+parseInt(_0x2be49c(0x1cc))/0x7+-parseInt(_0x2be49c(0x1dd))/0x8*(-parseInt(_0x2be49c(0x1d1))/0x9)+-parseInt(_0x2be49c(0x1d7))/0xa;if(_0x559593===_0x2cf273)break;else _0x1ccf81['push'](_0x1ccf81['shift']());}catch(_0x4e0643){_0x1ccf81['push'](_0x1ccf81['shift']());}}}(_0x22de,0xb48d2));import{FocusTracker as _0x4c5d9d}from'ckeditor5/src/utils.js';function _0x2c1c(_0x2d3a70,_0x522ebb){var _0x22de5e=_0x22de();return _0x2c1c=function(_0x2c1c85,_0x5e94c1){_0x2c1c85=_0x2c1c85-0x1cc;var _0x5dc859=_0x22de5e[_0x2c1c85];return _0x5dc859;},_0x2c1c(_0x2d3a70,_0x522ebb);}import{View as _0x1375f7,FocusCycler as _0x51ad7c}from'ckeditor5/src/ui.js';function _0x22de(){var _0x388eb5=['focusCycler','536cPjNep','fire','2353729UcHYQi','true','bindTemplate','14556IennqU','focusTracker','133677OMwFms','getFocusableElement','createCollection','1530yejTcv','18gQzkfz','800400hUOjhM','17650800LASltu','1109472VeNEPj','49048AiQnYf','div','forwardCycle'];_0x22de=function(){return _0x388eb5;};return _0x22de();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1375f7{[_0xbf32d7(0x1d0)];[_0xbf32d7(0x1dc)];constructor(_0x29b9b6){var _0x1542f2=_0xbf32d7;super(_0x29b9b6),this[_0x1542f2(0x1d0)]=new _0x4c5d9d(),this[_0x1542f2(0x1dc)]=new _0x51ad7c({'focusables':this[_0x1542f2(0x1d3)](),'focusTracker':this[_0x1542f2(0x1d0)]});}[_0xbf32d7(0x1d2)](){var _0xe42aa7=_0xbf32d7;return{'tag':_0xe42aa7(0x1da),'attributes':{'aria-hidden':_0xe42aa7(0x1cd),'tabindex':'0'},'on':{'focus':this[_0xe42aa7(0x1ce)]['to'](()=>{var _0xef9bd0=_0xe42aa7;this[_0xef9bd0(0x1dc)][_0xef9bd0(0x1de)](_0xef9bd0(0x1db));})}};}}
|