@ckeditor/ckeditor5-uploadcare 47.5.0-alpha.0 → 47.5.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2c8c37=_0x456c;(function(_0x22bff4,_0x3859fc){const _0x39e66d=_0x456c,_0x5a21e7=_0x22bff4();while(!![]){try{const _0x2b955d=parseInt(_0x39e66d(0x14e))/0x1*(parseInt(_0x39e66d(0x15f))/0x2)+parseInt(_0x39e66d(0x129))/0x3+-parseInt(_0x39e66d(0x12b))/0x4*(-parseInt(_0x39e66d(0x14f))/0x5)+-parseInt(_0x39e66d(0x11e))/0x6+-parseInt(_0x39e66d(0x126))/0x7+parseInt(_0x39e66d(0x145))/0x8+parseInt(_0x39e66d(0x142))/0x9*(parseInt(_0x39e66d(0x131))/0xa);if(_0x2b955d===_0x3859fc)break;else _0x5a21e7['push'](_0x5a21e7['shift']());}catch(_0x433527){_0x5a21e7['push'](_0x5a21e7['shift']());}}}(_0x17df,0x5afd9));import{Plugin as _0x447c8a}from'ckeditor5/src/core.js';import{Dialog as _0x3fcf31}from'ckeditor5/src/ui.js';import{createElement as _0x597762,global as _0x18cabd,uid as _0x4f4101}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4d190d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5aedb0}from'./uploadcareuploadadapter.js';function _0x456c(_0x2eb00b,_0x22a174){const _0x17df3d=_0x17df();return _0x456c=function(_0x456cd6,_0xbb9c6b){_0x456cd6=_0x456cd6-0x10c;let _0x24d201=_0x17df3d[_0x456cd6];return _0x24d201;},_0x456c(_0x2eb00b,_0x22a174);}function _0x17df(){const _0x322208=['uploadcare','configElement','href','destroy','getSelectedElement','input[uploadcare-file-input]','imageInline','join','1DnxSPu','1175ykTchp','init','querySelector','execute','editing','fromCharCode','view','afterInit','upcast','pluginName','_initSchema','commands','data-uc-image-id','uploadcareImageReplace','locale','extend','211604pgKwfp','\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','#uc-icon-arrow-down','imageBlock','selection','appendChild','ctxElement','render','getAttribute','listenTo','conversion','uploadcare.pubkey','_ctxElement','closeMax','_initConfig','insertImage','_initConversion','UploadcareEditing','attributeToAttribute','2610462VszAoS','schema','downcast','_initCtx','_configElement','isRegistered','once','model','3135349kwPqkx','uploader-','replaceImageSource','439764iUhMWh','isPremiumPlugin','6732qaBxYz','map','uploadcare.uploader','uc-upload-ctx-provider','add','_initImageProcessingIndicator','5450Esireo','remove','contentLanguage','isOfficialPlugin','document','iconHrefResolver','uploadcareImageId','PictureEditing','requires','get','editor','elementToAttribute','config','true','ucContextId','uc-config','cleanupImage','10035cXWsjj','body','for','888fHxmfz'];_0x17df=function(){return _0x322208;};return _0x17df();}import{showImageProcessingIndicator as _0x43dfd6}from'./utils/editingutils.js';export class UploadcareEditing extends _0x447c8a{[_0x2c8c37(0x122)]=null;[_0x2c8c37(0x117)]=null;static get[_0x2c8c37(0x158)](){const _0x2809c5=_0x2c8c37;return _0x2809c5(0x11c);}static get[_0x2c8c37(0x139)](){const _0x3efe90=_0x2c8c37;return[_0x3efe90(0x138),_0x5aedb0,_0x3fcf31];}static get[_0x2c8c37(0x134)](){return!0x0;}static get[_0x2c8c37(0x12a)](){return!0x0;}[_0x2c8c37(0x13f)];get[_0x2c8c37(0x147)](){const _0x2ea46e=_0x2c8c37;return this[_0x2ea46e(0x122)];}get[_0x2c8c37(0x111)](){const _0x163fd4=_0x2c8c37;return this[_0x163fd4(0x117)];}constructor(_0x2855d0){const _0x4035d3=_0x2c8c37;super(_0x2855d0),this[_0x4035d3(0x13f)]=_0x4f4101();}[_0x2c8c37(0x150)](){const _0x1b5eb0=_0x2c8c37,_0x4633c2=this[_0x1b5eb0(0x13b)];_0x4633c2[_0x1b5eb0(0x15a)][_0x1b5eb0(0x12f)](_0x1b5eb0(0x146),new _0x4d190d(_0x4633c2));}[_0x2c8c37(0x156)](){const _0x520f61=_0x2c8c37;this[_0x520f61(0x159)](),this[_0x520f61(0x11b)](),this[_0x520f61(0x119)](),this[_0x520f61(0x121)](),this[_0x520f61(0x130)](),this[_0x520f61(0x114)](this[_0x520f61(0x13b)],_0x520f61(0x149),()=>{const _0x365ce1=_0x520f61;this[_0x365ce1(0x122)]&&(this[_0x365ce1(0x122)][_0x365ce1(0x132)](),this[_0x365ce1(0x122)]=null),this[_0x365ce1(0x117)]&&(this[_0x365ce1(0x117)][_0x365ce1(0x132)](),this[_0x365ce1(0x117)]=null);const _0x42a45d=_0x18cabd[_0x365ce1(0x135)][_0x365ce1(0x151)](_0x365ce1(0x14b));_0x42a45d&&_0x42a45d[_0x365ce1(0x132)]();}),async function(_0x140f05){const _0x3d3433=_0x6f2905([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x116559=0x535f8c3a,_0x4eed6d=0x53580cfa^_0x116559,_0x12b689=window[_0x6f2905([0x44,0x61,0x74,0x65])][_0x6f2905([0x6e,0x6f,0x77])](),_0xdbb631=_0x140f05[_0x6f2905([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd1b914=new window[(_0x6f2905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a51f8=>{_0xdbb631[_0x6f2905([0x6f,0x6e,0x63,0x65])](_0x6f2905([0x72,0x65,0x61,0x64,0x79]),_0x3a51f8);}),_0x2ef78a={[_0x6f2905([0x6b,0x74,0x79])]:_0x6f2905([0x45,0x43]),[_0x6f2905([0x75,0x73,0x65])]:_0x6f2905([0x73,0x69,0x67]),[_0x6f2905([0x63,0x72,0x76])]:_0x6f2905([0x50,0x2d,0x32,0x35,0x36]),[_0x6f2905([0x78])]:_0x6f2905([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]),[_0x6f2905([0x79])]:_0x6f2905([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]),[_0x6f2905([0x61,0x6c,0x67])]:_0x6f2905([0x45,0x53,0x32,0x35,0x36])},_0x7a5b38=_0xdbb631[_0x6f2905([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6f2905([0x67,0x65,0x74])](_0x6f2905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19db4c(){let _0x40cc1f,_0xc390ac=null,_0x1d8d9f=null;try{if(_0x7a5b38==_0x6f2905([0x47,0x50,0x4c]))return _0x6f2905([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40cc1f=_0x2a35b5(),!_0x40cc1f)return _0x6f2905([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40cc1f[_0x6f2905([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d8d9f=_0x1c4bc7(_0x40cc1f[_0x6f2905([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40cc1f[_0x6f2905([0x6a,0x74,0x69])])),await _0x56a466()?_0x2a37d6()?_0x2764f8()?_0x6f2905([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x717954()?(_0x40cc1f[_0x6f2905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6f2905([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc390ac=_0x318b2b(_0x6f2905([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a8c2a()):_0x6f2905([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6f2905([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6f2905([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6f2905([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2764f8(){const _0x49fd7c=[_0x6f2905([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6f2905([0x74,0x72,0x69,0x61,0x6c])][_0x6f2905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40cc1f[_0x6f2905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12b689/0x3e8:0xe10*_0x4eed6d;return _0x40cc1f[_0x6f2905([0x65,0x78,0x70])]<_0x49fd7c;}function _0x2a37d6(){const _0x1831e5=_0x40cc1f[_0x6f2905([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1831e5&&(!!_0x1831e5[_0x6f2905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f2905([0x2a]))||!!_0x1831e5[_0x6f2905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f2905([0x55,0x50,0x4c,0x43])));}function _0x717954(){const _0x1a5535=_0x456c,_0xfcaddf=_0x40cc1f[_0x6f2905([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfcaddf||0x0==_0xfcaddf[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44db6d}=new URL(window[_0x6f2905([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1a5535(0x148)]);if(_0xfcaddf[_0x6f2905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44db6d))return!0x0;const _0x2a1e8d=_0x44db6d[_0x6f2905([0x73,0x70,0x6c,0x69,0x74])](_0x6f2905([0x2e]));return _0xfcaddf[_0x6f2905([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x122872=>_0x122872[_0x6f2905([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f2905([0x2a])))[_0x6f2905([0x6d,0x61,0x70])](_0xcd3e6=>_0xcd3e6[_0x6f2905([0x73,0x70,0x6c,0x69,0x74])](_0x6f2905([0x2e])))[_0x6f2905([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5336ab=>_0x5336ab[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a1e8d[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6f2905([0x6d,0x61,0x70])](_0x259fc8=>Array(_0x2a1e8d[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x259fc8[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6f2905([0x66,0x69,0x6c,0x6c])](_0x259fc8[0x0]===_0x6f2905([0x2a])?_0x6f2905([0x2a]):'')[_0x6f2905([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x259fc8))[_0x6f2905([0x73,0x6f,0x6d,0x65])](_0x1db6b8=>_0x2a1e8d[_0x6f2905([0x65,0x76,0x65,0x72,0x79])]((_0x1bac14,_0xc5c7e6)=>_0x1db6b8[_0xc5c7e6]===_0x1bac14||_0x1db6b8[_0xc5c7e6]===_0x6f2905([0x2a])));}function _0x2a8c2a(){return _0xc390ac&&_0x1d8d9f?new window[(_0x6f2905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcb34ef,_0x5c36dd)=>{_0xc390ac[_0x6f2905([0x74,0x68,0x65,0x6e])](_0xcb34ef,_0x5c36dd),_0x1d8d9f[_0x6f2905([0x74,0x68,0x65,0x6e])](_0x42f984=>{_0x42f984!=_0x6f2905([0x56,0x61,0x6c,0x69,0x64])&&_0xcb34ef(_0x42f984);},_0x5c36dd);}):_0xc390ac||_0x1d8d9f||_0x6f2905([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c4bc7(_0x56a899,_0x53a2b9){return new window[(_0x6f2905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x289123=>{if(_0x1cf6fd())return _0x289123(_0x6f2905([0x56,0x61,0x6c,0x69,0x64]));_0x5e760f(),_0xdbb631[_0x6f2905([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6f2905([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x452277=!0x1;const _0x5cefec=_0x4f4101();function _0x4c056f(_0x280916){return!!_0x280916&&(typeof _0x280916===_0x6f2905([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x280916===_0x6f2905([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x280916[_0x6f2905([0x74,0x68,0x65,0x6e])]===_0x6f2905([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x280916[_0x6f2905([0x63,0x61,0x74,0x63,0x68])]===_0x6f2905([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53c7a1(_0x421e38){_0x2f4615(_0x421e38)[_0x6f2905([0x74,0x68,0x65,0x6e])](_0x42bab1=>{if(!_0x42bab1||_0x42bab1[_0x6f2905([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6f2905([0x6f,0x6b]))return _0x6f2905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e66e8(_0x486adc(_0x5cefec+_0x53a2b9))!=_0x42bab1[_0x6f2905([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6f2905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6f2905([0x56,0x61,0x6c,0x69,0x64]);})[_0x6f2905([0x74,0x68,0x65,0x6e])](_0x1b9923=>(_0x498a97(),_0x1b9923),()=>{const _0x31444f=_0x4187f4();return null==_0x31444f?(_0x498a97(),_0x6f2905([0x56,0x61,0x6c,0x69,0x64])):_0x6f2905(_0x12b689-_0x31444f>(0x7753083a^_0x116559)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6f2905([0x74,0x68,0x65,0x6e])](_0x289123)[_0x6f2905([0x63,0x61,0x74,0x63,0x68])](()=>{_0x289123(_0x6f2905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38f5c7=0x536962ba^_0x116559;function _0x498a97(){const _0x422d83=_0x6f2905([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e66e8(_0x486adc(_0x56a899)),_0xb8b4cd=_0x4577d7(_0x3e66e8(window[_0x6f2905([0x4d,0x61,0x74,0x68])][_0x6f2905([0x63,0x65,0x69,0x6c])](_0x12b689/_0x38f5c7)));window[_0x6f2905([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6f2905([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x422d83,_0xb8b4cd);}function _0x4187f4(){const _0x44293b=_0x6f2905([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e66e8(_0x486adc(_0x56a899)),_0x5c7dcd=window[_0x6f2905([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6f2905([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44293b);return _0x5c7dcd?window[_0x6f2905([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4577d7(_0x5c7dcd),0x10)*_0x38f5c7:null;}function _0x2f4615(_0x171e7f){return new window[(_0x6f2905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40aa6a,_0x14cb49)=>{_0x171e7f[_0x6f2905([0x74,0x68,0x65,0x6e])](_0x40aa6a,_0x14cb49),window[_0x6f2905([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14cb49,0x535e58fa^_0x116559);});}}_0xdbb631[_0x6f2905([0x6f,0x6e])](_0x6f2905([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x575faa,_0x16d97e)=>{if(_0x16d97e[0x0]!=_0x56a899)return _0x289123(_0x6f2905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16d97e[0x1]={..._0x16d97e[0x1],[_0x6f2905([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5cefec};},{[_0x6f2905([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6f2905([0x68,0x69,0x67,0x68])}),_0xdbb631[_0x6f2905([0x6f,0x6e])](_0x6f2905([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x138452=>{_0x4c056f(_0x138452[_0x6f2905([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x452277=!0x0,_0x53c7a1(_0x138452[_0x6f2905([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6f2905([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6f2905([0x6c,0x6f,0x77])}),_0xd1b914[_0x6f2905([0x74,0x68,0x65,0x6e])](()=>{_0x452277||_0x289123(_0x6f2905([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1cf6fd(){return _0xdbb631[_0x6f2905([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6f2905([0x76,0x69,0x65,0x77])][_0x6f2905([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6f2905([0x61,0x75,0x74,0x6f]);}function _0x5e760f(){_0xdbb631[_0x6f2905([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6f2905([0x76,0x69,0x65,0x77])][_0x6f2905([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6f2905([0x61,0x75,0x74,0x6f]);}}function _0x318b2b(_0x5cc000){const _0x159edd=[new window[(_0x6f2905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28d187=>setTimeout(_0x28d187,0x5356b2f6^_0x116559)),_0xd1b914[_0x6f2905([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6f2905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x154642=>{let _0x595a16=0x0;_0xdbb631[_0x6f2905([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f2905([0x6f,0x6e])](_0x6f2905([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x135491,_0x312965)=>{_0x312965[0x0][_0x6f2905([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x595a16++,_0x595a16==(0x535f89d2^_0x116559)&&(_0x154642(),_0x135491[_0x6f2905([0x6f,0x66,0x66])]());});}))];return window[_0x6f2905([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6f2905([0x72,0x61,0x63,0x65])](_0x159edd)[_0x6f2905([0x74,0x68,0x65,0x6e])](()=>_0x5cc000);}async function _0x21db05(){await _0xd1b914,_0xdbb631[_0x6f2905([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f2905([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x274dd4,_0xdbb631[_0x6f2905([0x6d,0x6f,0x64,0x65,0x6c])][_0x6f2905([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x274dd4,_0xdbb631[_0x6f2905([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6f2905([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ee85d(_0x1c3c24){const _0x3097a5=_0x1ba7a5();_0xdbb631[_0x3097a5]=_0x6f2905([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c3c24,_0x1c3c24!=_0x6f2905([0x56,0x61,0x6c,0x69,0x64])&&_0x21db05();}function _0x1ba7a5(){const _0x516223=window[_0x6f2905([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6f2905([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6f2905([0x6e,0x6f,0x77])]())[_0x6f2905([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6f2905([0x2e]),'');let _0xbfd90=_0x6f2905([0x68]);for(let _0x4dd70e=0x0;_0x4dd70e<_0x516223[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dd70e+=0x2){let _0x1771c7=window[_0x6f2905([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516223[_0x6f2905([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dd70e,_0x4dd70e+0x2));_0x1771c7>=_0x3d3433[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1771c7-=_0x3d3433[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xbfd90+=_0x3d3433[_0x1771c7];}return _0xbfd90;}function _0x2a35b5(){const _0x486d2b=_0x7a5b38[_0x6f2905([0x73,0x70,0x6c,0x69,0x74])](_0x6f2905([0x2e]));if(0x3!=_0x486d2b[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4058be(_0x486d2b[0x1]);function _0x4058be(_0x12efaa){const _0x3884ee=_0x1a386f(_0x12efaa);return _0x3884ee&&_0x299c54()?_0x3884ee:null;function _0x299c54(){const _0x5e6df1=_0x3884ee[_0x6f2905([0x6a,0x74,0x69])],_0x34c589=window[_0x6f2905([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e6df1[_0x6f2905([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e6df1[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xbe3256={..._0x3884ee,[_0x6f2905([0x6a,0x74,0x69])]:_0x5e6df1[_0x6f2905([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e6df1[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xbe3256[_0x6f2905([0x76,0x63])],_0x486adc(_0xbe3256)==_0x34c589;}}}async function _0x56a466(){let _0x323ec0=!0x0;try{const _0x232824=_0x7a5b38[_0x6f2905([0x73,0x70,0x6c,0x69,0x74])](_0x6f2905([0x2e])),[_0x217db6,_0x5ad12e,_0x11e2e9]=_0x232824;return _0x39a46a(_0x217db6),await _0x4e0e4b(_0x217db6,_0x5ad12e,_0x11e2e9),_0x323ec0;}catch{return!0x1;}function _0x39a46a(_0x4effc5){const _0x110f02=_0x1a386f(_0x4effc5);_0x110f02&&_0x110f02[_0x6f2905([0x61,0x6c,0x67])]==_0x6f2905([0x45,0x53,0x32,0x35,0x36])||(_0x323ec0=!0x1);}async function _0x4e0e4b(_0x27e141,_0x4a7123,_0x1ccb81){const _0x41264c=window[_0x6f2905([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6f2905([0x66,0x72,0x6f,0x6d])](_0x268250(_0x1ccb81),_0x207256=>_0x207256[_0x6f2905([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x114ea0=new window[(_0x6f2905([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6f2905([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27e141+_0x6f2905([0x2e])+_0x4a7123),_0x2322e0=window[_0x6f2905([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6f2905([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2322e0)return;const _0x700500=await _0x2322e0[_0x6f2905([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6f2905([0x6a,0x77,0x6b]),_0x2ef78a,{[_0x6f2905([0x6e,0x61,0x6d,0x65])]:_0x6f2905([0x45,0x43,0x44,0x53,0x41]),[_0x6f2905([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6f2905([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6f2905([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2322e0[_0x6f2905([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6f2905([0x6e,0x61,0x6d,0x65])]:_0x6f2905([0x45,0x43,0x44,0x53,0x41]),[_0x6f2905([0x68,0x61,0x73,0x68])]:{[_0x6f2905([0x6e,0x61,0x6d,0x65])]:_0x6f2905([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x700500,_0x41264c,_0x114ea0)||(_0x323ec0=!0x1);}}function _0x1a386f(_0x293e7c){return _0x293e7c[_0x6f2905([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6f2905([0x65,0x79]))?JSON[_0x6f2905([0x70,0x61,0x72,0x73,0x65])](_0x268250(_0x293e7c)):null;}function _0x268250(_0x30e3f9){return window[_0x6f2905([0x61,0x74,0x6f,0x62])](_0x30e3f9[_0x6f2905([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6f2905([0x2b]))[_0x6f2905([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6f2905([0x2f])));}function _0x486adc(_0x764cb2){let _0x134f25=0x1505;function _0x3aa5a3(_0x3c7f2e){for(let _0x2d81bd=0x0;_0x2d81bd<_0x3c7f2e[_0x6f2905([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d81bd++){const _0x4a2db4=_0x3c7f2e[_0x6f2905([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d81bd);_0x134f25=(_0x134f25<<0x5)+_0x134f25+_0x4a2db4,_0x134f25&=_0x134f25;}}function _0x57e5e9(_0x386081){Array[_0x6f2905([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x386081)?_0x386081[_0x6f2905([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57e5e9):_0x386081&&typeof _0x386081==_0x6f2905([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6f2905([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x386081)[_0x6f2905([0x73,0x6f,0x72,0x74])]()[_0x6f2905([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbfc266,_0x1d1a46])=>{_0x3aa5a3(_0xbfc266),_0x57e5e9(_0x1d1a46);}):_0x3aa5a3(window[_0x6f2905([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x386081));}return _0x57e5e9(_0x764cb2),_0x134f25>>>0x0;}function _0x3e66e8(_0x2dd553){return _0x2dd553[_0x6f2905([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6f2905([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6f2905([0x30]));}function _0x4577d7(_0x2fa3be){return _0x2fa3be[_0x6f2905([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6f2905([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6f2905([0x6a,0x6f,0x69,0x6e])]('');}function _0x274dd4(){}function _0x6f2905(_0xb258d3){const _0x3d2434=_0x456c;return _0xb258d3[_0x3d2434(0x12c)](_0x4eed6c=>String[_0x3d2434(0x154)](_0x4eed6c))[_0x3d2434(0x14d)]('');}_0x3ee85d(await _0x19db4c());}(this);}[_0x2c8c37(0x159)](){const _0x91f864=_0x2c8c37,_0x1f72e1=this[_0x91f864(0x13b)][_0x91f864(0x125)][_0x91f864(0x11f)];_0x1f72e1[_0x91f864(0x123)](_0x91f864(0x10e))&&_0x1f72e1[_0x91f864(0x15e)](_0x91f864(0x10e),{'allowAttributes':[_0x91f864(0x137)]}),_0x1f72e1[_0x91f864(0x123)](_0x91f864(0x14c))&&_0x1f72e1[_0x91f864(0x15e)](_0x91f864(0x14c),{'allowAttributes':[_0x91f864(0x137)]});}[_0x2c8c37(0x11b)](){const _0x2b3f51=_0x2c8c37,_0x5841bc=this[_0x2b3f51(0x13b)];_0x5841bc[_0x2b3f51(0x115)][_0x2b3f51(0x144)](_0x2b3f51(0x120))[_0x2b3f51(0x11d)]({'model':_0x2b3f51(0x137),'view':_0x2b3f51(0x15b)}),_0x5841bc[_0x2b3f51(0x115)][_0x2b3f51(0x144)](_0x2b3f51(0x157))[_0x2b3f51(0x13c)]({'model':{'key':_0x2b3f51(0x137),'value':_0x3297fd=>_0x3297fd[_0x2b3f51(0x113)](_0x2b3f51(0x15b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x31909a=_0x5841bc[_0x2b3f51(0x15a)][_0x2b3f51(0x13a)](_0x2b3f51(0x128));_0x31909a&&this[_0x2b3f51(0x114)](_0x31909a,_0x2b3f51(0x141),(_0x39469d,[_0x116ec0,_0x2b15b2])=>{const _0x1c8612=_0x2b3f51;_0x116ec0[_0x1c8612(0x10c)](_0x1c8612(0x137),_0x2b15b2);});}[_0x2c8c37(0x119)](){const _0xe82bcb=_0x2c8c37,_0x4784ef=this[_0xe82bcb(0x13b)][_0xe82bcb(0x13d)][_0xe82bcb(0x13a)](_0xe82bcb(0x12d))||{},_0x4fef1f=this[_0xe82bcb(0x13b)][_0xe82bcb(0x13d)][_0xe82bcb(0x13a)](_0xe82bcb(0x116))||'';this[_0xe82bcb(0x122)]=_0x597762(_0x18cabd[_0xe82bcb(0x135)],_0xe82bcb(0x140),{..._0x4784ef,'pubkey':_0x4fef1f,'ctx-name':_0xe82bcb(0x127)+this[_0xe82bcb(0x13f)],'sourceList':'','imgOnly':_0xe82bcb(0x13e),'removeCopyright':_0xe82bcb(0x13e),'localeName':this[_0xe82bcb(0x13b)][_0xe82bcb(0x15d)][_0xe82bcb(0x133)],'externalSourcesEmbedCss':_0xe82bcb(0x160)}),this[_0xe82bcb(0x122)][_0xe82bcb(0x136)]=_0x11b3ef=>{const _0x3161b4=_0xe82bcb;if(_0x3161b4(0x118)==_0x11b3ef)return _0x3161b4(0x10d);},_0x18cabd[_0xe82bcb(0x135)][_0xe82bcb(0x143)][_0xe82bcb(0x110)](this[_0xe82bcb(0x122)]);}[_0x2c8c37(0x121)](){const _0x20148a=_0x2c8c37;this[_0x20148a(0x117)]=_0x597762(_0x18cabd[_0x20148a(0x135)],_0x20148a(0x12e),{'ctx-name':_0x20148a(0x127)+this[_0x20148a(0x13f)]}),_0x18cabd[_0x20148a(0x135)][_0x20148a(0x143)][_0x20148a(0x110)](this[_0x20148a(0x117)]);}[_0x2c8c37(0x130)](){const _0x3097f4=_0x2c8c37,_0x3a1407=this[_0x3097f4(0x13b)][_0x3097f4(0x15a)][_0x3097f4(0x13a)](_0x3097f4(0x11a));_0x3a1407&&this[_0x3097f4(0x114)](_0x3a1407,_0x3097f4(0x152),()=>{const _0x3c1b28=_0x3097f4,_0x3f411e=this[_0x3c1b28(0x13b)][_0x3c1b28(0x125)][_0x3c1b28(0x135)][_0x3c1b28(0x10f)][_0x3c1b28(0x14a)]();_0x3f411e&&_0x3f411e[_0x3c1b28(0x113)](_0x3c1b28(0x137))&&this[_0x3c1b28(0x13b)][_0x3c1b28(0x153)][_0x3c1b28(0x155)][_0x3c1b28(0x124)](_0x3c1b28(0x112),()=>{const _0x428ce7=_0x3c1b28;_0x43dfd6(this[_0x428ce7(0x13b)],_0x3f411e);});});const _0x523c65=this[_0x3097f4(0x13b)][_0x3097f4(0x15a)][_0x3097f4(0x13a)](_0x3097f4(0x15c));_0x523c65&&this[_0x3097f4(0x114)](_0x523c65,_0x3097f4(0x152),()=>{const _0x3e84ae=_0x3097f4,_0x17c495=this[_0x3e84ae(0x13b)][_0x3e84ae(0x125)][_0x3e84ae(0x135)][_0x3e84ae(0x10f)][_0x3e84ae(0x14a)]();_0x17c495&&_0x17c495[_0x3e84ae(0x113)](_0x3e84ae(0x137))&&this[_0x3e84ae(0x13b)][_0x3e84ae(0x153)][_0x3e84ae(0x155)][_0x3e84ae(0x124)](_0x3e84ae(0x112),()=>{const _0x419618=_0x3e84ae;_0x43dfd6(this[_0x419618(0x13b)],_0x17c495);});});}}
|
|
23
|
+
const _0x5750e7=_0x334b;(function(_0xeb2752,_0x2721d3){const _0x5a718c=_0x334b,_0x441103=_0xeb2752();while(!![]){try{const _0x31b8b9=-parseInt(_0x5a718c(0x212))/0x1*(parseInt(_0x5a718c(0x203))/0x2)+parseInt(_0x5a718c(0x226))/0x3+-parseInt(_0x5a718c(0x1fd))/0x4+-parseInt(_0x5a718c(0x20f))/0x5+-parseInt(_0x5a718c(0x218))/0x6*(-parseInt(_0x5a718c(0x208))/0x7)+-parseInt(_0x5a718c(0x1fa))/0x8+-parseInt(_0x5a718c(0x20b))/0x9*(-parseInt(_0x5a718c(0x1eb))/0xa);if(_0x31b8b9===_0x2721d3)break;else _0x441103['push'](_0x441103['shift']());}catch(_0x21585e){_0x441103['push'](_0x441103['shift']());}}}(_0x6200,0xbbf7f));import{Plugin as _0x19d923}from'ckeditor5/src/core.js';import{Dialog as _0x3540d7}from'ckeditor5/src/ui.js';import{createElement as _0x58aa0a,global as _0x36498b,uid as _0x477bed}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x458b54}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2c3d09}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x45f8df}from'./utils/editingutils.js';function _0x6200(){const _0x752354=['_initConfig','destroy','getSelectedElement','add','uc-config','afterInit','config','UploadcareEditing','isRegistered','editing','uploadcare','appendChild','ctxElement','uploadcareImageId','elementToAttribute','fromCharCode','selection','PictureEditing','_initSchema','get','replaceImageSource','upcast','imageInline','8313290xprEjY','remove','conversion','input[uploadcare-file-input]','contentLanguage','extend','imageBlock','init','schema','isOfficialPlugin','#uc-icon-arrow-down','iconHrefResolver','insertImage','render','map','7219608dodLGi','removeAttribute','querySelector','5830948WHgirv','document','data-uc-image-id','closeMax','href','execute','46LfYMnp','_ctxElement','locale','ucContextId','for','196476QDDlXC','model','uploadcare.pubkey','27umPAob','join','_initConversion','uploadcareImageReplace','5348895vETIdB','attributeToAttribute','editor','9995XkmpwJ','view','\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','requires','_initImageProcessingIndicator','listenTo','198VGzBxy','pluginName','isPremiumPlugin','uploader-','downcast','cleanupImage','body','once','configElement','_configElement','uc-upload-ctx-provider','getAttribute','true','commands','3028620HtcWww','_initCtx','uploadcare.uploader'];_0x6200=function(){return _0x752354;};return _0x6200();}function _0x334b(_0x424550,_0x2833d5){const _0x62002f=_0x6200();return _0x334b=function(_0x334b6c,_0x183af9){_0x334b6c=_0x334b6c-0x1e0;let _0x1cf9fd=_0x62002f[_0x334b6c];return _0x1cf9fd;},_0x334b(_0x424550,_0x2833d5);}export class UploadcareEditing extends _0x19d923{[_0x5750e7(0x221)]=null;[_0x5750e7(0x204)]=null;static get[_0x5750e7(0x219)](){const _0x2b6151=_0x5750e7;return _0x2b6151(0x230);}static get[_0x5750e7(0x215)](){const _0x2d7afb=_0x5750e7;return[_0x2d7afb(0x1e5),_0x2c3d09,_0x3540d7];}static get[_0x5750e7(0x1f4)](){return!0x0;}static get[_0x5750e7(0x21a)](){return!0x0;}[_0x5750e7(0x206)];get[_0x5750e7(0x220)](){const _0x3fa929=_0x5750e7;return this[_0x3fa929(0x221)];}get[_0x5750e7(0x1e0)](){const _0x2b8fb8=_0x5750e7;return this[_0x2b8fb8(0x204)];}constructor(_0xaa8de8){const _0x3191a1=_0x5750e7;super(_0xaa8de8),this[_0x3191a1(0x206)]=_0x477bed();}[_0x5750e7(0x1f2)](){const _0x3f4dec=_0x5750e7,_0xa8f095=this[_0x3f4dec(0x211)];_0xa8f095[_0x3f4dec(0x225)][_0x3f4dec(0x22c)](_0x3f4dec(0x233),new _0x458b54(_0xa8f095));}[_0x5750e7(0x22e)](){const _0x2f524f=_0x5750e7;this[_0x2f524f(0x1e6)](),this[_0x2f524f(0x20d)](),this[_0x2f524f(0x229)](),this[_0x2f524f(0x227)](),this[_0x2f524f(0x216)](),this[_0x2f524f(0x217)](this[_0x2f524f(0x211)],_0x2f524f(0x22a),()=>{const _0x3281d6=_0x2f524f;this[_0x3281d6(0x221)]&&(this[_0x3281d6(0x221)][_0x3281d6(0x1ec)](),this[_0x3281d6(0x221)]=null),this[_0x3281d6(0x204)]&&(this[_0x3281d6(0x204)][_0x3281d6(0x1ec)](),this[_0x3281d6(0x204)]=null);const _0x42a603=_0x36498b[_0x3281d6(0x1fe)][_0x3281d6(0x1fc)](_0x3281d6(0x1ee));_0x42a603&&_0x42a603[_0x3281d6(0x1ec)]();}),async function(_0x4b6939){const _0xd19ba=_0x1a7688([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2c058c=0x535f8c3a,_0x12ad36=0x53580ce2^_0x2c058c,_0x1722da=window[_0x1a7688([0x44,0x61,0x74,0x65])][_0x1a7688([0x6e,0x6f,0x77])](),_0x204ecf=_0x4b6939[_0x1a7688([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf6c3ab=new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2da840=>{_0x204ecf[_0x1a7688([0x6f,0x6e,0x63,0x65])](_0x1a7688([0x72,0x65,0x61,0x64,0x79]),_0x2da840);}),_0x27e250={[_0x1a7688([0x6b,0x74,0x79])]:_0x1a7688([0x45,0x43]),[_0x1a7688([0x75,0x73,0x65])]:_0x1a7688([0x73,0x69,0x67]),[_0x1a7688([0x63,0x72,0x76])]:_0x1a7688([0x50,0x2d,0x32,0x35,0x36]),[_0x1a7688([0x78])]:_0x1a7688([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]),[_0x1a7688([0x79])]:_0x1a7688([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]),[_0x1a7688([0x61,0x6c,0x67])]:_0x1a7688([0x45,0x53,0x32,0x35,0x36])},_0x2e6c1c=_0x204ecf[_0x1a7688([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a7688([0x67,0x65,0x74])](_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1481e5(){let _0xce9f1a,_0x21b61f=null,_0x18efd9=null;try{if(_0x2e6c1c==_0x1a7688([0x47,0x50,0x4c]))return _0x1a7688([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xce9f1a=_0x5c42a3(),!_0xce9f1a)return _0x1a7688([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xce9f1a[_0x1a7688([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18efd9=_0x4345b5(_0xce9f1a[_0x1a7688([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xce9f1a[_0x1a7688([0x6a,0x74,0x69])])),await _0x380bae()?_0x2ed2e7()?_0x1347d4()?_0x1a7688([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c715e()?(_0xce9f1a[_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a7688([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21b61f=_0x48d044(_0x1a7688([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b4e76()):_0x1a7688([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7688([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a7688([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a7688([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1347d4(){const _0x4f6ed5=[_0x1a7688([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a7688([0x74,0x72,0x69,0x61,0x6c])][_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xce9f1a[_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1722da/0x3e8:0xe10*_0x12ad36;return _0xce9f1a[_0x1a7688([0x65,0x78,0x70])]<_0x4f6ed5;}function _0x2ed2e7(){const _0x5672f7=_0xce9f1a[_0x1a7688([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5672f7&&(!!_0x5672f7[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7688([0x2a]))||!!_0x5672f7[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7688([0x55,0x50,0x4c,0x43])));}function _0x5c715e(){const _0xdbc0c7=_0x334b,_0xf278bc=_0xce9f1a[_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf278bc||0x0==_0xf278bc[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c7c53}=new URL(window[_0x1a7688([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xdbc0c7(0x201)]);if(_0xf278bc[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c7c53))return!0x0;const _0x33a7c7=_0x2c7c53[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e]));return _0xf278bc[_0x1a7688([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x458d2c=>_0x458d2c[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7688([0x2a])))[_0x1a7688([0x6d,0x61,0x70])](_0x359ddd=>_0x359ddd[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e])))[_0x1a7688([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35bd4f=>_0x35bd4f[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33a7c7[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7688([0x6d,0x61,0x70])](_0x1a3018=>Array(_0x33a7c7[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3018[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7688([0x66,0x69,0x6c,0x6c])](_0x1a3018[0x0]===_0x1a7688([0x2a])?_0x1a7688([0x2a]):'')[_0x1a7688([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3018))[_0x1a7688([0x73,0x6f,0x6d,0x65])](_0x30ec14=>_0x33a7c7[_0x1a7688([0x65,0x76,0x65,0x72,0x79])]((_0x2e3b06,_0x6fade3)=>_0x30ec14[_0x6fade3]===_0x2e3b06||_0x30ec14[_0x6fade3]===_0x1a7688([0x2a])));}function _0x3b4e76(){return _0x21b61f&&_0x18efd9?new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1317d9,_0x5f2362)=>{_0x21b61f[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x1317d9,_0x5f2362),_0x18efd9[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x19328f=>{_0x19328f!=_0x1a7688([0x56,0x61,0x6c,0x69,0x64])&&_0x1317d9(_0x19328f);},_0x5f2362);}):_0x21b61f||_0x18efd9||_0x1a7688([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4345b5(_0x3360a9,_0x5687cf){return new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a2242=>{if(_0x12e7ac())return _0x2a2242(_0x1a7688([0x56,0x61,0x6c,0x69,0x64]));_0x1a328d(),_0x204ecf[_0x1a7688([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a7688([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b2683=!0x1;const _0x3805e3=_0x477bed();function _0x3ec814(_0x18e376){return!!_0x18e376&&(typeof _0x18e376===_0x1a7688([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18e376===_0x1a7688([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18e376[_0x1a7688([0x74,0x68,0x65,0x6e])]===_0x1a7688([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18e376[_0x1a7688([0x63,0x61,0x74,0x63,0x68])]===_0x1a7688([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c0254(_0x5596d8){_0x4f0287(_0x5596d8)[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x863c34=>{if(!_0x863c34||_0x863c34[_0x1a7688([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a7688([0x6f,0x6b]))return _0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c6718(_0x1bb343(_0x3805e3+_0x5687cf))!=_0x863c34[_0x1a7688([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7688([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x298e38=>(_0x42b6d9(),_0x298e38),()=>{const _0x21a236=_0x3757dc();return null==_0x21a236?(_0x42b6d9(),_0x1a7688([0x56,0x61,0x6c,0x69,0x64])):_0x1a7688(_0x1722da-_0x21a236>(0x7753083a^_0x2c058c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x2a2242)[_0x1a7688([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a2242(_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3dced1=0x536962ba^_0x2c058c;function _0x42b6d9(){const _0x2e6e4a=_0x1a7688([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c6718(_0x1bb343(_0x3360a9)),_0xc626ce=_0x59d762(_0x2c6718(window[_0x1a7688([0x4d,0x61,0x74,0x68])][_0x1a7688([0x63,0x65,0x69,0x6c])](_0x1722da/_0x3dced1)));window[_0x1a7688([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7688([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e6e4a,_0xc626ce);}function _0x3757dc(){const _0x4aa846=_0x1a7688([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c6718(_0x1bb343(_0x3360a9)),_0x983cfa=window[_0x1a7688([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7688([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4aa846);return _0x983cfa?window[_0x1a7688([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59d762(_0x983cfa),0x10)*_0x3dced1:null;}function _0x4f0287(_0x1154be){return new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3885ba,_0x21e4e7)=>{_0x1154be[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x3885ba,_0x21e4e7),window[_0x1a7688([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21e4e7,0x535e58fa^_0x2c058c);});}}_0x204ecf[_0x1a7688([0x6f,0x6e])](_0x1a7688([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d172e,_0x2b438c)=>{if(_0x2b438c[0x0]!=_0x3360a9)return _0x2a2242(_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b438c[0x1]={..._0x2b438c[0x1],[_0x1a7688([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3805e3};},{[_0x1a7688([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7688([0x68,0x69,0x67,0x68])}),_0x204ecf[_0x1a7688([0x6f,0x6e])](_0x1a7688([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d8777=>{_0x3ec814(_0x5d8777[_0x1a7688([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b2683=!0x0,_0x5c0254(_0x5d8777[_0x1a7688([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a7688([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7688([0x6c,0x6f,0x77])}),_0xf6c3ab[_0x1a7688([0x74,0x68,0x65,0x6e])](()=>{_0x5b2683||_0x2a2242(_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12e7ac(){return _0x204ecf[_0x1a7688([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7688([0x76,0x69,0x65,0x77])][_0x1a7688([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a7688([0x61,0x75,0x74,0x6f]);}function _0x1a328d(){_0x204ecf[_0x1a7688([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7688([0x76,0x69,0x65,0x77])][_0x1a7688([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a7688([0x61,0x75,0x74,0x6f]);}}function _0x48d044(_0x4e59bd){const _0x199d81=[new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4324=>setTimeout(_0x2f4324,0x5356b2f6^_0x2c058c)),_0xf6c3ab[_0x1a7688([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6c02=>{let _0x44e837=0x0;_0x204ecf[_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7688([0x6f,0x6e])](_0x1a7688([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3124c0,_0x3d2cd8)=>{_0x3d2cd8[0x0][_0x1a7688([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44e837++,_0x44e837==(0x535f89d2^_0x2c058c)&&(_0x1c6c02(),_0x3124c0[_0x1a7688([0x6f,0x66,0x66])]());});}))];return window[_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a7688([0x72,0x61,0x63,0x65])](_0x199d81)[_0x1a7688([0x74,0x68,0x65,0x6e])](()=>_0x4e59bd);}async function _0x463aa4(){await _0xf6c3ab,_0x204ecf[_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7688([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e1fdd,_0x204ecf[_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7688([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e1fdd,_0x204ecf[_0x1a7688([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x576484(_0x309b4e){const _0x57fc6e=_0x5a93ca();_0x204ecf[_0x57fc6e]=_0x1a7688([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x309b4e,_0x309b4e!=_0x1a7688([0x56,0x61,0x6c,0x69,0x64])&&_0x463aa4();}function _0x5a93ca(){const _0x4a88a1=window[_0x1a7688([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a7688([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a7688([0x6e,0x6f,0x77])]())[_0x1a7688([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a7688([0x2e]),'');let _0x5d2711=_0x1a7688([0x68]);for(let _0x38fd63=0x0;_0x38fd63<_0x4a88a1[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38fd63+=0x2){let _0x1b325b=window[_0x1a7688([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a88a1[_0x1a7688([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38fd63,_0x38fd63+0x2));_0x1b325b>=_0xd19ba[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b325b-=_0xd19ba[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d2711+=_0xd19ba[_0x1b325b];}return _0x5d2711;}function _0x5c42a3(){const _0xd6eb31=_0x2e6c1c[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e]));if(0x3!=_0xd6eb31[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x466c13(_0xd6eb31[0x1]);function _0x466c13(_0x32ef48){const _0x2f10f6=_0x29c463(_0x32ef48);return _0x2f10f6&&_0x2b3ff1()?_0x2f10f6:null;function _0x2b3ff1(){const _0x21865b=_0x2f10f6[_0x1a7688([0x6a,0x74,0x69])],_0x551433=window[_0x1a7688([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21865b[_0x1a7688([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21865b[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f9b42={..._0x2f10f6,[_0x1a7688([0x6a,0x74,0x69])]:_0x21865b[_0x1a7688([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21865b[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f9b42[_0x1a7688([0x76,0x63])],_0x1bb343(_0x2f9b42)==_0x551433;}}}async function _0x380bae(){let _0xa3452c=!0x0;try{const _0x66b3b3=_0x2e6c1c[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e])),[_0x3c9948,_0x34f82f,_0x10e389]=_0x66b3b3;return _0x47a9d1(_0x3c9948),await _0x4c89fd(_0x3c9948,_0x34f82f,_0x10e389),_0xa3452c;}catch{return!0x1;}function _0x47a9d1(_0x49c0bb){const _0x107f4d=_0x29c463(_0x49c0bb);_0x107f4d&&_0x107f4d[_0x1a7688([0x61,0x6c,0x67])]==_0x1a7688([0x45,0x53,0x32,0x35,0x36])||(_0xa3452c=!0x1);}async function _0x4c89fd(_0x59e545,_0x39c3e7,_0x43cd9f){const _0x3c0cdd=window[_0x1a7688([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a7688([0x66,0x72,0x6f,0x6d])](_0x3c5791(_0x43cd9f),_0x14edac=>_0x14edac[_0x1a7688([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8785ce=new window[(_0x1a7688([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a7688([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59e545+_0x1a7688([0x2e])+_0x39c3e7),_0x3d5ec5=window[_0x1a7688([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a7688([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d5ec5)return;const _0xd9fbc=await _0x3d5ec5[_0x1a7688([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a7688([0x6a,0x77,0x6b]),_0x27e250,{[_0x1a7688([0x6e,0x61,0x6d,0x65])]:_0x1a7688([0x45,0x43,0x44,0x53,0x41]),[_0x1a7688([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a7688([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a7688([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d5ec5[_0x1a7688([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a7688([0x6e,0x61,0x6d,0x65])]:_0x1a7688([0x45,0x43,0x44,0x53,0x41]),[_0x1a7688([0x68,0x61,0x73,0x68])]:{[_0x1a7688([0x6e,0x61,0x6d,0x65])]:_0x1a7688([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd9fbc,_0x3c0cdd,_0x8785ce)||(_0xa3452c=!0x1);}}function _0x29c463(_0xeaf507){return _0xeaf507[_0x1a7688([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a7688([0x65,0x79]))?JSON[_0x1a7688([0x70,0x61,0x72,0x73,0x65])](_0x3c5791(_0xeaf507)):null;}function _0x3c5791(_0x587e55){return window[_0x1a7688([0x61,0x74,0x6f,0x62])](_0x587e55[_0x1a7688([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a7688([0x2b]))[_0x1a7688([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a7688([0x2f])));}function _0x1bb343(_0x5c81bc){let _0x4ddc05=0x1505;function _0x5dd7de(_0x178481){for(let _0x2c6007=0x0;_0x2c6007<_0x178481[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c6007++){const _0x132219=_0x178481[_0x1a7688([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c6007);_0x4ddc05=(_0x4ddc05<<0x5)+_0x4ddc05+_0x132219,_0x4ddc05&=_0x4ddc05;}}function _0x4eeafe(_0x17f6f2){Array[_0x1a7688([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17f6f2)?_0x17f6f2[_0x1a7688([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4eeafe):_0x17f6f2&&typeof _0x17f6f2==_0x1a7688([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a7688([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17f6f2)[_0x1a7688([0x73,0x6f,0x72,0x74])]()[_0x1a7688([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x353c53,_0x226e21])=>{_0x5dd7de(_0x353c53),_0x4eeafe(_0x226e21);}):_0x5dd7de(window[_0x1a7688([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17f6f2));}return _0x4eeafe(_0x5c81bc),_0x4ddc05>>>0x0;}function _0x2c6718(_0x183772){return _0x183772[_0x1a7688([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a7688([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a7688([0x30]));}function _0x59d762(_0xce84e7){return _0xce84e7[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a7688([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a7688([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e1fdd(){}function _0x1a7688(_0x19a204){const _0x1baf8d=_0x334b;return _0x19a204[_0x1baf8d(0x1f9)](_0x4b1b5d=>String[_0x1baf8d(0x1e3)](_0x4b1b5d))[_0x1baf8d(0x20c)]('');}_0x576484(await _0x1481e5());}(this);}[_0x5750e7(0x1e6)](){const _0xbdaa5f=_0x5750e7,_0x5f4a75=this[_0xbdaa5f(0x211)][_0xbdaa5f(0x209)][_0xbdaa5f(0x1f3)];_0x5f4a75[_0xbdaa5f(0x231)](_0xbdaa5f(0x1f1))&&_0x5f4a75[_0xbdaa5f(0x1f0)](_0xbdaa5f(0x1f1),{'allowAttributes':[_0xbdaa5f(0x1e1)]}),_0x5f4a75[_0xbdaa5f(0x231)](_0xbdaa5f(0x1ea))&&_0x5f4a75[_0xbdaa5f(0x1f0)](_0xbdaa5f(0x1ea),{'allowAttributes':[_0xbdaa5f(0x1e1)]});}[_0x5750e7(0x20d)](){const _0x5263a5=_0x5750e7,_0x49e2dc=this[_0x5263a5(0x211)];_0x49e2dc[_0x5263a5(0x1ed)][_0x5263a5(0x207)](_0x5263a5(0x21c))[_0x5263a5(0x210)]({'model':_0x5263a5(0x1e1),'view':_0x5263a5(0x1ff)}),_0x49e2dc[_0x5263a5(0x1ed)][_0x5263a5(0x207)](_0x5263a5(0x1e9))[_0x5263a5(0x1e2)]({'model':{'key':_0x5263a5(0x1e1),'value':_0x48317b=>_0x48317b[_0x5263a5(0x223)](_0x5263a5(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27a0fe=_0x49e2dc[_0x5263a5(0x225)][_0x5263a5(0x1e7)](_0x5263a5(0x1e8));_0x27a0fe&&this[_0x5263a5(0x217)](_0x27a0fe,_0x5263a5(0x21d),(_0x28f2c0,[_0xa0ebe6,_0x4ae3f2])=>{const _0x282fab=_0x5263a5;_0xa0ebe6[_0x282fab(0x1fb)](_0x282fab(0x1e1),_0x4ae3f2);});}[_0x5750e7(0x229)](){const _0x243cea=_0x5750e7,_0x334417=this[_0x243cea(0x211)][_0x243cea(0x22f)][_0x243cea(0x1e7)](_0x243cea(0x228))||{},_0xa9c90c=this[_0x243cea(0x211)][_0x243cea(0x22f)][_0x243cea(0x1e7)](_0x243cea(0x20a))||'';this[_0x243cea(0x221)]=_0x58aa0a(_0x36498b[_0x243cea(0x1fe)],_0x243cea(0x22d),{..._0x334417,'pubkey':_0xa9c90c,'ctx-name':_0x243cea(0x21b)+this[_0x243cea(0x206)],'sourceList':'','imgOnly':_0x243cea(0x224),'removeCopyright':_0x243cea(0x224),'localeName':this[_0x243cea(0x211)][_0x243cea(0x205)][_0x243cea(0x1ef)],'externalSourcesEmbedCss':_0x243cea(0x214)}),this[_0x243cea(0x221)][_0x243cea(0x1f6)]=_0x18f1a8=>{const _0x253666=_0x243cea;if(_0x253666(0x200)==_0x18f1a8)return _0x253666(0x1f5);},_0x36498b[_0x243cea(0x1fe)][_0x243cea(0x21e)][_0x243cea(0x234)](this[_0x243cea(0x221)]);}[_0x5750e7(0x227)](){const _0x162e9b=_0x5750e7;this[_0x162e9b(0x204)]=_0x58aa0a(_0x36498b[_0x162e9b(0x1fe)],_0x162e9b(0x222),{'ctx-name':_0x162e9b(0x21b)+this[_0x162e9b(0x206)]}),_0x36498b[_0x162e9b(0x1fe)][_0x162e9b(0x21e)][_0x162e9b(0x234)](this[_0x162e9b(0x204)]);}[_0x5750e7(0x216)](){const _0x5e71ad=_0x5750e7,_0x2d6f91=this[_0x5e71ad(0x211)][_0x5e71ad(0x225)][_0x5e71ad(0x1e7)](_0x5e71ad(0x1f7));_0x2d6f91&&this[_0x5e71ad(0x217)](_0x2d6f91,_0x5e71ad(0x202),()=>{const _0x5d8a44=_0x5e71ad,_0xd4b063=this[_0x5d8a44(0x211)][_0x5d8a44(0x209)][_0x5d8a44(0x1fe)][_0x5d8a44(0x1e4)][_0x5d8a44(0x22b)]();_0xd4b063&&_0xd4b063[_0x5d8a44(0x223)](_0x5d8a44(0x1e1))&&this[_0x5d8a44(0x211)][_0x5d8a44(0x232)][_0x5d8a44(0x213)][_0x5d8a44(0x21f)](_0x5d8a44(0x1f8),()=>{const _0x5c5caf=_0x5d8a44;_0x45f8df(this[_0x5c5caf(0x211)],_0xd4b063);});});const _0x4ee5ef=this[_0x5e71ad(0x211)][_0x5e71ad(0x225)][_0x5e71ad(0x1e7)](_0x5e71ad(0x20e));_0x4ee5ef&&this[_0x5e71ad(0x217)](_0x4ee5ef,_0x5e71ad(0x202),()=>{const _0x1c935b=_0x5e71ad,_0x58a08b=this[_0x1c935b(0x211)][_0x1c935b(0x209)][_0x1c935b(0x1fe)][_0x1c935b(0x1e4)][_0x1c935b(0x22b)]();_0x58a08b&&_0x58a08b[_0x1c935b(0x223)](_0x1c935b(0x1e1))&&this[_0x1c935b(0x211)][_0x1c935b(0x232)][_0x1c935b(0x213)][_0x1c935b(0x21f)](_0x1c935b(0x1f8),()=>{const _0x293eda=_0x1c935b;_0x45f8df(this[_0x293eda(0x211)],_0x58a08b);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1f899e,ObservableMixin as _0x51dd1f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5c78cb}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3b4670}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x968a8c}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x35d052}from'../../utils/uploadutils.js';import{getImageUrls as _0x136502,getImageDimension as _0x42811a}from'../../utils/editingutils.js';import{isAncestor as _0x399eb5}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x51dd1f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x57f5f3,_0x28df97,_0xe1181c){super(),this['_editor']=_0x57f5f3,this['_dialog']=_0x28df97,this['_imageElement']=_0xe1181c,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 _0x42187f=this['_imageElement'],_0x250143=_0x42187f['getAttribute']('uploadcareImageId'),_0x3bee35=_0x42187f['getAttribute']('src');if(_0x250143)await this['_loadImageInfo'](_0x250143,_0x3bee35);else{if(this['_imageCache']['has'](_0x3bee35)){const _0x325811=this['_imageCache']['get'](_0x3bee35);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x325811['url'],this['imageDimension']=_0x325811['dimension'],this['imageId']=_0x325811['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x50405b}=this['_editor'],t=_0x50405b['t'],_0x33befb=new _0x968a8c(_0x50405b,this['imageStatus'],this['_attributes']);_0x33befb['bind']('status')['to'](this,'imageStatus'),_0x33befb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33befb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33befb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33befb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b4670,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33befb,'position':_0x5c78cb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33befb['focus']();},'onHide':()=>{_0x33befb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37799b=>!_0x399eb5(_0x37799b,_0x33befb['element'])}});}['_loadImageInfo'](_0xff1c3a,_0x2b883e){return _0x35d052['getInfo'](_0xff1c3a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x704d54=>{const {width:_0x678921,height:_0x4cd0be}=_0x704d54['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b883e,this['imageDimension']={'width':_0x678921,'height':_0x4cd0be},this['imageId']=_0xff1c3a;})['catch'](_0x49155e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49155e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x41a21c,_0x2f257f){return this['_getImageAsFile'](_0x41a21c)['then'](_0x2195eb=>_0x35d052['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2f257f['signal'],'file':_0x2195eb,'onProgress':_0x2b3f4f=>{_0x2b3f4f&&_0x2b3f4f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2b3f4f['value']));}}))['then'](_0x432040=>{const {width:_0x50e2d1,height:_0x57d523}=_0x432040['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x432040['cdnUrl'],this['imageDimension']={'width':_0x50e2d1,'height':_0x57d523},this['imageId']=_0x432040['uuid'],this['imageUploadProgress']=null;const _0x34e679=_0x41a21c['getAttribute']('src');this['_imageCache']['set'](_0x34e679,{'id':_0x432040['uuid'],'url':_0x432040['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x48c25a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x48c25a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x24848f,_0x298302){_0x24848f['on']('apply',(_0x2d9774,_0x2325a1)=>{this['_replaceImage'](_0x298302,_0x2325a1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x24848f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x24848f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3207bf,_0x3f89e3,_0x41fac6){const _0x12c7f4=this['_editor'],{width:_0x239d29,height:_0x5dc0ab}=_0x42811a(_0x3f89e3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x49774a,imageSources:_0x3c24fa}=_0x136502(_0x3f89e3,_0x239d29);_0x12c7f4['model']['change'](_0x26c949=>{if('$graveyard'===_0x3207bf['root']['rootName']){_0x12c7f4['execute']('insertImage',{'imageType':_0x3207bf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3207bf['getAttributes']()),'uploadcareImageId':_0x41fac6,'src':_0x49774a,'sources':_0x3c24fa,'width':_0x239d29,'height':_0x5dc0ab}});const _0x343735=_0x3207bf['getChildren']();_0x3207bf=_0x12c7f4['model']['document']['selection']['getSelectedElement']();for(const _0x5754c2 of _0x343735)_0x26c949['append'](_0x26c949['cloneElement'](_0x5754c2),_0x3207bf);}else _0x26c949['setSelection'](_0x3207bf,'on'),_0x12c7f4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3207bf['getAttributes']()),'uploadcareImageId':_0x41fac6,'src':_0x49774a,'sources':_0x3c24fa,'width':_0x239d29,'height':_0x5dc0ab},_0x3207bf);_0x26c949['setSelection'](_0x3207bf,'on');});}async['_getImageAsFile'](_0x31da2c){const _0x29d12c=_0x1f899e['window'],_0x5347af=_0x1f899e['document']['location']['href'],_0x426f77=new _0x29d12c['URL'](_0x31da2c['getAttribute']('src'),_0x5347af);if('data:'===_0x426f77['protocol']){const _0x203947=_0x426f77['href']['split'](','),_0x5ab643=_0x203947[0x0]['match'](/:(.*?);/)[0x1],_0x1da3c9=_0x5ab643['split']('/')[0x1],_0x49d3cf=_0x29d12c['atob'](_0x203947[_0x203947['length']-0x1]);let _0x5a2d06=_0x49d3cf['length'];const _0x81e64=new _0x29d12c['Uint8Array'](_0x5a2d06);for(;_0x5a2d06--;)_0x81e64[_0x5a2d06]=_0x49d3cf['charCodeAt'](_0x5a2d06);return new _0x29d12c['File']([_0x81e64],'image.'+_0x1da3c9,{'type':_0x5ab643});}const _0x5d2fd9=_0x426f77['href']['split']('/'),_0x4f64ee=_0x5d2fd9[_0x5d2fd9['length']-0x1],_0xfbd4aa=_0x4f64ee['split']('.')[0x1];return _0x29d12c['fetch'](_0x426f77['href'])['then'](_0x35e229=>_0x35e229['clone']()['blob']())['then'](_0x1e945c=>new _0x29d12c['File']([_0x1e945c],_0x4f64ee,{'type':'image/'+_0xfbd4aa}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xa7ab69,_0x272a01){const _0x1ad06f=_0x1614,_0x5a117d=_0xa7ab69();while(!![]){try{const _0x270a16=-parseInt(_0x1ad06f(0xf3))/0x1*(-parseInt(_0x1ad06f(0xf9))/0x2)+parseInt(_0x1ad06f(0xef))/0x3*(parseInt(_0x1ad06f(0xe9))/0x4)+parseInt(_0x1ad06f(0xea))/0x5*(-parseInt(_0x1ad06f(0xee))/0x6)+parseInt(_0x1ad06f(0xf2))/0x7+-parseInt(_0x1ad06f(0xec))/0x8+-parseInt(_0x1ad06f(0xf7))/0x9+parseInt(_0x1ad06f(0xf1))/0xa;if(_0x270a16===_0x272a01)break;else _0x5a117d['push'](_0x5a117d['shift']());}catch(_0x2319d7){_0x5a117d['push'](_0x5a117d['shift']());}}}(_0x3246,0x91b10));import{View as _0x12c1af}from'ckeditor5/src/ui.js';function _0x3246(){const _0x2bc5be=['imageSrc','4628GfwHSm','375XAlKwl','ck-uploadcare-theme','3966712TQtTam','uc-cloud-image-editor','54192zSflQE','633oYDCwN','set','1939680EHysjx','5126443TtNzWm','3Msctbp','bindTemplate','setTemplate','image-edit','1674378Xdlafd','uc-light','523726RfrBlh'];_0x3246=function(){return _0x2bc5be;};return _0x3246();}function _0x1614(_0x253cb8,_0xbe100d){const _0x3246ec=_0x3246();return _0x1614=function(_0x161416,_0x39c7d5){_0x161416=_0x161416-0xe9;let _0x1cfbc6=_0x3246ec[_0x161416];return _0x1cfbc6;},_0x1614(_0x253cb8,_0xbe100d);}export class UploadcareImageEditFormEditingView extends _0x12c1af{constructor(_0x1c3c80,_0x3a889b){const _0xf04f93=_0x1614;super(_0x1c3c80);const _0xcae9df=this[_0xf04f93(0xf4)];this[_0xf04f93(0xf0)](_0xf04f93(0xfa),''),this[_0xf04f93(0xf5)]({'tag':_0xf04f93(0xed),'attributes':{..._0x3a889b,'class':[_0xf04f93(0xf8),_0xf04f93(0xeb)],'ctx-name':_0xf04f93(0xf6),'cdn-url':_0xcae9df['to'](_0xf04f93(0xfa))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x40bb5f}from'ckeditor5/src/icons.js';import{ButtonView as _0x43e3f4,IconView as _0x598b82,View as _0x3ab0fe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3ab0fe{constructor(_0x1c7560){super(_0x1c7560);const t=_0x1c7560['t'];this['set']('errorType',null);const _0x2a858d=new _0x43e3f4(_0x1c7560);_0x2a858d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a858d['withText']=!0x0,_0x2a858d['class']='ck-button-action',_0x2a858d['on']('execute',()=>{this['fire']('retry');}),_0x2a858d['bind']('isVisible')['to'](this,'errorType',_0x54b42b=>'NotFound'!==_0x54b42b);const _0xcb10f3=new _0x598b82();_0xcb10f3['content']=_0x40bb5f,_0xcb10f3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x387084=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':[_0xcb10f3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x387084['to']('errorType',_0x1fa117=>t('NotFound'!==_0x1fa117?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a858d]},{'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 _0x2b09bf,View as _0x277707}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x277707{constructor(_0x51ad21){super(_0x51ad21);const t=_0x51ad21['t'],_0x3710a8=this['bindTemplate'],_0x200e3a=new _0x2b09bf();_0x200e3a['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':[_0x200e3a,{'text':_0x3710a8['to']('imageUploadProgress',_0x25b6ce=>t('Loading\x20image...')+'\x20('+(_0x25b6ce||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 _0x3d827d=_0x3f73;(function(_0x58f296,_0x414d39){const _0x2ac221=_0x3f73,_0x3a988b=_0x58f296();while(!![]){try{const _0xfc5f4d=-parseInt(_0x2ac221(0x132))/0x1*(-parseInt(_0x2ac221(0x102))/0x2)+-parseInt(_0x2ac221(0x12b))/0x3+parseInt(_0x2ac221(0x127))/0x4+-parseInt(_0x2ac221(0x121))/0x5+-parseInt(_0x2ac221(0x10e))/0x6*(parseInt(_0x2ac221(0x130))/0x7)+parseInt(_0x2ac221(0x126))/0x8+parseInt(_0x2ac221(0x135))/0x9*(parseInt(_0x2ac221(0x10f))/0xa);if(_0xfc5f4d===_0x414d39)break;else _0x3a988b['push'](_0x3a988b['shift']());}catch(_0x13b1d5){_0x3a988b['push'](_0x3a988b['shift']());}}}(_0x186c,0x32d91));function _0x3f73(_0x2916f1,_0x3b149f){const _0x186c5e=_0x186c();return _0x3f73=function(_0x3f7370,_0x4c15cd){_0x3f7370=_0x3f7370-0xff;let _0x2d892c=_0x186c5e[_0x3f7370];return _0x2d892c;},_0x3f73(_0x2916f1,_0x3b149f);}import{View as _0x37df10}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x52bf9f}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2dddc1}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3a0d73}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x21d46c}from'../../utils/dialogfocusmanagerview.js';function _0x186c(){const _0x524edb=['length','ck-reset_all-excluded','41520OQdAFe','1201984iNWCPy','render','uploading','addEventListener','591504RyYJgn','target','retry','addMany','_waitForImageEditorComponent','77LCuiPK','_loadingView','240640WXmIvW','detail','cancel','3109005poHzKU','_setView','uc-cloud-image-editor','_addUploadcareImageEditorListeners','2ewdRgm','fire','setTemplate','observe','createCollection','disconnect','add','_errorView','focus','ready','nodeName','clear','212526AbIZLL','10ywFvqs','div','element','status','toLowerCase','_addErrorViewListeners','change:status','_editingView','querySelector','getFocusableElement','once','error','filter','_items','cdnUrl','set','addedNodes','apply','483495hNLvuJ','ck-uploadcare-form','_focusableView'];_0x186c=function(){return _0x524edb;};return _0x186c();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x21d46c{[_0x3d827d(0x11c)];[_0x3d827d(0x131)];[_0x3d827d(0x109)];[_0x3d827d(0x116)];[_0x3d827d(0x123)];constructor(_0x575d7a,_0x1cdd6d,_0x5db987){const _0x5dd81a=_0x3d827d;super(_0x575d7a),this[_0x5dd81a(0x11c)]=this[_0x5dd81a(0x106)](),this[_0x5dd81a(0x131)]=new _0x52bf9f(_0x575d7a),this[_0x5dd81a(0x109)]=new _0x2dddc1(_0x575d7a),this[_0x5dd81a(0x116)]=new _0x3a0d73(_0x575d7a,_0x5db987),this[_0x5dd81a(0x123)]=new _0x37df10(_0x575d7a),this[_0x5dd81a(0x123)][_0x5dd81a(0x104)](this[_0x5dd81a(0x118)]()),this[_0x5dd81a(0x11e)](_0x5dd81a(0x112),_0x1cdd6d),this[_0x5dd81a(0x104)]({'tag':_0x5dd81a(0x110),'attributes':{'class':['ck',_0x5dd81a(0x125),_0x5dd81a(0x122)],'tabindex':'-1'},'children':this[_0x5dd81a(0x11c)]}),this[_0x5dd81a(0xff)](),this[_0x5dd81a(0x119)](_0x5dd81a(0x128),()=>{const _0x9c602b=_0x5dd81a;this[_0x9c602b(0x12f)](this[_0x9c602b(0x111)],_0x34ee23=>{const _0x1c70a3=_0x9c602b;this[_0x1c70a3(0x101)](_0x34ee23);});}),this['on'](_0x5dd81a(0x115),()=>{const _0x5df0a3=_0x5dd81a;this[_0x5df0a3(0xff)]();}),this[_0x5dd81a(0x114)]();}[_0x3d827d(0x10a)](){const _0x34e17f=_0x3d827d;this[_0x34e17f(0x111)][_0x34e17f(0x10a)]();}[_0x3d827d(0xff)](){const _0x4e1a90=_0x3d827d;switch(this[_0x4e1a90(0x11c)][_0x4e1a90(0x10d)](),this[_0x4e1a90(0x112)]){case _0x4e1a90(0x129):this[_0x4e1a90(0x11c)][_0x4e1a90(0x108)](this[_0x4e1a90(0x131)]);break;case _0x4e1a90(0x11a):this[_0x4e1a90(0x11c)][_0x4e1a90(0x108)](this[_0x4e1a90(0x109)]);break;case _0x4e1a90(0x10b):this[_0x4e1a90(0x11c)][_0x4e1a90(0x12e)]([this[_0x4e1a90(0x116)],this[_0x4e1a90(0x123)]]);}}[_0x3d827d(0x12f)](_0x314621,_0x37844b){const _0x3c128b=_0x3d827d,_0x27ac1e=_0x3c128b(0x100),_0x1ab653=_0x314621[_0x3c128b(0x117)](_0x27ac1e);if(_0x1ab653)return _0x37844b(_0x1ab653);const _0x2a265e=new MutationObserver(_0x4e7726=>{const _0x5aedd6=_0x3c128b,_0x2cb713=_0x4e7726[_0x5aedd6(0x11b)](_0x539039=>_0x539039[_0x5aedd6(0x12c)]===_0x314621&&_0x539039[_0x5aedd6(0x11f)][_0x5aedd6(0x124)]>0x0&&_0x539039[_0x5aedd6(0x11f)][0x0][_0x5aedd6(0x10c)][_0x5aedd6(0x113)]()===_0x27ac1e);_0x2cb713[_0x5aedd6(0x124)]&&(_0x2a265e[_0x5aedd6(0x107)](),_0x37844b(_0x2cb713[0x0][_0x5aedd6(0x11f)][0x0]));});_0x2a265e[_0x3c128b(0x105)](_0x314621,{'childList':!0x0,'subtree':!0x0});}[_0x3d827d(0x101)](_0x12b512){const _0x3b0843=_0x3d827d;_0x12b512[_0x3b0843(0x12a)](_0x3b0843(0x120),_0x52ceee=>{const _0x2557b6=_0x3b0843;this[_0x2557b6(0x103)](_0x2557b6(0x120),{'imageSrc':_0x52ceee[_0x2557b6(0x133)][_0x2557b6(0x11d)]});}),_0x12b512[_0x3b0843(0x12a)](_0x3b0843(0x134),()=>{const _0x48eb4e=_0x3b0843;this[_0x48eb4e(0x103)](_0x48eb4e(0x134));});}[_0x3d827d(0x114)](){const _0x41c07a=_0x3d827d;this[_0x41c07a(0x109)]['on'](_0x41c07a(0x12d),()=>{const _0x56110a=_0x41c07a;this[_0x56110a(0x103)](_0x56110a(0x12d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12b21a=_0x1261;(function(_0x2c694d,_0x391be0){const _0x3fad58=_0x1261,_0x4e8ee5=_0x2c694d();while(!![]){try{const _0x19281e=parseInt(_0x3fad58(0x7b))/0x1+-parseInt(_0x3fad58(0x84))/0x2+-parseInt(_0x3fad58(0x80))/0x3*(parseInt(_0x3fad58(0x81))/0x4)+parseInt(_0x3fad58(0x88))/0x5+parseInt(_0x3fad58(0x89))/0x6+-parseInt(_0x3fad58(0x8f))/0x7*(parseInt(_0x3fad58(0x86))/0x8)+parseInt(_0x3fad58(0x8d))/0x9;if(_0x19281e===_0x391be0)break;else _0x4e8ee5['push'](_0x4e8ee5['shift']());}catch(_0x40ca73){_0x4e8ee5['push'](_0x4e8ee5['shift']());}}}(_0x272a,0x9414f));function _0x1261(_0x52f955,_0x3f98c8){const _0x272ac4=_0x272a();return _0x1261=function(_0x1261b2,_0xb75eb9){_0x1261b2=_0x1261b2-0x75;let _0x14e6db=_0x272ac4[_0x1261b2];return _0x14e6db;},_0x1261(_0x52f955,_0x3f98c8);}import{Command as _0x3c7054}from'ckeditor5/src/core.js';import{Dialog as _0xbe81aa}from'ckeditor5/src/ui.js';function _0x272a(){const _0x4846d3=['_isEditable','10068714GZZdkH','execute','1390361lzZncf','editor','isEnabled','uploadcare.allowExternalImagesEditing','getSelectedElement','document','plugins','model','get','imageBlock','set','551923NWrqLH','element','imageEditController','isActive','unbind','1394259EVdVSz','8prgnPS','bind','selection','1300944NVgIJp','imageInline','8zpiclh','requires','459635VokNPD','3735288PlvdBC','refresh','config'];_0x272a=function(){return _0x4846d3;};return _0x272a();}import{UploadcareImageEditController as _0x20502c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3ba500}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3c7054{[_0x12b21a(0x7d)];static get[_0x12b21a(0x87)](){return[_0xbe81aa];}[_0x12b21a(0x8c)];constructor(_0x299a7a){const _0x56948d=_0x12b21a;super(_0x299a7a),this[_0x56948d(0x7d)]=void 0x0,this[_0x56948d(0x8c)]=_0x3ba500(_0x299a7a[_0x56948d(0x8b)][_0x56948d(0x78)](_0x56948d(0x92))||[]),this[_0x56948d(0x7a)]({'isActive':!0x1});}[_0x12b21a(0x8a)](){const _0x548a9e=_0x12b21a,_0x34bde8=this[_0x548a9e(0x90)][_0x548a9e(0x77)][_0x548a9e(0x75)][_0x548a9e(0x83)][_0x548a9e(0x93)]();this[_0x548a9e(0x91)]=this[_0x548a9e(0x8c)](_0x34bde8);}[_0x12b21a(0x8e)](){const _0x5966b6=_0x12b21a;this[_0x5966b6(0x7d)]&&(this[_0x5966b6(0x7f)](_0x5966b6(0x7e)),this[_0x5966b6(0x7d)]=void 0x0);const _0x4f04ed=this[_0x5966b6(0x90)][_0x5966b6(0x77)][_0x5966b6(0x75)][_0x5966b6(0x83)][_0x5966b6(0x93)]();_0x4f04ed&&(_0x4f04ed['is'](_0x5966b6(0x7c),_0x5966b6(0x79))||_0x4f04ed['is'](_0x5966b6(0x7c),_0x5966b6(0x85)))&&(this[_0x5966b6(0x7d)]=new _0x20502c(this[_0x5966b6(0x90)],this[_0x5966b6(0x90)][_0x5966b6(0x76)][_0x5966b6(0x78)](_0xbe81aa),_0x4f04ed),this[_0x5966b6(0x82)](_0x5966b6(0x7e))['to'](this[_0x5966b6(0x7d)],_0x5966b6(0x7e)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x272c28=_0x3698;(function(_0x222542,_0x55cd08){const _0x15106a=_0x3698,_0x1c36d6=_0x222542();while(!![]){try{const _0x4d0eac=parseInt(_0x15106a(0x1e7))/0x1+parseInt(_0x15106a(0x1d7))/0x2+-parseInt(_0x15106a(0x1e3))/0x3+-parseInt(_0x15106a(0x1db))/0x4+-parseInt(_0x15106a(0x1d6))/0x5+parseInt(_0x15106a(0x1dc))/0x6+parseInt(_0x15106a(0x1da))/0x7*(parseInt(_0x15106a(0x1d8))/0x8);if(_0x4d0eac===_0x55cd08)break;else _0x1c36d6['push'](_0x1c36d6['shift']());}catch(_0x3ea9b5){_0x1c36d6['push'](_0x1c36d6['shift']());}}}(_0x46b7,0xc75c0));function _0x46b7(){const _0x3d8d9f=['2178533EvkStM','3426800mChsxs','4058640dhvxuu','isPremiumPlugin','uploadcareImageReplace','init','requires','ImageEditing','uploadcareImageEdit','3453462yJnpxZ','pluginName','isOfficialPlugin','add','423414AWeeGx','UploadcareImageEditEditing','ImageUtils','6142735ulmSXY','2794056wujSVY','40UXDcGl','commands'];_0x46b7=function(){return _0x3d8d9f;};return _0x46b7();}import{Plugin as _0x38210a}from'ckeditor5/src/core.js';import{Notification as _0x39d166}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x532cc3}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x19b394}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x169ef2}from'../uploadcareediting.js';function _0x3698(_0x5a968d,_0x34ba3c){const _0x46b7ee=_0x46b7();return _0x3698=function(_0x369848,_0x485b56){_0x369848=_0x369848-0x1d4;let _0x2fcd35=_0x46b7ee[_0x369848];return _0x2fcd35;},_0x3698(_0x5a968d,_0x34ba3c);}export class UploadcareImageEditEditing extends _0x38210a{static get[_0x272c28(0x1e4)](){const _0xe41ce9=_0x272c28;return _0xe41ce9(0x1d4);}static get[_0x272c28(0x1e0)](){const _0x5cb7db=_0x272c28;return[_0x169ef2,_0x39d166,_0x5cb7db(0x1d5),_0x5cb7db(0x1e1)];}static get[_0x272c28(0x1e5)](){return!0x0;}static get[_0x272c28(0x1dd)](){return!0x0;}[_0x272c28(0x1df)](){const _0x2b6fbd=_0x272c28,{editor:_0x12c1b6}=this;_0x12c1b6[_0x2b6fbd(0x1d9)][_0x2b6fbd(0x1e6)](_0x2b6fbd(0x1e2),new _0x532cc3(_0x12c1b6)),_0x12c1b6[_0x2b6fbd(0x1d9)][_0x2b6fbd(0x1e6)](_0x2b6fbd(0x1de),new _0x19b394(_0x12c1b6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x250538}from'ckeditor5/src/core.js';import{ButtonView as _0x259efe}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x227b51}from'ckeditor5/src/icons.js';import{createElement as _0x4f6a7d}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x250538{['_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 _0x3a5f01=this['editor'];_0x3a5f01['ui']['componentFactory']['add']('uploadcareImageEdit',_0x7d50a8=>{const _0x3f4859=_0x3a5f01['commands']['get']('uploadcareImageEdit'),_0xdf12f6=new _0x259efe(_0x7d50a8),t=_0x7d50a8['t'];return _0xdf12f6['set']({'icon':_0x227b51,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xdf12f6['bind']('isEnabled')['to'](_0x3f4859),_0xdf12f6['bind']('isOn')['to'](_0x3f4859,'isActive'),this['listenTo'](_0xdf12f6,'execute',()=>{_0x3a5f01['execute']('uploadcareImageEdit'),_0x3a5f01['editing']['view']['focus']();}),_0xdf12f6;}),this['_initConfig']();}['_initConfig'](){const _0x3a5370=_0x4f6a7d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3a5370),this['listenTo'](this['editor'],'destroy',()=>{_0x3a5370['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bfde6=_0x420c;(function(_0x324a1f,_0x1ed90e){const _0x4032f1=_0x420c,_0x1fbec8=_0x324a1f();while(!![]){try{const _0x4ec072=parseInt(_0x4032f1(0x81))/0x1*(-parseInt(_0x4032f1(0x79))/0x2)+parseInt(_0x4032f1(0x83))/0x3*(-parseInt(_0x4032f1(0x84))/0x4)+-parseInt(_0x4032f1(0x76))/0x5+-parseInt(_0x4032f1(0x89))/0x6+-parseInt(_0x4032f1(0x8e))/0x7+-parseInt(_0x4032f1(0x88))/0x8*(-parseInt(_0x4032f1(0x7d))/0x9)+-parseInt(_0x4032f1(0x74))/0xa*(-parseInt(_0x4032f1(0x77))/0xb);if(_0x4ec072===_0x1ed90e)break;else _0x1fbec8['push'](_0x1fbec8['shift']());}catch(_0x7a3fc4){_0x1fbec8['push'](_0x1fbec8['shift']());}}}(_0x5bfb,0xb53d7));function _0x420c(_0x1cbdca,_0x1b3f43){const _0x5bfb89=_0x5bfb();return _0x420c=function(_0x420cda,_0x3aa78f){_0x420cda=_0x420cda-0x74;let _0x597246=_0x5bfb89[_0x420cda];return _0x597246;},_0x420c(_0x1cbdca,_0x1b3f43);}function _0x5bfb(){const _0x13edc7=['setAttributes','1291671eGTBqw','refresh','change','srcset','4xQdacO','editor','9iRKeRZ','337044XctcGy','imageBlock','selection','element','24akqrwY','3558324gUhVKn','model','getSelectedElement','removeAttribute','sizes','7924455ZbkEfQ','2160NpQMPc','isEnabled','20560IpWcqR','125499IsMMXQ','execute','85264qlErDT','document','imageInline'];_0x5bfb=function(){return _0x13edc7;};return _0x5bfb();}import{Command as _0xd85738}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0xd85738{[_0x4bfde6(0x7e)](){const _0x1f4b35=_0x4bfde6,_0x532b10=this[_0x1f4b35(0x82)][_0x1f4b35(0x8a)][_0x1f4b35(0x7a)][_0x1f4b35(0x86)][_0x1f4b35(0x8b)]();this[_0x1f4b35(0x75)]=Boolean(_0x532b10&&(_0x532b10['is'](_0x1f4b35(0x87),_0x1f4b35(0x85))||_0x532b10['is'](_0x1f4b35(0x87),_0x1f4b35(0x7b))));}[_0x4bfde6(0x78)](_0x394ff3){const _0x4c8f6f=_0x4bfde6,_0x2ea8d7=this[_0x4c8f6f(0x82)][_0x4c8f6f(0x8a)][_0x4c8f6f(0x7a)][_0x4c8f6f(0x86)][_0x4c8f6f(0x8b)]();this[_0x4c8f6f(0x82)][_0x4c8f6f(0x8a)][_0x4c8f6f(0x7f)](_0x5333a2=>{const _0xf8631c=_0x4c8f6f;_0x5333a2[_0xf8631c(0x7c)](_0x394ff3,_0x2ea8d7),_0x5333a2[_0xf8631c(0x8c)](_0xf8631c(0x80),_0x2ea8d7),_0x5333a2[_0xf8631c(0x8c)](_0xf8631c(0x8d),_0x2ea8d7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1ba534=_0x14f4;(function(_0x2409c5,_0x393b43){var _0x173624=_0x14f4,_0x544185=_0x2409c5();while(!![]){try{var _0xd52d89=-parseInt(_0x173624(0x6d))/0x1+-parseInt(_0x173624(0x70))/0x2*(parseInt(_0x173624(0x6e))/0x3)+parseInt(_0x173624(0x77))/0x4+-parseInt(_0x173624(0x79))/0x5*(parseInt(_0x173624(0x74))/0x6)+parseInt(_0x173624(0x7b))/0x7*(parseInt(_0x173624(0x75))/0x8)+-parseInt(_0x173624(0x78))/0x9*(parseInt(_0x173624(0x72))/0xa)+parseInt(_0x173624(0x76))/0xb*(parseInt(_0x173624(0x7d))/0xc);if(_0xd52d89===_0x393b43)break;else _0x544185['push'](_0x544185['shift']());}catch(_0x4a3441){_0x544185['push'](_0x544185['shift']());}}}(_0x1b5f,0xe9b89));import{Plugin as _0x1f1f84}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x531c5b}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x14f4(_0xd80001,_0x127129){var _0x1b5f47=_0x1b5f();return _0x14f4=function(_0x14f428,_0x46dd4f){_0x14f428=_0x14f428-0x6d;var _0x1f20a3=_0x1b5f47[_0x14f428];return _0x1f20a3;},_0x14f4(_0xd80001,_0x127129);}function _0x1b5f(){var _0x173e2d=['12JDxsmU','pluginName','538326HxwgUQ','isPremiumPlugin','40vKnJbX','requires','162hJgGMV','8872zzndXN','46931951MElTjq','1863800bwqIou','2523942ewUwlD','207230XfDAnJ','isOfficialPlugin','4711kiqUHe','UploadcareImageEdit','12ciQTrE','1204081iapucY'];_0x1b5f=function(){return _0x173e2d;};return _0x1b5f();}import{UploadcareImageEditUI as _0x58185d}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x1f1f84{static get[_0x1ba534(0x6f)](){var _0x332b83=_0x1ba534;return _0x332b83(0x7c);}static get[_0x1ba534(0x73)](){return[_0x531c5b,_0x58185d];}static get[_0x1ba534(0x7a)](){return!0x0;}static get[_0x1ba534(0x71)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15c5dd=_0x8864;(function(_0x23ec46,_0x11c255){const _0x365910=_0x8864,_0x8a99f6=_0x23ec46();while(!![]){try{const _0x2e9699=-parseInt(_0x365910(0x1f2))/0x1*(parseInt(_0x365910(0x21a))/0x2)+-parseInt(_0x365910(0x21c))/0x3*(-parseInt(_0x365910(0x1f5))/0x4)+parseInt(_0x365910(0x221))/0x5*(parseInt(_0x365910(0x219))/0x6)+-parseInt(_0x365910(0x201))/0x7+-parseInt(_0x365910(0x206))/0x8+-parseInt(_0x365910(0x225))/0x9+parseInt(_0x365910(0x22b))/0xa;if(_0x2e9699===_0x11c255)break;else _0x8a99f6['push'](_0x8a99f6['shift']());}catch(_0xa9bfb3){_0x8a99f6['push'](_0x8a99f6['shift']());}}}(_0x1c86,0x2f462));import{Plugin as _0x51fd1c}from'ckeditor5/src/core.js';function _0x1c86(){const _0xd0a0fb=['Facebook','execute','uploadcare.uploader.sourceList','UploadcareUI','url','Insert','licenseKey','733880wAfBrd','OneDrive','push','uploadcareLicenseKeyNotAllowed','plugins','2566040MjIgHz','type','editor','isEnabled','Replace','_showLicenseError','icon','invalid','_normalizeConfigSourceList','pluginName','label','isOfficialPlugin','reduce','_getIntegrationKey','config','uploadcareLicenseKeyUsageLimit','init','text','uploadcareLicenseKeyValid','156yedUuq','87556iECvjg','forEach','969369IlSSPg','isImageSelected','uploadcare','Local','uploadcareLicenseKeyDomainLimit','23995FSuOKE','_licenseKeyCheckInterval','Uploadcare','Dropbox','3348576ErxRGX','_createToolbarButton','domainLimit','bind','GDrive','locale','8936200eIDNbO','ImageInsertUI','URL','destroy','has','upload','afterInit','tooltip','uploadcareLicenseKeyExpired','GPhotos','uploadcareLicenseKeyInvalid','withText','registerIntegration','assetManager','shortText','evaluationLimit','expired','commands','entries','usageLimit','uploadcareLicenseKeyEvaluationLimit','_createButton','8NGaSWn','featureNotAllowed','isPremiumPlugin','4sbFkXi','_createDropdownButtons','get','_createMenuBarButtons','map'];_0x1c86=function(){return _0xd0a0fb;};return _0x1c86();}import{IconDropbox as _0x55229b,IconFacebook as _0x56a541,IconGoogleDrive as _0x4f1c6a,IconGooglePhotos as _0x3bbe27,IconUploadcareImageUpload as _0x2e966c,IconUploadcareLink as _0x271c05,IconOneDrive as _0x1d9752}from'ckeditor5/src/icons.js';import{ButtonView as _0x37b7d1,MenuBarMenuListItemButtonView as _0x327646}from'ckeditor5/src/ui.js';function _0x8864(_0x172073,_0xc8ff69){const _0x1c8650=_0x1c86();return _0x8864=function(_0x88647b,_0x248a4c){_0x88647b=_0x88647b-0x1e6;let _0x3056bd=_0x1c8650[_0x88647b];return _0x3056bd;},_0x8864(_0x172073,_0xc8ff69);}import{UploadcareSource as _0x2381a2}from'./uploadcareconfig.js';import{getTranslation as _0x199215}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 class UploadcareUI extends _0x51fd1c{[_0x15c5dd(0x200)];[_0x15c5dd(0x222)];static get[_0x15c5dd(0x20f)](){const _0x58a55c=_0x15c5dd;return _0x58a55c(0x1fd);}static get[_0x15c5dd(0x211)](){return!0x0;}static get[_0x15c5dd(0x1f4)](){return!0x0;}[_0x15c5dd(0x216)](){const _0x412f26=_0x15c5dd;this[_0x412f26(0x200)]=this[_0x412f26(0x208)][_0x412f26(0x214)][_0x412f26(0x1f7)](_0x412f26(0x200));const _0x4e71b3=this[_0x412f26(0x208)];this[_0x412f26(0x222)]=setInterval(()=>{const _0xde4404=_0x412f26;let _0x9dc12d;for(const _0x34b815 in _0x4e71b3){const _0x471bbb=_0x34b815,_0x1218f9=_0x4e71b3[_0x471bbb];if(_0xde4404(0x218)==_0x1218f9||_0xde4404(0x1e6)==_0x1218f9||_0xde4404(0x233)==_0x1218f9||_0xde4404(0x220)==_0x1218f9||_0xde4404(0x204)==_0x1218f9||_0xde4404(0x1f0)==_0x1218f9||_0xde4404(0x215)==_0x1218f9){delete _0x4e71b3[_0x471bbb],_0x9dc12d=_0x1218f9,clearInterval(this[_0xde4404(0x222)]),this[_0xde4404(0x222)]=void 0x0;break;}}_0xde4404(0x1e6)==_0x9dc12d&&_0x4e71b3[_0xde4404(0x20b)](_0xde4404(0x20d)),_0xde4404(0x233)==_0x9dc12d&&_0x4e71b3[_0xde4404(0x20b)](_0xde4404(0x1ec)),_0xde4404(0x220)==_0x9dc12d&&_0x4e71b3[_0xde4404(0x20b)](_0xde4404(0x227)),_0xde4404(0x204)==_0x9dc12d&&_0x4e71b3[_0xde4404(0x20b)](_0xde4404(0x1f3),_0xde4404(0x223)),_0xde4404(0x1f0)==_0x9dc12d&&_0x4e71b3[_0xde4404(0x20b)](_0xde4404(0x1eb)),_0xde4404(0x215)==_0x9dc12d&&_0x4e71b3[_0xde4404(0x20b)](_0xde4404(0x1ef));},0x3e8);}[_0x15c5dd(0x231)](){const _0xc7d251=_0x15c5dd,{editor:_0x2c0af5}=this,_0x4641a4=_0x2c0af5[_0xc7d251(0x1ed)][_0xc7d251(0x1f7)](_0xc7d251(0x21e));if(!_0x4641a4)return;const _0x55f2bf=this[_0xc7d251(0x20e)](_0x2c0af5[_0xc7d251(0x214)][_0xc7d251(0x1f7)](_0xc7d251(0x1fc)))[_0xc7d251(0x212)]((_0x1455e1,_0x1cffa7)=>{const _0x10d720=_0xc7d251,_0xbe8a97=this[_0x10d720(0x213)](_0x1cffa7[_0x10d720(0x207)]);return _0x1455e1[_0xbe8a97]||(_0x1455e1[_0xbe8a97]=[]),_0x1455e1[_0xbe8a97][_0x10d720(0x203)](_0x1cffa7),_0x1455e1;},{});_0x2c0af5[_0xc7d251(0x205)][_0xc7d251(0x22f)](_0xc7d251(0x22c))&&_0x2c0af5[_0xc7d251(0x1ed)][_0xc7d251(0x1f7)](_0xc7d251(0x21e))&&Object[_0xc7d251(0x1ee)](_0x55f2bf)[_0xc7d251(0x21b)](([_0x560273,_0x485546])=>{const _0x1dbd75=_0xc7d251;_0x2c0af5[_0x1dbd75(0x205)][_0x1dbd75(0x1f7)](_0x1dbd75(0x22c))[_0x1dbd75(0x1e8)]({'name':_0x560273,'observable':()=>_0x4641a4,'buttonViewCreator':()=>this[_0x1dbd75(0x226)](_0x485546),'formViewCreator':()=>this[_0x1dbd75(0x1f6)](_0x485546),'menuBarButtonViewCreator':()=>this[_0x1dbd75(0x1f8)](_0x485546),'override':_0x1dbd75(0x1e9)!==_0x560273});});}[_0x15c5dd(0x22e)](){const _0x5ebf53=_0x15c5dd;super[_0x5ebf53(0x22e)](),this[_0x5ebf53(0x222)]&&clearInterval(this[_0x5ebf53(0x222)]);}[_0x15c5dd(0x20e)](_0x3c26f4){const _0x4ed48a=_0x15c5dd,{locale:_0x463fa1}=this[_0x4ed48a(0x208)];return _0x3c26f4[_0x4ed48a(0x1f9)](_0x5a9ceb=>{const _0x43246d=_0x4ed48a,_0x429521=_0x199215(_0x463fa1,_0x5a9ceb,_0x43246d(0x1ff));switch(_0x5a9ceb){case _0x2381a2[_0x43246d(0x21f)]:return{'icon':_0x2e966c,'type':_0x2381a2[_0x43246d(0x21f)],..._0x429521};case _0x2381a2[_0x43246d(0x22d)]:return{'icon':_0x271c05,'type':_0x2381a2[_0x43246d(0x22d)],..._0x429521};case _0x2381a2[_0x43246d(0x224)]:return{'icon':_0x55229b,'type':_0x2381a2[_0x43246d(0x224)],..._0x429521};case _0x2381a2[_0x43246d(0x1fa)]:return{'icon':_0x56a541,'type':_0x2381a2[_0x43246d(0x1fa)],..._0x429521};case _0x2381a2[_0x43246d(0x229)]:return{'icon':_0x4f1c6a,'type':_0x2381a2[_0x43246d(0x229)],..._0x429521};case _0x2381a2[_0x43246d(0x234)]:return{'icon':_0x3bbe27,'type':_0x2381a2[_0x43246d(0x234)],..._0x429521};case _0x2381a2[_0x43246d(0x202)]:return{'icon':_0x1d9752,'type':_0x2381a2[_0x43246d(0x202)],..._0x429521};}});}[_0x15c5dd(0x213)](_0x56fe9e){const _0x469de4=_0x15c5dd;switch(_0x56fe9e){case _0x2381a2[_0x469de4(0x21f)]:return _0x469de4(0x230);case _0x2381a2[_0x469de4(0x22d)]:return _0x469de4(0x1fe);default:return _0x469de4(0x1e9);}}[_0x15c5dd(0x1f1)](_0x2db6c7,_0x6a9cad){const _0x3c0349=_0x15c5dd,_0xf812e0=this[_0x3c0349(0x208)],_0x1e73e9=new _0x2db6c7(_0xf812e0[_0x3c0349(0x22a)]),_0x2ca6d9=_0xf812e0[_0x3c0349(0x1ed)][_0x3c0349(0x1f7)](_0x3c0349(0x21e));return _0x1e73e9[_0x3c0349(0x228)](_0x3c0349(0x209))['to'](_0x2ca6d9),_0x1e73e9['on'](_0x3c0349(0x1fb),()=>{const _0x5a9a42=_0x3c0349;_0x2ca6d9[_0x5a9a42(0x1fb)](_0x6a9cad);}),_0x1e73e9;}[_0x15c5dd(0x226)](_0x5db8c3){const _0x1269d8=_0x15c5dd,{locale:_0x29860f}=this[_0x1269d8(0x208)],_0x3c7892=this[_0x1269d8(0x208)][_0x1269d8(0x205)][_0x1269d8(0x1f7)](_0x1269d8(0x22c)),_0xf1cbd1=_0x5db8c3[0x0],_0x3ad836=this[_0x1269d8(0x1f1)](_0x37b7d1,_0xf1cbd1[_0x1269d8(0x207)]);return _0x3ad836[_0x1269d8(0x20c)]=_0xf1cbd1[_0x1269d8(0x20c)],_0x3ad836[_0x1269d8(0x228)](_0x1269d8(0x210))['to'](_0x3c7892,_0x1269d8(0x21d),_0x282836=>_0x199215(_0x29860f,_0xf1cbd1[_0x1269d8(0x207)],_0x282836?_0x1269d8(0x20a):_0x1269d8(0x1ff))[_0x1269d8(0x217)]),_0x3ad836[_0x1269d8(0x232)]=!0x0,_0x3ad836;}[_0x15c5dd(0x1f6)](_0x407a50){const _0x4255f7=_0x15c5dd,{locale:_0x45a5e9}=this[_0x4255f7(0x208)],_0x12eb52=this[_0x4255f7(0x208)][_0x4255f7(0x205)][_0x4255f7(0x1f7)](_0x4255f7(0x22c));return _0x407a50[_0x4255f7(0x1f9)](_0x332d00=>{const _0x333727=_0x4255f7,_0x2ea300=this[_0x333727(0x1f1)](_0x37b7d1,_0x332d00[_0x333727(0x207)]);return _0x2ea300[_0x333727(0x1e7)]=!0x0,_0x2ea300[_0x333727(0x20c)]=_0x332d00[_0x333727(0x20c)],_0x2ea300[_0x333727(0x228)](_0x333727(0x210))['to'](_0x12eb52,_0x333727(0x21d),_0xa59297=>_0x199215(_0x45a5e9,_0x332d00[_0x333727(0x207)],_0xa59297?_0x333727(0x20a):_0x333727(0x1ff))[_0x333727(0x217)]),_0x2ea300;});}[_0x15c5dd(0x1f8)](_0x43f315){const _0x52ed2e=_0x15c5dd;return _0x43f315[_0x52ed2e(0x1f9)](_0x3e94d=>{const _0x27d833=_0x52ed2e,_0x2e127a=this[_0x27d833(0x1f1)](_0x327646,_0x3e94d[_0x27d833(0x207)]);return _0x2e127a[_0x27d833(0x20c)]=_0x3e94d[_0x27d833(0x20c)],_0x2e127a[_0x27d833(0x210)]=_0x3e94d[_0x27d833(0x1ea)],_0x2e127a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x16cf94}from'ckeditor5/src/core.js';import{FileRepository as _0x1112eb}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xae37da}from'./uploadcareediting.js';import{UploadUtils as _0x4f6439}from'./utils/uploadutils.js';import{getImageUrls as _0x29828d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x16cf94{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1112eb,_0xae37da];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x35936b=this['editor'];if(!!!_0x35936b['config']['get']('uploadcare'))return;_0x35936b['plugins']['get'](_0x1112eb)['createUploadAdapter']=_0x4d8932=>new k(_0x4d8932,_0x35936b),_0x35936b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2f8dfe,{imageElement:_0x56e615,data:_0x5bc39e})=>{_0x35936b['model']['change'](_0x23af4d=>{_0x23af4d['setAttribute']('uploadcareImageId',_0x5bc39e['uploadcareImageId'],_0x56e615);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x40b23c,_0x1bf558){this['loader']=_0x40b23c,this['editor']=_0x1bf558,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x240068=await this['loader']['file'];return _0x4f6439['upload']({'file':_0x240068,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5f34ca=>{_0x5f34ca&&_0x5f34ca['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5f34ca['value']);}})['then'](async _0x19a1f4=>{const {imageFallbackUrl:_0x31059d,imageSources:_0x2991ca}=_0x29828d(_0x19a1f4['cdnUrl'],_0x19a1f4['imageInfo']['width']);return{'uploadcareImageId':_0x19a1f4['uuid'],'default':_0x31059d,'sources':_0x2991ca};})['catch'](()=>{const _0x42604b=t('Cannot\x20upload\x20file:')+('\x20'+_0x240068['name']+'.');return Promise['reject'](_0x42604b);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3be897}from'../uploadcareconfig.js';export function getTranslation(_0x24650a,_0xdad341,_0x587b22){const t=_0x24650a['t'],_0x4fcca3=_0x24650a['t'];switch(_0xdad341){case _0x3be897['Local']:return{'text':_0x4fcca3('Insert'===_0x587b22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4fcca3('From\x20computer')};case _0x3be897['URL']:return{'text':'Insert'===_0x587b22?_0x4fcca3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4fcca3('Via\x20URL')};case _0x3be897['Dropbox']:return{'text':t('Insert'===_0x587b22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3be897['Facebook']:return{'text':t('Insert'===_0x587b22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3be897['GDrive']:return{'text':t('Insert'===_0x587b22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3be897['GPhotos']:return{'text':t('Insert'===_0x587b22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3be897['OneDrive']:return{'text':t('Insert'===_0x587b22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xdad341;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x119906=_0x3c12;(function(_0x527201,_0x7c7edc){var _0x1422da=_0x3c12,_0x419711=_0x527201();while(!![]){try{var _0x3c94dd=-parseInt(_0x1422da(0x11a))/0x1*(parseInt(_0x1422da(0x11b))/0x2)+-parseInt(_0x1422da(0x11e))/0x3+-parseInt(_0x1422da(0x118))/0x4+parseInt(_0x1422da(0x11f))/0x5*(-parseInt(_0x1422da(0x110))/0x6)+parseInt(_0x1422da(0x115))/0x7+parseInt(_0x1422da(0x111))/0x8+-parseInt(_0x1422da(0x119))/0x9*(-parseInt(_0x1422da(0x11c))/0xa);if(_0x3c94dd===_0x7c7edc)break;else _0x419711['push'](_0x419711['shift']());}catch(_0x1424e1){_0x419711['push'](_0x419711['shift']());}}}(_0x91b9,0x22c7b));function _0x91b9(){var _0x16dfc8=['div','getFocusableElement','643716dYPSau','2529AjKjbj','1XMXiyn','77334VzsMbL','15770NClIVD','bindTemplate','258357uDFEhA','10JPgpjB','focusCycler','forwardCycle','true','750888pCQYKi','1373864NxKGgs','createCollection','fire','focusTracker','445200hpoMLI'];_0x91b9=function(){return _0x16dfc8;};return _0x91b9();}function _0x3c12(_0x3bfb20,_0x2a96c8){var _0x91b9d8=_0x91b9();return _0x3c12=function(_0x3c128f,_0x2d7478){_0x3c128f=_0x3c128f-0x10e;var _0x5d10a5=_0x91b9d8[_0x3c128f];return _0x5d10a5;},_0x3c12(_0x3bfb20,_0x2a96c8);}import{FocusTracker as _0x40e001}from'ckeditor5/src/utils.js';import{View as _0xd37df8,FocusCycler as _0x5016cb}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xd37df8{[_0x119906(0x114)];[_0x119906(0x120)];constructor(_0x39c6ff){var _0x2d97cc=_0x119906;super(_0x39c6ff),this[_0x2d97cc(0x114)]=new _0x40e001(),this[_0x2d97cc(0x120)]=new _0x5016cb({'focusables':this[_0x2d97cc(0x112)](),'focusTracker':this[_0x2d97cc(0x114)]});}[_0x119906(0x117)](){var _0x110cef=_0x119906;return{'tag':_0x110cef(0x116),'attributes':{'aria-hidden':_0x110cef(0x10f),'tabindex':'0'},'on':{'focus':this[_0x110cef(0x11d)]['to'](()=>{var _0x3d275a=_0x110cef;this[_0x3d275a(0x120)][_0x3d275a(0x113)](_0x3d275a(0x10e));})}};}}
|