@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250922.0 → 0.0.0-nightly-20250923.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 _0x55bd(){const _0x5b8011=['_initImageProcessingIndicator','execute','downcast','elementToAttribute','ctxElement','contentLanguage','config','isPremiumPlugin','uploadcareImageId','uploadcare','afterInit','93783HIRkaL','map','upcast','getAttribute','PictureEditing','imageBlock','_initConfig','uc-config','uploadcare.uploader','listenTo','editor','requires','replaceImageSource','remove','6GAqajh','closeMax','true','689nOciYL','data-uc-image-id','_configElement','_initCtx','getSelectedElement','selection','1632XmuSgF','extend','_initSchema','3883584wZIKsA','uc-upload-ctx-provider','insertImage','document','commands','fromCharCode','_ctxElement','#uc-icon-arrow-down','editing','input[uploadcare-file-input]','removeAttribute','for','conversion','querySelector','cleanupImage','destroy','init','attributeToAttribute','imageInline','2193728bvKJHs','schema','add','iconHrefResolver','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploadcare.pubkey','ucContextId','model','uploader-','body','_initConversion','render','view','join','once','pluginName','16186086THrHnQ','appendChild','get','3492685EhXhif','configElement','uploadcareImageReplace','UploadcareEditing','isOfficialPlugin','isRegistered','locale','href','1830965KSGnaQ'];_0x55bd=function(){return _0x5b8011;};return _0x55bd();}const _0x5b72c6=_0x1427;function _0x1427(_0x523512,_0x4b22cd){const _0x55bde2=_0x55bd();return _0x1427=function(_0x1427ad,_0x5ce525){_0x1427ad=_0x1427ad-0xce;let _0x43931b=_0x55bde2[_0x1427ad];return _0x43931b;},_0x1427(_0x523512,_0x4b22cd);}(function(_0x5942c0,_0x6ba0b1){const _0x1590f6=_0x1427,_0x2cea24=_0x5942c0();while(!![]){try{const _0xd1f6dc=-parseInt(_0x1590f6(0xf6))/0x1*(parseInt(_0x1590f6(0xfc))/0x2)+-parseInt(_0x1590f6(0xe5))/0x3+-parseInt(_0x1590f6(0x112))/0x4+parseInt(_0x1590f6(0xd9))/0x5*(-parseInt(_0x1590f6(0xf3))/0x6)+parseInt(_0x1590f6(0xd1))/0x7+-parseInt(_0x1590f6(0xff))/0x8+parseInt(_0x1590f6(0xce))/0x9;if(_0xd1f6dc===_0x6ba0b1)break;else _0x2cea24['push'](_0x2cea24['shift']());}catch(_0x58cc90){_0x2cea24['push'](_0x2cea24['shift']());}}}(_0x55bd,0x4a2eb));import{Plugin as _0x70e65e}from'ckeditor5/src/core.js';import{Dialog as _0x5aadf2}from'ckeditor5/src/ui.js';import{createElement as _0x35a106,global as _0x3075b5,uid as _0x15ef42}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x197496}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x392ff9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5278f9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x70e65e{[_0x5b72c6(0xf8)]=null;[_0x5b72c6(0x105)]=null;static get[_0x5b72c6(0x121)](){const _0x394d91=_0x5b72c6;return _0x394d91(0xd4);}static get[_0x5b72c6(0xf0)](){const _0x19dab7=_0x5b72c6;return[_0x19dab7(0xe9),_0x392ff9,_0x5aadf2];}static get[_0x5b72c6(0xd5)](){return!0x0;}static get[_0x5b72c6(0xe1)](){return!0x0;}[_0x5b72c6(0x118)];get[_0x5b72c6(0xd2)](){const _0x5f2372=_0x5b72c6;return this[_0x5f2372(0xf8)];}get[_0x5b72c6(0xde)](){const _0x595415=_0x5b72c6;return this[_0x595415(0x105)];}constructor(_0x5308ac){const _0x479cc8=_0x5b72c6;super(_0x5308ac),this[_0x479cc8(0x118)]=_0x15ef42();}[_0x5b72c6(0x10f)](){const _0x1fda0d=_0x5b72c6,_0xd89a87=this[_0x1fda0d(0xef)];_0xd89a87[_0x1fda0d(0x103)][_0x1fda0d(0x114)](_0x1fda0d(0xe3),new _0x197496(_0xd89a87));}[_0x5b72c6(0xe4)](){const _0x5cb2c9=_0x5b72c6;this[_0x5cb2c9(0xfe)](),this[_0x5cb2c9(0x11c)](),this[_0x5cb2c9(0xeb)](),this[_0x5cb2c9(0xf9)](),this[_0x5cb2c9(0xda)](),this[_0x5cb2c9(0xee)](this[_0x5cb2c9(0xef)],_0x5cb2c9(0x10e),()=>{const _0x188798=_0x5cb2c9;this[_0x188798(0xf8)]&&(this[_0x188798(0xf8)][_0x188798(0xf2)](),this[_0x188798(0xf8)]=null),this[_0x188798(0x105)]&&(this[_0x188798(0x105)][_0x188798(0xf2)](),this[_0x188798(0x105)]=null);const _0x5075f5=_0x3075b5[_0x188798(0x102)][_0x188798(0x10c)](_0x188798(0x108));_0x5075f5&&_0x5075f5[_0x188798(0xf2)]();}),async function(_0x15874c){const _0x2393c6=_0x24aaf3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x226379=0x3d8d0df,_0x25fca3=0x3dfa4c7^_0x226379,_0xcdcf86=window[_0x24aaf3([0x44,0x61,0x74,0x65])][_0x24aaf3([0x6e,0x6f,0x77])](),_0x4073be=_0x15874c[_0x24aaf3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f8aee=new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3672=>{_0x4073be[_0x24aaf3([0x6f,0x6e,0x63,0x65])](_0x24aaf3([0x72,0x65,0x61,0x64,0x79]),_0x5f3672);}),_0x485507={[_0x24aaf3([0x6b,0x74,0x79])]:_0x24aaf3([0x45,0x43]),[_0x24aaf3([0x75,0x73,0x65])]:_0x24aaf3([0x73,0x69,0x67]),[_0x24aaf3([0x63,0x72,0x76])]:_0x24aaf3([0x50,0x2d,0x32,0x35,0x36]),[_0x24aaf3([0x78])]:_0x24aaf3([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]),[_0x24aaf3([0x79])]:_0x24aaf3([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]),[_0x24aaf3([0x61,0x6c,0x67])]:_0x24aaf3([0x45,0x53,0x32,0x35,0x36])},_0x97a453=_0x4073be[_0x24aaf3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24aaf3([0x67,0x65,0x74])](_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24d445(){let _0x41c24d,_0x43db28=null,_0x164291=null;try{if(_0x97a453==_0x24aaf3([0x47,0x50,0x4c]))return _0x24aaf3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41c24d=_0x27e8a1(),!_0x41c24d)return _0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41c24d[_0x24aaf3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x164291=_0x4a7ae6(_0x41c24d[_0x24aaf3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41c24d[_0x24aaf3([0x6a,0x74,0x69])])),await _0x4e1155()?_0x3fb801()?_0x231658()?_0x24aaf3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dcd2a()?(_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24aaf3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43db28=_0x165ec1(_0x24aaf3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24aaf3([0x74,0x72,0x69,0x61,0x6c])&&(_0x43db28=_0x165ec1(_0x24aaf3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x278c59()):_0x24aaf3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24aaf3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x231658(){const _0x1271bb=[_0x24aaf3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24aaf3([0x74,0x72,0x69,0x61,0x6c])][_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcdcf86/0x3e8:0xe10*_0x25fca3;return _0x41c24d[_0x24aaf3([0x65,0x78,0x70])]<_0x1271bb;}function _0x3fb801(){const _0x2d17a1=_0x41c24d[_0x24aaf3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d17a1&&(!!_0x2d17a1[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x2a]))||!!_0x2d17a1[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x55,0x50,0x4c,0x43])));}function _0x2dcd2a(){const _0x1c5ea1=_0x1427,_0x508d18=_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x508d18||0x0==_0x508d18[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e97c7}=new URL(window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c5ea1(0xd8)]);if(_0x508d18[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e97c7))return!0x0;const _0x4c7dd6=_0x5e97c7[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e]));return _0x508d18[_0x24aaf3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dc217=>_0x5dc217[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x2a])))[_0x24aaf3([0x6d,0x61,0x70])](_0x2c2474=>_0x2c2474[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e])))[_0x24aaf3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a10a1=>_0x5a10a1[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c7dd6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24aaf3([0x6d,0x61,0x70])](_0x33c544=>Array(_0x4c7dd6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33c544[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24aaf3([0x66,0x69,0x6c,0x6c])](_0x33c544[0x0]===_0x24aaf3([0x2a])?_0x24aaf3([0x2a]):'')[_0x24aaf3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33c544))[_0x24aaf3([0x73,0x6f,0x6d,0x65])](_0x2aa0a3=>_0x4c7dd6[_0x24aaf3([0x65,0x76,0x65,0x72,0x79])]((_0x59fb41,_0x3b6542)=>_0x2aa0a3[_0x3b6542]===_0x59fb41||_0x2aa0a3[_0x3b6542]===_0x24aaf3([0x2a])));}function _0x278c59(){return _0x43db28&&_0x164291?new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x496958,_0x18ff72)=>{_0x43db28[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x496958,_0x18ff72),_0x164291[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0xd807cd=>{_0xd807cd!=_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])&&_0x496958(_0xd807cd);},_0x18ff72);}):_0x43db28||_0x164291||_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a7ae6(_0x5ee1f0,_0x3e88d8){return new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x490e10=>{if(_0x49095f())return _0x490e10(_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]));_0x5e8835(),_0x4073be[_0x24aaf3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ca900=!0x1;const _0xcbafe8=_0x15ef42();function _0x2058ed(_0x2dbfd7){return!!_0x2dbfd7&&(typeof _0x2dbfd7===_0x24aaf3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2dbfd7===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2dbfd7[_0x24aaf3([0x74,0x68,0x65,0x6e])]===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2dbfd7[_0x24aaf3([0x63,0x61,0x74,0x63,0x68])]===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cd513(_0x26df0c){_0x1cd49e(_0x26df0c)[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x49df8f=>{if(!_0x49df8f||_0x49df8f[_0x24aaf3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24aaf3([0x6f,0x6b]))return _0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa8fca3(_0x291d8a(_0xcbafe8+_0x3e88d8))!=_0x49df8f[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]);})[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x1e8449=>(_0x5cfd12(),_0x1e8449),()=>{const _0x3fe200=_0x2e5ed2();return null==_0x3fe200?(_0x5cfd12(),_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])):_0x24aaf3(_0xcdcf86-_0x3fe200>(0x27d454df^_0x226379)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x490e10)[_0x24aaf3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d5909=0x3ee3e5f^_0x226379;function _0x5cfd12(){const _0x4d86c5=_0x24aaf3([0x6c,0x6c,0x63,0x74,0x2d])+_0xa8fca3(_0x291d8a(_0x5ee1f0)),_0x107f3f=_0x300625(_0xa8fca3(window[_0x24aaf3([0x4d,0x61,0x74,0x68])][_0x24aaf3([0x63,0x65,0x69,0x6c])](_0xcdcf86/_0x3d5909)));window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24aaf3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d86c5,_0x107f3f);}function _0x2e5ed2(){const _0x8347e7=_0x24aaf3([0x6c,0x6c,0x63,0x74,0x2d])+_0xa8fca3(_0x291d8a(_0x5ee1f0)),_0x4a42e7=window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24aaf3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8347e7);return _0x4a42e7?window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x300625(_0x4a42e7),0x10)*_0x3d5909:null;}function _0x1cd49e(_0x2beb12){return new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4101d9,_0x26bca2)=>{_0x2beb12[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x4101d9,_0x26bca2),window[_0x24aaf3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26bca2,0x3d9041f^_0x226379);});}}_0x4073be[_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x357390,_0x2acb04)=>{if(_0x2acb04[0x0]!=_0x5ee1f0)return _0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2acb04[0x1]={..._0x2acb04[0x1],[_0x24aaf3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xcbafe8};},{[_0x24aaf3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24aaf3([0x68,0x69,0x67,0x68])}),_0x4073be[_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44dd28=>{_0x2058ed(_0x44dd28[_0x24aaf3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ca900=!0x0,_0x5cd513(_0x44dd28[_0x24aaf3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24aaf3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24aaf3([0x6c,0x6f,0x77])}),_0x2f8aee[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>{_0x1ca900||_0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49095f(){return _0x4073be[_0x24aaf3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24aaf3([0x76,0x69,0x65,0x77])][_0x24aaf3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24aaf3([0x61,0x75,0x74,0x6f]);}function _0x5e8835(){_0x4073be[_0x24aaf3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24aaf3([0x76,0x69,0x65,0x77])][_0x24aaf3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24aaf3([0x61,0x75,0x74,0x6f]);}}function _0x165ec1(_0x1491ef){const _0x2100da=[new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c3ffa=>setTimeout(_0x2c3ffa,0x3d1ee13^_0x226379)),_0x2f8aee[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x293aad=>{let _0x1fdce9=0x0;_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50f78b,_0x1bf084)=>{_0x1bf084[0x0][_0x24aaf3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fdce9++,_0x1fdce9==(0x3d8d127^_0x226379)&&(_0x293aad(),_0x50f78b[_0x24aaf3([0x6f,0x66,0x66])]());});}))];return window[_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24aaf3([0x72,0x61,0x63,0x65])](_0x2100da)[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>_0x1491ef);}async function _0x50f693(){await _0x2f8aee,_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2094f7,_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2094f7,_0x4073be[_0x24aaf3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fb309(_0xcba2f2){const _0x557261=_0x3f2aa0();_0x4073be[_0x557261]=_0x24aaf3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xcba2f2,_0xcba2f2!=_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])&&_0x50f693();}function _0x3f2aa0(){const _0x26ee88=window[_0x24aaf3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24aaf3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24aaf3([0x6e,0x6f,0x77])]())[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24aaf3([0x2e]),'');let _0x45ba2e=_0x24aaf3([0x52]);for(let _0x5559e7=0x0;_0x5559e7<_0x26ee88[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5559e7+=0x2){let _0x3ace51=window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26ee88[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5559e7,_0x5559e7+0x2));_0x3ace51>=_0x2393c6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ace51-=_0x2393c6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45ba2e+=_0x2393c6[_0x3ace51];}return _0x45ba2e;}function _0x27e8a1(){const _0xbecb69=_0x97a453[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e]));if(0x3!=_0xbecb69[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ea47c(_0xbecb69[0x1]);function _0x3ea47c(_0x54c53d){const _0x5d3432=_0x15dd0e(_0x54c53d);return _0x5d3432&&_0x2e4628()?_0x5d3432:null;function _0x2e4628(){const _0x5e0748=_0x5d3432[_0x24aaf3([0x6a,0x74,0x69])],_0x2f8a9a=window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e0748[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e0748[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fcb33={..._0x5d3432,[_0x24aaf3([0x6a,0x74,0x69])]:_0x5e0748[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e0748[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fcb33[_0x24aaf3([0x76,0x63])],_0x291d8a(_0x4fcb33)==_0x2f8a9a;}}}async function _0x4e1155(){let _0x3e259d=!0x0;try{const _0x60e36c=_0x97a453[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e])),[_0x327ce3,_0x2d605e,_0x10fef6]=_0x60e36c;return _0x2c18f0(_0x327ce3),await _0x47f97d(_0x327ce3,_0x2d605e,_0x10fef6),_0x3e259d;}catch{return!0x1;}function _0x2c18f0(_0x294c61){const _0x2c8f35=_0x15dd0e(_0x294c61);_0x2c8f35&&_0x2c8f35[_0x24aaf3([0x61,0x6c,0x67])]==_0x24aaf3([0x45,0x53,0x32,0x35,0x36])||(_0x3e259d=!0x1);}async function _0x47f97d(_0x379d5f,_0x3b5cfc,_0x1b7eba){const _0x42563b=window[_0x24aaf3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24aaf3([0x66,0x72,0x6f,0x6d])](_0x6b24cd(_0x1b7eba),_0x238a5c=>_0x238a5c[_0x24aaf3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x458a5d=new window[(_0x24aaf3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24aaf3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x379d5f+_0x24aaf3([0x2e])+_0x3b5cfc),_0x2443ee=window[_0x24aaf3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24aaf3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2443ee)return;const _0x3d9544=await _0x2443ee[_0x24aaf3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24aaf3([0x6a,0x77,0x6b]),_0x485507,{[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x45,0x43,0x44,0x53,0x41]),[_0x24aaf3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24aaf3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2443ee[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x45,0x43,0x44,0x53,0x41]),[_0x24aaf3([0x68,0x61,0x73,0x68])]:{[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d9544,_0x42563b,_0x458a5d)||(_0x3e259d=!0x1);}}function _0x15dd0e(_0x211119){return _0x211119[_0x24aaf3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24aaf3([0x65,0x79]))?JSON[_0x24aaf3([0x70,0x61,0x72,0x73,0x65])](_0x6b24cd(_0x211119)):null;}function _0x6b24cd(_0x26d2d5){return window[_0x24aaf3([0x61,0x74,0x6f,0x62])](_0x26d2d5[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24aaf3([0x2b]))[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24aaf3([0x2f])));}function _0x291d8a(_0x4cb64f){let _0x21771c=0x1505;function _0x185526(_0x88ac4a){for(let _0x44bbe6=0x0;_0x44bbe6<_0x88ac4a[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44bbe6++){const _0x56de3d=_0x88ac4a[_0x24aaf3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44bbe6);_0x21771c=(_0x21771c<<0x5)+_0x21771c+_0x56de3d,_0x21771c&=_0x21771c;}}function _0x527e48(_0x1abab2){Array[_0x24aaf3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1abab2)?_0x1abab2[_0x24aaf3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x527e48):_0x1abab2&&typeof _0x1abab2==_0x24aaf3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24aaf3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1abab2)[_0x24aaf3([0x73,0x6f,0x72,0x74])]()[_0x24aaf3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f8703,_0x2ad2ac])=>{_0x185526(_0x4f8703),_0x527e48(_0x2ad2ac);}):_0x185526(window[_0x24aaf3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1abab2));}return _0x527e48(_0x4cb64f),_0x21771c>>>0x0;}function _0xa8fca3(_0x1ba081){return _0x1ba081[_0x24aaf3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24aaf3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24aaf3([0x30]));}function _0x300625(_0x5501a1){return _0x5501a1[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24aaf3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24aaf3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2094f7(){}function _0x24aaf3(_0x2e95f6){const _0x5ee1da=_0x1427;return _0x2e95f6[_0x5ee1da(0xe6)](_0x5b6ca9=>String[_0x5ee1da(0x104)](_0x5b6ca9))[_0x5ee1da(0x11f)]('');}_0x4fb309(await _0x24d445());}(this);}[_0x5b72c6(0xfe)](){const _0x3826c6=_0x5b72c6,_0x107228=this[_0x3826c6(0xef)][_0x3826c6(0x119)][_0x3826c6(0x113)];_0x107228[_0x3826c6(0xd6)](_0x3826c6(0xea))&&_0x107228[_0x3826c6(0xfd)](_0x3826c6(0xea),{'allowAttributes':[_0x3826c6(0xe2)]}),_0x107228[_0x3826c6(0xd6)](_0x3826c6(0x111))&&_0x107228[_0x3826c6(0xfd)](_0x3826c6(0x111),{'allowAttributes':[_0x3826c6(0xe2)]});}[_0x5b72c6(0x11c)](){const _0x1cc1cc=_0x5b72c6,_0x1c3fd4=this[_0x1cc1cc(0xef)];_0x1c3fd4[_0x1cc1cc(0x10b)][_0x1cc1cc(0x10a)](_0x1cc1cc(0xdc))[_0x1cc1cc(0x110)]({'model':_0x1cc1cc(0xe2),'view':_0x1cc1cc(0xf7)}),_0x1c3fd4[_0x1cc1cc(0x10b)][_0x1cc1cc(0x10a)](_0x1cc1cc(0xe7))[_0x1cc1cc(0xdd)]({'model':{'key':_0x1cc1cc(0xe2),'value':_0x1d2dfa=>_0x1d2dfa[_0x1cc1cc(0xe8)](_0x1cc1cc(0xf7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf3dcf1=_0x1c3fd4[_0x1cc1cc(0x103)][_0x1cc1cc(0xd0)](_0x1cc1cc(0xf1));_0xf3dcf1&&this[_0x1cc1cc(0xee)](_0xf3dcf1,_0x1cc1cc(0x10d),(_0x5d767f,[_0x535a78,_0x479e84])=>{const _0x443901=_0x1cc1cc;_0x535a78[_0x443901(0x109)](_0x443901(0xe2),_0x479e84);});}[_0x5b72c6(0xeb)](){const _0x2f939c=_0x5b72c6,_0x17f045=this[_0x2f939c(0xef)][_0x2f939c(0xe0)][_0x2f939c(0xd0)](_0x2f939c(0xed))||{},_0x2cd5d1=this[_0x2f939c(0xef)][_0x2f939c(0xe0)][_0x2f939c(0xd0)](_0x2f939c(0x117))||'';this[_0x2f939c(0xf8)]=_0x35a106(_0x3075b5[_0x2f939c(0x102)],_0x2f939c(0xec),{..._0x17f045,'pubkey':_0x2cd5d1,'ctx-name':_0x2f939c(0x11a)+this[_0x2f939c(0x118)],'sourceList':'','imgOnly':_0x2f939c(0xf5),'removeCopyright':_0x2f939c(0xf5),'localeName':this[_0x2f939c(0xef)][_0x2f939c(0xd7)][_0x2f939c(0xdf)],'externalSourcesEmbedCss':_0x2f939c(0x116)}),this[_0x2f939c(0xf8)][_0x2f939c(0x115)]=_0x4bdd23=>{const _0x4306c2=_0x2f939c;if(_0x4306c2(0xf4)==_0x4bdd23)return _0x4306c2(0x106);},_0x3075b5[_0x2f939c(0x102)][_0x2f939c(0x11b)][_0x2f939c(0xcf)](this[_0x2f939c(0xf8)]);}[_0x5b72c6(0xf9)](){const _0x402975=_0x5b72c6;this[_0x402975(0x105)]=_0x35a106(_0x3075b5[_0x402975(0x102)],_0x402975(0x100),{'ctx-name':_0x402975(0x11a)+this[_0x402975(0x118)]}),_0x3075b5[_0x402975(0x102)][_0x402975(0x11b)][_0x402975(0xcf)](this[_0x402975(0x105)]);}[_0x5b72c6(0xda)](){const _0x4bb6f6=_0x5b72c6,_0x16e3e6=this[_0x4bb6f6(0xef)][_0x4bb6f6(0x103)][_0x4bb6f6(0xd0)](_0x4bb6f6(0x101));_0x16e3e6&&this[_0x4bb6f6(0xee)](_0x16e3e6,_0x4bb6f6(0xdb),()=>{const _0x15d505=_0x4bb6f6,_0x45df9c=this[_0x15d505(0xef)][_0x15d505(0x119)][_0x15d505(0x102)][_0x15d505(0xfb)][_0x15d505(0xfa)]();_0x45df9c&&_0x45df9c[_0x15d505(0xe8)](_0x15d505(0xe2))&&this[_0x15d505(0xef)][_0x15d505(0x107)][_0x15d505(0x11e)][_0x15d505(0x120)](_0x15d505(0x11d),()=>{const _0x86fa10=_0x15d505;_0x5278f9(this[_0x86fa10(0xef)],_0x45df9c);});});const _0x159032=this[_0x4bb6f6(0xef)][_0x4bb6f6(0x103)][_0x4bb6f6(0xd0)](_0x4bb6f6(0xd3));_0x159032&&this[_0x4bb6f6(0xee)](_0x159032,_0x4bb6f6(0xdb),()=>{const _0x16cfd0=_0x4bb6f6,_0x47f6f0=this[_0x16cfd0(0xef)][_0x16cfd0(0x119)][_0x16cfd0(0x102)][_0x16cfd0(0xfb)][_0x16cfd0(0xfa)]();_0x47f6f0&&_0x47f6f0[_0x16cfd0(0xe8)](_0x16cfd0(0xe2))&&this[_0x16cfd0(0xef)][_0x16cfd0(0x107)][_0x16cfd0(0x11e)][_0x16cfd0(0x120)](_0x16cfd0(0x11d),()=>{const _0x121ff9=_0x16cfd0;_0x5278f9(this[_0x121ff9(0xef)],_0x47f6f0);});});}}
|
|
23
|
+
const _0x14da24=_0x1fba;(function(_0x36fc8d,_0x316df9){const _0x116a43=_0x1fba,_0x1479b2=_0x36fc8d();while(!![]){try{const _0x5760fa=-parseInt(_0x116a43(0x143))/0x1*(parseInt(_0x116a43(0x165))/0x2)+parseInt(_0x116a43(0x133))/0x3+-parseInt(_0x116a43(0x146))/0x4*(-parseInt(_0x116a43(0x153))/0x5)+parseInt(_0x116a43(0x145))/0x6*(-parseInt(_0x116a43(0x177))/0x7)+parseInt(_0x116a43(0x136))/0x8*(-parseInt(_0x116a43(0x16d))/0x9)+parseInt(_0x116a43(0x14c))/0xa*(parseInt(_0x116a43(0x124))/0xb)+parseInt(_0x116a43(0x178))/0xc*(parseInt(_0x116a43(0x135))/0xd);if(_0x5760fa===_0x316df9)break;else _0x1479b2['push'](_0x1479b2['shift']());}catch(_0xeacf7e){_0x1479b2['push'](_0x1479b2['shift']());}}}(_0x13a6,0xb0a9b));import{Plugin as _0x3c2504}from'ckeditor5/src/core.js';function _0x1fba(_0x22b583,_0x54a817){const _0x13a68c=_0x13a6();return _0x1fba=function(_0x1fba38,_0x37ad01){_0x1fba38=_0x1fba38-0x121;let _0x1c95c5=_0x13a68c[_0x1fba38];return _0x1c95c5;},_0x1fba(_0x22b583,_0x54a817);}function _0x13a6(){const _0x57184e=['configElement','editor','47901VSrgSo','4122348rrGiXJ','attributeToAttribute','commands','pluginName','26774hNCzcu','view','document','uploadcare','get','_ctxElement','href','execute','getAttribute','appendChild','replaceImageSource','requires','ucContextId','_initCtx','removeAttribute','855441GTbsbE','locale','91GBTEqb','11434152MWpiLd','uploader-','body','_initImageProcessingIndicator','PictureEditing','init','insertImage','editing','isOfficialPlugin','remove','_initConfig','afterInit','UploadcareEditing','47TgtctW','cleanupImage','1122BenehL','4192FviMLM','selection','isPremiumPlugin','config','conversion','fromCharCode','2770tKtGRz','uploadcare.pubkey','uc-upload-ctx-provider','listenTo','render','#uc-icon-arrow-down','iconHrefResolver','5765eohPRP','true','closeMax','extend','_initConversion','getSelectedElement','imageInline','_initSchema','input[uploadcare-file-input]','isRegistered','map','upcast','destroy','_configElement','data-uc-image-id','querySelector','uc-config','imageBlock','48506eoxPtc','uploadcareImageId','ctxElement','for','elementToAttribute','\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','uploadcareImageReplace','uploadcare.uploader','9ntEhBj','model','downcast','join','schema','once','add','contentLanguage'];_0x13a6=function(){return _0x57184e;};return _0x13a6();}import{Dialog as _0x41be37}from'ckeditor5/src/ui.js';import{createElement as _0x5f276b,global as _0x42b23b,uid as _0x5de18c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x552be5}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1f3f0a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x22a83f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3c2504{[_0x14da24(0x160)]=null;[_0x14da24(0x129)]=null;static get[_0x14da24(0x123)](){const _0x2baf7c=_0x14da24;return _0x2baf7c(0x142);}static get[_0x14da24(0x12f)](){const _0x3b6baa=_0x14da24;return[_0x3b6baa(0x13a),_0x1f3f0a,_0x41be37];}static get[_0x14da24(0x13e)](){return!0x0;}static get[_0x14da24(0x148)](){return!0x0;}[_0x14da24(0x130)];get[_0x14da24(0x175)](){const _0x255154=_0x14da24;return this[_0x255154(0x160)];}get[_0x14da24(0x167)](){const _0x1550b0=_0x14da24;return this[_0x1550b0(0x129)];}constructor(_0x3af9ad){const _0x3f1f60=_0x14da24;super(_0x3af9ad),this[_0x3f1f60(0x130)]=_0x5de18c();}[_0x14da24(0x13b)](){const _0x403818=_0x14da24,_0x37000b=this[_0x403818(0x176)];_0x37000b[_0x403818(0x122)][_0x403818(0x173)](_0x403818(0x127),new _0x552be5(_0x37000b));}[_0x14da24(0x141)](){const _0x1437b3=_0x14da24;this[_0x1437b3(0x15a)](),this[_0x1437b3(0x157)](),this[_0x1437b3(0x140)](),this[_0x1437b3(0x131)](),this[_0x1437b3(0x139)](),this[_0x1437b3(0x14f)](this[_0x1437b3(0x176)],_0x1437b3(0x15f),()=>{const _0x51c834=_0x1437b3;this[_0x51c834(0x160)]&&(this[_0x51c834(0x160)][_0x51c834(0x13f)](),this[_0x51c834(0x160)]=null),this[_0x51c834(0x129)]&&(this[_0x51c834(0x129)][_0x51c834(0x13f)](),this[_0x51c834(0x129)]=null);const _0xb97978=_0x42b23b[_0x51c834(0x126)][_0x51c834(0x162)](_0x51c834(0x15b));_0xb97978&&_0xb97978[_0x51c834(0x13f)]();}),async function(_0x52e295){const _0x191b40=_0x30b84f([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x480e7a=0x3d8d0df,_0xfa6470=0x3dfa4ef^_0x480e7a,_0x34b68b=window[_0x30b84f([0x44,0x61,0x74,0x65])][_0x30b84f([0x6e,0x6f,0x77])](),_0x28cf18=_0x52e295[_0x30b84f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe58631=new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x629238=>{_0x28cf18[_0x30b84f([0x6f,0x6e,0x63,0x65])](_0x30b84f([0x72,0x65,0x61,0x64,0x79]),_0x629238);}),_0x6334b0={[_0x30b84f([0x6b,0x74,0x79])]:_0x30b84f([0x45,0x43]),[_0x30b84f([0x75,0x73,0x65])]:_0x30b84f([0x73,0x69,0x67]),[_0x30b84f([0x63,0x72,0x76])]:_0x30b84f([0x50,0x2d,0x32,0x35,0x36]),[_0x30b84f([0x78])]:_0x30b84f([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]),[_0x30b84f([0x79])]:_0x30b84f([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]),[_0x30b84f([0x61,0x6c,0x67])]:_0x30b84f([0x45,0x53,0x32,0x35,0x36])},_0x4d6dd5=_0x28cf18[_0x30b84f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30b84f([0x67,0x65,0x74])](_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58174e(){let _0x3a64b7,_0xd4fcb0=null,_0xf7481e=null;try{if(_0x4d6dd5==_0x30b84f([0x47,0x50,0x4c]))return _0x30b84f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a64b7=_0x3fae04(),!_0x3a64b7)return _0x30b84f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a64b7[_0x30b84f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf7481e=_0x53fdc4(_0x3a64b7[_0x30b84f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a64b7[_0x30b84f([0x6a,0x74,0x69])])),await _0x7a242f()?_0x2b709b()?_0x2e0a78()?_0x30b84f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53004f()?(_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b84f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd4fcb0=_0x5e323c(_0x30b84f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b84f([0x74,0x72,0x69,0x61,0x6c])&&(_0xd4fcb0=_0x5e323c(_0x30b84f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x439c14()):_0x30b84f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30b84f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30b84f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30b84f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e0a78(){const _0x6d8908=[_0x30b84f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30b84f([0x74,0x72,0x69,0x61,0x6c])][_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34b68b/0x3e8:0xe10*_0xfa6470;return _0x3a64b7[_0x30b84f([0x65,0x78,0x70])]<_0x6d8908;}function _0x2b709b(){const _0xcf8bcc=_0x3a64b7[_0x30b84f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xcf8bcc&&(!!_0xcf8bcc[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b84f([0x2a]))||!!_0xcf8bcc[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b84f([0x55,0x50,0x4c,0x43])));}function _0x53004f(){const _0x352011=_0x1fba,_0x490397=_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x490397||0x0==_0x490397[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f9890}=new URL(window[_0x30b84f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x352011(0x12a)]);if(_0x490397[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f9890))return!0x0;const _0x37642d=_0x1f9890[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e]));return _0x490397[_0x30b84f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50dec2=>_0x50dec2[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b84f([0x2a])))[_0x30b84f([0x6d,0x61,0x70])](_0x400fd8=>_0x400fd8[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e])))[_0x30b84f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58b3a4=>_0x58b3a4[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37642d[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30b84f([0x6d,0x61,0x70])](_0x5d43fd=>Array(_0x37642d[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d43fd[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30b84f([0x66,0x69,0x6c,0x6c])](_0x5d43fd[0x0]===_0x30b84f([0x2a])?_0x30b84f([0x2a]):'')[_0x30b84f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d43fd))[_0x30b84f([0x73,0x6f,0x6d,0x65])](_0x443e18=>_0x37642d[_0x30b84f([0x65,0x76,0x65,0x72,0x79])]((_0x14c3b2,_0x10bbce)=>_0x443e18[_0x10bbce]===_0x14c3b2||_0x443e18[_0x10bbce]===_0x30b84f([0x2a])));}function _0x439c14(){return _0xd4fcb0&&_0xf7481e?new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42f387,_0x2847bd)=>{_0xd4fcb0[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x42f387,_0x2847bd),_0xf7481e[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x33fd91=>{_0x33fd91!=_0x30b84f([0x56,0x61,0x6c,0x69,0x64])&&_0x42f387(_0x33fd91);},_0x2847bd);}):_0xd4fcb0||_0xf7481e||_0x30b84f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53fdc4(_0x164c83,_0x50261c){return new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546ba5=>{if(_0x3beefe())return _0x546ba5(_0x30b84f([0x56,0x61,0x6c,0x69,0x64]));_0x26c442(),_0x28cf18[_0x30b84f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30b84f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43c760=!0x1;const _0x2d8253=_0x5de18c();function _0x2c0ea5(_0x5535c2){return!!_0x5535c2&&(typeof _0x5535c2===_0x30b84f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5535c2===_0x30b84f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5535c2[_0x30b84f([0x74,0x68,0x65,0x6e])]===_0x30b84f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5535c2[_0x30b84f([0x63,0x61,0x74,0x63,0x68])]===_0x30b84f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x180dde(_0x722a60){_0x5fb88b(_0x722a60)[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x31eb1d=>{if(!_0x31eb1d||_0x31eb1d[_0x30b84f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30b84f([0x6f,0x6b]))return _0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e728f(_0xf6b1cb(_0x2d8253+_0x50261c))!=_0x31eb1d[_0x30b84f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30b84f([0x56,0x61,0x6c,0x69,0x64]);})[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x1f6509=>(_0x4ba3c3(),_0x1f6509),()=>{const _0x449372=_0x55bdaa();return null==_0x449372?(_0x4ba3c3(),_0x30b84f([0x56,0x61,0x6c,0x69,0x64])):_0x30b84f(_0x34b68b-_0x449372>(0x27d454df^_0x480e7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x546ba5)[_0x30b84f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x546ba5(_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13394a=0x3ee3e5f^_0x480e7a;function _0x4ba3c3(){const _0xd1819c=_0x30b84f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e728f(_0xf6b1cb(_0x164c83)),_0x54c179=_0x2ef47d(_0x5e728f(window[_0x30b84f([0x4d,0x61,0x74,0x68])][_0x30b84f([0x63,0x65,0x69,0x6c])](_0x34b68b/_0x13394a)));window[_0x30b84f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b84f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd1819c,_0x54c179);}function _0x55bdaa(){const _0x96c4e1=_0x30b84f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e728f(_0xf6b1cb(_0x164c83)),_0x2df32b=window[_0x30b84f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b84f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x96c4e1);return _0x2df32b?window[_0x30b84f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ef47d(_0x2df32b),0x10)*_0x13394a:null;}function _0x5fb88b(_0x5c3359){return new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xceee64,_0x1e3eec)=>{_0x5c3359[_0x30b84f([0x74,0x68,0x65,0x6e])](_0xceee64,_0x1e3eec),window[_0x30b84f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e3eec,0x3d9041f^_0x480e7a);});}}_0x28cf18[_0x30b84f([0x6f,0x6e])](_0x30b84f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3337dd,_0x11d0d3)=>{if(_0x11d0d3[0x0]!=_0x164c83)return _0x546ba5(_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11d0d3[0x1]={..._0x11d0d3[0x1],[_0x30b84f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d8253};},{[_0x30b84f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b84f([0x68,0x69,0x67,0x68])}),_0x28cf18[_0x30b84f([0x6f,0x6e])](_0x30b84f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x362982=>{_0x2c0ea5(_0x362982[_0x30b84f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43c760=!0x0,_0x180dde(_0x362982[_0x30b84f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30b84f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b84f([0x6c,0x6f,0x77])}),_0xe58631[_0x30b84f([0x74,0x68,0x65,0x6e])](()=>{_0x43c760||_0x546ba5(_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3beefe(){return _0x28cf18[_0x30b84f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b84f([0x76,0x69,0x65,0x77])][_0x30b84f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30b84f([0x61,0x75,0x74,0x6f]);}function _0x26c442(){_0x28cf18[_0x30b84f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b84f([0x76,0x69,0x65,0x77])][_0x30b84f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30b84f([0x61,0x75,0x74,0x6f]);}}function _0x5e323c(_0x38a1b4){const _0x2f7350=[new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb4a5c=>setTimeout(_0xb4a5c,0x3d1ee13^_0x480e7a)),_0xe58631[_0x30b84f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24520c=>{let _0x546750=0x0;_0x28cf18[_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b84f([0x6f,0x6e])](_0x30b84f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5aa93b,_0xaef0b7)=>{_0xaef0b7[0x0][_0x30b84f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x546750++,_0x546750==(0x3d8d127^_0x480e7a)&&(_0x24520c(),_0x5aa93b[_0x30b84f([0x6f,0x66,0x66])]());});}))];return window[_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30b84f([0x72,0x61,0x63,0x65])](_0x2f7350)[_0x30b84f([0x74,0x68,0x65,0x6e])](()=>_0x38a1b4);}async function _0x3ba8b2(){await _0xe58631,_0x28cf18[_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b84f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43adf8,_0x28cf18[_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b84f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43adf8,_0x28cf18[_0x30b84f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8e9ee1(_0x3c9e09){const _0x7faa57=_0x296019();_0x28cf18[_0x7faa57]=_0x30b84f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c9e09,_0x3c9e09!=_0x30b84f([0x56,0x61,0x6c,0x69,0x64])&&_0x3ba8b2();}function _0x296019(){const _0x3b3234=window[_0x30b84f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30b84f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30b84f([0x6e,0x6f,0x77])]())[_0x30b84f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30b84f([0x2e]),'');let _0x4f1fa6=_0x30b84f([0x52]);for(let _0x50d770=0x0;_0x50d770<_0x3b3234[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50d770+=0x2){let _0x82e61=window[_0x30b84f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b3234[_0x30b84f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50d770,_0x50d770+0x2));_0x82e61>=_0x191b40[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x82e61-=_0x191b40[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f1fa6+=_0x191b40[_0x82e61];}return _0x4f1fa6;}function _0x3fae04(){const _0x9a7319=_0x4d6dd5[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e]));if(0x3!=_0x9a7319[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22f334(_0x9a7319[0x1]);function _0x22f334(_0x2c976e){const _0x798b7f=_0x26bf82(_0x2c976e);return _0x798b7f&&_0x4aa29a()?_0x798b7f:null;function _0x4aa29a(){const _0x7aaa15=_0x798b7f[_0x30b84f([0x6a,0x74,0x69])],_0x3905cb=window[_0x30b84f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7aaa15[_0x30b84f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7aaa15[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40e53c={..._0x798b7f,[_0x30b84f([0x6a,0x74,0x69])]:_0x7aaa15[_0x30b84f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7aaa15[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40e53c[_0x30b84f([0x76,0x63])],_0xf6b1cb(_0x40e53c)==_0x3905cb;}}}async function _0x7a242f(){let _0x5b7df6=!0x0;try{const _0x3bd005=_0x4d6dd5[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e])),[_0x2d5b9a,_0x1c1ae7,_0x1086e8]=_0x3bd005;return _0x2c38d3(_0x2d5b9a),await _0x544f86(_0x2d5b9a,_0x1c1ae7,_0x1086e8),_0x5b7df6;}catch{return!0x1;}function _0x2c38d3(_0x27fed2){const _0x251253=_0x26bf82(_0x27fed2);_0x251253&&_0x251253[_0x30b84f([0x61,0x6c,0x67])]==_0x30b84f([0x45,0x53,0x32,0x35,0x36])||(_0x5b7df6=!0x1);}async function _0x544f86(_0x4628fc,_0x397de5,_0x198ab2){const _0x313a77=window[_0x30b84f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30b84f([0x66,0x72,0x6f,0x6d])](_0x5d5b13(_0x198ab2),_0x453876=>_0x453876[_0x30b84f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e0573=new window[(_0x30b84f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30b84f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4628fc+_0x30b84f([0x2e])+_0x397de5),_0x27cd50=window[_0x30b84f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30b84f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27cd50)return;const _0x4b7b2e=await _0x27cd50[_0x30b84f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30b84f([0x6a,0x77,0x6b]),_0x6334b0,{[_0x30b84f([0x6e,0x61,0x6d,0x65])]:_0x30b84f([0x45,0x43,0x44,0x53,0x41]),[_0x30b84f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30b84f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30b84f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27cd50[_0x30b84f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30b84f([0x6e,0x61,0x6d,0x65])]:_0x30b84f([0x45,0x43,0x44,0x53,0x41]),[_0x30b84f([0x68,0x61,0x73,0x68])]:{[_0x30b84f([0x6e,0x61,0x6d,0x65])]:_0x30b84f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b7b2e,_0x313a77,_0x1e0573)||(_0x5b7df6=!0x1);}}function _0x26bf82(_0x161ff3){return _0x161ff3[_0x30b84f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30b84f([0x65,0x79]))?JSON[_0x30b84f([0x70,0x61,0x72,0x73,0x65])](_0x5d5b13(_0x161ff3)):null;}function _0x5d5b13(_0x4fbdb0){return window[_0x30b84f([0x61,0x74,0x6f,0x62])](_0x4fbdb0[_0x30b84f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30b84f([0x2b]))[_0x30b84f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30b84f([0x2f])));}function _0xf6b1cb(_0x85a199){let _0x1adf67=0x1505;function _0x5ed7fc(_0x2e2995){for(let _0x509110=0x0;_0x509110<_0x2e2995[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x509110++){const _0x50ef42=_0x2e2995[_0x30b84f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x509110);_0x1adf67=(_0x1adf67<<0x5)+_0x1adf67+_0x50ef42,_0x1adf67&=_0x1adf67;}}function _0x50189e(_0x3c03f5){Array[_0x30b84f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c03f5)?_0x3c03f5[_0x30b84f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50189e):_0x3c03f5&&typeof _0x3c03f5==_0x30b84f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30b84f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c03f5)[_0x30b84f([0x73,0x6f,0x72,0x74])]()[_0x30b84f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe0fe0f,_0x2001a5])=>{_0x5ed7fc(_0xe0fe0f),_0x50189e(_0x2001a5);}):_0x5ed7fc(window[_0x30b84f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c03f5));}return _0x50189e(_0x85a199),_0x1adf67>>>0x0;}function _0x5e728f(_0x3aa7f5){return _0x3aa7f5[_0x30b84f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30b84f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30b84f([0x30]));}function _0x2ef47d(_0xf987be){return _0xf987be[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30b84f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30b84f([0x6a,0x6f,0x69,0x6e])]('');}function _0x43adf8(){}function _0x30b84f(_0x4e9e1){const _0x50ea93=_0x1fba;return _0x4e9e1[_0x50ea93(0x15d)](_0xda84b7=>String[_0x50ea93(0x14b)](_0xda84b7))[_0x50ea93(0x170)]('');}_0x8e9ee1(await _0x58174e());}(this);}[_0x14da24(0x15a)](){const _0x48721c=_0x14da24,_0x46e407=this[_0x48721c(0x176)][_0x48721c(0x16e)][_0x48721c(0x171)];_0x46e407[_0x48721c(0x15c)](_0x48721c(0x164))&&_0x46e407[_0x48721c(0x156)](_0x48721c(0x164),{'allowAttributes':[_0x48721c(0x166)]}),_0x46e407[_0x48721c(0x15c)](_0x48721c(0x159))&&_0x46e407[_0x48721c(0x156)](_0x48721c(0x159),{'allowAttributes':[_0x48721c(0x166)]});}[_0x14da24(0x157)](){const _0x1e6c81=_0x14da24,_0x216861=this[_0x1e6c81(0x176)];_0x216861[_0x1e6c81(0x14a)][_0x1e6c81(0x168)](_0x1e6c81(0x16f))[_0x1e6c81(0x121)]({'model':_0x1e6c81(0x166),'view':_0x1e6c81(0x161)}),_0x216861[_0x1e6c81(0x14a)][_0x1e6c81(0x168)](_0x1e6c81(0x15e))[_0x1e6c81(0x169)]({'model':{'key':_0x1e6c81(0x166),'value':_0x591da3=>_0x591da3[_0x1e6c81(0x12c)](_0x1e6c81(0x161))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1bcb48=_0x216861[_0x1e6c81(0x122)][_0x1e6c81(0x128)](_0x1e6c81(0x12e));_0x1bcb48&&this[_0x1e6c81(0x14f)](_0x1bcb48,_0x1e6c81(0x144),(_0x589da3,[_0x1fc327,_0x30a7c0])=>{const _0x2fd9bf=_0x1e6c81;_0x1fc327[_0x2fd9bf(0x132)](_0x2fd9bf(0x166),_0x30a7c0);});}[_0x14da24(0x140)](){const _0x2fdfc8=_0x14da24,_0x558d86=this[_0x2fdfc8(0x176)][_0x2fdfc8(0x149)][_0x2fdfc8(0x128)](_0x2fdfc8(0x16c))||{},_0x5d2398=this[_0x2fdfc8(0x176)][_0x2fdfc8(0x149)][_0x2fdfc8(0x128)](_0x2fdfc8(0x14d))||'';this[_0x2fdfc8(0x160)]=_0x5f276b(_0x42b23b[_0x2fdfc8(0x126)],_0x2fdfc8(0x163),{..._0x558d86,'pubkey':_0x5d2398,'ctx-name':_0x2fdfc8(0x137)+this[_0x2fdfc8(0x130)],'sourceList':'','imgOnly':_0x2fdfc8(0x154),'removeCopyright':_0x2fdfc8(0x154),'localeName':this[_0x2fdfc8(0x176)][_0x2fdfc8(0x134)][_0x2fdfc8(0x174)],'externalSourcesEmbedCss':_0x2fdfc8(0x16a)}),this[_0x2fdfc8(0x160)][_0x2fdfc8(0x152)]=_0x8fb7b4=>{const _0xa94bbe=_0x2fdfc8;if(_0xa94bbe(0x155)==_0x8fb7b4)return _0xa94bbe(0x151);},_0x42b23b[_0x2fdfc8(0x126)][_0x2fdfc8(0x138)][_0x2fdfc8(0x12d)](this[_0x2fdfc8(0x160)]);}[_0x14da24(0x131)](){const _0x26f91d=_0x14da24;this[_0x26f91d(0x129)]=_0x5f276b(_0x42b23b[_0x26f91d(0x126)],_0x26f91d(0x14e),{'ctx-name':_0x26f91d(0x137)+this[_0x26f91d(0x130)]}),_0x42b23b[_0x26f91d(0x126)][_0x26f91d(0x138)][_0x26f91d(0x12d)](this[_0x26f91d(0x129)]);}[_0x14da24(0x139)](){const _0x2fa44b=_0x14da24,_0x3387da=this[_0x2fa44b(0x176)][_0x2fa44b(0x122)][_0x2fa44b(0x128)](_0x2fa44b(0x13c));_0x3387da&&this[_0x2fa44b(0x14f)](_0x3387da,_0x2fa44b(0x12b),()=>{const _0x197dcf=_0x2fa44b,_0x320a59=this[_0x197dcf(0x176)][_0x197dcf(0x16e)][_0x197dcf(0x126)][_0x197dcf(0x147)][_0x197dcf(0x158)]();_0x320a59&&_0x320a59[_0x197dcf(0x12c)](_0x197dcf(0x166))&&this[_0x197dcf(0x176)][_0x197dcf(0x13d)][_0x197dcf(0x125)][_0x197dcf(0x172)](_0x197dcf(0x150),()=>{const _0x26b60a=_0x197dcf;_0x22a83f(this[_0x26b60a(0x176)],_0x320a59);});});const _0x4a30ad=this[_0x2fa44b(0x176)][_0x2fa44b(0x122)][_0x2fa44b(0x128)](_0x2fa44b(0x16b));_0x4a30ad&&this[_0x2fa44b(0x14f)](_0x4a30ad,_0x2fa44b(0x12b),()=>{const _0x91e05c=_0x2fa44b,_0x518288=this[_0x91e05c(0x176)][_0x91e05c(0x16e)][_0x91e05c(0x126)][_0x91e05c(0x147)][_0x91e05c(0x158)]();_0x518288&&_0x518288[_0x91e05c(0x12c)](_0x91e05c(0x166))&&this[_0x91e05c(0x176)][_0x91e05c(0x13d)][_0x91e05c(0x125)][_0x91e05c(0x172)](_0x91e05c(0x150),()=>{const _0x245e4a=_0x91e05c;_0x22a83f(this[_0x245e4a(0x176)],_0x518288);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xb95b3e,ObservableMixin as _0x2a5818}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2e7915}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x208fb3}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3a765c}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3c8349}from'../../utils/uploadutils.js';import{getImageUrls as _0x207cde,getImageDimension as _0x25560e}from'../../utils/editingutils.js';import{isAncestor as _0x22c960}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a5818(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x524149,_0x446944,_0x3ae980){super(),this['_editor']=_0x524149,this['_dialog']=_0x446944,this['_imageElement']=_0x3ae980,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 _0x595f4f=this['_imageElement'],_0x44b016=_0x595f4f['getAttribute']('uploadcareImageId'),_0xc7dac5=_0x595f4f['getAttribute']('src');if(_0x44b016)await this['_loadImageInfo'](_0x44b016,_0xc7dac5);else{if(this['_imageCache']['has'](_0xc7dac5)){const _0x5a5809=this['_imageCache']['get'](_0xc7dac5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a5809['url'],this['imageDimension']=_0x5a5809['dimension'],this['imageId']=_0x5a5809['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x56352f}=this['_editor'],t=_0x56352f['t'],_0x4dbac1=new _0x3a765c(_0x56352f,this['imageStatus'],this['_attributes']);_0x4dbac1['bind']('status')['to'](this,'imageStatus'),_0x4dbac1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4dbac1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4dbac1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4dbac1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x208fb3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4dbac1,'position':_0x2e7915['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4dbac1['focus']();},'onHide':()=>{_0x4dbac1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2cb73e=>!_0x22c960(_0x2cb73e,_0x4dbac1['element'])}});}['_loadImageInfo'](_0x313e2b,_0x29b1dd){return _0x3c8349['getInfo'](_0x313e2b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x33be45=>{const {width:_0x38d028,height:_0x3c46d6}=_0x33be45['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29b1dd,this['imageDimension']={'width':_0x38d028,'height':_0x3c46d6},this['imageId']=_0x313e2b;})['catch'](_0x3b8e0a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b8e0a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x812ea9,_0x38983d){return this['_getImageAsFile'](_0x812ea9)['then'](_0x4a3a42=>_0x3c8349['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x38983d['signal'],'file':_0x4a3a42,'onProgress':_0x3c6b7d=>{_0x3c6b7d&&_0x3c6b7d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3c6b7d['value']));}}))['then'](_0x4bea1d=>{const {width:_0x14ad03,height:_0x596d99}=_0x4bea1d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bea1d['cdnUrl'],this['imageDimension']={'width':_0x14ad03,'height':_0x596d99},this['imageId']=_0x4bea1d['uuid'],this['imageUploadProgress']=null;const _0x11b47b=_0x812ea9['getAttribute']('src');this['_imageCache']['set'](_0x11b47b,{'id':_0x4bea1d['uuid'],'url':_0x4bea1d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x35a968=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35a968['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2ef04b,_0x2c090e){_0x2ef04b['on']('apply',(_0x291e4f,_0x23a08c)=>{this['_replaceImage'](_0x2c090e,_0x23a08c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2ef04b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2ef04b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x302bed,_0x1cd1f1,_0x1b3ca0){const _0x5c2090=this['_editor'],{width:_0x23bfff,height:_0x2f2e42}=_0x25560e(_0x1cd1f1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9efaef,imageSources:_0x10f676}=_0x207cde(_0x1cd1f1,_0x23bfff);_0x5c2090['model']['change'](_0x3ea1ff=>{if('$graveyard'===_0x302bed['root']['rootName']){_0x5c2090['execute']('insertImage',{'imageType':_0x302bed['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x302bed['getAttributes']()),'uploadcareImageId':_0x1b3ca0,'src':_0x9efaef,'sources':_0x10f676,'width':_0x23bfff,'height':_0x2f2e42}});const _0x23460f=_0x302bed['getChildren']();_0x302bed=_0x5c2090['model']['document']['selection']['getSelectedElement']();for(const _0x1e9577 of _0x23460f)_0x3ea1ff['append'](_0x3ea1ff['cloneElement'](_0x1e9577),_0x302bed);}else _0x3ea1ff['setSelection'](_0x302bed,'on'),_0x5c2090['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x302bed['getAttributes']()),'uploadcareImageId':_0x1b3ca0,'src':_0x9efaef,'sources':_0x10f676,'width':_0x23bfff,'height':_0x2f2e42},_0x302bed);_0x3ea1ff['setSelection'](_0x302bed,'on');});}async['_getImageAsFile'](_0x2c327a){const _0x20cf76=_0xb95b3e['window'],_0x2d388a=_0xb95b3e['document']['location']['href'],_0x3775b7=new _0x20cf76['URL'](_0x2c327a['getAttribute']('src'),_0x2d388a);if('data:'===_0x3775b7['protocol']){const _0x322bfc=_0x3775b7['href']['split'](','),_0x580b7f=_0x322bfc[0x0]['match'](/:(.*?);/)[0x1],_0x76bd59=_0x580b7f['split']('/')[0x1],_0x3d01c3=_0x20cf76['atob'](_0x322bfc[_0x322bfc['length']-0x1]);let _0x1893f5=_0x3d01c3['length'];const _0x5df65f=new _0x20cf76['Uint8Array'](_0x1893f5);for(;_0x1893f5--;)_0x5df65f[_0x1893f5]=_0x3d01c3['charCodeAt'](_0x1893f5);return new _0x20cf76['File']([_0x5df65f],'image.'+_0x76bd59,{'type':_0x580b7f});}const _0x43f753=_0x3775b7['href']['split']('/'),_0x1c116c=_0x43f753[_0x43f753['length']-0x1],_0x35e639=_0x1c116c['split']('.')[0x1];return _0x20cf76['fetch'](_0x3775b7['href'])['then'](_0x5d5632=>_0x5d5632['clone']()['blob']())['then'](_0x1a8739=>new _0x20cf76['File']([_0x1a8739],_0x1c116c,{'type':'image/'+_0x35e639}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1c74(){const _0x55c7d8=['uc-light','120045VVqfJP','13840GoQrsq','2EPUFsN','uc-cloud-image-editor','bindTemplate','730900PcrMhA','854LNHuID','ck-uploadcare-theme','setTemplate','1465200KkeFof','imageSrc','image-edit','set','592701kZrhdI','5zJUSZy','772566UeHgPY','4292710SATkYs'];_0x1c74=function(){return _0x55c7d8;};return _0x1c74();}(function(_0x425653,_0x2030dc){const _0x2afcf3=_0x48ce,_0x16fb25=_0x425653();while(!![]){try{const _0xe38644=parseInt(_0x2afcf3(0x1b6))/0x1+parseInt(_0x2afcf3(0x1b8))/0x2*(-parseInt(_0x2afcf3(0x1b1))/0x3)+parseInt(_0x2afcf3(0x1bb))/0x4+-parseInt(_0x2afcf3(0x1b2))/0x5*(-parseInt(_0x2afcf3(0x1b3))/0x6)+-parseInt(_0x2afcf3(0x1bc))/0x7*(-parseInt(_0x2afcf3(0x1b7))/0x8)+parseInt(_0x2afcf3(0x1bf))/0x9+-parseInt(_0x2afcf3(0x1b4))/0xa;if(_0xe38644===_0x2030dc)break;else _0x16fb25['push'](_0x16fb25['shift']());}catch(_0x54601a){_0x16fb25['push'](_0x16fb25['shift']());}}}(_0x1c74,0x2b979));function _0x48ce(_0x2ca313,_0x57ee01){const _0x1c741d=_0x1c74();return _0x48ce=function(_0x48ce49,_0x45c3e2){_0x48ce49=_0x48ce49-0x1ae;let _0x4c7fb2=_0x1c741d[_0x48ce49];return _0x4c7fb2;},_0x48ce(_0x2ca313,_0x57ee01);}import{View as _0x458798}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x458798{constructor(_0x4df6a5,_0x48694c){const _0x5c187d=_0x48ce;super(_0x4df6a5);const _0x48e644=this[_0x5c187d(0x1ba)];this[_0x5c187d(0x1b0)](_0x5c187d(0x1ae),''),this[_0x5c187d(0x1be)]({'tag':_0x5c187d(0x1b9),'attributes':{..._0x48694c,'class':[_0x5c187d(0x1b5),_0x5c187d(0x1bd)],'ctx-name':_0x5c187d(0x1af),'cdn-url':_0x48e644['to'](_0x5c187d(0x1ae))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x5f50e6}from'ckeditor5/src/icons.js';import{ButtonView as _0x4050a4,IconView as _0x449d0c,View as _0x3278ab}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3278ab{constructor(_0x52e57a){super(_0x52e57a);const t=_0x52e57a['t'];this['set']('errorType',null);const _0x31050f=new _0x4050a4(_0x52e57a);_0x31050f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31050f['withText']=!0x0,_0x31050f['class']='ck-button-action',_0x31050f['on']('execute',()=>{this['fire']('retry');}),_0x31050f['bind']('isVisible')['to'](this,'errorType',_0x2c3f3b=>'NotFound'!==_0x2c3f3b);const _0x5ccd7b=new _0x449d0c();_0x5ccd7b['content']=_0x5f50e6,_0x5ccd7b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5893ae=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':[_0x5ccd7b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5893ae['to']('errorType',_0x466b3f=>t('NotFound'!==_0x466b3f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31050f]},{'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 _0x24779e,View as _0x57693a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x57693a{constructor(_0xd7c329){super(_0xd7c329);const t=_0xd7c329['t'],_0x1bf2a4=this['bindTemplate'],_0x4a65d0=new _0x24779e();_0x4a65d0['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':[_0x4a65d0,{'text':_0x1bf2a4['to']('imageUploadProgress',_0x346abf=>t('Loading\x20image...')+'\x20('+(_0x346abf||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 _0x5b7121=_0x4a08;(function(_0x1d478d,_0xf58db2){const _0x1036cf=_0x4a08,_0x5f2825=_0x1d478d();while(!![]){try{const _0x529d17=-parseInt(_0x1036cf(0xa0))/0x1*(-parseInt(_0x1036cf(0xa1))/0x2)+-parseInt(_0x1036cf(0x84))/0x3+-parseInt(_0x1036cf(0x7e))/0x4+-parseInt(_0x1036cf(0x89))/0x5+parseInt(_0x1036cf(0x7f))/0x6*(-parseInt(_0x1036cf(0xaa))/0x7)+parseInt(_0x1036cf(0xad))/0x8*(parseInt(_0x1036cf(0x9e))/0x9)+parseInt(_0x1036cf(0x87))/0xa*(parseInt(_0x1036cf(0xab))/0xb);if(_0x529d17===_0xf58db2)break;else _0x5f2825['push'](_0x5f2825['shift']());}catch(_0x140f8c){_0x5f2825['push'](_0x5f2825['shift']());}}}(_0x5e58,0x4d4f5));function _0x4a08(_0x8fe196,_0x8f4e75){const _0x5e588a=_0x5e58();return _0x4a08=function(_0x4a0852,_0x53d3ba){_0x4a0852=_0x4a0852-0x77;let _0x2122fe=_0x5e588a[_0x4a0852];return _0x2122fe;},_0x4a08(_0x8fe196,_0x8f4e75);}import{View as _0x39fad0}from'ckeditor5/src/ui.js';function _0x5e58(){const _0x20b2ad=['_loadingView','setTemplate','1755267XGgJqz','fire','target','10EbeqCo','toLowerCase','1108070wbLuut','addMany','add','ck-reset_all-excluded','ready','_waitForImageEditorComponent','querySelector','div','length','once','_errorView','addedNodes','observe','getFocusableElement','status','retry','_editingView','clear','focus','ck-uploadcare-form','createCollection','108SlbvIT','disconnect','249795OXIcik','4hMpcow','cancel','filter','addEventListener','render','uc-cloud-image-editor','_focusableView','detail','apply','9905GFWtuY','11360316FicZPN','nodeName','42312DOaKAW','set','error','_addErrorViewListeners','cdnUrl','uploading','element','change:status','_addUploadcareImageEditorListeners','1086080BFBzTZ','852Olpwgq','_items','_setView'];_0x5e58=function(){return _0x20b2ad;};return _0x5e58();}import{UploadcareImageEditFormLoadingView as _0x15cb4f}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x313d6f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xdff510}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5b3644}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5b3644{[_0x5b7121(0x80)];[_0x5b7121(0x82)];[_0x5b7121(0x93)];[_0x5b7121(0x99)];[_0x5b7121(0xa7)];constructor(_0x190b00,_0x2afa99,_0x469d43){const _0x18d85d=_0x5b7121;super(_0x190b00),this[_0x18d85d(0x80)]=this[_0x18d85d(0x9d)](),this[_0x18d85d(0x82)]=new _0x15cb4f(_0x190b00),this[_0x18d85d(0x93)]=new _0x313d6f(_0x190b00),this[_0x18d85d(0x99)]=new _0xdff510(_0x190b00,_0x469d43),this[_0x18d85d(0xa7)]=new _0x39fad0(_0x190b00),this[_0x18d85d(0xa7)][_0x18d85d(0x83)](this[_0x18d85d(0x96)]()),this[_0x18d85d(0xae)](_0x18d85d(0x97),_0x2afa99),this[_0x18d85d(0x83)]({'tag':_0x18d85d(0x90),'attributes':{'class':['ck',_0x18d85d(0x8c),_0x18d85d(0x9c)],'tabindex':'-1'},'children':this[_0x18d85d(0x80)]}),this[_0x18d85d(0x81)](),this[_0x18d85d(0x92)](_0x18d85d(0xa5),()=>{const _0x27337f=_0x18d85d;this[_0x27337f(0x8e)](this[_0x27337f(0x7b)],_0xe03c62=>{const _0x53b1ce=_0x27337f;this[_0x53b1ce(0x7d)](_0xe03c62);});}),this['on'](_0x18d85d(0x7c),()=>{const _0x3f3d17=_0x18d85d;this[_0x3f3d17(0x81)]();}),this[_0x18d85d(0x78)]();}[_0x5b7121(0x9b)](){const _0x1c8a9b=_0x5b7121;this[_0x1c8a9b(0x7b)][_0x1c8a9b(0x9b)]();}[_0x5b7121(0x81)](){const _0x15f5c2=_0x5b7121;switch(this[_0x15f5c2(0x80)][_0x15f5c2(0x9a)](),this[_0x15f5c2(0x97)]){case _0x15f5c2(0x7a):this[_0x15f5c2(0x80)][_0x15f5c2(0x8b)](this[_0x15f5c2(0x82)]);break;case _0x15f5c2(0x77):this[_0x15f5c2(0x80)][_0x15f5c2(0x8b)](this[_0x15f5c2(0x93)]);break;case _0x15f5c2(0x8d):this[_0x15f5c2(0x80)][_0x15f5c2(0x8a)]([this[_0x15f5c2(0x99)],this[_0x15f5c2(0xa7)]]);}}[_0x5b7121(0x8e)](_0x2fa8ab,_0x1d8302){const _0x13f149=_0x5b7121,_0x5121e9=_0x13f149(0xa6),_0x328e24=_0x2fa8ab[_0x13f149(0x8f)](_0x5121e9);if(_0x328e24)return _0x1d8302(_0x328e24);const _0x96fa45=new MutationObserver(_0x280b48=>{const _0x37eed4=_0x13f149,_0x495a3c=_0x280b48[_0x37eed4(0xa3)](_0x76d652=>_0x76d652[_0x37eed4(0x86)]===_0x2fa8ab&&_0x76d652[_0x37eed4(0x94)][_0x37eed4(0x91)]>0x0&&_0x76d652[_0x37eed4(0x94)][0x0][_0x37eed4(0xac)][_0x37eed4(0x88)]()===_0x5121e9);_0x495a3c[_0x37eed4(0x91)]&&(_0x96fa45[_0x37eed4(0x9f)](),_0x1d8302(_0x495a3c[0x0][_0x37eed4(0x94)][0x0]));});_0x96fa45[_0x13f149(0x95)](_0x2fa8ab,{'childList':!0x0,'subtree':!0x0});}[_0x5b7121(0x7d)](_0x506cc5){const _0x54fddf=_0x5b7121;_0x506cc5[_0x54fddf(0xa4)](_0x54fddf(0xa9),_0xbd748b=>{const _0x777487=_0x54fddf;this[_0x777487(0x85)](_0x777487(0xa9),{'imageSrc':_0xbd748b[_0x777487(0xa8)][_0x777487(0x79)]});}),_0x506cc5[_0x54fddf(0xa4)](_0x54fddf(0xa2),()=>{const _0x16a415=_0x54fddf;this[_0x16a415(0x85)](_0x16a415(0xa2));});}[_0x5b7121(0x78)](){const _0x2b57cb=_0x5b7121;this[_0x2b57cb(0x93)]['on'](_0x2b57cb(0x98),()=>{const _0x39c9a4=_0x2b57cb;this[_0x39c9a4(0x85)](_0x39c9a4(0x98));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xcabd(){const _0x5333cd=['imageEditController','183356nERPvA','_isEditable','224838wHWpKZ','getSelectedElement','imageInline','78520zVsMnu','requires','51ugsfkq','config','1960056wcwAEX','element','plugins','isActive','4968616lhzFne','1060VOIEAh','execute','8982aeeZwq','imageBlock','selection','get','uploadcare.allowExternalImagesEditing','unbind','document','model','bind','isEnabled','set','1446756AMEApD','refresh','4405jeeNsj','editor'];_0xcabd=function(){return _0x5333cd;};return _0xcabd();}const _0x2f01a5=_0x1ecc;(function(_0x1ae74d,_0x1a1d8b){const _0x3bdef6=_0x1ecc,_0x346db9=_0x1ae74d();while(!![]){try{const _0x3a2571=-parseInt(_0x3bdef6(0x16e))/0x1+-parseInt(_0x3bdef6(0x184))/0x2+-parseInt(_0x3bdef6(0x170))/0x3*(-parseInt(_0x3bdef6(0x169))/0x4)+-parseInt(_0x3bdef6(0x166))/0x5*(parseInt(_0x3bdef6(0x179))/0x6)+parseInt(_0x3bdef6(0x172))/0x7+-parseInt(_0x3bdef6(0x176))/0x8+parseInt(_0x3bdef6(0x16b))/0x9*(parseInt(_0x3bdef6(0x177))/0xa);if(_0x3a2571===_0x1a1d8b)break;else _0x346db9['push'](_0x346db9['shift']());}catch(_0x7bec06){_0x346db9['push'](_0x346db9['shift']());}}}(_0xcabd,0xebb9b));import{Command as _0x4d2fa4}from'ckeditor5/src/core.js';import{Dialog as _0x3f65fd}from'ckeditor5/src/ui.js';function _0x1ecc(_0x5cb462,_0x12ff15){const _0xcabd86=_0xcabd();return _0x1ecc=function(_0x1ecc89,_0x2d06b8){_0x1ecc89=_0x1ecc89-0x165;let _0x243c42=_0xcabd86[_0x1ecc89];return _0x243c42;},_0x1ecc(_0x5cb462,_0x12ff15);}import{UploadcareImageEditController as _0x26504e}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x38c13b}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4d2fa4{[_0x2f01a5(0x168)];static get[_0x2f01a5(0x16f)](){return[_0x3f65fd];}[_0x2f01a5(0x16a)];constructor(_0x2cd9cc){const _0x1b6aff=_0x2f01a5;super(_0x2cd9cc),this[_0x1b6aff(0x168)]=void 0x0,this[_0x1b6aff(0x16a)]=_0x38c13b(_0x2cd9cc[_0x1b6aff(0x171)][_0x1b6aff(0x17c)](_0x1b6aff(0x17d))||[]),this[_0x1b6aff(0x183)]({'isActive':!0x1});}[_0x2f01a5(0x165)](){const _0x38aecf=_0x2f01a5,_0x2bbedd=this[_0x38aecf(0x167)][_0x38aecf(0x180)][_0x38aecf(0x17f)][_0x38aecf(0x17b)][_0x38aecf(0x16c)]();this[_0x38aecf(0x182)]=this[_0x38aecf(0x16a)](_0x2bbedd);}[_0x2f01a5(0x178)](){const _0x55b5e9=_0x2f01a5;this[_0x55b5e9(0x168)]&&(this[_0x55b5e9(0x17e)](_0x55b5e9(0x175)),this[_0x55b5e9(0x168)]=void 0x0);const _0x29eac0=this[_0x55b5e9(0x167)][_0x55b5e9(0x180)][_0x55b5e9(0x17f)][_0x55b5e9(0x17b)][_0x55b5e9(0x16c)]();_0x29eac0&&(_0x29eac0['is'](_0x55b5e9(0x173),_0x55b5e9(0x17a))||_0x29eac0['is'](_0x55b5e9(0x173),_0x55b5e9(0x16d)))&&(this[_0x55b5e9(0x168)]=new _0x26504e(this[_0x55b5e9(0x167)],this[_0x55b5e9(0x167)][_0x55b5e9(0x174)][_0x55b5e9(0x17c)](_0x3f65fd),_0x29eac0),this[_0x55b5e9(0x181)](_0x55b5e9(0x175))['to'](this[_0x55b5e9(0x168)],_0x55b5e9(0x175)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f49f0=_0x16f6;(function(_0x2bbf5d,_0x5e86b6){const _0x5047d8=_0x16f6,_0x6ff2e0=_0x2bbf5d();while(!![]){try{const _0x1e33db=-parseInt(_0x5047d8(0x13b))/0x1+-parseInt(_0x5047d8(0x144))/0x2*(-parseInt(_0x5047d8(0x135))/0x3)+parseInt(_0x5047d8(0x140))/0x4+parseInt(_0x5047d8(0x132))/0x5*(parseInt(_0x5047d8(0x13e))/0x6)+parseInt(_0x5047d8(0x139))/0x7*(parseInt(_0x5047d8(0x141))/0x8)+parseInt(_0x5047d8(0x136))/0x9*(-parseInt(_0x5047d8(0x142))/0xa)+-parseInt(_0x5047d8(0x143))/0xb;if(_0x1e33db===_0x5e86b6)break;else _0x6ff2e0['push'](_0x6ff2e0['shift']());}catch(_0x1ad9ff){_0x6ff2e0['push'](_0x6ff2e0['shift']());}}}(_0x2a61,0x51935));import{Plugin as _0x50bf89}from'ckeditor5/src/core.js';import{Notification as _0x499b6b}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x360ef2}from'./uploadcareimageeditcommand.js';function _0x16f6(_0x2b0fde,_0x31122c){const _0x2a61c0=_0x2a61();return _0x16f6=function(_0x16f660,_0x59a86e){_0x16f660=_0x16f660-0x130;let _0x334d02=_0x2a61c0[_0x16f660];return _0x334d02;},_0x16f6(_0x2b0fde,_0x31122c);}import{UploadcareImageReplaceCommand as _0x5a90da}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2de1df}from'../uploadcareediting.js';function _0x2a61(){const _0x841a98=['7wSWCIj','isOfficialPlugin','185292XvOgeQ','init','uploadcareImageEdit','6eadizS','add','172088PSOtXf','4911280SawQem','4050llyhSy','6372454CLUIrz','2WyvIqv','UploadcareImageEditEditing','ImageEditing','isPremiumPlugin','pluginName','2147605UjQLHD','requires','commands','1838703DaCNPQ','13347klvmYS','ImageUtils','uploadcareImageReplace'];_0x2a61=function(){return _0x841a98;};return _0x2a61();}export class UploadcareImageEditEditing extends _0x50bf89{static get[_0x3f49f0(0x131)](){const _0x47288f=_0x3f49f0;return _0x47288f(0x145);}static get[_0x3f49f0(0x133)](){const _0x4d9892=_0x3f49f0;return[_0x2de1df,_0x499b6b,_0x4d9892(0x137),_0x4d9892(0x146)];}static get[_0x3f49f0(0x13a)](){return!0x0;}static get[_0x3f49f0(0x130)](){return!0x0;}[_0x3f49f0(0x13c)](){const _0x326691=_0x3f49f0,{editor:_0x5cbc34}=this;_0x5cbc34[_0x326691(0x134)][_0x326691(0x13f)](_0x326691(0x13d),new _0x360ef2(_0x5cbc34)),_0x5cbc34[_0x326691(0x134)][_0x326691(0x13f)](_0x326691(0x138),new _0x5a90da(_0x5cbc34));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x572ff4}from'ckeditor5/src/core.js';import{ButtonView as _0x267640}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x561ca7}from'ckeditor5/src/icons.js';import{createElement as _0x931760}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x572ff4{['_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 _0x571e9e=this['editor'];_0x571e9e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3bb9fa=>{const _0x323957=_0x571e9e['commands']['get']('uploadcareImageEdit'),_0x19413f=new _0x267640(_0x3bb9fa),t=_0x3bb9fa['t'];return _0x19413f['set']({'icon':_0x561ca7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x19413f['bind']('isEnabled')['to'](_0x323957),_0x19413f['bind']('isOn')['to'](_0x323957,'isActive'),this['listenTo'](_0x19413f,'execute',()=>{_0x571e9e['execute']('uploadcareImageEdit'),_0x571e9e['editing']['view']['focus']();}),_0x19413f;}),this['_initConfig']();}['_initConfig'](){const _0x331f6f=_0x931760(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x331f6f),this['listenTo'](this['editor'],'destroy',()=>{_0x331f6f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1f997b=_0x9519;function _0x9519(_0x3a166f,_0x39cc49){const _0x2984dc=_0x2984();return _0x9519=function(_0x951949,_0x1b65fe){_0x951949=_0x951949-0xf9;let _0x17040a=_0x2984dc[_0x951949];return _0x17040a;},_0x9519(_0x3a166f,_0x39cc49);}(function(_0xeef70a,_0x1b8aca){const _0x518f0a=_0x9519,_0x150e06=_0xeef70a();while(!![]){try{const _0x1a3e70=-parseInt(_0x518f0a(0x102))/0x1*(parseInt(_0x518f0a(0xfc))/0x2)+-parseInt(_0x518f0a(0x10c))/0x3+-parseInt(_0x518f0a(0x103))/0x4+parseInt(_0x518f0a(0x10d))/0x5*(parseInt(_0x518f0a(0xfb))/0x6)+-parseInt(_0x518f0a(0x110))/0x7+-parseInt(_0x518f0a(0x10f))/0x8+parseInt(_0x518f0a(0x10a))/0x9;if(_0x1a3e70===_0x1b8aca)break;else _0x150e06['push'](_0x150e06['shift']());}catch(_0x1ebed0){_0x150e06['push'](_0x150e06['shift']());}}}(_0x2984,0x2f1d8));import{Command as _0x4ed9c2}from'ckeditor5/src/core.js';function _0x2984(){const _0x2ed162=['10008153efUyrX','change','1089393OebNBv','1205065TFVQsg','removeAttribute','2374816dUMaPZ','945497ULPHQE','execute','srcset','element','6ziUKjl','136PErNbP','imageBlock','isEnabled','sizes','setAttributes','selection','4277rtjXzz','296624jsiNwX','document','refresh','model','imageInline','getSelectedElement','editor'];_0x2984=function(){return _0x2ed162;};return _0x2984();}export class UploadcareImageReplaceCommand extends _0x4ed9c2{[_0x1f997b(0x105)](){const _0x2643d1=_0x1f997b,_0x804b3e=this[_0x2643d1(0x109)][_0x2643d1(0x106)][_0x2643d1(0x104)][_0x2643d1(0x101)][_0x2643d1(0x108)]();this[_0x2643d1(0xfe)]=Boolean(_0x804b3e&&(_0x804b3e['is'](_0x2643d1(0xfa),_0x2643d1(0xfd))||_0x804b3e['is'](_0x2643d1(0xfa),_0x2643d1(0x107))));}[_0x1f997b(0x111)](_0x3a3c09){const _0x1b43df=_0x1f997b,_0x2c2cc4=this[_0x1b43df(0x109)][_0x1b43df(0x106)][_0x1b43df(0x104)][_0x1b43df(0x101)][_0x1b43df(0x108)]();this[_0x1b43df(0x109)][_0x1b43df(0x106)][_0x1b43df(0x10b)](_0x30a12f=>{const _0x5caff7=_0x1b43df;_0x30a12f[_0x5caff7(0x100)](_0x3a3c09,_0x2c2cc4),_0x30a12f[_0x5caff7(0x10e)](_0x5caff7(0xf9),_0x2c2cc4),_0x30a12f[_0x5caff7(0x10e)](_0x5caff7(0xff),_0x2c2cc4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x16d7(){var _0x4064b5=['36008axnqvv','301UxoqxZ','354544TZiYEq','isPremiumPlugin','5729760SZkEfR','183QsvxaU','148314VwoKwP','16117101ZrNQFv','pluginName','UploadcareImageEdit','3181768OLkFBt','requires','isOfficialPlugin','1560264LcPQnp'];_0x16d7=function(){return _0x4064b5;};return _0x16d7();}var _0x336653=_0x1cc1;(function(_0x106a56,_0x132685){var _0x3fd633=_0x1cc1,_0x272c0d=_0x106a56();while(!![]){try{var _0x137746=-parseInt(_0x3fd633(0xc6))/0x1+parseInt(_0x3fd633(0xce))/0x2+parseInt(_0x3fd633(0xc9))/0x3*(-parseInt(_0x3fd633(0xc4))/0x4)+parseInt(_0x3fd633(0xc8))/0x5+-parseInt(_0x3fd633(0xca))/0x6*(-parseInt(_0x3fd633(0xc5))/0x7)+-parseInt(_0x3fd633(0xc3))/0x8+-parseInt(_0x3fd633(0xcb))/0x9;if(_0x137746===_0x132685)break;else _0x272c0d['push'](_0x272c0d['shift']());}catch(_0x4fc9e1){_0x272c0d['push'](_0x272c0d['shift']());}}}(_0x16d7,0xde3b9));import{Plugin as _0x2b663b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x36a5b8}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x1cc1(_0x720904,_0x44a64b){var _0x16d794=_0x16d7();return _0x1cc1=function(_0x1cc100,_0x48c673){_0x1cc100=_0x1cc100-0xc2;var _0x2703ac=_0x16d794[_0x1cc100];return _0x2703ac;},_0x1cc1(_0x720904,_0x44a64b);}import{UploadcareImageEditUI as _0x401c38}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2b663b{static get[_0x336653(0xcc)](){var _0xa51e64=_0x336653;return _0xa51e64(0xcd);}static get[_0x336653(0xcf)](){return[_0x36a5b8,_0x401c38];}static get[_0x336653(0xc2)](){return!0x0;}static get[_0x336653(0xc7)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21dbc6=_0x1b30;(function(_0x31ce71,_0x4ac1bf){const _0x2ded17=_0x1b30,_0x39d73f=_0x31ce71();while(!![]){try{const _0x259870=-parseInt(_0x2ded17(0x191))/0x1+-parseInt(_0x2ded17(0x1d7))/0x2*(parseInt(_0x2ded17(0x1b0))/0x3)+parseInt(_0x2ded17(0x1b2))/0x4*(parseInt(_0x2ded17(0x1d8))/0x5)+-parseInt(_0x2ded17(0x19b))/0x6+parseInt(_0x2ded17(0x1a2))/0x7+parseInt(_0x2ded17(0x194))/0x8+parseInt(_0x2ded17(0x1d2))/0x9*(parseInt(_0x2ded17(0x198))/0xa);if(_0x259870===_0x4ac1bf)break;else _0x39d73f['push'](_0x39d73f['shift']());}catch(_0x35d798){_0x39d73f['push'](_0x39d73f['shift']());}}}(_0x415d,0x6ee07));import{Plugin as _0x9a8f56}from'ckeditor5/src/core.js';function _0x1b30(_0x56e86a,_0x13b3c6){const _0x415def=_0x415d();return _0x1b30=function(_0x1b30da,_0x5ecd26){_0x1b30da=_0x1b30da-0x18f;let _0x5c0ebb=_0x415def[_0x1b30da];return _0x5c0ebb;},_0x1b30(_0x56e86a,_0x13b3c6);}function _0x415d(){const _0x1e24d9=['map','OneDrive','execute','uploadcareLicenseKeyTrialLimit','1773zTRytI','afterInit','featureNotAllowed','usageLimit','forEach','2QOrTvg','7925jbuFox','init','plugins','_createMenuBarButtons','Facebook','uploadcareLicenseKeyValid','Local','Insert','uploadcareLicenseKeyExpired','registerIntegration','212634FoCKTf','commands','_showLicenseError','3474816CVdLxP','evaluationLimit','uploadcare','tooltip','50650wpuSAl','text','Dropbox','4673220RGfpXM','assetManager','editor','licenseKey','shortText','uploadcareLicenseKeyInvalid','domainLimit','1172535JeDrBH','Uploadcare','UploadcareUI','has','bind','_licenseKeyCheckInterval','_createToolbarButton','url','push','uploadcareLicenseKeyUsageLimit','locale','upload','isImageSelected','isPremiumPlugin','2539956oIRRAp','withText','1748rKFgWz','_createDropdownButtons','_getIntegrationKey','GDrive','trialLimit','Replace','uploadcareLicenseKeyEvaluationLimit','type','invalid','expired','_normalizeConfigSourceList','URL','uploadcare.uploader.sourceList','entries','reduce','uploadcareLicenseKeyDomainLimit','ImageInsertUI','icon','uploadcareLicenseKeyNotAllowed','get','GPhotos','_createButton','config','isOfficialPlugin','isEnabled','pluginName','destroy','label'];_0x415d=function(){return _0x1e24d9;};return _0x415d();}import{IconDropbox as _0x4b07ce,IconFacebook as _0x1551af,IconGoogleDrive as _0x2e8b57,IconGooglePhotos as _0x39e781,IconUploadcareImageUpload as _0x1c911d,IconUploadcareLink as _0x10f103,IconOneDrive as _0x4f1e44}from'ckeditor5/src/icons.js';import{ButtonView as _0x5db7d0,MenuBarMenuListItemButtonView as _0x291e50}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x306b17}from'./uploadcareconfig.js';import{getTranslation as _0x12ef60}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x9a8f56{[_0x21dbc6(0x19e)];[_0x21dbc6(0x1a7)];static get[_0x21dbc6(0x1cb)](){const _0x957f0d=_0x21dbc6;return _0x957f0d(0x1a4);}static get[_0x21dbc6(0x1c9)](){return!0x0;}static get[_0x21dbc6(0x1af)](){return!0x0;}[_0x21dbc6(0x1d9)](){const _0x557ac4=_0x21dbc6;this[_0x557ac4(0x19e)]=this[_0x557ac4(0x19d)][_0x557ac4(0x1c8)][_0x557ac4(0x1c5)](_0x557ac4(0x19e));const _0x2d40e5=this[_0x557ac4(0x19d)];this[_0x557ac4(0x1a7)]=setInterval(()=>{const _0x4738e8=_0x557ac4;let _0x27b2b7;for(const _0x3e6b21 in _0x2d40e5){const _0x1ae047=_0x3e6b21,_0x2bc713=_0x2d40e5[_0x1ae047];if(_0x4738e8(0x1dd)==_0x2bc713||_0x4738e8(0x1a0)==_0x2bc713||_0x4738e8(0x18f)==_0x2bc713||_0x4738e8(0x1c1)==_0x2bc713||_0x4738e8(0x1c4)==_0x2bc713||_0x4738e8(0x1b8)==_0x2bc713||_0x4738e8(0x1d1)==_0x2bc713||_0x4738e8(0x1ab)==_0x2bc713){delete _0x2d40e5[_0x1ae047],_0x27b2b7=_0x2bc713,clearInterval(this[_0x4738e8(0x1a7)]),this[_0x4738e8(0x1a7)]=void 0x0;break;}}_0x4738e8(0x1a0)==_0x27b2b7&&_0x2d40e5[_0x4738e8(0x193)](_0x4738e8(0x1ba)),_0x4738e8(0x18f)==_0x27b2b7&&_0x2d40e5[_0x4738e8(0x193)](_0x4738e8(0x1bb)),_0x4738e8(0x1c1)==_0x27b2b7&&_0x2d40e5[_0x4738e8(0x193)](_0x4738e8(0x1a1)),_0x4738e8(0x1c4)==_0x27b2b7&&_0x2d40e5[_0x4738e8(0x193)](_0x4738e8(0x1d4),_0x4738e8(0x1a3)),_0x4738e8(0x1b8)==_0x27b2b7&&_0x2d40e5[_0x4738e8(0x193)](_0x4738e8(0x195)),_0x4738e8(0x1d1)==_0x27b2b7&&_0x2d40e5[_0x4738e8(0x193)](_0x4738e8(0x1b6)),_0x4738e8(0x1ab)==_0x27b2b7&&_0x2d40e5[_0x4738e8(0x193)](_0x4738e8(0x1d5));},0x3e8);}[_0x21dbc6(0x1d3)](){const _0x29d84a=_0x21dbc6,{editor:_0x2f8a9e}=this,_0x58c82b=_0x2f8a9e[_0x29d84a(0x192)][_0x29d84a(0x1c5)](_0x29d84a(0x196));if(!_0x58c82b)return;const _0x57a40e=this[_0x29d84a(0x1bc)](_0x2f8a9e[_0x29d84a(0x1c8)][_0x29d84a(0x1c5)](_0x29d84a(0x1be)))[_0x29d84a(0x1c0)]((_0xc6561,_0x2be178)=>{const _0x27c33a=_0x29d84a,_0xe1b4bd=this[_0x27c33a(0x1b4)](_0x2be178[_0x27c33a(0x1b9)]);return _0xc6561[_0xe1b4bd]||(_0xc6561[_0xe1b4bd]=[]),_0xc6561[_0xe1b4bd][_0x27c33a(0x1aa)](_0x2be178),_0xc6561;},{});_0x2f8a9e[_0x29d84a(0x1da)][_0x29d84a(0x1a5)](_0x29d84a(0x1c2))&&_0x2f8a9e[_0x29d84a(0x192)][_0x29d84a(0x1c5)](_0x29d84a(0x196))&&Object[_0x29d84a(0x1bf)](_0x57a40e)[_0x29d84a(0x1d6)](([_0x524265,_0x1f3f88])=>{const _0x4d5a44=_0x29d84a;_0x2f8a9e[_0x4d5a44(0x1da)][_0x4d5a44(0x1c5)](_0x4d5a44(0x1c2))[_0x4d5a44(0x190)]({'name':_0x524265,'observable':()=>_0x58c82b,'buttonViewCreator':()=>this[_0x4d5a44(0x1a8)](_0x1f3f88),'formViewCreator':()=>this[_0x4d5a44(0x1b3)](_0x1f3f88),'menuBarButtonViewCreator':()=>this[_0x4d5a44(0x1db)](_0x1f3f88),'override':_0x4d5a44(0x19c)!==_0x524265});});}[_0x21dbc6(0x1cc)](){const _0x179635=_0x21dbc6;super[_0x179635(0x1cc)](),this[_0x179635(0x1a7)]&&clearInterval(this[_0x179635(0x1a7)]);}[_0x21dbc6(0x1bc)](_0x17fa50){const _0x40c49b=_0x21dbc6,{locale:_0x2d70fa}=this[_0x40c49b(0x19d)];return _0x17fa50[_0x40c49b(0x1ce)](_0x5d77cc=>{const _0x4ce664=_0x40c49b,_0x579268=_0x12ef60(_0x2d70fa,_0x5d77cc,_0x4ce664(0x1df));switch(_0x5d77cc){case _0x306b17[_0x4ce664(0x1de)]:return{'icon':_0x1c911d,'type':_0x306b17[_0x4ce664(0x1de)],..._0x579268};case _0x306b17[_0x4ce664(0x1bd)]:return{'icon':_0x10f103,'type':_0x306b17[_0x4ce664(0x1bd)],..._0x579268};case _0x306b17[_0x4ce664(0x19a)]:return{'icon':_0x4b07ce,'type':_0x306b17[_0x4ce664(0x19a)],..._0x579268};case _0x306b17[_0x4ce664(0x1dc)]:return{'icon':_0x1551af,'type':_0x306b17[_0x4ce664(0x1dc)],..._0x579268};case _0x306b17[_0x4ce664(0x1b5)]:return{'icon':_0x2e8b57,'type':_0x306b17[_0x4ce664(0x1b5)],..._0x579268};case _0x306b17[_0x4ce664(0x1c6)]:return{'icon':_0x39e781,'type':_0x306b17[_0x4ce664(0x1c6)],..._0x579268};case _0x306b17[_0x4ce664(0x1cf)]:return{'icon':_0x4f1e44,'type':_0x306b17[_0x4ce664(0x1cf)],..._0x579268};}});}[_0x21dbc6(0x1b4)](_0x2f8e50){const _0xa1deca=_0x21dbc6;switch(_0x2f8e50){case _0x306b17[_0xa1deca(0x1de)]:return _0xa1deca(0x1ad);case _0x306b17[_0xa1deca(0x1bd)]:return _0xa1deca(0x1a9);default:return _0xa1deca(0x19c);}}[_0x21dbc6(0x1c7)](_0x2e1b7f,_0x4d51c3){const _0x2ab69f=_0x21dbc6,_0x502ed7=this[_0x2ab69f(0x19d)],_0x21c9ef=new _0x2e1b7f(_0x502ed7[_0x2ab69f(0x1ac)]),_0x916c03=_0x502ed7[_0x2ab69f(0x192)][_0x2ab69f(0x1c5)](_0x2ab69f(0x196));return _0x21c9ef[_0x2ab69f(0x1a6)](_0x2ab69f(0x1ca))['to'](_0x916c03),_0x21c9ef['on'](_0x2ab69f(0x1d0),()=>{const _0x20fef8=_0x2ab69f;_0x916c03[_0x20fef8(0x1d0)](_0x4d51c3);}),_0x21c9ef;}[_0x21dbc6(0x1a8)](_0x13ac81){const _0x88d1ab=_0x21dbc6,{locale:_0xb3a0b5}=this[_0x88d1ab(0x19d)],_0x155b21=this[_0x88d1ab(0x19d)][_0x88d1ab(0x1da)][_0x88d1ab(0x1c5)](_0x88d1ab(0x1c2)),_0x1d3263=_0x13ac81[0x0],_0x569398=this[_0x88d1ab(0x1c7)](_0x5db7d0,_0x1d3263[_0x88d1ab(0x1b9)]);return _0x569398[_0x88d1ab(0x1c3)]=_0x1d3263[_0x88d1ab(0x1c3)],_0x569398[_0x88d1ab(0x1a6)](_0x88d1ab(0x1cd))['to'](_0x155b21,_0x88d1ab(0x1ae),_0x1d832e=>_0x12ef60(_0xb3a0b5,_0x1d3263[_0x88d1ab(0x1b9)],_0x1d832e?_0x88d1ab(0x1b7):_0x88d1ab(0x1df))[_0x88d1ab(0x199)]),_0x569398[_0x88d1ab(0x197)]=!0x0,_0x569398;}[_0x21dbc6(0x1b3)](_0xf02972){const _0x2ab447=_0x21dbc6,{locale:_0x2ce51c}=this[_0x2ab447(0x19d)],_0x4a897f=this[_0x2ab447(0x19d)][_0x2ab447(0x1da)][_0x2ab447(0x1c5)](_0x2ab447(0x1c2));return _0xf02972[_0x2ab447(0x1ce)](_0x59b926=>{const _0x2d582d=_0x2ab447,_0x285818=this[_0x2d582d(0x1c7)](_0x5db7d0,_0x59b926[_0x2d582d(0x1b9)]);return _0x285818[_0x2d582d(0x1b1)]=!0x0,_0x285818[_0x2d582d(0x1c3)]=_0x59b926[_0x2d582d(0x1c3)],_0x285818[_0x2d582d(0x1a6)](_0x2d582d(0x1cd))['to'](_0x4a897f,_0x2d582d(0x1ae),_0x5c5336=>_0x12ef60(_0x2ce51c,_0x59b926[_0x2d582d(0x1b9)],_0x5c5336?_0x2d582d(0x1b7):_0x2d582d(0x1df))[_0x2d582d(0x199)]),_0x285818;});}[_0x21dbc6(0x1db)](_0x11e667){const _0x384c08=_0x21dbc6;return _0x11e667[_0x384c08(0x1ce)](_0x1e9bda=>{const _0x5050d7=_0x384c08,_0x2ecdde=this[_0x5050d7(0x1c7)](_0x291e50,_0x1e9bda[_0x5050d7(0x1b9)]);return _0x2ecdde[_0x5050d7(0x1c3)]=_0x1e9bda[_0x5050d7(0x1c3)],_0x2ecdde[_0x5050d7(0x1cd)]=_0x1e9bda[_0x5050d7(0x19f)],_0x2ecdde;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x358833}from'ckeditor5/src/core.js';import{FileRepository as _0x1b8faf}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1f8129}from'./uploadcareediting.js';import{UploadUtils as _0x5620ab}from'./utils/uploadutils.js';import{getImageUrls as _0x39226e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x358833{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1b8faf,_0x1f8129];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x25a72d=this['editor'];if(!!!_0x25a72d['config']['get']('uploadcare'))return;_0x25a72d['plugins']['get'](_0x1b8faf)['createUploadAdapter']=_0x1c6320=>new k(_0x1c6320,_0x25a72d),_0x25a72d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3db62a,{imageElement:_0x54506d,data:_0x23614c})=>{_0x25a72d['model']['change'](_0x3e0da7=>{_0x3e0da7['setAttribute']('uploadcareImageId',_0x23614c['uploadcareImageId'],_0x54506d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x7e6442,_0x4a22dd){this['loader']=_0x7e6442,this['editor']=_0x4a22dd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c4c02=await this['loader']['file'];return _0x5620ab['upload']({'file':_0x1c4c02,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x17c73a=>{_0x17c73a&&_0x17c73a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x17c73a['value']);}})['then'](async _0x11452f=>{const {imageFallbackUrl:_0x5de20e,imageSources:_0xb2b3a0}=_0x39226e(_0x11452f['cdnUrl'],_0x11452f['imageInfo']['width']);return{'uploadcareImageId':_0x11452f['uuid'],'default':_0x5de20e,'sources':_0xb2b3a0};})['catch'](()=>{const _0xea0a5a=t('Cannot\x20upload\x20file:')+('\x20'+_0x1c4c02['name']+'.');return Promise['reject'](_0xea0a5a);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xfb1fb3}from'../uploadcareconfig.js';export function getTranslation(_0x23d573,_0x44234a,_0x96e5c8){const t=_0x23d573['t'],_0x472f9b=_0x23d573['t'];switch(_0x44234a){case _0xfb1fb3['Local']:return{'text':_0x472f9b('Insert'===_0x96e5c8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x472f9b('From\x20computer')};case _0xfb1fb3['URL']:return{'text':'Insert'===_0x96e5c8?_0x472f9b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x472f9b('Via\x20URL')};case _0xfb1fb3['Dropbox']:return{'text':t('Insert'===_0x96e5c8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xfb1fb3['Facebook']:return{'text':t('Insert'===_0x96e5c8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xfb1fb3['GDrive']:return{'text':t('Insert'===_0x96e5c8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xfb1fb3['GPhotos']:return{'text':t('Insert'===_0x96e5c8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xfb1fb3['OneDrive']:return{'text':t('Insert'===_0x96e5c8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x44234a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x389b8a=_0x4358;(function(_0x2aa379,_0x1e2741){var _0x5a7fe0=_0x4358,_0x19bf65=_0x2aa379();while(!![]){try{var _0x4865b8=parseInt(_0x5a7fe0(0x1b9))/0x1*(parseInt(_0x5a7fe0(0x1b8))/0x2)+-parseInt(_0x5a7fe0(0x1c1))/0x3*(parseInt(_0x5a7fe0(0x1c4))/0x4)+parseInt(_0x5a7fe0(0x1bb))/0x5*(parseInt(_0x5a7fe0(0x1c9))/0x6)+-parseInt(_0x5a7fe0(0x1c6))/0x7*(parseInt(_0x5a7fe0(0x1b7))/0x8)+parseInt(_0x5a7fe0(0x1c8))/0x9*(parseInt(_0x5a7fe0(0x1b6))/0xa)+parseInt(_0x5a7fe0(0x1c7))/0xb+parseInt(_0x5a7fe0(0x1ba))/0xc;if(_0x4865b8===_0x1e2741)break;else _0x19bf65['push'](_0x19bf65['shift']());}catch(_0x3c63fa){_0x19bf65['push'](_0x19bf65['shift']());}}}(_0x269c,0xcaf6b));import{FocusTracker as _0x400d65}from'ckeditor5/src/utils.js';function _0x269c(){var _0x2d9ad1=['focusCycler','div','269931lwWqrd','fire','true','4rJrtEW','focusTracker','19187vRgTqF','4295412rCbiQK','386667xgZyvC','97992rKmmKI','bindTemplate','120ZVWSKj','2928vBnHID','2SykREt','106788vohqYg','1924968isqpEV','230uGfnFl','createCollection','getFocusableElement','forwardCycle'];_0x269c=function(){return _0x2d9ad1;};return _0x269c();}function _0x4358(_0x504d13,_0xd3e3a3){var _0x269c69=_0x269c();return _0x4358=function(_0x43589c,_0x5c12f0){_0x43589c=_0x43589c-0x1b6;var _0x43c80a=_0x269c69[_0x43589c];return _0x43c80a;},_0x4358(_0x504d13,_0xd3e3a3);}import{View as _0x5a0224,FocusCycler as _0x513948}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5a0224{[_0x389b8a(0x1c5)];[_0x389b8a(0x1bf)];constructor(_0x1f4f73){var _0x30c1cc=_0x389b8a;super(_0x1f4f73),this[_0x30c1cc(0x1c5)]=new _0x400d65(),this[_0x30c1cc(0x1bf)]=new _0x513948({'focusables':this[_0x30c1cc(0x1bc)](),'focusTracker':this[_0x30c1cc(0x1c5)]});}[_0x389b8a(0x1bd)](){var _0x4846ea=_0x389b8a;return{'tag':_0x4846ea(0x1c0),'attributes':{'aria-hidden':_0x4846ea(0x1c3),'tabindex':'0'},'on':{'focus':this[_0x4846ea(0x1ca)]['to'](()=>{var _0x5c3cb2=_0x4846ea;this[_0x5c3cb2(0x1bf)][_0x5c3cb2(0x1c2)](_0x5c3cb2(0x1be));})}};}}
|