@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.9 → 45.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- 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 _0x23e38b=_0x423e;(function(_0x450a61,_0x9a612a){const _0x1aaaad=_0x423e,_0x4ae868=_0x450a61();while(!![]){try{const _0x22467e=-parseInt(_0x1aaaad(0x1a7))/0x1+parseInt(_0x1aaaad(0x1ae))/0x2*(-parseInt(_0x1aaaad(0x18d))/0x3)+-parseInt(_0x1aaaad(0x19a))/0x4+parseInt(_0x1aaaad(0x194))/0x5*(-parseInt(_0x1aaaad(0x189))/0x6)+-parseInt(_0x1aaaad(0x1b9))/0x7+-parseInt(_0x1aaaad(0x195))/0x8+parseInt(_0x1aaaad(0x1bb))/0x9;if(_0x22467e===_0x9a612a)break;else _0x4ae868['push'](_0x4ae868['shift']());}catch(_0xabb1a0){_0x4ae868['push'](_0x4ae868['shift']());}}}(_0x2418,0x372ac));import{Plugin as _0x35c188}from'ckeditor5/src/core.js';import{Dialog as _0x243e97}from'ckeditor5/src/ui.js';function _0x2418(){const _0x31b438=['1854QHUpnk','upcast','configElement','\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','18969WaDFbO','downcast','imageInline','attributeToAttribute','isOfficialPlugin','editing','true','3940QXyIuY','2013592dqxsYR','elementToAttribute','appendChild','listenTo','closeMax','129656CXDDrI','view','UploadcareEditing','replaceImageSource','destroy','for','_initConversion','join','#uc-icon-arrow-down','remove','render','removeAttribute','PictureEditing','158623NTPQYy','_initCtx','_initImageProcessingIndicator','insertImage','getSelectedElement','_configElement','add','62vckgkb','map','ctxElement','isPremiumPlugin','conversion','config','querySelector','data-uc-image-id','once','uploadcare.pubkey','_initSchema','1684830CYjWek','pluginName','12140055CEpHtE','uploadcare.uploader','_ctxElement','afterInit','uploadcareImageReplace','fromCharCode','isRegistered','cleanupImage','getAttribute','uploader','model','editor','uploadcare','input[uploadcare-file-input]','imageBlock','execute','locale','selection','href','iconHrefResolver','schema','body','document','uc-config','requires','extend','_initConfig','commands','contentLanguage','uc-upload-ctx-provider','uploadcareImageId','init','get'];_0x2418=function(){return _0x31b438;};return _0x2418();}import{createElement as _0x3af2ee,global as _0x3c532f,uid as _0x16fd3b}from'ckeditor5/src/utils.js';import _0x395d39 from'./uploadcarecommand.js';import _0x2366fb from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x25aecc}from'./utils/editingutils.js';function _0x423e(_0x15c834,_0x21035f){const _0x241851=_0x2418();return _0x423e=function(_0x423e61,_0x39a538){_0x423e61=_0x423e61-0x188;let _0x2e0a4b=_0x241851[_0x423e61];return _0x2e0a4b;},_0x423e(_0x15c834,_0x21035f);}export default class i extends _0x35c188{[_0x23e38b(0x1ac)]=null;[_0x23e38b(0x1bd)]=null;static get[_0x23e38b(0x1ba)](){const _0x23d8d7=_0x23e38b;return _0x23d8d7(0x19c);}static get[_0x23e38b(0x1d3)](){const _0x27ede1=_0x23e38b;return[_0x27ede1(0x1a6),_0x2366fb,_0x243e97];}static get[_0x23e38b(0x191)](){return!0x0;}static get[_0x23e38b(0x1b1)](){return!0x0;}get[_0x23e38b(0x18b)](){const _0x44bf30=_0x23e38b;return this[_0x44bf30(0x1ac)];}get[_0x23e38b(0x1b0)](){const _0xf38a35=_0x23e38b;return this[_0xf38a35(0x1bd)];}[_0x23e38b(0x1da)](){const _0x1d09e3=_0x23e38b,_0x30d36b=this[_0x1d09e3(0x1c6)];_0x30d36b[_0x1d09e3(0x1d6)][_0x1d09e3(0x1ad)](_0x1d09e3(0x1c7),new _0x395d39(_0x30d36b));}[_0x23e38b(0x1be)](){const _0x150ede=_0x23e38b;this[_0x150ede(0x1b8)](),this[_0x150ede(0x1a0)](),this[_0x150ede(0x1d5)](),this[_0x150ede(0x1a8)](),this[_0x150ede(0x1a9)](),this[_0x150ede(0x198)](this[_0x150ede(0x1c6)],_0x150ede(0x19e),()=>{const _0x2a98c6=_0x150ede;this[_0x2a98c6(0x1ac)]&&(this[_0x2a98c6(0x1ac)][_0x2a98c6(0x1a3)](),this[_0x2a98c6(0x1ac)]=null),this[_0x2a98c6(0x1bd)]&&(this[_0x2a98c6(0x1bd)][_0x2a98c6(0x1a3)](),this[_0x2a98c6(0x1bd)]=null);const _0x201d85=_0x3c532f[_0x2a98c6(0x1d1)][_0x2a98c6(0x1b4)](_0x2a98c6(0x1c8));_0x201d85&&_0x201d85[_0x2a98c6(0x1a3)]();}),async function(_0x3cc4c4){const _0x33ac96=_0xf31e67([0x30,0x4d,0x65,0x6d,0x4a,0x35,0x51,0x63,0x74,0x75,0x43,0x73,0x39,0x62,0x56,0x72,0x66,0x42,0x4c,0x79,0x64,0x61,0x4f,0x50,0x58,0x68,0x6b,0x76,0x52,0x6e,0x4e,0x49,0x33,0x71,0x6a,0x6f,0x44,0x38,0x57,0x47,0x4b,0x37,0x41,0x69,0x77,0x45,0x6c,0x53,0x31,0x7a,0x32,0x34,0x54,0x5a,0x48,0x46,0x36,0x70,0x67,0x55,0x59,0x78]),_0x17886a=0x81c1f63,_0x2b73f0=0x81b7b73^_0x17886a,_0x33302d=window[_0xf31e67([0x44,0x61,0x74,0x65])][_0xf31e67([0x6e,0x6f,0x77])](),_0x25bddd=_0x3cc4c4[_0xf31e67([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48dc06=new window[(_0xf31e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x276ef2=>{_0x25bddd[_0xf31e67([0x6f,0x6e,0x63,0x65])](_0xf31e67([0x72,0x65,0x61,0x64,0x79]),_0x276ef2);}),_0x2be070={[_0xf31e67([0x6b,0x74,0x79])]:_0xf31e67([0x45,0x43]),[_0xf31e67([0x75,0x73,0x65])]:_0xf31e67([0x73,0x69,0x67]),[_0xf31e67([0x63,0x72,0x76])]:_0xf31e67([0x50,0x2d,0x32,0x35,0x36]),[_0xf31e67([0x78])]:_0xf31e67([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]),[_0xf31e67([0x79])]:_0xf31e67([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]),[_0xf31e67([0x61,0x6c,0x67])]:_0xf31e67([0x45,0x53,0x32,0x35,0x36])},_0x57460d=_0x25bddd[_0xf31e67([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf31e67([0x67,0x65,0x74])](_0xf31e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fee87(){let _0x4afd56,_0x4b680b=null,_0x5f1d70=null;try{if(_0x57460d==_0xf31e67([0x47,0x50,0x4c]))return _0xf31e67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4afd56=_0x486ee0(),!_0x4afd56)return _0xf31e67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4afd56[_0xf31e67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f1d70=_0x546e0b(_0x4afd56[_0xf31e67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4afd56[_0xf31e67([0x6a,0x74,0x69])])),await _0x3e056a()?_0x55675a()?_0x422930()?_0xf31e67([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15fae7()?(_0x4afd56[_0xf31e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf31e67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b680b=_0x464e3a(_0xf31e67([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4afd56[_0xf31e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf31e67([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b680b=_0x464e3a(_0xf31e67([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37ea56()):_0xf31e67([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf31e67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf31e67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x19428e){return _0xf31e67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x422930(){const _0x326af1=[_0xf31e67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf31e67([0x74,0x72,0x69,0x61,0x6c])][_0xf31e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4afd56[_0xf31e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33302d/0x3e8:0xe10*_0x2b73f0;return _0x4afd56[_0xf31e67([0x65,0x78,0x70])]<_0x326af1;}function _0x55675a(){const _0x6c1782=_0x4afd56[_0xf31e67([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x6c1782&&(!!_0x6c1782[_0xf31e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf31e67([0x2a]))||!!_0x6c1782[_0xf31e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf31e67([0x55,0x50,0x4c,0x43])));}function _0x15fae7(){const _0xc1305f=_0x423e,_0x1fc63b=_0x4afd56[_0xf31e67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fc63b||0x0==_0x1fc63b[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x387520}=new URL(window[_0xf31e67([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xc1305f(0x1cd)]);if(_0x1fc63b[_0xf31e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387520))return!0x0;const _0x248f17=_0x387520[_0xf31e67([0x73,0x70,0x6c,0x69,0x74])](_0xf31e67([0x2e]));return _0x1fc63b[_0xf31e67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ce5cc=>_0x3ce5cc[_0xf31e67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf31e67([0x2a])))[_0xf31e67([0x6d,0x61,0x70])](_0x166b33=>_0x166b33[_0xf31e67([0x73,0x70,0x6c,0x69,0x74])](_0xf31e67([0x2e])))[_0xf31e67([0x73,0x6f,0x6d,0x65])](_0x2db00c=>_0x248f17[_0xf31e67([0x65,0x76,0x65,0x72,0x79])]((_0x5dc7d5,_0xa1826a)=>_0x2db00c[_0xa1826a]===_0x5dc7d5||_0x2db00c[_0xa1826a]===_0xf31e67([0x2a])));}function _0x37ea56(){return _0x4b680b&&_0x5f1d70?new window[(_0xf31e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56ecc4,_0x4b0d11)=>{_0x4b680b[_0xf31e67([0x74,0x68,0x65,0x6e])](_0x56ecc4,_0x4b0d11),_0x5f1d70[_0xf31e67([0x74,0x68,0x65,0x6e])](_0x535c20=>{_0x535c20!=_0xf31e67([0x56,0x61,0x6c,0x69,0x64])&&_0x56ecc4(_0x535c20);},_0x4b0d11);}):_0x4b680b||_0x5f1d70||_0xf31e67([0x56,0x61,0x6c,0x69,0x64]);}}function _0x546e0b(_0x54ed93,_0x8ca212){return new window[(_0xf31e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5699b7=>{if(_0x164053())return _0x5699b7(_0xf31e67([0x56,0x61,0x6c,0x69,0x64]));_0x1d559d(),_0x25bddd[_0xf31e67([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf31e67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57c534=!0x1;const _0x5ca760=_0x16fd3b();function _0x33d7f1(_0x3e572a){return!!_0x3e572a&&(typeof _0x3e572a===_0xf31e67([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e572a===_0xf31e67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e572a[_0xf31e67([0x74,0x68,0x65,0x6e])]===_0xf31e67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e572a[_0xf31e67([0x63,0x61,0x74,0x63,0x68])]===_0xf31e67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x58dce8(_0x3329f5){_0x577cba(_0x3329f5)[_0xf31e67([0x74,0x68,0x65,0x6e])](_0x5dfcd3=>{if(!_0x5dfcd3||_0x5dfcd3[_0xf31e67([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf31e67([0x6f,0x6b]))return _0xf31e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d6f3c(_0x5c3548(_0x5ca760+_0x8ca212))!=_0x5dfcd3[_0xf31e67([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf31e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf31e67([0x56,0x61,0x6c,0x69,0x64]);})[_0xf31e67([0x74,0x68,0x65,0x6e])](_0x5af6f2=>(_0x5f2954(),_0x5af6f2),()=>{const _0x43b8e7=_0x2e65c6();return null==_0x43b8e7?(_0x5f2954(),_0xf31e67([0x56,0x61,0x6c,0x69,0x64])):_0xf31e67(_0x33302d-_0x43b8e7>(0x2c109b63^_0x17886a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf31e67([0x74,0x68,0x65,0x6e])](_0x5699b7)[_0xf31e67([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5699b7(_0xf31e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38d8f0=0x82af1e3^_0x17886a;function _0x5f2954(){const _0x18c44b=_0xf31e67([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d6f3c(_0x5c3548(_0x54ed93)),_0x4caf5b=_0x1ff045(_0x2d6f3c(window[_0xf31e67([0x4d,0x61,0x74,0x68])][_0xf31e67([0x63,0x65,0x69,0x6c])](_0x33302d/_0x38d8f0)));window[_0xf31e67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf31e67([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18c44b,_0x4caf5b);}function _0x2e65c6(){const _0xc9e7e3=_0xf31e67([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d6f3c(_0x5c3548(_0x54ed93)),_0x1c60fa=window[_0xf31e67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf31e67([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc9e7e3);return _0x1c60fa?window[_0xf31e67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ff045(_0x1c60fa),0x10)*_0x38d8f0:null;}function _0x577cba(_0x40fa0b){return new window[(_0xf31e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bf658,_0x2db53b)=>{_0x40fa0b[_0xf31e67([0x74,0x68,0x65,0x6e])](_0x1bf658,_0x2db53b),window[_0xf31e67([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2db53b,0x81dcba3^_0x17886a);});}}_0x25bddd[_0xf31e67([0x6f,0x6e])](_0xf31e67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e9470,_0x17a4d5)=>{if(_0x17a4d5[0x0]!=_0x54ed93)return _0x5699b7(_0xf31e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17a4d5[0x1]={..._0x17a4d5[0x1],[_0xf31e67([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ca760};},{[_0xf31e67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf31e67([0x68,0x69,0x67,0x68])}),_0x25bddd[_0xf31e67([0x6f,0x6e])](_0xf31e67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7234da=>{_0x33d7f1(_0x7234da[_0xf31e67([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57c534=!0x0,_0x58dce8(_0x7234da[_0xf31e67([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf31e67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf31e67([0x6c,0x6f,0x77])}),_0x48dc06[_0xf31e67([0x74,0x68,0x65,0x6e])](()=>{_0x57c534||_0x5699b7(_0xf31e67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x164053(){return _0x25bddd[_0xf31e67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf31e67([0x76,0x69,0x65,0x77])][_0xf31e67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf31e67([0x61,0x75,0x74,0x6f]);}function _0x1d559d(){_0x25bddd[_0xf31e67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf31e67([0x76,0x69,0x65,0x77])][_0xf31e67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf31e67([0x61,0x75,0x74,0x6f]);}}function _0x464e3a(_0x9e6353){const _0x406d5a=[new window[(_0xf31e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e66d9=>setTimeout(_0x4e66d9,0x81521af^_0x17886a)),_0x48dc06[_0xf31e67([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf31e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40f2b8=>{let _0x457946=0x0;_0x25bddd[_0xf31e67([0x6d,0x6f,0x64,0x65,0x6c])][_0xf31e67([0x6f,0x6e])](_0xf31e67([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e837f,_0x32a959)=>{_0x32a959[0x0][_0xf31e67([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x457946++,_0x457946==(0x81c1e9b^_0x17886a)&&(_0x40f2b8(),_0x5e837f[_0xf31e67([0x6f,0x66,0x66])]());});}))];return window[_0xf31e67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf31e67([0x72,0x61,0x63,0x65])](_0x406d5a)[_0xf31e67([0x74,0x68,0x65,0x6e])](()=>_0x9e6353);}async function _0xb3800e(){await _0x48dc06,_0x25bddd[_0xf31e67([0x6d,0x6f,0x64,0x65,0x6c])][_0xf31e67([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x169b3c,_0x25bddd[_0xf31e67([0x6d,0x6f,0x64,0x65,0x6c])][_0xf31e67([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x169b3c,_0x25bddd[_0xf31e67([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf31e67([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc93db1(_0x5b7807){const _0x33ee74=_0x5563b9();_0x25bddd[_0x33ee74]=_0xf31e67([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b7807,_0x5b7807!=_0xf31e67([0x56,0x61,0x6c,0x69,0x64])&&_0xb3800e();}function _0x5563b9(){const _0x17b1a6=window[_0xf31e67([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf31e67([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf31e67([0x6e,0x6f,0x77])]())[_0xf31e67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf31e67([0x2e]),'');let _0x5e4c2c=_0xf31e67([0x4d]);for(let _0x5ba569=0x0;_0x5ba569<_0x17b1a6[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ba569+=0x2){let _0x36b6b5=window[_0xf31e67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17b1a6[_0xf31e67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ba569,_0x5ba569+0x2));_0x36b6b5>=_0x33ac96[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36b6b5-=_0x33ac96[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e4c2c+=_0x33ac96[_0x36b6b5];}return _0x5e4c2c;}function _0x486ee0(){const _0x568574=_0x57460d[_0xf31e67([0x73,0x70,0x6c,0x69,0x74])](_0xf31e67([0x2e]));if(0x3!=_0x568574[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42141b(_0x568574[0x1]);function _0x42141b(_0x3166db){const _0x202f89=_0x450935(_0x3166db);return _0x202f89&&_0x5d2bc2()?_0x202f89:null;function _0x5d2bc2(){const _0x5b677b=_0x202f89[_0xf31e67([0x6a,0x74,0x69])],_0xd13215=window[_0xf31e67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b677b[_0xf31e67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b677b[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37dcef={..._0x202f89,[_0xf31e67([0x6a,0x74,0x69])]:_0x5b677b[_0xf31e67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b677b[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37dcef[_0xf31e67([0x76,0x63])],_0x5c3548(_0x37dcef)==_0xd13215;}}}async function _0x3e056a(){let _0x1072a4=!0x0;try{const _0x45dd18=_0x57460d[_0xf31e67([0x73,0x70,0x6c,0x69,0x74])](_0xf31e67([0x2e])),[_0x950a66,_0x4ca404,_0x2f019c]=_0x45dd18;return _0x34700c(_0x950a66),await _0x5d85cf(_0x950a66,_0x4ca404,_0x2f019c),_0x1072a4;}catch(_0x217a35){return!0x1;}function _0x34700c(_0x54f9c4){const _0x554356=_0x450935(_0x54f9c4);_0x554356&&_0x554356[_0xf31e67([0x61,0x6c,0x67])]==_0xf31e67([0x45,0x53,0x32,0x35,0x36])||(_0x1072a4=!0x1);}async function _0x5d85cf(_0xf75d,_0xd43fa5,_0x24860e){const _0x27805c=window[_0xf31e67([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf31e67([0x66,0x72,0x6f,0x6d])](_0x156b1f(_0x24860e),_0x1fd896=>_0x1fd896[_0xf31e67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2513d1=new window[(_0xf31e67([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf31e67([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf75d+_0xf31e67([0x2e])+_0xd43fa5),_0x24f5f2=window[_0xf31e67([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf31e67([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24f5f2)return;const _0x564a6d=await _0x24f5f2[_0xf31e67([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf31e67([0x6a,0x77,0x6b]),_0x2be070,{[_0xf31e67([0x6e,0x61,0x6d,0x65])]:_0xf31e67([0x45,0x43,0x44,0x53,0x41]),[_0xf31e67([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf31e67([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf31e67([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24f5f2[_0xf31e67([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf31e67([0x6e,0x61,0x6d,0x65])]:_0xf31e67([0x45,0x43,0x44,0x53,0x41]),[_0xf31e67([0x68,0x61,0x73,0x68])]:{[_0xf31e67([0x6e,0x61,0x6d,0x65])]:_0xf31e67([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x564a6d,_0x27805c,_0x2513d1)||(_0x1072a4=!0x1);}}function _0x450935(_0x2370db){return _0x2370db[_0xf31e67([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf31e67([0x65,0x79]))?JSON[_0xf31e67([0x70,0x61,0x72,0x73,0x65])](_0x156b1f(_0x2370db)):null;}function _0x156b1f(_0x560e44){return window[_0xf31e67([0x61,0x74,0x6f,0x62])](_0x560e44[_0xf31e67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf31e67([0x2b]))[_0xf31e67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf31e67([0x2f])));}function _0x5c3548(_0x48a621){let _0x1b9ea9=0x1505;function _0x2f0e51(_0x126255){for(let _0x5b91bc=0x0;_0x5b91bc<_0x126255[_0xf31e67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b91bc++){const _0x23878e=_0x126255[_0xf31e67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b91bc);_0x1b9ea9=(_0x1b9ea9<<0x5)+_0x1b9ea9+_0x23878e,_0x1b9ea9&=_0x1b9ea9;}}function _0x304c87(_0x1b9237){Array[_0xf31e67([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b9237)?_0x1b9237[_0xf31e67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x304c87):_0x1b9237&&typeof _0x1b9237==_0xf31e67([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf31e67([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b9237)[_0xf31e67([0x73,0x6f,0x72,0x74])]()[_0xf31e67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x153168,_0x2042e1])=>{_0x2f0e51(_0x153168),_0x304c87(_0x2042e1);}):_0x2f0e51(window[_0xf31e67([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b9237));}return _0x304c87(_0x48a621),_0x1b9ea9>>>0x0;}function _0x2d6f3c(_0x4a6b2e){return _0x4a6b2e[_0xf31e67([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf31e67([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf31e67([0x30]));}function _0x1ff045(_0x4aed77){return _0x4aed77[_0xf31e67([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf31e67([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf31e67([0x6a,0x6f,0x69,0x6e])]('');}function _0x169b3c(){}function _0xf31e67(_0x44e63d){const _0x41f1aa=_0x423e;return _0x44e63d[_0x41f1aa(0x1af)](_0x17c76d=>String[_0x41f1aa(0x1c0)](_0x17c76d))[_0x41f1aa(0x1a1)]('');}_0xc93db1(await _0x1fee87());}(this);}[_0x23e38b(0x1b8)](){const _0x347c9b=_0x23e38b,_0x15425c=this[_0x347c9b(0x1c6)][_0x347c9b(0x1c5)][_0x347c9b(0x1cf)];_0x15425c[_0x347c9b(0x1c1)](_0x347c9b(0x1c9))&&_0x15425c[_0x347c9b(0x1d4)](_0x347c9b(0x1c9),{'allowAttributes':[_0x347c9b(0x1d9)]}),_0x15425c[_0x347c9b(0x1c1)](_0x347c9b(0x18f))&&_0x15425c[_0x347c9b(0x1d4)](_0x347c9b(0x18f),{'allowAttributes':[_0x347c9b(0x1d9)]});}[_0x23e38b(0x1a0)](){const _0x3eb52e=_0x23e38b,_0x164f0e=this[_0x3eb52e(0x1c6)];_0x164f0e[_0x3eb52e(0x1b2)][_0x3eb52e(0x19f)](_0x3eb52e(0x18e))[_0x3eb52e(0x190)]({'model':_0x3eb52e(0x1d9),'view':_0x3eb52e(0x1b5)}),_0x164f0e[_0x3eb52e(0x1b2)][_0x3eb52e(0x19f)](_0x3eb52e(0x18a))[_0x3eb52e(0x196)]({'model':{'key':_0x3eb52e(0x1d9),'value':_0x3e1f3c=>_0x3e1f3c[_0x3eb52e(0x1c3)](_0x3eb52e(0x1b5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xfa630b=_0x164f0e[_0x3eb52e(0x1d6)][_0x3eb52e(0x188)](_0x3eb52e(0x19d));_0xfa630b&&this[_0x3eb52e(0x198)](_0xfa630b,_0x3eb52e(0x1c2),(_0x565b4d,[_0x44c91c,_0x3ce4be])=>{const _0x130fa9=_0x3eb52e;_0x44c91c[_0x130fa9(0x1a5)](_0x130fa9(0x1d9),_0x3ce4be);});}[_0x23e38b(0x1d5)](){const _0x83d613=_0x23e38b,_0x432eab=this[_0x83d613(0x1c6)][_0x83d613(0x1b3)][_0x83d613(0x188)](_0x83d613(0x1bc))||{},_0x16d40a=this[_0x83d613(0x1c6)][_0x83d613(0x1b3)][_0x83d613(0x188)](_0x83d613(0x1b7))||'';this[_0x83d613(0x1ac)]=_0x3af2ee(_0x3c532f[_0x83d613(0x1d1)],_0x83d613(0x1d2),{..._0x432eab,'pubkey':_0x16d40a,'ctx-name':_0x83d613(0x1c4),'sourceList':'','imgOnly':_0x83d613(0x193),'removeCopyright':_0x83d613(0x193),'localeName':this[_0x83d613(0x1c6)][_0x83d613(0x1cb)][_0x83d613(0x1d7)],'externalSourcesEmbedCss':_0x83d613(0x18c)}),this[_0x83d613(0x1ac)][_0x83d613(0x1ce)]=_0x4e607c=>{const _0x3200b2=_0x83d613;if(_0x3200b2(0x199)==_0x4e607c)return _0x3200b2(0x1a2);},_0x3c532f[_0x83d613(0x1d1)][_0x83d613(0x1d0)][_0x83d613(0x197)](this[_0x83d613(0x1ac)]);}[_0x23e38b(0x1a8)](){const _0x438709=_0x23e38b;this[_0x438709(0x1bd)]=_0x3af2ee(_0x3c532f[_0x438709(0x1d1)],_0x438709(0x1d8),{'ctx-name':_0x438709(0x1c4)}),_0x3c532f[_0x438709(0x1d1)][_0x438709(0x1d0)][_0x438709(0x197)](this[_0x438709(0x1bd)]);}[_0x23e38b(0x1a9)](){const _0x336791=_0x23e38b,_0x4e7b3f=this[_0x336791(0x1c6)][_0x336791(0x1d6)][_0x336791(0x188)](_0x336791(0x1aa));_0x4e7b3f&&this[_0x336791(0x198)](_0x4e7b3f,_0x336791(0x1ca),()=>{const _0x1f715e=_0x336791,_0x3d872f=this[_0x1f715e(0x1c6)][_0x1f715e(0x1c5)][_0x1f715e(0x1d1)][_0x1f715e(0x1cc)][_0x1f715e(0x1ab)]();_0x3d872f&&_0x3d872f[_0x1f715e(0x1c3)](_0x1f715e(0x1d9))&&this[_0x1f715e(0x1c6)][_0x1f715e(0x192)][_0x1f715e(0x19b)][_0x1f715e(0x1b6)](_0x1f715e(0x1a4),()=>{const _0x4eceaf=_0x1f715e;_0x25aecc(this[_0x4eceaf(0x1c6)],_0x3d872f);});});const _0x13cc47=this[_0x336791(0x1c6)][_0x336791(0x1d6)][_0x336791(0x188)](_0x336791(0x1bf));_0x13cc47&&this[_0x336791(0x198)](_0x13cc47,_0x336791(0x1ca),()=>{const _0x1ec7e6=_0x336791,_0x5565e5=this[_0x1ec7e6(0x1c6)][_0x1ec7e6(0x1c5)][_0x1ec7e6(0x1d1)][_0x1ec7e6(0x1cc)][_0x1ec7e6(0x1ab)]();_0x5565e5&&_0x5565e5[_0x1ec7e6(0x1c3)](_0x1ec7e6(0x1d9))&&this[_0x1ec7e6(0x1c6)][_0x1ec7e6(0x192)][_0x1ec7e6(0x19b)][_0x1ec7e6(0x1b6)](_0x1ec7e6(0x1a4),()=>{const _0x338202=_0x1ec7e6;_0x25aecc(this[_0x338202(0x1c6)],_0x5565e5);});});}}
|
|
23
|
+
const _0x4aad92=_0x85ea;(function(_0x743556,_0x42955b){const _0x500643=_0x85ea,_0x10b79a=_0x743556();while(!![]){try{const _0x3703a0=-parseInt(_0x500643(0x107))/0x1+-parseInt(_0x500643(0x112))/0x2*(-parseInt(_0x500643(0xf8))/0x3)+parseInt(_0x500643(0xf1))/0x4+-parseInt(_0x500643(0xd7))/0x5*(parseInt(_0x500643(0xf3))/0x6)+parseInt(_0x500643(0x102))/0x7*(parseInt(_0x500643(0x108))/0x8)+parseInt(_0x500643(0xcd))/0x9+-parseInt(_0x500643(0x11e))/0xa;if(_0x3703a0===_0x42955b)break;else _0x10b79a['push'](_0x10b79a['shift']());}catch(_0x40e1e6){_0x10b79a['push'](_0x10b79a['shift']());}}}(_0x4c6b,0x4da54));import{Plugin as _0x2bb356}from'ckeditor5/src/core.js';import{Dialog as _0x31e3b2}from'ckeditor5/src/ui.js';import{createElement as _0x17e54c,global as _0x2b126d,uid as _0x1e117f}from'ckeditor5/src/utils.js';import _0xc59a6e from'./uploadcarecommand.js';function _0x85ea(_0x302cb5,_0x221a9d){const _0x4c6bc3=_0x4c6b();return _0x85ea=function(_0x85ea2f,_0x55d386){_0x85ea2f=_0x85ea2f-0xcb;let _0x3f6a55=_0x4c6bc3[_0x85ea2f];return _0x3f6a55;},_0x85ea(_0x302cb5,_0x221a9d);}import _0xc1eead from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x25b518}from'./utils/editingutils.js';export default class i extends _0x2bb356{[_0x4aad92(0x117)]=null;[_0x4aad92(0xe9)]=null;static get[_0x4aad92(0x11b)](){const _0x11bc7a=_0x4aad92;return _0x11bc7a(0xe4);}static get[_0x4aad92(0x116)](){const _0x287c22=_0x4aad92;return[_0x287c22(0xf4),_0xc1eead,_0x31e3b2];}static get[_0x4aad92(0xd1)](){return!0x0;}static get[_0x4aad92(0x10c)](){return!0x0;}get[_0x4aad92(0xfb)](){const _0xa2ad64=_0x4aad92;return this[_0xa2ad64(0x117)];}get[_0x4aad92(0xe0)](){const _0x129693=_0x4aad92;return this[_0x129693(0xe9)];}[_0x4aad92(0x10a)](){const _0x1393ac=_0x4aad92,_0x405418=this[_0x1393ac(0xdf)];_0x405418[_0x1393ac(0xdc)][_0x1393ac(0xdb)](_0x1393ac(0xda),new _0xc59a6e(_0x405418));}[_0x4aad92(0xff)](){const _0x47bfa6=_0x4aad92;this[_0x47bfa6(0xd8)](),this[_0x47bfa6(0x105)](),this[_0x47bfa6(0xe3)](),this[_0x47bfa6(0xdd)](),this[_0x47bfa6(0xcc)](),this[_0x47bfa6(0xfa)](this[_0x47bfa6(0xdf)],_0x47bfa6(0x11a),()=>{const _0x3728c5=_0x47bfa6;this[_0x3728c5(0x117)]&&(this[_0x3728c5(0x117)][_0x3728c5(0xde)](),this[_0x3728c5(0x117)]=null),this[_0x3728c5(0xe9)]&&(this[_0x3728c5(0xe9)][_0x3728c5(0xde)](),this[_0x3728c5(0xe9)]=null);const _0x4282b6=_0x2b126d[_0x3728c5(0x114)][_0x3728c5(0xcb)](_0x3728c5(0xd5));_0x4282b6&&_0x4282b6[_0x3728c5(0xde)]();}),async function(_0x24bfcb){const _0x5855bc=_0x3fafe1([0x55,0x5a,0x51,0x69,0x72,0x70,0x7a,0x58,0x57,0x65,0x52,0x6f,0x36,0x46,0x79,0x4e,0x59,0x53,0x67,0x30,0x44,0x6b,0x34,0x4a,0x48,0x37,0x4c,0x64,0x31,0x62,0x76,0x61,0x6e,0x71,0x68,0x41,0x6a,0x33,0x47,0x39,0x45,0x42,0x4b,0x4f,0x4d,0x74,0x75,0x35,0x54,0x49,0x43,0x50,0x63,0x77,0x73,0x32,0x56,0x66,0x38,0x6d,0x78,0x6c]),_0xf0ec2d=0x54808abb,_0xcee78c=0x5487ed93^_0xf0ec2d,_0x71e8bf=window[_0x3fafe1([0x44,0x61,0x74,0x65])][_0x3fafe1([0x6e,0x6f,0x77])](),_0x3306ca=_0x24bfcb[_0x3fafe1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb4ae25=new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x482388=>{_0x3306ca[_0x3fafe1([0x6f,0x6e,0x63,0x65])](_0x3fafe1([0x72,0x65,0x61,0x64,0x79]),_0x482388);}),_0x8befb6={[_0x3fafe1([0x6b,0x74,0x79])]:_0x3fafe1([0x45,0x43]),[_0x3fafe1([0x75,0x73,0x65])]:_0x3fafe1([0x73,0x69,0x67]),[_0x3fafe1([0x63,0x72,0x76])]:_0x3fafe1([0x50,0x2d,0x32,0x35,0x36]),[_0x3fafe1([0x78])]:_0x3fafe1([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]),[_0x3fafe1([0x79])]:_0x3fafe1([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]),[_0x3fafe1([0x61,0x6c,0x67])]:_0x3fafe1([0x45,0x53,0x32,0x35,0x36])},_0x125084=_0x3306ca[_0x3fafe1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fafe1([0x67,0x65,0x74])](_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3dd237(){let _0x99db46,_0x2f0e1e=null,_0x36b7cc=null;try{if(_0x125084==_0x3fafe1([0x47,0x50,0x4c]))return _0x3fafe1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x99db46=_0x2f4f9a(),!_0x99db46)return _0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x99db46[_0x3fafe1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36b7cc=_0x4a68da(_0x99db46[_0x3fafe1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x99db46[_0x3fafe1([0x6a,0x74,0x69])])),await _0x375321()?_0xb00920()?_0x1e9a8b()?_0x3fafe1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ff611()?(_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fafe1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f0e1e=_0x1ecf95(_0x3fafe1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fafe1([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f0e1e=_0x1ecf95(_0x3fafe1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa5cc09()):_0x3fafe1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fafe1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3b5c15){return _0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e9a8b(){const _0x4d1e5b=[_0x3fafe1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fafe1([0x74,0x72,0x69,0x61,0x6c])][_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x71e8bf/0x3e8:0xe10*_0xcee78c;return _0x99db46[_0x3fafe1([0x65,0x78,0x70])]<_0x4d1e5b;}function _0xb00920(){const _0x5af7e0=_0x99db46[_0x3fafe1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5af7e0&&(!!_0x5af7e0[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x2a]))||!!_0x5af7e0[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x55,0x50,0x4c,0x43])));}function _0x1ff611(){const _0x588283=_0x85ea,_0x1b9762=_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b9762||0x0==_0x1b9762[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19fd0a}=new URL(window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x588283(0x106)]);if(_0x1b9762[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19fd0a))return!0x0;const _0x3022fb=_0x19fd0a[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e]));return _0x1b9762[_0x3fafe1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12c8c9=>_0x12c8c9[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x2a])))[_0x3fafe1([0x6d,0x61,0x70])](_0x5bc2f0=>_0x5bc2f0[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e])))[_0x3fafe1([0x73,0x6f,0x6d,0x65])](_0x31a619=>_0x3022fb[_0x3fafe1([0x65,0x76,0x65,0x72,0x79])]((_0xcf4fdd,_0xc98f86)=>_0x31a619[_0xc98f86]===_0xcf4fdd||_0x31a619[_0xc98f86]===_0x3fafe1([0x2a])));}function _0xa5cc09(){return _0x2f0e1e&&_0x36b7cc?new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4235e6,_0x1d5796)=>{_0x2f0e1e[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x4235e6,_0x1d5796),_0x36b7cc[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0xd18647=>{_0xd18647!=_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])&&_0x4235e6(_0xd18647);},_0x1d5796);}):_0x2f0e1e||_0x36b7cc||_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a68da(_0x2bdda2,_0x114c00){return new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f01d=>{if(_0x225426())return _0x42f01d(_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]));_0x2ff1f0(),_0x3306ca[_0x3fafe1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cf3da=!0x1;const _0x53ecf9=_0x1e117f();function _0x46f565(_0x51c1bd){return!!_0x51c1bd&&(typeof _0x51c1bd===_0x3fafe1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51c1bd===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51c1bd[_0x3fafe1([0x74,0x68,0x65,0x6e])]===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51c1bd[_0x3fafe1([0x63,0x61,0x74,0x63,0x68])]===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x518eb7(_0x5a62ed){_0x162ee7(_0x5a62ed)[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x3dc32b=>{if(!_0x3dc32b||_0x3dc32b[_0x3fafe1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fafe1([0x6f,0x6b]))return _0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ab059(_0x24cd11(_0x53ecf9+_0x114c00))!=_0x3dc32b[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x34eafb=>(_0x1fa9c7(),_0x34eafb),()=>{const _0x1a52a8=_0x2aea81();return null==_0x1a52a8?(_0x1fa9c7(),_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])):_0x3fafe1(_0x71e8bf-_0x1a52a8>(0x708c0ebb^_0xf0ec2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x42f01d)[_0x3fafe1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x585624=0x54b6643b^_0xf0ec2d;function _0x1fa9c7(){const _0x2872d7=_0x3fafe1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ab059(_0x24cd11(_0x2bdda2)),_0xe4b65a=_0x3d56f3(_0x2ab059(window[_0x3fafe1([0x4d,0x61,0x74,0x68])][_0x3fafe1([0x63,0x65,0x69,0x6c])](_0x71e8bf/_0x585624)));window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fafe1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2872d7,_0xe4b65a);}function _0x2aea81(){const _0x3214c8=_0x3fafe1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ab059(_0x24cd11(_0x2bdda2)),_0x191aa4=window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fafe1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3214c8);return _0x191aa4?window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d56f3(_0x191aa4),0x10)*_0x585624:null;}function _0x162ee7(_0x2f7dc4){return new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36a202,_0x7256bb)=>{_0x2f7dc4[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x36a202,_0x7256bb),window[_0x3fafe1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7256bb,0x54815e7b^_0xf0ec2d);});}}_0x3306ca[_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41b2b2,_0x2da47e)=>{if(_0x2da47e[0x0]!=_0x2bdda2)return _0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2da47e[0x1]={..._0x2da47e[0x1],[_0x3fafe1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53ecf9};},{[_0x3fafe1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fafe1([0x68,0x69,0x67,0x68])}),_0x3306ca[_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19d021=>{_0x46f565(_0x19d021[_0x3fafe1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cf3da=!0x0,_0x518eb7(_0x19d021[_0x3fafe1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fafe1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fafe1([0x6c,0x6f,0x77])}),_0xb4ae25[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>{_0x4cf3da||_0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x225426(){return _0x3306ca[_0x3fafe1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fafe1([0x76,0x69,0x65,0x77])][_0x3fafe1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fafe1([0x61,0x75,0x74,0x6f]);}function _0x2ff1f0(){_0x3306ca[_0x3fafe1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fafe1([0x76,0x69,0x65,0x77])][_0x3fafe1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fafe1([0x61,0x75,0x74,0x6f]);}}function _0x1ecf95(_0x313cc5){const _0x447348=[new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b7e40=>setTimeout(_0x5b7e40,0x5489b477^_0xf0ec2d)),_0xb4ae25[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x254b20=>{let _0x33d0f6=0x0;_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d394e,_0x54f82c)=>{_0x54f82c[0x0][_0x3fafe1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33d0f6++,_0x33d0f6==(0x54808b43^_0xf0ec2d)&&(_0x254b20(),_0x1d394e[_0x3fafe1([0x6f,0x66,0x66])]());});}))];return window[_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fafe1([0x72,0x61,0x63,0x65])](_0x447348)[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>_0x313cc5);}async function _0xb93af6(){await _0xb4ae25,_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x76ccc,_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x76ccc,_0x3306ca[_0x3fafe1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b6194(_0xdc8c26){const _0x27d711=_0x3c6082();_0x3306ca[_0x27d711]=_0x3fafe1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdc8c26,_0xdc8c26!=_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])&&_0xb93af6();}function _0x3c6082(){const _0x4abc4e=window[_0x3fafe1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fafe1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fafe1([0x6e,0x6f,0x77])]())[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fafe1([0x2e]),'');let _0x10a067=_0x3fafe1([0x55]);for(let _0x72ee7d=0x0;_0x72ee7d<_0x4abc4e[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x72ee7d+=0x2){let _0x1ad835=window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abc4e[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x72ee7d,_0x72ee7d+0x2));_0x1ad835>=_0x5855bc[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ad835-=_0x5855bc[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10a067+=_0x5855bc[_0x1ad835];}return _0x10a067;}function _0x2f4f9a(){const _0x1b4885=_0x125084[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e]));if(0x3!=_0x1b4885[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd6e45d(_0x1b4885[0x1]);function _0xd6e45d(_0x2677d3){const _0x552019=_0x38b2b1(_0x2677d3);return _0x552019&&_0x29c20d()?_0x552019:null;function _0x29c20d(){const _0x3ebc53=_0x552019[_0x3fafe1([0x6a,0x74,0x69])],_0x2ae900=window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebc53[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ebc53[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4eeeb0={..._0x552019,[_0x3fafe1([0x6a,0x74,0x69])]:_0x3ebc53[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ebc53[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4eeeb0[_0x3fafe1([0x76,0x63])],_0x24cd11(_0x4eeeb0)==_0x2ae900;}}}async function _0x375321(){let _0x444b46=!0x0;try{const _0x33d958=_0x125084[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e])),[_0x176bbb,_0x33d356,_0x209219]=_0x33d958;return _0x2892a0(_0x176bbb),await _0x4e091d(_0x176bbb,_0x33d356,_0x209219),_0x444b46;}catch(_0x2f421b){return!0x1;}function _0x2892a0(_0xa4fd4d){const _0x2d9389=_0x38b2b1(_0xa4fd4d);_0x2d9389&&_0x2d9389[_0x3fafe1([0x61,0x6c,0x67])]==_0x3fafe1([0x45,0x53,0x32,0x35,0x36])||(_0x444b46=!0x1);}async function _0x4e091d(_0x2022f4,_0x16f611,_0x312fbc){const _0x3a27b2=window[_0x3fafe1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fafe1([0x66,0x72,0x6f,0x6d])](_0x767ebf(_0x312fbc),_0x455048=>_0x455048[_0x3fafe1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x586828=new window[(_0x3fafe1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fafe1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2022f4+_0x3fafe1([0x2e])+_0x16f611),_0x48b1d7=window[_0x3fafe1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fafe1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48b1d7)return;const _0x51f7f5=await _0x48b1d7[_0x3fafe1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fafe1([0x6a,0x77,0x6b]),_0x8befb6,{[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x45,0x43,0x44,0x53,0x41]),[_0x3fafe1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fafe1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48b1d7[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x45,0x43,0x44,0x53,0x41]),[_0x3fafe1([0x68,0x61,0x73,0x68])]:{[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51f7f5,_0x3a27b2,_0x586828)||(_0x444b46=!0x1);}}function _0x38b2b1(_0x51630a){return _0x51630a[_0x3fafe1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fafe1([0x65,0x79]))?JSON[_0x3fafe1([0x70,0x61,0x72,0x73,0x65])](_0x767ebf(_0x51630a)):null;}function _0x767ebf(_0x540bbf){return window[_0x3fafe1([0x61,0x74,0x6f,0x62])](_0x540bbf[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fafe1([0x2b]))[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fafe1([0x2f])));}function _0x24cd11(_0x6700e5){let _0x5b205d=0x1505;function _0x21cd81(_0x892077){for(let _0x8939fe=0x0;_0x8939fe<_0x892077[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8939fe++){const _0x430f9e=_0x892077[_0x3fafe1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8939fe);_0x5b205d=(_0x5b205d<<0x5)+_0x5b205d+_0x430f9e,_0x5b205d&=_0x5b205d;}}function _0x56437d(_0x388a61){Array[_0x3fafe1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x388a61)?_0x388a61[_0x3fafe1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56437d):_0x388a61&&typeof _0x388a61==_0x3fafe1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fafe1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x388a61)[_0x3fafe1([0x73,0x6f,0x72,0x74])]()[_0x3fafe1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29e55b,_0x4b7dab])=>{_0x21cd81(_0x29e55b),_0x56437d(_0x4b7dab);}):_0x21cd81(window[_0x3fafe1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x388a61));}return _0x56437d(_0x6700e5),_0x5b205d>>>0x0;}function _0x2ab059(_0x405535){return _0x405535[_0x3fafe1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fafe1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fafe1([0x30]));}function _0x3d56f3(_0x269672){return _0x269672[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fafe1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fafe1([0x6a,0x6f,0x69,0x6e])]('');}function _0x76ccc(){}function _0x3fafe1(_0x3e040c){const _0x40bfdb=_0x85ea;return _0x3e040c[_0x40bfdb(0xfd)](_0x1adb99=>String[_0x40bfdb(0xea)](_0x1adb99))[_0x40bfdb(0xe6)]('');}_0x1b6194(await _0x3dd237());}(this);}[_0x4aad92(0xd8)](){const _0x2b46fa=_0x4aad92,_0x2a0b3a=this[_0x2b46fa(0xdf)][_0x2b46fa(0x118)][_0x2b46fa(0x115)];_0x2a0b3a[_0x2b46fa(0xd4)](_0x2b46fa(0xf7))&&_0x2a0b3a[_0x2b46fa(0xec)](_0x2b46fa(0xf7),{'allowAttributes':[_0x2b46fa(0xf9)]}),_0x2a0b3a[_0x2b46fa(0xd4)](_0x2b46fa(0xe5))&&_0x2a0b3a[_0x2b46fa(0xec)](_0x2b46fa(0xe5),{'allowAttributes':[_0x2b46fa(0xf9)]});}[_0x4aad92(0x105)](){const _0x2e90d8=_0x4aad92,_0x216c43=this[_0x2e90d8(0xdf)];_0x216c43[_0x2e90d8(0xeb)][_0x2e90d8(0xf2)](_0x2e90d8(0xe7))[_0x2e90d8(0x113)]({'model':_0x2e90d8(0xf9),'view':_0x2e90d8(0xd3)}),_0x216c43[_0x2e90d8(0xeb)][_0x2e90d8(0xf2)](_0x2e90d8(0x109))[_0x2e90d8(0x11d)]({'model':{'key':_0x2e90d8(0xf9),'value':_0x49b909=>_0x49b909[_0x2e90d8(0xcf)](_0x2e90d8(0xd3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xea72eb=_0x216c43[_0x2e90d8(0xdc)][_0x2e90d8(0xd6)](_0x2e90d8(0x10b));_0xea72eb&&this[_0x2e90d8(0xfa)](_0xea72eb,_0x2e90d8(0x101),(_0x258457,[_0x75b456,_0x2c1dc7])=>{const _0x6d6528=_0x2e90d8;_0x75b456[_0x6d6528(0xe8)](_0x6d6528(0xf9),_0x2c1dc7);});}[_0x4aad92(0xe3)](){const _0xef5867=_0x4aad92,_0x59c9fe=this[_0xef5867(0xdf)][_0xef5867(0xee)][_0xef5867(0xd6)](_0xef5867(0x100))||{},_0x14c2e6=this[_0xef5867(0xdf)][_0xef5867(0xee)][_0xef5867(0xd6)](_0xef5867(0x11c))||'';this[_0xef5867(0x117)]=_0x17e54c(_0x2b126d[_0xef5867(0x114)],_0xef5867(0xef),{..._0x59c9fe,'pubkey':_0x14c2e6,'ctx-name':_0xef5867(0x10f),'sourceList':'','imgOnly':_0xef5867(0xfc),'removeCopyright':_0xef5867(0xfc),'localeName':this[_0xef5867(0xdf)][_0xef5867(0x10e)][_0xef5867(0xe1)],'externalSourcesEmbedCss':_0xef5867(0x119)}),this[_0xef5867(0x117)][_0xef5867(0xe2)]=_0x5b8484=>{const _0x1dabb0=_0xef5867;if(_0x1dabb0(0xd0)==_0x5b8484)return _0x1dabb0(0xd9);},_0x2b126d[_0xef5867(0x114)][_0xef5867(0x103)][_0xef5867(0xce)](this[_0xef5867(0x117)]);}[_0x4aad92(0xdd)](){const _0x481509=_0x4aad92;this[_0x481509(0xe9)]=_0x17e54c(_0x2b126d[_0x481509(0x114)],_0x481509(0x111),{'ctx-name':_0x481509(0x10f)}),_0x2b126d[_0x481509(0x114)][_0x481509(0x103)][_0x481509(0xce)](this[_0x481509(0xe9)]);}[_0x4aad92(0xcc)](){const _0xf4b12d=_0x4aad92,_0x1f7b84=this[_0xf4b12d(0xdf)][_0xf4b12d(0xdc)][_0xf4b12d(0xd6)](_0xf4b12d(0x110));_0x1f7b84&&this[_0xf4b12d(0xfa)](_0x1f7b84,_0xf4b12d(0xf5),()=>{const _0xecb531=_0xf4b12d,_0x49453a=this[_0xecb531(0xdf)][_0xecb531(0x118)][_0xecb531(0x114)][_0xecb531(0xed)][_0xecb531(0xf0)]();_0x49453a&&_0x49453a[_0xecb531(0xcf)](_0xecb531(0xf9))&&this[_0xecb531(0xdf)][_0xecb531(0xfe)][_0xecb531(0xf6)][_0xecb531(0x104)](_0xecb531(0x10d),()=>{const _0x303beb=_0xecb531;_0x25b518(this[_0x303beb(0xdf)],_0x49453a);});});const _0x23a53e=this[_0xf4b12d(0xdf)][_0xf4b12d(0xdc)][_0xf4b12d(0xd6)](_0xf4b12d(0xd2));_0x23a53e&&this[_0xf4b12d(0xfa)](_0x23a53e,_0xf4b12d(0xf5),()=>{const _0x512867=_0xf4b12d,_0x1073fc=this[_0x512867(0xdf)][_0x512867(0x118)][_0x512867(0x114)][_0x512867(0xed)][_0x512867(0xf0)]();_0x1073fc&&_0x1073fc[_0x512867(0xcf)](_0x512867(0xf9))&&this[_0x512867(0xdf)][_0x512867(0xfe)][_0x512867(0xf6)][_0x512867(0x104)](_0x512867(0x10d),()=>{const _0x20cf20=_0x512867;_0x25b518(this[_0x20cf20(0xdf)],_0x1073fc);});});}}function _0x4c6b(){const _0x2f8317=['12PdfiUi','uploadcareImageId','listenTo','configElement','true','map','editing','afterInit','uploadcare.uploader','cleanupImage','133aPMPoL','body','once','_initConversion','href','113458DbTquv','111368qfkDrZ','upcast','init','replaceImageSource','isPremiumPlugin','render','locale','uploader','insertImage','uc-upload-ctx-provider','130950aOYsez','attributeToAttribute','document','schema','requires','_configElement','model','\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','destroy','pluginName','uploadcare.pubkey','elementToAttribute','3117120iLjFsb','querySelector','_initImageProcessingIndicator','3909780wFuuYb','appendChild','getAttribute','closeMax','isOfficialPlugin','uploadcareImageReplace','data-uc-image-id','isRegistered','input[uploadcare-file-input]','get','1190745YCVgdp','_initSchema','#uc-icon-arrow-down','uploadcare','add','commands','_initCtx','remove','editor','ctxElement','contentLanguage','iconHrefResolver','_initConfig','UploadcareEditing','imageInline','join','downcast','removeAttribute','_ctxElement','fromCharCode','conversion','extend','selection','config','uc-config','getSelectedElement','82144EkxShe','for','6Vknerq','PictureEditing','execute','view','imageBlock'];_0x4c6b=function(){return _0x2f8317;};return _0x4c6b();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x597534,ObservableMixin as _0x3aae78}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5fc382}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x521256}from'ckeditor5/src/icons.js';import _0x44a30a from'./uploadcareimageeditformview.js';import _0x4ad2a8 from'../../utils/uploadutils.js';import{getImageUrls as _0x10f86a,getImageDimension as _0x3468cc}from'../../utils/editingutils.js';import{isAncestor as _0x1d3996}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3aae78(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x17bfc8,_0x531a52,_0x227ca0){super(),this['_editor']=_0x17bfc8,this['_dialog']=_0x531a52,this['_imageElement']=_0x227ca0,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 _0x1b73f7=this['_imageElement'],_0x54af4f=_0x1b73f7['getAttribute']('uploadcareImageId'),_0x50f07c=_0x1b73f7['getAttribute']('src');if(_0x54af4f)await this['_loadImageInfo'](_0x54af4f,_0x50f07c);else{if(this['_imageCache']['has'](_0x50f07c)){const _0x5f34dd=this['_imageCache']['get'](_0x50f07c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f34dd['url'],this['imageDimension']=_0x5f34dd['dimension'],this['imageId']=_0x5f34dd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ff8f6}=this['_editor'],t=_0x2ff8f6['t'],_0x56ce17=new _0x44a30a(_0x2ff8f6,this['imageStatus'],this['_attributes']);_0x56ce17['bind']('status')['to'](this,'imageStatus'),_0x56ce17['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x56ce17['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x56ce17['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x56ce17,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x521256,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x56ce17,'position':_0x5fc382['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x56ce17['focus']();},'onHide':()=>{_0x56ce17['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5377ab=>!_0x1d3996(_0x5377ab,_0x56ce17['element'])}});}['_loadImageInfo'](_0x3beb49,_0x5a2a9b){return _0x4ad2a8['getInfo'](_0x3beb49,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2f9fbb=>{const {width:_0x273fda,height:_0x296e85}=_0x2f9fbb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a2a9b,this['imageDimension']={'width':_0x273fda,'height':_0x296e85},this['imageId']=_0x3beb49;})['catch'](_0x3615b9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3615b9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d7fd3,_0x33b193){return this['_getImageAsFile'](_0x3d7fd3)['then'](_0xd65a3f=>_0x4ad2a8['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x33b193['signal'],'file':_0xd65a3f,'onProgress':_0x2307b1=>{_0x2307b1&&_0x2307b1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2307b1['value']));}}))['then'](_0x20ed59=>{const {width:_0x1fa462,height:_0x4987e0}=_0x20ed59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x20ed59['cdnUrl'],this['imageDimension']={'width':_0x1fa462,'height':_0x4987e0},this['imageId']=_0x20ed59['uuid'],this['imageUploadProgress']=null;const _0x2079ee=_0x3d7fd3['getAttribute']('src');this['_imageCache']['set'](_0x2079ee,{'id':_0x20ed59['uuid'],'url':_0x20ed59['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a1fa0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a1fa0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x449c41,_0x58d049){_0x449c41['on']('apply',(_0x584b4d,_0x18f5f4)=>{this['_replaceImage'](_0x58d049,_0x18f5f4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x449c41['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x449c41['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x26d193,_0x502186,_0x4778cb){const _0x3de747=this['_editor'],{width:_0x1ff108,height:_0x5b1a7e}=_0x3468cc(_0x502186,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5e20a2,imageSources:_0x5db6eb}=_0x10f86a(_0x502186,_0x1ff108);_0x3de747['model']['change'](_0x487dbb=>{if('$graveyard'===_0x26d193['root']['rootName']){_0x3de747['execute']('insertImage',{'imageType':_0x26d193['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x26d193['getAttributes']()),'uploadcareImageId':_0x4778cb,'src':_0x5e20a2,'sources':_0x5db6eb,'width':_0x1ff108,'height':_0x5b1a7e}});const _0x44dde0=_0x26d193['getChildren']();_0x26d193=_0x3de747['model']['document']['selection']['getSelectedElement']();for(const _0x4df494 of _0x44dde0)_0x487dbb['append'](_0x487dbb['cloneElement'](_0x4df494),_0x26d193);}else _0x487dbb['setSelection'](_0x26d193,'on'),_0x3de747['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x26d193['getAttributes']()),'uploadcareImageId':_0x4778cb,'src':_0x5e20a2,'sources':_0x5db6eb,'width':_0x1ff108,'height':_0x5b1a7e},_0x26d193);_0x487dbb['setSelection'](_0x26d193,'on');});}async['_getImageAsFile'](_0x21953c){const _0x192ef3=_0x597534['window'],_0x377a02=_0x597534['document']['location']['href'],_0x378ee7=new _0x192ef3['URL'](_0x21953c['getAttribute']('src'),_0x377a02);if('data:'===_0x378ee7['protocol']){const _0xed193e=_0x378ee7['href']['split'](','),_0x545237=_0xed193e[0x0]['match'](/:(.*?);/)[0x1],_0x40c965=_0x545237['split']('/')[0x1],_0x2a5daa=_0x192ef3['atob'](_0xed193e[_0xed193e['length']-0x1]);let _0x5e6f87=_0x2a5daa['length'];const _0x5d9d72=new _0x192ef3['Uint8Array'](_0x5e6f87);for(;_0x5e6f87--;)_0x5d9d72[_0x5e6f87]=_0x2a5daa['charCodeAt'](_0x5e6f87);return new _0x192ef3['File']([_0x5d9d72],'image.'+_0x40c965,{'type':_0x545237});}const _0x2c8b39=_0x378ee7['href']['split']('/'),_0xc86122=_0x2c8b39[_0x2c8b39['length']-0x1],_0x2c769f=_0xc86122['split']('.')[0x1];return _0x192ef3['fetch'](_0x378ee7['href'])['then'](_0x3ad45e=>_0x3ad45e['clone']()['blob']())['then'](_0x504f50=>new _0x192ef3['File']([_0x504f50],_0xc86122,{'type':'image/'+_0x2c769f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xde3676,_0x2a73ff){const _0x4d7499=_0x3d15,_0x9dc8a6=_0xde3676();while(!![]){try{const _0x3d4f22=parseInt(_0x4d7499(0x11b))/0x1*(parseInt(_0x4d7499(0x118))/0x2)+-parseInt(_0x4d7499(0x10c))/0x3*(-parseInt(_0x4d7499(0x119))/0x4)+parseInt(_0x4d7499(0x11e))/0x5+parseInt(_0x4d7499(0x10f))/0x6+-parseInt(_0x4d7499(0x113))/0x7+-parseInt(_0x4d7499(0x117))/0x8*(-parseInt(_0x4d7499(0x114))/0x9)+-parseInt(_0x4d7499(0x11a))/0xa*(parseInt(_0x4d7499(0x11d))/0xb);if(_0x3d4f22===_0x2a73ff)break;else _0x9dc8a6['push'](_0x9dc8a6['shift']());}catch(_0x2e4bda){_0x9dc8a6['push'](_0x9dc8a6['shift']());}}}(_0x44ba,0x77ca6));function _0x3d15(_0x8ea98b,_0x918602){const _0x44ba61=_0x44ba();return _0x3d15=function(_0x3d158a,_0x3acc14){_0x3d158a=_0x3d158a-0x10c;let _0x57acac=_0x44ba61[_0x3d158a];return _0x57acac;},_0x3d15(_0x8ea98b,_0x918602);}import{View as _0x490b6}from'ckeditor5/src/ui.js';function _0x44ba(){const _0x283c57=['set','2041529QCgnMS','81przTyP','ck-uploadcare-theme','image-edit','257096vBydoW','2VXCLvg','1696208OudMiz','60yfhGVv','9515vnxkEv','uc-light','3223418oSzoHt','2536615BvEuWs','6JaMyxf','bindTemplate','imageSrc','5318172BntFbX','setTemplate','uc-cloud-image-editor'];_0x44ba=function(){return _0x283c57;};return _0x44ba();}export default class tt extends _0x490b6{constructor(_0x5866e8,_0x3009fb){const _0x1fd51a=_0x3d15;super(_0x5866e8);const _0x1c1806=this[_0x1fd51a(0x10d)];this[_0x1fd51a(0x112)](_0x1fd51a(0x10e),''),this[_0x1fd51a(0x110)]({'tag':_0x1fd51a(0x111),'attributes':{..._0x3009fb,'class':[_0x1fd51a(0x11c),_0x1fd51a(0x115)],'ctx-name':_0x1fd51a(0x116),'cdn-url':_0x1c1806['to'](_0x1fd51a(0x10e))}});}}
|
|
@@ -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 _0x4afc57,IconView as at,View as _0x5509fd}from'ckeditor5/src/ui.js';export default class rt extends _0x5509fd{constructor(_0xbf4977){super(_0xbf4977);const t=_0xbf4977['t'];this['set']('errorType',null);const _0x22d5b3=new _0x4afc57(_0xbf4977);_0x22d5b3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x22d5b3['withText']=!0x0,_0x22d5b3['class']='ck-button-action',_0x22d5b3['on']('execute',()=>{this['fire']('retry');}),_0x22d5b3['bind']('isVisible')['to'](this,'errorType',_0x1068f1=>'NotFound'!==_0x1068f1);const _0x2a9c78=new at();_0x2a9c78['content']=et,_0x2a9c78['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x349372=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':[_0x2a9c78,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x349372['to']('errorType',_0x300764=>t('NotFound'!==_0x300764?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x22d5b3]},{'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 _0xb08463,View as _0x41aa43}from'ckeditor5/src/ui.js';export default class ta extends _0x41aa43{constructor(_0x40f930){super(_0x40f930);const t=_0x40f930['t'],_0x1803aa=this['bindTemplate'],_0x43e501=new _0xb08463();_0x43e501['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':[_0x43e501,{'text':_0x1803aa['to']('imageUploadProgress',_0x18d161=>t('Loading\x20image...')+'\x20('+(_0x18d161||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x7ba1(_0x5b4153,_0x2bc8b1){const _0x2e8fe2=_0x2e8f();return _0x7ba1=function(_0x7ba184,_0x4a77ae){_0x7ba184=_0x7ba184-0x145;let _0x57526a=_0x2e8fe2[_0x7ba184];return _0x57526a;},_0x7ba1(_0x5b4153,_0x2bc8b1);}const _0x54802d=_0x7ba1;(function(_0x1add78,_0x38eaf3){const _0x3e3753=_0x7ba1,_0x1c7418=_0x1add78();while(!![]){try{const _0x501b7f=parseInt(_0x3e3753(0x153))/0x1*(-parseInt(_0x3e3753(0x145))/0x2)+parseInt(_0x3e3753(0x177))/0x3+parseInt(_0x3e3753(0x14b))/0x4*(-parseInt(_0x3e3753(0x17d))/0x5)+-parseInt(_0x3e3753(0x164))/0x6*(-parseInt(_0x3e3753(0x156))/0x7)+parseInt(_0x3e3753(0x176))/0x8+parseInt(_0x3e3753(0x149))/0x9*(parseInt(_0x3e3753(0x16e))/0xa)+parseInt(_0x3e3753(0x17a))/0xb*(-parseInt(_0x3e3753(0x158))/0xc);if(_0x501b7f===_0x38eaf3)break;else _0x1c7418['push'](_0x1c7418['shift']());}catch(_0x3e84f1){_0x1c7418['push'](_0x1c7418['shift']());}}}(_0x2e8f,0xeeaeb));import{View as _0x5b46b2}from'ckeditor5/src/ui.js';import _0xeae424 from'./uploadcareimageeditformloadingview.js';function _0x2e8f(){const _0x4dbe71=['2675916VniMQd','target','querySelector','121aukaoF','uc-cloud-image-editor','fire','457480aGzXUh','397074xWKsHO','_editingView','detail','ck-reset_all-excluded','12025143yZUIAN','ck-uploadcare-form','16KDvzLX','_focusableView','set','addEventListener','createCollection','focus','apply','retry','8xJKshb','add','nodeName','175HdDKvd','ready','3328116OmQQVD','render','_addUploadcareImageEditorListeners','_addErrorViewListeners','disconnect','filter','getFocusableElement','status','uploading','_loadingView','addMany','div','461622Jpgfhs','observe','_setView','cdnUrl','setTemplate','clear','cancel','addedNodes','element','toLowerCase','10Solzel','length','change:status','_items','_waitForImageEditorComponent','error','_errorView','once','14649376rCUVTg'];_0x2e8f=function(){return _0x4dbe71;};return _0x2e8f();}import _0x1770b4 from'./uploadcareimageeditformerrorview.js';import _0x555304 from'./uploadcareimageeditformeditingview.js';import _0x2daf2a from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x2daf2a{[_0x54802d(0x171)];[_0x54802d(0x161)];[_0x54802d(0x174)];[_0x54802d(0x146)];[_0x54802d(0x14c)];constructor(_0x11b1d5,_0x14a730,_0x127108){const _0x709a1e=_0x54802d;super(_0x11b1d5),this[_0x709a1e(0x171)]=this[_0x709a1e(0x14f)](),this[_0x709a1e(0x161)]=new _0xeae424(_0x11b1d5),this[_0x709a1e(0x174)]=new _0x1770b4(_0x11b1d5),this[_0x709a1e(0x146)]=new _0x555304(_0x11b1d5,_0x127108),this[_0x709a1e(0x14c)]=new _0x5b46b2(_0x11b1d5),this[_0x709a1e(0x14c)][_0x709a1e(0x168)](this[_0x709a1e(0x15e)]()),this[_0x709a1e(0x14d)](_0x709a1e(0x15f),_0x14a730),this[_0x709a1e(0x168)]({'tag':_0x709a1e(0x163),'attributes':{'class':['ck',_0x709a1e(0x148),_0x709a1e(0x14a)],'tabindex':'-1'},'children':this[_0x709a1e(0x171)]}),this[_0x709a1e(0x166)](),this[_0x709a1e(0x175)](_0x709a1e(0x159),()=>{const _0x44aa31=_0x709a1e;this[_0x44aa31(0x172)](this[_0x44aa31(0x16c)],_0x4834a6=>{const _0x55f09d=_0x44aa31;this[_0x55f09d(0x15a)](_0x4834a6);});}),this['on'](_0x709a1e(0x170),()=>{const _0x22cc1c=_0x709a1e;this[_0x22cc1c(0x166)]();}),this[_0x709a1e(0x15b)]();}[_0x54802d(0x150)](){const _0x835304=_0x54802d;this[_0x835304(0x16c)][_0x835304(0x150)]();}[_0x54802d(0x166)](){const _0x5dac72=_0x54802d;switch(this[_0x5dac72(0x171)][_0x5dac72(0x169)](),this[_0x5dac72(0x15f)]){case _0x5dac72(0x160):this[_0x5dac72(0x171)][_0x5dac72(0x154)](this[_0x5dac72(0x161)]);break;case _0x5dac72(0x173):this[_0x5dac72(0x171)][_0x5dac72(0x154)](this[_0x5dac72(0x174)]);break;case _0x5dac72(0x157):this[_0x5dac72(0x171)][_0x5dac72(0x162)]([this[_0x5dac72(0x146)],this[_0x5dac72(0x14c)]]);}}[_0x54802d(0x172)](_0x21ccaf,_0x1c1ee5){const _0x19f101=_0x54802d,_0x283e4b=_0x19f101(0x17b),_0x5ca836=_0x21ccaf[_0x19f101(0x179)](_0x283e4b);if(_0x5ca836)return _0x1c1ee5(_0x5ca836);const _0x5e90f3=new MutationObserver(_0x17b4a6=>{const _0x2e2b18=_0x19f101,_0x1eac03=_0x17b4a6[_0x2e2b18(0x15d)](_0x46e7c0=>_0x46e7c0[_0x2e2b18(0x178)]===_0x21ccaf&&_0x46e7c0[_0x2e2b18(0x16b)][_0x2e2b18(0x16f)]>0x0&&_0x46e7c0[_0x2e2b18(0x16b)][0x0][_0x2e2b18(0x155)][_0x2e2b18(0x16d)]()===_0x283e4b);_0x1eac03[_0x2e2b18(0x16f)]&&(_0x5e90f3[_0x2e2b18(0x15c)](),_0x1c1ee5(_0x1eac03[0x0][_0x2e2b18(0x16b)][0x0]));});_0x5e90f3[_0x19f101(0x165)](_0x21ccaf,{'childList':!0x0,'subtree':!0x0});}[_0x54802d(0x15a)](_0x58a4e2){const _0x30988e=_0x54802d;_0x58a4e2[_0x30988e(0x14e)](_0x30988e(0x151),_0x202620=>{const _0x23c688=_0x30988e;this[_0x23c688(0x17c)](_0x23c688(0x151),{'imageSrc':_0x202620[_0x23c688(0x147)][_0x23c688(0x167)]});}),_0x58a4e2[_0x30988e(0x14e)](_0x30988e(0x16a),()=>{const _0x4cb961=_0x30988e;this[_0x4cb961(0x17c)](_0x4cb961(0x16a));});}[_0x54802d(0x15b)](){const _0x55503b=_0x54802d;this[_0x55503b(0x174)]['on'](_0x55503b(0x152),()=>{const _0x4cd32e=_0x55503b;this[_0x4cd32e(0x17c)](_0x4cd32e(0x152));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf86fc0=_0x458b;(function(_0x5a129c,_0x4c25d7){const _0x2fdf96=_0x458b,_0x5f3b21=_0x5a129c();while(!![]){try{const _0x2a00ed=-parseInt(_0x2fdf96(0x1ed))/0x1*(-parseInt(_0x2fdf96(0x1f1))/0x2)+parseInt(_0x2fdf96(0x1e4))/0x3*(parseInt(_0x2fdf96(0x1ef))/0x4)+parseInt(_0x2fdf96(0x1f7))/0x5*(-parseInt(_0x2fdf96(0x1d7))/0x6)+parseInt(_0x2fdf96(0x1de))/0x7*(parseInt(_0x2fdf96(0x1f0))/0x8)+-parseInt(_0x2fdf96(0x1e9))/0x9*(-parseInt(_0x2fdf96(0x1f4))/0xa)+parseInt(_0x2fdf96(0x1ea))/0xb*(parseInt(_0x2fdf96(0x1ec))/0xc)+-parseInt(_0x2fdf96(0x1d9))/0xd;if(_0x2a00ed===_0x4c25d7)break;else _0x5f3b21['push'](_0x5f3b21['shift']());}catch(_0x3964b5){_0x5f3b21['push'](_0x5f3b21['shift']());}}}(_0x3a88,0xbf808));import{Command as _0x585f8b}from'ckeditor5/src/core.js';function _0x3a88(){const _0x22c233=['152280bUQHLs','requires','isActive','5jJNBha','config','bind','145794nsczsm','getSelectedElement','32895928SVPZJK','imageEditController','_isEditable','execute','imageBlock','49hhEYSF','model','element','isEnabled','set','plugins','291903xOBmSH','document','refresh','editor','unbind','144CkjuEl','602360vKzTBW','get','288dIjLES','470353cdTsGK','uploadcare.allowExternalImagesEditing','8edgDMw','1275776RCunYI','2yOKHVf','imageInline','selection'];_0x3a88=function(){return _0x22c233;};return _0x3a88();}function _0x458b(_0x2008b7,_0x4f6310){const _0x3a883e=_0x3a88();return _0x458b=function(_0x458ba4,_0x2e5eb1){_0x458ba4=_0x458ba4-0x1d5;let _0x4575bc=_0x3a883e[_0x458ba4];return _0x4575bc;},_0x458b(_0x2008b7,_0x4f6310);}import{Dialog as _0x1dab6f}from'ckeditor5/src/ui.js';import _0x94e223 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x42666}from'../utils/editingutils.js';export default class J extends _0x585f8b{[_0xf86fc0(0x1da)];static get[_0xf86fc0(0x1f5)](){return[_0x1dab6f];}[_0xf86fc0(0x1db)];constructor(_0x238e54){const _0x41fac7=_0xf86fc0;super(_0x238e54),this[_0x41fac7(0x1da)]=void 0x0,this[_0x41fac7(0x1db)]=_0x42666(_0x238e54[_0x41fac7(0x1d5)][_0x41fac7(0x1eb)](_0x41fac7(0x1ee))||[]),this[_0x41fac7(0x1e2)]({'isActive':!0x1});}[_0xf86fc0(0x1e6)](){const _0x1ae1eb=_0xf86fc0,_0x13c03c=this[_0x1ae1eb(0x1e7)][_0x1ae1eb(0x1df)][_0x1ae1eb(0x1e5)][_0x1ae1eb(0x1f3)][_0x1ae1eb(0x1d8)]();this[_0x1ae1eb(0x1e1)]=this[_0x1ae1eb(0x1db)](_0x13c03c);}[_0xf86fc0(0x1dc)](){const _0x208424=_0xf86fc0;this[_0x208424(0x1da)]&&(this[_0x208424(0x1e8)](_0x208424(0x1f6)),this[_0x208424(0x1da)]=void 0x0);const _0x4b9d81=this[_0x208424(0x1e7)][_0x208424(0x1df)][_0x208424(0x1e5)][_0x208424(0x1f3)][_0x208424(0x1d8)]();_0x4b9d81&&(_0x4b9d81['is'](_0x208424(0x1e0),_0x208424(0x1dd))||_0x4b9d81['is'](_0x208424(0x1e0),_0x208424(0x1f2)))&&(this[_0x208424(0x1da)]=new _0x94e223(this[_0x208424(0x1e7)],this[_0x208424(0x1e7)][_0x208424(0x1e3)][_0x208424(0x1eb)](_0x1dab6f),_0x4b9d81),this[_0x208424(0x1d6)](_0x208424(0x1f6))['to'](this[_0x208424(0x1da)],_0x208424(0x1f6)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x220bbf=_0x16ef;function _0x16ef(_0x561fe,_0x3c50e){const _0x209412=_0x2094();return _0x16ef=function(_0x16ef9c,_0x4d3e33){_0x16ef9c=_0x16ef9c-0x1e2;let _0xbbe911=_0x209412[_0x16ef9c];return _0xbbe911;},_0x16ef(_0x561fe,_0x3c50e);}(function(_0x1e4f12,_0x4c7bcf){const _0x416a87=_0x16ef,_0x340afe=_0x1e4f12();while(!![]){try{const _0x2110c8=parseInt(_0x416a87(0x1e5))/0x1*(parseInt(_0x416a87(0x1e9))/0x2)+-parseInt(_0x416a87(0x1f0))/0x3+-parseInt(_0x416a87(0x1e4))/0x4*(parseInt(_0x416a87(0x1f8))/0x5)+-parseInt(_0x416a87(0x1ee))/0x6*(parseInt(_0x416a87(0x1f5))/0x7)+-parseInt(_0x416a87(0x1f6))/0x8+parseInt(_0x416a87(0x1e6))/0x9*(-parseInt(_0x416a87(0x1eb))/0xa)+-parseInt(_0x416a87(0x1e7))/0xb*(-parseInt(_0x416a87(0x1e8))/0xc);if(_0x2110c8===_0x4c7bcf)break;else _0x340afe['push'](_0x340afe['shift']());}catch(_0x391123){_0x340afe['push'](_0x340afe['shift']());}}}(_0x2094,0xc10cc));import{Plugin as _0x1b3b7f}from'ckeditor5/src/core.js';import{Notification as _0x4a86c0}from'ckeditor5/src/ui.js';import _0x595416 from'./uploadcareimageeditcommand.js';function _0x2094(){const _0x5d2c3d=['175gmIZKD','init','isPremiumPlugin','uploadcareImageEdit','80232qukddc','1124kBqCmF','8718291VptLiq','11SRuQAM','51627912dRvkYA','1308IAKqIt','requires','10bFUUvH','isOfficialPlugin','uploadcareImageReplace','437556YAGFVv','add','839364fvjiOp','ImageUtils','commands','pluginName','ImageEditing','147WPryhD','6117816DkpmVV','UploadcareImageEditEditing'];_0x2094=function(){return _0x5d2c3d;};return _0x2094();}import _0x28fef8 from'./uploadcareimagereplacecommand.js';import _0x24faec from'../uploadcareediting.js';export default class g extends _0x1b3b7f{static get[_0x220bbf(0x1f3)](){const _0x486cc9=_0x220bbf;return _0x486cc9(0x1f7);}static get[_0x220bbf(0x1ea)](){const _0x5a7f56=_0x220bbf;return[_0x24faec,_0x4a86c0,_0x5a7f56(0x1f1),_0x5a7f56(0x1f4)];}static get[_0x220bbf(0x1ec)](){return!0x0;}static get[_0x220bbf(0x1e2)](){return!0x0;}[_0x220bbf(0x1f9)](){const _0x348eaf=_0x220bbf,{editor:_0x1d097b}=this;_0x1d097b[_0x348eaf(0x1f2)][_0x348eaf(0x1ef)](_0x348eaf(0x1e3),new _0x595416(_0x1d097b)),_0x1d097b[_0x348eaf(0x1f2)][_0x348eaf(0x1ef)](_0x348eaf(0x1ed),new _0x28fef8(_0x1d097b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xaf527f}from'ckeditor5/src/core.js';import{ButtonView as _0x59574e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x522b1f}from'ckeditor5/src/icons.js';import{createElement as _0x1960c1}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 _0xaf527f{['_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 _0x2335af=this['editor'];_0x2335af['ui']['componentFactory']['add']('uploadcareImageEdit',_0xf2ff5e=>{const _0x77650e=_0x2335af['commands']['get']('uploadcareImageEdit'),_0x598da4=new _0x59574e(_0xf2ff5e),t=_0xf2ff5e['t'];return _0x598da4['set']({'icon':_0x522b1f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x598da4['bind']('isEnabled')['to'](_0x77650e),_0x598da4['bind']('isOn')['to'](_0x77650e,'isActive'),this['listenTo'](_0x598da4,'execute',()=>{_0x2335af['execute']('uploadcareImageEdit'),_0x2335af['editing']['view']['focus']();}),_0x598da4;}),this['_initConfig']();}['_initConfig'](){const _0x458950=_0x1960c1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x458950),this['listenTo'](this['editor'],'destroy',()=>{_0x458950['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x59e3c1=_0x4129;(function(_0x583885,_0x891183){const _0x2e09ec=_0x4129,_0x103cf2=_0x583885();while(!![]){try{const _0x1961b6=parseInt(_0x2e09ec(0xae))/0x1*(-parseInt(_0x2e09ec(0xac))/0x2)+-parseInt(_0x2e09ec(0xb3))/0x3+parseInt(_0x2e09ec(0xb7))/0x4+-parseInt(_0x2e09ec(0xbf))/0x5*(-parseInt(_0x2e09ec(0xaa))/0x6)+-parseInt(_0x2e09ec(0xc0))/0x7*(-parseInt(_0x2e09ec(0xb6))/0x8)+-parseInt(_0x2e09ec(0xb1))/0x9+parseInt(_0x2e09ec(0xaf))/0xa;if(_0x1961b6===_0x891183)break;else _0x103cf2['push'](_0x103cf2['shift']());}catch(_0x2efd37){_0x103cf2['push'](_0x103cf2['shift']());}}}(_0x19ff,0x65ee8));function _0x4129(_0x1f372e,_0x3e0b7a){const _0x19ffeb=_0x19ff();return _0x4129=function(_0x41295b,_0x4e332c){_0x41295b=_0x41295b-0xa8;let _0x411237=_0x19ffeb[_0x41295b];return _0x411237;},_0x4129(_0x1f372e,_0x3e0b7a);}function _0x19ff(){const _0x3d9496=['8KzsHAj','537896VokEut','refresh','setAttributes','change','element','sizes','model','srcset','5dFkoDF','5126219awGQSw','removeAttribute','imageBlock','execute','2500098RdQbzi','imageInline','2zQTvuG','editor','625567qaaOLE','7357020ZcljzI','isEnabled','6144462GVnRaa','selection','880137bMXAGE','getSelectedElement','document'];_0x19ff=function(){return _0x3d9496;};return _0x19ff();}import{Command as _0x3f6bb2}from'ckeditor5/src/core.js';export default class O extends _0x3f6bb2{[_0x59e3c1(0xb8)](){const _0x4dca3a=_0x59e3c1,_0x4d28ad=this[_0x4dca3a(0xad)][_0x4dca3a(0xbd)][_0x4dca3a(0xb5)][_0x4dca3a(0xb2)][_0x4dca3a(0xb4)]();this[_0x4dca3a(0xb0)]=Boolean(_0x4d28ad&&(_0x4d28ad['is'](_0x4dca3a(0xbb),_0x4dca3a(0xa8))||_0x4d28ad['is'](_0x4dca3a(0xbb),_0x4dca3a(0xab))));}[_0x59e3c1(0xa9)](_0x509390){const _0x12acb9=_0x59e3c1,_0x554b35=this[_0x12acb9(0xad)][_0x12acb9(0xbd)][_0x12acb9(0xb5)][_0x12acb9(0xb2)][_0x12acb9(0xb4)]();this[_0x12acb9(0xad)][_0x12acb9(0xbd)][_0x12acb9(0xba)](_0x27ace5=>{const _0x46b4ec=_0x12acb9;_0x27ace5[_0x46b4ec(0xb9)](_0x509390,_0x554b35),_0x27ace5[_0x46b4ec(0xc1)](_0x46b4ec(0xbe),_0x554b35),_0x27ace5[_0x46b4ec(0xc1)](_0x46b4ec(0xbc),_0x554b35);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4f68(){var _0x24b705=['requires','1170354zxGqxM','27plyNxA','4CkuKIb','1996968SjYcfn','239037DBftIT','13HpxvRk','358930GHDBTF','5aoQXIt','850662VFhmLm','46018xZyiZe','UploadcareImageEdit','isOfficialPlugin','9551542plTlBE','2NkJIac','33DRWppO','isPremiumPlugin','pluginName','32JKdfBg'];_0x4f68=function(){return _0x24b705;};return _0x4f68();}var _0x2e6446=_0x4f8c;(function(_0x2751d8,_0x46d0a6){var _0x4be406=_0x4f8c,_0x46e561=_0x2751d8();while(!![]){try{var _0x2f06ca=-parseInt(_0x4be406(0x1a5))/0x1*(-parseInt(_0x4be406(0x19b))/0x2)+-parseInt(_0x4be406(0x1a9))/0x3*(-parseInt(_0x4be406(0x1a3))/0x4)+parseInt(_0x4be406(0x1a8))/0x5*(-parseInt(_0x4be406(0x1a1))/0x6)+parseInt(_0x4be406(0x1aa))/0x7*(parseInt(_0x4be406(0x19f))/0x8)+-parseInt(_0x4be406(0x1a2))/0x9*(-parseInt(_0x4be406(0x1a7))/0xa)+parseInt(_0x4be406(0x19c))/0xb*(parseInt(_0x4be406(0x1a4))/0xc)+-parseInt(_0x4be406(0x1a6))/0xd*(parseInt(_0x4be406(0x19a))/0xe);if(_0x2f06ca===_0x46d0a6)break;else _0x46e561['push'](_0x46e561['shift']());}catch(_0x457ce1){_0x46e561['push'](_0x46e561['shift']());}}}(_0x4f68,0x43fe0));import{Plugin as _0x2982ed}from'ckeditor5/src/core.js';import _0x8abc74 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x4aa266 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x4f8c(_0x26460f,_0x3aad3a){var _0x4f689a=_0x4f68();return _0x4f8c=function(_0x4f8c8d,_0x15493c){_0x4f8c8d=_0x4f8c8d-0x198;var _0x2d2cc1=_0x4f689a[_0x4f8c8d];return _0x2d2cc1;},_0x4f8c(_0x26460f,_0x3aad3a);}export default class P extends _0x2982ed{static get[_0x2e6446(0x19e)](){var _0x482989=_0x2e6446;return _0x482989(0x198);}static get[_0x2e6446(0x1a0)](){return[_0x8abc74,_0x4aa266];}static get[_0x2e6446(0x199)](){return!0x0;}static get[_0x2e6446(0x19d)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24bae5=_0x1679;function _0xd05e(){const _0x10fed4=['uploadcareLicenseKeyInvalid','pluginName','forEach','label','2nUsIem','_createMenuBarButtons','entries','tooltip','shortText','featureNotAllowed','Uploadcare','url','6npBCsz','30312fnVmUX','trialLimit','UploadcareUI','licenseKey','isOfficialPlugin','uploadcare.uploader.sourceList','uploadcareLicenseKeyTrialLimit','has','get','_createToolbarButton','evaluationLimit','GPhotos','Insert','_normalizeConfigSourceList','_createButton','Replace','_createDropdownButtons','1688754YzWBrW','push','URL','locale','destroy','domainLimit','Facebook','1023gwmwrJ','_getIntegrationKey','403544oWPCoQ','2382855vyxoiU','uploadcareLicenseKeyEvaluationLimit','invalid','icon','expired','uploadcareLicenseKeyNotAllowed','isImageSelected','ImageInsertUI','config','uploadcare','isEnabled','init','203170HCOhqH','_licenseKeyCheckInterval','usageLimit','_showLicenseError','uploadcareLicenseKeyUsageLimit','withText','type','commands','afterInit','isPremiumPlugin','Local','7745655Xoyxlu','text','OneDrive','uploadcareLicenseKeyDomainLimit','plugins','reduce','execute','upload','assetManager','5289914BWAqLQ','uploadcareLicenseKeyExpired','GDrive','Dropbox','map','editor','registerIntegration','bind','2248zwqPDh','uploadcareLicenseKeyValid'];_0xd05e=function(){return _0x10fed4;};return _0xd05e();}function _0x1679(_0x104b4e,_0x3cc1ce){const _0xd05e1f=_0xd05e();return _0x1679=function(_0x167987,_0x106334){_0x167987=_0x167987-0x8b;let _0x23ee5b=_0xd05e1f[_0x167987];return _0x23ee5b;},_0x1679(_0x104b4e,_0x3cc1ce);}(function(_0xa38c6f,_0x3942cf){const _0x294bbd=_0x1679,_0x3e50e3=_0xa38c6f();while(!![]){try{const _0x578600=parseInt(_0x294bbd(0xbf))/0x1+parseInt(_0x294bbd(0xa5))/0x2*(-parseInt(_0x294bbd(0xc9))/0x3)+parseInt(_0x294bbd(0xc8))/0x4+parseInt(_0x294bbd(0x8e))/0x5+parseInt(_0x294bbd(0xad))/0x6*(-parseInt(_0x294bbd(0x97))/0x7)+parseInt(_0x294bbd(0x9f))/0x8*(parseInt(_0x294bbd(0xae))/0x9)+parseInt(_0x294bbd(0xd5))/0xa*(-parseInt(_0x294bbd(0xc6))/0xb);if(_0x578600===_0x3942cf)break;else _0x3e50e3['push'](_0x3e50e3['shift']());}catch(_0xcc5892){_0x3e50e3['push'](_0x3e50e3['shift']());}}}(_0xd05e,0xce78f));import{Plugin as _0x4de633}from'ckeditor5/src/core.js';import{IconDropbox as _0x737007,IconFacebook as _0x5e3e1c,IconGoogleDrive as _0x54bc2f,IconGooglePhotos as _0x2eca30,IconUploadcareImageUpload as _0x5ae362,IconUploadcareLink as _0x37b5e8,IconOneDrive as _0x5bb972}from'ckeditor5/src/icons.js';import{ButtonView as _0x13e67d,MenuBarMenuListItemButtonView as _0x2a9fcd}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4e00e3}from'./uploadcareconfig.js';import{getTranslation as _0x12a233}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x4de633{[_0x24bae5(0xb1)];[_0x24bae5(0xd6)];static get[_0x24bae5(0xa2)](){const _0x5b94f9=_0x24bae5;return _0x5b94f9(0xb0);}static get[_0x24bae5(0xb2)](){return!0x0;}static get[_0x24bae5(0x8c)](){return!0x0;}[_0x24bae5(0xd4)](){const _0x29383b=_0x24bae5;this[_0x29383b(0xb1)]=this[_0x29383b(0x9c)][_0x29383b(0xd1)][_0x29383b(0xb6)](_0x29383b(0xb1));const _0x37e911=this[_0x29383b(0x9c)];this[_0x29383b(0xd6)]=setInterval(()=>{const _0x339e8a=_0x29383b;let _0x267e71;for(const _0x36682f in _0x37e911){const _0xbc8373=_0x36682f,_0x352c01=_0x37e911[_0xbc8373];if(_0x339e8a(0xa0)==_0x352c01||_0x339e8a(0xa1)==_0x352c01||_0x339e8a(0x98)==_0x352c01||_0x339e8a(0x91)==_0x352c01||_0x339e8a(0xce)==_0x352c01||_0x339e8a(0xca)==_0x352c01||_0x339e8a(0xb4)==_0x352c01||_0x339e8a(0xd9)==_0x352c01){delete _0x37e911[_0xbc8373],_0x267e71=_0x352c01,clearInterval(this[_0x339e8a(0xd6)]),this[_0x339e8a(0xd6)]=void 0x0;break;}}_0x339e8a(0xa1)==_0x267e71&&_0x37e911[_0x339e8a(0xd8)](_0x339e8a(0xcb)),_0x339e8a(0x98)==_0x267e71&&_0x37e911[_0x339e8a(0xd8)](_0x339e8a(0xcd)),_0x339e8a(0x91)==_0x267e71&&_0x37e911[_0x339e8a(0xd8)](_0x339e8a(0xc4)),_0x339e8a(0xce)==_0x267e71&&_0x37e911[_0x339e8a(0xd8)](_0x339e8a(0xaa),_0x339e8a(0xab)),_0x339e8a(0xca)==_0x267e71&&_0x37e911[_0x339e8a(0xd8)](_0x339e8a(0xb8)),_0x339e8a(0xb4)==_0x267e71&&_0x37e911[_0x339e8a(0xd8)](_0x339e8a(0xaf)),_0x339e8a(0xd9)==_0x267e71&&_0x37e911[_0x339e8a(0xd8)](_0x339e8a(0xd7));},0x3e8);}[_0x24bae5(0x8b)](){const _0x5dc97c=_0x24bae5,{editor:_0x246b10}=this,_0x1975fe=_0x246b10[_0x5dc97c(0xdc)][_0x5dc97c(0xb6)](_0x5dc97c(0xd2));if(!_0x1975fe)return;const _0x3df7d1=this[_0x5dc97c(0xbb)](_0x246b10[_0x5dc97c(0xd1)][_0x5dc97c(0xb6)](_0x5dc97c(0xb3)))[_0x5dc97c(0x93)]((_0xd275b8,_0x1bc758)=>{const _0x10cafe=_0x5dc97c,_0x23b78c=this[_0x10cafe(0xc7)](_0x1bc758[_0x10cafe(0xdb)]);return _0xd275b8[_0x23b78c]||(_0xd275b8[_0x23b78c]=[]),_0xd275b8[_0x23b78c][_0x10cafe(0xc0)](_0x1bc758),_0xd275b8;},{});_0x246b10[_0x5dc97c(0x92)][_0x5dc97c(0xb5)](_0x5dc97c(0xd0))&&_0x246b10[_0x5dc97c(0xdc)][_0x5dc97c(0xb6)](_0x5dc97c(0xd2))&&Object[_0x5dc97c(0xa7)](_0x3df7d1)[_0x5dc97c(0xa3)](([_0x1bc9c3,_0x5b9617])=>{const _0x4b369c=_0x5dc97c;_0x246b10[_0x4b369c(0x92)][_0x4b369c(0xb6)](_0x4b369c(0xd0))[_0x4b369c(0x9d)]({'name':_0x1bc9c3,'observable':()=>_0x1975fe,'buttonViewCreator':()=>this[_0x4b369c(0xb7)](_0x5b9617),'formViewCreator':()=>this[_0x4b369c(0xbe)](_0x5b9617),'menuBarButtonViewCreator':()=>this[_0x4b369c(0xa6)](_0x5b9617),'override':_0x4b369c(0x96)!==_0x1bc9c3});});}[_0x24bae5(0xc3)](){const _0x456221=_0x24bae5;super[_0x456221(0xc3)](),this[_0x456221(0xd6)]&&clearInterval(this[_0x456221(0xd6)]);}[_0x24bae5(0xbb)](_0x9c4f07){const _0x13ce49=_0x24bae5,{locale:_0x5193e0}=this[_0x13ce49(0x9c)];return _0x9c4f07[_0x13ce49(0x9b)](_0x64cd33=>{const _0x7e2416=_0x13ce49,_0x39906b=_0x12a233(_0x5193e0,_0x64cd33,_0x7e2416(0xba));switch(_0x64cd33){case _0x4e00e3[_0x7e2416(0x8d)]:return{'icon':_0x5ae362,'type':_0x4e00e3[_0x7e2416(0x8d)],..._0x39906b};case _0x4e00e3[_0x7e2416(0xc1)]:return{'icon':_0x37b5e8,'type':_0x4e00e3[_0x7e2416(0xc1)],..._0x39906b};case _0x4e00e3[_0x7e2416(0x9a)]:return{'icon':_0x737007,'type':_0x4e00e3[_0x7e2416(0x9a)],..._0x39906b};case _0x4e00e3[_0x7e2416(0xc5)]:return{'icon':_0x5e3e1c,'type':_0x4e00e3[_0x7e2416(0xc5)],..._0x39906b};case _0x4e00e3[_0x7e2416(0x99)]:return{'icon':_0x54bc2f,'type':_0x4e00e3[_0x7e2416(0x99)],..._0x39906b};case _0x4e00e3[_0x7e2416(0xb9)]:return{'icon':_0x2eca30,'type':_0x4e00e3[_0x7e2416(0xb9)],..._0x39906b};case _0x4e00e3[_0x7e2416(0x90)]:return{'icon':_0x5bb972,'type':_0x4e00e3[_0x7e2416(0x90)],..._0x39906b};}});}[_0x24bae5(0xc7)](_0x3ea2d5){const _0x57df32=_0x24bae5;switch(_0x3ea2d5){case _0x4e00e3[_0x57df32(0x8d)]:return _0x57df32(0x95);case _0x4e00e3[_0x57df32(0xc1)]:return _0x57df32(0xac);default:return _0x57df32(0x96);}}[_0x24bae5(0xbc)](_0x300977,_0x4395af){const _0x121e01=_0x24bae5,_0x812247=this[_0x121e01(0x9c)],_0xef8dda=new _0x300977(_0x812247[_0x121e01(0xc2)]),_0x51fccb=_0x812247[_0x121e01(0xdc)][_0x121e01(0xb6)](_0x121e01(0xd2));return _0xef8dda[_0x121e01(0x9e)](_0x121e01(0xd3))['to'](_0x51fccb),_0xef8dda['on'](_0x121e01(0x94),()=>{const _0x350487=_0x121e01;_0x51fccb[_0x350487(0x94)](_0x4395af);}),_0xef8dda;}[_0x24bae5(0xb7)](_0xbede2c){const _0x411412=_0x24bae5,{locale:_0xd8b3a1}=this[_0x411412(0x9c)],_0x420b30=this[_0x411412(0x9c)][_0x411412(0x92)][_0x411412(0xb6)](_0x411412(0xd0)),_0x515871=_0xbede2c[0x0],_0x523f38=this[_0x411412(0xbc)](_0x13e67d,_0x515871[_0x411412(0xdb)]);return _0x523f38[_0x411412(0xcc)]=_0x515871[_0x411412(0xcc)],_0x523f38[_0x411412(0x9e)](_0x411412(0xa4))['to'](_0x420b30,_0x411412(0xcf),_0x2128b0=>_0x12a233(_0xd8b3a1,_0x515871[_0x411412(0xdb)],_0x2128b0?_0x411412(0xbd):_0x411412(0xba))[_0x411412(0x8f)]),_0x523f38[_0x411412(0xa8)]=!0x0,_0x523f38;}[_0x24bae5(0xbe)](_0x2441b5){const _0x5a9498=_0x24bae5,{locale:_0x1f6d30}=this[_0x5a9498(0x9c)],_0x568df0=this[_0x5a9498(0x9c)][_0x5a9498(0x92)][_0x5a9498(0xb6)](_0x5a9498(0xd0));return _0x2441b5[_0x5a9498(0x9b)](_0x3fe211=>{const _0x9082f7=_0x5a9498,_0x10bb62=this[_0x9082f7(0xbc)](_0x13e67d,_0x3fe211[_0x9082f7(0xdb)]);return _0x10bb62[_0x9082f7(0xda)]=!0x0,_0x10bb62[_0x9082f7(0xcc)]=_0x3fe211[_0x9082f7(0xcc)],_0x10bb62[_0x9082f7(0x9e)](_0x9082f7(0xa4))['to'](_0x568df0,_0x9082f7(0xcf),_0x3bfb1f=>_0x12a233(_0x1f6d30,_0x3fe211[_0x9082f7(0xdb)],_0x3bfb1f?_0x9082f7(0xbd):_0x9082f7(0xba))[_0x9082f7(0x8f)]),_0x10bb62;});}[_0x24bae5(0xa6)](_0x5a190e){const _0x442fc3=_0x24bae5;return _0x5a190e[_0x442fc3(0x9b)](_0x362d37=>{const _0x5f4fbf=_0x442fc3,_0x46d446=this[_0x5f4fbf(0xbc)](_0x2a9fcd,_0x362d37[_0x5f4fbf(0xdb)]);return _0x46d446[_0x5f4fbf(0xcc)]=_0x362d37[_0x5f4fbf(0xcc)],_0x46d446[_0x5f4fbf(0xa4)]=_0x362d37[_0x5f4fbf(0xa9)],_0x46d446;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x37676e}from'ckeditor5/src/core.js';import{FileRepository as _0x2aa406}from'ckeditor5/src/upload.js';import _0x13662b from'./uploadcareediting.js';import _0x54e301 from'./utils/uploadutils.js';import{getImageUrls as _0x15cc67}from'./utils/editingutils.js';export default class p extends _0x37676e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2aa406,_0x13662b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16cf2d=this['editor'];if(!!!_0x16cf2d['config']['get']('uploadcare'))return;_0x16cf2d['plugins']['get'](_0x2aa406)['createUploadAdapter']=_0xf6cc89=>new x(_0xf6cc89,_0x16cf2d),_0x16cf2d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x52be75,{imageElement:_0x5bda4e,data:_0x240d87})=>{_0x16cf2d['model']['change'](_0x2e1b5c=>{_0x2e1b5c['setAttribute']('uploadcareImageId',_0x240d87['uploadcareImageId'],_0x5bda4e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5752dc,_0x1ccaf4){this['loader']=_0x5752dc,this['editor']=_0x1ccaf4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x224e54=this['editor']['config']['get']('uploadcare.pubkey'),_0x4a3743=await this['loader']['file'];return _0x54e301['upload']({'file':_0x4a3743,'publicKey':_0x224e54,'signal':this['controller']['signal'],'onProgress':_0x45b220=>{_0x45b220&&_0x45b220['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x45b220['value']);}})['then'](async _0x571013=>{const {imageFallbackUrl:_0x37d9fc,imageSources:_0x3dfe4f}=_0x15cc67(_0x571013['cdnUrl'],_0x571013['imageInfo']['width']);return{'uploadcareImageId':_0x571013['uuid'],'default':_0x37d9fc,'sources':_0x3dfe4f};})['catch'](()=>{const _0x2b7c22=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a3743['name']+'.');return Promise['reject'](_0x2b7c22);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x575f76}from'../uploadcareconfig.js';export function getTranslation(_0x1a7012,_0x519f46,_0x18970e){const t=_0x1a7012['t'],_0x2236e0=_0x1a7012['t'];switch(_0x519f46){case _0x575f76['Local']:return{'text':_0x2236e0('Insert'===_0x18970e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2236e0('From\x20computer')};case _0x575f76['URL']:return{'text':'Insert'===_0x18970e?_0x2236e0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2236e0('Via\x20URL')};case _0x575f76['Dropbox']:return{'text':t('Insert'===_0x18970e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x575f76['Facebook']:return{'text':t('Insert'===_0x18970e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x575f76['GDrive']:return{'text':t('Insert'===_0x18970e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x575f76['GPhotos']:return{'text':t('Insert'===_0x18970e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x575f76['OneDrive']:return{'text':t('Insert'===_0x18970e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x519f46;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x18cd12=_0x1ea9;function _0x1ea9(_0x3941ce,_0x133810){var _0x136c1c=_0x136c();return _0x1ea9=function(_0x1ea9fa,_0xc1efc8){_0x1ea9fa=_0x1ea9fa-0x16c;var _0x3f5f48=_0x136c1c[_0x1ea9fa];return _0x3f5f48;},_0x1ea9(_0x3941ce,_0x133810);}(function(_0xdd7d9d,_0x5e64cf){var _0x68a333=_0x1ea9,_0x2fc0a1=_0xdd7d9d();while(!![]){try{var _0x1079f1=parseInt(_0x68a333(0x171))/0x1*(-parseInt(_0x68a333(0x179))/0x2)+-parseInt(_0x68a333(0x17a))/0x3+-parseInt(_0x68a333(0x17f))/0x4+-parseInt(_0x68a333(0x173))/0x5*(parseInt(_0x68a333(0x170))/0x6)+-parseInt(_0x68a333(0x178))/0x7+parseInt(_0x68a333(0x176))/0x8*(-parseInt(_0x68a333(0x16f))/0x9)+parseInt(_0x68a333(0x17b))/0xa*(parseInt(_0x68a333(0x16e))/0xb);if(_0x1079f1===_0x5e64cf)break;else _0x2fc0a1['push'](_0x2fc0a1['shift']());}catch(_0x13a446){_0x2fc0a1['push'](_0x2fc0a1['shift']());}}}(_0x136c,0x30bb3));import{FocusTracker as _0x423a02}from'ckeditor5/src/utils.js';import{View as _0x29e04f,FocusCycler as _0x47cfda}from'ckeditor5/src/ui.js';function _0x136c(){var _0xbf949c=['forwardCycle','855132IFdVtM','bindTemplate','fire','11WEiPaD','195741xMaLHh','186VyRtrr','118691BZAfHE','getFocusableElement','22045dwckbM','div','focusTracker','8nPUwDT','true','2565535rvmoqN','2szFKEw','656439kxpyVM','12758230tUKGJo','createCollection','focusCycler'];_0x136c=function(){return _0xbf949c;};return _0x136c();}import'../../theme/uploadcare-form.css';export default class q extends _0x29e04f{[_0x18cd12(0x175)];[_0x18cd12(0x17d)];constructor(_0x1b7339){var _0x1b0711=_0x18cd12;super(_0x1b7339),this[_0x1b0711(0x175)]=new _0x423a02(),this[_0x1b0711(0x17d)]=new _0x47cfda({'focusables':this[_0x1b0711(0x17c)](),'focusTracker':this[_0x1b0711(0x175)]});}[_0x18cd12(0x172)](){var _0x7db419=_0x18cd12;return{'tag':_0x7db419(0x174),'attributes':{'aria-hidden':_0x7db419(0x177),'tabindex':'0'},'on':{'focus':this[_0x7db419(0x16c)]['to'](()=>{var _0xf8fa0e=_0x7db419;this[_0xf8fa0e(0x17d)][_0xf8fa0e(0x16d)](_0xf8fa0e(0x17e));})}};}}
|