@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251214.0 → 0.0.0-nightly-20251215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x469c05=_0x31f7;function _0x31f7(_0x2f3c67,_0x57d0d9){const _0x536eed=_0x536e();return _0x31f7=function(_0x31f75a,_0x11393f){_0x31f75a=_0x31f75a-0xfc;let _0x36eeff=_0x536eed[_0x31f75a];return _0x36eeff;},_0x31f7(_0x2f3c67,_0x57d0d9);}(function(_0x33b084,_0x95d826){const _0x30a16b=_0x31f7,_0x47d162=_0x33b084();while(!![]){try{const _0x58ebf4=parseInt(_0x30a16b(0x104))/0x1+-parseInt(_0x30a16b(0x120))/0x2*(-parseInt(_0x30a16b(0x12d))/0x3)+-parseInt(_0x30a16b(0x10d))/0x4*(-parseInt(_0x30a16b(0x12f))/0x5)+-parseInt(_0x30a16b(0x116))/0x6+parseInt(_0x30a16b(0x14f))/0x7*(parseInt(_0x30a16b(0x111))/0x8)+-parseInt(_0x30a16b(0x129))/0x9+-parseInt(_0x30a16b(0x10b))/0xa;if(_0x58ebf4===_0x95d826)break;else _0x47d162['push'](_0x47d162['shift']());}catch(_0x3eabdb){_0x47d162['push'](_0x47d162['shift']());}}}(_0x536e,0x2d251));import{Plugin as _0x27a63a}from'ckeditor5/src/core.js';import{Dialog as _0x4b7b87}from'ckeditor5/src/ui.js';import{createElement as _0x239ace,global as _0x54c6e3,uid as _0x3916b6}from'ckeditor5/src/utils.js';function _0x536e(){const _0x2a13dc=['input[uploadcare-file-input]','140648bVFwwd','getSelectedElement','uploadcareImageReplace','requires','pluginName','1859622fJbsfL','cleanupImage','uc-config','ctxElement','render','init','uploadcareImageId','replaceImageSource','appendChild','afterInit','264MPzdBK','config','contentLanguage','get','add','document','uploadcare.pubkey','iconHrefResolver','getAttribute','784350ktxuRJ','model','join','configElement','7122PuafYm','view','307205cCTjkz','removeAttribute','commands','_initSchema','editor','uc-upload-ctx-provider','closeMax','downcast','isPremiumPlugin','uploader-','remove','fromCharCode','conversion','extend','#uc-icon-arrow-down','execute','_ctxElement','isRegistered','uploadcare','for','locale','querySelector','true','ucContextId','_initCtx','schema','imageBlock','isOfficialPlugin','once','upcast','insertImage','imageInline','14UQDimX','\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','_configElement','destroy','_initConversion','PictureEditing','_initImageProcessingIndicator','body','elementToAttribute','selection','44738pquMyl','uploadcare.uploader','attributeToAttribute','data-uc-image-id','listenTo','map','href','1184730CmLZZc','UploadcareEditing','20ekUuTG','editing','_initConfig'];_0x536e=function(){return _0x2a13dc;};return _0x536e();}import{UploadcareCommand as _0x4d2d30}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2f0b4b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4a42b8}from'./utils/editingutils.js';export class UploadcareEditing extends _0x27a63a{[_0x469c05(0xfc)]=null;[_0x469c05(0x13f)]=null;static get[_0x469c05(0x115)](){const _0x4771c7=_0x469c05;return _0x4771c7(0x10c);}static get[_0x469c05(0x114)](){const _0x2454f3=_0x469c05;return[_0x2454f3(0xff),_0x2f0b4b,_0x4b7b87];}static get[_0x469c05(0x14a)](){return!0x0;}static get[_0x469c05(0x137)](){return!0x0;}[_0x469c05(0x146)];get[_0x469c05(0x12c)](){const _0x14879b=_0x469c05;return this[_0x14879b(0xfc)];}get[_0x469c05(0x119)](){const _0x675a59=_0x469c05;return this[_0x675a59(0x13f)];}constructor(_0x25c2b0){const _0x2ac2d6=_0x469c05;super(_0x25c2b0),this[_0x2ac2d6(0x146)]=_0x3916b6();}[_0x469c05(0x11b)](){const _0x5948e0=_0x469c05,_0x4cba34=this[_0x5948e0(0x133)];_0x4cba34[_0x5948e0(0x131)][_0x5948e0(0x124)](_0x5948e0(0x141),new _0x4d2d30(_0x4cba34));}[_0x469c05(0x11f)](){const _0x467f9e=_0x469c05;this[_0x467f9e(0x132)](),this[_0x467f9e(0xfe)](),this[_0x467f9e(0x10f)](),this[_0x467f9e(0x147)](),this[_0x467f9e(0x100)](),this[_0x467f9e(0x108)](this[_0x467f9e(0x133)],_0x467f9e(0xfd),()=>{const _0x4d74bc=_0x467f9e;this[_0x4d74bc(0xfc)]&&(this[_0x4d74bc(0xfc)][_0x4d74bc(0x139)](),this[_0x4d74bc(0xfc)]=null),this[_0x4d74bc(0x13f)]&&(this[_0x4d74bc(0x13f)][_0x4d74bc(0x139)](),this[_0x4d74bc(0x13f)]=null);const _0x4d008e=_0x54c6e3[_0x4d74bc(0x125)][_0x4d74bc(0x144)](_0x4d74bc(0x110));_0x4d008e&&_0x4d008e[_0x4d74bc(0x139)]();}),async function(_0xca0989){const _0x24f6cf=_0x5ae87b([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]),_0x12d4fa=0x535f8c3a,_0xe8f651=0x5358f7da^_0x12d4fa,_0x4dd5ee=window[_0x5ae87b([0x44,0x61,0x74,0x65])][_0x5ae87b([0x6e,0x6f,0x77])](),_0x5b2cbf=_0xca0989[_0x5ae87b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31f74b=new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aa13d=>{_0x5b2cbf[_0x5ae87b([0x6f,0x6e,0x63,0x65])](_0x5ae87b([0x72,0x65,0x61,0x64,0x79]),_0x1aa13d);}),_0x474ea9={[_0x5ae87b([0x6b,0x74,0x79])]:_0x5ae87b([0x45,0x43]),[_0x5ae87b([0x75,0x73,0x65])]:_0x5ae87b([0x73,0x69,0x67]),[_0x5ae87b([0x63,0x72,0x76])]:_0x5ae87b([0x50,0x2d,0x32,0x35,0x36]),[_0x5ae87b([0x78])]:_0x5ae87b([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]),[_0x5ae87b([0x79])]:_0x5ae87b([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]),[_0x5ae87b([0x61,0x6c,0x67])]:_0x5ae87b([0x45,0x53,0x32,0x35,0x36])},_0x578d66=_0x5b2cbf[_0x5ae87b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ae87b([0x67,0x65,0x74])](_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe582ed(){let _0x1a7b77,_0xccadb2=null,_0x289f32=null;try{if(_0x578d66==_0x5ae87b([0x47,0x50,0x4c]))return _0x5ae87b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a7b77=_0x150eec(),!_0x1a7b77)return _0x5ae87b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a7b77[_0x5ae87b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x289f32=_0x523a09(_0x1a7b77[_0x5ae87b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a7b77[_0x5ae87b([0x6a,0x74,0x69])])),await _0x3222c5()?_0x198db5()?_0x51902a()?_0x5ae87b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b5e04()?(_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ae87b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xccadb2=_0x6697ff(_0x5ae87b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ae87b([0x74,0x72,0x69,0x61,0x6c])&&(_0xccadb2=_0x6697ff(_0x5ae87b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5348fb()):_0x5ae87b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ae87b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ae87b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ae87b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51902a(){const _0x105778=[_0x5ae87b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ae87b([0x74,0x72,0x69,0x61,0x6c])][_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4dd5ee/0x3e8:0xe10*_0xe8f651;return _0x1a7b77[_0x5ae87b([0x65,0x78,0x70])]<_0x105778;}function _0x198db5(){const _0x5050d=_0x1a7b77[_0x5ae87b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5050d&&(!!_0x5050d[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae87b([0x2a]))||!!_0x5050d[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae87b([0x55,0x50,0x4c,0x43])));}function _0x2b5e04(){const _0x1bbf5d=_0x31f7,_0x5d2ab2=_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d2ab2||0x0==_0x5d2ab2[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e5358}=new URL(window[_0x5ae87b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bbf5d(0x10a)]);if(_0x5d2ab2[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e5358))return!0x0;const _0x4ed9f8=_0x5e5358[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e]));return _0x5d2ab2[_0x5ae87b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522825=>_0x522825[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae87b([0x2a])))[_0x5ae87b([0x6d,0x61,0x70])](_0x2fe244=>_0x2fe244[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e])))[_0x5ae87b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b5a4f=>_0x5b5a4f[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ed9f8[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ae87b([0x6d,0x61,0x70])](_0xfd46e1=>Array(_0x4ed9f8[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd46e1[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ae87b([0x66,0x69,0x6c,0x6c])](_0xfd46e1[0x0]===_0x5ae87b([0x2a])?_0x5ae87b([0x2a]):'')[_0x5ae87b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd46e1))[_0x5ae87b([0x73,0x6f,0x6d,0x65])](_0x48f1f3=>_0x4ed9f8[_0x5ae87b([0x65,0x76,0x65,0x72,0x79])]((_0x245c4c,_0x1ecf74)=>_0x48f1f3[_0x1ecf74]===_0x245c4c||_0x48f1f3[_0x1ecf74]===_0x5ae87b([0x2a])));}function _0x5348fb(){return _0xccadb2&&_0x289f32?new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bb174,_0x89f7f2)=>{_0xccadb2[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x2bb174,_0x89f7f2),_0x289f32[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0xcc83f1=>{_0xcc83f1!=_0x5ae87b([0x56,0x61,0x6c,0x69,0x64])&&_0x2bb174(_0xcc83f1);},_0x89f7f2);}):_0xccadb2||_0x289f32||_0x5ae87b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x523a09(_0x10282b,_0x1afa2d){return new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fcb02=>{if(_0x540636())return _0x4fcb02(_0x5ae87b([0x56,0x61,0x6c,0x69,0x64]));_0x4bca9a(),_0x5b2cbf[_0x5ae87b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ae87b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa9a71f=!0x1;const _0x287b2e=_0x3916b6();function _0x4e34a3(_0x53398d){return!!_0x53398d&&(typeof _0x53398d===_0x5ae87b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53398d===_0x5ae87b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53398d[_0x5ae87b([0x74,0x68,0x65,0x6e])]===_0x5ae87b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53398d[_0x5ae87b([0x63,0x61,0x74,0x63,0x68])]===_0x5ae87b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x494960(_0x38cfd9){_0x38fc8c(_0x38cfd9)[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x3b0a65=>{if(!_0x3b0a65||_0x3b0a65[_0x5ae87b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ae87b([0x6f,0x6b]))return _0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1997c7(_0x42be6d(_0x287b2e+_0x1afa2d))!=_0x3b0a65[_0x5ae87b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ae87b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x3c3757=>(_0x57b92e(),_0x3c3757),()=>{const _0x563794=_0x37cd45();return null==_0x563794?(_0x57b92e(),_0x5ae87b([0x56,0x61,0x6c,0x69,0x64])):_0x5ae87b(_0x4dd5ee-_0x563794>(0x7753083a^_0x12d4fa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x4fcb02)[_0x5ae87b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fcb02(_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdab565=0x536962ba^_0x12d4fa;function _0x57b92e(){const _0x38f2b9=_0x5ae87b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1997c7(_0x42be6d(_0x10282b)),_0xcaa73c=_0x251f8e(_0x1997c7(window[_0x5ae87b([0x4d,0x61,0x74,0x68])][_0x5ae87b([0x63,0x65,0x69,0x6c])](_0x4dd5ee/_0xdab565)));window[_0x5ae87b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ae87b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38f2b9,_0xcaa73c);}function _0x37cd45(){const _0x69f71a=_0x5ae87b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1997c7(_0x42be6d(_0x10282b)),_0x3c2824=window[_0x5ae87b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ae87b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x69f71a);return _0x3c2824?window[_0x5ae87b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x251f8e(_0x3c2824),0x10)*_0xdab565:null;}function _0x38fc8c(_0x5cd8ff){return new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x561c0c,_0xd53041)=>{_0x5cd8ff[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x561c0c,_0xd53041),window[_0x5ae87b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd53041,0x535e58fa^_0x12d4fa);});}}_0x5b2cbf[_0x5ae87b([0x6f,0x6e])](_0x5ae87b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b652b,_0x5b53a3)=>{if(_0x5b53a3[0x0]!=_0x10282b)return _0x4fcb02(_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b53a3[0x1]={..._0x5b53a3[0x1],[_0x5ae87b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x287b2e};},{[_0x5ae87b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ae87b([0x68,0x69,0x67,0x68])}),_0x5b2cbf[_0x5ae87b([0x6f,0x6e])](_0x5ae87b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b9c01=>{_0x4e34a3(_0x5b9c01[_0x5ae87b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa9a71f=!0x0,_0x494960(_0x5b9c01[_0x5ae87b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ae87b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ae87b([0x6c,0x6f,0x77])}),_0x31f74b[_0x5ae87b([0x74,0x68,0x65,0x6e])](()=>{_0xa9a71f||_0x4fcb02(_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x540636(){return _0x5b2cbf[_0x5ae87b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ae87b([0x76,0x69,0x65,0x77])][_0x5ae87b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ae87b([0x61,0x75,0x74,0x6f]);}function _0x4bca9a(){_0x5b2cbf[_0x5ae87b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ae87b([0x76,0x69,0x65,0x77])][_0x5ae87b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ae87b([0x61,0x75,0x74,0x6f]);}}function _0x6697ff(_0x1379bc){const _0x4633c6=[new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2a0c=>setTimeout(_0x5b2a0c,0x5356b2f6^_0x12d4fa)),_0x31f74b[_0x5ae87b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8f34=>{let _0x2e6f6c=0x0;_0x5b2cbf[_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae87b([0x6f,0x6e])](_0x5ae87b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28f2d7,_0x14c32d)=>{_0x14c32d[0x0][_0x5ae87b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e6f6c++,_0x2e6f6c==(0x535f8dc2^_0x12d4fa)&&(_0x4d8f34(),_0x28f2d7[_0x5ae87b([0x6f,0x66,0x66])]());});}))];return window[_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ae87b([0x72,0x61,0x63,0x65])](_0x4633c6)[_0x5ae87b([0x74,0x68,0x65,0x6e])](()=>_0x1379bc);}async function _0x241b66(){await _0x31f74b,_0x5b2cbf[_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae87b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a9115,_0x5b2cbf[_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae87b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a9115,_0x5b2cbf[_0x5ae87b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x879e9a(_0x54afeb){const _0xaf9b9d=_0x4c1bd1();_0x5b2cbf[_0xaf9b9d]=_0x5ae87b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54afeb,_0x54afeb!=_0x5ae87b([0x56,0x61,0x6c,0x69,0x64])&&_0x241b66();}function _0x4c1bd1(){const _0x54b15d=window[_0x5ae87b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ae87b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ae87b([0x6e,0x6f,0x77])]())[_0x5ae87b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ae87b([0x2e]),'');let _0x417e43=_0x5ae87b([0x68]);for(let _0x216169=0x0;_0x216169<_0x54b15d[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x216169+=0x2){let _0x1a00a7=window[_0x5ae87b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b15d[_0x5ae87b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x216169,_0x216169+0x2));_0x1a00a7>=_0x24f6cf[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a00a7-=_0x24f6cf[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x417e43+=_0x24f6cf[_0x1a00a7];}return _0x417e43;}function _0x150eec(){const _0x1c1da9=_0x578d66[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e]));if(0x3!=_0x1c1da9[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48b829(_0x1c1da9[0x1]);function _0x48b829(_0x7f4698){const _0x49e0bb=_0x3c9b60(_0x7f4698);return _0x49e0bb&&_0x23641b()?_0x49e0bb:null;function _0x23641b(){const _0x5d70cd=_0x49e0bb[_0x5ae87b([0x6a,0x74,0x69])],_0x5d2f3c=window[_0x5ae87b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d70cd[_0x5ae87b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d70cd[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44c4fa={..._0x49e0bb,[_0x5ae87b([0x6a,0x74,0x69])]:_0x5d70cd[_0x5ae87b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d70cd[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44c4fa[_0x5ae87b([0x76,0x63])],_0x42be6d(_0x44c4fa)==_0x5d2f3c;}}}async function _0x3222c5(){let _0x2b54fe=!0x0;try{const _0x5029b7=_0x578d66[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e])),[_0x412cf9,_0x404379,_0x7b8008]=_0x5029b7;return _0x598f68(_0x412cf9),await _0xd40203(_0x412cf9,_0x404379,_0x7b8008),_0x2b54fe;}catch{return!0x1;}function _0x598f68(_0x35dee){const _0xae0feb=_0x3c9b60(_0x35dee);_0xae0feb&&_0xae0feb[_0x5ae87b([0x61,0x6c,0x67])]==_0x5ae87b([0x45,0x53,0x32,0x35,0x36])||(_0x2b54fe=!0x1);}async function _0xd40203(_0x490909,_0x1feb76,_0x239cab){const _0x1aa8cc=window[_0x5ae87b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ae87b([0x66,0x72,0x6f,0x6d])](_0x2f6549(_0x239cab),_0x7492dc=>_0x7492dc[_0x5ae87b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52964e=new window[(_0x5ae87b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ae87b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x490909+_0x5ae87b([0x2e])+_0x1feb76),_0x262d3a=window[_0x5ae87b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ae87b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x262d3a)return;const _0x11b659=await _0x262d3a[_0x5ae87b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ae87b([0x6a,0x77,0x6b]),_0x474ea9,{[_0x5ae87b([0x6e,0x61,0x6d,0x65])]:_0x5ae87b([0x45,0x43,0x44,0x53,0x41]),[_0x5ae87b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ae87b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ae87b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x262d3a[_0x5ae87b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ae87b([0x6e,0x61,0x6d,0x65])]:_0x5ae87b([0x45,0x43,0x44,0x53,0x41]),[_0x5ae87b([0x68,0x61,0x73,0x68])]:{[_0x5ae87b([0x6e,0x61,0x6d,0x65])]:_0x5ae87b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11b659,_0x1aa8cc,_0x52964e)||(_0x2b54fe=!0x1);}}function _0x3c9b60(_0x5e4d24){return _0x5e4d24[_0x5ae87b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ae87b([0x65,0x79]))?JSON[_0x5ae87b([0x70,0x61,0x72,0x73,0x65])](_0x2f6549(_0x5e4d24)):null;}function _0x2f6549(_0x54df37){return window[_0x5ae87b([0x61,0x74,0x6f,0x62])](_0x54df37[_0x5ae87b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ae87b([0x2b]))[_0x5ae87b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ae87b([0x2f])));}function _0x42be6d(_0x37b1d3){let _0x24075e=0x1505;function _0x1beb19(_0x2e50e3){for(let _0x12a74f=0x0;_0x12a74f<_0x2e50e3[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12a74f++){const _0x18917b=_0x2e50e3[_0x5ae87b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12a74f);_0x24075e=(_0x24075e<<0x5)+_0x24075e+_0x18917b,_0x24075e&=_0x24075e;}}function _0x5644ec(_0x1d51f9){Array[_0x5ae87b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d51f9)?_0x1d51f9[_0x5ae87b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5644ec):_0x1d51f9&&typeof _0x1d51f9==_0x5ae87b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ae87b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d51f9)[_0x5ae87b([0x73,0x6f,0x72,0x74])]()[_0x5ae87b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ce791,_0xb112b])=>{_0x1beb19(_0x3ce791),_0x5644ec(_0xb112b);}):_0x1beb19(window[_0x5ae87b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d51f9));}return _0x5644ec(_0x37b1d3),_0x24075e>>>0x0;}function _0x1997c7(_0x3fddac){return _0x3fddac[_0x5ae87b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ae87b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ae87b([0x30]));}function _0x251f8e(_0x5a448f){return _0x5a448f[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ae87b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ae87b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a9115(){}function _0x5ae87b(_0x5107de){const _0x28d74f=_0x31f7;return _0x5107de[_0x28d74f(0x109)](_0xb77c1c=>String[_0x28d74f(0x13a)](_0xb77c1c))[_0x28d74f(0x12b)]('');}_0x879e9a(await _0xe582ed());}(this);}[_0x469c05(0x132)](){const _0x1c94d1=_0x469c05,_0x2bd19f=this[_0x1c94d1(0x133)][_0x1c94d1(0x12a)][_0x1c94d1(0x148)];_0x2bd19f[_0x1c94d1(0x140)](_0x1c94d1(0x149))&&_0x2bd19f[_0x1c94d1(0x13c)](_0x1c94d1(0x149),{'allowAttributes':[_0x1c94d1(0x11c)]}),_0x2bd19f[_0x1c94d1(0x140)](_0x1c94d1(0x14e))&&_0x2bd19f[_0x1c94d1(0x13c)](_0x1c94d1(0x14e),{'allowAttributes':[_0x1c94d1(0x11c)]});}[_0x469c05(0xfe)](){const _0x588434=_0x469c05,_0x1aee86=this[_0x588434(0x133)];_0x1aee86[_0x588434(0x13b)][_0x588434(0x142)](_0x588434(0x136))[_0x588434(0x106)]({'model':_0x588434(0x11c),'view':_0x588434(0x107)}),_0x1aee86[_0x588434(0x13b)][_0x588434(0x142)](_0x588434(0x14c))[_0x588434(0x102)]({'model':{'key':_0x588434(0x11c),'value':_0x37c0b4=>_0x37c0b4[_0x588434(0x128)](_0x588434(0x107))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29040d=_0x1aee86[_0x588434(0x131)][_0x588434(0x123)](_0x588434(0x11d));_0x29040d&&this[_0x588434(0x108)](_0x29040d,_0x588434(0x117),(_0x19ef3d,[_0xb75f30,_0x38353e])=>{const _0x498b1b=_0x588434;_0xb75f30[_0x498b1b(0x130)](_0x498b1b(0x11c),_0x38353e);});}[_0x469c05(0x10f)](){const _0x341e0e=_0x469c05,_0x144345=this[_0x341e0e(0x133)][_0x341e0e(0x121)][_0x341e0e(0x123)](_0x341e0e(0x105))||{},_0x508f40=this[_0x341e0e(0x133)][_0x341e0e(0x121)][_0x341e0e(0x123)](_0x341e0e(0x126))||'';this[_0x341e0e(0xfc)]=_0x239ace(_0x54c6e3[_0x341e0e(0x125)],_0x341e0e(0x118),{..._0x144345,'pubkey':_0x508f40,'ctx-name':_0x341e0e(0x138)+this[_0x341e0e(0x146)],'sourceList':'','imgOnly':_0x341e0e(0x145),'removeCopyright':_0x341e0e(0x145),'localeName':this[_0x341e0e(0x133)][_0x341e0e(0x143)][_0x341e0e(0x122)],'externalSourcesEmbedCss':_0x341e0e(0x150)}),this[_0x341e0e(0xfc)][_0x341e0e(0x127)]=_0x353c4a=>{const _0x46dd79=_0x341e0e;if(_0x46dd79(0x135)==_0x353c4a)return _0x46dd79(0x13d);},_0x54c6e3[_0x341e0e(0x125)][_0x341e0e(0x101)][_0x341e0e(0x11e)](this[_0x341e0e(0xfc)]);}[_0x469c05(0x147)](){const _0x38bba5=_0x469c05;this[_0x38bba5(0x13f)]=_0x239ace(_0x54c6e3[_0x38bba5(0x125)],_0x38bba5(0x134),{'ctx-name':_0x38bba5(0x138)+this[_0x38bba5(0x146)]}),_0x54c6e3[_0x38bba5(0x125)][_0x38bba5(0x101)][_0x38bba5(0x11e)](this[_0x38bba5(0x13f)]);}[_0x469c05(0x100)](){const _0x16b0d0=_0x469c05,_0x2a7543=this[_0x16b0d0(0x133)][_0x16b0d0(0x131)][_0x16b0d0(0x123)](_0x16b0d0(0x14d));_0x2a7543&&this[_0x16b0d0(0x108)](_0x2a7543,_0x16b0d0(0x13e),()=>{const _0x127474=_0x16b0d0,_0x3b7f5d=this[_0x127474(0x133)][_0x127474(0x12a)][_0x127474(0x125)][_0x127474(0x103)][_0x127474(0x112)]();_0x3b7f5d&&_0x3b7f5d[_0x127474(0x128)](_0x127474(0x11c))&&this[_0x127474(0x133)][_0x127474(0x10e)][_0x127474(0x12e)][_0x127474(0x14b)](_0x127474(0x11a),()=>{const _0x2769c9=_0x127474;_0x4a42b8(this[_0x2769c9(0x133)],_0x3b7f5d);});});const _0x4f703b=this[_0x16b0d0(0x133)][_0x16b0d0(0x131)][_0x16b0d0(0x123)](_0x16b0d0(0x113));_0x4f703b&&this[_0x16b0d0(0x108)](_0x4f703b,_0x16b0d0(0x13e),()=>{const _0x397b47=_0x16b0d0,_0x58f204=this[_0x397b47(0x133)][_0x397b47(0x12a)][_0x397b47(0x125)][_0x397b47(0x103)][_0x397b47(0x112)]();_0x58f204&&_0x58f204[_0x397b47(0x128)](_0x397b47(0x11c))&&this[_0x397b47(0x133)][_0x397b47(0x10e)][_0x397b47(0x12e)][_0x397b47(0x14b)](_0x397b47(0x11a),()=>{const _0x7cf455=_0x397b47;_0x4a42b8(this[_0x7cf455(0x133)],_0x58f204);});});}}
|
|
23
|
+
const _0x3c6bfb=_0x5987;function _0x4c7d(){const _0x3a2772=['209DFJJJU','locale','join','commands','2742IBFauf','querySelector','schema','14745888PiUMTC','conversion','uploadcareImageReplace','uploadcare','isPremiumPlugin','href','_initConfig','config','getSelectedElement','body','removeAttribute','uploadcareImageId','12715YYxzUs','102010nVggvU','true','data-uc-image-id','ctxElement','imageInline','for','model','replaceImageSource','upcast','afterInit','isRegistered','5062fpxLFi','PictureEditing','uploadcare.uploader','cleanupImage','insertImage','378432TBCckR','_initImageProcessingIndicator','UploadcareEditing','366807bWNbij','once','988SkvSgm','#uc-icon-arrow-down','listenTo','ucContextId','view','fromCharCode','getAttribute','render','_initSchema','imageBlock','_configElement','configElement','8YGCSFs','iconHrefResolver','uc-upload-ctx-provider','elementToAttribute','destroy','downcast','isOfficialPlugin','get','execute','uc-config','96dnHrfN','init','contentLanguage','editor','selection','uploadcare.pubkey','add','appendChild','pluginName','requires','attributeToAttribute','_initConversion','input[uploadcare-file-input]','remove','closeMax','_ctxElement','map','editing','_initCtx','extend','document','12213ljbkZA','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploader-'];_0x4c7d=function(){return _0x3a2772;};return _0x4c7d();}function _0x5987(_0x52c577,_0x1341f9){const _0x4c7d75=_0x4c7d();return _0x5987=function(_0x598792,_0x413475){_0x598792=_0x598792-0xc3;let _0x5ebade=_0x4c7d75[_0x598792];return _0x5ebade;},_0x5987(_0x52c577,_0x1341f9);}(function(_0xcc831f,_0x1a76fd){const _0x345865=_0x5987,_0x1eedab=_0xcc831f();while(!![]){try{const _0x120434=-parseInt(_0x345865(0x108))/0x1*(parseInt(_0x345865(0xe8))/0x2)+-parseInt(_0x345865(0xc6))/0x3*(-parseInt(_0x345865(0xf2))/0x4)+-parseInt(_0x345865(0xdc))/0x5*(parseInt(_0x345865(0xcd))/0x6)+parseInt(_0x345865(0xf0))/0x7*(parseInt(_0x345865(0xfe))/0x8)+-parseInt(_0x345865(0xed))/0x9+-parseInt(_0x345865(0xdd))/0xa*(parseInt(_0x345865(0xc9))/0xb)+parseInt(_0x345865(0xd0))/0xc;if(_0x120434===_0x1a76fd)break;else _0x1eedab['push'](_0x1eedab['shift']());}catch(_0x4739ed){_0x1eedab['push'](_0x1eedab['shift']());}}}(_0x4c7d,0x9da88));import{Plugin as _0x11446b}from'ckeditor5/src/core.js';import{Dialog as _0x5962f4}from'ckeditor5/src/ui.js';import{createElement as _0x51c9c8,global as _0xbf63ae,uid as _0x259339}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1b76af}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x29986c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d822a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x11446b{[_0x3c6bfb(0xfc)]=null;[_0x3c6bfb(0x117)]=null;static get[_0x3c6bfb(0x110)](){const _0x3fedbf=_0x3c6bfb;return _0x3fedbf(0xef);}static get[_0x3c6bfb(0x111)](){const _0x3ba88b=_0x3c6bfb;return[_0x3ba88b(0xe9),_0x29986c,_0x5962f4];}static get[_0x3c6bfb(0x104)](){return!0x0;}static get[_0x3c6bfb(0xd4)](){return!0x0;}[_0x3c6bfb(0xf5)];get[_0x3c6bfb(0xfd)](){const _0x5d1abd=_0x3c6bfb;return this[_0x5d1abd(0xfc)];}get[_0x3c6bfb(0xe0)](){const _0x1a54ab=_0x3c6bfb;return this[_0x1a54ab(0x117)];}constructor(_0x65ca80){const _0x31962c=_0x3c6bfb;super(_0x65ca80),this[_0x31962c(0xf5)]=_0x259339();}[_0x3c6bfb(0x109)](){const _0x4a2610=_0x3c6bfb,_0x2d6e40=this[_0x4a2610(0x10b)];_0x2d6e40[_0x4a2610(0xcc)][_0x4a2610(0x10e)](_0x4a2610(0xd3),new _0x1b76af(_0x2d6e40));}[_0x3c6bfb(0xe6)](){const _0x2b91e4=_0x3c6bfb;this[_0x2b91e4(0xfa)](),this[_0x2b91e4(0x113)](),this[_0x2b91e4(0xd6)](),this[_0x2b91e4(0xc3)](),this[_0x2b91e4(0xee)](),this[_0x2b91e4(0xf4)](this[_0x2b91e4(0x10b)],_0x2b91e4(0x102),()=>{const _0x3f48b6=_0x2b91e4;this[_0x3f48b6(0xfc)]&&(this[_0x3f48b6(0xfc)][_0x3f48b6(0x115)](),this[_0x3f48b6(0xfc)]=null),this[_0x3f48b6(0x117)]&&(this[_0x3f48b6(0x117)][_0x3f48b6(0x115)](),this[_0x3f48b6(0x117)]=null);const _0x5bfe28=_0xbf63ae[_0x3f48b6(0xc5)][_0x3f48b6(0xce)](_0x3f48b6(0x114));_0x5bfe28&&_0x5bfe28[_0x3f48b6(0x115)]();}),async function(_0x265371){const _0x19d234=_0x545daa([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]),_0x4ca00f=0x535f8c3a,_0x449a45=0x5358f7c2^_0x4ca00f,_0xc4e53c=window[_0x545daa([0x44,0x61,0x74,0x65])][_0x545daa([0x6e,0x6f,0x77])](),_0x11414b=_0x265371[_0x545daa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a5601=new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd1bf=>{_0x11414b[_0x545daa([0x6f,0x6e,0x63,0x65])](_0x545daa([0x72,0x65,0x61,0x64,0x79]),_0x3dd1bf);}),_0x25d052={[_0x545daa([0x6b,0x74,0x79])]:_0x545daa([0x45,0x43]),[_0x545daa([0x75,0x73,0x65])]:_0x545daa([0x73,0x69,0x67]),[_0x545daa([0x63,0x72,0x76])]:_0x545daa([0x50,0x2d,0x32,0x35,0x36]),[_0x545daa([0x78])]:_0x545daa([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]),[_0x545daa([0x79])]:_0x545daa([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]),[_0x545daa([0x61,0x6c,0x67])]:_0x545daa([0x45,0x53,0x32,0x35,0x36])},_0x1b526c=_0x11414b[_0x545daa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x545daa([0x67,0x65,0x74])](_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39c691(){let _0x2a2ed9,_0x2ea200=null,_0xf971e4=null;try{if(_0x1b526c==_0x545daa([0x47,0x50,0x4c]))return _0x545daa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a2ed9=_0x391644(),!_0x2a2ed9)return _0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a2ed9[_0x545daa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf971e4=_0x526a5d(_0x2a2ed9[_0x545daa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a2ed9[_0x545daa([0x6a,0x74,0x69])])),await _0x214af1()?_0x1df27c()?_0x3676d8()?_0x545daa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f4990()?(_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545daa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ea200=_0x33d9ea(_0x545daa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545daa([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ea200=_0x33d9ea(_0x545daa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x438b35()):_0x545daa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x545daa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3676d8(){const _0x5bcb31=[_0x545daa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x545daa([0x74,0x72,0x69,0x61,0x6c])][_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc4e53c/0x3e8:0xe10*_0x449a45;return _0x2a2ed9[_0x545daa([0x65,0x78,0x70])]<_0x5bcb31;}function _0x1df27c(){const _0x2d927a=_0x2a2ed9[_0x545daa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d927a&&(!!_0x2d927a[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x2a]))||!!_0x2d927a[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x55,0x50,0x4c,0x43])));}function _0x2f4990(){const _0x1c4b69=_0x5987,_0x4527d2=_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4527d2||0x0==_0x4527d2[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf5cbe2}=new URL(window[_0x545daa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c4b69(0xd5)]);if(_0x4527d2[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf5cbe2))return!0x0;const _0x4cf4c8=_0xf5cbe2[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e]));return _0x4527d2[_0x545daa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43563f=>_0x43563f[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x2a])))[_0x545daa([0x6d,0x61,0x70])](_0x18de09=>_0x18de09[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e])))[_0x545daa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f5ff9=>_0x4f5ff9[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4cf4c8[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545daa([0x6d,0x61,0x70])](_0x4771bd=>Array(_0x4cf4c8[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4771bd[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545daa([0x66,0x69,0x6c,0x6c])](_0x4771bd[0x0]===_0x545daa([0x2a])?_0x545daa([0x2a]):'')[_0x545daa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4771bd))[_0x545daa([0x73,0x6f,0x6d,0x65])](_0x2da481=>_0x4cf4c8[_0x545daa([0x65,0x76,0x65,0x72,0x79])]((_0x950b8c,_0x5dc3b0)=>_0x2da481[_0x5dc3b0]===_0x950b8c||_0x2da481[_0x5dc3b0]===_0x545daa([0x2a])));}function _0x438b35(){return _0x2ea200&&_0xf971e4?new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0328,_0x37f493)=>{_0x2ea200[_0x545daa([0x74,0x68,0x65,0x6e])](_0x4f0328,_0x37f493),_0xf971e4[_0x545daa([0x74,0x68,0x65,0x6e])](_0x36f063=>{_0x36f063!=_0x545daa([0x56,0x61,0x6c,0x69,0x64])&&_0x4f0328(_0x36f063);},_0x37f493);}):_0x2ea200||_0xf971e4||_0x545daa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x526a5d(_0x40a240,_0x225233){return new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x152142=>{if(_0x1fda49())return _0x152142(_0x545daa([0x56,0x61,0x6c,0x69,0x64]));_0x56b7a7(),_0x11414b[_0x545daa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c1e11=!0x1;const _0x3bd28c=_0x259339();function _0xda4340(_0x47192c){return!!_0x47192c&&(typeof _0x47192c===_0x545daa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47192c===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47192c[_0x545daa([0x74,0x68,0x65,0x6e])]===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47192c[_0x545daa([0x63,0x61,0x74,0x63,0x68])]===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf3894f(_0x5dbc65){_0x2ea56f(_0x5dbc65)[_0x545daa([0x74,0x68,0x65,0x6e])](_0x42fccf=>{if(!_0x42fccf||_0x42fccf[_0x545daa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x545daa([0x6f,0x6b]))return _0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x221336(_0x5e7990(_0x3bd28c+_0x225233))!=_0x42fccf[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x545daa([0x56,0x61,0x6c,0x69,0x64]);})[_0x545daa([0x74,0x68,0x65,0x6e])](_0x17b14c=>(_0x45dc6a(),_0x17b14c),()=>{const _0x5bbedd=_0x1c5873();return null==_0x5bbedd?(_0x45dc6a(),_0x545daa([0x56,0x61,0x6c,0x69,0x64])):_0x545daa(_0xc4e53c-_0x5bbedd>(0x7753083a^_0x4ca00f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x545daa([0x74,0x68,0x65,0x6e])](_0x152142)[_0x545daa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21870f=0x536962ba^_0x4ca00f;function _0x45dc6a(){const _0xee5bf3=_0x545daa([0x6c,0x6c,0x63,0x74,0x2d])+_0x221336(_0x5e7990(_0x40a240)),_0x48ff80=_0x3e8594(_0x221336(window[_0x545daa([0x4d,0x61,0x74,0x68])][_0x545daa([0x63,0x65,0x69,0x6c])](_0xc4e53c/_0x21870f)));window[_0x545daa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545daa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xee5bf3,_0x48ff80);}function _0x1c5873(){const _0x4d7393=_0x545daa([0x6c,0x6c,0x63,0x74,0x2d])+_0x221336(_0x5e7990(_0x40a240)),_0x4cef83=window[_0x545daa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545daa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d7393);return _0x4cef83?window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e8594(_0x4cef83),0x10)*_0x21870f:null;}function _0x2ea56f(_0x4dec9c){return new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f1f6b,_0x91b53e)=>{_0x4dec9c[_0x545daa([0x74,0x68,0x65,0x6e])](_0x2f1f6b,_0x91b53e),window[_0x545daa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x91b53e,0x535e58fa^_0x4ca00f);});}}_0x11414b[_0x545daa([0x6f,0x6e])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39b80c,_0x14faa9)=>{if(_0x14faa9[0x0]!=_0x40a240)return _0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14faa9[0x1]={..._0x14faa9[0x1],[_0x545daa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bd28c};},{[_0x545daa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545daa([0x68,0x69,0x67,0x68])}),_0x11414b[_0x545daa([0x6f,0x6e])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52cec6=>{_0xda4340(_0x52cec6[_0x545daa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c1e11=!0x0,_0xf3894f(_0x52cec6[_0x545daa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x545daa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545daa([0x6c,0x6f,0x77])}),_0x5a5601[_0x545daa([0x74,0x68,0x65,0x6e])](()=>{_0x5c1e11||_0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fda49(){return _0x11414b[_0x545daa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545daa([0x76,0x69,0x65,0x77])][_0x545daa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x545daa([0x61,0x75,0x74,0x6f]);}function _0x56b7a7(){_0x11414b[_0x545daa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545daa([0x76,0x69,0x65,0x77])][_0x545daa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x545daa([0x61,0x75,0x74,0x6f]);}}function _0x33d9ea(_0x50248b){const _0xde0af1=[new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c991=>setTimeout(_0x10c991,0x5356b2f6^_0x4ca00f)),_0x5a5601[_0x545daa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eca0f=>{let _0x3974c5=0x0;_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x6f,0x6e])](_0x545daa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d6558,_0x55965e)=>{_0x55965e[0x0][_0x545daa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3974c5++,_0x3974c5==(0x535f8dc2^_0x4ca00f)&&(_0x5eca0f(),_0x2d6558[_0x545daa([0x6f,0x66,0x66])]());});}))];return window[_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x545daa([0x72,0x61,0x63,0x65])](_0xde0af1)[_0x545daa([0x74,0x68,0x65,0x6e])](()=>_0x50248b);}async function _0x25c764(){await _0x5a5601,_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e58af,_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e58af,_0x11414b[_0x545daa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x545daa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27b72b(_0x4ae74a){const _0x3573c5=_0x3c6211();_0x11414b[_0x3573c5]=_0x545daa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ae74a,_0x4ae74a!=_0x545daa([0x56,0x61,0x6c,0x69,0x64])&&_0x25c764();}function _0x3c6211(){const _0x2f6e71=window[_0x545daa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x545daa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x545daa([0x6e,0x6f,0x77])]())[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x545daa([0x2e]),'');let _0x17ee33=_0x545daa([0x68]);for(let _0x3fc31c=0x0;_0x3fc31c<_0x2f6e71[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fc31c+=0x2){let _0x397dd6=window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6e71[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fc31c,_0x3fc31c+0x2));_0x397dd6>=_0x19d234[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x397dd6-=_0x19d234[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17ee33+=_0x19d234[_0x397dd6];}return _0x17ee33;}function _0x391644(){const _0x263ff3=_0x1b526c[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e]));if(0x3!=_0x263ff3[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19673c(_0x263ff3[0x1]);function _0x19673c(_0x170f7c){const _0xc5a37f=_0x5e157c(_0x170f7c);return _0xc5a37f&&_0x1c2754()?_0xc5a37f:null;function _0x1c2754(){const _0x758f80=_0xc5a37f[_0x545daa([0x6a,0x74,0x69])],_0x315836=window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x758f80[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x758f80[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43ab3f={..._0xc5a37f,[_0x545daa([0x6a,0x74,0x69])]:_0x758f80[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x758f80[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43ab3f[_0x545daa([0x76,0x63])],_0x5e7990(_0x43ab3f)==_0x315836;}}}async function _0x214af1(){let _0x563211=!0x0;try{const _0x29f15e=_0x1b526c[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e])),[_0x186e91,_0xaf5d87,_0x39618e]=_0x29f15e;return _0x55cf9b(_0x186e91),await _0x2591f0(_0x186e91,_0xaf5d87,_0x39618e),_0x563211;}catch{return!0x1;}function _0x55cf9b(_0x46efcb){const _0x120924=_0x5e157c(_0x46efcb);_0x120924&&_0x120924[_0x545daa([0x61,0x6c,0x67])]==_0x545daa([0x45,0x53,0x32,0x35,0x36])||(_0x563211=!0x1);}async function _0x2591f0(_0x4e2ab9,_0x452726,_0x53db79){const _0x155922=window[_0x545daa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x545daa([0x66,0x72,0x6f,0x6d])](_0x44fda6(_0x53db79),_0x4fa28a=>_0x4fa28a[_0x545daa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ea134=new window[(_0x545daa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x545daa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2ab9+_0x545daa([0x2e])+_0x452726),_0x513cfe=window[_0x545daa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x545daa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x513cfe)return;const _0x51967d=await _0x513cfe[_0x545daa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x545daa([0x6a,0x77,0x6b]),_0x25d052,{[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x45,0x43,0x44,0x53,0x41]),[_0x545daa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x545daa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x513cfe[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x45,0x43,0x44,0x53,0x41]),[_0x545daa([0x68,0x61,0x73,0x68])]:{[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51967d,_0x155922,_0x5ea134)||(_0x563211=!0x1);}}function _0x5e157c(_0x48d8d3){return _0x48d8d3[_0x545daa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x545daa([0x65,0x79]))?JSON[_0x545daa([0x70,0x61,0x72,0x73,0x65])](_0x44fda6(_0x48d8d3)):null;}function _0x44fda6(_0x489431){return window[_0x545daa([0x61,0x74,0x6f,0x62])](_0x489431[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x545daa([0x2b]))[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x545daa([0x2f])));}function _0x5e7990(_0x1ab60c){let _0x1867b3=0x1505;function _0x269be7(_0x25fa02){for(let _0x2eb8c4=0x0;_0x2eb8c4<_0x25fa02[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eb8c4++){const _0x285a67=_0x25fa02[_0x545daa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2eb8c4);_0x1867b3=(_0x1867b3<<0x5)+_0x1867b3+_0x285a67,_0x1867b3&=_0x1867b3;}}function _0x2b978c(_0x5aee18){Array[_0x545daa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5aee18)?_0x5aee18[_0x545daa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b978c):_0x5aee18&&typeof _0x5aee18==_0x545daa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x545daa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5aee18)[_0x545daa([0x73,0x6f,0x72,0x74])]()[_0x545daa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ed6bb,_0x1b7bf4])=>{_0x269be7(_0x4ed6bb),_0x2b978c(_0x1b7bf4);}):_0x269be7(window[_0x545daa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5aee18));}return _0x2b978c(_0x1ab60c),_0x1867b3>>>0x0;}function _0x221336(_0x52c5fd){return _0x52c5fd[_0x545daa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x545daa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x545daa([0x30]));}function _0x3e8594(_0x32ce55){return _0x32ce55[_0x545daa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x545daa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x545daa([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e58af(){}function _0x545daa(_0xfab262){const _0x593b20=_0x5987;return _0xfab262[_0x593b20(0x118)](_0x243c25=>String[_0x593b20(0xf7)](_0x243c25))[_0x593b20(0xcb)]('');}_0x27b72b(await _0x39c691());}(this);}[_0x3c6bfb(0xfa)](){const _0x416fb3=_0x3c6bfb,_0x5f5b71=this[_0x416fb3(0x10b)][_0x416fb3(0xe3)][_0x416fb3(0xcf)];_0x5f5b71[_0x416fb3(0xe7)](_0x416fb3(0xfb))&&_0x5f5b71[_0x416fb3(0xc4)](_0x416fb3(0xfb),{'allowAttributes':[_0x416fb3(0xdb)]}),_0x5f5b71[_0x416fb3(0xe7)](_0x416fb3(0xe1))&&_0x5f5b71[_0x416fb3(0xc4)](_0x416fb3(0xe1),{'allowAttributes':[_0x416fb3(0xdb)]});}[_0x3c6bfb(0x113)](){const _0x4ece04=_0x3c6bfb,_0x17bbb8=this[_0x4ece04(0x10b)];_0x17bbb8[_0x4ece04(0xd1)][_0x4ece04(0xe2)](_0x4ece04(0x103))[_0x4ece04(0x112)]({'model':_0x4ece04(0xdb),'view':_0x4ece04(0xdf)}),_0x17bbb8[_0x4ece04(0xd1)][_0x4ece04(0xe2)](_0x4ece04(0xe5))[_0x4ece04(0x101)]({'model':{'key':_0x4ece04(0xdb),'value':_0x2ce181=>_0x2ce181[_0x4ece04(0xf8)](_0x4ece04(0xdf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1dfb28=_0x17bbb8[_0x4ece04(0xcc)][_0x4ece04(0x105)](_0x4ece04(0xe4));_0x1dfb28&&this[_0x4ece04(0xf4)](_0x1dfb28,_0x4ece04(0xeb),(_0x5c8bec,[_0x249a62,_0x4609fe])=>{const _0x38be28=_0x4ece04;_0x249a62[_0x38be28(0xda)](_0x38be28(0xdb),_0x4609fe);});}[_0x3c6bfb(0xd6)](){const _0x3d6e86=_0x3c6bfb,_0xaf1c56=this[_0x3d6e86(0x10b)][_0x3d6e86(0xd7)][_0x3d6e86(0x105)](_0x3d6e86(0xea))||{},_0x287cc5=this[_0x3d6e86(0x10b)][_0x3d6e86(0xd7)][_0x3d6e86(0x105)](_0x3d6e86(0x10d))||'';this[_0x3d6e86(0xfc)]=_0x51c9c8(_0xbf63ae[_0x3d6e86(0xc5)],_0x3d6e86(0x107),{..._0xaf1c56,'pubkey':_0x287cc5,'ctx-name':_0x3d6e86(0xc8)+this[_0x3d6e86(0xf5)],'sourceList':'','imgOnly':_0x3d6e86(0xde),'removeCopyright':_0x3d6e86(0xde),'localeName':this[_0x3d6e86(0x10b)][_0x3d6e86(0xca)][_0x3d6e86(0x10a)],'externalSourcesEmbedCss':_0x3d6e86(0xc7)}),this[_0x3d6e86(0xfc)][_0x3d6e86(0xff)]=_0x4409a4=>{const _0x4661a4=_0x3d6e86;if(_0x4661a4(0x116)==_0x4409a4)return _0x4661a4(0xf3);},_0xbf63ae[_0x3d6e86(0xc5)][_0x3d6e86(0xd9)][_0x3d6e86(0x10f)](this[_0x3d6e86(0xfc)]);}[_0x3c6bfb(0xc3)](){const _0x3ad88b=_0x3c6bfb;this[_0x3ad88b(0x117)]=_0x51c9c8(_0xbf63ae[_0x3ad88b(0xc5)],_0x3ad88b(0x100),{'ctx-name':_0x3ad88b(0xc8)+this[_0x3ad88b(0xf5)]}),_0xbf63ae[_0x3ad88b(0xc5)][_0x3ad88b(0xd9)][_0x3ad88b(0x10f)](this[_0x3ad88b(0x117)]);}[_0x3c6bfb(0xee)](){const _0x6f9279=_0x3c6bfb,_0x25d96a=this[_0x6f9279(0x10b)][_0x6f9279(0xcc)][_0x6f9279(0x105)](_0x6f9279(0xec));_0x25d96a&&this[_0x6f9279(0xf4)](_0x25d96a,_0x6f9279(0x106),()=>{const _0x2d0ff3=_0x6f9279,_0x3a9e51=this[_0x2d0ff3(0x10b)][_0x2d0ff3(0xe3)][_0x2d0ff3(0xc5)][_0x2d0ff3(0x10c)][_0x2d0ff3(0xd8)]();_0x3a9e51&&_0x3a9e51[_0x2d0ff3(0xf8)](_0x2d0ff3(0xdb))&&this[_0x2d0ff3(0x10b)][_0x2d0ff3(0x119)][_0x2d0ff3(0xf6)][_0x2d0ff3(0xf1)](_0x2d0ff3(0xf9),()=>{const _0x57aaf0=_0x2d0ff3;_0x4d822a(this[_0x57aaf0(0x10b)],_0x3a9e51);});});const _0x2be529=this[_0x6f9279(0x10b)][_0x6f9279(0xcc)][_0x6f9279(0x105)](_0x6f9279(0xd2));_0x2be529&&this[_0x6f9279(0xf4)](_0x2be529,_0x6f9279(0x106),()=>{const _0x284501=_0x6f9279,_0x1e3820=this[_0x284501(0x10b)][_0x284501(0xe3)][_0x284501(0xc5)][_0x284501(0x10c)][_0x284501(0xd8)]();_0x1e3820&&_0x1e3820[_0x284501(0xf8)](_0x284501(0xdb))&&this[_0x284501(0x10b)][_0x284501(0x119)][_0x284501(0xf6)][_0x284501(0xf1)](_0x284501(0xf9),()=>{const _0x514817=_0x284501;_0x4d822a(this[_0x514817(0x10b)],_0x1e3820);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x119491,ObservableMixin as _0xa82deb}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x532854}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x176a5f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x348928}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x40bf05}from'../../utils/uploadutils.js';import{getImageUrls as _0x33bcd0,getImageDimension as _0xfba066}from'../../utils/editingutils.js';import{isAncestor as _0x157972}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa82deb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x38a809,_0x1e926f,_0x24390e){super(),this['_editor']=_0x38a809,this['_dialog']=_0x1e926f,this['_imageElement']=_0x24390e,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 _0x251d32=this['_imageElement'],_0x535d49=_0x251d32['getAttribute']('uploadcareImageId'),_0x3e263d=_0x251d32['getAttribute']('src');if(_0x535d49)await this['_loadImageInfo'](_0x535d49,_0x3e263d);else{if(this['_imageCache']['has'](_0x3e263d)){const _0x4a3f54=this['_imageCache']['get'](_0x3e263d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a3f54['url'],this['imageDimension']=_0x4a3f54['dimension'],this['imageId']=_0x4a3f54['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1b619f}=this['_editor'],t=_0x1b619f['t'],_0x437b1d=new _0x348928(_0x1b619f,this['imageStatus'],this['_attributes']);_0x437b1d['bind']('status')['to'](this,'imageStatus'),_0x437b1d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x437b1d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x437b1d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x437b1d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x176a5f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x437b1d,'position':_0x532854['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x437b1d['focus']();},'onHide':()=>{_0x437b1d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d9e6b=>!_0x157972(_0x2d9e6b,_0x437b1d['element'])}});}['_loadImageInfo'](_0x35bdff,_0x185cf3){return _0x40bf05['getInfo'](_0x35bdff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x42cfa4=>{const {width:_0x1898b9,height:_0x2e19c0}=_0x42cfa4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x185cf3,this['imageDimension']={'width':_0x1898b9,'height':_0x2e19c0},this['imageId']=_0x35bdff;})['catch'](_0x4c4299=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c4299['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5d418a,_0x51e85e){return this['_getImageAsFile'](_0x5d418a)['then'](_0x473151=>_0x40bf05['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':_0x51e85e['signal'],'file':_0x473151,'onProgress':_0x5be70b=>{_0x5be70b&&_0x5be70b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5be70b['value']));}}))['then'](_0x25e64f=>{const {width:_0x3a3790,height:_0x24938b}=_0x25e64f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25e64f['cdnUrl'],this['imageDimension']={'width':_0x3a3790,'height':_0x24938b},this['imageId']=_0x25e64f['uuid'],this['imageUploadProgress']=null;const _0x830d1e=_0x5d418a['getAttribute']('src');this['_imageCache']['set'](_0x830d1e,{'id':_0x25e64f['uuid'],'url':_0x25e64f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a6193=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a6193['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f7d71,_0x1b3593){_0x1f7d71['on']('apply',(_0x525be5,_0x25ab46)=>{this['_replaceImage'](_0x1b3593,_0x25ab46['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f7d71['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f7d71['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2545e9,_0x358050,_0x4d5af2){const _0x1bd5de=this['_editor'],{width:_0x208a2c,height:_0x233a8b}=_0xfba066(_0x358050,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x38b22e,imageSources:_0x411d2d}=_0x33bcd0(_0x358050,_0x208a2c);_0x1bd5de['model']['change'](_0x35fd96=>{if('$graveyard'===_0x2545e9['root']['rootName']){_0x1bd5de['execute']('insertImage',{'imageType':_0x2545e9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2545e9['getAttributes']()),'uploadcareImageId':_0x4d5af2,'src':_0x38b22e,'sources':_0x411d2d,'width':_0x208a2c,'height':_0x233a8b}});const _0x180a76=_0x2545e9['getChildren']();_0x2545e9=_0x1bd5de['model']['document']['selection']['getSelectedElement']();for(const _0x54c572 of _0x180a76)_0x35fd96['append'](_0x35fd96['cloneElement'](_0x54c572),_0x2545e9);}else _0x35fd96['setSelection'](_0x2545e9,'on'),_0x1bd5de['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2545e9['getAttributes']()),'uploadcareImageId':_0x4d5af2,'src':_0x38b22e,'sources':_0x411d2d,'width':_0x208a2c,'height':_0x233a8b},_0x2545e9);_0x35fd96['setSelection'](_0x2545e9,'on');});}async['_getImageAsFile'](_0x369389){const _0x4388a7=_0x119491['window'],_0x46a0b9=_0x119491['document']['location']['href'],_0x4b0e4a=new _0x4388a7['URL'](_0x369389['getAttribute']('src'),_0x46a0b9);if('data:'===_0x4b0e4a['protocol']){const _0x3dfb8c=_0x4b0e4a['href']['split'](','),_0x4fb8a1=_0x3dfb8c[0x0]['match'](/:(.*?);/)[0x1],_0x5be28d=_0x4fb8a1['split']('/')[0x1],_0x1c02a3=_0x4388a7['atob'](_0x3dfb8c[_0x3dfb8c['length']-0x1]);let _0x4805d8=_0x1c02a3['length'];const _0xfaed94=new _0x4388a7['Uint8Array'](_0x4805d8);for(;_0x4805d8--;)_0xfaed94[_0x4805d8]=_0x1c02a3['charCodeAt'](_0x4805d8);return new _0x4388a7['File']([_0xfaed94],'image.'+_0x5be28d,{'type':_0x4fb8a1});}const _0x4e8eb2=_0x4b0e4a['href']['split']('/'),_0x1c63ee=_0x4e8eb2[_0x4e8eb2['length']-0x1],_0x425cb1=_0x1c63ee['split']('.')[0x1];return _0x4388a7['fetch'](_0x4b0e4a['href'])['then'](_0x56e9bb=>_0x56e9bb['clone']()['blob']())['then'](_0x1aa885=>new _0x4388a7['File']([_0x1aa885],_0x1c63ee,{'type':'image/'+_0x425cb1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1c2f59,_0x2c24c6){const _0x123cf9=_0x1c1d,_0x3815e1=_0x1c2f59();while(!![]){try{const _0x23ec17=-parseInt(_0x123cf9(0x1ca))/0x1*(-parseInt(_0x123cf9(0x1d0))/0x2)+-parseInt(_0x123cf9(0x1c2))/0x3*(parseInt(_0x123cf9(0x1c0))/0x4)+parseInt(_0x123cf9(0x1c8))/0x5*(-parseInt(_0x123cf9(0x1be))/0x6)+-parseInt(_0x123cf9(0x1c1))/0x7*(-parseInt(_0x123cf9(0x1cf))/0x8)+-parseInt(_0x123cf9(0x1bf))/0x9*(-parseInt(_0x123cf9(0x1d1))/0xa)+-parseInt(_0x123cf9(0x1bd))/0xb*(parseInt(_0x123cf9(0x1c5))/0xc)+-parseInt(_0x123cf9(0x1c6))/0xd*(-parseInt(_0x123cf9(0x1d2))/0xe);if(_0x23ec17===_0x2c24c6)break;else _0x3815e1['push'](_0x3815e1['shift']());}catch(_0x436ab7){_0x3815e1['push'](_0x3815e1['shift']());}}}(_0xe638,0x36a9d));function _0xe638(){const _0x32d89b=['13otbwWO','bindTemplate','1025630XiNuuV','uc-light','1YzuPwp','imageSrc','ck-uploadcare-theme','image-edit','uc-cloud-image-editor','8Qnlbsl','465254NfREUK','354070qFBtNw','6373178VWgxbG','150359eTMrnW','6VsoFhf','27tOEoGg','20hRzgHh','1188026DHAOaX','83019jcQZlq','setTemplate','set','348tXkgKG'];_0xe638=function(){return _0x32d89b;};return _0xe638();}function _0x1c1d(_0x421f36,_0x476a54){const _0xe6383a=_0xe638();return _0x1c1d=function(_0x1c1dfd,_0x1c3209){_0x1c1dfd=_0x1c1dfd-0x1bd;let _0x5e3fc7=_0xe6383a[_0x1c1dfd];return _0x5e3fc7;},_0x1c1d(_0x421f36,_0x476a54);}import{View as _0xed5f17}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xed5f17{constructor(_0x533e6e,_0xf67dd7){const _0x347472=_0x1c1d;super(_0x533e6e);const _0x44635d=this[_0x347472(0x1c7)];this[_0x347472(0x1c4)](_0x347472(0x1cb),''),this[_0x347472(0x1c3)]({'tag':_0x347472(0x1ce),'attributes':{..._0xf67dd7,'class':[_0x347472(0x1c9),_0x347472(0x1cc)],'ctx-name':_0x347472(0x1cd),'cdn-url':_0x44635d['to'](_0x347472(0x1cb))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x403f67}from'ckeditor5/src/icons.js';import{ButtonView as _0x423a6e,IconView as _0x32f353,View as _0x1c928c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1c928c{constructor(_0xfac3ec){super(_0xfac3ec);const t=_0xfac3ec['t'];this['set']('errorType',null);const _0x307d82=new _0x423a6e(_0xfac3ec);_0x307d82['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x307d82['withText']=!0x0,_0x307d82['class']='ck-button-action',_0x307d82['on']('execute',()=>{this['fire']('retry');}),_0x307d82['bind']('isVisible')['to'](this,'errorType',_0xd60f86=>'NotFound'!==_0xd60f86);const _0x15cbb9=new _0x32f353();_0x15cbb9['content']=_0x403f67,_0x15cbb9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c9662=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':[_0x15cbb9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c9662['to']('errorType',_0x120418=>t('NotFound'!==_0x120418?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x307d82]},{'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 _0x484d94,View as _0x324afb}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x324afb{constructor(_0x6df893){super(_0x6df893);const t=_0x6df893['t'],_0xf4438f=this['bindTemplate'],_0x31d7bf=new _0x484d94();_0x31d7bf['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':[_0x31d7bf,{'text':_0xf4438f['to']('imageUploadProgress',_0x3fe051=>t('Loading\x20image...')+'\x20('+(_0x3fe051||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
|
-
|
|
23
|
+
const _0x2a264f=_0x5b9f;(function(_0x5e8809,_0x2c84df){const _0x49556e=_0x5b9f,_0x1b7b5a=_0x5e8809();while(!![]){try{const _0x14e056=-parseInt(_0x49556e(0x115))/0x1*(parseInt(_0x49556e(0xf3))/0x2)+-parseInt(_0x49556e(0xfc))/0x3*(-parseInt(_0x49556e(0x109))/0x4)+-parseInt(_0x49556e(0xf8))/0x5*(-parseInt(_0x49556e(0x102))/0x6)+parseInt(_0x49556e(0xf1))/0x7+parseInt(_0x49556e(0xf6))/0x8*(parseInt(_0x49556e(0x11e))/0x9)+-parseInt(_0x49556e(0x10a))/0xa*(-parseInt(_0x49556e(0xef))/0xb)+parseInt(_0x49556e(0x108))/0xc*(-parseInt(_0x49556e(0x104))/0xd);if(_0x14e056===_0x2c84df)break;else _0x1b7b5a['push'](_0x1b7b5a['shift']());}catch(_0x225c23){_0x1b7b5a['push'](_0x1b7b5a['shift']());}}}(_0x32f7,0xe8992));import{View as _0x2edc8f}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4e4c34}from'./uploadcareimageeditformloadingview.js';function _0x32f7(){const _0x5f2fa5=['190qTQCJq','cdnUrl','_addErrorViewListeners','div','3wQYJrw','ready','_waitForImageEditorComponent','ck-reset_all-excluded','filter','apply','47904dGWslZ','uc-cloud-image-editor','5733ZWIRqo','element','addedNodes','clear','38124ThhQxy','1801128TnCdpI','14738340VgdvkY','nodeName','setTemplate','length','querySelector','fire','_focusableView','_editingView','render','status','once','49ewoBlg','focus','_errorView','error','_items','toLowerCase','retry','add','ck-uploadcare-form','387scbsEX','change:status','createCollection','uploading','getFocusableElement','addEventListener','detail','_setView','addMany','observe','set','11jUxRaX','_loadingView','408450SvObOl','_addUploadcareImageEditorListeners','4980phbgCX','cancel','disconnect','35336cTAhmX','target'];_0x32f7=function(){return _0x5f2fa5;};return _0x32f7();}import{UploadcareImageEditFormErrorView as _0x27afab}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xd29913}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2b7e26}from'../../utils/dialogfocusmanagerview.js';function _0x5b9f(_0x36f971,_0x17b8ab){const _0x32f787=_0x32f7();return _0x5b9f=function(_0x5b9f45,_0x1b4b8b){_0x5b9f45=_0x5b9f45-0xef;let _0x46ea84=_0x32f787[_0x5b9f45];return _0x46ea84;},_0x5b9f(_0x36f971,_0x17b8ab);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2b7e26{[_0x2a264f(0x119)];[_0x2a264f(0xf0)];[_0x2a264f(0x117)];[_0x2a264f(0x111)];[_0x2a264f(0x110)];constructor(_0x4bc7cf,_0x443873,_0x27721c){const _0x309071=_0x2a264f;super(_0x4bc7cf),this[_0x309071(0x119)]=this[_0x309071(0x120)](),this[_0x309071(0xf0)]=new _0x4e4c34(_0x4bc7cf),this[_0x309071(0x117)]=new _0x27afab(_0x4bc7cf),this[_0x309071(0x111)]=new _0xd29913(_0x4bc7cf,_0x27721c),this[_0x309071(0x110)]=new _0x2edc8f(_0x4bc7cf),this[_0x309071(0x110)][_0x309071(0x10c)](this[_0x309071(0x122)]()),this[_0x309071(0x128)](_0x309071(0x113),_0x443873),this[_0x309071(0x10c)]({'tag':_0x309071(0xfb),'attributes':{'class':['ck',_0x309071(0xff),_0x309071(0x11d)],'tabindex':'-1'},'children':this[_0x309071(0x119)]}),this[_0x309071(0x125)](),this[_0x309071(0x114)](_0x309071(0x112),()=>{const _0xa76ec=_0x309071;this[_0xa76ec(0xfe)](this[_0xa76ec(0x105)],_0x41a52e=>{const _0x523392=_0xa76ec;this[_0x523392(0xf2)](_0x41a52e);});}),this['on'](_0x309071(0x11f),()=>{const _0x276350=_0x309071;this[_0x276350(0x125)]();}),this[_0x309071(0xfa)]();}[_0x2a264f(0x116)](){const _0x1d9218=_0x2a264f;this[_0x1d9218(0x105)][_0x1d9218(0x116)]();}[_0x2a264f(0x125)](){const _0x2be0e9=_0x2a264f;switch(this[_0x2be0e9(0x119)][_0x2be0e9(0x107)](),this[_0x2be0e9(0x113)]){case _0x2be0e9(0x121):this[_0x2be0e9(0x119)][_0x2be0e9(0x11c)](this[_0x2be0e9(0xf0)]);break;case _0x2be0e9(0x118):this[_0x2be0e9(0x119)][_0x2be0e9(0x11c)](this[_0x2be0e9(0x117)]);break;case _0x2be0e9(0xfd):this[_0x2be0e9(0x119)][_0x2be0e9(0x126)]([this[_0x2be0e9(0x111)],this[_0x2be0e9(0x110)]]);}}[_0x2a264f(0xfe)](_0x5421b9,_0x177fb2){const _0x42dc92=_0x2a264f,_0x16b208=_0x42dc92(0x103),_0x4c9ffc=_0x5421b9[_0x42dc92(0x10e)](_0x16b208);if(_0x4c9ffc)return _0x177fb2(_0x4c9ffc);const _0x542b93=new MutationObserver(_0x23a9da=>{const _0x2d241c=_0x42dc92,_0x153017=_0x23a9da[_0x2d241c(0x100)](_0x414775=>_0x414775[_0x2d241c(0xf7)]===_0x5421b9&&_0x414775[_0x2d241c(0x106)][_0x2d241c(0x10d)]>0x0&&_0x414775[_0x2d241c(0x106)][0x0][_0x2d241c(0x10b)][_0x2d241c(0x11a)]()===_0x16b208);_0x153017[_0x2d241c(0x10d)]&&(_0x542b93[_0x2d241c(0xf5)](),_0x177fb2(_0x153017[0x0][_0x2d241c(0x106)][0x0]));});_0x542b93[_0x42dc92(0x127)](_0x5421b9,{'childList':!0x0,'subtree':!0x0});}[_0x2a264f(0xf2)](_0x14295f){const _0x23004f=_0x2a264f;_0x14295f[_0x23004f(0x123)](_0x23004f(0x101),_0x5f39ae=>{const _0x4feb11=_0x23004f;this[_0x4feb11(0x10f)](_0x4feb11(0x101),{'imageSrc':_0x5f39ae[_0x4feb11(0x124)][_0x4feb11(0xf9)]});}),_0x14295f[_0x23004f(0x123)](_0x23004f(0xf4),()=>{const _0x47cc16=_0x23004f;this[_0x47cc16(0x10f)](_0x47cc16(0xf4));});}[_0x2a264f(0xfa)](){const _0x16de93=_0x2a264f;this[_0x16de93(0x117)]['on'](_0x16de93(0x11b),()=>{const _0x3170ea=_0x16de93;this[_0x3170ea(0x10f)](_0x3170ea(0x11b));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x324d(){const _0x51de82=['250JsVUpR','unbind','300503KQGfzO','get','getSelectedElement','selection','22465WrBpuS','90BbQbMg','refresh','75695CGFEAp','26UNifWx','bind','editor','imageInline','execute','element','imageEditController','_isEditable','8AXBVYM','requires','uploadcare.allowExternalImagesEditing','1517004HZdEYu','isActive','set','config','342122jbeTKW','plugins','imageBlock','2753856gTBVbO','598864YQtUtz','isEnabled','model','document'];_0x324d=function(){return _0x51de82;};return _0x324d();}const _0x5f4ed2=_0xf42b;(function(_0x149175,_0x597d0a){const _0x5e7a85=_0xf42b,_0x1facc9=_0x149175();while(!![]){try{const _0x572bd4=parseInt(_0x5e7a85(0xbc))/0x1*(parseInt(_0x5e7a85(0xc0))/0x2)+parseInt(_0x5e7a85(0xcb))/0x3+-parseInt(_0x5e7a85(0xc8))/0x4*(-parseInt(_0x5e7a85(0xbf))/0x5)+-parseInt(_0x5e7a85(0xbd))/0x6*(-parseInt(_0x5e7a85(0xb8))/0x7)+parseInt(_0x5e7a85(0xd3))/0x8+-parseInt(_0x5e7a85(0xd2))/0x9+-parseInt(_0x5e7a85(0xd7))/0xa*(parseInt(_0x5e7a85(0xcf))/0xb);if(_0x572bd4===_0x597d0a)break;else _0x1facc9['push'](_0x1facc9['shift']());}catch(_0x4c1d2b){_0x1facc9['push'](_0x1facc9['shift']());}}}(_0x324d,0x71192));import{Command as _0x25267c}from'ckeditor5/src/core.js';import{Dialog as _0x5b0fc6}from'ckeditor5/src/ui.js';function _0xf42b(_0x368679,_0x3c9cc7){const _0x324db7=_0x324d();return _0xf42b=function(_0xf42b26,_0x2fd16e){_0xf42b26=_0xf42b26-0xb7;let _0x31a28e=_0x324db7[_0xf42b26];return _0x31a28e;},_0xf42b(_0x368679,_0x3c9cc7);}import{UploadcareImageEditController as _0x55c038}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x731b1}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x25267c{[_0x5f4ed2(0xc6)];static get[_0x5f4ed2(0xc9)](){return[_0x5b0fc6];}[_0x5f4ed2(0xc7)];constructor(_0x178601){const _0x14b35b=_0x5f4ed2;super(_0x178601),this[_0x14b35b(0xc6)]=void 0x0,this[_0x14b35b(0xc7)]=_0x731b1(_0x178601[_0x14b35b(0xce)][_0x14b35b(0xb9)](_0x14b35b(0xca))||[]),this[_0x14b35b(0xcd)]({'isActive':!0x1});}[_0x5f4ed2(0xbe)](){const _0x4649f7=_0x5f4ed2,_0x261f0c=this[_0x4649f7(0xc2)][_0x4649f7(0xd5)][_0x4649f7(0xd6)][_0x4649f7(0xbb)][_0x4649f7(0xba)]();this[_0x4649f7(0xd4)]=this[_0x4649f7(0xc7)](_0x261f0c);}[_0x5f4ed2(0xc4)](){const _0x42f810=_0x5f4ed2;this[_0x42f810(0xc6)]&&(this[_0x42f810(0xb7)](_0x42f810(0xcc)),this[_0x42f810(0xc6)]=void 0x0);const _0x75b2f6=this[_0x42f810(0xc2)][_0x42f810(0xd5)][_0x42f810(0xd6)][_0x42f810(0xbb)][_0x42f810(0xba)]();_0x75b2f6&&(_0x75b2f6['is'](_0x42f810(0xc5),_0x42f810(0xd1))||_0x75b2f6['is'](_0x42f810(0xc5),_0x42f810(0xc3)))&&(this[_0x42f810(0xc6)]=new _0x55c038(this[_0x42f810(0xc2)],this[_0x42f810(0xc2)][_0x42f810(0xd0)][_0x42f810(0xb9)](_0x5b0fc6),_0x75b2f6),this[_0x42f810(0xc1)](_0x42f810(0xcc))['to'](this[_0x42f810(0xc6)],_0x42f810(0xcc)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5d8d(){const _0x4ce531=['isPremiumPlugin','629659mdPqkO','36RmylmK','11gdtbay','356732exbyrh','2614110wJAvvt','ImageEditing','init','requires','UploadcareImageEditEditing','uploadcareImageEdit','add','isOfficialPlugin','8oWsxWC','4945884pZnCrB','ImageUtils','uploadcareImageReplace','2285661erVGYS','101774cfEypd','1371591ZpjUoU','pluginName','commands','25IGneGH'];_0x5d8d=function(){return _0x4ce531;};return _0x5d8d();}const _0x2c2d0e=_0x4eeb;(function(_0x4ba96a,_0x200877){const _0x54b190=_0x4eeb,_0x3ff069=_0x4ba96a();while(!![]){try{const _0xa797ac=-parseInt(_0x54b190(0x74))/0x1+parseInt(_0x54b190(0x6e))/0x2*(parseInt(_0x54b190(0x75))/0x3)+-parseInt(_0x54b190(0x77))/0x4*(parseInt(_0x54b190(0x72))/0x5)+parseInt(_0x54b190(0x81))/0x6+-parseInt(_0x54b190(0x6d))/0x7*(parseInt(_0x54b190(0x80))/0x8)+parseInt(_0x54b190(0x6f))/0x9+parseInt(_0x54b190(0x78))/0xa*(parseInt(_0x54b190(0x76))/0xb);if(_0xa797ac===_0x200877)break;else _0x3ff069['push'](_0x3ff069['shift']());}catch(_0x992e9){_0x3ff069['push'](_0x3ff069['shift']());}}}(_0x5d8d,0x6d0cf));function _0x4eeb(_0x209cac,_0x563441){const _0x5d8dba=_0x5d8d();return _0x4eeb=function(_0x4eeb4b,_0x94d39f){_0x4eeb4b=_0x4eeb4b-0x6b;let _0x18cd36=_0x5d8dba[_0x4eeb4b];return _0x18cd36;},_0x4eeb(_0x209cac,_0x563441);}import{Plugin as _0x1b9802}from'ckeditor5/src/core.js';import{Notification as _0x1452fa}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1f657a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1e2980}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3d9c38}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1b9802{static get[_0x2c2d0e(0x70)](){const _0x96db9=_0x2c2d0e;return _0x96db9(0x7c);}static get[_0x2c2d0e(0x7b)](){const _0x5a5755=_0x2c2d0e;return[_0x3d9c38,_0x1452fa,_0x5a5755(0x6b),_0x5a5755(0x79)];}static get[_0x2c2d0e(0x7f)](){return!0x0;}static get[_0x2c2d0e(0x73)](){return!0x0;}[_0x2c2d0e(0x7a)](){const _0x1d0b74=_0x2c2d0e,{editor:_0x38403f}=this;_0x38403f[_0x1d0b74(0x71)][_0x1d0b74(0x7e)](_0x1d0b74(0x7d),new _0x1f657a(_0x38403f)),_0x38403f[_0x1d0b74(0x71)][_0x1d0b74(0x7e)](_0x1d0b74(0x6c),new _0x1e2980(_0x38403f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x18abb9}from'ckeditor5/src/core.js';import{ButtonView as _0x28c820}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1aff48}from'ckeditor5/src/icons.js';import{createElement as _0xc9f5cd}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 _0x18abb9{['_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 _0x3dfb34=this['editor'];_0x3dfb34['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f069b=>{const _0x9b9859=_0x3dfb34['commands']['get']('uploadcareImageEdit'),_0x585c2b=new _0x28c820(_0x1f069b),t=_0x1f069b['t'];return _0x585c2b['set']({'icon':_0x1aff48,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x585c2b['bind']('isEnabled')['to'](_0x9b9859),_0x585c2b['bind']('isOn')['to'](_0x9b9859,'isActive'),this['listenTo'](_0x585c2b,'execute',()=>{_0x3dfb34['execute']('uploadcareImageEdit'),_0x3dfb34['editing']['view']['focus']();}),_0x585c2b;}),this['_initConfig']();}['_initConfig'](){const _0x1e33df=_0xc9f5cd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e33df),this['listenTo'](this['editor'],'destroy',()=>{_0x1e33df['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x384b83=_0x1c34;(function(_0x507ac4,_0x3af0e1){const _0x4b8de3=_0x1c34,_0x54c037=_0x507ac4();while(!![]){try{const _0x207f0b=parseInt(_0x4b8de3(0xfe))/0x1+parseInt(_0x4b8de3(0xeb))/0x2+parseInt(_0x4b8de3(0xed))/0x3*(parseInt(_0x4b8de3(0xf7))/0x4)+-parseInt(_0x4b8de3(0xef))/0x5*(parseInt(_0x4b8de3(0xf9))/0x6)+-parseInt(_0x4b8de3(0xf1))/0x7*(-parseInt(_0x4b8de3(0xf4))/0x8)+parseInt(_0x4b8de3(0xfc))/0x9+-parseInt(_0x4b8de3(0xf6))/0xa;if(_0x207f0b===_0x3af0e1)break;else _0x54c037['push'](_0x54c037['shift']());}catch(_0x1a7614){_0x54c037['push'](_0x54c037['shift']());}}}(_0x4f83,0xa9d99));import{Command as _0x3e6c8d}from'ckeditor5/src/core.js';function _0x1c34(_0x45ffe6,_0x3fae9a){const _0x4f832d=_0x4f83();return _0x1c34=function(_0x1c343e,_0x15f807){_0x1c343e=_0x1c343e-0xe5;let _0x344950=_0x4f832d[_0x1c343e];return _0x344950;},_0x1c34(_0x45ffe6,_0x3fae9a);}export class UploadcareImageReplaceCommand extends _0x3e6c8d{[_0x384b83(0xf2)](){const _0x2db15b=_0x384b83,_0x5265be=this[_0x2db15b(0xec)][_0x2db15b(0xe9)][_0x2db15b(0xfb)][_0x2db15b(0xe6)][_0x2db15b(0xfa)]();this[_0x2db15b(0xf0)]=Boolean(_0x5265be&&(_0x5265be['is'](_0x2db15b(0xe5),_0x2db15b(0xee))||_0x5265be['is'](_0x2db15b(0xe5),_0x2db15b(0xe7))));}[_0x384b83(0xe8)](_0x3635f1){const _0x2201aa=_0x384b83,_0x59d206=this[_0x2201aa(0xec)][_0x2201aa(0xe9)][_0x2201aa(0xfb)][_0x2201aa(0xe6)][_0x2201aa(0xfa)]();this[_0x2201aa(0xec)][_0x2201aa(0xe9)][_0x2201aa(0xf8)](_0x1b222a=>{const _0x46d130=_0x2201aa;_0x1b222a[_0x46d130(0xf3)](_0x3635f1,_0x59d206),_0x1b222a[_0x46d130(0xf5)](_0x46d130(0xfd),_0x59d206),_0x1b222a[_0x46d130(0xf5)](_0x46d130(0xea),_0x59d206);});}}function _0x4f83(){const _0x4f4d74=['imageBlock','6793470LCnlPv','isEnabled','14FCjWhx','refresh','setAttributes','5012600czkfVO','removeAttribute','32627650aEKncA','4974260goYUpX','change','6MOCIwA','getSelectedElement','document','9626949RgbYpx','srcset','583795OcnqUw','element','selection','imageInline','execute','model','sizes','2333986cxmNYY','editor','3urllaX'];_0x4f83=function(){return _0x4f4d74;};return _0x4f83();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5bc9be=_0x3b6a;(function(_0xce6c1,_0x334280){var _0x252bc5=_0x3b6a,_0x581682=_0xce6c1();while(!![]){try{var _0x39cae7=parseInt(_0x252bc5(0x15a))/0x1+parseInt(_0x252bc5(0x157))/0x2*(parseInt(_0x252bc5(0x155))/0x3)+-parseInt(_0x252bc5(0x163))/0x4+-parseInt(_0x252bc5(0x154))/0x5*(parseInt(_0x252bc5(0x15f))/0x6)+parseInt(_0x252bc5(0x15b))/0x7+parseInt(_0x252bc5(0x161))/0x8*(-parseInt(_0x252bc5(0x15e))/0x9)+parseInt(_0x252bc5(0x158))/0xa*(parseInt(_0x252bc5(0x162))/0xb);if(_0x39cae7===_0x334280)break;else _0x581682['push'](_0x581682['shift']());}catch(_0x49deae){_0x581682['push'](_0x581682['shift']());}}}(_0x3804,0x804cb));function _0x3804(){var _0xe2caee=['pluginName','UploadcareImageEdit','45882SXfFXK','113496EtFTvo','isOfficialPlugin','1016hlulYd','462thumRA','1587388BWthkM','200MhQEZm','3DbXPgX','isPremiumPlugin','1728230zlezDo','22210EdZUHB','requires','327760yFvOTQ','7289037ZDsrEE'];_0x3804=function(){return _0xe2caee;};return _0x3804();}function _0x3b6a(_0x2681fc,_0x41831f){var _0x3804ab=_0x3804();return _0x3b6a=function(_0x3b6a8d,_0x52c25d){_0x3b6a8d=_0x3b6a8d-0x154;var _0x2709b8=_0x3804ab[_0x3b6a8d];return _0x2709b8;},_0x3b6a(_0x2681fc,_0x41831f);}import{Plugin as _0x52d43c}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x547a15}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5041e4}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x52d43c{static get[_0x5bc9be(0x15c)](){var _0x411db0=_0x5bc9be;return _0x411db0(0x15d);}static get[_0x5bc9be(0x159)](){return[_0x547a15,_0x5041e4];}static get[_0x5bc9be(0x160)](){return!0x0;}static get[_0x5bc9be(0x156)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4eab3f=_0x1374;function _0x3131(){const _0xaac030=['1305639ZfGmaG','reduce','5416732hbtANM','uploadcareLicenseKeyUsageLimit','_createDropdownButtons','Facebook','isPremiumPlugin','expired','destroy','uploadcareLicenseKeyEvaluationLimit','isOfficialPlugin','shortText','locale','Uploadcare','isEnabled','644068nCDPRn','domainLimit','_createButton','execute','plugins','7218066qtfftx','Replace','GDrive','invalid','url','pluginName','_normalizeConfigSourceList','type','usageLimit','registerIntegration','_createToolbarButton','1YgSpSc','uploadcareLicenseKeyNotAllowed','config','Dropbox','evaluationLimit','commands','6886120MvSgoI','uploadcare.uploader.sourceList','URL','1336dbwPKW','_getIntegrationKey','uploadcareLicenseKeyInvalid','GPhotos','text','push','uploadcare','_licenseKeyCheckInterval','assetManager','withText','get','label','ImageInsertUI','licenseKey','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyExpired','tooltip','4044733WVlDyX','UploadcareUI','forEach','trialLimit','Insert','_showLicenseError','entries','has','bind','upload','_createMenuBarButtons','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyValid','icon','46026byUAnk','init','Local','featureNotAllowed','map','editor','afterInit','OneDrive','isImageSelected'];_0x3131=function(){return _0xaac030;};return _0x3131();}(function(_0x13ed0d,_0x3ff3d3){const _0x2b19a3=_0x1374,_0x124035=_0x13ed0d();while(!![]){try{const _0x2f2f66=-parseInt(_0x2b19a3(0x15d))/0x1*(parseInt(_0x2b19a3(0x14d))/0x2)+-parseInt(_0x2b19a3(0x13e))/0x3+parseInt(_0x2b19a3(0x140))/0x4+-parseInt(_0x2b19a3(0x163))/0x5+parseInt(_0x2b19a3(0x152))/0x6+-parseInt(_0x2b19a3(0x177))/0x7+-parseInt(_0x2b19a3(0x166))/0x8*(-parseInt(_0x2b19a3(0x185))/0x9);if(_0x2f2f66===_0x3ff3d3)break;else _0x124035['push'](_0x124035['shift']());}catch(_0x393237){_0x124035['push'](_0x124035['shift']());}}}(_0x3131,0xaaa3e));function _0x1374(_0x1d3cb8,_0x305658){const _0x31319a=_0x3131();return _0x1374=function(_0x1374a6,_0x158468){_0x1374a6=_0x1374a6-0x13b;let _0x444b6c=_0x31319a[_0x1374a6];return _0x444b6c;},_0x1374(_0x1d3cb8,_0x305658);}import{Plugin as _0x2893d9}from'ckeditor5/src/core.js';import{IconDropbox as _0x4b3771,IconFacebook as _0x404f44,IconGoogleDrive as _0x4d8dc7,IconGooglePhotos as _0x2757cb,IconUploadcareImageUpload as _0x5f4b07,IconUploadcareLink as _0x546697,IconOneDrive as _0x322c3b}from'ckeditor5/src/icons.js';import{ButtonView as _0x13d1d1,MenuBarMenuListItemButtonView as _0x2da244}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1d1de3}from'./uploadcareconfig.js';import{getTranslation as _0x33af9a}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 _0x2893d9{[_0x4eab3f(0x173)];[_0x4eab3f(0x16d)];static get[_0x4eab3f(0x157)](){const _0x4fde97=_0x4eab3f;return _0x4fde97(0x178);}static get[_0x4eab3f(0x148)](){return!0x0;}static get[_0x4eab3f(0x144)](){return!0x0;}[_0x4eab3f(0x186)](){const _0x5126d1=_0x4eab3f;this[_0x5126d1(0x173)]=this[_0x5126d1(0x18a)][_0x5126d1(0x15f)][_0x5126d1(0x170)](_0x5126d1(0x173));const _0x8755c9=this[_0x5126d1(0x18a)];this[_0x5126d1(0x16d)]=setInterval(()=>{const _0x1fc688=_0x5126d1;let _0x313fb6;for(const _0x4e8e7c in _0x8755c9){const _0x5acd89=_0x4e8e7c,_0x4230ac=_0x8755c9[_0x5acd89];if(_0x1fc688(0x183)==_0x4230ac||_0x1fc688(0x168)==_0x4230ac||_0x1fc688(0x175)==_0x4230ac||_0x1fc688(0x182)==_0x4230ac||_0x1fc688(0x15e)==_0x4230ac||_0x1fc688(0x147)==_0x4230ac||_0x1fc688(0x174)==_0x4230ac||_0x1fc688(0x141)==_0x4230ac){delete _0x8755c9[_0x5acd89],_0x313fb6=_0x4230ac,clearInterval(this[_0x1fc688(0x16d)]),this[_0x1fc688(0x16d)]=void 0x0;break;}}_0x1fc688(0x168)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x155)),_0x1fc688(0x175)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x145)),_0x1fc688(0x182)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x14e)),_0x1fc688(0x15e)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x188),_0x1fc688(0x14b)),_0x1fc688(0x147)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x161)),_0x1fc688(0x174)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x17a)),_0x1fc688(0x141)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x15a));},0x3e8);}[_0x4eab3f(0x13b)](){const _0x19ce54=_0x4eab3f,{editor:_0x2f969c}=this,_0x77ddc8=_0x2f969c[_0x19ce54(0x162)][_0x19ce54(0x170)](_0x19ce54(0x16c));if(!_0x77ddc8)return;const _0x42ad2e=this[_0x19ce54(0x158)](_0x2f969c[_0x19ce54(0x15f)][_0x19ce54(0x170)](_0x19ce54(0x164)))[_0x19ce54(0x13f)]((_0x1dcc36,_0x3c64de)=>{const _0x463033=_0x19ce54,_0x5c44ec=this[_0x463033(0x167)](_0x3c64de[_0x463033(0x159)]);return _0x1dcc36[_0x5c44ec]||(_0x1dcc36[_0x5c44ec]=[]),_0x1dcc36[_0x5c44ec][_0x463033(0x16b)](_0x3c64de),_0x1dcc36;},{});_0x2f969c[_0x19ce54(0x151)][_0x19ce54(0x17e)](_0x19ce54(0x172))&&_0x2f969c[_0x19ce54(0x162)][_0x19ce54(0x170)](_0x19ce54(0x16c))&&Object[_0x19ce54(0x17d)](_0x42ad2e)[_0x19ce54(0x179)](([_0x26da41,_0x43af39])=>{const _0x2bdff1=_0x19ce54;_0x2f969c[_0x2bdff1(0x151)][_0x2bdff1(0x170)](_0x2bdff1(0x172))[_0x2bdff1(0x15b)]({'name':_0x26da41,'observable':()=>_0x77ddc8,'buttonViewCreator':()=>this[_0x2bdff1(0x15c)](_0x43af39),'formViewCreator':()=>this[_0x2bdff1(0x142)](_0x43af39),'menuBarButtonViewCreator':()=>this[_0x2bdff1(0x181)](_0x43af39),'override':_0x2bdff1(0x16e)!==_0x26da41});});}[_0x4eab3f(0x146)](){const _0x2f0d95=_0x4eab3f;super[_0x2f0d95(0x146)](),this[_0x2f0d95(0x16d)]&&clearInterval(this[_0x2f0d95(0x16d)]);}[_0x4eab3f(0x158)](_0x16a525){const _0x563aad=_0x4eab3f,{locale:_0x3b67b9}=this[_0x563aad(0x18a)];return _0x16a525[_0x563aad(0x189)](_0x2e3607=>{const _0x24178f=_0x563aad,_0x125246=_0x33af9a(_0x3b67b9,_0x2e3607,_0x24178f(0x17b));switch(_0x2e3607){case _0x1d1de3[_0x24178f(0x187)]:return{'icon':_0x5f4b07,'type':_0x1d1de3[_0x24178f(0x187)],..._0x125246};case _0x1d1de3[_0x24178f(0x165)]:return{'icon':_0x546697,'type':_0x1d1de3[_0x24178f(0x165)],..._0x125246};case _0x1d1de3[_0x24178f(0x160)]:return{'icon':_0x4b3771,'type':_0x1d1de3[_0x24178f(0x160)],..._0x125246};case _0x1d1de3[_0x24178f(0x143)]:return{'icon':_0x404f44,'type':_0x1d1de3[_0x24178f(0x143)],..._0x125246};case _0x1d1de3[_0x24178f(0x154)]:return{'icon':_0x4d8dc7,'type':_0x1d1de3[_0x24178f(0x154)],..._0x125246};case _0x1d1de3[_0x24178f(0x169)]:return{'icon':_0x2757cb,'type':_0x1d1de3[_0x24178f(0x169)],..._0x125246};case _0x1d1de3[_0x24178f(0x13c)]:return{'icon':_0x322c3b,'type':_0x1d1de3[_0x24178f(0x13c)],..._0x125246};}});}[_0x4eab3f(0x167)](_0x1ded9e){const _0x609d24=_0x4eab3f;switch(_0x1ded9e){case _0x1d1de3[_0x609d24(0x187)]:return _0x609d24(0x180);case _0x1d1de3[_0x609d24(0x165)]:return _0x609d24(0x156);default:return _0x609d24(0x16e);}}[_0x4eab3f(0x14f)](_0x411ec3,_0x5d0061){const _0x5d3c08=_0x4eab3f,_0x5a98a0=this[_0x5d3c08(0x18a)],_0xfd2ff4=new _0x411ec3(_0x5a98a0[_0x5d3c08(0x14a)]),_0x1c06d7=_0x5a98a0[_0x5d3c08(0x162)][_0x5d3c08(0x170)](_0x5d3c08(0x16c));return _0xfd2ff4[_0x5d3c08(0x17f)](_0x5d3c08(0x14c))['to'](_0x1c06d7),_0xfd2ff4['on'](_0x5d3c08(0x150),()=>{const _0x194e4f=_0x5d3c08;_0x1c06d7[_0x194e4f(0x150)](_0x5d0061);}),_0xfd2ff4;}[_0x4eab3f(0x15c)](_0xa84666){const _0x422406=_0x4eab3f,{locale:_0x34be81}=this[_0x422406(0x18a)],_0x3ff150=this[_0x422406(0x18a)][_0x422406(0x151)][_0x422406(0x170)](_0x422406(0x172)),_0x381774=_0xa84666[0x0],_0x5238db=this[_0x422406(0x14f)](_0x13d1d1,_0x381774[_0x422406(0x159)]);return _0x5238db[_0x422406(0x184)]=_0x381774[_0x422406(0x184)],_0x5238db[_0x422406(0x17f)](_0x422406(0x171))['to'](_0x3ff150,_0x422406(0x13d),_0x3d20d5=>_0x33af9a(_0x34be81,_0x381774[_0x422406(0x159)],_0x3d20d5?_0x422406(0x153):_0x422406(0x17b))[_0x422406(0x16a)]),_0x5238db[_0x422406(0x176)]=!0x0,_0x5238db;}[_0x4eab3f(0x142)](_0x1dccd0){const _0x407c1e=_0x4eab3f,{locale:_0x57ff48}=this[_0x407c1e(0x18a)],_0x57d8e2=this[_0x407c1e(0x18a)][_0x407c1e(0x151)][_0x407c1e(0x170)](_0x407c1e(0x172));return _0x1dccd0[_0x407c1e(0x189)](_0x3ee623=>{const _0x1dfe32=_0x407c1e,_0x104bb5=this[_0x1dfe32(0x14f)](_0x13d1d1,_0x3ee623[_0x1dfe32(0x159)]);return _0x104bb5[_0x1dfe32(0x16f)]=!0x0,_0x104bb5[_0x1dfe32(0x184)]=_0x3ee623[_0x1dfe32(0x184)],_0x104bb5[_0x1dfe32(0x17f)](_0x1dfe32(0x171))['to'](_0x57d8e2,_0x1dfe32(0x13d),_0x53dff3=>_0x33af9a(_0x57ff48,_0x3ee623[_0x1dfe32(0x159)],_0x53dff3?_0x1dfe32(0x153):_0x1dfe32(0x17b))[_0x1dfe32(0x16a)]),_0x104bb5;});}[_0x4eab3f(0x181)](_0x31fc1f){const _0x2acec7=_0x4eab3f;return _0x31fc1f[_0x2acec7(0x189)](_0xcfd2e8=>{const _0x4dce2a=_0x2acec7,_0x4826ac=this[_0x4dce2a(0x14f)](_0x2da244,_0xcfd2e8[_0x4dce2a(0x159)]);return _0x4826ac[_0x4dce2a(0x184)]=_0xcfd2e8[_0x4dce2a(0x184)],_0x4826ac[_0x4dce2a(0x171)]=_0xcfd2e8[_0x4dce2a(0x149)],_0x4826ac;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x369d17}from'ckeditor5/src/core.js';import{FileRepository as _0x41dfc8}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x55cee4}from'./uploadcareediting.js';import{UploadUtils as _0x1391dc}from'./utils/uploadutils.js';import{getImageUrls as _0x44b70f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x369d17{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41dfc8,_0x55cee4];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5c4511=this['editor'];if(!!!_0x5c4511['config']['get']('uploadcare'))return;_0x5c4511['plugins']['get'](_0x41dfc8)['createUploadAdapter']=_0x4ba6f6=>new k(_0x4ba6f6,_0x5c4511),_0x5c4511['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5a19ef,{imageElement:_0x117efd,data:_0x18edfb})=>{_0x5c4511['model']['change'](_0x409675=>{_0x409675['setAttribute']('uploadcareImageId',_0x18edfb['uploadcareImageId'],_0x117efd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x483b1b,_0x1510b1){this['loader']=_0x483b1b,this['editor']=_0x1510b1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49fece=await this['loader']['file'];return _0x1391dc['upload']({'file':_0x49fece,'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':_0x51c53e=>{_0x51c53e&&_0x51c53e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x51c53e['value']);}})['then'](async _0x5df864=>{const {imageFallbackUrl:_0x11570a,imageSources:_0x280b0b}=_0x44b70f(_0x5df864['cdnUrl'],_0x5df864['imageInfo']['width']);return{'uploadcareImageId':_0x5df864['uuid'],'default':_0x11570a,'sources':_0x280b0b};})['catch'](()=>{const _0x901ea4=t('Cannot\x20upload\x20file:')+('\x20'+_0x49fece['name']+'.');return Promise['reject'](_0x901ea4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x313732}from'../uploadcareconfig.js';export function getTranslation(_0x311f7e,_0xb89242,_0x4d047b){const t=_0x311f7e['t'],_0x17d94d=_0x311f7e['t'];switch(_0xb89242){case _0x313732['Local']:return{'text':_0x17d94d('Insert'===_0x4d047b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17d94d('From\x20computer')};case _0x313732['URL']:return{'text':'Insert'===_0x4d047b?_0x17d94d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17d94d('Via\x20URL')};case _0x313732['Dropbox']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x313732['Facebook']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x313732['GDrive']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x313732['GPhotos']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x313732['OneDrive']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xb89242;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5960d1=_0x4fcb;(function(_0x3da680,_0x5617b9){var _0x3f776c=_0x4fcb,_0x58893a=_0x3da680();while(!![]){try{var _0x2eb6a7=parseInt(_0x3f776c(0xbc))/0x1+parseInt(_0x3f776c(0xba))/0x2*(-parseInt(_0x3f776c(0xb4))/0x3)+parseInt(_0x3f776c(0xb5))/0x4+-parseInt(_0x3f776c(0xb7))/0x5*(parseInt(_0x3f776c(0xaf))/0x6)+parseInt(_0x3f776c(0xb0))/0x7+-parseInt(_0x3f776c(0xbf))/0x8*(parseInt(_0x3f776c(0xb3))/0x9)+parseInt(_0x3f776c(0xac))/0xa*(-parseInt(_0x3f776c(0xbb))/0xb);if(_0x2eb6a7===_0x5617b9)break;else _0x58893a['push'](_0x58893a['shift']());}catch(_0x49c1f3){_0x58893a['push'](_0x58893a['shift']());}}}(_0x2e73,0xc2287));import{FocusTracker as _0x3ffbff}from'ckeditor5/src/utils.js';import{View as _0x1c9798,FocusCycler as _0x3596bd}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x4fcb(_0x39895e,_0x3e041a){var _0x2e738d=_0x2e73();return _0x4fcb=function(_0x4fcbd0,_0x64c760){_0x4fcbd0=_0x4fcbd0-0xac;var _0x3f1f96=_0x2e738d[_0x4fcbd0];return _0x3f1f96;},_0x4fcb(_0x39895e,_0x3e041a);}export class DialogFocusManagerView extends _0x1c9798{[_0x5960d1(0xb8)];[_0x5960d1(0xad)];constructor(_0x23e47e){var _0x19cee0=_0x5960d1;super(_0x23e47e),this[_0x19cee0(0xb8)]=new _0x3ffbff(),this[_0x19cee0(0xad)]=new _0x3596bd({'focusables':this[_0x19cee0(0xb1)](),'focusTracker':this[_0x19cee0(0xb8)]});}[_0x5960d1(0xbe)](){var _0x180ee1=_0x5960d1;return{'tag':_0x180ee1(0xae),'attributes':{'aria-hidden':_0x180ee1(0xb9),'tabindex':'0'},'on':{'focus':this[_0x180ee1(0xbd)]['to'](()=>{var _0x345370=_0x180ee1;this[_0x345370(0xad)][_0x345370(0xb6)](_0x345370(0xb2));})}};}}function _0x2e73(){var _0x5859f0=['99RzPaCQ','633811qvrFIU','bindTemplate','getFocusableElement','512uyJmTT','678200qKVMPJ','focusCycler','div','983964XMYoDH','9445513tBrKeP','createCollection','forwardCycle','173061QVyMQN','1704oFipLO','5290980OTgCTx','fire','20ruCTlM','focusTracker','true','48ftFLIf'];_0x2e73=function(){return _0x5859f0;};return _0x2e73();}
|