@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251214.0 → 0.0.0-nightly-next-20251214.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 _0x37ee(){const _0x965b3a=['1342925ILzkBp','isOfficialPlugin','ctxElement','imageInline','_configElement','8kFPHJo','insertImage','get','join','cleanupImage','_initSchema','fromCharCode','uploadcare','downcast','removeAttribute','357179nNvLLY','model','data-uc-image-id','uploader-','uc-config','querySelector','isRegistered','getAttribute','body','execute','369PSenzi','uploadcare.pubkey','_initImageProcessingIndicator','getSelectedElement','locale','PictureEditing','_initConversion','4FOxSiQ','upcast','35uuSJIL','replaceImageSource','appendChild','_initCtx','map','conversion','421506GdqiVu','uc-upload-ctx-provider','imageBlock','11515537vAZNnu','schema','contentLanguage','12QdFywK','afterInit','isPremiumPlugin','listenTo','commands','uploadcareImageId','href','pluginName','remove','UploadcareEditing','uploadcareImageReplace','config','_ctxElement','view','ucContextId','render','selection','attributeToAttribute','configElement','input[uploadcare-file-input]','add','closeMax','editing','173010LEIFBc','_initConfig','elementToAttribute','once','true','document','iconHrefResolver','uploadcare.uploader','475515SWhToe','init','requires','extend','#uc-icon-arrow-down','editor','\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','for','1069800IlXxRa','destroy'];_0x37ee=function(){return _0x965b3a;};return _0x37ee();}const _0x113fc3=_0x2db8;(function(_0x3ad154,_0x2ce57f){const _0x15c82c=_0x2db8,_0x27591b=_0x3ad154();while(!![]){try{const _0x572ba7=-parseInt(_0x15c82c(0x178))/0x1*(-parseInt(_0x15c82c(0x132))/0x2)+parseInt(_0x15c82c(0x15f))/0x3+parseInt(_0x15c82c(0x16e))/0x4*(-parseInt(_0x15c82c(0x169))/0x5)+-parseInt(_0x15c82c(0x13a))/0x6*(parseInt(_0x15c82c(0x134))/0x7)+parseInt(_0x15c82c(0x167))/0x8+parseInt(_0x15c82c(0x12b))/0x9*(-parseInt(_0x15c82c(0x157))/0xa)+parseInt(_0x15c82c(0x13d))/0xb*(parseInt(_0x15c82c(0x140))/0xc);if(_0x572ba7===_0x2ce57f)break;else _0x27591b['push'](_0x27591b['shift']());}catch(_0x579d32){_0x27591b['push'](_0x27591b['shift']());}}}(_0x37ee,0x6f409));import{Plugin as _0x54054d}from'ckeditor5/src/core.js';function _0x2db8(_0x187711,_0x43929a){const _0x37ee6a=_0x37ee();return _0x2db8=function(_0x2db8dc,_0x50e540){_0x2db8dc=_0x2db8dc-0x12b;let _0x4813a3=_0x37ee6a[_0x2db8dc];return _0x4813a3;},_0x2db8(_0x187711,_0x43929a);}import{Dialog as _0x293c51}from'ckeditor5/src/ui.js';import{createElement as _0x525512,global as _0x234f2d,uid as _0x440e54}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5f3483}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x471b66}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1799d1}from'./utils/editingutils.js';export class UploadcareEditing extends _0x54054d{[_0x113fc3(0x16d)]=null;[_0x113fc3(0x14c)]=null;static get[_0x113fc3(0x147)](){const _0x385ac7=_0x113fc3;return _0x385ac7(0x149);}static get[_0x113fc3(0x161)](){const _0x32123f=_0x113fc3;return[_0x32123f(0x130),_0x471b66,_0x293c51];}static get[_0x113fc3(0x16a)](){return!0x0;}static get[_0x113fc3(0x142)](){return!0x0;}[_0x113fc3(0x14e)];get[_0x113fc3(0x152)](){const _0x4a3660=_0x113fc3;return this[_0x4a3660(0x16d)];}get[_0x113fc3(0x16b)](){const _0x287e08=_0x113fc3;return this[_0x287e08(0x14c)];}constructor(_0x45e416){const _0x2478f4=_0x113fc3;super(_0x45e416),this[_0x2478f4(0x14e)]=_0x440e54();}[_0x113fc3(0x160)](){const _0x455330=_0x113fc3,_0x219a25=this[_0x455330(0x164)];_0x219a25[_0x455330(0x144)][_0x455330(0x154)](_0x455330(0x175),new _0x5f3483(_0x219a25));}[_0x113fc3(0x141)](){const _0x499a97=_0x113fc3;this[_0x499a97(0x173)](),this[_0x499a97(0x131)](),this[_0x499a97(0x158)](),this[_0x499a97(0x137)](),this[_0x499a97(0x12d)](),this[_0x499a97(0x143)](this[_0x499a97(0x164)],_0x499a97(0x168),()=>{const _0x1a6e39=_0x499a97;this[_0x1a6e39(0x16d)]&&(this[_0x1a6e39(0x16d)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x16d)]=null),this[_0x1a6e39(0x14c)]&&(this[_0x1a6e39(0x14c)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x14c)]=null);const _0x5f273d=_0x234f2d[_0x1a6e39(0x15c)][_0x1a6e39(0x17d)](_0x1a6e39(0x153));_0x5f273d&&_0x5f273d[_0x1a6e39(0x148)]();}),async function(_0x409a81){const _0x5d860d=_0x48e9dc([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x36616f=0x535f8c3a,_0x551bd1=0x5358f7da^_0x36616f,_0x299259=window[_0x48e9dc([0x44,0x61,0x74,0x65])][_0x48e9dc([0x6e,0x6f,0x77])](),_0x2c2827=_0x409a81[_0x48e9dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34e131=new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b974c=>{_0x2c2827[_0x48e9dc([0x6f,0x6e,0x63,0x65])](_0x48e9dc([0x72,0x65,0x61,0x64,0x79]),_0x4b974c);}),_0x351024={[_0x48e9dc([0x6b,0x74,0x79])]:_0x48e9dc([0x45,0x43]),[_0x48e9dc([0x75,0x73,0x65])]:_0x48e9dc([0x73,0x69,0x67]),[_0x48e9dc([0x63,0x72,0x76])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36]),[_0x48e9dc([0x78])]:_0x48e9dc([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]),[_0x48e9dc([0x79])]:_0x48e9dc([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]),[_0x48e9dc([0x61,0x6c,0x67])]:_0x48e9dc([0x45,0x53,0x32,0x35,0x36])},_0x445e40=_0x2c2827[_0x48e9dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48e9dc([0x67,0x65,0x74])](_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x210f06(){let _0x5a0aae,_0x234780=null,_0x57f502=null;try{if(_0x445e40==_0x48e9dc([0x47,0x50,0x4c]))return _0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a0aae=_0x3e14dc(),!_0x5a0aae)return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f502=_0x2b51a0(_0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a0aae[_0x48e9dc([0x6a,0x74,0x69])])),await _0x52ee37()?_0x4d67ef()?_0x2e786b()?_0x48e9dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1117fc()?(_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x234780=_0x11afb6(_0x48e9dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x234780=_0x11afb6(_0x48e9dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1274aa()):_0x48e9dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e786b(){const _0x431440=[_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])][_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x299259/0x3e8:0xe10*_0x551bd1;return _0x5a0aae[_0x48e9dc([0x65,0x78,0x70])]<_0x431440;}function _0x4d67ef(){const _0x3e59a6=_0x5a0aae[_0x48e9dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e59a6&&(!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a]))||!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x55,0x50,0x4c,0x43])));}function _0x1117fc(){const _0x10e494=_0x2db8,_0x1c1e2b=_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c1e2b||0x0==_0x1c1e2b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56a24b}=new URL(window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x10e494(0x146)]);if(_0x1c1e2b[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a24b))return!0x0;const _0x175fa3=_0x56a24b[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));return _0x1c1e2b[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf632db=>_0xf632db[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a])))[_0x48e9dc([0x6d,0x61,0x70])](_0x4be230=>_0x4be230[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])))[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x598c74=>_0x598c74[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x6d,0x61,0x70])](_0x212c6d=>Array(_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x212c6d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x66,0x69,0x6c,0x6c])](_0x212c6d[0x0]===_0x48e9dc([0x2a])?_0x48e9dc([0x2a]):'')[_0x48e9dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x212c6d))[_0x48e9dc([0x73,0x6f,0x6d,0x65])](_0x1e6cb7=>_0x175fa3[_0x48e9dc([0x65,0x76,0x65,0x72,0x79])]((_0x2ce6f7,_0x492b01)=>_0x1e6cb7[_0x492b01]===_0x2ce6f7||_0x1e6cb7[_0x492b01]===_0x48e9dc([0x2a])));}function _0x1274aa(){return _0x234780&&_0x57f502?new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb09964,_0x242ac6)=>{_0x234780[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0xb09964,_0x242ac6),_0x57f502[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x2c931a=>{_0x2c931a!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0xb09964(_0x2c931a);},_0x242ac6);}):_0x234780||_0x57f502||_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b51a0(_0x33c674,_0x1256f6){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x603e5b=>{if(_0xeea858())return _0x603e5b(_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]));_0x5a28f5(),_0x2c2827[_0x48e9dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18ddbf=!0x1;const _0x163306=_0x440e54();function _0x3ce52d(_0x23f8e4){return!!_0x23f8e4&&(typeof _0x23f8e4===_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23f8e4===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23f8e4[_0x48e9dc([0x74,0x68,0x65,0x6e])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23f8e4[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc03dd3(_0x1ca2f9){_0x54286f(_0x1ca2f9)[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5a306b=>{if(!_0x5a306b||_0x5a306b[_0x48e9dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48e9dc([0x6f,0x6b]))return _0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x580385(_0x5bc4e2(_0x163306+_0x1256f6))!=_0x5a306b[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x3571ed=>(_0x54a2a6(),_0x3571ed),()=>{const _0x549765=_0x56f779();return null==_0x549765?(_0x54a2a6(),_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])):_0x48e9dc(_0x299259-_0x549765>(0x7753083a^_0x36616f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x603e5b)[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c22a5=0x536962ba^_0x36616f;function _0x54a2a6(){const _0x3904c9=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0xe6c30a=_0x438a92(_0x580385(window[_0x48e9dc([0x4d,0x61,0x74,0x68])][_0x48e9dc([0x63,0x65,0x69,0x6c])](_0x299259/_0x3c22a5)));window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3904c9,_0xe6c30a);}function _0x56f779(){const _0x50ed75=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0x50a413=window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50ed75);return _0x50a413?window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438a92(_0x50a413),0x10)*_0x3c22a5:null;}function _0x54286f(_0x1f3793){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c14d8,_0x53052e)=>{_0x1f3793[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5c14d8,_0x53052e),window[_0x48e9dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53052e,0x535e58fa^_0x36616f);});}}_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5162fe,_0x39238f)=>{if(_0x39238f[0x0]!=_0x33c674)return _0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39238f[0x1]={..._0x39238f[0x1],[_0x48e9dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x163306};},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x68,0x69,0x67,0x68])}),_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x340833=>{_0x3ce52d(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18ddbf=!0x0,_0xc03dd3(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x6c,0x6f,0x77])}),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>{_0x18ddbf||_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xeea858(){return _0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48e9dc([0x61,0x75,0x74,0x6f]);}function _0x5a28f5(){_0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48e9dc([0x61,0x75,0x74,0x6f]);}}function _0x11afb6(_0x32d8e7){const _0x3071c2=[new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62fd4f=>setTimeout(_0x62fd4f,0x5356b2f6^_0x36616f)),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1275f7=>{let _0x38b536=0x0;_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x173589,_0x529e6d)=>{_0x529e6d[0x0][_0x48e9dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38b536++,_0x38b536==(0x535f8dc2^_0x36616f)&&(_0x1275f7(),_0x173589[_0x48e9dc([0x6f,0x66,0x66])]());});}))];return window[_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48e9dc([0x72,0x61,0x63,0x65])](_0x3071c2)[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>_0x32d8e7);}async function _0x13724b(){await _0x34e131,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a8c1(_0x345c33){const _0x1e4e3f=_0x499ef9();_0x2c2827[_0x1e4e3f]=_0x48e9dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x345c33,_0x345c33!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0x13724b();}function _0x499ef9(){const _0x197382=window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48e9dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48e9dc([0x6e,0x6f,0x77])]())[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48e9dc([0x2e]),'');let _0x57c745=_0x48e9dc([0x68]);for(let _0x1d311a=0x0;_0x1d311a<_0x197382[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d311a+=0x2){let _0xe2131=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x197382[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d311a,_0x1d311a+0x2));_0xe2131>=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe2131-=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57c745+=_0x5d860d[_0xe2131];}return _0x57c745;}function _0x3e14dc(){const _0xba0d3b=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));if(0x3!=_0xba0d3b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1df5bf(_0xba0d3b[0x1]);function _0x1df5bf(_0xfa8b31){const _0x5e9fbd=_0x333a15(_0xfa8b31);return _0x5e9fbd&&_0x350661()?_0x5e9fbd:null;function _0x350661(){const _0x59485f=_0x5e9fbd[_0x48e9dc([0x6a,0x74,0x69])],_0x1a4572=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x413ca2={..._0x5e9fbd,[_0x48e9dc([0x6a,0x74,0x69])]:_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x413ca2[_0x48e9dc([0x76,0x63])],_0x5bc4e2(_0x413ca2)==_0x1a4572;}}}async function _0x52ee37(){let _0x110983=!0x0;try{const _0x538984=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])),[_0x2c701b,_0x1cb341,_0x360893]=_0x538984;return _0x2cbb70(_0x2c701b),await _0x1ee8b4(_0x2c701b,_0x1cb341,_0x360893),_0x110983;}catch{return!0x1;}function _0x2cbb70(_0x49bce5){const _0x799725=_0x333a15(_0x49bce5);_0x799725&&_0x799725[_0x48e9dc([0x61,0x6c,0x67])]==_0x48e9dc([0x45,0x53,0x32,0x35,0x36])||(_0x110983=!0x1);}async function _0x1ee8b4(_0x28415d,_0x491889,_0x219015){const _0x3b5d09=window[_0x48e9dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48e9dc([0x66,0x72,0x6f,0x6d])](_0x192b6d(_0x219015),_0x472457=>_0x472457[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37950c=new window[(_0x48e9dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48e9dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28415d+_0x48e9dc([0x2e])+_0x491889),_0x64a236=window[_0x48e9dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48e9dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x64a236)return;const _0x39c263=await _0x64a236[_0x48e9dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48e9dc([0x6a,0x77,0x6b]),_0x351024,{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x64a236[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x68,0x61,0x73,0x68])]:{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39c263,_0x3b5d09,_0x37950c)||(_0x110983=!0x1);}}function _0x333a15(_0x38dd34){return _0x38dd34[_0x48e9dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48e9dc([0x65,0x79]))?JSON[_0x48e9dc([0x70,0x61,0x72,0x73,0x65])](_0x192b6d(_0x38dd34)):null;}function _0x192b6d(_0x5b2a73){return window[_0x48e9dc([0x61,0x74,0x6f,0x62])](_0x5b2a73[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48e9dc([0x2b]))[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48e9dc([0x2f])));}function _0x5bc4e2(_0x370724){let _0x1d7fe9=0x1505;function _0x3aabf7(_0xd9bd82){for(let _0x5975c6=0x0;_0x5975c6<_0xd9bd82[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5975c6++){const _0x5494a9=_0xd9bd82[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5975c6);_0x1d7fe9=(_0x1d7fe9<<0x5)+_0x1d7fe9+_0x5494a9,_0x1d7fe9&=_0x1d7fe9;}}function _0x156c61(_0x496589){Array[_0x48e9dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x496589)?_0x496589[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x156c61):_0x496589&&typeof _0x496589==_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48e9dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x496589)[_0x48e9dc([0x73,0x6f,0x72,0x74])]()[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x154443,_0x2f1ba4])=>{_0x3aabf7(_0x154443),_0x156c61(_0x2f1ba4);}):_0x3aabf7(window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x496589));}return _0x156c61(_0x370724),_0x1d7fe9>>>0x0;}function _0x580385(_0x3903d3){return _0x3903d3[_0x48e9dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48e9dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48e9dc([0x30]));}function _0x438a92(_0x4f8292){return _0x4f8292[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48e9dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48e9dc([0x6a,0x6f,0x69,0x6e])]('');}function _0xf2461c(){}function _0x48e9dc(_0x137e68){const _0x416ef3=_0x2db8;return _0x137e68[_0x416ef3(0x138)](_0x2cd532=>String[_0x416ef3(0x174)](_0x2cd532))[_0x416ef3(0x171)]('');}_0x25a8c1(await _0x210f06());}(this);}[_0x113fc3(0x173)](){const _0x44ec1d=_0x113fc3,_0x434349=this[_0x44ec1d(0x164)][_0x44ec1d(0x179)][_0x44ec1d(0x13e)];_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x13c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x13c),{'allowAttributes':[_0x44ec1d(0x145)]}),_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x16c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x16c),{'allowAttributes':[_0x44ec1d(0x145)]});}[_0x113fc3(0x131)](){const _0x408ba2=_0x113fc3,_0x300448=this[_0x408ba2(0x164)];_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x176))[_0x408ba2(0x151)]({'model':_0x408ba2(0x145),'view':_0x408ba2(0x17a)}),_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x133))[_0x408ba2(0x159)]({'model':{'key':_0x408ba2(0x145),'value':_0x146735=>_0x146735[_0x408ba2(0x17f)](_0x408ba2(0x17a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b084f=_0x300448[_0x408ba2(0x144)][_0x408ba2(0x170)](_0x408ba2(0x135));_0x2b084f&&this[_0x408ba2(0x143)](_0x2b084f,_0x408ba2(0x172),(_0x44d8ba,[_0xca65ba,_0x5e0e74])=>{const _0x3ff5f9=_0x408ba2;_0xca65ba[_0x3ff5f9(0x177)](_0x3ff5f9(0x145),_0x5e0e74);});}[_0x113fc3(0x158)](){const _0x258b11=_0x113fc3,_0x1c021e=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x15e))||{},_0x2964b8=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x12c))||'';this[_0x258b11(0x16d)]=_0x525512(_0x234f2d[_0x258b11(0x15c)],_0x258b11(0x17c),{..._0x1c021e,'pubkey':_0x2964b8,'ctx-name':_0x258b11(0x17b)+this[_0x258b11(0x14e)],'sourceList':'','imgOnly':_0x258b11(0x15b),'removeCopyright':_0x258b11(0x15b),'localeName':this[_0x258b11(0x164)][_0x258b11(0x12f)][_0x258b11(0x13f)],'externalSourcesEmbedCss':_0x258b11(0x165)}),this[_0x258b11(0x16d)][_0x258b11(0x15d)]=_0x694b1a=>{const _0x522fd2=_0x258b11;if(_0x522fd2(0x155)==_0x694b1a)return _0x522fd2(0x163);},_0x234f2d[_0x258b11(0x15c)][_0x258b11(0x180)][_0x258b11(0x136)](this[_0x258b11(0x16d)]);}[_0x113fc3(0x137)](){const _0x257fd6=_0x113fc3;this[_0x257fd6(0x14c)]=_0x525512(_0x234f2d[_0x257fd6(0x15c)],_0x257fd6(0x13b),{'ctx-name':_0x257fd6(0x17b)+this[_0x257fd6(0x14e)]}),_0x234f2d[_0x257fd6(0x15c)][_0x257fd6(0x180)][_0x257fd6(0x136)](this[_0x257fd6(0x14c)]);}[_0x113fc3(0x12d)](){const _0x444c82=_0x113fc3,_0x2ec014=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x16f));_0x2ec014&&this[_0x444c82(0x143)](_0x2ec014,_0x444c82(0x181),()=>{const _0x284300=_0x444c82,_0x288ad5=this[_0x284300(0x164)][_0x284300(0x179)][_0x284300(0x15c)][_0x284300(0x150)][_0x284300(0x12e)]();_0x288ad5&&_0x288ad5[_0x284300(0x17f)](_0x284300(0x145))&&this[_0x284300(0x164)][_0x284300(0x156)][_0x284300(0x14d)][_0x284300(0x15a)](_0x284300(0x14f),()=>{const _0x45294f=_0x284300;_0x1799d1(this[_0x45294f(0x164)],_0x288ad5);});});const _0x28cbbb=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x14a));_0x28cbbb&&this[_0x444c82(0x143)](_0x28cbbb,_0x444c82(0x181),()=>{const _0x528b2a=_0x444c82,_0x44cd7f=this[_0x528b2a(0x164)][_0x528b2a(0x179)][_0x528b2a(0x15c)][_0x528b2a(0x150)][_0x528b2a(0x12e)]();_0x44cd7f&&_0x44cd7f[_0x528b2a(0x17f)](_0x528b2a(0x145))&&this[_0x528b2a(0x164)][_0x528b2a(0x156)][_0x528b2a(0x14d)][_0x528b2a(0x15a)](_0x528b2a(0x14f),()=>{const _0x15e85b=_0x528b2a;_0x1799d1(this[_0x15e85b(0x164)],_0x44cd7f);});});}}
|
|
23
|
+
const _0x469c05=_0x31f7;function _0x31f7(_0x2f3c67,_0x57d0d9){const _0x536eed=_0x536e();return _0x31f7=function(_0x31f75a,_0x11393f){_0x31f75a=_0x31f75a-0xfc;let _0x36eeff=_0x536eed[_0x31f75a];return _0x36eeff;},_0x31f7(_0x2f3c67,_0x57d0d9);}(function(_0x33b084,_0x95d826){const _0x30a16b=_0x31f7,_0x47d162=_0x33b084();while(!![]){try{const _0x58ebf4=parseInt(_0x30a16b(0x104))/0x1+-parseInt(_0x30a16b(0x120))/0x2*(-parseInt(_0x30a16b(0x12d))/0x3)+-parseInt(_0x30a16b(0x10d))/0x4*(-parseInt(_0x30a16b(0x12f))/0x5)+-parseInt(_0x30a16b(0x116))/0x6+parseInt(_0x30a16b(0x14f))/0x7*(parseInt(_0x30a16b(0x111))/0x8)+-parseInt(_0x30a16b(0x129))/0x9+-parseInt(_0x30a16b(0x10b))/0xa;if(_0x58ebf4===_0x95d826)break;else _0x47d162['push'](_0x47d162['shift']());}catch(_0x3eabdb){_0x47d162['push'](_0x47d162['shift']());}}}(_0x536e,0x2d251));import{Plugin as _0x27a63a}from'ckeditor5/src/core.js';import{Dialog as _0x4b7b87}from'ckeditor5/src/ui.js';import{createElement as _0x239ace,global as _0x54c6e3,uid as _0x3916b6}from'ckeditor5/src/utils.js';function _0x536e(){const _0x2a13dc=['input[uploadcare-file-input]','140648bVFwwd','getSelectedElement','uploadcareImageReplace','requires','pluginName','1859622fJbsfL','cleanupImage','uc-config','ctxElement','render','init','uploadcareImageId','replaceImageSource','appendChild','afterInit','264MPzdBK','config','contentLanguage','get','add','document','uploadcare.pubkey','iconHrefResolver','getAttribute','784350ktxuRJ','model','join','configElement','7122PuafYm','view','307205cCTjkz','removeAttribute','commands','_initSchema','editor','uc-upload-ctx-provider','closeMax','downcast','isPremiumPlugin','uploader-','remove','fromCharCode','conversion','extend','#uc-icon-arrow-down','execute','_ctxElement','isRegistered','uploadcare','for','locale','querySelector','true','ucContextId','_initCtx','schema','imageBlock','isOfficialPlugin','once','upcast','insertImage','imageInline','14UQDimX','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','_configElement','destroy','_initConversion','PictureEditing','_initImageProcessingIndicator','body','elementToAttribute','selection','44738pquMyl','uploadcare.uploader','attributeToAttribute','data-uc-image-id','listenTo','map','href','1184730CmLZZc','UploadcareEditing','20ekUuTG','editing','_initConfig'];_0x536e=function(){return _0x2a13dc;};return _0x536e();}import{UploadcareCommand as _0x4d2d30}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2f0b4b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4a42b8}from'./utils/editingutils.js';export class UploadcareEditing extends _0x27a63a{[_0x469c05(0xfc)]=null;[_0x469c05(0x13f)]=null;static get[_0x469c05(0x115)](){const _0x4771c7=_0x469c05;return _0x4771c7(0x10c);}static get[_0x469c05(0x114)](){const _0x2454f3=_0x469c05;return[_0x2454f3(0xff),_0x2f0b4b,_0x4b7b87];}static get[_0x469c05(0x14a)](){return!0x0;}static get[_0x469c05(0x137)](){return!0x0;}[_0x469c05(0x146)];get[_0x469c05(0x12c)](){const _0x14879b=_0x469c05;return this[_0x14879b(0xfc)];}get[_0x469c05(0x119)](){const _0x675a59=_0x469c05;return this[_0x675a59(0x13f)];}constructor(_0x25c2b0){const _0x2ac2d6=_0x469c05;super(_0x25c2b0),this[_0x2ac2d6(0x146)]=_0x3916b6();}[_0x469c05(0x11b)](){const _0x5948e0=_0x469c05,_0x4cba34=this[_0x5948e0(0x133)];_0x4cba34[_0x5948e0(0x131)][_0x5948e0(0x124)](_0x5948e0(0x141),new _0x4d2d30(_0x4cba34));}[_0x469c05(0x11f)](){const _0x467f9e=_0x469c05;this[_0x467f9e(0x132)](),this[_0x467f9e(0xfe)](),this[_0x467f9e(0x10f)](),this[_0x467f9e(0x147)](),this[_0x467f9e(0x100)](),this[_0x467f9e(0x108)](this[_0x467f9e(0x133)],_0x467f9e(0xfd),()=>{const _0x4d74bc=_0x467f9e;this[_0x4d74bc(0xfc)]&&(this[_0x4d74bc(0xfc)][_0x4d74bc(0x139)](),this[_0x4d74bc(0xfc)]=null),this[_0x4d74bc(0x13f)]&&(this[_0x4d74bc(0x13f)][_0x4d74bc(0x139)](),this[_0x4d74bc(0x13f)]=null);const _0x4d008e=_0x54c6e3[_0x4d74bc(0x125)][_0x4d74bc(0x144)](_0x4d74bc(0x110));_0x4d008e&&_0x4d008e[_0x4d74bc(0x139)]();}),async function(_0xca0989){const _0x24f6cf=_0x5ae87b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x12d4fa=0x535f8c3a,_0xe8f651=0x5358f7da^_0x12d4fa,_0x4dd5ee=window[_0x5ae87b([0x44,0x61,0x74,0x65])][_0x5ae87b([0x6e,0x6f,0x77])](),_0x5b2cbf=_0xca0989[_0x5ae87b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31f74b=new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aa13d=>{_0x5b2cbf[_0x5ae87b([0x6f,0x6e,0x63,0x65])](_0x5ae87b([0x72,0x65,0x61,0x64,0x79]),_0x1aa13d);}),_0x474ea9={[_0x5ae87b([0x6b,0x74,0x79])]:_0x5ae87b([0x45,0x43]),[_0x5ae87b([0x75,0x73,0x65])]:_0x5ae87b([0x73,0x69,0x67]),[_0x5ae87b([0x63,0x72,0x76])]:_0x5ae87b([0x50,0x2d,0x32,0x35,0x36]),[_0x5ae87b([0x78])]:_0x5ae87b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5ae87b([0x79])]:_0x5ae87b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5ae87b([0x61,0x6c,0x67])]:_0x5ae87b([0x45,0x53,0x32,0x35,0x36])},_0x578d66=_0x5b2cbf[_0x5ae87b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ae87b([0x67,0x65,0x74])](_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe582ed(){let _0x1a7b77,_0xccadb2=null,_0x289f32=null;try{if(_0x578d66==_0x5ae87b([0x47,0x50,0x4c]))return _0x5ae87b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a7b77=_0x150eec(),!_0x1a7b77)return _0x5ae87b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a7b77[_0x5ae87b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x289f32=_0x523a09(_0x1a7b77[_0x5ae87b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a7b77[_0x5ae87b([0x6a,0x74,0x69])])),await _0x3222c5()?_0x198db5()?_0x51902a()?_0x5ae87b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b5e04()?(_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ae87b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xccadb2=_0x6697ff(_0x5ae87b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ae87b([0x74,0x72,0x69,0x61,0x6c])&&(_0xccadb2=_0x6697ff(_0x5ae87b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5348fb()):_0x5ae87b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ae87b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ae87b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ae87b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51902a(){const _0x105778=[_0x5ae87b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ae87b([0x74,0x72,0x69,0x61,0x6c])][_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4dd5ee/0x3e8:0xe10*_0xe8f651;return _0x1a7b77[_0x5ae87b([0x65,0x78,0x70])]<_0x105778;}function _0x198db5(){const _0x5050d=_0x1a7b77[_0x5ae87b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5050d&&(!!_0x5050d[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae87b([0x2a]))||!!_0x5050d[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae87b([0x55,0x50,0x4c,0x43])));}function _0x2b5e04(){const _0x1bbf5d=_0x31f7,_0x5d2ab2=_0x1a7b77[_0x5ae87b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d2ab2||0x0==_0x5d2ab2[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e5358}=new URL(window[_0x5ae87b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bbf5d(0x10a)]);if(_0x5d2ab2[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e5358))return!0x0;const _0x4ed9f8=_0x5e5358[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e]));return _0x5d2ab2[_0x5ae87b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522825=>_0x522825[_0x5ae87b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae87b([0x2a])))[_0x5ae87b([0x6d,0x61,0x70])](_0x2fe244=>_0x2fe244[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e])))[_0x5ae87b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b5a4f=>_0x5b5a4f[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ed9f8[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ae87b([0x6d,0x61,0x70])](_0xfd46e1=>Array(_0x4ed9f8[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd46e1[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ae87b([0x66,0x69,0x6c,0x6c])](_0xfd46e1[0x0]===_0x5ae87b([0x2a])?_0x5ae87b([0x2a]):'')[_0x5ae87b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd46e1))[_0x5ae87b([0x73,0x6f,0x6d,0x65])](_0x48f1f3=>_0x4ed9f8[_0x5ae87b([0x65,0x76,0x65,0x72,0x79])]((_0x245c4c,_0x1ecf74)=>_0x48f1f3[_0x1ecf74]===_0x245c4c||_0x48f1f3[_0x1ecf74]===_0x5ae87b([0x2a])));}function _0x5348fb(){return _0xccadb2&&_0x289f32?new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bb174,_0x89f7f2)=>{_0xccadb2[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x2bb174,_0x89f7f2),_0x289f32[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0xcc83f1=>{_0xcc83f1!=_0x5ae87b([0x56,0x61,0x6c,0x69,0x64])&&_0x2bb174(_0xcc83f1);},_0x89f7f2);}):_0xccadb2||_0x289f32||_0x5ae87b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x523a09(_0x10282b,_0x1afa2d){return new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fcb02=>{if(_0x540636())return _0x4fcb02(_0x5ae87b([0x56,0x61,0x6c,0x69,0x64]));_0x4bca9a(),_0x5b2cbf[_0x5ae87b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ae87b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa9a71f=!0x1;const _0x287b2e=_0x3916b6();function _0x4e34a3(_0x53398d){return!!_0x53398d&&(typeof _0x53398d===_0x5ae87b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53398d===_0x5ae87b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53398d[_0x5ae87b([0x74,0x68,0x65,0x6e])]===_0x5ae87b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53398d[_0x5ae87b([0x63,0x61,0x74,0x63,0x68])]===_0x5ae87b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x494960(_0x38cfd9){_0x38fc8c(_0x38cfd9)[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x3b0a65=>{if(!_0x3b0a65||_0x3b0a65[_0x5ae87b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ae87b([0x6f,0x6b]))return _0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1997c7(_0x42be6d(_0x287b2e+_0x1afa2d))!=_0x3b0a65[_0x5ae87b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ae87b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x3c3757=>(_0x57b92e(),_0x3c3757),()=>{const _0x563794=_0x37cd45();return null==_0x563794?(_0x57b92e(),_0x5ae87b([0x56,0x61,0x6c,0x69,0x64])):_0x5ae87b(_0x4dd5ee-_0x563794>(0x7753083a^_0x12d4fa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x4fcb02)[_0x5ae87b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fcb02(_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdab565=0x536962ba^_0x12d4fa;function _0x57b92e(){const _0x38f2b9=_0x5ae87b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1997c7(_0x42be6d(_0x10282b)),_0xcaa73c=_0x251f8e(_0x1997c7(window[_0x5ae87b([0x4d,0x61,0x74,0x68])][_0x5ae87b([0x63,0x65,0x69,0x6c])](_0x4dd5ee/_0xdab565)));window[_0x5ae87b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ae87b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38f2b9,_0xcaa73c);}function _0x37cd45(){const _0x69f71a=_0x5ae87b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1997c7(_0x42be6d(_0x10282b)),_0x3c2824=window[_0x5ae87b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ae87b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x69f71a);return _0x3c2824?window[_0x5ae87b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x251f8e(_0x3c2824),0x10)*_0xdab565:null;}function _0x38fc8c(_0x5cd8ff){return new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x561c0c,_0xd53041)=>{_0x5cd8ff[_0x5ae87b([0x74,0x68,0x65,0x6e])](_0x561c0c,_0xd53041),window[_0x5ae87b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd53041,0x535e58fa^_0x12d4fa);});}}_0x5b2cbf[_0x5ae87b([0x6f,0x6e])](_0x5ae87b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b652b,_0x5b53a3)=>{if(_0x5b53a3[0x0]!=_0x10282b)return _0x4fcb02(_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b53a3[0x1]={..._0x5b53a3[0x1],[_0x5ae87b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x287b2e};},{[_0x5ae87b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ae87b([0x68,0x69,0x67,0x68])}),_0x5b2cbf[_0x5ae87b([0x6f,0x6e])](_0x5ae87b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b9c01=>{_0x4e34a3(_0x5b9c01[_0x5ae87b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa9a71f=!0x0,_0x494960(_0x5b9c01[_0x5ae87b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ae87b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ae87b([0x6c,0x6f,0x77])}),_0x31f74b[_0x5ae87b([0x74,0x68,0x65,0x6e])](()=>{_0xa9a71f||_0x4fcb02(_0x5ae87b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x540636(){return _0x5b2cbf[_0x5ae87b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ae87b([0x76,0x69,0x65,0x77])][_0x5ae87b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ae87b([0x61,0x75,0x74,0x6f]);}function _0x4bca9a(){_0x5b2cbf[_0x5ae87b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ae87b([0x76,0x69,0x65,0x77])][_0x5ae87b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ae87b([0x61,0x75,0x74,0x6f]);}}function _0x6697ff(_0x1379bc){const _0x4633c6=[new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2a0c=>setTimeout(_0x5b2a0c,0x5356b2f6^_0x12d4fa)),_0x31f74b[_0x5ae87b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8f34=>{let _0x2e6f6c=0x0;_0x5b2cbf[_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae87b([0x6f,0x6e])](_0x5ae87b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28f2d7,_0x14c32d)=>{_0x14c32d[0x0][_0x5ae87b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e6f6c++,_0x2e6f6c==(0x535f8dc2^_0x12d4fa)&&(_0x4d8f34(),_0x28f2d7[_0x5ae87b([0x6f,0x66,0x66])]());});}))];return window[_0x5ae87b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ae87b([0x72,0x61,0x63,0x65])](_0x4633c6)[_0x5ae87b([0x74,0x68,0x65,0x6e])](()=>_0x1379bc);}async function _0x241b66(){await _0x31f74b,_0x5b2cbf[_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae87b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a9115,_0x5b2cbf[_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae87b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a9115,_0x5b2cbf[_0x5ae87b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ae87b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x879e9a(_0x54afeb){const _0xaf9b9d=_0x4c1bd1();_0x5b2cbf[_0xaf9b9d]=_0x5ae87b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54afeb,_0x54afeb!=_0x5ae87b([0x56,0x61,0x6c,0x69,0x64])&&_0x241b66();}function _0x4c1bd1(){const _0x54b15d=window[_0x5ae87b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ae87b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ae87b([0x6e,0x6f,0x77])]())[_0x5ae87b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ae87b([0x2e]),'');let _0x417e43=_0x5ae87b([0x68]);for(let _0x216169=0x0;_0x216169<_0x54b15d[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x216169+=0x2){let _0x1a00a7=window[_0x5ae87b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b15d[_0x5ae87b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x216169,_0x216169+0x2));_0x1a00a7>=_0x24f6cf[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a00a7-=_0x24f6cf[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x417e43+=_0x24f6cf[_0x1a00a7];}return _0x417e43;}function _0x150eec(){const _0x1c1da9=_0x578d66[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e]));if(0x3!=_0x1c1da9[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48b829(_0x1c1da9[0x1]);function _0x48b829(_0x7f4698){const _0x49e0bb=_0x3c9b60(_0x7f4698);return _0x49e0bb&&_0x23641b()?_0x49e0bb:null;function _0x23641b(){const _0x5d70cd=_0x49e0bb[_0x5ae87b([0x6a,0x74,0x69])],_0x5d2f3c=window[_0x5ae87b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d70cd[_0x5ae87b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d70cd[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44c4fa={..._0x49e0bb,[_0x5ae87b([0x6a,0x74,0x69])]:_0x5d70cd[_0x5ae87b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d70cd[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44c4fa[_0x5ae87b([0x76,0x63])],_0x42be6d(_0x44c4fa)==_0x5d2f3c;}}}async function _0x3222c5(){let _0x2b54fe=!0x0;try{const _0x5029b7=_0x578d66[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])](_0x5ae87b([0x2e])),[_0x412cf9,_0x404379,_0x7b8008]=_0x5029b7;return _0x598f68(_0x412cf9),await _0xd40203(_0x412cf9,_0x404379,_0x7b8008),_0x2b54fe;}catch{return!0x1;}function _0x598f68(_0x35dee){const _0xae0feb=_0x3c9b60(_0x35dee);_0xae0feb&&_0xae0feb[_0x5ae87b([0x61,0x6c,0x67])]==_0x5ae87b([0x45,0x53,0x32,0x35,0x36])||(_0x2b54fe=!0x1);}async function _0xd40203(_0x490909,_0x1feb76,_0x239cab){const _0x1aa8cc=window[_0x5ae87b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ae87b([0x66,0x72,0x6f,0x6d])](_0x2f6549(_0x239cab),_0x7492dc=>_0x7492dc[_0x5ae87b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52964e=new window[(_0x5ae87b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ae87b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x490909+_0x5ae87b([0x2e])+_0x1feb76),_0x262d3a=window[_0x5ae87b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ae87b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x262d3a)return;const _0x11b659=await _0x262d3a[_0x5ae87b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ae87b([0x6a,0x77,0x6b]),_0x474ea9,{[_0x5ae87b([0x6e,0x61,0x6d,0x65])]:_0x5ae87b([0x45,0x43,0x44,0x53,0x41]),[_0x5ae87b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ae87b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ae87b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x262d3a[_0x5ae87b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ae87b([0x6e,0x61,0x6d,0x65])]:_0x5ae87b([0x45,0x43,0x44,0x53,0x41]),[_0x5ae87b([0x68,0x61,0x73,0x68])]:{[_0x5ae87b([0x6e,0x61,0x6d,0x65])]:_0x5ae87b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11b659,_0x1aa8cc,_0x52964e)||(_0x2b54fe=!0x1);}}function _0x3c9b60(_0x5e4d24){return _0x5e4d24[_0x5ae87b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ae87b([0x65,0x79]))?JSON[_0x5ae87b([0x70,0x61,0x72,0x73,0x65])](_0x2f6549(_0x5e4d24)):null;}function _0x2f6549(_0x54df37){return window[_0x5ae87b([0x61,0x74,0x6f,0x62])](_0x54df37[_0x5ae87b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ae87b([0x2b]))[_0x5ae87b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ae87b([0x2f])));}function _0x42be6d(_0x37b1d3){let _0x24075e=0x1505;function _0x1beb19(_0x2e50e3){for(let _0x12a74f=0x0;_0x12a74f<_0x2e50e3[_0x5ae87b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12a74f++){const _0x18917b=_0x2e50e3[_0x5ae87b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12a74f);_0x24075e=(_0x24075e<<0x5)+_0x24075e+_0x18917b,_0x24075e&=_0x24075e;}}function _0x5644ec(_0x1d51f9){Array[_0x5ae87b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d51f9)?_0x1d51f9[_0x5ae87b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5644ec):_0x1d51f9&&typeof _0x1d51f9==_0x5ae87b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ae87b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d51f9)[_0x5ae87b([0x73,0x6f,0x72,0x74])]()[_0x5ae87b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ce791,_0xb112b])=>{_0x1beb19(_0x3ce791),_0x5644ec(_0xb112b);}):_0x1beb19(window[_0x5ae87b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d51f9));}return _0x5644ec(_0x37b1d3),_0x24075e>>>0x0;}function _0x1997c7(_0x3fddac){return _0x3fddac[_0x5ae87b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ae87b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ae87b([0x30]));}function _0x251f8e(_0x5a448f){return _0x5a448f[_0x5ae87b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ae87b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ae87b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a9115(){}function _0x5ae87b(_0x5107de){const _0x28d74f=_0x31f7;return _0x5107de[_0x28d74f(0x109)](_0xb77c1c=>String[_0x28d74f(0x13a)](_0xb77c1c))[_0x28d74f(0x12b)]('');}_0x879e9a(await _0xe582ed());}(this);}[_0x469c05(0x132)](){const _0x1c94d1=_0x469c05,_0x2bd19f=this[_0x1c94d1(0x133)][_0x1c94d1(0x12a)][_0x1c94d1(0x148)];_0x2bd19f[_0x1c94d1(0x140)](_0x1c94d1(0x149))&&_0x2bd19f[_0x1c94d1(0x13c)](_0x1c94d1(0x149),{'allowAttributes':[_0x1c94d1(0x11c)]}),_0x2bd19f[_0x1c94d1(0x140)](_0x1c94d1(0x14e))&&_0x2bd19f[_0x1c94d1(0x13c)](_0x1c94d1(0x14e),{'allowAttributes':[_0x1c94d1(0x11c)]});}[_0x469c05(0xfe)](){const _0x588434=_0x469c05,_0x1aee86=this[_0x588434(0x133)];_0x1aee86[_0x588434(0x13b)][_0x588434(0x142)](_0x588434(0x136))[_0x588434(0x106)]({'model':_0x588434(0x11c),'view':_0x588434(0x107)}),_0x1aee86[_0x588434(0x13b)][_0x588434(0x142)](_0x588434(0x14c))[_0x588434(0x102)]({'model':{'key':_0x588434(0x11c),'value':_0x37c0b4=>_0x37c0b4[_0x588434(0x128)](_0x588434(0x107))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29040d=_0x1aee86[_0x588434(0x131)][_0x588434(0x123)](_0x588434(0x11d));_0x29040d&&this[_0x588434(0x108)](_0x29040d,_0x588434(0x117),(_0x19ef3d,[_0xb75f30,_0x38353e])=>{const _0x498b1b=_0x588434;_0xb75f30[_0x498b1b(0x130)](_0x498b1b(0x11c),_0x38353e);});}[_0x469c05(0x10f)](){const _0x341e0e=_0x469c05,_0x144345=this[_0x341e0e(0x133)][_0x341e0e(0x121)][_0x341e0e(0x123)](_0x341e0e(0x105))||{},_0x508f40=this[_0x341e0e(0x133)][_0x341e0e(0x121)][_0x341e0e(0x123)](_0x341e0e(0x126))||'';this[_0x341e0e(0xfc)]=_0x239ace(_0x54c6e3[_0x341e0e(0x125)],_0x341e0e(0x118),{..._0x144345,'pubkey':_0x508f40,'ctx-name':_0x341e0e(0x138)+this[_0x341e0e(0x146)],'sourceList':'','imgOnly':_0x341e0e(0x145),'removeCopyright':_0x341e0e(0x145),'localeName':this[_0x341e0e(0x133)][_0x341e0e(0x143)][_0x341e0e(0x122)],'externalSourcesEmbedCss':_0x341e0e(0x150)}),this[_0x341e0e(0xfc)][_0x341e0e(0x127)]=_0x353c4a=>{const _0x46dd79=_0x341e0e;if(_0x46dd79(0x135)==_0x353c4a)return _0x46dd79(0x13d);},_0x54c6e3[_0x341e0e(0x125)][_0x341e0e(0x101)][_0x341e0e(0x11e)](this[_0x341e0e(0xfc)]);}[_0x469c05(0x147)](){const _0x38bba5=_0x469c05;this[_0x38bba5(0x13f)]=_0x239ace(_0x54c6e3[_0x38bba5(0x125)],_0x38bba5(0x134),{'ctx-name':_0x38bba5(0x138)+this[_0x38bba5(0x146)]}),_0x54c6e3[_0x38bba5(0x125)][_0x38bba5(0x101)][_0x38bba5(0x11e)](this[_0x38bba5(0x13f)]);}[_0x469c05(0x100)](){const _0x16b0d0=_0x469c05,_0x2a7543=this[_0x16b0d0(0x133)][_0x16b0d0(0x131)][_0x16b0d0(0x123)](_0x16b0d0(0x14d));_0x2a7543&&this[_0x16b0d0(0x108)](_0x2a7543,_0x16b0d0(0x13e),()=>{const _0x127474=_0x16b0d0,_0x3b7f5d=this[_0x127474(0x133)][_0x127474(0x12a)][_0x127474(0x125)][_0x127474(0x103)][_0x127474(0x112)]();_0x3b7f5d&&_0x3b7f5d[_0x127474(0x128)](_0x127474(0x11c))&&this[_0x127474(0x133)][_0x127474(0x10e)][_0x127474(0x12e)][_0x127474(0x14b)](_0x127474(0x11a),()=>{const _0x2769c9=_0x127474;_0x4a42b8(this[_0x2769c9(0x133)],_0x3b7f5d);});});const _0x4f703b=this[_0x16b0d0(0x133)][_0x16b0d0(0x131)][_0x16b0d0(0x123)](_0x16b0d0(0x113));_0x4f703b&&this[_0x16b0d0(0x108)](_0x4f703b,_0x16b0d0(0x13e),()=>{const _0x397b47=_0x16b0d0,_0x58f204=this[_0x397b47(0x133)][_0x397b47(0x12a)][_0x397b47(0x125)][_0x397b47(0x103)][_0x397b47(0x112)]();_0x58f204&&_0x58f204[_0x397b47(0x128)](_0x397b47(0x11c))&&this[_0x397b47(0x133)][_0x397b47(0x10e)][_0x397b47(0x12e)][_0x397b47(0x14b)](_0x397b47(0x11a),()=>{const _0x7cf455=_0x397b47;_0x4a42b8(this[_0x7cf455(0x133)],_0x58f204);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4d69ee,ObservableMixin as _0x3c8574}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2c8ef5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x45426e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2bfa5a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x51e4d3}from'../../utils/uploadutils.js';import{getImageUrls as _0x194f1f,getImageDimension as _0x8e5ccc}from'../../utils/editingutils.js';import{isAncestor as _0x47a178}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3c8574(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x42b850,_0xf3a290,_0x121f45){super(),this['_editor']=_0x42b850,this['_dialog']=_0xf3a290,this['_imageElement']=_0x121f45,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 _0x3db072=this['_imageElement'],_0x25dc76=_0x3db072['getAttribute']('uploadcareImageId'),_0x273e3b=_0x3db072['getAttribute']('src');if(_0x25dc76)await this['_loadImageInfo'](_0x25dc76,_0x273e3b);else{if(this['_imageCache']['has'](_0x273e3b)){const _0x6b05bc=this['_imageCache']['get'](_0x273e3b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6b05bc['url'],this['imageDimension']=_0x6b05bc['dimension'],this['imageId']=_0x6b05bc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3fb31b}=this['_editor'],t=_0x3fb31b['t'],_0x265d4d=new _0x2bfa5a(_0x3fb31b,this['imageStatus'],this['_attributes']);_0x265d4d['bind']('status')['to'](this,'imageStatus'),_0x265d4d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x265d4d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x265d4d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x265d4d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45426e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x265d4d,'position':_0x2c8ef5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x265d4d['focus']();},'onHide':()=>{_0x265d4d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x415109=>!_0x47a178(_0x415109,_0x265d4d['element'])}});}['_loadImageInfo'](_0x108b64,_0x536500){return _0x51e4d3['getInfo'](_0x108b64,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1a1c78=>{const {width:_0x5db3d8,height:_0x230a51}=_0x1a1c78['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x536500,this['imageDimension']={'width':_0x5db3d8,'height':_0x230a51},this['imageId']=_0x108b64;})['catch'](_0x5520c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5520c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2a2812,_0x3435af){return this['_getImageAsFile'](_0x2a2812)['then'](_0x5ed4f9=>_0x51e4d3['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':_0x3435af['signal'],'file':_0x5ed4f9,'onProgress':_0x3c2f64=>{_0x3c2f64&&_0x3c2f64['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3c2f64['value']));}}))['then'](_0x5cbece=>{const {width:_0x39eeea,height:_0x150a1d}=_0x5cbece['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cbece['cdnUrl'],this['imageDimension']={'width':_0x39eeea,'height':_0x150a1d},this['imageId']=_0x5cbece['uuid'],this['imageUploadProgress']=null;const _0x530808=_0x2a2812['getAttribute']('src');this['_imageCache']['set'](_0x530808,{'id':_0x5cbece['uuid'],'url':_0x5cbece['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ec21d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ec21d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x234112,_0x1e3fb9){_0x234112['on']('apply',(_0x334b40,_0x285595)=>{this['_replaceImage'](_0x1e3fb9,_0x285595['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x234112['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x234112['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2f6015,_0x39a5a5,_0x2e7fb4){const _0x4b4902=this['_editor'],{width:_0x3d869f,height:_0x1958da}=_0x8e5ccc(_0x39a5a5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x534a2b,imageSources:_0x4cf1b4}=_0x194f1f(_0x39a5a5,_0x3d869f);_0x4b4902['model']['change'](_0xf80c73=>{if('$graveyard'===_0x2f6015['root']['rootName']){_0x4b4902['execute']('insertImage',{'imageType':_0x2f6015['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2f6015['getAttributes']()),'uploadcareImageId':_0x2e7fb4,'src':_0x534a2b,'sources':_0x4cf1b4,'width':_0x3d869f,'height':_0x1958da}});const _0x429339=_0x2f6015['getChildren']();_0x2f6015=_0x4b4902['model']['document']['selection']['getSelectedElement']();for(const _0x40b5b9 of _0x429339)_0xf80c73['append'](_0xf80c73['cloneElement'](_0x40b5b9),_0x2f6015);}else _0xf80c73['setSelection'](_0x2f6015,'on'),_0x4b4902['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2f6015['getAttributes']()),'uploadcareImageId':_0x2e7fb4,'src':_0x534a2b,'sources':_0x4cf1b4,'width':_0x3d869f,'height':_0x1958da},_0x2f6015);_0xf80c73['setSelection'](_0x2f6015,'on');});}async['_getImageAsFile'](_0xf64b46){const _0x4059af=_0x4d69ee['window'],_0x274682=_0x4d69ee['document']['location']['href'],_0x3a5b5f=new _0x4059af['URL'](_0xf64b46['getAttribute']('src'),_0x274682);if('data:'===_0x3a5b5f['protocol']){const _0x382621=_0x3a5b5f['href']['split'](','),_0x59fd95=_0x382621[0x0]['match'](/:(.*?);/)[0x1],_0x5e8f2a=_0x59fd95['split']('/')[0x1],_0x10c000=_0x4059af['atob'](_0x382621[_0x382621['length']-0x1]);let _0x41744c=_0x10c000['length'];const _0x295c7d=new _0x4059af['Uint8Array'](_0x41744c);for(;_0x41744c--;)_0x295c7d[_0x41744c]=_0x10c000['charCodeAt'](_0x41744c);return new _0x4059af['File']([_0x295c7d],'image.'+_0x5e8f2a,{'type':_0x59fd95});}const _0x4f7e92=_0x3a5b5f['href']['split']('/'),_0x3041e2=_0x4f7e92[_0x4f7e92['length']-0x1],_0x3482c6=_0x3041e2['split']('.')[0x1];return _0x4059af['fetch'](_0x3a5b5f['href'])['then'](_0x38cbef=>_0x38cbef['clone']()['blob']())['then'](_0x576862=>new _0x4059af['File']([_0x576862],_0x3041e2,{'type':'image/'+_0x3482c6}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x31a8(_0x33274d,_0x21326d){const _0x199225=_0x1992();return _0x31a8=function(_0x31a8e0,_0x42add1){_0x31a8e0=_0x31a8e0-0x1e7;let _0x4ac64e=_0x199225[_0x31a8e0];return _0x4ac64e;},_0x31a8(_0x33274d,_0x21326d);}function _0x1992(){const _0xbc14d1=['imageSrc','2309362ckQCZS','bindTemplate','5276736MEADjf','16wOJsYD','uc-light','30QREWoZ','6BdypIG','8753634jNtDig','1000254SUplDq','ck-uploadcare-theme','140966tqrEng','setTemplate','144543zHTHRb','8BdCBQZ','set','1694620WeQbjh','uc-cloud-image-editor','image-edit'];_0x1992=function(){return _0xbc14d1;};return _0x1992();}(function(_0x105ae4,_0x516044){const _0x50768f=_0x31a8,_0x1521dc=_0x105ae4();while(!![]){try{const _0x230b78=-parseInt(_0x50768f(0x1f7))/0x1+parseInt(_0x50768f(0x1f3))/0x2*(parseInt(_0x50768f(0x1f1))/0x3)+parseInt(_0x50768f(0x1f8))/0x4*(parseInt(_0x50768f(0x1e7))/0x5)+parseInt(_0x50768f(0x1ed))/0x6+parseInt(_0x50768f(0x1f5))/0x7*(parseInt(_0x50768f(0x1ee))/0x8)+-parseInt(_0x50768f(0x1f2))/0x9+parseInt(_0x50768f(0x1f0))/0xa*(-parseInt(_0x50768f(0x1eb))/0xb);if(_0x230b78===_0x516044)break;else _0x1521dc['push'](_0x1521dc['shift']());}catch(_0x354c2f){_0x1521dc['push'](_0x1521dc['shift']());}}}(_0x1992,0xcfb97));import{View as _0x1aa154}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1aa154{constructor(_0x312293,_0x15af33){const _0x3e7824=_0x31a8;super(_0x312293);const _0x2fd1b8=this[_0x3e7824(0x1ec)];this[_0x3e7824(0x1f9)](_0x3e7824(0x1ea),''),this[_0x3e7824(0x1f6)]({'tag':_0x3e7824(0x1e8),'attributes':{..._0x15af33,'class':[_0x3e7824(0x1ef),_0x3e7824(0x1f4)],'ctx-name':_0x3e7824(0x1e9),'cdn-url':_0x2fd1b8['to'](_0x3e7824(0x1ea))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0xdb3477}from'ckeditor5/src/icons.js';import{ButtonView as _0x2da8d5,IconView as _0x50941f,View as _0x1eb55f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1eb55f{constructor(_0xe7743f){super(_0xe7743f);const t=_0xe7743f['t'];this['set']('errorType',null);const _0x3762ff=new _0x2da8d5(_0xe7743f);_0x3762ff['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3762ff['withText']=!0x0,_0x3762ff['class']='ck-button-action',_0x3762ff['on']('execute',()=>{this['fire']('retry');}),_0x3762ff['bind']('isVisible')['to'](this,'errorType',_0x1e761b=>'NotFound'!==_0x1e761b);const _0x2f5a05=new _0x50941f();_0x2f5a05['content']=_0xdb3477,_0x2f5a05['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x8eb934=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':[_0x2f5a05,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x8eb934['to']('errorType',_0x18cf12=>t('NotFound'!==_0x18cf12?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3762ff]},{'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 _0x46cfbe,View as _0xfb2fec}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xfb2fec{constructor(_0x251870){super(_0x251870);const t=_0x251870['t'],_0x59a891=this['bindTemplate'],_0x3f36e4=new _0x46cfbe();_0x3f36e4['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':[_0x3f36e4,{'text':_0x59a891['to']('imageUploadProgress',_0x3113bb=>t('Loading\x20image...')+'\x20('+(_0x3113bb||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3107(){const _0x1c0534=['addMany','nodeName','_focusableView','fire','1861992BcgsdV','set','observe','_editingView','render','element','detail','setTemplate','apply','addEventListener','retry','createCollection','_setView','target','_waitForImageEditorComponent','ck-uploadcare-form','2RhZUaU','getFocusableElement','error','cancel','clear','244886ejMnKI','_errorView','516mcAcuq','length','cdnUrl','add','722583qAZvAg','ready','change:status','once','_loadingView','status','div','disconnect','addedNodes','_items','uc-cloud-image-editor','uploading','filter','10077GKAvBU','929840sYZzKR','focus','toLowerCase','querySelector','9863nQbxSy','_addErrorViewListeners','494200sYmYtK','_addUploadcareImageEditorListeners','ck-reset_all-excluded','40HUmJFE'];_0x3107=function(){return _0x1c0534;};return _0x3107();}const _0x48647=_0x28e6;(function(_0x5a4fc4,_0x6d1b5){const _0x5c3904=_0x28e6,_0x58fd12=_0x5a4fc4();while(!![]){try{const _0xb67d2f=-parseInt(_0x5c3904(0xb2))/0x1*(parseInt(_0x5c3904(0xad))/0x2)+parseInt(_0x5c3904(0x8e))/0x3+-parseInt(_0x5c3904(0x95))/0x4+-parseInt(_0x5c3904(0x8f))/0x5+-parseInt(_0x5c3904(0xb4))/0x6*(-parseInt(_0x5c3904(0x93))/0x7)+parseInt(_0x5c3904(0x9d))/0x8+-parseInt(_0x5c3904(0x81))/0x9*(-parseInt(_0x5c3904(0x98))/0xa);if(_0xb67d2f===_0x6d1b5)break;else _0x58fd12['push'](_0x58fd12['shift']());}catch(_0x483a2e){_0x58fd12['push'](_0x58fd12['shift']());}}}(_0x3107,0x1e47a));import{View as _0x14d6bd}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3749aa}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3afba4}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x8425c9}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x29a0a3}from'../../utils/dialogfocusmanagerview.js';function _0x28e6(_0x3a944c,_0x1a6f29){const _0x310783=_0x3107();return _0x28e6=function(_0x28e64a,_0x345dd5){_0x28e64a=_0x28e64a-0x7f;let _0x1f0e05=_0x310783[_0x28e64a];return _0x1f0e05;},_0x28e6(_0x3a944c,_0x1a6f29);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x29a0a3{[_0x48647(0x8a)];[_0x48647(0x85)];[_0x48647(0xb3)];[_0x48647(0xa0)];[_0x48647(0x9b)];constructor(_0x2b8b01,_0x4cbbc7,_0x4fdc71){const _0x187485=_0x48647;super(_0x2b8b01),this[_0x187485(0x8a)]=this[_0x187485(0xa8)](),this[_0x187485(0x85)]=new _0x3749aa(_0x2b8b01),this[_0x187485(0xb3)]=new _0x3afba4(_0x2b8b01),this[_0x187485(0xa0)]=new _0x8425c9(_0x2b8b01,_0x4fdc71),this[_0x187485(0x9b)]=new _0x14d6bd(_0x2b8b01),this[_0x187485(0x9b)][_0x187485(0xa4)](this[_0x187485(0xae)]()),this[_0x187485(0x9e)](_0x187485(0x86),_0x4cbbc7),this[_0x187485(0xa4)]({'tag':_0x187485(0x87),'attributes':{'class':['ck',_0x187485(0x97),_0x187485(0xac)],'tabindex':'-1'},'children':this[_0x187485(0x8a)]}),this[_0x187485(0xa9)](),this[_0x187485(0x84)](_0x187485(0xa1),()=>{const _0x1a66b4=_0x187485;this[_0x1a66b4(0xab)](this[_0x1a66b4(0xa2)],_0x112b76=>{const _0x3f5b9d=_0x1a66b4;this[_0x3f5b9d(0x96)](_0x112b76);});}),this['on'](_0x187485(0x83),()=>{const _0x583c2a=_0x187485;this[_0x583c2a(0xa9)]();}),this[_0x187485(0x94)]();}[_0x48647(0x90)](){const _0x14cf0a=_0x48647;this[_0x14cf0a(0xa2)][_0x14cf0a(0x90)]();}[_0x48647(0xa9)](){const _0x5a4b96=_0x48647;switch(this[_0x5a4b96(0x8a)][_0x5a4b96(0xb1)](),this[_0x5a4b96(0x86)]){case _0x5a4b96(0x8c):this[_0x5a4b96(0x8a)][_0x5a4b96(0x80)](this[_0x5a4b96(0x85)]);break;case _0x5a4b96(0xaf):this[_0x5a4b96(0x8a)][_0x5a4b96(0x80)](this[_0x5a4b96(0xb3)]);break;case _0x5a4b96(0x82):this[_0x5a4b96(0x8a)][_0x5a4b96(0x99)]([this[_0x5a4b96(0xa0)],this[_0x5a4b96(0x9b)]]);}}[_0x48647(0xab)](_0x29783b,_0x543b00){const _0xd2446a=_0x48647,_0x76cb7c=_0xd2446a(0x8b),_0x1a6970=_0x29783b[_0xd2446a(0x92)](_0x76cb7c);if(_0x1a6970)return _0x543b00(_0x1a6970);const _0x4ace2a=new MutationObserver(_0x4b9e35=>{const _0x3c808e=_0xd2446a,_0x5b599b=_0x4b9e35[_0x3c808e(0x8d)](_0x349c0c=>_0x349c0c[_0x3c808e(0xaa)]===_0x29783b&&_0x349c0c[_0x3c808e(0x89)][_0x3c808e(0xb5)]>0x0&&_0x349c0c[_0x3c808e(0x89)][0x0][_0x3c808e(0x9a)][_0x3c808e(0x91)]()===_0x76cb7c);_0x5b599b[_0x3c808e(0xb5)]&&(_0x4ace2a[_0x3c808e(0x88)](),_0x543b00(_0x5b599b[0x0][_0x3c808e(0x89)][0x0]));});_0x4ace2a[_0xd2446a(0x9f)](_0x29783b,{'childList':!0x0,'subtree':!0x0});}[_0x48647(0x96)](_0x49783a){const _0x2ffe97=_0x48647;_0x49783a[_0x2ffe97(0xa6)](_0x2ffe97(0xa5),_0x2498c9=>{const _0xc3b2f6=_0x2ffe97;this[_0xc3b2f6(0x9c)](_0xc3b2f6(0xa5),{'imageSrc':_0x2498c9[_0xc3b2f6(0xa3)][_0xc3b2f6(0x7f)]});}),_0x49783a[_0x2ffe97(0xa6)](_0x2ffe97(0xb0),()=>{const _0x46a7b1=_0x2ffe97;this[_0x46a7b1(0x9c)](_0x46a7b1(0xb0));});}[_0x48647(0x94)](){const _0x4e4987=_0x48647;this[_0x4e4987(0xb3)]['on'](_0x4e4987(0xa7),()=>{const _0x12f41a=_0x4e4987;this[_0x12f41a(0x9c)](_0x12f41a(0xa7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x273ea8=_0x2be5;(function(_0x3533b0,_0x4749e4){const _0x17b24b=_0x2be5,_0x3d3a3a=_0x3533b0();while(!![]){try{const _0x508466=parseInt(_0x17b24b(0x8d))/0x1*(-parseInt(_0x17b24b(0x82))/0x2)+-parseInt(_0x17b24b(0x83))/0x3+parseInt(_0x17b24b(0x84))/0x4*(-parseInt(_0x17b24b(0x92))/0x5)+-parseInt(_0x17b24b(0x7b))/0x6+parseInt(_0x17b24b(0x77))/0x7+parseInt(_0x17b24b(0x73))/0x8*(-parseInt(_0x17b24b(0x93))/0x9)+-parseInt(_0x17b24b(0x8f))/0xa*(-parseInt(_0x17b24b(0x80))/0xb);if(_0x508466===_0x4749e4)break;else _0x3d3a3a['push'](_0x3d3a3a['shift']());}catch(_0x3d854f){_0x3d3a3a['push'](_0x3d3a3a['shift']());}}}(_0x4993,0x32d9c));import{Command as _0x400659}from'ckeditor5/src/core.js';import{Dialog as _0x310dbb}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x234e1c}from'./ui/uploadcareimageeditcontroller.js';function _0x2be5(_0x2615a8,_0x2807cf){const _0x4993a1=_0x4993();return _0x2be5=function(_0x2be5db,_0x46acd1){_0x2be5db=_0x2be5db-0x73;let _0xd200dc=_0x4993a1[_0x2be5db];return _0xd200dc;},_0x2be5(_0x2615a8,_0x2807cf);}import{createEditabilityChecker as _0xdafa76}from'../utils/editingutils.js';function _0x4993(){const _0x54b19c=['model','1485512KVReCD','isActive','get','requires','1979700bClpbn','imageEditController','config','set','imageBlock','40997SoUpzs','imageInline','8EEZYRH','931782zjNmAC','528rdDGlE','bind','_isEditable','element','uploadcare.allowExternalImagesEditing','editor','unbind','isEnabled','getSelectedElement','50681VfUNcC','refresh','3590mIILUl','plugins','execute','12920waMiim','1431dkVqZI','7928mEyKgU','selection','document'];_0x4993=function(){return _0x54b19c;};return _0x4993();}export class UploadcareImageEditCommand extends _0x400659{[_0x273ea8(0x7c)];static get[_0x273ea8(0x7a)](){return[_0x310dbb];}[_0x273ea8(0x86)];constructor(_0x217c15){const _0x3b0fe5=_0x273ea8;super(_0x217c15),this[_0x3b0fe5(0x7c)]=void 0x0,this[_0x3b0fe5(0x86)]=_0xdafa76(_0x217c15[_0x3b0fe5(0x7d)][_0x3b0fe5(0x79)](_0x3b0fe5(0x88))||[]),this[_0x3b0fe5(0x7e)]({'isActive':!0x1});}[_0x273ea8(0x8e)](){const _0x4983c5=_0x273ea8,_0x2ae18d=this[_0x4983c5(0x89)][_0x4983c5(0x76)][_0x4983c5(0x75)][_0x4983c5(0x74)][_0x4983c5(0x8c)]();this[_0x4983c5(0x8b)]=this[_0x4983c5(0x86)](_0x2ae18d);}[_0x273ea8(0x91)](){const _0x1198db=_0x273ea8;this[_0x1198db(0x7c)]&&(this[_0x1198db(0x8a)](_0x1198db(0x78)),this[_0x1198db(0x7c)]=void 0x0);const _0x3d20ac=this[_0x1198db(0x89)][_0x1198db(0x76)][_0x1198db(0x75)][_0x1198db(0x74)][_0x1198db(0x8c)]();_0x3d20ac&&(_0x3d20ac['is'](_0x1198db(0x87),_0x1198db(0x7f))||_0x3d20ac['is'](_0x1198db(0x87),_0x1198db(0x81)))&&(this[_0x1198db(0x7c)]=new _0x234e1c(this[_0x1198db(0x89)],this[_0x1198db(0x89)][_0x1198db(0x90)][_0x1198db(0x79)](_0x310dbb),_0x3d20ac),this[_0x1198db(0x85)](_0x1198db(0x78))['to'](this[_0x1198db(0x7c)],_0x1198db(0x78)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4302b9=_0x53ab;(function(_0x408c21,_0x359838){const _0x5ab6bf=_0x53ab,_0x2f006e=_0x408c21();while(!![]){try{const _0x3f9539=parseInt(_0x5ab6bf(0x1d9))/0x1+-parseInt(_0x5ab6bf(0x1e8))/0x2+parseInt(_0x5ab6bf(0x1e3))/0x3+parseInt(_0x5ab6bf(0x1e1))/0x4*(parseInt(_0x5ab6bf(0x1da))/0x5)+parseInt(_0x5ab6bf(0x1dc))/0x6*(-parseInt(_0x5ab6bf(0x1db))/0x7)+-parseInt(_0x5ab6bf(0x1ec))/0x8*(parseInt(_0x5ab6bf(0x1de))/0x9)+parseInt(_0x5ab6bf(0x1e9))/0xa;if(_0x3f9539===_0x359838)break;else _0x2f006e['push'](_0x2f006e['shift']());}catch(_0x10ce7c){_0x2f006e['push'](_0x2f006e['shift']());}}}(_0x407b,0x3c875));import{Plugin as _0x3368ab}from'ckeditor5/src/core.js';import{Notification as _0xc32748}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1f6355}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x10715e}from'./uploadcareimagereplacecommand.js';function _0x53ab(_0x1393d4,_0x463e7d){const _0x407bcf=_0x407b();return _0x53ab=function(_0x53ab41,_0x2ed31f){_0x53ab41=_0x53ab41-0x1d7;let _0x764175=_0x407bcf[_0x53ab41];return _0x764175;},_0x53ab(_0x1393d4,_0x463e7d);}import{UploadcareEditing as _0x9f9e49}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3368ab{static get[_0x4302b9(0x1e0)](){const _0x12de2b=_0x4302b9;return _0x12de2b(0x1eb);}static get[_0x4302b9(0x1e6)](){const _0x1af4ed=_0x4302b9;return[_0x9f9e49,_0xc32748,_0x1af4ed(0x1ea),_0x1af4ed(0x1e5)];}static get[_0x4302b9(0x1df)](){return!0x0;}static get[_0x4302b9(0x1dd)](){return!0x0;}[_0x4302b9(0x1d7)](){const _0x103a49=_0x4302b9,{editor:_0x475b73}=this;_0x475b73[_0x103a49(0x1e4)][_0x103a49(0x1e7)](_0x103a49(0x1d8),new _0x1f6355(_0x475b73)),_0x475b73[_0x103a49(0x1e4)][_0x103a49(0x1e7)](_0x103a49(0x1e2),new _0x10715e(_0x475b73));}}function _0x407b(){const _0x314541=['623399aeAMIy','30EEEwVH','isPremiumPlugin','9kQgyCL','isOfficialPlugin','pluginName','36804WxNeYu','uploadcareImageReplace','415362Cpuvme','commands','ImageEditing','requires','add','158744cNXzIm','3308170PFOPzi','ImageUtils','UploadcareImageEditEditing','926872qNtxYs','init','uploadcareImageEdit','317959lUOggi','55DbLxxK'];_0x407b=function(){return _0x314541;};return _0x407b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1fa909}from'ckeditor5/src/core.js';import{ButtonView as _0x48c017}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4c1cd7}from'ckeditor5/src/icons.js';import{createElement as _0x37c580}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 _0x1fa909{['_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 _0x329efe=this['editor'];_0x329efe['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1d6553=>{const _0x162e4f=_0x329efe['commands']['get']('uploadcareImageEdit'),_0x44ce59=new _0x48c017(_0x1d6553),t=_0x1d6553['t'];return _0x44ce59['set']({'icon':_0x4c1cd7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x44ce59['bind']('isEnabled')['to'](_0x162e4f),_0x44ce59['bind']('isOn')['to'](_0x162e4f,'isActive'),this['listenTo'](_0x44ce59,'execute',()=>{_0x329efe['execute']('uploadcareImageEdit'),_0x329efe['editing']['view']['focus']();}),_0x44ce59;}),this['_initConfig']();}['_initConfig'](){const _0x1fad7b=_0x37c580(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1fad7b),this['listenTo'](this['editor'],'destroy',()=>{_0x1fad7b['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x6316(){const _0x1d1add=['545812tkSnuN','removeAttribute','srcset','selection','4795273qWooVJ','451864rxTJmK','execute','474widkpe','setAttributes','sizes','change','model','22375KRJIEL','isEnabled','390886gcfdpl','editor','element','5448864EScWPk','getSelectedElement','document','refresh','imageBlock','imageInline','1905030vZfXZw','3ptWggi'];_0x6316=function(){return _0x1d1add;};return _0x6316();}const _0x17b655=_0x3a3a;(function(_0x16d3f8,_0xd8e464){const _0xd0d242=_0x3a3a,_0x4fd48d=_0x16d3f8();while(!![]){try{const _0x4659db=parseInt(_0xd0d242(0x194))/0x1+parseInt(_0xd0d242(0x19f))/0x2+-parseInt(_0xd0d242(0x19e))/0x3*(parseInt(_0xd0d242(0x1a4))/0x4)+parseInt(_0xd0d242(0x192))/0x5*(-parseInt(_0xd0d242(0x18d))/0x6)+parseInt(_0xd0d242(0x1a3))/0x7+-parseInt(_0xd0d242(0x197))/0x8+parseInt(_0xd0d242(0x19d))/0x9;if(_0x4659db===_0xd8e464)break;else _0x4fd48d['push'](_0x4fd48d['shift']());}catch(_0x2182c9){_0x4fd48d['push'](_0x4fd48d['shift']());}}}(_0x6316,0x64ce6));import{Command as _0x3b8f75}from'ckeditor5/src/core.js';function _0x3a3a(_0x337adb,_0x4d55f8){const _0x631672=_0x6316();return _0x3a3a=function(_0x3a3a80,_0x6bd96c){_0x3a3a80=_0x3a3a80-0x18c;let _0x273641=_0x631672[_0x3a3a80];return _0x273641;},_0x3a3a(_0x337adb,_0x4d55f8);}export class UploadcareImageReplaceCommand extends _0x3b8f75{[_0x17b655(0x19a)](){const _0x5b0553=_0x17b655,_0x22b4ec=this[_0x5b0553(0x195)][_0x5b0553(0x191)][_0x5b0553(0x199)][_0x5b0553(0x1a2)][_0x5b0553(0x198)]();this[_0x5b0553(0x193)]=Boolean(_0x22b4ec&&(_0x22b4ec['is'](_0x5b0553(0x196),_0x5b0553(0x19b))||_0x22b4ec['is'](_0x5b0553(0x196),_0x5b0553(0x19c))));}[_0x17b655(0x18c)](_0x518c03){const _0x1ad827=_0x17b655,_0x333aa7=this[_0x1ad827(0x195)][_0x1ad827(0x191)][_0x1ad827(0x199)][_0x1ad827(0x1a2)][_0x1ad827(0x198)]();this[_0x1ad827(0x195)][_0x1ad827(0x191)][_0x1ad827(0x190)](_0x309545=>{const _0x2b9605=_0x1ad827;_0x309545[_0x2b9605(0x18e)](_0x518c03,_0x333aa7),_0x309545[_0x2b9605(0x1a0)](_0x2b9605(0x1a1),_0x333aa7),_0x309545[_0x2b9605(0x1a0)](_0x2b9605(0x18f),_0x333aa7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25e149=_0x3a36;(function(_0x58dfb6,_0x277ac3){var _0x24602e=_0x3a36,_0x514460=_0x58dfb6();while(!![]){try{var _0x57cc0a=-parseInt(_0x24602e(0x1a7))/0x1+parseInt(_0x24602e(0x1a6))/0x2+-parseInt(_0x24602e(0x1ad))/0x3+parseInt(_0x24602e(0x1ae))/0x4*(-parseInt(_0x24602e(0x1a9))/0x5)+parseInt(_0x24602e(0x1ac))/0x6*(parseInt(_0x24602e(0x1a8))/0x7)+parseInt(_0x24602e(0x1a2))/0x8+parseInt(_0x24602e(0x1aa))/0x9*(parseInt(_0x24602e(0x1a4))/0xa);if(_0x57cc0a===_0x277ac3)break;else _0x514460['push'](_0x514460['shift']());}catch(_0x58ac34){_0x514460['push'](_0x514460['shift']());}}}(_0x557a,0x680d1));function _0x3a36(_0x5dc7f3,_0x138d2b){var _0x557acf=_0x557a();return _0x3a36=function(_0x3a3698,_0x54e962){_0x3a3698=_0x3a3698-0x1a2;var _0x13042e=_0x557acf[_0x3a3698];return _0x13042e;},_0x3a36(_0x5dc7f3,_0x138d2b);}function _0x557a(){var _0x53d34a=['1426975YCuwkV','774JPjkyC','UploadcareImageEdit','573582IEyjIl','434049OxEEez','8crcoXU','requires','isOfficialPlugin','2425000kgwhBN','isPremiumPlugin','40740VvZtwN','pluginName','729902RxcBHh','67968CrAuUp','14VliBib'];_0x557a=function(){return _0x53d34a;};return _0x557a();}import{Plugin as _0x1a4348}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x554c8c}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x32ed97}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x1a4348{static get[_0x25e149(0x1a5)](){var _0x21b86f=_0x25e149;return _0x21b86f(0x1ab);}static get[_0x25e149(0x1af)](){return[_0x554c8c,_0x32ed97];}static get[_0x25e149(0x1b0)](){return!0x0;}static get[_0x25e149(0x1a3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x51c3(){const _0x3d2a47=['_createToolbarButton','_createMenuBarButtons','isEnabled','7vxrPdp','url','45170iJRbRw','_createDropdownButtons','registerIntegration','label','14590576IIOdto','GDrive','4885VihmED','config','uploadcareLicenseKeyUsageLimit','uploadcare','pluginName','forEach','520215HEnnzZ','domainLimit','trialLimit','expired','withText','uploadcareLicenseKeyDomainLimit','upload','uploadcareLicenseKeyEvaluationLimit','commands','usageLimit','_licenseKeyCheckInterval','reduce','2274vIEAPc','1819168CLDeun','uploadcareLicenseKeyNotAllowed','3nWVpkY','_normalizeConfigSourceList','invalid','URL','init','entries','OneDrive','destroy','Local','locale','Uploadcare','execute','licenseKey','afterInit','featureNotAllowed','tooltip','editor','assetManager','ImageInsertUI','uploadcareLicenseKeyValid','50020FgNgbn','isImageSelected','get','Dropbox','has','push','_showLicenseError','isPremiumPlugin','type','uploadcareLicenseKeyInvalid','_createButton','Facebook','387oaGOmB','uploadcareLicenseKeyTrialLimit','_getIntegrationKey','evaluationLimit','GPhotos','map','uploadcareLicenseKeyExpired','UploadcareUI','shortText','bind','Replace','uploadcare.uploader.sourceList','icon','plugins','3892712mMUtBp','Insert','isOfficialPlugin','text'];_0x51c3=function(){return _0x3d2a47;};return _0x51c3();}const _0x1ed353=_0x1e73;(function(_0x43ac5b,_0xf462c6){const _0x2095d0=_0x1e73,_0x4123b7=_0x43ac5b();while(!![]){try{const _0x2270ea=parseInt(_0x2095d0(0x1cd))/0x1+-parseInt(_0x2095d0(0x19e))/0x2*(-parseInt(_0x2095d0(0x1dc))/0x3)+parseInt(_0x2095d0(0x1da))/0x4+parseInt(_0x2095d0(0x1c7))/0x5*(parseInt(_0x2095d0(0x1d9))/0x6)+-parseInt(_0x2095d0(0x1bf))/0x7*(-parseInt(_0x2095d0(0x1b8))/0x8)+-parseInt(_0x2095d0(0x1aa))/0x9*(parseInt(_0x2095d0(0x1c1))/0xa)+-parseInt(_0x2095d0(0x1c5))/0xb;if(_0x2270ea===_0xf462c6)break;else _0x4123b7['push'](_0x4123b7['shift']());}catch(_0x5d1270){_0x4123b7['push'](_0x4123b7['shift']());}}}(_0x51c3,0x52172));import{Plugin as _0x3dc583}from'ckeditor5/src/core.js';import{IconDropbox as _0x36a673,IconFacebook as _0x5555b6,IconGoogleDrive as _0x5273a1,IconGooglePhotos as _0x1e398f,IconUploadcareImageUpload as _0xbf0618,IconUploadcareLink as _0x569a18,IconOneDrive as _0x2849c1}from'ckeditor5/src/icons.js';function _0x1e73(_0xba50b6,_0x433fb6){const _0x51c30b=_0x51c3();return _0x1e73=function(_0x1e7378,_0x357902){_0x1e7378=_0x1e7378-0x18c;let _0x4afe52=_0x51c30b[_0x1e7378];return _0x4afe52;},_0x1e73(_0xba50b6,_0x433fb6);}import{ButtonView as _0x131d37,MenuBarMenuListItemButtonView as _0x134c64}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1eb22c}from'./uploadcareconfig.js';import{getTranslation as _0x3e6c3d}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 _0x3dc583{[_0x1ed353(0x196)];[_0x1ed353(0x1d7)];static get[_0x1ed353(0x1cb)](){const _0x34997a=_0x1ed353;return _0x34997a(0x1b1);}static get[_0x1ed353(0x1ba)](){return!0x0;}static get[_0x1ed353(0x1a5)](){return!0x0;}[_0x1ed353(0x18e)](){const _0x3bab56=_0x1ed353;this[_0x3bab56(0x196)]=this[_0x3bab56(0x19a)][_0x3bab56(0x1c8)][_0x3bab56(0x1a0)](_0x3bab56(0x196));const _0x19c3ea=this[_0x3bab56(0x19a)];this[_0x3bab56(0x1d7)]=setInterval(()=>{const _0x5651b8=_0x3bab56;let _0x5a706a;for(const _0x239aa9 in _0x19c3ea){const _0x856693=_0x239aa9,_0x72ce6a=_0x19c3ea[_0x856693];if(_0x5651b8(0x19d)==_0x72ce6a||_0x5651b8(0x1a7)==_0x72ce6a||_0x5651b8(0x1b0)==_0x72ce6a||_0x5651b8(0x1d2)==_0x72ce6a||_0x5651b8(0x1db)==_0x72ce6a||_0x5651b8(0x1d4)==_0x72ce6a||_0x5651b8(0x1ab)==_0x72ce6a||_0x5651b8(0x1c9)==_0x72ce6a){delete _0x19c3ea[_0x856693],_0x5a706a=_0x72ce6a,clearInterval(this[_0x5651b8(0x1d7)]),this[_0x5651b8(0x1d7)]=void 0x0;break;}}_0x5651b8(0x1a7)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x18c)),_0x5651b8(0x1b0)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1d0)),_0x5651b8(0x1d2)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1ce)),_0x5651b8(0x1db)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x198),_0x5651b8(0x194)),_0x5651b8(0x1d4)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1ad)),_0x5651b8(0x1ab)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1cf)),_0x5651b8(0x1c9)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1d6));},0x3e8);}[_0x1ed353(0x197)](){const _0x46d280=_0x1ed353,{editor:_0x71c306}=this,_0x199e35=_0x71c306[_0x46d280(0x1d5)][_0x46d280(0x1a0)](_0x46d280(0x1ca));if(!_0x199e35)return;const _0x3ae745=this[_0x46d280(0x1dd)](_0x71c306[_0x46d280(0x1c8)][_0x46d280(0x1a0)](_0x46d280(0x1b5)))[_0x46d280(0x1d8)]((_0x1a2f3b,_0x73b4f0)=>{const _0x49cd0b=_0x46d280,_0x18f82a=this[_0x49cd0b(0x1ac)](_0x73b4f0[_0x49cd0b(0x1a6)]);return _0x1a2f3b[_0x18f82a]||(_0x1a2f3b[_0x18f82a]=[]),_0x1a2f3b[_0x18f82a][_0x49cd0b(0x1a3)](_0x73b4f0),_0x1a2f3b;},{});_0x71c306[_0x46d280(0x1b7)][_0x46d280(0x1a2)](_0x46d280(0x19c))&&_0x71c306[_0x46d280(0x1d5)][_0x46d280(0x1a0)](_0x46d280(0x1ca))&&Object[_0x46d280(0x18f)](_0x3ae745)[_0x46d280(0x1cc)](([_0x408267,_0x2441cf])=>{const _0x49d960=_0x46d280;_0x71c306[_0x49d960(0x1b7)][_0x49d960(0x1a0)](_0x49d960(0x19c))[_0x49d960(0x1c3)]({'name':_0x408267,'observable':()=>_0x199e35,'buttonViewCreator':()=>this[_0x49d960(0x1bc)](_0x2441cf),'formViewCreator':()=>this[_0x49d960(0x1c2)](_0x2441cf),'menuBarButtonViewCreator':()=>this[_0x49d960(0x1bd)](_0x2441cf),'override':_0x49d960(0x19b)!==_0x408267});});}[_0x1ed353(0x191)](){const _0x34183d=_0x1ed353;super[_0x34183d(0x191)](),this[_0x34183d(0x1d7)]&&clearInterval(this[_0x34183d(0x1d7)]);}[_0x1ed353(0x1dd)](_0x14fca4){const _0x234b0d=_0x1ed353,{locale:_0x4d4355}=this[_0x234b0d(0x19a)];return _0x14fca4[_0x234b0d(0x1af)](_0x5d71df=>{const _0x1fd03=_0x234b0d,_0x35c0f1=_0x3e6c3d(_0x4d4355,_0x5d71df,_0x1fd03(0x1b9));switch(_0x5d71df){case _0x1eb22c[_0x1fd03(0x192)]:return{'icon':_0xbf0618,'type':_0x1eb22c[_0x1fd03(0x192)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x18d)]:return{'icon':_0x569a18,'type':_0x1eb22c[_0x1fd03(0x18d)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1a1)]:return{'icon':_0x36a673,'type':_0x1eb22c[_0x1fd03(0x1a1)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1a9)]:return{'icon':_0x5555b6,'type':_0x1eb22c[_0x1fd03(0x1a9)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1c6)]:return{'icon':_0x5273a1,'type':_0x1eb22c[_0x1fd03(0x1c6)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1ae)]:return{'icon':_0x1e398f,'type':_0x1eb22c[_0x1fd03(0x1ae)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x190)]:return{'icon':_0x2849c1,'type':_0x1eb22c[_0x1fd03(0x190)],..._0x35c0f1};}});}[_0x1ed353(0x1ac)](_0x1c7108){const _0x4c1f57=_0x1ed353;switch(_0x1c7108){case _0x1eb22c[_0x4c1f57(0x192)]:return _0x4c1f57(0x1d3);case _0x1eb22c[_0x4c1f57(0x18d)]:return _0x4c1f57(0x1c0);default:return _0x4c1f57(0x19b);}}[_0x1ed353(0x1a8)](_0x557bd2,_0x49efd8){const _0xff3f04=_0x1ed353,_0xd1ac4b=this[_0xff3f04(0x19a)],_0x459cea=new _0x557bd2(_0xd1ac4b[_0xff3f04(0x193)]),_0x33f48d=_0xd1ac4b[_0xff3f04(0x1d5)][_0xff3f04(0x1a0)](_0xff3f04(0x1ca));return _0x459cea[_0xff3f04(0x1b3)](_0xff3f04(0x1be))['to'](_0x33f48d),_0x459cea['on'](_0xff3f04(0x195),()=>{const _0x5ecfc0=_0xff3f04;_0x33f48d[_0x5ecfc0(0x195)](_0x49efd8);}),_0x459cea;}[_0x1ed353(0x1bc)](_0x577f55){const _0x5d67f1=_0x1ed353,{locale:_0x461234}=this[_0x5d67f1(0x19a)],_0x5e59aa=this[_0x5d67f1(0x19a)][_0x5d67f1(0x1b7)][_0x5d67f1(0x1a0)](_0x5d67f1(0x19c)),_0x87acb=_0x577f55[0x0],_0x258437=this[_0x5d67f1(0x1a8)](_0x131d37,_0x87acb[_0x5d67f1(0x1a6)]);return _0x258437[_0x5d67f1(0x1b6)]=_0x87acb[_0x5d67f1(0x1b6)],_0x258437[_0x5d67f1(0x1b3)](_0x5d67f1(0x1c4))['to'](_0x5e59aa,_0x5d67f1(0x19f),_0x3b5e9f=>_0x3e6c3d(_0x461234,_0x87acb[_0x5d67f1(0x1a6)],_0x3b5e9f?_0x5d67f1(0x1b4):_0x5d67f1(0x1b9))[_0x5d67f1(0x1bb)]),_0x258437[_0x5d67f1(0x199)]=!0x0,_0x258437;}[_0x1ed353(0x1c2)](_0x208ef0){const _0x43643a=_0x1ed353,{locale:_0x498527}=this[_0x43643a(0x19a)],_0x1f923f=this[_0x43643a(0x19a)][_0x43643a(0x1b7)][_0x43643a(0x1a0)](_0x43643a(0x19c));return _0x208ef0[_0x43643a(0x1af)](_0x27ad50=>{const _0x27deef=_0x43643a,_0x53e420=this[_0x27deef(0x1a8)](_0x131d37,_0x27ad50[_0x27deef(0x1a6)]);return _0x53e420[_0x27deef(0x1d1)]=!0x0,_0x53e420[_0x27deef(0x1b6)]=_0x27ad50[_0x27deef(0x1b6)],_0x53e420[_0x27deef(0x1b3)](_0x27deef(0x1c4))['to'](_0x1f923f,_0x27deef(0x19f),_0xa42a79=>_0x3e6c3d(_0x498527,_0x27ad50[_0x27deef(0x1a6)],_0xa42a79?_0x27deef(0x1b4):_0x27deef(0x1b9))[_0x27deef(0x1bb)]),_0x53e420;});}[_0x1ed353(0x1bd)](_0x4392a6){const _0x396263=_0x1ed353;return _0x4392a6[_0x396263(0x1af)](_0x1cfab6=>{const _0x1eda12=_0x396263,_0x542570=this[_0x1eda12(0x1a8)](_0x134c64,_0x1cfab6[_0x1eda12(0x1a6)]);return _0x542570[_0x1eda12(0x1b6)]=_0x1cfab6[_0x1eda12(0x1b6)],_0x542570[_0x1eda12(0x1c4)]=_0x1cfab6[_0x1eda12(0x1b2)],_0x542570;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2f2121}from'ckeditor5/src/core.js';import{FileRepository as _0x3e867a}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xae31f5}from'./uploadcareediting.js';import{UploadUtils as _0x2705bf}from'./utils/uploadutils.js';import{getImageUrls as _0x3cbea9}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2f2121{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e867a,_0xae31f5];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x389e04=this['editor'];if(!!!_0x389e04['config']['get']('uploadcare'))return;_0x389e04['plugins']['get'](_0x3e867a)['createUploadAdapter']=_0x91c23f=>new k(_0x91c23f,_0x389e04),_0x389e04['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x218bf7,{imageElement:_0x4035e7,data:_0xf09d05})=>{_0x389e04['model']['change'](_0xe1dfb1=>{_0xe1dfb1['setAttribute']('uploadcareImageId',_0xf09d05['uploadcareImageId'],_0x4035e7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x54342c,_0x9f4742){this['loader']=_0x54342c,this['editor']=_0x9f4742,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x514e20=await this['loader']['file'];return _0x2705bf['upload']({'file':_0x514e20,'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':_0xa836ef=>{_0xa836ef&&_0xa836ef['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa836ef['value']);}})['then'](async _0x22860b=>{const {imageFallbackUrl:_0x3cd4dd,imageSources:_0x595128}=_0x3cbea9(_0x22860b['cdnUrl'],_0x22860b['imageInfo']['width']);return{'uploadcareImageId':_0x22860b['uuid'],'default':_0x3cd4dd,'sources':_0x595128};})['catch'](()=>{const _0x197c7=t('Cannot\x20upload\x20file:')+('\x20'+_0x514e20['name']+'.');return Promise['reject'](_0x197c7);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xb98a33}from'../uploadcareconfig.js';export function getTranslation(_0x9ff135,_0x510223,_0x10a581){const t=_0x9ff135['t'],_0x51ab30=_0x9ff135['t'];switch(_0x510223){case _0xb98a33['Local']:return{'text':_0x51ab30('Insert'===_0x10a581?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x51ab30('From\x20computer')};case _0xb98a33['URL']:return{'text':'Insert'===_0x10a581?_0x51ab30('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x51ab30('Via\x20URL')};case _0xb98a33['Dropbox']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xb98a33['Facebook']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xb98a33['GDrive']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xb98a33['GPhotos']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xb98a33['OneDrive']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x510223;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x42e7a5=_0x10de;(function(_0x28d40c,_0x3e6866){var _0x1e9989=_0x10de,_0x13392c=_0x28d40c();while(!![]){try{var _0x74f8d7=parseInt(_0x1e9989(0x15f))/0x1*(-parseInt(_0x1e9989(0x15e))/0x2)+-parseInt(_0x1e9989(0x162))/0x3*(parseInt(_0x1e9989(0x166))/0x4)+parseInt(_0x1e9989(0x164))/0x5+-parseInt(_0x1e9989(0x15b))/0x6+parseInt(_0x1e9989(0x15c))/0x7+parseInt(_0x1e9989(0x158))/0x8+-parseInt(_0x1e9989(0x160))/0x9*(-parseInt(_0x1e9989(0x165))/0xa);if(_0x74f8d7===_0x3e6866)break;else _0x13392c['push'](_0x13392c['shift']());}catch(_0x143fd5){_0x13392c['push'](_0x13392c['shift']());}}}(_0x4125,0x1894a));import{FocusTracker as _0x4fc894}from'ckeditor5/src/utils.js';import{View as _0x5d9760,FocusCycler as _0x424bce}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x10de(_0x18f69f,_0x1cc105){var _0x412539=_0x4125();return _0x10de=function(_0x10dea8,_0x599cdc){_0x10dea8=_0x10dea8-0x156;var _0x201e39=_0x412539[_0x10dea8];return _0x201e39;},_0x10de(_0x18f69f,_0x1cc105);}export class DialogFocusManagerView extends _0x5d9760{[_0x42e7a5(0x161)];[_0x42e7a5(0x157)];constructor(_0x23156c){var _0x491027=_0x42e7a5;super(_0x23156c),this[_0x491027(0x161)]=new _0x4fc894(),this[_0x491027(0x157)]=new _0x424bce({'focusables':this[_0x491027(0x15d)](),'focusTracker':this[_0x491027(0x161)]});}[_0x42e7a5(0x15a)](){var _0x1a9d7=_0x42e7a5;return{'tag':_0x1a9d7(0x167),'attributes':{'aria-hidden':_0x1a9d7(0x159),'tabindex':'0'},'on':{'focus':this[_0x1a9d7(0x156)]['to'](()=>{var _0x33f3fd=_0x1a9d7;this[_0x33f3fd(0x157)][_0x33f3fd(0x163)](_0x33f3fd(0x168));})}};}}function _0x4125(){var _0xaef80c=['div','forwardCycle','bindTemplate','focusCycler','386240bxrocr','true','getFocusableElement','339588zoEwXa','600901UnkANu','createCollection','14ehVmVd','6325iBWeNI','2080431awKIGD','focusTracker','14871hNdKhR','fire','147980fZWPsw','10fPVMuz','156bnpjvs'];_0x4125=function(){return _0xaef80c;};return _0x4125();}
|