@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.6 → 47.0.0-alpha.7
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 _0x4cfe(){const _0x9f4128=['UploadcareEditing','isOfficialPlugin','selection','pluginName','locale','add','requires','commands','fromCharCode','conversion','afterInit','_initSchema','imageBlock','uploadcare.pubkey','uploader-','iconHrefResolver','data-uc-image-id','for','cleanupImage','map','getSelectedElement','querySelector','uploadcareImageId','imageInline','href','configElement','model','3335586rrteTY','_ctxElement','view','document','schema','ucContextId','_configElement','render','closeMax','isPremiumPlugin','downcast','extend','uc-config','22196530IJbWDz','editing','ctxElement','appendChild','_initImageProcessingIndicator','listenTo','uploadcare','PictureEditing','21OTOcGD','\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','body','execute','true','replaceImageSource','uc-upload-ctx-provider','removeAttribute','_initConfig','uploadcareImageReplace','_initConversion','6460445MLjCQo','editor','#uc-icon-arrow-down','196665tueRay','753672IZXzVb','4SgYsoP','getAttribute','init','upcast','22uqGJOF','insertImage','49ZHzNli','config','input[uploadcare-file-input]','destroy','isRegistered','_initCtx','join','get','4123548ZskNBZ','once','contentLanguage','remove','uploadcare.uploader','54194qkAdrC','attributeToAttribute','elementToAttribute'];_0x4cfe=function(){return _0x9f4128;};return _0x4cfe();}const _0x91201d=_0x4564;(function(_0x5a3672,_0x316567){const _0x21b387=_0x4564,_0x3165b6=_0x5a3672();while(!![]){try{const _0x3d1dc4=parseInt(_0x21b387(0x1a4))/0x1*(-parseInt(_0x21b387(0x1c7))/0x2)+-parseInt(_0x21b387(0x1b2))/0x3*(-parseInt(_0x21b387(0x1b4))/0x4)+-parseInt(_0x21b387(0x1af))/0x5+-parseInt(_0x21b387(0x1e5))/0x6+-parseInt(_0x21b387(0x1ba))/0x7*(parseInt(_0x21b387(0x1b3))/0x8)+-parseInt(_0x21b387(0x1c2))/0x9+parseInt(_0x21b387(0x1f2))/0xa*(parseInt(_0x21b387(0x1b8))/0xb);if(_0x3d1dc4===_0x316567)break;else _0x3165b6['push'](_0x3165b6['shift']());}catch(_0x34a532){_0x3165b6['push'](_0x3165b6['shift']());}}}(_0x4cfe,0xecdb9));import{Plugin as _0x367138}from'ckeditor5/src/core.js';import{Dialog as _0xbefb7a}from'ckeditor5/src/ui.js';import{createElement as _0x1bfa4e,global as _0xfe5ddc,uid as _0x350220}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4fc4b3}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4bab7b}from'./uploadcareuploadadapter.js';function _0x4564(_0x2cbc16,_0x433130){const _0x4cfed8=_0x4cfe();return _0x4564=function(_0x45649f,_0x430fb6){_0x45649f=_0x45649f-0x1a3;let _0x9a5be9=_0x4cfed8[_0x45649f];return _0x9a5be9;},_0x4564(_0x2cbc16,_0x433130);}import{showImageProcessingIndicator as _0x2fcad3}from'./utils/editingutils.js';export class UploadcareEditing extends _0x367138{[_0x91201d(0x1eb)]=null;[_0x91201d(0x1e6)]=null;static get[_0x91201d(0x1cd)](){const _0xdb2339=_0x91201d;return _0xdb2339(0x1ca);}static get[_0x91201d(0x1d0)](){const _0x43dc59=_0x91201d;return[_0x43dc59(0x1a3),_0x4bab7b,_0xbefb7a];}static get[_0x91201d(0x1cb)](){return!0x0;}static get[_0x91201d(0x1ee)](){return!0x0;}[_0x91201d(0x1ea)];get[_0x91201d(0x1e3)](){const _0x552be9=_0x91201d;return this[_0x552be9(0x1eb)];}get[_0x91201d(0x1f4)](){const _0x2c14d4=_0x91201d;return this[_0x2c14d4(0x1e6)];}constructor(_0x49965b){const _0x2ccf38=_0x91201d;super(_0x49965b),this[_0x2ccf38(0x1ea)]=_0x350220();}[_0x91201d(0x1b6)](){const _0x496793=_0x91201d,_0x298f9f=this[_0x496793(0x1b0)];_0x298f9f[_0x496793(0x1d1)][_0x496793(0x1cf)](_0x496793(0x1f8),new _0x4fc4b3(_0x298f9f));}[_0x91201d(0x1d4)](){const _0x8b6863=_0x91201d;this[_0x8b6863(0x1d5)](),this[_0x8b6863(0x1ae)](),this[_0x8b6863(0x1ac)](),this[_0x8b6863(0x1bf)](),this[_0x8b6863(0x1f6)](),this[_0x8b6863(0x1f7)](this[_0x8b6863(0x1b0)],_0x8b6863(0x1bd),()=>{const _0x3072ef=_0x8b6863;this[_0x3072ef(0x1eb)]&&(this[_0x3072ef(0x1eb)][_0x3072ef(0x1c5)](),this[_0x3072ef(0x1eb)]=null),this[_0x3072ef(0x1e6)]&&(this[_0x3072ef(0x1e6)][_0x3072ef(0x1c5)](),this[_0x3072ef(0x1e6)]=null);const _0x3be53d=_0xfe5ddc[_0x3072ef(0x1e8)][_0x3072ef(0x1df)](_0x3072ef(0x1bc));_0x3be53d&&_0x3be53d[_0x3072ef(0x1c5)]();}),async function(_0x42a119){const _0x1324d0=_0x4ed4c0([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5ede34=0x3d8d0df,_0x22e89c=0x3dfa41f^_0x5ede34,_0x1df78b=window[_0x4ed4c0([0x44,0x61,0x74,0x65])][_0x4ed4c0([0x6e,0x6f,0x77])](),_0x819dd4=_0x42a119[_0x4ed4c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f2571=new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29a102=>{_0x819dd4[_0x4ed4c0([0x6f,0x6e,0x63,0x65])](_0x4ed4c0([0x72,0x65,0x61,0x64,0x79]),_0x29a102);}),_0x514bf2={[_0x4ed4c0([0x6b,0x74,0x79])]:_0x4ed4c0([0x45,0x43]),[_0x4ed4c0([0x75,0x73,0x65])]:_0x4ed4c0([0x73,0x69,0x67]),[_0x4ed4c0([0x63,0x72,0x76])]:_0x4ed4c0([0x50,0x2d,0x32,0x35,0x36]),[_0x4ed4c0([0x78])]:_0x4ed4c0([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]),[_0x4ed4c0([0x79])]:_0x4ed4c0([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]),[_0x4ed4c0([0x61,0x6c,0x67])]:_0x4ed4c0([0x45,0x53,0x32,0x35,0x36])},_0x588104=_0x819dd4[_0x4ed4c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ed4c0([0x67,0x65,0x74])](_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57a954(){let _0x2ff2ef,_0x11c956=null,_0x3737b1=null;try{if(_0x588104==_0x4ed4c0([0x47,0x50,0x4c]))return _0x4ed4c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ff2ef=_0x203371(),!_0x2ff2ef)return _0x4ed4c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ff2ef[_0x4ed4c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3737b1=_0x599b1d(_0x2ff2ef[_0x4ed4c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ff2ef[_0x4ed4c0([0x6a,0x74,0x69])])),await _0x3118d1()?_0x3ba2eb()?_0x43a1cd()?_0x4ed4c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xda7996()?(_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ed4c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11c956=_0xca6a2b(_0x4ed4c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ed4c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x11c956=_0xca6a2b(_0x4ed4c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a1046()):_0x4ed4c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ed4c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ed4c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ed4c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43a1cd(){const _0x2fdd1e=[_0x4ed4c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ed4c0([0x74,0x72,0x69,0x61,0x6c])][_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1df78b/0x3e8:0xe10*_0x22e89c;return _0x2ff2ef[_0x4ed4c0([0x65,0x78,0x70])]<_0x2fdd1e;}function _0x3ba2eb(){const _0x24a461=_0x2ff2ef[_0x4ed4c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24a461&&(!!_0x24a461[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed4c0([0x2a]))||!!_0x24a461[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed4c0([0x55,0x50,0x4c,0x43])));}function _0xda7996(){const _0xd50a01=_0x4564,_0x11c2fc=_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11c2fc||0x0==_0x11c2fc[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58188b}=new URL(window[_0x4ed4c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xd50a01(0x1e2)]);if(_0x11c2fc[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58188b))return!0x0;const _0x238093=_0x58188b[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e]));return _0x11c2fc[_0x4ed4c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11f662=>_0x11f662[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed4c0([0x2a])))[_0x4ed4c0([0x6d,0x61,0x70])](_0x1af0d9=>_0x1af0d9[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e])))[_0x4ed4c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59a64f=>_0x59a64f[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x238093[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ed4c0([0x6d,0x61,0x70])](_0x533b31=>Array(_0x238093[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x533b31[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ed4c0([0x66,0x69,0x6c,0x6c])](_0x533b31[0x0]===_0x4ed4c0([0x2a])?_0x4ed4c0([0x2a]):'')[_0x4ed4c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x533b31))[_0x4ed4c0([0x73,0x6f,0x6d,0x65])](_0x15854a=>_0x238093[_0x4ed4c0([0x65,0x76,0x65,0x72,0x79])]((_0x52beb9,_0x26750b)=>_0x15854a[_0x26750b]===_0x52beb9||_0x15854a[_0x26750b]===_0x4ed4c0([0x2a])));}function _0x1a1046(){return _0x11c956&&_0x3737b1?new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cd1d6,_0x51610b)=>{_0x11c956[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x1cd1d6,_0x51610b),_0x3737b1[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x298391=>{_0x298391!=_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64])&&_0x1cd1d6(_0x298391);},_0x51610b);}):_0x11c956||_0x3737b1||_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x599b1d(_0x3ea55c,_0x33e1c1){return new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ab970=>{if(_0xc1e02b())return _0x4ab970(_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64]));_0x39f4a6(),_0x819dd4[_0x4ed4c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ed4c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51572e=!0x1;const _0x3dbe3d=_0x350220();function _0x13ee35(_0x14881a){return!!_0x14881a&&(typeof _0x14881a===_0x4ed4c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14881a===_0x4ed4c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14881a[_0x4ed4c0([0x74,0x68,0x65,0x6e])]===_0x4ed4c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14881a[_0x4ed4c0([0x63,0x61,0x74,0x63,0x68])]===_0x4ed4c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x78de00(_0x1b2d2c){_0xbaf13b(_0x1b2d2c)[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x112b8f=>{if(!_0x112b8f||_0x112b8f[_0x4ed4c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ed4c0([0x6f,0x6b]))return _0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ee7fe(_0x27dffd(_0x3dbe3d+_0x33e1c1))!=_0x112b8f[_0x4ed4c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x38470a=>(_0x390c45(),_0x38470a),()=>{const _0x2b6fdc=_0x420429();return null==_0x2b6fdc?(_0x390c45(),_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64])):_0x4ed4c0(_0x1df78b-_0x2b6fdc>(0x27d454df^_0x5ede34)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x4ab970)[_0x4ed4c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ab970(_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x663ac4=0x3ee3e5f^_0x5ede34;function _0x390c45(){const _0x1b0c09=_0x4ed4c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ee7fe(_0x27dffd(_0x3ea55c)),_0x2bc1d7=_0x3bbe2b(_0x4ee7fe(window[_0x4ed4c0([0x4d,0x61,0x74,0x68])][_0x4ed4c0([0x63,0x65,0x69,0x6c])](_0x1df78b/_0x663ac4)));window[_0x4ed4c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ed4c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b0c09,_0x2bc1d7);}function _0x420429(){const _0x116e6d=_0x4ed4c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ee7fe(_0x27dffd(_0x3ea55c)),_0x20dfc8=window[_0x4ed4c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ed4c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x116e6d);return _0x20dfc8?window[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bbe2b(_0x20dfc8),0x10)*_0x663ac4:null;}function _0xbaf13b(_0x4239aa){return new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f252f,_0x228397)=>{_0x4239aa[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x1f252f,_0x228397),window[_0x4ed4c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x228397,0x3d9041f^_0x5ede34);});}}_0x819dd4[_0x4ed4c0([0x6f,0x6e])](_0x4ed4c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe43a0d,_0x1f7e17)=>{if(_0x1f7e17[0x0]!=_0x3ea55c)return _0x4ab970(_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f7e17[0x1]={..._0x1f7e17[0x1],[_0x4ed4c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dbe3d};},{[_0x4ed4c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ed4c0([0x68,0x69,0x67,0x68])}),_0x819dd4[_0x4ed4c0([0x6f,0x6e])](_0x4ed4c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xeff493=>{_0x13ee35(_0xeff493[_0x4ed4c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51572e=!0x0,_0x78de00(_0xeff493[_0x4ed4c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ed4c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ed4c0([0x6c,0x6f,0x77])}),_0x4f2571[_0x4ed4c0([0x74,0x68,0x65,0x6e])](()=>{_0x51572e||_0x4ab970(_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc1e02b(){return _0x819dd4[_0x4ed4c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ed4c0([0x76,0x69,0x65,0x77])][_0x4ed4c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ed4c0([0x61,0x75,0x74,0x6f]);}function _0x39f4a6(){_0x819dd4[_0x4ed4c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ed4c0([0x76,0x69,0x65,0x77])][_0x4ed4c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ed4c0([0x61,0x75,0x74,0x6f]);}}function _0xca6a2b(_0x13166a){const _0x4a6069=[new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b3864=>setTimeout(_0x4b3864,0x3d1ee13^_0x5ede34)),_0x4f2571[_0x4ed4c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106468=>{let _0x354f4a=0x0;_0x819dd4[_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed4c0([0x6f,0x6e])](_0x4ed4c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x573f1d,_0x1a1fcd)=>{_0x1a1fcd[0x0][_0x4ed4c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x354f4a++,_0x354f4a==(0x3d8d127^_0x5ede34)&&(_0x106468(),_0x573f1d[_0x4ed4c0([0x6f,0x66,0x66])]());});}))];return window[_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ed4c0([0x72,0x61,0x63,0x65])](_0x4a6069)[_0x4ed4c0([0x74,0x68,0x65,0x6e])](()=>_0x13166a);}async function _0x482cf5(){await _0x4f2571,_0x819dd4[_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed4c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d8b2,_0x819dd4[_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed4c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d8b2,_0x819dd4[_0x4ed4c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x239e49(_0x412b5d){const _0x217653=_0x5c9ffc();_0x819dd4[_0x217653]=_0x4ed4c0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x412b5d,_0x412b5d!=_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64])&&_0x482cf5();}function _0x5c9ffc(){const _0x60b684=window[_0x4ed4c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ed4c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ed4c0([0x6e,0x6f,0x77])]())[_0x4ed4c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ed4c0([0x2e]),'');let _0x1a7265=_0x4ed4c0([0x52]);for(let _0xd2f037=0x0;_0xd2f037<_0x60b684[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd2f037+=0x2){let _0x4e71a0=window[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60b684[_0x4ed4c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd2f037,_0xd2f037+0x2));_0x4e71a0>=_0x1324d0[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e71a0-=_0x1324d0[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a7265+=_0x1324d0[_0x4e71a0];}return _0x1a7265;}function _0x203371(){const _0x64a6a2=_0x588104[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e]));if(0x3!=_0x64a6a2[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23bd72(_0x64a6a2[0x1]);function _0x23bd72(_0x2b344a){const _0x378257=_0x5861ef(_0x2b344a);return _0x378257&&_0x2080e0()?_0x378257:null;function _0x2080e0(){const _0xa4dc10=_0x378257[_0x4ed4c0([0x6a,0x74,0x69])],_0x593c7d=window[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa4dc10[_0x4ed4c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa4dc10[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e7c64={..._0x378257,[_0x4ed4c0([0x6a,0x74,0x69])]:_0xa4dc10[_0x4ed4c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa4dc10[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e7c64[_0x4ed4c0([0x76,0x63])],_0x27dffd(_0x5e7c64)==_0x593c7d;}}}async function _0x3118d1(){let _0x44b392=!0x0;try{const _0x3e26c7=_0x588104[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e])),[_0x4fcb42,_0x1e1def,_0x3ce353]=_0x3e26c7;return _0x725ac2(_0x4fcb42),await _0x2ccb65(_0x4fcb42,_0x1e1def,_0x3ce353),_0x44b392;}catch{return!0x1;}function _0x725ac2(_0x2ddace){const _0x1233ca=_0x5861ef(_0x2ddace);_0x1233ca&&_0x1233ca[_0x4ed4c0([0x61,0x6c,0x67])]==_0x4ed4c0([0x45,0x53,0x32,0x35,0x36])||(_0x44b392=!0x1);}async function _0x2ccb65(_0x3d4e6b,_0x2bd5da,_0x7fcb86){const _0x2bde83=window[_0x4ed4c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ed4c0([0x66,0x72,0x6f,0x6d])](_0x2f4f63(_0x7fcb86),_0x2b5ad9=>_0x2b5ad9[_0x4ed4c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46237b=new window[(_0x4ed4c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ed4c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d4e6b+_0x4ed4c0([0x2e])+_0x2bd5da),_0x2ef0e9=window[_0x4ed4c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ed4c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ef0e9)return;const _0x3081c8=await _0x2ef0e9[_0x4ed4c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ed4c0([0x6a,0x77,0x6b]),_0x514bf2,{[_0x4ed4c0([0x6e,0x61,0x6d,0x65])]:_0x4ed4c0([0x45,0x43,0x44,0x53,0x41]),[_0x4ed4c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ed4c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ed4c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ef0e9[_0x4ed4c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ed4c0([0x6e,0x61,0x6d,0x65])]:_0x4ed4c0([0x45,0x43,0x44,0x53,0x41]),[_0x4ed4c0([0x68,0x61,0x73,0x68])]:{[_0x4ed4c0([0x6e,0x61,0x6d,0x65])]:_0x4ed4c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3081c8,_0x2bde83,_0x46237b)||(_0x44b392=!0x1);}}function _0x5861ef(_0x1f0fda){return _0x1f0fda[_0x4ed4c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ed4c0([0x65,0x79]))?JSON[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65])](_0x2f4f63(_0x1f0fda)):null;}function _0x2f4f63(_0x4ae040){return window[_0x4ed4c0([0x61,0x74,0x6f,0x62])](_0x4ae040[_0x4ed4c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ed4c0([0x2b]))[_0x4ed4c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ed4c0([0x2f])));}function _0x27dffd(_0x45dfc0){let _0x256684=0x1505;function _0x4921aa(_0x6c0a63){for(let _0x4f9426=0x0;_0x4f9426<_0x6c0a63[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f9426++){const _0x44e12b=_0x6c0a63[_0x4ed4c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f9426);_0x256684=(_0x256684<<0x5)+_0x256684+_0x44e12b,_0x256684&=_0x256684;}}function _0x1d263d(_0x1dbad2){Array[_0x4ed4c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1dbad2)?_0x1dbad2[_0x4ed4c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d263d):_0x1dbad2&&typeof _0x1dbad2==_0x4ed4c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ed4c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1dbad2)[_0x4ed4c0([0x73,0x6f,0x72,0x74])]()[_0x4ed4c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47358d,_0x2b35bb])=>{_0x4921aa(_0x47358d),_0x1d263d(_0x2b35bb);}):_0x4921aa(window[_0x4ed4c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1dbad2));}return _0x1d263d(_0x45dfc0),_0x256684>>>0x0;}function _0x4ee7fe(_0xa6fd82){return _0xa6fd82[_0x4ed4c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ed4c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ed4c0([0x30]));}function _0x3bbe2b(_0x2d5502){return _0x2d5502[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ed4c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ed4c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d8b2(){}function _0x4ed4c0(_0x47235b){const _0x33f218=_0x4564;return _0x47235b[_0x33f218(0x1dd)](_0x406352=>String[_0x33f218(0x1d2)](_0x406352))[_0x33f218(0x1c0)]('');}_0x239e49(await _0x57a954());}(this);}[_0x91201d(0x1d5)](){const _0x276a12=_0x91201d,_0x2749a2=this[_0x276a12(0x1b0)][_0x276a12(0x1e4)][_0x276a12(0x1e9)];_0x2749a2[_0x276a12(0x1be)](_0x276a12(0x1d6))&&_0x2749a2[_0x276a12(0x1f0)](_0x276a12(0x1d6),{'allowAttributes':[_0x276a12(0x1e0)]}),_0x2749a2[_0x276a12(0x1be)](_0x276a12(0x1e1))&&_0x2749a2[_0x276a12(0x1f0)](_0x276a12(0x1e1),{'allowAttributes':[_0x276a12(0x1e0)]});}[_0x91201d(0x1ae)](){const _0x1dcbe3=_0x91201d,_0x1f72e5=this[_0x1dcbe3(0x1b0)];_0x1f72e5[_0x1dcbe3(0x1d3)][_0x1dcbe3(0x1db)](_0x1dcbe3(0x1ef))[_0x1dcbe3(0x1c8)]({'model':_0x1dcbe3(0x1e0),'view':_0x1dcbe3(0x1da)}),_0x1f72e5[_0x1dcbe3(0x1d3)][_0x1dcbe3(0x1db)](_0x1dcbe3(0x1b7))[_0x1dcbe3(0x1c9)]({'model':{'key':_0x1dcbe3(0x1e0),'value':_0x53db73=>_0x53db73[_0x1dcbe3(0x1b5)](_0x1dcbe3(0x1da))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51021c=_0x1f72e5[_0x1dcbe3(0x1d1)][_0x1dcbe3(0x1c1)](_0x1dcbe3(0x1a9));_0x51021c&&this[_0x1dcbe3(0x1f7)](_0x51021c,_0x1dcbe3(0x1dc),(_0x461e96,[_0x4ce2c3,_0x552da3])=>{const _0x1a57c9=_0x1dcbe3;_0x4ce2c3[_0x1a57c9(0x1ab)](_0x1a57c9(0x1e0),_0x552da3);});}[_0x91201d(0x1ac)](){const _0x11d84b=_0x91201d,_0x36d3ec=this[_0x11d84b(0x1b0)][_0x11d84b(0x1bb)][_0x11d84b(0x1c1)](_0x11d84b(0x1c6))||{},_0x5b7900=this[_0x11d84b(0x1b0)][_0x11d84b(0x1bb)][_0x11d84b(0x1c1)](_0x11d84b(0x1d7))||'';this[_0x11d84b(0x1eb)]=_0x1bfa4e(_0xfe5ddc[_0x11d84b(0x1e8)],_0x11d84b(0x1f1),{..._0x36d3ec,'pubkey':_0x5b7900,'ctx-name':_0x11d84b(0x1d8)+this[_0x11d84b(0x1ea)],'sourceList':'','imgOnly':_0x11d84b(0x1a8),'removeCopyright':_0x11d84b(0x1a8),'localeName':this[_0x11d84b(0x1b0)][_0x11d84b(0x1ce)][_0x11d84b(0x1c4)],'externalSourcesEmbedCss':_0x11d84b(0x1a5)}),this[_0x11d84b(0x1eb)][_0x11d84b(0x1d9)]=_0x171fe6=>{const _0x14ed13=_0x11d84b;if(_0x14ed13(0x1ed)==_0x171fe6)return _0x14ed13(0x1b1);},_0xfe5ddc[_0x11d84b(0x1e8)][_0x11d84b(0x1a6)][_0x11d84b(0x1f5)](this[_0x11d84b(0x1eb)]);}[_0x91201d(0x1bf)](){const _0x56b7ac=_0x91201d;this[_0x56b7ac(0x1e6)]=_0x1bfa4e(_0xfe5ddc[_0x56b7ac(0x1e8)],_0x56b7ac(0x1aa),{'ctx-name':_0x56b7ac(0x1d8)+this[_0x56b7ac(0x1ea)]}),_0xfe5ddc[_0x56b7ac(0x1e8)][_0x56b7ac(0x1a6)][_0x56b7ac(0x1f5)](this[_0x56b7ac(0x1e6)]);}[_0x91201d(0x1f6)](){const _0x328b3e=_0x91201d,_0x4db080=this[_0x328b3e(0x1b0)][_0x328b3e(0x1d1)][_0x328b3e(0x1c1)](_0x328b3e(0x1b9));_0x4db080&&this[_0x328b3e(0x1f7)](_0x4db080,_0x328b3e(0x1a7),()=>{const _0x3305dd=_0x328b3e,_0x36f290=this[_0x3305dd(0x1b0)][_0x3305dd(0x1e4)][_0x3305dd(0x1e8)][_0x3305dd(0x1cc)][_0x3305dd(0x1de)]();_0x36f290&&_0x36f290[_0x3305dd(0x1b5)](_0x3305dd(0x1e0))&&this[_0x3305dd(0x1b0)][_0x3305dd(0x1f3)][_0x3305dd(0x1e7)][_0x3305dd(0x1c3)](_0x3305dd(0x1ec),()=>{const _0xfac45a=_0x3305dd;_0x2fcad3(this[_0xfac45a(0x1b0)],_0x36f290);});});const _0x1a0307=this[_0x328b3e(0x1b0)][_0x328b3e(0x1d1)][_0x328b3e(0x1c1)](_0x328b3e(0x1ad));_0x1a0307&&this[_0x328b3e(0x1f7)](_0x1a0307,_0x328b3e(0x1a7),()=>{const _0x4721d6=_0x328b3e,_0x1d6139=this[_0x4721d6(0x1b0)][_0x4721d6(0x1e4)][_0x4721d6(0x1e8)][_0x4721d6(0x1cc)][_0x4721d6(0x1de)]();_0x1d6139&&_0x1d6139[_0x4721d6(0x1b5)](_0x4721d6(0x1e0))&&this[_0x4721d6(0x1b0)][_0x4721d6(0x1f3)][_0x4721d6(0x1e7)][_0x4721d6(0x1c3)](_0x4721d6(0x1ec),()=>{const _0x73457a=_0x4721d6;_0x2fcad3(this[_0x73457a(0x1b0)],_0x1d6139);});});}}
|
|
23
|
+
const _0x4461d4=_0x32e1;(function(_0x4844da,_0x166614){const _0x9537f8=_0x32e1,_0xd292e9=_0x4844da();while(!![]){try{const _0x4334e4=-parseInt(_0x9537f8(0xd0))/0x1*(-parseInt(_0x9537f8(0xa6))/0x2)+-parseInt(_0x9537f8(0xd9))/0x3*(-parseInt(_0x9537f8(0xc3))/0x4)+parseInt(_0x9537f8(0xbc))/0x5*(-parseInt(_0x9537f8(0xad))/0x6)+parseInt(_0x9537f8(0x9f))/0x7+parseInt(_0x9537f8(0xc6))/0x8+-parseInt(_0x9537f8(0xc2))/0x9*(-parseInt(_0x9537f8(0xc0))/0xa)+parseInt(_0x9537f8(0xc8))/0xb*(-parseInt(_0x9537f8(0xb9))/0xc);if(_0x4334e4===_0x166614)break;else _0xd292e9['push'](_0xd292e9['shift']());}catch(_0x491ee9){_0xd292e9['push'](_0xd292e9['shift']());}}}(_0x2408,0x9557b));import{Plugin as _0x4d872e}from'ckeditor5/src/core.js';import{Dialog as _0x570a5c}from'ckeditor5/src/ui.js';import{createElement as _0xe7745b,global as _0x27f4b0,uid as _0x136ca4}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2b4dcc}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28a492}from'./uploadcareuploadadapter.js';function _0x32e1(_0xfe025e,_0xab7ebb){const _0x24081b=_0x2408();return _0x32e1=function(_0x32e122,_0x26e24e){_0x32e122=_0x32e122-0x8e;let _0x4301a4=_0x24081b[_0x32e122];return _0x4301a4;},_0x32e1(_0xfe025e,_0xab7ebb);}import{showImageProcessingIndicator as _0x20ca05}from'./utils/editingutils.js';function _0x2408(){const _0x5cada9=['imageBlock','afterInit','schema','_initConversion','removeAttribute','editing','config','_initImageProcessingIndicator','upcast','isPremiumPlugin','execute','map','appendChild','uploadcare.uploader','\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','uploader-','fromCharCode','render','selection','7975072Bbhknu','ucContextId','getAttribute','init','pluginName','_initCtx','view','38FphufE','get','body','isOfficialPlugin','input[uploadcare-file-input]','model','elementToAttribute','6CCFXIx','uploadcare','uploadcare.pubkey','replaceImageSource','data-uc-image-id','downcast','destroy','conversion','cleanupImage','_ctxElement','_configElement','commands','379284joHGCC','remove','UploadcareEditing','2823370YJmqwZ','#uc-icon-arrow-down','imageInline','uploadcareImageId','1449670NMleLY','uploadcareImageReplace','27OYQsFO','884724LLfFqE','document','_initConfig','3864144TxmQpq','getSelectedElement','539ezMdgy','href','closeMax','true','uc-config','querySelector','once','uc-upload-ctx-provider','23512lIUfiW','configElement','editor','ctxElement','insertImage','add','requires','_initSchema','listenTo','3XtsgLg','join','contentLanguage','attributeToAttribute','isRegistered','iconHrefResolver','extend','locale','PictureEditing','for'];_0x2408=function(){return _0x5cada9;};return _0x2408();}export class UploadcareEditing extends _0x4d872e{[_0x4461d4(0xb7)]=null;[_0x4461d4(0xb6)]=null;static get[_0x4461d4(0xa3)](){const _0x286901=_0x4461d4;return _0x286901(0xbb);}static get[_0x4461d4(0xd6)](){const _0x3167df=_0x4461d4;return[_0x3167df(0xe1),_0x28a492,_0x570a5c];}static get[_0x4461d4(0xa9)](){return!0x0;}static get[_0x4461d4(0x95)](){return!0x0;}[_0x4461d4(0xa0)];get[_0x4461d4(0xd1)](){const _0x151842=_0x4461d4;return this[_0x151842(0xb7)];}get[_0x4461d4(0xd3)](){const _0x2a881f=_0x4461d4;return this[_0x2a881f(0xb6)];}constructor(_0x49958d){const _0xcaed52=_0x4461d4;super(_0x49958d),this[_0xcaed52(0xa0)]=_0x136ca4();}[_0x4461d4(0xa2)](){const _0x576a4f=_0x4461d4,_0xbdc1d6=this[_0x576a4f(0xd2)];_0xbdc1d6[_0x576a4f(0xb8)][_0x576a4f(0xd5)](_0x576a4f(0xae),new _0x2b4dcc(_0xbdc1d6));}[_0x4461d4(0xe4)](){const _0x5afcd6=_0x4461d4;this[_0x5afcd6(0xd7)](),this[_0x5afcd6(0x8f)](),this[_0x5afcd6(0xc5)](),this[_0x5afcd6(0xa4)](),this[_0x5afcd6(0x93)](),this[_0x5afcd6(0xd8)](this[_0x5afcd6(0xd2)],_0x5afcd6(0xb3),()=>{const _0x22e77a=_0x5afcd6;this[_0x22e77a(0xb7)]&&(this[_0x22e77a(0xb7)][_0x22e77a(0xba)](),this[_0x22e77a(0xb7)]=null),this[_0x22e77a(0xb6)]&&(this[_0x22e77a(0xb6)][_0x22e77a(0xba)](),this[_0x22e77a(0xb6)]=null);const _0x1c50a9=_0x27f4b0[_0x22e77a(0xc4)][_0x22e77a(0xcd)](_0x22e77a(0xaa));_0x1c50a9&&_0x1c50a9[_0x22e77a(0xba)]();}),async function(_0x3456b9){const _0x41ebc6=_0x4c9353([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x19e202=0x3d8d0df,_0x230e99=0x3dfa407^_0x19e202,_0x30580b=window[_0x4c9353([0x44,0x61,0x74,0x65])][_0x4c9353([0x6e,0x6f,0x77])](),_0x227133=_0x3456b9[_0x4c9353([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15cbe6=new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ed33c=>{_0x227133[_0x4c9353([0x6f,0x6e,0x63,0x65])](_0x4c9353([0x72,0x65,0x61,0x64,0x79]),_0x4ed33c);}),_0x1cea16={[_0x4c9353([0x6b,0x74,0x79])]:_0x4c9353([0x45,0x43]),[_0x4c9353([0x75,0x73,0x65])]:_0x4c9353([0x73,0x69,0x67]),[_0x4c9353([0x63,0x72,0x76])]:_0x4c9353([0x50,0x2d,0x32,0x35,0x36]),[_0x4c9353([0x78])]:_0x4c9353([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]),[_0x4c9353([0x79])]:_0x4c9353([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]),[_0x4c9353([0x61,0x6c,0x67])]:_0x4c9353([0x45,0x53,0x32,0x35,0x36])},_0x713bd8=_0x227133[_0x4c9353([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c9353([0x67,0x65,0x74])](_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x593b78(){let _0x18f2b5,_0x3f04bd=null,_0x3832e8=null;try{if(_0x713bd8==_0x4c9353([0x47,0x50,0x4c]))return _0x4c9353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18f2b5=_0x5be9d6(),!_0x18f2b5)return _0x4c9353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18f2b5[_0x4c9353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3832e8=_0xf6d29(_0x18f2b5[_0x4c9353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18f2b5[_0x4c9353([0x6a,0x74,0x69])])),await _0x5a1568()?_0xaff0c0()?_0x4a0619()?_0x4c9353([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45e801()?(_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f04bd=_0x414024(_0x4c9353([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9353([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f04bd=_0x414024(_0x4c9353([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34b345()):_0x4c9353([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c9353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c9353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a0619(){const _0x3dcb41=[_0x4c9353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c9353([0x74,0x72,0x69,0x61,0x6c])][_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30580b/0x3e8:0xe10*_0x230e99;return _0x18f2b5[_0x4c9353([0x65,0x78,0x70])]<_0x3dcb41;}function _0xaff0c0(){const _0x59683c=_0x18f2b5[_0x4c9353([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59683c&&(!!_0x59683c[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9353([0x2a]))||!!_0x59683c[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9353([0x55,0x50,0x4c,0x43])));}function _0x45e801(){const _0x5d91c6=_0x32e1,_0x55fce7=_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55fce7||0x0==_0x55fce7[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b372b}=new URL(window[_0x4c9353([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d91c6(0xc9)]);if(_0x55fce7[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b372b))return!0x0;const _0x528285=_0x2b372b[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e]));return _0x55fce7[_0x4c9353([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x482801=>_0x482801[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9353([0x2a])))[_0x4c9353([0x6d,0x61,0x70])](_0x4549c4=>_0x4549c4[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e])))[_0x4c9353([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10210b=>_0x10210b[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x528285[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9353([0x6d,0x61,0x70])](_0x888d7f=>Array(_0x528285[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x888d7f[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9353([0x66,0x69,0x6c,0x6c])](_0x888d7f[0x0]===_0x4c9353([0x2a])?_0x4c9353([0x2a]):'')[_0x4c9353([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x888d7f))[_0x4c9353([0x73,0x6f,0x6d,0x65])](_0x11821d=>_0x528285[_0x4c9353([0x65,0x76,0x65,0x72,0x79])]((_0x22e4b0,_0x48014a)=>_0x11821d[_0x48014a]===_0x22e4b0||_0x11821d[_0x48014a]===_0x4c9353([0x2a])));}function _0x34b345(){return _0x3f04bd&&_0x3832e8?new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57eb06,_0x5259eb)=>{_0x3f04bd[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x57eb06,_0x5259eb),_0x3832e8[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x34de09=>{_0x34de09!=_0x4c9353([0x56,0x61,0x6c,0x69,0x64])&&_0x57eb06(_0x34de09);},_0x5259eb);}):_0x3f04bd||_0x3832e8||_0x4c9353([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf6d29(_0x41fd54,_0x436920){return new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16031f=>{if(_0x562084())return _0x16031f(_0x4c9353([0x56,0x61,0x6c,0x69,0x64]));_0x4be951(),_0x227133[_0x4c9353([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c9353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd0cd80=!0x1;const _0x12ebb2=_0x136ca4();function _0x1dc695(_0x5a6d99){return!!_0x5a6d99&&(typeof _0x5a6d99===_0x4c9353([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a6d99===_0x4c9353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a6d99[_0x4c9353([0x74,0x68,0x65,0x6e])]===_0x4c9353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a6d99[_0x4c9353([0x63,0x61,0x74,0x63,0x68])]===_0x4c9353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x315aa8(_0x2c7d16){_0x13e714(_0x2c7d16)[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x12f370=>{if(!_0x12f370||_0x12f370[_0x4c9353([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c9353([0x6f,0x6b]))return _0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24fd14(_0x1fd0ec(_0x12ebb2+_0x436920))!=_0x12f370[_0x4c9353([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9353([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x3570db=>(_0x2d0b37(),_0x3570db),()=>{const _0x5c6872=_0x255174();return null==_0x5c6872?(_0x2d0b37(),_0x4c9353([0x56,0x61,0x6c,0x69,0x64])):_0x4c9353(_0x30580b-_0x5c6872>(0x27d454df^_0x19e202)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x16031f)[_0x4c9353([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16031f(_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13e159=0x3ee3e5f^_0x19e202;function _0x2d0b37(){const _0x3ec274=_0x4c9353([0x6c,0x6c,0x63,0x74,0x2d])+_0x24fd14(_0x1fd0ec(_0x41fd54)),_0x1353ca=_0x894fc6(_0x24fd14(window[_0x4c9353([0x4d,0x61,0x74,0x68])][_0x4c9353([0x63,0x65,0x69,0x6c])](_0x30580b/_0x13e159)));window[_0x4c9353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9353([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ec274,_0x1353ca);}function _0x255174(){const _0x52cfb4=_0x4c9353([0x6c,0x6c,0x63,0x74,0x2d])+_0x24fd14(_0x1fd0ec(_0x41fd54)),_0x319c7b=window[_0x4c9353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9353([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52cfb4);return _0x319c7b?window[_0x4c9353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x894fc6(_0x319c7b),0x10)*_0x13e159:null;}function _0x13e714(_0x8297da){return new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6d1637,_0x5ca641)=>{_0x8297da[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x6d1637,_0x5ca641),window[_0x4c9353([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ca641,0x3d9041f^_0x19e202);});}}_0x227133[_0x4c9353([0x6f,0x6e])](_0x4c9353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ad59,_0x1b3310)=>{if(_0x1b3310[0x0]!=_0x41fd54)return _0x16031f(_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b3310[0x1]={..._0x1b3310[0x1],[_0x4c9353([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12ebb2};},{[_0x4c9353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9353([0x68,0x69,0x67,0x68])}),_0x227133[_0x4c9353([0x6f,0x6e])](_0x4c9353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x190129=>{_0x1dc695(_0x190129[_0x4c9353([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd0cd80=!0x0,_0x315aa8(_0x190129[_0x4c9353([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c9353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9353([0x6c,0x6f,0x77])}),_0x15cbe6[_0x4c9353([0x74,0x68,0x65,0x6e])](()=>{_0xd0cd80||_0x16031f(_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x562084(){return _0x227133[_0x4c9353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9353([0x76,0x69,0x65,0x77])][_0x4c9353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c9353([0x61,0x75,0x74,0x6f]);}function _0x4be951(){_0x227133[_0x4c9353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9353([0x76,0x69,0x65,0x77])][_0x4c9353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c9353([0x61,0x75,0x74,0x6f]);}}function _0x414024(_0x4f77ef){const _0x5b0d2f=[new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39768f=>setTimeout(_0x39768f,0x3d1ee13^_0x19e202)),_0x15cbe6[_0x4c9353([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x419140=>{let _0xa574c4=0x0;_0x227133[_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9353([0x6f,0x6e])](_0x4c9353([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4393da,_0x57cc48)=>{_0x57cc48[0x0][_0x4c9353([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa574c4++,_0xa574c4==(0x3d8d127^_0x19e202)&&(_0x419140(),_0x4393da[_0x4c9353([0x6f,0x66,0x66])]());});}))];return window[_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c9353([0x72,0x61,0x63,0x65])](_0x5b0d2f)[_0x4c9353([0x74,0x68,0x65,0x6e])](()=>_0x4f77ef);}async function _0x19284a(){await _0x15cbe6,_0x227133[_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9353([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249cb0,_0x227133[_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9353([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249cb0,_0x227133[_0x4c9353([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x577f69(_0x55a17e){const _0x36560c=_0x5101fd();_0x227133[_0x36560c]=_0x4c9353([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55a17e,_0x55a17e!=_0x4c9353([0x56,0x61,0x6c,0x69,0x64])&&_0x19284a();}function _0x5101fd(){const _0x13f54f=window[_0x4c9353([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c9353([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c9353([0x6e,0x6f,0x77])]())[_0x4c9353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c9353([0x2e]),'');let _0x53ae4e=_0x4c9353([0x52]);for(let _0x37f322=0x0;_0x37f322<_0x13f54f[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37f322+=0x2){let _0x5f1487=window[_0x4c9353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f54f[_0x4c9353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37f322,_0x37f322+0x2));_0x5f1487>=_0x41ebc6[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f1487-=_0x41ebc6[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53ae4e+=_0x41ebc6[_0x5f1487];}return _0x53ae4e;}function _0x5be9d6(){const _0x222af3=_0x713bd8[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e]));if(0x3!=_0x222af3[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c5424(_0x222af3[0x1]);function _0x5c5424(_0xcc6717){const _0x479b09=_0x199ee5(_0xcc6717);return _0x479b09&&_0x39b82b()?_0x479b09:null;function _0x39b82b(){const _0x4a31e2=_0x479b09[_0x4c9353([0x6a,0x74,0x69])],_0x55e4e2=window[_0x4c9353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a31e2[_0x4c9353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a31e2[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f9e9a={..._0x479b09,[_0x4c9353([0x6a,0x74,0x69])]:_0x4a31e2[_0x4c9353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a31e2[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f9e9a[_0x4c9353([0x76,0x63])],_0x1fd0ec(_0x3f9e9a)==_0x55e4e2;}}}async function _0x5a1568(){let _0x4d671a=!0x0;try{const _0x1d995c=_0x713bd8[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e])),[_0x530c06,_0x37e7d4,_0x33f595]=_0x1d995c;return _0x17a732(_0x530c06),await _0x110e53(_0x530c06,_0x37e7d4,_0x33f595),_0x4d671a;}catch{return!0x1;}function _0x17a732(_0x4ce57e){const _0x56d933=_0x199ee5(_0x4ce57e);_0x56d933&&_0x56d933[_0x4c9353([0x61,0x6c,0x67])]==_0x4c9353([0x45,0x53,0x32,0x35,0x36])||(_0x4d671a=!0x1);}async function _0x110e53(_0x579213,_0x468076,_0x2ecfd9){const _0x1bf8ad=window[_0x4c9353([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c9353([0x66,0x72,0x6f,0x6d])](_0x391a46(_0x2ecfd9),_0x3e97fa=>_0x3e97fa[_0x4c9353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x899f0b=new window[(_0x4c9353([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c9353([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x579213+_0x4c9353([0x2e])+_0x468076),_0x14891f=window[_0x4c9353([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c9353([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14891f)return;const _0xb52e08=await _0x14891f[_0x4c9353([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c9353([0x6a,0x77,0x6b]),_0x1cea16,{[_0x4c9353([0x6e,0x61,0x6d,0x65])]:_0x4c9353([0x45,0x43,0x44,0x53,0x41]),[_0x4c9353([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c9353([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c9353([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14891f[_0x4c9353([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c9353([0x6e,0x61,0x6d,0x65])]:_0x4c9353([0x45,0x43,0x44,0x53,0x41]),[_0x4c9353([0x68,0x61,0x73,0x68])]:{[_0x4c9353([0x6e,0x61,0x6d,0x65])]:_0x4c9353([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb52e08,_0x1bf8ad,_0x899f0b)||(_0x4d671a=!0x1);}}function _0x199ee5(_0x5f3a59){return _0x5f3a59[_0x4c9353([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c9353([0x65,0x79]))?JSON[_0x4c9353([0x70,0x61,0x72,0x73,0x65])](_0x391a46(_0x5f3a59)):null;}function _0x391a46(_0x18bac0){return window[_0x4c9353([0x61,0x74,0x6f,0x62])](_0x18bac0[_0x4c9353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c9353([0x2b]))[_0x4c9353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c9353([0x2f])));}function _0x1fd0ec(_0x97c093){let _0x7cfdae=0x1505;function _0xdb1ca1(_0x1f3386){for(let _0x4f7abd=0x0;_0x4f7abd<_0x1f3386[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f7abd++){const _0xcc74cd=_0x1f3386[_0x4c9353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f7abd);_0x7cfdae=(_0x7cfdae<<0x5)+_0x7cfdae+_0xcc74cd,_0x7cfdae&=_0x7cfdae;}}function _0x45225a(_0x4f35dd){Array[_0x4c9353([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f35dd)?_0x4f35dd[_0x4c9353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45225a):_0x4f35dd&&typeof _0x4f35dd==_0x4c9353([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c9353([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f35dd)[_0x4c9353([0x73,0x6f,0x72,0x74])]()[_0x4c9353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f0c9b,_0x20efaa])=>{_0xdb1ca1(_0x5f0c9b),_0x45225a(_0x20efaa);}):_0xdb1ca1(window[_0x4c9353([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f35dd));}return _0x45225a(_0x97c093),_0x7cfdae>>>0x0;}function _0x24fd14(_0x3cec17){return _0x3cec17[_0x4c9353([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c9353([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c9353([0x30]));}function _0x894fc6(_0x4b9660){return _0x4b9660[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c9353([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c9353([0x6a,0x6f,0x69,0x6e])]('');}function _0x249cb0(){}function _0x4c9353(_0xb415eb){const _0x51a53b=_0x32e1;return _0xb415eb[_0x51a53b(0x97)](_0x422fa9=>String[_0x51a53b(0x9c)](_0x422fa9))[_0x51a53b(0xda)]('');}_0x577f69(await _0x593b78());}(this);}[_0x4461d4(0xd7)](){const _0xbe541e=_0x4461d4,_0x548fb2=this[_0xbe541e(0xd2)][_0xbe541e(0xab)][_0xbe541e(0x8e)];_0x548fb2[_0xbe541e(0xdd)](_0xbe541e(0xe3))&&_0x548fb2[_0xbe541e(0xdf)](_0xbe541e(0xe3),{'allowAttributes':[_0xbe541e(0xbf)]}),_0x548fb2[_0xbe541e(0xdd)](_0xbe541e(0xbe))&&_0x548fb2[_0xbe541e(0xdf)](_0xbe541e(0xbe),{'allowAttributes':[_0xbe541e(0xbf)]});}[_0x4461d4(0x8f)](){const _0x5c3612=_0x4461d4,_0x10f34d=this[_0x5c3612(0xd2)];_0x10f34d[_0x5c3612(0xb4)][_0x5c3612(0xe2)](_0x5c3612(0xb2))[_0x5c3612(0xdc)]({'model':_0x5c3612(0xbf),'view':_0x5c3612(0xb1)}),_0x10f34d[_0x5c3612(0xb4)][_0x5c3612(0xe2)](_0x5c3612(0x94))[_0x5c3612(0xac)]({'model':{'key':_0x5c3612(0xbf),'value':_0x556ee6=>_0x556ee6[_0x5c3612(0xa1)](_0x5c3612(0xb1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x529ef9=_0x10f34d[_0x5c3612(0xb8)][_0x5c3612(0xa7)](_0x5c3612(0xb0));_0x529ef9&&this[_0x5c3612(0xd8)](_0x529ef9,_0x5c3612(0xb5),(_0x352f89,[_0x471db2,_0x8b2e2d])=>{const _0x287734=_0x5c3612;_0x471db2[_0x287734(0x90)](_0x287734(0xbf),_0x8b2e2d);});}[_0x4461d4(0xc5)](){const _0x549b63=_0x4461d4,_0x3cfba3=this[_0x549b63(0xd2)][_0x549b63(0x92)][_0x549b63(0xa7)](_0x549b63(0x99))||{},_0x4e3a42=this[_0x549b63(0xd2)][_0x549b63(0x92)][_0x549b63(0xa7)](_0x549b63(0xaf))||'';this[_0x549b63(0xb7)]=_0xe7745b(_0x27f4b0[_0x549b63(0xc4)],_0x549b63(0xcc),{..._0x3cfba3,'pubkey':_0x4e3a42,'ctx-name':_0x549b63(0x9b)+this[_0x549b63(0xa0)],'sourceList':'','imgOnly':_0x549b63(0xcb),'removeCopyright':_0x549b63(0xcb),'localeName':this[_0x549b63(0xd2)][_0x549b63(0xe0)][_0x549b63(0xdb)],'externalSourcesEmbedCss':_0x549b63(0x9a)}),this[_0x549b63(0xb7)][_0x549b63(0xde)]=_0x2eb1d8=>{const _0x5404a3=_0x549b63;if(_0x5404a3(0xca)==_0x2eb1d8)return _0x5404a3(0xbd);},_0x27f4b0[_0x549b63(0xc4)][_0x549b63(0xa8)][_0x549b63(0x98)](this[_0x549b63(0xb7)]);}[_0x4461d4(0xa4)](){const _0x5bc98f=_0x4461d4;this[_0x5bc98f(0xb6)]=_0xe7745b(_0x27f4b0[_0x5bc98f(0xc4)],_0x5bc98f(0xcf),{'ctx-name':_0x5bc98f(0x9b)+this[_0x5bc98f(0xa0)]}),_0x27f4b0[_0x5bc98f(0xc4)][_0x5bc98f(0xa8)][_0x5bc98f(0x98)](this[_0x5bc98f(0xb6)]);}[_0x4461d4(0x93)](){const _0x444f02=_0x4461d4,_0x5e919c=this[_0x444f02(0xd2)][_0x444f02(0xb8)][_0x444f02(0xa7)](_0x444f02(0xd4));_0x5e919c&&this[_0x444f02(0xd8)](_0x5e919c,_0x444f02(0x96),()=>{const _0xcd5564=_0x444f02,_0x25f79d=this[_0xcd5564(0xd2)][_0xcd5564(0xab)][_0xcd5564(0xc4)][_0xcd5564(0x9e)][_0xcd5564(0xc7)]();_0x25f79d&&_0x25f79d[_0xcd5564(0xa1)](_0xcd5564(0xbf))&&this[_0xcd5564(0xd2)][_0xcd5564(0x91)][_0xcd5564(0xa5)][_0xcd5564(0xce)](_0xcd5564(0x9d),()=>{const _0x4492ef=_0xcd5564;_0x20ca05(this[_0x4492ef(0xd2)],_0x25f79d);});});const _0x5ab52a=this[_0x444f02(0xd2)][_0x444f02(0xb8)][_0x444f02(0xa7)](_0x444f02(0xc1));_0x5ab52a&&this[_0x444f02(0xd8)](_0x5ab52a,_0x444f02(0x96),()=>{const _0x499abe=_0x444f02,_0x43c1fc=this[_0x499abe(0xd2)][_0x499abe(0xab)][_0x499abe(0xc4)][_0x499abe(0x9e)][_0x499abe(0xc7)]();_0x43c1fc&&_0x43c1fc[_0x499abe(0xa1)](_0x499abe(0xbf))&&this[_0x499abe(0xd2)][_0x499abe(0x91)][_0x499abe(0xa5)][_0x499abe(0xce)](_0x499abe(0x9d),()=>{const _0x478030=_0x499abe;_0x20ca05(this[_0x478030(0xd2)],_0x43c1fc);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xea68c9,ObservableMixin as _0x13fef0}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3efe0c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x259ed6}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x146387}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1b3a46}from'../../utils/uploadutils.js';import{getImageUrls as _0x8f130,getImageDimension as _0x482955}from'../../utils/editingutils.js';import{isAncestor as _0x52ca43}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x13fef0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x493624,_0x52183d,_0x252626){super(),this['_editor']=_0x493624,this['_dialog']=_0x52183d,this['_imageElement']=_0x252626,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 _0x1136c1=this['_imageElement'],_0x4df79f=_0x1136c1['getAttribute']('uploadcareImageId'),_0xab8758=_0x1136c1['getAttribute']('src');if(_0x4df79f)await this['_loadImageInfo'](_0x4df79f,_0xab8758);else{if(this['_imageCache']['has'](_0xab8758)){const _0x21605d=this['_imageCache']['get'](_0xab8758);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21605d['url'],this['imageDimension']=_0x21605d['dimension'],this['imageId']=_0x21605d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x41fe00}=this['_editor'],t=_0x41fe00['t'],_0x4b039a=new _0x146387(_0x41fe00,this['imageStatus'],this['_attributes']);_0x4b039a['bind']('status')['to'](this,'imageStatus'),_0x4b039a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4b039a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4b039a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4b039a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x259ed6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4b039a,'position':_0x3efe0c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4b039a['focus']();},'onHide':()=>{_0x4b039a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c2f76=>!_0x52ca43(_0x4c2f76,_0x4b039a['element'])}});}['_loadImageInfo'](_0x55ec83,_0x167433){return _0x1b3a46['getInfo'](_0x55ec83,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5755b0=>{const {width:_0x2bc336,height:_0x49e5f6}=_0x5755b0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x167433,this['imageDimension']={'width':_0x2bc336,'height':_0x49e5f6},this['imageId']=_0x55ec83;})['catch'](_0x19fc16=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19fc16['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x13b68c,_0x143a2f){return this['_getImageAsFile'](_0x13b68c)['then'](_0x363e89=>_0x1b3a46['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':_0x143a2f['signal'],'file':_0x363e89,'onProgress':_0x4637a7=>{_0x4637a7&&_0x4637a7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4637a7['value']));}}))['then'](_0x5ed18e=>{const {width:_0x2f4096,height:_0x4479c1}=_0x5ed18e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ed18e['cdnUrl'],this['imageDimension']={'width':_0x2f4096,'height':_0x4479c1},this['imageId']=_0x5ed18e['uuid'],this['imageUploadProgress']=null;const _0x2b6704=_0x13b68c['getAttribute']('src');this['_imageCache']['set'](_0x2b6704,{'id':_0x5ed18e['uuid'],'url':_0x5ed18e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x6245b4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x6245b4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x58b286,_0x5dd31f){_0x58b286['on']('apply',(_0xdaef89,_0x335655)=>{this['_replaceImage'](_0x5dd31f,_0x335655['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x58b286['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x58b286['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x114e0c,_0x32f497,_0x627f00){const _0x5de407=this['_editor'],{width:_0x59706a,height:_0x37bec9}=_0x482955(_0x32f497,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x24af4d,imageSources:_0x13af74}=_0x8f130(_0x32f497,_0x59706a);_0x5de407['model']['change'](_0x29914a=>{if('$graveyard'===_0x114e0c['root']['rootName']){_0x5de407['execute']('insertImage',{'imageType':_0x114e0c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x114e0c['getAttributes']()),'uploadcareImageId':_0x627f00,'src':_0x24af4d,'sources':_0x13af74,'width':_0x59706a,'height':_0x37bec9}});const _0x424c48=_0x114e0c['getChildren']();_0x114e0c=_0x5de407['model']['document']['selection']['getSelectedElement']();for(const _0x37914b of _0x424c48)_0x29914a['append'](_0x29914a['cloneElement'](_0x37914b),_0x114e0c);}else _0x29914a['setSelection'](_0x114e0c,'on'),_0x5de407['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x114e0c['getAttributes']()),'uploadcareImageId':_0x627f00,'src':_0x24af4d,'sources':_0x13af74,'width':_0x59706a,'height':_0x37bec9},_0x114e0c);_0x29914a['setSelection'](_0x114e0c,'on');});}async['_getImageAsFile'](_0x32d695){const _0x1024ff=_0xea68c9['window'],_0x22bcd9=_0xea68c9['document']['location']['href'],_0x121363=new _0x1024ff['URL'](_0x32d695['getAttribute']('src'),_0x22bcd9);if('data:'===_0x121363['protocol']){const _0x36ef17=_0x121363['href']['split'](','),_0x6c57e1=_0x36ef17[0x0]['match'](/:(.*?);/)[0x1],_0x4c2ec3=_0x6c57e1['split']('/')[0x1],_0x353496=_0x1024ff['atob'](_0x36ef17[_0x36ef17['length']-0x1]);let _0x54a698=_0x353496['length'];const _0x3bcc61=new _0x1024ff['Uint8Array'](_0x54a698);for(;_0x54a698--;)_0x3bcc61[_0x54a698]=_0x353496['charCodeAt'](_0x54a698);return new _0x1024ff['File']([_0x3bcc61],'image.'+_0x4c2ec3,{'type':_0x6c57e1});}const _0x2b9527=_0x121363['href']['split']('/'),_0x20e1b8=_0x2b9527[_0x2b9527['length']-0x1],_0x3bb3f3=_0x20e1b8['split']('.')[0x1];return _0x1024ff['fetch'](_0x121363['href'])['then'](_0x5d6dd9=>_0x5d6dd9['clone']()['blob']())['then'](_0x421619=>new _0x1024ff['File']([_0x421619],_0x20e1b8,{'type':'image/'+_0x3bb3f3}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xfc63(){const _0x498e37=['ck-uploadcare-theme','set','379877JmdmEw','imageSrc','1688eLjmFl','960164OJImmE','setTemplate','bindTemplate','uc-light','uc-cloud-image-editor','284660xhSOzO','4871004oOdLhK','56792NOcBFD','133BOaOZl','2310267TVAgkE','415fCmIAs','image-edit','207bdTdhQ'];_0xfc63=function(){return _0x498e37;};return _0xfc63();}(function(_0x3ed5b7,_0x43b83){const _0x102db9=_0x5582,_0x2d3108=_0x3ed5b7();while(!![]){try{const _0x5665ac=-parseInt(_0x102db9(0x12f))/0x1+parseInt(_0x102db9(0x132))/0x2+parseInt(_0x102db9(0x13b))/0x3+parseInt(_0x102db9(0x131))/0x4*(-parseInt(_0x102db9(0x13c))/0x5)+-parseInt(_0x102db9(0x138))/0x6+parseInt(_0x102db9(0x13a))/0x7*(-parseInt(_0x102db9(0x139))/0x8)+-parseInt(_0x102db9(0x12c))/0x9*(-parseInt(_0x102db9(0x137))/0xa);if(_0x5665ac===_0x43b83)break;else _0x2d3108['push'](_0x2d3108['shift']());}catch(_0x30af1b){_0x2d3108['push'](_0x2d3108['shift']());}}}(_0xfc63,0x84a27));import{View as _0x32be91}from'ckeditor5/src/ui.js';function _0x5582(_0x314b79,_0xecfd62){const _0xfc63ef=_0xfc63();return _0x5582=function(_0x55826c,_0x64a596){_0x55826c=_0x55826c-0x12b;let _0x2e8609=_0xfc63ef[_0x55826c];return _0x2e8609;},_0x5582(_0x314b79,_0xecfd62);}export class UploadcareImageEditFormEditingView extends _0x32be91{constructor(_0x4cccc1,_0x38ddbf){const _0x57d0f5=_0x5582;super(_0x4cccc1);const _0x34747a=this[_0x57d0f5(0x134)];this[_0x57d0f5(0x12e)](_0x57d0f5(0x130),''),this[_0x57d0f5(0x133)]({'tag':_0x57d0f5(0x136),'attributes':{..._0x38ddbf,'class':[_0x57d0f5(0x135),_0x57d0f5(0x12d)],'ctx-name':_0x57d0f5(0x12b),'cdn-url':_0x34747a['to'](_0x57d0f5(0x130))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x453128}from'ckeditor5/src/icons.js';import{ButtonView as _0x5360b7,IconView as _0x295ae4,View as _0x5d39fc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5d39fc{constructor(_0x812df){super(_0x812df);const t=_0x812df['t'];this['set']('errorType',null);const _0x1167af=new _0x5360b7(_0x812df);_0x1167af['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1167af['withText']=!0x0,_0x1167af['class']='ck-button-action',_0x1167af['on']('execute',()=>{this['fire']('retry');}),_0x1167af['bind']('isVisible')['to'](this,'errorType',_0x20f015=>'NotFound'!==_0x20f015);const _0x1b130f=new _0x295ae4();_0x1b130f['content']=_0x453128,_0x1b130f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e6bbd=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':[_0x1b130f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e6bbd['to']('errorType',_0x739848=>t('NotFound'!==_0x739848?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1167af]},{'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 _0x40ead9,View as _0x544ec6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x544ec6{constructor(_0x27eacd){super(_0x27eacd);const t=_0x27eacd['t'],_0x1c183f=this['bindTemplate'],_0x5de931=new _0x40ead9();_0x5de931['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':[_0x5de931,{'text':_0x1c183f['to']('imageUploadProgress',_0x9aece1=>t('Loading\x20image...')+'\x20('+(_0x9aece1||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 _0x2bfcba=_0xb8d6;function _0xb05c(){const _0x576303=['detail','length','disconnect','67842krzKlr','_items','querySelector','filter','848708XJIKaM','24RlZUGL','status','_setView','_waitForImageEditorComponent','931777jbkWRu','focus','fire','change:status','977075TAtEUK','createCollection','_errorView','addMany','_editingView','5xUyapT','uploading','87aoOwZp','toLowerCase','getFocusableElement','apply','cancel','clear','render','4186000AtYeNv','ck-reset_all-excluded','_addUploadcareImageEditorListeners','observe','ready','setTemplate','error','add','once','retry','div','nodeName','4545288ZcNpqu','6470406MrNfoH','addedNodes','_focusableView','set','_loadingView','element','cdnUrl','uc-cloud-image-editor','_addErrorViewListeners','ck-uploadcare-form','addEventListener','target'];_0xb05c=function(){return _0x576303;};return _0xb05c();}(function(_0x1ff757,_0x1834e1){const _0x4e0db2=_0xb8d6,_0x5b1a05=_0x1ff757();while(!![]){try{const _0x25e3da=-parseInt(_0x4e0db2(0x13b))/0x1+-parseInt(_0x4e0db2(0x165))/0x2*(-parseInt(_0x4e0db2(0x142))/0x3)+parseInt(_0x4e0db2(0x132))/0x4*(parseInt(_0x4e0db2(0x140))/0x5)+-parseInt(_0x4e0db2(0x155))/0x6+parseInt(_0x4e0db2(0x137))/0x7*(parseInt(_0x4e0db2(0x133))/0x8)+parseInt(_0x4e0db2(0x156))/0x9+parseInt(_0x4e0db2(0x149))/0xa;if(_0x25e3da===_0x1834e1)break;else _0x5b1a05['push'](_0x5b1a05['shift']());}catch(_0xe9c490){_0x5b1a05['push'](_0x5b1a05['shift']());}}}(_0xb05c,0xf3af2));import{View as _0x36b4bc}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x15c71a}from'./uploadcareimageeditformloadingview.js';function _0xb8d6(_0x24e773,_0x5e9174){const _0xb05c38=_0xb05c();return _0xb8d6=function(_0xb8d6b4,_0x108530){_0xb8d6b4=_0xb8d6b4-0x131;let _0x5addd3=_0xb05c38[_0xb8d6b4];return _0x5addd3;},_0xb8d6(_0x24e773,_0x5e9174);}import{UploadcareImageEditFormErrorView as _0x175072}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x34911f}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x13c844}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x13c844{[_0x2bfcba(0x166)];[_0x2bfcba(0x15a)];[_0x2bfcba(0x13d)];[_0x2bfcba(0x13f)];[_0x2bfcba(0x158)];constructor(_0x326341,_0x158108,_0x36d5b3){const _0x1f5041=_0x2bfcba;super(_0x326341),this[_0x1f5041(0x166)]=this[_0x1f5041(0x13c)](),this[_0x1f5041(0x15a)]=new _0x15c71a(_0x326341),this[_0x1f5041(0x13d)]=new _0x175072(_0x326341),this[_0x1f5041(0x13f)]=new _0x34911f(_0x326341,_0x36d5b3),this[_0x1f5041(0x158)]=new _0x36b4bc(_0x326341),this[_0x1f5041(0x158)][_0x1f5041(0x14e)](this[_0x1f5041(0x144)]()),this[_0x1f5041(0x159)](_0x1f5041(0x134),_0x158108),this[_0x1f5041(0x14e)]({'tag':_0x1f5041(0x153),'attributes':{'class':['ck',_0x1f5041(0x14a),_0x1f5041(0x15f)],'tabindex':'-1'},'children':this[_0x1f5041(0x166)]}),this[_0x1f5041(0x135)](),this[_0x1f5041(0x151)](_0x1f5041(0x148),()=>{const _0x1015eb=_0x1f5041;this[_0x1015eb(0x136)](this[_0x1015eb(0x15b)],_0x1fd01e=>{const _0x34ae8f=_0x1015eb;this[_0x34ae8f(0x14b)](_0x1fd01e);});}),this['on'](_0x1f5041(0x13a),()=>{const _0x3f1934=_0x1f5041;this[_0x3f1934(0x135)]();}),this[_0x1f5041(0x15e)]();}[_0x2bfcba(0x138)](){const _0x489530=_0x2bfcba;this[_0x489530(0x15b)][_0x489530(0x138)]();}[_0x2bfcba(0x135)](){const _0x29106b=_0x2bfcba;switch(this[_0x29106b(0x166)][_0x29106b(0x147)](),this[_0x29106b(0x134)]){case _0x29106b(0x141):this[_0x29106b(0x166)][_0x29106b(0x150)](this[_0x29106b(0x15a)]);break;case _0x29106b(0x14f):this[_0x29106b(0x166)][_0x29106b(0x150)](this[_0x29106b(0x13d)]);break;case _0x29106b(0x14d):this[_0x29106b(0x166)][_0x29106b(0x13e)]([this[_0x29106b(0x13f)],this[_0x29106b(0x158)]]);}}[_0x2bfcba(0x136)](_0x4cebb2,_0x1e1136){const _0x42ba1f=_0x2bfcba,_0x41b6fd=_0x42ba1f(0x15d),_0x69a3d8=_0x4cebb2[_0x42ba1f(0x167)](_0x41b6fd);if(_0x69a3d8)return _0x1e1136(_0x69a3d8);const _0x1598c4=new MutationObserver(_0x3ffee0=>{const _0x7b3c65=_0x42ba1f,_0x29c23b=_0x3ffee0[_0x7b3c65(0x131)](_0x211db2=>_0x211db2[_0x7b3c65(0x161)]===_0x4cebb2&&_0x211db2[_0x7b3c65(0x157)][_0x7b3c65(0x163)]>0x0&&_0x211db2[_0x7b3c65(0x157)][0x0][_0x7b3c65(0x154)][_0x7b3c65(0x143)]()===_0x41b6fd);_0x29c23b[_0x7b3c65(0x163)]&&(_0x1598c4[_0x7b3c65(0x164)](),_0x1e1136(_0x29c23b[0x0][_0x7b3c65(0x157)][0x0]));});_0x1598c4[_0x42ba1f(0x14c)](_0x4cebb2,{'childList':!0x0,'subtree':!0x0});}[_0x2bfcba(0x14b)](_0x1fc133){const _0x33a06c=_0x2bfcba;_0x1fc133[_0x33a06c(0x160)](_0x33a06c(0x145),_0x5d87cb=>{const _0x2fb5f9=_0x33a06c;this[_0x2fb5f9(0x139)](_0x2fb5f9(0x145),{'imageSrc':_0x5d87cb[_0x2fb5f9(0x162)][_0x2fb5f9(0x15c)]});}),_0x1fc133[_0x33a06c(0x160)](_0x33a06c(0x146),()=>{const _0x4431e8=_0x33a06c;this[_0x4431e8(0x139)](_0x4431e8(0x146));});}[_0x2bfcba(0x15e)](){const _0x50e93d=_0x2bfcba;this[_0x50e93d(0x13d)]['on'](_0x50e93d(0x152),()=>{const _0x59d1b6=_0x50e93d;this[_0x59d1b6(0x139)](_0x59d1b6(0x152));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x71d8(){const _0x150e64=['9TqiaAL','selection','18ZBGdrB','editor','imageEditController','getSelectedElement','plugins','requires','imageInline','isActive','8817149EadJFU','document','_isEditable','execute','refresh','160556GrBLeh','element','config','711164Wxqnwu','uploadcare.allowExternalImagesEditing','20960Wtgvna','isEnabled','set','3977360LnpQcm','bind','unbind','get','24WnxIMA','imageBlock','3286470UqYSrd','261nwDdXY','607719IXzFCb','model'];_0x71d8=function(){return _0x150e64;};return _0x71d8();}function _0x1636(_0x5d20fd,_0x252690){const _0x71d863=_0x71d8();return _0x1636=function(_0x1636e1,_0x46cfa8){_0x1636e1=_0x1636e1-0x117;let _0x40970e=_0x71d863[_0x1636e1];return _0x40970e;},_0x1636(_0x5d20fd,_0x252690);}const _0x25fbc0=_0x1636;(function(_0xad52e5,_0x44f2d0){const _0x115909=_0x1636,_0x92e1e5=_0xad52e5();while(!![]){try{const _0xf09bab=-parseInt(_0x115909(0x127))/0x1*(-parseInt(_0x115909(0x136))/0x2)+parseInt(_0x115909(0x129))/0x3*(parseInt(_0x115909(0x118))/0x4)+-parseInt(_0x115909(0x11d))/0x5+parseInt(_0x115909(0x123))/0x6+parseInt(_0x115909(0x125))/0x7*(-parseInt(_0x115909(0x121))/0x8)+parseInt(_0x115909(0x124))/0x9*(parseInt(_0x115909(0x11a))/0xa)+-parseInt(_0x115909(0x131))/0xb;if(_0xf09bab===_0x44f2d0)break;else _0x92e1e5['push'](_0x92e1e5['shift']());}catch(_0x421e47){_0x92e1e5['push'](_0x92e1e5['shift']());}}}(_0x71d8,0x83e87));import{Command as _0x210b46}from'ckeditor5/src/core.js';import{Dialog as _0x56162e}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xaef6ad}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x307033}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x210b46{[_0x25fbc0(0x12b)];static get[_0x25fbc0(0x12e)](){return[_0x56162e];}[_0x25fbc0(0x133)];constructor(_0x58a7dd){const _0x1415b1=_0x25fbc0;super(_0x58a7dd),this[_0x1415b1(0x12b)]=void 0x0,this[_0x1415b1(0x133)]=_0x307033(_0x58a7dd[_0x1415b1(0x117)][_0x1415b1(0x120)](_0x1415b1(0x119))||[]),this[_0x1415b1(0x11c)]({'isActive':!0x1});}[_0x25fbc0(0x135)](){const _0x2f36b7=_0x25fbc0,_0x18b49c=this[_0x2f36b7(0x12a)][_0x2f36b7(0x126)][_0x2f36b7(0x132)][_0x2f36b7(0x128)][_0x2f36b7(0x12c)]();this[_0x2f36b7(0x11b)]=this[_0x2f36b7(0x133)](_0x18b49c);}[_0x25fbc0(0x134)](){const _0xb352e1=_0x25fbc0;this[_0xb352e1(0x12b)]&&(this[_0xb352e1(0x11f)](_0xb352e1(0x130)),this[_0xb352e1(0x12b)]=void 0x0);const _0x13acde=this[_0xb352e1(0x12a)][_0xb352e1(0x126)][_0xb352e1(0x132)][_0xb352e1(0x128)][_0xb352e1(0x12c)]();_0x13acde&&(_0x13acde['is'](_0xb352e1(0x137),_0xb352e1(0x122))||_0x13acde['is'](_0xb352e1(0x137),_0xb352e1(0x12f)))&&(this[_0xb352e1(0x12b)]=new _0xaef6ad(this[_0xb352e1(0x12a)],this[_0xb352e1(0x12a)][_0xb352e1(0x12d)][_0xb352e1(0x120)](_0x56162e),_0x13acde),this[_0xb352e1(0x11e)](_0xb352e1(0x130))['to'](this[_0xb352e1(0x12b)],_0xb352e1(0x130)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4602(_0x2d68cb,_0x2938c8){const _0x24ae38=_0x24ae();return _0x4602=function(_0x46025f,_0x5200c0){_0x46025f=_0x46025f-0x162;let _0x25c8c7=_0x24ae38[_0x46025f];return _0x25c8c7;},_0x4602(_0x2d68cb,_0x2938c8);}const _0x224e63=_0x4602;(function(_0x20f37f,_0x164ab7){const _0x9ddd2c=_0x4602,_0x4b4079=_0x20f37f();while(!![]){try{const _0x3ce5e8=parseInt(_0x9ddd2c(0x174))/0x1*(parseInt(_0x9ddd2c(0x173))/0x2)+parseInt(_0x9ddd2c(0x167))/0x3*(parseInt(_0x9ddd2c(0x165))/0x4)+parseInt(_0x9ddd2c(0x164))/0x5*(parseInt(_0x9ddd2c(0x16a))/0x6)+-parseInt(_0x9ddd2c(0x168))/0x7+-parseInt(_0x9ddd2c(0x166))/0x8+-parseInt(_0x9ddd2c(0x175))/0x9+parseInt(_0x9ddd2c(0x16d))/0xa;if(_0x3ce5e8===_0x164ab7)break;else _0x4b4079['push'](_0x4b4079['shift']());}catch(_0x1a3f38){_0x4b4079['push'](_0x4b4079['shift']());}}}(_0x24ae,0x2db29));import{Plugin as _0x23ac7c}from'ckeditor5/src/core.js';import{Notification as _0x4244af}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3d1306}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2e2422}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4fe309}from'../uploadcareediting.js';function _0x24ae(){const _0x1452f2=['12cfXZVq','isPremiumPlugin','commands','1427470kpTyKr','ImageUtils','isOfficialPlugin','ImageEditing','requires','UploadcareImageEditEditing','535714tUpVll','1HiEesf','702279DBniki','uploadcareImageReplace','pluginName','init','add','505315lIFIiY','2896SaFBxf','1865816BnDCNw','642ANQdlt','1884617wxRspn','uploadcareImageEdit'];_0x24ae=function(){return _0x1452f2;};return _0x24ae();}export class UploadcareImageEditEditing extends _0x23ac7c{static get[_0x224e63(0x177)](){const _0x3bc40b=_0x224e63;return _0x3bc40b(0x172);}static get[_0x224e63(0x171)](){const _0x1f4ef0=_0x224e63;return[_0x4fe309,_0x4244af,_0x1f4ef0(0x16e),_0x1f4ef0(0x170)];}static get[_0x224e63(0x16f)](){return!0x0;}static get[_0x224e63(0x16b)](){return!0x0;}[_0x224e63(0x162)](){const _0x599e49=_0x224e63,{editor:_0x1324ab}=this;_0x1324ab[_0x599e49(0x16c)][_0x599e49(0x163)](_0x599e49(0x169),new _0x3d1306(_0x1324ab)),_0x1324ab[_0x599e49(0x16c)][_0x599e49(0x163)](_0x599e49(0x176),new _0x2e2422(_0x1324ab));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x9e3e0}from'ckeditor5/src/core.js';import{ButtonView as _0x5985a4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xbf1f9f}from'ckeditor5/src/icons.js';import{createElement as _0x21e746}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 _0x9e3e0{['_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 _0x44ae59=this['editor'];_0x44ae59['ui']['componentFactory']['add']('uploadcareImageEdit',_0x476c88=>{const _0x70651f=_0x44ae59['commands']['get']('uploadcareImageEdit'),_0x11a963=new _0x5985a4(_0x476c88),t=_0x476c88['t'];return _0x11a963['set']({'icon':_0xbf1f9f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x11a963['bind']('isEnabled')['to'](_0x70651f),_0x11a963['bind']('isOn')['to'](_0x70651f,'isActive'),this['listenTo'](_0x11a963,'execute',()=>{_0x44ae59['execute']('uploadcareImageEdit'),_0x44ae59['editing']['view']['focus']();}),_0x11a963;}),this['_initConfig']();}['_initConfig'](){const _0x5559f7=_0x21e746(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5559f7),this['listenTo'](this['editor'],'destroy',()=>{_0x5559f7['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x202791=_0x7419;(function(_0x36d52a,_0x1bd505){const _0x351a35=_0x7419,_0x51a9a6=_0x36d52a();while(!![]){try{const _0x52ebaf=parseInt(_0x351a35(0x1a6))/0x1+-parseInt(_0x351a35(0x199))/0x2+parseInt(_0x351a35(0x193))/0x3+parseInt(_0x351a35(0x19f))/0x4+parseInt(_0x351a35(0x19b))/0x5*(parseInt(_0x351a35(0x192))/0x6)+parseInt(_0x351a35(0x19e))/0x7*(-parseInt(_0x351a35(0x19a))/0x8)+parseInt(_0x351a35(0x1a3))/0x9*(-parseInt(_0x351a35(0x190))/0xa);if(_0x52ebaf===_0x1bd505)break;else _0x51a9a6['push'](_0x51a9a6['shift']());}catch(_0x50d088){_0x51a9a6['push'](_0x51a9a6['shift']());}}}(_0x5cd4,0x73525));function _0x5cd4(){const _0x512975=['18aRDcUt','529464VCkigd','element','execute','change','sizes','refresh','1091162VVdawb','8igkJhw','1254845mLMyfA','document','imageBlock','4284077zXkDtd','1562684RsOfiG','getSelectedElement','imageInline','srcset','639162dDqyvv','setAttributes','model','380901nLgWtk','removeAttribute','selection','isEnabled','10SDmbYV','editor'];_0x5cd4=function(){return _0x512975;};return _0x5cd4();}function _0x7419(_0x50bf0d,_0x597749){const _0x5cd40d=_0x5cd4();return _0x7419=function(_0x74198d,_0x3626b2){_0x74198d=_0x74198d-0x18d;let _0xa6ee39=_0x5cd40d[_0x74198d];return _0xa6ee39;},_0x7419(_0x50bf0d,_0x597749);}import{Command as _0x5d976e}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x5d976e{[_0x202791(0x198)](){const _0x3cd4ed=_0x202791,_0x2d7a07=this[_0x3cd4ed(0x191)][_0x3cd4ed(0x1a5)][_0x3cd4ed(0x19c)][_0x3cd4ed(0x18e)][_0x3cd4ed(0x1a0)]();this[_0x3cd4ed(0x18f)]=Boolean(_0x2d7a07&&(_0x2d7a07['is'](_0x3cd4ed(0x194),_0x3cd4ed(0x19d))||_0x2d7a07['is'](_0x3cd4ed(0x194),_0x3cd4ed(0x1a1))));}[_0x202791(0x195)](_0x380805){const _0x3b285b=_0x202791,_0x2fc5d2=this[_0x3b285b(0x191)][_0x3b285b(0x1a5)][_0x3b285b(0x19c)][_0x3b285b(0x18e)][_0x3b285b(0x1a0)]();this[_0x3b285b(0x191)][_0x3b285b(0x1a5)][_0x3b285b(0x196)](_0x1b7a9d=>{const _0x2e8e42=_0x3b285b;_0x1b7a9d[_0x2e8e42(0x1a4)](_0x380805,_0x2fc5d2),_0x1b7a9d[_0x2e8e42(0x18d)](_0x2e8e42(0x1a2),_0x2fc5d2),_0x1b7a9d[_0x2e8e42(0x18d)](_0x2e8e42(0x197),_0x2fc5d2);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5268e5=_0x37c0;(function(_0x2430f1,_0xf2e58c){var _0x17530b=_0x37c0,_0xdd05e3=_0x2430f1();while(!![]){try{var _0x1bf1a0=-parseInt(_0x17530b(0xee))/0x1+parseInt(_0x17530b(0xed))/0x2+parseInt(_0x17530b(0xf3))/0x3+-parseInt(_0x17530b(0xf4))/0x4*(parseInt(_0x17530b(0xe9))/0x5)+parseInt(_0x17530b(0xf5))/0x6+parseInt(_0x17530b(0xea))/0x7+-parseInt(_0x17530b(0xf2))/0x8*(-parseInt(_0x17530b(0xec))/0x9);if(_0x1bf1a0===_0xf2e58c)break;else _0xdd05e3['push'](_0xdd05e3['shift']());}catch(_0xfb5338){_0xdd05e3['push'](_0xdd05e3['shift']());}}}(_0x138d,0x4dc89));function _0x37c0(_0xd5119f,_0x4ff2cd){var _0x138d2f=_0x138d();return _0x37c0=function(_0x37c070,_0x43bd15){_0x37c070=_0x37c070-0xe8;var _0x13bb8d=_0x138d2f[_0x37c070];return _0x13bb8d;},_0x37c0(_0xd5119f,_0x4ff2cd);}import{Plugin as _0x24c394}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x4dd974}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x138d(){var _0x5efcd8=['85YUXQXI','739886mmNies','pluginName','9APzshc','971242tyyyxY','564202IQFmQy','isOfficialPlugin','UploadcareImageEdit','requires','515992eiEjeE','1786350XRvMBC','120788PxBlwM','869304ZqMXTj','isPremiumPlugin'];_0x138d=function(){return _0x5efcd8;};return _0x138d();}import{UploadcareImageEditUI as _0x490962}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x24c394{static get[_0x5268e5(0xeb)](){var _0x477fbf=_0x5268e5;return _0x477fbf(0xf0);}static get[_0x5268e5(0xf1)](){return[_0x4dd974,_0x490962];}static get[_0x5268e5(0xef)](){return!0x0;}static get[_0x5268e5(0xe8)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e7dae=_0x5937;(function(_0xcc7694,_0x3286e7){const _0x209288=_0x5937,_0x3ef8b1=_0xcc7694();while(!![]){try{const _0x53afa4=-parseInt(_0x209288(0x148))/0x1+parseInt(_0x209288(0x15f))/0x2*(-parseInt(_0x209288(0x146))/0x3)+-parseInt(_0x209288(0x14f))/0x4+-parseInt(_0x209288(0x127))/0x5*(parseInt(_0x209288(0x168))/0x6)+-parseInt(_0x209288(0x13a))/0x7*(parseInt(_0x209288(0x16d))/0x8)+parseInt(_0x209288(0x157))/0x9*(-parseInt(_0x209288(0x151))/0xa)+parseInt(_0x209288(0x166))/0xb;if(_0x53afa4===_0x3286e7)break;else _0x3ef8b1['push'](_0x3ef8b1['shift']());}catch(_0x21d7c7){_0x3ef8b1['push'](_0x3ef8b1['shift']());}}}(_0x4202,0x1d451));import{Plugin as _0x271f35}from'ckeditor5/src/core.js';import{IconDropbox as _0x1e6b09,IconFacebook as _0x3f2a86,IconGoogleDrive as _0x1d943a,IconGooglePhotos as _0x3d5808,IconUploadcareImageUpload as _0x220251,IconUploadcareLink as _0x3e9b21,IconOneDrive as _0x7df54f}from'ckeditor5/src/icons.js';import{ButtonView as _0x28f30c,MenuBarMenuListItemButtonView as _0x10a13c}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x20379c}from'./uploadcareconfig.js';function _0x5937(_0x3f0dd6,_0x145c5c){const _0x420243=_0x4202();return _0x5937=function(_0x5937cd,_0x415ea6){_0x5937cd=_0x5937cd-0x126;let _0x3f3540=_0x420243[_0x5937cd];return _0x3f3540;},_0x5937(_0x3f0dd6,_0x145c5c);}import{getTranslation as _0xdde972}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x4202(){const _0x98261d=['Insert','commands','icon','_getIntegrationKey','3iPJVwu','plugins','54938BPkUMQ','uploadcareLicenseKeyDomainLimit','forEach','licenseKey','isOfficialPlugin','entries','url','375148nqxfqo','tooltip','10PDbMaV','uploadcareLicenseKeyExpired','GPhotos','_createMenuBarButtons','uploadcareLicenseKeyUsageLimit','upload','896247WHYQPX','_createToolbarButton','has','uploadcareLicenseKeyNotAllowed','locale','label','invalid','pluginName','108152hKZCMe','config','push','_normalizeConfigSourceList','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyTrialLimit','execute','8150989ZuOckX','GDrive','84iYVkyU','uploadcareLicenseKeyEvaluationLimit','reduce','get','Uploadcare','16jDKucC','ImageInsertUI','assetManager','uploadcare.uploader.sourceList','featureNotAllowed','uploadcare','_licenseKeyCheckInterval','URL','map','evaluationLimit','registerIntegration','afterInit','70655fpHoyf','trialLimit','withText','type','_createDropdownButtons','init','Dropbox','Replace','OneDrive','Facebook','bind','isImageSelected','isEnabled','Local','UploadcareUI','_createButton','uploadcareLicenseKeyValid','shortText','domainLimit','423122RYxPQz','editor','text','expired','usageLimit','_showLicenseError','isPremiumPlugin','destroy'];_0x4202=function(){return _0x98261d;};return _0x4202();}export class UploadcareUI extends _0x271f35{[_0x1e7dae(0x14b)];[_0x1e7dae(0x173)];static get[_0x1e7dae(0x15e)](){const _0x2b665a=_0x1e7dae;return _0x2b665a(0x135);}static get[_0x1e7dae(0x14c)](){return!0x0;}static get[_0x1e7dae(0x140)](){return!0x0;}[_0x1e7dae(0x12c)](){const _0x3cb21a=_0x1e7dae;this[_0x3cb21a(0x14b)]=this[_0x3cb21a(0x13b)][_0x3cb21a(0x160)][_0x3cb21a(0x16b)](_0x3cb21a(0x14b));const _0x1385b8=this[_0x3cb21a(0x13b)];this[_0x3cb21a(0x173)]=setInterval(()=>{const _0x3522e9=_0x3cb21a;let _0x21417f;for(const _0x4944f8 in _0x1385b8){const _0x442b9c=_0x4944f8,_0x6cd411=_0x1385b8[_0x442b9c];if(_0x3522e9(0x137)==_0x6cd411||_0x3522e9(0x163)==_0x6cd411||_0x3522e9(0x152)==_0x6cd411||_0x3522e9(0x149)==_0x6cd411||_0x3522e9(0x15a)==_0x6cd411||_0x3522e9(0x169)==_0x6cd411||_0x3522e9(0x164)==_0x6cd411||_0x3522e9(0x155)==_0x6cd411){delete _0x1385b8[_0x442b9c],_0x21417f=_0x6cd411,clearInterval(this[_0x3522e9(0x173)]),this[_0x3522e9(0x173)]=void 0x0;break;}}_0x3522e9(0x163)==_0x21417f&&_0x1385b8[_0x3522e9(0x13f)](_0x3522e9(0x15d)),_0x3522e9(0x152)==_0x21417f&&_0x1385b8[_0x3522e9(0x13f)](_0x3522e9(0x13d)),_0x3522e9(0x149)==_0x21417f&&_0x1385b8[_0x3522e9(0x13f)](_0x3522e9(0x139)),_0x3522e9(0x15a)==_0x21417f&&_0x1385b8[_0x3522e9(0x13f)](_0x3522e9(0x171),_0x3522e9(0x16c)),_0x3522e9(0x169)==_0x21417f&&_0x1385b8[_0x3522e9(0x13f)](_0x3522e9(0x176)),_0x3522e9(0x164)==_0x21417f&&_0x1385b8[_0x3522e9(0x13f)](_0x3522e9(0x128)),_0x3522e9(0x155)==_0x21417f&&_0x1385b8[_0x3522e9(0x13f)](_0x3522e9(0x13e));},0x3e8);}[_0x1e7dae(0x126)](){const _0x4b3649=_0x1e7dae,{editor:_0x25c254}=this,_0x5739bf=_0x25c254[_0x4b3649(0x143)][_0x4b3649(0x16b)](_0x4b3649(0x172));if(!_0x5739bf)return;const _0x44b7a4=this[_0x4b3649(0x162)](_0x25c254[_0x4b3649(0x160)][_0x4b3649(0x16b)](_0x4b3649(0x170)))[_0x4b3649(0x16a)]((_0x455baf,_0x198f36)=>{const _0x1fad8f=_0x4b3649,_0x31c4b1=this[_0x1fad8f(0x145)](_0x198f36[_0x1fad8f(0x12a)]);return _0x455baf[_0x31c4b1]||(_0x455baf[_0x31c4b1]=[]),_0x455baf[_0x31c4b1][_0x1fad8f(0x161)](_0x198f36),_0x455baf;},{});_0x25c254[_0x4b3649(0x147)][_0x4b3649(0x159)](_0x4b3649(0x16e))&&_0x25c254[_0x4b3649(0x143)][_0x4b3649(0x16b)](_0x4b3649(0x172))&&Object[_0x4b3649(0x14d)](_0x44b7a4)[_0x4b3649(0x14a)](([_0x485f63,_0x3d3b09])=>{const _0x136329=_0x4b3649;_0x25c254[_0x136329(0x147)][_0x136329(0x16b)](_0x136329(0x16e))[_0x136329(0x177)]({'name':_0x485f63,'observable':()=>_0x5739bf,'buttonViewCreator':()=>this[_0x136329(0x158)](_0x3d3b09),'formViewCreator':()=>this[_0x136329(0x12b)](_0x3d3b09),'menuBarButtonViewCreator':()=>this[_0x136329(0x154)](_0x3d3b09),'override':_0x136329(0x16f)!==_0x485f63});});}[_0x1e7dae(0x141)](){const _0x5e4f0b=_0x1e7dae;super[_0x5e4f0b(0x141)](),this[_0x5e4f0b(0x173)]&&clearInterval(this[_0x5e4f0b(0x173)]);}[_0x1e7dae(0x162)](_0x5ea819){const _0x2895fa=_0x1e7dae,{locale:_0x3956b3}=this[_0x2895fa(0x13b)];return _0x5ea819[_0x2895fa(0x175)](_0x1c0419=>{const _0x434ec6=_0x2895fa,_0x80efe7=_0xdde972(_0x3956b3,_0x1c0419,_0x434ec6(0x142));switch(_0x1c0419){case _0x20379c[_0x434ec6(0x134)]:return{'icon':_0x220251,'type':_0x20379c[_0x434ec6(0x134)],..._0x80efe7};case _0x20379c[_0x434ec6(0x174)]:return{'icon':_0x3e9b21,'type':_0x20379c[_0x434ec6(0x174)],..._0x80efe7};case _0x20379c[_0x434ec6(0x12d)]:return{'icon':_0x1e6b09,'type':_0x20379c[_0x434ec6(0x12d)],..._0x80efe7};case _0x20379c[_0x434ec6(0x130)]:return{'icon':_0x3f2a86,'type':_0x20379c[_0x434ec6(0x130)],..._0x80efe7};case _0x20379c[_0x434ec6(0x167)]:return{'icon':_0x1d943a,'type':_0x20379c[_0x434ec6(0x167)],..._0x80efe7};case _0x20379c[_0x434ec6(0x153)]:return{'icon':_0x3d5808,'type':_0x20379c[_0x434ec6(0x153)],..._0x80efe7};case _0x20379c[_0x434ec6(0x12f)]:return{'icon':_0x7df54f,'type':_0x20379c[_0x434ec6(0x12f)],..._0x80efe7};}});}[_0x1e7dae(0x145)](_0x4c6284){const _0x3e25fe=_0x1e7dae;switch(_0x4c6284){case _0x20379c[_0x3e25fe(0x134)]:return _0x3e25fe(0x156);case _0x20379c[_0x3e25fe(0x174)]:return _0x3e25fe(0x14e);default:return _0x3e25fe(0x16f);}}[_0x1e7dae(0x136)](_0xca5373,_0x2c2fc1){const _0x2f98ce=_0x1e7dae,_0x973a72=this[_0x2f98ce(0x13b)],_0x1f3e5e=new _0xca5373(_0x973a72[_0x2f98ce(0x15b)]),_0xe2705=_0x973a72[_0x2f98ce(0x143)][_0x2f98ce(0x16b)](_0x2f98ce(0x172));return _0x1f3e5e[_0x2f98ce(0x131)](_0x2f98ce(0x133))['to'](_0xe2705),_0x1f3e5e['on'](_0x2f98ce(0x165),()=>{const _0x105175=_0x2f98ce;_0xe2705[_0x105175(0x165)](_0x2c2fc1);}),_0x1f3e5e;}[_0x1e7dae(0x158)](_0x4ee065){const _0x1d05a7=_0x1e7dae,{locale:_0x429712}=this[_0x1d05a7(0x13b)],_0x5c8878=this[_0x1d05a7(0x13b)][_0x1d05a7(0x147)][_0x1d05a7(0x16b)](_0x1d05a7(0x16e)),_0x5d00b5=_0x4ee065[0x0],_0x54cbdb=this[_0x1d05a7(0x136)](_0x28f30c,_0x5d00b5[_0x1d05a7(0x12a)]);return _0x54cbdb[_0x1d05a7(0x144)]=_0x5d00b5[_0x1d05a7(0x144)],_0x54cbdb[_0x1d05a7(0x131)](_0x1d05a7(0x15c))['to'](_0x5c8878,_0x1d05a7(0x132),_0x3efacc=>_0xdde972(_0x429712,_0x5d00b5[_0x1d05a7(0x12a)],_0x3efacc?_0x1d05a7(0x12e):_0x1d05a7(0x142))[_0x1d05a7(0x13c)]),_0x54cbdb[_0x1d05a7(0x150)]=!0x0,_0x54cbdb;}[_0x1e7dae(0x12b)](_0x53e700){const _0x18d450=_0x1e7dae,{locale:_0x37a467}=this[_0x18d450(0x13b)],_0x2f456d=this[_0x18d450(0x13b)][_0x18d450(0x147)][_0x18d450(0x16b)](_0x18d450(0x16e));return _0x53e700[_0x18d450(0x175)](_0x23a510=>{const _0x30b23c=_0x18d450,_0x2be950=this[_0x30b23c(0x136)](_0x28f30c,_0x23a510[_0x30b23c(0x12a)]);return _0x2be950[_0x30b23c(0x129)]=!0x0,_0x2be950[_0x30b23c(0x144)]=_0x23a510[_0x30b23c(0x144)],_0x2be950[_0x30b23c(0x131)](_0x30b23c(0x15c))['to'](_0x2f456d,_0x30b23c(0x132),_0x237e6e=>_0xdde972(_0x37a467,_0x23a510[_0x30b23c(0x12a)],_0x237e6e?_0x30b23c(0x12e):_0x30b23c(0x142))[_0x30b23c(0x13c)]),_0x2be950;});}[_0x1e7dae(0x154)](_0x5d74a5){const _0x19be15=_0x1e7dae;return _0x5d74a5[_0x19be15(0x175)](_0x3626e4=>{const _0x6a80ed=_0x19be15,_0x1ea096=this[_0x6a80ed(0x136)](_0x10a13c,_0x3626e4[_0x6a80ed(0x12a)]);return _0x1ea096[_0x6a80ed(0x144)]=_0x3626e4[_0x6a80ed(0x144)],_0x1ea096[_0x6a80ed(0x15c)]=_0x3626e4[_0x6a80ed(0x138)],_0x1ea096;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3ea047}from'ckeditor5/src/core.js';import{FileRepository as _0x2fdaed}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4d9e5b}from'./uploadcareediting.js';import{UploadUtils as _0x162280}from'./utils/uploadutils.js';import{getImageUrls as _0x2ee2fc}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3ea047{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2fdaed,_0x4d9e5b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x15fc69=this['editor'];if(!!!_0x15fc69['config']['get']('uploadcare'))return;_0x15fc69['plugins']['get'](_0x2fdaed)['createUploadAdapter']=_0x3b0c45=>new k(_0x3b0c45,_0x15fc69),_0x15fc69['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x19f2fb,{imageElement:_0x58d4c4,data:_0x2ca800})=>{_0x15fc69['model']['change'](_0x5d7c3e=>{_0x5d7c3e['setAttribute']('uploadcareImageId',_0x2ca800['uploadcareImageId'],_0x58d4c4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4b528c,_0x3ebbbd){this['loader']=_0x4b528c,this['editor']=_0x3ebbbd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2d301a=await this['loader']['file'];return _0x162280['upload']({'file':_0x2d301a,'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':_0x32b09b=>{_0x32b09b&&_0x32b09b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x32b09b['value']);}})['then'](async _0x1aec2c=>{const {imageFallbackUrl:_0x5a43ea,imageSources:_0x52c753}=_0x2ee2fc(_0x1aec2c['cdnUrl'],_0x1aec2c['imageInfo']['width']);return{'uploadcareImageId':_0x1aec2c['uuid'],'default':_0x5a43ea,'sources':_0x52c753};})['catch'](()=>{const _0x361644=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d301a['name']+'.');return Promise['reject'](_0x361644);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x37f4b7}from'../uploadcareconfig.js';export function getTranslation(_0x408caa,_0x3fdfb3,_0x46d2eb){const t=_0x408caa['t'],_0x30ad3d=_0x408caa['t'];switch(_0x3fdfb3){case _0x37f4b7['Local']:return{'text':_0x30ad3d('Insert'===_0x46d2eb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x30ad3d('From\x20computer')};case _0x37f4b7['URL']:return{'text':'Insert'===_0x46d2eb?_0x30ad3d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x30ad3d('Via\x20URL')};case _0x37f4b7['Dropbox']:return{'text':t('Insert'===_0x46d2eb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x37f4b7['Facebook']:return{'text':t('Insert'===_0x46d2eb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x37f4b7['GDrive']:return{'text':t('Insert'===_0x46d2eb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x37f4b7['GPhotos']:return{'text':t('Insert'===_0x46d2eb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x37f4b7['OneDrive']:return{'text':t('Insert'===_0x46d2eb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3fdfb3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x572f47=_0x1749;(function(_0x25f4eb,_0x2b3331){var _0x5f6dba=_0x1749,_0x10470e=_0x25f4eb();while(!![]){try{var _0xf12ab=-parseInt(_0x5f6dba(0x1cf))/0x1*(-parseInt(_0x5f6dba(0x1dd))/0x2)+parseInt(_0x5f6dba(0x1cd))/0x3*(-parseInt(_0x5f6dba(0x1d9))/0x4)+-parseInt(_0x5f6dba(0x1db))/0x5*(-parseInt(_0x5f6dba(0x1d2))/0x6)+-parseInt(_0x5f6dba(0x1de))/0x7+-parseInt(_0x5f6dba(0x1d8))/0x8*(parseInt(_0x5f6dba(0x1d0))/0x9)+-parseInt(_0x5f6dba(0x1da))/0xa+parseInt(_0x5f6dba(0x1df))/0xb*(parseInt(_0x5f6dba(0x1d3))/0xc);if(_0xf12ab===_0x2b3331)break;else _0x10470e['push'](_0x10470e['shift']());}catch(_0x25eca0){_0x10470e['push'](_0x10470e['shift']());}}}(_0x1ebe,0xde3ee));import{FocusTracker as _0x16c4c0}from'ckeditor5/src/utils.js';import{View as _0x51a7e5,FocusCycler as _0x5faedc}from'ckeditor5/src/ui.js';function _0x1749(_0x34c9db,_0x452184){var _0x1ebef2=_0x1ebe();return _0x1749=function(_0x174926,_0x57c3fd){_0x174926=_0x174926-0x1cd;var _0x221682=_0x1ebef2[_0x174926];return _0x221682;},_0x1749(_0x34c9db,_0x452184);}import'../../theme/uploadcare-form.css';function _0x1ebe(){var _0x7303f7=['focusTracker','846ioerzk','29162928ePoCxc','createCollection','forwardCycle','getFocusableElement','bindTemplate','3090808nxFHhl','876052IEeYFE','7596330arLxQU','11750UXPwZU','div','324162BqxoCC','8678264AIxWRq','11KHRWds','focusCycler','fire','6KWhDGl','true','6ZiaMdD','9fiovoj'];_0x1ebe=function(){return _0x7303f7;};return _0x1ebe();}export class DialogFocusManagerView extends _0x51a7e5{[_0x572f47(0x1d1)];[_0x572f47(0x1e0)];constructor(_0x165994){var _0x2996a2=_0x572f47;super(_0x165994),this[_0x2996a2(0x1d1)]=new _0x16c4c0(),this[_0x2996a2(0x1e0)]=new _0x5faedc({'focusables':this[_0x2996a2(0x1d4)](),'focusTracker':this[_0x2996a2(0x1d1)]});}[_0x572f47(0x1d6)](){var _0x5f2053=_0x572f47;return{'tag':_0x5f2053(0x1dc),'attributes':{'aria-hidden':_0x5f2053(0x1ce),'tabindex':'0'},'on':{'focus':this[_0x5f2053(0x1d7)]['to'](()=>{var _0x4e27e1=_0x5f2053;this[_0x4e27e1(0x1e0)][_0x4e27e1(0x1e1)](_0x4e27e1(0x1d5));})}};}}
|