@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250220.0 → 0.0.0-nightly-20250221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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 +8 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c8d56=_0x4074;function _0x43f0(){const _0x22da06=['cleanupImage','href','48zFrjZu','editor','get','afterInit','6497973sVfHFm','replaceImageSource','uploadcare.uploader','closeMax','_initImageProcessingIndicator','uploadcare.pubkey','body','destroy','render','view','_initCtx','imageInline','#uc-icon-arrow-down','_initConversion','2CEYetX','402Jnmssu','appendChild','true','contentLanguage','isRegistered','uploadcareImageId','add','_configElement','iconHrefResolver','execute','_initSchema','commands','\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','init','locale','extend','schema','config','querySelector','imageBlock','117118ruVPKB','UploadcareEditing','for','6792990ymbWoo','uploader','attributeToAttribute','editing','requires','insertImage','once','downcast','pluginName','uploadcareImageReplace','_initConfig','PictureEditing','removeAttribute','isPremiumPlugin','join','fromCharCode','getAttribute','uc-config','getSelectedElement','model','map','1608045zFQPSv','remove','elementToAttribute','20300jumcLl','document','data-uc-image-id','isOfficialPlugin','811872dGhCjc','28023BfNXFS','uploadcare','ctxElement','upcast','configElement','input[uploadcare-file-input]','uc-upload-ctx-provider','selection','_ctxElement','conversion','listenTo'];_0x43f0=function(){return _0x22da06;};return _0x43f0();}function _0x4074(_0x5138c3,_0x54628f){const _0x43f08e=_0x43f0();return _0x4074=function(_0x407419,_0x85e0bd){_0x407419=_0x407419-0x78;let _0x38e106=_0x43f08e[_0x407419];return _0x38e106;},_0x4074(_0x5138c3,_0x54628f);}(function(_0x40b9e0,_0x1e5d14){const _0x1d83ba=_0x4074,_0x492771=_0x40b9e0();while(!![]){try{const _0x15ee72=parseInt(_0x1d83ba(0xc7))/0x1*(parseInt(_0x1d83ba(0x88))/0x2)+parseInt(_0x1d83ba(0xa8))/0x3*(-parseInt(_0x1d83ba(0xb5))/0x4)+parseInt(_0x1d83ba(0xa0))/0x5+parseInt(_0x1d83ba(0xc8))/0x6*(parseInt(_0x1d83ba(0xa3))/0x7)+-parseInt(_0x1d83ba(0xa7))/0x8+-parseInt(_0x1d83ba(0xb9))/0x9+parseInt(_0x1d83ba(0x8b))/0xa;if(_0x15ee72===_0x1e5d14)break;else _0x492771['push'](_0x492771['shift']());}catch(_0x335653){_0x492771['push'](_0x492771['shift']());}}}(_0x43f0,0x5bfb1));import{Plugin as _0xf54555}from'ckeditor5/src/core.js';import{Dialog as _0x463dfc}from'ckeditor5/src/ui.js';import{createElement as _0x358310,global as _0x5dee56,uid as _0x39b9c0}from'ckeditor5/src/utils.js';import _0x38cb80 from'./uploadcarecommand.js';import _0x763eca from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4dcee2}from'./utils/editingutils.js';export default class i extends _0xf54555{constructor(){const _0x39f0f1=_0x4074;super(...arguments),this[_0x39f0f1(0x7b)]=null,this[_0x39f0f1(0xb0)]=null;}static get[_0x1c8d56(0x93)](){const _0x32831e=_0x1c8d56;return _0x32831e(0x89);}static get[_0x1c8d56(0x8f)](){const _0x53658c=_0x1c8d56;return[_0x53658c(0x96),_0x763eca,_0x463dfc];}static get[_0x1c8d56(0xa6)](){return!0x0;}static get[_0x1c8d56(0x98)](){return!0x0;}get[_0x1c8d56(0xac)](){const _0x8203ef=_0x1c8d56;return this[_0x8203ef(0x7b)];}get[_0x1c8d56(0xaa)](){const _0x4e6c32=_0x1c8d56;return this[_0x4e6c32(0xb0)];}[_0x1c8d56(0x81)](){const _0x55b580=_0x1c8d56,_0x2669c1=this[_0x55b580(0xb6)];_0x2669c1[_0x55b580(0x7f)][_0x55b580(0x7a)](_0x55b580(0xa9),new _0x38cb80(_0x2669c1));}[_0x1c8d56(0xb8)](){const _0x1fea28=_0x1c8d56;this[_0x1fea28(0x7e)](),this[_0x1fea28(0xc6)](),this[_0x1fea28(0x95)](),this[_0x1fea28(0xc3)](),this[_0x1fea28(0xbd)](),this[_0x1fea28(0xb2)](this[_0x1fea28(0xb6)],_0x1fea28(0xc0),()=>{const _0x1a13c5=_0x1fea28;this[_0x1a13c5(0x7b)]&&(this[_0x1a13c5(0x7b)][_0x1a13c5(0xa1)](),this[_0x1a13c5(0x7b)]=null),this[_0x1a13c5(0xb0)]&&(this[_0x1a13c5(0xb0)][_0x1a13c5(0xa1)](),this[_0x1a13c5(0xb0)]=null);const _0x347762=_0x5dee56[_0x1a13c5(0xa4)][_0x1a13c5(0x86)](_0x1a13c5(0xad));_0x347762&&_0x347762[_0x1a13c5(0xa1)]();}),async function(_0x4afd21){const _0x117879=_0x1cacea([0x33,0x45,0x42,0x66,0x67,0x53,0x6d,0x39,0x50,0x62,0x63,0x57,0x51,0x71,0x41,0x58,0x74,0x56,0x73,0x77,0x36,0x68,0x6b,0x48,0x4d,0x6e,0x75,0x34,0x6a,0x6f,0x37,0x6c,0x4c,0x47,0x30,0x35,0x72,0x4f,0x49,0x65,0x5a,0x31,0x54,0x7a,0x43,0x76,0x61,0x4b,0x4a,0x46,0x38,0x79,0x59,0x69,0x70,0x78,0x44,0x64,0x55,0x4e,0x52,0x32]),_0x2a2274=0x1b0de5f6,_0x478e4e=0x1b0a85fe^_0x2a2274,_0xd173ae=window[_0x1cacea([0x44,0x61,0x74,0x65])][_0x1cacea([0x6e,0x6f,0x77])](),_0x421b6c=_0x4afd21[_0x1cacea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x397060=new window[(_0x1cacea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x233bd5=>{_0x421b6c[_0x1cacea([0x6f,0x6e,0x63,0x65])](_0x1cacea([0x72,0x65,0x61,0x64,0x79]),_0x233bd5);}),_0xfae038={[_0x1cacea([0x6b,0x74,0x79])]:_0x1cacea([0x45,0x43]),[_0x1cacea([0x75,0x73,0x65])]:_0x1cacea([0x73,0x69,0x67]),[_0x1cacea([0x63,0x72,0x76])]:_0x1cacea([0x50,0x2d,0x32,0x35,0x36]),[_0x1cacea([0x78])]:_0x1cacea([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]),[_0x1cacea([0x79])]:_0x1cacea([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]),[_0x1cacea([0x61,0x6c,0x67])]:_0x1cacea([0x45,0x53,0x32,0x35,0x36])},_0x44dfd0=_0x421b6c[_0x1cacea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cacea([0x67,0x65,0x74])](_0x1cacea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f3088(){let _0x3ef1af,_0x4a7335=null,_0x540e91=null;try{if(_0x44dfd0==_0x1cacea([0x47,0x50,0x4c]))return _0x1cacea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ef1af=_0x300b31(),!_0x3ef1af)return _0x1cacea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ef1af[_0x1cacea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x540e91=_0x72b0b7(_0x3ef1af[_0x1cacea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ef1af[_0x1cacea([0x6a,0x74,0x69])])),await _0x4066ee()?_0x9e2d70()?_0x3d2050()?_0x1cacea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36da45()?(_0x3ef1af[_0x1cacea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cacea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a7335=_0x522702(_0x1cacea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ef1af[_0x1cacea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cacea([0x74,0x72,0x69,0x61,0x6c])&&(_0x4a7335=_0x522702(_0x1cacea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a4289()):_0x1cacea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cacea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cacea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x474918){return _0x1cacea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d2050(){const _0x5069f6=[_0x1cacea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cacea([0x74,0x72,0x69,0x61,0x6c])][_0x1cacea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ef1af[_0x1cacea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd173ae/0x3e8:0xe10*_0x478e4e;return _0x3ef1af[_0x1cacea([0x65,0x78,0x70])]<_0x5069f6;}function _0x9e2d70(){const _0x5b9c0c=_0x3ef1af[_0x1cacea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b9c0c&&(!!_0x5b9c0c[_0x1cacea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cacea([0x2a]))||!!_0x5b9c0c[_0x1cacea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cacea([0x55,0x50,0x4c,0x43])));}function _0x36da45(){const _0xa30971=_0x4074,_0x42066b=_0x3ef1af[_0x1cacea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42066b||0x0==_0x42066b[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x413a20}=new URL(window[_0x1cacea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa30971(0xb4)]);if(_0x42066b[_0x1cacea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413a20))return!0x0;const _0xf6b9cb=_0x413a20[_0x1cacea([0x73,0x70,0x6c,0x69,0x74])](_0x1cacea([0x2e]));return _0x42066b[_0x1cacea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27d331=>_0x27d331[_0x1cacea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cacea([0x2a])))[_0x1cacea([0x6d,0x61,0x70])](_0x42e399=>_0x42e399[_0x1cacea([0x73,0x70,0x6c,0x69,0x74])](_0x1cacea([0x2e])))[_0x1cacea([0x73,0x6f,0x6d,0x65])](_0x4e5f3b=>_0xf6b9cb[_0x1cacea([0x65,0x76,0x65,0x72,0x79])]((_0x8e921b,_0xa23d26)=>_0x4e5f3b[_0xa23d26]===_0x8e921b||_0x4e5f3b[_0xa23d26]===_0x1cacea([0x2a])));}function _0x5a4289(){return _0x4a7335&&_0x540e91?new window[(_0x1cacea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x328637,_0x1714bb)=>{_0x4a7335[_0x1cacea([0x74,0x68,0x65,0x6e])](_0x328637,_0x1714bb),_0x540e91[_0x1cacea([0x74,0x68,0x65,0x6e])](_0x145f0f=>{_0x145f0f!=_0x1cacea([0x56,0x61,0x6c,0x69,0x64])&&_0x328637(_0x145f0f);},_0x1714bb);}):_0x4a7335||_0x540e91||_0x1cacea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x72b0b7(_0x389ff7,_0x5bb56e){return new window[(_0x1cacea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217526=>{if(_0x279d67())return _0x217526(_0x1cacea([0x56,0x61,0x6c,0x69,0x64]));_0x3487a9(),_0x421b6c[_0x1cacea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cacea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c22c=!0x1;const _0x599066=_0x39b9c0();function _0x23830b(_0x2f82fb){return!!_0x2f82fb&&(typeof _0x2f82fb===_0x1cacea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f82fb===_0x1cacea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f82fb[_0x1cacea([0x74,0x68,0x65,0x6e])]===_0x1cacea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f82fb[_0x1cacea([0x63,0x61,0x74,0x63,0x68])]===_0x1cacea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d57a7(_0x4b4034){_0x291cc0(_0x4b4034)[_0x1cacea([0x74,0x68,0x65,0x6e])](_0x12b48b=>{if(!_0x12b48b||_0x12b48b[_0x1cacea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cacea([0x6f,0x6b]))return _0x1cacea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x265b26(_0x284dca(_0x599066+_0x5bb56e))!=_0x12b48b[_0x1cacea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cacea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cacea([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cacea([0x74,0x68,0x65,0x6e])](_0x2be664=>(_0x562cd0(),_0x2be664),()=>{const _0x45a741=_0x1c72d6();return null==_0x45a741?(_0x562cd0(),_0x1cacea([0x56,0x61,0x6c,0x69,0x64])):_0x1cacea(_0xd173ae-_0x45a741>(0x3f0161f6^_0x2a2274)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cacea([0x74,0x68,0x65,0x6e])](_0x217526)[_0x1cacea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x217526(_0x1cacea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d0ff2=0x1b3b0b76^_0x2a2274;function _0x562cd0(){const _0x44536c=_0x1cacea([0x6c,0x6c,0x63,0x74,0x2d])+_0x265b26(_0x284dca(_0x389ff7)),_0x4f2d3c=_0x36858e(_0x265b26(window[_0x1cacea([0x4d,0x61,0x74,0x68])][_0x1cacea([0x63,0x65,0x69,0x6c])](_0xd173ae/_0x2d0ff2)));window[_0x1cacea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cacea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44536c,_0x4f2d3c);}function _0x1c72d6(){const _0x111309=_0x1cacea([0x6c,0x6c,0x63,0x74,0x2d])+_0x265b26(_0x284dca(_0x389ff7)),_0x56feb0=window[_0x1cacea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cacea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111309);return _0x56feb0?window[_0x1cacea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36858e(_0x56feb0),0x10)*_0x2d0ff2:null;}function _0x291cc0(_0x294042){return new window[(_0x1cacea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fff2e,_0x153cdb)=>{_0x294042[_0x1cacea([0x74,0x68,0x65,0x6e])](_0x1fff2e,_0x153cdb),window[_0x1cacea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x153cdb,0x1b0c3136^_0x2a2274);});}}_0x421b6c[_0x1cacea([0x6f,0x6e])](_0x1cacea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12f826,_0x543d73)=>{if(_0x543d73[0x0]!=_0x389ff7)return _0x217526(_0x1cacea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x543d73[0x1]={..._0x543d73[0x1],[_0x1cacea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x599066};},{[_0x1cacea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cacea([0x68,0x69,0x67,0x68])}),_0x421b6c[_0x1cacea([0x6f,0x6e])](_0x1cacea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x532b97=>{_0x23830b(_0x532b97[_0x1cacea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c22c=!0x0,_0x5d57a7(_0x532b97[_0x1cacea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cacea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cacea([0x6c,0x6f,0x77])}),_0x397060[_0x1cacea([0x74,0x68,0x65,0x6e])](()=>{_0x3c22c||_0x217526(_0x1cacea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x279d67(){return _0x421b6c[_0x1cacea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cacea([0x76,0x69,0x65,0x77])][_0x1cacea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cacea([0x61,0x75,0x74,0x6f]);}function _0x3487a9(){_0x421b6c[_0x1cacea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cacea([0x76,0x69,0x65,0x77])][_0x1cacea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cacea([0x61,0x75,0x74,0x6f]);}}function _0x522702(_0x33a86a){const _0xae7b2a=[new window[(_0x1cacea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbc752e=>setTimeout(_0xbc752e,0x1b04db3a^_0x2a2274)),_0x397060[_0x1cacea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cacea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22d96f=>{let _0x4279de=0x0;_0x421b6c[_0x1cacea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cacea([0x6f,0x6e])](_0x1cacea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x55f81c,_0x37dfcd)=>{_0x37dfcd[0x0][_0x1cacea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4279de++,_0x4279de==(0x1b0de40e^_0x2a2274)&&(_0x22d96f(),_0x55f81c[_0x1cacea([0x6f,0x66,0x66])]());});}))];return window[_0x1cacea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cacea([0x72,0x61,0x63,0x65])](_0xae7b2a)[_0x1cacea([0x74,0x68,0x65,0x6e])](()=>_0x33a86a);}async function _0x1f9daf(){await _0x397060,_0x421b6c[_0x1cacea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cacea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x11e399,_0x421b6c[_0x1cacea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cacea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x11e399,_0x421b6c[_0x1cacea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cacea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19229f(_0x21811c){const _0x1ce8b4=_0xe8c0c6();_0x421b6c[_0x1ce8b4]=_0x1cacea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21811c,_0x21811c!=_0x1cacea([0x56,0x61,0x6c,0x69,0x64])&&_0x1f9daf();}function _0xe8c0c6(){const _0x54b0ab=window[_0x1cacea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cacea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cacea([0x6e,0x6f,0x77])]())[_0x1cacea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cacea([0x2e]),'');let _0xe903c5=_0x1cacea([0x45]);for(let _0x1042de=0x0;_0x1042de<_0x54b0ab[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1042de+=0x2){let _0x3b0b90=window[_0x1cacea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b0ab[_0x1cacea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1042de,_0x1042de+0x2));_0x3b0b90>=_0x117879[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b0b90-=_0x117879[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe903c5+=_0x117879[_0x3b0b90];}return _0xe903c5;}function _0x300b31(){const _0x378f93=_0x44dfd0[_0x1cacea([0x73,0x70,0x6c,0x69,0x74])](_0x1cacea([0x2e]));if(0x3!=_0x378f93[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53b690(_0x378f93[0x1]);function _0x53b690(_0x3aeb75){const _0x2894bf=_0xa4fa26(_0x3aeb75);return _0x2894bf&&_0xe0c312()?_0x2894bf:null;function _0xe0c312(){const _0x18406c=_0x2894bf[_0x1cacea([0x6a,0x74,0x69])],_0x2428d8=window[_0x1cacea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18406c[_0x1cacea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18406c[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x481939={..._0x2894bf,[_0x1cacea([0x6a,0x74,0x69])]:_0x18406c[_0x1cacea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18406c[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x481939[_0x1cacea([0x76,0x63])],_0x284dca(_0x481939)==_0x2428d8;}}}async function _0x4066ee(){let _0x3ede14=!0x0;try{const _0x1c421c=_0x44dfd0[_0x1cacea([0x73,0x70,0x6c,0x69,0x74])](_0x1cacea([0x2e])),[_0x1652cb,_0x360771,_0x2f8246]=_0x1c421c;return _0x59f9e1(_0x1652cb),await _0x49716c(_0x1652cb,_0x360771,_0x2f8246),_0x3ede14;}catch(_0x47c7d9){return!0x1;}function _0x59f9e1(_0x515a9f){const _0x2bd4c6=_0xa4fa26(_0x515a9f);_0x2bd4c6&&_0x2bd4c6[_0x1cacea([0x61,0x6c,0x67])]==_0x1cacea([0x45,0x53,0x32,0x35,0x36])||(_0x3ede14=!0x1);}async function _0x49716c(_0xdec60c,_0x2b0401,_0x345cc9){const _0x46a5ac=window[_0x1cacea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cacea([0x66,0x72,0x6f,0x6d])](_0x21a481(_0x345cc9),_0x574d6c=>_0x574d6c[_0x1cacea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3433b9=new window[(_0x1cacea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cacea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xdec60c+_0x1cacea([0x2e])+_0x2b0401),_0x19ce16=window[_0x1cacea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cacea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19ce16)return;const _0x4c2340=await _0x19ce16[_0x1cacea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cacea([0x6a,0x77,0x6b]),_0xfae038,{[_0x1cacea([0x6e,0x61,0x6d,0x65])]:_0x1cacea([0x45,0x43,0x44,0x53,0x41]),[_0x1cacea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cacea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cacea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19ce16[_0x1cacea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cacea([0x6e,0x61,0x6d,0x65])]:_0x1cacea([0x45,0x43,0x44,0x53,0x41]),[_0x1cacea([0x68,0x61,0x73,0x68])]:{[_0x1cacea([0x6e,0x61,0x6d,0x65])]:_0x1cacea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c2340,_0x46a5ac,_0x3433b9)||(_0x3ede14=!0x1);}}function _0xa4fa26(_0x3f0849){return _0x3f0849[_0x1cacea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cacea([0x65,0x79]))?JSON[_0x1cacea([0x70,0x61,0x72,0x73,0x65])](_0x21a481(_0x3f0849)):null;}function _0x21a481(_0x160e17){return window[_0x1cacea([0x61,0x74,0x6f,0x62])](_0x160e17[_0x1cacea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cacea([0x2b]))[_0x1cacea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cacea([0x2f])));}function _0x284dca(_0x39c142){let _0x406d4a=0x1505;function _0x29ddad(_0x83a34b){for(let _0x1401fb=0x0;_0x1401fb<_0x83a34b[_0x1cacea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1401fb++){const _0x36482a=_0x83a34b[_0x1cacea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1401fb);_0x406d4a=(_0x406d4a<<0x5)+_0x406d4a+_0x36482a,_0x406d4a&=_0x406d4a;}}function _0x213e9d(_0x114360){Array[_0x1cacea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x114360)?_0x114360[_0x1cacea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x213e9d):_0x114360&&typeof _0x114360==_0x1cacea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cacea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x114360)[_0x1cacea([0x73,0x6f,0x72,0x74])]()[_0x1cacea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x196e2f,_0x37cc4c])=>{_0x29ddad(_0x196e2f),_0x213e9d(_0x37cc4c);}):_0x29ddad(window[_0x1cacea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x114360));}return _0x213e9d(_0x39c142),_0x406d4a>>>0x0;}function _0x265b26(_0x48a175){return _0x48a175[_0x1cacea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cacea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cacea([0x30]));}function _0x36858e(_0x3482f3){return _0x3482f3[_0x1cacea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cacea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cacea([0x6a,0x6f,0x69,0x6e])]('');}function _0x11e399(){}function _0x1cacea(_0x3df544){const _0x38e941=_0x4074;return _0x3df544[_0x38e941(0x9f)](_0x404a8e=>String[_0x38e941(0x9a)](_0x404a8e))[_0x38e941(0x99)]('');}_0x19229f(await _0x3f3088());}(this);}[_0x1c8d56(0x7e)](){const _0x4d7d5d=_0x1c8d56,_0x5c63e3=this[_0x4d7d5d(0xb6)][_0x4d7d5d(0x9e)][_0x4d7d5d(0x84)];_0x5c63e3[_0x4d7d5d(0x78)](_0x4d7d5d(0x87))&&_0x5c63e3[_0x4d7d5d(0x83)](_0x4d7d5d(0x87),{'allowAttributes':[_0x4d7d5d(0x79)]}),_0x5c63e3[_0x4d7d5d(0x78)](_0x4d7d5d(0xc4))&&_0x5c63e3[_0x4d7d5d(0x83)](_0x4d7d5d(0xc4),{'allowAttributes':[_0x4d7d5d(0x79)]});}[_0x1c8d56(0xc6)](){const _0x1fc1bb=_0x1c8d56,_0x19ae6d=this[_0x1fc1bb(0xb6)];_0x19ae6d[_0x1fc1bb(0xb1)][_0x1fc1bb(0x8a)](_0x1fc1bb(0x92))[_0x1fc1bb(0x8d)]({'model':_0x1fc1bb(0x79),'view':_0x1fc1bb(0xa5)}),_0x19ae6d[_0x1fc1bb(0xb1)][_0x1fc1bb(0x8a)](_0x1fc1bb(0xab))[_0x1fc1bb(0xa2)]({'model':{'key':_0x1fc1bb(0x79),'value':_0x3eafa4=>_0x3eafa4[_0x1fc1bb(0x9b)](_0x1fc1bb(0xa5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d6b30=_0x19ae6d[_0x1fc1bb(0x7f)][_0x1fc1bb(0xb7)](_0x1fc1bb(0xba));_0x4d6b30&&this[_0x1fc1bb(0xb2)](_0x4d6b30,_0x1fc1bb(0xb3),(_0x180f32,[_0x35cee6,_0x1cf88c])=>{const _0xd9acd=_0x1fc1bb;_0x35cee6[_0xd9acd(0x97)](_0xd9acd(0x79),_0x1cf88c);});}[_0x1c8d56(0x95)](){const _0x1a2455=_0x1c8d56,_0x26f198=this[_0x1a2455(0xb6)][_0x1a2455(0x85)][_0x1a2455(0xb7)](_0x1a2455(0xbb))||{},_0x3095fb=this[_0x1a2455(0xb6)][_0x1a2455(0x85)][_0x1a2455(0xb7)](_0x1a2455(0xbe))||'';this[_0x1a2455(0x7b)]=_0x358310(_0x5dee56[_0x1a2455(0xa4)],_0x1a2455(0x9c),{..._0x26f198,'pubkey':_0x3095fb,'ctx-name':_0x1a2455(0x8c),'sourceList':'','imgOnly':_0x1a2455(0xca),'removeCopyright':_0x1a2455(0xca),'localeName':this[_0x1a2455(0xb6)][_0x1a2455(0x82)][_0x1a2455(0xcb)],'externalSourcesEmbedCss':_0x1a2455(0x80)}),this[_0x1a2455(0x7b)][_0x1a2455(0x7c)]=_0x266604=>{const _0x359d12=_0x1a2455;if(_0x359d12(0xbc)==_0x266604)return _0x359d12(0xc5);},_0x5dee56[_0x1a2455(0xa4)][_0x1a2455(0xbf)][_0x1a2455(0xc9)](this[_0x1a2455(0x7b)]);}[_0x1c8d56(0xc3)](){const _0x5e245a=_0x1c8d56;this[_0x5e245a(0xb0)]=_0x358310(_0x5dee56[_0x5e245a(0xa4)],_0x5e245a(0xae),{'ctx-name':_0x5e245a(0x8c)}),_0x5dee56[_0x5e245a(0xa4)][_0x5e245a(0xbf)][_0x5e245a(0xc9)](this[_0x5e245a(0xb0)]);}[_0x1c8d56(0xbd)](){const _0x56baff=_0x1c8d56,_0x5c6d51=this[_0x56baff(0xb6)][_0x56baff(0x7f)][_0x56baff(0xb7)](_0x56baff(0x90));_0x5c6d51&&this[_0x56baff(0xb2)](_0x5c6d51,_0x56baff(0x7d),()=>{const _0x4c1279=_0x56baff,_0x50d1ad=this[_0x4c1279(0xb6)][_0x4c1279(0x9e)][_0x4c1279(0xa4)][_0x4c1279(0xaf)][_0x4c1279(0x9d)]();_0x50d1ad&&_0x50d1ad[_0x4c1279(0x9b)](_0x4c1279(0x79))&&this[_0x4c1279(0xb6)][_0x4c1279(0x8e)][_0x4c1279(0xc2)][_0x4c1279(0x91)](_0x4c1279(0xc1),()=>{const _0x23418a=_0x4c1279;_0x4dcee2(this[_0x23418a(0xb6)],_0x50d1ad);});});const _0x2eaca1=this[_0x56baff(0xb6)][_0x56baff(0x7f)][_0x56baff(0xb7)](_0x56baff(0x94));_0x2eaca1&&this[_0x56baff(0xb2)](_0x2eaca1,_0x56baff(0x7d),()=>{const _0x26b06e=_0x56baff,_0x1094ca=this[_0x26b06e(0xb6)][_0x26b06e(0x9e)][_0x26b06e(0xa4)][_0x26b06e(0xaf)][_0x26b06e(0x9d)]();_0x1094ca&&_0x1094ca[_0x26b06e(0x9b)](_0x26b06e(0x79))&&this[_0x26b06e(0xb6)][_0x26b06e(0x8e)][_0x26b06e(0xc2)][_0x26b06e(0x91)](_0x26b06e(0xc1),()=>{const _0xfb2c4d=_0x26b06e;_0x4dcee2(this[_0xfb2c4d(0xb6)],_0x1094ca);});});}}
|
|
23
|
+
const _0x18e096=_0x455f;(function(_0x55b82d,_0x2ebc78){const _0x12e2da=_0x455f,_0x29cf46=_0x55b82d();while(!![]){try{const _0x4906e1=parseInt(_0x12e2da(0x140))/0x1*(parseInt(_0x12e2da(0x163))/0x2)+parseInt(_0x12e2da(0x133))/0x3+parseInt(_0x12e2da(0x182))/0x4+parseInt(_0x12e2da(0x15b))/0x5*(parseInt(_0x12e2da(0x161))/0x6)+-parseInt(_0x12e2da(0x15c))/0x7*(parseInt(_0x12e2da(0x13b))/0x8)+-parseInt(_0x12e2da(0x183))/0x9+parseInt(_0x12e2da(0x130))/0xa;if(_0x4906e1===_0x2ebc78)break;else _0x29cf46['push'](_0x29cf46['shift']());}catch(_0x126a7a){_0x29cf46['push'](_0x29cf46['shift']());}}}(_0x3a6e,0x6f4cd));function _0x455f(_0x3af849,_0x501e9c){const _0x3a6e06=_0x3a6e();return _0x455f=function(_0x455ff7,_0x2886b5){_0x455ff7=_0x455ff7-0x130;let _0x4994a3=_0x3a6e06[_0x455ff7];return _0x4994a3;},_0x455f(_0x3af849,_0x501e9c);}import{Plugin as _0x4d6112}from'ckeditor5/src/core.js';import{Dialog as _0x56baef}from'ckeditor5/src/ui.js';import{createElement as _0x109e4f,global as _0x396c74,uid as _0x2781df}from'ckeditor5/src/utils.js';import _0x3e93c2 from'./uploadcarecommand.js';import _0x323cd7 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x278053}from'./utils/editingutils.js';export default class i extends _0x4d6112{constructor(){const _0x3fea49=_0x455f;super(...arguments),this[_0x3fea49(0x138)]=null,this[_0x3fea49(0x165)]=null;}static get[_0x18e096(0x176)](){const _0x4ed52c=_0x18e096;return _0x4ed52c(0x14c);}static get[_0x18e096(0x17c)](){const _0x305d20=_0x18e096;return[_0x305d20(0x135),_0x323cd7,_0x56baef];}static get[_0x18e096(0x15a)](){return!0x0;}static get[_0x18e096(0x180)](){return!0x0;}get[_0x18e096(0x160)](){const _0x1d1c2b=_0x18e096;return this[_0x1d1c2b(0x138)];}get[_0x18e096(0x149)](){const _0x4052e9=_0x18e096;return this[_0x4052e9(0x165)];}[_0x18e096(0x154)](){const _0x14afd9=_0x18e096,_0x138029=this[_0x14afd9(0x166)];_0x138029[_0x14afd9(0x15e)][_0x14afd9(0x13c)](_0x14afd9(0x177),new _0x3e93c2(_0x138029));}[_0x18e096(0x13a)](){const _0x3da9ec=_0x18e096;this[_0x3da9ec(0x170)](),this[_0x3da9ec(0x15d)](),this[_0x3da9ec(0x17e)](),this[_0x3da9ec(0x17b)](),this[_0x3da9ec(0x155)](),this[_0x3da9ec(0x158)](this[_0x3da9ec(0x166)],_0x3da9ec(0x164),()=>{const _0x28121e=_0x3da9ec;this[_0x28121e(0x138)]&&(this[_0x28121e(0x138)][_0x28121e(0x150)](),this[_0x28121e(0x138)]=null),this[_0x28121e(0x165)]&&(this[_0x28121e(0x165)][_0x28121e(0x150)](),this[_0x28121e(0x165)]=null);const _0x229fb3=_0x396c74[_0x28121e(0x145)][_0x28121e(0x174)](_0x28121e(0x156));_0x229fb3&&_0x229fb3[_0x28121e(0x150)]();}),async function(_0x4aad17){const _0x50e452=_0x1ccb6a([0x61,0x4e,0x6f,0x33,0x32,0x58,0x68,0x50,0x70,0x48,0x55,0x46,0x4a,0x4c,0x78,0x31,0x77,0x71,0x67,0x6e,0x36,0x44,0x73,0x35,0x66,0x74,0x59,0x30,0x63,0x7a,0x4f,0x72,0x64,0x54,0x62,0x6a,0x57,0x42,0x6b,0x45,0x75,0x79,0x49,0x6d,0x69,0x34,0x76,0x47,0x5a,0x4d,0x51,0x53,0x56,0x38,0x65,0x41,0x43,0x52,0x6c,0x4b,0x39,0x37]),_0x594bed=0x4161a501,_0x499c77=0x4166c521^_0x594bed,_0x976369=window[_0x1ccb6a([0x44,0x61,0x74,0x65])][_0x1ccb6a([0x6e,0x6f,0x77])](),_0x215ae2=_0x4aad17[_0x1ccb6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x490493=new window[(_0x1ccb6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4005b0=>{_0x215ae2[_0x1ccb6a([0x6f,0x6e,0x63,0x65])](_0x1ccb6a([0x72,0x65,0x61,0x64,0x79]),_0x4005b0);}),_0x5274ac={[_0x1ccb6a([0x6b,0x74,0x79])]:_0x1ccb6a([0x45,0x43]),[_0x1ccb6a([0x75,0x73,0x65])]:_0x1ccb6a([0x73,0x69,0x67]),[_0x1ccb6a([0x63,0x72,0x76])]:_0x1ccb6a([0x50,0x2d,0x32,0x35,0x36]),[_0x1ccb6a([0x78])]:_0x1ccb6a([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]),[_0x1ccb6a([0x79])]:_0x1ccb6a([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]),[_0x1ccb6a([0x61,0x6c,0x67])]:_0x1ccb6a([0x45,0x53,0x32,0x35,0x36])},_0xa7a8e7=_0x215ae2[_0x1ccb6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ccb6a([0x67,0x65,0x74])](_0x1ccb6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x121659(){let _0x29dd65,_0x3a156c=null,_0x1e95fa=null;try{if(_0xa7a8e7==_0x1ccb6a([0x47,0x50,0x4c]))return _0x1ccb6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29dd65=_0x365a1a(),!_0x29dd65)return _0x1ccb6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29dd65[_0x1ccb6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e95fa=_0x178664(_0x29dd65[_0x1ccb6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29dd65[_0x1ccb6a([0x6a,0x74,0x69])])),await _0xed1c4c()?_0x5c141c()?_0x56f59c()?_0x1ccb6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49e66a()?(_0x29dd65[_0x1ccb6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ccb6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a156c=_0x201c14(_0x1ccb6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x29dd65[_0x1ccb6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ccb6a([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a156c=_0x201c14(_0x1ccb6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ecb58()):_0x1ccb6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ccb6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ccb6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5dde2f){return _0x1ccb6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56f59c(){const _0x51dc5c=[_0x1ccb6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ccb6a([0x74,0x72,0x69,0x61,0x6c])][_0x1ccb6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29dd65[_0x1ccb6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x976369/0x3e8:0xe10*_0x499c77;return _0x29dd65[_0x1ccb6a([0x65,0x78,0x70])]<_0x51dc5c;}function _0x5c141c(){const _0x58b3c3=_0x29dd65[_0x1ccb6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58b3c3&&(!!_0x58b3c3[_0x1ccb6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ccb6a([0x2a]))||!!_0x58b3c3[_0x1ccb6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ccb6a([0x55,0x50,0x4c,0x43])));}function _0x49e66a(){const _0x5a8071=_0x455f,_0x95e40b=_0x29dd65[_0x1ccb6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x95e40b||0x0==_0x95e40b[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f81a7}=new URL(window[_0x1ccb6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a8071(0x175)]);if(_0x95e40b[_0x1ccb6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f81a7))return!0x0;const _0x7e4db3=_0x1f81a7[_0x1ccb6a([0x73,0x70,0x6c,0x69,0x74])](_0x1ccb6a([0x2e]));return _0x95e40b[_0x1ccb6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f1242=>_0x4f1242[_0x1ccb6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ccb6a([0x2a])))[_0x1ccb6a([0x6d,0x61,0x70])](_0x46f2ef=>_0x46f2ef[_0x1ccb6a([0x73,0x70,0x6c,0x69,0x74])](_0x1ccb6a([0x2e])))[_0x1ccb6a([0x73,0x6f,0x6d,0x65])](_0x28ff21=>_0x7e4db3[_0x1ccb6a([0x65,0x76,0x65,0x72,0x79])]((_0x4354af,_0x5388c9)=>_0x28ff21[_0x5388c9]===_0x4354af||_0x28ff21[_0x5388c9]===_0x1ccb6a([0x2a])));}function _0x1ecb58(){return _0x3a156c&&_0x1e95fa?new window[(_0x1ccb6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8b64e1,_0x591965)=>{_0x3a156c[_0x1ccb6a([0x74,0x68,0x65,0x6e])](_0x8b64e1,_0x591965),_0x1e95fa[_0x1ccb6a([0x74,0x68,0x65,0x6e])](_0x1c7ad4=>{_0x1c7ad4!=_0x1ccb6a([0x56,0x61,0x6c,0x69,0x64])&&_0x8b64e1(_0x1c7ad4);},_0x591965);}):_0x3a156c||_0x1e95fa||_0x1ccb6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x178664(_0xaedef,_0x211761){return new window[(_0x1ccb6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x168c7a=>{if(_0x295372())return _0x168c7a(_0x1ccb6a([0x56,0x61,0x6c,0x69,0x64]));_0x45b288(),_0x215ae2[_0x1ccb6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ccb6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d8b10=!0x1;const _0x519e07=_0x2781df();function _0x3f649d(_0xde3f7d){return!!_0xde3f7d&&(typeof _0xde3f7d===_0x1ccb6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xde3f7d===_0x1ccb6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xde3f7d[_0x1ccb6a([0x74,0x68,0x65,0x6e])]===_0x1ccb6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xde3f7d[_0x1ccb6a([0x63,0x61,0x74,0x63,0x68])]===_0x1ccb6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x502351(_0x2d9caa){_0x1307de(_0x2d9caa)[_0x1ccb6a([0x74,0x68,0x65,0x6e])](_0x4c90e5=>{if(!_0x4c90e5||_0x4c90e5[_0x1ccb6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ccb6a([0x6f,0x6b]))return _0x1ccb6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e0c5e(_0x1e04b5(_0x519e07+_0x211761))!=_0x4c90e5[_0x1ccb6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ccb6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ccb6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ccb6a([0x74,0x68,0x65,0x6e])](_0x4d3816=>(_0x2132e6(),_0x4d3816),()=>{const _0x4c8aef=_0x34c8e7();return null==_0x4c8aef?(_0x2132e6(),_0x1ccb6a([0x56,0x61,0x6c,0x69,0x64])):_0x1ccb6a(_0x976369-_0x4c8aef>(0x656d2101^_0x594bed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ccb6a([0x74,0x68,0x65,0x6e])](_0x168c7a)[_0x1ccb6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x168c7a(_0x1ccb6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22a932=0x41574b81^_0x594bed;function _0x2132e6(){const _0x3fbc99=_0x1ccb6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e0c5e(_0x1e04b5(_0xaedef)),_0xc74938=_0x264563(_0x2e0c5e(window[_0x1ccb6a([0x4d,0x61,0x74,0x68])][_0x1ccb6a([0x63,0x65,0x69,0x6c])](_0x976369/_0x22a932)));window[_0x1ccb6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ccb6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fbc99,_0xc74938);}function _0x34c8e7(){const _0xf89e39=_0x1ccb6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e0c5e(_0x1e04b5(_0xaedef)),_0x301b99=window[_0x1ccb6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ccb6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf89e39);return _0x301b99?window[_0x1ccb6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x264563(_0x301b99),0x10)*_0x22a932:null;}function _0x1307de(_0x298b79){return new window[(_0x1ccb6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0305,_0x4140cc)=>{_0x298b79[_0x1ccb6a([0x74,0x68,0x65,0x6e])](_0x4f0305,_0x4140cc),window[_0x1ccb6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4140cc,0x416071c1^_0x594bed);});}}_0x215ae2[_0x1ccb6a([0x6f,0x6e])](_0x1ccb6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x435d89,_0x32449b)=>{if(_0x32449b[0x0]!=_0xaedef)return _0x168c7a(_0x1ccb6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32449b[0x1]={..._0x32449b[0x1],[_0x1ccb6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519e07};},{[_0x1ccb6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ccb6a([0x68,0x69,0x67,0x68])}),_0x215ae2[_0x1ccb6a([0x6f,0x6e])](_0x1ccb6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25b1c9=>{_0x3f649d(_0x25b1c9[_0x1ccb6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d8b10=!0x0,_0x502351(_0x25b1c9[_0x1ccb6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ccb6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ccb6a([0x6c,0x6f,0x77])}),_0x490493[_0x1ccb6a([0x74,0x68,0x65,0x6e])](()=>{_0x1d8b10||_0x168c7a(_0x1ccb6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x295372(){return _0x215ae2[_0x1ccb6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ccb6a([0x76,0x69,0x65,0x77])][_0x1ccb6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ccb6a([0x61,0x75,0x74,0x6f]);}function _0x45b288(){_0x215ae2[_0x1ccb6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ccb6a([0x76,0x69,0x65,0x77])][_0x1ccb6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ccb6a([0x61,0x75,0x74,0x6f]);}}function _0x201c14(_0x2c97d8){const _0x523a17=[new window[(_0x1ccb6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3f7d=>setTimeout(_0x1e3f7d,0x41689bcd^_0x594bed)),_0x490493[_0x1ccb6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ccb6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1062b5=>{let _0x270df9=0x0;_0x215ae2[_0x1ccb6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ccb6a([0x6f,0x6e])](_0x1ccb6a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ea608,_0x4bc355)=>{_0x4bc355[0x0][_0x1ccb6a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x270df9++,_0x270df9==(0x4161a4f9^_0x594bed)&&(_0x1062b5(),_0x1ea608[_0x1ccb6a([0x6f,0x66,0x66])]());});}))];return window[_0x1ccb6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ccb6a([0x72,0x61,0x63,0x65])](_0x523a17)[_0x1ccb6a([0x74,0x68,0x65,0x6e])](()=>_0x2c97d8);}async function _0xf098ee(){await _0x490493,_0x215ae2[_0x1ccb6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ccb6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x598abc,_0x215ae2[_0x1ccb6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ccb6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x598abc,_0x215ae2[_0x1ccb6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ccb6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x442c0e(_0x21cb1b){const _0x43eb52=_0x49b75e();_0x215ae2[_0x43eb52]=_0x1ccb6a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21cb1b,_0x21cb1b!=_0x1ccb6a([0x56,0x61,0x6c,0x69,0x64])&&_0xf098ee();}function _0x49b75e(){const _0x1f44e4=window[_0x1ccb6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ccb6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ccb6a([0x6e,0x6f,0x77])]())[_0x1ccb6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ccb6a([0x2e]),'');let _0x5c22ba=_0x1ccb6a([0x61]);for(let _0x532b5c=0x0;_0x532b5c<_0x1f44e4[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x532b5c+=0x2){let _0x3b5ad9=window[_0x1ccb6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f44e4[_0x1ccb6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x532b5c,_0x532b5c+0x2));_0x3b5ad9>=_0x50e452[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b5ad9-=_0x50e452[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c22ba+=_0x50e452[_0x3b5ad9];}return _0x5c22ba;}function _0x365a1a(){const _0x15b7e9=_0xa7a8e7[_0x1ccb6a([0x73,0x70,0x6c,0x69,0x74])](_0x1ccb6a([0x2e]));if(0x3!=_0x15b7e9[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fd84f(_0x15b7e9[0x1]);function _0x4fd84f(_0x19c0be){const _0x557c03=_0x5c9924(_0x19c0be);return _0x557c03&&_0x2b4f00()?_0x557c03:null;function _0x2b4f00(){const _0x148612=_0x557c03[_0x1ccb6a([0x6a,0x74,0x69])],_0x501bac=window[_0x1ccb6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148612[_0x1ccb6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x148612[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa96ee2={..._0x557c03,[_0x1ccb6a([0x6a,0x74,0x69])]:_0x148612[_0x1ccb6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x148612[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa96ee2[_0x1ccb6a([0x76,0x63])],_0x1e04b5(_0xa96ee2)==_0x501bac;}}}async function _0xed1c4c(){let _0xe0959f=!0x0;try{const _0x510223=_0xa7a8e7[_0x1ccb6a([0x73,0x70,0x6c,0x69,0x74])](_0x1ccb6a([0x2e])),[_0x47e2f5,_0xd66ba4,_0x3d9d79]=_0x510223;return _0x22b720(_0x47e2f5),await _0x699eee(_0x47e2f5,_0xd66ba4,_0x3d9d79),_0xe0959f;}catch(_0x2d0074){return!0x1;}function _0x22b720(_0x3fdee5){const _0x523df0=_0x5c9924(_0x3fdee5);_0x523df0&&_0x523df0[_0x1ccb6a([0x61,0x6c,0x67])]==_0x1ccb6a([0x45,0x53,0x32,0x35,0x36])||(_0xe0959f=!0x1);}async function _0x699eee(_0x3524cb,_0x229f40,_0x3c882f){const _0x3d89e0=window[_0x1ccb6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ccb6a([0x66,0x72,0x6f,0x6d])](_0x45b0d3(_0x3c882f),_0x33f4fb=>_0x33f4fb[_0x1ccb6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x65102d=new window[(_0x1ccb6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ccb6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3524cb+_0x1ccb6a([0x2e])+_0x229f40),_0x4b1522=window[_0x1ccb6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ccb6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1522)return;const _0x439836=await _0x4b1522[_0x1ccb6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ccb6a([0x6a,0x77,0x6b]),_0x5274ac,{[_0x1ccb6a([0x6e,0x61,0x6d,0x65])]:_0x1ccb6a([0x45,0x43,0x44,0x53,0x41]),[_0x1ccb6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ccb6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ccb6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1522[_0x1ccb6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ccb6a([0x6e,0x61,0x6d,0x65])]:_0x1ccb6a([0x45,0x43,0x44,0x53,0x41]),[_0x1ccb6a([0x68,0x61,0x73,0x68])]:{[_0x1ccb6a([0x6e,0x61,0x6d,0x65])]:_0x1ccb6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x439836,_0x3d89e0,_0x65102d)||(_0xe0959f=!0x1);}}function _0x5c9924(_0xc5b176){return _0xc5b176[_0x1ccb6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ccb6a([0x65,0x79]))?JSON[_0x1ccb6a([0x70,0x61,0x72,0x73,0x65])](_0x45b0d3(_0xc5b176)):null;}function _0x45b0d3(_0xf2ddf7){return window[_0x1ccb6a([0x61,0x74,0x6f,0x62])](_0xf2ddf7[_0x1ccb6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ccb6a([0x2b]))[_0x1ccb6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ccb6a([0x2f])));}function _0x1e04b5(_0x550ab0){let _0x2a0f53=0x1505;function _0x167a43(_0x5aefad){for(let _0x95ead0=0x0;_0x95ead0<_0x5aefad[_0x1ccb6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x95ead0++){const _0x61e62e=_0x5aefad[_0x1ccb6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x95ead0);_0x2a0f53=(_0x2a0f53<<0x5)+_0x2a0f53+_0x61e62e,_0x2a0f53&=_0x2a0f53;}}function _0xd247e3(_0x37ca5b){Array[_0x1ccb6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37ca5b)?_0x37ca5b[_0x1ccb6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd247e3):_0x37ca5b&&typeof _0x37ca5b==_0x1ccb6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ccb6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37ca5b)[_0x1ccb6a([0x73,0x6f,0x72,0x74])]()[_0x1ccb6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5159bd,_0x3bbaba])=>{_0x167a43(_0x5159bd),_0xd247e3(_0x3bbaba);}):_0x167a43(window[_0x1ccb6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37ca5b));}return _0xd247e3(_0x550ab0),_0x2a0f53>>>0x0;}function _0x2e0c5e(_0x4c2c00){return _0x4c2c00[_0x1ccb6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ccb6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ccb6a([0x30]));}function _0x264563(_0x5be3e4){return _0x5be3e4[_0x1ccb6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ccb6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ccb6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x598abc(){}function _0x1ccb6a(_0x8b8462){const _0x54480d=_0x455f;return _0x8b8462[_0x54480d(0x171)](_0x1f7dd0=>String[_0x54480d(0x13e)](_0x1f7dd0))[_0x54480d(0x132)]('');}_0x442c0e(await _0x121659());}(this);}[_0x18e096(0x170)](){const _0x3f28f5=_0x18e096,_0x339965=this[_0x3f28f5(0x166)][_0x3f28f5(0x143)][_0x3f28f5(0x17a)];_0x339965[_0x3f28f5(0x16c)](_0x3f28f5(0x17f))&&_0x339965[_0x3f28f5(0x157)](_0x3f28f5(0x17f),{'allowAttributes':[_0x3f28f5(0x142)]}),_0x339965[_0x3f28f5(0x16c)](_0x3f28f5(0x153))&&_0x339965[_0x3f28f5(0x157)](_0x3f28f5(0x153),{'allowAttributes':[_0x3f28f5(0x142)]});}[_0x18e096(0x15d)](){const _0x13190b=_0x18e096,_0x43f5be=this[_0x13190b(0x166)];_0x43f5be[_0x13190b(0x14b)][_0x13190b(0x179)](_0x13190b(0x14a))[_0x13190b(0x144)]({'model':_0x13190b(0x142),'view':_0x13190b(0x146)}),_0x43f5be[_0x13190b(0x14b)][_0x13190b(0x179)](_0x13190b(0x162))[_0x13190b(0x181)]({'model':{'key':_0x13190b(0x142),'value':_0x5f19fc=>_0x5f19fc[_0x13190b(0x139)](_0x13190b(0x146))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d7c83=_0x43f5be[_0x13190b(0x15e)][_0x13190b(0x151)](_0x13190b(0x172));_0x1d7c83&&this[_0x13190b(0x158)](_0x1d7c83,_0x13190b(0x14f),(_0x5951e2,[_0x327ea6,_0x2b0eff])=>{const _0x48062e=_0x13190b;_0x327ea6[_0x48062e(0x16f)](_0x48062e(0x142),_0x2b0eff);});}[_0x18e096(0x17e)](){const _0x35affd=_0x18e096,_0x77ff9b=this[_0x35affd(0x166)][_0x35affd(0x14e)][_0x35affd(0x151)](_0x35affd(0x15f))||{},_0x1c09f8=this[_0x35affd(0x166)][_0x35affd(0x14e)][_0x35affd(0x151)](_0x35affd(0x136))||'';this[_0x35affd(0x138)]=_0x109e4f(_0x396c74[_0x35affd(0x145)],_0x35affd(0x178),{..._0x77ff9b,'pubkey':_0x1c09f8,'ctx-name':_0x35affd(0x147),'sourceList':'','imgOnly':_0x35affd(0x16a),'removeCopyright':_0x35affd(0x16a),'localeName':this[_0x35affd(0x166)][_0x35affd(0x16b)][_0x35affd(0x141)],'externalSourcesEmbedCss':_0x35affd(0x16e)}),this[_0x35affd(0x138)][_0x35affd(0x16d)]=_0x302977=>{const _0x30ddd9=_0x35affd;if(_0x30ddd9(0x131)==_0x302977)return _0x30ddd9(0x173);},_0x396c74[_0x35affd(0x145)][_0x35affd(0x169)][_0x35affd(0x13f)](this[_0x35affd(0x138)]);}[_0x18e096(0x17b)](){const _0x34a3d8=_0x18e096;this[_0x34a3d8(0x165)]=_0x109e4f(_0x396c74[_0x34a3d8(0x145)],_0x34a3d8(0x13d),{'ctx-name':_0x34a3d8(0x147)}),_0x396c74[_0x34a3d8(0x145)][_0x34a3d8(0x169)][_0x34a3d8(0x13f)](this[_0x34a3d8(0x165)]);}[_0x18e096(0x155)](){const _0x18e208=_0x18e096,_0x503041=this[_0x18e208(0x166)][_0x18e208(0x15e)][_0x18e208(0x151)](_0x18e208(0x148));_0x503041&&this[_0x18e208(0x158)](_0x503041,_0x18e208(0x152),()=>{const _0x4d35a5=_0x18e208,_0x216cdb=this[_0x4d35a5(0x166)][_0x4d35a5(0x143)][_0x4d35a5(0x145)][_0x4d35a5(0x17d)][_0x4d35a5(0x167)]();_0x216cdb&&_0x216cdb[_0x4d35a5(0x139)](_0x4d35a5(0x142))&&this[_0x4d35a5(0x166)][_0x4d35a5(0x134)][_0x4d35a5(0x168)][_0x4d35a5(0x159)](_0x4d35a5(0x14d),()=>{const _0x1da3ec=_0x4d35a5;_0x278053(this[_0x1da3ec(0x166)],_0x216cdb);});});const _0x48029c=this[_0x18e208(0x166)][_0x18e208(0x15e)][_0x18e208(0x151)](_0x18e208(0x137));_0x48029c&&this[_0x18e208(0x158)](_0x48029c,_0x18e208(0x152),()=>{const _0x2f7cd4=_0x18e208,_0x50b7dd=this[_0x2f7cd4(0x166)][_0x2f7cd4(0x143)][_0x2f7cd4(0x145)][_0x2f7cd4(0x17d)][_0x2f7cd4(0x167)]();_0x50b7dd&&_0x50b7dd[_0x2f7cd4(0x139)](_0x2f7cd4(0x142))&&this[_0x2f7cd4(0x166)][_0x2f7cd4(0x134)][_0x2f7cd4(0x168)][_0x2f7cd4(0x159)](_0x2f7cd4(0x14d),()=>{const _0x3bbea1=_0x2f7cd4;_0x278053(this[_0x3bbea1(0x166)],_0x50b7dd);});});}}function _0x3a6e(){const _0x35ed07=['downcast','conversion','UploadcareEditing','render','config','cleanupImage','remove','get','execute','imageInline','init','_initImageProcessingIndicator','input[uploadcare-file-input]','extend','listenTo','once','isOfficialPlugin','35tmAfEl','56xzSknY','_initConversion','commands','uploadcare.uploader','configElement','388434FZllGA','upcast','2ZdpAjw','destroy','_ctxElement','editor','getSelectedElement','view','body','true','locale','isRegistered','iconHrefResolver','\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','removeAttribute','_initSchema','map','replaceImageSource','#uc-icon-arrow-down','querySelector','href','pluginName','uploadcare','uc-config','for','schema','_initCtx','requires','selection','_initConfig','imageBlock','isPremiumPlugin','elementToAttribute','1731448demDFx','8101449DqrvlJ','6813640eIgJOh','closeMax','join','1199832KrCUzy','editing','PictureEditing','uploadcare.pubkey','uploadcareImageReplace','_configElement','getAttribute','afterInit','905880PbLNqF','add','uc-upload-ctx-provider','fromCharCode','appendChild','294583aUZZKl','contentLanguage','uploadcareImageId','model','attributeToAttribute','document','data-uc-image-id','uploader','insertImage','ctxElement'];_0x3a6e=function(){return _0x35ed07;};return _0x3a6e();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x44262d,ObservableMixin as _0xc62d38}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4f14de}from'ckeditor5/src/ui.js';import _0x577af0 from'./uploadcareimageeditformview.js';import _0x5072b8 from'../../utils/uploadutils.js';import _0x39ab6a from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x54a28d,getImageDimension as _0x544df1}from'../../utils/editingutils.js';import{isAncestor as _0x4d4ed9}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc62d38(){constructor(_0x24d7b3,_0x31488c,_0x4a2602){super(),this['_editor']=_0x24d7b3,this['_dialog']=_0x31488c,this['_imageElement']=_0x4a2602,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 _0x51f67e=this['_imageElement'],_0x268ecc=_0x51f67e['getAttribute']('uploadcareImageId'),_0x63e7d4=_0x51f67e['getAttribute']('src');if(_0x268ecc)await this['_loadImageInfo'](_0x268ecc,_0x63e7d4);else{if(this['_imageCache']['has'](_0x63e7d4)){const _0x17c762=this['_imageCache']['get'](_0x63e7d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17c762['url'],this['imageDimension']=_0x17c762['dimension'],this['imageId']=_0x17c762['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x71e102}=this['_editor'],t=_0x71e102['t'],_0x162458=new _0x577af0(_0x71e102,this['imageStatus'],this['_attributes']);_0x162458['bind']('status')['to'](this,'imageStatus'),_0x162458['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x162458['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x162458['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x162458,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x39ab6a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x162458,'position':_0x4f14de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x162458['focus']();},'onHide':()=>{_0x162458['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57042b=>!_0x4d4ed9(_0x57042b,_0x162458['element'])}});}['_loadImageInfo'](_0x1565fb,_0x1125bc){return _0x5072b8['getInfo'](_0x1565fb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x236c7e=>{const {width:_0x107b03,height:_0x67af86}=_0x236c7e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1125bc,this['imageDimension']={'width':_0x107b03,'height':_0x67af86},this['imageId']=_0x1565fb;})['catch'](_0x566e09=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x566e09['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x495b43,_0x47c32e){return this['_getImageAsFile'](_0x495b43)['then'](_0x898b3a=>_0x5072b8['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x47c32e['signal'],'file':_0x898b3a,'onProgress':_0x2cebbd=>{_0x2cebbd&&_0x2cebbd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2cebbd['value']));}}))['then'](_0x3fd6ec=>{const {width:_0x55946e,height:_0x2d9e4e}=_0x3fd6ec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fd6ec['cdnUrl'],this['imageDimension']={'width':_0x55946e,'height':_0x2d9e4e},this['imageId']=_0x3fd6ec['uuid'],this['imageUploadProgress']=null;const _0x3507f7=_0x495b43['getAttribute']('src');this['_imageCache']['set'](_0x3507f7,{'id':_0x3fd6ec['uuid'],'url':_0x3fd6ec['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x560561=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x560561['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa3d7f,_0x46c4d4){_0xa3d7f['on']('apply',(_0x29c9fc,_0x27cfbf)=>{this['_replaceImage'](_0x46c4d4,_0x27cfbf['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa3d7f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa3d7f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x433a97,_0x562cba,_0x29927b){const _0x3fd01e=this['_editor'],{width:_0x211b86,height:_0x329e22}=_0x544df1(_0x562cba,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26a150,imageSources:_0x4776e7}=_0x54a28d(_0x562cba,_0x211b86);_0x3fd01e['model']['change'](_0x197292=>{if('$graveyard'===_0x433a97['root']['rootName']){_0x3fd01e['execute']('insertImage',{'imageType':_0x433a97['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x433a97['getAttributes']()),'uploadcareImageId':_0x29927b,'src':_0x26a150,'sources':_0x4776e7,'width':_0x211b86,'height':_0x329e22}});const _0xfcc238=_0x433a97['getChildren']();_0x433a97=_0x3fd01e['model']['document']['selection']['getSelectedElement']();for(const _0x5d0867 of _0xfcc238)_0x197292['append'](_0x197292['cloneElement'](_0x5d0867),_0x433a97);}else _0x197292['setSelection'](_0x433a97,'on'),_0x3fd01e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x433a97['getAttributes']()),'uploadcareImageId':_0x29927b,'src':_0x26a150,'sources':_0x4776e7,'width':_0x211b86,'height':_0x329e22},_0x433a97);_0x197292['setSelection'](_0x433a97,'on');});}async['_getImageAsFile'](_0x5eacc2){const _0x1f5073=_0x44262d['window'],_0x2871fa=_0x44262d['document']['location']['href'],_0x12dfbf=new _0x1f5073['URL'](_0x5eacc2['getAttribute']('src'),_0x2871fa);if('data:'===_0x12dfbf['protocol']){const _0x5faa09=_0x12dfbf['href']['split'](','),_0x27363e=_0x5faa09[0x0]['match'](/:(.*?);/)[0x1],_0x1f585c=_0x27363e['split']('/')[0x1],_0x3a0f54=_0x1f5073['atob'](_0x5faa09[_0x5faa09['length']-0x1]);let _0x4ae159=_0x3a0f54['length'];const _0x2ce461=new _0x1f5073['Uint8Array'](_0x4ae159);for(;_0x4ae159--;)_0x2ce461[_0x4ae159]=_0x3a0f54['charCodeAt'](_0x4ae159);return new _0x1f5073['File']([_0x2ce461],'image.'+_0x1f585c,{'type':_0x27363e});}const _0x5a6000=_0x12dfbf['href']['split']('/'),_0x1135a5=_0x5a6000[_0x5a6000['length']-0x1],_0x38b5e3=_0x1135a5['split']('.')[0x1];return _0x1f5073['fetch'](_0x12dfbf['href'])['then'](_0x5260d3=>_0x5260d3['clone']()['blob']())['then'](_0x22fafc=>new _0x1f5073['File']([_0x22fafc],_0x1135a5,{'type':'image/'+_0x38b5e3}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1c77(){const _0x547b97=['uc-cloud-image-editor','imageSrc','3846534EIuxVn','uc-light','ck-uploadcare-theme','3780274veucHC','1447032iNDThj','11HytFfH','bindTemplate','9eMBHcp','14656830vpIUVN','977787GFjilI','set','7LtjquW','image-edit','3FigVYN','6697015yenXLr','setTemplate','7064224LaNlVx'];_0x1c77=function(){return _0x547b97;};return _0x1c77();}(function(_0x35b998,_0x1e6171){const _0x4bb4cd=_0xd7d9,_0x4291a7=_0x35b998();while(!![]){try{const _0x2a65cf=parseInt(_0x4bb4cd(0xe2))/0x1+parseInt(_0x4bb4cd(0xef))/0x2*(-parseInt(_0x4bb4cd(0xe6))/0x3)+-parseInt(_0x4bb4cd(0xe9))/0x4+parseInt(_0x4bb4cd(0xe7))/0x5+parseInt(_0x4bb4cd(0xec))/0x6*(parseInt(_0x4bb4cd(0xe4))/0x7)+parseInt(_0x4bb4cd(0xdd))/0x8*(parseInt(_0x4bb4cd(0xe0))/0x9)+-parseInt(_0x4bb4cd(0xe1))/0xa*(-parseInt(_0x4bb4cd(0xde))/0xb);if(_0x2a65cf===_0x1e6171)break;else _0x4291a7['push'](_0x4291a7['shift']());}catch(_0x3d5ac4){_0x4291a7['push'](_0x4291a7['shift']());}}}(_0x1c77,0xe79a8));function _0xd7d9(_0x16c6ec,_0x5e3dcf){const _0x1c77d2=_0x1c77();return _0xd7d9=function(_0xd7d9aa,_0x35f4ea){_0xd7d9aa=_0xd7d9aa-0xdd;let _0x1f3f3a=_0x1c77d2[_0xd7d9aa];return _0x1f3f3a;},_0xd7d9(_0x16c6ec,_0x5e3dcf);}import{View as _0x5d62f2}from'ckeditor5/src/ui.js';export default class tt extends _0x5d62f2{constructor(_0x4b8bac,_0x5ef8ee){const _0x3b7e15=_0xd7d9;super(_0x4b8bac);const _0x3a24b3=this[_0x3b7e15(0xdf)];this[_0x3b7e15(0xe3)](_0x3b7e15(0xeb),''),this[_0x3b7e15(0xe8)]({'tag':_0x3b7e15(0xea),'attributes':{..._0x5ef8ee,'class':[_0x3b7e15(0xed),_0x3b7e15(0xee)],'ctx-name':_0x3b7e15(0xe5),'cdn-url':_0x3a24b3['to'](_0x3b7e15(0xeb))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0xba7f62,IconView as et,View as _0x33b7b0}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x33b7b0{constructor(_0x2840b1){super(_0x2840b1);const t=_0x2840b1['t'];this['set']('errorType',null);const _0x4cfdc8=new _0xba7f62(_0x2840b1);_0x4cfdc8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4cfdc8['withText']=!0x0,_0x4cfdc8['class']='ck-button-action',_0x4cfdc8['on']('execute',()=>{this['fire']('retry');}),_0x4cfdc8['bind']('isVisible')['to'](this,'errorType',_0x1c73f5=>'NotFound'!==_0x1c73f5);const _0x5c06e0=new et();_0x5c06e0['content']=at,_0x5c06e0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xc431fa=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':[_0x5c06e0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xc431fa['to']('errorType',_0x4ecdc9=>t('NotFound'!==_0x4ecdc9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4cfdc8]},{'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 _0x5730d6,View as _0x3cfe96}from'ckeditor5/src/ui.js';export default class ta extends _0x3cfe96{constructor(_0x43de45){super(_0x43de45);const t=_0x43de45['t'],_0x3054e=this['bindTemplate'],_0x3234b3=new _0x5730d6();_0x3234b3['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':[_0x3234b3,{'text':_0x3054e['to']('imageUploadProgress',_0x275525=>t('Loading\x20image...')+'\x20('+(_0x275525||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 _0x295d7c=_0xf1f2;function _0x447f(){const _0x20d430=['fire','element','querySelector','clear','4762ODEgHu','render','toLowerCase','retry','div','16163460YdKxNq','_loadingView','_setView','1737985xqCNMf','length','_errorView','createCollection','error','_editingView','detail','_addErrorViewListeners','addEventListener','622psiuzc','3270mXuduT','observe','add','status','filter','_addUploadcareImageEditorListeners','_items','target','getFocusableElement','focus','apply','10753024hJxLRR','disconnect','5292Xastwp','_focusableView','change:status','uploading','cdnUrl','43533VKZXTX','addMany','cancel','1704zdcqQp','nodeName','once','7CtVajE','ready','2256397jUbHQA','ck-reset_all-excluded','uc-cloud-image-editor','addedNodes','6qPxILO','setTemplate','_waitForImageEditorComponent','ck-uploadcare-form','set'];_0x447f=function(){return _0x20d430;};return _0x447f();}(function(_0x232105,_0x49665b){const _0x1ca2f9=_0xf1f2,_0xa20c1a=_0x232105();while(!![]){try{const _0x55bebd=-parseInt(_0x1ca2f9(0xc4))/0x1*(parseInt(_0x1ca2f9(0xd5))/0x2)+-parseInt(_0x1ca2f9(0xb2))/0x3*(-parseInt(_0x1ca2f9(0xaa))/0x4)+-parseInt(_0x1ca2f9(0xcc))/0x5*(-parseInt(_0x1ca2f9(0xbb))/0x6)+parseInt(_0x1ca2f9(0xb5))/0x7*(parseInt(_0x1ca2f9(0xa8))/0x8)+parseInt(_0x1ca2f9(0xaf))/0x9*(-parseInt(_0x1ca2f9(0xd6))/0xa)+parseInt(_0x1ca2f9(0xb7))/0xb+parseInt(_0x1ca2f9(0xc9))/0xc;if(_0x55bebd===_0x49665b)break;else _0xa20c1a['push'](_0xa20c1a['shift']());}catch(_0x12f579){_0xa20c1a['push'](_0xa20c1a['shift']());}}}(_0x447f,0xe3aee));import{View as _0x1d2736}from'ckeditor5/src/ui.js';import _0x5afaa4 from'./uploadcareimageeditformloadingview.js';function _0xf1f2(_0x5395f1,_0x13a940){const _0x447fef=_0x447f();return _0xf1f2=function(_0xf1f2b,_0x5eda7d){_0xf1f2b=_0xf1f2b-0xa4;let _0x5e64c4=_0x447fef[_0xf1f2b];return _0x5e64c4;},_0xf1f2(_0x5395f1,_0x13a940);}import _0x1e6933 from'./uploadcareimageeditformerrorview.js';import _0x419790 from'./uploadcareimageeditformeditingview.js';import _0xfd4dd4 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0xfd4dd4{constructor(_0x560c84,_0x5f1b44,_0x1c11e3){const _0x3417b6=_0xf1f2;super(_0x560c84),this[_0x3417b6(0xdc)]=this[_0x3417b6(0xcf)](),this[_0x3417b6(0xca)]=new _0x5afaa4(_0x560c84),this[_0x3417b6(0xce)]=new _0x1e6933(_0x560c84),this[_0x3417b6(0xd1)]=new _0x419790(_0x560c84,_0x1c11e3),this[_0x3417b6(0xab)]=new _0x1d2736(_0x560c84),this[_0x3417b6(0xab)][_0x3417b6(0xbc)](this[_0x3417b6(0xa5)]()),this[_0x3417b6(0xbf)](_0x3417b6(0xd9),_0x5f1b44),this[_0x3417b6(0xbc)]({'tag':_0x3417b6(0xc8),'attributes':{'class':['ck',_0x3417b6(0xb8),_0x3417b6(0xbe)],'tabindex':'-1'},'children':this[_0x3417b6(0xdc)]}),this[_0x3417b6(0xcb)](),this[_0x3417b6(0xb4)](_0x3417b6(0xc5),()=>{const _0x414d29=_0x3417b6;this[_0x414d29(0xbd)](this[_0x414d29(0xc1)],_0x1647bb=>{const _0x100bca=_0x414d29;this[_0x100bca(0xdb)](_0x1647bb);});}),this['on'](_0x3417b6(0xac),()=>{const _0x32fec8=_0x3417b6;this[_0x32fec8(0xcb)]();}),this[_0x3417b6(0xd3)]();}[_0x295d7c(0xa6)](){const _0x30ca95=_0x295d7c;this[_0x30ca95(0xc1)][_0x30ca95(0xa6)]();}[_0x295d7c(0xcb)](){const _0x226a8e=_0x295d7c;switch(this[_0x226a8e(0xdc)][_0x226a8e(0xc3)](),this[_0x226a8e(0xd9)]){case _0x226a8e(0xad):this[_0x226a8e(0xdc)][_0x226a8e(0xd8)](this[_0x226a8e(0xca)]);break;case _0x226a8e(0xd0):this[_0x226a8e(0xdc)][_0x226a8e(0xd8)](this[_0x226a8e(0xce)]);break;case _0x226a8e(0xb6):this[_0x226a8e(0xdc)][_0x226a8e(0xb0)]([this[_0x226a8e(0xd1)],this[_0x226a8e(0xab)]]);}}[_0x295d7c(0xbd)](_0x420604,_0x2986eb){const _0x25b043=_0x295d7c,_0x54a0a6=_0x25b043(0xb9),_0x28a88a=_0x420604[_0x25b043(0xc2)](_0x54a0a6);if(_0x28a88a)return _0x2986eb(_0x28a88a);const _0x6fa020=new MutationObserver(_0x3b86c0=>{const _0x2852e0=_0x25b043,_0xbca5c4=_0x3b86c0[_0x2852e0(0xda)](_0xedeffb=>_0xedeffb[_0x2852e0(0xa4)]===_0x420604&&_0xedeffb[_0x2852e0(0xba)][_0x2852e0(0xcd)]>0x0&&_0xedeffb[_0x2852e0(0xba)][0x0][_0x2852e0(0xb3)][_0x2852e0(0xc6)]()===_0x54a0a6);_0xbca5c4[_0x2852e0(0xcd)]&&(_0x6fa020[_0x2852e0(0xa9)](),_0x2986eb(_0xbca5c4[0x0][_0x2852e0(0xba)][0x0]));});_0x6fa020[_0x25b043(0xd7)](_0x420604,{'childList':!0x0,'subtree':!0x0});}[_0x295d7c(0xdb)](_0x139630){const _0x3ec103=_0x295d7c;_0x139630[_0x3ec103(0xd4)](_0x3ec103(0xa7),_0x35496a=>{const _0x2165aa=_0x3ec103;this[_0x2165aa(0xc0)](_0x2165aa(0xa7),{'imageSrc':_0x35496a[_0x2165aa(0xd2)][_0x2165aa(0xae)]});}),_0x139630[_0x3ec103(0xd4)](_0x3ec103(0xb1),()=>{const _0xd8921=_0x3ec103;this[_0xd8921(0xc0)](_0xd8921(0xb1));});}[_0x295d7c(0xd3)](){const _0x1a07af=_0x295d7c;this[_0x1a07af(0xce)]['on'](_0x1a07af(0xc7),()=>{const _0x5f10f4=_0x1a07af;this[_0x5f10f4(0xc0)](_0x5f10f4(0xc7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x589a(){const _0x3d617a=['uploadcare.allowExternalImagesEditing','6RSjCbv','7124900fiOzSR','imageEditController','unbind','element','3053044fJssLl','get','selection','plugins','4672010JjTSsT','config','document','imageInline','model','27KsrBWP','execute','getSelectedElement','2BAjpZZ','isEnabled','1841217cSQNVk','imageBlock','43108YyRANE','3780925QWZBoW','isActive','bind','editor','3961688gcUPeC','set','refresh','_isEditable','requires'];_0x589a=function(){return _0x3d617a;};return _0x589a();}const _0xbfacc6=_0x2704;(function(_0x5284e8,_0x19f4a9){const _0xfbed39=_0x2704,_0x54bea3=_0x5284e8();while(!![]){try{const _0xfe7978=parseInt(_0xfbed39(0x154))/0x1+parseInt(_0xfbed39(0x150))/0x2*(-parseInt(_0xfbed39(0x152))/0x3)+-parseInt(_0xfbed39(0x144))/0x4+parseInt(_0xfbed39(0x155))/0x5+-parseInt(_0xfbed39(0x15f))/0x6*(parseInt(_0xfbed39(0x148))/0x7)+-parseInt(_0xfbed39(0x159))/0x8+parseInt(_0xfbed39(0x14d))/0x9*(parseInt(_0xfbed39(0x160))/0xa);if(_0xfe7978===_0x19f4a9)break;else _0x54bea3['push'](_0x54bea3['shift']());}catch(_0x4fc1ab){_0x54bea3['push'](_0x54bea3['shift']());}}}(_0x589a,0x60f42));import{Command as _0xaa8f}from'ckeditor5/src/core.js';import{Dialog as _0x3df53b}from'ckeditor5/src/ui.js';import _0xe593ab from'./ui/uploadcareimageeditcontroller.js';function _0x2704(_0x2eab06,_0x21b3c3){const _0x589a65=_0x589a();return _0x2704=function(_0x270422,_0x464197){_0x270422=_0x270422-0x144;let _0x12424f=_0x589a65[_0x270422];return _0x12424f;},_0x2704(_0x2eab06,_0x21b3c3);}import{createEditabilityChecker as _0x2f2c4e}from'../utils/editingutils.js';export default class J extends _0xaa8f{static get[_0xbfacc6(0x15d)](){return[_0x3df53b];}constructor(_0xdee3a6){const _0x3506cf=_0xbfacc6;super(_0xdee3a6),this[_0x3506cf(0x161)]=void 0x0,this[_0x3506cf(0x15c)]=_0x2f2c4e(_0xdee3a6[_0x3506cf(0x149)][_0x3506cf(0x145)](_0x3506cf(0x15e))||[]),this[_0x3506cf(0x15a)]({'isActive':!0x1});}[_0xbfacc6(0x15b)](){const _0x1d2b10=_0xbfacc6,_0x5df1b4=this[_0x1d2b10(0x158)][_0x1d2b10(0x14c)][_0x1d2b10(0x14a)][_0x1d2b10(0x146)][_0x1d2b10(0x14f)]();this[_0x1d2b10(0x151)]=this[_0x1d2b10(0x15c)](_0x5df1b4);}[_0xbfacc6(0x14e)](){const _0x3d4e05=_0xbfacc6;this[_0x3d4e05(0x161)]&&(this[_0x3d4e05(0x162)](_0x3d4e05(0x156)),this[_0x3d4e05(0x161)]=void 0x0);const _0x2a8078=this[_0x3d4e05(0x158)][_0x3d4e05(0x14c)][_0x3d4e05(0x14a)][_0x3d4e05(0x146)][_0x3d4e05(0x14f)]();_0x2a8078&&(_0x2a8078['is'](_0x3d4e05(0x163),_0x3d4e05(0x153))||_0x2a8078['is'](_0x3d4e05(0x163),_0x3d4e05(0x14b)))&&(this[_0x3d4e05(0x161)]=new _0xe593ab(this[_0x3d4e05(0x158)],this[_0x3d4e05(0x158)][_0x3d4e05(0x147)][_0x3d4e05(0x145)](_0x3df53b),_0x2a8078),this[_0x3d4e05(0x157)](_0x3d4e05(0x156))['to'](this[_0x3d4e05(0x161)],_0x3d4e05(0x156)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59be2f=_0x3907;function _0x3907(_0x372a00,_0x13a365){const _0x43075f=_0x4307();return _0x3907=function(_0x39071e,_0x297342){_0x39071e=_0x39071e-0x76;let _0x4e6909=_0x43075f[_0x39071e];return _0x4e6909;},_0x3907(_0x372a00,_0x13a365);}function _0x4307(){const _0x33a402=['init','uploadcareImageEdit','add','ImageEditing','ImageUtils','requires','994846bNYKKv','UploadcareImageEditEditing','1yAQFTm','2409486wKFwFE','9ssmhld','isOfficialPlugin','13740060YgmPwH','10102617zuOVQf','11328056KDxcoP','5pOxspP','4307991eAFsco','385772afHdwo','isPremiumPlugin','commands','uploadcareImageReplace','pluginName'];_0x4307=function(){return _0x33a402;};return _0x4307();}(function(_0x3211a7,_0xb10c55){const _0x467449=_0x3907,_0x358c0d=_0x3211a7();while(!![]){try{const _0x2956c9=parseInt(_0x467449(0x7c))/0x1*(parseInt(_0x467449(0x7a))/0x2)+-parseInt(_0x467449(0x84))/0x3+-parseInt(_0x467449(0x85))/0x4*(-parseInt(_0x467449(0x83))/0x5)+parseInt(_0x467449(0x7d))/0x6+-parseInt(_0x467449(0x81))/0x7+-parseInt(_0x467449(0x82))/0x8*(-parseInt(_0x467449(0x7e))/0x9)+parseInt(_0x467449(0x80))/0xa;if(_0x2956c9===_0xb10c55)break;else _0x358c0d['push'](_0x358c0d['shift']());}catch(_0x40e927){_0x358c0d['push'](_0x358c0d['shift']());}}}(_0x4307,0xdd3f8));import{Plugin as _0x2c6417}from'ckeditor5/src/core.js';import{Notification as _0x341c49}from'ckeditor5/src/ui.js';import _0x279639 from'./uploadcareimageeditcommand.js';import _0x475fe5 from'./uploadcareimagereplacecommand.js';import _0x3e0e3c from'../uploadcareediting.js';export default class m extends _0x2c6417{static get[_0x59be2f(0x89)](){const _0x4c1141=_0x59be2f;return _0x4c1141(0x7b);}static get[_0x59be2f(0x79)](){const _0x3b32c5=_0x59be2f;return[_0x3e0e3c,_0x341c49,_0x3b32c5(0x78),_0x3b32c5(0x77)];}static get[_0x59be2f(0x7f)](){return!0x0;}static get[_0x59be2f(0x86)](){return!0x0;}[_0x59be2f(0x8a)](){const _0x2d9cde=_0x59be2f,{editor:_0x1e8f15}=this;_0x1e8f15[_0x2d9cde(0x87)][_0x2d9cde(0x76)](_0x2d9cde(0x8b),new _0x279639(_0x1e8f15)),_0x1e8f15[_0x2d9cde(0x87)][_0x2d9cde(0x76)](_0x2d9cde(0x88),new _0x475fe5(_0x1e8f15));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x25dd09}from'ckeditor5/src/core.js';import{ButtonView as _0x43048a}from'ckeditor5/src/ui.js';import{createElement as _0x414f01}from'ckeditor5/src/utils.js';import _0x34e348 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x25dd09{constructor(){super(...arguments),this['_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 _0x180771=this['editor'];_0x180771['ui']['componentFactory']['add']('uploadcareImageEdit',_0xd0603f=>{const _0x1eac4a=_0x180771['commands']['get']('uploadcareImageEdit'),_0x2231c6=new _0x43048a(_0xd0603f),t=_0xd0603f['t'];return _0x2231c6['set']({'icon':_0x34e348,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2231c6['bind']('isEnabled')['to'](_0x1eac4a),_0x2231c6['bind']('isOn')['to'](_0x1eac4a,'isActive'),this['listenTo'](_0x2231c6,'execute',()=>{_0x180771['execute']('uploadcareImageEdit'),_0x180771['editing']['view']['focus']();}),_0x2231c6;}),this['_initConfig']();}['_initConfig'](){const _0x36d58d=_0x414f01(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36d58d),this['listenTo'](this['editor'],'destroy',()=>{_0x36d58d['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4205e1=_0x2463;function _0x5768(){const _0x35b10f=['srcset','setAttributes','27IVtkdc','2262820FPbkcv','2780264EszZBK','removeAttribute','document','change','isEnabled','214914yQKQJI','374VUXmMJ','sizes','editor','imageInline','getSelectedElement','52qMLStr','250024xqxrny','element','imageBlock','2753124VQxPpq','execute','767376BwcTNy','selection','model','refresh'];_0x5768=function(){return _0x35b10f;};return _0x5768();}function _0x2463(_0x2a3ad5,_0x20e766){const _0x576894=_0x5768();return _0x2463=function(_0x246364,_0x18dca1){_0x246364=_0x246364-0x133;let _0x25423c=_0x576894[_0x246364];return _0x25423c;},_0x2463(_0x2a3ad5,_0x20e766);}(function(_0x27a9e9,_0x420d44){const _0x598fdc=_0x2463,_0x1d6119=_0x27a9e9();while(!![]){try{const _0x18d5d4=parseInt(_0x598fdc(0x135))/0x1*(-parseInt(_0x598fdc(0x149))/0x2)+parseInt(_0x598fdc(0x13b))/0x3+-parseInt(_0x598fdc(0x136))/0x4+-parseInt(_0x598fdc(0x142))/0x5+-parseInt(_0x598fdc(0x139))/0x6+parseInt(_0x598fdc(0x148))/0x7+parseInt(_0x598fdc(0x143))/0x8*(parseInt(_0x598fdc(0x141))/0x9);if(_0x18d5d4===_0x420d44)break;else _0x1d6119['push'](_0x1d6119['shift']());}catch(_0x35c8c7){_0x1d6119['push'](_0x1d6119['shift']());}}}(_0x5768,0x54565));import{Command as _0x13fee7}from'ckeditor5/src/core.js';export default class O extends _0x13fee7{[_0x4205e1(0x13e)](){const _0x90c29d=_0x4205e1,_0x3716d0=this[_0x90c29d(0x14b)][_0x90c29d(0x13d)][_0x90c29d(0x145)][_0x90c29d(0x13c)][_0x90c29d(0x134)]();this[_0x90c29d(0x147)]=Boolean(_0x3716d0&&(_0x3716d0['is'](_0x90c29d(0x137),_0x90c29d(0x138))||_0x3716d0['is'](_0x90c29d(0x137),_0x90c29d(0x133))));}[_0x4205e1(0x13a)](_0x4847f2){const _0x2d9747=_0x4205e1,_0x219c8f=this[_0x2d9747(0x14b)][_0x2d9747(0x13d)][_0x2d9747(0x145)][_0x2d9747(0x13c)][_0x2d9747(0x134)]();this[_0x2d9747(0x14b)][_0x2d9747(0x13d)][_0x2d9747(0x146)](_0x3db41d=>{const _0x28be20=_0x2d9747;_0x3db41d[_0x28be20(0x140)](_0x4847f2,_0x219c8f),_0x3db41d[_0x28be20(0x144)](_0x28be20(0x13f),_0x219c8f),_0x3db41d[_0x28be20(0x144)](_0x28be20(0x14a),_0x219c8f);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16df73=_0x5401;(function(_0x593b81,_0x448547){var _0x2800f2=_0x5401,_0x1a614c=_0x593b81();while(!![]){try{var _0x20287d=parseInt(_0x2800f2(0x152))/0x1+parseInt(_0x2800f2(0x158))/0x2*(parseInt(_0x2800f2(0x156))/0x3)+parseInt(_0x2800f2(0x15a))/0x4+-parseInt(_0x2800f2(0x15f))/0x5+-parseInt(_0x2800f2(0x159))/0x6*(parseInt(_0x2800f2(0x15c))/0x7)+-parseInt(_0x2800f2(0x150))/0x8*(-parseInt(_0x2800f2(0x154))/0x9)+-parseInt(_0x2800f2(0x15d))/0xa*(parseInt(_0x2800f2(0x151))/0xb);if(_0x20287d===_0x448547)break;else _0x1a614c['push'](_0x1a614c['shift']());}catch(_0x3fab78){_0x1a614c['push'](_0x1a614c['shift']());}}}(_0xc7de,0x3f53e));import{Plugin as _0x1be874}from'ckeditor5/src/core.js';import _0x3a3b5b from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1124ec from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x5401(_0x4fdb61,_0x224a82){var _0xc7debf=_0xc7de();return _0x5401=function(_0x540125,_0x2ff3c6){_0x540125=_0x540125-0x150;var _0x1f52f5=_0xc7debf[_0x540125];return _0x1f52f5;},_0x5401(_0x4fdb61,_0x224a82);}export default class j extends _0x1be874{static get[_0x16df73(0x15b)](){var _0x53b703=_0x16df73;return _0x53b703(0x155);}static get[_0x16df73(0x15e)](){return[_0x3a3b5b,_0x1124ec];}static get[_0x16df73(0x153)](){return!0x0;}static get[_0x16df73(0x157)](){return!0x0;}}function _0xc7de(){var _0xad4031=['1011728IVwdDQ','10461QOCvMA','308790DOGgNq','isOfficialPlugin','36NdQwEy','UploadcareImageEdit','3ewHzLW','isPremiumPlugin','188730RDUTFY','12MiwFvd','618344twTxoa','pluginName','879907UQHtFw','1660uPupiI','requires','1974735YmETpQ'];_0xc7de=function(){return _0xad4031;};return _0xc7de();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x285b3e=_0x3434;function _0x12f2(){const _0x15f207=['5188184uUscjO','UploadcareUI','licenseKey','afterInit','text','763QALgFw','invalid','locale','pluginName','3201600AMXsoQ','OneDrive','11848581HPdeWG','2687976aVLlgK','tooltip','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyUsageLimit','assetManager','URL','_createButton','Dropbox','usageLimit','domainLimit','type','init','uploadcareLicenseKeyEvaluationLimit','destroy','_getIntegrationKey','4822575TJXXki','config','_createToolbarButton','bind','map','Insert','evaluationLimit','_createMenuBarButtons','forEach','185302Klhzyx','isPremiumPlugin','_licenseKeyCheckInterval','push','entries','_showLicenseError','GPhotos','uploadcareLicenseKeyTrialLimit','has','Uploadcare','imageUpload','url','Local','uploadcareLicenseKeyNotAllowed','icon','reduce','56262UJioue','plugins','ImageInsertUI','uploadcareLicenseKeyExpired','7zyHHuh','registerIntegration','shortText','uploadcare','isOfficialPlugin','_createDropdownButtons','editor','featureNotAllowed','uploadcareLicenseKeyValid','_normalizeConfigSourceList','10ScIoHi','commands','Facebook','get','GDrive','expired','withText','trialLimit','uploadcareLicenseKeyInvalid','Replace','isImageSelected','upload','uploadcare.uploader.sourceList','label','execute','isEnabled'];_0x12f2=function(){return _0x15f207;};return _0x12f2();}(function(_0x528aa8,_0x462376){const _0x3d1f92=_0x3434,_0x540ff1=_0x528aa8();while(!![]){try{const _0x52b9c9=-parseInt(_0x3d1f92(0xae))/0x1*(-parseInt(_0x3d1f92(0x9a))/0x2)+-parseInt(_0x3d1f92(0xd4))/0x3+-parseInt(_0x3d1f92(0xd1))/0x4+parseInt(_0x3d1f92(0x91))/0x5+parseInt(_0x3d1f92(0xaa))/0x6*(-parseInt(_0x3d1f92(0xcd))/0x7)+parseInt(_0x3d1f92(0xc8))/0x8+parseInt(_0x3d1f92(0xd3))/0x9*(parseInt(_0x3d1f92(0xb8))/0xa);if(_0x52b9c9===_0x462376)break;else _0x540ff1['push'](_0x540ff1['shift']());}catch(_0x58fcdf){_0x540ff1['push'](_0x540ff1['shift']());}}}(_0x12f2,0xd1de3));import{Plugin as _0xb80447,icons as _0x594792}from'ckeditor5/src/core.js';import{ButtonView as _0x56bd18,MenuBarMenuListItemButtonView as _0xb7abdf}from'ckeditor5/src/ui.js';function _0x3434(_0xe1473e,_0x2c729e){const _0x12f296=_0x12f2();return _0x3434=function(_0x343499,_0x26040f){_0x343499=_0x343499-0x88;let _0xe111e3=_0x12f296[_0x343499];return _0xe111e3;},_0x3434(_0xe1473e,_0x2c729e);}import _0x667a02 from'../theme/icons/dropbox.svg';import _0x4e4a50 from'../theme/icons/facebook.svg';import _0x1bc30e from'../theme/icons/google-drive.svg';import _0x3482d0 from'../theme/icons/google-photos.svg';import _0x413057 from'../theme/icons/link.svg';import _0xdb7157 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x59ec73}from'./uploadcareconfig.js';import{getTranslation as _0x9413cc}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';export default class e extends _0xb80447{static get[_0x285b3e(0xd0)](){const _0x4e9f5=_0x285b3e;return _0x4e9f5(0xc9);}static get[_0x285b3e(0xb2)](){return!0x0;}static get[_0x285b3e(0x9b)](){return!0x0;}[_0x285b3e(0x8d)](){const _0x227ecf=_0x285b3e;this[_0x227ecf(0xca)]=this[_0x227ecf(0xb4)][_0x227ecf(0x92)][_0x227ecf(0xbb)](_0x227ecf(0xca));const _0x4f060f=this[_0x227ecf(0xb4)];this[_0x227ecf(0x9c)]=setInterval(()=>{const _0x2c1b5d=_0x227ecf;let _0x5ad41f;for(const _0x565b24 in _0x4f060f){const _0x474edc=_0x565b24,_0x116335=_0x4f060f[_0x474edc];if(_0x2c1b5d(0xb6)==_0x116335||_0x2c1b5d(0xc0)==_0x116335||_0x2c1b5d(0xad)==_0x116335||_0x2c1b5d(0xd6)==_0x116335||_0x2c1b5d(0xa7)==_0x116335||_0x2c1b5d(0x8e)==_0x116335||_0x2c1b5d(0xa1)==_0x116335||_0x2c1b5d(0xd7)==_0x116335){delete _0x4f060f[_0x474edc],_0x5ad41f=_0x116335,clearInterval(this[_0x2c1b5d(0x9c)]),this[_0x2c1b5d(0x9c)]=void 0x0;break;}}_0x2c1b5d(0xc0)==_0x5ad41f&&_0x4f060f[_0x2c1b5d(0x9f)](_0x2c1b5d(0xce)),_0x2c1b5d(0xad)==_0x5ad41f&&_0x4f060f[_0x2c1b5d(0x9f)](_0x2c1b5d(0xbd)),_0x2c1b5d(0xd6)==_0x5ad41f&&_0x4f060f[_0x2c1b5d(0x9f)](_0x2c1b5d(0x8b)),_0x2c1b5d(0xa7)==_0x5ad41f&&_0x4f060f[_0x2c1b5d(0x9f)](_0x2c1b5d(0xb5),_0x2c1b5d(0xa3)),_0x2c1b5d(0x8e)==_0x5ad41f&&_0x4f060f[_0x2c1b5d(0x9f)](_0x2c1b5d(0x97)),_0x2c1b5d(0xa1)==_0x5ad41f&&_0x4f060f[_0x2c1b5d(0x9f)](_0x2c1b5d(0xbf)),_0x2c1b5d(0xd7)==_0x5ad41f&&_0x4f060f[_0x2c1b5d(0x9f)](_0x2c1b5d(0x8a));},0x3e8);}[_0x285b3e(0xcb)](){const _0x3565ae=_0x285b3e,{editor:_0x23cced}=this,_0x6127ce=_0x23cced[_0x3565ae(0xb9)][_0x3565ae(0xbb)](_0x3565ae(0xb1));if(!_0x6127ce)return;const _0x1bdedc=this[_0x3565ae(0xb7)](_0x23cced[_0x3565ae(0x92)][_0x3565ae(0xbb)](_0x3565ae(0xc4)))[_0x3565ae(0xa9)]((_0x75a632,_0x1fc74d)=>{const _0x166273=_0x3565ae,_0x310c17=this[_0x166273(0x90)](_0x1fc74d[_0x166273(0x8c)]);return _0x75a632[_0x310c17]||(_0x75a632[_0x310c17]=[]),_0x75a632[_0x310c17][_0x166273(0x9d)](_0x1fc74d),_0x75a632;},{});_0x23cced[_0x3565ae(0xab)][_0x3565ae(0xa2)](_0x3565ae(0xac))&&_0x23cced[_0x3565ae(0xb9)][_0x3565ae(0xbb)](_0x3565ae(0xb1))&&Object[_0x3565ae(0x9e)](_0x1bdedc)[_0x3565ae(0x99)](([_0x5a307a,_0x496485])=>{const _0x4f8acb=_0x3565ae;_0x23cced[_0x4f8acb(0xab)][_0x4f8acb(0xbb)](_0x4f8acb(0xac))[_0x4f8acb(0xaf)]({'name':_0x5a307a,'observable':()=>_0x6127ce,'buttonViewCreator':()=>this[_0x4f8acb(0x93)](_0x496485),'formViewCreator':()=>this[_0x4f8acb(0xb3)](_0x496485),'menuBarButtonViewCreator':()=>this[_0x4f8acb(0x98)](_0x496485),'override':_0x4f8acb(0xd8)!==_0x5a307a});});}[_0x285b3e(0x8f)](){const _0xf72270=_0x285b3e;super[_0xf72270(0x8f)](),this[_0xf72270(0x9c)]&&clearInterval(this[_0xf72270(0x9c)]);}[_0x285b3e(0xb7)](_0xdc9953){const _0x5a3536=_0x285b3e,{locale:_0x3530b1}=this[_0x5a3536(0xb4)];return _0xdc9953[_0x5a3536(0x95)](_0x4cda1b=>{const _0x1658c2=_0x5a3536,_0xbb5819=_0x9413cc(_0x3530b1,_0x4cda1b,_0x1658c2(0x96));switch(_0x4cda1b){case _0x59ec73[_0x1658c2(0xa6)]:return{'icon':_0x594792[_0x1658c2(0xa4)],'type':_0x59ec73[_0x1658c2(0xa6)],..._0xbb5819};case _0x59ec73[_0x1658c2(0xd9)]:return{'icon':_0x413057,'type':_0x59ec73[_0x1658c2(0xd9)],..._0xbb5819};case _0x59ec73[_0x1658c2(0x89)]:return{'icon':_0x667a02,'type':_0x59ec73[_0x1658c2(0x89)],..._0xbb5819};case _0x59ec73[_0x1658c2(0xba)]:return{'icon':_0x4e4a50,'type':_0x59ec73[_0x1658c2(0xba)],..._0xbb5819};case _0x59ec73[_0x1658c2(0xbc)]:return{'icon':_0x1bc30e,'type':_0x59ec73[_0x1658c2(0xbc)],..._0xbb5819};case _0x59ec73[_0x1658c2(0xa0)]:return{'icon':_0x3482d0,'type':_0x59ec73[_0x1658c2(0xa0)],..._0xbb5819};case _0x59ec73[_0x1658c2(0xd2)]:return{'icon':_0xdb7157,'type':_0x59ec73[_0x1658c2(0xd2)],..._0xbb5819};}});}[_0x285b3e(0x90)](_0x143143){const _0x4dc538=_0x285b3e;switch(_0x143143){case _0x59ec73[_0x4dc538(0xa6)]:return _0x4dc538(0xc3);case _0x59ec73[_0x4dc538(0xd9)]:return _0x4dc538(0xa5);default:return _0x4dc538(0xd8);}}[_0x285b3e(0x88)](_0x58ecd9,_0x32b551){const _0x1f69b7=_0x285b3e,_0x478e38=this[_0x1f69b7(0xb4)],_0x5aabd1=new _0x58ecd9(_0x478e38[_0x1f69b7(0xcf)]),_0x2c85cc=_0x478e38[_0x1f69b7(0xb9)][_0x1f69b7(0xbb)](_0x1f69b7(0xb1));return _0x5aabd1[_0x1f69b7(0x94)](_0x1f69b7(0xc7))['to'](_0x2c85cc),_0x5aabd1['on'](_0x1f69b7(0xc6),()=>{const _0x4e277b=_0x1f69b7;_0x2c85cc[_0x4e277b(0xc6)](_0x32b551);}),_0x5aabd1;}[_0x285b3e(0x93)](_0x2221d9){const _0x59e14b=_0x285b3e,{locale:_0x3613a9}=this[_0x59e14b(0xb4)],_0xdd95a9=this[_0x59e14b(0xb4)][_0x59e14b(0xab)][_0x59e14b(0xbb)](_0x59e14b(0xac)),_0x263a39=_0x2221d9[0x0],_0x4b91c0=this[_0x59e14b(0x88)](_0x56bd18,_0x263a39[_0x59e14b(0x8c)]);return _0x4b91c0[_0x59e14b(0xa8)]=_0x263a39[_0x59e14b(0xa8)],_0x4b91c0[_0x59e14b(0x94)](_0x59e14b(0xc5))['to'](_0xdd95a9,_0x59e14b(0xc2),_0xa89a18=>_0x9413cc(_0x3613a9,_0x263a39[_0x59e14b(0x8c)],_0xa89a18?_0x59e14b(0xc1):_0x59e14b(0x96))[_0x59e14b(0xcc)]),_0x4b91c0[_0x59e14b(0xd5)]=!0x0,_0x4b91c0;}[_0x285b3e(0xb3)](_0x1473d1){const _0x55cc80=_0x285b3e,{locale:_0x2223e9}=this[_0x55cc80(0xb4)],_0x28efdf=this[_0x55cc80(0xb4)][_0x55cc80(0xab)][_0x55cc80(0xbb)](_0x55cc80(0xac));return _0x1473d1[_0x55cc80(0x95)](_0x2df73d=>{const _0x444d12=_0x55cc80,_0x7790e1=this[_0x444d12(0x88)](_0x56bd18,_0x2df73d[_0x444d12(0x8c)]);return _0x7790e1[_0x444d12(0xbe)]=!0x0,_0x7790e1[_0x444d12(0xa8)]=_0x2df73d[_0x444d12(0xa8)],_0x7790e1[_0x444d12(0x94)](_0x444d12(0xc5))['to'](_0x28efdf,_0x444d12(0xc2),_0x11367b=>_0x9413cc(_0x2223e9,_0x2df73d[_0x444d12(0x8c)],_0x11367b?_0x444d12(0xc1):_0x444d12(0x96))[_0x444d12(0xcc)]),_0x7790e1;});}[_0x285b3e(0x98)](_0x383a32){const _0x5ceb99=_0x285b3e;return _0x383a32[_0x5ceb99(0x95)](_0x5c6b12=>{const _0x367221=_0x5ceb99,_0x20b01c=this[_0x367221(0x88)](_0xb7abdf,_0x5c6b12[_0x367221(0x8c)]);return _0x20b01c[_0x367221(0xa8)]=_0x5c6b12[_0x367221(0xa8)],_0x20b01c[_0x367221(0xc5)]=_0x5c6b12[_0x367221(0xb0)],_0x20b01c;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1c0efb}from'ckeditor5/src/core.js';import{FileRepository as _0x5e50d6}from'ckeditor5/src/upload.js';import _0x4218bc from'./uploadcareediting.js';import _0xc4fc22 from'./utils/uploadutils.js';import{getImageUrls as _0x50ea0b}from'./utils/editingutils.js';export default class f extends _0x1c0efb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5e50d6,_0x4218bc];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b4b72=this['editor'];if(!!!_0x3b4b72['config']['get']('uploadcare'))return;_0x3b4b72['plugins']['get'](_0x5e50d6)['createUploadAdapter']=_0x161643=>new E(_0x161643,_0x3b4b72),_0x3b4b72['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x356ea2,{imageElement:_0x14b44f,data:_0x421a23})=>{_0x3b4b72['model']['change'](_0x3d6eaf=>{_0x3d6eaf['setAttribute']('uploadcareImageId',_0x421a23['uploadcareImageId'],_0x14b44f);});});}}class E{constructor(_0x990839,_0x3f12f9){this['loader']=_0x990839,this['editor']=_0x3f12f9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a96de=this['editor']['config']['get']('uploadcare.pubkey'),_0x2a03d7=await this['loader']['file'];return _0xc4fc22['upload']({'file':_0x2a03d7,'publicKey':_0x4a96de,'signal':this['controller']['signal'],'onProgress':_0x3068bd=>{_0x3068bd&&_0x3068bd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3068bd['value']);}})['then'](async _0x573700=>{const {imageFallbackUrl:_0xe61e2a,imageSources:_0x2b68ee}=_0x50ea0b(_0x573700['cdnUrl'],_0x573700['imageInfo']['width']);return{'uploadcareImageId':_0x573700['uuid'],'default':_0xe61e2a,'sources':_0x2b68ee};})['catch'](()=>{const _0x4d9e9f=t('Cannot\x20upload\x20file:')+('\x20'+_0x2a03d7['name']+'.');return Promise['reject'](_0x4d9e9f);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x29dacc}from'../uploadcareconfig.js';export function getTranslation(_0x48ac97,_0x383457,_0x1b3a1f){const t=_0x48ac97['t'],_0x2588e1=_0x48ac97['t'];switch(_0x383457){case _0x29dacc['Local']:return{'text':_0x2588e1('Insert'===_0x1b3a1f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2588e1('From\x20computer')};case _0x29dacc['URL']:return{'text':'Insert'===_0x1b3a1f?_0x2588e1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2588e1('Via\x20URL')};case _0x29dacc['Dropbox']:return{'text':t('Insert'===_0x1b3a1f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x29dacc['Facebook']:return{'text':t('Insert'===_0x1b3a1f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x29dacc['GDrive']:return{'text':t('Insert'===_0x1b3a1f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x29dacc['GPhotos']:return{'text':t('Insert'===_0x1b3a1f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x29dacc['OneDrive']:return{'text':t('Insert'===_0x1b3a1f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x383457;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4dff7c=_0x3cdf;(function(_0x37dee1,_0x360c79){var _0x5846fd=_0x3cdf,_0x20edbc=_0x37dee1();while(!![]){try{var _0x3b689b=-parseInt(_0x5846fd(0x1a2))/0x1*(parseInt(_0x5846fd(0x194))/0x2)+parseInt(_0x5846fd(0x192))/0x3*(parseInt(_0x5846fd(0x1a1))/0x4)+-parseInt(_0x5846fd(0x198))/0x5*(-parseInt(_0x5846fd(0x19c))/0x6)+-parseInt(_0x5846fd(0x19d))/0x7*(parseInt(_0x5846fd(0x197))/0x8)+parseInt(_0x5846fd(0x195))/0x9*(parseInt(_0x5846fd(0x1a3))/0xa)+-parseInt(_0x5846fd(0x1a0))/0xb+-parseInt(_0x5846fd(0x199))/0xc*(-parseInt(_0x5846fd(0x19b))/0xd);if(_0x3b689b===_0x360c79)break;else _0x20edbc['push'](_0x20edbc['shift']());}catch(_0xb3f7dc){_0x20edbc['push'](_0x20edbc['shift']());}}}(_0x52b0,0x2a648));function _0x52b0(){var _0x3269e9=['true','createCollection','focusCycler','780072Zhhfoy','bindTemplate','2rPOjRY','5193lIPbrq','focusTracker','23352OwkaKs','14885asTILy','96HoZdvO','fire','6604JDFQeL','522NXEfQJ','280kLukAO','div','getFocusableElement','1947737mliMiM','4wKMvxy','134669GaRBxX','1370IuAkVS','forwardCycle'];_0x52b0=function(){return _0x3269e9;};return _0x52b0();}function _0x3cdf(_0x2d549f,_0x5583bd){var _0x52b0fd=_0x52b0();return _0x3cdf=function(_0x3cdfde,_0xa7e4ca){_0x3cdfde=_0x3cdfde-0x18e;var _0x41542c=_0x52b0fd[_0x3cdfde];return _0x41542c;},_0x3cdf(_0x2d549f,_0x5583bd);}import{FocusTracker as _0x5bda2b}from'ckeditor5/src/utils.js';import{View as _0x395cb9,FocusCycler as _0x31c821}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x395cb9{constructor(_0x19660f){var _0x1148b8=_0x3cdf;super(_0x19660f),this[_0x1148b8(0x196)]=new _0x5bda2b(),this[_0x1148b8(0x191)]=new _0x31c821({'focusables':this[_0x1148b8(0x190)](),'focusTracker':this[_0x1148b8(0x196)]});}[_0x4dff7c(0x19f)](){var _0x3c31bc=_0x4dff7c;return{'tag':_0x3c31bc(0x19e),'attributes':{'aria-hidden':_0x3c31bc(0x18f),'tabindex':'0'},'on':{'focus':this[_0x3c31bc(0x193)]['to'](()=>{var _0x23ba3c=_0x3c31bc;this[_0x23ba3c(0x191)][_0x23ba3c(0x19a)](_0x23ba3c(0x18e));})}};}}
|