@ckeditor/ckeditor5-uploadcare 46.1.1-alpha.0 → 46.1.1-alpha.2
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 _0x34d88e=_0x11da;(function(_0x4151fd,_0x3ab028){const _0xa664f9=_0x11da,_0xdf539=_0x4151fd();while(!![]){try{const _0x300d20=-parseInt(_0xa664f9(0x1b8))/0x1+-parseInt(_0xa664f9(0x1a8))/0x2*(-parseInt(_0xa664f9(0x1a7))/0x3)+parseInt(_0xa664f9(0x19c))/0x4*(-parseInt(_0xa664f9(0x1ac))/0x5)+parseInt(_0xa664f9(0x195))/0x6+parseInt(_0xa664f9(0x1bf))/0x7+-parseInt(_0xa664f9(0x1b9))/0x8+-parseInt(_0xa664f9(0x1b2))/0x9*(-parseInt(_0xa664f9(0x18b))/0xa);if(_0x300d20===_0x3ab028)break;else _0xdf539['push'](_0xdf539['shift']());}catch(_0x36aac4){_0xdf539['push'](_0xdf539['shift']());}}}(_0x4fef,0x1c9da));import{Plugin as _0x298e6e}from'ckeditor5/src/core.js';import{Dialog as _0x23c63a}from'ckeditor5/src/ui.js';function _0x4fef(){const _0x1e19f6=['uploadcareImageReplace','attributeToAttribute','execute','commands','_initConversion','68kHfcps','uploadcare.uploader','render','#uc-icon-arrow-down','downcast','elementToAttribute','ucContextId','removeAttribute','querySelector','init','view','18PxrAMG','46148yzaehO','destroy','_initConfig','editor','24435nhbgnY','config','locale','listenTo','uc-upload-ctx-provider','editing','801UvoNSE','uc-config','join','replaceImageSource','isRegistered','\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','106114KcWsfn','1597792keBaWu','input[uploadcare-file-input]','extend','PictureEditing','schema','document','56651kEmKGZ','getAttribute','ctxElement','uploadcareImageId','imageBlock','afterInit','map','upcast','pluginName','UploadcareEditing','model','body','closeMax','get','href','cleanupImage','_initImageProcessingIndicator','uploadcare','getSelectedElement','once','fromCharCode','conversion','remove','uploadcare.pubkey','appendChild','isOfficialPlugin','true','_initCtx','_configElement','insertImage','imageInline','_ctxElement','add','24660qHMmNt','_initSchema','iconHrefResolver','contentLanguage','configElement','data-uc-image-id','isPremiumPlugin','selection','uploader-','requires','840696HsXnvc','for'];_0x4fef=function(){return _0x1e19f6;};return _0x4fef();}import{createElement as _0x1ae238,global as _0x255d02,uid as _0x4e0c8e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x45ec2d}from'./uploadcarecommand.js';function _0x11da(_0x501c32,_0x8b9776){const _0x4fefea=_0x4fef();return _0x11da=function(_0x11da79,_0x41bc8c){_0x11da79=_0x11da79-0x170;let _0x10cfb2=_0x4fefea[_0x11da79];return _0x10cfb2;},_0x11da(_0x501c32,_0x8b9776);}import{UploadcareUploadAdapter as _0x3e4c2d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xdd1476}from'./utils/editingutils.js';export class UploadcareEditing extends _0x298e6e{[_0x34d88e(0x186)]=null;[_0x34d88e(0x189)]=null;static get[_0x34d88e(0x172)](){const _0x12c5db=_0x34d88e;return _0x12c5db(0x173);}static get[_0x34d88e(0x194)](){const _0x3f8108=_0x34d88e;return[_0x3f8108(0x1bc),_0x3e4c2d,_0x23c63a];}static get[_0x34d88e(0x183)](){return!0x0;}static get[_0x34d88e(0x191)](){return!0x0;}[_0x34d88e(0x1a2)];get[_0x34d88e(0x18f)](){const _0x9de070=_0x34d88e;return this[_0x9de070(0x186)];}get[_0x34d88e(0x1c1)](){const _0x3dbca6=_0x34d88e;return this[_0x3dbca6(0x189)];}constructor(_0x6d7d5c){const _0xa3115e=_0x34d88e;super(_0x6d7d5c),this[_0xa3115e(0x1a2)]=_0x4e0c8e();}[_0x34d88e(0x1a5)](){const _0x1d3ef7=_0x34d88e,_0x10a86e=this[_0x1d3ef7(0x1ab)];_0x10a86e[_0x1d3ef7(0x19a)][_0x1d3ef7(0x18a)](_0x1d3ef7(0x17b),new _0x45ec2d(_0x10a86e));}[_0x34d88e(0x1c4)](){const _0x550d09=_0x34d88e;this[_0x550d09(0x18c)](),this[_0x550d09(0x19b)](),this[_0x550d09(0x1aa)](),this[_0x550d09(0x185)](),this[_0x550d09(0x17a)](),this[_0x550d09(0x1af)](this[_0x550d09(0x1ab)],_0x550d09(0x1a9),()=>{const _0x1fba02=_0x550d09;this[_0x1fba02(0x186)]&&(this[_0x1fba02(0x186)][_0x1fba02(0x180)](),this[_0x1fba02(0x186)]=null),this[_0x1fba02(0x189)]&&(this[_0x1fba02(0x189)][_0x1fba02(0x180)](),this[_0x1fba02(0x189)]=null);const _0x46b875=_0x255d02[_0x1fba02(0x1be)][_0x1fba02(0x1a4)](_0x1fba02(0x1ba));_0x46b875&&_0x46b875[_0x1fba02(0x180)]();}),async function(_0x6d0119){const _0x3f81ec=_0x19c804([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x543904=0x3d8d0df,_0x3a351c=0x3dfa3f7^_0x543904,_0x2609c4=window[_0x19c804([0x44,0x61,0x74,0x65])][_0x19c804([0x6e,0x6f,0x77])](),_0x3f6be8=_0x6d0119[_0x19c804([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb80c78=new window[(_0x19c804([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3473eb=>{_0x3f6be8[_0x19c804([0x6f,0x6e,0x63,0x65])](_0x19c804([0x72,0x65,0x61,0x64,0x79]),_0x3473eb);}),_0x1b5189={[_0x19c804([0x6b,0x74,0x79])]:_0x19c804([0x45,0x43]),[_0x19c804([0x75,0x73,0x65])]:_0x19c804([0x73,0x69,0x67]),[_0x19c804([0x63,0x72,0x76])]:_0x19c804([0x50,0x2d,0x32,0x35,0x36]),[_0x19c804([0x78])]:_0x19c804([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]),[_0x19c804([0x79])]:_0x19c804([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]),[_0x19c804([0x61,0x6c,0x67])]:_0x19c804([0x45,0x53,0x32,0x35,0x36])},_0x29b8c8=_0x3f6be8[_0x19c804([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19c804([0x67,0x65,0x74])](_0x19c804([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47e42d(){let _0x3743df,_0x34b34c=null,_0x2c0ec6=null;try{if(_0x29b8c8==_0x19c804([0x47,0x50,0x4c]))return _0x19c804([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3743df=_0x2ec52b(),!_0x3743df)return _0x19c804([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3743df[_0x19c804([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c0ec6=_0x3c71b1(_0x3743df[_0x19c804([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3743df[_0x19c804([0x6a,0x74,0x69])])),await _0xda3c53()?_0x1262c8()?_0x44a6fd()?_0x19c804([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44edf9()?(_0x3743df[_0x19c804([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19c804([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34b34c=_0x24a509(_0x19c804([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3743df[_0x19c804([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19c804([0x74,0x72,0x69,0x61,0x6c])&&(_0x34b34c=_0x24a509(_0x19c804([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43005d()):_0x19c804([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19c804([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19c804([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x19c804([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x44a6fd(){const _0x27d927=[_0x19c804([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19c804([0x74,0x72,0x69,0x61,0x6c])][_0x19c804([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3743df[_0x19c804([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2609c4/0x3e8:0xe10*_0x3a351c;return _0x3743df[_0x19c804([0x65,0x78,0x70])]<_0x27d927;}function _0x1262c8(){const _0x4d5a2b=_0x3743df[_0x19c804([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d5a2b&&(!!_0x4d5a2b[_0x19c804([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c804([0x2a]))||!!_0x4d5a2b[_0x19c804([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c804([0x55,0x50,0x4c,0x43])));}function _0x44edf9(){const _0x3e2d47=_0x11da,_0x66bfe8=_0x3743df[_0x19c804([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x66bfe8||0x0==_0x66bfe8[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56785e}=new URL(window[_0x19c804([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3e2d47(0x178)]);if(_0x66bfe8[_0x19c804([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56785e))return!0x0;const _0x287377=_0x56785e[_0x19c804([0x73,0x70,0x6c,0x69,0x74])](_0x19c804([0x2e]));return _0x66bfe8[_0x19c804([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a83dc=>_0x3a83dc[_0x19c804([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c804([0x2a])))[_0x19c804([0x6d,0x61,0x70])](_0x648503=>_0x648503[_0x19c804([0x73,0x70,0x6c,0x69,0x74])](_0x19c804([0x2e])))[_0x19c804([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f3139=>_0x5f3139[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x287377[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x19c804([0x6d,0x61,0x70])](_0x117e7f=>Array(_0x287377[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x117e7f[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x19c804([0x66,0x69,0x6c,0x6c])](_0x117e7f[0x0]===_0x19c804([0x2a])?_0x19c804([0x2a]):'')[_0x19c804([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x117e7f))[_0x19c804([0x73,0x6f,0x6d,0x65])](_0x204a00=>_0x287377[_0x19c804([0x65,0x76,0x65,0x72,0x79])]((_0x1bb34f,_0x24f6ec)=>_0x204a00[_0x24f6ec]===_0x1bb34f||_0x204a00[_0x24f6ec]===_0x19c804([0x2a])));}function _0x43005d(){return _0x34b34c&&_0x2c0ec6?new window[(_0x19c804([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55188a,_0x2cbf47)=>{_0x34b34c[_0x19c804([0x74,0x68,0x65,0x6e])](_0x55188a,_0x2cbf47),_0x2c0ec6[_0x19c804([0x74,0x68,0x65,0x6e])](_0x186263=>{_0x186263!=_0x19c804([0x56,0x61,0x6c,0x69,0x64])&&_0x55188a(_0x186263);},_0x2cbf47);}):_0x34b34c||_0x2c0ec6||_0x19c804([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c71b1(_0x12019e,_0x26d2ac){return new window[(_0x19c804([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x576920=>{if(_0x448b89())return _0x576920(_0x19c804([0x56,0x61,0x6c,0x69,0x64]));_0x137b0c(),_0x3f6be8[_0x19c804([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19c804([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e7523=!0x1;const _0x3f9362=_0x4e0c8e();function _0x7b783(_0x300961){return!!_0x300961&&(typeof _0x300961===_0x19c804([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x300961===_0x19c804([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x300961[_0x19c804([0x74,0x68,0x65,0x6e])]===_0x19c804([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x300961[_0x19c804([0x63,0x61,0x74,0x63,0x68])]===_0x19c804([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x438f3e(_0x25ef62){_0x1b2b0d(_0x25ef62)[_0x19c804([0x74,0x68,0x65,0x6e])](_0x4e12f5=>{if(!_0x4e12f5||_0x4e12f5[_0x19c804([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19c804([0x6f,0x6b]))return _0x19c804([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f0054(_0xccc25e(_0x3f9362+_0x26d2ac))!=_0x4e12f5[_0x19c804([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19c804([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19c804([0x56,0x61,0x6c,0x69,0x64]);})[_0x19c804([0x74,0x68,0x65,0x6e])](_0x1c3b6e=>(_0x780ef6(),_0x1c3b6e),()=>{const _0x10f189=_0x575211();return null==_0x10f189?(_0x780ef6(),_0x19c804([0x56,0x61,0x6c,0x69,0x64])):_0x19c804(_0x2609c4-_0x10f189>(0x27d454df^_0x543904)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19c804([0x74,0x68,0x65,0x6e])](_0x576920)[_0x19c804([0x63,0x61,0x74,0x63,0x68])](()=>{_0x576920(_0x19c804([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12d30f=0x3ee3e5f^_0x543904;function _0x780ef6(){const _0x4c6c6b=_0x19c804([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f0054(_0xccc25e(_0x12019e)),_0x1fabe3=_0x1167e9(_0x4f0054(window[_0x19c804([0x4d,0x61,0x74,0x68])][_0x19c804([0x63,0x65,0x69,0x6c])](_0x2609c4/_0x12d30f)));window[_0x19c804([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19c804([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c6c6b,_0x1fabe3);}function _0x575211(){const _0x51f12f=_0x19c804([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f0054(_0xccc25e(_0x12019e)),_0x2e4b48=window[_0x19c804([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19c804([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51f12f);return _0x2e4b48?window[_0x19c804([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1167e9(_0x2e4b48),0x10)*_0x12d30f:null;}function _0x1b2b0d(_0x20a43c){return new window[(_0x19c804([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4db30f,_0x39ab93)=>{_0x20a43c[_0x19c804([0x74,0x68,0x65,0x6e])](_0x4db30f,_0x39ab93),window[_0x19c804([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39ab93,0x3d9041f^_0x543904);});}}_0x3f6be8[_0x19c804([0x6f,0x6e])](_0x19c804([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x575075,_0x280181)=>{if(_0x280181[0x0]!=_0x12019e)return _0x576920(_0x19c804([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x280181[0x1]={..._0x280181[0x1],[_0x19c804([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f9362};},{[_0x19c804([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19c804([0x68,0x69,0x67,0x68])}),_0x3f6be8[_0x19c804([0x6f,0x6e])](_0x19c804([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7a9e8c=>{_0x7b783(_0x7a9e8c[_0x19c804([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e7523=!0x0,_0x438f3e(_0x7a9e8c[_0x19c804([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19c804([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19c804([0x6c,0x6f,0x77])}),_0xb80c78[_0x19c804([0x74,0x68,0x65,0x6e])](()=>{_0x2e7523||_0x576920(_0x19c804([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x448b89(){return _0x3f6be8[_0x19c804([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19c804([0x76,0x69,0x65,0x77])][_0x19c804([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19c804([0x61,0x75,0x74,0x6f]);}function _0x137b0c(){_0x3f6be8[_0x19c804([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19c804([0x76,0x69,0x65,0x77])][_0x19c804([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19c804([0x61,0x75,0x74,0x6f]);}}function _0x24a509(_0x3b3588){const _0x10df93=[new window[(_0x19c804([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x593ef9=>setTimeout(_0x593ef9,0x3d1ee13^_0x543904)),_0xb80c78[_0x19c804([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19c804([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10f08c=>{let _0x3b660f=0x0;_0x3f6be8[_0x19c804([0x6d,0x6f,0x64,0x65,0x6c])][_0x19c804([0x6f,0x6e])](_0x19c804([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x256b33,_0x47f374)=>{_0x47f374[0x0][_0x19c804([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b660f++,_0x3b660f==(0x3d8d127^_0x543904)&&(_0x10f08c(),_0x256b33[_0x19c804([0x6f,0x66,0x66])]());});}))];return window[_0x19c804([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19c804([0x72,0x61,0x63,0x65])](_0x10df93)[_0x19c804([0x74,0x68,0x65,0x6e])](()=>_0x3b3588);}async function _0x34cac7(){await _0xb80c78,_0x3f6be8[_0x19c804([0x6d,0x6f,0x64,0x65,0x6c])][_0x19c804([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c254b,_0x3f6be8[_0x19c804([0x6d,0x6f,0x64,0x65,0x6c])][_0x19c804([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c254b,_0x3f6be8[_0x19c804([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19c804([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x153241(_0x1a066d){const _0x315421=_0x24eae2();_0x3f6be8[_0x315421]=_0x19c804([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a066d,_0x1a066d!=_0x19c804([0x56,0x61,0x6c,0x69,0x64])&&_0x34cac7();}function _0x24eae2(){const _0x43bd73=window[_0x19c804([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19c804([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19c804([0x6e,0x6f,0x77])]())[_0x19c804([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19c804([0x2e]),'');let _0x28d458=_0x19c804([0x52]);for(let _0x2470ed=0x0;_0x2470ed<_0x43bd73[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2470ed+=0x2){let _0x444761=window[_0x19c804([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43bd73[_0x19c804([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2470ed,_0x2470ed+0x2));_0x444761>=_0x3f81ec[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x444761-=_0x3f81ec[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28d458+=_0x3f81ec[_0x444761];}return _0x28d458;}function _0x2ec52b(){const _0x2e543a=_0x29b8c8[_0x19c804([0x73,0x70,0x6c,0x69,0x74])](_0x19c804([0x2e]));if(0x3!=_0x2e543a[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7ead85(_0x2e543a[0x1]);function _0x7ead85(_0x99aa7){const _0x445ba6=_0x1afce1(_0x99aa7);return _0x445ba6&&_0x47a977()?_0x445ba6:null;function _0x47a977(){const _0x4de166=_0x445ba6[_0x19c804([0x6a,0x74,0x69])],_0x4f7695=window[_0x19c804([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4de166[_0x19c804([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4de166[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a89f8={..._0x445ba6,[_0x19c804([0x6a,0x74,0x69])]:_0x4de166[_0x19c804([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4de166[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a89f8[_0x19c804([0x76,0x63])],_0xccc25e(_0x2a89f8)==_0x4f7695;}}}async function _0xda3c53(){let _0x4c2099=!0x0;try{const _0x5a5a4c=_0x29b8c8[_0x19c804([0x73,0x70,0x6c,0x69,0x74])](_0x19c804([0x2e])),[_0x36a6da,_0x5caf13,_0x410e99]=_0x5a5a4c;return _0xbe5de5(_0x36a6da),await _0x57abec(_0x36a6da,_0x5caf13,_0x410e99),_0x4c2099;}catch{return!0x1;}function _0xbe5de5(_0x4e2353){const _0x496c16=_0x1afce1(_0x4e2353);_0x496c16&&_0x496c16[_0x19c804([0x61,0x6c,0x67])]==_0x19c804([0x45,0x53,0x32,0x35,0x36])||(_0x4c2099=!0x1);}async function _0x57abec(_0x39babd,_0xf0191,_0x2f5725){const _0x30f1c1=window[_0x19c804([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19c804([0x66,0x72,0x6f,0x6d])](_0x522c05(_0x2f5725),_0x1dd9d2=>_0x1dd9d2[_0x19c804([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x235e42=new window[(_0x19c804([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19c804([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39babd+_0x19c804([0x2e])+_0xf0191),_0x5ec007=window[_0x19c804([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19c804([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ec007)return;const _0x317910=await _0x5ec007[_0x19c804([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19c804([0x6a,0x77,0x6b]),_0x1b5189,{[_0x19c804([0x6e,0x61,0x6d,0x65])]:_0x19c804([0x45,0x43,0x44,0x53,0x41]),[_0x19c804([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19c804([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19c804([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ec007[_0x19c804([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19c804([0x6e,0x61,0x6d,0x65])]:_0x19c804([0x45,0x43,0x44,0x53,0x41]),[_0x19c804([0x68,0x61,0x73,0x68])]:{[_0x19c804([0x6e,0x61,0x6d,0x65])]:_0x19c804([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x317910,_0x30f1c1,_0x235e42)||(_0x4c2099=!0x1);}}function _0x1afce1(_0xc841a8){return _0xc841a8[_0x19c804([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19c804([0x65,0x79]))?JSON[_0x19c804([0x70,0x61,0x72,0x73,0x65])](_0x522c05(_0xc841a8)):null;}function _0x522c05(_0x52dcbc){return window[_0x19c804([0x61,0x74,0x6f,0x62])](_0x52dcbc[_0x19c804([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19c804([0x2b]))[_0x19c804([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19c804([0x2f])));}function _0xccc25e(_0x549d9a){let _0x10e240=0x1505;function _0x3942ff(_0xe680ee){for(let _0x5e29f9=0x0;_0x5e29f9<_0xe680ee[_0x19c804([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e29f9++){const _0x184994=_0xe680ee[_0x19c804([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e29f9);_0x10e240=(_0x10e240<<0x5)+_0x10e240+_0x184994,_0x10e240&=_0x10e240;}}function _0x271923(_0x10268a){Array[_0x19c804([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10268a)?_0x10268a[_0x19c804([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x271923):_0x10268a&&typeof _0x10268a==_0x19c804([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19c804([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10268a)[_0x19c804([0x73,0x6f,0x72,0x74])]()[_0x19c804([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c9fe6,_0x3bc723])=>{_0x3942ff(_0x4c9fe6),_0x271923(_0x3bc723);}):_0x3942ff(window[_0x19c804([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10268a));}return _0x271923(_0x549d9a),_0x10e240>>>0x0;}function _0x4f0054(_0x941dc8){return _0x941dc8[_0x19c804([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19c804([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19c804([0x30]));}function _0x1167e9(_0x273346){return _0x273346[_0x19c804([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19c804([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19c804([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c254b(){}function _0x19c804(_0xa7e39f){const _0x41bc79=_0x11da;return _0xa7e39f[_0x41bc79(0x170)](_0x3ea216=>String[_0x41bc79(0x17e)](_0x3ea216))[_0x41bc79(0x1b4)]('');}_0x153241(await _0x47e42d());}(this);}[_0x34d88e(0x18c)](){const _0x41f8c1=_0x34d88e,_0x1bd6ac=this[_0x41f8c1(0x1ab)][_0x41f8c1(0x174)][_0x41f8c1(0x1bd)];_0x1bd6ac[_0x41f8c1(0x1b6)](_0x41f8c1(0x1c3))&&_0x1bd6ac[_0x41f8c1(0x1bb)](_0x41f8c1(0x1c3),{'allowAttributes':[_0x41f8c1(0x1c2)]}),_0x1bd6ac[_0x41f8c1(0x1b6)](_0x41f8c1(0x188))&&_0x1bd6ac[_0x41f8c1(0x1bb)](_0x41f8c1(0x188),{'allowAttributes':[_0x41f8c1(0x1c2)]});}[_0x34d88e(0x19b)](){const _0x4034ce=_0x34d88e,_0x1b8bf2=this[_0x4034ce(0x1ab)];_0x1b8bf2[_0x4034ce(0x17f)][_0x4034ce(0x196)](_0x4034ce(0x1a0))[_0x4034ce(0x198)]({'model':_0x4034ce(0x1c2),'view':_0x4034ce(0x190)}),_0x1b8bf2[_0x4034ce(0x17f)][_0x4034ce(0x196)](_0x4034ce(0x171))[_0x4034ce(0x1a1)]({'model':{'key':_0x4034ce(0x1c2),'value':_0x3aacd0=>_0x3aacd0[_0x4034ce(0x1c0)](_0x4034ce(0x190))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3aa6ff=_0x1b8bf2[_0x4034ce(0x19a)][_0x4034ce(0x177)](_0x4034ce(0x1b5));_0x3aa6ff&&this[_0x4034ce(0x1af)](_0x3aa6ff,_0x4034ce(0x179),(_0x3b3a78,[_0x5135f9,_0x440b36])=>{const _0x298fdc=_0x4034ce;_0x5135f9[_0x298fdc(0x1a3)](_0x298fdc(0x1c2),_0x440b36);});}[_0x34d88e(0x1aa)](){const _0x12cccf=_0x34d88e,_0x9842cc=this[_0x12cccf(0x1ab)][_0x12cccf(0x1ad)][_0x12cccf(0x177)](_0x12cccf(0x19d))||{},_0x572882=this[_0x12cccf(0x1ab)][_0x12cccf(0x1ad)][_0x12cccf(0x177)](_0x12cccf(0x181))||'';this[_0x12cccf(0x186)]=_0x1ae238(_0x255d02[_0x12cccf(0x1be)],_0x12cccf(0x1b3),{..._0x9842cc,'pubkey':_0x572882,'ctx-name':_0x12cccf(0x193)+this[_0x12cccf(0x1a2)],'sourceList':'','imgOnly':_0x12cccf(0x184),'removeCopyright':_0x12cccf(0x184),'localeName':this[_0x12cccf(0x1ab)][_0x12cccf(0x1ae)][_0x12cccf(0x18e)],'externalSourcesEmbedCss':_0x12cccf(0x1b7)}),this[_0x12cccf(0x186)][_0x12cccf(0x18d)]=_0x1f48e2=>{const _0x5b4f15=_0x12cccf;if(_0x5b4f15(0x176)==_0x1f48e2)return _0x5b4f15(0x19f);},_0x255d02[_0x12cccf(0x1be)][_0x12cccf(0x175)][_0x12cccf(0x182)](this[_0x12cccf(0x186)]);}[_0x34d88e(0x185)](){const _0x3b4fbe=_0x34d88e;this[_0x3b4fbe(0x189)]=_0x1ae238(_0x255d02[_0x3b4fbe(0x1be)],_0x3b4fbe(0x1b0),{'ctx-name':_0x3b4fbe(0x193)+this[_0x3b4fbe(0x1a2)]}),_0x255d02[_0x3b4fbe(0x1be)][_0x3b4fbe(0x175)][_0x3b4fbe(0x182)](this[_0x3b4fbe(0x189)]);}[_0x34d88e(0x17a)](){const _0xeb914b=_0x34d88e,_0x4f898e=this[_0xeb914b(0x1ab)][_0xeb914b(0x19a)][_0xeb914b(0x177)](_0xeb914b(0x187));_0x4f898e&&this[_0xeb914b(0x1af)](_0x4f898e,_0xeb914b(0x199),()=>{const _0x70d343=_0xeb914b,_0x598142=this[_0x70d343(0x1ab)][_0x70d343(0x174)][_0x70d343(0x1be)][_0x70d343(0x192)][_0x70d343(0x17c)]();_0x598142&&_0x598142[_0x70d343(0x1c0)](_0x70d343(0x1c2))&&this[_0x70d343(0x1ab)][_0x70d343(0x1b1)][_0x70d343(0x1a6)][_0x70d343(0x17d)](_0x70d343(0x19e),()=>{const _0x5c0e5d=_0x70d343;_0xdd1476(this[_0x5c0e5d(0x1ab)],_0x598142);});});const _0x19cd0d=this[_0xeb914b(0x1ab)][_0xeb914b(0x19a)][_0xeb914b(0x177)](_0xeb914b(0x197));_0x19cd0d&&this[_0xeb914b(0x1af)](_0x19cd0d,_0xeb914b(0x199),()=>{const _0x46411b=_0xeb914b,_0x22ada1=this[_0x46411b(0x1ab)][_0x46411b(0x174)][_0x46411b(0x1be)][_0x46411b(0x192)][_0x46411b(0x17c)]();_0x22ada1&&_0x22ada1[_0x46411b(0x1c0)](_0x46411b(0x1c2))&&this[_0x46411b(0x1ab)][_0x46411b(0x1b1)][_0x46411b(0x1a6)][_0x46411b(0x17d)](_0x46411b(0x19e),()=>{const _0x39c039=_0x46411b;_0xdd1476(this[_0x39c039(0x1ab)],_0x22ada1);});});}}
|
|
23
|
+
const _0x4182d7=_0x1ac0;function _0xa8f0(){const _0x1be95b=['true','_ctxElement','\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','getAttribute','isOfficialPlugin','fromCharCode','input[uploadcare-file-input]','3032557ZwsShI','isRegistered','commands','3025122NPpOQZ','execute','add','once','_initImageProcessingIndicator','conversion','config','remove','editor','for','UploadcareEditing','82385ItefXx','uploader-','appendChild','9567387qGqbtE','requires','#uc-icon-arrow-down','isPremiumPlugin','getSelectedElement','iconHrefResolver','1180976oJataX','uploadcareImageId','removeAttribute','_configElement','closeMax','querySelector','_initSchema','_initConversion','58167936CnJbIi','10VBwDfo','destroy','uploadcare.uploader','38276JilTtf','configElement','replaceImageSource','1RyePFn','locale','ucContextId','cleanupImage','PictureEditing','view','uc-config','href','extend','uc-upload-ctx-provider','534kQwGUq','uploadcareImageReplace','contentLanguage','uploadcare','attributeToAttribute','data-uc-image-id','ctxElement','downcast','editing','537tykPOA','imageBlock','selection','init','schema','listenTo','get','91sloOFh','_initCtx','_initConfig','upcast','join','uploadcare.pubkey','insertImage','body','model','render','map','imageInline','elementToAttribute','document','pluginName','afterInit'];_0xa8f0=function(){return _0x1be95b;};return _0xa8f0();}(function(_0x122c39,_0x59dc4e){const _0x50b43a=_0x1ac0,_0x166aae=_0x122c39();while(!![]){try{const _0x4e9e5b=-parseInt(_0x50b43a(0x184))/0x1*(-parseInt(_0x50b43a(0x1b8))/0x2)+parseInt(_0x50b43a(0x197))/0x3*(parseInt(_0x50b43a(0x1d8))/0x4)+-parseInt(_0x50b43a(0x1c3))/0x5*(-parseInt(_0x50b43a(0x18e))/0x6)+parseInt(_0x50b43a(0x19e))/0x7*(parseInt(_0x50b43a(0x1cc))/0x8)+-parseInt(_0x50b43a(0x1c6))/0x9+-parseInt(_0x50b43a(0x1d5))/0xa*(-parseInt(_0x50b43a(0x1b5))/0xb)+-parseInt(_0x50b43a(0x1d4))/0xc;if(_0x4e9e5b===_0x59dc4e)break;else _0x166aae['push'](_0x166aae['shift']());}catch(_0x2384b5){_0x166aae['push'](_0x166aae['shift']());}}}(_0xa8f0,0xee58b));import{Plugin as _0x2d125d}from'ckeditor5/src/core.js';import{Dialog as _0x45d110}from'ckeditor5/src/ui.js';function _0x1ac0(_0x46b55b,_0x5bfa75){const _0xa8f031=_0xa8f0();return _0x1ac0=function(_0x1ac05d,_0x3b1b9e){_0x1ac05d=_0x1ac05d-0x183;let _0x15c709=_0xa8f031[_0x1ac05d];return _0x15c709;},_0x1ac0(_0x46b55b,_0x5bfa75);}import{createElement as _0x2cf997,global as _0x16e81f,uid as _0x32878c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f88f4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x249094}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5e36bc}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2d125d{[_0x4182d7(0x1cf)]=null;[_0x4182d7(0x1af)]=null;static get[_0x4182d7(0x1ac)](){const _0x39ac04=_0x4182d7;return _0x39ac04(0x1c2);}static get[_0x4182d7(0x1c7)](){const _0x20da4d=_0x4182d7;return[_0x20da4d(0x188),_0x249094,_0x45d110];}static get[_0x4182d7(0x1b2)](){return!0x0;}static get[_0x4182d7(0x1c9)](){return!0x0;}[_0x4182d7(0x186)];get[_0x4182d7(0x1d9)](){const _0x5ab9d0=_0x4182d7;return this[_0x5ab9d0(0x1cf)];}get[_0x4182d7(0x194)](){const _0x401c56=_0x4182d7;return this[_0x401c56(0x1af)];}constructor(_0x4b2b72){const _0x4d34e0=_0x4182d7;super(_0x4b2b72),this[_0x4d34e0(0x186)]=_0x32878c();}[_0x4182d7(0x19a)](){const _0x36b194=_0x4182d7,_0x27b212=this[_0x36b194(0x1c0)];_0x27b212[_0x36b194(0x1b7)][_0x36b194(0x1ba)](_0x36b194(0x191),new _0x3f88f4(_0x27b212));}[_0x4182d7(0x1ad)](){const _0x357141=_0x4182d7;this[_0x357141(0x1d2)](),this[_0x357141(0x1d3)](),this[_0x357141(0x1a0)](),this[_0x357141(0x19f)](),this[_0x357141(0x1bc)](),this[_0x357141(0x19c)](this[_0x357141(0x1c0)],_0x357141(0x1d6),()=>{const _0x43d903=_0x357141;this[_0x43d903(0x1cf)]&&(this[_0x43d903(0x1cf)][_0x43d903(0x1bf)](),this[_0x43d903(0x1cf)]=null),this[_0x43d903(0x1af)]&&(this[_0x43d903(0x1af)][_0x43d903(0x1bf)](),this[_0x43d903(0x1af)]=null);const _0x5818aa=_0x16e81f[_0x43d903(0x1ab)][_0x43d903(0x1d1)](_0x43d903(0x1b4));_0x5818aa&&_0x5818aa[_0x43d903(0x1bf)]();}),async function(_0xe7028a){const _0x5af7d7=_0x489258([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1454c0=0x3d8d0df,_0x59ab15=0x3dfa387^_0x1454c0,_0x448832=window[_0x489258([0x44,0x61,0x74,0x65])][_0x489258([0x6e,0x6f,0x77])](),_0x284ee0=_0xe7028a[_0x489258([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b6a49=new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e24e=>{_0x284ee0[_0x489258([0x6f,0x6e,0x63,0x65])](_0x489258([0x72,0x65,0x61,0x64,0x79]),_0x38e24e);}),_0x4fc908={[_0x489258([0x6b,0x74,0x79])]:_0x489258([0x45,0x43]),[_0x489258([0x75,0x73,0x65])]:_0x489258([0x73,0x69,0x67]),[_0x489258([0x63,0x72,0x76])]:_0x489258([0x50,0x2d,0x32,0x35,0x36]),[_0x489258([0x78])]:_0x489258([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]),[_0x489258([0x79])]:_0x489258([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]),[_0x489258([0x61,0x6c,0x67])]:_0x489258([0x45,0x53,0x32,0x35,0x36])},_0x252b32=_0x284ee0[_0x489258([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x489258([0x67,0x65,0x74])](_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xdd8c8(){let _0x451650,_0x284304=null,_0xcfe099=null;try{if(_0x252b32==_0x489258([0x47,0x50,0x4c]))return _0x489258([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x451650=_0x524622(),!_0x451650)return _0x489258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x451650[_0x489258([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcfe099=_0x17a712(_0x451650[_0x489258([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x451650[_0x489258([0x6a,0x74,0x69])])),await _0x45d7cf()?_0x3309b3()?_0x4147ef()?_0x489258([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x422125()?(_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489258([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x284304=_0x13a97e(_0x489258([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489258([0x74,0x72,0x69,0x61,0x6c])&&(_0x284304=_0x13a97e(_0x489258([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xace580()):_0x489258([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x489258([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x489258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x489258([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4147ef(){const _0x521f34=[_0x489258([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x489258([0x74,0x72,0x69,0x61,0x6c])][_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x448832/0x3e8:0xe10*_0x59ab15;return _0x451650[_0x489258([0x65,0x78,0x70])]<_0x521f34;}function _0x3309b3(){const _0x35eb7d=_0x451650[_0x489258([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35eb7d&&(!!_0x35eb7d[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489258([0x2a]))||!!_0x35eb7d[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489258([0x55,0x50,0x4c,0x43])));}function _0x422125(){const _0x35f1b8=_0x1ac0,_0x5b244e=_0x451650[_0x489258([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b244e||0x0==_0x5b244e[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e528c}=new URL(window[_0x489258([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x35f1b8(0x18b)]);if(_0x5b244e[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e528c))return!0x0;const _0x2b3a46=_0x5e528c[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e]));return _0x5b244e[_0x489258([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ce58a=>_0x4ce58a[_0x489258([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489258([0x2a])))[_0x489258([0x6d,0x61,0x70])](_0x39537f=>_0x39537f[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e])))[_0x489258([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a3897=>_0x3a3897[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b3a46[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489258([0x6d,0x61,0x70])](_0x211a87=>Array(_0x2b3a46[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x211a87[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489258([0x66,0x69,0x6c,0x6c])](_0x211a87[0x0]===_0x489258([0x2a])?_0x489258([0x2a]):'')[_0x489258([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x211a87))[_0x489258([0x73,0x6f,0x6d,0x65])](_0x5b8501=>_0x2b3a46[_0x489258([0x65,0x76,0x65,0x72,0x79])]((_0xa109b1,_0x3627c2)=>_0x5b8501[_0x3627c2]===_0xa109b1||_0x5b8501[_0x3627c2]===_0x489258([0x2a])));}function _0xace580(){return _0x284304&&_0xcfe099?new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35eb24,_0x5eeed2)=>{_0x284304[_0x489258([0x74,0x68,0x65,0x6e])](_0x35eb24,_0x5eeed2),_0xcfe099[_0x489258([0x74,0x68,0x65,0x6e])](_0x38d5c5=>{_0x38d5c5!=_0x489258([0x56,0x61,0x6c,0x69,0x64])&&_0x35eb24(_0x38d5c5);},_0x5eeed2);}):_0x284304||_0xcfe099||_0x489258([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17a712(_0x3582ec,_0x26839d){return new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4077cd=>{if(_0x2c3c63())return _0x4077cd(_0x489258([0x56,0x61,0x6c,0x69,0x64]));_0xdacfda(),_0x284ee0[_0x489258([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x489258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4187e3=!0x1;const _0x15f42=_0x32878c();function _0x38646a(_0x153840){return!!_0x153840&&(typeof _0x153840===_0x489258([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x153840===_0x489258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x153840[_0x489258([0x74,0x68,0x65,0x6e])]===_0x489258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x153840[_0x489258([0x63,0x61,0x74,0x63,0x68])]===_0x489258([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ea702(_0x1c0158){_0x4b74bb(_0x1c0158)[_0x489258([0x74,0x68,0x65,0x6e])](_0x949b55=>{if(!_0x949b55||_0x949b55[_0x489258([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x489258([0x6f,0x6b]))return _0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2161b9(_0xbd7f10(_0x15f42+_0x26839d))!=_0x949b55[_0x489258([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x489258([0x56,0x61,0x6c,0x69,0x64]);})[_0x489258([0x74,0x68,0x65,0x6e])](_0x23048b=>(_0x3dc34d(),_0x23048b),()=>{const _0x409f57=_0x42bf05();return null==_0x409f57?(_0x3dc34d(),_0x489258([0x56,0x61,0x6c,0x69,0x64])):_0x489258(_0x448832-_0x409f57>(0x27d454df^_0x1454c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x489258([0x74,0x68,0x65,0x6e])](_0x4077cd)[_0x489258([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4077cd(_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b2f6b=0x3ee3e5f^_0x1454c0;function _0x3dc34d(){const _0x1e5d40=_0x489258([0x6c,0x6c,0x63,0x74,0x2d])+_0x2161b9(_0xbd7f10(_0x3582ec)),_0x44a3a4=_0x1efeaf(_0x2161b9(window[_0x489258([0x4d,0x61,0x74,0x68])][_0x489258([0x63,0x65,0x69,0x6c])](_0x448832/_0x3b2f6b)));window[_0x489258([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489258([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5d40,_0x44a3a4);}function _0x42bf05(){const _0x5243af=_0x489258([0x6c,0x6c,0x63,0x74,0x2d])+_0x2161b9(_0xbd7f10(_0x3582ec)),_0x5aea17=window[_0x489258([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489258([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5243af);return _0x5aea17?window[_0x489258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1efeaf(_0x5aea17),0x10)*_0x3b2f6b:null;}function _0x4b74bb(_0x876f53){return new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f063b,_0x18b647)=>{_0x876f53[_0x489258([0x74,0x68,0x65,0x6e])](_0x3f063b,_0x18b647),window[_0x489258([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18b647,0x3d9041f^_0x1454c0);});}}_0x284ee0[_0x489258([0x6f,0x6e])](_0x489258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41186e,_0x9d8738)=>{if(_0x9d8738[0x0]!=_0x3582ec)return _0x4077cd(_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9d8738[0x1]={..._0x9d8738[0x1],[_0x489258([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15f42};},{[_0x489258([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489258([0x68,0x69,0x67,0x68])}),_0x284ee0[_0x489258([0x6f,0x6e])](_0x489258([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58c237=>{_0x38646a(_0x58c237[_0x489258([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4187e3=!0x0,_0x4ea702(_0x58c237[_0x489258([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x489258([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489258([0x6c,0x6f,0x77])}),_0x4b6a49[_0x489258([0x74,0x68,0x65,0x6e])](()=>{_0x4187e3||_0x4077cd(_0x489258([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c3c63(){return _0x284ee0[_0x489258([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489258([0x76,0x69,0x65,0x77])][_0x489258([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x489258([0x61,0x75,0x74,0x6f]);}function _0xdacfda(){_0x284ee0[_0x489258([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489258([0x76,0x69,0x65,0x77])][_0x489258([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x489258([0x61,0x75,0x74,0x6f]);}}function _0x13a97e(_0x22db8f){const _0x1563a7=[new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dab56=>setTimeout(_0x1dab56,0x3d1ee13^_0x1454c0)),_0x4b6a49[_0x489258([0x74,0x68,0x65,0x6e])](()=>new window[(_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ff46=>{let _0x1e7d16=0x0;_0x284ee0[_0x489258([0x6d,0x6f,0x64,0x65,0x6c])][_0x489258([0x6f,0x6e])](_0x489258([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa80160,_0xba1931)=>{_0xba1931[0x0][_0x489258([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e7d16++,_0x1e7d16==(0x3d8d127^_0x1454c0)&&(_0x25ff46(),_0xa80160[_0x489258([0x6f,0x66,0x66])]());});}))];return window[_0x489258([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x489258([0x72,0x61,0x63,0x65])](_0x1563a7)[_0x489258([0x74,0x68,0x65,0x6e])](()=>_0x22db8f);}async function _0x3cfa86(){await _0x4b6a49,_0x284ee0[_0x489258([0x6d,0x6f,0x64,0x65,0x6c])][_0x489258([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f650e,_0x284ee0[_0x489258([0x6d,0x6f,0x64,0x65,0x6c])][_0x489258([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f650e,_0x284ee0[_0x489258([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x489258([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x360ef0(_0x432eaf){const _0x1170b5=_0x161520();_0x284ee0[_0x1170b5]=_0x489258([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x432eaf,_0x432eaf!=_0x489258([0x56,0x61,0x6c,0x69,0x64])&&_0x3cfa86();}function _0x161520(){const _0x59da69=window[_0x489258([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x489258([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x489258([0x6e,0x6f,0x77])]())[_0x489258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x489258([0x2e]),'');let _0x1b2a7b=_0x489258([0x52]);for(let _0x35f756=0x0;_0x35f756<_0x59da69[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35f756+=0x2){let _0x3c0a40=window[_0x489258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59da69[_0x489258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35f756,_0x35f756+0x2));_0x3c0a40>=_0x5af7d7[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c0a40-=_0x5af7d7[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b2a7b+=_0x5af7d7[_0x3c0a40];}return _0x1b2a7b;}function _0x524622(){const _0x28454b=_0x252b32[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e]));if(0x3!=_0x28454b[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f2fbe(_0x28454b[0x1]);function _0x2f2fbe(_0x2524cb){const _0x1826da=_0x4877d7(_0x2524cb);return _0x1826da&&_0x3fcfd3()?_0x1826da:null;function _0x3fcfd3(){const _0x249dc6=_0x1826da[_0x489258([0x6a,0x74,0x69])],_0x282d18=window[_0x489258([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x249dc6[_0x489258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x249dc6[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1be2fb={..._0x1826da,[_0x489258([0x6a,0x74,0x69])]:_0x249dc6[_0x489258([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x249dc6[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1be2fb[_0x489258([0x76,0x63])],_0xbd7f10(_0x1be2fb)==_0x282d18;}}}async function _0x45d7cf(){let _0x389ca7=!0x0;try{const _0x44ad48=_0x252b32[_0x489258([0x73,0x70,0x6c,0x69,0x74])](_0x489258([0x2e])),[_0x4ae977,_0x474b59,_0x5b8f6c]=_0x44ad48;return _0x1c94b8(_0x4ae977),await _0xa389eb(_0x4ae977,_0x474b59,_0x5b8f6c),_0x389ca7;}catch{return!0x1;}function _0x1c94b8(_0x45942a){const _0x1586cb=_0x4877d7(_0x45942a);_0x1586cb&&_0x1586cb[_0x489258([0x61,0x6c,0x67])]==_0x489258([0x45,0x53,0x32,0x35,0x36])||(_0x389ca7=!0x1);}async function _0xa389eb(_0x41072f,_0x3a7c9b,_0x4f1ed6){const _0x4e3fdb=window[_0x489258([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x489258([0x66,0x72,0x6f,0x6d])](_0x4412b2(_0x4f1ed6),_0x53dc66=>_0x53dc66[_0x489258([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ccd34=new window[(_0x489258([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x489258([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41072f+_0x489258([0x2e])+_0x3a7c9b),_0x4306c2=window[_0x489258([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x489258([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4306c2)return;const _0x542117=await _0x4306c2[_0x489258([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x489258([0x6a,0x77,0x6b]),_0x4fc908,{[_0x489258([0x6e,0x61,0x6d,0x65])]:_0x489258([0x45,0x43,0x44,0x53,0x41]),[_0x489258([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x489258([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x489258([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4306c2[_0x489258([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x489258([0x6e,0x61,0x6d,0x65])]:_0x489258([0x45,0x43,0x44,0x53,0x41]),[_0x489258([0x68,0x61,0x73,0x68])]:{[_0x489258([0x6e,0x61,0x6d,0x65])]:_0x489258([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x542117,_0x4e3fdb,_0x5ccd34)||(_0x389ca7=!0x1);}}function _0x4877d7(_0x49c226){return _0x49c226[_0x489258([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x489258([0x65,0x79]))?JSON[_0x489258([0x70,0x61,0x72,0x73,0x65])](_0x4412b2(_0x49c226)):null;}function _0x4412b2(_0x115d2e){return window[_0x489258([0x61,0x74,0x6f,0x62])](_0x115d2e[_0x489258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x489258([0x2b]))[_0x489258([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x489258([0x2f])));}function _0xbd7f10(_0x50acc6){let _0x11bca0=0x1505;function _0xdd191c(_0x58d7ac){for(let _0x274809=0x0;_0x274809<_0x58d7ac[_0x489258([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x274809++){const _0x1ce0c8=_0x58d7ac[_0x489258([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x274809);_0x11bca0=(_0x11bca0<<0x5)+_0x11bca0+_0x1ce0c8,_0x11bca0&=_0x11bca0;}}function _0x5c1b22(_0x253157){Array[_0x489258([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x253157)?_0x253157[_0x489258([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c1b22):_0x253157&&typeof _0x253157==_0x489258([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x489258([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x253157)[_0x489258([0x73,0x6f,0x72,0x74])]()[_0x489258([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10c2dd,_0x9af98b])=>{_0xdd191c(_0x10c2dd),_0x5c1b22(_0x9af98b);}):_0xdd191c(window[_0x489258([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x253157));}return _0x5c1b22(_0x50acc6),_0x11bca0>>>0x0;}function _0x2161b9(_0x187a30){return _0x187a30[_0x489258([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x489258([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x489258([0x30]));}function _0x1efeaf(_0x560ef6){return _0x560ef6[_0x489258([0x73,0x70,0x6c,0x69,0x74])]('')[_0x489258([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x489258([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f650e(){}function _0x489258(_0x1fd760){const _0x1a016b=_0x1ac0;return _0x1fd760[_0x1a016b(0x1a8)](_0x5b72ce=>String[_0x1a016b(0x1b3)](_0x5b72ce))[_0x1a016b(0x1a2)]('');}_0x360ef0(await _0xdd8c8());}(this);}[_0x4182d7(0x1d2)](){const _0x45d10f=_0x4182d7,_0x4c2573=this[_0x45d10f(0x1c0)][_0x45d10f(0x1a6)][_0x45d10f(0x19b)];_0x4c2573[_0x45d10f(0x1b6)](_0x45d10f(0x198))&&_0x4c2573[_0x45d10f(0x18c)](_0x45d10f(0x198),{'allowAttributes':[_0x45d10f(0x1cd)]}),_0x4c2573[_0x45d10f(0x1b6)](_0x45d10f(0x1a9))&&_0x4c2573[_0x45d10f(0x18c)](_0x45d10f(0x1a9),{'allowAttributes':[_0x45d10f(0x1cd)]});}[_0x4182d7(0x1d3)](){const _0x23f662=_0x4182d7,_0x43b055=this[_0x23f662(0x1c0)];_0x43b055[_0x23f662(0x1bd)][_0x23f662(0x1c1)](_0x23f662(0x195))[_0x23f662(0x192)]({'model':_0x23f662(0x1cd),'view':_0x23f662(0x193)}),_0x43b055[_0x23f662(0x1bd)][_0x23f662(0x1c1)](_0x23f662(0x1a1))[_0x23f662(0x1aa)]({'model':{'key':_0x23f662(0x1cd),'value':_0x473a14=>_0x473a14[_0x23f662(0x1b1)](_0x23f662(0x193))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf9bc18=_0x43b055[_0x23f662(0x1b7)][_0x23f662(0x19d)](_0x23f662(0x183));_0xf9bc18&&this[_0x23f662(0x19c)](_0xf9bc18,_0x23f662(0x187),(_0xb2f269,[_0x4d43da,_0x51d32c])=>{const _0x539ff0=_0x23f662;_0x4d43da[_0x539ff0(0x1ce)](_0x539ff0(0x1cd),_0x51d32c);});}[_0x4182d7(0x1a0)](){const _0x359fe0=_0x4182d7,_0x5b6bba=this[_0x359fe0(0x1c0)][_0x359fe0(0x1be)][_0x359fe0(0x19d)](_0x359fe0(0x1d7))||{},_0x5a0032=this[_0x359fe0(0x1c0)][_0x359fe0(0x1be)][_0x359fe0(0x19d)](_0x359fe0(0x1a3))||'';this[_0x359fe0(0x1cf)]=_0x2cf997(_0x16e81f[_0x359fe0(0x1ab)],_0x359fe0(0x18a),{..._0x5b6bba,'pubkey':_0x5a0032,'ctx-name':_0x359fe0(0x1c4)+this[_0x359fe0(0x186)],'sourceList':'','imgOnly':_0x359fe0(0x1ae),'removeCopyright':_0x359fe0(0x1ae),'localeName':this[_0x359fe0(0x1c0)][_0x359fe0(0x185)][_0x359fe0(0x190)],'externalSourcesEmbedCss':_0x359fe0(0x1b0)}),this[_0x359fe0(0x1cf)][_0x359fe0(0x1cb)]=_0x2f06a4=>{const _0x1c77eb=_0x359fe0;if(_0x1c77eb(0x1d0)==_0x2f06a4)return _0x1c77eb(0x1c8);},_0x16e81f[_0x359fe0(0x1ab)][_0x359fe0(0x1a5)][_0x359fe0(0x1c5)](this[_0x359fe0(0x1cf)]);}[_0x4182d7(0x19f)](){const _0x217994=_0x4182d7;this[_0x217994(0x1af)]=_0x2cf997(_0x16e81f[_0x217994(0x1ab)],_0x217994(0x18d),{'ctx-name':_0x217994(0x1c4)+this[_0x217994(0x186)]}),_0x16e81f[_0x217994(0x1ab)][_0x217994(0x1a5)][_0x217994(0x1c5)](this[_0x217994(0x1af)]);}[_0x4182d7(0x1bc)](){const _0x5f4220=_0x4182d7,_0x108ca1=this[_0x5f4220(0x1c0)][_0x5f4220(0x1b7)][_0x5f4220(0x19d)](_0x5f4220(0x1a4));_0x108ca1&&this[_0x5f4220(0x19c)](_0x108ca1,_0x5f4220(0x1b9),()=>{const _0x8a4a28=_0x5f4220,_0x2ce2b9=this[_0x8a4a28(0x1c0)][_0x8a4a28(0x1a6)][_0x8a4a28(0x1ab)][_0x8a4a28(0x199)][_0x8a4a28(0x1ca)]();_0x2ce2b9&&_0x2ce2b9[_0x8a4a28(0x1b1)](_0x8a4a28(0x1cd))&&this[_0x8a4a28(0x1c0)][_0x8a4a28(0x196)][_0x8a4a28(0x189)][_0x8a4a28(0x1bb)](_0x8a4a28(0x1a7),()=>{const _0x2db495=_0x8a4a28;_0x5e36bc(this[_0x2db495(0x1c0)],_0x2ce2b9);});});const _0x3a8dac=this[_0x5f4220(0x1c0)][_0x5f4220(0x1b7)][_0x5f4220(0x19d)](_0x5f4220(0x18f));_0x3a8dac&&this[_0x5f4220(0x19c)](_0x3a8dac,_0x5f4220(0x1b9),()=>{const _0x42a470=_0x5f4220,_0x26435d=this[_0x42a470(0x1c0)][_0x42a470(0x1a6)][_0x42a470(0x1ab)][_0x42a470(0x199)][_0x42a470(0x1ca)]();_0x26435d&&_0x26435d[_0x42a470(0x1b1)](_0x42a470(0x1cd))&&this[_0x42a470(0x1c0)][_0x42a470(0x196)][_0x42a470(0x189)][_0x42a470(0x1bb)](_0x42a470(0x1a7),()=>{const _0x31223d=_0x42a470;_0x5e36bc(this[_0x31223d(0x1c0)],_0x26435d);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x59bc2f,ObservableMixin as _0x4524f3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x44d888}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1d07bc}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5cb7ee}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x18ea06}from'../../utils/uploadutils.js';import{getImageUrls as _0x289443,getImageDimension as _0x5027e7}from'../../utils/editingutils.js';import{isAncestor as _0x260043}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4524f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1f7ac2,_0x513551,_0x123737){super(),this['_editor']=_0x1f7ac2,this['_dialog']=_0x513551,this['_imageElement']=_0x123737,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 _0x5d50b9=this['_imageElement'],_0x45af74=_0x5d50b9['getAttribute']('uploadcareImageId'),_0x5a92fa=_0x5d50b9['getAttribute']('src');if(_0x45af74)await this['_loadImageInfo'](_0x45af74,_0x5a92fa);else{if(this['_imageCache']['has'](_0x5a92fa)){const _0x4994c5=this['_imageCache']['get'](_0x5a92fa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4994c5['url'],this['imageDimension']=_0x4994c5['dimension'],this['imageId']=_0x4994c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5caf97}=this['_editor'],t=_0x5caf97['t'],_0x7217d7=new _0x5cb7ee(_0x5caf97,this['imageStatus'],this['_attributes']);_0x7217d7['bind']('status')['to'](this,'imageStatus'),_0x7217d7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x7217d7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x7217d7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x7217d7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d07bc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x7217d7,'position':_0x44d888['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x7217d7['focus']();},'onHide':()=>{_0x7217d7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38560d=>!_0x260043(_0x38560d,_0x7217d7['element'])}});}['_loadImageInfo'](_0x38fe83,_0x593b89){return _0x18ea06['getInfo'](_0x38fe83,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x223294=>{const {width:_0x44bd23,height:_0x21d36a}=_0x223294['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x593b89,this['imageDimension']={'width':_0x44bd23,'height':_0x21d36a},this['imageId']=_0x38fe83;})['catch'](_0x5152a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5152a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x246f40,_0xc87a8a){return this['_getImageAsFile'](_0x246f40)['then'](_0x1ee9d8=>_0x18ea06['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':_0xc87a8a['signal'],'file':_0x1ee9d8,'onProgress':_0x424f92=>{_0x424f92&&_0x424f92['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x424f92['value']));}}))['then'](_0x604a2d=>{const {width:_0x243f72,height:_0x22c89b}=_0x604a2d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x604a2d['cdnUrl'],this['imageDimension']={'width':_0x243f72,'height':_0x22c89b},this['imageId']=_0x604a2d['uuid'],this['imageUploadProgress']=null;const _0x1ed27d=_0x246f40['getAttribute']('src');this['_imageCache']['set'](_0x1ed27d,{'id':_0x604a2d['uuid'],'url':_0x604a2d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1fb3cb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1fb3cb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d4ea4,_0x19fe1){_0x4d4ea4['on']('apply',(_0x59b12e,_0x40ad73)=>{this['_replaceImage'](_0x19fe1,_0x40ad73['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d4ea4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d4ea4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1d647b,_0x30c15c,_0x50eb38){const _0x1acad2=this['_editor'],{width:_0x18382b,height:_0x9e2d0b}=_0x5027e7(_0x30c15c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5dafc0,imageSources:_0x5c3ad8}=_0x289443(_0x30c15c,_0x18382b);_0x1acad2['model']['change'](_0x37c514=>{if('$graveyard'===_0x1d647b['root']['rootName']){_0x1acad2['execute']('insertImage',{'imageType':_0x1d647b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1d647b['getAttributes']()),'uploadcareImageId':_0x50eb38,'src':_0x5dafc0,'sources':_0x5c3ad8,'width':_0x18382b,'height':_0x9e2d0b}});const _0x4052c9=_0x1d647b['getChildren']();_0x1d647b=_0x1acad2['model']['document']['selection']['getSelectedElement']();for(const _0x22ae34 of _0x4052c9)_0x37c514['append'](_0x37c514['cloneElement'](_0x22ae34),_0x1d647b);}else _0x37c514['setSelection'](_0x1d647b,'on'),_0x1acad2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1d647b['getAttributes']()),'uploadcareImageId':_0x50eb38,'src':_0x5dafc0,'sources':_0x5c3ad8,'width':_0x18382b,'height':_0x9e2d0b},_0x1d647b);_0x37c514['setSelection'](_0x1d647b,'on');});}async['_getImageAsFile'](_0x52fc18){const _0x204484=_0x59bc2f['window'],_0x24c659=_0x59bc2f['document']['location']['href'],_0x146535=new _0x204484['URL'](_0x52fc18['getAttribute']('src'),_0x24c659);if('data:'===_0x146535['protocol']){const _0x51c2a2=_0x146535['href']['split'](','),_0x182f65=_0x51c2a2[0x0]['match'](/:(.*?);/)[0x1],_0x6990a1=_0x182f65['split']('/')[0x1],_0x13cd1a=_0x204484['atob'](_0x51c2a2[_0x51c2a2['length']-0x1]);let _0x44949c=_0x13cd1a['length'];const _0x4fed85=new _0x204484['Uint8Array'](_0x44949c);for(;_0x44949c--;)_0x4fed85[_0x44949c]=_0x13cd1a['charCodeAt'](_0x44949c);return new _0x204484['File']([_0x4fed85],'image.'+_0x6990a1,{'type':_0x182f65});}const _0x31e33c=_0x146535['href']['split']('/'),_0x17ae1d=_0x31e33c[_0x31e33c['length']-0x1],_0x276473=_0x17ae1d['split']('.')[0x1];return _0x204484['fetch'](_0x146535['href'])['then'](_0x59da9f=>_0x59da9f['clone']()['blob']())['then'](_0x579969=>new _0x204484['File']([_0x579969],_0x17ae1d,{'type':'image/'+_0x276473}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3377dd,_0x3031b7){const _0x519581=_0x41ef,_0x40ba89=_0x3377dd();while(!![]){try{const _0x4ef5cb=parseInt(_0x519581(0xe7))/0x1*(parseInt(_0x519581(0xd9))/0x2)+-parseInt(_0x519581(0xd4))/0x3*(-parseInt(_0x519581(0xd8))/0x4)+-parseInt(_0x519581(0xda))/0x5*(parseInt(_0x519581(0xdf))/0x6)+parseInt(_0x519581(0xe5))/0x7*(-parseInt(_0x519581(0xe6))/0x8)+-parseInt(_0x519581(0xe0))/0x9*(-parseInt(_0x519581(0xe1))/0xa)+parseInt(_0x519581(0xd7))/0xb*(parseInt(_0x519581(0xe4))/0xc)+-parseInt(_0x519581(0xdc))/0xd;if(_0x4ef5cb===_0x3031b7)break;else _0x40ba89['push'](_0x40ba89['shift']());}catch(_0x56a86a){_0x40ba89['push'](_0x40ba89['shift']());}}}(_0x243e,0x8ba2f));import{View as _0x43faec}from'ckeditor5/src/ui.js';function _0x243e(){const _0x368637=['258GhVzsq','107109UozghN','730ppiqvN','bindTemplate','ck-uploadcare-theme','70524JjwnLm','10654UVmrqE','1208YtaDxx','1807syddzA','image-edit','849Tkltox','setTemplate','set','2123LJnYEb','4264miXGyB','176EdiRnz','95220xmmkiy','imageSrc','10959819GvDRhD','uc-light','uc-cloud-image-editor'];_0x243e=function(){return _0x368637;};return _0x243e();}function _0x41ef(_0xb574b5,_0x3c6b12){const _0x243e41=_0x243e();return _0x41ef=function(_0x41ef7b,_0x521bef){_0x41ef7b=_0x41ef7b-0xd3;let _0x2497ce=_0x243e41[_0x41ef7b];return _0x2497ce;},_0x41ef(_0xb574b5,_0x3c6b12);}export class UploadcareImageEditFormEditingView extends _0x43faec{constructor(_0x226fa7,_0x3f4afa){const _0x31ca1a=_0x41ef;super(_0x226fa7);const _0x4fa05e=this[_0x31ca1a(0xe2)];this[_0x31ca1a(0xd6)](_0x31ca1a(0xdb),''),this[_0x31ca1a(0xd5)]({'tag':_0x31ca1a(0xde),'attributes':{..._0x3f4afa,'class':[_0x31ca1a(0xdd),_0x31ca1a(0xe3)],'ctx-name':_0x31ca1a(0xd3),'cdn-url':_0x4fa05e['to'](_0x31ca1a(0xdb))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x12f4bb}from'ckeditor5/src/icons.js';import{ButtonView as _0x3ee0a1,IconView as _0x2aaae0,View as _0x1e0b3b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1e0b3b{constructor(_0xd2455a){super(_0xd2455a);const t=_0xd2455a['t'];this['set']('errorType',null);const _0x3765cd=new _0x3ee0a1(_0xd2455a);_0x3765cd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3765cd['withText']=!0x0,_0x3765cd['class']='ck-button-action',_0x3765cd['on']('execute',()=>{this['fire']('retry');}),_0x3765cd['bind']('isVisible')['to'](this,'errorType',_0x4bffbd=>'NotFound'!==_0x4bffbd);const _0x561611=new _0x2aaae0();_0x561611['content']=_0x12f4bb,_0x561611['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1a3553=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':[_0x561611,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1a3553['to']('errorType',_0xd80fdf=>t('NotFound'!==_0xd80fdf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3765cd]},{'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 _0x58b932,View as _0x1f73f9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1f73f9{constructor(_0x539323){super(_0x539323);const t=_0x539323['t'],_0x414190=this['bindTemplate'],_0x564e86=new _0x58b932();_0x564e86['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':[_0x564e86,{'text':_0x414190['to']('imageUploadProgress',_0x346f43=>t('Loading\x20image...')+'\x20('+(_0x346f43||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
|
+
function _0x16fc(){const _0x110289=['cancel','apply','setTemplate','clear','ck-uploadcare-form','fire','50964yfSIQJ','344264UANCbX','_errorView','observe','addEventListener','ck-reset_all-excluded','add','addMany','310LKxrbr','_addUploadcareImageEditorListeners','status','_waitForImageEditorComponent','uc-cloud-image-editor','uploading','_items','createCollection','_setView','disconnect','_loadingView','ready','cdnUrl','length','_focusableView','target','filter','getFocusableElement','change:status','5118nNOkay','focus','once','retry','querySelector','set','div','23kxokSD','_editingView','error','detail','addedNodes','toLowerCase','696111UclJGs','nodeName','15OemgvO','_addErrorViewListeners','150561GGLGbd','1179868zACdxa','element','1753794ghtVtZ','render'];_0x16fc=function(){return _0x110289;};return _0x16fc();}const _0x130ecd=_0x5da8;(function(_0x28c840,_0x8dc575){const _0x754d65=_0x5da8,_0x4de0bc=_0x28c840();while(!![]){try{const _0x1adf92=-parseInt(_0x754d65(0x1c4))/0x1*(-parseInt(_0x754d65(0x1bd))/0x2)+-parseInt(_0x754d65(0x1ca))/0x3+-parseInt(_0x754d65(0x1cf))/0x4+-parseInt(_0x754d65(0x1cc))/0x5*(parseInt(_0x754d65(0x1d9))/0x6)+parseInt(_0x754d65(0x1d1))/0x7+parseInt(_0x754d65(0x1da))/0x8+-parseInt(_0x754d65(0x1ce))/0x9*(-parseInt(_0x754d65(0x1aa))/0xa);if(_0x1adf92===_0x8dc575)break;else _0x4de0bc['push'](_0x4de0bc['shift']());}catch(_0x3b93aa){_0x4de0bc['push'](_0x4de0bc['shift']());}}}(_0x16fc,0x4dc51));import{View as _0x3f4625}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x35f7b7}from'./uploadcareimageeditformloadingview.js';function _0x5da8(_0x40c276,_0x52d1ef){const _0x16fc1f=_0x16fc();return _0x5da8=function(_0x5da8cc,_0xad5fec){_0x5da8cc=_0x5da8cc-0x1a8;let _0x159547=_0x16fc1f[_0x5da8cc];return _0x159547;},_0x5da8(_0x40c276,_0x52d1ef);}import{UploadcareImageEditFormErrorView as _0x876281}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xd19c51}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1c28c2}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1c28c2{[_0x130ecd(0x1b0)];[_0x130ecd(0x1b4)];[_0x130ecd(0x1db)];[_0x130ecd(0x1c5)];[_0x130ecd(0x1b8)];constructor(_0x587806,_0x453845,_0x492752){const _0x1d32b0=_0x130ecd;super(_0x587806),this[_0x1d32b0(0x1b0)]=this[_0x1d32b0(0x1b1)](),this[_0x1d32b0(0x1b4)]=new _0x35f7b7(_0x587806),this[_0x1d32b0(0x1db)]=new _0x876281(_0x587806),this[_0x1d32b0(0x1c5)]=new _0xd19c51(_0x587806,_0x492752),this[_0x1d32b0(0x1b8)]=new _0x3f4625(_0x587806),this[_0x1d32b0(0x1b8)][_0x1d32b0(0x1d5)](this[_0x1d32b0(0x1bb)]()),this[_0x1d32b0(0x1c2)](_0x1d32b0(0x1ac),_0x453845),this[_0x1d32b0(0x1d5)]({'tag':_0x1d32b0(0x1c3),'attributes':{'class':['ck',_0x1d32b0(0x1de),_0x1d32b0(0x1d7)],'tabindex':'-1'},'children':this[_0x1d32b0(0x1b0)]}),this[_0x1d32b0(0x1b2)](),this[_0x1d32b0(0x1bf)](_0x1d32b0(0x1d2),()=>{const _0x2b244f=_0x1d32b0;this[_0x2b244f(0x1ad)](this[_0x2b244f(0x1d0)],_0x553837=>{const _0xab3036=_0x2b244f;this[_0xab3036(0x1ab)](_0x553837);});}),this['on'](_0x1d32b0(0x1bc),()=>{const _0x67e86c=_0x1d32b0;this[_0x67e86c(0x1b2)]();}),this[_0x1d32b0(0x1cd)]();}[_0x130ecd(0x1be)](){const _0x5bdbcc=_0x130ecd;this[_0x5bdbcc(0x1d0)][_0x5bdbcc(0x1be)]();}[_0x130ecd(0x1b2)](){const _0x305d3e=_0x130ecd;switch(this[_0x305d3e(0x1b0)][_0x305d3e(0x1d6)](),this[_0x305d3e(0x1ac)]){case _0x305d3e(0x1af):this[_0x305d3e(0x1b0)][_0x305d3e(0x1a8)](this[_0x305d3e(0x1b4)]);break;case _0x305d3e(0x1c6):this[_0x305d3e(0x1b0)][_0x305d3e(0x1a8)](this[_0x305d3e(0x1db)]);break;case _0x305d3e(0x1b5):this[_0x305d3e(0x1b0)][_0x305d3e(0x1a9)]([this[_0x305d3e(0x1c5)],this[_0x305d3e(0x1b8)]]);}}[_0x130ecd(0x1ad)](_0x1f3968,_0x169ec8){const _0x2cce5a=_0x130ecd,_0x3e3a8a=_0x2cce5a(0x1ae),_0x207555=_0x1f3968[_0x2cce5a(0x1c1)](_0x3e3a8a);if(_0x207555)return _0x169ec8(_0x207555);const _0x55c697=new MutationObserver(_0x18c9a2=>{const _0x528c72=_0x2cce5a,_0x3d2536=_0x18c9a2[_0x528c72(0x1ba)](_0x251dc5=>_0x251dc5[_0x528c72(0x1b9)]===_0x1f3968&&_0x251dc5[_0x528c72(0x1c8)][_0x528c72(0x1b7)]>0x0&&_0x251dc5[_0x528c72(0x1c8)][0x0][_0x528c72(0x1cb)][_0x528c72(0x1c9)]()===_0x3e3a8a);_0x3d2536[_0x528c72(0x1b7)]&&(_0x55c697[_0x528c72(0x1b3)](),_0x169ec8(_0x3d2536[0x0][_0x528c72(0x1c8)][0x0]));});_0x55c697[_0x2cce5a(0x1dc)](_0x1f3968,{'childList':!0x0,'subtree':!0x0});}[_0x130ecd(0x1ab)](_0x53884c){const _0x46ab56=_0x130ecd;_0x53884c[_0x46ab56(0x1dd)](_0x46ab56(0x1d4),_0x2ec1e1=>{const _0x5c5e45=_0x46ab56;this[_0x5c5e45(0x1d8)](_0x5c5e45(0x1d4),{'imageSrc':_0x2ec1e1[_0x5c5e45(0x1c7)][_0x5c5e45(0x1b6)]});}),_0x53884c[_0x46ab56(0x1dd)](_0x46ab56(0x1d3),()=>{const _0xf831ec=_0x46ab56;this[_0xf831ec(0x1d8)](_0xf831ec(0x1d3));});}[_0x130ecd(0x1cd)](){const _0x5d173f=_0x130ecd;this[_0x5d173f(0x1db)]['on'](_0x5d173f(0x1c0),()=>{const _0x22205a=_0x5d173f;this[_0x22205a(0x1d8)](_0x22205a(0x1c0));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bfe70=_0x2eed;(function(_0x4cf5af,_0x4f0d0b){const _0x48b3f0=_0x2eed,_0x3f302a=_0x4cf5af();while(!![]){try{const _0x521cbe=parseInt(_0x48b3f0(0x189))/0x1+parseInt(_0x48b3f0(0x192))/0x2+-parseInt(_0x48b3f0(0x18e))/0x3*(-parseInt(_0x48b3f0(0x185))/0x4)+-parseInt(_0x48b3f0(0x190))/0x5+parseInt(_0x48b3f0(0x19a))/0x6+parseInt(_0x48b3f0(0x17f))/0x7+parseInt(_0x48b3f0(0x199))/0x8*(-parseInt(_0x48b3f0(0x180))/0x9);if(_0x521cbe===_0x4f0d0b)break;else _0x3f302a['push'](_0x3f302a['shift']());}catch(_0x440f20){_0x3f302a['push'](_0x3f302a['shift']());}}}(_0x3b2a,0xf164e));import{Command as _0x1d25ef}from'ckeditor5/src/core.js';import{Dialog as _0x2f5a33}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x26a99f}from'./ui/uploadcareimageeditcontroller.js';function _0x2eed(_0x534ed1,_0x1777a5){const _0x3b2a44=_0x3b2a();return _0x2eed=function(_0x2eed19,_0x156df9){_0x2eed19=_0x2eed19-0x17d;let _0x1a49aa=_0x3b2a44[_0x2eed19];return _0x1a49aa;},_0x2eed(_0x534ed1,_0x1777a5);}function _0x3b2a(){const _0x56ce15=['imageEditController','plugins','8882125oogxya','387EDQMqd','editor','_isEditable','bind','unbind','7651012kuGimq','set','getSelectedElement','document','1162322ZVYjEV','imageInline','selection','isEnabled','element','3SZpJni','get','5612870wJxheq','refresh','2148236cWUyxB','imageBlock','config','isActive','execute','uploadcare.allowExternalImagesEditing','requires','721264hgFXAZ','3420300Exyzla','model'];_0x3b2a=function(){return _0x56ce15;};return _0x3b2a();}import{createEditabilityChecker as _0x49f0fc}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1d25ef{[_0x1bfe70(0x17d)];static get[_0x1bfe70(0x198)](){return[_0x2f5a33];}[_0x1bfe70(0x182)];constructor(_0xdba725){const _0x3f03a2=_0x1bfe70;super(_0xdba725),this[_0x3f03a2(0x17d)]=void 0x0,this[_0x3f03a2(0x182)]=_0x49f0fc(_0xdba725[_0x3f03a2(0x194)][_0x3f03a2(0x18f)](_0x3f03a2(0x197))||[]),this[_0x3f03a2(0x186)]({'isActive':!0x1});}[_0x1bfe70(0x191)](){const _0x638fa8=_0x1bfe70,_0x2248e5=this[_0x638fa8(0x181)][_0x638fa8(0x19b)][_0x638fa8(0x188)][_0x638fa8(0x18b)][_0x638fa8(0x187)]();this[_0x638fa8(0x18c)]=this[_0x638fa8(0x182)](_0x2248e5);}[_0x1bfe70(0x196)](){const _0x23ff44=_0x1bfe70;this[_0x23ff44(0x17d)]&&(this[_0x23ff44(0x184)](_0x23ff44(0x195)),this[_0x23ff44(0x17d)]=void 0x0);const _0x28eae5=this[_0x23ff44(0x181)][_0x23ff44(0x19b)][_0x23ff44(0x188)][_0x23ff44(0x18b)][_0x23ff44(0x187)]();_0x28eae5&&(_0x28eae5['is'](_0x23ff44(0x18d),_0x23ff44(0x193))||_0x28eae5['is'](_0x23ff44(0x18d),_0x23ff44(0x18a)))&&(this[_0x23ff44(0x17d)]=new _0x26a99f(this[_0x23ff44(0x181)],this[_0x23ff44(0x181)][_0x23ff44(0x17e)][_0x23ff44(0x18f)](_0x2f5a33),_0x28eae5),this[_0x23ff44(0x183)](_0x23ff44(0x195))['to'](this[_0x23ff44(0x17d)],_0x23ff44(0x195)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x486290=_0x41c7;function _0x41c7(_0x27b561,_0x5649b0){const _0x5ecce9=_0x5ecc();return _0x41c7=function(_0x41c76b,_0x42bb69){_0x41c76b=_0x41c76b-0x1a0;let _0x5a5974=_0x5ecce9[_0x41c76b];return _0x5a5974;},_0x41c7(_0x27b561,_0x5649b0);}(function(_0x22380b,_0x529088){const _0x5e37c4=_0x41c7,_0x5b46c1=_0x22380b();while(!![]){try{const _0x31890c=-parseInt(_0x5e37c4(0x1ac))/0x1+parseInt(_0x5e37c4(0x1a3))/0x2*(-parseInt(_0x5e37c4(0x1a1))/0x3)+-parseInt(_0x5e37c4(0x1aa))/0x4+parseInt(_0x5e37c4(0x1ae))/0x5*(parseInt(_0x5e37c4(0x1ab))/0x6)+parseInt(_0x5e37c4(0x1b0))/0x7*(parseInt(_0x5e37c4(0x1a7))/0x8)+-parseInt(_0x5e37c4(0x1af))/0x9*(-parseInt(_0x5e37c4(0x1a4))/0xa)+-parseInt(_0x5e37c4(0x1a2))/0xb*(-parseInt(_0x5e37c4(0x1b1))/0xc);if(_0x31890c===_0x529088)break;else _0x5b46c1['push'](_0x5b46c1['shift']());}catch(_0x3d6d23){_0x5b46c1['push'](_0x5b46c1['shift']());}}}(_0x5ecc,0xeaacc));import{Plugin as _0x4cebee}from'ckeditor5/src/core.js';import{Notification as _0x5c6e22}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4503dd}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x7dee44}from'./uploadcareimagereplacecommand.js';function _0x5ecc(){const _0x4dd25f=['273320iMgPVx','uploadcareImageEdit','init','8OsHjtT','requires','UploadcareImageEditEditing','6895904MngXRV','194574spdbSN','385939VEvVoq','commands','275RbBHQg','531QcVugU','319697JCaJdf','18408444EYDWqU','add','uploadcareImageReplace','ImageEditing','isOfficialPlugin','ImageUtils','isPremiumPlugin','pluginName','6cVCUBP','11OrUEPJ','1904748oitSsx'];_0x5ecc=function(){return _0x4dd25f;};return _0x5ecc();}import{UploadcareEditing as _0x3c16b5}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4cebee{static get[_0x486290(0x1a0)](){const _0x5db18c=_0x486290;return _0x5db18c(0x1a9);}static get[_0x486290(0x1a8)](){const _0x3dc3e4=_0x486290;return[_0x3c16b5,_0x5c6e22,_0x3dc3e4(0x1b6),_0x3dc3e4(0x1b4)];}static get[_0x486290(0x1b5)](){return!0x0;}static get[_0x486290(0x1b7)](){return!0x0;}[_0x486290(0x1a6)](){const _0x564f81=_0x486290,{editor:_0x486a4e}=this;_0x486a4e[_0x564f81(0x1ad)][_0x564f81(0x1b2)](_0x564f81(0x1a5),new _0x4503dd(_0x486a4e)),_0x486a4e[_0x564f81(0x1ad)][_0x564f81(0x1b2)](_0x564f81(0x1b3),new _0x7dee44(_0x486a4e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2b4dcf}from'ckeditor5/src/core.js';import{ButtonView as _0x505bc4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x486f44}from'ckeditor5/src/icons.js';import{createElement as _0x40a04c}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 _0x2b4dcf{['_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 _0x39812d=this['editor'];_0x39812d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5315d5=>{const _0x2433fc=_0x39812d['commands']['get']('uploadcareImageEdit'),_0x3a4a7b=new _0x505bc4(_0x5315d5),t=_0x5315d5['t'];return _0x3a4a7b['set']({'icon':_0x486f44,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a4a7b['bind']('isEnabled')['to'](_0x2433fc),_0x3a4a7b['bind']('isOn')['to'](_0x2433fc,'isActive'),this['listenTo'](_0x3a4a7b,'execute',()=>{_0x39812d['execute']('uploadcareImageEdit'),_0x39812d['editing']['view']['focus']();}),_0x3a4a7b;}),this['_initConfig']();}['_initConfig'](){const _0x226000=_0x40a04c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x226000),this['listenTo'](this['editor'],'destroy',()=>{_0x226000['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5c79(_0x417dfc,_0x94d026){const _0x4829f5=_0x4829();return _0x5c79=function(_0x5c7918,_0x471a73){_0x5c7918=_0x5c7918-0x190;let _0x43ef42=_0x4829f5[_0x5c7918];return _0x43ef42;},_0x5c79(_0x417dfc,_0x94d026);}const _0x4916a8=_0x5c79;(function(_0x2e65c5,_0x542b07){const _0x3422fd=_0x5c79,_0x508c52=_0x2e65c5();while(!![]){try{const _0x13c664=parseInt(_0x3422fd(0x193))/0x1+parseInt(_0x3422fd(0x190))/0x2*(-parseInt(_0x3422fd(0x194))/0x3)+-parseInt(_0x3422fd(0x1a8))/0x4*(parseInt(_0x3422fd(0x1a7))/0x5)+parseInt(_0x3422fd(0x197))/0x6+-parseInt(_0x3422fd(0x19d))/0x7+parseInt(_0x3422fd(0x1a3))/0x8*(-parseInt(_0x3422fd(0x191))/0x9)+parseInt(_0x3422fd(0x19b))/0xa;if(_0x13c664===_0x542b07)break;else _0x508c52['push'](_0x508c52['shift']());}catch(_0x3dd8ed){_0x508c52['push'](_0x508c52['shift']());}}}(_0x4829,0xaf570));import{Command as _0x351ed0}from'ckeditor5/src/core.js';function _0x4829(){const _0x170776=['removeAttribute','27949770pvPNMv','imageInline','8153138kAHWoA','imageBlock','sizes','document','srcset','setAttributes','12968jwLrwP','selection','model','isEnabled','10XFCasy','1613660PKSEzf','change','2hccagI','5823PvZrwz','editor','170026QhZFvV','351489SBxIQW','getSelectedElement','element','5344218ROpzNz','refresh','execute'];_0x4829=function(){return _0x170776;};return _0x4829();}export class UploadcareImageReplaceCommand extends _0x351ed0{[_0x4916a8(0x198)](){const _0x29afe5=_0x4916a8,_0x5c64b9=this[_0x29afe5(0x192)][_0x29afe5(0x1a5)][_0x29afe5(0x1a0)][_0x29afe5(0x1a4)][_0x29afe5(0x195)]();this[_0x29afe5(0x1a6)]=Boolean(_0x5c64b9&&(_0x5c64b9['is'](_0x29afe5(0x196),_0x29afe5(0x19e))||_0x5c64b9['is'](_0x29afe5(0x196),_0x29afe5(0x19c))));}[_0x4916a8(0x199)](_0x2e942e){const _0x11fa11=_0x4916a8,_0x2169a0=this[_0x11fa11(0x192)][_0x11fa11(0x1a5)][_0x11fa11(0x1a0)][_0x11fa11(0x1a4)][_0x11fa11(0x195)]();this[_0x11fa11(0x192)][_0x11fa11(0x1a5)][_0x11fa11(0x1a9)](_0x5aa0f9=>{const _0x3ce7f8=_0x11fa11;_0x5aa0f9[_0x3ce7f8(0x1a2)](_0x2e942e,_0x2169a0),_0x5aa0f9[_0x3ce7f8(0x19a)](_0x3ce7f8(0x1a1),_0x2169a0),_0x5aa0f9[_0x3ce7f8(0x19a)](_0x3ce7f8(0x19f),_0x2169a0);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x34f743=_0x3d4f;(function(_0x40ca6d,_0x5bd7ea){var _0x1a9ac9=_0x3d4f,_0xe48c31=_0x40ca6d();while(!![]){try{var _0x59df7a=-parseInt(_0x1a9ac9(0x93))/0x1+parseInt(_0x1a9ac9(0x8d))/0x2+-parseInt(_0x1a9ac9(0x95))/0x3*(parseInt(_0x1a9ac9(0x92))/0x4)+-parseInt(_0x1a9ac9(0x87))/0x5+parseInt(_0x1a9ac9(0x94))/0x6*(-parseInt(_0x1a9ac9(0x8b))/0x7)+parseInt(_0x1a9ac9(0x90))/0x8*(-parseInt(_0x1a9ac9(0x8e))/0x9)+parseInt(_0x1a9ac9(0x8a))/0xa;if(_0x59df7a===_0x5bd7ea)break;else _0xe48c31['push'](_0xe48c31['shift']());}catch(_0x4e4e39){_0xe48c31['push'](_0xe48c31['shift']());}}}(_0x2a11,0x30b5f));function _0x3d4f(_0x289485,_0x48caba){var _0x2a119b=_0x2a11();return _0x3d4f=function(_0x3d4fb4,_0x179a50){_0x3d4fb4=_0x3d4fb4-0x87;var _0x320410=_0x2a119b[_0x3d4fb4];return _0x320410;},_0x3d4f(_0x289485,_0x48caba);}import{Plugin as _0x932a5c}from'ckeditor5/src/core.js';function _0x2a11(){var _0x10dbf1=['45FHMDiI','pluginName','339256bBibEh','requires','4516GuFxjt','147092nKTjyv','6852qEMVur','531XCzcNE','1395520UAYcQj','isOfficialPlugin','isPremiumPlugin','9008200NzrIPB','469GDDGur','UploadcareImageEdit','426554IWmCmW'];_0x2a11=function(){return _0x10dbf1;};return _0x2a11();}import{UploadcareImageEditEditing as _0x28c0a9}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x8066ac}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x932a5c{static get[_0x34f743(0x8f)](){var _0x55c802=_0x34f743;return _0x55c802(0x8c);}static get[_0x34f743(0x91)](){return[_0x28c0a9,_0x8066ac];}static get[_0x34f743(0x88)](){return!0x0;}static get[_0x34f743(0x89)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x457d9e=_0x598c;(function(_0x4f4bcc,_0x124648){const _0x20c2d2=_0x598c,_0x295e36=_0x4f4bcc();while(!![]){try{const _0x2d73b0=-parseInt(_0x20c2d2(0x15e))/0x1*(-parseInt(_0x20c2d2(0x154))/0x2)+-parseInt(_0x20c2d2(0x153))/0x3*(-parseInt(_0x20c2d2(0x13e))/0x4)+-parseInt(_0x20c2d2(0x15a))/0x5+-parseInt(_0x20c2d2(0x16f))/0x6+-parseInt(_0x20c2d2(0x164))/0x7*(-parseInt(_0x20c2d2(0x16d))/0x8)+-parseInt(_0x20c2d2(0x187))/0x9*(parseInt(_0x20c2d2(0x144))/0xa)+-parseInt(_0x20c2d2(0x139))/0xb*(-parseInt(_0x20c2d2(0x146))/0xc);if(_0x2d73b0===_0x124648)break;else _0x295e36['push'](_0x295e36['shift']());}catch(_0x1d0e9f){_0x295e36['push'](_0x295e36['shift']());}}}(_0x3cd0,0x59943));import{Plugin as _0x4b07bf}from'ckeditor5/src/core.js';import{IconDropbox as _0x13e542,IconFacebook as _0x39bd63,IconGoogleDrive as _0x3c6da3,IconGooglePhotos as _0x285dc3,IconUploadcareImageUpload as _0x34edaf,IconUploadcareLink as _0x37b08f,IconOneDrive as _0x54f2ff}from'ckeditor5/src/icons.js';import{ButtonView as _0x1634c5,MenuBarMenuListItemButtonView as _0x40240b}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x541893}from'./uploadcareconfig.js';import{getTranslation as _0x586e1e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x3cd0(){const _0x3dd249=['label','_createDropdownButtons','destroy','domainLimit','licenseKey','map','usageLimit','init','editor','uploadcareLicenseKeyDomainLimit','GDrive','has','expired','type','plugins','uploadcareLicenseKeyNotAllowed','_showLicenseError','_createMenuBarButtons','bind','uploadcareLicenseKeyInvalid','isOfficialPlugin','reduce','uploadcareLicenseKeyTrialLimit','9LzXnWL','UploadcareUI','uploadcareLicenseKeyEvaluationLimit','withText','shortText','11XFCkbt','evaluationLimit','upload','uploadcareLicenseKeyUsageLimit','featureNotAllowed','648HFRfsN','afterInit','OneDrive','registerIntegration','execute','locale','1795550qZJYYL','invalid','10752348dmoBuX','push','uploadcareLicenseKeyExpired','tooltip','text','Replace','_licenseKeyCheckInterval','pluginName','commands','uploadcare.uploader.sourceList','_createButton','uploadcare','Insert','5496GgOEBi','2894UbmgNF','isPremiumPlugin','Facebook','uploadcareLicenseKeyValid','_getIntegrationKey','assetManager','3331530ieiLGM','config','GPhotos','isImageSelected','41ZZPKRf','_createToolbarButton','isEnabled','ImageInsertUI','URL','trialLimit','852943RVDkEO','icon','Dropbox','Uploadcare','entries','Local','get','forEach','url','24iNkGcE','_normalizeConfigSourceList','2429466mevdPP'];_0x3cd0=function(){return _0x3dd249;};return _0x3cd0();}import'../theme/uploadcare-theme.css';function _0x598c(_0x4cb1ad,_0xb70380){const _0x3cd048=_0x3cd0();return _0x598c=function(_0x598ca9,_0x323f27){_0x598ca9=_0x598ca9-0x136;let _0x2271f1=_0x3cd048[_0x598ca9];return _0x2271f1;},_0x598c(_0x4cb1ad,_0xb70380);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x4b07bf{[_0x457d9e(0x174)];[_0x457d9e(0x14c)];static get[_0x457d9e(0x14d)](){const _0x583268=_0x457d9e;return _0x583268(0x188);}static get[_0x457d9e(0x184)](){return!0x0;}static get[_0x457d9e(0x155)](){return!0x0;}[_0x457d9e(0x177)](){const _0x457967=_0x457d9e;this[_0x457967(0x174)]=this[_0x457967(0x178)][_0x457967(0x15b)][_0x457967(0x16a)](_0x457967(0x174));const _0x80d751=this[_0x457967(0x178)];this[_0x457967(0x14c)]=setInterval(()=>{const _0x576d0e=_0x457967;let _0x5005aa;for(const _0x2abdb5 in _0x80d751){const _0x35fabb=_0x2abdb5,_0x4b89d8=_0x80d751[_0x35fabb];if(_0x576d0e(0x157)==_0x4b89d8||_0x576d0e(0x183)==_0x4b89d8||_0x576d0e(0x148)==_0x4b89d8||_0x576d0e(0x179)==_0x4b89d8||_0x576d0e(0x17f)==_0x4b89d8||_0x576d0e(0x136)==_0x4b89d8||_0x576d0e(0x186)==_0x4b89d8||_0x576d0e(0x13c)==_0x4b89d8){delete _0x80d751[_0x35fabb],_0x5005aa=_0x4b89d8,clearInterval(this[_0x576d0e(0x14c)]),this[_0x576d0e(0x14c)]=void 0x0;break;}}_0x576d0e(0x183)==_0x5005aa&&_0x80d751[_0x576d0e(0x180)](_0x576d0e(0x145)),_0x576d0e(0x148)==_0x5005aa&&_0x80d751[_0x576d0e(0x180)](_0x576d0e(0x17c)),_0x576d0e(0x179)==_0x5005aa&&_0x80d751[_0x576d0e(0x180)](_0x576d0e(0x173)),_0x576d0e(0x17f)==_0x5005aa&&_0x80d751[_0x576d0e(0x180)](_0x576d0e(0x13d),_0x576d0e(0x167)),_0x576d0e(0x136)==_0x5005aa&&_0x80d751[_0x576d0e(0x180)](_0x576d0e(0x13a)),_0x576d0e(0x186)==_0x5005aa&&_0x80d751[_0x576d0e(0x180)](_0x576d0e(0x163)),_0x576d0e(0x13c)==_0x5005aa&&_0x80d751[_0x576d0e(0x180)](_0x576d0e(0x176));},0x3e8);}[_0x457d9e(0x13f)](){const _0x5bcfb9=_0x457d9e,{editor:_0x4606f0}=this,_0x4083c8=_0x4606f0[_0x5bcfb9(0x14e)][_0x5bcfb9(0x16a)](_0x5bcfb9(0x151));if(!_0x4083c8)return;const _0x29976c=this[_0x5bcfb9(0x16e)](_0x4606f0[_0x5bcfb9(0x15b)][_0x5bcfb9(0x16a)](_0x5bcfb9(0x14f)))[_0x5bcfb9(0x185)]((_0x5ec0de,_0x1849fd)=>{const _0x546ff9=_0x5bcfb9,_0x22cc0f=this[_0x546ff9(0x158)](_0x1849fd[_0x546ff9(0x17d)]);return _0x5ec0de[_0x22cc0f]||(_0x5ec0de[_0x22cc0f]=[]),_0x5ec0de[_0x22cc0f][_0x546ff9(0x147)](_0x1849fd),_0x5ec0de;},{});_0x4606f0[_0x5bcfb9(0x17e)][_0x5bcfb9(0x17b)](_0x5bcfb9(0x161))&&_0x4606f0[_0x5bcfb9(0x14e)][_0x5bcfb9(0x16a)](_0x5bcfb9(0x151))&&Object[_0x5bcfb9(0x168)](_0x29976c)[_0x5bcfb9(0x16b)](([_0x235bd4,_0x4f7a63])=>{const _0x3bf2d6=_0x5bcfb9;_0x4606f0[_0x3bf2d6(0x17e)][_0x3bf2d6(0x16a)](_0x3bf2d6(0x161))[_0x3bf2d6(0x141)]({'name':_0x235bd4,'observable':()=>_0x4083c8,'buttonViewCreator':()=>this[_0x3bf2d6(0x15f)](_0x4f7a63),'formViewCreator':()=>this[_0x3bf2d6(0x171)](_0x4f7a63),'menuBarButtonViewCreator':()=>this[_0x3bf2d6(0x181)](_0x4f7a63),'override':_0x3bf2d6(0x159)!==_0x235bd4});});}[_0x457d9e(0x172)](){const _0x562012=_0x457d9e;super[_0x562012(0x172)](),this[_0x562012(0x14c)]&&clearInterval(this[_0x562012(0x14c)]);}[_0x457d9e(0x16e)](_0x5297c8){const _0xf5bb27=_0x457d9e,{locale:_0x49a097}=this[_0xf5bb27(0x178)];return _0x5297c8[_0xf5bb27(0x175)](_0x106036=>{const _0x168311=_0xf5bb27,_0x315609=_0x586e1e(_0x49a097,_0x106036,_0x168311(0x152));switch(_0x106036){case _0x541893[_0x168311(0x169)]:return{'icon':_0x34edaf,'type':_0x541893[_0x168311(0x169)],..._0x315609};case _0x541893[_0x168311(0x162)]:return{'icon':_0x37b08f,'type':_0x541893[_0x168311(0x162)],..._0x315609};case _0x541893[_0x168311(0x166)]:return{'icon':_0x13e542,'type':_0x541893[_0x168311(0x166)],..._0x315609};case _0x541893[_0x168311(0x156)]:return{'icon':_0x39bd63,'type':_0x541893[_0x168311(0x156)],..._0x315609};case _0x541893[_0x168311(0x17a)]:return{'icon':_0x3c6da3,'type':_0x541893[_0x168311(0x17a)],..._0x315609};case _0x541893[_0x168311(0x15c)]:return{'icon':_0x285dc3,'type':_0x541893[_0x168311(0x15c)],..._0x315609};case _0x541893[_0x168311(0x140)]:return{'icon':_0x54f2ff,'type':_0x541893[_0x168311(0x140)],..._0x315609};}});}[_0x457d9e(0x158)](_0x42ad0d){const _0x1c92ca=_0x457d9e;switch(_0x42ad0d){case _0x541893[_0x1c92ca(0x169)]:return _0x1c92ca(0x13b);case _0x541893[_0x1c92ca(0x162)]:return _0x1c92ca(0x16c);default:return _0x1c92ca(0x159);}}[_0x457d9e(0x150)](_0x1e528b,_0x6acc24){const _0x51123b=_0x457d9e,_0x327747=this[_0x51123b(0x178)],_0x552f59=new _0x1e528b(_0x327747[_0x51123b(0x143)]),_0x135c76=_0x327747[_0x51123b(0x14e)][_0x51123b(0x16a)](_0x51123b(0x151));return _0x552f59[_0x51123b(0x182)](_0x51123b(0x160))['to'](_0x135c76),_0x552f59['on'](_0x51123b(0x142),()=>{const _0x3d2b28=_0x51123b;_0x135c76[_0x3d2b28(0x142)](_0x6acc24);}),_0x552f59;}[_0x457d9e(0x15f)](_0x2c8cea){const _0x511433=_0x457d9e,{locale:_0x158dff}=this[_0x511433(0x178)],_0x5a23a0=this[_0x511433(0x178)][_0x511433(0x17e)][_0x511433(0x16a)](_0x511433(0x161)),_0x49159d=_0x2c8cea[0x0],_0x2b39b6=this[_0x511433(0x150)](_0x1634c5,_0x49159d[_0x511433(0x17d)]);return _0x2b39b6[_0x511433(0x165)]=_0x49159d[_0x511433(0x165)],_0x2b39b6[_0x511433(0x182)](_0x511433(0x170))['to'](_0x5a23a0,_0x511433(0x15d),_0x44dab4=>_0x586e1e(_0x158dff,_0x49159d[_0x511433(0x17d)],_0x44dab4?_0x511433(0x14b):_0x511433(0x152))[_0x511433(0x14a)]),_0x2b39b6[_0x511433(0x149)]=!0x0,_0x2b39b6;}[_0x457d9e(0x171)](_0x420089){const _0x1e4e46=_0x457d9e,{locale:_0x4e7c04}=this[_0x1e4e46(0x178)],_0x44df12=this[_0x1e4e46(0x178)][_0x1e4e46(0x17e)][_0x1e4e46(0x16a)](_0x1e4e46(0x161));return _0x420089[_0x1e4e46(0x175)](_0x41026c=>{const _0x392aba=_0x1e4e46,_0xf72c44=this[_0x392aba(0x150)](_0x1634c5,_0x41026c[_0x392aba(0x17d)]);return _0xf72c44[_0x392aba(0x137)]=!0x0,_0xf72c44[_0x392aba(0x165)]=_0x41026c[_0x392aba(0x165)],_0xf72c44[_0x392aba(0x182)](_0x392aba(0x170))['to'](_0x44df12,_0x392aba(0x15d),_0xd27dad=>_0x586e1e(_0x4e7c04,_0x41026c[_0x392aba(0x17d)],_0xd27dad?_0x392aba(0x14b):_0x392aba(0x152))[_0x392aba(0x14a)]),_0xf72c44;});}[_0x457d9e(0x181)](_0x57c8ef){const _0x36d84c=_0x457d9e;return _0x57c8ef[_0x36d84c(0x175)](_0x52052e=>{const _0x5541cd=_0x36d84c,_0x528fae=this[_0x5541cd(0x150)](_0x40240b,_0x52052e[_0x5541cd(0x17d)]);return _0x528fae[_0x5541cd(0x165)]=_0x52052e[_0x5541cd(0x165)],_0x528fae[_0x5541cd(0x170)]=_0x52052e[_0x5541cd(0x138)],_0x528fae;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x34302a}from'ckeditor5/src/core.js';import{FileRepository as _0x550ebd}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1e013a}from'./uploadcareediting.js';import{UploadUtils as _0x2a7a55}from'./utils/uploadutils.js';import{getImageUrls as _0x23fdac}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x34302a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x550ebd,_0x1e013a];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3165df=this['editor'];if(!!!_0x3165df['config']['get']('uploadcare'))return;_0x3165df['plugins']['get'](_0x550ebd)['createUploadAdapter']=_0x2e7cfd=>new k(_0x2e7cfd,_0x3165df),_0x3165df['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x9e7a9b,{imageElement:_0x44bc8c,data:_0x3dde9e})=>{_0x3165df['model']['change'](_0x16595c=>{_0x16595c['setAttribute']('uploadcareImageId',_0x3dde9e['uploadcareImageId'],_0x44bc8c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x531848,_0x4152a6){this['loader']=_0x531848,this['editor']=_0x4152a6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x28dc48=await this['loader']['file'];return _0x2a7a55['upload']({'file':_0x28dc48,'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':_0x4a251f=>{_0x4a251f&&_0x4a251f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4a251f['value']);}})['then'](async _0x312ba7=>{const {imageFallbackUrl:_0x4578f4,imageSources:_0x13be48}=_0x23fdac(_0x312ba7['cdnUrl'],_0x312ba7['imageInfo']['width']);return{'uploadcareImageId':_0x312ba7['uuid'],'default':_0x4578f4,'sources':_0x13be48};})['catch'](()=>{const _0x3be83d=t('Cannot\x20upload\x20file:')+('\x20'+_0x28dc48['name']+'.');return Promise['reject'](_0x3be83d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x665995}from'../uploadcareconfig.js';export function getTranslation(_0x3f1e51,_0xfcfe97,_0x4f0096){const t=_0x3f1e51['t'],_0x4f9494=_0x3f1e51['t'];switch(_0xfcfe97){case _0x665995['Local']:return{'text':_0x4f9494('Insert'===_0x4f0096?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4f9494('From\x20computer')};case _0x665995['URL']:return{'text':'Insert'===_0x4f0096?_0x4f9494('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4f9494('Via\x20URL')};case _0x665995['Dropbox']:return{'text':t('Insert'===_0x4f0096?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x665995['Facebook']:return{'text':t('Insert'===_0x4f0096?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x665995['GDrive']:return{'text':t('Insert'===_0x4f0096?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x665995['GPhotos']:return{'text':t('Insert'===_0x4f0096?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x665995['OneDrive']:return{'text':t('Insert'===_0x4f0096?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xfcfe97;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5b2b78=_0x47ba;(function(_0x27b877,_0x50e137){var _0x58e04f=_0x47ba,_0x54007b=_0x27b877();while(!![]){try{var _0x16ac0c=parseInt(_0x58e04f(0x7d))/0x1*(-parseInt(_0x58e04f(0x80))/0x2)+parseInt(_0x58e04f(0x7c))/0x3+parseInt(_0x58e04f(0x81))/0x4+parseInt(_0x58e04f(0x88))/0x5+-parseInt(_0x58e04f(0x85))/0x6*(-parseInt(_0x58e04f(0x89))/0x7)+-parseInt(_0x58e04f(0x7b))/0x8+parseInt(_0x58e04f(0x8b))/0x9;if(_0x16ac0c===_0x50e137)break;else _0x54007b['push'](_0x54007b['shift']());}catch(_0x5408e8){_0x54007b['push'](_0x54007b['shift']());}}}(_0x22a9,0x1f3fa));function _0x22a9(){var _0x2ca540=['356895qGqIGv','div','903984MeiSOY','306813JJcEKn','6HopcOv','getFocusableElement','focusCycler','3486bJoBdq','89480wmQTCt','forwardCycle','true','fire','30Ktmjwu','bindTemplate','focusTracker','27970DhbHSh','114184HncMJI','createCollection'];_0x22a9=function(){return _0x2ca540;};return _0x22a9();}import{FocusTracker as _0x19d969}from'ckeditor5/src/utils.js';import{View as _0x10d758,FocusCycler as _0x59fa0d}from'ckeditor5/src/ui.js';function _0x47ba(_0x5946f9,_0xd5a994){var _0x22a941=_0x22a9();return _0x47ba=function(_0x47ba7c,_0xe6170c){_0x47ba7c=_0x47ba7c-0x7b;var _0x9d96f8=_0x22a941[_0x47ba7c];return _0x9d96f8;},_0x47ba(_0x5946f9,_0xd5a994);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x10d758{[_0x5b2b78(0x87)];[_0x5b2b78(0x7f)];constructor(_0x127fcb){var _0x55c75d=_0x5b2b78;super(_0x127fcb),this[_0x55c75d(0x87)]=new _0x19d969(),this[_0x55c75d(0x7f)]=new _0x59fa0d({'focusables':this[_0x55c75d(0x8a)](),'focusTracker':this[_0x55c75d(0x87)]});}[_0x5b2b78(0x7e)](){var _0xb5a2c4=_0x5b2b78;return{'tag':_0xb5a2c4(0x8c),'attributes':{'aria-hidden':_0xb5a2c4(0x83),'tabindex':'0'},'on':{'focus':this[_0xb5a2c4(0x86)]['to'](()=>{var _0x5d02bc=_0xb5a2c4;this[_0x5d02bc(0x7f)][_0x5d02bc(0x84)](_0x5d02bc(0x82));})}};}}
|