@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.2 → 45.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f9bb5=_0x331e;(function(_0xec59e9,_0x5ae11f){const _0xc714ae=_0x331e,_0x574558=_0xec59e9();while(!![]){try{const _0x42f895=parseInt(_0xc714ae(0x199))/0x1*(parseInt(_0xc714ae(0x1ba))/0x2)+-parseInt(_0xc714ae(0x1af))/0x3+-parseInt(_0xc714ae(0x187))/0x4+parseInt(_0xc714ae(0x1b2))/0x5*(parseInt(_0xc714ae(0x1a6))/0x6)+parseInt(_0xc714ae(0x1b5))/0x7*(-parseInt(_0xc714ae(0x1c9))/0x8)+-parseInt(_0xc714ae(0x18c))/0x9*(-parseInt(_0xc714ae(0x180))/0xa)+-parseInt(_0xc714ae(0x1c7))/0xb*(-parseInt(_0xc714ae(0x186))/0xc);if(_0x42f895===_0x5ae11f)break;else _0x574558['push'](_0x574558['shift']());}catch(_0x12d268){_0x574558['push'](_0x574558['shift']());}}}(_0x2dc8,0xe584e));import{Plugin as _0x5838bc}from'ckeditor5/src/core.js';function _0x331e(_0x12e287,_0x36301e){const _0x2dc89c=_0x2dc8();return _0x331e=function(_0x331e42,_0x2a6664){_0x331e42=_0x331e42-0x177;let _0x572ce0=_0x2dc89c[_0x331e42];return _0x572ce0;},_0x331e(_0x12e287,_0x36301e);}import{Dialog as _0x8fc631}from'ckeditor5/src/ui.js';function _0x2dc8(){const _0x3e4c1e=['insertImage','uploadcareImageReplace','once','142219UCWHFW','pluginName','34568yMUvZp','_initConfig','replaceImageSource','imageInline','imageBlock','editor','fromCharCode','UploadcareEditing','_initSchema','commands','config','extend','listenTo','3808260nvBvBp','true','uc-upload-ctx-provider','removeAttribute','view','for','2076GPQZEt','4968436LHYCgN','iconHrefResolver','body','map','ctxElement','27kACIev','uploadcare','appendChild','requires','_ctxElement','isOfficialPlugin','selection','_initCtx','destroy','getSelectedElement','elementToAttribute','document','remove','1GigVBu','downcast','afterInit','uploadcare.uploader','conversion','get','upcast','contentLanguage','\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','execute','configElement','href','render','654nDesxk','_configElement','input[uploadcare-file-input]','cleanupImage','model','getAttribute','init','isRegistered','data-uc-image-id','2259162QuPWzU','_initImageProcessingIndicator','attributeToAttribute','27235BNvVSi','schema','uploader','2590ZRdDzS','locale','closeMax','querySelector','add','1122250QSWMwa','uc-config','#uc-icon-arrow-down','uploadcareImageId','editing','join','_initConversion','PictureEditing','uploadcare.pubkey','isPremiumPlugin'];_0x2dc8=function(){return _0x3e4c1e;};return _0x2dc8();}import{createElement as _0x39433c,global as _0x5d3558,uid as _0x3b39dd}from'ckeditor5/src/utils.js';import _0x5192e1 from'./uploadcarecommand.js';import _0x3e72a9 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2dca9a}from'./utils/editingutils.js';export default class i extends _0x5838bc{[_0x4f9bb5(0x1a7)]=null;[_0x4f9bb5(0x190)]=null;static get[_0x4f9bb5(0x1c8)](){const _0x584750=_0x4f9bb5;return _0x584750(0x17a);}static get[_0x4f9bb5(0x18f)](){const _0x435186=_0x4f9bb5;return[_0x435186(0x1c1),_0x3e72a9,_0x8fc631];}static get[_0x4f9bb5(0x191)](){return!0x0;}static get[_0x4f9bb5(0x1c3)](){return!0x0;}get[_0x4f9bb5(0x1a3)](){const _0x22f7c7=_0x4f9bb5;return this[_0x22f7c7(0x1a7)];}get[_0x4f9bb5(0x18b)](){const _0x43b623=_0x4f9bb5;return this[_0x43b623(0x190)];}[_0x4f9bb5(0x1ac)](){const _0xeaedcd=_0x4f9bb5,_0x2b6a6c=this[_0xeaedcd(0x178)];_0x2b6a6c[_0xeaedcd(0x17c)][_0xeaedcd(0x1b9)](_0xeaedcd(0x18d),new _0x5192e1(_0x2b6a6c));}[_0x4f9bb5(0x19b)](){const _0x5e121f=_0x4f9bb5;this[_0x5e121f(0x17b)](),this[_0x5e121f(0x1c0)](),this[_0x5e121f(0x1ca)](),this[_0x5e121f(0x193)](),this[_0x5e121f(0x1b0)](),this[_0x5e121f(0x17f)](this[_0x5e121f(0x178)],_0x5e121f(0x194),()=>{const _0x275fd7=_0x5e121f;this[_0x275fd7(0x1a7)]&&(this[_0x275fd7(0x1a7)][_0x275fd7(0x198)](),this[_0x275fd7(0x1a7)]=null),this[_0x275fd7(0x190)]&&(this[_0x275fd7(0x190)][_0x275fd7(0x198)](),this[_0x275fd7(0x190)]=null);const _0x20cc32=_0x5d3558[_0x275fd7(0x197)][_0x275fd7(0x1b8)](_0x275fd7(0x1a8));_0x20cc32&&_0x20cc32[_0x275fd7(0x198)]();}),async function(_0x485302){const _0x51f1b5=_0x4d890a([0x35,0x39,0x38,0x68,0x5a,0x73,0x56,0x76,0x7a,0x6b,0x63,0x62,0x48,0x44,0x55,0x71,0x47,0x6d,0x4a,0x4e,0x45,0x42,0x72,0x66,0x58,0x32,0x67,0x65,0x75,0x57,0x64,0x77,0x78,0x30,0x54,0x34,0x33,0x46,0x51,0x31,0x4c,0x43,0x59,0x4d,0x50,0x6e,0x53,0x79,0x4f,0x36,0x49,0x74,0x4b,0x37,0x6f,0x69,0x6c,0x52,0x6a,0x41,0x70,0x61]),_0x58a4fb=0x2ad0fb91,_0x46292b=0x2ad798f9^_0x58a4fb,_0xb8455c=window[_0x4d890a([0x44,0x61,0x74,0x65])][_0x4d890a([0x6e,0x6f,0x77])](),_0x15e7d7=_0x485302[_0x4d890a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46e710=new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486ed0=>{_0x15e7d7[_0x4d890a([0x6f,0x6e,0x63,0x65])](_0x4d890a([0x72,0x65,0x61,0x64,0x79]),_0x486ed0);}),_0x21e2c3={[_0x4d890a([0x6b,0x74,0x79])]:_0x4d890a([0x45,0x43]),[_0x4d890a([0x75,0x73,0x65])]:_0x4d890a([0x73,0x69,0x67]),[_0x4d890a([0x63,0x72,0x76])]:_0x4d890a([0x50,0x2d,0x32,0x35,0x36]),[_0x4d890a([0x78])]:_0x4d890a([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]),[_0x4d890a([0x79])]:_0x4d890a([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]),[_0x4d890a([0x61,0x6c,0x67])]:_0x4d890a([0x45,0x53,0x32,0x35,0x36])},_0x1f23ac=_0x15e7d7[_0x4d890a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d890a([0x67,0x65,0x74])](_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2862f9(){let _0x162b63,_0x30ae8a=null,_0x396c42=null;try{if(_0x1f23ac==_0x4d890a([0x47,0x50,0x4c]))return _0x4d890a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x162b63=_0x5e0de1(),!_0x162b63)return _0x4d890a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x162b63[_0x4d890a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x396c42=_0x5c5eed(_0x162b63[_0x4d890a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x162b63[_0x4d890a([0x6a,0x74,0x69])])),await _0x168f77()?_0x44ee17()?_0x4d957d()?_0x4d890a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x335ac7()?(_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d890a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30ae8a=_0x3a8621(_0x4d890a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d890a([0x74,0x72,0x69,0x61,0x6c])&&(_0x30ae8a=_0x3a8621(_0x4d890a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5785e9()):_0x4d890a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d890a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d890a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54fdb3){return _0x4d890a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d957d(){const _0x16bf68=[_0x4d890a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d890a([0x74,0x72,0x69,0x61,0x6c])][_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb8455c/0x3e8:0xe10*_0x46292b;return _0x162b63[_0x4d890a([0x65,0x78,0x70])]<_0x16bf68;}function _0x44ee17(){const _0x56adb8=_0x162b63[_0x4d890a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56adb8&&(!!_0x56adb8[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d890a([0x2a]))||!!_0x56adb8[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d890a([0x55,0x50,0x4c,0x43])));}function _0x335ac7(){const _0x4ebb57=_0x331e,_0xca08e9=_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xca08e9||0x0==_0xca08e9[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x535da2}=new URL(window[_0x4d890a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ebb57(0x1a4)]);if(_0xca08e9[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535da2))return!0x0;const _0x41048f=_0x535da2[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e]));return _0xca08e9[_0x4d890a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e2c31=>_0x4e2c31[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d890a([0x2a])))[_0x4d890a([0x6d,0x61,0x70])](_0x3c8d3a=>_0x3c8d3a[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e])))[_0x4d890a([0x73,0x6f,0x6d,0x65])](_0x328763=>_0x41048f[_0x4d890a([0x65,0x76,0x65,0x72,0x79])]((_0x18a34f,_0x1b4e69)=>_0x328763[_0x1b4e69]===_0x18a34f||_0x328763[_0x1b4e69]===_0x4d890a([0x2a])));}function _0x5785e9(){return _0x30ae8a&&_0x396c42?new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa30732,_0x314bac)=>{_0x30ae8a[_0x4d890a([0x74,0x68,0x65,0x6e])](_0xa30732,_0x314bac),_0x396c42[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x360609=>{_0x360609!=_0x4d890a([0x56,0x61,0x6c,0x69,0x64])&&_0xa30732(_0x360609);},_0x314bac);}):_0x30ae8a||_0x396c42||_0x4d890a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c5eed(_0x5e1917,_0x459e9b){return new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf699e0=>{if(_0x2d11ff())return _0xf699e0(_0x4d890a([0x56,0x61,0x6c,0x69,0x64]));_0x955f75(),_0x15e7d7[_0x4d890a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d890a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11fd60=!0x1;const _0x5601dd=_0x3b39dd();function _0xd98a50(_0x364237){return!!_0x364237&&(typeof _0x364237===_0x4d890a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x364237===_0x4d890a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x364237[_0x4d890a([0x74,0x68,0x65,0x6e])]===_0x4d890a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x364237[_0x4d890a([0x63,0x61,0x74,0x63,0x68])]===_0x4d890a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x929366(_0x3b38ad){_0x363408(_0x3b38ad)[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x52de94=>{if(!_0x52de94||_0x52de94[_0x4d890a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d890a([0x6f,0x6b]))return _0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x158e4f(_0x17567b(_0x5601dd+_0x459e9b))!=_0x52de94[_0x4d890a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d890a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x1a64de=>(_0x1ebdf7(),_0x1a64de),()=>{const _0x65edb5=_0x461fe2();return null==_0x65edb5?(_0x1ebdf7(),_0x4d890a([0x56,0x61,0x6c,0x69,0x64])):_0x4d890a(_0xb8455c-_0x65edb5>(0xedc7f91^_0x58a4fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d890a([0x74,0x68,0x65,0x6e])](_0xf699e0)[_0x4d890a([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf699e0(_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16b6f0=0x2ae61511^_0x58a4fb;function _0x1ebdf7(){const _0x30b792=_0x4d890a([0x6c,0x6c,0x63,0x74,0x2d])+_0x158e4f(_0x17567b(_0x5e1917)),_0x2e39a6=_0x427a3b(_0x158e4f(window[_0x4d890a([0x4d,0x61,0x74,0x68])][_0x4d890a([0x63,0x65,0x69,0x6c])](_0xb8455c/_0x16b6f0)));window[_0x4d890a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d890a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b792,_0x2e39a6);}function _0x461fe2(){const _0x2819cc=_0x4d890a([0x6c,0x6c,0x63,0x74,0x2d])+_0x158e4f(_0x17567b(_0x5e1917)),_0x28daf4=window[_0x4d890a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d890a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2819cc);return _0x28daf4?window[_0x4d890a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x427a3b(_0x28daf4),0x10)*_0x16b6f0:null;}function _0x363408(_0x421513){return new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5473e1,_0x1b9da5)=>{_0x421513[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x5473e1,_0x1b9da5),window[_0x4d890a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b9da5,0x2ad12f51^_0x58a4fb);});}}_0x15e7d7[_0x4d890a([0x6f,0x6e])](_0x4d890a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fd8a9,_0x3d3b61)=>{if(_0x3d3b61[0x0]!=_0x5e1917)return _0xf699e0(_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d3b61[0x1]={..._0x3d3b61[0x1],[_0x4d890a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5601dd};},{[_0x4d890a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d890a([0x68,0x69,0x67,0x68])}),_0x15e7d7[_0x4d890a([0x6f,0x6e])](_0x4d890a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3898a7=>{_0xd98a50(_0x3898a7[_0x4d890a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11fd60=!0x0,_0x929366(_0x3898a7[_0x4d890a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d890a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d890a([0x6c,0x6f,0x77])}),_0x46e710[_0x4d890a([0x74,0x68,0x65,0x6e])](()=>{_0x11fd60||_0xf699e0(_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d11ff(){return _0x15e7d7[_0x4d890a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d890a([0x76,0x69,0x65,0x77])][_0x4d890a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d890a([0x61,0x75,0x74,0x6f]);}function _0x955f75(){_0x15e7d7[_0x4d890a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d890a([0x76,0x69,0x65,0x77])][_0x4d890a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d890a([0x61,0x75,0x74,0x6f]);}}function _0x3a8621(_0x3dcaf0){const _0x550d34=[new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f694c=>setTimeout(_0x4f694c,0x2ad9c55d^_0x58a4fb)),_0x46e710[_0x4d890a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0827=>{let _0x5ed74f=0x0;_0x15e7d7[_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d890a([0x6f,0x6e])](_0x4d890a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xdb5876,_0x2c754b)=>{_0x2c754b[0x0][_0x4d890a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ed74f++,_0x5ed74f==(0x2ad0fa69^_0x58a4fb)&&(_0x1c0827(),_0xdb5876[_0x4d890a([0x6f,0x66,0x66])]());});}))];return window[_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d890a([0x72,0x61,0x63,0x65])](_0x550d34)[_0x4d890a([0x74,0x68,0x65,0x6e])](()=>_0x3dcaf0);}async function _0x28a2c0(){await _0x46e710,_0x15e7d7[_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d890a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51a6eb,_0x15e7d7[_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d890a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51a6eb,_0x15e7d7[_0x4d890a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ac5f2(_0x3e743b){const _0xfda2c4=_0x1daebd();_0x15e7d7[_0xfda2c4]=_0x4d890a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e743b,_0x3e743b!=_0x4d890a([0x56,0x61,0x6c,0x69,0x64])&&_0x28a2c0();}function _0x1daebd(){const _0x1918ff=window[_0x4d890a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d890a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d890a([0x6e,0x6f,0x77])]())[_0x4d890a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d890a([0x2e]),'');let _0x1d5917=_0x4d890a([0x68]);for(let _0x3e3197=0x0;_0x3e3197<_0x1918ff[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e3197+=0x2){let _0x46cd5a=window[_0x4d890a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1918ff[_0x4d890a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3197,_0x3e3197+0x2));_0x46cd5a>=_0x51f1b5[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46cd5a-=_0x51f1b5[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d5917+=_0x51f1b5[_0x46cd5a];}return _0x1d5917;}function _0x5e0de1(){const _0x3a8e8f=_0x1f23ac[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e]));if(0x3!=_0x3a8e8f[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x361cc4(_0x3a8e8f[0x1]);function _0x361cc4(_0x41da8a){const _0x3f6805=_0x3a5f2e(_0x41da8a);return _0x3f6805&&_0x117cbe()?_0x3f6805:null;function _0x117cbe(){const _0x4075e6=_0x3f6805[_0x4d890a([0x6a,0x74,0x69])],_0x2e1923=window[_0x4d890a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4075e6[_0x4d890a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4075e6[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ec7b5={..._0x3f6805,[_0x4d890a([0x6a,0x74,0x69])]:_0x4075e6[_0x4d890a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4075e6[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ec7b5[_0x4d890a([0x76,0x63])],_0x17567b(_0x4ec7b5)==_0x2e1923;}}}async function _0x168f77(){let _0x167128=!0x0;try{const _0x18f0ff=_0x1f23ac[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e])),[_0x294e43,_0x3766df,_0x25d188]=_0x18f0ff;return _0x47b691(_0x294e43),await _0x4d37dd(_0x294e43,_0x3766df,_0x25d188),_0x167128;}catch(_0x5819ab){return!0x1;}function _0x47b691(_0x1238ec){const _0x2c4724=_0x3a5f2e(_0x1238ec);_0x2c4724&&_0x2c4724[_0x4d890a([0x61,0x6c,0x67])]==_0x4d890a([0x45,0x53,0x32,0x35,0x36])||(_0x167128=!0x1);}async function _0x4d37dd(_0x4ab28f,_0x3cb494,_0x2ce802){const _0x594e12=window[_0x4d890a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d890a([0x66,0x72,0x6f,0x6d])](_0x42d9d5(_0x2ce802),_0x10f147=>_0x10f147[_0x4d890a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35fc0a=new window[(_0x4d890a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d890a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ab28f+_0x4d890a([0x2e])+_0x3cb494),_0x4aa9ad=window[_0x4d890a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d890a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4aa9ad)return;const _0x5de96a=await _0x4aa9ad[_0x4d890a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d890a([0x6a,0x77,0x6b]),_0x21e2c3,{[_0x4d890a([0x6e,0x61,0x6d,0x65])]:_0x4d890a([0x45,0x43,0x44,0x53,0x41]),[_0x4d890a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d890a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d890a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4aa9ad[_0x4d890a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d890a([0x6e,0x61,0x6d,0x65])]:_0x4d890a([0x45,0x43,0x44,0x53,0x41]),[_0x4d890a([0x68,0x61,0x73,0x68])]:{[_0x4d890a([0x6e,0x61,0x6d,0x65])]:_0x4d890a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5de96a,_0x594e12,_0x35fc0a)||(_0x167128=!0x1);}}function _0x3a5f2e(_0x38b416){return _0x38b416[_0x4d890a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d890a([0x65,0x79]))?JSON[_0x4d890a([0x70,0x61,0x72,0x73,0x65])](_0x42d9d5(_0x38b416)):null;}function _0x42d9d5(_0x2f291e){return window[_0x4d890a([0x61,0x74,0x6f,0x62])](_0x2f291e[_0x4d890a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d890a([0x2b]))[_0x4d890a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d890a([0x2f])));}function _0x17567b(_0x4b69e6){let _0x15f1fc=0x1505;function _0x53ec3c(_0x3c46b8){for(let _0xabe1ed=0x0;_0xabe1ed<_0x3c46b8[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xabe1ed++){const _0x53b714=_0x3c46b8[_0x4d890a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xabe1ed);_0x15f1fc=(_0x15f1fc<<0x5)+_0x15f1fc+_0x53b714,_0x15f1fc&=_0x15f1fc;}}function _0x2ee597(_0x5aed51){Array[_0x4d890a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5aed51)?_0x5aed51[_0x4d890a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ee597):_0x5aed51&&typeof _0x5aed51==_0x4d890a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d890a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5aed51)[_0x4d890a([0x73,0x6f,0x72,0x74])]()[_0x4d890a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x384f6b,_0x2610ce])=>{_0x53ec3c(_0x384f6b),_0x2ee597(_0x2610ce);}):_0x53ec3c(window[_0x4d890a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5aed51));}return _0x2ee597(_0x4b69e6),_0x15f1fc>>>0x0;}function _0x158e4f(_0x549247){return _0x549247[_0x4d890a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d890a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d890a([0x30]));}function _0x427a3b(_0x3b522c){return _0x3b522c[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d890a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d890a([0x6a,0x6f,0x69,0x6e])]('');}function _0x51a6eb(){}function _0x4d890a(_0xcabf33){const _0x3431ea=_0x331e;return _0xcabf33[_0x3431ea(0x18a)](_0x29c1fa=>String[_0x3431ea(0x179)](_0x29c1fa))[_0x3431ea(0x1bf)]('');}_0x2ac5f2(await _0x2862f9());}(this);}[_0x4f9bb5(0x17b)](){const _0x475281=_0x4f9bb5,_0x386587=this[_0x475281(0x178)][_0x475281(0x1aa)][_0x475281(0x1b3)];_0x386587[_0x475281(0x1ad)](_0x475281(0x177))&&_0x386587[_0x475281(0x17e)](_0x475281(0x177),{'allowAttributes':[_0x475281(0x1bd)]}),_0x386587[_0x475281(0x1ad)](_0x475281(0x1cc))&&_0x386587[_0x475281(0x17e)](_0x475281(0x1cc),{'allowAttributes':[_0x475281(0x1bd)]});}[_0x4f9bb5(0x1c0)](){const _0x16969a=_0x4f9bb5,_0x29472e=this[_0x16969a(0x178)];_0x29472e[_0x16969a(0x19d)][_0x16969a(0x185)](_0x16969a(0x19a))[_0x16969a(0x1b1)]({'model':_0x16969a(0x1bd),'view':_0x16969a(0x1ae)}),_0x29472e[_0x16969a(0x19d)][_0x16969a(0x185)](_0x16969a(0x19f))[_0x16969a(0x196)]({'model':{'key':_0x16969a(0x1bd),'value':_0xa6e14e=>_0xa6e14e[_0x16969a(0x1ab)](_0x16969a(0x1ae))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4527e1=_0x29472e[_0x16969a(0x17c)][_0x16969a(0x19e)](_0x16969a(0x1cb));_0x4527e1&&this[_0x16969a(0x17f)](_0x4527e1,_0x16969a(0x1a9),(_0x1fcb00,[_0x1d0b0d,_0x1729e2])=>{const _0x4fec06=_0x16969a;_0x1d0b0d[_0x4fec06(0x183)](_0x4fec06(0x1bd),_0x1729e2);});}[_0x4f9bb5(0x1ca)](){const _0x4ff3b9=_0x4f9bb5,_0x89c09c=this[_0x4ff3b9(0x178)][_0x4ff3b9(0x17d)][_0x4ff3b9(0x19e)](_0x4ff3b9(0x19c))||{},_0x2e2915=this[_0x4ff3b9(0x178)][_0x4ff3b9(0x17d)][_0x4ff3b9(0x19e)](_0x4ff3b9(0x1c2))||'';this[_0x4ff3b9(0x1a7)]=_0x39433c(_0x5d3558[_0x4ff3b9(0x197)],_0x4ff3b9(0x1bb),{..._0x89c09c,'pubkey':_0x2e2915,'ctx-name':_0x4ff3b9(0x1b4),'sourceList':'','imgOnly':_0x4ff3b9(0x181),'removeCopyright':_0x4ff3b9(0x181),'localeName':this[_0x4ff3b9(0x178)][_0x4ff3b9(0x1b6)][_0x4ff3b9(0x1a0)],'externalSourcesEmbedCss':_0x4ff3b9(0x1a1)}),this[_0x4ff3b9(0x1a7)][_0x4ff3b9(0x188)]=_0x572895=>{const _0x644355=_0x4ff3b9;if(_0x644355(0x1b7)==_0x572895)return _0x644355(0x1bc);},_0x5d3558[_0x4ff3b9(0x197)][_0x4ff3b9(0x189)][_0x4ff3b9(0x18e)](this[_0x4ff3b9(0x1a7)]);}[_0x4f9bb5(0x193)](){const _0x181722=_0x4f9bb5;this[_0x181722(0x190)]=_0x39433c(_0x5d3558[_0x181722(0x197)],_0x181722(0x182),{'ctx-name':_0x181722(0x1b4)}),_0x5d3558[_0x181722(0x197)][_0x181722(0x189)][_0x181722(0x18e)](this[_0x181722(0x190)]);}[_0x4f9bb5(0x1b0)](){const _0x3921e9=_0x4f9bb5,_0x46b77b=this[_0x3921e9(0x178)][_0x3921e9(0x17c)][_0x3921e9(0x19e)](_0x3921e9(0x1c4));_0x46b77b&&this[_0x3921e9(0x17f)](_0x46b77b,_0x3921e9(0x1a2),()=>{const _0x2c6f2e=_0x3921e9,_0xb60068=this[_0x2c6f2e(0x178)][_0x2c6f2e(0x1aa)][_0x2c6f2e(0x197)][_0x2c6f2e(0x192)][_0x2c6f2e(0x195)]();_0xb60068&&_0xb60068[_0x2c6f2e(0x1ab)](_0x2c6f2e(0x1bd))&&this[_0x2c6f2e(0x178)][_0x2c6f2e(0x1be)][_0x2c6f2e(0x184)][_0x2c6f2e(0x1c6)](_0x2c6f2e(0x1a5),()=>{const _0x171a1f=_0x2c6f2e;_0x2dca9a(this[_0x171a1f(0x178)],_0xb60068);});});const _0x2df471=this[_0x3921e9(0x178)][_0x3921e9(0x17c)][_0x3921e9(0x19e)](_0x3921e9(0x1c5));_0x2df471&&this[_0x3921e9(0x17f)](_0x2df471,_0x3921e9(0x1a2),()=>{const _0x2af1fc=_0x3921e9,_0x529b8c=this[_0x2af1fc(0x178)][_0x2af1fc(0x1aa)][_0x2af1fc(0x197)][_0x2af1fc(0x192)][_0x2af1fc(0x195)]();_0x529b8c&&_0x529b8c[_0x2af1fc(0x1ab)](_0x2af1fc(0x1bd))&&this[_0x2af1fc(0x178)][_0x2af1fc(0x1be)][_0x2af1fc(0x184)][_0x2af1fc(0x1c6)](_0x2af1fc(0x1a5),()=>{const _0x5419af=_0x2af1fc;_0x2dca9a(this[_0x5419af(0x178)],_0x529b8c);});});}}
|
|
23
|
+
const _0xef34a=_0x1955;function _0x10bb(){const _0x523ab8=['iconHrefResolver','once','closeMax','3575128TsLqYd','isPremiumPlugin','editor','href','getSelectedElement','1688010NGDEyb','downcast','UploadcareEditing','map','33xOJwAm','_initCtx','uploadcare.uploader','_ctxElement','destroy','uploader','afterInit','uploadcare','PictureEditing','_configElement','requires','true','body','locale','replaceImageSource','400212zwrDiN','getAttribute','15ejisoB','_initConversion','removeAttribute','editing','input[uploadcare-file-input]','document','uc-upload-ctx-provider','imageInline','cleanupImage','get','uc-config','_initSchema','upcast','isOfficialPlugin','commands','selection','contentLanguage','elementToAttribute','extend','#uc-icon-arrow-down','config','_initConfig','execute','view','for','insertImage','model','remove','pluginName','uploadcare.pubkey','isRegistered','5UmXNzW','uploadcareImageId','26362rsehYY','9246sLPJeV','appendChild','1883EZprkX','uploadcareImageReplace','_initImageProcessingIndicator','querySelector','534938BkGzMT','data-uc-image-id','add','attributeToAttribute','15944460StFYIQ','conversion','render','\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','init','configElement','join','schema','imageBlock','24uVolwX','ctxElement','listenTo','fromCharCode'];_0x10bb=function(){return _0x523ab8;};return _0x10bb();}function _0x1955(_0x3f30bc,_0x1dbd11){const _0x10bbcf=_0x10bb();return _0x1955=function(_0x195510,_0x2b98cc){_0x195510=_0x195510-0x11f;let _0x150705=_0x10bbcf[_0x195510];return _0x150705;},_0x1955(_0x3f30bc,_0x1dbd11);}(function(_0x387e05,_0xeaaa49){const _0x46abe7=_0x1955,_0x2304f5=_0x387e05();while(!![]){try{const _0x3d8f3b=-parseInt(_0x46abe7(0x134))/0x1+-parseInt(_0x46abe7(0x12d))/0x2*(parseInt(_0x46abe7(0x162))/0x3)+-parseInt(_0x46abe7(0x148))/0x4*(parseInt(_0x46abe7(0x12b))/0x5)+parseInt(_0x46abe7(0x12e))/0x6*(parseInt(_0x46abe7(0x130))/0x7)+parseInt(_0x46abe7(0x141))/0x8*(-parseInt(_0x46abe7(0x160))/0x9)+-parseInt(_0x46abe7(0x14d))/0xa*(-parseInt(_0x46abe7(0x151))/0xb)+parseInt(_0x46abe7(0x138))/0xc;if(_0x3d8f3b===_0xeaaa49)break;else _0x2304f5['push'](_0x2304f5['shift']());}catch(_0x58d66c){_0x2304f5['push'](_0x2304f5['shift']());}}}(_0x10bb,0x97c28));import{Plugin as _0x142449}from'ckeditor5/src/core.js';import{Dialog as _0x3f3287}from'ckeditor5/src/ui.js';import{createElement as _0x1c7aad,global as _0x336f41,uid as _0x1e5471}from'ckeditor5/src/utils.js';import _0x3df220 from'./uploadcarecommand.js';import _0x3a6c18 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2239df}from'./utils/editingutils.js';export default class i extends _0x142449{[_0xef34a(0x15a)]=null;[_0xef34a(0x154)]=null;static get[_0xef34a(0x128)](){const _0x208d73=_0xef34a;return _0x208d73(0x14f);}static get[_0xef34a(0x15b)](){const _0x49a58f=_0xef34a;return[_0x49a58f(0x159),_0x3a6c18,_0x3f3287];}static get[_0xef34a(0x16f)](){return!0x0;}static get[_0xef34a(0x149)](){return!0x0;}get[_0xef34a(0x13d)](){const _0x243283=_0xef34a;return this[_0x243283(0x15a)];}get[_0xef34a(0x142)](){const _0x45ca7d=_0xef34a;return this[_0x45ca7d(0x154)];}[_0xef34a(0x13c)](){const _0x21ffba=_0xef34a,_0x4f1c34=this[_0x21ffba(0x14a)];_0x4f1c34[_0x21ffba(0x170)][_0x21ffba(0x136)](_0x21ffba(0x158),new _0x3df220(_0x4f1c34));}[_0xef34a(0x157)](){const _0x4c4281=_0xef34a;this[_0x4c4281(0x16d)](),this[_0x4c4281(0x163)](),this[_0x4c4281(0x121)](),this[_0x4c4281(0x152)](),this[_0x4c4281(0x132)](),this[_0x4c4281(0x143)](this[_0x4c4281(0x14a)],_0x4c4281(0x155),()=>{const _0x5edb3b=_0x4c4281;this[_0x5edb3b(0x15a)]&&(this[_0x5edb3b(0x15a)][_0x5edb3b(0x127)](),this[_0x5edb3b(0x15a)]=null),this[_0x5edb3b(0x154)]&&(this[_0x5edb3b(0x154)][_0x5edb3b(0x127)](),this[_0x5edb3b(0x154)]=null);const _0x11e6b4=_0x336f41[_0x5edb3b(0x167)][_0x5edb3b(0x133)](_0x5edb3b(0x166));_0x11e6b4&&_0x11e6b4[_0x5edb3b(0x127)]();}),async function(_0x4e9117){const _0x7dfc14=_0x21718e([0x52,0x39,0x48,0x42,0x57,0x4c,0x5a,0x6c,0x44,0x62,0x53,0x71,0x6a,0x68,0x78,0x59,0x61,0x33,0x38,0x7a,0x67,0x65,0x63,0x37,0x73,0x32,0x41,0x70,0x56,0x49,0x64,0x66,0x6d,0x4e,0x54,0x31,0x76,0x69,0x74,0x4f,0x43,0x72,0x6b,0x6f,0x4a,0x34,0x4b,0x77,0x58,0x51,0x46,0x35,0x6e,0x36,0x75,0x4d,0x79,0x45,0x47,0x50,0x30,0x55]),_0x476ed5=0x516c9fbc,_0x4c65e7=0x516bfc24^_0x476ed5,_0x53dbce=window[_0x21718e([0x44,0x61,0x74,0x65])][_0x21718e([0x6e,0x6f,0x77])](),_0x4d8b89=_0x4e9117[_0x21718e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c63ad=new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7869=>{_0x4d8b89[_0x21718e([0x6f,0x6e,0x63,0x65])](_0x21718e([0x72,0x65,0x61,0x64,0x79]),_0x1c7869);}),_0x3cec4b={[_0x21718e([0x6b,0x74,0x79])]:_0x21718e([0x45,0x43]),[_0x21718e([0x75,0x73,0x65])]:_0x21718e([0x73,0x69,0x67]),[_0x21718e([0x63,0x72,0x76])]:_0x21718e([0x50,0x2d,0x32,0x35,0x36]),[_0x21718e([0x78])]:_0x21718e([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]),[_0x21718e([0x79])]:_0x21718e([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]),[_0x21718e([0x61,0x6c,0x67])]:_0x21718e([0x45,0x53,0x32,0x35,0x36])},_0x5c9767=_0x4d8b89[_0x21718e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21718e([0x67,0x65,0x74])](_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d2b44(){let _0x2ea88b,_0x1d9090=null,_0x97edb9=null;try{if(_0x5c9767==_0x21718e([0x47,0x50,0x4c]))return _0x21718e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ea88b=_0x564266(),!_0x2ea88b)return _0x21718e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ea88b[_0x21718e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x97edb9=_0x528f75(_0x2ea88b[_0x21718e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ea88b[_0x21718e([0x6a,0x74,0x69])])),await _0x2f5f45()?_0x18295b()?_0x18629b()?_0x21718e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dac91()?(_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21718e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d9090=_0x173560(_0x21718e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21718e([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d9090=_0x173560(_0x21718e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1232ba()):_0x21718e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21718e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21718e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x543bec){return _0x21718e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18629b(){const _0x5df303=[_0x21718e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21718e([0x74,0x72,0x69,0x61,0x6c])][_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53dbce/0x3e8:0xe10*_0x4c65e7;return _0x2ea88b[_0x21718e([0x65,0x78,0x70])]<_0x5df303;}function _0x18295b(){const _0x472393=_0x2ea88b[_0x21718e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x472393&&(!!_0x472393[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21718e([0x2a]))||!!_0x472393[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21718e([0x55,0x50,0x4c,0x43])));}function _0x4dac91(){const _0x4f1660=_0x1955,_0x57ced3=_0x2ea88b[_0x21718e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57ced3||0x0==_0x57ced3[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f65a5}=new URL(window[_0x21718e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4f1660(0x14b)]);if(_0x57ced3[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f65a5))return!0x0;const _0x5a59f2=_0x1f65a5[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e]));return _0x57ced3[_0x21718e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31bd51=>_0x31bd51[_0x21718e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21718e([0x2a])))[_0x21718e([0x6d,0x61,0x70])](_0x4f6eed=>_0x4f6eed[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e])))[_0x21718e([0x73,0x6f,0x6d,0x65])](_0x4b5586=>_0x5a59f2[_0x21718e([0x65,0x76,0x65,0x72,0x79])]((_0x2e40eb,_0x2e706f)=>_0x4b5586[_0x2e706f]===_0x2e40eb||_0x4b5586[_0x2e706f]===_0x21718e([0x2a])));}function _0x1232ba(){return _0x1d9090&&_0x97edb9?new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x161c1f,_0x1e4743)=>{_0x1d9090[_0x21718e([0x74,0x68,0x65,0x6e])](_0x161c1f,_0x1e4743),_0x97edb9[_0x21718e([0x74,0x68,0x65,0x6e])](_0xb075ee=>{_0xb075ee!=_0x21718e([0x56,0x61,0x6c,0x69,0x64])&&_0x161c1f(_0xb075ee);},_0x1e4743);}):_0x1d9090||_0x97edb9||_0x21718e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x528f75(_0x2dffa6,_0x12596f){return new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a6eca=>{if(_0x4123be())return _0x1a6eca(_0x21718e([0x56,0x61,0x6c,0x69,0x64]));_0x186916(),_0x4d8b89[_0x21718e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21718e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16e577=!0x1;const _0x57a2ee=_0x1e5471();function _0x1f6a71(_0x14d82d){return!!_0x14d82d&&(typeof _0x14d82d===_0x21718e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14d82d===_0x21718e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14d82d[_0x21718e([0x74,0x68,0x65,0x6e])]===_0x21718e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14d82d[_0x21718e([0x63,0x61,0x74,0x63,0x68])]===_0x21718e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39c6eb(_0x37d3d4){_0x363a4b(_0x37d3d4)[_0x21718e([0x74,0x68,0x65,0x6e])](_0x24334a=>{if(!_0x24334a||_0x24334a[_0x21718e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21718e([0x6f,0x6b]))return _0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x554c7a(_0x45c94e(_0x57a2ee+_0x12596f))!=_0x24334a[_0x21718e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21718e([0x56,0x61,0x6c,0x69,0x64]);})[_0x21718e([0x74,0x68,0x65,0x6e])](_0x5bd8ca=>(_0x307d0f(),_0x5bd8ca),()=>{const _0x1d5035=_0x30bf16();return null==_0x1d5035?(_0x307d0f(),_0x21718e([0x56,0x61,0x6c,0x69,0x64])):_0x21718e(_0x53dbce-_0x1d5035>(0x75601bbc^_0x476ed5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21718e([0x74,0x68,0x65,0x6e])](_0x1a6eca)[_0x21718e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a6eca(_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28ffc6=0x515a713c^_0x476ed5;function _0x307d0f(){const _0x564e14=_0x21718e([0x6c,0x6c,0x63,0x74,0x2d])+_0x554c7a(_0x45c94e(_0x2dffa6)),_0x4cb9fb=_0x1ee517(_0x554c7a(window[_0x21718e([0x4d,0x61,0x74,0x68])][_0x21718e([0x63,0x65,0x69,0x6c])](_0x53dbce/_0x28ffc6)));window[_0x21718e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21718e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x564e14,_0x4cb9fb);}function _0x30bf16(){const _0x2660f5=_0x21718e([0x6c,0x6c,0x63,0x74,0x2d])+_0x554c7a(_0x45c94e(_0x2dffa6)),_0x418d98=window[_0x21718e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21718e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2660f5);return _0x418d98?window[_0x21718e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee517(_0x418d98),0x10)*_0x28ffc6:null;}function _0x363a4b(_0x5d0cf1){return new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50331d,_0x12835a)=>{_0x5d0cf1[_0x21718e([0x74,0x68,0x65,0x6e])](_0x50331d,_0x12835a),window[_0x21718e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12835a,0x516d4b7c^_0x476ed5);});}}_0x4d8b89[_0x21718e([0x6f,0x6e])](_0x21718e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28b5e5,_0x285a37)=>{if(_0x285a37[0x0]!=_0x2dffa6)return _0x1a6eca(_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x285a37[0x1]={..._0x285a37[0x1],[_0x21718e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57a2ee};},{[_0x21718e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21718e([0x68,0x69,0x67,0x68])}),_0x4d8b89[_0x21718e([0x6f,0x6e])](_0x21718e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x464a06=>{_0x1f6a71(_0x464a06[_0x21718e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16e577=!0x0,_0x39c6eb(_0x464a06[_0x21718e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21718e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21718e([0x6c,0x6f,0x77])}),_0x5c63ad[_0x21718e([0x74,0x68,0x65,0x6e])](()=>{_0x16e577||_0x1a6eca(_0x21718e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4123be(){return _0x4d8b89[_0x21718e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21718e([0x76,0x69,0x65,0x77])][_0x21718e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21718e([0x61,0x75,0x74,0x6f]);}function _0x186916(){_0x4d8b89[_0x21718e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21718e([0x76,0x69,0x65,0x77])][_0x21718e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21718e([0x61,0x75,0x74,0x6f]);}}function _0x173560(_0x3de49e){const _0x21ff7b=[new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0981=>setTimeout(_0x5f0981,0x5165a170^_0x476ed5)),_0x5c63ad[_0x21718e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9d45=>{let _0x527bdb=0x0;_0x4d8b89[_0x21718e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21718e([0x6f,0x6e])](_0x21718e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x240a6e,_0x46940b)=>{_0x46940b[0x0][_0x21718e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x527bdb++,_0x527bdb==(0x516c9e44^_0x476ed5)&&(_0x2e9d45(),_0x240a6e[_0x21718e([0x6f,0x66,0x66])]());});}))];return window[_0x21718e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21718e([0x72,0x61,0x63,0x65])](_0x21ff7b)[_0x21718e([0x74,0x68,0x65,0x6e])](()=>_0x3de49e);}async function _0x56c2ee(){await _0x5c63ad,_0x4d8b89[_0x21718e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21718e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27320c,_0x4d8b89[_0x21718e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21718e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27320c,_0x4d8b89[_0x21718e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21718e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57602f(_0xb8d952){const _0x26cd42=_0xf161c9();_0x4d8b89[_0x26cd42]=_0x21718e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb8d952,_0xb8d952!=_0x21718e([0x56,0x61,0x6c,0x69,0x64])&&_0x56c2ee();}function _0xf161c9(){const _0x1e9a22=window[_0x21718e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21718e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21718e([0x6e,0x6f,0x77])]())[_0x21718e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21718e([0x2e]),'');let _0x1ea7be=_0x21718e([0x52]);for(let _0x117c50=0x0;_0x117c50<_0x1e9a22[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x117c50+=0x2){let _0x43449d=window[_0x21718e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e9a22[_0x21718e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x117c50,_0x117c50+0x2));_0x43449d>=_0x7dfc14[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43449d-=_0x7dfc14[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea7be+=_0x7dfc14[_0x43449d];}return _0x1ea7be;}function _0x564266(){const _0x1b3f96=_0x5c9767[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e]));if(0x3!=_0x1b3f96[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5087c4(_0x1b3f96[0x1]);function _0x5087c4(_0x58cb7b){const _0x19249d=_0x14831b(_0x58cb7b);return _0x19249d&&_0x43c585()?_0x19249d:null;function _0x43c585(){const _0xebec15=_0x19249d[_0x21718e([0x6a,0x74,0x69])],_0x585fa0=window[_0x21718e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xebec15[_0x21718e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebec15[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4edcc8={..._0x19249d,[_0x21718e([0x6a,0x74,0x69])]:_0xebec15[_0x21718e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xebec15[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4edcc8[_0x21718e([0x76,0x63])],_0x45c94e(_0x4edcc8)==_0x585fa0;}}}async function _0x2f5f45(){let _0x4c8229=!0x0;try{const _0x36893f=_0x5c9767[_0x21718e([0x73,0x70,0x6c,0x69,0x74])](_0x21718e([0x2e])),[_0x416aab,_0x31ee5a,_0x548370]=_0x36893f;return _0x3498d2(_0x416aab),await _0x47a676(_0x416aab,_0x31ee5a,_0x548370),_0x4c8229;}catch(_0x283d93){return!0x1;}function _0x3498d2(_0x294968){const _0x1de46f=_0x14831b(_0x294968);_0x1de46f&&_0x1de46f[_0x21718e([0x61,0x6c,0x67])]==_0x21718e([0x45,0x53,0x32,0x35,0x36])||(_0x4c8229=!0x1);}async function _0x47a676(_0x569c1f,_0x20350b,_0x11c2f8){const _0xf4d5ec=window[_0x21718e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21718e([0x66,0x72,0x6f,0x6d])](_0x4841d1(_0x11c2f8),_0x3706e5=>_0x3706e5[_0x21718e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c721e=new window[(_0x21718e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21718e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x569c1f+_0x21718e([0x2e])+_0x20350b),_0x4b43e5=window[_0x21718e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21718e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b43e5)return;const _0x100382=await _0x4b43e5[_0x21718e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21718e([0x6a,0x77,0x6b]),_0x3cec4b,{[_0x21718e([0x6e,0x61,0x6d,0x65])]:_0x21718e([0x45,0x43,0x44,0x53,0x41]),[_0x21718e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21718e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21718e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b43e5[_0x21718e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21718e([0x6e,0x61,0x6d,0x65])]:_0x21718e([0x45,0x43,0x44,0x53,0x41]),[_0x21718e([0x68,0x61,0x73,0x68])]:{[_0x21718e([0x6e,0x61,0x6d,0x65])]:_0x21718e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x100382,_0xf4d5ec,_0x4c721e)||(_0x4c8229=!0x1);}}function _0x14831b(_0x14ee19){return _0x14ee19[_0x21718e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21718e([0x65,0x79]))?JSON[_0x21718e([0x70,0x61,0x72,0x73,0x65])](_0x4841d1(_0x14ee19)):null;}function _0x4841d1(_0x179bbb){return window[_0x21718e([0x61,0x74,0x6f,0x62])](_0x179bbb[_0x21718e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21718e([0x2b]))[_0x21718e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21718e([0x2f])));}function _0x45c94e(_0x20c993){let _0x460d29=0x1505;function _0x7e38fe(_0x5ceb01){for(let _0x39add6=0x0;_0x39add6<_0x5ceb01[_0x21718e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39add6++){const _0x435202=_0x5ceb01[_0x21718e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39add6);_0x460d29=(_0x460d29<<0x5)+_0x460d29+_0x435202,_0x460d29&=_0x460d29;}}function _0x2afc15(_0x2f929c){Array[_0x21718e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f929c)?_0x2f929c[_0x21718e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2afc15):_0x2f929c&&typeof _0x2f929c==_0x21718e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21718e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f929c)[_0x21718e([0x73,0x6f,0x72,0x74])]()[_0x21718e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x283590,_0x42b9d9])=>{_0x7e38fe(_0x283590),_0x2afc15(_0x42b9d9);}):_0x7e38fe(window[_0x21718e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f929c));}return _0x2afc15(_0x20c993),_0x460d29>>>0x0;}function _0x554c7a(_0x39e6be){return _0x39e6be[_0x21718e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21718e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21718e([0x30]));}function _0x1ee517(_0x2b9801){return _0x2b9801[_0x21718e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21718e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21718e([0x6a,0x6f,0x69,0x6e])]('');}function _0x27320c(){}function _0x21718e(_0x3fa914){const _0xa0eec7=_0x1955;return _0x3fa914[_0xa0eec7(0x150)](_0x120318=>String[_0xa0eec7(0x144)](_0x120318))[_0xa0eec7(0x13e)]('');}_0x57602f(await _0x5d2b44());}(this);}[_0xef34a(0x16d)](){const _0x38acb7=_0xef34a,_0x2505c7=this[_0x38acb7(0x14a)][_0x38acb7(0x126)][_0x38acb7(0x13f)];_0x2505c7[_0x38acb7(0x12a)](_0x38acb7(0x140))&&_0x2505c7[_0x38acb7(0x174)](_0x38acb7(0x140),{'allowAttributes':[_0x38acb7(0x12c)]}),_0x2505c7[_0x38acb7(0x12a)](_0x38acb7(0x169))&&_0x2505c7[_0x38acb7(0x174)](_0x38acb7(0x169),{'allowAttributes':[_0x38acb7(0x12c)]});}[_0xef34a(0x163)](){const _0x3b401c=_0xef34a,_0x88667d=this[_0x3b401c(0x14a)];_0x88667d[_0x3b401c(0x139)][_0x3b401c(0x124)](_0x3b401c(0x14e))[_0x3b401c(0x137)]({'model':_0x3b401c(0x12c),'view':_0x3b401c(0x135)}),_0x88667d[_0x3b401c(0x139)][_0x3b401c(0x124)](_0x3b401c(0x16e))[_0x3b401c(0x173)]({'model':{'key':_0x3b401c(0x12c),'value':_0x5c6543=>_0x5c6543[_0x3b401c(0x161)](_0x3b401c(0x135))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2df817=_0x88667d[_0x3b401c(0x170)][_0x3b401c(0x16b)](_0x3b401c(0x15f));_0x2df817&&this[_0x3b401c(0x143)](_0x2df817,_0x3b401c(0x16a),(_0x2c7957,[_0x546498,_0x56b21e])=>{const _0x58cc56=_0x3b401c;_0x546498[_0x58cc56(0x164)](_0x58cc56(0x12c),_0x56b21e);});}[_0xef34a(0x121)](){const _0x3bed41=_0xef34a,_0x280803=this[_0x3bed41(0x14a)][_0x3bed41(0x120)][_0x3bed41(0x16b)](_0x3bed41(0x153))||{},_0x417196=this[_0x3bed41(0x14a)][_0x3bed41(0x120)][_0x3bed41(0x16b)](_0x3bed41(0x129))||'';this[_0x3bed41(0x15a)]=_0x1c7aad(_0x336f41[_0x3bed41(0x167)],_0x3bed41(0x16c),{..._0x280803,'pubkey':_0x417196,'ctx-name':_0x3bed41(0x156),'sourceList':'','imgOnly':_0x3bed41(0x15c),'removeCopyright':_0x3bed41(0x15c),'localeName':this[_0x3bed41(0x14a)][_0x3bed41(0x15e)][_0x3bed41(0x172)],'externalSourcesEmbedCss':_0x3bed41(0x13b)}),this[_0x3bed41(0x15a)][_0x3bed41(0x145)]=_0x15d28e=>{const _0x3be0bb=_0x3bed41;if(_0x3be0bb(0x147)==_0x15d28e)return _0x3be0bb(0x11f);},_0x336f41[_0x3bed41(0x167)][_0x3bed41(0x15d)][_0x3bed41(0x12f)](this[_0x3bed41(0x15a)]);}[_0xef34a(0x152)](){const _0x444f72=_0xef34a;this[_0x444f72(0x154)]=_0x1c7aad(_0x336f41[_0x444f72(0x167)],_0x444f72(0x168),{'ctx-name':_0x444f72(0x156)}),_0x336f41[_0x444f72(0x167)][_0x444f72(0x15d)][_0x444f72(0x12f)](this[_0x444f72(0x154)]);}[_0xef34a(0x132)](){const _0x2757ac=_0xef34a,_0x3a4c1f=this[_0x2757ac(0x14a)][_0x2757ac(0x170)][_0x2757ac(0x16b)](_0x2757ac(0x125));_0x3a4c1f&&this[_0x2757ac(0x143)](_0x3a4c1f,_0x2757ac(0x122),()=>{const _0x2cb069=_0x2757ac,_0x180fa0=this[_0x2cb069(0x14a)][_0x2cb069(0x126)][_0x2cb069(0x167)][_0x2cb069(0x171)][_0x2cb069(0x14c)]();_0x180fa0&&_0x180fa0[_0x2cb069(0x161)](_0x2cb069(0x12c))&&this[_0x2cb069(0x14a)][_0x2cb069(0x165)][_0x2cb069(0x123)][_0x2cb069(0x146)](_0x2cb069(0x13a),()=>{const _0x4f15da=_0x2cb069;_0x2239df(this[_0x4f15da(0x14a)],_0x180fa0);});});const _0x1b05c1=this[_0x2757ac(0x14a)][_0x2757ac(0x170)][_0x2757ac(0x16b)](_0x2757ac(0x131));_0x1b05c1&&this[_0x2757ac(0x143)](_0x1b05c1,_0x2757ac(0x122),()=>{const _0x2fc38c=_0x2757ac,_0x4927d9=this[_0x2fc38c(0x14a)][_0x2fc38c(0x126)][_0x2fc38c(0x167)][_0x2fc38c(0x171)][_0x2fc38c(0x14c)]();_0x4927d9&&_0x4927d9[_0x2fc38c(0x161)](_0x2fc38c(0x12c))&&this[_0x2fc38c(0x14a)][_0x2fc38c(0x165)][_0x2fc38c(0x123)][_0x2fc38c(0x146)](_0x2fc38c(0x13a),()=>{const _0xdf8982=_0x2fc38c;_0x2239df(this[_0xdf8982(0x14a)],_0x4927d9);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x15526b,ObservableMixin as _0x10fd1d}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3b09e5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x212d08}from'ckeditor5/src/icons.js';import _0x429258 from'./uploadcareimageeditformview.js';import _0x249fcf from'../../utils/uploadutils.js';import{getImageUrls as _0x128c9c,getImageDimension as _0x1b3db9}from'../../utils/editingutils.js';import{isAncestor as _0x4177eb}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x10fd1d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4a88df,_0x3ffb9b,_0x22a3ef){super(),this['_editor']=_0x4a88df,this['_dialog']=_0x3ffb9b,this['_imageElement']=_0x22a3ef,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 _0x520279=this['_imageElement'],_0x14ee3a=_0x520279['getAttribute']('uploadcareImageId'),_0x59eaa9=_0x520279['getAttribute']('src');if(_0x14ee3a)await this['_loadImageInfo'](_0x14ee3a,_0x59eaa9);else{if(this['_imageCache']['has'](_0x59eaa9)){const _0x5a9101=this['_imageCache']['get'](_0x59eaa9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a9101['url'],this['imageDimension']=_0x5a9101['dimension'],this['imageId']=_0x5a9101['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d03e6}=this['_editor'],t=_0x3d03e6['t'],_0xd92578=new _0x429258(_0x3d03e6,this['imageStatus'],this['_attributes']);_0xd92578['bind']('status')['to'](this,'imageStatus'),_0xd92578['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd92578['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd92578['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd92578,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x212d08,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd92578,'position':_0x3b09e5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd92578['focus']();},'onHide':()=>{_0xd92578['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5baf39=>!_0x4177eb(_0x5baf39,_0xd92578['element'])}});}['_loadImageInfo'](_0x4443c1,_0x4dba97){return _0x249fcf['getInfo'](_0x4443c1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x402179=>{const {width:_0x4fbb0f,height:_0x2b0cbb}=_0x402179['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4dba97,this['imageDimension']={'width':_0x4fbb0f,'height':_0x2b0cbb},this['imageId']=_0x4443c1;})['catch'](_0x307099=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x307099['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2cc3dc,_0x295d56){return this['_getImageAsFile'](_0x2cc3dc)['then'](_0x593fa5=>_0x249fcf['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x295d56['signal'],'file':_0x593fa5,'onProgress':_0x2fb1e3=>{_0x2fb1e3&&_0x2fb1e3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2fb1e3['value']));}}))['then'](_0x56a332=>{const {width:_0xd09103,height:_0x87bb51}=_0x56a332['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56a332['cdnUrl'],this['imageDimension']={'width':_0xd09103,'height':_0x87bb51},this['imageId']=_0x56a332['uuid'],this['imageUploadProgress']=null;const _0xd540e1=_0x2cc3dc['getAttribute']('src');this['_imageCache']['set'](_0xd540e1,{'id':_0x56a332['uuid'],'url':_0x56a332['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x510c39=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x510c39['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b1d15,_0xb15bca){_0x1b1d15['on']('apply',(_0x2f2b2c,_0x416062)=>{this['_replaceImage'](_0xb15bca,_0x416062['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b1d15['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b1d15['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x29b6d3,_0x5dd7a4,_0x2d360f){const _0x3d056e=this['_editor'],{width:_0x3a7e1e,height:_0x437452}=_0x1b3db9(_0x5dd7a4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43636d,imageSources:_0x4b041c}=_0x128c9c(_0x5dd7a4,_0x3a7e1e);_0x3d056e['model']['change'](_0x3a6a1f=>{if('$graveyard'===_0x29b6d3['root']['rootName']){_0x3d056e['execute']('insertImage',{'imageType':_0x29b6d3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x29b6d3['getAttributes']()),'uploadcareImageId':_0x2d360f,'src':_0x43636d,'sources':_0x4b041c,'width':_0x3a7e1e,'height':_0x437452}});const _0x599580=_0x29b6d3['getChildren']();_0x29b6d3=_0x3d056e['model']['document']['selection']['getSelectedElement']();for(const _0x45a54f of _0x599580)_0x3a6a1f['append'](_0x3a6a1f['cloneElement'](_0x45a54f),_0x29b6d3);}else _0x3a6a1f['setSelection'](_0x29b6d3,'on'),_0x3d056e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x29b6d3['getAttributes']()),'uploadcareImageId':_0x2d360f,'src':_0x43636d,'sources':_0x4b041c,'width':_0x3a7e1e,'height':_0x437452},_0x29b6d3);_0x3a6a1f['setSelection'](_0x29b6d3,'on');});}async['_getImageAsFile'](_0x448c28){const _0x35342a=_0x15526b['window'],_0x1ecf6e=_0x15526b['document']['location']['href'],_0x4947f3=new _0x35342a['URL'](_0x448c28['getAttribute']('src'),_0x1ecf6e);if('data:'===_0x4947f3['protocol']){const _0x558c95=_0x4947f3['href']['split'](','),_0x11be7b=_0x558c95[0x0]['match'](/:(.*?);/)[0x1],_0x2fa351=_0x11be7b['split']('/')[0x1],_0x2a1a08=_0x35342a['atob'](_0x558c95[_0x558c95['length']-0x1]);let _0x3e7920=_0x2a1a08['length'];const _0x3da2c7=new _0x35342a['Uint8Array'](_0x3e7920);for(;_0x3e7920--;)_0x3da2c7[_0x3e7920]=_0x2a1a08['charCodeAt'](_0x3e7920);return new _0x35342a['File']([_0x3da2c7],'image.'+_0x2fa351,{'type':_0x11be7b});}const _0x641c03=_0x4947f3['href']['split']('/'),_0x58a871=_0x641c03[_0x641c03['length']-0x1],_0x1e57a1=_0x58a871['split']('.')[0x1];return _0x35342a['fetch'](_0x4947f3['href'])['then'](_0x5c394b=>_0x5c394b['clone']()['blob']())['then'](_0x3e4784=>new _0x35342a['File']([_0x3e4784],_0x58a871,{'type':'image/'+_0x1e57a1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5090(){const _0x2ad298=['10OHJotp','7UYwjNm','91492WNQqVQ','71682UPMugq','394306wmSuYZ','40ULbWGu','11244232jUSKOV','setTemplate','uc-light','28115879NdLSwn','set','454929ZbXJRr','bindTemplate','uc-cloud-image-editor','ck-uploadcare-theme','imageSrc','32HNqjvT','4180707PRbIgq','image-edit'];_0x5090=function(){return _0x2ad298;};return _0x5090();}(function(_0x1843ec,_0x494e78){const _0x49ffb7=_0x4c76,_0x719e=_0x1843ec();while(!![]){try{const _0x43752f=parseInt(_0x49ffb7(0x10a))/0x1+-parseInt(_0x49ffb7(0x11b))/0x2+-parseInt(_0x49ffb7(0x111))/0x3*(parseInt(_0x49ffb7(0x116))/0x4)+parseInt(_0x49ffb7(0x10b))/0x5*(parseInt(_0x49ffb7(0x109))/0x6)+parseInt(_0x49ffb7(0x11a))/0x7*(-parseInt(_0x49ffb7(0x10c))/0x8)+parseInt(_0x49ffb7(0x117))/0x9+parseInt(_0x49ffb7(0x119))/0xa*(parseInt(_0x49ffb7(0x10f))/0xb);if(_0x43752f===_0x494e78)break;else _0x719e['push'](_0x719e['shift']());}catch(_0x3c26c1){_0x719e['push'](_0x719e['shift']());}}}(_0x5090,0xce897));function _0x4c76(_0x3b3077,_0x4c55c0){const _0x509063=_0x5090();return _0x4c76=function(_0x4c7607,_0x5e182d){_0x4c7607=_0x4c7607-0x109;let _0x134424=_0x509063[_0x4c7607];return _0x134424;},_0x4c76(_0x3b3077,_0x4c55c0);}import{View as _0x30f6ba}from'ckeditor5/src/ui.js';export default class tt extends _0x30f6ba{constructor(_0x55ab37,_0x33600a){const _0x101df1=_0x4c76;super(_0x55ab37);const _0x2cd04b=this[_0x101df1(0x112)];this[_0x101df1(0x110)](_0x101df1(0x115),''),this[_0x101df1(0x10d)]({'tag':_0x101df1(0x113),'attributes':{..._0x33600a,'class':[_0x101df1(0x10e),_0x101df1(0x114)],'ctx-name':_0x101df1(0x118),'cdn-url':_0x2cd04b['to'](_0x101df1(0x115))}});}}
|
|
@@ -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 _0x20967d,IconView as at,View as _0x2e70c9}from'ckeditor5/src/ui.js';export default class rt extends _0x2e70c9{constructor(_0x1595e2){super(_0x1595e2);const t=_0x1595e2['t'];this['set']('errorType',null);const _0x59bf6b=new _0x20967d(_0x1595e2);_0x59bf6b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x59bf6b['withText']=!0x0,_0x59bf6b['class']='ck-button-action',_0x59bf6b['on']('execute',()=>{this['fire']('retry');}),_0x59bf6b['bind']('isVisible')['to'](this,'errorType',_0x1f6bb4=>'NotFound'!==_0x1f6bb4);const _0x4a2653=new at();_0x4a2653['content']=et,_0x4a2653['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4427dc=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':[_0x4a2653,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4427dc['to']('errorType',_0x40fae0=>t('NotFound'!==_0x40fae0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x59bf6b]},{'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 _0x39fffb,View as _0x39063e}from'ckeditor5/src/ui.js';export default class ta extends _0x39063e{constructor(_0x6ba3ca){super(_0x6ba3ca);const t=_0x6ba3ca['t'],_0x131175=this['bindTemplate'],_0x3d1d99=new _0x39fffb();_0x3d1d99['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':[_0x3d1d99,{'text':_0x131175['to']('imageUploadProgress',_0x48104a=>t('Loading\x20image...')+'\x20('+(_0x48104a||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
|
-
function
|
|
23
|
+
function _0x2c80(){const _0x4a48c6=['apply','108056htpZwN','505473gArgws','_setView','disconnect','fire','uc-cloud-image-editor','filter','_addErrorViewListeners','detail','div','_items','351akjCTb','_addUploadcareImageEditorListeners','render','ck-reset_all-excluded','ready','cancel','focus','ck-uploadcare-form','_loadingView','element','length','_waitForImageEditorComponent','10OYoHxL','addedNodes','once','change:status','add','nodeName','target','querySelector','getFocusableElement','27697iUFrBq','addMany','retry','643350WbsiPZ','createCollection','1371468SzPzWj','cdnUrl','_errorView','uploading','toLowerCase','observe','2135475gBtXmL','_focusableView','set','status','_editingView','76420NpPZJd','clear','error','setTemplate','addEventListener','7WylgbH'];_0x2c80=function(){return _0x4a48c6;};return _0x2c80();}const _0x16fad2=_0x4821;function _0x4821(_0x44881c,_0x3697d0){const _0x2c8000=_0x2c80();return _0x4821=function(_0x482104,_0x982300){_0x482104=_0x482104-0x158;let _0x1b1869=_0x2c8000[_0x482104];return _0x1b1869;},_0x4821(_0x44881c,_0x3697d0);}(function(_0x5f2cb6,_0x439893){const _0x90a012=_0x4821,_0x4b37ad=_0x5f2cb6();while(!![]){try{const _0x125693=parseInt(_0x90a012(0x174))/0x1*(parseInt(_0x90a012(0x16b))/0x2)+-parseInt(_0x90a012(0x18c))/0x3+-parseInt(_0x90a012(0x179))/0x4+parseInt(_0x90a012(0x17f))/0x5+-parseInt(_0x90a012(0x177))/0x6+parseInt(_0x90a012(0x189))/0x7*(-parseInt(_0x90a012(0x18b))/0x8)+parseInt(_0x90a012(0x15f))/0x9*(parseInt(_0x90a012(0x184))/0xa);if(_0x125693===_0x439893)break;else _0x4b37ad['push'](_0x4b37ad['shift']());}catch(_0x5c1a18){_0x4b37ad['push'](_0x4b37ad['shift']());}}}(_0x2c80,0x38868));import{View as _0x2e02d8}from'ckeditor5/src/ui.js';import _0x424f83 from'./uploadcareimageeditformloadingview.js';import _0x26d9ee from'./uploadcareimageeditformerrorview.js';import _0x5342e4 from'./uploadcareimageeditformeditingview.js';import _0x141a3b from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x141a3b{[_0x16fad2(0x15e)];[_0x16fad2(0x167)];[_0x16fad2(0x17b)];[_0x16fad2(0x183)];[_0x16fad2(0x180)];constructor(_0x51a4e2,_0x3a04c7,_0x3f16d8){const _0xa5ba59=_0x16fad2;super(_0x51a4e2),this[_0xa5ba59(0x15e)]=this[_0xa5ba59(0x178)](),this[_0xa5ba59(0x167)]=new _0x424f83(_0x51a4e2),this[_0xa5ba59(0x17b)]=new _0x26d9ee(_0x51a4e2),this[_0xa5ba59(0x183)]=new _0x5342e4(_0x51a4e2,_0x3f16d8),this[_0xa5ba59(0x180)]=new _0x2e02d8(_0x51a4e2),this[_0xa5ba59(0x180)][_0xa5ba59(0x187)](this[_0xa5ba59(0x173)]()),this[_0xa5ba59(0x181)](_0xa5ba59(0x182),_0x3a04c7),this[_0xa5ba59(0x187)]({'tag':_0xa5ba59(0x15d),'attributes':{'class':['ck',_0xa5ba59(0x162),_0xa5ba59(0x166)],'tabindex':'-1'},'children':this[_0xa5ba59(0x15e)]}),this[_0xa5ba59(0x18d)](),this[_0xa5ba59(0x16d)](_0xa5ba59(0x161),()=>{const _0x3da555=_0xa5ba59;this[_0x3da555(0x16a)](this[_0x3da555(0x168)],_0x89b880=>{const _0x226dd5=_0x3da555;this[_0x226dd5(0x160)](_0x89b880);});}),this['on'](_0xa5ba59(0x16e),()=>{const _0xbfc6e=_0xa5ba59;this[_0xbfc6e(0x18d)]();}),this[_0xa5ba59(0x15b)]();}[_0x16fad2(0x165)](){const _0x315170=_0x16fad2;this[_0x315170(0x168)][_0x315170(0x165)]();}[_0x16fad2(0x18d)](){const _0x205ce5=_0x16fad2;switch(this[_0x205ce5(0x15e)][_0x205ce5(0x185)](),this[_0x205ce5(0x182)]){case _0x205ce5(0x17c):this[_0x205ce5(0x15e)][_0x205ce5(0x16f)](this[_0x205ce5(0x167)]);break;case _0x205ce5(0x186):this[_0x205ce5(0x15e)][_0x205ce5(0x16f)](this[_0x205ce5(0x17b)]);break;case _0x205ce5(0x163):this[_0x205ce5(0x15e)][_0x205ce5(0x175)]([this[_0x205ce5(0x183)],this[_0x205ce5(0x180)]]);}}[_0x16fad2(0x16a)](_0x56223d,_0x35d104){const _0x26f8ee=_0x16fad2,_0xfc340e=_0x26f8ee(0x159),_0x42ec93=_0x56223d[_0x26f8ee(0x172)](_0xfc340e);if(_0x42ec93)return _0x35d104(_0x42ec93);const _0x3f638c=new MutationObserver(_0x48efce=>{const _0x143ba6=_0x26f8ee,_0x469749=_0x48efce[_0x143ba6(0x15a)](_0x351d74=>_0x351d74[_0x143ba6(0x171)]===_0x56223d&&_0x351d74[_0x143ba6(0x16c)][_0x143ba6(0x169)]>0x0&&_0x351d74[_0x143ba6(0x16c)][0x0][_0x143ba6(0x170)][_0x143ba6(0x17d)]()===_0xfc340e);_0x469749[_0x143ba6(0x169)]&&(_0x3f638c[_0x143ba6(0x18e)](),_0x35d104(_0x469749[0x0][_0x143ba6(0x16c)][0x0]));});_0x3f638c[_0x26f8ee(0x17e)](_0x56223d,{'childList':!0x0,'subtree':!0x0});}[_0x16fad2(0x160)](_0x155e69){const _0x2ab856=_0x16fad2;_0x155e69[_0x2ab856(0x188)](_0x2ab856(0x18a),_0x276d55=>{const _0x3aebe4=_0x2ab856;this[_0x3aebe4(0x158)](_0x3aebe4(0x18a),{'imageSrc':_0x276d55[_0x3aebe4(0x15c)][_0x3aebe4(0x17a)]});}),_0x155e69[_0x2ab856(0x188)](_0x2ab856(0x164),()=>{const _0x50655d=_0x2ab856;this[_0x50655d(0x158)](_0x50655d(0x164));});}[_0x16fad2(0x15b)](){const _0x90056f=_0x16fad2;this[_0x90056f(0x17b)]['on'](_0x90056f(0x176),()=>{const _0x4b2c78=_0x90056f;this[_0x4b2c78(0x158)](_0x4b2c78(0x176));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xae6f1e=_0x100b;(function(_0x472151,_0x5c907c){const _0x2b6b79=_0x100b,_0x3e423e=_0x472151();while(!![]){try{const _0x41d780=-parseInt(_0x2b6b79(0xe7))/0x1*(parseInt(_0x2b6b79(0x102))/0x2)+-parseInt(_0x2b6b79(0xec))/0x3+parseInt(_0x2b6b79(0xe9))/0x4*(-parseInt(_0x2b6b79(0xf2))/0x5)+parseInt(_0x2b6b79(0xe5))/0x6*(-parseInt(_0x2b6b79(0xfc))/0x7)+-parseInt(_0x2b6b79(0x100))/0x8+-parseInt(_0x2b6b79(0xef))/0x9+parseInt(_0x2b6b79(0xee))/0xa;if(_0x41d780===_0x5c907c)break;else _0x3e423e['push'](_0x3e423e['shift']());}catch(_0x5ace88){_0x3e423e['push'](_0x3e423e['shift']());}}}(_0x2fcc,0xc4b10));function _0x2fcc(){const _0x2b6646=['17682ZRctMr','uploadcare.allowExternalImagesEditing','501NxByyq','getSelectedElement','64928aJNgVy','imageInline','isActive','4800888itkpQa','execute','55320500dXrtDM','2648484tIwLQW','get','document','150BVBywO','requires','_isEditable','bind','imageBlock','editor','element','selection','model','imageEditController','2443yIkvjK','unbind','config','refresh','7172232YlacPg','plugins','1676rbLGwS','set','isEnabled'];_0x2fcc=function(){return _0x2b6646;};return _0x2fcc();}import{Command as _0x5231fa}from'ckeditor5/src/core.js';function _0x100b(_0x2bd127,_0x1f76e5){const _0x2fccbb=_0x2fcc();return _0x100b=function(_0x100bf6,_0x112c0e){_0x100bf6=_0x100bf6-0xe5;let _0x20fd18=_0x2fccbb[_0x100bf6];return _0x20fd18;},_0x100b(_0x2bd127,_0x1f76e5);}import{Dialog as _0x56cb8d}from'ckeditor5/src/ui.js';import _0x33f5df from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x441368}from'../utils/editingutils.js';export default class J extends _0x5231fa{[_0xae6f1e(0xfb)];static get[_0xae6f1e(0xf3)](){return[_0x56cb8d];}[_0xae6f1e(0xf4)];constructor(_0x3d8baf){const _0x177f30=_0xae6f1e;super(_0x3d8baf),this[_0x177f30(0xfb)]=void 0x0,this[_0x177f30(0xf4)]=_0x441368(_0x3d8baf[_0x177f30(0xfe)][_0x177f30(0xf0)](_0x177f30(0xe6))||[]),this[_0x177f30(0x103)]({'isActive':!0x1});}[_0xae6f1e(0xff)](){const _0x2d86c1=_0xae6f1e,_0x17bba4=this[_0x2d86c1(0xf7)][_0x2d86c1(0xfa)][_0x2d86c1(0xf1)][_0x2d86c1(0xf9)][_0x2d86c1(0xe8)]();this[_0x2d86c1(0x104)]=this[_0x2d86c1(0xf4)](_0x17bba4);}[_0xae6f1e(0xed)](){const _0x2c84df=_0xae6f1e;this[_0x2c84df(0xfb)]&&(this[_0x2c84df(0xfd)](_0x2c84df(0xeb)),this[_0x2c84df(0xfb)]=void 0x0);const _0x1788d5=this[_0x2c84df(0xf7)][_0x2c84df(0xfa)][_0x2c84df(0xf1)][_0x2c84df(0xf9)][_0x2c84df(0xe8)]();_0x1788d5&&(_0x1788d5['is'](_0x2c84df(0xf8),_0x2c84df(0xf6))||_0x1788d5['is'](_0x2c84df(0xf8),_0x2c84df(0xea)))&&(this[_0x2c84df(0xfb)]=new _0x33f5df(this[_0x2c84df(0xf7)],this[_0x2c84df(0xf7)][_0x2c84df(0x101)][_0x2c84df(0xf0)](_0x56cb8d),_0x1788d5),this[_0x2c84df(0xf5)](_0x2c84df(0xeb))['to'](this[_0x2c84df(0xfb)],_0x2c84df(0xeb)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31ed28=_0x1ff0;(function(_0x474fda,_0x1efe29){const _0xcba45=_0x1ff0,_0x1b56da=_0x474fda();while(!![]){try{const _0x2fd79f=-parseInt(_0xcba45(0x7b))/0x1*(parseInt(_0xcba45(0x6b))/0x2)+parseInt(_0xcba45(0x6c))/0x3*(parseInt(_0xcba45(0x79))/0x4)+parseInt(_0xcba45(0x7e))/0x5*(-parseInt(_0xcba45(0x71))/0x6)+-parseInt(_0xcba45(0x77))/0x7+-parseInt(_0xcba45(0x6f))/0x8+parseInt(_0xcba45(0x75))/0x9*(-parseInt(_0xcba45(0x7d))/0xa)+-parseInt(_0xcba45(0x70))/0xb*(-parseInt(_0xcba45(0x7c))/0xc);if(_0x2fd79f===_0x1efe29)break;else _0x1b56da['push'](_0x1b56da['shift']());}catch(_0x2159b2){_0x1b56da['push'](_0x1b56da['shift']());}}}(_0x4eb7,0x4f781));import{Plugin as _0xdd1aa3}from'ckeditor5/src/core.js';import{Notification as _0x4e5527}from'ckeditor5/src/ui.js';function _0x4eb7(){const _0x4f7610=['isPremiumPlugin','commands','9eweeKV','ImageUtils','3899175kESBGS','uploadcareImageEdit','4116ySMior','UploadcareImageEditEditing','1DZXoyL','36FPuHpT','3551390qJWMnD','35lqxiom','ImageEditing','requires','pluginName','add','686474fOOfAF','1809clJbDc','isOfficialPlugin','init','528384nbdEjH','6119861DQxOxN','550788lTDkXN','uploadcareImageReplace'];_0x4eb7=function(){return _0x4f7610;};return _0x4eb7();}import _0x321be3 from'./uploadcareimageeditcommand.js';import _0x3c33c7 from'./uploadcareimagereplacecommand.js';function _0x1ff0(_0x3f5264,_0x7ff64e){const _0x4eb77b=_0x4eb7();return _0x1ff0=function(_0x1ff077,_0x3ce069){_0x1ff077=_0x1ff077-0x68;let _0x31a33d=_0x4eb77b[_0x1ff077];return _0x31a33d;},_0x1ff0(_0x3f5264,_0x7ff64e);}import _0x529ac0 from'../uploadcareediting.js';export default class g extends _0xdd1aa3{static get[_0x31ed28(0x69)](){const _0x17db77=_0x31ed28;return _0x17db77(0x7a);}static get[_0x31ed28(0x68)](){const _0x518271=_0x31ed28;return[_0x529ac0,_0x4e5527,_0x518271(0x76),_0x518271(0x7f)];}static get[_0x31ed28(0x6d)](){return!0x0;}static get[_0x31ed28(0x73)](){return!0x0;}[_0x31ed28(0x6e)](){const _0x3dae6e=_0x31ed28,{editor:_0x3730d5}=this;_0x3730d5[_0x3dae6e(0x74)][_0x3dae6e(0x6a)](_0x3dae6e(0x78),new _0x321be3(_0x3730d5)),_0x3730d5[_0x3dae6e(0x74)][_0x3dae6e(0x6a)](_0x3dae6e(0x72),new _0x3c33c7(_0x3730d5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1e5057}from'ckeditor5/src/core.js';import{ButtonView as _0x518836}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2f6a0d}from'ckeditor5/src/icons.js';import{createElement as _0x589c86}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 _0x1e5057{['_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 _0x3cea43=this['editor'];_0x3cea43['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8ffa43=>{const _0x367da5=_0x3cea43['commands']['get']('uploadcareImageEdit'),_0x1fe639=new _0x518836(_0x8ffa43),t=_0x8ffa43['t'];return _0x1fe639['set']({'icon':_0x2f6a0d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1fe639['bind']('isEnabled')['to'](_0x367da5),_0x1fe639['bind']('isOn')['to'](_0x367da5,'isActive'),this['listenTo'](_0x1fe639,'execute',()=>{_0x3cea43['execute']('uploadcareImageEdit'),_0x3cea43['editing']['view']['focus']();}),_0x1fe639;}),this['_initConfig']();}['_initConfig'](){const _0x105ede=_0x589c86(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x105ede),this['listenTo'](this['editor'],'destroy',()=>{_0x105ede['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5db0(_0x3457c4,_0x49a933){const _0x561907=_0x5619();return _0x5db0=function(_0x5db0c5,_0x33603a){_0x5db0c5=_0x5db0c5-0x15b;let _0x3039d9=_0x561907[_0x5db0c5];return _0x3039d9;},_0x5db0(_0x3457c4,_0x49a933);}const _0x4f6ee5=_0x5db0;function _0x5619(){const _0x17bac5=['182736MXyCEe','editor','225265ahqrnc','9832SGaGDH','sizes','execute','setAttributes','selection','8jzisXZ','refresh','element','13072czZlfX','imageBlock','change','model','srcset','imageInline','3760180PsKsPM','122004RfDWjC','document','removeAttribute','isEnabled','763vqHPen','1973418gNpQVv','13mNQuOb','getSelectedElement'];_0x5619=function(){return _0x17bac5;};return _0x5619();}(function(_0x210f8d,_0xf47fea){const _0x5d7e0a=_0x5db0,_0x139dbc=_0x210f8d();while(!![]){try{const _0x20af9e=-parseInt(_0x5d7e0a(0x15e))/0x1*(-parseInt(_0x5d7e0a(0x16b))/0x2)+parseInt(_0x5d7e0a(0x160))/0x3+-parseInt(_0x5d7e0a(0x168))/0x4*(parseInt(_0x5d7e0a(0x162))/0x5)+parseInt(_0x5d7e0a(0x15d))/0x6+-parseInt(_0x5d7e0a(0x15c))/0x7*(parseInt(_0x5d7e0a(0x163))/0x8)+-parseInt(_0x5d7e0a(0x172))/0x9+parseInt(_0x5d7e0a(0x171))/0xa;if(_0x20af9e===_0xf47fea)break;else _0x139dbc['push'](_0x139dbc['shift']());}catch(_0x1f5212){_0x139dbc['push'](_0x139dbc['shift']());}}}(_0x5619,0x95b3a));import{Command as _0x4a21bc}from'ckeditor5/src/core.js';export default class O extends _0x4a21bc{[_0x4f6ee5(0x169)](){const _0x578905=_0x4f6ee5,_0x4424f3=this[_0x578905(0x161)][_0x578905(0x16e)][_0x578905(0x173)][_0x578905(0x167)][_0x578905(0x15f)]();this[_0x578905(0x15b)]=Boolean(_0x4424f3&&(_0x4424f3['is'](_0x578905(0x16a),_0x578905(0x16c))||_0x4424f3['is'](_0x578905(0x16a),_0x578905(0x170))));}[_0x4f6ee5(0x165)](_0x531b5e){const _0x46c2ef=_0x4f6ee5,_0x1068f6=this[_0x46c2ef(0x161)][_0x46c2ef(0x16e)][_0x46c2ef(0x173)][_0x46c2ef(0x167)][_0x46c2ef(0x15f)]();this[_0x46c2ef(0x161)][_0x46c2ef(0x16e)][_0x46c2ef(0x16d)](_0x413f50=>{const _0x2afe59=_0x46c2ef;_0x413f50[_0x2afe59(0x166)](_0x531b5e,_0x1068f6),_0x413f50[_0x2afe59(0x174)](_0x2afe59(0x16f),_0x1068f6),_0x413f50[_0x2afe59(0x174)](_0x2afe59(0x164),_0x1068f6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x466b6=_0x2bfb;function _0x1a17(){var _0xf5806a=['2IqEiZB','UploadcareImageEdit','7taUXCH','isPremiumPlugin','9FJmskq','5445187yHJfPV','2325048MslomT','4047888nXhptL','requires','40pSGmrd','10gqBADY','200888yDhyEF','15172CWCnvs','pluginName','isOfficialPlugin','399366HCpWlP','1741864xoswND'];_0x1a17=function(){return _0xf5806a;};return _0x1a17();}(function(_0x49fdf6,_0x634a58){var _0x2ccd8e=_0x2bfb,_0x3c8706=_0x49fdf6();while(!![]){try{var _0x48c05c=parseInt(_0x2ccd8e(0x1f2))/0x1*(-parseInt(_0x2ccd8e(0x1e6))/0x2)+-parseInt(_0x2ccd8e(0x1e4))/0x3+-parseInt(_0x2ccd8e(0x1f1))/0x4*(-parseInt(_0x2ccd8e(0x1ef))/0x5)+parseInt(_0x2ccd8e(0x1ec))/0x6*(parseInt(_0x2ccd8e(0x1e8))/0x7)+parseInt(_0x2ccd8e(0x1e5))/0x8*(-parseInt(_0x2ccd8e(0x1ea))/0x9)+-parseInt(_0x2ccd8e(0x1f0))/0xa*(parseInt(_0x2ccd8e(0x1eb))/0xb)+parseInt(_0x2ccd8e(0x1ed))/0xc;if(_0x48c05c===_0x634a58)break;else _0x3c8706['push'](_0x3c8706['shift']());}catch(_0x288bbb){_0x3c8706['push'](_0x3c8706['shift']());}}}(_0x1a17,0x40d5c));import{Plugin as _0xc06ad0}from'ckeditor5/src/core.js';function _0x2bfb(_0x1528d9,_0x5a4701){var _0x1a1757=_0x1a17();return _0x2bfb=function(_0x2bfb21,_0x346cf1){_0x2bfb21=_0x2bfb21-0x1e3;var _0xcbd8f0=_0x1a1757[_0x2bfb21];return _0xcbd8f0;},_0x2bfb(_0x1528d9,_0x5a4701);}import _0x5d35fd from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x50d1ee from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0xc06ad0{static get[_0x466b6(0x1f3)](){var _0x35145b=_0x466b6;return _0x35145b(0x1e7);}static get[_0x466b6(0x1ee)](){return[_0x5d35fd,_0x50d1ee];}static get[_0x466b6(0x1e3)](){return!0x0;}static get[_0x466b6(0x1e9)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x337b04=_0x458b;(function(_0x3a9cfe,_0x305cb3){const _0x12169d=_0x458b,_0x4e1ca3=_0x3a9cfe();while(!![]){try{const _0x156bf5=-parseInt(_0x12169d(0x72))/0x1*(parseInt(_0x12169d(0x78))/0x2)+-parseInt(_0x12169d(0xaa))/0x3*(parseInt(_0x12169d(0xa1))/0x4)+-parseInt(_0x12169d(0x8c))/0x5*(-parseInt(_0x12169d(0x9f))/0x6)+parseInt(_0x12169d(0x6d))/0x7+parseInt(_0x12169d(0x82))/0x8*(-parseInt(_0x12169d(0xa5))/0x9)+-parseInt(_0x12169d(0x85))/0xa*(-parseInt(_0x12169d(0x94))/0xb)+parseInt(_0x12169d(0xae))/0xc*(parseInt(_0x12169d(0xb8))/0xd);if(_0x156bf5===_0x305cb3)break;else _0x4e1ca3['push'](_0x4e1ca3['shift']());}catch(_0x543fef){_0x4e1ca3['push'](_0x4e1ca3['shift']());}}}(_0x4aed,0x7b863));import{Plugin as _0xef84ca}from'ckeditor5/src/core.js';import{IconDropbox as _0x43f827,IconFacebook as _0xba6e54,IconGoogleDrive as _0x4262f2,IconGooglePhotos as _0x2325ae,IconUploadcareImageUpload as _0x558e0d,IconUploadcareLink as _0x13b142,IconOneDrive as _0x1ab358}from'ckeditor5/src/icons.js';import{ButtonView as _0x4cfa4e,MenuBarMenuListItemButtonView as _0x264510}from'ckeditor5/src/ui.js';function _0x4aed(){const _0xf83094=['uploadcareLicenseKeyEvaluationLimit','1783950aaPyFV','bind','Dropbox','trialLimit','uploadcareLicenseKeyTrialLimit','7qzfgNQ','get','assetManager','_createToolbarButton','editor','uploadcare.uploader.sourceList','13678NQlAmD','forEach','uploadcareLicenseKeyUsageLimit','isOfficialPlugin','Insert','afterInit','_licenseKeyCheckInterval','GPhotos','isEnabled','plugins','40lEVfcy','_showLicenseError','push','573670QkudGc','uploadcareLicenseKeyInvalid','reduce','label','pluginName','commands','UploadcareUI','4298165iCgeCN','domainLimit','licenseKey','destroy','locale','_createMenuBarButtons','text','url','55jXAYlV','config','ImageInsertUI','map','Local','uploadcareLicenseKeyNotAllowed','_getIntegrationKey','type','has','expired','usageLimit','6sgdEzG','_createDropdownButtons','369896UNmUOR','URL','init','upload','1751850YfFQiI','isImageSelected','registerIntegration','icon','Uploadcare','9ozIyBm','shortText','uploadcareLicenseKeyDomainLimit','execute','312qCEFVS','isPremiumPlugin','Facebook','_normalizeConfigSourceList','entries','GDrive','featureNotAllowed','Replace','invalid','uploadcare','201591Oovgka','uploadcareLicenseKeyExpired','evaluationLimit','uploadcareLicenseKeyValid','OneDrive','_createButton','tooltip','withText'];_0x4aed=function(){return _0xf83094;};return _0x4aed();}import{UploadcareSource as _0x194473}from'./uploadcareconfig.js';import{getTranslation as _0x2a3e0e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x458b(_0x188180,_0x41166a){const _0x4aed4f=_0x4aed();return _0x458b=function(_0x458bc7,_0xee7fff){_0x458bc7=_0x458bc7-0x6a;let _0x1628c2=_0x4aed4f[_0x458bc7];return _0x1628c2;},_0x458b(_0x188180,_0x41166a);}export default class e extends _0xef84ca{[_0x337b04(0x8e)];[_0x337b04(0x7e)];static get[_0x337b04(0x89)](){const _0x5387f7=_0x337b04;return _0x5387f7(0x8b);}static get[_0x337b04(0x7b)](){return!0x0;}static get[_0x337b04(0xaf)](){return!0x0;}[_0x337b04(0xa3)](){const _0x30df3b=_0x337b04;this[_0x30df3b(0x8e)]=this[_0x30df3b(0x76)][_0x30df3b(0x95)][_0x30df3b(0x73)](_0x30df3b(0x8e));const _0xb213e9=this[_0x30df3b(0x76)];this[_0x30df3b(0x7e)]=setInterval(()=>{const _0x38df2c=_0x30df3b;let _0x1d1e45;for(const _0x245f3e in _0xb213e9){const _0x25fd6c=_0x245f3e,_0x516cb2=_0xb213e9[_0x25fd6c];if(_0x38df2c(0xbb)==_0x516cb2||_0x38df2c(0x86)==_0x516cb2||_0x38df2c(0xb9)==_0x516cb2||_0x38df2c(0xac)==_0x516cb2||_0x38df2c(0x99)==_0x516cb2||_0x38df2c(0x6c)==_0x516cb2||_0x38df2c(0x71)==_0x516cb2||_0x38df2c(0x7a)==_0x516cb2){delete _0xb213e9[_0x25fd6c],_0x1d1e45=_0x516cb2,clearInterval(this[_0x38df2c(0x7e)]),this[_0x38df2c(0x7e)]=void 0x0;break;}}_0x38df2c(0x86)==_0x1d1e45&&_0xb213e9[_0x38df2c(0x83)](_0x38df2c(0xb6)),_0x38df2c(0xb9)==_0x1d1e45&&_0xb213e9[_0x38df2c(0x83)](_0x38df2c(0x9d)),_0x38df2c(0xac)==_0x1d1e45&&_0xb213e9[_0x38df2c(0x83)](_0x38df2c(0x8d)),_0x38df2c(0x99)==_0x1d1e45&&_0xb213e9[_0x38df2c(0x83)](_0x38df2c(0xb4),_0x38df2c(0xa9)),_0x38df2c(0x6c)==_0x1d1e45&&_0xb213e9[_0x38df2c(0x83)](_0x38df2c(0xba)),_0x38df2c(0x71)==_0x1d1e45&&_0xb213e9[_0x38df2c(0x83)](_0x38df2c(0x70)),_0x38df2c(0x7a)==_0x1d1e45&&_0xb213e9[_0x38df2c(0x83)](_0x38df2c(0x9e));},0x3e8);}[_0x337b04(0x7d)](){const _0x3ab5b2=_0x337b04,{editor:_0x228bc3}=this,_0x18ca00=_0x228bc3[_0x3ab5b2(0x8a)][_0x3ab5b2(0x73)](_0x3ab5b2(0xb7));if(!_0x18ca00)return;const _0x2400ec=this[_0x3ab5b2(0xb1)](_0x228bc3[_0x3ab5b2(0x95)][_0x3ab5b2(0x73)](_0x3ab5b2(0x77)))[_0x3ab5b2(0x87)]((_0x3af356,_0x179751)=>{const _0x1ccb6c=_0x3ab5b2,_0x259595=this[_0x1ccb6c(0x9a)](_0x179751[_0x1ccb6c(0x9b)]);return _0x3af356[_0x259595]||(_0x3af356[_0x259595]=[]),_0x3af356[_0x259595][_0x1ccb6c(0x84)](_0x179751),_0x3af356;},{});_0x228bc3[_0x3ab5b2(0x81)][_0x3ab5b2(0x9c)](_0x3ab5b2(0x96))&&_0x228bc3[_0x3ab5b2(0x8a)][_0x3ab5b2(0x73)](_0x3ab5b2(0xb7))&&Object[_0x3ab5b2(0xb2)](_0x2400ec)[_0x3ab5b2(0x79)](([_0x64b59a,_0x16aa2a])=>{const _0x332aef=_0x3ab5b2;_0x228bc3[_0x332aef(0x81)][_0x332aef(0x73)](_0x332aef(0x96))[_0x332aef(0xa7)]({'name':_0x64b59a,'observable':()=>_0x18ca00,'buttonViewCreator':()=>this[_0x332aef(0x75)](_0x16aa2a),'formViewCreator':()=>this[_0x332aef(0xa0)](_0x16aa2a),'menuBarButtonViewCreator':()=>this[_0x332aef(0x91)](_0x16aa2a),'override':_0x332aef(0x74)!==_0x64b59a});});}[_0x337b04(0x8f)](){const _0x35ddad=_0x337b04;super[_0x35ddad(0x8f)](),this[_0x35ddad(0x7e)]&&clearInterval(this[_0x35ddad(0x7e)]);}[_0x337b04(0xb1)](_0x57d7ed){const _0x3b8e12=_0x337b04,{locale:_0x51b6b3}=this[_0x3b8e12(0x76)];return _0x57d7ed[_0x3b8e12(0x97)](_0x8e608f=>{const _0x59a5ab=_0x3b8e12,_0x207cd0=_0x2a3e0e(_0x51b6b3,_0x8e608f,_0x59a5ab(0x7c));switch(_0x8e608f){case _0x194473[_0x59a5ab(0x98)]:return{'icon':_0x558e0d,'type':_0x194473[_0x59a5ab(0x98)],..._0x207cd0};case _0x194473[_0x59a5ab(0xa2)]:return{'icon':_0x13b142,'type':_0x194473[_0x59a5ab(0xa2)],..._0x207cd0};case _0x194473[_0x59a5ab(0x6f)]:return{'icon':_0x43f827,'type':_0x194473[_0x59a5ab(0x6f)],..._0x207cd0};case _0x194473[_0x59a5ab(0xb0)]:return{'icon':_0xba6e54,'type':_0x194473[_0x59a5ab(0xb0)],..._0x207cd0};case _0x194473[_0x59a5ab(0xb3)]:return{'icon':_0x4262f2,'type':_0x194473[_0x59a5ab(0xb3)],..._0x207cd0};case _0x194473[_0x59a5ab(0x7f)]:return{'icon':_0x2325ae,'type':_0x194473[_0x59a5ab(0x7f)],..._0x207cd0};case _0x194473[_0x59a5ab(0xbc)]:return{'icon':_0x1ab358,'type':_0x194473[_0x59a5ab(0xbc)],..._0x207cd0};}});}[_0x337b04(0x9a)](_0x1565a6){const _0x44a063=_0x337b04;switch(_0x1565a6){case _0x194473[_0x44a063(0x98)]:return _0x44a063(0xa4);case _0x194473[_0x44a063(0xa2)]:return _0x44a063(0x93);default:return _0x44a063(0x74);}}[_0x337b04(0xbd)](_0x149485,_0x30fa15){const _0x364bca=_0x337b04,_0xcb7d5e=this[_0x364bca(0x76)],_0xcf0209=new _0x149485(_0xcb7d5e[_0x364bca(0x90)]),_0x3ab33e=_0xcb7d5e[_0x364bca(0x8a)][_0x364bca(0x73)](_0x364bca(0xb7));return _0xcf0209[_0x364bca(0x6e)](_0x364bca(0x80))['to'](_0x3ab33e),_0xcf0209['on'](_0x364bca(0xad),()=>{const _0x319d10=_0x364bca;_0x3ab33e[_0x319d10(0xad)](_0x30fa15);}),_0xcf0209;}[_0x337b04(0x75)](_0x2458ca){const _0x65fd5b=_0x337b04,{locale:_0x56db42}=this[_0x65fd5b(0x76)],_0x526ba9=this[_0x65fd5b(0x76)][_0x65fd5b(0x81)][_0x65fd5b(0x73)](_0x65fd5b(0x96)),_0x3f7e3a=_0x2458ca[0x0],_0x4bdbe1=this[_0x65fd5b(0xbd)](_0x4cfa4e,_0x3f7e3a[_0x65fd5b(0x9b)]);return _0x4bdbe1[_0x65fd5b(0xa8)]=_0x3f7e3a[_0x65fd5b(0xa8)],_0x4bdbe1[_0x65fd5b(0x6e)](_0x65fd5b(0x88))['to'](_0x526ba9,_0x65fd5b(0xa6),_0x39a83f=>_0x2a3e0e(_0x56db42,_0x3f7e3a[_0x65fd5b(0x9b)],_0x39a83f?_0x65fd5b(0xb5):_0x65fd5b(0x7c))[_0x65fd5b(0x92)]),_0x4bdbe1[_0x65fd5b(0x6a)]=!0x0,_0x4bdbe1;}[_0x337b04(0xa0)](_0x37463e){const _0x441a68=_0x337b04,{locale:_0x50a42d}=this[_0x441a68(0x76)],_0x46c310=this[_0x441a68(0x76)][_0x441a68(0x81)][_0x441a68(0x73)](_0x441a68(0x96));return _0x37463e[_0x441a68(0x97)](_0x3c1d47=>{const _0x5978f6=_0x441a68,_0x4c36a9=this[_0x5978f6(0xbd)](_0x4cfa4e,_0x3c1d47[_0x5978f6(0x9b)]);return _0x4c36a9[_0x5978f6(0x6b)]=!0x0,_0x4c36a9[_0x5978f6(0xa8)]=_0x3c1d47[_0x5978f6(0xa8)],_0x4c36a9[_0x5978f6(0x6e)](_0x5978f6(0x88))['to'](_0x46c310,_0x5978f6(0xa6),_0x2a9abd=>_0x2a3e0e(_0x50a42d,_0x3c1d47[_0x5978f6(0x9b)],_0x2a9abd?_0x5978f6(0xb5):_0x5978f6(0x7c))[_0x5978f6(0x92)]),_0x4c36a9;});}[_0x337b04(0x91)](_0x12dceb){const _0xf91c10=_0x337b04;return _0x12dceb[_0xf91c10(0x97)](_0x4ca9bd=>{const _0x202cc2=_0xf91c10,_0x3041d6=this[_0x202cc2(0xbd)](_0x264510,_0x4ca9bd[_0x202cc2(0x9b)]);return _0x3041d6[_0x202cc2(0xa8)]=_0x4ca9bd[_0x202cc2(0xa8)],_0x3041d6[_0x202cc2(0x88)]=_0x4ca9bd[_0x202cc2(0xab)],_0x3041d6;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x352db4}from'ckeditor5/src/core.js';import{FileRepository as _0x43ef25}from'ckeditor5/src/upload.js';import _0x49f1d7 from'./uploadcareediting.js';import _0x1a6aa5 from'./utils/uploadutils.js';import{getImageUrls as _0x21d033}from'./utils/editingutils.js';export default class p extends _0x352db4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x43ef25,_0x49f1d7];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1b57b2=this['editor'];if(!!!_0x1b57b2['config']['get']('uploadcare'))return;_0x1b57b2['plugins']['get'](_0x43ef25)['createUploadAdapter']=_0x78ea=>new x(_0x78ea,_0x1b57b2),_0x1b57b2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x59395c,{imageElement:_0x2292d7,data:_0x3f2a3f})=>{_0x1b57b2['model']['change'](_0x3e8d66=>{_0x3e8d66['setAttribute']('uploadcareImageId',_0x3f2a3f['uploadcareImageId'],_0x2292d7);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x522ae2,_0x50b4d5){this['loader']=_0x522ae2,this['editor']=_0x50b4d5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26d6e0=this['editor']['config']['get']('uploadcare.pubkey'),_0x3b9472=await this['loader']['file'];return _0x1a6aa5['upload']({'file':_0x3b9472,'publicKey':_0x26d6e0,'signal':this['controller']['signal'],'onProgress':_0x58fe0e=>{_0x58fe0e&&_0x58fe0e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x58fe0e['value']);}})['then'](async _0x165da4=>{const {imageFallbackUrl:_0x52dac6,imageSources:_0x3cf8ca}=_0x21d033(_0x165da4['cdnUrl'],_0x165da4['imageInfo']['width']);return{'uploadcareImageId':_0x165da4['uuid'],'default':_0x52dac6,'sources':_0x3cf8ca};})['catch'](()=>{const _0x838fe4=t('Cannot\x20upload\x20file:')+('\x20'+_0x3b9472['name']+'.');return Promise['reject'](_0x838fe4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x2bddc6}from'../uploadcareconfig.js';export function getTranslation(_0x5e591e,_0x4a08e9,_0x121a53){const t=_0x5e591e['t'],_0x269712=_0x5e591e['t'];switch(_0x4a08e9){case _0x2bddc6['Local']:return{'text':_0x269712('Insert'===_0x121a53?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x269712('From\x20computer')};case _0x2bddc6['URL']:return{'text':'Insert'===_0x121a53?_0x269712('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x269712('Via\x20URL')};case _0x2bddc6['Dropbox']:return{'text':t('Insert'===_0x121a53?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2bddc6['Facebook']:return{'text':t('Insert'===_0x121a53?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2bddc6['GDrive']:return{'text':t('Insert'===_0x121a53?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2bddc6['GPhotos']:return{'text':t('Insert'===_0x121a53?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2bddc6['OneDrive']:return{'text':t('Insert'===_0x121a53?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a08e9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22b2ac=_0x4acd;(function(_0x224958,_0xcdff0d){var _0x299d46=_0x4acd,_0x152060=_0x224958();while(!![]){try{var _0x2e3763=parseInt(_0x299d46(0x91))/0x1+-parseInt(_0x299d46(0x92))/0x2+-parseInt(_0x299d46(0x8a))/0x3+-parseInt(_0x299d46(0x95))/0x4*(parseInt(_0x299d46(0x98))/0x5)+-parseInt(_0x299d46(0x97))/0x6*(parseInt(_0x299d46(0x8c))/0x7)+parseInt(_0x299d46(0x88))/0x8+parseInt(_0x299d46(0x93))/0x9;if(_0x2e3763===_0xcdff0d)break;else _0x152060['push'](_0x152060['shift']());}catch(_0x590772){_0x152060['push'](_0x152060['shift']());}}}(_0x4658,0xd87fd));import{FocusTracker as _0x38a463}from'ckeditor5/src/utils.js';import{View as _0x153298,FocusCycler as _0x2079a3}from'ckeditor5/src/ui.js';function _0x4658(){var _0x483b44=['true','3187276bjPDBq','fire','174nTfxsy','5LTdwAj','focusTracker','2886672JLVLXp','bindTemplate','1572153JKSZpm','div','346696dwDLdR','forwardCycle','createCollection','getFocusableElement','focusCycler','691642uHJwkP','983106DILGfr','27747360PwOtQA'];_0x4658=function(){return _0x483b44;};return _0x4658();}function _0x4acd(_0x2d9df6,_0x434217){var _0x46589c=_0x4658();return _0x4acd=function(_0x4acd16,_0x3403a6){_0x4acd16=_0x4acd16-0x87;var _0xb43a8e=_0x46589c[_0x4acd16];return _0xb43a8e;},_0x4acd(_0x2d9df6,_0x434217);}import'../../theme/uploadcare-form.css';export default class q extends _0x153298{[_0x22b2ac(0x87)];[_0x22b2ac(0x90)];constructor(_0x1fbac1){var _0x428e94=_0x22b2ac;super(_0x1fbac1),this[_0x428e94(0x87)]=new _0x38a463(),this[_0x428e94(0x90)]=new _0x2079a3({'focusables':this[_0x428e94(0x8e)](),'focusTracker':this[_0x428e94(0x87)]});}[_0x22b2ac(0x8f)](){var _0x382748=_0x22b2ac;return{'tag':_0x382748(0x8b),'attributes':{'aria-hidden':_0x382748(0x94),'tabindex':'0'},'on':{'focus':this[_0x382748(0x89)]['to'](()=>{var _0x17ae7c=_0x382748;this[_0x17ae7c(0x90)][_0x17ae7c(0x96)](_0x17ae7c(0x8d));})}};}}
|