@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250409.0 → 0.0.0-nightly-20250410.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1763(){const _0x5ee338=['downcast','attributeToAttribute','_initCtx','config','_initConversion','href','editor','8490oCpoqe','elementToAttribute','appendChild','_initSchema','contentLanguage','_initImageProcessingIndicator','destroy','add','extend','getAttribute','editing','imageBlock','uploadcareImageReplace','uploadcareImageId','insertImage','896DImhCI','locale','closeMax','body','input[uploadcare-file-input]','getSelectedElement','uploadcare.uploader','replaceImageSource','\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','#uc-icon-arrow-down','get','iconHrefResolver','UploadcareEditing','_configElement','isPremiumPlugin','configElement','449133uAwsEh','ctxElement','uploadcare','2505762qFkrmj','4LbqIWq','execute','init','2485hIDtcd','afterInit','PictureEditing','904xftFkl','requires','querySelector','schema','fromCharCode','selection','uploader','_initConfig','listenTo','uc-upload-ctx-provider','uploadcare.pubkey','conversion','cleanupImage','9032Agtpom','render','once','removeAttribute','document','isRegistered','map','upcast','for','imageInline','pluginName','view','isOfficialPlugin','data-uc-image-id','294596ybJmSU','model','true','commands','_ctxElement','uc-config','remove','join','2181522hyazke'];_0x1763=function(){return _0x5ee338;};return _0x1763();}const _0x38dbe3=_0x7eb0;function _0x7eb0(_0x52b0e8,_0x279409){const _0x17639b=_0x1763();return _0x7eb0=function(_0x7eb045,_0x2b9bb9){_0x7eb045=_0x7eb045-0xbd;let _0x272092=_0x17639b[_0x7eb045];return _0x272092;},_0x7eb0(_0x52b0e8,_0x279409);}(function(_0x2e3dfc,_0x492f09){const _0x3c3f64=_0x7eb0,_0x43c452=_0x2e3dfc();while(!![]){try{const _0x398711=parseInt(_0x3c3f64(0xbe))/0x1+parseInt(_0x3c3f64(0xf1))/0x2*(parseInt(_0x3c3f64(0xed))/0x3)+-parseInt(_0x3c3f64(0xf7))/0x4*(-parseInt(_0x3c3f64(0xf4))/0x5)+-parseInt(_0x3c3f64(0xc6))/0x6+parseInt(_0x3c3f64(0xdd))/0x7*(parseInt(_0x3c3f64(0x104))/0x8)+-parseInt(_0x3c3f64(0xf0))/0x9+parseInt(_0x3c3f64(0xce))/0xa;if(_0x398711===_0x492f09)break;else _0x43c452['push'](_0x43c452['shift']());}catch(_0x4ac51d){_0x43c452['push'](_0x43c452['shift']());}}}(_0x1763,0x33320));import{Plugin as _0x1cde9e}from'ckeditor5/src/core.js';import{Dialog as _0xb1f831}from'ckeditor5/src/ui.js';import{createElement as _0x4a5be9,global as _0xa272c6,uid as _0x5ab46a}from'ckeditor5/src/utils.js';import _0x531ce6 from'./uploadcarecommand.js';import _0x3b633e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x35000d}from'./utils/editingutils.js';export default class i extends _0x1cde9e{[_0x38dbe3(0xea)]=null;[_0x38dbe3(0xc2)]=null;static get[_0x38dbe3(0x10e)](){const _0x574513=_0x38dbe3;return _0x574513(0xe9);}static get[_0x38dbe3(0xf8)](){const _0x2c0cca=_0x38dbe3;return[_0x2c0cca(0xf6),_0x3b633e,_0xb1f831];}static get[_0x38dbe3(0x110)](){return!0x0;}static get[_0x38dbe3(0xeb)](){return!0x0;}get[_0x38dbe3(0xec)](){const _0xdb10a2=_0x38dbe3;return this[_0xdb10a2(0xea)];}get[_0x38dbe3(0xee)](){const _0x38cad8=_0x38dbe3;return this[_0x38cad8(0xc2)];}[_0x38dbe3(0xf3)](){const _0x129fcb=_0x38dbe3,_0x4abdff=this[_0x129fcb(0xcd)];_0x4abdff[_0x129fcb(0xc1)][_0x129fcb(0xd5)](_0x129fcb(0xef),new _0x531ce6(_0x4abdff));}[_0x38dbe3(0xf5)](){const _0x29c469=_0x38dbe3;this[_0x29c469(0xd1)](),this[_0x29c469(0xcb)](),this[_0x29c469(0xfe)](),this[_0x29c469(0xc9)](),this[_0x29c469(0xd3)](),this[_0x29c469(0xff)](this[_0x29c469(0xcd)],_0x29c469(0xd4),()=>{const _0x1580ab=_0x29c469;this[_0x1580ab(0xea)]&&(this[_0x1580ab(0xea)][_0x1580ab(0xc4)](),this[_0x1580ab(0xea)]=null),this[_0x1580ab(0xc2)]&&(this[_0x1580ab(0xc2)][_0x1580ab(0xc4)](),this[_0x1580ab(0xc2)]=null);const _0x362a60=_0xa272c6[_0x1580ab(0x108)][_0x1580ab(0xf9)](_0x1580ab(0xe1));_0x362a60&&_0x362a60[_0x1580ab(0xc4)]();}),async function(_0x2dc364){const _0x500882=_0x2bfa6c([0x39,0x4b,0x66,0x44,0x76,0x75,0x42,0x77,0x73,0x6d,0x70,0x4e,0x6b,0x36,0x78,0x61,0x52,0x49,0x37,0x68,0x30,0x54,0x6f,0x72,0x6e,0x4d,0x7a,0x33,0x34,0x62,0x6c,0x38,0x71,0x31,0x58,0x5a,0x79,0x56,0x64,0x69,0x57,0x47,0x43,0x48,0x50,0x63,0x4c,0x53,0x67,0x32,0x4a,0x45,0x65,0x41,0x55,0x59,0x74,0x4f,0x6a,0x51,0x35,0x46]),_0x42a9e7=0x59c41b4d,_0x2e23e7=0x59c37fc5^_0x42a9e7,_0x59336f=window[_0x2bfa6c([0x44,0x61,0x74,0x65])][_0x2bfa6c([0x6e,0x6f,0x77])](),_0x20cbb8=_0x2dc364[_0x2bfa6c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28f098=new window[(_0x2bfa6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15816d=>{_0x20cbb8[_0x2bfa6c([0x6f,0x6e,0x63,0x65])](_0x2bfa6c([0x72,0x65,0x61,0x64,0x79]),_0x15816d);}),_0x55f982={[_0x2bfa6c([0x6b,0x74,0x79])]:_0x2bfa6c([0x45,0x43]),[_0x2bfa6c([0x75,0x73,0x65])]:_0x2bfa6c([0x73,0x69,0x67]),[_0x2bfa6c([0x63,0x72,0x76])]:_0x2bfa6c([0x50,0x2d,0x32,0x35,0x36]),[_0x2bfa6c([0x78])]:_0x2bfa6c([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]),[_0x2bfa6c([0x79])]:_0x2bfa6c([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]),[_0x2bfa6c([0x61,0x6c,0x67])]:_0x2bfa6c([0x45,0x53,0x32,0x35,0x36])},_0x119e28=_0x20cbb8[_0x2bfa6c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bfa6c([0x67,0x65,0x74])](_0x2bfa6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2de06c(){let _0x27f76e,_0x5eeaae=null,_0x9f2959=null;try{if(_0x119e28==_0x2bfa6c([0x47,0x50,0x4c]))return _0x2bfa6c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27f76e=_0x204028(),!_0x27f76e)return _0x2bfa6c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27f76e[_0x2bfa6c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9f2959=_0x32a5e0(_0x27f76e[_0x2bfa6c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27f76e[_0x2bfa6c([0x6a,0x74,0x69])])),await _0x29bc09()?_0x4f8b76()?_0x36953d()?_0x2bfa6c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x114239()?(_0x27f76e[_0x2bfa6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bfa6c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5eeaae=_0x363a5a(_0x2bfa6c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27f76e[_0x2bfa6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bfa6c([0x74,0x72,0x69,0x61,0x6c])&&(_0x5eeaae=_0x363a5a(_0x2bfa6c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xad2a03()):_0x2bfa6c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bfa6c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bfa6c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x41a7d8){return _0x2bfa6c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36953d(){const _0x57da22=[_0x2bfa6c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bfa6c([0x74,0x72,0x69,0x61,0x6c])][_0x2bfa6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f76e[_0x2bfa6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59336f/0x3e8:0xe10*_0x2e23e7;return _0x27f76e[_0x2bfa6c([0x65,0x78,0x70])]<_0x57da22;}function _0x4f8b76(){const _0x26f0f7=_0x27f76e[_0x2bfa6c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26f0f7&&(!!_0x26f0f7[_0x2bfa6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bfa6c([0x2a]))||!!_0x26f0f7[_0x2bfa6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bfa6c([0x55,0x50,0x4c,0x43])));}function _0x114239(){const _0x3d594b=_0x7eb0,_0x1d056c=_0x27f76e[_0x2bfa6c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d056c||0x0==_0x1d056c[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xcfcd8}=new URL(window[_0x2bfa6c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3d594b(0xcc)]);if(_0x1d056c[_0x2bfa6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcfcd8))return!0x0;const _0x5432de=_0xcfcd8[_0x2bfa6c([0x73,0x70,0x6c,0x69,0x74])](_0x2bfa6c([0x2e]));return _0x1d056c[_0x2bfa6c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37e0f3=>_0x37e0f3[_0x2bfa6c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bfa6c([0x2a])))[_0x2bfa6c([0x6d,0x61,0x70])](_0x4387af=>_0x4387af[_0x2bfa6c([0x73,0x70,0x6c,0x69,0x74])](_0x2bfa6c([0x2e])))[_0x2bfa6c([0x73,0x6f,0x6d,0x65])](_0x2a7da4=>_0x5432de[_0x2bfa6c([0x65,0x76,0x65,0x72,0x79])]((_0x109db,_0x57783a)=>_0x2a7da4[_0x57783a]===_0x109db||_0x2a7da4[_0x57783a]===_0x2bfa6c([0x2a])));}function _0xad2a03(){return _0x5eeaae&&_0x9f2959?new window[(_0x2bfa6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5435e6,_0x4c3cc4)=>{_0x5eeaae[_0x2bfa6c([0x74,0x68,0x65,0x6e])](_0x5435e6,_0x4c3cc4),_0x9f2959[_0x2bfa6c([0x74,0x68,0x65,0x6e])](_0xdef3b0=>{_0xdef3b0!=_0x2bfa6c([0x56,0x61,0x6c,0x69,0x64])&&_0x5435e6(_0xdef3b0);},_0x4c3cc4);}):_0x5eeaae||_0x9f2959||_0x2bfa6c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32a5e0(_0x34a6fd,_0x4305ae){return new window[(_0x2bfa6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389056=>{if(_0x1ba3b7())return _0x389056(_0x2bfa6c([0x56,0x61,0x6c,0x69,0x64]));_0x2dbf38(),_0x20cbb8[_0x2bfa6c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bfa6c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x38db5d=!0x1;const _0x18284d=_0x5ab46a();function _0x46813b(_0x5d0725){return!!_0x5d0725&&(typeof _0x5d0725===_0x2bfa6c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d0725===_0x2bfa6c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d0725[_0x2bfa6c([0x74,0x68,0x65,0x6e])]===_0x2bfa6c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d0725[_0x2bfa6c([0x63,0x61,0x74,0x63,0x68])]===_0x2bfa6c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b1dab(_0x467336){_0x3424dc(_0x467336)[_0x2bfa6c([0x74,0x68,0x65,0x6e])](_0x1cb787=>{if(!_0x1cb787||_0x1cb787[_0x2bfa6c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bfa6c([0x6f,0x6b]))return _0x2bfa6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4754ee(_0x12f609(_0x18284d+_0x4305ae))!=_0x1cb787[_0x2bfa6c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bfa6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bfa6c([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bfa6c([0x74,0x68,0x65,0x6e])](_0x184b3f=>(_0x265d6a(),_0x184b3f),()=>{const _0x57bdbc=_0xa8978a();return null==_0x57bdbc?(_0x265d6a(),_0x2bfa6c([0x56,0x61,0x6c,0x69,0x64])):_0x2bfa6c(_0x59336f-_0x57bdbc>(0x7dc89f4d^_0x42a9e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bfa6c([0x74,0x68,0x65,0x6e])](_0x389056)[_0x2bfa6c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x389056(_0x2bfa6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55fc97=0x59f2f5cd^_0x42a9e7;function _0x265d6a(){const _0xd05b76=_0x2bfa6c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4754ee(_0x12f609(_0x34a6fd)),_0x25c910=_0x2f562d(_0x4754ee(window[_0x2bfa6c([0x4d,0x61,0x74,0x68])][_0x2bfa6c([0x63,0x65,0x69,0x6c])](_0x59336f/_0x55fc97)));window[_0x2bfa6c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bfa6c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd05b76,_0x25c910);}function _0xa8978a(){const _0x2299c7=_0x2bfa6c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4754ee(_0x12f609(_0x34a6fd)),_0x49d445=window[_0x2bfa6c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bfa6c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2299c7);return _0x49d445?window[_0x2bfa6c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f562d(_0x49d445),0x10)*_0x55fc97:null;}function _0x3424dc(_0x27656c){return new window[(_0x2bfa6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58bfba,_0x564a33)=>{_0x27656c[_0x2bfa6c([0x74,0x68,0x65,0x6e])](_0x58bfba,_0x564a33),window[_0x2bfa6c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x564a33,0x59c5cf8d^_0x42a9e7);});}}_0x20cbb8[_0x2bfa6c([0x6f,0x6e])](_0x2bfa6c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x340b3f,_0x20cf79)=>{if(_0x20cf79[0x0]!=_0x34a6fd)return _0x389056(_0x2bfa6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20cf79[0x1]={..._0x20cf79[0x1],[_0x2bfa6c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18284d};},{[_0x2bfa6c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bfa6c([0x68,0x69,0x67,0x68])}),_0x20cbb8[_0x2bfa6c([0x6f,0x6e])](_0x2bfa6c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d1d27=>{_0x46813b(_0x2d1d27[_0x2bfa6c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x38db5d=!0x0,_0x1b1dab(_0x2d1d27[_0x2bfa6c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bfa6c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bfa6c([0x6c,0x6f,0x77])}),_0x28f098[_0x2bfa6c([0x74,0x68,0x65,0x6e])](()=>{_0x38db5d||_0x389056(_0x2bfa6c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ba3b7(){return _0x20cbb8[_0x2bfa6c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bfa6c([0x76,0x69,0x65,0x77])][_0x2bfa6c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bfa6c([0x61,0x75,0x74,0x6f]);}function _0x2dbf38(){_0x20cbb8[_0x2bfa6c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bfa6c([0x76,0x69,0x65,0x77])][_0x2bfa6c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bfa6c([0x61,0x75,0x74,0x6f]);}}function _0x363a5a(_0x30026d){const _0x5ed72b=[new window[(_0x2bfa6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x295f78=>setTimeout(_0x295f78,0x59cd2581^_0x42a9e7)),_0x28f098[_0x2bfa6c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bfa6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339352=>{let _0x232909=0x0;_0x20cbb8[_0x2bfa6c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bfa6c([0x6f,0x6e])](_0x2bfa6c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b2aab,_0x43e949)=>{_0x43e949[0x0][_0x2bfa6c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x232909++,_0x232909==(0x59c41ab5^_0x42a9e7)&&(_0x339352(),_0x3b2aab[_0x2bfa6c([0x6f,0x66,0x66])]());});}))];return window[_0x2bfa6c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bfa6c([0x72,0x61,0x63,0x65])](_0x5ed72b)[_0x2bfa6c([0x74,0x68,0x65,0x6e])](()=>_0x30026d);}async function _0x10a0f3(){await _0x28f098,_0x20cbb8[_0x2bfa6c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bfa6c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ac843,_0x20cbb8[_0x2bfa6c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bfa6c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ac843,_0x20cbb8[_0x2bfa6c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bfa6c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x791916(_0x4ae897){const _0xcd32ab=_0x55c99c();_0x20cbb8[_0xcd32ab]=_0x2bfa6c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ae897,_0x4ae897!=_0x2bfa6c([0x56,0x61,0x6c,0x69,0x64])&&_0x10a0f3();}function _0x55c99c(){const _0x584665=window[_0x2bfa6c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bfa6c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bfa6c([0x6e,0x6f,0x77])]())[_0x2bfa6c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bfa6c([0x2e]),'');let _0x1216bc=_0x2bfa6c([0x4b]);for(let _0x326585=0x0;_0x326585<_0x584665[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x326585+=0x2){let _0x2f5779=window[_0x2bfa6c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x584665[_0x2bfa6c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x326585,_0x326585+0x2));_0x2f5779>=_0x500882[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f5779-=_0x500882[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1216bc+=_0x500882[_0x2f5779];}return _0x1216bc;}function _0x204028(){const _0x476ac0=_0x119e28[_0x2bfa6c([0x73,0x70,0x6c,0x69,0x74])](_0x2bfa6c([0x2e]));if(0x3!=_0x476ac0[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xcd6fc3(_0x476ac0[0x1]);function _0xcd6fc3(_0x2693a){const _0x309f13=_0x170937(_0x2693a);return _0x309f13&&_0x1ea1ca()?_0x309f13:null;function _0x1ea1ca(){const _0x3d224f=_0x309f13[_0x2bfa6c([0x6a,0x74,0x69])],_0x57ff90=window[_0x2bfa6c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d224f[_0x2bfa6c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d224f[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6da506={..._0x309f13,[_0x2bfa6c([0x6a,0x74,0x69])]:_0x3d224f[_0x2bfa6c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d224f[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6da506[_0x2bfa6c([0x76,0x63])],_0x12f609(_0x6da506)==_0x57ff90;}}}async function _0x29bc09(){let _0x3d4674=!0x0;try{const _0x3c86eb=_0x119e28[_0x2bfa6c([0x73,0x70,0x6c,0x69,0x74])](_0x2bfa6c([0x2e])),[_0x5bc624,_0x5566ec,_0x44a98c]=_0x3c86eb;return _0x565c1f(_0x5bc624),await _0x2f390e(_0x5bc624,_0x5566ec,_0x44a98c),_0x3d4674;}catch(_0x3b9397){return!0x1;}function _0x565c1f(_0x1f084f){const _0x23c91a=_0x170937(_0x1f084f);_0x23c91a&&_0x23c91a[_0x2bfa6c([0x61,0x6c,0x67])]==_0x2bfa6c([0x45,0x53,0x32,0x35,0x36])||(_0x3d4674=!0x1);}async function _0x2f390e(_0x589951,_0x2f80dd,_0x2c7ab0){const _0x56ca84=window[_0x2bfa6c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bfa6c([0x66,0x72,0x6f,0x6d])](_0x2f994d(_0x2c7ab0),_0x58f3ca=>_0x58f3ca[_0x2bfa6c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d64ab=new window[(_0x2bfa6c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bfa6c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x589951+_0x2bfa6c([0x2e])+_0x2f80dd),_0x9a6c13=window[_0x2bfa6c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bfa6c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9a6c13)return;const _0x32eb6=await _0x9a6c13[_0x2bfa6c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bfa6c([0x6a,0x77,0x6b]),_0x55f982,{[_0x2bfa6c([0x6e,0x61,0x6d,0x65])]:_0x2bfa6c([0x45,0x43,0x44,0x53,0x41]),[_0x2bfa6c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bfa6c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bfa6c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9a6c13[_0x2bfa6c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bfa6c([0x6e,0x61,0x6d,0x65])]:_0x2bfa6c([0x45,0x43,0x44,0x53,0x41]),[_0x2bfa6c([0x68,0x61,0x73,0x68])]:{[_0x2bfa6c([0x6e,0x61,0x6d,0x65])]:_0x2bfa6c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32eb6,_0x56ca84,_0x4d64ab)||(_0x3d4674=!0x1);}}function _0x170937(_0x22a628){return _0x22a628[_0x2bfa6c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bfa6c([0x65,0x79]))?JSON[_0x2bfa6c([0x70,0x61,0x72,0x73,0x65])](_0x2f994d(_0x22a628)):null;}function _0x2f994d(_0x1c38de){return window[_0x2bfa6c([0x61,0x74,0x6f,0x62])](_0x1c38de[_0x2bfa6c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bfa6c([0x2b]))[_0x2bfa6c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bfa6c([0x2f])));}function _0x12f609(_0x587298){let _0xa76e10=0x1505;function _0x38f09d(_0x467819){for(let _0x3ec779=0x0;_0x3ec779<_0x467819[_0x2bfa6c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ec779++){const _0x8711b0=_0x467819[_0x2bfa6c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ec779);_0xa76e10=(_0xa76e10<<0x5)+_0xa76e10+_0x8711b0,_0xa76e10&=_0xa76e10;}}function _0x2044f6(_0x189414){Array[_0x2bfa6c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x189414)?_0x189414[_0x2bfa6c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2044f6):_0x189414&&typeof _0x189414==_0x2bfa6c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bfa6c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x189414)[_0x2bfa6c([0x73,0x6f,0x72,0x74])]()[_0x2bfa6c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a1241,_0x5c674d])=>{_0x38f09d(_0x4a1241),_0x2044f6(_0x5c674d);}):_0x38f09d(window[_0x2bfa6c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x189414));}return _0x2044f6(_0x587298),_0xa76e10>>>0x0;}function _0x4754ee(_0x145af0){return _0x145af0[_0x2bfa6c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bfa6c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bfa6c([0x30]));}function _0x2f562d(_0x984440){return _0x984440[_0x2bfa6c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bfa6c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bfa6c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ac843(){}function _0x2bfa6c(_0x151abf){const _0x1a5840=_0x7eb0;return _0x151abf[_0x1a5840(0x10a)](_0xea366f=>String[_0x1a5840(0xfb)](_0xea366f))[_0x1a5840(0xc5)]('');}_0x791916(await _0x2de06c());}(this);}[_0x38dbe3(0xd1)](){const _0x55630a=_0x38dbe3,_0x3cf4a5=this[_0x55630a(0xcd)][_0x55630a(0xbf)][_0x55630a(0xfa)];_0x3cf4a5[_0x55630a(0x109)](_0x55630a(0xd9))&&_0x3cf4a5[_0x55630a(0xd6)](_0x55630a(0xd9),{'allowAttributes':[_0x55630a(0xdb)]}),_0x3cf4a5[_0x55630a(0x109)](_0x55630a(0x10d))&&_0x3cf4a5[_0x55630a(0xd6)](_0x55630a(0x10d),{'allowAttributes':[_0x55630a(0xdb)]});}[_0x38dbe3(0xcb)](){const _0x262dd3=_0x38dbe3,_0x3feb82=this[_0x262dd3(0xcd)];_0x3feb82[_0x262dd3(0x102)][_0x262dd3(0x10c)](_0x262dd3(0xc7))[_0x262dd3(0xc8)]({'model':_0x262dd3(0xdb),'view':_0x262dd3(0xbd)}),_0x3feb82[_0x262dd3(0x102)][_0x262dd3(0x10c)](_0x262dd3(0x10b))[_0x262dd3(0xcf)]({'model':{'key':_0x262dd3(0xdb),'value':_0x46b3bf=>_0x46b3bf[_0x262dd3(0xd7)](_0x262dd3(0xbd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2ed1be=_0x3feb82[_0x262dd3(0xc1)][_0x262dd3(0xe7)](_0x262dd3(0xe4));_0x2ed1be&&this[_0x262dd3(0xff)](_0x2ed1be,_0x262dd3(0x103),(_0x1a3d85,[_0x310e7a,_0x2f2dc4])=>{const _0x17dc6f=_0x262dd3;_0x310e7a[_0x17dc6f(0x107)](_0x17dc6f(0xdb),_0x2f2dc4);});}[_0x38dbe3(0xfe)](){const _0x30eefb=_0x38dbe3,_0xd5f63d=this[_0x30eefb(0xcd)][_0x30eefb(0xca)][_0x30eefb(0xe7)](_0x30eefb(0xe3))||{},_0x105246=this[_0x30eefb(0xcd)][_0x30eefb(0xca)][_0x30eefb(0xe7)](_0x30eefb(0x101))||'';this[_0x30eefb(0xea)]=_0x4a5be9(_0xa272c6[_0x30eefb(0x108)],_0x30eefb(0xc3),{..._0xd5f63d,'pubkey':_0x105246,'ctx-name':_0x30eefb(0xfd),'sourceList':'','imgOnly':_0x30eefb(0xc0),'removeCopyright':_0x30eefb(0xc0),'localeName':this[_0x30eefb(0xcd)][_0x30eefb(0xde)][_0x30eefb(0xd2)],'externalSourcesEmbedCss':_0x30eefb(0xe5)}),this[_0x30eefb(0xea)][_0x30eefb(0xe8)]=_0x4cc329=>{const _0x5bb0b0=_0x30eefb;if(_0x5bb0b0(0xdf)==_0x4cc329)return _0x5bb0b0(0xe6);},_0xa272c6[_0x30eefb(0x108)][_0x30eefb(0xe0)][_0x30eefb(0xd0)](this[_0x30eefb(0xea)]);}[_0x38dbe3(0xc9)](){const _0x1191de=_0x38dbe3;this[_0x1191de(0xc2)]=_0x4a5be9(_0xa272c6[_0x1191de(0x108)],_0x1191de(0x100),{'ctx-name':_0x1191de(0xfd)}),_0xa272c6[_0x1191de(0x108)][_0x1191de(0xe0)][_0x1191de(0xd0)](this[_0x1191de(0xc2)]);}[_0x38dbe3(0xd3)](){const _0xe98b26=_0x38dbe3,_0x1b648c=this[_0xe98b26(0xcd)][_0xe98b26(0xc1)][_0xe98b26(0xe7)](_0xe98b26(0xdc));_0x1b648c&&this[_0xe98b26(0xff)](_0x1b648c,_0xe98b26(0xf2),()=>{const _0x8aa51b=_0xe98b26,_0x41bfd9=this[_0x8aa51b(0xcd)][_0x8aa51b(0xbf)][_0x8aa51b(0x108)][_0x8aa51b(0xfc)][_0x8aa51b(0xe2)]();_0x41bfd9&&_0x41bfd9[_0x8aa51b(0xd7)](_0x8aa51b(0xdb))&&this[_0x8aa51b(0xcd)][_0x8aa51b(0xd8)][_0x8aa51b(0x10f)][_0x8aa51b(0x106)](_0x8aa51b(0x105),()=>{const _0x288893=_0x8aa51b;_0x35000d(this[_0x288893(0xcd)],_0x41bfd9);});});const _0x75cdcd=this[_0xe98b26(0xcd)][_0xe98b26(0xc1)][_0xe98b26(0xe7)](_0xe98b26(0xda));_0x75cdcd&&this[_0xe98b26(0xff)](_0x75cdcd,_0xe98b26(0xf2),()=>{const _0x1f5dfc=_0xe98b26,_0xd6f745=this[_0x1f5dfc(0xcd)][_0x1f5dfc(0xbf)][_0x1f5dfc(0x108)][_0x1f5dfc(0xfc)][_0x1f5dfc(0xe2)]();_0xd6f745&&_0xd6f745[_0x1f5dfc(0xd7)](_0x1f5dfc(0xdb))&&this[_0x1f5dfc(0xcd)][_0x1f5dfc(0xd8)][_0x1f5dfc(0x10f)][_0x1f5dfc(0x106)](_0x1f5dfc(0x105),()=>{const _0x410f9a=_0x1f5dfc;_0x35000d(this[_0x410f9a(0xcd)],_0xd6f745);});});}}
|
|
23
|
+
const _0x321ad1=_0x167f;(function(_0x5b54a9,_0x2212fb){const _0x4bd67b=_0x167f,_0x52d293=_0x5b54a9();while(!![]){try{const _0x3a8dc1=parseInt(_0x4bd67b(0x17a))/0x1*(parseInt(_0x4bd67b(0x15b))/0x2)+-parseInt(_0x4bd67b(0x155))/0x3*(-parseInt(_0x4bd67b(0x159))/0x4)+parseInt(_0x4bd67b(0x15c))/0x5*(-parseInt(_0x4bd67b(0x189))/0x6)+-parseInt(_0x4bd67b(0x19b))/0x7*(parseInt(_0x4bd67b(0x16e))/0x8)+parseInt(_0x4bd67b(0x192))/0x9+-parseInt(_0x4bd67b(0x198))/0xa*(parseInt(_0x4bd67b(0x16f))/0xb)+-parseInt(_0x4bd67b(0x181))/0xc*(-parseInt(_0x4bd67b(0x14c))/0xd);if(_0x3a8dc1===_0x2212fb)break;else _0x52d293['push'](_0x52d293['shift']());}catch(_0x4b3960){_0x52d293['push'](_0x52d293['shift']());}}}(_0x1f5a,0x6106d));import{Plugin as _0x5c505f}from'ckeditor5/src/core.js';import{Dialog as _0x4ff182}from'ckeditor5/src/ui.js';function _0x167f(_0x3a189b,_0x3e0546){const _0x1f5a28=_0x1f5a();return _0x167f=function(_0x167f94,_0x3de06a){_0x167f94=_0x167f94-0x148;let _0x380a5b=_0x1f5a28[_0x167f94];return _0x380a5b;},_0x167f(_0x3a189b,_0x3e0546);}function _0x1f5a(){const _0x345016=['requires','href','document','114117ezALdN','selection','_configElement','join','editor','editing','conversion','120300DJllQv','isRegistered','elementToAttribute','get','uc-upload-ctx-provider','uploadcare.uploader','ctxElement','attributeToAttribute','924iPgOHl','locale','uploadcareImageId','upcast','isOfficialPlugin','listenTo','uploadcareImageReplace','model','querySelector','1994895xAPiUz','execute','_initConfig','uploadcare','body','_initImageProcessingIndicator','738930qUkjuh','configElement','getAttribute','7evaypS','insertImage','iconHrefResolver','afterInit','_initSchema','pluginName','#uc-icon-arrow-down','\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','1235fuUnbh','downcast','getSelectedElement','imageInline','UploadcareEditing','input[uploadcare-file-input]','replaceImageSource','uc-config','isPremiumPlugin','6xYSwBB','extend','remove','uploadcare.pubkey','233452zwHucT','PictureEditing','10dziBCE','17065bJXqML','destroy','contentLanguage','imageBlock','cleanupImage','uploader','once','config','commands','_initCtx','appendChild','fromCharCode','render','_initConversion','for','closeMax','map','schema','2777392sPbvAO','88EKxnho','_ctxElement','data-uc-image-id','view','add','init','removeAttribute','true'];_0x1f5a=function(){return _0x345016;};return _0x1f5a();}import{createElement as _0x4c197a,global as _0x42f8be,uid as _0x458bd0}from'ckeditor5/src/utils.js';import _0x13f722 from'./uploadcarecommand.js';import _0x553369 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x42938a}from'./utils/editingutils.js';export default class i extends _0x5c505f{[_0x321ad1(0x17c)]=null;[_0x321ad1(0x170)]=null;static get[_0x321ad1(0x149)](){const _0x248ebb=_0x321ad1;return _0x248ebb(0x150);}static get[_0x321ad1(0x177)](){const _0x3282fb=_0x321ad1;return[_0x3282fb(0x15a),_0x553369,_0x4ff182];}static get[_0x321ad1(0x18d)](){return!0x0;}static get[_0x321ad1(0x154)](){return!0x0;}get[_0x321ad1(0x199)](){const _0x16babf=_0x321ad1;return this[_0x16babf(0x17c)];}get[_0x321ad1(0x187)](){const _0x8214d8=_0x321ad1;return this[_0x8214d8(0x170)];}[_0x321ad1(0x174)](){const _0x23950e=_0x321ad1,_0xa3a14c=this[_0x23950e(0x17e)];_0xa3a14c[_0x23950e(0x164)][_0x23950e(0x173)](_0x23950e(0x195),new _0x13f722(_0xa3a14c));}[_0x321ad1(0x19e)](){const _0x26d999=_0x321ad1;this[_0x26d999(0x148)](),this[_0x26d999(0x169)](),this[_0x26d999(0x194)](),this[_0x26d999(0x165)](),this[_0x26d999(0x197)](),this[_0x26d999(0x18e)](this[_0x26d999(0x17e)],_0x26d999(0x15d),()=>{const _0x560e79=_0x26d999;this[_0x560e79(0x17c)]&&(this[_0x560e79(0x17c)][_0x560e79(0x157)](),this[_0x560e79(0x17c)]=null),this[_0x560e79(0x170)]&&(this[_0x560e79(0x170)][_0x560e79(0x157)](),this[_0x560e79(0x170)]=null);const _0x54318f=_0x42f8be[_0x560e79(0x179)][_0x560e79(0x191)](_0x560e79(0x151));_0x54318f&&_0x54318f[_0x560e79(0x157)]();}),async function(_0x12629e){const _0x220fa5=_0x2c3268([0x56,0x45,0x37,0x34,0x75,0x4a,0x47,0x79,0x70,0x43,0x6e,0x32,0x6c,0x65,0x71,0x6f,0x48,0x41,0x51,0x53,0x57,0x4f,0x31,0x52,0x67,0x64,0x6b,0x54,0x58,0x76,0x36,0x5a,0x50,0x77,0x72,0x39,0x7a,0x6a,0x4b,0x4d,0x38,0x6d,0x35,0x66,0x74,0x69,0x61,0x68,0x42,0x33,0x44,0x73,0x4c,0x59,0x55,0x30,0x46,0x62,0x49,0x4e,0x78,0x63]),_0x1feb1f=0x113d7281,_0x5409cc=0x113a1621^_0x1feb1f,_0x28e805=window[_0x2c3268([0x44,0x61,0x74,0x65])][_0x2c3268([0x6e,0x6f,0x77])](),_0x2ed768=_0x12629e[_0x2c3268([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3dd50d=new window[(_0x2c3268([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bed13=>{_0x2ed768[_0x2c3268([0x6f,0x6e,0x63,0x65])](_0x2c3268([0x72,0x65,0x61,0x64,0x79]),_0x3bed13);}),_0x16fc2b={[_0x2c3268([0x6b,0x74,0x79])]:_0x2c3268([0x45,0x43]),[_0x2c3268([0x75,0x73,0x65])]:_0x2c3268([0x73,0x69,0x67]),[_0x2c3268([0x63,0x72,0x76])]:_0x2c3268([0x50,0x2d,0x32,0x35,0x36]),[_0x2c3268([0x78])]:_0x2c3268([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]),[_0x2c3268([0x79])]:_0x2c3268([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]),[_0x2c3268([0x61,0x6c,0x67])]:_0x2c3268([0x45,0x53,0x32,0x35,0x36])},_0xfb8ea9=_0x2ed768[_0x2c3268([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c3268([0x67,0x65,0x74])](_0x2c3268([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2889c2(){let _0x5ce8d9,_0x1566a3=null,_0x3b3e73=null;try{if(_0xfb8ea9==_0x2c3268([0x47,0x50,0x4c]))return _0x2c3268([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ce8d9=_0x528534(),!_0x5ce8d9)return _0x2c3268([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ce8d9[_0x2c3268([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b3e73=_0x5a4fa0(_0x5ce8d9[_0x2c3268([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ce8d9[_0x2c3268([0x6a,0x74,0x69])])),await _0x3bfbc0()?_0x41a194()?_0x4d9f05()?_0x2c3268([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47f5e8()?(_0x5ce8d9[_0x2c3268([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c3268([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1566a3=_0x3fcd24(_0x2c3268([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ce8d9[_0x2c3268([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c3268([0x74,0x72,0x69,0x61,0x6c])&&(_0x1566a3=_0x3fcd24(_0x2c3268([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcd7bac()):_0x2c3268([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3268([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c3268([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x15d92d){return _0x2c3268([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d9f05(){const _0x119661=[_0x2c3268([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c3268([0x74,0x72,0x69,0x61,0x6c])][_0x2c3268([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce8d9[_0x2c3268([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28e805/0x3e8:0xe10*_0x5409cc;return _0x5ce8d9[_0x2c3268([0x65,0x78,0x70])]<_0x119661;}function _0x41a194(){const _0xb0e203=_0x5ce8d9[_0x2c3268([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xb0e203&&(!!_0xb0e203[_0x2c3268([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3268([0x2a]))||!!_0xb0e203[_0x2c3268([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3268([0x55,0x50,0x4c,0x43])));}function _0x47f5e8(){const _0x38399a=_0x167f,_0x184f6a=_0x5ce8d9[_0x2c3268([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x184f6a||0x0==_0x184f6a[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xac6faf}=new URL(window[_0x2c3268([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x38399a(0x178)]);if(_0x184f6a[_0x2c3268([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xac6faf))return!0x0;const _0x5133fb=_0xac6faf[_0x2c3268([0x73,0x70,0x6c,0x69,0x74])](_0x2c3268([0x2e]));return _0x184f6a[_0x2c3268([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2aeffc=>_0x2aeffc[_0x2c3268([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3268([0x2a])))[_0x2c3268([0x6d,0x61,0x70])](_0x516e4e=>_0x516e4e[_0x2c3268([0x73,0x70,0x6c,0x69,0x74])](_0x2c3268([0x2e])))[_0x2c3268([0x73,0x6f,0x6d,0x65])](_0x9264da=>_0x5133fb[_0x2c3268([0x65,0x76,0x65,0x72,0x79])]((_0x264cc7,_0x2bd455)=>_0x9264da[_0x2bd455]===_0x264cc7||_0x9264da[_0x2bd455]===_0x2c3268([0x2a])));}function _0xcd7bac(){return _0x1566a3&&_0x3b3e73?new window[(_0x2c3268([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbc881d,_0x3db898)=>{_0x1566a3[_0x2c3268([0x74,0x68,0x65,0x6e])](_0xbc881d,_0x3db898),_0x3b3e73[_0x2c3268([0x74,0x68,0x65,0x6e])](_0x1e3e92=>{_0x1e3e92!=_0x2c3268([0x56,0x61,0x6c,0x69,0x64])&&_0xbc881d(_0x1e3e92);},_0x3db898);}):_0x1566a3||_0x3b3e73||_0x2c3268([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a4fa0(_0x19c7d3,_0x13ccee){return new window[(_0x2c3268([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52f9c8=>{if(_0x1a4850())return _0x52f9c8(_0x2c3268([0x56,0x61,0x6c,0x69,0x64]));_0x2dcd40(),_0x2ed768[_0x2c3268([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c3268([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x270748=!0x1;const _0xb4ebbd=_0x458bd0();function _0x23a872(_0x431d7f){return!!_0x431d7f&&(typeof _0x431d7f===_0x2c3268([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x431d7f===_0x2c3268([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x431d7f[_0x2c3268([0x74,0x68,0x65,0x6e])]===_0x2c3268([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x431d7f[_0x2c3268([0x63,0x61,0x74,0x63,0x68])]===_0x2c3268([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x465266(_0x484c87){_0x58b849(_0x484c87)[_0x2c3268([0x74,0x68,0x65,0x6e])](_0x269cd9=>{if(!_0x269cd9||_0x269cd9[_0x2c3268([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c3268([0x6f,0x6b]))return _0x2c3268([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x356a02(_0x383272(_0xb4ebbd+_0x13ccee))!=_0x269cd9[_0x2c3268([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c3268([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3268([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3268([0x74,0x68,0x65,0x6e])](_0x8ef135=>(_0x15f4a8(),_0x8ef135),()=>{const _0x1c6f42=_0x31e0ea();return null==_0x1c6f42?(_0x15f4a8(),_0x2c3268([0x56,0x61,0x6c,0x69,0x64])):_0x2c3268(_0x28e805-_0x1c6f42>(0x3531f681^_0x1feb1f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3268([0x74,0x68,0x65,0x6e])](_0x52f9c8)[_0x2c3268([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52f9c8(_0x2c3268([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32c558=0x110b9c01^_0x1feb1f;function _0x15f4a8(){const _0x38bd00=_0x2c3268([0x6c,0x6c,0x63,0x74,0x2d])+_0x356a02(_0x383272(_0x19c7d3)),_0x57328a=_0x27056a(_0x356a02(window[_0x2c3268([0x4d,0x61,0x74,0x68])][_0x2c3268([0x63,0x65,0x69,0x6c])](_0x28e805/_0x32c558)));window[_0x2c3268([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3268([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38bd00,_0x57328a);}function _0x31e0ea(){const _0x4d3b70=_0x2c3268([0x6c,0x6c,0x63,0x74,0x2d])+_0x356a02(_0x383272(_0x19c7d3)),_0x1ddd7e=window[_0x2c3268([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3268([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d3b70);return _0x1ddd7e?window[_0x2c3268([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27056a(_0x1ddd7e),0x10)*_0x32c558:null;}function _0x58b849(_0x20a6e2){return new window[(_0x2c3268([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1beb15,_0x40d6e1)=>{_0x20a6e2[_0x2c3268([0x74,0x68,0x65,0x6e])](_0x1beb15,_0x40d6e1),window[_0x2c3268([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40d6e1,0x113ca641^_0x1feb1f);});}}_0x2ed768[_0x2c3268([0x6f,0x6e])](_0x2c3268([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x557ec9,_0x528177)=>{if(_0x528177[0x0]!=_0x19c7d3)return _0x52f9c8(_0x2c3268([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x528177[0x1]={..._0x528177[0x1],[_0x2c3268([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb4ebbd};},{[_0x2c3268([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3268([0x68,0x69,0x67,0x68])}),_0x2ed768[_0x2c3268([0x6f,0x6e])](_0x2c3268([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17ddee=>{_0x23a872(_0x17ddee[_0x2c3268([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x270748=!0x0,_0x465266(_0x17ddee[_0x2c3268([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c3268([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3268([0x6c,0x6f,0x77])}),_0x3dd50d[_0x2c3268([0x74,0x68,0x65,0x6e])](()=>{_0x270748||_0x52f9c8(_0x2c3268([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a4850(){return _0x2ed768[_0x2c3268([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3268([0x76,0x69,0x65,0x77])][_0x2c3268([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c3268([0x61,0x75,0x74,0x6f]);}function _0x2dcd40(){_0x2ed768[_0x2c3268([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3268([0x76,0x69,0x65,0x77])][_0x2c3268([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c3268([0x61,0x75,0x74,0x6f]);}}function _0x3fcd24(_0x328297){const _0x2d42cf=[new window[(_0x2c3268([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23930b=>setTimeout(_0x23930b,0x11344c4d^_0x1feb1f)),_0x3dd50d[_0x2c3268([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c3268([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2457d3=>{let _0x5a35c2=0x0;_0x2ed768[_0x2c3268([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3268([0x6f,0x6e])](_0x2c3268([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x572aa7,_0x1d1122)=>{_0x1d1122[0x0][_0x2c3268([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a35c2++,_0x5a35c2==(0x113d7379^_0x1feb1f)&&(_0x2457d3(),_0x572aa7[_0x2c3268([0x6f,0x66,0x66])]());});}))];return window[_0x2c3268([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c3268([0x72,0x61,0x63,0x65])](_0x2d42cf)[_0x2c3268([0x74,0x68,0x65,0x6e])](()=>_0x328297);}async function _0x245ae8(){await _0x3dd50d,_0x2ed768[_0x2c3268([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3268([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4588c9,_0x2ed768[_0x2c3268([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3268([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4588c9,_0x2ed768[_0x2c3268([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c3268([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16d6c6(_0x5ccc83){const _0x250f8b=_0x246854();_0x2ed768[_0x250f8b]=_0x2c3268([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ccc83,_0x5ccc83!=_0x2c3268([0x56,0x61,0x6c,0x69,0x64])&&_0x245ae8();}function _0x246854(){const _0x35e2f0=window[_0x2c3268([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c3268([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c3268([0x6e,0x6f,0x77])]())[_0x2c3268([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c3268([0x2e]),'');let _0x3e9f79=_0x2c3268([0x56]);for(let _0x57239b=0x0;_0x57239b<_0x35e2f0[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57239b+=0x2){let _0x2141f6=window[_0x2c3268([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35e2f0[_0x2c3268([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57239b,_0x57239b+0x2));_0x2141f6>=_0x220fa5[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2141f6-=_0x220fa5[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e9f79+=_0x220fa5[_0x2141f6];}return _0x3e9f79;}function _0x528534(){const _0xb5e048=_0xfb8ea9[_0x2c3268([0x73,0x70,0x6c,0x69,0x74])](_0x2c3268([0x2e]));if(0x3!=_0xb5e048[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31cab2(_0xb5e048[0x1]);function _0x31cab2(_0x53c418){const _0x59bae8=_0x6ef4ed(_0x53c418);return _0x59bae8&&_0x2dd97b()?_0x59bae8:null;function _0x2dd97b(){const _0x34b698=_0x59bae8[_0x2c3268([0x6a,0x74,0x69])],_0x10b428=window[_0x2c3268([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34b698[_0x2c3268([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34b698[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f116c={..._0x59bae8,[_0x2c3268([0x6a,0x74,0x69])]:_0x34b698[_0x2c3268([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34b698[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f116c[_0x2c3268([0x76,0x63])],_0x383272(_0x2f116c)==_0x10b428;}}}async function _0x3bfbc0(){let _0x1b756f=!0x0;try{const _0xaa7abb=_0xfb8ea9[_0x2c3268([0x73,0x70,0x6c,0x69,0x74])](_0x2c3268([0x2e])),[_0xf8670a,_0x5cff68,_0xacd42b]=_0xaa7abb;return _0x210293(_0xf8670a),await _0x56d878(_0xf8670a,_0x5cff68,_0xacd42b),_0x1b756f;}catch(_0x332f9a){return!0x1;}function _0x210293(_0x56a8a1){const _0x3588fe=_0x6ef4ed(_0x56a8a1);_0x3588fe&&_0x3588fe[_0x2c3268([0x61,0x6c,0x67])]==_0x2c3268([0x45,0x53,0x32,0x35,0x36])||(_0x1b756f=!0x1);}async function _0x56d878(_0x45efda,_0x135c95,_0x33a6e4){const _0x579757=window[_0x2c3268([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c3268([0x66,0x72,0x6f,0x6d])](_0x59d905(_0x33a6e4),_0x36102c=>_0x36102c[_0x2c3268([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12aefe=new window[(_0x2c3268([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c3268([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45efda+_0x2c3268([0x2e])+_0x135c95),_0x4b66e3=window[_0x2c3268([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c3268([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b66e3)return;const _0x106b15=await _0x4b66e3[_0x2c3268([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c3268([0x6a,0x77,0x6b]),_0x16fc2b,{[_0x2c3268([0x6e,0x61,0x6d,0x65])]:_0x2c3268([0x45,0x43,0x44,0x53,0x41]),[_0x2c3268([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c3268([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c3268([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b66e3[_0x2c3268([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c3268([0x6e,0x61,0x6d,0x65])]:_0x2c3268([0x45,0x43,0x44,0x53,0x41]),[_0x2c3268([0x68,0x61,0x73,0x68])]:{[_0x2c3268([0x6e,0x61,0x6d,0x65])]:_0x2c3268([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x106b15,_0x579757,_0x12aefe)||(_0x1b756f=!0x1);}}function _0x6ef4ed(_0x9ba154){return _0x9ba154[_0x2c3268([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c3268([0x65,0x79]))?JSON[_0x2c3268([0x70,0x61,0x72,0x73,0x65])](_0x59d905(_0x9ba154)):null;}function _0x59d905(_0x30db17){return window[_0x2c3268([0x61,0x74,0x6f,0x62])](_0x30db17[_0x2c3268([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c3268([0x2b]))[_0x2c3268([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c3268([0x2f])));}function _0x383272(_0x6d499d){let _0x3820ac=0x1505;function _0x327173(_0x46e99c){for(let _0x2c5259=0x0;_0x2c5259<_0x46e99c[_0x2c3268([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c5259++){const _0x404d69=_0x46e99c[_0x2c3268([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c5259);_0x3820ac=(_0x3820ac<<0x5)+_0x3820ac+_0x404d69,_0x3820ac&=_0x3820ac;}}function _0x420d30(_0x3c1d54){Array[_0x2c3268([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c1d54)?_0x3c1d54[_0x2c3268([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x420d30):_0x3c1d54&&typeof _0x3c1d54==_0x2c3268([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c3268([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c1d54)[_0x2c3268([0x73,0x6f,0x72,0x74])]()[_0x2c3268([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c7fd2,_0x50c077])=>{_0x327173(_0x5c7fd2),_0x420d30(_0x50c077);}):_0x327173(window[_0x2c3268([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c1d54));}return _0x420d30(_0x6d499d),_0x3820ac>>>0x0;}function _0x356a02(_0x1bfa94){return _0x1bfa94[_0x2c3268([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c3268([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c3268([0x30]));}function _0x27056a(_0x57eec9){return _0x57eec9[_0x2c3268([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c3268([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c3268([0x6a,0x6f,0x69,0x6e])]('');}function _0x4588c9(){}function _0x2c3268(_0x214927){const _0x33ae38=_0x167f;return _0x214927[_0x33ae38(0x16c)](_0x542465=>String[_0x33ae38(0x167)](_0x542465))[_0x33ae38(0x17d)]('');}_0x16d6c6(await _0x2889c2());}(this);}[_0x321ad1(0x148)](){const _0x3bdbc5=_0x321ad1,_0x14ead0=this[_0x3bdbc5(0x17e)][_0x3bdbc5(0x190)][_0x3bdbc5(0x16d)];_0x14ead0[_0x3bdbc5(0x182)](_0x3bdbc5(0x15f))&&_0x14ead0[_0x3bdbc5(0x156)](_0x3bdbc5(0x15f),{'allowAttributes':[_0x3bdbc5(0x18b)]}),_0x14ead0[_0x3bdbc5(0x182)](_0x3bdbc5(0x14f))&&_0x14ead0[_0x3bdbc5(0x156)](_0x3bdbc5(0x14f),{'allowAttributes':[_0x3bdbc5(0x18b)]});}[_0x321ad1(0x169)](){const _0x1ad6c3=_0x321ad1,_0x542312=this[_0x1ad6c3(0x17e)];_0x542312[_0x1ad6c3(0x180)][_0x1ad6c3(0x16a)](_0x1ad6c3(0x14d))[_0x1ad6c3(0x188)]({'model':_0x1ad6c3(0x18b),'view':_0x1ad6c3(0x171)}),_0x542312[_0x1ad6c3(0x180)][_0x1ad6c3(0x16a)](_0x1ad6c3(0x18c))[_0x1ad6c3(0x183)]({'model':{'key':_0x1ad6c3(0x18b),'value':_0x3fc6be=>_0x3fc6be[_0x1ad6c3(0x19a)](_0x1ad6c3(0x171))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc1357a=_0x542312[_0x1ad6c3(0x164)][_0x1ad6c3(0x184)](_0x1ad6c3(0x152));_0xc1357a&&this[_0x1ad6c3(0x18e)](_0xc1357a,_0x1ad6c3(0x160),(_0x54acc8,[_0x45cc9f,_0x8cf3f])=>{const _0x765945=_0x1ad6c3;_0x45cc9f[_0x765945(0x175)](_0x765945(0x18b),_0x8cf3f);});}[_0x321ad1(0x194)](){const _0x38d021=_0x321ad1,_0x3ead5e=this[_0x38d021(0x17e)][_0x38d021(0x163)][_0x38d021(0x184)](_0x38d021(0x186))||{},_0x2c4b28=this[_0x38d021(0x17e)][_0x38d021(0x163)][_0x38d021(0x184)](_0x38d021(0x158))||'';this[_0x38d021(0x17c)]=_0x4c197a(_0x42f8be[_0x38d021(0x179)],_0x38d021(0x153),{..._0x3ead5e,'pubkey':_0x2c4b28,'ctx-name':_0x38d021(0x161),'sourceList':'','imgOnly':_0x38d021(0x176),'removeCopyright':_0x38d021(0x176),'localeName':this[_0x38d021(0x17e)][_0x38d021(0x18a)][_0x38d021(0x15e)],'externalSourcesEmbedCss':_0x38d021(0x14b)}),this[_0x38d021(0x17c)][_0x38d021(0x19d)]=_0x2d17a6=>{const _0x300697=_0x38d021;if(_0x300697(0x16b)==_0x2d17a6)return _0x300697(0x14a);},_0x42f8be[_0x38d021(0x179)][_0x38d021(0x196)][_0x38d021(0x166)](this[_0x38d021(0x17c)]);}[_0x321ad1(0x165)](){const _0x50a5f8=_0x321ad1;this[_0x50a5f8(0x170)]=_0x4c197a(_0x42f8be[_0x50a5f8(0x179)],_0x50a5f8(0x185),{'ctx-name':_0x50a5f8(0x161)}),_0x42f8be[_0x50a5f8(0x179)][_0x50a5f8(0x196)][_0x50a5f8(0x166)](this[_0x50a5f8(0x170)]);}[_0x321ad1(0x197)](){const _0x16a7bb=_0x321ad1,_0x2d0d32=this[_0x16a7bb(0x17e)][_0x16a7bb(0x164)][_0x16a7bb(0x184)](_0x16a7bb(0x19c));_0x2d0d32&&this[_0x16a7bb(0x18e)](_0x2d0d32,_0x16a7bb(0x193),()=>{const _0x716e5d=_0x16a7bb,_0x20f281=this[_0x716e5d(0x17e)][_0x716e5d(0x190)][_0x716e5d(0x179)][_0x716e5d(0x17b)][_0x716e5d(0x14e)]();_0x20f281&&_0x20f281[_0x716e5d(0x19a)](_0x716e5d(0x18b))&&this[_0x716e5d(0x17e)][_0x716e5d(0x17f)][_0x716e5d(0x172)][_0x716e5d(0x162)](_0x716e5d(0x168),()=>{const _0x5797f9=_0x716e5d;_0x42938a(this[_0x5797f9(0x17e)],_0x20f281);});});const _0x5d093a=this[_0x16a7bb(0x17e)][_0x16a7bb(0x164)][_0x16a7bb(0x184)](_0x16a7bb(0x18f));_0x5d093a&&this[_0x16a7bb(0x18e)](_0x5d093a,_0x16a7bb(0x193),()=>{const _0x5a39bd=_0x16a7bb,_0x2e2527=this[_0x5a39bd(0x17e)][_0x5a39bd(0x190)][_0x5a39bd(0x179)][_0x5a39bd(0x17b)][_0x5a39bd(0x14e)]();_0x2e2527&&_0x2e2527[_0x5a39bd(0x19a)](_0x5a39bd(0x18b))&&this[_0x5a39bd(0x17e)][_0x5a39bd(0x17f)][_0x5a39bd(0x172)][_0x5a39bd(0x162)](_0x5a39bd(0x168),()=>{const _0xe354ef=_0x5a39bd;_0x42938a(this[_0xe354ef(0x17e)],_0x2e2527);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x29f7f8,ObservableMixin as _0x589f2c}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x158303}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1bfe67}from'ckeditor5/src/icons.js';import _0x5a002c from'./uploadcareimageeditformview.js';import _0x4fa139 from'../../utils/uploadutils.js';import{getImageUrls as _0x13ad84,getImageDimension as _0x39e16f}from'../../utils/editingutils.js';import{isAncestor as _0x4d5108}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x589f2c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x543be6,_0x21ba8c,_0x2a79b5){super(),this['_editor']=_0x543be6,this['_dialog']=_0x21ba8c,this['_imageElement']=_0x2a79b5,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 _0x16f6b0=this['_imageElement'],_0x2f24eb=_0x16f6b0['getAttribute']('uploadcareImageId'),_0x2803a2=_0x16f6b0['getAttribute']('src');if(_0x2f24eb)await this['_loadImageInfo'](_0x2f24eb,_0x2803a2);else{if(this['_imageCache']['has'](_0x2803a2)){const _0x188120=this['_imageCache']['get'](_0x2803a2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x188120['url'],this['imageDimension']=_0x188120['dimension'],this['imageId']=_0x188120['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3ff121}=this['_editor'],t=_0x3ff121['t'],_0x5db64f=new _0x5a002c(_0x3ff121,this['imageStatus'],this['_attributes']);_0x5db64f['bind']('status')['to'](this,'imageStatus'),_0x5db64f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5db64f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5db64f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5db64f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1bfe67,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5db64f,'position':_0x158303['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5db64f['focus']();},'onHide':()=>{_0x5db64f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a9bc2=>!_0x4d5108(_0x1a9bc2,_0x5db64f['element'])}});}['_loadImageInfo'](_0x41996b,_0x1669ec){return _0x4fa139['getInfo'](_0x41996b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x353317=>{const {width:_0x4a91eb,height:_0x16c68b}=_0x353317['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1669ec,this['imageDimension']={'width':_0x4a91eb,'height':_0x16c68b},this['imageId']=_0x41996b;})['catch'](_0x23435e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x23435e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x287d6f,_0x3bf12b){return this['_getImageAsFile'](_0x287d6f)['then'](_0x14e130=>_0x4fa139['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3bf12b['signal'],'file':_0x14e130,'onProgress':_0xca9ae8=>{_0xca9ae8&&_0xca9ae8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xca9ae8['value']));}}))['then'](_0x5ac99a=>{const {width:_0x247168,height:_0x19bbc2}=_0x5ac99a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ac99a['cdnUrl'],this['imageDimension']={'width':_0x247168,'height':_0x19bbc2},this['imageId']=_0x5ac99a['uuid'],this['imageUploadProgress']=null;const _0x3b04da=_0x287d6f['getAttribute']('src');this['_imageCache']['set'](_0x3b04da,{'id':_0x5ac99a['uuid'],'url':_0x5ac99a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x218b59=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x218b59['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xcc1961,_0x309469){_0xcc1961['on']('apply',(_0x4af1c1,_0x106c96)=>{this['_replaceImage'](_0x309469,_0x106c96['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xcc1961['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xcc1961['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x14a3ba,_0xa8d6d,_0x31e6c3){const _0x23628e=this['_editor'],{width:_0x58f167,height:_0x315d81}=_0x39e16f(_0xa8d6d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ffd58,imageSources:_0xcb0d03}=_0x13ad84(_0xa8d6d,_0x58f167);_0x23628e['model']['change'](_0x1d81f7=>{if('$graveyard'===_0x14a3ba['root']['rootName']){_0x23628e['execute']('insertImage',{'imageType':_0x14a3ba['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x14a3ba['getAttributes']()),'uploadcareImageId':_0x31e6c3,'src':_0x1ffd58,'sources':_0xcb0d03,'width':_0x58f167,'height':_0x315d81}});const _0x27d8d2=_0x14a3ba['getChildren']();_0x14a3ba=_0x23628e['model']['document']['selection']['getSelectedElement']();for(const _0x3d1a00 of _0x27d8d2)_0x1d81f7['append'](_0x1d81f7['cloneElement'](_0x3d1a00),_0x14a3ba);}else _0x1d81f7['setSelection'](_0x14a3ba,'on'),_0x23628e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x14a3ba['getAttributes']()),'uploadcareImageId':_0x31e6c3,'src':_0x1ffd58,'sources':_0xcb0d03,'width':_0x58f167,'height':_0x315d81},_0x14a3ba);_0x1d81f7['setSelection'](_0x14a3ba,'on');});}async['_getImageAsFile'](_0x3e532e){const _0xf2a524=_0x29f7f8['window'],_0xefe82e=_0x29f7f8['document']['location']['href'],_0x53e56c=new _0xf2a524['URL'](_0x3e532e['getAttribute']('src'),_0xefe82e);if('data:'===_0x53e56c['protocol']){const _0x363ac5=_0x53e56c['href']['split'](','),_0x3dfb54=_0x363ac5[0x0]['match'](/:(.*?);/)[0x1],_0x3f36e5=_0x3dfb54['split']('/')[0x1],_0x214872=_0xf2a524['atob'](_0x363ac5[_0x363ac5['length']-0x1]);let _0x37e434=_0x214872['length'];const _0x360b45=new _0xf2a524['Uint8Array'](_0x37e434);for(;_0x37e434--;)_0x360b45[_0x37e434]=_0x214872['charCodeAt'](_0x37e434);return new _0xf2a524['File']([_0x360b45],'image.'+_0x3f36e5,{'type':_0x3dfb54});}const _0x1b843b=_0x53e56c['href']['split']('/'),_0x27dddc=_0x1b843b[_0x1b843b['length']-0x1],_0x37c252=_0x27dddc['split']('.')[0x1];return _0xf2a524['fetch'](_0x53e56c['href'])['then'](_0x5e034f=>_0x5e034f['clone']()['blob']())['then'](_0x2263b4=>new _0xf2a524['File']([_0x2263b4],_0x27dddc,{'type':'image/'+_0x37c252}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x42046a,_0x526425){const _0x4bbb05=_0x88b8,_0x244152=_0x42046a();while(!![]){try{const _0x22161c=parseInt(_0x4bbb05(0x1eb))/0x1+parseInt(_0x4bbb05(0x1f2))/0x2+-parseInt(_0x4bbb05(0x1ec))/0x3+parseInt(_0x4bbb05(0x1fb))/0x4*(-parseInt(_0x4bbb05(0x1f3))/0x5)+-parseInt(_0x4bbb05(0x1f7))/0x6+-parseInt(_0x4bbb05(0x1fa))/0x7+-parseInt(_0x4bbb05(0x1ee))/0x8*(-parseInt(_0x4bbb05(0x1ef))/0x9);if(_0x22161c===_0x526425)break;else _0x244152['push'](_0x244152['shift']());}catch(_0x1011de){_0x244152['push'](_0x244152['shift']());}}}(_0x37b6,0x943cc));function _0x88b8(_0x39af8b,_0x21778a){const _0x37b657=_0x37b6();return _0x88b8=function(_0x88b834,_0xf94b50){_0x88b834=_0x88b834-0x1eb;let _0x4357ba=_0x37b657[_0x88b834];return _0x4357ba;},_0x88b8(_0x39af8b,_0x21778a);}import{View as _0x146a79}from'ckeditor5/src/ui.js';export default class tt extends _0x146a79{constructor(_0x13e456,_0x138287){const _0x73f9d2=_0x88b8;super(_0x13e456);const _0xc6007e=this[_0x73f9d2(0x1f1)];this[_0x73f9d2(0x1f6)](_0x73f9d2(0x1ed),''),this[_0x73f9d2(0x1f8)]({'tag':_0x73f9d2(0x1f0),'attributes':{..._0x138287,'class':[_0x73f9d2(0x1f9),_0x73f9d2(0x1f5)],'ctx-name':_0x73f9d2(0x1f4),'cdn-url':_0xc6007e['to'](_0x73f9d2(0x1ed))}});}}function _0x37b6(){const _0x4f1101=['ck-uploadcare-theme','set','6452598xVfiiz','setTemplate','uc-light','7962731OPrcRn','32Cusntv','1203426hsZJcx','2108760pBPCBk','imageSrc','128ToPnDw','962397YBsZdN','uc-cloud-image-editor','bindTemplate','2080624HlAKsu','269750kwUFxN','image-edit'];_0x37b6=function(){return _0x4f1101;};return _0x37b6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x569a58,IconView as at,View as _0x1f8bb9}from'ckeditor5/src/ui.js';export default class rt extends _0x1f8bb9{constructor(_0x4635a5){super(_0x4635a5);const t=_0x4635a5['t'];this['set']('errorType',null);const _0x191adf=new _0x569a58(_0x4635a5);_0x191adf['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x191adf['withText']=!0x0,_0x191adf['class']='ck-button-action',_0x191adf['on']('execute',()=>{this['fire']('retry');}),_0x191adf['bind']('isVisible')['to'](this,'errorType',_0xefe2cd=>'NotFound'!==_0xefe2cd);const _0x4fe3c9=new at();_0x4fe3c9['content']=et,_0x4fe3c9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x9983f=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':[_0x4fe3c9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x9983f['to']('errorType',_0x27cfdd=>t('NotFound'!==_0x27cfdd?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x191adf]},{'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 _0x294bd6,View as _0x57f828}from'ckeditor5/src/ui.js';export default class ta extends _0x57f828{constructor(_0x88b9ac){super(_0x88b9ac);const t=_0x88b9ac['t'],_0x340ee2=this['bindTemplate'],_0x2e60ee=new _0x294bd6();_0x2e60ee['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':[_0x2e60ee,{'text':_0x340ee2['to']('imageUploadProgress',_0x4ad30b=>t('Loading\x20image...')+'\x20('+(_0x4ad30b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8450b3=_0x7d6f;(function(_0x1cc763,_0x5945dc){const _0x19e77b=_0x7d6f,_0x41c7ff=_0x1cc763();while(!![]){try{const _0x160436=parseInt(_0x19e77b(0x190))/0x1*(parseInt(_0x19e77b(0x19f))/0x2)+parseInt(_0x19e77b(0x17c))/0x3+-parseInt(_0x19e77b(0x17b))/0x4*(-parseInt(_0x19e77b(0x192))/0x5)+parseInt(_0x19e77b(0x19d))/0x6+parseInt(_0x19e77b(0x187))/0x7*(parseInt(_0x19e77b(0x1a8))/0x8)+-parseInt(_0x19e77b(0x191))/0x9+-parseInt(_0x19e77b(0x17f))/0xa;if(_0x160436===_0x5945dc)break;else _0x41c7ff['push'](_0x41c7ff['shift']());}catch(_0x588035){_0x41c7ff['push'](_0x41c7ff['shift']());}}}(_0x349f,0x8393b));import{View as _0x5832f8}from'ckeditor5/src/ui.js';import _0x4a2f07 from'./uploadcareimageeditformloadingview.js';import _0x1ca456 from'./uploadcareimageeditformerrorview.js';function _0x349f(){const _0x4c9e8c=['cdnUrl','error','clear','7ErlIvO','addEventListener','change:status','fire','querySelector','_items','apply','uc-cloud-image-editor','_loadingView','1xRTLcJ','8381637NTiGAl','2104455vKXJaZ','createCollection','focus','_addUploadcareImageEditorListeners','status','_waitForImageEditorComponent','div','_addErrorViewListeners','target','render','toLowerCase','5043252sYbykd','_editingView','1238156RhPclF','detail','uploading','_focusableView','once','length','addedNodes','getFocusableElement','disconnect','2462136trQVmn','element','cancel','_setView','nodeName','filter','add','setTemplate','ready','retry','4Ofgyhu','3010932eIEwqQ','ck-uploadcare-form','observe','17216900BqNlXV','ck-reset_all-excluded','set','addMany','_errorView'];_0x349f=function(){return _0x4c9e8c;};return _0x349f();}import _0x5dce8a from'./uploadcareimageeditformeditingview.js';function _0x7d6f(_0x4d92e5,_0x568a2b){const _0x349f9e=_0x349f();return _0x7d6f=function(_0x7d6fb5,_0x11d421){_0x7d6fb5=_0x7d6fb5-0x172;let _0x29113a=_0x349f9e[_0x7d6fb5];return _0x29113a;},_0x7d6f(_0x4d92e5,_0x568a2b);}import _0x1ac9d9 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x1ac9d9{[_0x8450b3(0x18c)];[_0x8450b3(0x18f)];[_0x8450b3(0x183)];[_0x8450b3(0x19e)];[_0x8450b3(0x1a2)];constructor(_0x204299,_0x528c0f,_0xf120be){const _0x4f0c1c=_0x8450b3;super(_0x204299),this[_0x4f0c1c(0x18c)]=this[_0x4f0c1c(0x193)](),this[_0x4f0c1c(0x18f)]=new _0x4a2f07(_0x204299),this[_0x4f0c1c(0x183)]=new _0x1ca456(_0x204299),this[_0x4f0c1c(0x19e)]=new _0x5dce8a(_0x204299,_0xf120be),this[_0x4f0c1c(0x1a2)]=new _0x5832f8(_0x204299),this[_0x4f0c1c(0x1a2)][_0x4f0c1c(0x178)](this[_0x4f0c1c(0x1a6)]()),this[_0x4f0c1c(0x181)](_0x4f0c1c(0x196),_0x528c0f),this[_0x4f0c1c(0x178)]({'tag':_0x4f0c1c(0x198),'attributes':{'class':['ck',_0x4f0c1c(0x180),_0x4f0c1c(0x17d)],'tabindex':'-1'},'children':this[_0x4f0c1c(0x18c)]}),this[_0x4f0c1c(0x174)](),this[_0x4f0c1c(0x1a3)](_0x4f0c1c(0x19b),()=>{const _0x3dd72a=_0x4f0c1c;this[_0x3dd72a(0x197)](this[_0x3dd72a(0x172)],_0x42bdc5=>{const _0x56ca1b=_0x3dd72a;this[_0x56ca1b(0x195)](_0x42bdc5);});}),this['on'](_0x4f0c1c(0x189),()=>{const _0x4318ba=_0x4f0c1c;this[_0x4318ba(0x174)]();}),this[_0x4f0c1c(0x199)]();}[_0x8450b3(0x194)](){const _0x3de5c0=_0x8450b3;this[_0x3de5c0(0x172)][_0x3de5c0(0x194)]();}[_0x8450b3(0x174)](){const _0x39f44e=_0x8450b3;switch(this[_0x39f44e(0x18c)][_0x39f44e(0x186)](),this[_0x39f44e(0x196)]){case _0x39f44e(0x1a1):this[_0x39f44e(0x18c)][_0x39f44e(0x177)](this[_0x39f44e(0x18f)]);break;case _0x39f44e(0x185):this[_0x39f44e(0x18c)][_0x39f44e(0x177)](this[_0x39f44e(0x183)]);break;case _0x39f44e(0x179):this[_0x39f44e(0x18c)][_0x39f44e(0x182)]([this[_0x39f44e(0x19e)],this[_0x39f44e(0x1a2)]]);}}[_0x8450b3(0x197)](_0x1d5428,_0x112171){const _0x1d9c90=_0x8450b3,_0x45d2dd=_0x1d9c90(0x18e),_0x450ee5=_0x1d5428[_0x1d9c90(0x18b)](_0x45d2dd);if(_0x450ee5)return _0x112171(_0x450ee5);const _0x3cded2=new MutationObserver(_0x447439=>{const _0x2c227a=_0x1d9c90,_0x59cf3f=_0x447439[_0x2c227a(0x176)](_0x2ef1be=>_0x2ef1be[_0x2c227a(0x19a)]===_0x1d5428&&_0x2ef1be[_0x2c227a(0x1a5)][_0x2c227a(0x1a4)]>0x0&&_0x2ef1be[_0x2c227a(0x1a5)][0x0][_0x2c227a(0x175)][_0x2c227a(0x19c)]()===_0x45d2dd);_0x59cf3f[_0x2c227a(0x1a4)]&&(_0x3cded2[_0x2c227a(0x1a7)](),_0x112171(_0x59cf3f[0x0][_0x2c227a(0x1a5)][0x0]));});_0x3cded2[_0x1d9c90(0x17e)](_0x1d5428,{'childList':!0x0,'subtree':!0x0});}[_0x8450b3(0x195)](_0x4502a4){const _0x43eb19=_0x8450b3;_0x4502a4[_0x43eb19(0x188)](_0x43eb19(0x18d),_0x371f1c=>{const _0x23a191=_0x43eb19;this[_0x23a191(0x18a)](_0x23a191(0x18d),{'imageSrc':_0x371f1c[_0x23a191(0x1a0)][_0x23a191(0x184)]});}),_0x4502a4[_0x43eb19(0x188)](_0x43eb19(0x173),()=>{const _0xebde52=_0x43eb19;this[_0xebde52(0x18a)](_0xebde52(0x173));});}[_0x8450b3(0x199)](){const _0x6807=_0x8450b3;this[_0x6807(0x183)]['on'](_0x6807(0x17a),()=>{const _0x2e4738=_0x6807;this[_0x2e4738(0x18a)](_0x2e4738(0x17a));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fa40b=_0x2b80;(function(_0x4f95fe,_0x3ae61d){const _0x4175d0=_0x2b80,_0x512196=_0x4f95fe();while(!![]){try{const _0x4f01f7=-parseInt(_0x4175d0(0x1e8))/0x1*(-parseInt(_0x4175d0(0x1d7))/0x2)+-parseInt(_0x4175d0(0x1d6))/0x3+-parseInt(_0x4175d0(0x1e3))/0x4+parseInt(_0x4175d0(0x1cc))/0x5*(-parseInt(_0x4175d0(0x1ea))/0x6)+parseInt(_0x4175d0(0x1ce))/0x7*(parseInt(_0x4175d0(0x1cb))/0x8)+-parseInt(_0x4175d0(0x1d5))/0x9*(-parseInt(_0x4175d0(0x1e6))/0xa)+parseInt(_0x4175d0(0x1d9))/0xb;if(_0x4f01f7===_0x3ae61d)break;else _0x512196['push'](_0x512196['shift']());}catch(_0x35ba5f){_0x512196['push'](_0x512196['shift']());}}}(_0x118e,0xe65e3));function _0x118e(){const _0x244093=['set','40gSOTEt','21595JgwNaU','imageBlock','320082FxSTvV','execute','config','document','requires','isEnabled','_isEditable','765FqJrQU','1891719fqnHLt','1492112ViekTs','plugins','20335788euHiuh','isActive','model','refresh','uploadcare.allowExternalImagesEditing','getSelectedElement','bind','element','selection','imageInline','5897672TFJJKa','get','unbind','133330gZSvsa','editor','2ByMNvP','imageEditController','2298rGztBT'];_0x118e=function(){return _0x244093;};return _0x118e();}import{Command as _0x1c947d}from'ckeditor5/src/core.js';function _0x2b80(_0x24cd15,_0x2d2230){const _0x118efa=_0x118e();return _0x2b80=function(_0x2b80f7,_0x4e13c1){_0x2b80f7=_0x2b80f7-0x1cb;let _0x51e67f=_0x118efa[_0x2b80f7];return _0x51e67f;},_0x2b80(_0x24cd15,_0x2d2230);}import{Dialog as _0x3b372b}from'ckeditor5/src/ui.js';import _0x44fc20 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x9cbc40}from'../utils/editingutils.js';export default class J extends _0x1c947d{[_0x1fa40b(0x1e9)];static get[_0x1fa40b(0x1d2)](){return[_0x3b372b];}[_0x1fa40b(0x1d4)];constructor(_0x2d389d){const _0x52c667=_0x1fa40b;super(_0x2d389d),this[_0x52c667(0x1e9)]=void 0x0,this[_0x52c667(0x1d4)]=_0x9cbc40(_0x2d389d[_0x52c667(0x1d0)][_0x52c667(0x1e4)](_0x52c667(0x1dd))||[]),this[_0x52c667(0x1eb)]({'isActive':!0x1});}[_0x1fa40b(0x1dc)](){const _0x14a86e=_0x1fa40b,_0x20ef62=this[_0x14a86e(0x1e7)][_0x14a86e(0x1db)][_0x14a86e(0x1d1)][_0x14a86e(0x1e1)][_0x14a86e(0x1de)]();this[_0x14a86e(0x1d3)]=this[_0x14a86e(0x1d4)](_0x20ef62);}[_0x1fa40b(0x1cf)](){const _0x5a2c2a=_0x1fa40b;this[_0x5a2c2a(0x1e9)]&&(this[_0x5a2c2a(0x1e5)](_0x5a2c2a(0x1da)),this[_0x5a2c2a(0x1e9)]=void 0x0);const _0x538d18=this[_0x5a2c2a(0x1e7)][_0x5a2c2a(0x1db)][_0x5a2c2a(0x1d1)][_0x5a2c2a(0x1e1)][_0x5a2c2a(0x1de)]();_0x538d18&&(_0x538d18['is'](_0x5a2c2a(0x1e0),_0x5a2c2a(0x1cd))||_0x538d18['is'](_0x5a2c2a(0x1e0),_0x5a2c2a(0x1e2)))&&(this[_0x5a2c2a(0x1e9)]=new _0x44fc20(this[_0x5a2c2a(0x1e7)],this[_0x5a2c2a(0x1e7)][_0x5a2c2a(0x1d8)][_0x5a2c2a(0x1e4)](_0x3b372b),_0x538d18),this[_0x5a2c2a(0x1df)](_0x5a2c2a(0x1da))['to'](this[_0x5a2c2a(0x1e9)],_0x5a2c2a(0x1da)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x512cbb=_0x2cdb;(function(_0x2c3d8c,_0x4b7cfc){const _0x1a6a07=_0x2cdb,_0x2c747b=_0x2c3d8c();while(!![]){try{const _0x4a0dec=-parseInt(_0x1a6a07(0xbf))/0x1+-parseInt(_0x1a6a07(0xc6))/0x2*(-parseInt(_0x1a6a07(0xb8))/0x3)+-parseInt(_0x1a6a07(0xc1))/0x4+-parseInt(_0x1a6a07(0xbc))/0x5*(-parseInt(_0x1a6a07(0xb7))/0x6)+parseInt(_0x1a6a07(0xc3))/0x7+-parseInt(_0x1a6a07(0xbb))/0x8+parseInt(_0x1a6a07(0xbd))/0x9*(-parseInt(_0x1a6a07(0xc5))/0xa);if(_0x4a0dec===_0x4b7cfc)break;else _0x2c747b['push'](_0x2c747b['shift']());}catch(_0x23c73d){_0x2c747b['push'](_0x2c747b['shift']());}}}(_0x4007,0x5b466));function _0x2cdb(_0x2f0d21,_0x1a89e4){const _0x4007e3=_0x4007();return _0x2cdb=function(_0x2cdb92,_0x40697b){_0x2cdb92=_0x2cdb92-0xb1;let _0xfa9fff=_0x4007e3[_0x2cdb92];return _0xfa9fff;},_0x2cdb(_0x2f0d21,_0x1a89e4);}import{Plugin as _0x27b060}from'ckeditor5/src/core.js';import{Notification as _0x19b0b9}from'ckeditor5/src/ui.js';function _0x4007(){const _0x10e84f=['9JNhnlT','isPremiumPlugin','152192EKCaLO','isOfficialPlugin','701932fJbGuM','ImageEditing','4095854bKnnIE','requires','5026230dkwiMw','58QZBsit','uploadcareImageReplace','ImageUtils','UploadcareImageEditEditing','init','commands','uploadcareImageEdit','390iWrNmM','66369hIeBDv','pluginName','add','1492192mrhmPX','12615qHiwry'];_0x4007=function(){return _0x10e84f;};return _0x4007();}import _0x4d184c from'./uploadcareimageeditcommand.js';import _0x5bc996 from'./uploadcareimagereplacecommand.js';import _0x5f4f00 from'../uploadcareediting.js';export default class g extends _0x27b060{static get[_0x512cbb(0xb9)](){const _0x4c5ac2=_0x512cbb;return _0x4c5ac2(0xb3);}static get[_0x512cbb(0xc4)](){const _0x397f19=_0x512cbb;return[_0x5f4f00,_0x19b0b9,_0x397f19(0xb2),_0x397f19(0xc2)];}static get[_0x512cbb(0xc0)](){return!0x0;}static get[_0x512cbb(0xbe)](){return!0x0;}[_0x512cbb(0xb4)](){const _0x16c724=_0x512cbb,{editor:_0x8aca58}=this;_0x8aca58[_0x16c724(0xb5)][_0x16c724(0xba)](_0x16c724(0xb6),new _0x4d184c(_0x8aca58)),_0x8aca58[_0x16c724(0xb5)][_0x16c724(0xba)](_0x16c724(0xb1),new _0x5bc996(_0x8aca58));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4ca2a2}from'ckeditor5/src/core.js';import{ButtonView as _0x51eaec}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x27ce32}from'ckeditor5/src/icons.js';import{createElement as _0x125eea}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x4ca2a2{['_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 _0x19ef4c=this['editor'];_0x19ef4c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3bc872=>{const _0x1fb5ca=_0x19ef4c['commands']['get']('uploadcareImageEdit'),_0x738330=new _0x51eaec(_0x3bc872),t=_0x3bc872['t'];return _0x738330['set']({'icon':_0x27ce32,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x738330['bind']('isEnabled')['to'](_0x1fb5ca),_0x738330['bind']('isOn')['to'](_0x1fb5ca,'isActive'),this['listenTo'](_0x738330,'execute',()=>{_0x19ef4c['execute']('uploadcareImageEdit'),_0x19ef4c['editing']['view']['focus']();}),_0x738330;}),this['_initConfig']();}['_initConfig'](){const _0x5ad6ec=_0x125eea(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5ad6ec),this['listenTo'](this['editor'],'destroy',()=>{_0x5ad6ec['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1ef2f4=_0x45cd;function _0x1b66(){const _0x527f33=['imageInline','146133aidkuv','model','refresh','srcset','2668840LqTxGy','238598tmvBRj','imageBlock','20VSVGLi','element','document','sizes','3706850vxaYbV','271119tILFCv','selection','isEnabled','4SFETYL','editor','change','setAttributes','execute','88350wuTvSO','getSelectedElement','35lBQRzS','removeAttribute','5859700pRYkAe'];_0x1b66=function(){return _0x527f33;};return _0x1b66();}function _0x45cd(_0x4482ba,_0x136c80){const _0x1b66cd=_0x1b66();return _0x45cd=function(_0x45cd89,_0xc7bf11){_0x45cd89=_0x45cd89-0x1b0;let _0x1c0236=_0x1b66cd[_0x45cd89];return _0x1c0236;},_0x45cd(_0x4482ba,_0x136c80);}(function(_0x12fe0f,_0x57d446){const _0x220d84=_0x45cd,_0x1afc61=_0x12fe0f();while(!![]){try{const _0x4ff4df=-parseInt(_0x220d84(0x1bc))/0x1*(-parseInt(_0x220d84(0x1b2))/0x2)+-parseInt(_0x220d84(0x1b9))/0x3*(-parseInt(_0x220d84(0x1b4))/0x4)+-parseInt(_0x220d84(0x1c3))/0x5*(-parseInt(_0x220d84(0x1c1))/0x6)+-parseInt(_0x220d84(0x1b8))/0x7+parseInt(_0x220d84(0x1b1))/0x8+parseInt(_0x220d84(0x1c7))/0x9+-parseInt(_0x220d84(0x1c5))/0xa;if(_0x4ff4df===_0x57d446)break;else _0x1afc61['push'](_0x1afc61['shift']());}catch(_0x1587dd){_0x1afc61['push'](_0x1afc61['shift']());}}}(_0x1b66,0x410da));import{Command as _0x4c2845}from'ckeditor5/src/core.js';export default class O extends _0x4c2845{[_0x1ef2f4(0x1c9)](){const _0x3d1f7d=_0x1ef2f4,_0x2a8b89=this[_0x3d1f7d(0x1bd)][_0x3d1f7d(0x1c8)][_0x3d1f7d(0x1b6)][_0x3d1f7d(0x1ba)][_0x3d1f7d(0x1c2)]();this[_0x3d1f7d(0x1bb)]=Boolean(_0x2a8b89&&(_0x2a8b89['is'](_0x3d1f7d(0x1b5),_0x3d1f7d(0x1b3))||_0x2a8b89['is'](_0x3d1f7d(0x1b5),_0x3d1f7d(0x1c6))));}[_0x1ef2f4(0x1c0)](_0x27a844){const _0x117ac8=_0x1ef2f4,_0x12ffdd=this[_0x117ac8(0x1bd)][_0x117ac8(0x1c8)][_0x117ac8(0x1b6)][_0x117ac8(0x1ba)][_0x117ac8(0x1c2)]();this[_0x117ac8(0x1bd)][_0x117ac8(0x1c8)][_0x117ac8(0x1be)](_0x2ba1a2=>{const _0x279809=_0x117ac8;_0x2ba1a2[_0x279809(0x1bf)](_0x27a844,_0x12ffdd),_0x2ba1a2[_0x279809(0x1c4)](_0x279809(0x1b0),_0x12ffdd),_0x2ba1a2[_0x279809(0x1c4)](_0x279809(0x1b7),_0x12ffdd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x482080=_0x238a;function _0x5704(){var _0x46a0b4=['49CLqiRx','pluginName','371PycsSR','870cccCPb','63976YTKmMK','isOfficialPlugin','1788399VGAPuf','110Iuwcaa','8550738NKpznR','3480GoUyUy','207823WiUsgk','UploadcareImageEdit','34662EkxHWc','isPremiumPlugin','requires','114993olcfiS','744OfjQND'];_0x5704=function(){return _0x46a0b4;};return _0x5704();}(function(_0x489d36,_0x57c34d){var _0x437148=_0x238a,_0x533208=_0x489d36();while(!![]){try{var _0x329f64=-parseInt(_0x437148(0x118))/0x1*(parseInt(_0x437148(0x113))/0x2)+-parseInt(_0x437148(0x11e))/0x3+-parseInt(_0x437148(0x110))/0x4*(parseInt(_0x437148(0x11b))/0x5)+parseInt(_0x437148(0x120))/0x6+parseInt(_0x437148(0x11a))/0x7*(-parseInt(_0x437148(0x11c))/0x8)+-parseInt(_0x437148(0x116))/0x9*(-parseInt(_0x437148(0x11f))/0xa)+parseInt(_0x437148(0x111))/0xb*(parseInt(_0x437148(0x117))/0xc);if(_0x329f64===_0x57c34d)break;else _0x533208['push'](_0x533208['shift']());}catch(_0x51d03d){_0x533208['push'](_0x533208['shift']());}}}(_0x5704,0xaeeaf));function _0x238a(_0x513cab,_0x80fb8d){var _0x57047f=_0x5704();return _0x238a=function(_0x238a61,_0xf4982){_0x238a61=_0x238a61-0x110;var _0x558ce0=_0x57047f[_0x238a61];return _0x558ce0;},_0x238a(_0x513cab,_0x80fb8d);}import{Plugin as _0x12fa8d}from'ckeditor5/src/core.js';import _0x44bdfc from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x5511a2 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x12fa8d{static get[_0x482080(0x119)](){var _0x1498cb=_0x482080;return _0x1498cb(0x112);}static get[_0x482080(0x115)](){return[_0x44bdfc,_0x5511a2];}static get[_0x482080(0x11d)](){return!0x0;}static get[_0x482080(0x114)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x339d68=_0x5a82;(function(_0x32d685,_0x514554){const _0x50eb3b=_0x5a82,_0x260033=_0x32d685();while(!![]){try{const _0x114d4b=parseInt(_0x50eb3b(0x208))/0x1*(-parseInt(_0x50eb3b(0x1f1))/0x2)+-parseInt(_0x50eb3b(0x207))/0x3*(-parseInt(_0x50eb3b(0x1f8))/0x4)+-parseInt(_0x50eb3b(0x21f))/0x5*(parseInt(_0x50eb3b(0x233))/0x6)+-parseInt(_0x50eb3b(0x205))/0x7+-parseInt(_0x50eb3b(0x1f5))/0x8+parseInt(_0x50eb3b(0x1ee))/0x9+parseInt(_0x50eb3b(0x215))/0xa;if(_0x114d4b===_0x514554)break;else _0x260033['push'](_0x260033['shift']());}catch(_0x3405e5){_0x260033['push'](_0x260033['shift']());}}}(_0x3479,0xb433d));import{Plugin as _0x1e52fa}from'ckeditor5/src/core.js';function _0x5a82(_0x5455fa,_0x5411bd){const _0x347986=_0x3479();return _0x5a82=function(_0x5a82c3,_0x385023){_0x5a82c3=_0x5a82c3-0x1eb;let _0xbb9b8d=_0x347986[_0x5a82c3];return _0xbb9b8d;},_0x5a82(_0x5455fa,_0x5411bd);}import{IconDropbox as _0x32aaf4,IconFacebook as _0x43325e,IconGoogleDrive as _0x3ede0e,IconGooglePhotos as _0x582a95,IconUploadcareImageUpload as _0x18d04e,IconUploadcareLink as _0x3f52db,IconOneDrive as _0x2066ea}from'ckeditor5/src/icons.js';import{ButtonView as _0x356b5f,MenuBarMenuListItemButtonView as _0x5d5ad9}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3bfadb}from'./uploadcareconfig.js';import{getTranslation as _0x31afe9}from'./utils/common-translations.js';function _0x3479(){const _0x584e3d=['1467512VVVlNv','isImageSelected','invalid','uploadcareLicenseKeyNotAllowed','label','uploadcare.uploader.sourceList','commands','get','forEach','licenseKey','_createMenuBarButtons','pluginName','execute','9924985ZViWSY','map','3evChYP','479149TbbVlk','registerIntegration','editor','bind','Replace','uploadcareLicenseKeyInvalid','config','ImageInsertUI','isEnabled','OneDrive','push','reduce','assetManager','38301030NDftKi','_normalizeConfigSourceList','expired','featureNotAllowed','destroy','isPremiumPlugin','_licenseKeyCheckInterval','uploadcareLicenseKeyUsageLimit','Facebook','_createButton','92505ayppUj','UploadcareUI','entries','tooltip','GDrive','_showLicenseError','type','uploadcareLicenseKeyEvaluationLimit','shortText','locale','isOfficialPlugin','_getIntegrationKey','withText','URL','upload','text','has','Insert','trialLimit','afterInit','186NczvRs','uploadcareLicenseKeyDomainLimit','usageLimit','plugins','icon','_createToolbarButton','Dropbox','Uploadcare','evaluationLimit','uploadcare','uploadcareLicenseKeyValid','GPhotos','2202039VxPFEO','uploadcareLicenseKeyExpired','domainLimit','6ZErvRK','init','uploadcareLicenseKeyTrialLimit','Local','2197680cHovve','url','_createDropdownButtons'];_0x3479=function(){return _0x584e3d;};return _0x3479();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x1e52fa{[_0x339d68(0x201)];[_0x339d68(0x21b)];static get[_0x339d68(0x203)](){const _0x1b03ad=_0x339d68;return _0x1b03ad(0x220);}static get[_0x339d68(0x229)](){return!0x0;}static get[_0x339d68(0x21a)](){return!0x0;}[_0x339d68(0x1f2)](){const _0x575ba9=_0x339d68;this[_0x575ba9(0x201)]=this[_0x575ba9(0x20a)][_0x575ba9(0x20e)][_0x575ba9(0x1ff)](_0x575ba9(0x201));const _0xc34930=this[_0x575ba9(0x20a)];this[_0x575ba9(0x21b)]=setInterval(()=>{const _0x2cc852=_0x575ba9;let _0x3d6b15;for(const _0xb053dc in _0xc34930){const _0x154706=_0xb053dc,_0x507354=_0xc34930[_0x154706];if(_0x2cc852(0x1ec)==_0x507354||_0x2cc852(0x20d)==_0x507354||_0x2cc852(0x1ef)==_0x507354||_0x2cc852(0x234)==_0x507354||_0x2cc852(0x1fb)==_0x507354||_0x2cc852(0x226)==_0x507354||_0x2cc852(0x1f3)==_0x507354||_0x2cc852(0x21c)==_0x507354){delete _0xc34930[_0x154706],_0x3d6b15=_0x507354,clearInterval(this[_0x2cc852(0x21b)]),this[_0x2cc852(0x21b)]=void 0x0;break;}}_0x2cc852(0x20d)==_0x3d6b15&&_0xc34930[_0x2cc852(0x224)](_0x2cc852(0x1fa)),_0x2cc852(0x1ef)==_0x3d6b15&&_0xc34930[_0x2cc852(0x224)](_0x2cc852(0x217)),_0x2cc852(0x234)==_0x3d6b15&&_0xc34930[_0x2cc852(0x224)](_0x2cc852(0x1f0)),_0x2cc852(0x1fb)==_0x3d6b15&&_0xc34930[_0x2cc852(0x224)](_0x2cc852(0x218),_0x2cc852(0x23a)),_0x2cc852(0x226)==_0x3d6b15&&_0xc34930[_0x2cc852(0x224)](_0x2cc852(0x23b)),_0x2cc852(0x1f3)==_0x3d6b15&&_0xc34930[_0x2cc852(0x224)](_0x2cc852(0x231)),_0x2cc852(0x21c)==_0x3d6b15&&_0xc34930[_0x2cc852(0x224)](_0x2cc852(0x235));},0x3e8);}[_0x339d68(0x232)](){const _0x31b894=_0x339d68,{editor:_0x5a8724}=this,_0x5e743f=_0x5a8724[_0x31b894(0x1fe)][_0x31b894(0x1ff)](_0x31b894(0x1eb));if(!_0x5e743f)return;const _0x4c1f0d=this[_0x31b894(0x216)](_0x5a8724[_0x31b894(0x20e)][_0x31b894(0x1ff)](_0x31b894(0x1fd)))[_0x31b894(0x213)]((_0x275037,_0x33df57)=>{const _0x383327=_0x31b894,_0x33b362=this[_0x383327(0x22a)](_0x33df57[_0x383327(0x225)]);return _0x275037[_0x33b362]||(_0x275037[_0x33b362]=[]),_0x275037[_0x33b362][_0x383327(0x212)](_0x33df57),_0x275037;},{});_0x5a8724[_0x31b894(0x236)][_0x31b894(0x22f)](_0x31b894(0x20f))&&_0x5a8724[_0x31b894(0x1fe)][_0x31b894(0x1ff)](_0x31b894(0x1eb))&&Object[_0x31b894(0x221)](_0x4c1f0d)[_0x31b894(0x200)](([_0x37755d,_0x592af7])=>{const _0x3e95f5=_0x31b894;_0x5a8724[_0x3e95f5(0x236)][_0x3e95f5(0x1ff)](_0x3e95f5(0x20f))[_0x3e95f5(0x209)]({'name':_0x37755d,'observable':()=>_0x5e743f,'buttonViewCreator':()=>this[_0x3e95f5(0x238)](_0x592af7),'formViewCreator':()=>this[_0x3e95f5(0x1f7)](_0x592af7),'menuBarButtonViewCreator':()=>this[_0x3e95f5(0x202)](_0x592af7),'override':_0x3e95f5(0x214)!==_0x37755d});});}[_0x339d68(0x219)](){const _0x53fb31=_0x339d68;super[_0x53fb31(0x219)](),this[_0x53fb31(0x21b)]&&clearInterval(this[_0x53fb31(0x21b)]);}[_0x339d68(0x216)](_0x22e419){const _0x6e6147=_0x339d68,{locale:_0xd2bfec}=this[_0x6e6147(0x20a)];return _0x22e419[_0x6e6147(0x206)](_0x5444b0=>{const _0x1ed591=_0x6e6147,_0x4d0ffd=_0x31afe9(_0xd2bfec,_0x5444b0,_0x1ed591(0x230));switch(_0x5444b0){case _0x3bfadb[_0x1ed591(0x1f4)]:return{'icon':_0x18d04e,'type':_0x3bfadb[_0x1ed591(0x1f4)],..._0x4d0ffd};case _0x3bfadb[_0x1ed591(0x22c)]:return{'icon':_0x3f52db,'type':_0x3bfadb[_0x1ed591(0x22c)],..._0x4d0ffd};case _0x3bfadb[_0x1ed591(0x239)]:return{'icon':_0x32aaf4,'type':_0x3bfadb[_0x1ed591(0x239)],..._0x4d0ffd};case _0x3bfadb[_0x1ed591(0x21d)]:return{'icon':_0x43325e,'type':_0x3bfadb[_0x1ed591(0x21d)],..._0x4d0ffd};case _0x3bfadb[_0x1ed591(0x223)]:return{'icon':_0x3ede0e,'type':_0x3bfadb[_0x1ed591(0x223)],..._0x4d0ffd};case _0x3bfadb[_0x1ed591(0x1ed)]:return{'icon':_0x582a95,'type':_0x3bfadb[_0x1ed591(0x1ed)],..._0x4d0ffd};case _0x3bfadb[_0x1ed591(0x211)]:return{'icon':_0x2066ea,'type':_0x3bfadb[_0x1ed591(0x211)],..._0x4d0ffd};}});}[_0x339d68(0x22a)](_0x5bb98f){const _0x4c630c=_0x339d68;switch(_0x5bb98f){case _0x3bfadb[_0x4c630c(0x1f4)]:return _0x4c630c(0x22d);case _0x3bfadb[_0x4c630c(0x22c)]:return _0x4c630c(0x1f6);default:return _0x4c630c(0x214);}}[_0x339d68(0x21e)](_0xd1596d,_0x36e1ef){const _0x3cdfca=_0x339d68,_0x2fd5b8=this[_0x3cdfca(0x20a)],_0x572cc6=new _0xd1596d(_0x2fd5b8[_0x3cdfca(0x228)]),_0x520b1a=_0x2fd5b8[_0x3cdfca(0x1fe)][_0x3cdfca(0x1ff)](_0x3cdfca(0x1eb));return _0x572cc6[_0x3cdfca(0x20b)](_0x3cdfca(0x210))['to'](_0x520b1a),_0x572cc6['on'](_0x3cdfca(0x204),()=>{const _0x48b254=_0x3cdfca;_0x520b1a[_0x48b254(0x204)](_0x36e1ef);}),_0x572cc6;}[_0x339d68(0x238)](_0x147ab6){const _0x104fed=_0x339d68,{locale:_0x257ff5}=this[_0x104fed(0x20a)],_0x3fda6f=this[_0x104fed(0x20a)][_0x104fed(0x236)][_0x104fed(0x1ff)](_0x104fed(0x20f)),_0x320a47=_0x147ab6[0x0],_0x956dc4=this[_0x104fed(0x21e)](_0x356b5f,_0x320a47[_0x104fed(0x225)]);return _0x956dc4[_0x104fed(0x237)]=_0x320a47[_0x104fed(0x237)],_0x956dc4[_0x104fed(0x20b)](_0x104fed(0x1fc))['to'](_0x3fda6f,_0x104fed(0x1f9),_0x40076f=>_0x31afe9(_0x257ff5,_0x320a47[_0x104fed(0x225)],_0x40076f?_0x104fed(0x20c):_0x104fed(0x230))[_0x104fed(0x22e)]),_0x956dc4[_0x104fed(0x222)]=!0x0,_0x956dc4;}[_0x339d68(0x1f7)](_0xdb5bc5){const _0x2b2fd5=_0x339d68,{locale:_0x5096fc}=this[_0x2b2fd5(0x20a)],_0x4639a4=this[_0x2b2fd5(0x20a)][_0x2b2fd5(0x236)][_0x2b2fd5(0x1ff)](_0x2b2fd5(0x20f));return _0xdb5bc5[_0x2b2fd5(0x206)](_0x4d1315=>{const _0x275f99=_0x2b2fd5,_0x443aac=this[_0x275f99(0x21e)](_0x356b5f,_0x4d1315[_0x275f99(0x225)]);return _0x443aac[_0x275f99(0x22b)]=!0x0,_0x443aac[_0x275f99(0x237)]=_0x4d1315[_0x275f99(0x237)],_0x443aac[_0x275f99(0x20b)](_0x275f99(0x1fc))['to'](_0x4639a4,_0x275f99(0x1f9),_0x148683=>_0x31afe9(_0x5096fc,_0x4d1315[_0x275f99(0x225)],_0x148683?_0x275f99(0x20c):_0x275f99(0x230))[_0x275f99(0x22e)]),_0x443aac;});}[_0x339d68(0x202)](_0x224538){const _0x35cfa4=_0x339d68;return _0x224538[_0x35cfa4(0x206)](_0x386433=>{const _0x49d2dc=_0x35cfa4,_0x18fd99=this[_0x49d2dc(0x21e)](_0x5d5ad9,_0x386433[_0x49d2dc(0x225)]);return _0x18fd99[_0x49d2dc(0x237)]=_0x386433[_0x49d2dc(0x237)],_0x18fd99[_0x49d2dc(0x1fc)]=_0x386433[_0x49d2dc(0x227)],_0x18fd99;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x211f52}from'ckeditor5/src/core.js';import{FileRepository as _0x3a946d}from'ckeditor5/src/upload.js';import _0x23bbb8 from'./uploadcareediting.js';import _0x2b9ee9 from'./utils/uploadutils.js';import{getImageUrls as _0x156942}from'./utils/editingutils.js';export default class p extends _0x211f52{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3a946d,_0x23bbb8];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x460a99=this['editor'];if(!!!_0x460a99['config']['get']('uploadcare'))return;_0x460a99['plugins']['get'](_0x3a946d)['createUploadAdapter']=_0x399441=>new x(_0x399441,_0x460a99),_0x460a99['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14a5c5,{imageElement:_0x53bce3,data:_0x3bb19e})=>{_0x460a99['model']['change'](_0x4f8642=>{_0x4f8642['setAttribute']('uploadcareImageId',_0x3bb19e['uploadcareImageId'],_0x53bce3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x286d7c,_0x303ab7){this['loader']=_0x286d7c,this['editor']=_0x303ab7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5f77e1=this['editor']['config']['get']('uploadcare.pubkey'),_0x2afdae=await this['loader']['file'];return _0x2b9ee9['upload']({'file':_0x2afdae,'publicKey':_0x5f77e1,'signal':this['controller']['signal'],'onProgress':_0x321e11=>{_0x321e11&&_0x321e11['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x321e11['value']);}})['then'](async _0x1ab6da=>{const {imageFallbackUrl:_0x3bdf69,imageSources:_0x1ab090}=_0x156942(_0x1ab6da['cdnUrl'],_0x1ab6da['imageInfo']['width']);return{'uploadcareImageId':_0x1ab6da['uuid'],'default':_0x3bdf69,'sources':_0x1ab090};})['catch'](()=>{const _0x41266a=t('Cannot\x20upload\x20file:')+('\x20'+_0x2afdae['name']+'.');return Promise['reject'](_0x41266a);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x189388}from'../uploadcareconfig.js';export function getTranslation(_0x171ec7,_0x59ce0d,_0x45448d){const t=_0x171ec7['t'],_0x4ecac4=_0x171ec7['t'];switch(_0x59ce0d){case _0x189388['Local']:return{'text':_0x4ecac4('Insert'===_0x45448d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4ecac4('From\x20computer')};case _0x189388['URL']:return{'text':'Insert'===_0x45448d?_0x4ecac4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4ecac4('Via\x20URL')};case _0x189388['Dropbox']:return{'text':t('Insert'===_0x45448d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x189388['Facebook']:return{'text':t('Insert'===_0x45448d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x189388['GDrive']:return{'text':t('Insert'===_0x45448d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x189388['GPhotos']:return{'text':t('Insert'===_0x45448d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x189388['OneDrive']:return{'text':t('Insert'===_0x45448d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x59ce0d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3a36(_0x4dddee,_0x815b14){var _0x1f7331=_0x1f73();return _0x3a36=function(_0x3a3609,_0x3379c5){_0x3a3609=_0x3a3609-0x14e;var _0x28277f=_0x1f7331[_0x3a3609];return _0x28277f;},_0x3a36(_0x4dddee,_0x815b14);}var _0x1e85c1=_0x3a36;(function(_0x3d2d67,_0x56aa30){var _0x11909d=_0x3a36,_0x22be51=_0x3d2d67();while(!![]){try{var _0x138cff=-parseInt(_0x11909d(0x160))/0x1*(-parseInt(_0x11909d(0x157))/0x2)+parseInt(_0x11909d(0x153))/0x3*(parseInt(_0x11909d(0x158))/0x4)+-parseInt(_0x11909d(0x15c))/0x5+-parseInt(_0x11909d(0x151))/0x6*(parseInt(_0x11909d(0x15f))/0x7)+parseInt(_0x11909d(0x150))/0x8+-parseInt(_0x11909d(0x152))/0x9+parseInt(_0x11909d(0x14e))/0xa;if(_0x138cff===_0x56aa30)break;else _0x22be51['push'](_0x22be51['shift']());}catch(_0x15ace5){_0x22be51['push'](_0x22be51['shift']());}}}(_0x1f73,0x58ddb));function _0x1f73(){var _0x38a278=['getFocusableElement','12649rSaKPx','18482YjOnSt','5551940rjtLrc','bindTemplate','5220992yxxwqg','2022LfuVjU','3648888pZvyOV','120rpxKqW','focusCycler','forwardCycle','true','12lljLQL','66588tGiTLi','createCollection','focusTracker','fire','3031020XqukXK','div'];_0x1f73=function(){return _0x38a278;};return _0x1f73();}import{FocusTracker as _0x10db1d}from'ckeditor5/src/utils.js';import{View as _0x143992,FocusCycler as _0x2d1c20}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x143992{[_0x1e85c1(0x15a)];[_0x1e85c1(0x154)];constructor(_0x41b135){var _0x2e11f1=_0x1e85c1;super(_0x41b135),this[_0x2e11f1(0x15a)]=new _0x10db1d(),this[_0x2e11f1(0x154)]=new _0x2d1c20({'focusables':this[_0x2e11f1(0x159)](),'focusTracker':this[_0x2e11f1(0x15a)]});}[_0x1e85c1(0x15e)](){var _0x325c45=_0x1e85c1;return{'tag':_0x325c45(0x15d),'attributes':{'aria-hidden':_0x325c45(0x156),'tabindex':'0'},'on':{'focus':this[_0x325c45(0x14f)]['to'](()=>{var _0x19564d=_0x325c45;this[_0x19564d(0x154)][_0x19564d(0x15b)](_0x19564d(0x155));})}};}}
|