@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250307.0 → 0.0.0-nightly-20250309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xae0c(_0x5c3ec8,_0x485914){const _0x28e227=_0x28e2();return _0xae0c=function(_0xae0c5,_0x15971f){_0xae0c5=_0xae0c5-0x1c8;let _0x1165d0=_0x28e227[_0xae0c5];return _0x1165d0;},_0xae0c(_0x5c3ec8,_0x485914);}const _0x26853e=_0xae0c;(function(_0x2e7ccb,_0x430bce){const _0x4b0c00=_0xae0c,_0x465e14=_0x2e7ccb();while(!![]){try{const _0x3fdb8a=-parseInt(_0x4b0c00(0x1e9))/0x1+-parseInt(_0x4b0c00(0x21a))/0x2+parseInt(_0x4b0c00(0x1fa))/0x3+parseInt(_0x4b0c00(0x1f0))/0x4*(parseInt(_0x4b0c00(0x1dc))/0x5)+parseInt(_0x4b0c00(0x219))/0x6+parseInt(_0x4b0c00(0x1ef))/0x7*(-parseInt(_0x4b0c00(0x1c9))/0x8)+parseInt(_0x4b0c00(0x1ec))/0x9;if(_0x3fdb8a===_0x430bce)break;else _0x465e14['push'](_0x465e14['shift']());}catch(_0x149be4){_0x465e14['push'](_0x465e14['shift']());}}}(_0x28e2,0x45022));import{Plugin as _0x490e9c}from'ckeditor5/src/core.js';import{Dialog as _0x433b5d}from'ckeditor5/src/ui.js';import{createElement as _0x3aedde,global as _0x1b5e9d,uid as _0x44cc2f}from'ckeditor5/src/utils.js';import _0x1b677d from'./uploadcarecommand.js';function _0x28e2(){const _0x576650=['document','configElement','uploadcare','add','elementToAttribute','data-uc-image-id','map','_initSchema','execute','appendChild','1198595YoegIH','upcast','uploader','init','selection','UploadcareEditing','commands','for','get','locale','querySelector','uploadcareImageReplace','afterInit','390265dzugTR','body','_initConversion','3951720YZcJLO','imageInline','requires','53879RcRtiQ','4QayvTG','extend','remove','ctxElement','downcast','fromCharCode','editor','listenTo','imageBlock','isRegistered','1547403njkjUk','iconHrefResolver','config','uc-upload-ctx-provider','editing','cleanupImage','getSelectedElement','pluginName','uc-config','destroy','closeMax','uploadcareImageId','getAttribute','removeAttribute','_configElement','true','join','_initConfig','#uc-icon-arrow-down','conversion','uploadcare.uploader','_ctxElement','model','once','href','PictureEditing','contentLanguage','render','uploadcare.pubkey','attributeToAttribute','replaceImageSource','834654KhDVCr','243992owfrIn','schema','560pSTKWT','isPremiumPlugin','isOfficialPlugin','\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','input[uploadcare-file-input]','_initCtx','insertImage','view','_initImageProcessingIndicator'];_0x28e2=function(){return _0x576650;};return _0x28e2();}import _0x57d27a from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1aa870}from'./utils/editingutils.js';export default class i extends _0x490e9c{[_0x26853e(0x208)]=null;[_0x26853e(0x20f)]=null;static get[_0x26853e(0x201)](){const _0x520a88=_0x26853e;return _0x520a88(0x1e1);}static get[_0x26853e(0x1ee)](){const _0x51fc1d=_0x26853e;return[_0x51fc1d(0x213),_0x57d27a,_0x433b5d];}static get[_0x26853e(0x1cb)](){return!0x0;}static get[_0x26853e(0x1ca)](){return!0x0;}get[_0x26853e(0x1d3)](){const _0x1ce361=_0x26853e;return this[_0x1ce361(0x208)];}get[_0x26853e(0x1f3)](){const _0x161d8a=_0x26853e;return this[_0x161d8a(0x20f)];}[_0x26853e(0x1df)](){const _0x40aa84=_0x26853e,_0x208432=this[_0x40aa84(0x1f6)];_0x208432[_0x40aa84(0x1e2)][_0x40aa84(0x1d5)](_0x40aa84(0x1d4),new _0x1b677d(_0x208432));}[_0x26853e(0x1e8)](){const _0x39c09b=_0x26853e;this[_0x39c09b(0x1d9)](),this[_0x39c09b(0x1eb)](),this[_0x39c09b(0x20b)](),this[_0x39c09b(0x1ce)](),this[_0x39c09b(0x1d1)](),this[_0x39c09b(0x1f7)](this[_0x39c09b(0x1f6)],_0x39c09b(0x203),()=>{const _0x2ab28c=_0x39c09b;this[_0x2ab28c(0x208)]&&(this[_0x2ab28c(0x208)][_0x2ab28c(0x1f2)](),this[_0x2ab28c(0x208)]=null),this[_0x2ab28c(0x20f)]&&(this[_0x2ab28c(0x20f)][_0x2ab28c(0x1f2)](),this[_0x2ab28c(0x20f)]=null);const _0x302fcc=_0x1b5e9d[_0x2ab28c(0x1d2)][_0x2ab28c(0x1e6)](_0x2ab28c(0x1cd));_0x302fcc&&_0x302fcc[_0x2ab28c(0x1f2)]();}),async function(_0x34a320){const _0x32a4a9=_0x44bbc2([0x5a,0x47,0x66,0x6e,0x35,0x58,0x44,0x68,0x42,0x70,0x41,0x33,0x65,0x37,0x43,0x31,0x50,0x6f,0x53,0x72,0x49,0x38,0x4d,0x39,0x55,0x74,0x64,0x63,0x78,0x6b,0x56,0x30,0x4b,0x77,0x62,0x46,0x36,0x79,0x4a,0x45,0x51,0x4c,0x52,0x4e,0x73,0x7a,0x59,0x71,0x32,0x48,0x34,0x54,0x4f,0x75,0x76,0x67,0x6d,0x57,0x69,0x6a,0x6c,0x61]),_0x5319ca=0x4b2b2f68,_0x36350d=0x4b2c4e18^_0x5319ca,_0x43142e=window[_0x44bbc2([0x44,0x61,0x74,0x65])][_0x44bbc2([0x6e,0x6f,0x77])](),_0x463e4=_0x34a320[_0x44bbc2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e49ea=new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58f833=>{_0x463e4[_0x44bbc2([0x6f,0x6e,0x63,0x65])](_0x44bbc2([0x72,0x65,0x61,0x64,0x79]),_0x58f833);}),_0x50ca78={[_0x44bbc2([0x6b,0x74,0x79])]:_0x44bbc2([0x45,0x43]),[_0x44bbc2([0x75,0x73,0x65])]:_0x44bbc2([0x73,0x69,0x67]),[_0x44bbc2([0x63,0x72,0x76])]:_0x44bbc2([0x50,0x2d,0x32,0x35,0x36]),[_0x44bbc2([0x78])]:_0x44bbc2([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]),[_0x44bbc2([0x79])]:_0x44bbc2([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]),[_0x44bbc2([0x61,0x6c,0x67])]:_0x44bbc2([0x45,0x53,0x32,0x35,0x36])},_0x271c47=_0x463e4[_0x44bbc2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44bbc2([0x67,0x65,0x74])](_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f34d2(){let _0x4b6f1c,_0x3abe17=null,_0x18e218=null;try{if(_0x271c47==_0x44bbc2([0x47,0x50,0x4c]))return _0x44bbc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b6f1c=_0x59b129(),!_0x4b6f1c)return _0x44bbc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b6f1c[_0x44bbc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18e218=_0x377761(_0x4b6f1c[_0x44bbc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b6f1c[_0x44bbc2([0x6a,0x74,0x69])])),await _0x2acde7()?_0x5ae3d5()?_0x2501ee()?_0x44bbc2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a5d3e()?(_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44bbc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3abe17=_0x458398(_0x44bbc2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44bbc2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3abe17=_0x458398(_0x44bbc2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x318f97()):_0x44bbc2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44bbc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44bbc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a2887){return _0x44bbc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2501ee(){const _0x13a7d8=[_0x44bbc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44bbc2([0x74,0x72,0x69,0x61,0x6c])][_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43142e/0x3e8:0xe10*_0x36350d;return _0x4b6f1c[_0x44bbc2([0x65,0x78,0x70])]<_0x13a7d8;}function _0x5ae3d5(){const _0x30db41=_0x4b6f1c[_0x44bbc2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30db41&&(!!_0x30db41[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bbc2([0x2a]))||!!_0x30db41[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bbc2([0x55,0x50,0x4c,0x43])));}function _0x4a5d3e(){const _0x5efb42=_0xae0c,_0x516a18=_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x516a18||0x0==_0x516a18[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2baa4c}=new URL(window[_0x44bbc2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5efb42(0x212)]);if(_0x516a18[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2baa4c))return!0x0;const _0x1d25f2=_0x2baa4c[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e]));return _0x516a18[_0x44bbc2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42ad76=>_0x42ad76[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bbc2([0x2a])))[_0x44bbc2([0x6d,0x61,0x70])](_0x4f2a7f=>_0x4f2a7f[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e])))[_0x44bbc2([0x73,0x6f,0x6d,0x65])](_0x927c7d=>_0x1d25f2[_0x44bbc2([0x65,0x76,0x65,0x72,0x79])]((_0x3cc007,_0x366cc5)=>_0x927c7d[_0x366cc5]===_0x3cc007||_0x927c7d[_0x366cc5]===_0x44bbc2([0x2a])));}function _0x318f97(){return _0x3abe17&&_0x18e218?new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a0a28,_0x3536b8)=>{_0x3abe17[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x5a0a28,_0x3536b8),_0x18e218[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x1ef993=>{_0x1ef993!=_0x44bbc2([0x56,0x61,0x6c,0x69,0x64])&&_0x5a0a28(_0x1ef993);},_0x3536b8);}):_0x3abe17||_0x18e218||_0x44bbc2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x377761(_0x2e7473,_0x105bb2){return new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ea76=>{if(_0x2ffcf0())return _0x48ea76(_0x44bbc2([0x56,0x61,0x6c,0x69,0x64]));_0x499f65(),_0x463e4[_0x44bbc2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44bbc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb5847e=!0x1;const _0x1ef07a=_0x44cc2f();function _0x370e52(_0x22bfac){return!!_0x22bfac&&(typeof _0x22bfac===_0x44bbc2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22bfac===_0x44bbc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22bfac[_0x44bbc2([0x74,0x68,0x65,0x6e])]===_0x44bbc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22bfac[_0x44bbc2([0x63,0x61,0x74,0x63,0x68])]===_0x44bbc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x290165(_0x3d7058){_0x4aa172(_0x3d7058)[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x541713=>{if(!_0x541713||_0x541713[_0x44bbc2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44bbc2([0x6f,0x6b]))return _0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3837f9(_0x214771(_0x1ef07a+_0x105bb2))!=_0x541713[_0x44bbc2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44bbc2([0x56,0x61,0x6c,0x69,0x64]);})[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x1d6676=>(_0x2c9b0b(),_0x1d6676),()=>{const _0x168755=_0x4eddcb();return null==_0x168755?(_0x2c9b0b(),_0x44bbc2([0x56,0x61,0x6c,0x69,0x64])):_0x44bbc2(_0x43142e-_0x168755>(0x6f27ab68^_0x5319ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x48ea76)[_0x44bbc2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48ea76(_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ac5d6=0x4b1dc1e8^_0x5319ca;function _0x2c9b0b(){const _0x504871=_0x44bbc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3837f9(_0x214771(_0x2e7473)),_0x59b757=_0x404451(_0x3837f9(window[_0x44bbc2([0x4d,0x61,0x74,0x68])][_0x44bbc2([0x63,0x65,0x69,0x6c])](_0x43142e/_0x5ac5d6)));window[_0x44bbc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bbc2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x504871,_0x59b757);}function _0x4eddcb(){const _0xefe59=_0x44bbc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3837f9(_0x214771(_0x2e7473)),_0xc7ddbb=window[_0x44bbc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bbc2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xefe59);return _0xc7ddbb?window[_0x44bbc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x404451(_0xc7ddbb),0x10)*_0x5ac5d6:null;}function _0x4aa172(_0x4603bf){return new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dfda1,_0x29996f)=>{_0x4603bf[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x3dfda1,_0x29996f),window[_0x44bbc2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29996f,0x4b2afba8^_0x5319ca);});}}_0x463e4[_0x44bbc2([0x6f,0x6e])](_0x44bbc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13098b,_0x2f178d)=>{if(_0x2f178d[0x0]!=_0x2e7473)return _0x48ea76(_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f178d[0x1]={..._0x2f178d[0x1],[_0x44bbc2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ef07a};},{[_0x44bbc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bbc2([0x68,0x69,0x67,0x68])}),_0x463e4[_0x44bbc2([0x6f,0x6e])](_0x44bbc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7090bc=>{_0x370e52(_0x7090bc[_0x44bbc2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb5847e=!0x0,_0x290165(_0x7090bc[_0x44bbc2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44bbc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bbc2([0x6c,0x6f,0x77])}),_0x1e49ea[_0x44bbc2([0x74,0x68,0x65,0x6e])](()=>{_0xb5847e||_0x48ea76(_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ffcf0(){return _0x463e4[_0x44bbc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bbc2([0x76,0x69,0x65,0x77])][_0x44bbc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44bbc2([0x61,0x75,0x74,0x6f]);}function _0x499f65(){_0x463e4[_0x44bbc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bbc2([0x76,0x69,0x65,0x77])][_0x44bbc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44bbc2([0x61,0x75,0x74,0x6f]);}}function _0x458398(_0x1c59f4){const _0x12ac37=[new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x568755=>setTimeout(_0x568755,0x4b2211a4^_0x5319ca)),_0x1e49ea[_0x44bbc2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ee53d=>{let _0x44957b=0x0;_0x463e4[_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bbc2([0x6f,0x6e])](_0x44bbc2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1935fa,_0x2218fa)=>{_0x2218fa[0x0][_0x44bbc2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44957b++,_0x44957b==(0x4b2b2e90^_0x5319ca)&&(_0x1ee53d(),_0x1935fa[_0x44bbc2([0x6f,0x66,0x66])]());});}))];return window[_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44bbc2([0x72,0x61,0x63,0x65])](_0x12ac37)[_0x44bbc2([0x74,0x68,0x65,0x6e])](()=>_0x1c59f4);}async function _0x3684ad(){await _0x1e49ea,_0x463e4[_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bbc2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497a38,_0x463e4[_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bbc2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497a38,_0x463e4[_0x44bbc2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2387ce(_0x8f6f3b){const _0x15e945=_0x6746d5();_0x463e4[_0x15e945]=_0x44bbc2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8f6f3b,_0x8f6f3b!=_0x44bbc2([0x56,0x61,0x6c,0x69,0x64])&&_0x3684ad();}function _0x6746d5(){const _0x41daec=window[_0x44bbc2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44bbc2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44bbc2([0x6e,0x6f,0x77])]())[_0x44bbc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44bbc2([0x2e]),'');let _0x410d04=_0x44bbc2([0x5a]);for(let _0x56e5c4=0x0;_0x56e5c4<_0x41daec[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56e5c4+=0x2){let _0x3790e0=window[_0x44bbc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41daec[_0x44bbc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56e5c4,_0x56e5c4+0x2));_0x3790e0>=_0x32a4a9[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3790e0-=_0x32a4a9[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x410d04+=_0x32a4a9[_0x3790e0];}return _0x410d04;}function _0x59b129(){const _0x3ea4a7=_0x271c47[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e]));if(0x3!=_0x3ea4a7[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f5d7a(_0x3ea4a7[0x1]);function _0x4f5d7a(_0x403f8d){const _0x618b9b=_0x2b0df1(_0x403f8d);return _0x618b9b&&_0x2d1cc6()?_0x618b9b:null;function _0x2d1cc6(){const _0x2549ac=_0x618b9b[_0x44bbc2([0x6a,0x74,0x69])],_0x1c36f6=window[_0x44bbc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2549ac[_0x44bbc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2549ac[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x225229={..._0x618b9b,[_0x44bbc2([0x6a,0x74,0x69])]:_0x2549ac[_0x44bbc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2549ac[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x225229[_0x44bbc2([0x76,0x63])],_0x214771(_0x225229)==_0x1c36f6;}}}async function _0x2acde7(){let _0x4c1ee0=!0x0;try{const _0x5dc150=_0x271c47[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e])),[_0x2c8efd,_0x45f8c1,_0x21e581]=_0x5dc150;return _0x47a4cd(_0x2c8efd),await _0x4e1a63(_0x2c8efd,_0x45f8c1,_0x21e581),_0x4c1ee0;}catch(_0x4a6809){return!0x1;}function _0x47a4cd(_0x20d384){const _0x497ed1=_0x2b0df1(_0x20d384);_0x497ed1&&_0x497ed1[_0x44bbc2([0x61,0x6c,0x67])]==_0x44bbc2([0x45,0x53,0x32,0x35,0x36])||(_0x4c1ee0=!0x1);}async function _0x4e1a63(_0x1cbd14,_0xdb319b,_0x1a9753){const _0x22a09d=window[_0x44bbc2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44bbc2([0x66,0x72,0x6f,0x6d])](_0x4a5e2f(_0x1a9753),_0x580115=>_0x580115[_0x44bbc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1508db=new window[(_0x44bbc2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44bbc2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1cbd14+_0x44bbc2([0x2e])+_0xdb319b),_0x1bdc67=window[_0x44bbc2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44bbc2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bdc67)return;const _0x22e7f3=await _0x1bdc67[_0x44bbc2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44bbc2([0x6a,0x77,0x6b]),_0x50ca78,{[_0x44bbc2([0x6e,0x61,0x6d,0x65])]:_0x44bbc2([0x45,0x43,0x44,0x53,0x41]),[_0x44bbc2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44bbc2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44bbc2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bdc67[_0x44bbc2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44bbc2([0x6e,0x61,0x6d,0x65])]:_0x44bbc2([0x45,0x43,0x44,0x53,0x41]),[_0x44bbc2([0x68,0x61,0x73,0x68])]:{[_0x44bbc2([0x6e,0x61,0x6d,0x65])]:_0x44bbc2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22e7f3,_0x22a09d,_0x1508db)||(_0x4c1ee0=!0x1);}}function _0x2b0df1(_0xa4b0eb){return _0xa4b0eb[_0x44bbc2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44bbc2([0x65,0x79]))?JSON[_0x44bbc2([0x70,0x61,0x72,0x73,0x65])](_0x4a5e2f(_0xa4b0eb)):null;}function _0x4a5e2f(_0x25b68e){return window[_0x44bbc2([0x61,0x74,0x6f,0x62])](_0x25b68e[_0x44bbc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44bbc2([0x2b]))[_0x44bbc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44bbc2([0x2f])));}function _0x214771(_0x3f53e3){let _0x56c5bb=0x1505;function _0x4a66cc(_0x5bf04a){for(let _0x30c707=0x0;_0x30c707<_0x5bf04a[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30c707++){const _0x2c912e=_0x5bf04a[_0x44bbc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30c707);_0x56c5bb=(_0x56c5bb<<0x5)+_0x56c5bb+_0x2c912e,_0x56c5bb&=_0x56c5bb;}}function _0x42a925(_0x199e6d){Array[_0x44bbc2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x199e6d)?_0x199e6d[_0x44bbc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42a925):_0x199e6d&&typeof _0x199e6d==_0x44bbc2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44bbc2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x199e6d)[_0x44bbc2([0x73,0x6f,0x72,0x74])]()[_0x44bbc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x462649,_0x275de2])=>{_0x4a66cc(_0x462649),_0x42a925(_0x275de2);}):_0x4a66cc(window[_0x44bbc2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x199e6d));}return _0x42a925(_0x3f53e3),_0x56c5bb>>>0x0;}function _0x3837f9(_0x1d37e1){return _0x1d37e1[_0x44bbc2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44bbc2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44bbc2([0x30]));}function _0x404451(_0x2e5356){return _0x2e5356[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44bbc2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44bbc2([0x6a,0x6f,0x69,0x6e])]('');}function _0x497a38(){}function _0x44bbc2(_0x4accaf){const _0x1750d3=_0xae0c;return _0x4accaf[_0x1750d3(0x1d8)](_0x355f7f=>String[_0x1750d3(0x1f5)](_0x355f7f))[_0x1750d3(0x20a)]('');}_0x2387ce(await _0x1f34d2());}(this);}[_0x26853e(0x1d9)](){const _0x337f20=_0x26853e,_0x48de39=this[_0x337f20(0x1f6)][_0x337f20(0x210)][_0x337f20(0x1c8)];_0x48de39[_0x337f20(0x1f9)](_0x337f20(0x1f8))&&_0x48de39[_0x337f20(0x1f1)](_0x337f20(0x1f8),{'allowAttributes':[_0x337f20(0x205)]}),_0x48de39[_0x337f20(0x1f9)](_0x337f20(0x1ed))&&_0x48de39[_0x337f20(0x1f1)](_0x337f20(0x1ed),{'allowAttributes':[_0x337f20(0x205)]});}[_0x26853e(0x1eb)](){const _0x40f66d=_0x26853e,_0x294dbd=this[_0x40f66d(0x1f6)];_0x294dbd[_0x40f66d(0x20d)][_0x40f66d(0x1e3)](_0x40f66d(0x1f4))[_0x40f66d(0x217)]({'model':_0x40f66d(0x205),'view':_0x40f66d(0x1d7)}),_0x294dbd[_0x40f66d(0x20d)][_0x40f66d(0x1e3)](_0x40f66d(0x1dd))[_0x40f66d(0x1d6)]({'model':{'key':_0x40f66d(0x205),'value':_0x24778a=>_0x24778a[_0x40f66d(0x206)](_0x40f66d(0x1d7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f874a=_0x294dbd[_0x40f66d(0x1e2)][_0x40f66d(0x1e4)](_0x40f66d(0x218));_0x4f874a&&this[_0x40f66d(0x1f7)](_0x4f874a,_0x40f66d(0x1ff),(_0x111764,[_0x34882f,_0x3bcfd9])=>{const _0x567161=_0x40f66d;_0x34882f[_0x567161(0x207)](_0x567161(0x205),_0x3bcfd9);});}[_0x26853e(0x20b)](){const _0x220853=_0x26853e,_0x4a1ffa=this[_0x220853(0x1f6)][_0x220853(0x1fc)][_0x220853(0x1e4)](_0x220853(0x20e))||{},_0x9ccc7e=this[_0x220853(0x1f6)][_0x220853(0x1fc)][_0x220853(0x1e4)](_0x220853(0x216))||'';this[_0x220853(0x208)]=_0x3aedde(_0x1b5e9d[_0x220853(0x1d2)],_0x220853(0x202),{..._0x4a1ffa,'pubkey':_0x9ccc7e,'ctx-name':_0x220853(0x1de),'sourceList':'','imgOnly':_0x220853(0x209),'removeCopyright':_0x220853(0x209),'localeName':this[_0x220853(0x1f6)][_0x220853(0x1e5)][_0x220853(0x214)],'externalSourcesEmbedCss':_0x220853(0x1cc)}),this[_0x220853(0x208)][_0x220853(0x1fb)]=_0x3f9f5c=>{const _0x14f640=_0x220853;if(_0x14f640(0x204)==_0x3f9f5c)return _0x14f640(0x20c);},_0x1b5e9d[_0x220853(0x1d2)][_0x220853(0x1ea)][_0x220853(0x1db)](this[_0x220853(0x208)]);}[_0x26853e(0x1ce)](){const _0x3660ca=_0x26853e;this[_0x3660ca(0x20f)]=_0x3aedde(_0x1b5e9d[_0x3660ca(0x1d2)],_0x3660ca(0x1fd),{'ctx-name':_0x3660ca(0x1de)}),_0x1b5e9d[_0x3660ca(0x1d2)][_0x3660ca(0x1ea)][_0x3660ca(0x1db)](this[_0x3660ca(0x20f)]);}[_0x26853e(0x1d1)](){const _0x539395=_0x26853e,_0x1b10fb=this[_0x539395(0x1f6)][_0x539395(0x1e2)][_0x539395(0x1e4)](_0x539395(0x1cf));_0x1b10fb&&this[_0x539395(0x1f7)](_0x1b10fb,_0x539395(0x1da),()=>{const _0x18e637=_0x539395,_0x4eb1e6=this[_0x18e637(0x1f6)][_0x18e637(0x210)][_0x18e637(0x1d2)][_0x18e637(0x1e0)][_0x18e637(0x200)]();_0x4eb1e6&&_0x4eb1e6[_0x18e637(0x206)](_0x18e637(0x205))&&this[_0x18e637(0x1f6)][_0x18e637(0x1fe)][_0x18e637(0x1d0)][_0x18e637(0x211)](_0x18e637(0x215),()=>{const _0xd8b33a=_0x18e637;_0x1aa870(this[_0xd8b33a(0x1f6)],_0x4eb1e6);});});const _0x27a407=this[_0x539395(0x1f6)][_0x539395(0x1e2)][_0x539395(0x1e4)](_0x539395(0x1e7));_0x27a407&&this[_0x539395(0x1f7)](_0x27a407,_0x539395(0x1da),()=>{const _0x1f37e6=_0x539395,_0x2dc63c=this[_0x1f37e6(0x1f6)][_0x1f37e6(0x210)][_0x1f37e6(0x1d2)][_0x1f37e6(0x1e0)][_0x1f37e6(0x200)]();_0x2dc63c&&_0x2dc63c[_0x1f37e6(0x206)](_0x1f37e6(0x205))&&this[_0x1f37e6(0x1f6)][_0x1f37e6(0x1fe)][_0x1f37e6(0x1d0)][_0x1f37e6(0x211)](_0x1f37e6(0x215),()=>{const _0x17c57a=_0x1f37e6;_0x1aa870(this[_0x17c57a(0x1f6)],_0x2dc63c);});});}}
|
|
23
|
+
function _0x1b15(_0x4a0276,_0x27cc0a){const _0x1ea50f=_0x1ea5();return _0x1b15=function(_0x1b15ae,_0x28e474){_0x1b15ae=_0x1b15ae-0xa6;let _0x55bbdf=_0x1ea50f[_0x1b15ae];return _0x55bbdf;},_0x1b15(_0x4a0276,_0x27cc0a);}const _0x28f58e=_0x1b15;(function(_0xaab85,_0x3bf0f0){const _0x1d23e0=_0x1b15,_0x2e6c56=_0xaab85();while(!![]){try{const _0x3e810a=parseInt(_0x1d23e0(0xe3))/0x1+-parseInt(_0x1d23e0(0xa9))/0x2+parseInt(_0x1d23e0(0xc3))/0x3+-parseInt(_0x1d23e0(0xc0))/0x4+parseInt(_0x1d23e0(0xeb))/0x5*(parseInt(_0x1d23e0(0xb1))/0x6)+-parseInt(_0x1d23e0(0xab))/0x7*(parseInt(_0x1d23e0(0xcd))/0x8)+parseInt(_0x1d23e0(0xe4))/0x9*(parseInt(_0x1d23e0(0xac))/0xa);if(_0x3e810a===_0x3bf0f0)break;else _0x2e6c56['push'](_0x2e6c56['shift']());}catch(_0x37ebac){_0x2e6c56['push'](_0x2e6c56['shift']());}}}(_0x1ea5,0x9bae8));import{Plugin as _0x26ca0b}from'ckeditor5/src/core.js';import{Dialog as _0xe8a498}from'ckeditor5/src/ui.js';import{createElement as _0x3a37b6,global as _0x491152,uid as _0x3b0b86}from'ckeditor5/src/utils.js';import _0x3aeb54 from'./uploadcarecommand.js';import _0x12139b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d9d90}from'./utils/editingutils.js';function _0x1ea5(){const _0x1de688=['381342sGJxdc','input[uploadcare-file-input]','selection','uploadcareImageReplace','view','model','uploadcareImageId','add','_initImageProcessingIndicator','replaceImageSource','42664SoIUEi','uploadcare.pubkey','ctxElement','_initConversion','uploadcare','execute','uploadcare.uploader','configElement','pluginName','upcast','editing','commands','contentLanguage','imageBlock','map','insertImage','_configElement','destroy','extend','for','get','uc-config','760442XOPyKL','54LpRRkB','elementToAttribute','uploader','isPremiumPlugin','render','true','_initConfig','2885DdGrEG','PictureEditing','cleanupImage','downcast','conversion','editor','isOfficialPlugin','document','afterInit','iconHrefResolver','imageInline','uc-upload-ctx-provider','_initCtx','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','#uc-icon-arrow-down','querySelector','data-uc-image-id','join','1960802dIQcpz','attributeToAttribute','406IibCaE','2378320eWNfKT','init','once','locale','remove','8538TDAuex','removeAttribute','getSelectedElement','config','body','requires','appendChild','schema','_ctxElement','getAttribute','UploadcareEditing','isRegistered','fromCharCode','_initSchema','closeMax','4832928Wdsvlh','listenTo','href'];_0x1ea5=function(){return _0x1de688;};return _0x1ea5();}export default class i extends _0x26ca0b{[_0x28f58e(0xdd)]=null;[_0x28f58e(0xb9)]=null;static get[_0x28f58e(0xd5)](){const _0x555b7b=_0x28f58e;return _0x555b7b(0xbb);}static get[_0x28f58e(0xb6)](){const _0x328210=_0x28f58e;return[_0x328210(0xec),_0x12139b,_0xe8a498];}static get[_0x28f58e(0xf1)](){return!0x0;}static get[_0x28f58e(0xe7)](){return!0x0;}get[_0x28f58e(0xd4)](){const _0x5b9212=_0x28f58e;return this[_0x5b9212(0xdd)];}get[_0x28f58e(0xcf)](){const _0x3dc1b2=_0x28f58e;return this[_0x3dc1b2(0xb9)];}[_0x28f58e(0xad)](){const _0x276c6d=_0x28f58e,_0x4691a4=this[_0x276c6d(0xf0)];_0x4691a4[_0x276c6d(0xd8)][_0x276c6d(0xca)](_0x276c6d(0xd1),new _0x3aeb54(_0x4691a4));}[_0x28f58e(0xf3)](){const _0x15ff56=_0x28f58e;this[_0x15ff56(0xbe)](),this[_0x15ff56(0xd0)](),this[_0x15ff56(0xea)](),this[_0x15ff56(0xf7)](),this[_0x15ff56(0xcb)](),this[_0x15ff56(0xc1)](this[_0x15ff56(0xf0)],_0x15ff56(0xde),()=>{const _0xe12197=_0x15ff56;this[_0xe12197(0xdd)]&&(this[_0xe12197(0xdd)][_0xe12197(0xb0)](),this[_0xe12197(0xdd)]=null),this[_0xe12197(0xb9)]&&(this[_0xe12197(0xb9)][_0xe12197(0xb0)](),this[_0xe12197(0xb9)]=null);const _0x562100=_0x491152[_0xe12197(0xf2)][_0xe12197(0xa6)](_0xe12197(0xc4));_0x562100&&_0x562100[_0xe12197(0xb0)]();}),async function(_0x5a3877){const _0x20c3c3=_0x3904d1([0x39,0x76,0x63,0x4f,0x69,0x71,0x66,0x7a,0x41,0x52,0x62,0x58,0x74,0x4a,0x33,0x78,0x4c,0x45,0x55,0x67,0x50,0x75,0x6f,0x43,0x44,0x57,0x73,0x31,0x77,0x6d,0x30,0x51,0x4e,0x56,0x54,0x79,0x49,0x4b,0x35,0x70,0x37,0x38,0x53,0x6c,0x65,0x59,0x6e,0x61,0x36,0x72,0x5a,0x6b,0x47,0x64,0x6a,0x34,0x42,0x46,0x32,0x4d,0x48,0x68]),_0x2efd83=0x4013f54c,_0x1ddf82=0x401494ec^_0x2efd83,_0x3754a3=window[_0x3904d1([0x44,0x61,0x74,0x65])][_0x3904d1([0x6e,0x6f,0x77])](),_0x375b84=_0x5a3877[_0x3904d1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xde0272=new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eee2e=>{_0x375b84[_0x3904d1([0x6f,0x6e,0x63,0x65])](_0x3904d1([0x72,0x65,0x61,0x64,0x79]),_0x4eee2e);}),_0x9d6d68={[_0x3904d1([0x6b,0x74,0x79])]:_0x3904d1([0x45,0x43]),[_0x3904d1([0x75,0x73,0x65])]:_0x3904d1([0x73,0x69,0x67]),[_0x3904d1([0x63,0x72,0x76])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36]),[_0x3904d1([0x78])]:_0x3904d1([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]),[_0x3904d1([0x79])]:_0x3904d1([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]),[_0x3904d1([0x61,0x6c,0x67])]:_0x3904d1([0x45,0x53,0x32,0x35,0x36])},_0x48782f=_0x375b84[_0x3904d1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3904d1([0x67,0x65,0x74])](_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fbf1(){let _0x7a694a,_0x57d7ab=null,_0x220ebc=null;try{if(_0x48782f==_0x3904d1([0x47,0x50,0x4c]))return _0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7a694a=_0x3cc870(),!_0x7a694a)return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x220ebc=_0x219756(_0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7a694a[_0x3904d1([0x6a,0x74,0x69])])),await _0x1aaa36()?_0xf44609()?_0x33d918()?_0x3904d1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x400aa5()?(_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x74,0x72,0x69,0x61,0x6c])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ac0f()):_0x3904d1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x383776){return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33d918(){const _0x35e18d=[_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3904d1([0x74,0x72,0x69,0x61,0x6c])][_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3754a3/0x3e8:0xe10*_0x1ddf82;return _0x7a694a[_0x3904d1([0x65,0x78,0x70])]<_0x35e18d;}function _0xf44609(){const _0x2bff7e=_0x7a694a[_0x3904d1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bff7e&&(!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a]))||!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x55,0x50,0x4c,0x43])));}function _0x400aa5(){const _0x17ccc2=_0x1b15,_0x4cb422=_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cb422||0x0==_0x4cb422[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4476ed}=new URL(window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17ccc2(0xc2)]);if(_0x4cb422[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4476ed))return!0x0;const _0x40c480=_0x4476ed[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));return _0x4cb422[_0x3904d1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ec10=>_0x38ec10[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a])))[_0x3904d1([0x6d,0x61,0x70])](_0x5f0a95=>_0x5f0a95[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])))[_0x3904d1([0x73,0x6f,0x6d,0x65])](_0x408595=>_0x40c480[_0x3904d1([0x65,0x76,0x65,0x72,0x79])]((_0x49b92a,_0x3d8bb5)=>_0x408595[_0x3d8bb5]===_0x49b92a||_0x408595[_0x3d8bb5]===_0x3904d1([0x2a])));}function _0x22ac0f(){return _0x57d7ab&&_0x220ebc?new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0bd43,_0x3cb21a)=>{_0x57d7ab[_0x3904d1([0x74,0x68,0x65,0x6e])](_0xe0bd43,_0x3cb21a),_0x220ebc[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x4b6bc2=>{_0x4b6bc2!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0xe0bd43(_0x4b6bc2);},_0x3cb21a);}):_0x57d7ab||_0x220ebc||_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x219756(_0x58b4b2,_0x5b4be3){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x469a67=>{if(_0x541d4c())return _0x469a67(_0x3904d1([0x56,0x61,0x6c,0x69,0x64]));_0x40a1c0(),_0x375b84[_0x3904d1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25d0cb=!0x1;const _0x549164=_0x3b0b86();function _0x4b2279(_0x899343){return!!_0x899343&&(typeof _0x899343===_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x899343===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x899343[_0x3904d1([0x74,0x68,0x65,0x6e])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x899343[_0x3904d1([0x63,0x61,0x74,0x63,0x68])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe2c087(_0xc64b5f){_0x3281dc(_0xc64b5f)[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x2b0834=>{if(!_0x2b0834||_0x2b0834[_0x3904d1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3904d1([0x6f,0x6b]))return _0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30f182(_0x5989b8(_0x549164+_0x5b4be3))!=_0x2b0834[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x13c24c=>(_0x3bf3dc(),_0x13c24c),()=>{const _0x2e6c3e=_0x1b138e();return null==_0x2e6c3e?(_0x3bf3dc(),_0x3904d1([0x56,0x61,0x6c,0x69,0x64])):_0x3904d1(_0x3754a3-_0x2e6c3e>(0x641f714c^_0x2efd83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x469a67)[_0x3904d1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e3224=0x40251bcc^_0x2efd83;function _0x3bf3dc(){const _0x3051bb=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x200fcb=_0x4e9709(_0x30f182(window[_0x3904d1([0x4d,0x61,0x74,0x68])][_0x3904d1([0x63,0x65,0x69,0x6c])](_0x3754a3/_0x5e3224)));window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3051bb,_0x200fcb);}function _0x1b138e(){const _0x21da53=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x28d15f=window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21da53);return _0x28d15f?window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e9709(_0x28d15f),0x10)*_0x5e3224:null;}function _0x3281dc(_0x56921b){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x70a6c2,_0x21fb65)=>{_0x56921b[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x70a6c2,_0x21fb65),window[_0x3904d1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21fb65,0x4012218c^_0x2efd83);});}}_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x530987,_0x56e095)=>{if(_0x56e095[0x0]!=_0x58b4b2)return _0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x56e095[0x1]={..._0x56e095[0x1],[_0x3904d1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x549164};},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x68,0x69,0x67,0x68])}),_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e3869=>{_0x4b2279(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25d0cb=!0x0,_0xe2c087(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x6c,0x6f,0x77])}),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>{_0x25d0cb||_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x541d4c(){return _0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3904d1([0x61,0x75,0x74,0x6f]);}function _0x40a1c0(){_0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3904d1([0x61,0x75,0x74,0x6f]);}}function _0x7d4540(_0x5637a5){const _0x1a3db1=[new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56d17a=>setTimeout(_0x56d17a,0x401acb80^_0x2efd83)),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59232f=>{let _0x278cb1=0x0;_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x6f,0x6e])](_0x3904d1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7ab9b3,_0xc40b77)=>{_0xc40b77[0x0][_0x3904d1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x278cb1++,_0x278cb1==(0x4013f4b4^_0x2efd83)&&(_0x59232f(),_0x7ab9b3[_0x3904d1([0x6f,0x66,0x66])]());});}))];return window[_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3904d1([0x72,0x61,0x63,0x65])](_0x1a3db1)[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>_0x5637a5);}async function _0x38e3f9(){await _0xde0272,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0166(_0x3447c9){const _0x4722fd=_0x196c64();_0x375b84[_0x4722fd]=_0x3904d1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3447c9,_0x3447c9!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0x38e3f9();}function _0x196c64(){const _0x1c6f62=window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3904d1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3904d1([0x6e,0x6f,0x77])]())[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3904d1([0x2e]),'');let _0x16e5d8=_0x3904d1([0x76]);for(let _0x4aee05=0x0;_0x4aee05<_0x1c6f62[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aee05+=0x2){let _0x49ac90=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6f62[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aee05,_0x4aee05+0x2));_0x49ac90>=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ac90-=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16e5d8+=_0x20c3c3[_0x49ac90];}return _0x16e5d8;}function _0x3cc870(){const _0x2767e4=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));if(0x3!=_0x2767e4[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf015b6(_0x2767e4[0x1]);function _0xf015b6(_0x213296){const _0x477db4=_0x45aca7(_0x213296);return _0x477db4&&_0x11bfbf()?_0x477db4:null;function _0x11bfbf(){const _0x4def53=_0x477db4[_0x3904d1([0x6a,0x74,0x69])],_0xd94a93=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e2f56={..._0x477db4,[_0x3904d1([0x6a,0x74,0x69])]:_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e2f56[_0x3904d1([0x76,0x63])],_0x5989b8(_0x1e2f56)==_0xd94a93;}}}async function _0x1aaa36(){let _0x11f4e1=!0x0;try{const _0x1d5b34=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])),[_0x53b0c7,_0x191b71,_0xf6be8a]=_0x1d5b34;return _0xf2a31a(_0x53b0c7),await _0x1d75be(_0x53b0c7,_0x191b71,_0xf6be8a),_0x11f4e1;}catch(_0xd8b626){return!0x1;}function _0xf2a31a(_0x4944ea){const _0x1d40da=_0x45aca7(_0x4944ea);_0x1d40da&&_0x1d40da[_0x3904d1([0x61,0x6c,0x67])]==_0x3904d1([0x45,0x53,0x32,0x35,0x36])||(_0x11f4e1=!0x1);}async function _0x1d75be(_0x2d06f9,_0x142a21,_0xb970ba){const _0x20afb2=window[_0x3904d1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3904d1([0x66,0x72,0x6f,0x6d])](_0x3c9963(_0xb970ba),_0x50e599=>_0x50e599[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39d1e5=new window[(_0x3904d1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3904d1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d06f9+_0x3904d1([0x2e])+_0x142a21),_0x530543=window[_0x3904d1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3904d1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x530543)return;const _0x2db45b=await _0x530543[_0x3904d1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3904d1([0x6a,0x77,0x6b]),_0x9d6d68,{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x530543[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x68,0x61,0x73,0x68])]:{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2db45b,_0x20afb2,_0x39d1e5)||(_0x11f4e1=!0x1);}}function _0x45aca7(_0x32d513){return _0x32d513[_0x3904d1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3904d1([0x65,0x79]))?JSON[_0x3904d1([0x70,0x61,0x72,0x73,0x65])](_0x3c9963(_0x32d513)):null;}function _0x3c9963(_0x305e31){return window[_0x3904d1([0x61,0x74,0x6f,0x62])](_0x305e31[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3904d1([0x2b]))[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3904d1([0x2f])));}function _0x5989b8(_0x132df6){let _0x25063e=0x1505;function _0x4c4551(_0x27ec7d){for(let _0x5f53bb=0x0;_0x5f53bb<_0x27ec7d[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f53bb++){const _0x1b3cba=_0x27ec7d[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f53bb);_0x25063e=(_0x25063e<<0x5)+_0x25063e+_0x1b3cba,_0x25063e&=_0x25063e;}}function _0x31a022(_0x9a548f){Array[_0x3904d1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9a548f)?_0x9a548f[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31a022):_0x9a548f&&typeof _0x9a548f==_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3904d1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9a548f)[_0x3904d1([0x73,0x6f,0x72,0x74])]()[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c949f,_0x21b0d3])=>{_0x4c4551(_0x5c949f),_0x31a022(_0x21b0d3);}):_0x4c4551(window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9a548f));}return _0x31a022(_0x132df6),_0x25063e>>>0x0;}function _0x30f182(_0x74707e){return _0x74707e[_0x3904d1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3904d1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3904d1([0x30]));}function _0x4e9709(_0x226fdd){return _0x226fdd[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3904d1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3904d1([0x6a,0x6f,0x69,0x6e])]('');}function _0x25aefe(){}function _0x3904d1(_0x2f11fb){const _0x552439=_0x1b15;return _0x2f11fb[_0x552439(0xdb)](_0xe4c457=>String[_0x552439(0xbd)](_0xe4c457))[_0x552439(0xa8)]('');}_0x3c0166(await _0x30fbf1());}(this);}[_0x28f58e(0xbe)](){const _0x3aa3e1=_0x28f58e,_0xaad5d4=this[_0x3aa3e1(0xf0)][_0x3aa3e1(0xc8)][_0x3aa3e1(0xb8)];_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xda))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xda),{'allowAttributes':[_0x3aa3e1(0xc9)]}),_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xf5))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xf5),{'allowAttributes':[_0x3aa3e1(0xc9)]});}[_0x28f58e(0xd0)](){const _0xf9f8e6=_0x28f58e,_0x3e5e8c=this[_0xf9f8e6(0xf0)];_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xee))[_0xf9f8e6(0xaa)]({'model':_0xf9f8e6(0xc9),'view':_0xf9f8e6(0xa7)}),_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xd6))[_0xf9f8e6(0xe5)]({'model':{'key':_0xf9f8e6(0xc9),'value':_0x2e4aa0=>_0x2e4aa0[_0xf9f8e6(0xba)](_0xf9f8e6(0xa7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a2e2d=_0x3e5e8c[_0xf9f8e6(0xd8)][_0xf9f8e6(0xe1)](_0xf9f8e6(0xcc));_0x1a2e2d&&this[_0xf9f8e6(0xc1)](_0x1a2e2d,_0xf9f8e6(0xed),(_0x308c60,[_0x1783ad,_0x514753])=>{const _0x5b7ae1=_0xf9f8e6;_0x1783ad[_0x5b7ae1(0xb2)](_0x5b7ae1(0xc9),_0x514753);});}[_0x28f58e(0xea)](){const _0x39d8d6=_0x28f58e,_0x1d2dec=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xd3))||{},_0x10c221=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xce))||'';this[_0x39d8d6(0xdd)]=_0x3a37b6(_0x491152[_0x39d8d6(0xf2)],_0x39d8d6(0xe2),{..._0x1d2dec,'pubkey':_0x10c221,'ctx-name':_0x39d8d6(0xe6),'sourceList':'','imgOnly':_0x39d8d6(0xe9),'removeCopyright':_0x39d8d6(0xe9),'localeName':this[_0x39d8d6(0xf0)][_0x39d8d6(0xaf)][_0x39d8d6(0xd9)],'externalSourcesEmbedCss':_0x39d8d6(0xf8)}),this[_0x39d8d6(0xdd)][_0x39d8d6(0xf4)]=_0x4dd700=>{const _0x3027be=_0x39d8d6;if(_0x3027be(0xbf)==_0x4dd700)return _0x3027be(0xf9);},_0x491152[_0x39d8d6(0xf2)][_0x39d8d6(0xb5)][_0x39d8d6(0xb7)](this[_0x39d8d6(0xdd)]);}[_0x28f58e(0xf7)](){const _0x1c8126=_0x28f58e;this[_0x1c8126(0xb9)]=_0x3a37b6(_0x491152[_0x1c8126(0xf2)],_0x1c8126(0xf6),{'ctx-name':_0x1c8126(0xe6)}),_0x491152[_0x1c8126(0xf2)][_0x1c8126(0xb5)][_0x1c8126(0xb7)](this[_0x1c8126(0xb9)]);}[_0x28f58e(0xcb)](){const _0x4e79b7=_0x28f58e,_0x16c06a=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xdc));_0x16c06a&&this[_0x4e79b7(0xc1)](_0x16c06a,_0x4e79b7(0xd2),()=>{const _0x3e83bd=_0x4e79b7,_0xf4647a=this[_0x3e83bd(0xf0)][_0x3e83bd(0xc8)][_0x3e83bd(0xf2)][_0x3e83bd(0xc5)][_0x3e83bd(0xb3)]();_0xf4647a&&_0xf4647a[_0x3e83bd(0xba)](_0x3e83bd(0xc9))&&this[_0x3e83bd(0xf0)][_0x3e83bd(0xd7)][_0x3e83bd(0xc7)][_0x3e83bd(0xae)](_0x3e83bd(0xe8),()=>{const _0x14d4e2=_0x3e83bd;_0x4d9d90(this[_0x14d4e2(0xf0)],_0xf4647a);});});const _0x336b32=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xc6));_0x336b32&&this[_0x4e79b7(0xc1)](_0x336b32,_0x4e79b7(0xd2),()=>{const _0x4e7a42=_0x4e79b7,_0x1b0bb1=this[_0x4e7a42(0xf0)][_0x4e7a42(0xc8)][_0x4e7a42(0xf2)][_0x4e7a42(0xc5)][_0x4e7a42(0xb3)]();_0x1b0bb1&&_0x1b0bb1[_0x4e7a42(0xba)](_0x4e7a42(0xc9))&&this[_0x4e7a42(0xf0)][_0x4e7a42(0xd7)][_0x4e7a42(0xc7)][_0x4e7a42(0xae)](_0x4e7a42(0xe8),()=>{const _0x4d2737=_0x4e7a42;_0x4d9d90(this[_0x4d2737(0xf0)],_0x1b0bb1);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x16bc90,ObservableMixin as _0x1eeec3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x56dd29}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x141219}from'ckeditor5/src/icons.js';import _0x593eac from'./uploadcareimageeditformview.js';import _0x26016d from'../../utils/uploadutils.js';import{getImageUrls as _0x4cc3ae,getImageDimension as _0xc51ede}from'../../utils/editingutils.js';import{isAncestor as _0x420b6c}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1eeec3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x529307,_0x171b83,_0x39bd50){super(),this['_editor']=_0x529307,this['_dialog']=_0x171b83,this['_imageElement']=_0x39bd50,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 _0x1967d9=this['_imageElement'],_0x51c6ac=_0x1967d9['getAttribute']('uploadcareImageId'),_0x719851=_0x1967d9['getAttribute']('src');if(_0x51c6ac)await this['_loadImageInfo'](_0x51c6ac,_0x719851);else{if(this['_imageCache']['has'](_0x719851)){const _0x31a532=this['_imageCache']['get'](_0x719851);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31a532['url'],this['imageDimension']=_0x31a532['dimension'],this['imageId']=_0x31a532['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3e0fe9}=this['_editor'],t=_0x3e0fe9['t'],_0x117090=new _0x593eac(_0x3e0fe9,this['imageStatus'],this['_attributes']);_0x117090['bind']('status')['to'](this,'imageStatus'),_0x117090['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x117090['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x117090['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x117090,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x141219,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x117090,'position':_0x56dd29['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x117090['focus']();},'onHide':()=>{_0x117090['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21be69=>!_0x420b6c(_0x21be69,_0x117090['element'])}});}['_loadImageInfo'](_0x2bb1f2,_0x2894fe){return _0x26016d['getInfo'](_0x2bb1f2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x433e6c=>{const {width:_0x1d632d,height:_0x58899b}=_0x433e6c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2894fe,this['imageDimension']={'width':_0x1d632d,'height':_0x58899b},this['imageId']=_0x2bb1f2;})['catch'](_0x4c0cad=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c0cad['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x299bb8,_0x11154){return this['_getImageAsFile'](_0x299bb8)['then'](_0x466122=>_0x26016d['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x11154['signal'],'file':_0x466122,'onProgress':_0x40964a=>{_0x40964a&&_0x40964a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x40964a['value']));}}))['then'](_0xe24aa6=>{const {width:_0x734774,height:_0xdea7ec}=_0xe24aa6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe24aa6['cdnUrl'],this['imageDimension']={'width':_0x734774,'height':_0xdea7ec},this['imageId']=_0xe24aa6['uuid'],this['imageUploadProgress']=null;const _0x42b9aa=_0x299bb8['getAttribute']('src');this['_imageCache']['set'](_0x42b9aa,{'id':_0xe24aa6['uuid'],'url':_0xe24aa6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1af4cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1af4cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16ed4a,_0x40c8ab){_0x16ed4a['on']('apply',(_0x35604a,_0x2b5d14)=>{this['_replaceImage'](_0x40c8ab,_0x2b5d14['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16ed4a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16ed4a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1797f0,_0x3faa6b,_0x17475c){const _0x46773c=this['_editor'],{width:_0x434d55,height:_0x363c40}=_0xc51ede(_0x3faa6b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1e0b3a,imageSources:_0x5ca186}=_0x4cc3ae(_0x3faa6b,_0x434d55);_0x46773c['model']['change'](_0x327185=>{if('$graveyard'===_0x1797f0['root']['rootName']){_0x46773c['execute']('insertImage',{'imageType':_0x1797f0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1797f0['getAttributes']()),'uploadcareImageId':_0x17475c,'src':_0x1e0b3a,'sources':_0x5ca186,'width':_0x434d55,'height':_0x363c40}});const _0x14ea52=_0x1797f0['getChildren']();_0x1797f0=_0x46773c['model']['document']['selection']['getSelectedElement']();for(const _0x387783 of _0x14ea52)_0x327185['append'](_0x327185['cloneElement'](_0x387783),_0x1797f0);}else _0x327185['setSelection'](_0x1797f0,'on'),_0x46773c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1797f0['getAttributes']()),'uploadcareImageId':_0x17475c,'src':_0x1e0b3a,'sources':_0x5ca186,'width':_0x434d55,'height':_0x363c40},_0x1797f0);_0x327185['setSelection'](_0x1797f0,'on');});}async['_getImageAsFile'](_0x5e5e79){const _0x3027f3=_0x16bc90['window'],_0x285b0f=_0x16bc90['document']['location']['href'],_0x247d6e=new _0x3027f3['URL'](_0x5e5e79['getAttribute']('src'),_0x285b0f);if('data:'===_0x247d6e['protocol']){const _0x21627e=_0x247d6e['href']['split'](','),_0x36caa2=_0x21627e[0x0]['match'](/:(.*?);/)[0x1],_0x4c2f3d=_0x36caa2['split']('/')[0x1],_0x28e45d=_0x3027f3['atob'](_0x21627e[_0x21627e['length']-0x1]);let _0xbec365=_0x28e45d['length'];const _0x4142e5=new _0x3027f3['Uint8Array'](_0xbec365);for(;_0xbec365--;)_0x4142e5[_0xbec365]=_0x28e45d['charCodeAt'](_0xbec365);return new _0x3027f3['File']([_0x4142e5],'image.'+_0x4c2f3d,{'type':_0x36caa2});}const _0x1ca246=_0x247d6e['href']['split']('/'),_0x2d6b1f=_0x1ca246[_0x1ca246['length']-0x1],_0x1c8038=_0x2d6b1f['split']('.')[0x1];return _0x3027f3['fetch'](_0x247d6e['href'])['then'](_0x1d3b87=>_0x1d3b87['clone']()['blob']())['then'](_0x153a8f=>new _0x3027f3['File']([_0x153a8f],_0x2d6b1f,{'type':'image/'+_0x1c8038}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x30a5f7,_0x5edb9c){const _0x594668=_0x34bd,_0xa7ba9=_0x30a5f7();while(!![]){try{const _0x12b2ed=-parseInt(_0x594668(0xe4))/0x1+-parseInt(_0x594668(0xda))/0x2*(parseInt(_0x594668(0xe3))/0x3)+-parseInt(_0x594668(0xe0))/0x4+-parseInt(_0x594668(0xdd))/0x5+parseInt(_0x594668(0xe1))/0x6*(parseInt(_0x594668(0xde))/0x7)+parseInt(_0x594668(0xd7))/0x8*(parseInt(_0x594668(0xdf))/0x9)+parseInt(_0x594668(0xdb))/0xa;if(_0x12b2ed===_0x5edb9c)break;else _0xa7ba9['push'](_0xa7ba9['shift']());}catch(_0x491e0d){_0xa7ba9['push'](_0xa7ba9['shift']());}}}(_0x377b,0x323dd));function _0x34bd(_0x1fa687,_0x296557){const _0x377bd3=_0x377b();return _0x34bd=function(_0x34bd81,_0x5a24d0){_0x34bd81=_0x34bd81-0xd5;let _0x5af82e=_0x377bd3[_0x34bd81];return _0x5af82e;},_0x34bd(_0x1fa687,_0x296557);}import{View as _0x1e69dc}from'ckeditor5/src/ui.js';export default class tt extends _0x1e69dc{constructor(_0x379720,_0x35ca47){const _0x42bde2=_0x34bd;super(_0x379720);const _0x213912=this[_0x42bde2(0xd9)];this[_0x42bde2(0xe6)](_0x42bde2(0xd8),''),this[_0x42bde2(0xd5)]({'tag':_0x42bde2(0xdc),'attributes':{..._0x35ca47,'class':[_0x42bde2(0xd6),_0x42bde2(0xe2)],'ctx-name':_0x42bde2(0xe5),'cdn-url':_0x213912['to'](_0x42bde2(0xd8))}});}}function _0x377b(){const _0x6fbf82=['imageSrc','bindTemplate','233358bIauSP','6727230aXyuaV','uc-cloud-image-editor','706345VcjKaR','77GJcetA','41661gooIuy','757404QxDLFY','10974UpasCG','ck-uploadcare-theme','3EOIRjQ','211027meTtal','image-edit','set','setTemplate','uc-light','296EQceKB'];_0x377b=function(){return _0x6fbf82;};return _0x377b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x14ccc9,IconView as at,View as _0x552e96}from'ckeditor5/src/ui.js';export default class rt extends _0x552e96{constructor(_0x16c3b3){super(_0x16c3b3);const t=_0x16c3b3['t'];this['set']('errorType',null);const _0x572790=new _0x14ccc9(_0x16c3b3);_0x572790['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x572790['withText']=!0x0,_0x572790['class']='ck-button-action',_0x572790['on']('execute',()=>{this['fire']('retry');}),_0x572790['bind']('isVisible')['to'](this,'errorType',_0x257397=>'NotFound'!==_0x257397);const _0x4b1048=new at();_0x4b1048['content']=et,_0x4b1048['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f717b=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':[_0x4b1048,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f717b['to']('errorType',_0x5bebf6=>t('NotFound'!==_0x5bebf6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x572790]},{'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 _0x5a464,View as _0x2e0822}from'ckeditor5/src/ui.js';export default class ta extends _0x2e0822{constructor(_0x4184d3){super(_0x4184d3);const t=_0x4184d3['t'],_0x23cd60=this['bindTemplate'],_0xb3aafe=new _0x5a464();_0xb3aafe['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':[_0xb3aafe,{'text':_0x23cd60['to']('imageUploadProgress',_0x8ea971=>t('Loading\x20image...')+'\x20('+(_0x8ea971||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 _0x41cd(_0xee6f9f,_0x4d3a48){const _0x2ef462=_0x2ef4();return _0x41cd=function(_0x41cdd1,_0x323504){_0x41cdd1=_0x41cdd1-0x1c9;let _0x1aa0eb=_0x2ef462[_0x41cdd1];return _0x1aa0eb;},_0x41cd(_0xee6f9f,_0x4d3a48);}const _0x696914=_0x41cd;(function(_0x42fb8a,_0x1bdae9){const _0x45064b=_0x41cd,_0x1ab083=_0x42fb8a();while(!![]){try{const _0x1c21a8=parseInt(_0x45064b(0x1db))/0x1*(parseInt(_0x45064b(0x1e0))/0x2)+parseInt(_0x45064b(0x1df))/0x3*(-parseInt(_0x45064b(0x1d7))/0x4)+parseInt(_0x45064b(0x1fe))/0x5+-parseInt(_0x45064b(0x1ca))/0x6+-parseInt(_0x45064b(0x1d6))/0x7*(-parseInt(_0x45064b(0x1dc))/0x8)+-parseInt(_0x45064b(0x1d4))/0x9+parseInt(_0x45064b(0x1cf))/0xa;if(_0x1c21a8===_0x1bdae9)break;else _0x1ab083['push'](_0x1ab083['shift']());}catch(_0x5a94de){_0x1ab083['push'](_0x1ab083['shift']());}}}(_0x2ef4,0xb360b));import{View as _0xef37a6}from'ckeditor5/src/ui.js';import _0x53280d from'./uploadcareimageeditformloadingview.js';import _0x48f0b7 from'./uploadcareimageeditformerrorview.js';import _0x396802 from'./uploadcareimageeditformeditingview.js';import _0x2b8723 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x2b8723{[_0x696914(0x1ef)];[_0x696914(0x1e4)];[_0x696914(0x1ce)];[_0x696914(0x1cc)];[_0x696914(0x1f4)];constructor(_0x1ab21b,_0x3fc026,_0x58dad1){const _0x335708=_0x696914;super(_0x1ab21b),this[_0x335708(0x1ef)]=this[_0x335708(0x1de)](),this[_0x335708(0x1e4)]=new _0x53280d(_0x1ab21b),this[_0x335708(0x1ce)]=new _0x48f0b7(_0x1ab21b),this[_0x335708(0x1cc)]=new _0x396802(_0x1ab21b,_0x58dad1),this[_0x335708(0x1f4)]=new _0xef37a6(_0x1ab21b),this[_0x335708(0x1f4)][_0x335708(0x1d2)](this[_0x335708(0x1f6)]()),this[_0x335708(0x1d3)](_0x335708(0x1f9),_0x3fc026),this[_0x335708(0x1d2)]({'tag':_0x335708(0x1e3),'attributes':{'class':['ck',_0x335708(0x1f1),_0x335708(0x1e6)],'tabindex':'-1'},'children':this[_0x335708(0x1ef)]}),this[_0x335708(0x1da)](),this[_0x335708(0x1e5)](_0x335708(0x1d1),()=>{const _0x3089ae=_0x335708;this[_0x3089ae(0x1cb)](this[_0x3089ae(0x1ec)],_0x408b4d=>{const _0xb3a49a=_0x3089ae;this[_0xb3a49a(0x1f7)](_0x408b4d);});}),this['on'](_0x335708(0x1fc),()=>{const _0xacfcb=_0x335708;this[_0xacfcb(0x1da)]();}),this[_0x335708(0x1c9)]();}[_0x696914(0x1d0)](){const _0x4421af=_0x696914;this[_0x4421af(0x1ec)][_0x4421af(0x1d0)]();}[_0x696914(0x1da)](){const _0xabef9f=_0x696914;switch(this[_0xabef9f(0x1ef)][_0xabef9f(0x1f2)](),this[_0xabef9f(0x1f9)]){case _0xabef9f(0x1e7):this[_0xabef9f(0x1ef)][_0xabef9f(0x1e8)](this[_0xabef9f(0x1e4)]);break;case _0xabef9f(0x1d8):this[_0xabef9f(0x1ef)][_0xabef9f(0x1e8)](this[_0xabef9f(0x1ce)]);break;case _0xabef9f(0x1e9):this[_0xabef9f(0x1ef)][_0xabef9f(0x1ee)]([this[_0xabef9f(0x1cc)],this[_0xabef9f(0x1f4)]]);}}[_0x696914(0x1cb)](_0x31a9a8,_0x5a5da1){const _0x35c145=_0x696914,_0x288870=_0x35c145(0x1d5),_0x242c3a=_0x31a9a8[_0x35c145(0x1ed)](_0x288870);if(_0x242c3a)return _0x5a5da1(_0x242c3a);const _0x44abe7=new MutationObserver(_0x5482a1=>{const _0x41d4da=_0x35c145,_0x416906=_0x5482a1[_0x41d4da(0x1d9)](_0x4b4c66=>_0x4b4c66[_0x41d4da(0x1fa)]===_0x31a9a8&&_0x4b4c66[_0x41d4da(0x1cd)][_0x41d4da(0x1fb)]>0x0&&_0x4b4c66[_0x41d4da(0x1cd)][0x0][_0x41d4da(0x1f3)][_0x41d4da(0x1e1)]()===_0x288870);_0x416906[_0x41d4da(0x1fb)]&&(_0x44abe7[_0x41d4da(0x1f0)](),_0x5a5da1(_0x416906[0x0][_0x41d4da(0x1cd)][0x0]));});_0x44abe7[_0x35c145(0x1ea)](_0x31a9a8,{'childList':!0x0,'subtree':!0x0});}[_0x696914(0x1f7)](_0x2df36a){const _0x4e327a=_0x696914;_0x2df36a[_0x4e327a(0x1dd)](_0x4e327a(0x1f5),_0x73306=>{const _0x59ee1d=_0x4e327a;this[_0x59ee1d(0x1fd)](_0x59ee1d(0x1f5),{'imageSrc':_0x73306[_0x59ee1d(0x1eb)][_0x59ee1d(0x1ff)]});}),_0x2df36a[_0x4e327a(0x1dd)](_0x4e327a(0x1e2),()=>{const _0x504f12=_0x4e327a;this[_0x504f12(0x1fd)](_0x504f12(0x1e2));});}[_0x696914(0x1c9)](){const _0x5de2f3=_0x696914;this[_0x5de2f3(0x1ce)]['on'](_0x5de2f3(0x1f8),()=>{const _0x396513=_0x5de2f3;this[_0x396513(0x1fd)](_0x396513(0x1f8));});}}function _0x2ef4(){const _0x57ead4=['_waitForImageEditorComponent','_editingView','addedNodes','_errorView','14943880PbqUQS','focus','render','setTemplate','set','12399570McQxyW','uc-cloud-image-editor','7jFFprg','2921852UtEGwn','error','filter','_setView','9mpekgw','8312648QZSGbq','addEventListener','createCollection','3OQEPNZ','11922dzIrlh','toLowerCase','cancel','div','_loadingView','once','ck-uploadcare-form','uploading','add','ready','observe','detail','element','querySelector','addMany','_items','disconnect','ck-reset_all-excluded','clear','nodeName','_focusableView','apply','getFocusableElement','_addUploadcareImageEditorListeners','retry','status','target','length','change:status','fire','2142605BYdUvH','cdnUrl','_addErrorViewListeners','1036290WlTiWh'];_0x2ef4=function(){return _0x57ead4;};return _0x2ef4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1c37(_0x2864b7,_0x52466a){const _0x3fa599=_0x3fa5();return _0x1c37=function(_0x1c3727,_0x3ec3ff){_0x1c3727=_0x1c3727-0x1bc;let _0x464dfd=_0x3fa599[_0x1c3727];return _0x464dfd;},_0x1c37(_0x2864b7,_0x52466a);}const _0x5ceb16=_0x1c37;(function(_0x42fa29,_0x40c857){const _0x560aec=_0x1c37,_0x4c1743=_0x42fa29();while(!![]){try{const _0x47406d=-parseInt(_0x560aec(0x1ce))/0x1*(-parseInt(_0x560aec(0x1cd))/0x2)+-parseInt(_0x560aec(0x1c1))/0x3+parseInt(_0x560aec(0x1d2))/0x4+parseInt(_0x560aec(0x1cf))/0x5*(-parseInt(_0x560aec(0x1c3))/0x6)+parseInt(_0x560aec(0x1bc))/0x7+-parseInt(_0x560aec(0x1d0))/0x8*(-parseInt(_0x560aec(0x1d5))/0x9)+parseInt(_0x560aec(0x1d9))/0xa;if(_0x47406d===_0x40c857)break;else _0x4c1743['push'](_0x4c1743['shift']());}catch(_0x48b4fe){_0x4c1743['push'](_0x4c1743['shift']());}}}(_0x3fa5,0xb45d7));import{Command as _0x4349b2}from'ckeditor5/src/core.js';import{Dialog as _0x184d08}from'ckeditor5/src/ui.js';function _0x3fa5(){const _0x50ea09=['plugins','imageBlock','1225644riCMmz','element','imageInline','selection','execute','3502590vHziJQ','_isEditable','149514cGcvQi','isActive','requires','bind','config','editor','isEnabled','document','uploadcare.allowExternalImagesEditing','imageEditController','1826QNQrzm','794KQcWcd','55GUIKBA','1845232cXreCZ','unbind','2730552FKvNAy','model','refresh','18JQkgSg','get','getSelectedElement','set','1364540YeWspC'];_0x3fa5=function(){return _0x50ea09;};return _0x3fa5();}import _0x4ae9ca from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4f4a1b}from'../utils/editingutils.js';export default class J extends _0x4349b2{[_0x5ceb16(0x1cc)];static get[_0x5ceb16(0x1c5)](){return[_0x184d08];}[_0x5ceb16(0x1c2)];constructor(_0x1712ee){const _0x27a12f=_0x5ceb16;super(_0x1712ee),this[_0x27a12f(0x1cc)]=void 0x0,this[_0x27a12f(0x1c2)]=_0x4f4a1b(_0x1712ee[_0x27a12f(0x1c7)][_0x27a12f(0x1d6)](_0x27a12f(0x1cb))||[]),this[_0x27a12f(0x1d8)]({'isActive':!0x1});}[_0x5ceb16(0x1d4)](){const _0x5c5532=_0x5ceb16,_0x715f60=this[_0x5c5532(0x1c8)][_0x5c5532(0x1d3)][_0x5c5532(0x1ca)][_0x5c5532(0x1bf)][_0x5c5532(0x1d7)]();this[_0x5c5532(0x1c9)]=this[_0x5c5532(0x1c2)](_0x715f60);}[_0x5ceb16(0x1c0)](){const _0x247d7d=_0x5ceb16;this[_0x247d7d(0x1cc)]&&(this[_0x247d7d(0x1d1)](_0x247d7d(0x1c4)),this[_0x247d7d(0x1cc)]=void 0x0);const _0x1b2787=this[_0x247d7d(0x1c8)][_0x247d7d(0x1d3)][_0x247d7d(0x1ca)][_0x247d7d(0x1bf)][_0x247d7d(0x1d7)]();_0x1b2787&&(_0x1b2787['is'](_0x247d7d(0x1bd),_0x247d7d(0x1db))||_0x1b2787['is'](_0x247d7d(0x1bd),_0x247d7d(0x1be)))&&(this[_0x247d7d(0x1cc)]=new _0x4ae9ca(this[_0x247d7d(0x1c8)],this[_0x247d7d(0x1c8)][_0x247d7d(0x1da)][_0x247d7d(0x1d6)](_0x184d08),_0x1b2787),this[_0x247d7d(0x1c6)](_0x247d7d(0x1c4))['to'](this[_0x247d7d(0x1cc)],_0x247d7d(0x1c4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44d0b6=_0x4a14;function _0x4a14(_0x5c7030,_0x251b8f){const _0x506b05=_0x506b();return _0x4a14=function(_0x4a1478,_0x10c811){_0x4a1478=_0x4a1478-0x1cc;let _0x55becf=_0x506b05[_0x4a1478];return _0x55becf;},_0x4a14(_0x5c7030,_0x251b8f);}(function(_0x2459ad,_0x4db2ce){const _0x232286=_0x4a14,_0x2d475a=_0x2459ad();while(!![]){try{const _0x22f0e7=-parseInt(_0x232286(0x1d2))/0x1+parseInt(_0x232286(0x1cd))/0x2*(parseInt(_0x232286(0x1d6))/0x3)+parseInt(_0x232286(0x1dc))/0x4+parseInt(_0x232286(0x1d8))/0x5*(-parseInt(_0x232286(0x1e0))/0x6)+-parseInt(_0x232286(0x1db))/0x7+-parseInt(_0x232286(0x1d3))/0x8+parseInt(_0x232286(0x1d1))/0x9;if(_0x22f0e7===_0x4db2ce)break;else _0x2d475a['push'](_0x2d475a['shift']());}catch(_0x3251e1){_0x2d475a['push'](_0x2d475a['shift']());}}}(_0x506b,0xb01fd));import{Plugin as _0x2aed5d}from'ckeditor5/src/core.js';function _0x506b(){const _0x28e4a5=['966XvHqVC','commands','184PiMoUT','isOfficialPlugin','add','init','13410783TaYHpN','973673rZozAn','6261536VJhcGV','pluginName','requires','32379qFSTnL','uploadcareImageEdit','755TeotcC','isPremiumPlugin','UploadcareImageEditEditing','4634903AEpfxI','2724668aVcxdt','ImageUtils','ImageEditing','uploadcareImageReplace'];_0x506b=function(){return _0x28e4a5;};return _0x506b();}import{Notification as _0x4cd6fa}from'ckeditor5/src/ui.js';import _0x3a93ce from'./uploadcareimageeditcommand.js';import _0x3a1a2d from'./uploadcareimagereplacecommand.js';import _0x2bc7ac from'../uploadcareediting.js';export default class g extends _0x2aed5d{static get[_0x44d0b6(0x1d4)](){const _0x5144c5=_0x44d0b6;return _0x5144c5(0x1da);}static get[_0x44d0b6(0x1d5)](){const _0x4e6036=_0x44d0b6;return[_0x2bc7ac,_0x4cd6fa,_0x4e6036(0x1dd),_0x4e6036(0x1de)];}static get[_0x44d0b6(0x1ce)](){return!0x0;}static get[_0x44d0b6(0x1d9)](){return!0x0;}[_0x44d0b6(0x1d0)](){const _0x434868=_0x44d0b6,{editor:_0x5c68d2}=this;_0x5c68d2[_0x434868(0x1cc)][_0x434868(0x1cf)](_0x434868(0x1d7),new _0x3a93ce(_0x5c68d2)),_0x5c68d2[_0x434868(0x1cc)][_0x434868(0x1cf)](_0x434868(0x1df),new _0x3a1a2d(_0x5c68d2));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x425a30}from'ckeditor5/src/core.js';import{ButtonView as _0x1fc900}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xbca93}from'ckeditor5/src/icons.js';import{createElement as _0x4cbae6}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x425a30{['_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 _0x1ce501=this['editor'];_0x1ce501['ui']['componentFactory']['add']('uploadcareImageEdit',_0x62c46d=>{const _0x2d4912=_0x1ce501['commands']['get']('uploadcareImageEdit'),_0x49b7e5=new _0x1fc900(_0x62c46d),t=_0x62c46d['t'];return _0x49b7e5['set']({'icon':_0xbca93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x49b7e5['bind']('isEnabled')['to'](_0x2d4912),_0x49b7e5['bind']('isOn')['to'](_0x2d4912,'isActive'),this['listenTo'](_0x49b7e5,'execute',()=>{_0x1ce501['execute']('uploadcareImageEdit'),_0x1ce501['editing']['view']['focus']();}),_0x49b7e5;}),this['_initConfig']();}['_initConfig'](){const _0x11d908=_0x4cbae6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x11d908),this['listenTo'](this['editor'],'destroy',()=>{_0x11d908['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5868d4=_0x3087;(function(_0x2aaa64,_0x42d6d5){const _0xcbed88=_0x3087,_0x243a48=_0x2aaa64();while(!![]){try{const _0x5656dd=parseInt(_0xcbed88(0x124))/0x1+parseInt(_0xcbed88(0x121))/0x2+parseInt(_0xcbed88(0x127))/0x3*(parseInt(_0xcbed88(0x132))/0x4)+parseInt(_0xcbed88(0x11f))/0x5+-parseInt(_0xcbed88(0x135))/0x6*(-parseInt(_0xcbed88(0x11c))/0x7)+-parseInt(_0xcbed88(0x126))/0x8+-parseInt(_0xcbed88(0x12e))/0x9*(parseInt(_0xcbed88(0x129))/0xa);if(_0x5656dd===_0x42d6d5)break;else _0x243a48['push'](_0x243a48['shift']());}catch(_0x444532){_0x243a48['push'](_0x243a48['shift']());}}}(_0x1bda,0x9dd2f));function _0x1bda(){const _0x55aec1=['isEnabled','52398mxhhxi','setAttributes','model','refresh','4iPWVBk','imageBlock','change','18OIpHuo','1600277pldVvx','srcset','editor','6029245gArCUn','document','897822YywdwF','execute','selection','665664wpUBdD','imageInline','2905760HVMNWG','1538076TjuWzx','removeAttribute','4310mRYtSu','sizes','element','getSelectedElement'];_0x1bda=function(){return _0x55aec1;};return _0x1bda();}import{Command as _0x35c228}from'ckeditor5/src/core.js';function _0x3087(_0x2b9450,_0x594904){const _0x1bda18=_0x1bda();return _0x3087=function(_0x3087ff,_0xe01255){_0x3087ff=_0x3087ff-0x11c;let _0x25c8d3=_0x1bda18[_0x3087ff];return _0x25c8d3;},_0x3087(_0x2b9450,_0x594904);}export default class O extends _0x35c228{[_0x5868d4(0x131)](){const _0xe6f052=_0x5868d4,_0x3e1054=this[_0xe6f052(0x11e)][_0xe6f052(0x130)][_0xe6f052(0x120)][_0xe6f052(0x123)][_0xe6f052(0x12c)]();this[_0xe6f052(0x12d)]=Boolean(_0x3e1054&&(_0x3e1054['is'](_0xe6f052(0x12b),_0xe6f052(0x133))||_0x3e1054['is'](_0xe6f052(0x12b),_0xe6f052(0x125))));}[_0x5868d4(0x122)](_0x481565){const _0x3d3014=_0x5868d4,_0x2a5668=this[_0x3d3014(0x11e)][_0x3d3014(0x130)][_0x3d3014(0x120)][_0x3d3014(0x123)][_0x3d3014(0x12c)]();this[_0x3d3014(0x11e)][_0x3d3014(0x130)][_0x3d3014(0x134)](_0x56fc65=>{const _0x56f7d4=_0x3d3014;_0x56fc65[_0x56f7d4(0x12f)](_0x481565,_0x2a5668),_0x56fc65[_0x56f7d4(0x128)](_0x56f7d4(0x11d),_0x2a5668),_0x56fc65[_0x56f7d4(0x128)](_0x56f7d4(0x12a),_0x2a5668);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e85ba=_0x2ff1;function _0x3243(){var _0x404f8b=['pluginName','1716888stAHqI','requires','12110133oWphrA','2mXmpwN','5974638oWYugm','4611360AchmMF','UploadcareImageEdit','1845366gajmjK','40168816tWUeDR','isOfficialPlugin','isPremiumPlugin','656195nUjjwC'];_0x3243=function(){return _0x404f8b;};return _0x3243();}(function(_0x4c83fc,_0x11f50c){var _0x4bcaf9=_0x2ff1,_0x4e35ba=_0x4c83fc();while(!![]){try{var _0x238675=parseInt(_0x4bcaf9(0x105))/0x1*(-parseInt(_0x4bcaf9(0x10a))/0x2)+parseInt(_0x4bcaf9(0x10e))/0x3+-parseInt(_0x4bcaf9(0x107))/0x4+-parseInt(_0x4bcaf9(0x10c))/0x5+-parseInt(_0x4bcaf9(0x10b))/0x6+-parseInt(_0x4bcaf9(0x109))/0x7+parseInt(_0x4bcaf9(0x10f))/0x8;if(_0x238675===_0x11f50c)break;else _0x4e35ba['push'](_0x4e35ba['shift']());}catch(_0x216060){_0x4e35ba['push'](_0x4e35ba['shift']());}}}(_0x3243,0xdc657));import{Plugin as _0x2b3dc6}from'ckeditor5/src/core.js';import _0x4e07ed from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x252869 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x2ff1(_0x34be15,_0x1e4a2b){var _0x32438a=_0x3243();return _0x2ff1=function(_0x2ff110,_0x4e59c1){_0x2ff110=_0x2ff110-0x104;var _0x4113f5=_0x32438a[_0x2ff110];return _0x4113f5;},_0x2ff1(_0x34be15,_0x1e4a2b);}export default class P extends _0x2b3dc6{static get[_0x5e85ba(0x106)](){var _0x5a20df=_0x5e85ba;return _0x5a20df(0x10d);}static get[_0x5e85ba(0x108)](){return[_0x4e07ed,_0x252869];}static get[_0x5e85ba(0x110)](){return!0x0;}static get[_0x5e85ba(0x104)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x411460=_0x440f;(function(_0x5df1f4,_0x52d50a){const _0x562437=_0x440f,_0x77e487=_0x5df1f4();while(!![]){try{const _0x3dc16d=parseInt(_0x562437(0x101))/0x1*(-parseInt(_0x562437(0xea))/0x2)+parseInt(_0x562437(0xe7))/0x3*(parseInt(_0x562437(0xed))/0x4)+-parseInt(_0x562437(0xc6))/0x5*(-parseInt(_0x562437(0xe3))/0x6)+parseInt(_0x562437(0xf0))/0x7+parseInt(_0x562437(0xdb))/0x8*(parseInt(_0x562437(0xe6))/0x9)+parseInt(_0x562437(0xb7))/0xa+-parseInt(_0x562437(0xdd))/0xb;if(_0x3dc16d===_0x52d50a)break;else _0x77e487['push'](_0x77e487['shift']());}catch(_0x3e6eb9){_0x77e487['push'](_0x77e487['shift']());}}}(_0x40d8,0x47563));import{Plugin as _0x9772c4}from'ckeditor5/src/core.js';import{IconDropbox as _0x404b51,IconFacebook as _0x4064e8,IconGoogleDrive as _0x4a0de1,IconGooglePhotos as _0x549074,IconUploadcareImageUpload as _0x8e551c,IconUploadcareLink as _0x4b7a3d,IconOneDrive as _0x278e2d}from'ckeditor5/src/icons.js';import{ButtonView as _0x11e0ec,MenuBarMenuListItemButtonView as _0x1d8220}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5eb22b}from'./uploadcareconfig.js';import{getTranslation as _0x2fe883}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x440f(_0x5b7693,_0x36f940){const _0x40d84c=_0x40d8();return _0x440f=function(_0x440fd1,_0x304c07){_0x440fd1=_0x440fd1-0xb1;let _0x30aee8=_0x40d84c[_0x440fd1];return _0x30aee8;},_0x440f(_0x5b7693,_0x36f940);}function _0x40d8(){const _0x3a4d2a=['trialLimit','Facebook','URL','uploadcareLicenseKeyEvaluationLimit','ImageInsertUI','pluginName','GPhotos','OneDrive','uploadcareLicenseKeyExpired','get','config','type','afterInit','url','GDrive','16tMhUrL','icon','3564704XDaeFr','_createDropdownButtons','evaluationLimit','Uploadcare','isEnabled','registerIntegration','5298ICOOHX','assetManager','uploadcareLicenseKeyUsageLimit','161307TReuMH','3ZSDDxn','licenseKey','map','2NKxSek','expired','forEach','710592tfULAV','init','_createToolbarButton','1124690HDQdAG','UploadcareUI','execute','uploadcareLicenseKeyInvalid','plugins','locale','isImageSelected','uploadcare','uploadcare.uploader.sourceList','_licenseKeyCheckInterval','push','Dropbox','shortText','_showLicenseError','Replace','reduce','isPremiumPlugin','363962IqDvEf','_createMenuBarButtons','commands','has','_getIntegrationKey','destroy','usageLimit','withText','4956820vdTqzp','Local','invalid','bind','editor','_createButton','domainLimit','isOfficialPlugin','Insert','label','featureNotAllowed','upload','text','_normalizeConfigSourceList','uploadcareLicenseKeyNotAllowed','625XbhcoM','entries','tooltip','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyValid','uploadcareLicenseKeyTrialLimit'];_0x40d8=function(){return _0x3a4d2a;};return _0x40d8();}import'../theme/uploadcareimageedit.css';export default class e extends _0x9772c4{[_0x411460(0xe8)];[_0x411460(0xf9)];static get[_0x411460(0xd1)](){const _0x58161c=_0x411460;return _0x58161c(0xf1);}static get[_0x411460(0xbe)](){return!0x0;}static get[_0x411460(0x100)](){return!0x0;}[_0x411460(0xee)](){const _0x4a7419=_0x411460;this[_0x4a7419(0xe8)]=this[_0x4a7419(0xbb)][_0x4a7419(0xd6)][_0x4a7419(0xd5)](_0x4a7419(0xe8));const _0x566b03=this[_0x4a7419(0xbb)];this[_0x4a7419(0xf9)]=setInterval(()=>{const _0x5db54d=_0x4a7419;let _0x9b0424;for(const _0x473781 in _0x566b03){const _0x5853ad=_0x473781,_0x34e9bc=_0x566b03[_0x5853ad];if(_0x5db54d(0xca)==_0x34e9bc||_0x5db54d(0xf3)==_0x34e9bc||_0x5db54d(0xd4)==_0x34e9bc||_0x5db54d(0xc9)==_0x34e9bc||_0x5db54d(0xc5)==_0x34e9bc||_0x5db54d(0xcf)==_0x34e9bc||_0x5db54d(0xcb)==_0x34e9bc||_0x5db54d(0xe5)==_0x34e9bc){delete _0x566b03[_0x5853ad],_0x9b0424=_0x34e9bc,clearInterval(this[_0x5db54d(0xf9)]),this[_0x5db54d(0xf9)]=void 0x0;break;}}_0x5db54d(0xf3)==_0x9b0424&&_0x566b03[_0x5db54d(0xfd)](_0x5db54d(0xb9)),_0x5db54d(0xd4)==_0x9b0424&&_0x566b03[_0x5db54d(0xfd)](_0x5db54d(0xeb)),_0x5db54d(0xc9)==_0x9b0424&&_0x566b03[_0x5db54d(0xfd)](_0x5db54d(0xbd)),_0x5db54d(0xc5)==_0x9b0424&&_0x566b03[_0x5db54d(0xfd)](_0x5db54d(0xc1),_0x5db54d(0xe0)),_0x5db54d(0xcf)==_0x9b0424&&_0x566b03[_0x5db54d(0xfd)](_0x5db54d(0xdf)),_0x5db54d(0xcb)==_0x9b0424&&_0x566b03[_0x5db54d(0xfd)](_0x5db54d(0xcc)),_0x5db54d(0xe5)==_0x9b0424&&_0x566b03[_0x5db54d(0xfd)](_0x5db54d(0xb5));},0x3e8);}[_0x411460(0xd8)](){const _0x3636c2=_0x411460,{editor:_0x5c1517}=this,_0x2f5f6b=_0x5c1517[_0x3636c2(0xb1)][_0x3636c2(0xd5)](_0x3636c2(0xf7));if(!_0x2f5f6b)return;const _0x86b2ab=this[_0x3636c2(0xc4)](_0x5c1517[_0x3636c2(0xd6)][_0x3636c2(0xd5)](_0x3636c2(0xf8)))[_0x3636c2(0xff)]((_0x4ad650,_0x2f812e)=>{const _0x4d6b14=_0x3636c2,_0x4e7c15=this[_0x4d6b14(0xb3)](_0x2f812e[_0x4d6b14(0xd7)]);return _0x4ad650[_0x4e7c15]||(_0x4ad650[_0x4e7c15]=[]),_0x4ad650[_0x4e7c15][_0x4d6b14(0xfa)](_0x2f812e),_0x4ad650;},{});_0x5c1517[_0x3636c2(0xf4)][_0x3636c2(0xb2)](_0x3636c2(0xd0))&&_0x5c1517[_0x3636c2(0xb1)][_0x3636c2(0xd5)](_0x3636c2(0xf7))&&Object[_0x3636c2(0xc7)](_0x86b2ab)[_0x3636c2(0xec)](([_0x252c96,_0x2e7371])=>{const _0x10a7db=_0x3636c2;_0x5c1517[_0x10a7db(0xf4)][_0x10a7db(0xd5)](_0x10a7db(0xd0))[_0x10a7db(0xe2)]({'name':_0x252c96,'observable':()=>_0x2f5f6b,'buttonViewCreator':()=>this[_0x10a7db(0xef)](_0x2e7371),'formViewCreator':()=>this[_0x10a7db(0xde)](_0x2e7371),'menuBarButtonViewCreator':()=>this[_0x10a7db(0x102)](_0x2e7371),'override':_0x10a7db(0xe4)!==_0x252c96});});}[_0x411460(0xb4)](){const _0x22b6b1=_0x411460;super[_0x22b6b1(0xb4)](),this[_0x22b6b1(0xf9)]&&clearInterval(this[_0x22b6b1(0xf9)]);}[_0x411460(0xc4)](_0x390ac1){const _0x2ef49b=_0x411460,{locale:_0x2b2c54}=this[_0x2ef49b(0xbb)];return _0x390ac1[_0x2ef49b(0xe9)](_0x3ea823=>{const _0xafe68e=_0x2ef49b,_0x104aed=_0x2fe883(_0x2b2c54,_0x3ea823,_0xafe68e(0xbf));switch(_0x3ea823){case _0x5eb22b[_0xafe68e(0xb8)]:return{'icon':_0x8e551c,'type':_0x5eb22b[_0xafe68e(0xb8)],..._0x104aed};case _0x5eb22b[_0xafe68e(0xce)]:return{'icon':_0x4b7a3d,'type':_0x5eb22b[_0xafe68e(0xce)],..._0x104aed};case _0x5eb22b[_0xafe68e(0xfb)]:return{'icon':_0x404b51,'type':_0x5eb22b[_0xafe68e(0xfb)],..._0x104aed};case _0x5eb22b[_0xafe68e(0xcd)]:return{'icon':_0x4064e8,'type':_0x5eb22b[_0xafe68e(0xcd)],..._0x104aed};case _0x5eb22b[_0xafe68e(0xda)]:return{'icon':_0x4a0de1,'type':_0x5eb22b[_0xafe68e(0xda)],..._0x104aed};case _0x5eb22b[_0xafe68e(0xd2)]:return{'icon':_0x549074,'type':_0x5eb22b[_0xafe68e(0xd2)],..._0x104aed};case _0x5eb22b[_0xafe68e(0xd3)]:return{'icon':_0x278e2d,'type':_0x5eb22b[_0xafe68e(0xd3)],..._0x104aed};}});}[_0x411460(0xb3)](_0x1f0442){const _0x221c10=_0x411460;switch(_0x1f0442){case _0x5eb22b[_0x221c10(0xb8)]:return _0x221c10(0xc2);case _0x5eb22b[_0x221c10(0xce)]:return _0x221c10(0xd9);default:return _0x221c10(0xe4);}}[_0x411460(0xbc)](_0x5b778e,_0x36cb03){const _0x38ea8a=_0x411460,_0xcb6678=this[_0x38ea8a(0xbb)],_0x3a3fbd=new _0x5b778e(_0xcb6678[_0x38ea8a(0xf5)]),_0x4b44d3=_0xcb6678[_0x38ea8a(0xb1)][_0x38ea8a(0xd5)](_0x38ea8a(0xf7));return _0x3a3fbd[_0x38ea8a(0xba)](_0x38ea8a(0xe1))['to'](_0x4b44d3),_0x3a3fbd['on'](_0x38ea8a(0xf2),()=>{const _0x48602e=_0x38ea8a;_0x4b44d3[_0x48602e(0xf2)](_0x36cb03);}),_0x3a3fbd;}[_0x411460(0xef)](_0x8cc764){const _0x56f775=_0x411460,{locale:_0x120083}=this[_0x56f775(0xbb)],_0x2b6dcb=this[_0x56f775(0xbb)][_0x56f775(0xf4)][_0x56f775(0xd5)](_0x56f775(0xd0)),_0x2288da=_0x8cc764[0x0],_0x580a92=this[_0x56f775(0xbc)](_0x11e0ec,_0x2288da[_0x56f775(0xd7)]);return _0x580a92[_0x56f775(0xdc)]=_0x2288da[_0x56f775(0xdc)],_0x580a92[_0x56f775(0xba)](_0x56f775(0xc0))['to'](_0x2b6dcb,_0x56f775(0xf6),_0x401a8c=>_0x2fe883(_0x120083,_0x2288da[_0x56f775(0xd7)],_0x401a8c?_0x56f775(0xfe):_0x56f775(0xbf))[_0x56f775(0xc3)]),_0x580a92[_0x56f775(0xc8)]=!0x0,_0x580a92;}[_0x411460(0xde)](_0x52c849){const _0xbc144a=_0x411460,{locale:_0x2a1945}=this[_0xbc144a(0xbb)],_0x1c780e=this[_0xbc144a(0xbb)][_0xbc144a(0xf4)][_0xbc144a(0xd5)](_0xbc144a(0xd0));return _0x52c849[_0xbc144a(0xe9)](_0x5810e4=>{const _0x1be5d1=_0xbc144a,_0x5c15eb=this[_0x1be5d1(0xbc)](_0x11e0ec,_0x5810e4[_0x1be5d1(0xd7)]);return _0x5c15eb[_0x1be5d1(0xb6)]=!0x0,_0x5c15eb[_0x1be5d1(0xdc)]=_0x5810e4[_0x1be5d1(0xdc)],_0x5c15eb[_0x1be5d1(0xba)](_0x1be5d1(0xc0))['to'](_0x1c780e,_0x1be5d1(0xf6),_0xb020fa=>_0x2fe883(_0x2a1945,_0x5810e4[_0x1be5d1(0xd7)],_0xb020fa?_0x1be5d1(0xfe):_0x1be5d1(0xbf))[_0x1be5d1(0xc3)]),_0x5c15eb;});}[_0x411460(0x102)](_0x4994ea){const _0x5c6bc7=_0x411460;return _0x4994ea[_0x5c6bc7(0xe9)](_0x1ff011=>{const _0x6faa3e=_0x5c6bc7,_0x35dc6f=this[_0x6faa3e(0xbc)](_0x1d8220,_0x1ff011[_0x6faa3e(0xd7)]);return _0x35dc6f[_0x6faa3e(0xdc)]=_0x1ff011[_0x6faa3e(0xdc)],_0x35dc6f[_0x6faa3e(0xc0)]=_0x1ff011[_0x6faa3e(0xfc)],_0x35dc6f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4121c4}from'ckeditor5/src/core.js';import{FileRepository as _0x2f1e82}from'ckeditor5/src/upload.js';import _0x495e5a from'./uploadcareediting.js';import _0x549013 from'./utils/uploadutils.js';import{getImageUrls as _0x33d108}from'./utils/editingutils.js';export default class p extends _0x4121c4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2f1e82,_0x495e5a];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x369dcc=this['editor'];if(!!!_0x369dcc['config']['get']('uploadcare'))return;_0x369dcc['plugins']['get'](_0x2f1e82)['createUploadAdapter']=_0x5a8ae4=>new x(_0x5a8ae4,_0x369dcc),_0x369dcc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5969c3,{imageElement:_0x54a329,data:_0x8f2172})=>{_0x369dcc['model']['change'](_0x542e0c=>{_0x542e0c['setAttribute']('uploadcareImageId',_0x8f2172['uploadcareImageId'],_0x54a329);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2e1d12,_0x3cb1fe){this['loader']=_0x2e1d12,this['editor']=_0x3cb1fe,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c840c=this['editor']['config']['get']('uploadcare.pubkey'),_0x21ad5d=await this['loader']['file'];return _0x549013['upload']({'file':_0x21ad5d,'publicKey':_0x1c840c,'signal':this['controller']['signal'],'onProgress':_0x1c3244=>{_0x1c3244&&_0x1c3244['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1c3244['value']);}})['then'](async _0x469c78=>{const {imageFallbackUrl:_0x3df88c,imageSources:_0x59a3e5}=_0x33d108(_0x469c78['cdnUrl'],_0x469c78['imageInfo']['width']);return{'uploadcareImageId':_0x469c78['uuid'],'default':_0x3df88c,'sources':_0x59a3e5};})['catch'](()=>{const _0x465418=t('Cannot\x20upload\x20file:')+('\x20'+_0x21ad5d['name']+'.');return Promise['reject'](_0x465418);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x368fc4}from'../uploadcareconfig.js';export function getTranslation(_0x2a1ebc,_0x1a0c85,_0x4144f4){const t=_0x2a1ebc['t'],_0x5c746d=_0x2a1ebc['t'];switch(_0x1a0c85){case _0x368fc4['Local']:return{'text':_0x5c746d('Insert'===_0x4144f4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5c746d('From\x20computer')};case _0x368fc4['URL']:return{'text':'Insert'===_0x4144f4?_0x5c746d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5c746d('Via\x20URL')};case _0x368fc4['Dropbox']:return{'text':t('Insert'===_0x4144f4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x368fc4['Facebook']:return{'text':t('Insert'===_0x4144f4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x368fc4['GDrive']:return{'text':t('Insert'===_0x4144f4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x368fc4['GPhotos']:return{'text':t('Insert'===_0x4144f4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x368fc4['OneDrive']:return{'text':t('Insert'===_0x4144f4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1a0c85;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x4f1541=_0x4dcd;function _0x4dcd(_0x551e48,_0x2075c1){var _0x4c61e4=_0x4c61();return _0x4dcd=function(_0x4dcdb4,_0x186655){_0x4dcdb4=_0x4dcdb4-0xd8;var _0x279beb=_0x4c61e4[_0x4dcdb4];return _0x279beb;},_0x4dcd(_0x551e48,_0x2075c1);}(function(_0x59018a,_0x4c6c76){var _0x379a66=_0x4dcd,_0x207edc=_0x59018a();while(!![]){try{var _0x36ea99=-parseInt(_0x379a66(0xe9))/0x1*(-parseInt(_0x379a66(0xe8))/0x2)+-parseInt(_0x379a66(0xe5))/0x3*(-parseInt(_0x379a66(0xea))/0x4)+-parseInt(_0x379a66(0xe2))/0x5+-parseInt(_0x379a66(0xe4))/0x6+-parseInt(_0x379a66(0xde))/0x7*(parseInt(_0x379a66(0xe1))/0x8)+parseInt(_0x379a66(0xd8))/0x9+parseInt(_0x379a66(0xe0))/0xa;if(_0x36ea99===_0x4c6c76)break;else _0x207edc['push'](_0x207edc['shift']());}catch(_0x398981){_0x207edc['push'](_0x207edc['shift']());}}}(_0x4c61,0x1dfeb));import{FocusTracker as _0x1e7eed}from'ckeditor5/src/utils.js';function _0x4c61(){var _0x1e6a79=['2874760gsNowq','39768xCQPRZ','1106445ojZIgj','div','1247142wbHgvf','3LANeRs','fire','createCollection','97618KhkERY','5zSOWMx','219720DnzobR','1792719GOMpTN','forwardCycle','bindTemplate','focusCycler','focusTracker','true','329bTmHAw','getFocusableElement'];_0x4c61=function(){return _0x1e6a79;};return _0x4c61();}import{View as _0x5034af,FocusCycler as _0x2d8fb6}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x5034af{[_0x4f1541(0xdc)];[_0x4f1541(0xdb)];constructor(_0x1d26ae){var _0x17c3dc=_0x4f1541;super(_0x1d26ae),this[_0x17c3dc(0xdc)]=new _0x1e7eed(),this[_0x17c3dc(0xdb)]=new _0x2d8fb6({'focusables':this[_0x17c3dc(0xe7)](),'focusTracker':this[_0x17c3dc(0xdc)]});}[_0x4f1541(0xdf)](){var _0x3e45c2=_0x4f1541;return{'tag':_0x3e45c2(0xe3),'attributes':{'aria-hidden':_0x3e45c2(0xdd),'tabindex':'0'},'on':{'focus':this[_0x3e45c2(0xda)]['to'](()=>{var _0x39aaa8=_0x3e45c2;this[_0x39aaa8(0xdb)][_0x39aaa8(0xe6)](_0x39aaa8(0xd9));})}};}}
|