@ckeditor/ckeditor5-uploadcare 47.2.0-alpha.0 → 47.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27282=_0x3e14;function _0x3e14(_0x3f3d0a,_0x1122a7){const _0x3d33e5=_0x3d33();return _0x3e14=function(_0x3e142a,_0x180cfe){_0x3e142a=_0x3e142a-0x14d;let _0x4866f5=_0x3d33e5[_0x3e142a];return _0x4866f5;},_0x3e14(_0x3f3d0a,_0x1122a7);}(function(_0x146486,_0x33bbbc){const _0x1ccffd=_0x3e14,_0x5e6a33=_0x146486();while(!![]){try{const _0x5f5cb8=parseInt(_0x1ccffd(0x153))/0x1+-parseInt(_0x1ccffd(0x189))/0x2*(parseInt(_0x1ccffd(0x16f))/0x3)+-parseInt(_0x1ccffd(0x19f))/0x4*(-parseInt(_0x1ccffd(0x176))/0x5)+-parseInt(_0x1ccffd(0x15b))/0x6+parseInt(_0x1ccffd(0x17b))/0x7*(-parseInt(_0x1ccffd(0x160))/0x8)+-parseInt(_0x1ccffd(0x177))/0x9*(parseInt(_0x1ccffd(0x19a))/0xa)+parseInt(_0x1ccffd(0x163))/0xb*(parseInt(_0x1ccffd(0x17a))/0xc);if(_0x5f5cb8===_0x33bbbc)break;else _0x5e6a33['push'](_0x5e6a33['shift']());}catch(_0x5ee4ef){_0x5e6a33['push'](_0x5e6a33['shift']());}}}(_0x3d33,0xcbc8f));import{Plugin as _0x3a0cb2}from'ckeditor5/src/core.js';import{Dialog as _0x15606d}from'ckeditor5/src/ui.js';import{createElement as _0x5f27b3,global as _0x2b5c2e,uid as _0x2b35eb}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x59c15e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5d2810}from'./uploadcareuploadadapter.js';function _0x3d33(){const _0x2e8fba=['replaceImageSource','appendChild','imageBlock','ucContextId','1624kNMtMH','render','remove','242NfliKe','_initConfig','uploadcare.uploader','_initConversion','uploader-','upcast','getSelectedElement','conversion','closeMax','isPremiumPlugin','listenTo','uploadcare.pubkey','9717NPksEh','removeAttribute','config','PictureEditing','_initImageProcessingIndicator','destroy','pluginName','85YUJUaT','63pRpxcd','get','extend','801948abFkhn','13482SYHcCq','getAttribute','configElement','iconHrefResolver','_initCtx','map','cleanupImage','schema','uc-upload-ctx-provider','commands','attributeToAttribute','isOfficialPlugin','once','body','362ImAFWT','view','document','for','uploadcareImageId','href','editing','uc-config','downcast','elementToAttribute','data-uc-image-id','_initSchema','execute','insertImage','imageInline','fromCharCode','afterInit','237700CvoejT','join','\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','requires','contentLanguage','120868PzZUuP','model','add','#uc-icon-arrow-down','true','init','editor','querySelector','_configElement','selection','ctxElement','591228NEanyo','uploadcareImageReplace','locale','isRegistered','UploadcareEditing','input[uploadcare-file-input]','uploadcare','_ctxElement','3580950nIFxVf'];_0x3d33=function(){return _0x2e8fba;};return _0x3d33();}import{showImageProcessingIndicator as _0x126a70}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3a0cb2{[_0x27282(0x150)]=null;[_0x27282(0x15a)]=null;static get[_0x27282(0x175)](){const _0x284243=_0x27282;return _0x284243(0x157);}static get[_0x27282(0x19d)](){const _0x1f407a=_0x27282;return[_0x1f407a(0x172),_0x5d2810,_0x15606d];}static get[_0x27282(0x186)](){return!0x0;}static get[_0x27282(0x16c)](){return!0x0;}[_0x27282(0x15f)];get[_0x27282(0x17d)](){const _0x1abe34=_0x27282;return this[_0x1abe34(0x150)];}get[_0x27282(0x152)](){const _0x287f77=_0x27282;return this[_0x287f77(0x15a)];}constructor(_0x51c41e){const _0x129861=_0x27282;super(_0x51c41e),this[_0x129861(0x15f)]=_0x2b35eb();}[_0x27282(0x14d)](){const _0x3c4bd=_0x27282,_0x21a84c=this[_0x3c4bd(0x14e)];_0x21a84c[_0x3c4bd(0x184)][_0x3c4bd(0x1a1)](_0x3c4bd(0x159),new _0x59c15e(_0x21a84c));}[_0x27282(0x199)](){const _0x146d5a=_0x27282;this[_0x146d5a(0x194)](),this[_0x146d5a(0x166)](),this[_0x146d5a(0x164)](),this[_0x146d5a(0x17f)](),this[_0x146d5a(0x173)](),this[_0x146d5a(0x16d)](this[_0x146d5a(0x14e)],_0x146d5a(0x174),()=>{const _0x5f2eee=_0x146d5a;this[_0x5f2eee(0x150)]&&(this[_0x5f2eee(0x150)][_0x5f2eee(0x162)](),this[_0x5f2eee(0x150)]=null),this[_0x5f2eee(0x15a)]&&(this[_0x5f2eee(0x15a)][_0x5f2eee(0x162)](),this[_0x5f2eee(0x15a)]=null);const _0x275947=_0x2b5c2e[_0x5f2eee(0x18b)][_0x5f2eee(0x14f)](_0x5f2eee(0x158));_0x275947&&_0x275947[_0x5f2eee(0x162)]();}),async function(_0x5bc6f6){const _0x1ecd1a=_0x4c0944([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3905cb=0x535f8c3a,_0xef64de=0x5358fbaa^_0x3905cb,_0x4b1321=window[_0x4c0944([0x44,0x61,0x74,0x65])][_0x4c0944([0x6e,0x6f,0x77])](),_0x54cb2c=_0x5bc6f6[_0x4c0944([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd7fec3=new window[(_0x4c0944([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17a475=>{_0x54cb2c[_0x4c0944([0x6f,0x6e,0x63,0x65])](_0x4c0944([0x72,0x65,0x61,0x64,0x79]),_0x17a475);}),_0x49ba9b={[_0x4c0944([0x6b,0x74,0x79])]:_0x4c0944([0x45,0x43]),[_0x4c0944([0x75,0x73,0x65])]:_0x4c0944([0x73,0x69,0x67]),[_0x4c0944([0x63,0x72,0x76])]:_0x4c0944([0x50,0x2d,0x32,0x35,0x36]),[_0x4c0944([0x78])]:_0x4c0944([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]),[_0x4c0944([0x79])]:_0x4c0944([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]),[_0x4c0944([0x61,0x6c,0x67])]:_0x4c0944([0x45,0x53,0x32,0x35,0x36])},_0x451cb6=_0x54cb2c[_0x4c0944([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c0944([0x67,0x65,0x74])](_0x4c0944([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa17c43(){let _0x49f00a,_0x133c91=null,_0x174423=null;try{if(_0x451cb6==_0x4c0944([0x47,0x50,0x4c]))return _0x4c0944([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49f00a=_0x27d859(),!_0x49f00a)return _0x4c0944([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49f00a[_0x4c0944([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x174423=_0x4e949c(_0x49f00a[_0x4c0944([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49f00a[_0x4c0944([0x6a,0x74,0x69])])),await _0x3b25b0()?_0x693f64()?_0x25db94()?_0x4c0944([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37e1a1()?(_0x49f00a[_0x4c0944([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c0944([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x133c91=_0x56c51d(_0x4c0944([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49f00a[_0x4c0944([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c0944([0x74,0x72,0x69,0x61,0x6c])&&(_0x133c91=_0x56c51d(_0x4c0944([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33caf7()):_0x4c0944([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c0944([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c0944([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c0944([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25db94(){const _0x225bec=[_0x4c0944([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c0944([0x74,0x72,0x69,0x61,0x6c])][_0x4c0944([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49f00a[_0x4c0944([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b1321/0x3e8:0xe10*_0xef64de;return _0x49f00a[_0x4c0944([0x65,0x78,0x70])]<_0x225bec;}function _0x693f64(){const _0x1c9c24=_0x49f00a[_0x4c0944([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c9c24&&(!!_0x1c9c24[_0x4c0944([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0944([0x2a]))||!!_0x1c9c24[_0x4c0944([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0944([0x55,0x50,0x4c,0x43])));}function _0x37e1a1(){const _0x4ff692=_0x3e14,_0x1e77b6=_0x49f00a[_0x4c0944([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e77b6||0x0==_0x1e77b6[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cde23}=new URL(window[_0x4c0944([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ff692(0x18e)]);if(_0x1e77b6[_0x4c0944([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cde23))return!0x0;const _0x3da421=_0x1cde23[_0x4c0944([0x73,0x70,0x6c,0x69,0x74])](_0x4c0944([0x2e]));return _0x1e77b6[_0x4c0944([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9c5e95=>_0x9c5e95[_0x4c0944([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0944([0x2a])))[_0x4c0944([0x6d,0x61,0x70])](_0x51cfcb=>_0x51cfcb[_0x4c0944([0x73,0x70,0x6c,0x69,0x74])](_0x4c0944([0x2e])))[_0x4c0944([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a47ba=>_0x3a47ba[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3da421[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c0944([0x6d,0x61,0x70])](_0x21924a=>Array(_0x3da421[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21924a[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c0944([0x66,0x69,0x6c,0x6c])](_0x21924a[0x0]===_0x4c0944([0x2a])?_0x4c0944([0x2a]):'')[_0x4c0944([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21924a))[_0x4c0944([0x73,0x6f,0x6d,0x65])](_0x25d5ad=>_0x3da421[_0x4c0944([0x65,0x76,0x65,0x72,0x79])]((_0x8abf61,_0x5aec67)=>_0x25d5ad[_0x5aec67]===_0x8abf61||_0x25d5ad[_0x5aec67]===_0x4c0944([0x2a])));}function _0x33caf7(){return _0x133c91&&_0x174423?new window[(_0x4c0944([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cb0a8,_0x1d7864)=>{_0x133c91[_0x4c0944([0x74,0x68,0x65,0x6e])](_0x4cb0a8,_0x1d7864),_0x174423[_0x4c0944([0x74,0x68,0x65,0x6e])](_0x25be43=>{_0x25be43!=_0x4c0944([0x56,0x61,0x6c,0x69,0x64])&&_0x4cb0a8(_0x25be43);},_0x1d7864);}):_0x133c91||_0x174423||_0x4c0944([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e949c(_0xba4ec8,_0x538a5a){return new window[(_0x4c0944([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7e2b=>{if(_0xf39c10())return _0x1e7e2b(_0x4c0944([0x56,0x61,0x6c,0x69,0x64]));_0x2835df(),_0x54cb2c[_0x4c0944([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c0944([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e4559=!0x1;const _0x149dbe=_0x2b35eb();function _0x453cf7(_0x2cd1c1){return!!_0x2cd1c1&&(typeof _0x2cd1c1===_0x4c0944([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cd1c1===_0x4c0944([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cd1c1[_0x4c0944([0x74,0x68,0x65,0x6e])]===_0x4c0944([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cd1c1[_0x4c0944([0x63,0x61,0x74,0x63,0x68])]===_0x4c0944([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x505962(_0x1375e0){_0x3be737(_0x1375e0)[_0x4c0944([0x74,0x68,0x65,0x6e])](_0x5168ee=>{if(!_0x5168ee||_0x5168ee[_0x4c0944([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c0944([0x6f,0x6b]))return _0x4c0944([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31bf99(_0x17908d(_0x149dbe+_0x538a5a))!=_0x5168ee[_0x4c0944([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c0944([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c0944([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c0944([0x74,0x68,0x65,0x6e])](_0x4cec1a=>(_0x33e596(),_0x4cec1a),()=>{const _0x21c7d3=_0x9852f6();return null==_0x21c7d3?(_0x33e596(),_0x4c0944([0x56,0x61,0x6c,0x69,0x64])):_0x4c0944(_0x4b1321-_0x21c7d3>(0x7753083a^_0x3905cb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c0944([0x74,0x68,0x65,0x6e])](_0x1e7e2b)[_0x4c0944([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e7e2b(_0x4c0944([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc96ba1=0x536962ba^_0x3905cb;function _0x33e596(){const _0xc0677d=_0x4c0944([0x6c,0x6c,0x63,0x74,0x2d])+_0x31bf99(_0x17908d(_0xba4ec8)),_0x4a544d=_0x5e4a97(_0x31bf99(window[_0x4c0944([0x4d,0x61,0x74,0x68])][_0x4c0944([0x63,0x65,0x69,0x6c])](_0x4b1321/_0xc96ba1)));window[_0x4c0944([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c0944([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc0677d,_0x4a544d);}function _0x9852f6(){const _0x6527db=_0x4c0944([0x6c,0x6c,0x63,0x74,0x2d])+_0x31bf99(_0x17908d(_0xba4ec8)),_0x305d46=window[_0x4c0944([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c0944([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6527db);return _0x305d46?window[_0x4c0944([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e4a97(_0x305d46),0x10)*_0xc96ba1:null;}function _0x3be737(_0x38a628){return new window[(_0x4c0944([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34e31d,_0x57bc27)=>{_0x38a628[_0x4c0944([0x74,0x68,0x65,0x6e])](_0x34e31d,_0x57bc27),window[_0x4c0944([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57bc27,0x535e58fa^_0x3905cb);});}}_0x54cb2c[_0x4c0944([0x6f,0x6e])](_0x4c0944([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16a118,_0x2d7258)=>{if(_0x2d7258[0x0]!=_0xba4ec8)return _0x1e7e2b(_0x4c0944([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d7258[0x1]={..._0x2d7258[0x1],[_0x4c0944([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x149dbe};},{[_0x4c0944([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c0944([0x68,0x69,0x67,0x68])}),_0x54cb2c[_0x4c0944([0x6f,0x6e])](_0x4c0944([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1564bb=>{_0x453cf7(_0x1564bb[_0x4c0944([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e4559=!0x0,_0x505962(_0x1564bb[_0x4c0944([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c0944([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c0944([0x6c,0x6f,0x77])}),_0xd7fec3[_0x4c0944([0x74,0x68,0x65,0x6e])](()=>{_0x1e4559||_0x1e7e2b(_0x4c0944([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf39c10(){return _0x54cb2c[_0x4c0944([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c0944([0x76,0x69,0x65,0x77])][_0x4c0944([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c0944([0x61,0x75,0x74,0x6f]);}function _0x2835df(){_0x54cb2c[_0x4c0944([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c0944([0x76,0x69,0x65,0x77])][_0x4c0944([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c0944([0x61,0x75,0x74,0x6f]);}}function _0x56c51d(_0x523ea4){const _0x5e5e9d=[new window[(_0x4c0944([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xda882b=>setTimeout(_0xda882b,0x5356b2f6^_0x3905cb)),_0xd7fec3[_0x4c0944([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c0944([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108882=>{let _0x4d3eb4=0x0;_0x54cb2c[_0x4c0944([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c0944([0x6f,0x6e])](_0x4c0944([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e8aab,_0x361daa)=>{_0x361daa[0x0][_0x4c0944([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d3eb4++,_0x4d3eb4==(0x535f8dc2^_0x3905cb)&&(_0x108882(),_0x3e8aab[_0x4c0944([0x6f,0x66,0x66])]());});}))];return window[_0x4c0944([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c0944([0x72,0x61,0x63,0x65])](_0x5e5e9d)[_0x4c0944([0x74,0x68,0x65,0x6e])](()=>_0x523ea4);}async function _0x16f8a9(){await _0xd7fec3,_0x54cb2c[_0x4c0944([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c0944([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a9bef,_0x54cb2c[_0x4c0944([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c0944([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a9bef,_0x54cb2c[_0x4c0944([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c0944([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11e6b2(_0x334bc6){const _0x58d0a8=_0xb6973();_0x54cb2c[_0x58d0a8]=_0x4c0944([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x334bc6,_0x334bc6!=_0x4c0944([0x56,0x61,0x6c,0x69,0x64])&&_0x16f8a9();}function _0xb6973(){const _0x4072e5=window[_0x4c0944([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c0944([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c0944([0x6e,0x6f,0x77])]())[_0x4c0944([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c0944([0x2e]),'');let _0x4178c4=_0x4c0944([0x68]);for(let _0x11295c=0x0;_0x11295c<_0x4072e5[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11295c+=0x2){let _0x2bd24e=window[_0x4c0944([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4072e5[_0x4c0944([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11295c,_0x11295c+0x2));_0x2bd24e>=_0x1ecd1a[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2bd24e-=_0x1ecd1a[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4178c4+=_0x1ecd1a[_0x2bd24e];}return _0x4178c4;}function _0x27d859(){const _0x170a0e=_0x451cb6[_0x4c0944([0x73,0x70,0x6c,0x69,0x74])](_0x4c0944([0x2e]));if(0x3!=_0x170a0e[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e46b8(_0x170a0e[0x1]);function _0x1e46b8(_0x2e9c89){const _0x5ad183=_0x4192c8(_0x2e9c89);return _0x5ad183&&_0x4ec240()?_0x5ad183:null;function _0x4ec240(){const _0x3f3c39=_0x5ad183[_0x4c0944([0x6a,0x74,0x69])],_0xf1f477=window[_0x4c0944([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f3c39[_0x4c0944([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f3c39[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd69639={..._0x5ad183,[_0x4c0944([0x6a,0x74,0x69])]:_0x3f3c39[_0x4c0944([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f3c39[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd69639[_0x4c0944([0x76,0x63])],_0x17908d(_0xd69639)==_0xf1f477;}}}async function _0x3b25b0(){let _0x561391=!0x0;try{const _0xbf6026=_0x451cb6[_0x4c0944([0x73,0x70,0x6c,0x69,0x74])](_0x4c0944([0x2e])),[_0xf74226,_0x4f258f,_0x6fc382]=_0xbf6026;return _0x4dc955(_0xf74226),await _0x523f44(_0xf74226,_0x4f258f,_0x6fc382),_0x561391;}catch{return!0x1;}function _0x4dc955(_0x2b1854){const _0x303a1f=_0x4192c8(_0x2b1854);_0x303a1f&&_0x303a1f[_0x4c0944([0x61,0x6c,0x67])]==_0x4c0944([0x45,0x53,0x32,0x35,0x36])||(_0x561391=!0x1);}async function _0x523f44(_0x11fd8a,_0x49638d,_0x281ce2){const _0x3eb5bc=window[_0x4c0944([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c0944([0x66,0x72,0x6f,0x6d])](_0x620545(_0x281ce2),_0xf166ad=>_0xf166ad[_0x4c0944([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14e21a=new window[(_0x4c0944([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c0944([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11fd8a+_0x4c0944([0x2e])+_0x49638d),_0x50d851=window[_0x4c0944([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c0944([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50d851)return;const _0xfa4b8e=await _0x50d851[_0x4c0944([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c0944([0x6a,0x77,0x6b]),_0x49ba9b,{[_0x4c0944([0x6e,0x61,0x6d,0x65])]:_0x4c0944([0x45,0x43,0x44,0x53,0x41]),[_0x4c0944([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c0944([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c0944([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50d851[_0x4c0944([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c0944([0x6e,0x61,0x6d,0x65])]:_0x4c0944([0x45,0x43,0x44,0x53,0x41]),[_0x4c0944([0x68,0x61,0x73,0x68])]:{[_0x4c0944([0x6e,0x61,0x6d,0x65])]:_0x4c0944([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfa4b8e,_0x3eb5bc,_0x14e21a)||(_0x561391=!0x1);}}function _0x4192c8(_0x392134){return _0x392134[_0x4c0944([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c0944([0x65,0x79]))?JSON[_0x4c0944([0x70,0x61,0x72,0x73,0x65])](_0x620545(_0x392134)):null;}function _0x620545(_0x161929){return window[_0x4c0944([0x61,0x74,0x6f,0x62])](_0x161929[_0x4c0944([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c0944([0x2b]))[_0x4c0944([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c0944([0x2f])));}function _0x17908d(_0x44d9ca){let _0x127aef=0x1505;function _0x5cbf9c(_0x3c47f8){for(let _0x521d74=0x0;_0x521d74<_0x3c47f8[_0x4c0944([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x521d74++){const _0x3006d8=_0x3c47f8[_0x4c0944([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x521d74);_0x127aef=(_0x127aef<<0x5)+_0x127aef+_0x3006d8,_0x127aef&=_0x127aef;}}function _0x53a8f5(_0x52104c){Array[_0x4c0944([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x52104c)?_0x52104c[_0x4c0944([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53a8f5):_0x52104c&&typeof _0x52104c==_0x4c0944([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c0944([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x52104c)[_0x4c0944([0x73,0x6f,0x72,0x74])]()[_0x4c0944([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17c632,_0x530761])=>{_0x5cbf9c(_0x17c632),_0x53a8f5(_0x530761);}):_0x5cbf9c(window[_0x4c0944([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x52104c));}return _0x53a8f5(_0x44d9ca),_0x127aef>>>0x0;}function _0x31bf99(_0x4b2b66){return _0x4b2b66[_0x4c0944([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c0944([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c0944([0x30]));}function _0x5e4a97(_0x1809d7){return _0x1809d7[_0x4c0944([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c0944([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c0944([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a9bef(){}function _0x4c0944(_0x3e1e98){const _0x10383d=_0x3e14;return _0x3e1e98[_0x10383d(0x180)](_0x32051d=>String[_0x10383d(0x198)](_0x32051d))[_0x10383d(0x19b)]('');}_0x11e6b2(await _0xa17c43());}(this);}[_0x27282(0x194)](){const _0x1bb4bb=_0x27282,_0x1a3594=this[_0x1bb4bb(0x14e)][_0x1bb4bb(0x1a0)][_0x1bb4bb(0x182)];_0x1a3594[_0x1bb4bb(0x156)](_0x1bb4bb(0x15e))&&_0x1a3594[_0x1bb4bb(0x179)](_0x1bb4bb(0x15e),{'allowAttributes':[_0x1bb4bb(0x18d)]}),_0x1a3594[_0x1bb4bb(0x156)](_0x1bb4bb(0x197))&&_0x1a3594[_0x1bb4bb(0x179)](_0x1bb4bb(0x197),{'allowAttributes':[_0x1bb4bb(0x18d)]});}[_0x27282(0x166)](){const _0x202a55=_0x27282,_0x32b45e=this[_0x202a55(0x14e)];_0x32b45e[_0x202a55(0x16a)][_0x202a55(0x18c)](_0x202a55(0x191))[_0x202a55(0x185)]({'model':_0x202a55(0x18d),'view':_0x202a55(0x193)}),_0x32b45e[_0x202a55(0x16a)][_0x202a55(0x18c)](_0x202a55(0x168))[_0x202a55(0x192)]({'model':{'key':_0x202a55(0x18d),'value':_0x15bb06=>_0x15bb06[_0x202a55(0x17c)](_0x202a55(0x193))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x316ce9=_0x32b45e[_0x202a55(0x184)][_0x202a55(0x178)](_0x202a55(0x15c));_0x316ce9&&this[_0x202a55(0x16d)](_0x316ce9,_0x202a55(0x181),(_0x455266,[_0x4b03f6,_0x530326])=>{const _0xa95d76=_0x202a55;_0x4b03f6[_0xa95d76(0x170)](_0xa95d76(0x18d),_0x530326);});}[_0x27282(0x164)](){const _0x2d08ca=_0x27282,_0x52637d=this[_0x2d08ca(0x14e)][_0x2d08ca(0x171)][_0x2d08ca(0x178)](_0x2d08ca(0x165))||{},_0x4282f4=this[_0x2d08ca(0x14e)][_0x2d08ca(0x171)][_0x2d08ca(0x178)](_0x2d08ca(0x16e))||'';this[_0x2d08ca(0x150)]=_0x5f27b3(_0x2b5c2e[_0x2d08ca(0x18b)],_0x2d08ca(0x190),{..._0x52637d,'pubkey':_0x4282f4,'ctx-name':_0x2d08ca(0x167)+this[_0x2d08ca(0x15f)],'sourceList':'','imgOnly':_0x2d08ca(0x1a3),'removeCopyright':_0x2d08ca(0x1a3),'localeName':this[_0x2d08ca(0x14e)][_0x2d08ca(0x155)][_0x2d08ca(0x19e)],'externalSourcesEmbedCss':_0x2d08ca(0x19c)}),this[_0x2d08ca(0x150)][_0x2d08ca(0x17e)]=_0x2549c5=>{const _0x31a443=_0x2d08ca;if(_0x31a443(0x16b)==_0x2549c5)return _0x31a443(0x1a2);},_0x2b5c2e[_0x2d08ca(0x18b)][_0x2d08ca(0x188)][_0x2d08ca(0x15d)](this[_0x2d08ca(0x150)]);}[_0x27282(0x17f)](){const _0x50f414=_0x27282;this[_0x50f414(0x15a)]=_0x5f27b3(_0x2b5c2e[_0x50f414(0x18b)],_0x50f414(0x183),{'ctx-name':_0x50f414(0x167)+this[_0x50f414(0x15f)]}),_0x2b5c2e[_0x50f414(0x18b)][_0x50f414(0x188)][_0x50f414(0x15d)](this[_0x50f414(0x15a)]);}[_0x27282(0x173)](){const _0x1cfeb0=_0x27282,_0x5848ef=this[_0x1cfeb0(0x14e)][_0x1cfeb0(0x184)][_0x1cfeb0(0x178)](_0x1cfeb0(0x196));_0x5848ef&&this[_0x1cfeb0(0x16d)](_0x5848ef,_0x1cfeb0(0x195),()=>{const _0x35f6a5=_0x1cfeb0,_0x43c23a=this[_0x35f6a5(0x14e)][_0x35f6a5(0x1a0)][_0x35f6a5(0x18b)][_0x35f6a5(0x151)][_0x35f6a5(0x169)]();_0x43c23a&&_0x43c23a[_0x35f6a5(0x17c)](_0x35f6a5(0x18d))&&this[_0x35f6a5(0x14e)][_0x35f6a5(0x18f)][_0x35f6a5(0x18a)][_0x35f6a5(0x187)](_0x35f6a5(0x161),()=>{const _0x228dd4=_0x35f6a5;_0x126a70(this[_0x228dd4(0x14e)],_0x43c23a);});});const _0x21eb27=this[_0x1cfeb0(0x14e)][_0x1cfeb0(0x184)][_0x1cfeb0(0x178)](_0x1cfeb0(0x154));_0x21eb27&&this[_0x1cfeb0(0x16d)](_0x21eb27,_0x1cfeb0(0x195),()=>{const _0x2907c7=_0x1cfeb0,_0xc91351=this[_0x2907c7(0x14e)][_0x2907c7(0x1a0)][_0x2907c7(0x18b)][_0x2907c7(0x151)][_0x2907c7(0x169)]();_0xc91351&&_0xc91351[_0x2907c7(0x17c)](_0x2907c7(0x18d))&&this[_0x2907c7(0x14e)][_0x2907c7(0x18f)][_0x2907c7(0x18a)][_0x2907c7(0x187)](_0x2907c7(0x161),()=>{const _0x1e8280=_0x2907c7;_0x126a70(this[_0x1e8280(0x14e)],_0xc91351);});});}}
|
|
23
|
+
const _0x1a8262=_0xb2fa;(function(_0x5588f4,_0x2a3ca2){const _0x3a80ee=_0xb2fa,_0x30fc32=_0x5588f4();while(!![]){try{const _0x4e2cc2=-parseInt(_0x3a80ee(0x136))/0x1*(parseInt(_0x3a80ee(0x13a))/0x2)+parseInt(_0x3a80ee(0x13b))/0x3*(-parseInt(_0x3a80ee(0x142))/0x4)+-parseInt(_0x3a80ee(0x15a))/0x5+parseInt(_0x3a80ee(0x15d))/0x6*(-parseInt(_0x3a80ee(0x11c))/0x7)+parseInt(_0x3a80ee(0x135))/0x8+-parseInt(_0x3a80ee(0x11d))/0x9+parseInt(_0x3a80ee(0x146))/0xa;if(_0x4e2cc2===_0x2a3ca2)break;else _0x30fc32['push'](_0x30fc32['shift']());}catch(_0x5948b4){_0x30fc32['push'](_0x30fc32['shift']());}}}(_0xc05f,0x75c1e));import{Plugin as _0x703d44}from'ckeditor5/src/core.js';function _0xb2fa(_0x5a926e,_0x33a135){const _0xc05ff=_0xc05f();return _0xb2fa=function(_0xb2fa89,_0x43f22d){_0xb2fa89=_0xb2fa89-0x112;let _0x4c2038=_0xc05ff[_0xb2fa89];return _0x4c2038;},_0xb2fa(_0x5a926e,_0x33a135);}function _0xc05f(){const _0xde875=['contentLanguage','uploader-','3348512apljdY','61NMHKuo','uploadcare.uploader','ctxElement','querySelector','29846zbyUPi','872901wfgrFG','_initConversion','elementToAttribute','editing','replaceImageSource','attributeToAttribute','configElement','12oftueW','schema','getSelectedElement','href','37623470qoYwVg','uc-config','requires','ucContextId','selection','uploadcare.pubkey','iconHrefResolver','removeAttribute','_initConfig','closeMax','appendChild','downcast','commands','true','fromCharCode','isPremiumPlugin','map','afterInit','remove','isOfficialPlugin','2298430FScLCw','render','uc-upload-ctx-provider','4140MECBNh','destroy','\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','data-uc-image-id','extend','isRegistered','input[uploadcare-file-input]','uploadcareImageReplace','conversion','getAttribute','editor','listenTo','get','insertImage','for','UploadcareEditing','config','_initCtx','upcast','_initSchema','5075uCdCBS','8598933aymbTM','#uc-icon-arrow-down','locale','_configElement','body','uploadcare','join','model','_initImageProcessingIndicator','view','PictureEditing','cleanupImage','uploadcareImageId','_ctxElement','pluginName','document','imageBlock','imageInline','add','execute','init','once'];_0xc05f=function(){return _0xde875;};return _0xc05f();}import{Dialog as _0x2586a8}from'ckeditor5/src/ui.js';import{createElement as _0x556257,global as _0x4a3e5c,uid as _0x4d3c46}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x92a050}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4e2e64}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xb88130}from'./utils/editingutils.js';export class UploadcareEditing extends _0x703d44{[_0x1a8262(0x120)]=null;[_0x1a8262(0x12a)]=null;static get[_0x1a8262(0x12b)](){const _0x28ca19=_0x1a8262;return _0x28ca19(0x117);}static get[_0x1a8262(0x148)](){const _0x38763a=_0x1a8262;return[_0x38763a(0x127),_0x4e2e64,_0x2586a8];}static get[_0x1a8262(0x159)](){return!0x0;}static get[_0x1a8262(0x155)](){return!0x0;}[_0x1a8262(0x149)];get[_0x1a8262(0x141)](){const _0x357899=_0x1a8262;return this[_0x357899(0x120)];}get[_0x1a8262(0x138)](){const _0x1afe32=_0x1a8262;return this[_0x1afe32(0x12a)];}constructor(_0x368532){const _0xf15fa2=_0x1a8262;super(_0x368532),this[_0xf15fa2(0x149)]=_0x4d3c46();}[_0x1a8262(0x131)](){const _0x525671=_0x1a8262,_0x4854a9=this[_0x525671(0x112)];_0x4854a9[_0x525671(0x152)][_0x525671(0x12f)](_0x525671(0x122),new _0x92a050(_0x4854a9));}[_0x1a8262(0x157)](){const _0x48c6b2=_0x1a8262;this[_0x48c6b2(0x11b)](),this[_0x48c6b2(0x13c)](),this[_0x48c6b2(0x14e)](),this[_0x48c6b2(0x119)](),this[_0x48c6b2(0x125)](),this[_0x48c6b2(0x113)](this[_0x48c6b2(0x112)],_0x48c6b2(0x15e),()=>{const _0x4d97c2=_0x48c6b2;this[_0x4d97c2(0x120)]&&(this[_0x4d97c2(0x120)][_0x4d97c2(0x158)](),this[_0x4d97c2(0x120)]=null),this[_0x4d97c2(0x12a)]&&(this[_0x4d97c2(0x12a)][_0x4d97c2(0x158)](),this[_0x4d97c2(0x12a)]=null);const _0x1710b3=_0x4a3e5c[_0x4d97c2(0x12c)][_0x4d97c2(0x139)](_0x4d97c2(0x163));_0x1710b3&&_0x1710b3[_0x4d97c2(0x158)]();}),async function(_0x3533e4){const _0x3a57f4=_0x3c0ff1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x51bf79=0x535f8c3a,_0xfabc6c=0x5358fbfa^_0x51bf79,_0x348c75=window[_0x3c0ff1([0x44,0x61,0x74,0x65])][_0x3c0ff1([0x6e,0x6f,0x77])](),_0x9c7a24=_0x3533e4[_0x3c0ff1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43e9ee=new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483600=>{_0x9c7a24[_0x3c0ff1([0x6f,0x6e,0x63,0x65])](_0x3c0ff1([0x72,0x65,0x61,0x64,0x79]),_0x483600);}),_0x2df2fa={[_0x3c0ff1([0x6b,0x74,0x79])]:_0x3c0ff1([0x45,0x43]),[_0x3c0ff1([0x75,0x73,0x65])]:_0x3c0ff1([0x73,0x69,0x67]),[_0x3c0ff1([0x63,0x72,0x76])]:_0x3c0ff1([0x50,0x2d,0x32,0x35,0x36]),[_0x3c0ff1([0x78])]:_0x3c0ff1([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]),[_0x3c0ff1([0x79])]:_0x3c0ff1([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]),[_0x3c0ff1([0x61,0x6c,0x67])]:_0x3c0ff1([0x45,0x53,0x32,0x35,0x36])},_0x2c62df=_0x9c7a24[_0x3c0ff1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c0ff1([0x67,0x65,0x74])](_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x384c96(){let _0x40ec48,_0x3e4821=null,_0x473185=null;try{if(_0x2c62df==_0x3c0ff1([0x47,0x50,0x4c]))return _0x3c0ff1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40ec48=_0x39f1d5(),!_0x40ec48)return _0x3c0ff1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40ec48[_0x3c0ff1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x473185=_0x27054f(_0x40ec48[_0x3c0ff1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40ec48[_0x3c0ff1([0x6a,0x74,0x69])])),await _0xf032af()?_0x47a709()?_0x415151()?_0x3c0ff1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x197179()?(_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c0ff1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e4821=_0x2e998f(_0x3c0ff1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c0ff1([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e4821=_0x2e998f(_0x3c0ff1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cab6b()):_0x3c0ff1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c0ff1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c0ff1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c0ff1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x415151(){const _0x5ddbe1=[_0x3c0ff1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c0ff1([0x74,0x72,0x69,0x61,0x6c])][_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x348c75/0x3e8:0xe10*_0xfabc6c;return _0x40ec48[_0x3c0ff1([0x65,0x78,0x70])]<_0x5ddbe1;}function _0x47a709(){const _0x1d2c53=_0x40ec48[_0x3c0ff1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d2c53&&(!!_0x1d2c53[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0ff1([0x2a]))||!!_0x1d2c53[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0ff1([0x55,0x50,0x4c,0x43])));}function _0x197179(){const _0x4cfe3e=_0xb2fa,_0x5b95c5=_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b95c5||0x0==_0x5b95c5[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42b1a4}=new URL(window[_0x3c0ff1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4cfe3e(0x145)]);if(_0x5b95c5[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b1a4))return!0x0;const _0x95094b=_0x42b1a4[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e]));return _0x5b95c5[_0x3c0ff1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x300491=>_0x300491[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0ff1([0x2a])))[_0x3c0ff1([0x6d,0x61,0x70])](_0x38d9a=>_0x38d9a[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e])))[_0x3c0ff1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48e7d1=>_0x48e7d1[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x95094b[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c0ff1([0x6d,0x61,0x70])](_0x1d61fe=>Array(_0x95094b[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d61fe[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c0ff1([0x66,0x69,0x6c,0x6c])](_0x1d61fe[0x0]===_0x3c0ff1([0x2a])?_0x3c0ff1([0x2a]):'')[_0x3c0ff1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d61fe))[_0x3c0ff1([0x73,0x6f,0x6d,0x65])](_0x5e6845=>_0x95094b[_0x3c0ff1([0x65,0x76,0x65,0x72,0x79])]((_0x4e7be7,_0x1da89e)=>_0x5e6845[_0x1da89e]===_0x4e7be7||_0x5e6845[_0x1da89e]===_0x3c0ff1([0x2a])));}function _0x1cab6b(){return _0x3e4821&&_0x473185?new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x336615,_0x53ff19)=>{_0x3e4821[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x336615,_0x53ff19),_0x473185[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x17d0ce=>{_0x17d0ce!=_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64])&&_0x336615(_0x17d0ce);},_0x53ff19);}):_0x3e4821||_0x473185||_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27054f(_0x2133f8,_0x41ea63){return new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1adde7=>{if(_0x1558fe())return _0x1adde7(_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64]));_0x1cddb2(),_0x9c7a24[_0x3c0ff1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c0ff1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf09b7f=!0x1;const _0x5e7bf8=_0x4d3c46();function _0x471bf7(_0x13ce0a){return!!_0x13ce0a&&(typeof _0x13ce0a===_0x3c0ff1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13ce0a===_0x3c0ff1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13ce0a[_0x3c0ff1([0x74,0x68,0x65,0x6e])]===_0x3c0ff1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13ce0a[_0x3c0ff1([0x63,0x61,0x74,0x63,0x68])]===_0x3c0ff1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dbf10(_0x3df0a0){_0x2cfa55(_0x3df0a0)[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x474fe0=>{if(!_0x474fe0||_0x474fe0[_0x3c0ff1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c0ff1([0x6f,0x6b]))return _0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x195847(_0x31b4a8(_0x5e7bf8+_0x41ea63))!=_0x474fe0[_0x3c0ff1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x1f13d1=>(_0x15c91f(),_0x1f13d1),()=>{const _0x2ec837=_0x3098b5();return null==_0x2ec837?(_0x15c91f(),_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64])):_0x3c0ff1(_0x348c75-_0x2ec837>(0x7753083a^_0x51bf79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x1adde7)[_0x3c0ff1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1adde7(_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc47079=0x536962ba^_0x51bf79;function _0x15c91f(){const _0x14dbff=_0x3c0ff1([0x6c,0x6c,0x63,0x74,0x2d])+_0x195847(_0x31b4a8(_0x2133f8)),_0x34d3ad=_0x331b15(_0x195847(window[_0x3c0ff1([0x4d,0x61,0x74,0x68])][_0x3c0ff1([0x63,0x65,0x69,0x6c])](_0x348c75/_0xc47079)));window[_0x3c0ff1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c0ff1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14dbff,_0x34d3ad);}function _0x3098b5(){const _0xa75745=_0x3c0ff1([0x6c,0x6c,0x63,0x74,0x2d])+_0x195847(_0x31b4a8(_0x2133f8)),_0x58870f=window[_0x3c0ff1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c0ff1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa75745);return _0x58870f?window[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x331b15(_0x58870f),0x10)*_0xc47079:null;}function _0x2cfa55(_0x41be9e){return new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12e065,_0x114ed5)=>{_0x41be9e[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x12e065,_0x114ed5),window[_0x3c0ff1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x114ed5,0x535e58fa^_0x51bf79);});}}_0x9c7a24[_0x3c0ff1([0x6f,0x6e])](_0x3c0ff1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x578cb5,_0x2d39cd)=>{if(_0x2d39cd[0x0]!=_0x2133f8)return _0x1adde7(_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d39cd[0x1]={..._0x2d39cd[0x1],[_0x3c0ff1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e7bf8};},{[_0x3c0ff1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c0ff1([0x68,0x69,0x67,0x68])}),_0x9c7a24[_0x3c0ff1([0x6f,0x6e])](_0x3c0ff1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x553233=>{_0x471bf7(_0x553233[_0x3c0ff1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf09b7f=!0x0,_0x5dbf10(_0x553233[_0x3c0ff1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c0ff1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c0ff1([0x6c,0x6f,0x77])}),_0x43e9ee[_0x3c0ff1([0x74,0x68,0x65,0x6e])](()=>{_0xf09b7f||_0x1adde7(_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1558fe(){return _0x9c7a24[_0x3c0ff1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0ff1([0x76,0x69,0x65,0x77])][_0x3c0ff1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c0ff1([0x61,0x75,0x74,0x6f]);}function _0x1cddb2(){_0x9c7a24[_0x3c0ff1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0ff1([0x76,0x69,0x65,0x77])][_0x3c0ff1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c0ff1([0x61,0x75,0x74,0x6f]);}}function _0x2e998f(_0x2a84a3){const _0x37d92c=[new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf228ae=>setTimeout(_0xf228ae,0x5356b2f6^_0x51bf79)),_0x43e9ee[_0x3c0ff1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8595=>{let _0x400782=0x0;_0x9c7a24[_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0ff1([0x6f,0x6e])](_0x3c0ff1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5946ab,_0x5a1304)=>{_0x5a1304[0x0][_0x3c0ff1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x400782++,_0x400782==(0x535f8dc2^_0x51bf79)&&(_0x4a8595(),_0x5946ab[_0x3c0ff1([0x6f,0x66,0x66])]());});}))];return window[_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c0ff1([0x72,0x61,0x63,0x65])](_0x37d92c)[_0x3c0ff1([0x74,0x68,0x65,0x6e])](()=>_0x2a84a3);}async function _0x228497(){await _0x43e9ee,_0x9c7a24[_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0ff1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cd32c,_0x9c7a24[_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0ff1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cd32c,_0x9c7a24[_0x3c0ff1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59a307(_0x3da9e5){const _0x716554=_0x2be261();_0x9c7a24[_0x716554]=_0x3c0ff1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3da9e5,_0x3da9e5!=_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64])&&_0x228497();}function _0x2be261(){const _0x32f314=window[_0x3c0ff1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c0ff1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c0ff1([0x6e,0x6f,0x77])]())[_0x3c0ff1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c0ff1([0x2e]),'');let _0x3896dd=_0x3c0ff1([0x68]);for(let _0x419edd=0x0;_0x419edd<_0x32f314[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x419edd+=0x2){let _0x4cb08d=window[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32f314[_0x3c0ff1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x419edd,_0x419edd+0x2));_0x4cb08d>=_0x3a57f4[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cb08d-=_0x3a57f4[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3896dd+=_0x3a57f4[_0x4cb08d];}return _0x3896dd;}function _0x39f1d5(){const _0x4b39e8=_0x2c62df[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e]));if(0x3!=_0x4b39e8[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2dbfd9(_0x4b39e8[0x1]);function _0x2dbfd9(_0x162f1b){const _0x1b15b=_0x50de9b(_0x162f1b);return _0x1b15b&&_0x5b4f9d()?_0x1b15b:null;function _0x5b4f9d(){const _0xf25ccb=_0x1b15b[_0x3c0ff1([0x6a,0x74,0x69])],_0x4f100d=window[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf25ccb[_0x3c0ff1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf25ccb[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x155df4={..._0x1b15b,[_0x3c0ff1([0x6a,0x74,0x69])]:_0xf25ccb[_0x3c0ff1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf25ccb[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x155df4[_0x3c0ff1([0x76,0x63])],_0x31b4a8(_0x155df4)==_0x4f100d;}}}async function _0xf032af(){let _0x1d46ba=!0x0;try{const _0x4ec8b8=_0x2c62df[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e])),[_0x10dcf1,_0x19b4e0,_0x844bde]=_0x4ec8b8;return _0x40582a(_0x10dcf1),await _0xbbc4a2(_0x10dcf1,_0x19b4e0,_0x844bde),_0x1d46ba;}catch{return!0x1;}function _0x40582a(_0x1fd65c){const _0x3b280f=_0x50de9b(_0x1fd65c);_0x3b280f&&_0x3b280f[_0x3c0ff1([0x61,0x6c,0x67])]==_0x3c0ff1([0x45,0x53,0x32,0x35,0x36])||(_0x1d46ba=!0x1);}async function _0xbbc4a2(_0x4469c2,_0xd5e477,_0x26828a){const _0x1c3395=window[_0x3c0ff1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c0ff1([0x66,0x72,0x6f,0x6d])](_0x1863e7(_0x26828a),_0x3ad048=>_0x3ad048[_0x3c0ff1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4257ac=new window[(_0x3c0ff1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c0ff1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4469c2+_0x3c0ff1([0x2e])+_0xd5e477),_0x43d0b8=window[_0x3c0ff1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c0ff1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43d0b8)return;const _0x1db770=await _0x43d0b8[_0x3c0ff1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c0ff1([0x6a,0x77,0x6b]),_0x2df2fa,{[_0x3c0ff1([0x6e,0x61,0x6d,0x65])]:_0x3c0ff1([0x45,0x43,0x44,0x53,0x41]),[_0x3c0ff1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c0ff1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c0ff1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43d0b8[_0x3c0ff1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c0ff1([0x6e,0x61,0x6d,0x65])]:_0x3c0ff1([0x45,0x43,0x44,0x53,0x41]),[_0x3c0ff1([0x68,0x61,0x73,0x68])]:{[_0x3c0ff1([0x6e,0x61,0x6d,0x65])]:_0x3c0ff1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1db770,_0x1c3395,_0x4257ac)||(_0x1d46ba=!0x1);}}function _0x50de9b(_0x3205be){return _0x3205be[_0x3c0ff1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c0ff1([0x65,0x79]))?JSON[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65])](_0x1863e7(_0x3205be)):null;}function _0x1863e7(_0x4d2523){return window[_0x3c0ff1([0x61,0x74,0x6f,0x62])](_0x4d2523[_0x3c0ff1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c0ff1([0x2b]))[_0x3c0ff1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c0ff1([0x2f])));}function _0x31b4a8(_0x33dbc3){let _0x379025=0x1505;function _0x11deeb(_0x2b2dcd){for(let _0xabf8c0=0x0;_0xabf8c0<_0x2b2dcd[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xabf8c0++){const _0x30c7a3=_0x2b2dcd[_0x3c0ff1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xabf8c0);_0x379025=(_0x379025<<0x5)+_0x379025+_0x30c7a3,_0x379025&=_0x379025;}}function _0x523704(_0x3a62db){Array[_0x3c0ff1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a62db)?_0x3a62db[_0x3c0ff1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x523704):_0x3a62db&&typeof _0x3a62db==_0x3c0ff1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c0ff1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a62db)[_0x3c0ff1([0x73,0x6f,0x72,0x74])]()[_0x3c0ff1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f959f,_0x9b58e7])=>{_0x11deeb(_0x2f959f),_0x523704(_0x9b58e7);}):_0x11deeb(window[_0x3c0ff1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a62db));}return _0x523704(_0x33dbc3),_0x379025>>>0x0;}function _0x195847(_0x51a35c){return _0x51a35c[_0x3c0ff1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c0ff1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c0ff1([0x30]));}function _0x331b15(_0x3ef99e){return _0x3ef99e[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c0ff1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c0ff1([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cd32c(){}function _0x3c0ff1(_0x2d428c){const _0x55e408=_0xb2fa;return _0x2d428c[_0x55e408(0x156)](_0x276c3a=>String[_0x55e408(0x154)](_0x276c3a))[_0x55e408(0x123)]('');}_0x59a307(await _0x384c96());}(this);}[_0x1a8262(0x11b)](){const _0x4dbf37=_0x1a8262,_0x5d9e5d=this[_0x4dbf37(0x112)][_0x4dbf37(0x124)][_0x4dbf37(0x143)];_0x5d9e5d[_0x4dbf37(0x162)](_0x4dbf37(0x12d))&&_0x5d9e5d[_0x4dbf37(0x161)](_0x4dbf37(0x12d),{'allowAttributes':[_0x4dbf37(0x129)]}),_0x5d9e5d[_0x4dbf37(0x162)](_0x4dbf37(0x12e))&&_0x5d9e5d[_0x4dbf37(0x161)](_0x4dbf37(0x12e),{'allowAttributes':[_0x4dbf37(0x129)]});}[_0x1a8262(0x13c)](){const _0x3f4859=_0x1a8262,_0x101bbd=this[_0x3f4859(0x112)];_0x101bbd[_0x3f4859(0x165)][_0x3f4859(0x116)](_0x3f4859(0x151))[_0x3f4859(0x140)]({'model':_0x3f4859(0x129),'view':_0x3f4859(0x160)}),_0x101bbd[_0x3f4859(0x165)][_0x3f4859(0x116)](_0x3f4859(0x11a))[_0x3f4859(0x13d)]({'model':{'key':_0x3f4859(0x129),'value':_0x495e2c=>_0x495e2c[_0x3f4859(0x166)](_0x3f4859(0x160))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x460bf0=_0x101bbd[_0x3f4859(0x152)][_0x3f4859(0x114)](_0x3f4859(0x13f));_0x460bf0&&this[_0x3f4859(0x113)](_0x460bf0,_0x3f4859(0x128),(_0x239e7a,[_0x4b7370,_0x3ce971])=>{const _0x400e2b=_0x3f4859;_0x4b7370[_0x400e2b(0x14d)](_0x400e2b(0x129),_0x3ce971);});}[_0x1a8262(0x14e)](){const _0x2cd667=_0x1a8262,_0x48c19d=this[_0x2cd667(0x112)][_0x2cd667(0x118)][_0x2cd667(0x114)](_0x2cd667(0x137))||{},_0x4ded89=this[_0x2cd667(0x112)][_0x2cd667(0x118)][_0x2cd667(0x114)](_0x2cd667(0x14b))||'';this[_0x2cd667(0x120)]=_0x556257(_0x4a3e5c[_0x2cd667(0x12c)],_0x2cd667(0x147),{..._0x48c19d,'pubkey':_0x4ded89,'ctx-name':_0x2cd667(0x134)+this[_0x2cd667(0x149)],'sourceList':'','imgOnly':_0x2cd667(0x153),'removeCopyright':_0x2cd667(0x153),'localeName':this[_0x2cd667(0x112)][_0x2cd667(0x11f)][_0x2cd667(0x133)],'externalSourcesEmbedCss':_0x2cd667(0x15f)}),this[_0x2cd667(0x120)][_0x2cd667(0x14c)]=_0x1e00e4=>{const _0xdaa2e=_0x2cd667;if(_0xdaa2e(0x14f)==_0x1e00e4)return _0xdaa2e(0x11e);},_0x4a3e5c[_0x2cd667(0x12c)][_0x2cd667(0x121)][_0x2cd667(0x150)](this[_0x2cd667(0x120)]);}[_0x1a8262(0x119)](){const _0xf1af50=_0x1a8262;this[_0xf1af50(0x12a)]=_0x556257(_0x4a3e5c[_0xf1af50(0x12c)],_0xf1af50(0x15c),{'ctx-name':_0xf1af50(0x134)+this[_0xf1af50(0x149)]}),_0x4a3e5c[_0xf1af50(0x12c)][_0xf1af50(0x121)][_0xf1af50(0x150)](this[_0xf1af50(0x12a)]);}[_0x1a8262(0x125)](){const _0x1cd33d=_0x1a8262,_0x2e2ede=this[_0x1cd33d(0x112)][_0x1cd33d(0x152)][_0x1cd33d(0x114)](_0x1cd33d(0x115));_0x2e2ede&&this[_0x1cd33d(0x113)](_0x2e2ede,_0x1cd33d(0x130),()=>{const _0x513f35=_0x1cd33d,_0x7e86ce=this[_0x513f35(0x112)][_0x513f35(0x124)][_0x513f35(0x12c)][_0x513f35(0x14a)][_0x513f35(0x144)]();_0x7e86ce&&_0x7e86ce[_0x513f35(0x166)](_0x513f35(0x129))&&this[_0x513f35(0x112)][_0x513f35(0x13e)][_0x513f35(0x126)][_0x513f35(0x132)](_0x513f35(0x15b),()=>{const _0x1e059b=_0x513f35;_0xb88130(this[_0x1e059b(0x112)],_0x7e86ce);});});const _0x4ffa8b=this[_0x1cd33d(0x112)][_0x1cd33d(0x152)][_0x1cd33d(0x114)](_0x1cd33d(0x164));_0x4ffa8b&&this[_0x1cd33d(0x113)](_0x4ffa8b,_0x1cd33d(0x130),()=>{const _0x55a78b=_0x1cd33d,_0xffef1f=this[_0x55a78b(0x112)][_0x55a78b(0x124)][_0x55a78b(0x12c)][_0x55a78b(0x14a)][_0x55a78b(0x144)]();_0xffef1f&&_0xffef1f[_0x55a78b(0x166)](_0x55a78b(0x129))&&this[_0x55a78b(0x112)][_0x55a78b(0x13e)][_0x55a78b(0x126)][_0x55a78b(0x132)](_0x55a78b(0x15b),()=>{const _0x677d14=_0x55a78b;_0xb88130(this[_0x677d14(0x112)],_0xffef1f);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xeddbfa,ObservableMixin as _0x5b6c9e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1605d4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2d2553}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x362b17}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5a3b42}from'../../utils/uploadutils.js';import{getImageUrls as _0x1b0888,getImageDimension as _0x145269}from'../../utils/editingutils.js';import{isAncestor as _0xffa7e4}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5b6c9e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1a576f,_0x4ed88b,_0x8da98e){super(),this['_editor']=_0x1a576f,this['_dialog']=_0x4ed88b,this['_imageElement']=_0x8da98e,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 _0x42ca68=this['_imageElement'],_0x4b1acc=_0x42ca68['getAttribute']('uploadcareImageId'),_0x3ea84b=_0x42ca68['getAttribute']('src');if(_0x4b1acc)await this['_loadImageInfo'](_0x4b1acc,_0x3ea84b);else{if(this['_imageCache']['has'](_0x3ea84b)){const _0x380f62=this['_imageCache']['get'](_0x3ea84b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x380f62['url'],this['imageDimension']=_0x380f62['dimension'],this['imageId']=_0x380f62['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x493f35}=this['_editor'],t=_0x493f35['t'],_0x506438=new _0x362b17(_0x493f35,this['imageStatus'],this['_attributes']);_0x506438['bind']('status')['to'](this,'imageStatus'),_0x506438['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x506438['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x506438['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x506438,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d2553,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x506438,'position':_0x1605d4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x506438['focus']();},'onHide':()=>{_0x506438['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53bfe7=>!_0xffa7e4(_0x53bfe7,_0x506438['element'])}});}['_loadImageInfo'](_0x41c21d,_0x5537bc){return _0x5a3b42['getInfo'](_0x41c21d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x56bfae=>{const {width:_0x1e7072,height:_0x1668a6}=_0x56bfae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5537bc,this['imageDimension']={'width':_0x1e7072,'height':_0x1668a6},this['imageId']=_0x41c21d;})['catch'](_0xb0968d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb0968d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x24431c,_0x586c40){return this['_getImageAsFile'](_0x24431c)['then'](_0x36b694=>_0x5a3b42['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x586c40['signal'],'file':_0x36b694,'onProgress':_0x142c29=>{_0x142c29&&_0x142c29['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x142c29['value']));}}))['then'](_0x2898df=>{const {width:_0x5516d6,height:_0x379ba0}=_0x2898df['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2898df['cdnUrl'],this['imageDimension']={'width':_0x5516d6,'height':_0x379ba0},this['imageId']=_0x2898df['uuid'],this['imageUploadProgress']=null;const _0x1ec8a4=_0x24431c['getAttribute']('src');this['_imageCache']['set'](_0x1ec8a4,{'id':_0x2898df['uuid'],'url':_0x2898df['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x32cec4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x32cec4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1215cd,_0x577cd4){_0x1215cd['on']('apply',(_0x2fae1f,_0x136ed5)=>{this['_replaceImage'](_0x577cd4,_0x136ed5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1215cd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1215cd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2a3862,_0x5247dd,_0x15e6d5){const _0xd01911=this['_editor'],{width:_0x4e55ff,height:_0x3423d5}=_0x145269(_0x5247dd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xab98dc,imageSources:_0x2768fc}=_0x1b0888(_0x5247dd,_0x4e55ff);_0xd01911['model']['change'](_0x5ea009=>{if('$graveyard'===_0x2a3862['root']['rootName']){_0xd01911['execute']('insertImage',{'imageType':_0x2a3862['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2a3862['getAttributes']()),'uploadcareImageId':_0x15e6d5,'src':_0xab98dc,'sources':_0x2768fc,'width':_0x4e55ff,'height':_0x3423d5}});const _0x518c80=_0x2a3862['getChildren']();_0x2a3862=_0xd01911['model']['document']['selection']['getSelectedElement']();for(const _0x11f037 of _0x518c80)_0x5ea009['append'](_0x5ea009['cloneElement'](_0x11f037),_0x2a3862);}else _0x5ea009['setSelection'](_0x2a3862,'on'),_0xd01911['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2a3862['getAttributes']()),'uploadcareImageId':_0x15e6d5,'src':_0xab98dc,'sources':_0x2768fc,'width':_0x4e55ff,'height':_0x3423d5},_0x2a3862);_0x5ea009['setSelection'](_0x2a3862,'on');});}async['_getImageAsFile'](_0x4e580d){const _0x3a3c79=_0xeddbfa['window'],_0x2c4240=_0xeddbfa['document']['location']['href'],_0x47f026=new _0x3a3c79['URL'](_0x4e580d['getAttribute']('src'),_0x2c4240);if('data:'===_0x47f026['protocol']){const _0x1dea5a=_0x47f026['href']['split'](','),_0x1857d0=_0x1dea5a[0x0]['match'](/:(.*?);/)[0x1],_0x524a41=_0x1857d0['split']('/')[0x1],_0x12ff23=_0x3a3c79['atob'](_0x1dea5a[_0x1dea5a['length']-0x1]);let _0x361b54=_0x12ff23['length'];const _0xb07ac9=new _0x3a3c79['Uint8Array'](_0x361b54);for(;_0x361b54--;)_0xb07ac9[_0x361b54]=_0x12ff23['charCodeAt'](_0x361b54);return new _0x3a3c79['File']([_0xb07ac9],'image.'+_0x524a41,{'type':_0x1857d0});}const _0x5739af=_0x47f026['href']['split']('/'),_0x970378=_0x5739af[_0x5739af['length']-0x1],_0x3b5995=_0x970378['split']('.')[0x1];return _0x3a3c79['fetch'](_0x47f026['href'])['then'](_0x27255a=>_0x27255a['clone']()['blob']())['then'](_0x31874e=>new _0x3a3c79['File']([_0x31874e],_0x970378,{'type':'image/'+_0x3b5995}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3770(){const _0x150462=['ck-uploadcare-theme','uc-light','setTemplate','1283507epXesE','1728384JVvQhe','set','8820637PDRMWr','15954PsAvwf','bindTemplate','1915wHWelH','8DznvHW','imageSrc','51uwpZVz','uc-cloud-image-editor','278068UPviOn','15469025cCVCWx','9cZUhAV','6655860WEKlHY','image-edit'];_0x3770=function(){return _0x150462;};return _0x3770();}function _0x5bfe(_0x21cb28,_0x1922ac){const _0x37704e=_0x3770();return _0x5bfe=function(_0x5bfefc,_0x3a1791){_0x5bfefc=_0x5bfefc-0xf9;let _0x50d4fd=_0x37704e[_0x5bfefc];return _0x50d4fd;},_0x5bfe(_0x21cb28,_0x1922ac);}(function(_0x1cf4cb,_0x248589){const _0x508028=_0x5bfe,_0xc49603=_0x1cf4cb();while(!![]){try{const _0x23d4d4=-parseInt(_0x508028(0x104))/0x1+parseInt(_0x508028(0x105))/0x2+-parseInt(_0x508028(0xfa))/0x3*(parseInt(_0x508028(0xfc))/0x4)+-parseInt(_0x508028(0x10a))/0x5*(parseInt(_0x508028(0x108))/0x6)+-parseInt(_0x508028(0x107))/0x7*(-parseInt(_0x508028(0x10b))/0x8)+parseInt(_0x508028(0xfe))/0x9*(parseInt(_0x508028(0xff))/0xa)+parseInt(_0x508028(0xfd))/0xb;if(_0x23d4d4===_0x248589)break;else _0xc49603['push'](_0xc49603['shift']());}catch(_0x1572c8){_0xc49603['push'](_0xc49603['shift']());}}}(_0x3770,0xadf03));import{View as _0x15834e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x15834e{constructor(_0x2af86d,_0x58fa87){const _0x27c753=_0x5bfe;super(_0x2af86d);const _0x5eb07c=this[_0x27c753(0x109)];this[_0x27c753(0x106)](_0x27c753(0xf9),''),this[_0x27c753(0x103)]({'tag':_0x27c753(0xfb),'attributes':{..._0x58fa87,'class':[_0x27c753(0x102),_0x27c753(0x101)],'ctx-name':_0x27c753(0x100),'cdn-url':_0x5eb07c['to'](_0x27c753(0xf9))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x20c3dc}from'ckeditor5/src/icons.js';import{ButtonView as _0x59b111,IconView as _0x3eb3e5,View as _0x979941}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x979941{constructor(_0x5dace4){super(_0x5dace4);const t=_0x5dace4['t'];this['set']('errorType',null);const _0x3cf121=new _0x59b111(_0x5dace4);_0x3cf121['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3cf121['withText']=!0x0,_0x3cf121['class']='ck-button-action',_0x3cf121['on']('execute',()=>{this['fire']('retry');}),_0x3cf121['bind']('isVisible')['to'](this,'errorType',_0x48e4d6=>'NotFound'!==_0x48e4d6);const _0xab57e6=new _0x3eb3e5();_0xab57e6['content']=_0x20c3dc,_0xab57e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47dbed=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':[_0xab57e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47dbed['to']('errorType',_0x30ce6d=>t('NotFound'!==_0x30ce6d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3cf121]},{'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 _0x5c4885,View as _0x37b251}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x37b251{constructor(_0x2a4bb6){super(_0x2a4bb6);const t=_0x2a4bb6['t'],_0x582f77=this['bindTemplate'],_0x139346=new _0x5c4885();_0x139346['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':[_0x139346,{'text':_0x582f77['to']('imageUploadProgress',_0x3d88aa=>t('Loading\x20image...')+'\x20('+(_0x3d88aa||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x535353=_0x4cb5;(function(_0xe2307a,_0x5a041e){const _0x2d68af=_0x4cb5,_0x3c4b02=_0xe2307a();while(!![]){try{const _0x5d242c=parseInt(_0x2d68af(0x205))/0x1*(-parseInt(_0x2d68af(0x218))/0x2)+parseInt(_0x2d68af(0x20c))/0x3*(-parseInt(_0x2d68af(0x219))/0x4)+-parseInt(_0x2d68af(0x200))/0x5*(parseInt(_0x2d68af(0x21f))/0x6)+parseInt(_0x2d68af(0x1fb))/0x7*(-parseInt(_0x2d68af(0x209))/0x8)+parseInt(_0x2d68af(0x1f3))/0x9+parseInt(_0x2d68af(0x207))/0xa*(parseInt(_0x2d68af(0x21b))/0xb)+parseInt(_0x2d68af(0x208))/0xc*(parseInt(_0x2d68af(0x21d))/0xd);if(_0x5d242c===_0x5a041e)break;else _0x3c4b02['push'](_0x3c4b02['shift']());}catch(_0x5675b7){_0x3c4b02['push'](_0x3c4b02['shift']());}}}(_0x40b4,0x716e1));import{View as _0x41d9ce}from'ckeditor5/src/ui.js';function _0x40b4(){const _0x1d5024=['element','65fNSfkm','change:status','12DDTGJU','filter','toLowerCase','querySelector','uploading','_editingView','set','observe','_setView','_waitForImageEditorComponent','addEventListener','apply','_errorView','retry','6218343hHRayb','div','error','target','cdnUrl','status','add','addMany','8813aSqNyI','length','_items','once','render','1766665DoVdOk','ck-uploadcare-form','uc-cloud-image-editor','_loadingView','ready','26399dcktiX','_addErrorViewListeners','270VzxiOx','2595660ImQlTV','3088rlLMlK','addedNodes','nodeName','948qIcKrp','_focusableView','setTemplate','clear','cancel','_addUploadcareImageEditorListeners','focus','detail','disconnect','ck-reset_all-excluded','getFocusableElement','createCollection','26mEXAGx','1564bhsXne','fire','143220pTzYmn'];_0x40b4=function(){return _0x1d5024;};return _0x40b4();}import{UploadcareImageEditFormLoadingView as _0x510016}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x140555}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4e668c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1c70ee}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4cb5(_0x1d8d86,_0x31b4ad){const _0x40b47d=_0x40b4();return _0x4cb5=function(_0x4cb5f8,_0x48c65c){_0x4cb5f8=_0x4cb5f8-0x1e8;let _0x1ce958=_0x40b47d[_0x4cb5f8];return _0x1ce958;},_0x4cb5(_0x1d8d86,_0x31b4ad);}export class UploadcareImageEditFormView extends _0x1c70ee{[_0x535353(0x1fd)];[_0x535353(0x203)];[_0x535353(0x1f1)];[_0x535353(0x1ea)];[_0x535353(0x20d)];constructor(_0x44b978,_0x3b70f2,_0x3336b3){const _0x597d1b=_0x535353;super(_0x44b978),this[_0x597d1b(0x1fd)]=this[_0x597d1b(0x217)](),this[_0x597d1b(0x203)]=new _0x510016(_0x44b978),this[_0x597d1b(0x1f1)]=new _0x140555(_0x44b978),this[_0x597d1b(0x1ea)]=new _0x4e668c(_0x44b978,_0x3336b3),this[_0x597d1b(0x20d)]=new _0x41d9ce(_0x44b978),this[_0x597d1b(0x20d)][_0x597d1b(0x20e)](this[_0x597d1b(0x216)]()),this[_0x597d1b(0x1eb)](_0x597d1b(0x1f8),_0x3b70f2),this[_0x597d1b(0x20e)]({'tag':_0x597d1b(0x1f4),'attributes':{'class':['ck',_0x597d1b(0x215),_0x597d1b(0x201)],'tabindex':'-1'},'children':this[_0x597d1b(0x1fd)]}),this[_0x597d1b(0x1ed)](),this[_0x597d1b(0x1fe)](_0x597d1b(0x1ff),()=>{const _0x359611=_0x597d1b;this[_0x359611(0x1ee)](this[_0x359611(0x21c)],_0x55a2d0=>{const _0x3bef01=_0x359611;this[_0x3bef01(0x211)](_0x55a2d0);});}),this['on'](_0x597d1b(0x21e),()=>{const _0x21b18e=_0x597d1b;this[_0x21b18e(0x1ed)]();}),this[_0x597d1b(0x206)]();}[_0x535353(0x212)](){const _0x37988b=_0x535353;this[_0x37988b(0x21c)][_0x37988b(0x212)]();}[_0x535353(0x1ed)](){const _0x273acb=_0x535353;switch(this[_0x273acb(0x1fd)][_0x273acb(0x20f)](),this[_0x273acb(0x1f8)]){case _0x273acb(0x1e9):this[_0x273acb(0x1fd)][_0x273acb(0x1f9)](this[_0x273acb(0x203)]);break;case _0x273acb(0x1f5):this[_0x273acb(0x1fd)][_0x273acb(0x1f9)](this[_0x273acb(0x1f1)]);break;case _0x273acb(0x204):this[_0x273acb(0x1fd)][_0x273acb(0x1fa)]([this[_0x273acb(0x1ea)],this[_0x273acb(0x20d)]]);}}[_0x535353(0x1ee)](_0x288441,_0x5bde00){const _0x1a8d28=_0x535353,_0x565447=_0x1a8d28(0x202),_0x15ea8c=_0x288441[_0x1a8d28(0x1e8)](_0x565447);if(_0x15ea8c)return _0x5bde00(_0x15ea8c);const _0x4cfd68=new MutationObserver(_0x377660=>{const _0x5de76b=_0x1a8d28,_0xab8aed=_0x377660[_0x5de76b(0x220)](_0x4d5b17=>_0x4d5b17[_0x5de76b(0x1f6)]===_0x288441&&_0x4d5b17[_0x5de76b(0x20a)][_0x5de76b(0x1fc)]>0x0&&_0x4d5b17[_0x5de76b(0x20a)][0x0][_0x5de76b(0x20b)][_0x5de76b(0x221)]()===_0x565447);_0xab8aed[_0x5de76b(0x1fc)]&&(_0x4cfd68[_0x5de76b(0x214)](),_0x5bde00(_0xab8aed[0x0][_0x5de76b(0x20a)][0x0]));});_0x4cfd68[_0x1a8d28(0x1ec)](_0x288441,{'childList':!0x0,'subtree':!0x0});}[_0x535353(0x211)](_0x59a423){const _0x36b7fb=_0x535353;_0x59a423[_0x36b7fb(0x1ef)](_0x36b7fb(0x1f0),_0x4a6b32=>{const _0xc8983f=_0x36b7fb;this[_0xc8983f(0x21a)](_0xc8983f(0x1f0),{'imageSrc':_0x4a6b32[_0xc8983f(0x213)][_0xc8983f(0x1f7)]});}),_0x59a423[_0x36b7fb(0x1ef)](_0x36b7fb(0x210),()=>{const _0x265439=_0x36b7fb;this[_0x265439(0x21a)](_0x265439(0x210));});}[_0x535353(0x206)](){const _0x20d58a=_0x535353;this[_0x20d58a(0x1f1)]['on'](_0x20d58a(0x1f2),()=>{const _0x56d9eb=_0x20d58a;this[_0x56d9eb(0x21a)](_0x56d9eb(0x1f2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42c0fb=_0x45c9;(function(_0x147394,_0x324bdf){const _0x21204f=_0x45c9,_0x55a283=_0x147394();while(!![]){try{const _0x30ccfb=parseInt(_0x21204f(0x1fa))/0x1+-parseInt(_0x21204f(0x1f6))/0x2*(-parseInt(_0x21204f(0x1fb))/0x3)+parseInt(_0x21204f(0x1ee))/0x4*(-parseInt(_0x21204f(0x1ff))/0x5)+-parseInt(_0x21204f(0x1fd))/0x6+-parseInt(_0x21204f(0x202))/0x7*(-parseInt(_0x21204f(0x205))/0x8)+parseInt(_0x21204f(0x203))/0x9+parseInt(_0x21204f(0x207))/0xa*(-parseInt(_0x21204f(0x204))/0xb);if(_0x30ccfb===_0x324bdf)break;else _0x55a283['push'](_0x55a283['shift']());}catch(_0x40ec27){_0x55a283['push'](_0x55a283['shift']());}}}(_0xece6,0x79d11));import{Command as _0x3d7af5}from'ckeditor5/src/core.js';import{Dialog as _0x419270}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x80b5b6}from'./ui/uploadcareimageeditcontroller.js';function _0xece6(){const _0x33e8b0=['refresh','12644jJrHlj','unbind','isActive','imageInline','480750hcKTnh','354MVLCov','execute','3279042wJEhHi','model','429915scHFpA','document','imageBlock','2002DzzRoi','922914ZfOxua','18777JTxfnL','25872Qxgggk','isEnabled','5570cXDIzB','config','getSelectedElement','plugins','imageEditController','editor','get','element','12LlEWzj','selection','uploadcare.allowExternalImagesEditing','set','_isEditable','bind','requires'];_0xece6=function(){return _0x33e8b0;};return _0xece6();}import{createEditabilityChecker as _0x3022a3}from'../utils/editingutils.js';function _0x45c9(_0x4b671d,_0x4e9c0e){const _0xece604=_0xece6();return _0x45c9=function(_0x45c922,_0x5bf596){_0x45c922=_0x45c922-0x1e7;let _0x35b207=_0xece604[_0x45c922];return _0x35b207;},_0x45c9(_0x4b671d,_0x4e9c0e);}export class UploadcareImageEditCommand extends _0x3d7af5{[_0x42c0fb(0x1ea)];static get[_0x42c0fb(0x1f4)](){return[_0x419270];}[_0x42c0fb(0x1f2)];constructor(_0x55c87d){const _0x25a978=_0x42c0fb;super(_0x55c87d),this[_0x25a978(0x1ea)]=void 0x0,this[_0x25a978(0x1f2)]=_0x3022a3(_0x55c87d[_0x25a978(0x1e7)][_0x25a978(0x1ec)](_0x25a978(0x1f0))||[]),this[_0x25a978(0x1f1)]({'isActive':!0x1});}[_0x42c0fb(0x1f5)](){const _0x31033f=_0x42c0fb,_0x562ab8=this[_0x31033f(0x1eb)][_0x31033f(0x1fe)][_0x31033f(0x200)][_0x31033f(0x1ef)][_0x31033f(0x1e8)]();this[_0x31033f(0x206)]=this[_0x31033f(0x1f2)](_0x562ab8);}[_0x42c0fb(0x1fc)](){const _0x391f10=_0x42c0fb;this[_0x391f10(0x1ea)]&&(this[_0x391f10(0x1f7)](_0x391f10(0x1f8)),this[_0x391f10(0x1ea)]=void 0x0);const _0x269413=this[_0x391f10(0x1eb)][_0x391f10(0x1fe)][_0x391f10(0x200)][_0x391f10(0x1ef)][_0x391f10(0x1e8)]();_0x269413&&(_0x269413['is'](_0x391f10(0x1ed),_0x391f10(0x201))||_0x269413['is'](_0x391f10(0x1ed),_0x391f10(0x1f9)))&&(this[_0x391f10(0x1ea)]=new _0x80b5b6(this[_0x391f10(0x1eb)],this[_0x391f10(0x1eb)][_0x391f10(0x1e9)][_0x391f10(0x1ec)](_0x419270),_0x269413),this[_0x391f10(0x1f3)](_0x391f10(0x1f8))['to'](this[_0x391f10(0x1ea)],_0x391f10(0x1f8)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1cf0(_0x34d846,_0x182190){const _0x3981a6=_0x3981();return _0x1cf0=function(_0x1cf0f5,_0x3d0378){_0x1cf0f5=_0x1cf0f5-0x11d;let _0x1b0b5e=_0x3981a6[_0x1cf0f5];return _0x1b0b5e;},_0x1cf0(_0x34d846,_0x182190);}const _0x4d42a9=_0x1cf0;(function(_0x22371b,_0x4d11d9){const _0x2f00d9=_0x1cf0,_0x55839a=_0x22371b();while(!![]){try{const _0x5ec82a=-parseInt(_0x2f00d9(0x11f))/0x1+-parseInt(_0x2f00d9(0x126))/0x2+-parseInt(_0x2f00d9(0x124))/0x3+-parseInt(_0x2f00d9(0x127))/0x4*(parseInt(_0x2f00d9(0x12f))/0x5)+parseInt(_0x2f00d9(0x132))/0x6*(parseInt(_0x2f00d9(0x123))/0x7)+parseInt(_0x2f00d9(0x12d))/0x8*(-parseInt(_0x2f00d9(0x121))/0x9)+-parseInt(_0x2f00d9(0x122))/0xa*(-parseInt(_0x2f00d9(0x11d))/0xb);if(_0x5ec82a===_0x4d11d9)break;else _0x55839a['push'](_0x55839a['shift']());}catch(_0x238d37){_0x55839a['push'](_0x55839a['shift']());}}}(_0x3981,0xead6e));import{Plugin as _0x2f9e1b}from'ckeditor5/src/core.js';import{Notification as _0x3a1c76}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3ada5c}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4270ec}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xb27429}from'../uploadcareediting.js';function _0x3981(){const _0x3bbf3c=['uploadcareImageEdit','344372PUdkLY','813476sMNMRD','init','isOfficialPlugin','add','UploadcareImageEditEditing','ImageUtils','8sjEVNw','commands','20uJKhhG','uploadcareImageReplace','isPremiumPlugin','282nKnZzr','pluginName','11rPTlsM','requires','421063WxDrMf','ImageEditing','4609242iVcVOG','17328430BQavtC','241143mMhdNT','1413543LrBnKq'];_0x3981=function(){return _0x3bbf3c;};return _0x3981();}export class UploadcareImageEditEditing extends _0x2f9e1b{static get[_0x4d42a9(0x133)](){const _0x213aa9=_0x4d42a9;return _0x213aa9(0x12b);}static get[_0x4d42a9(0x11e)](){const _0x25b5ba=_0x4d42a9;return[_0xb27429,_0x3a1c76,_0x25b5ba(0x12c),_0x25b5ba(0x120)];}static get[_0x4d42a9(0x129)](){return!0x0;}static get[_0x4d42a9(0x131)](){return!0x0;}[_0x4d42a9(0x128)](){const _0x211a72=_0x4d42a9,{editor:_0x308ca1}=this;_0x308ca1[_0x211a72(0x12e)][_0x211a72(0x12a)](_0x211a72(0x125),new _0x3ada5c(_0x308ca1)),_0x308ca1[_0x211a72(0x12e)][_0x211a72(0x12a)](_0x211a72(0x130),new _0x4270ec(_0x308ca1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x294755}from'ckeditor5/src/core.js';import{ButtonView as _0x4796a6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3a7b6e}from'ckeditor5/src/icons.js';import{createElement as _0x3f2824}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x294755{['_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 _0x200423=this['editor'];_0x200423['ui']['componentFactory']['add']('uploadcareImageEdit',_0xb15d30=>{const _0x6b4378=_0x200423['commands']['get']('uploadcareImageEdit'),_0x2315d1=new _0x4796a6(_0xb15d30),t=_0xb15d30['t'];return _0x2315d1['set']({'icon':_0x3a7b6e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2315d1['bind']('isEnabled')['to'](_0x6b4378),_0x2315d1['bind']('isOn')['to'](_0x6b4378,'isActive'),this['listenTo'](_0x2315d1,'execute',()=>{_0x200423['execute']('uploadcareImageEdit'),_0x200423['editing']['view']['focus']();}),_0x2315d1;}),this['_initConfig']();}['_initConfig'](){const _0x528ba0=_0x3f2824(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x528ba0),this['listenTo'](this['editor'],'destroy',()=>{_0x528ba0['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10e630=_0x13d6;function _0x35c9(){const _0x4ee6be=['refresh','removeAttribute','isEnabled','change','1020336TioNrx','setAttributes','selection','srcset','model','10UqjpRs','element','editor','getSelectedElement','sizes','38102800bGnsPW','execute','imageBlock','document','41809sgStEX','imageInline','200890agdIdW','6831891Wglxto','6292860MoPTrM','140IWiRVu','7MwpYlo','7089736cFTAMg'];_0x35c9=function(){return _0x4ee6be;};return _0x35c9();}(function(_0x441b8f,_0x28fdda){const _0x720ccd=_0x13d6,_0x46f191=_0x441b8f();while(!![]){try{const _0x1cce75=-parseInt(_0x720ccd(0x1ce))/0x1*(parseInt(_0x720ccd(0x1df))/0x2)+-parseInt(_0x720ccd(0x1da))/0x3+parseInt(_0x720ccd(0x1d3))/0x4*(-parseInt(_0x720ccd(0x1d0))/0x5)+-parseInt(_0x720ccd(0x1d2))/0x6+-parseInt(_0x720ccd(0x1d4))/0x7*(-parseInt(_0x720ccd(0x1d5))/0x8)+-parseInt(_0x720ccd(0x1d1))/0x9+parseInt(_0x720ccd(0x1ca))/0xa;if(_0x1cce75===_0x28fdda)break;else _0x46f191['push'](_0x46f191['shift']());}catch(_0x564f1c){_0x46f191['push'](_0x46f191['shift']());}}}(_0x35c9,0xe3d51));function _0x13d6(_0x9d7049,_0x5c3811){const _0x35c936=_0x35c9();return _0x13d6=function(_0x13d6e2,_0x4e2fae){_0x13d6e2=_0x13d6e2-0x1ca;let _0x2dda9a=_0x35c936[_0x13d6e2];return _0x2dda9a;},_0x13d6(_0x9d7049,_0x5c3811);}import{Command as _0x2adf10}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2adf10{[_0x10e630(0x1d6)](){const _0x485dd9=_0x10e630,_0x376f75=this[_0x485dd9(0x1e1)][_0x485dd9(0x1de)][_0x485dd9(0x1cd)][_0x485dd9(0x1dc)][_0x485dd9(0x1e2)]();this[_0x485dd9(0x1d8)]=Boolean(_0x376f75&&(_0x376f75['is'](_0x485dd9(0x1e0),_0x485dd9(0x1cc))||_0x376f75['is'](_0x485dd9(0x1e0),_0x485dd9(0x1cf))));}[_0x10e630(0x1cb)](_0xe6be16){const _0x335ed2=_0x10e630,_0x3b079b=this[_0x335ed2(0x1e1)][_0x335ed2(0x1de)][_0x335ed2(0x1cd)][_0x335ed2(0x1dc)][_0x335ed2(0x1e2)]();this[_0x335ed2(0x1e1)][_0x335ed2(0x1de)][_0x335ed2(0x1d9)](_0x3b7dc0=>{const _0x429c50=_0x335ed2;_0x3b7dc0[_0x429c50(0x1db)](_0xe6be16,_0x3b079b),_0x3b7dc0[_0x429c50(0x1d7)](_0x429c50(0x1dd),_0x3b079b),_0x3b7dc0[_0x429c50(0x1d7)](_0x429c50(0x1e3),_0x3b079b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xd0f8(){var _0x56be94=['141078nVECUX','4556043ckldgA','16PJQttg','1885424pFYrgU','pluginName','12802059YLayUD','isOfficialPlugin','550tBChqE','isPremiumPlugin','168134VJhCUz','35wJEqLx','35dYFkVt','UploadcareImageEdit','729010EZnMqp','requires','1019284FhmeFs'];_0xd0f8=function(){return _0x56be94;};return _0xd0f8();}function _0x38fb(_0x4abbbc,_0x1a7e05){var _0xd0f8ad=_0xd0f8();return _0x38fb=function(_0x38fb14,_0x499502){_0x38fb14=_0x38fb14-0xf1;var _0xdfe3f8=_0xd0f8ad[_0x38fb14];return _0xdfe3f8;},_0x38fb(_0x4abbbc,_0x1a7e05);}var _0x3357f2=_0x38fb;(function(_0x404129,_0x32c73e){var _0x5aa3ba=_0x38fb,_0x3c093f=_0x404129();while(!![]){try{var _0x5d6cc0=parseInt(_0x5aa3ba(0xfe))/0x1*(-parseInt(_0x5aa3ba(0xf7))/0x2)+parseInt(_0x5aa3ba(0xf6))/0x3+-parseInt(_0x5aa3ba(0xf4))/0x4+-parseInt(_0x5aa3ba(0x100))/0x5*(parseInt(_0x5aa3ba(0xf5))/0x6)+-parseInt(_0x5aa3ba(0xff))/0x7*(parseInt(_0x5aa3ba(0xf8))/0x8)+-parseInt(_0x5aa3ba(0xfa))/0x9+-parseInt(_0x5aa3ba(0xf2))/0xa*(-parseInt(_0x5aa3ba(0xfc))/0xb);if(_0x5d6cc0===_0x32c73e)break;else _0x3c093f['push'](_0x3c093f['shift']());}catch(_0x5c0dab){_0x3c093f['push'](_0x3c093f['shift']());}}}(_0xd0f8,0xc2ec6));import{Plugin as _0x13e28b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x536e33}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2c1971}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x13e28b{static get[_0x3357f2(0xf9)](){var _0x1dd3ba=_0x3357f2;return _0x1dd3ba(0xf1);}static get[_0x3357f2(0xf3)](){return[_0x536e33,_0x2c1971];}static get[_0x3357f2(0xfb)](){return!0x0;}static get[_0x3357f2(0xfd)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5564f2=_0x3293;(function(_0x9f3e41,_0x20cb51){const _0x70384f=_0x3293,_0xcbbeed=_0x9f3e41();while(!![]){try{const _0x398435=parseInt(_0x70384f(0x222))/0x1+parseInt(_0x70384f(0x1fd))/0x2*(-parseInt(_0x70384f(0x230))/0x3)+parseInt(_0x70384f(0x200))/0x4*(-parseInt(_0x70384f(0x232))/0x5)+parseInt(_0x70384f(0x209))/0x6*(parseInt(_0x70384f(0x242))/0x7)+-parseInt(_0x70384f(0x211))/0x8*(-parseInt(_0x70384f(0x21b))/0x9)+-parseInt(_0x70384f(0x1f9))/0xa+parseInt(_0x70384f(0x238))/0xb;if(_0x398435===_0x20cb51)break;else _0xcbbeed['push'](_0xcbbeed['shift']());}catch(_0x542532){_0xcbbeed['push'](_0xcbbeed['shift']());}}}(_0x20b8,0x90acb));import{Plugin as _0x2d413e}from'ckeditor5/src/core.js';import{IconDropbox as _0x24b98b,IconFacebook as _0x1dc139,IconGoogleDrive as _0x43fe9a,IconGooglePhotos as _0x43cd19,IconUploadcareImageUpload as _0x4a6b8f,IconUploadcareLink as _0x5cfff2,IconOneDrive as _0x195291}from'ckeditor5/src/icons.js';import{ButtonView as _0x39ad8f,MenuBarMenuListItemButtonView as _0x25fa95}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4ef738}from'./uploadcareconfig.js';function _0x3293(_0xc26069,_0x117717){const _0x20b851=_0x20b8();return _0x3293=function(_0x329381,_0x38b3d6){_0x329381=_0x329381-0x1f3;let _0x5796bc=_0x20b851[_0x329381];return _0x5796bc;},_0x3293(_0xc26069,_0x117717);}import{getTranslation as _0x1bfa72}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x20b8(){const _0x43c81e=['uploadcareLicenseKeyNotAllowed','commands','6QqMxYo','UploadcareUI','pluginName','uploadcare','featureNotAllowed','uploadcareLicenseKeyUsageLimit','Insert','isOfficialPlugin','12176VzwhXd','Dropbox','reduce','OneDrive','Uploadcare','uploadcareLicenseKeyEvaluationLimit','withText','_createDropdownButtons','uploadcareLicenseKeyExpired','type','738pwwDRa','tooltip','Replace','entries','afterInit','invalid','_licenseKeyCheckInterval','762242ehZyiw','_createToolbarButton','uploadcareLicenseKeyInvalid','url','uploadcareLicenseKeyValid','isImageSelected','get','uploadcare.uploader.sourceList','label','expired','plugins','GDrive','map','forEach','321dNbLjs','registerIntegration','4395daIGoL','evaluationLimit','shortText','has','usageLimit','Local','5199601DWzbrj','execute','domainLimit','licenseKey','ImageInsertUI','text','assetManager','isPremiumPlugin','_createMenuBarButtons','_getIntegrationKey','7308455REpNeu','locale','config','isEnabled','Facebook','URL','_normalizeConfigSourceList','icon','bind','10323020rehoGy','upload','editor','push','6032GbaElO','init','destroy','2076xptUfb','GPhotos','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyDomainLimit','trialLimit','_createButton','_showLicenseError'];_0x20b8=function(){return _0x43c81e;};return _0x20b8();}export class UploadcareUI extends _0x2d413e{[_0x5564f2(0x23b)];[_0x5564f2(0x221)];static get[_0x5564f2(0x20b)](){const _0x48d301=_0x5564f2;return _0x48d301(0x20a);}static get[_0x5564f2(0x210)](){return!0x0;}static get[_0x5564f2(0x23f)](){return!0x0;}[_0x5564f2(0x1fe)](){const _0x2561a8=_0x5564f2;this[_0x2561a8(0x23b)]=this[_0x2561a8(0x1fb)][_0x2561a8(0x244)][_0x2561a8(0x228)](_0x2561a8(0x23b));const _0x450f86=this[_0x2561a8(0x1fb)];this[_0x2561a8(0x221)]=setInterval(()=>{const _0x1950a5=_0x2561a8;let _0x314dd8;for(const _0xd4d813 in _0x450f86){const _0x584c91=_0xd4d813,_0x32ed32=_0x450f86[_0x584c91];if(_0x1950a5(0x226)==_0x32ed32||_0x1950a5(0x224)==_0x32ed32||_0x1950a5(0x219)==_0x32ed32||_0x1950a5(0x203)==_0x32ed32||_0x1950a5(0x207)==_0x32ed32||_0x1950a5(0x216)==_0x32ed32||_0x1950a5(0x202)==_0x32ed32||_0x1950a5(0x20e)==_0x32ed32){delete _0x450f86[_0x584c91],_0x314dd8=_0x32ed32,clearInterval(this[_0x1950a5(0x221)]),this[_0x1950a5(0x221)]=void 0x0;break;}}_0x1950a5(0x224)==_0x314dd8&&_0x450f86[_0x1950a5(0x206)](_0x1950a5(0x220)),_0x1950a5(0x219)==_0x314dd8&&_0x450f86[_0x1950a5(0x206)](_0x1950a5(0x22b)),_0x1950a5(0x203)==_0x314dd8&&_0x450f86[_0x1950a5(0x206)](_0x1950a5(0x23a)),_0x1950a5(0x207)==_0x314dd8&&_0x450f86[_0x1950a5(0x206)](_0x1950a5(0x20d),_0x1950a5(0x215)),_0x1950a5(0x216)==_0x314dd8&&_0x450f86[_0x1950a5(0x206)](_0x1950a5(0x233)),_0x1950a5(0x202)==_0x314dd8&&_0x450f86[_0x1950a5(0x206)](_0x1950a5(0x204)),_0x1950a5(0x20e)==_0x314dd8&&_0x450f86[_0x1950a5(0x206)](_0x1950a5(0x236));},0x3e8);}[_0x5564f2(0x21f)](){const _0x2dbf3f=_0x5564f2,{editor:_0x1500f6}=this,_0x51bb97=_0x1500f6[_0x2dbf3f(0x208)][_0x2dbf3f(0x228)](_0x2dbf3f(0x20c));if(!_0x51bb97)return;const _0x59f7db=this[_0x2dbf3f(0x1f6)](_0x1500f6[_0x2dbf3f(0x244)][_0x2dbf3f(0x228)](_0x2dbf3f(0x229)))[_0x2dbf3f(0x213)]((_0x163434,_0x2fe24f)=>{const _0x2948cf=_0x2dbf3f,_0x2855a3=this[_0x2948cf(0x241)](_0x2fe24f[_0x2948cf(0x21a)]);return _0x163434[_0x2855a3]||(_0x163434[_0x2855a3]=[]),_0x163434[_0x2855a3][_0x2948cf(0x1fc)](_0x2fe24f),_0x163434;},{});_0x1500f6[_0x2dbf3f(0x22c)][_0x2dbf3f(0x235)](_0x2dbf3f(0x23c))&&_0x1500f6[_0x2dbf3f(0x208)][_0x2dbf3f(0x228)](_0x2dbf3f(0x20c))&&Object[_0x2dbf3f(0x21e)](_0x59f7db)[_0x2dbf3f(0x22f)](([_0x2d599d,_0x215f86])=>{const _0x573961=_0x2dbf3f;_0x1500f6[_0x573961(0x22c)][_0x573961(0x228)](_0x573961(0x23c))[_0x573961(0x231)]({'name':_0x2d599d,'observable':()=>_0x51bb97,'buttonViewCreator':()=>this[_0x573961(0x223)](_0x215f86),'formViewCreator':()=>this[_0x573961(0x218)](_0x215f86),'menuBarButtonViewCreator':()=>this[_0x573961(0x240)](_0x215f86),'override':_0x573961(0x23e)!==_0x2d599d});});}[_0x5564f2(0x1ff)](){const _0x226932=_0x5564f2;super[_0x226932(0x1ff)](),this[_0x226932(0x221)]&&clearInterval(this[_0x226932(0x221)]);}[_0x5564f2(0x1f6)](_0x520748){const _0x54aabc=_0x5564f2,{locale:_0xdabdee}=this[_0x54aabc(0x1fb)];return _0x520748[_0x54aabc(0x22e)](_0x12a161=>{const _0x30d094=_0x54aabc,_0x43a290=_0x1bfa72(_0xdabdee,_0x12a161,_0x30d094(0x20f));switch(_0x12a161){case _0x4ef738[_0x30d094(0x237)]:return{'icon':_0x4a6b8f,'type':_0x4ef738[_0x30d094(0x237)],..._0x43a290};case _0x4ef738[_0x30d094(0x1f5)]:return{'icon':_0x5cfff2,'type':_0x4ef738[_0x30d094(0x1f5)],..._0x43a290};case _0x4ef738[_0x30d094(0x212)]:return{'icon':_0x24b98b,'type':_0x4ef738[_0x30d094(0x212)],..._0x43a290};case _0x4ef738[_0x30d094(0x1f4)]:return{'icon':_0x1dc139,'type':_0x4ef738[_0x30d094(0x1f4)],..._0x43a290};case _0x4ef738[_0x30d094(0x22d)]:return{'icon':_0x43fe9a,'type':_0x4ef738[_0x30d094(0x22d)],..._0x43a290};case _0x4ef738[_0x30d094(0x201)]:return{'icon':_0x43cd19,'type':_0x4ef738[_0x30d094(0x201)],..._0x43a290};case _0x4ef738[_0x30d094(0x214)]:return{'icon':_0x195291,'type':_0x4ef738[_0x30d094(0x214)],..._0x43a290};}});}[_0x5564f2(0x241)](_0x3e6a65){const _0x3a152e=_0x5564f2;switch(_0x3e6a65){case _0x4ef738[_0x3a152e(0x237)]:return _0x3a152e(0x1fa);case _0x4ef738[_0x3a152e(0x1f5)]:return _0x3a152e(0x225);default:return _0x3a152e(0x23e);}}[_0x5564f2(0x205)](_0x4c7876,_0x1a9b5a){const _0x2b1f77=_0x5564f2,_0x1c06ce=this[_0x2b1f77(0x1fb)],_0x44e748=new _0x4c7876(_0x1c06ce[_0x2b1f77(0x243)]),_0x499bbc=_0x1c06ce[_0x2b1f77(0x208)][_0x2b1f77(0x228)](_0x2b1f77(0x20c));return _0x44e748[_0x2b1f77(0x1f8)](_0x2b1f77(0x1f3))['to'](_0x499bbc),_0x44e748['on'](_0x2b1f77(0x239),()=>{const _0x38f27e=_0x2b1f77;_0x499bbc[_0x38f27e(0x239)](_0x1a9b5a);}),_0x44e748;}[_0x5564f2(0x223)](_0x5d5e40){const _0x52347a=_0x5564f2,{locale:_0x50fe21}=this[_0x52347a(0x1fb)],_0x26e5c5=this[_0x52347a(0x1fb)][_0x52347a(0x22c)][_0x52347a(0x228)](_0x52347a(0x23c)),_0x27715e=_0x5d5e40[0x0],_0x15c467=this[_0x52347a(0x205)](_0x39ad8f,_0x27715e[_0x52347a(0x21a)]);return _0x15c467[_0x52347a(0x1f7)]=_0x27715e[_0x52347a(0x1f7)],_0x15c467[_0x52347a(0x1f8)](_0x52347a(0x22a))['to'](_0x26e5c5,_0x52347a(0x227),_0x9ed8f7=>_0x1bfa72(_0x50fe21,_0x27715e[_0x52347a(0x21a)],_0x9ed8f7?_0x52347a(0x21d):_0x52347a(0x20f))[_0x52347a(0x23d)]),_0x15c467[_0x52347a(0x21c)]=!0x0,_0x15c467;}[_0x5564f2(0x218)](_0x168c93){const _0x1dfdf8=_0x5564f2,{locale:_0x1caa9c}=this[_0x1dfdf8(0x1fb)],_0x2e2f09=this[_0x1dfdf8(0x1fb)][_0x1dfdf8(0x22c)][_0x1dfdf8(0x228)](_0x1dfdf8(0x23c));return _0x168c93[_0x1dfdf8(0x22e)](_0xf8dc1c=>{const _0x4dcce2=_0x1dfdf8,_0x354ffc=this[_0x4dcce2(0x205)](_0x39ad8f,_0xf8dc1c[_0x4dcce2(0x21a)]);return _0x354ffc[_0x4dcce2(0x217)]=!0x0,_0x354ffc[_0x4dcce2(0x1f7)]=_0xf8dc1c[_0x4dcce2(0x1f7)],_0x354ffc[_0x4dcce2(0x1f8)](_0x4dcce2(0x22a))['to'](_0x2e2f09,_0x4dcce2(0x227),_0x2f5baa=>_0x1bfa72(_0x1caa9c,_0xf8dc1c[_0x4dcce2(0x21a)],_0x2f5baa?_0x4dcce2(0x21d):_0x4dcce2(0x20f))[_0x4dcce2(0x23d)]),_0x354ffc;});}[_0x5564f2(0x240)](_0xcacedd){const _0x4e4a3b=_0x5564f2;return _0xcacedd[_0x4e4a3b(0x22e)](_0x35bcb8=>{const _0x4a0d4d=_0x4e4a3b,_0x181b8b=this[_0x4a0d4d(0x205)](_0x25fa95,_0x35bcb8[_0x4a0d4d(0x21a)]);return _0x181b8b[_0x4a0d4d(0x1f7)]=_0x35bcb8[_0x4a0d4d(0x1f7)],_0x181b8b[_0x4a0d4d(0x22a)]=_0x35bcb8[_0x4a0d4d(0x234)],_0x181b8b;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1361ac}from'ckeditor5/src/core.js';import{FileRepository as _0x5879f3}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x17ad27}from'./uploadcareediting.js';import{UploadUtils as _0x248203}from'./utils/uploadutils.js';import{getImageUrls as _0x343f33}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1361ac{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5879f3,_0x17ad27];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x51c3b5=this['editor'];if(!!!_0x51c3b5['config']['get']('uploadcare'))return;_0x51c3b5['plugins']['get'](_0x5879f3)['createUploadAdapter']=_0x2db760=>new k(_0x2db760,_0x51c3b5),_0x51c3b5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x574843,{imageElement:_0x1c9698,data:_0xed89cd})=>{_0x51c3b5['model']['change'](_0x367941=>{_0x367941['setAttribute']('uploadcareImageId',_0xed89cd['uploadcareImageId'],_0x1c9698);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2c625b,_0x1cc5bf){this['loader']=_0x2c625b,this['editor']=_0x1cc5bf,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x517ab5=await this['loader']['file'];return _0x248203['upload']({'file':_0x517ab5,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x215bb8=>{_0x215bb8&&_0x215bb8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x215bb8['value']);}})['then'](async _0x5198cc=>{const {imageFallbackUrl:_0x3017f4,imageSources:_0x58a821}=_0x343f33(_0x5198cc['cdnUrl'],_0x5198cc['imageInfo']['width']);return{'uploadcareImageId':_0x5198cc['uuid'],'default':_0x3017f4,'sources':_0x58a821};})['catch'](()=>{const _0x38893e=t('Cannot\x20upload\x20file:')+('\x20'+_0x517ab5['name']+'.');return Promise['reject'](_0x38893e);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x222365}from'../uploadcareconfig.js';export function getTranslation(_0x2ed796,_0x5110ea,_0x3d13cd){const t=_0x2ed796['t'],_0x3493a7=_0x2ed796['t'];switch(_0x5110ea){case _0x222365['Local']:return{'text':_0x3493a7('Insert'===_0x3d13cd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3493a7('From\x20computer')};case _0x222365['URL']:return{'text':'Insert'===_0x3d13cd?_0x3493a7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3493a7('Via\x20URL')};case _0x222365['Dropbox']:return{'text':t('Insert'===_0x3d13cd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x222365['Facebook']:return{'text':t('Insert'===_0x3d13cd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x222365['GDrive']:return{'text':t('Insert'===_0x3d13cd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x222365['GPhotos']:return{'text':t('Insert'===_0x3d13cd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x222365['OneDrive']:return{'text':t('Insert'===_0x3d13cd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5110ea;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xf835(_0xc5eb79,_0x4ffd1b){var _0x4745a1=_0x4745();return _0xf835=function(_0xf835f7,_0x415acc){_0xf835f7=_0xf835f7-0xb4;var _0x34946f=_0x4745a1[_0xf835f7];return _0x34946f;},_0xf835(_0xc5eb79,_0x4ffd1b);}var _0x2ad200=_0xf835;(function(_0x2274c1,_0x237537){var _0x104989=_0xf835,_0x28c1ab=_0x2274c1();while(!![]){try{var _0x1f75be=parseInt(_0x104989(0xbc))/0x1+parseInt(_0x104989(0xb5))/0x2+-parseInt(_0x104989(0xb4))/0x3+parseInt(_0x104989(0xbb))/0x4+parseInt(_0x104989(0xc4))/0x5*(-parseInt(_0x104989(0xb6))/0x6)+-parseInt(_0x104989(0xbe))/0x7*(parseInt(_0x104989(0xb8))/0x8)+parseInt(_0x104989(0xc1))/0x9;if(_0x1f75be===_0x237537)break;else _0x28c1ab['push'](_0x28c1ab['shift']());}catch(_0x36f4f9){_0x28c1ab['push'](_0x28c1ab['shift']());}}}(_0x4745,0xad4d3));import{FocusTracker as _0x412c56}from'ckeditor5/src/utils.js';import{View as _0x16ec24,FocusCycler as _0x4270d6}from'ckeditor5/src/ui.js';function _0x4745(){var _0x42db77=['fire','8KoUGrs','createCollection','focusTracker','853944bdRfbe','305163FxOLGX','focusCycler','3732995gotCvt','true','forwardCycle','16956072iLBTzE','div','getFocusableElement','3538445mNuuAE','bindTemplate','2813373FUXplQ','971902IPXxqP','6wHiYls'];_0x4745=function(){return _0x42db77;};return _0x4745();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x16ec24{[_0x2ad200(0xba)];[_0x2ad200(0xbd)];constructor(_0x523897){var _0x3c48fe=_0x2ad200;super(_0x523897),this[_0x3c48fe(0xba)]=new _0x412c56(),this[_0x3c48fe(0xbd)]=new _0x4270d6({'focusables':this[_0x3c48fe(0xb9)](),'focusTracker':this[_0x3c48fe(0xba)]});}[_0x2ad200(0xc3)](){var _0x21ff91=_0x2ad200;return{'tag':_0x21ff91(0xc2),'attributes':{'aria-hidden':_0x21ff91(0xbf),'tabindex':'0'},'on':{'focus':this[_0x21ff91(0xc5)]['to'](()=>{var _0x27a815=_0x21ff91;this[_0x27a815(0xbd)][_0x27a815(0xb7)](_0x27a815(0xc0));})}};}}
|