@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251027.0 → 0.0.0-nightly-20251029.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x17158e=_0x33f5;(function(_0x9eff31,_0x13e229){const _0x30d30e=_0x33f5,_0x2355e4=_0x9eff31();while(!![]){try{const _0x156e90=-parseInt(_0x30d30e(0x18e))/0x1+-parseInt(_0x30d30e(0x14d))/0x2+parseInt(_0x30d30e(0x160))/0x3*(-parseInt(_0x30d30e(0x18d))/0x4)+parseInt(_0x30d30e(0x152))/0x5+-parseInt(_0x30d30e(0x171))/0x6+parseInt(_0x30d30e(0x164))/0x7*(-parseInt(_0x30d30e(0x188))/0x8)+parseInt(_0x30d30e(0x143))/0x9*(parseInt(_0x30d30e(0x16b))/0xa);if(_0x156e90===_0x13e229)break;else _0x2355e4['push'](_0x2355e4['shift']());}catch(_0x15bf9c){_0x2355e4['push'](_0x2355e4['shift']());}}}(_0x3f99,0x56f4c));import{Plugin as _0x160323}from'ckeditor5/src/core.js';import{Dialog as _0x25438f}from'ckeditor5/src/ui.js';function _0x3f99(){const _0x116bae=['attributeToAttribute','imageBlock','831225wiXPRv','for','isOfficialPlugin','join','href','_configElement','isPremiumPlugin','uc-upload-ctx-provider','\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','commands','map','imageInline','data-uc-image-id','remove','111219nDULVh','closeMax','ucContextId','isRegistered','318717TRcvZv','PictureEditing','_initImageProcessingIndicator','uc-config','iconHrefResolver','uploadcare.pubkey','model','13790420JUGdIs','view','#uc-icon-arrow-down','upcast','add','uploadcare.uploader','1437606AheTdj','input[uploadcare-file-input]','get','afterInit','fromCharCode','selection','once','appendChild','getAttribute','uploadcareImageReplace','getSelectedElement','document','body','insertImage','_initSchema','_initConversion','schema','uploadcare','config','configElement','init','_initConfig','uploadcareImageId','64kpZcrv','locale','uploader-','requires','pluginName','28SholHg','23129LqzFsF','conversion','downcast','UploadcareEditing','listenTo','cleanupImage','render','editing','execute','replaceImageSource','9yaFWKv','destroy','removeAttribute','querySelector','_initCtx','editor','ctxElement','true','extend','contentLanguage','605252ZLBily','_ctxElement','elementToAttribute'];_0x3f99=function(){return _0x116bae;};return _0x3f99();}import{createElement as _0x4705d4,global as _0x907789,uid as _0x37c032}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3aae61}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2661c2}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x396a63}from'./utils/editingutils.js';function _0x33f5(_0x9087cc,_0x2d0777){const _0x3f99b1=_0x3f99();return _0x33f5=function(_0x33f5d1,_0x2dcfdb){_0x33f5d1=_0x33f5d1-0x143;let _0x522c91=_0x3f99b1[_0x33f5d1];return _0x522c91;},_0x33f5(_0x9087cc,_0x2d0777);}export class UploadcareEditing extends _0x160323{[_0x17158e(0x157)]=null;[_0x17158e(0x14e)]=null;static get[_0x17158e(0x18c)](){const _0x1202e1=_0x17158e;return _0x1202e1(0x191);}static get[_0x17158e(0x18b)](){const _0x1eddca=_0x17158e;return[_0x1eddca(0x165),_0x2661c2,_0x25438f];}static get[_0x17158e(0x154)](){return!0x0;}static get[_0x17158e(0x158)](){return!0x0;}[_0x17158e(0x162)];get[_0x17158e(0x184)](){const _0x54380e=_0x17158e;return this[_0x54380e(0x157)];}get[_0x17158e(0x149)](){const _0x10be61=_0x17158e;return this[_0x10be61(0x14e)];}constructor(_0x5e9aae){const _0x18d196=_0x17158e;super(_0x5e9aae),this[_0x18d196(0x162)]=_0x37c032();}[_0x17158e(0x185)](){const _0x545677=_0x17158e,_0xe0f469=this[_0x545677(0x148)];_0xe0f469[_0x545677(0x15b)][_0x545677(0x16f)](_0x545677(0x182),new _0x3aae61(_0xe0f469));}[_0x17158e(0x174)](){const _0xa6efd2=_0x17158e;this[_0xa6efd2(0x17f)](),this[_0xa6efd2(0x180)](),this[_0xa6efd2(0x186)](),this[_0xa6efd2(0x147)](),this[_0xa6efd2(0x166)](),this[_0xa6efd2(0x192)](this[_0xa6efd2(0x148)],_0xa6efd2(0x144),()=>{const _0x1948cb=_0xa6efd2;this[_0x1948cb(0x157)]&&(this[_0x1948cb(0x157)][_0x1948cb(0x15f)](),this[_0x1948cb(0x157)]=null),this[_0x1948cb(0x14e)]&&(this[_0x1948cb(0x14e)][_0x1948cb(0x15f)](),this[_0x1948cb(0x14e)]=null);const _0x41eee5=_0x907789[_0x1948cb(0x17c)][_0x1948cb(0x146)](_0x1948cb(0x172));_0x41eee5&&_0x41eee5[_0x1948cb(0x15f)]();}),async function(_0x423abe){const _0x261c26=_0x57f640([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]),_0x373119=0x535f8c3a,_0x5490df=0x5358fb5a^_0x373119,_0x3ed99e=window[_0x57f640([0x44,0x61,0x74,0x65])][_0x57f640([0x6e,0x6f,0x77])](),_0x4d5242=_0x423abe[_0x57f640([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cccef=new window[(_0x57f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41964a=>{_0x4d5242[_0x57f640([0x6f,0x6e,0x63,0x65])](_0x57f640([0x72,0x65,0x61,0x64,0x79]),_0x41964a);}),_0x42bb48={[_0x57f640([0x6b,0x74,0x79])]:_0x57f640([0x45,0x43]),[_0x57f640([0x75,0x73,0x65])]:_0x57f640([0x73,0x69,0x67]),[_0x57f640([0x63,0x72,0x76])]:_0x57f640([0x50,0x2d,0x32,0x35,0x36]),[_0x57f640([0x78])]:_0x57f640([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]),[_0x57f640([0x79])]:_0x57f640([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]),[_0x57f640([0x61,0x6c,0x67])]:_0x57f640([0x45,0x53,0x32,0x35,0x36])},_0x58c92b=_0x4d5242[_0x57f640([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57f640([0x67,0x65,0x74])](_0x57f640([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b27f2(){let _0x5c047b,_0xfb2d78=null,_0x1036bc=null;try{if(_0x58c92b==_0x57f640([0x47,0x50,0x4c]))return _0x57f640([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c047b=_0x344e21(),!_0x5c047b)return _0x57f640([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c047b[_0x57f640([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1036bc=_0x4a4dd1(_0x5c047b[_0x57f640([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c047b[_0x57f640([0x6a,0x74,0x69])])),await _0x5db654()?_0x3415d4()?_0x442cae()?_0x57f640([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b01d1()?(_0x5c047b[_0x57f640([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57f640([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xfb2d78=_0x540b34(_0x57f640([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c047b[_0x57f640([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57f640([0x74,0x72,0x69,0x61,0x6c])&&(_0xfb2d78=_0x540b34(_0x57f640([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c5504()):_0x57f640([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57f640([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57f640([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57f640([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x442cae(){const _0x11a4a9=[_0x57f640([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57f640([0x74,0x72,0x69,0x61,0x6c])][_0x57f640([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c047b[_0x57f640([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ed99e/0x3e8:0xe10*_0x5490df;return _0x5c047b[_0x57f640([0x65,0x78,0x70])]<_0x11a4a9;}function _0x3415d4(){const _0x40819c=_0x5c047b[_0x57f640([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40819c&&(!!_0x40819c[_0x57f640([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57f640([0x2a]))||!!_0x40819c[_0x57f640([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57f640([0x55,0x50,0x4c,0x43])));}function _0x3b01d1(){const _0x3a0d9b=_0x33f5,_0x3aefb0=_0x5c047b[_0x57f640([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3aefb0||0x0==_0x3aefb0[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e006b}=new URL(window[_0x57f640([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a0d9b(0x156)]);if(_0x3aefb0[_0x57f640([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e006b))return!0x0;const _0x51e24f=_0x5e006b[_0x57f640([0x73,0x70,0x6c,0x69,0x74])](_0x57f640([0x2e]));return _0x3aefb0[_0x57f640([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5647ed=>_0x5647ed[_0x57f640([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57f640([0x2a])))[_0x57f640([0x6d,0x61,0x70])](_0x34abca=>_0x34abca[_0x57f640([0x73,0x70,0x6c,0x69,0x74])](_0x57f640([0x2e])))[_0x57f640([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd314a8=>_0xd314a8[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51e24f[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57f640([0x6d,0x61,0x70])](_0x645195=>Array(_0x51e24f[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x645195[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57f640([0x66,0x69,0x6c,0x6c])](_0x645195[0x0]===_0x57f640([0x2a])?_0x57f640([0x2a]):'')[_0x57f640([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x645195))[_0x57f640([0x73,0x6f,0x6d,0x65])](_0x28b33e=>_0x51e24f[_0x57f640([0x65,0x76,0x65,0x72,0x79])]((_0x5aad59,_0x5ab184)=>_0x28b33e[_0x5ab184]===_0x5aad59||_0x28b33e[_0x5ab184]===_0x57f640([0x2a])));}function _0x4c5504(){return _0xfb2d78&&_0x1036bc?new window[(_0x57f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14b0f3,_0x53d50d)=>{_0xfb2d78[_0x57f640([0x74,0x68,0x65,0x6e])](_0x14b0f3,_0x53d50d),_0x1036bc[_0x57f640([0x74,0x68,0x65,0x6e])](_0x1039ed=>{_0x1039ed!=_0x57f640([0x56,0x61,0x6c,0x69,0x64])&&_0x14b0f3(_0x1039ed);},_0x53d50d);}):_0xfb2d78||_0x1036bc||_0x57f640([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a4dd1(_0x2d0789,_0x3d68ca){return new window[(_0x57f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9cb985=>{if(_0xf610bf())return _0x9cb985(_0x57f640([0x56,0x61,0x6c,0x69,0x64]));_0x35ec09(),_0x4d5242[_0x57f640([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57f640([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13c6d1=!0x1;const _0x540637=_0x37c032();function _0x166ae0(_0x2fdb19){return!!_0x2fdb19&&(typeof _0x2fdb19===_0x57f640([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2fdb19===_0x57f640([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2fdb19[_0x57f640([0x74,0x68,0x65,0x6e])]===_0x57f640([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2fdb19[_0x57f640([0x63,0x61,0x74,0x63,0x68])]===_0x57f640([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a0856(_0x2a4a80){_0x1adce9(_0x2a4a80)[_0x57f640([0x74,0x68,0x65,0x6e])](_0x3e69bf=>{if(!_0x3e69bf||_0x3e69bf[_0x57f640([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57f640([0x6f,0x6b]))return _0x57f640([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2cc455(_0x5e2bf2(_0x540637+_0x3d68ca))!=_0x3e69bf[_0x57f640([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57f640([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57f640([0x56,0x61,0x6c,0x69,0x64]);})[_0x57f640([0x74,0x68,0x65,0x6e])](_0x58519b=>(_0x2e72fc(),_0x58519b),()=>{const _0x3fe3da=_0x2812b9();return null==_0x3fe3da?(_0x2e72fc(),_0x57f640([0x56,0x61,0x6c,0x69,0x64])):_0x57f640(_0x3ed99e-_0x3fe3da>(0x7753083a^_0x373119)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57f640([0x74,0x68,0x65,0x6e])](_0x9cb985)[_0x57f640([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9cb985(_0x57f640([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x206a74=0x536962ba^_0x373119;function _0x2e72fc(){const _0x3e5e98=_0x57f640([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cc455(_0x5e2bf2(_0x2d0789)),_0x37fc4d=_0x276043(_0x2cc455(window[_0x57f640([0x4d,0x61,0x74,0x68])][_0x57f640([0x63,0x65,0x69,0x6c])](_0x3ed99e/_0x206a74)));window[_0x57f640([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57f640([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e5e98,_0x37fc4d);}function _0x2812b9(){const _0x5c1a6f=_0x57f640([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cc455(_0x5e2bf2(_0x2d0789)),_0x4efa4e=window[_0x57f640([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57f640([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c1a6f);return _0x4efa4e?window[_0x57f640([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x276043(_0x4efa4e),0x10)*_0x206a74:null;}function _0x1adce9(_0x11fb5a){return new window[(_0x57f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11e095,_0x12b5f0)=>{_0x11fb5a[_0x57f640([0x74,0x68,0x65,0x6e])](_0x11e095,_0x12b5f0),window[_0x57f640([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12b5f0,0x535e58fa^_0x373119);});}}_0x4d5242[_0x57f640([0x6f,0x6e])](_0x57f640([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23363e,_0x23aaac)=>{if(_0x23aaac[0x0]!=_0x2d0789)return _0x9cb985(_0x57f640([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23aaac[0x1]={..._0x23aaac[0x1],[_0x57f640([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x540637};},{[_0x57f640([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57f640([0x68,0x69,0x67,0x68])}),_0x4d5242[_0x57f640([0x6f,0x6e])](_0x57f640([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fba51=>{_0x166ae0(_0x4fba51[_0x57f640([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13c6d1=!0x0,_0x2a0856(_0x4fba51[_0x57f640([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57f640([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57f640([0x6c,0x6f,0x77])}),_0x1cccef[_0x57f640([0x74,0x68,0x65,0x6e])](()=>{_0x13c6d1||_0x9cb985(_0x57f640([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf610bf(){return _0x4d5242[_0x57f640([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57f640([0x76,0x69,0x65,0x77])][_0x57f640([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57f640([0x61,0x75,0x74,0x6f]);}function _0x35ec09(){_0x4d5242[_0x57f640([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57f640([0x76,0x69,0x65,0x77])][_0x57f640([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57f640([0x61,0x75,0x74,0x6f]);}}function _0x540b34(_0x39a690){const _0x6158af=[new window[(_0x57f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e8d30=>setTimeout(_0x2e8d30,0x5356b2f6^_0x373119)),_0x1cccef[_0x57f640([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92fd51=>{let _0x3c76d8=0x0;_0x4d5242[_0x57f640([0x6d,0x6f,0x64,0x65,0x6c])][_0x57f640([0x6f,0x6e])](_0x57f640([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ad2db,_0x3197ac)=>{_0x3197ac[0x0][_0x57f640([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c76d8++,_0x3c76d8==(0x535f8dc2^_0x373119)&&(_0x92fd51(),_0x4ad2db[_0x57f640([0x6f,0x66,0x66])]());});}))];return window[_0x57f640([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57f640([0x72,0x61,0x63,0x65])](_0x6158af)[_0x57f640([0x74,0x68,0x65,0x6e])](()=>_0x39a690);}async function _0x5333b7(){await _0x1cccef,_0x4d5242[_0x57f640([0x6d,0x6f,0x64,0x65,0x6c])][_0x57f640([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0945,_0x4d5242[_0x57f640([0x6d,0x6f,0x64,0x65,0x6c])][_0x57f640([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0945,_0x4d5242[_0x57f640([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57f640([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x596fb8(_0x427041){const _0x115554=_0x34b8c6();_0x4d5242[_0x115554]=_0x57f640([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x427041,_0x427041!=_0x57f640([0x56,0x61,0x6c,0x69,0x64])&&_0x5333b7();}function _0x34b8c6(){const _0x2ebfc2=window[_0x57f640([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57f640([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57f640([0x6e,0x6f,0x77])]())[_0x57f640([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57f640([0x2e]),'');let _0xf2720d=_0x57f640([0x68]);for(let _0x10c794=0x0;_0x10c794<_0x2ebfc2[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10c794+=0x2){let _0x5a8c13=window[_0x57f640([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ebfc2[_0x57f640([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10c794,_0x10c794+0x2));_0x5a8c13>=_0x261c26[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a8c13-=_0x261c26[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf2720d+=_0x261c26[_0x5a8c13];}return _0xf2720d;}function _0x344e21(){const _0x59a059=_0x58c92b[_0x57f640([0x73,0x70,0x6c,0x69,0x74])](_0x57f640([0x2e]));if(0x3!=_0x59a059[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29e41c(_0x59a059[0x1]);function _0x29e41c(_0x1268c0){const _0x26ed46=_0x267644(_0x1268c0);return _0x26ed46&&_0x19e695()?_0x26ed46:null;function _0x19e695(){const _0x4a6fe4=_0x26ed46[_0x57f640([0x6a,0x74,0x69])],_0x5aa73f=window[_0x57f640([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a6fe4[_0x57f640([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a6fe4[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x106a2e={..._0x26ed46,[_0x57f640([0x6a,0x74,0x69])]:_0x4a6fe4[_0x57f640([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a6fe4[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x106a2e[_0x57f640([0x76,0x63])],_0x5e2bf2(_0x106a2e)==_0x5aa73f;}}}async function _0x5db654(){let _0x22aa00=!0x0;try{const _0x4760aa=_0x58c92b[_0x57f640([0x73,0x70,0x6c,0x69,0x74])](_0x57f640([0x2e])),[_0xdb67b5,_0x44a054,_0x2623e3]=_0x4760aa;return _0x2105ad(_0xdb67b5),await _0x13b1d(_0xdb67b5,_0x44a054,_0x2623e3),_0x22aa00;}catch{return!0x1;}function _0x2105ad(_0x48f55c){const _0x35e972=_0x267644(_0x48f55c);_0x35e972&&_0x35e972[_0x57f640([0x61,0x6c,0x67])]==_0x57f640([0x45,0x53,0x32,0x35,0x36])||(_0x22aa00=!0x1);}async function _0x13b1d(_0x1d51db,_0x22b237,_0x68a3da){const _0x5614c8=window[_0x57f640([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57f640([0x66,0x72,0x6f,0x6d])](_0x4c4b32(_0x68a3da),_0x391b47=>_0x391b47[_0x57f640([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17b3df=new window[(_0x57f640([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57f640([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d51db+_0x57f640([0x2e])+_0x22b237),_0x4605b7=window[_0x57f640([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57f640([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4605b7)return;const _0xa77c8c=await _0x4605b7[_0x57f640([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57f640([0x6a,0x77,0x6b]),_0x42bb48,{[_0x57f640([0x6e,0x61,0x6d,0x65])]:_0x57f640([0x45,0x43,0x44,0x53,0x41]),[_0x57f640([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57f640([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57f640([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4605b7[_0x57f640([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57f640([0x6e,0x61,0x6d,0x65])]:_0x57f640([0x45,0x43,0x44,0x53,0x41]),[_0x57f640([0x68,0x61,0x73,0x68])]:{[_0x57f640([0x6e,0x61,0x6d,0x65])]:_0x57f640([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa77c8c,_0x5614c8,_0x17b3df)||(_0x22aa00=!0x1);}}function _0x267644(_0x103704){return _0x103704[_0x57f640([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57f640([0x65,0x79]))?JSON[_0x57f640([0x70,0x61,0x72,0x73,0x65])](_0x4c4b32(_0x103704)):null;}function _0x4c4b32(_0x483e98){return window[_0x57f640([0x61,0x74,0x6f,0x62])](_0x483e98[_0x57f640([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57f640([0x2b]))[_0x57f640([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57f640([0x2f])));}function _0x5e2bf2(_0x2d088c){let _0x6207cc=0x1505;function _0x326235(_0x450f06){for(let _0x106d2b=0x0;_0x106d2b<_0x450f06[_0x57f640([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x106d2b++){const _0x58b6fc=_0x450f06[_0x57f640([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x106d2b);_0x6207cc=(_0x6207cc<<0x5)+_0x6207cc+_0x58b6fc,_0x6207cc&=_0x6207cc;}}function _0x43a7cd(_0x506e30){Array[_0x57f640([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x506e30)?_0x506e30[_0x57f640([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43a7cd):_0x506e30&&typeof _0x506e30==_0x57f640([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57f640([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x506e30)[_0x57f640([0x73,0x6f,0x72,0x74])]()[_0x57f640([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b1789,_0x300494])=>{_0x326235(_0x5b1789),_0x43a7cd(_0x300494);}):_0x326235(window[_0x57f640([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x506e30));}return _0x43a7cd(_0x2d088c),_0x6207cc>>>0x0;}function _0x2cc455(_0x32b4e6){return _0x32b4e6[_0x57f640([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57f640([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57f640([0x30]));}function _0x276043(_0x101764){return _0x101764[_0x57f640([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57f640([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57f640([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c0945(){}function _0x57f640(_0x5754b4){const _0x5b1fdf=_0x33f5;return _0x5754b4[_0x5b1fdf(0x15c)](_0xbdbcf5=>String[_0x5b1fdf(0x175)](_0xbdbcf5))[_0x5b1fdf(0x155)]('');}_0x596fb8(await _0x5b27f2());}(this);}[_0x17158e(0x17f)](){const _0x342a9d=_0x17158e,_0x4cf17c=this[_0x342a9d(0x148)][_0x342a9d(0x16a)][_0x342a9d(0x181)];_0x4cf17c[_0x342a9d(0x163)](_0x342a9d(0x151))&&_0x4cf17c[_0x342a9d(0x14b)](_0x342a9d(0x151),{'allowAttributes':[_0x342a9d(0x187)]}),_0x4cf17c[_0x342a9d(0x163)](_0x342a9d(0x15d))&&_0x4cf17c[_0x342a9d(0x14b)](_0x342a9d(0x15d),{'allowAttributes':[_0x342a9d(0x187)]});}[_0x17158e(0x180)](){const _0x2d60b8=_0x17158e,_0x217206=this[_0x2d60b8(0x148)];_0x217206[_0x2d60b8(0x18f)][_0x2d60b8(0x153)](_0x2d60b8(0x190))[_0x2d60b8(0x150)]({'model':_0x2d60b8(0x187),'view':_0x2d60b8(0x15e)}),_0x217206[_0x2d60b8(0x18f)][_0x2d60b8(0x153)](_0x2d60b8(0x16e))[_0x2d60b8(0x14f)]({'model':{'key':_0x2d60b8(0x187),'value':_0x5dbc83=>_0x5dbc83[_0x2d60b8(0x179)](_0x2d60b8(0x15e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x11990b=_0x217206[_0x2d60b8(0x15b)][_0x2d60b8(0x173)](_0x2d60b8(0x197));_0x11990b&&this[_0x2d60b8(0x192)](_0x11990b,_0x2d60b8(0x193),(_0x27cf68,[_0x22156c,_0x1def03])=>{const _0x3407b4=_0x2d60b8;_0x22156c[_0x3407b4(0x145)](_0x3407b4(0x187),_0x1def03);});}[_0x17158e(0x186)](){const _0x2b9ca3=_0x17158e,_0x2a3ab1=this[_0x2b9ca3(0x148)][_0x2b9ca3(0x183)][_0x2b9ca3(0x173)](_0x2b9ca3(0x170))||{},_0x1cc527=this[_0x2b9ca3(0x148)][_0x2b9ca3(0x183)][_0x2b9ca3(0x173)](_0x2b9ca3(0x169))||'';this[_0x2b9ca3(0x157)]=_0x4705d4(_0x907789[_0x2b9ca3(0x17c)],_0x2b9ca3(0x167),{..._0x2a3ab1,'pubkey':_0x1cc527,'ctx-name':_0x2b9ca3(0x18a)+this[_0x2b9ca3(0x162)],'sourceList':'','imgOnly':_0x2b9ca3(0x14a),'removeCopyright':_0x2b9ca3(0x14a),'localeName':this[_0x2b9ca3(0x148)][_0x2b9ca3(0x189)][_0x2b9ca3(0x14c)],'externalSourcesEmbedCss':_0x2b9ca3(0x15a)}),this[_0x2b9ca3(0x157)][_0x2b9ca3(0x168)]=_0x2b2e72=>{const _0x4c02e0=_0x2b9ca3;if(_0x4c02e0(0x161)==_0x2b2e72)return _0x4c02e0(0x16d);},_0x907789[_0x2b9ca3(0x17c)][_0x2b9ca3(0x17d)][_0x2b9ca3(0x178)](this[_0x2b9ca3(0x157)]);}[_0x17158e(0x147)](){const _0xfe5626=_0x17158e;this[_0xfe5626(0x14e)]=_0x4705d4(_0x907789[_0xfe5626(0x17c)],_0xfe5626(0x159),{'ctx-name':_0xfe5626(0x18a)+this[_0xfe5626(0x162)]}),_0x907789[_0xfe5626(0x17c)][_0xfe5626(0x17d)][_0xfe5626(0x178)](this[_0xfe5626(0x14e)]);}[_0x17158e(0x166)](){const _0xf7d578=_0x17158e,_0x12999d=this[_0xf7d578(0x148)][_0xf7d578(0x15b)][_0xf7d578(0x173)](_0xf7d578(0x17e));_0x12999d&&this[_0xf7d578(0x192)](_0x12999d,_0xf7d578(0x196),()=>{const _0xc80bd3=_0xf7d578,_0x1329da=this[_0xc80bd3(0x148)][_0xc80bd3(0x16a)][_0xc80bd3(0x17c)][_0xc80bd3(0x176)][_0xc80bd3(0x17b)]();_0x1329da&&_0x1329da[_0xc80bd3(0x179)](_0xc80bd3(0x187))&&this[_0xc80bd3(0x148)][_0xc80bd3(0x195)][_0xc80bd3(0x16c)][_0xc80bd3(0x177)](_0xc80bd3(0x194),()=>{const _0x140a7b=_0xc80bd3;_0x396a63(this[_0x140a7b(0x148)],_0x1329da);});});const _0x461066=this[_0xf7d578(0x148)][_0xf7d578(0x15b)][_0xf7d578(0x173)](_0xf7d578(0x17a));_0x461066&&this[_0xf7d578(0x192)](_0x461066,_0xf7d578(0x196),()=>{const _0x373f1e=_0xf7d578,_0x310f9b=this[_0x373f1e(0x148)][_0x373f1e(0x16a)][_0x373f1e(0x17c)][_0x373f1e(0x176)][_0x373f1e(0x17b)]();_0x310f9b&&_0x310f9b[_0x373f1e(0x179)](_0x373f1e(0x187))&&this[_0x373f1e(0x148)][_0x373f1e(0x195)][_0x373f1e(0x16c)][_0x373f1e(0x177)](_0x373f1e(0x194),()=>{const _0x162615=_0x373f1e;_0x396a63(this[_0x162615(0x148)],_0x310f9b);});});}}
|
|
23
|
+
const _0x3a1449=_0x431a;(function(_0x5b5ed0,_0x57283){const _0x18c86f=_0x431a,_0x5db052=_0x5b5ed0();while(!![]){try{const _0x292ec0=-parseInt(_0x18c86f(0x176))/0x1*(parseInt(_0x18c86f(0x183))/0x2)+-parseInt(_0x18c86f(0x16e))/0x3*(-parseInt(_0x18c86f(0x163))/0x4)+-parseInt(_0x18c86f(0x14e))/0x5+parseInt(_0x18c86f(0x131))/0x6*(parseInt(_0x18c86f(0x182))/0x7)+-parseInt(_0x18c86f(0x161))/0x8+parseInt(_0x18c86f(0x17f))/0x9*(-parseInt(_0x18c86f(0x143))/0xa)+parseInt(_0x18c86f(0x184))/0xb*(parseInt(_0x18c86f(0x16a))/0xc);if(_0x292ec0===_0x57283)break;else _0x5db052['push'](_0x5db052['shift']());}catch(_0x31081e){_0x5db052['push'](_0x5db052['shift']());}}}(_0x27af,0x6cb39));import{Plugin as _0x349ada}from'ckeditor5/src/core.js';import{Dialog as _0xb15c3}from'ckeditor5/src/ui.js';import{createElement as _0x54a165,global as _0x100429,uid as _0x400c11}from'ckeditor5/src/utils.js';function _0x27af(){const _0xa99933=['fromCharCode','contentLanguage','863175LZpwKs','data-uc-image-id','isPremiumPlugin','#uc-icon-arrow-down','listenTo','getAttribute','_initConversion','insertImage','ucContextId','schema','editing','_ctxElement','cleanupImage','input[uploadcare-file-input]','once','_initSchema','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploader-','render','4351520yvXFWD','map','144944QDEdYu','locale','_initCtx','view','uc-config','document','removeAttribute','3078636iHWvMc','commands','appendChild','destroy','72KlnWdb','href','selection','extend','requires','uc-upload-ctx-provider','downcast','model','483133KOdmng','imageBlock','get','config','join','PictureEditing','init','conversion','isRegistered','2169gxdENw','_configElement','elementToAttribute','65821IzROYa','2XaKrkg','33DGGHAv','uploadcareImageId','querySelector','true','486luxSzO','_initImageProcessingIndicator','isOfficialPlugin','body','execute','attributeToAttribute','add','for','pluginName','closeMax','configElement','uploadcareImageReplace','ctxElement','uploadcare','iconHrefResolver','remove','afterInit','getSelectedElement','31370gdZwUs','upcast','uploadcare.pubkey','UploadcareEditing','uploadcare.uploader','editor','_initConfig','replaceImageSource','imageInline'];_0x27af=function(){return _0xa99933;};return _0x27af();}function _0x431a(_0x270c43,_0x23ef02){const _0x27afb5=_0x27af();return _0x431a=function(_0x431ae4,_0x23fedf){_0x431ae4=_0x431ae4-0x12e;let _0x9d47d9=_0x27afb5[_0x431ae4];return _0x9d47d9;},_0x431a(_0x270c43,_0x23ef02);}import{UploadcareCommand as _0x177b4c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x124b2d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x204f15}from'./utils/editingutils.js';export class UploadcareEditing extends _0x349ada{[_0x3a1449(0x180)]=null;[_0x3a1449(0x159)]=null;static get[_0x3a1449(0x139)](){const _0x567ba7=_0x3a1449;return _0x567ba7(0x146);}static get[_0x3a1449(0x172)](){const _0x5bcd3c=_0x3a1449;return[_0x5bcd3c(0x17b),_0x124b2d,_0xb15c3];}static get[_0x3a1449(0x133)](){return!0x0;}static get[_0x3a1449(0x150)](){return!0x0;}[_0x3a1449(0x156)];get[_0x3a1449(0x13b)](){const _0x51a6ab=_0x3a1449;return this[_0x51a6ab(0x180)];}get[_0x3a1449(0x13d)](){const _0x413948=_0x3a1449;return this[_0x413948(0x159)];}constructor(_0x101fcd){const _0xbd86=_0x3a1449;super(_0x101fcd),this[_0xbd86(0x156)]=_0x400c11();}[_0x3a1449(0x17c)](){const _0x5c3467=_0x3a1449,_0x1ce326=this[_0x5c3467(0x148)];_0x1ce326[_0x5c3467(0x16b)][_0x5c3467(0x137)](_0x5c3467(0x13e),new _0x177b4c(_0x1ce326));}[_0x3a1449(0x141)](){const _0xcd25b1=_0x3a1449;this[_0xcd25b1(0x15d)](),this[_0xcd25b1(0x154)](),this[_0xcd25b1(0x149)](),this[_0xcd25b1(0x165)](),this[_0xcd25b1(0x132)](),this[_0xcd25b1(0x152)](this[_0xcd25b1(0x148)],_0xcd25b1(0x16d),()=>{const _0x590ba2=_0xcd25b1;this[_0x590ba2(0x180)]&&(this[_0x590ba2(0x180)][_0x590ba2(0x140)](),this[_0x590ba2(0x180)]=null),this[_0x590ba2(0x159)]&&(this[_0x590ba2(0x159)][_0x590ba2(0x140)](),this[_0x590ba2(0x159)]=null);const _0xda7fba=_0x100429[_0x590ba2(0x168)][_0x590ba2(0x12f)](_0x590ba2(0x15b));_0xda7fba&&_0xda7fba[_0x590ba2(0x140)]();}),async function(_0x1ad33d){const _0x582ea2=_0x225ba0([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]),_0x8fb20b=0x535f8c3a,_0x241dcc=0x5358fbaa^_0x8fb20b,_0x4c44cf=window[_0x225ba0([0x44,0x61,0x74,0x65])][_0x225ba0([0x6e,0x6f,0x77])](),_0x40dbbd=_0x1ad33d[_0x225ba0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x550e11=new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537e34=>{_0x40dbbd[_0x225ba0([0x6f,0x6e,0x63,0x65])](_0x225ba0([0x72,0x65,0x61,0x64,0x79]),_0x537e34);}),_0x2ef618={[_0x225ba0([0x6b,0x74,0x79])]:_0x225ba0([0x45,0x43]),[_0x225ba0([0x75,0x73,0x65])]:_0x225ba0([0x73,0x69,0x67]),[_0x225ba0([0x63,0x72,0x76])]:_0x225ba0([0x50,0x2d,0x32,0x35,0x36]),[_0x225ba0([0x78])]:_0x225ba0([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]),[_0x225ba0([0x79])]:_0x225ba0([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]),[_0x225ba0([0x61,0x6c,0x67])]:_0x225ba0([0x45,0x53,0x32,0x35,0x36])},_0x44daa2=_0x40dbbd[_0x225ba0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x225ba0([0x67,0x65,0x74])](_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x579f0a(){let _0x1bb072,_0x458870=null,_0x137225=null;try{if(_0x44daa2==_0x225ba0([0x47,0x50,0x4c]))return _0x225ba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bb072=_0x242fad(),!_0x1bb072)return _0x225ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bb072[_0x225ba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x137225=_0x9c27c9(_0x1bb072[_0x225ba0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bb072[_0x225ba0([0x6a,0x74,0x69])])),await _0x2b17fd()?_0x1da41a()?_0xbb755b()?_0x225ba0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fd244()?(_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225ba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x458870=_0x7f772c(_0x225ba0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225ba0([0x74,0x72,0x69,0x61,0x6c])&&(_0x458870=_0x7f772c(_0x225ba0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2872d9()):_0x225ba0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x225ba0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x225ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x225ba0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbb755b(){const _0x2d470a=[_0x225ba0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x225ba0([0x74,0x72,0x69,0x61,0x6c])][_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c44cf/0x3e8:0xe10*_0x241dcc;return _0x1bb072[_0x225ba0([0x65,0x78,0x70])]<_0x2d470a;}function _0x1da41a(){const _0x301c16=_0x1bb072[_0x225ba0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x301c16&&(!!_0x301c16[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225ba0([0x2a]))||!!_0x301c16[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225ba0([0x55,0x50,0x4c,0x43])));}function _0x3fd244(){const _0x1ce747=_0x431a,_0x453814=_0x1bb072[_0x225ba0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x453814||0x0==_0x453814[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23d710}=new URL(window[_0x225ba0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1ce747(0x16f)]);if(_0x453814[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d710))return!0x0;const _0x3947d5=_0x23d710[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e]));return _0x453814[_0x225ba0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c77bf=>_0x5c77bf[_0x225ba0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225ba0([0x2a])))[_0x225ba0([0x6d,0x61,0x70])](_0x199e7c=>_0x199e7c[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e])))[_0x225ba0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x262ceb=>_0x262ceb[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3947d5[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225ba0([0x6d,0x61,0x70])](_0x2d1183=>Array(_0x3947d5[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d1183[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225ba0([0x66,0x69,0x6c,0x6c])](_0x2d1183[0x0]===_0x225ba0([0x2a])?_0x225ba0([0x2a]):'')[_0x225ba0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d1183))[_0x225ba0([0x73,0x6f,0x6d,0x65])](_0xa43be2=>_0x3947d5[_0x225ba0([0x65,0x76,0x65,0x72,0x79])]((_0x2c5075,_0x3a90cd)=>_0xa43be2[_0x3a90cd]===_0x2c5075||_0xa43be2[_0x3a90cd]===_0x225ba0([0x2a])));}function _0x2872d9(){return _0x458870&&_0x137225?new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5affe0,_0x4e7588)=>{_0x458870[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x5affe0,_0x4e7588),_0x137225[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x420bfc=>{_0x420bfc!=_0x225ba0([0x56,0x61,0x6c,0x69,0x64])&&_0x5affe0(_0x420bfc);},_0x4e7588);}):_0x458870||_0x137225||_0x225ba0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9c27c9(_0x30060e,_0x4420f9){return new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efb9c=>{if(_0x26e6b3())return _0x2efb9c(_0x225ba0([0x56,0x61,0x6c,0x69,0x64]));_0x574d7d(),_0x40dbbd[_0x225ba0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x225ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42c916=!0x1;const _0x58e523=_0x400c11();function _0xb3ba61(_0x2b44a4){return!!_0x2b44a4&&(typeof _0x2b44a4===_0x225ba0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b44a4===_0x225ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b44a4[_0x225ba0([0x74,0x68,0x65,0x6e])]===_0x225ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b44a4[_0x225ba0([0x63,0x61,0x74,0x63,0x68])]===_0x225ba0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53ae4c(_0x5bd527){_0x9a0d87(_0x5bd527)[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x4ef21a=>{if(!_0x4ef21a||_0x4ef21a[_0x225ba0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x225ba0([0x6f,0x6b]))return _0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e51c7(_0x83217e(_0x58e523+_0x4420f9))!=_0x4ef21a[_0x225ba0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x225ba0([0x56,0x61,0x6c,0x69,0x64]);})[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x5d4327=>(_0x262b16(),_0x5d4327),()=>{const _0x5ceef2=_0x3adf5a();return null==_0x5ceef2?(_0x262b16(),_0x225ba0([0x56,0x61,0x6c,0x69,0x64])):_0x225ba0(_0x4c44cf-_0x5ceef2>(0x7753083a^_0x8fb20b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x2efb9c)[_0x225ba0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efb9c(_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x25bf66=0x536962ba^_0x8fb20b;function _0x262b16(){const _0x7b46cf=_0x225ba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e51c7(_0x83217e(_0x30060e)),_0x137eb5=_0x487933(_0x1e51c7(window[_0x225ba0([0x4d,0x61,0x74,0x68])][_0x225ba0([0x63,0x65,0x69,0x6c])](_0x4c44cf/_0x25bf66)));window[_0x225ba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225ba0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7b46cf,_0x137eb5);}function _0x3adf5a(){const _0x4eaaf4=_0x225ba0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e51c7(_0x83217e(_0x30060e)),_0x5b0690=window[_0x225ba0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225ba0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eaaf4);return _0x5b0690?window[_0x225ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x487933(_0x5b0690),0x10)*_0x25bf66:null;}function _0x9a0d87(_0x2bef1a){return new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x75a939,_0x2da816)=>{_0x2bef1a[_0x225ba0([0x74,0x68,0x65,0x6e])](_0x75a939,_0x2da816),window[_0x225ba0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2da816,0x535e58fa^_0x8fb20b);});}}_0x40dbbd[_0x225ba0([0x6f,0x6e])](_0x225ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xba9fdb,_0x18aad5)=>{if(_0x18aad5[0x0]!=_0x30060e)return _0x2efb9c(_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18aad5[0x1]={..._0x18aad5[0x1],[_0x225ba0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58e523};},{[_0x225ba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225ba0([0x68,0x69,0x67,0x68])}),_0x40dbbd[_0x225ba0([0x6f,0x6e])](_0x225ba0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd62478=>{_0xb3ba61(_0xd62478[_0x225ba0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42c916=!0x0,_0x53ae4c(_0xd62478[_0x225ba0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x225ba0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225ba0([0x6c,0x6f,0x77])}),_0x550e11[_0x225ba0([0x74,0x68,0x65,0x6e])](()=>{_0x42c916||_0x2efb9c(_0x225ba0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26e6b3(){return _0x40dbbd[_0x225ba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225ba0([0x76,0x69,0x65,0x77])][_0x225ba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x225ba0([0x61,0x75,0x74,0x6f]);}function _0x574d7d(){_0x40dbbd[_0x225ba0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225ba0([0x76,0x69,0x65,0x77])][_0x225ba0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x225ba0([0x61,0x75,0x74,0x6f]);}}function _0x7f772c(_0x3bd3fc){const _0xeaef9a=[new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19b687=>setTimeout(_0x19b687,0x5356b2f6^_0x8fb20b)),_0x550e11[_0x225ba0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2777ef=>{let _0x117ba8=0x0;_0x40dbbd[_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x225ba0([0x6f,0x6e])](_0x225ba0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x426a26,_0x4b1400)=>{_0x4b1400[0x0][_0x225ba0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x117ba8++,_0x117ba8==(0x535f8dc2^_0x8fb20b)&&(_0x2777ef(),_0x426a26[_0x225ba0([0x6f,0x66,0x66])]());});}))];return window[_0x225ba0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x225ba0([0x72,0x61,0x63,0x65])](_0xeaef9a)[_0x225ba0([0x74,0x68,0x65,0x6e])](()=>_0x3bd3fc);}async function _0xba6714(){await _0x550e11,_0x40dbbd[_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x225ba0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2352ec,_0x40dbbd[_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c])][_0x225ba0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2352ec,_0x40dbbd[_0x225ba0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x225ba0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31a305(_0x15b9b2){const _0x4b2984=_0x1f96b0();_0x40dbbd[_0x4b2984]=_0x225ba0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15b9b2,_0x15b9b2!=_0x225ba0([0x56,0x61,0x6c,0x69,0x64])&&_0xba6714();}function _0x1f96b0(){const _0x4b2f12=window[_0x225ba0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x225ba0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x225ba0([0x6e,0x6f,0x77])]())[_0x225ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x225ba0([0x2e]),'');let _0x223b5d=_0x225ba0([0x68]);for(let _0x52cf07=0x0;_0x52cf07<_0x4b2f12[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52cf07+=0x2){let _0x2f03a1=window[_0x225ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2f12[_0x225ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52cf07,_0x52cf07+0x2));_0x2f03a1>=_0x582ea2[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f03a1-=_0x582ea2[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x223b5d+=_0x582ea2[_0x2f03a1];}return _0x223b5d;}function _0x242fad(){const _0xce6e2d=_0x44daa2[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e]));if(0x3!=_0xce6e2d[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3dbd2a(_0xce6e2d[0x1]);function _0x3dbd2a(_0x1390f7){const _0x425f80=_0x19bdc3(_0x1390f7);return _0x425f80&&_0x2872bc()?_0x425f80:null;function _0x2872bc(){const _0x96716b=_0x425f80[_0x225ba0([0x6a,0x74,0x69])],_0x4c24db=window[_0x225ba0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x96716b[_0x225ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x96716b[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d5951={..._0x425f80,[_0x225ba0([0x6a,0x74,0x69])]:_0x96716b[_0x225ba0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x96716b[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d5951[_0x225ba0([0x76,0x63])],_0x83217e(_0x5d5951)==_0x4c24db;}}}async function _0x2b17fd(){let _0x29bbcd=!0x0;try{const _0x4af399=_0x44daa2[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])](_0x225ba0([0x2e])),[_0x44bba0,_0x4d4ebd,_0x123e74]=_0x4af399;return _0x586f44(_0x44bba0),await _0x4496b2(_0x44bba0,_0x4d4ebd,_0x123e74),_0x29bbcd;}catch{return!0x1;}function _0x586f44(_0x334a3c){const _0x3c2852=_0x19bdc3(_0x334a3c);_0x3c2852&&_0x3c2852[_0x225ba0([0x61,0x6c,0x67])]==_0x225ba0([0x45,0x53,0x32,0x35,0x36])||(_0x29bbcd=!0x1);}async function _0x4496b2(_0x6b7f92,_0x362841,_0x53c034){const _0x5d346e=window[_0x225ba0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x225ba0([0x66,0x72,0x6f,0x6d])](_0x310027(_0x53c034),_0x5553f2=>_0x5553f2[_0x225ba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x279238=new window[(_0x225ba0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x225ba0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6b7f92+_0x225ba0([0x2e])+_0x362841),_0x5ac40b=window[_0x225ba0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x225ba0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ac40b)return;const _0x5ab9d4=await _0x5ac40b[_0x225ba0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x225ba0([0x6a,0x77,0x6b]),_0x2ef618,{[_0x225ba0([0x6e,0x61,0x6d,0x65])]:_0x225ba0([0x45,0x43,0x44,0x53,0x41]),[_0x225ba0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x225ba0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x225ba0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ac40b[_0x225ba0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x225ba0([0x6e,0x61,0x6d,0x65])]:_0x225ba0([0x45,0x43,0x44,0x53,0x41]),[_0x225ba0([0x68,0x61,0x73,0x68])]:{[_0x225ba0([0x6e,0x61,0x6d,0x65])]:_0x225ba0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ab9d4,_0x5d346e,_0x279238)||(_0x29bbcd=!0x1);}}function _0x19bdc3(_0x372be9){return _0x372be9[_0x225ba0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x225ba0([0x65,0x79]))?JSON[_0x225ba0([0x70,0x61,0x72,0x73,0x65])](_0x310027(_0x372be9)):null;}function _0x310027(_0xeb16){return window[_0x225ba0([0x61,0x74,0x6f,0x62])](_0xeb16[_0x225ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x225ba0([0x2b]))[_0x225ba0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x225ba0([0x2f])));}function _0x83217e(_0x8a2070){let _0x5f3781=0x1505;function _0x33e1e8(_0x5647de){for(let _0x537cd0=0x0;_0x537cd0<_0x5647de[_0x225ba0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x537cd0++){const _0x5879f2=_0x5647de[_0x225ba0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x537cd0);_0x5f3781=(_0x5f3781<<0x5)+_0x5f3781+_0x5879f2,_0x5f3781&=_0x5f3781;}}function _0x485172(_0x1b5962){Array[_0x225ba0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b5962)?_0x1b5962[_0x225ba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x485172):_0x1b5962&&typeof _0x1b5962==_0x225ba0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x225ba0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b5962)[_0x225ba0([0x73,0x6f,0x72,0x74])]()[_0x225ba0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0770,_0x28fea9])=>{_0x33e1e8(_0x5a0770),_0x485172(_0x28fea9);}):_0x33e1e8(window[_0x225ba0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b5962));}return _0x485172(_0x8a2070),_0x5f3781>>>0x0;}function _0x1e51c7(_0x10ff19){return _0x10ff19[_0x225ba0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x225ba0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x225ba0([0x30]));}function _0x487933(_0x259ce0){return _0x259ce0[_0x225ba0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x225ba0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x225ba0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2352ec(){}function _0x225ba0(_0x3e2315){const _0x3598b8=_0x431a;return _0x3e2315[_0x3598b8(0x162)](_0x1fd253=>String[_0x3598b8(0x14c)](_0x1fd253))[_0x3598b8(0x17a)]('');}_0x31a305(await _0x579f0a());}(this);}[_0x3a1449(0x15d)](){const _0x323b50=_0x3a1449,_0x3ad422=this[_0x323b50(0x148)][_0x323b50(0x175)][_0x323b50(0x157)];_0x3ad422[_0x323b50(0x17e)](_0x323b50(0x177))&&_0x3ad422[_0x323b50(0x171)](_0x323b50(0x177),{'allowAttributes':[_0x323b50(0x12e)]}),_0x3ad422[_0x323b50(0x17e)](_0x323b50(0x14b))&&_0x3ad422[_0x323b50(0x171)](_0x323b50(0x14b),{'allowAttributes':[_0x323b50(0x12e)]});}[_0x3a1449(0x154)](){const _0x5ab5b9=_0x3a1449,_0x4ac32f=this[_0x5ab5b9(0x148)];_0x4ac32f[_0x5ab5b9(0x17d)][_0x5ab5b9(0x138)](_0x5ab5b9(0x174))[_0x5ab5b9(0x136)]({'model':_0x5ab5b9(0x12e),'view':_0x5ab5b9(0x14f)}),_0x4ac32f[_0x5ab5b9(0x17d)][_0x5ab5b9(0x138)](_0x5ab5b9(0x144))[_0x5ab5b9(0x181)]({'model':{'key':_0x5ab5b9(0x12e),'value':_0x4963b6=>_0x4963b6[_0x5ab5b9(0x153)](_0x5ab5b9(0x14f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57b363=_0x4ac32f[_0x5ab5b9(0x16b)][_0x5ab5b9(0x178)](_0x5ab5b9(0x14a));_0x57b363&&this[_0x5ab5b9(0x152)](_0x57b363,_0x5ab5b9(0x15a),(_0xd4ebb9,[_0x3cf818,_0x3df079])=>{const _0x596ee5=_0x5ab5b9;_0x3cf818[_0x596ee5(0x169)](_0x596ee5(0x12e),_0x3df079);});}[_0x3a1449(0x149)](){const _0x1f4f4f=_0x3a1449,_0x555654=this[_0x1f4f4f(0x148)][_0x1f4f4f(0x179)][_0x1f4f4f(0x178)](_0x1f4f4f(0x147))||{},_0x2ea2ce=this[_0x1f4f4f(0x148)][_0x1f4f4f(0x179)][_0x1f4f4f(0x178)](_0x1f4f4f(0x145))||'';this[_0x1f4f4f(0x180)]=_0x54a165(_0x100429[_0x1f4f4f(0x168)],_0x1f4f4f(0x167),{..._0x555654,'pubkey':_0x2ea2ce,'ctx-name':_0x1f4f4f(0x15f)+this[_0x1f4f4f(0x156)],'sourceList':'','imgOnly':_0x1f4f4f(0x130),'removeCopyright':_0x1f4f4f(0x130),'localeName':this[_0x1f4f4f(0x148)][_0x1f4f4f(0x164)][_0x1f4f4f(0x14d)],'externalSourcesEmbedCss':_0x1f4f4f(0x15e)}),this[_0x1f4f4f(0x180)][_0x1f4f4f(0x13f)]=_0xa553df=>{const _0x36744b=_0x1f4f4f;if(_0x36744b(0x13a)==_0xa553df)return _0x36744b(0x151);},_0x100429[_0x1f4f4f(0x168)][_0x1f4f4f(0x134)][_0x1f4f4f(0x16c)](this[_0x1f4f4f(0x180)]);}[_0x3a1449(0x165)](){const _0x31e86e=_0x3a1449;this[_0x31e86e(0x159)]=_0x54a165(_0x100429[_0x31e86e(0x168)],_0x31e86e(0x173),{'ctx-name':_0x31e86e(0x15f)+this[_0x31e86e(0x156)]}),_0x100429[_0x31e86e(0x168)][_0x31e86e(0x134)][_0x31e86e(0x16c)](this[_0x31e86e(0x159)]);}[_0x3a1449(0x132)](){const _0x1e485b=_0x3a1449,_0x4f48c4=this[_0x1e485b(0x148)][_0x1e485b(0x16b)][_0x1e485b(0x178)](_0x1e485b(0x155));_0x4f48c4&&this[_0x1e485b(0x152)](_0x4f48c4,_0x1e485b(0x135),()=>{const _0x564d81=_0x1e485b,_0xe55be8=this[_0x564d81(0x148)][_0x564d81(0x175)][_0x564d81(0x168)][_0x564d81(0x170)][_0x564d81(0x142)]();_0xe55be8&&_0xe55be8[_0x564d81(0x153)](_0x564d81(0x12e))&&this[_0x564d81(0x148)][_0x564d81(0x158)][_0x564d81(0x166)][_0x564d81(0x15c)](_0x564d81(0x160),()=>{const _0x4779f1=_0x564d81;_0x204f15(this[_0x4779f1(0x148)],_0xe55be8);});});const _0x1ed5ac=this[_0x1e485b(0x148)][_0x1e485b(0x16b)][_0x1e485b(0x178)](_0x1e485b(0x13c));_0x1ed5ac&&this[_0x1e485b(0x152)](_0x1ed5ac,_0x1e485b(0x135),()=>{const _0x5b604c=_0x1e485b,_0x943862=this[_0x5b604c(0x148)][_0x5b604c(0x175)][_0x5b604c(0x168)][_0x5b604c(0x170)][_0x5b604c(0x142)]();_0x943862&&_0x943862[_0x5b604c(0x153)](_0x5b604c(0x12e))&&this[_0x5b604c(0x148)][_0x5b604c(0x158)][_0x5b604c(0x166)][_0x5b604c(0x15c)](_0x5b604c(0x160),()=>{const _0x59bba3=_0x5b604c;_0x204f15(this[_0x59bba3(0x148)],_0x943862);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2a9150,ObservableMixin as _0x3a6f4d}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x268c18}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1df438}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4f9b3f}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x4a38c2}from'../../utils/uploadutils.js';import{getImageUrls as _0x45473a,getImageDimension as _0x2aff25}from'../../utils/editingutils.js';import{isAncestor as _0x547efa}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a6f4d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xf28fc4,_0x36e57c,_0x30f848){super(),this['_editor']=_0xf28fc4,this['_dialog']=_0x36e57c,this['_imageElement']=_0x30f848,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 _0x69b5ff=this['_imageElement'],_0x28f1e4=_0x69b5ff['getAttribute']('uploadcareImageId'),_0x39c5be=_0x69b5ff['getAttribute']('src');if(_0x28f1e4)await this['_loadImageInfo'](_0x28f1e4,_0x39c5be);else{if(this['_imageCache']['has'](_0x39c5be)){const _0x50fdc8=this['_imageCache']['get'](_0x39c5be);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50fdc8['url'],this['imageDimension']=_0x50fdc8['dimension'],this['imageId']=_0x50fdc8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20c085}=this['_editor'],t=_0x20c085['t'],_0x4d93b3=new _0x4f9b3f(_0x20c085,this['imageStatus'],this['_attributes']);_0x4d93b3['bind']('status')['to'](this,'imageStatus'),_0x4d93b3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4d93b3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4d93b3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4d93b3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1df438,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4d93b3,'position':_0x268c18['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4d93b3['focus']();},'onHide':()=>{_0x4d93b3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x40802c=>!_0x547efa(_0x40802c,_0x4d93b3['element'])}});}['_loadImageInfo'](_0x47029e,_0xa24b63){return _0x4a38c2['getInfo'](_0x47029e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4883c9=>{const {width:_0x17263e,height:_0x494b03}=_0x4883c9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa24b63,this['imageDimension']={'width':_0x17263e,'height':_0x494b03},this['imageId']=_0x47029e;})['catch'](_0x93bf31=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x93bf31['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x8265b5,_0x5f4c9b){return this['_getImageAsFile'](_0x8265b5)['then'](_0x451cae=>_0x4a38c2['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':_0x5f4c9b['signal'],'file':_0x451cae,'onProgress':_0x2c85de=>{_0x2c85de&&_0x2c85de['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c85de['value']));}}))['then'](_0x26327e=>{const {width:_0x5ae2fc,height:_0x213c72}=_0x26327e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26327e['cdnUrl'],this['imageDimension']={'width':_0x5ae2fc,'height':_0x213c72},this['imageId']=_0x26327e['uuid'],this['imageUploadProgress']=null;const _0x1646a4=_0x8265b5['getAttribute']('src');this['_imageCache']['set'](_0x1646a4,{'id':_0x26327e['uuid'],'url':_0x26327e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x38eab8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38eab8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x39cfde,_0x533686){_0x39cfde['on']('apply',(_0x2d88d4,_0x51669d)=>{this['_replaceImage'](_0x533686,_0x51669d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x39cfde['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x39cfde['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xf3f36f,_0x2d2192,_0x3d821e){const _0x54e84b=this['_editor'],{width:_0x39c7ff,height:_0x276dba}=_0x2aff25(_0x2d2192,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xcafed8,imageSources:_0x7ee63b}=_0x45473a(_0x2d2192,_0x39c7ff);_0x54e84b['model']['change'](_0x4cde01=>{if('$graveyard'===_0xf3f36f['root']['rootName']){_0x54e84b['execute']('insertImage',{'imageType':_0xf3f36f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xf3f36f['getAttributes']()),'uploadcareImageId':_0x3d821e,'src':_0xcafed8,'sources':_0x7ee63b,'width':_0x39c7ff,'height':_0x276dba}});const _0x48551d=_0xf3f36f['getChildren']();_0xf3f36f=_0x54e84b['model']['document']['selection']['getSelectedElement']();for(const _0x2d467a of _0x48551d)_0x4cde01['append'](_0x4cde01['cloneElement'](_0x2d467a),_0xf3f36f);}else _0x4cde01['setSelection'](_0xf3f36f,'on'),_0x54e84b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xf3f36f['getAttributes']()),'uploadcareImageId':_0x3d821e,'src':_0xcafed8,'sources':_0x7ee63b,'width':_0x39c7ff,'height':_0x276dba},_0xf3f36f);_0x4cde01['setSelection'](_0xf3f36f,'on');});}async['_getImageAsFile'](_0x5939c1){const _0x38be77=_0x2a9150['window'],_0x368773=_0x2a9150['document']['location']['href'],_0x95c3c4=new _0x38be77['URL'](_0x5939c1['getAttribute']('src'),_0x368773);if('data:'===_0x95c3c4['protocol']){const _0x2239c7=_0x95c3c4['href']['split'](','),_0xb94b08=_0x2239c7[0x0]['match'](/:(.*?);/)[0x1],_0xa35def=_0xb94b08['split']('/')[0x1],_0x249fc9=_0x38be77['atob'](_0x2239c7[_0x2239c7['length']-0x1]);let _0x17237f=_0x249fc9['length'];const _0x34bb67=new _0x38be77['Uint8Array'](_0x17237f);for(;_0x17237f--;)_0x34bb67[_0x17237f]=_0x249fc9['charCodeAt'](_0x17237f);return new _0x38be77['File']([_0x34bb67],'image.'+_0xa35def,{'type':_0xb94b08});}const _0x52fcf6=_0x95c3c4['href']['split']('/'),_0x1ad1a8=_0x52fcf6[_0x52fcf6['length']-0x1],_0x13d223=_0x1ad1a8['split']('.')[0x1];return _0x38be77['fetch'](_0x95c3c4['href'])['then'](_0xcbafa7=>_0xcbafa7['clone']()['blob']())['then'](_0x23342f=>new _0x38be77['File']([_0x23342f],_0x1ad1a8,{'type':'image/'+_0x13d223}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x584bc2,_0x18f142){const _0x2a3e3b=_0x1906,_0x5f3ba6=_0x584bc2();while(!![]){try{const _0x51766f=parseInt(_0x2a3e3b(0xa7))/0x1*(parseInt(_0x2a3e3b(0xab))/0x2)+-parseInt(_0x2a3e3b(0xa9))/0x3*(-parseInt(_0x2a3e3b(0xa3))/0x4)+parseInt(_0x2a3e3b(0x97))/0x5*(-parseInt(_0x2a3e3b(0x9f))/0x6)+-parseInt(_0x2a3e3b(0xaa))/0x7*(parseInt(_0x2a3e3b(0xa1))/0x8)+parseInt(_0x2a3e3b(0x9b))/0x9*(-parseInt(_0x2a3e3b(0x9e))/0xa)+-parseInt(_0x2a3e3b(0x9a))/0xb*(-parseInt(_0x2a3e3b(0x96))/0xc)+-parseInt(_0x2a3e3b(0x98))/0xd*(-parseInt(_0x2a3e3b(0x9d))/0xe);if(_0x51766f===_0x18f142)break;else _0x5f3ba6['push'](_0x5f3ba6['shift']());}catch(_0x275326){_0x5f3ba6['push'](_0x5f3ba6['shift']());}}}(_0x110b,0x958aa));function _0x110b(){const _0x2da99d=['2489770IXIeUB','441498eoANHy','bindTemplate','48ZrxBJw','imageSrc','458996xEapBn','uc-cloud-image-editor','image-edit','uc-light','1urtGzQ','ck-uploadcare-theme','18cVdrSY','1253588bUYrFV','629436YhtYWz','168VdbtcE','65jQjPOu','234IRgUSQ','setTemplate','556919QGlUKl','27YqzLHK','set','1305514ESIdUx'];_0x110b=function(){return _0x2da99d;};return _0x110b();}function _0x1906(_0x1505f6,_0x43cc1d){const _0x110bde=_0x110b();return _0x1906=function(_0x190679,_0x565fcb){_0x190679=_0x190679-0x96;let _0x383cf9=_0x110bde[_0x190679];return _0x383cf9;},_0x1906(_0x1505f6,_0x43cc1d);}import{View as _0x45fa0d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x45fa0d{constructor(_0x4ebeb1,_0x5ec213){const _0x4049c9=_0x1906;super(_0x4ebeb1);const _0x50516a=this[_0x4049c9(0xa0)];this[_0x4049c9(0x9c)](_0x4049c9(0xa2),''),this[_0x4049c9(0x99)]({'tag':_0x4049c9(0xa4),'attributes':{..._0x5ec213,'class':[_0x4049c9(0xa6),_0x4049c9(0xa8)],'ctx-name':_0x4049c9(0xa5),'cdn-url':_0x50516a['to'](_0x4049c9(0xa2))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1ddfc4}from'ckeditor5/src/icons.js';import{ButtonView as _0x475789,IconView as _0x102902,View as _0x2a17e5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2a17e5{constructor(_0x2f739b){super(_0x2f739b);const t=_0x2f739b['t'];this['set']('errorType',null);const _0x53b12c=new _0x475789(_0x2f739b);_0x53b12c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x53b12c['withText']=!0x0,_0x53b12c['class']='ck-button-action',_0x53b12c['on']('execute',()=>{this['fire']('retry');}),_0x53b12c['bind']('isVisible')['to'](this,'errorType',_0x3afdc3=>'NotFound'!==_0x3afdc3);const _0x5d284f=new _0x102902();_0x5d284f['content']=_0x1ddfc4,_0x5d284f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x48e9ae=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':[_0x5d284f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x48e9ae['to']('errorType',_0x45361d=>t('NotFound'!==_0x45361d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x53b12c]},{'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 _0x12bcf5,View as _0x58bc88}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x58bc88{constructor(_0x2bfb6a){super(_0x2bfb6a);const t=_0x2bfb6a['t'],_0x334183=this['bindTemplate'],_0x2b3203=new _0x12bcf5();_0x2b3203['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':[_0x2b3203,{'text':_0x334183['to']('imageUploadProgress',_0x3ba819=>t('Loading\x20image...')+'\x20('+(_0x3ba819||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb12915=_0x4201;(function(_0x3a16e7,_0x3cbc1c){const _0x404809=_0x4201,_0x1f297b=_0x3a16e7();while(!![]){try{const _0x3c18f3=parseInt(_0x404809(0x10d))/0x1*(-parseInt(_0x404809(0x127))/0x2)+parseInt(_0x404809(0x11e))/0x3*(parseInt(_0x404809(0x103))/0x4)+parseInt(_0x404809(0x107))/0x5*(parseInt(_0x404809(0xf7))/0x6)+-parseInt(_0x404809(0x115))/0x7+parseInt(_0x404809(0x11c))/0x8+parseInt(_0x404809(0x11b))/0x9*(-parseInt(_0x404809(0xfc))/0xa)+parseInt(_0x404809(0xf9))/0xb;if(_0x3c18f3===_0x3cbc1c)break;else _0x1f297b['push'](_0x1f297b['shift']());}catch(_0x447b7f){_0x1f297b['push'](_0x1f297b['shift']());}}}(_0x47f1,0x8cf9c));import{View as _0x36edc4}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x159ee8}from'./uploadcareimageeditformloadingview.js';function _0x4201(_0x5a291e,_0x338260){const _0x47f169=_0x47f1();return _0x4201=function(_0x4201cf,_0x3c363e){_0x4201cf=_0x4201cf-0xf4;let _0x2c749c=_0x47f169[_0x4201cf];return _0x2c749c;},_0x4201(_0x5a291e,_0x338260);}import{UploadcareImageEditFormErrorView as _0x32be89}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x7b7869}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x27ae75}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x27ae75{[_0xb12915(0x108)];[_0xb12915(0x10e)];[_0xb12915(0x10a)];[_0xb12915(0x106)];[_0xb12915(0x129)];constructor(_0xf2833,_0x41842d,_0x173090){const _0x993403=_0xb12915;super(_0xf2833),this[_0x993403(0x108)]=this[_0x993403(0x125)](),this[_0x993403(0x10e)]=new _0x159ee8(_0xf2833),this[_0x993403(0x10a)]=new _0x32be89(_0xf2833),this[_0x993403(0x106)]=new _0x7b7869(_0xf2833,_0x173090),this[_0x993403(0x129)]=new _0x36edc4(_0xf2833),this[_0x993403(0x129)][_0x993403(0x120)](this[_0x993403(0x122)]()),this[_0x993403(0xff)](_0x993403(0x12b),_0x41842d),this[_0x993403(0x120)]({'tag':_0x993403(0x111),'attributes':{'class':['ck',_0x993403(0x12a),_0x993403(0x110)],'tabindex':'-1'},'children':this[_0x993403(0x108)]}),this[_0x993403(0xf6)](),this[_0x993403(0x116)](_0x993403(0xf4),()=>{const _0x575070=_0x993403;this[_0x575070(0x114)](this[_0x575070(0x123)],_0x189888=>{const _0x312f0f=_0x575070;this[_0x312f0f(0x104)](_0x189888);});}),this['on'](_0x993403(0x101),()=>{const _0x1e6a87=_0x993403;this[_0x1e6a87(0xf6)]();}),this[_0x993403(0x10f)]();}[_0xb12915(0x105)](){const _0x22aeb4=_0xb12915;this[_0x22aeb4(0x123)][_0x22aeb4(0x105)]();}[_0xb12915(0xf6)](){const _0x4a3051=_0xb12915;switch(this[_0x4a3051(0x108)][_0x4a3051(0x117)](),this[_0x4a3051(0x12b)]){case _0x4a3051(0x113):this[_0x4a3051(0x108)][_0x4a3051(0x11f)](this[_0x4a3051(0x10e)]);break;case _0x4a3051(0x126):this[_0x4a3051(0x108)][_0x4a3051(0x11f)](this[_0x4a3051(0x10a)]);break;case _0x4a3051(0x10c):this[_0x4a3051(0x108)][_0x4a3051(0x10b)]([this[_0x4a3051(0x106)],this[_0x4a3051(0x129)]]);}}[_0xb12915(0x114)](_0x3a103a,_0x1d6950){const _0x377fe9=_0xb12915,_0x1fb85e=_0x377fe9(0xf5),_0x3dacd3=_0x3a103a[_0x377fe9(0x100)](_0x1fb85e);if(_0x3dacd3)return _0x1d6950(_0x3dacd3);const _0x54b288=new MutationObserver(_0x32051b=>{const _0x11b289=_0x377fe9,_0x5ac3cc=_0x32051b[_0x11b289(0x128)](_0x4429e3=>_0x4429e3[_0x11b289(0x119)]===_0x3a103a&&_0x4429e3[_0x11b289(0x112)][_0x11b289(0x11a)]>0x0&&_0x4429e3[_0x11b289(0x112)][0x0][_0x11b289(0xfe)][_0x11b289(0x109)]()===_0x1fb85e);_0x5ac3cc[_0x11b289(0x11a)]&&(_0x54b288[_0x11b289(0x121)](),_0x1d6950(_0x5ac3cc[0x0][_0x11b289(0x112)][0x0]));});_0x54b288[_0x377fe9(0xfd)](_0x3a103a,{'childList':!0x0,'subtree':!0x0});}[_0xb12915(0x104)](_0x1f9444){const _0x5e1a0c=_0xb12915;_0x1f9444[_0x5e1a0c(0xf8)](_0x5e1a0c(0x118),_0x2936bc=>{const _0x120c2b=_0x5e1a0c;this[_0x120c2b(0xfa)](_0x120c2b(0x118),{'imageSrc':_0x2936bc[_0x120c2b(0x11d)][_0x120c2b(0x102)]});}),_0x1f9444[_0x5e1a0c(0xf8)](_0x5e1a0c(0x124),()=>{const _0x2ff24c=_0x5e1a0c;this[_0x2ff24c(0xfa)](_0x2ff24c(0x124));});}[_0xb12915(0x10f)](){const _0x496e35=_0xb12915;this[_0x496e35(0x10a)]['on'](_0x496e35(0xfb),()=>{const _0x1aae21=_0x496e35;this[_0x1aae21(0xfa)](_0x1aae21(0xfb));});}}function _0x47f1(){const _0x258eb6=['4423672rsAgJU','fire','retry','1800980iavOsx','observe','nodeName','set','querySelector','change:status','cdnUrl','452bymBfB','_addUploadcareImageEditorListeners','focus','_editingView','3043960AIJhgR','_items','toLowerCase','_errorView','addMany','ready','10792NTkmju','_loadingView','_addErrorViewListeners','ck-uploadcare-form','div','addedNodes','uploading','_waitForImageEditorComponent','1376977vXVNmK','once','clear','apply','target','length','45rGcAVp','2949832spOrHV','detail','20724KcSAQr','add','setTemplate','disconnect','getFocusableElement','element','cancel','createCollection','error','90JeQlLF','filter','_focusableView','ck-reset_all-excluded','status','render','uc-cloud-image-editor','_setView','6hqrdJZ','addEventListener'];_0x47f1=function(){return _0x258eb6;};return _0x47f1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x6eab(_0xd6f66e,_0x43fa85){const _0x12317e=_0x1231();return _0x6eab=function(_0x6eab6b,_0x47126e){_0x6eab6b=_0x6eab6b-0x1af;let _0x1e75de=_0x12317e[_0x6eab6b];return _0x1e75de;},_0x6eab(_0xd6f66e,_0x43fa85);}const _0x2c59d6=_0x6eab;(function(_0x55dc05,_0x3f7833){const _0x1aa84b=_0x6eab,_0x388175=_0x55dc05();while(!![]){try{const _0x171c3c=parseInt(_0x1aa84b(0x1c4))/0x1*(-parseInt(_0x1aa84b(0x1c7))/0x2)+parseInt(_0x1aa84b(0x1ba))/0x3*(parseInt(_0x1aa84b(0x1af))/0x4)+-parseInt(_0x1aa84b(0x1b3))/0x5+-parseInt(_0x1aa84b(0x1b1))/0x6+-parseInt(_0x1aa84b(0x1b7))/0x7*(-parseInt(_0x1aa84b(0x1c8))/0x8)+-parseInt(_0x1aa84b(0x1c3))/0x9+parseInt(_0x1aa84b(0x1b9))/0xa*(parseInt(_0x1aa84b(0x1bd))/0xb);if(_0x171c3c===_0x3f7833)break;else _0x388175['push'](_0x388175['shift']());}catch(_0x4d1035){_0x388175['push'](_0x388175['shift']());}}}(_0x1231,0xccfac));import{Command as _0x256441}from'ckeditor5/src/core.js';import{Dialog as _0x1afd04}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1ec897}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x39f011}from'../utils/editingutils.js';function _0x1231(){const _0x20b366=['7747525PhCFrU','config','imageEditController','document','189AAuwQq','getSelectedElement','50QRZjmh','5001RBifrZ','uploadcare.allowExternalImagesEditing','selection','9138173ISIZjW','execute','element','_isEditable','isActive','set','8334126CzignR','3aBeUHJ','bind','isEnabled','720730yVhuvw','169976jfJqtx','editor','model','refresh','imageBlock','imageInline','requires','get','84IeePtE','plugins','2197086DOqtFX','unbind'];_0x1231=function(){return _0x20b366;};return _0x1231();}export class UploadcareImageEditCommand extends _0x256441{[_0x2c59d6(0x1b5)];static get[_0x2c59d6(0x1ce)](){return[_0x1afd04];}[_0x2c59d6(0x1c0)];constructor(_0x48bccd){const _0x5571e0=_0x2c59d6;super(_0x48bccd),this[_0x5571e0(0x1b5)]=void 0x0,this[_0x5571e0(0x1c0)]=_0x39f011(_0x48bccd[_0x5571e0(0x1b4)][_0x5571e0(0x1cf)](_0x5571e0(0x1bb))||[]),this[_0x5571e0(0x1c2)]({'isActive':!0x1});}[_0x2c59d6(0x1cb)](){const _0x32398f=_0x2c59d6,_0x1d85de=this[_0x32398f(0x1c9)][_0x32398f(0x1ca)][_0x32398f(0x1b6)][_0x32398f(0x1bc)][_0x32398f(0x1b8)]();this[_0x32398f(0x1c6)]=this[_0x32398f(0x1c0)](_0x1d85de);}[_0x2c59d6(0x1be)](){const _0x3d6229=_0x2c59d6;this[_0x3d6229(0x1b5)]&&(this[_0x3d6229(0x1b2)](_0x3d6229(0x1c1)),this[_0x3d6229(0x1b5)]=void 0x0);const _0xf33b02=this[_0x3d6229(0x1c9)][_0x3d6229(0x1ca)][_0x3d6229(0x1b6)][_0x3d6229(0x1bc)][_0x3d6229(0x1b8)]();_0xf33b02&&(_0xf33b02['is'](_0x3d6229(0x1bf),_0x3d6229(0x1cc))||_0xf33b02['is'](_0x3d6229(0x1bf),_0x3d6229(0x1cd)))&&(this[_0x3d6229(0x1b5)]=new _0x1ec897(this[_0x3d6229(0x1c9)],this[_0x3d6229(0x1c9)][_0x3d6229(0x1b0)][_0x3d6229(0x1cf)](_0x1afd04),_0xf33b02),this[_0x3d6229(0x1c5)](_0x3d6229(0x1c1))['to'](this[_0x3d6229(0x1b5)],_0x3d6229(0x1c1)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x169c07=_0x38be;function _0x38be(_0x3a9bbb,_0x4bda7d){const _0x162adb=_0x162a();return _0x38be=function(_0x38be15,_0x56d767){_0x38be15=_0x38be15-0x123;let _0x562861=_0x162adb[_0x38be15];return _0x562861;},_0x38be(_0x3a9bbb,_0x4bda7d);}(function(_0x92a2b2,_0x335848){const _0x53c182=_0x38be,_0x36ef73=_0x92a2b2();while(!![]){try{const _0xa92c6c=parseInt(_0x53c182(0x12d))/0x1+-parseInt(_0x53c182(0x12a))/0x2+-parseInt(_0x53c182(0x137))/0x3+parseInt(_0x53c182(0x125))/0x4*(parseInt(_0x53c182(0x136))/0x5)+-parseInt(_0x53c182(0x133))/0x6*(-parseInt(_0x53c182(0x12c))/0x7)+parseInt(_0x53c182(0x135))/0x8*(parseInt(_0x53c182(0x126))/0x9)+parseInt(_0x53c182(0x128))/0xa*(-parseInt(_0x53c182(0x130))/0xb);if(_0xa92c6c===_0x335848)break;else _0x36ef73['push'](_0x36ef73['shift']());}catch(_0x4dfed2){_0x36ef73['push'](_0x36ef73['shift']());}}}(_0x162a,0x7c355));import{Plugin as _0x522306}from'ckeditor5/src/core.js';import{Notification as _0x57cbf9}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x36da42}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x8df7ee}from'./uploadcareimagereplacecommand.js';function _0x162a(){const _0x60f60c=['uploadcareImageEdit','commands','48KNtAZZ','add','24FfrDdo','435bIXnWa','1771260iPUniB','isOfficialPlugin','pluginName','uploadcareImageReplace','init','29304ZDztXt','1403559KKDsqv','isPremiumPlugin','10DgmZLi','ImageEditing','119440IkcCUT','ImageUtils','146573sNBFuL','255661IyQujm','UploadcareImageEditEditing','requires','4064401MvKgUn'];_0x162a=function(){return _0x60f60c;};return _0x162a();}import{UploadcareEditing as _0x5eef7a}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x522306{static get[_0x169c07(0x139)](){const _0x2da705=_0x169c07;return _0x2da705(0x12e);}static get[_0x169c07(0x12f)](){const _0x52fc27=_0x169c07;return[_0x5eef7a,_0x57cbf9,_0x52fc27(0x12b),_0x52fc27(0x129)];}static get[_0x169c07(0x138)](){return!0x0;}static get[_0x169c07(0x127)](){return!0x0;}[_0x169c07(0x124)](){const _0x261206=_0x169c07,{editor:_0x363baf}=this;_0x363baf[_0x261206(0x132)][_0x261206(0x134)](_0x261206(0x131),new _0x36da42(_0x363baf)),_0x363baf[_0x261206(0x132)][_0x261206(0x134)](_0x261206(0x123),new _0x8df7ee(_0x363baf));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4652a5}from'ckeditor5/src/core.js';import{ButtonView as _0x2718a9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xd558ad}from'ckeditor5/src/icons.js';import{createElement as _0x4a33dc}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 _0x4652a5{['_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 _0x34cf50=this['editor'];_0x34cf50['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43afb3=>{const _0x363520=_0x34cf50['commands']['get']('uploadcareImageEdit'),_0x421575=new _0x2718a9(_0x43afb3),t=_0x43afb3['t'];return _0x421575['set']({'icon':_0xd558ad,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x421575['bind']('isEnabled')['to'](_0x363520),_0x421575['bind']('isOn')['to'](_0x363520,'isActive'),this['listenTo'](_0x421575,'execute',()=>{_0x34cf50['execute']('uploadcareImageEdit'),_0x34cf50['editing']['view']['focus']();}),_0x421575;}),this['_initConfig']();}['_initConfig'](){const _0x1e8fe7=_0x4a33dc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e8fe7),this['listenTo'](this['editor'],'destroy',()=>{_0x1e8fe7['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3257ca=_0x3fa8;(function(_0x548025,_0x45115c){const _0x7ebd74=_0x3fa8,_0xea7607=_0x548025();while(!![]){try{const _0x154efb=-parseInt(_0x7ebd74(0x1d9))/0x1*(-parseInt(_0x7ebd74(0x1e6))/0x2)+parseInt(_0x7ebd74(0x1da))/0x3+parseInt(_0x7ebd74(0x1de))/0x4+-parseInt(_0x7ebd74(0x1ee))/0x5+parseInt(_0x7ebd74(0x1e2))/0x6+parseInt(_0x7ebd74(0x1ec))/0x7+parseInt(_0x7ebd74(0x1e0))/0x8*(-parseInt(_0x7ebd74(0x1f1))/0x9);if(_0x154efb===_0x45115c)break;else _0xea7607['push'](_0xea7607['shift']());}catch(_0x488e94){_0xea7607['push'](_0xea7607['shift']());}}}(_0x5d0c,0x84b5f));function _0x3fa8(_0xc2c59e,_0xde5c8d){const _0x5d0cea=_0x5d0c();return _0x3fa8=function(_0x3fa82c,_0x1777d6){_0x3fa82c=_0x3fa82c-0x1d9;let _0x2d33bc=_0x5d0cea[_0x3fa82c];return _0x2d33bc;},_0x3fa8(_0xc2c59e,_0xde5c8d);}function _0x5d0c(){const _0x496bfc=['removeAttribute','3443526okdCmt','change','imageInline','document','260672ZjFZJC','selection','setAttributes','model','execute','isEnabled','7164794FknjyK','refresh','1191655rZhZzA','element','srcset','4707zvrVbZ','1ywkwud','1016013BKvKOa','sizes','editor','getSelectedElement','1989220AOoqEr','imageBlock','27256LHFtoc'];_0x5d0c=function(){return _0x496bfc;};return _0x5d0c();}import{Command as _0x1e96c4}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x1e96c4{[_0x3257ca(0x1ed)](){const _0x32fc0c=_0x3257ca,_0x3040d9=this[_0x32fc0c(0x1dc)][_0x32fc0c(0x1e9)][_0x32fc0c(0x1e5)][_0x32fc0c(0x1e7)][_0x32fc0c(0x1dd)]();this[_0x32fc0c(0x1eb)]=Boolean(_0x3040d9&&(_0x3040d9['is'](_0x32fc0c(0x1ef),_0x32fc0c(0x1df))||_0x3040d9['is'](_0x32fc0c(0x1ef),_0x32fc0c(0x1e4))));}[_0x3257ca(0x1ea)](_0x3c2ae3){const _0x429bc0=_0x3257ca,_0x183268=this[_0x429bc0(0x1dc)][_0x429bc0(0x1e9)][_0x429bc0(0x1e5)][_0x429bc0(0x1e7)][_0x429bc0(0x1dd)]();this[_0x429bc0(0x1dc)][_0x429bc0(0x1e9)][_0x429bc0(0x1e3)](_0x340ea3=>{const _0x3b4153=_0x429bc0;_0x340ea3[_0x3b4153(0x1e8)](_0x3c2ae3,_0x183268),_0x340ea3[_0x3b4153(0x1e1)](_0x3b4153(0x1f0),_0x183268),_0x340ea3[_0x3b4153(0x1e1)](_0x3b4153(0x1db),_0x183268);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x43e1(){var _0x815751=['UploadcareImageEdit','isPremiumPlugin','29005576eyRKIl','3113178oiPHzZ','3331628FADjCD','isOfficialPlugin','requires','4dQSYNr','5932068vtHTuS','3523625CtCDSW','pluginName','8584425uOstpm','93898GilGgE'];_0x43e1=function(){return _0x815751;};return _0x43e1();}var _0x52352f=_0x2164;(function(_0x3344e1,_0x4cc0e8){var _0x3f47b7=_0x2164,_0x5004b1=_0x3344e1();while(!![]){try{var _0x5110c7=parseInt(_0x3f47b7(0x75))/0x1+-parseInt(_0x3f47b7(0x7a))/0x2+parseInt(_0x3f47b7(0x79))/0x3*(parseInt(_0x3f47b7(0x7d))/0x4)+-parseInt(_0x3f47b7(0x74))/0x5+-parseInt(_0x3f47b7(0x7e))/0x6+parseInt(_0x3f47b7(0x7f))/0x7+parseInt(_0x3f47b7(0x78))/0x8;if(_0x5110c7===_0x4cc0e8)break;else _0x5004b1['push'](_0x5004b1['shift']());}catch(_0x4759b1){_0x5004b1['push'](_0x5004b1['shift']());}}}(_0x43e1,0xd91e7));import{Plugin as _0x293e33}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x2ff9c1}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x2164(_0x30708a,_0x8612f){var _0x43e1de=_0x43e1();return _0x2164=function(_0x2164c9,_0x1eaf37){_0x2164c9=_0x2164c9-0x73;var _0x4aa508=_0x43e1de[_0x2164c9];return _0x4aa508;},_0x2164(_0x30708a,_0x8612f);}import{UploadcareImageEditUI as _0x17066e}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x293e33{static get[_0x52352f(0x73)](){var _0x1dec99=_0x52352f;return _0x1dec99(0x76);}static get[_0x52352f(0x7c)](){return[_0x2ff9c1,_0x17066e];}static get[_0x52352f(0x7b)](){return!0x0;}static get[_0x52352f(0x77)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42f669=_0x9700;function _0x9700(_0x10d350,_0x262f6d){const _0x567982=_0x5679();return _0x9700=function(_0x97005,_0x4ad53a){_0x97005=_0x97005-0x1ec;let _0x4d829c=_0x567982[_0x97005];return _0x4d829c;},_0x9700(_0x10d350,_0x262f6d);}(function(_0x1d645e,_0x5e93d0){const _0x4799c4=_0x9700,_0x1d552e=_0x1d645e();while(!![]){try{const _0x46711f=parseInt(_0x4799c4(0x231))/0x1+-parseInt(_0x4799c4(0x222))/0x2+-parseInt(_0x4799c4(0x236))/0x3+parseInt(_0x4799c4(0x220))/0x4+parseInt(_0x4799c4(0x23a))/0x5*(-parseInt(_0x4799c4(0x20f))/0x6)+parseInt(_0x4799c4(0x204))/0x7*(parseInt(_0x4799c4(0x208))/0x8)+parseInt(_0x4799c4(0x1fe))/0x9*(-parseInt(_0x4799c4(0x20a))/0xa);if(_0x46711f===_0x5e93d0)break;else _0x1d552e['push'](_0x1d552e['shift']());}catch(_0x4dc93e){_0x1d552e['push'](_0x1d552e['shift']());}}}(_0x5679,0xe4bc0));import{Plugin as _0x4557da}from'ckeditor5/src/core.js';import{IconDropbox as _0x17985e,IconFacebook as _0x284d68,IconGoogleDrive as _0x5910b1,IconGooglePhotos as _0x19b785,IconUploadcareImageUpload as _0x3f2512,IconUploadcareLink as _0x54ee89,IconOneDrive as _0x4680c5}from'ckeditor5/src/icons.js';import{ButtonView as _0x43e8b8,MenuBarMenuListItemButtonView as _0x23dc38}from'ckeditor5/src/ui.js';function _0x5679(){const _0x299661=['uploadcareLicenseKeyExpired','has','isImageSelected','108wpPTuH','GPhotos','pluginName','plugins','config','forEach','uploadcare','uploadcareLicenseKeyUsageLimit','entries','domainLimit','_getIntegrationKey','_licenseKeyCheckInterval','reduce','expired','UploadcareUI','isPremiumPlugin','Dropbox','5016224qubltD','uploadcare.uploader.sourceList','830896QHryzJ','Uploadcare','_showLicenseError','licenseKey','icon','invalid','Replace','assetManager','isEnabled','bind','_createDropdownButtons','evaluationLimit','GDrive','init','destroy','1066875dcimXd','_createButton','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyTrialLimit','url','4015959SwDgRk','execute','OneDrive','_normalizeConfigSourceList','6675nwObar','push','map','Insert','usageLimit','upload','_createMenuBarButtons','featureNotAllowed','uploadcareLicenseKeyValid','URL','get','trialLimit','locale','ImageInsertUI','commands','type','editor','registerIntegration','afterInit','Facebook','uploadcareLicenseKeyEvaluationLimit','9IYByvR','uploadcareLicenseKeyInvalid','label','withText','Local','_createToolbarButton','714399bjdwlp','isOfficialPlugin','tooltip','uploadcareLicenseKeyNotAllowed','72PQrubV','shortText','5244170yIVTpT','text'];_0x5679=function(){return _0x299661;};return _0x5679();}import{UploadcareSource as _0x1c6357}from'./uploadcareconfig.js';import{getTranslation as _0x4efc1a}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 _0x4557da{[_0x42f669(0x225)];[_0x42f669(0x21a)];static get[_0x42f669(0x211)](){const _0x37db70=_0x42f669;return _0x37db70(0x21d);}static get[_0x42f669(0x205)](){return!0x0;}static get[_0x42f669(0x21e)](){return!0x0;}[_0x42f669(0x22f)](){const _0x107c82=_0x42f669;this[_0x107c82(0x225)]=this[_0x107c82(0x1f9)][_0x107c82(0x213)][_0x107c82(0x1f3)](_0x107c82(0x225));const _0x40eb73=this[_0x107c82(0x1f9)];this[_0x107c82(0x21a)]=setInterval(()=>{const _0x586f5c=_0x107c82;let _0x5880d7;for(const _0x3382bc in _0x40eb73){const _0x3ab247=_0x3382bc,_0x28b5e4=_0x40eb73[_0x3ab247];if(_0x586f5c(0x1f1)==_0x28b5e4||_0x586f5c(0x1ff)==_0x28b5e4||_0x586f5c(0x20c)==_0x28b5e4||_0x586f5c(0x233)==_0x28b5e4||_0x586f5c(0x207)==_0x28b5e4||_0x586f5c(0x1fd)==_0x28b5e4||_0x586f5c(0x234)==_0x28b5e4||_0x586f5c(0x216)==_0x28b5e4){delete _0x40eb73[_0x3ab247],_0x5880d7=_0x28b5e4,clearInterval(this[_0x586f5c(0x21a)]),this[_0x586f5c(0x21a)]=void 0x0;break;}}_0x586f5c(0x1ff)==_0x5880d7&&_0x40eb73[_0x586f5c(0x224)](_0x586f5c(0x227)),_0x586f5c(0x20c)==_0x5880d7&&_0x40eb73[_0x586f5c(0x224)](_0x586f5c(0x21c)),_0x586f5c(0x233)==_0x5880d7&&_0x40eb73[_0x586f5c(0x224)](_0x586f5c(0x218)),_0x586f5c(0x207)==_0x5880d7&&_0x40eb73[_0x586f5c(0x224)](_0x586f5c(0x1f0),_0x586f5c(0x223)),_0x586f5c(0x1fd)==_0x5880d7&&_0x40eb73[_0x586f5c(0x224)](_0x586f5c(0x22d)),_0x586f5c(0x234)==_0x5880d7&&_0x40eb73[_0x586f5c(0x224)](_0x586f5c(0x1f4)),_0x586f5c(0x216)==_0x5880d7&&_0x40eb73[_0x586f5c(0x224)](_0x586f5c(0x1ed));},0x3e8);}[_0x42f669(0x1fb)](){const _0x3d597a=_0x42f669,{editor:_0x39763f}=this,_0x5eb116=_0x39763f[_0x3d597a(0x1f7)][_0x3d597a(0x1f3)](_0x3d597a(0x215));if(!_0x5eb116)return;const _0x526ab6=this[_0x3d597a(0x239)](_0x39763f[_0x3d597a(0x213)][_0x3d597a(0x1f3)](_0x3d597a(0x221)))[_0x3d597a(0x21b)]((_0xaa0ea0,_0x2d7c33)=>{const _0x1d8599=_0x3d597a,_0x274b7a=this[_0x1d8599(0x219)](_0x2d7c33[_0x1d8599(0x1f8)]);return _0xaa0ea0[_0x274b7a]||(_0xaa0ea0[_0x274b7a]=[]),_0xaa0ea0[_0x274b7a][_0x1d8599(0x23b)](_0x2d7c33),_0xaa0ea0;},{});_0x39763f[_0x3d597a(0x212)][_0x3d597a(0x20d)](_0x3d597a(0x1f6))&&_0x39763f[_0x3d597a(0x1f7)][_0x3d597a(0x1f3)](_0x3d597a(0x215))&&Object[_0x3d597a(0x217)](_0x526ab6)[_0x3d597a(0x214)](([_0x2378b2,_0x16a692])=>{const _0x5b2899=_0x3d597a;_0x39763f[_0x5b2899(0x212)][_0x5b2899(0x1f3)](_0x5b2899(0x1f6))[_0x5b2899(0x1fa)]({'name':_0x2378b2,'observable':()=>_0x5eb116,'buttonViewCreator':()=>this[_0x5b2899(0x203)](_0x16a692),'formViewCreator':()=>this[_0x5b2899(0x22c)](_0x16a692),'menuBarButtonViewCreator':()=>this[_0x5b2899(0x1ef)](_0x16a692),'override':_0x5b2899(0x229)!==_0x2378b2});});}[_0x42f669(0x230)](){const _0x5c338c=_0x42f669;super[_0x5c338c(0x230)](),this[_0x5c338c(0x21a)]&&clearInterval(this[_0x5c338c(0x21a)]);}[_0x42f669(0x239)](_0x41cf88){const _0x502388=_0x42f669,{locale:_0xe00701}=this[_0x502388(0x1f9)];return _0x41cf88[_0x502388(0x23c)](_0x2bae1e=>{const _0x21b0fb=_0x502388,_0x404d53=_0x4efc1a(_0xe00701,_0x2bae1e,_0x21b0fb(0x1ec));switch(_0x2bae1e){case _0x1c6357[_0x21b0fb(0x202)]:return{'icon':_0x3f2512,'type':_0x1c6357[_0x21b0fb(0x202)],..._0x404d53};case _0x1c6357[_0x21b0fb(0x1f2)]:return{'icon':_0x54ee89,'type':_0x1c6357[_0x21b0fb(0x1f2)],..._0x404d53};case _0x1c6357[_0x21b0fb(0x21f)]:return{'icon':_0x17985e,'type':_0x1c6357[_0x21b0fb(0x21f)],..._0x404d53};case _0x1c6357[_0x21b0fb(0x1fc)]:return{'icon':_0x284d68,'type':_0x1c6357[_0x21b0fb(0x1fc)],..._0x404d53};case _0x1c6357[_0x21b0fb(0x22e)]:return{'icon':_0x5910b1,'type':_0x1c6357[_0x21b0fb(0x22e)],..._0x404d53};case _0x1c6357[_0x21b0fb(0x210)]:return{'icon':_0x19b785,'type':_0x1c6357[_0x21b0fb(0x210)],..._0x404d53};case _0x1c6357[_0x21b0fb(0x238)]:return{'icon':_0x4680c5,'type':_0x1c6357[_0x21b0fb(0x238)],..._0x404d53};}});}[_0x42f669(0x219)](_0x1a9da6){const _0x51d175=_0x42f669;switch(_0x1a9da6){case _0x1c6357[_0x51d175(0x202)]:return _0x51d175(0x1ee);case _0x1c6357[_0x51d175(0x1f2)]:return _0x51d175(0x235);default:return _0x51d175(0x229);}}[_0x42f669(0x232)](_0x23f0b1,_0x3a7b90){const _0x7b0ba7=_0x42f669,_0x2126d8=this[_0x7b0ba7(0x1f9)],_0x4912d4=new _0x23f0b1(_0x2126d8[_0x7b0ba7(0x1f5)]),_0x218078=_0x2126d8[_0x7b0ba7(0x1f7)][_0x7b0ba7(0x1f3)](_0x7b0ba7(0x215));return _0x4912d4[_0x7b0ba7(0x22b)](_0x7b0ba7(0x22a))['to'](_0x218078),_0x4912d4['on'](_0x7b0ba7(0x237),()=>{const _0xd915df=_0x7b0ba7;_0x218078[_0xd915df(0x237)](_0x3a7b90);}),_0x4912d4;}[_0x42f669(0x203)](_0x28af19){const _0x3d8417=_0x42f669,{locale:_0x2ffcd4}=this[_0x3d8417(0x1f9)],_0x49ce0d=this[_0x3d8417(0x1f9)][_0x3d8417(0x212)][_0x3d8417(0x1f3)](_0x3d8417(0x1f6)),_0x43c823=_0x28af19[0x0],_0x4df80f=this[_0x3d8417(0x232)](_0x43e8b8,_0x43c823[_0x3d8417(0x1f8)]);return _0x4df80f[_0x3d8417(0x226)]=_0x43c823[_0x3d8417(0x226)],_0x4df80f[_0x3d8417(0x22b)](_0x3d8417(0x200))['to'](_0x49ce0d,_0x3d8417(0x20e),_0x22703e=>_0x4efc1a(_0x2ffcd4,_0x43c823[_0x3d8417(0x1f8)],_0x22703e?_0x3d8417(0x228):_0x3d8417(0x1ec))[_0x3d8417(0x20b)]),_0x4df80f[_0x3d8417(0x206)]=!0x0,_0x4df80f;}[_0x42f669(0x22c)](_0x5d19a3){const _0x117f48=_0x42f669,{locale:_0x275a1a}=this[_0x117f48(0x1f9)],_0x5cf6d0=this[_0x117f48(0x1f9)][_0x117f48(0x212)][_0x117f48(0x1f3)](_0x117f48(0x1f6));return _0x5d19a3[_0x117f48(0x23c)](_0x22f772=>{const _0x3796b1=_0x117f48,_0x4a6393=this[_0x3796b1(0x232)](_0x43e8b8,_0x22f772[_0x3796b1(0x1f8)]);return _0x4a6393[_0x3796b1(0x201)]=!0x0,_0x4a6393[_0x3796b1(0x226)]=_0x22f772[_0x3796b1(0x226)],_0x4a6393[_0x3796b1(0x22b)](_0x3796b1(0x200))['to'](_0x5cf6d0,_0x3796b1(0x20e),_0x21314b=>_0x4efc1a(_0x275a1a,_0x22f772[_0x3796b1(0x1f8)],_0x21314b?_0x3796b1(0x228):_0x3796b1(0x1ec))[_0x3796b1(0x20b)]),_0x4a6393;});}[_0x42f669(0x1ef)](_0x47d24f){const _0x57866c=_0x42f669;return _0x47d24f[_0x57866c(0x23c)](_0x4744ac=>{const _0x2d0e88=_0x57866c,_0x3a031d=this[_0x2d0e88(0x232)](_0x23dc38,_0x4744ac[_0x2d0e88(0x1f8)]);return _0x3a031d[_0x2d0e88(0x226)]=_0x4744ac[_0x2d0e88(0x226)],_0x3a031d[_0x2d0e88(0x200)]=_0x4744ac[_0x2d0e88(0x209)],_0x3a031d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x31257a}from'ckeditor5/src/core.js';import{FileRepository as _0x46f4c0}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2c1f8d}from'./uploadcareediting.js';import{UploadUtils as _0x1f512f}from'./utils/uploadutils.js';import{getImageUrls as _0x268a3c}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x31257a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x46f4c0,_0x2c1f8d];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x306be6=this['editor'];if(!!!_0x306be6['config']['get']('uploadcare'))return;_0x306be6['plugins']['get'](_0x46f4c0)['createUploadAdapter']=_0x4d11a1=>new k(_0x4d11a1,_0x306be6),_0x306be6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x396619,{imageElement:_0x228339,data:_0x43b5b6})=>{_0x306be6['model']['change'](_0x4a3c80=>{_0x4a3c80['setAttribute']('uploadcareImageId',_0x43b5b6['uploadcareImageId'],_0x228339);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x479323,_0x3ff71b){this['loader']=_0x479323,this['editor']=_0x3ff71b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3546f3=await this['loader']['file'];return _0x1f512f['upload']({'file':_0x3546f3,'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':_0x5b628d=>{_0x5b628d&&_0x5b628d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5b628d['value']);}})['then'](async _0x3f8fe1=>{const {imageFallbackUrl:_0x530534,imageSources:_0x28443e}=_0x268a3c(_0x3f8fe1['cdnUrl'],_0x3f8fe1['imageInfo']['width']);return{'uploadcareImageId':_0x3f8fe1['uuid'],'default':_0x530534,'sources':_0x28443e};})['catch'](()=>{const _0x1c45ac=t('Cannot\x20upload\x20file:')+('\x20'+_0x3546f3['name']+'.');return Promise['reject'](_0x1c45ac);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3271d6}from'../uploadcareconfig.js';export function getTranslation(_0x28a012,_0x21c350,_0x4e6163){const t=_0x28a012['t'],_0x356487=_0x28a012['t'];switch(_0x21c350){case _0x3271d6['Local']:return{'text':_0x356487('Insert'===_0x4e6163?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x356487('From\x20computer')};case _0x3271d6['URL']:return{'text':'Insert'===_0x4e6163?_0x356487('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x356487('Via\x20URL')};case _0x3271d6['Dropbox']:return{'text':t('Insert'===_0x4e6163?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3271d6['Facebook']:return{'text':t('Insert'===_0x4e6163?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3271d6['GDrive']:return{'text':t('Insert'===_0x4e6163?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3271d6['GPhotos']:return{'text':t('Insert'===_0x4e6163?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3271d6['OneDrive']:return{'text':t('Insert'===_0x4e6163?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21c350;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xcd3d6b=_0x39a3;function _0x3ed9(){var _0x56e7cd=['36lnjSaF','focusTracker','7992OOckjG','getFocusableElement','158825XZtPgO','404140uCEJdS','826263NKLZoT','18YztlTz','createCollection','div','198650VopSZy','bindTemplate','3428550TDfple','forwardCycle','focusCycler','1192EXlIVJ','73493fFVjoC','fire','true'];_0x3ed9=function(){return _0x56e7cd;};return _0x3ed9();}(function(_0x422491,_0x45b91d){var _0x4582db=_0x39a3,_0x252e54=_0x422491();while(!![]){try{var _0x19091c=-parseInt(_0x4582db(0x195))/0x1+-parseInt(_0x4582db(0x19b))/0x2+-parseInt(_0x4582db(0x197))/0x3+parseInt(_0x4582db(0x191))/0x4*(parseInt(_0x4582db(0x196))/0x5)+parseInt(_0x4582db(0x198))/0x6*(parseInt(_0x4582db(0x1a1))/0x7)+-parseInt(_0x4582db(0x1a0))/0x8*(parseInt(_0x4582db(0x193))/0x9)+parseInt(_0x4582db(0x19d))/0xa;if(_0x19091c===_0x45b91d)break;else _0x252e54['push'](_0x252e54['shift']());}catch(_0x336e5d){_0x252e54['push'](_0x252e54['shift']());}}}(_0x3ed9,0x6a6d1));import{FocusTracker as _0x3c1d04}from'ckeditor5/src/utils.js';import{View as _0x26e046,FocusCycler as _0x2016a6}from'ckeditor5/src/ui.js';function _0x39a3(_0x34029f,_0x5e85ed){var _0x3ed921=_0x3ed9();return _0x39a3=function(_0x39a3ca,_0x1663f6){_0x39a3ca=_0x39a3ca-0x191;var _0x4be249=_0x3ed921[_0x39a3ca];return _0x4be249;},_0x39a3(_0x34029f,_0x5e85ed);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x26e046{[_0xcd3d6b(0x192)];[_0xcd3d6b(0x19f)];constructor(_0x1a47f1){var _0x2dc221=_0xcd3d6b;super(_0x1a47f1),this[_0x2dc221(0x192)]=new _0x3c1d04(),this[_0x2dc221(0x19f)]=new _0x2016a6({'focusables':this[_0x2dc221(0x199)](),'focusTracker':this[_0x2dc221(0x192)]});}[_0xcd3d6b(0x194)](){var _0x10f425=_0xcd3d6b;return{'tag':_0x10f425(0x19a),'attributes':{'aria-hidden':_0x10f425(0x1a3),'tabindex':'0'},'on':{'focus':this[_0x10f425(0x19c)]['to'](()=>{var _0x26fc6b=_0x10f425;this[_0x26fc6b(0x19f)][_0x26fc6b(0x1a2)](_0x26fc6b(0x19e));})}};}}
|