@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250926.0 → 0.0.0-nightly-20250928.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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 _0x27a8ba=_0x1796;(function(_0x302a53,_0x4c5467){const _0x302f8b=_0x1796,_0x3b1161=_0x302a53();while(!![]){try{const _0x5992d3=parseInt(_0x302f8b(0xf6))/0x1+parseInt(_0x302f8b(0xee))/0x2+-parseInt(_0x302f8b(0x100))/0x3*(parseInt(_0x302f8b(0x119))/0x4)+parseInt(_0x302f8b(0xe4))/0x5*(-parseInt(_0x302f8b(0x135))/0x6)+parseInt(_0x302f8b(0xf9))/0x7+parseInt(_0x302f8b(0xe2))/0x8+-parseInt(_0x302f8b(0xf8))/0x9;if(_0x5992d3===_0x4c5467)break;else _0x3b1161['push'](_0x3b1161['shift']());}catch(_0xee2f5){_0x3b1161['push'](_0x3b1161['shift']());}}}(_0x5b86,0x62026));import{Plugin as _0x104b3d}from'ckeditor5/src/core.js';import{Dialog as _0x13f858}from'ckeditor5/src/ui.js';function _0x1796(_0x177f41,_0x484893){const _0x5b86d1=_0x5b86();return _0x1796=function(_0x1796a3,_0x479960){_0x1796a3=_0x1796a3-0xe2;let _0x1f3652=_0x5b86d1[_0x1796a3];return _0x1f3652;},_0x1796(_0x177f41,_0x484893);}function _0x5b86(){const _0x2913bc=['remove','removeAttribute','_configElement','uploader-','imageInline','ctxElement','editing','uc-upload-ctx-provider','uploadcare','1270730FtWTEK','schema','\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','render','config','imageBlock','uploadcareImageId','getAttribute','347365rLqSqE','PictureEditing','10711557eCjWIm','4387726YRcSgu','true','input[uploadcare-file-input]','uploadcare.pubkey','view','body','conversion','1249485KDKiIk','downcast','uploadcare.uploader','data-uc-image-id','_initConversion','_initSchema','_initImageProcessingIndicator','upcast','#uc-icon-arrow-down','_initCtx','_initConfig','extend','editor','isPremiumPlugin','requires','closeMax','contentLanguage','get','afterInit','selection','execute','uc-config','destroy','configElement','locale','4tMnbEX','model','replaceImageSource','init','ucContextId','map','document','commands','cleanupImage','_ctxElement','join','href','isOfficialPlugin','pluginName','fromCharCode','elementToAttribute','UploadcareEditing','uploadcareImageReplace','listenTo','for','add','querySelector','isRegistered','attributeToAttribute','insertImage','appendChild','once','getSelectedElement','36aaPlZQ','3436256hqCujN','iconHrefResolver','25805dtpOmC'];_0x5b86=function(){return _0x2913bc;};return _0x5b86();}import{createElement as _0x1eea02,global as _0x4884ca,uid as _0x452e90}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x57cd3a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4fb8c0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x46b6db}from'./utils/editingutils.js';export class UploadcareEditing extends _0x104b3d{[_0x27a8ba(0xe7)]=null;[_0x27a8ba(0x122)]=null;static get[_0x27a8ba(0x126)](){const _0x198bad=_0x27a8ba;return _0x198bad(0x129);}static get[_0x27a8ba(0x10e)](){const _0x4a8298=_0x27a8ba;return[_0x4a8298(0xf7),_0x4fb8c0,_0x13f858];}static get[_0x27a8ba(0x125)](){return!0x0;}static get[_0x27a8ba(0x10d)](){return!0x0;}[_0x27a8ba(0x11d)];get[_0x27a8ba(0x117)](){const _0x441cec=_0x27a8ba;return this[_0x441cec(0xe7)];}get[_0x27a8ba(0xea)](){const _0x4aaa9d=_0x27a8ba;return this[_0x4aaa9d(0x122)];}constructor(_0x467adf){const _0x5a4a95=_0x27a8ba;super(_0x467adf),this[_0x5a4a95(0x11d)]=_0x452e90();}[_0x27a8ba(0x11c)](){const _0x1763fc=_0x27a8ba,_0x491013=this[_0x1763fc(0x10c)];_0x491013[_0x1763fc(0x120)][_0x1763fc(0x12d)](_0x1763fc(0xed),new _0x57cd3a(_0x491013));}[_0x27a8ba(0x112)](){const _0x10c01e=_0x27a8ba;this[_0x10c01e(0x105)](),this[_0x10c01e(0x104)](),this[_0x10c01e(0x10a)](),this[_0x10c01e(0x109)](),this[_0x10c01e(0x106)](),this[_0x10c01e(0x12b)](this[_0x10c01e(0x10c)],_0x10c01e(0x116),()=>{const _0x161797=_0x10c01e;this[_0x161797(0xe7)]&&(this[_0x161797(0xe7)][_0x161797(0xe5)](),this[_0x161797(0xe7)]=null),this[_0x161797(0x122)]&&(this[_0x161797(0x122)][_0x161797(0xe5)](),this[_0x161797(0x122)]=null);const _0x52d9f0=_0x4884ca[_0x161797(0x11f)][_0x161797(0x12e)](_0x161797(0xfb));_0x52d9f0&&_0x52d9f0[_0x161797(0xe5)]();}),async function(_0x392d7b){const _0x5d4b71=_0x460bd6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5541cc=0x3d8d0df,_0x53428d=0x3dfa4a7^_0x5541cc,_0x3e34ee=window[_0x460bd6([0x44,0x61,0x74,0x65])][_0x460bd6([0x6e,0x6f,0x77])](),_0x56b7df=_0x392d7b[_0x460bd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfe5831=new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372243=>{_0x56b7df[_0x460bd6([0x6f,0x6e,0x63,0x65])](_0x460bd6([0x72,0x65,0x61,0x64,0x79]),_0x372243);}),_0x1bcac1={[_0x460bd6([0x6b,0x74,0x79])]:_0x460bd6([0x45,0x43]),[_0x460bd6([0x75,0x73,0x65])]:_0x460bd6([0x73,0x69,0x67]),[_0x460bd6([0x63,0x72,0x76])]:_0x460bd6([0x50,0x2d,0x32,0x35,0x36]),[_0x460bd6([0x78])]:_0x460bd6([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]),[_0x460bd6([0x79])]:_0x460bd6([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]),[_0x460bd6([0x61,0x6c,0x67])]:_0x460bd6([0x45,0x53,0x32,0x35,0x36])},_0x612a4f=_0x56b7df[_0x460bd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x460bd6([0x67,0x65,0x74])](_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bfbd5(){let _0x3ee9a5,_0x117e89=null,_0x4aedb2=null;try{if(_0x612a4f==_0x460bd6([0x47,0x50,0x4c]))return _0x460bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ee9a5=_0x1bb226(),!_0x3ee9a5)return _0x460bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ee9a5[_0x460bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4aedb2=_0x273084(_0x3ee9a5[_0x460bd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ee9a5[_0x460bd6([0x6a,0x74,0x69])])),await _0x4f6b81()?_0x580407()?_0x542b8b()?_0x460bd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33c7ef()?(_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x460bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x117e89=_0x4c217b(_0x460bd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x460bd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x117e89=_0x4c217b(_0x460bd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54dc84()):_0x460bd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x460bd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x460bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x460bd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x542b8b(){const _0x40f66f=[_0x460bd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x460bd6([0x74,0x72,0x69,0x61,0x6c])][_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e34ee/0x3e8:0xe10*_0x53428d;return _0x3ee9a5[_0x460bd6([0x65,0x78,0x70])]<_0x40f66f;}function _0x580407(){const _0x49d1ab=_0x3ee9a5[_0x460bd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49d1ab&&(!!_0x49d1ab[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460bd6([0x2a]))||!!_0x49d1ab[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460bd6([0x55,0x50,0x4c,0x43])));}function _0x33c7ef(){const _0xccf7c3=_0x1796,_0x45c173=_0x3ee9a5[_0x460bd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45c173||0x0==_0x45c173[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d88b2}=new URL(window[_0x460bd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xccf7c3(0x124)]);if(_0x45c173[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d88b2))return!0x0;const _0x193667=_0x5d88b2[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e]));return _0x45c173[_0x460bd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x591ef7=>_0x591ef7[_0x460bd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460bd6([0x2a])))[_0x460bd6([0x6d,0x61,0x70])](_0x515b76=>_0x515b76[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e])))[_0x460bd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55b4ca=>_0x55b4ca[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x193667[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x460bd6([0x6d,0x61,0x70])](_0x5f202d=>Array(_0x193667[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f202d[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x460bd6([0x66,0x69,0x6c,0x6c])](_0x5f202d[0x0]===_0x460bd6([0x2a])?_0x460bd6([0x2a]):'')[_0x460bd6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f202d))[_0x460bd6([0x73,0x6f,0x6d,0x65])](_0x51c6ed=>_0x193667[_0x460bd6([0x65,0x76,0x65,0x72,0x79])]((_0x43cf2f,_0x16e096)=>_0x51c6ed[_0x16e096]===_0x43cf2f||_0x51c6ed[_0x16e096]===_0x460bd6([0x2a])));}function _0x54dc84(){return _0x117e89&&_0x4aedb2?new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e0fa8,_0x11014a)=>{_0x117e89[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x5e0fa8,_0x11014a),_0x4aedb2[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x4eb97b=>{_0x4eb97b!=_0x460bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x5e0fa8(_0x4eb97b);},_0x11014a);}):_0x117e89||_0x4aedb2||_0x460bd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x273084(_0x50b939,_0x22850c){return new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17891d=>{if(_0x45ec4f())return _0x17891d(_0x460bd6([0x56,0x61,0x6c,0x69,0x64]));_0x3790d6(),_0x56b7df[_0x460bd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x460bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d71f7=!0x1;const _0x2c96ea=_0x452e90();function _0x9e8922(_0x57762a){return!!_0x57762a&&(typeof _0x57762a===_0x460bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57762a===_0x460bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57762a[_0x460bd6([0x74,0x68,0x65,0x6e])]===_0x460bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57762a[_0x460bd6([0x63,0x61,0x74,0x63,0x68])]===_0x460bd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e0c7f(_0x339cf9){_0x144c03(_0x339cf9)[_0x460bd6([0x74,0x68,0x65,0x6e])](_0xc1a27=>{if(!_0xc1a27||_0xc1a27[_0x460bd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x460bd6([0x6f,0x6b]))return _0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e3da1(_0x4d4d77(_0x2c96ea+_0x22850c))!=_0xc1a27[_0x460bd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x460bd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x1ef6d4=>(_0x40c81a(),_0x1ef6d4),()=>{const _0x3b35f2=_0x12c507();return null==_0x3b35f2?(_0x40c81a(),_0x460bd6([0x56,0x61,0x6c,0x69,0x64])):_0x460bd6(_0x3e34ee-_0x3b35f2>(0x27d454df^_0x5541cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x17891d)[_0x460bd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17891d(_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27803d=0x3ee3e5f^_0x5541cc;function _0x40c81a(){const _0x310a99=_0x460bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3da1(_0x4d4d77(_0x50b939)),_0x24a5fc=_0x5109ba(_0x4e3da1(window[_0x460bd6([0x4d,0x61,0x74,0x68])][_0x460bd6([0x63,0x65,0x69,0x6c])](_0x3e34ee/_0x27803d)));window[_0x460bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x460bd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x310a99,_0x24a5fc);}function _0x12c507(){const _0x26b0b5=_0x460bd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3da1(_0x4d4d77(_0x50b939)),_0x540f38=window[_0x460bd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x460bd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26b0b5);return _0x540f38?window[_0x460bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5109ba(_0x540f38),0x10)*_0x27803d:null;}function _0x144c03(_0x1e89ef){return new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37d450,_0x49568c)=>{_0x1e89ef[_0x460bd6([0x74,0x68,0x65,0x6e])](_0x37d450,_0x49568c),window[_0x460bd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49568c,0x3d9041f^_0x5541cc);});}}_0x56b7df[_0x460bd6([0x6f,0x6e])](_0x460bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfe2392,_0x4e592b)=>{if(_0x4e592b[0x0]!=_0x50b939)return _0x17891d(_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e592b[0x1]={..._0x4e592b[0x1],[_0x460bd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c96ea};},{[_0x460bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x460bd6([0x68,0x69,0x67,0x68])}),_0x56b7df[_0x460bd6([0x6f,0x6e])](_0x460bd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x271027=>{_0x9e8922(_0x271027[_0x460bd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d71f7=!0x0,_0x2e0c7f(_0x271027[_0x460bd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x460bd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x460bd6([0x6c,0x6f,0x77])}),_0xfe5831[_0x460bd6([0x74,0x68,0x65,0x6e])](()=>{_0x2d71f7||_0x17891d(_0x460bd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45ec4f(){return _0x56b7df[_0x460bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x460bd6([0x76,0x69,0x65,0x77])][_0x460bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x460bd6([0x61,0x75,0x74,0x6f]);}function _0x3790d6(){_0x56b7df[_0x460bd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x460bd6([0x76,0x69,0x65,0x77])][_0x460bd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x460bd6([0x61,0x75,0x74,0x6f]);}}function _0x4c217b(_0x2c48aa){const _0x440632=[new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c662f=>setTimeout(_0x1c662f,0x3d1ee13^_0x5541cc)),_0xfe5831[_0x460bd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b2b20=>{let _0x2cc87f=0x0;_0x56b7df[_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x460bd6([0x6f,0x6e])](_0x460bd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4101d8,_0x11d956)=>{_0x11d956[0x0][_0x460bd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2cc87f++,_0x2cc87f==(0x3d8d127^_0x5541cc)&&(_0x4b2b20(),_0x4101d8[_0x460bd6([0x6f,0x66,0x66])]());});}))];return window[_0x460bd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x460bd6([0x72,0x61,0x63,0x65])](_0x440632)[_0x460bd6([0x74,0x68,0x65,0x6e])](()=>_0x2c48aa);}async function _0x58b3f2(){await _0xfe5831,_0x56b7df[_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x460bd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ec7d8,_0x56b7df[_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x460bd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ec7d8,_0x56b7df[_0x460bd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x460bd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59ea30(_0x2a5936){const _0xc33989=_0x2c45db();_0x56b7df[_0xc33989]=_0x460bd6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a5936,_0x2a5936!=_0x460bd6([0x56,0x61,0x6c,0x69,0x64])&&_0x58b3f2();}function _0x2c45db(){const _0x299ab0=window[_0x460bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x460bd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x460bd6([0x6e,0x6f,0x77])]())[_0x460bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x460bd6([0x2e]),'');let _0xe35f26=_0x460bd6([0x52]);for(let _0x3f026c=0x0;_0x3f026c<_0x299ab0[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f026c+=0x2){let _0xbc13a3=window[_0x460bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x299ab0[_0x460bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f026c,_0x3f026c+0x2));_0xbc13a3>=_0x5d4b71[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbc13a3-=_0x5d4b71[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe35f26+=_0x5d4b71[_0xbc13a3];}return _0xe35f26;}function _0x1bb226(){const _0x3288bc=_0x612a4f[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e]));if(0x3!=_0x3288bc[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b3577(_0x3288bc[0x1]);function _0x1b3577(_0x4dc3ec){const _0x57f143=_0x1ab173(_0x4dc3ec);return _0x57f143&&_0x3ddd14()?_0x57f143:null;function _0x3ddd14(){const _0x40d94c=_0x57f143[_0x460bd6([0x6a,0x74,0x69])],_0x253700=window[_0x460bd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40d94c[_0x460bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40d94c[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf8f4f={..._0x57f143,[_0x460bd6([0x6a,0x74,0x69])]:_0x40d94c[_0x460bd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40d94c[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf8f4f[_0x460bd6([0x76,0x63])],_0x4d4d77(_0xf8f4f)==_0x253700;}}}async function _0x4f6b81(){let _0x23caaa=!0x0;try{const _0x22499b=_0x612a4f[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])](_0x460bd6([0x2e])),[_0x53beaa,_0x3a9b8c,_0x5d826b]=_0x22499b;return _0x46d82a(_0x53beaa),await _0x23d08a(_0x53beaa,_0x3a9b8c,_0x5d826b),_0x23caaa;}catch{return!0x1;}function _0x46d82a(_0x3cba59){const _0x55aed2=_0x1ab173(_0x3cba59);_0x55aed2&&_0x55aed2[_0x460bd6([0x61,0x6c,0x67])]==_0x460bd6([0x45,0x53,0x32,0x35,0x36])||(_0x23caaa=!0x1);}async function _0x23d08a(_0x5cb670,_0x128472,_0x5c60c5){const _0x151f3f=window[_0x460bd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x460bd6([0x66,0x72,0x6f,0x6d])](_0x1c7dc2(_0x5c60c5),_0x217a87=>_0x217a87[_0x460bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2552fb=new window[(_0x460bd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x460bd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cb670+_0x460bd6([0x2e])+_0x128472),_0x5a54ce=window[_0x460bd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x460bd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a54ce)return;const _0x417027=await _0x5a54ce[_0x460bd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x460bd6([0x6a,0x77,0x6b]),_0x1bcac1,{[_0x460bd6([0x6e,0x61,0x6d,0x65])]:_0x460bd6([0x45,0x43,0x44,0x53,0x41]),[_0x460bd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x460bd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x460bd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a54ce[_0x460bd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x460bd6([0x6e,0x61,0x6d,0x65])]:_0x460bd6([0x45,0x43,0x44,0x53,0x41]),[_0x460bd6([0x68,0x61,0x73,0x68])]:{[_0x460bd6([0x6e,0x61,0x6d,0x65])]:_0x460bd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x417027,_0x151f3f,_0x2552fb)||(_0x23caaa=!0x1);}}function _0x1ab173(_0xb54b2f){return _0xb54b2f[_0x460bd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x460bd6([0x65,0x79]))?JSON[_0x460bd6([0x70,0x61,0x72,0x73,0x65])](_0x1c7dc2(_0xb54b2f)):null;}function _0x1c7dc2(_0x8834db){return window[_0x460bd6([0x61,0x74,0x6f,0x62])](_0x8834db[_0x460bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x460bd6([0x2b]))[_0x460bd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x460bd6([0x2f])));}function _0x4d4d77(_0x2f9faa){let _0x3271bf=0x1505;function _0x1b9555(_0x31f6e4){for(let _0x571aba=0x0;_0x571aba<_0x31f6e4[_0x460bd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x571aba++){const _0x13c446=_0x31f6e4[_0x460bd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x571aba);_0x3271bf=(_0x3271bf<<0x5)+_0x3271bf+_0x13c446,_0x3271bf&=_0x3271bf;}}function _0x2ddf1e(_0xe67e12){Array[_0x460bd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe67e12)?_0xe67e12[_0x460bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ddf1e):_0xe67e12&&typeof _0xe67e12==_0x460bd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x460bd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe67e12)[_0x460bd6([0x73,0x6f,0x72,0x74])]()[_0x460bd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5dcb5d,_0x25b8d6])=>{_0x1b9555(_0x5dcb5d),_0x2ddf1e(_0x25b8d6);}):_0x1b9555(window[_0x460bd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe67e12));}return _0x2ddf1e(_0x2f9faa),_0x3271bf>>>0x0;}function _0x4e3da1(_0x150166){return _0x150166[_0x460bd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x460bd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x460bd6([0x30]));}function _0x5109ba(_0xb4a42c){return _0xb4a42c[_0x460bd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x460bd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x460bd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ec7d8(){}function _0x460bd6(_0x504ad9){const _0x4989cb=_0x1796;return _0x504ad9[_0x4989cb(0x11e)](_0x397336=>String[_0x4989cb(0x127)](_0x397336))[_0x4989cb(0x123)]('');}_0x59ea30(await _0x2bfbd5());}(this);}[_0x27a8ba(0x105)](){const _0x55ca38=_0x27a8ba,_0x44444a=this[_0x55ca38(0x10c)][_0x55ca38(0x11a)][_0x55ca38(0xef)];_0x44444a[_0x55ca38(0x12f)](_0x55ca38(0xf3))&&_0x44444a[_0x55ca38(0x10b)](_0x55ca38(0xf3),{'allowAttributes':[_0x55ca38(0xf4)]}),_0x44444a[_0x55ca38(0x12f)](_0x55ca38(0xe9))&&_0x44444a[_0x55ca38(0x10b)](_0x55ca38(0xe9),{'allowAttributes':[_0x55ca38(0xf4)]});}[_0x27a8ba(0x104)](){const _0x112334=_0x27a8ba,_0x3e436e=this[_0x112334(0x10c)];_0x3e436e[_0x112334(0xff)][_0x112334(0x12c)](_0x112334(0x101))[_0x112334(0x130)]({'model':_0x112334(0xf4),'view':_0x112334(0x103)}),_0x3e436e[_0x112334(0xff)][_0x112334(0x12c)](_0x112334(0x107))[_0x112334(0x128)]({'model':{'key':_0x112334(0xf4),'value':_0x1f2552=>_0x1f2552[_0x112334(0xf5)](_0x112334(0x103))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x488df8=_0x3e436e[_0x112334(0x120)][_0x112334(0x111)](_0x112334(0x11b));_0x488df8&&this[_0x112334(0x12b)](_0x488df8,_0x112334(0x121),(_0x3148d5,[_0x58efbc,_0x1ce089])=>{const _0x5e936d=_0x112334;_0x58efbc[_0x5e936d(0xe6)](_0x5e936d(0xf4),_0x1ce089);});}[_0x27a8ba(0x10a)](){const _0x12fcb4=_0x27a8ba,_0x2ffa37=this[_0x12fcb4(0x10c)][_0x12fcb4(0xf2)][_0x12fcb4(0x111)](_0x12fcb4(0x102))||{},_0x425a08=this[_0x12fcb4(0x10c)][_0x12fcb4(0xf2)][_0x12fcb4(0x111)](_0x12fcb4(0xfc))||'';this[_0x12fcb4(0xe7)]=_0x1eea02(_0x4884ca[_0x12fcb4(0x11f)],_0x12fcb4(0x115),{..._0x2ffa37,'pubkey':_0x425a08,'ctx-name':_0x12fcb4(0xe8)+this[_0x12fcb4(0x11d)],'sourceList':'','imgOnly':_0x12fcb4(0xfa),'removeCopyright':_0x12fcb4(0xfa),'localeName':this[_0x12fcb4(0x10c)][_0x12fcb4(0x118)][_0x12fcb4(0x110)],'externalSourcesEmbedCss':_0x12fcb4(0xf0)}),this[_0x12fcb4(0xe7)][_0x12fcb4(0xe3)]=_0x5c2e51=>{const _0x192c26=_0x12fcb4;if(_0x192c26(0x10f)==_0x5c2e51)return _0x192c26(0x108);},_0x4884ca[_0x12fcb4(0x11f)][_0x12fcb4(0xfe)][_0x12fcb4(0x132)](this[_0x12fcb4(0xe7)]);}[_0x27a8ba(0x109)](){const _0x398d0a=_0x27a8ba;this[_0x398d0a(0x122)]=_0x1eea02(_0x4884ca[_0x398d0a(0x11f)],_0x398d0a(0xec),{'ctx-name':_0x398d0a(0xe8)+this[_0x398d0a(0x11d)]}),_0x4884ca[_0x398d0a(0x11f)][_0x398d0a(0xfe)][_0x398d0a(0x132)](this[_0x398d0a(0x122)]);}[_0x27a8ba(0x106)](){const _0x5e5d3a=_0x27a8ba,_0x23387b=this[_0x5e5d3a(0x10c)][_0x5e5d3a(0x120)][_0x5e5d3a(0x111)](_0x5e5d3a(0x131));_0x23387b&&this[_0x5e5d3a(0x12b)](_0x23387b,_0x5e5d3a(0x114),()=>{const _0x25ddfd=_0x5e5d3a,_0x3b2ee6=this[_0x25ddfd(0x10c)][_0x25ddfd(0x11a)][_0x25ddfd(0x11f)][_0x25ddfd(0x113)][_0x25ddfd(0x134)]();_0x3b2ee6&&_0x3b2ee6[_0x25ddfd(0xf5)](_0x25ddfd(0xf4))&&this[_0x25ddfd(0x10c)][_0x25ddfd(0xeb)][_0x25ddfd(0xfd)][_0x25ddfd(0x133)](_0x25ddfd(0xf1),()=>{const _0x42b1d7=_0x25ddfd;_0x46b6db(this[_0x42b1d7(0x10c)],_0x3b2ee6);});});const _0x4348de=this[_0x5e5d3a(0x10c)][_0x5e5d3a(0x120)][_0x5e5d3a(0x111)](_0x5e5d3a(0x12a));_0x4348de&&this[_0x5e5d3a(0x12b)](_0x4348de,_0x5e5d3a(0x114),()=>{const _0x37a56c=_0x5e5d3a,_0xee3853=this[_0x37a56c(0x10c)][_0x37a56c(0x11a)][_0x37a56c(0x11f)][_0x37a56c(0x113)][_0x37a56c(0x134)]();_0xee3853&&_0xee3853[_0x37a56c(0xf5)](_0x37a56c(0xf4))&&this[_0x37a56c(0x10c)][_0x37a56c(0xeb)][_0x37a56c(0xfd)][_0x37a56c(0x133)](_0x37a56c(0xf1),()=>{const _0x258db4=_0x37a56c;_0x46b6db(this[_0x258db4(0x10c)],_0xee3853);});});}}
|
|
23
|
+
const _0x4c54d5=_0x5bbf;(function(_0x2006ab,_0x127d69){const _0x26de2a=_0x5bbf,_0x33adf1=_0x2006ab();while(!![]){try{const _0xdb02dc=parseInt(_0x26de2a(0x174))/0x1+-parseInt(_0x26de2a(0x183))/0x2+parseInt(_0x26de2a(0x165))/0x3*(-parseInt(_0x26de2a(0x18a))/0x4)+-parseInt(_0x26de2a(0x19e))/0x5*(-parseInt(_0x26de2a(0x155))/0x6)+-parseInt(_0x26de2a(0x191))/0x7*(parseInt(_0x26de2a(0x175))/0x8)+-parseInt(_0x26de2a(0x17e))/0x9*(-parseInt(_0x26de2a(0x168))/0xa)+parseInt(_0x26de2a(0x186))/0xb;if(_0xdb02dc===_0x127d69)break;else _0x33adf1['push'](_0x33adf1['shift']());}catch(_0x28f7d0){_0x33adf1['push'](_0x33adf1['shift']());}}}(_0xa05f,0x2a3dc));import{Plugin as _0x31ed95}from'ckeditor5/src/core.js';import{Dialog as _0x3657a5}from'ckeditor5/src/ui.js';import{createElement as _0x4d67be,global as _0x146ed4,uid as _0x175381}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x192129}from'./uploadcarecommand.js';function _0x5bbf(_0x564c65,_0x57365e){const _0xa05f56=_0xa05f();return _0x5bbf=function(_0x5bbf58,_0x10dde1){_0x5bbf58=_0x5bbf58-0x149;let _0x530772=_0xa05f56[_0x5bbf58];return _0x530772;},_0x5bbf(_0x564c65,_0x57365e);}function _0xa05f(){const _0x35b0f8=['uploadcare.pubkey','get','_initCtx','selection','_initSchema','extend','input[uploadcare-file-input]','cleanupImage','fromCharCode','uploadcareImageReplace','306777pGQdBi','insertImage','UploadcareEditing','83220TRiPCk','pluginName','uploadcareImageId','schema','querySelector','uploadcare.uploader','execute','body','uc-upload-ctx-provider','isPremiumPlugin','appendChild','for','197703jqwMos','79448JthZlY','isRegistered','config','join','model','getAttribute','PictureEditing','\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','configElement','90UMYPrA','commands','href','editing','imageBlock','276602MKVbxO','document','once','5875738mGjpbJ','#uc-icon-arrow-down','data-uc-image-id','add','12JBqrTm','render','downcast','elementToAttribute','closeMax','_initConversion','listenTo','175SqKtGc','requires','destroy','conversion','view','uploader-','remove','removeAttribute','replaceImageSource','uploadcare','imageInline','editor','attributeToAttribute','10RCDnMc','isOfficialPlugin','map','uc-config','ucContextId','upcast','_initConfig','_configElement','iconHrefResolver','contentLanguage','_ctxElement','init','_initImageProcessingIndicator','153876aiJxmH','true','locale','ctxElement','afterInit','getSelectedElement'];_0xa05f=function(){return _0x35b0f8;};return _0xa05f();}import{UploadcareUploadAdapter as _0x51484e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x552595}from'./utils/editingutils.js';export class UploadcareEditing extends _0x31ed95{[_0x4c54d5(0x14f)]=null;[_0x4c54d5(0x152)]=null;static get[_0x4c54d5(0x169)](){const _0x454f18=_0x4c54d5;return _0x454f18(0x167);}static get[_0x4c54d5(0x192)](){const _0x496e18=_0x4c54d5;return[_0x496e18(0x17b),_0x51484e,_0x3657a5];}static get[_0x4c54d5(0x149)](){return!0x0;}static get[_0x4c54d5(0x171)](){return!0x0;}[_0x4c54d5(0x14c)];get[_0x4c54d5(0x17d)](){const _0x2ffd88=_0x4c54d5;return this[_0x2ffd88(0x14f)];}get[_0x4c54d5(0x158)](){const _0x1fd421=_0x4c54d5;return this[_0x1fd421(0x152)];}constructor(_0x3c0e3e){const _0x152b53=_0x4c54d5;super(_0x3c0e3e),this[_0x152b53(0x14c)]=_0x175381();}[_0x4c54d5(0x153)](){const _0x1b8872=_0x4c54d5,_0x52d311=this[_0x1b8872(0x19c)];_0x52d311[_0x1b8872(0x17f)][_0x1b8872(0x189)](_0x1b8872(0x19a),new _0x192129(_0x52d311));}[_0x4c54d5(0x159)](){const _0x31d378=_0x4c54d5;this[_0x31d378(0x15f)](),this[_0x31d378(0x18f)](),this[_0x31d378(0x14e)](),this[_0x31d378(0x15d)](),this[_0x31d378(0x154)](),this[_0x31d378(0x190)](this[_0x31d378(0x19c)],_0x31d378(0x193),()=>{const _0x4e967d=_0x31d378;this[_0x4e967d(0x14f)]&&(this[_0x4e967d(0x14f)][_0x4e967d(0x197)](),this[_0x4e967d(0x14f)]=null),this[_0x4e967d(0x152)]&&(this[_0x4e967d(0x152)][_0x4e967d(0x197)](),this[_0x4e967d(0x152)]=null);const _0x560647=_0x146ed4[_0x4e967d(0x184)][_0x4e967d(0x16c)](_0x4e967d(0x161));_0x560647&&_0x560647[_0x4e967d(0x197)]();}),async function(_0x137291){const _0x2a3fdb=_0x3625a4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2fb1ef=0x3d8d0df,_0x5e0721=0x3dfa477^_0x2fb1ef,_0x625213=window[_0x3625a4([0x44,0x61,0x74,0x65])][_0x3625a4([0x6e,0x6f,0x77])](),_0xaa2c19=_0x137291[_0x3625a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31f44d=new window[(_0x3625a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab919=>{_0xaa2c19[_0x3625a4([0x6f,0x6e,0x63,0x65])](_0x3625a4([0x72,0x65,0x61,0x64,0x79]),_0x1ab919);}),_0x16eceb={[_0x3625a4([0x6b,0x74,0x79])]:_0x3625a4([0x45,0x43]),[_0x3625a4([0x75,0x73,0x65])]:_0x3625a4([0x73,0x69,0x67]),[_0x3625a4([0x63,0x72,0x76])]:_0x3625a4([0x50,0x2d,0x32,0x35,0x36]),[_0x3625a4([0x78])]:_0x3625a4([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]),[_0x3625a4([0x79])]:_0x3625a4([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]),[_0x3625a4([0x61,0x6c,0x67])]:_0x3625a4([0x45,0x53,0x32,0x35,0x36])},_0x465340=_0xaa2c19[_0x3625a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3625a4([0x67,0x65,0x74])](_0x3625a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e94d9(){let _0xbd0aa7,_0x583335=null,_0x3f5c24=null;try{if(_0x465340==_0x3625a4([0x47,0x50,0x4c]))return _0x3625a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbd0aa7=_0x5369da(),!_0xbd0aa7)return _0x3625a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbd0aa7[_0x3625a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f5c24=_0x247dbf(_0xbd0aa7[_0x3625a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbd0aa7[_0x3625a4([0x6a,0x74,0x69])])),await _0x8c13fb()?_0x270a8d()?_0x2bcf16()?_0x3625a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x532647()?(_0xbd0aa7[_0x3625a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3625a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x583335=_0x17c00e(_0x3625a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbd0aa7[_0x3625a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3625a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x583335=_0x17c00e(_0x3625a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12024d()):_0x3625a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3625a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3625a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3625a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bcf16(){const _0x3c5c52=[_0x3625a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3625a4([0x74,0x72,0x69,0x61,0x6c])][_0x3625a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbd0aa7[_0x3625a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x625213/0x3e8:0xe10*_0x5e0721;return _0xbd0aa7[_0x3625a4([0x65,0x78,0x70])]<_0x3c5c52;}function _0x270a8d(){const _0x1bb892=_0xbd0aa7[_0x3625a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1bb892&&(!!_0x1bb892[_0x3625a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3625a4([0x2a]))||!!_0x1bb892[_0x3625a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3625a4([0x55,0x50,0x4c,0x43])));}function _0x532647(){const _0x564b6e=_0x5bbf,_0x213b1a=_0xbd0aa7[_0x3625a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x213b1a||0x0==_0x213b1a[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f577f}=new URL(window[_0x3625a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x564b6e(0x180)]);if(_0x213b1a[_0x3625a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f577f))return!0x0;const _0x14ddef=_0x4f577f[_0x3625a4([0x73,0x70,0x6c,0x69,0x74])](_0x3625a4([0x2e]));return _0x213b1a[_0x3625a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3da9f1=>_0x3da9f1[_0x3625a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3625a4([0x2a])))[_0x3625a4([0x6d,0x61,0x70])](_0xcd2777=>_0xcd2777[_0x3625a4([0x73,0x70,0x6c,0x69,0x74])](_0x3625a4([0x2e])))[_0x3625a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a8ed9=>_0x3a8ed9[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14ddef[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3625a4([0x6d,0x61,0x70])](_0x13cae0=>Array(_0x14ddef[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13cae0[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3625a4([0x66,0x69,0x6c,0x6c])](_0x13cae0[0x0]===_0x3625a4([0x2a])?_0x3625a4([0x2a]):'')[_0x3625a4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13cae0))[_0x3625a4([0x73,0x6f,0x6d,0x65])](_0x2f49a1=>_0x14ddef[_0x3625a4([0x65,0x76,0x65,0x72,0x79])]((_0x58d305,_0x46c1a9)=>_0x2f49a1[_0x46c1a9]===_0x58d305||_0x2f49a1[_0x46c1a9]===_0x3625a4([0x2a])));}function _0x12024d(){return _0x583335&&_0x3f5c24?new window[(_0x3625a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f6656,_0x393f75)=>{_0x583335[_0x3625a4([0x74,0x68,0x65,0x6e])](_0x4f6656,_0x393f75),_0x3f5c24[_0x3625a4([0x74,0x68,0x65,0x6e])](_0x533c48=>{_0x533c48!=_0x3625a4([0x56,0x61,0x6c,0x69,0x64])&&_0x4f6656(_0x533c48);},_0x393f75);}):_0x583335||_0x3f5c24||_0x3625a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x247dbf(_0x247910,_0x325651){return new window[(_0x3625a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bdacc=>{if(_0x34c27e())return _0x5bdacc(_0x3625a4([0x56,0x61,0x6c,0x69,0x64]));_0x37ca79(),_0xaa2c19[_0x3625a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3625a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d25cc=!0x1;const _0x40200e=_0x175381();function _0x46a5aa(_0x9d0935){return!!_0x9d0935&&(typeof _0x9d0935===_0x3625a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9d0935===_0x3625a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9d0935[_0x3625a4([0x74,0x68,0x65,0x6e])]===_0x3625a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9d0935[_0x3625a4([0x63,0x61,0x74,0x63,0x68])]===_0x3625a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1073e4(_0x18da22){_0x1b2556(_0x18da22)[_0x3625a4([0x74,0x68,0x65,0x6e])](_0xb93b43=>{if(!_0xb93b43||_0xb93b43[_0x3625a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3625a4([0x6f,0x6b]))return _0x3625a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e17a3(_0x1e4bed(_0x40200e+_0x325651))!=_0xb93b43[_0x3625a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3625a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3625a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x3625a4([0x74,0x68,0x65,0x6e])](_0x557998=>(_0x332210(),_0x557998),()=>{const _0x1ab6f5=_0x3b7b4c();return null==_0x1ab6f5?(_0x332210(),_0x3625a4([0x56,0x61,0x6c,0x69,0x64])):_0x3625a4(_0x625213-_0x1ab6f5>(0x27d454df^_0x2fb1ef)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3625a4([0x74,0x68,0x65,0x6e])](_0x5bdacc)[_0x3625a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5bdacc(_0x3625a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x263d77=0x3ee3e5f^_0x2fb1ef;function _0x332210(){const _0x50aab2=_0x3625a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e17a3(_0x1e4bed(_0x247910)),_0x2695bb=_0x1ddbcd(_0x2e17a3(window[_0x3625a4([0x4d,0x61,0x74,0x68])][_0x3625a4([0x63,0x65,0x69,0x6c])](_0x625213/_0x263d77)));window[_0x3625a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3625a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50aab2,_0x2695bb);}function _0x3b7b4c(){const _0x33ef47=_0x3625a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e17a3(_0x1e4bed(_0x247910)),_0x3f5af6=window[_0x3625a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3625a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33ef47);return _0x3f5af6?window[_0x3625a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ddbcd(_0x3f5af6),0x10)*_0x263d77:null;}function _0x1b2556(_0x3fa2cf){return new window[(_0x3625a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b01b9,_0x14bf12)=>{_0x3fa2cf[_0x3625a4([0x74,0x68,0x65,0x6e])](_0x2b01b9,_0x14bf12),window[_0x3625a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14bf12,0x3d9041f^_0x2fb1ef);});}}_0xaa2c19[_0x3625a4([0x6f,0x6e])](_0x3625a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e4feb,_0x52bdce)=>{if(_0x52bdce[0x0]!=_0x247910)return _0x5bdacc(_0x3625a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52bdce[0x1]={..._0x52bdce[0x1],[_0x3625a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40200e};},{[_0x3625a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3625a4([0x68,0x69,0x67,0x68])}),_0xaa2c19[_0x3625a4([0x6f,0x6e])](_0x3625a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fccf0=>{_0x46a5aa(_0x2fccf0[_0x3625a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d25cc=!0x0,_0x1073e4(_0x2fccf0[_0x3625a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3625a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3625a4([0x6c,0x6f,0x77])}),_0x31f44d[_0x3625a4([0x74,0x68,0x65,0x6e])](()=>{_0x2d25cc||_0x5bdacc(_0x3625a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34c27e(){return _0xaa2c19[_0x3625a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3625a4([0x76,0x69,0x65,0x77])][_0x3625a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3625a4([0x61,0x75,0x74,0x6f]);}function _0x37ca79(){_0xaa2c19[_0x3625a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3625a4([0x76,0x69,0x65,0x77])][_0x3625a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3625a4([0x61,0x75,0x74,0x6f]);}}function _0x17c00e(_0x117231){const _0x545281=[new window[(_0x3625a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22c0b0=>setTimeout(_0x22c0b0,0x3d1ee13^_0x2fb1ef)),_0x31f44d[_0x3625a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3625a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a7243=>{let _0x156191=0x0;_0xaa2c19[_0x3625a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3625a4([0x6f,0x6e])](_0x3625a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ca96d,_0x206591)=>{_0x206591[0x0][_0x3625a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x156191++,_0x156191==(0x3d8d127^_0x2fb1ef)&&(_0x5a7243(),_0x1ca96d[_0x3625a4([0x6f,0x66,0x66])]());});}))];return window[_0x3625a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3625a4([0x72,0x61,0x63,0x65])](_0x545281)[_0x3625a4([0x74,0x68,0x65,0x6e])](()=>_0x117231);}async function _0x2a7cae(){await _0x31f44d,_0xaa2c19[_0x3625a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3625a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x488132,_0xaa2c19[_0x3625a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3625a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x488132,_0xaa2c19[_0x3625a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3625a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24899e(_0x49b7f3){const _0x1b2c66=_0x395730();_0xaa2c19[_0x1b2c66]=_0x3625a4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49b7f3,_0x49b7f3!=_0x3625a4([0x56,0x61,0x6c,0x69,0x64])&&_0x2a7cae();}function _0x395730(){const _0x4d0966=window[_0x3625a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3625a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3625a4([0x6e,0x6f,0x77])]())[_0x3625a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3625a4([0x2e]),'');let _0x423766=_0x3625a4([0x52]);for(let _0x3896a3=0x0;_0x3896a3<_0x4d0966[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3896a3+=0x2){let _0x1bd1db=window[_0x3625a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0966[_0x3625a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3896a3,_0x3896a3+0x2));_0x1bd1db>=_0x2a3fdb[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bd1db-=_0x2a3fdb[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x423766+=_0x2a3fdb[_0x1bd1db];}return _0x423766;}function _0x5369da(){const _0x2b4d77=_0x465340[_0x3625a4([0x73,0x70,0x6c,0x69,0x74])](_0x3625a4([0x2e]));if(0x3!=_0x2b4d77[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49096e(_0x2b4d77[0x1]);function _0x49096e(_0x512933){const _0x1b7b2e=_0x506594(_0x512933);return _0x1b7b2e&&_0x577957()?_0x1b7b2e:null;function _0x577957(){const _0x5b8f7e=_0x1b7b2e[_0x3625a4([0x6a,0x74,0x69])],_0x148c3c=window[_0x3625a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b8f7e[_0x3625a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b8f7e[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23b517={..._0x1b7b2e,[_0x3625a4([0x6a,0x74,0x69])]:_0x5b8f7e[_0x3625a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b8f7e[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23b517[_0x3625a4([0x76,0x63])],_0x1e4bed(_0x23b517)==_0x148c3c;}}}async function _0x8c13fb(){let _0xac3f8b=!0x0;try{const _0x7ac0c5=_0x465340[_0x3625a4([0x73,0x70,0x6c,0x69,0x74])](_0x3625a4([0x2e])),[_0x2796ca,_0x244985,_0x5d94f2]=_0x7ac0c5;return _0x115ffa(_0x2796ca),await _0x34dde3(_0x2796ca,_0x244985,_0x5d94f2),_0xac3f8b;}catch{return!0x1;}function _0x115ffa(_0x11b4fc){const _0x3cff3b=_0x506594(_0x11b4fc);_0x3cff3b&&_0x3cff3b[_0x3625a4([0x61,0x6c,0x67])]==_0x3625a4([0x45,0x53,0x32,0x35,0x36])||(_0xac3f8b=!0x1);}async function _0x34dde3(_0x5d1604,_0x5147fe,_0x44112d){const _0x2f2b09=window[_0x3625a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3625a4([0x66,0x72,0x6f,0x6d])](_0x4360b8(_0x44112d),_0x2a701e=>_0x2a701e[_0x3625a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a7a17=new window[(_0x3625a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3625a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d1604+_0x3625a4([0x2e])+_0x5147fe),_0x101322=window[_0x3625a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3625a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x101322)return;const _0x37a1bb=await _0x101322[_0x3625a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3625a4([0x6a,0x77,0x6b]),_0x16eceb,{[_0x3625a4([0x6e,0x61,0x6d,0x65])]:_0x3625a4([0x45,0x43,0x44,0x53,0x41]),[_0x3625a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3625a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3625a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x101322[_0x3625a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3625a4([0x6e,0x61,0x6d,0x65])]:_0x3625a4([0x45,0x43,0x44,0x53,0x41]),[_0x3625a4([0x68,0x61,0x73,0x68])]:{[_0x3625a4([0x6e,0x61,0x6d,0x65])]:_0x3625a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37a1bb,_0x2f2b09,_0x1a7a17)||(_0xac3f8b=!0x1);}}function _0x506594(_0x264871){return _0x264871[_0x3625a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3625a4([0x65,0x79]))?JSON[_0x3625a4([0x70,0x61,0x72,0x73,0x65])](_0x4360b8(_0x264871)):null;}function _0x4360b8(_0x4efbed){return window[_0x3625a4([0x61,0x74,0x6f,0x62])](_0x4efbed[_0x3625a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3625a4([0x2b]))[_0x3625a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3625a4([0x2f])));}function _0x1e4bed(_0x272749){let _0x503b8a=0x1505;function _0x4dc798(_0x474354){for(let _0x41af23=0x0;_0x41af23<_0x474354[_0x3625a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41af23++){const _0x5bd9f8=_0x474354[_0x3625a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41af23);_0x503b8a=(_0x503b8a<<0x5)+_0x503b8a+_0x5bd9f8,_0x503b8a&=_0x503b8a;}}function _0x48cd2b(_0x508477){Array[_0x3625a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x508477)?_0x508477[_0x3625a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48cd2b):_0x508477&&typeof _0x508477==_0x3625a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3625a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x508477)[_0x3625a4([0x73,0x6f,0x72,0x74])]()[_0x3625a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1aebd0,_0x3970ab])=>{_0x4dc798(_0x1aebd0),_0x48cd2b(_0x3970ab);}):_0x4dc798(window[_0x3625a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x508477));}return _0x48cd2b(_0x272749),_0x503b8a>>>0x0;}function _0x2e17a3(_0x2ab668){return _0x2ab668[_0x3625a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3625a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3625a4([0x30]));}function _0x1ddbcd(_0x5408cc){return _0x5408cc[_0x3625a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3625a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3625a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x488132(){}function _0x3625a4(_0x41d41d){const _0x58cb77=_0x5bbf;return _0x41d41d[_0x58cb77(0x14a)](_0x5b10fa=>String[_0x58cb77(0x163)](_0x5b10fa))[_0x58cb77(0x178)]('');}_0x24899e(await _0x5e94d9());}(this);}[_0x4c54d5(0x15f)](){const _0x4e998a=_0x4c54d5,_0x9eb016=this[_0x4e998a(0x19c)][_0x4e998a(0x179)][_0x4e998a(0x16b)];_0x9eb016[_0x4e998a(0x176)](_0x4e998a(0x182))&&_0x9eb016[_0x4e998a(0x160)](_0x4e998a(0x182),{'allowAttributes':[_0x4e998a(0x16a)]}),_0x9eb016[_0x4e998a(0x176)](_0x4e998a(0x19b))&&_0x9eb016[_0x4e998a(0x160)](_0x4e998a(0x19b),{'allowAttributes':[_0x4e998a(0x16a)]});}[_0x4c54d5(0x18f)](){const _0x37f13e=_0x4c54d5,_0x1fff77=this[_0x37f13e(0x19c)];_0x1fff77[_0x37f13e(0x194)][_0x37f13e(0x173)](_0x37f13e(0x18c))[_0x37f13e(0x19d)]({'model':_0x37f13e(0x16a),'view':_0x37f13e(0x188)}),_0x1fff77[_0x37f13e(0x194)][_0x37f13e(0x173)](_0x37f13e(0x14d))[_0x37f13e(0x18d)]({'model':{'key':_0x37f13e(0x16a),'value':_0x4b8a8e=>_0x4b8a8e[_0x37f13e(0x17a)](_0x37f13e(0x188))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ec58a=_0x1fff77[_0x37f13e(0x17f)][_0x37f13e(0x15c)](_0x37f13e(0x199));_0x5ec58a&&this[_0x37f13e(0x190)](_0x5ec58a,_0x37f13e(0x162),(_0x3a044d,[_0x4debd9,_0x57322b])=>{const _0x53050c=_0x37f13e;_0x4debd9[_0x53050c(0x198)](_0x53050c(0x16a),_0x57322b);});}[_0x4c54d5(0x14e)](){const _0x42977b=_0x4c54d5,_0x568ac5=this[_0x42977b(0x19c)][_0x42977b(0x177)][_0x42977b(0x15c)](_0x42977b(0x16d))||{},_0x4b488f=this[_0x42977b(0x19c)][_0x42977b(0x177)][_0x42977b(0x15c)](_0x42977b(0x15b))||'';this[_0x42977b(0x14f)]=_0x4d67be(_0x146ed4[_0x42977b(0x184)],_0x42977b(0x14b),{..._0x568ac5,'pubkey':_0x4b488f,'ctx-name':_0x42977b(0x196)+this[_0x42977b(0x14c)],'sourceList':'','imgOnly':_0x42977b(0x156),'removeCopyright':_0x42977b(0x156),'localeName':this[_0x42977b(0x19c)][_0x42977b(0x157)][_0x42977b(0x151)],'externalSourcesEmbedCss':_0x42977b(0x17c)}),this[_0x42977b(0x14f)][_0x42977b(0x150)]=_0x443ccc=>{const _0x73ea88=_0x42977b;if(_0x73ea88(0x18e)==_0x443ccc)return _0x73ea88(0x187);},_0x146ed4[_0x42977b(0x184)][_0x42977b(0x16f)][_0x42977b(0x172)](this[_0x42977b(0x14f)]);}[_0x4c54d5(0x15d)](){const _0x2768de=_0x4c54d5;this[_0x2768de(0x152)]=_0x4d67be(_0x146ed4[_0x2768de(0x184)],_0x2768de(0x170),{'ctx-name':_0x2768de(0x196)+this[_0x2768de(0x14c)]}),_0x146ed4[_0x2768de(0x184)][_0x2768de(0x16f)][_0x2768de(0x172)](this[_0x2768de(0x152)]);}[_0x4c54d5(0x154)](){const _0x55a648=_0x4c54d5,_0x201a24=this[_0x55a648(0x19c)][_0x55a648(0x17f)][_0x55a648(0x15c)](_0x55a648(0x166));_0x201a24&&this[_0x55a648(0x190)](_0x201a24,_0x55a648(0x16e),()=>{const _0x1bd723=_0x55a648,_0x242d0b=this[_0x1bd723(0x19c)][_0x1bd723(0x179)][_0x1bd723(0x184)][_0x1bd723(0x15e)][_0x1bd723(0x15a)]();_0x242d0b&&_0x242d0b[_0x1bd723(0x17a)](_0x1bd723(0x16a))&&this[_0x1bd723(0x19c)][_0x1bd723(0x181)][_0x1bd723(0x195)][_0x1bd723(0x185)](_0x1bd723(0x18b),()=>{const _0x453d44=_0x1bd723;_0x552595(this[_0x453d44(0x19c)],_0x242d0b);});});const _0x3b43ed=this[_0x55a648(0x19c)][_0x55a648(0x17f)][_0x55a648(0x15c)](_0x55a648(0x164));_0x3b43ed&&this[_0x55a648(0x190)](_0x3b43ed,_0x55a648(0x16e),()=>{const _0x1d4924=_0x55a648,_0x316f27=this[_0x1d4924(0x19c)][_0x1d4924(0x179)][_0x1d4924(0x184)][_0x1d4924(0x15e)][_0x1d4924(0x15a)]();_0x316f27&&_0x316f27[_0x1d4924(0x17a)](_0x1d4924(0x16a))&&this[_0x1d4924(0x19c)][_0x1d4924(0x181)][_0x1d4924(0x195)][_0x1d4924(0x185)](_0x1d4924(0x18b),()=>{const _0x45e9aa=_0x1d4924;_0x552595(this[_0x45e9aa(0x19c)],_0x316f27);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4bdae3,ObservableMixin as _0x5541ee}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4fd415}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x23dc02}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x28a192}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2c8401}from'../../utils/uploadutils.js';import{getImageUrls as _0x3fc3e9,getImageDimension as _0x567523}from'../../utils/editingutils.js';import{isAncestor as _0x47d090}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5541ee(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x347109,_0x4ff491,_0x45e304){super(),this['_editor']=_0x347109,this['_dialog']=_0x4ff491,this['_imageElement']=_0x45e304,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 _0xff21b1=this['_imageElement'],_0x2e032c=_0xff21b1['getAttribute']('uploadcareImageId'),_0x2e77fd=_0xff21b1['getAttribute']('src');if(_0x2e032c)await this['_loadImageInfo'](_0x2e032c,_0x2e77fd);else{if(this['_imageCache']['has'](_0x2e77fd)){const _0x17393e=this['_imageCache']['get'](_0x2e77fd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17393e['url'],this['imageDimension']=_0x17393e['dimension'],this['imageId']=_0x17393e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x409caf}=this['_editor'],t=_0x409caf['t'],_0x1f912a=new _0x28a192(_0x409caf,this['imageStatus'],this['_attributes']);_0x1f912a['bind']('status')['to'](this,'imageStatus'),_0x1f912a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1f912a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1f912a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1f912a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x23dc02,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1f912a,'position':_0x4fd415['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1f912a['focus']();},'onHide':()=>{_0x1f912a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19fe25=>!_0x47d090(_0x19fe25,_0x1f912a['element'])}});}['_loadImageInfo'](_0x76050b,_0x5aa9d0){return _0x2c8401['getInfo'](_0x76050b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4d88c6=>{const {width:_0x1a9cce,height:_0x373691}=_0x4d88c6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5aa9d0,this['imageDimension']={'width':_0x1a9cce,'height':_0x373691},this['imageId']=_0x76050b;})['catch'](_0x2082dc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2082dc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5d237b,_0x296753){return this['_getImageAsFile'](_0x5d237b)['then'](_0x2e3333=>_0x2c8401['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':_0x296753['signal'],'file':_0x2e3333,'onProgress':_0x48fbb7=>{_0x48fbb7&&_0x48fbb7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x48fbb7['value']));}}))['then'](_0x4c9073=>{const {width:_0x499ddb,height:_0xbc762d}=_0x4c9073['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c9073['cdnUrl'],this['imageDimension']={'width':_0x499ddb,'height':_0xbc762d},this['imageId']=_0x4c9073['uuid'],this['imageUploadProgress']=null;const _0x2d0507=_0x5d237b['getAttribute']('src');this['_imageCache']['set'](_0x2d0507,{'id':_0x4c9073['uuid'],'url':_0x4c9073['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x53fec3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x53fec3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2828fc,_0x2762e0){_0x2828fc['on']('apply',(_0x3e7003,_0x2fee58)=>{this['_replaceImage'](_0x2762e0,_0x2fee58['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2828fc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2828fc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2fc446,_0x324de0,_0x45bc76){const _0x137720=this['_editor'],{width:_0x569c12,height:_0xef8e87}=_0x567523(_0x324de0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x8b9553,imageSources:_0x5d9cc4}=_0x3fc3e9(_0x324de0,_0x569c12);_0x137720['model']['change'](_0x413b4b=>{if('$graveyard'===_0x2fc446['root']['rootName']){_0x137720['execute']('insertImage',{'imageType':_0x2fc446['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2fc446['getAttributes']()),'uploadcareImageId':_0x45bc76,'src':_0x8b9553,'sources':_0x5d9cc4,'width':_0x569c12,'height':_0xef8e87}});const _0x2f4239=_0x2fc446['getChildren']();_0x2fc446=_0x137720['model']['document']['selection']['getSelectedElement']();for(const _0x1461d3 of _0x2f4239)_0x413b4b['append'](_0x413b4b['cloneElement'](_0x1461d3),_0x2fc446);}else _0x413b4b['setSelection'](_0x2fc446,'on'),_0x137720['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2fc446['getAttributes']()),'uploadcareImageId':_0x45bc76,'src':_0x8b9553,'sources':_0x5d9cc4,'width':_0x569c12,'height':_0xef8e87},_0x2fc446);_0x413b4b['setSelection'](_0x2fc446,'on');});}async['_getImageAsFile'](_0x2f2e03){const _0x32b2ad=_0x4bdae3['window'],_0x2bb6b0=_0x4bdae3['document']['location']['href'],_0x114581=new _0x32b2ad['URL'](_0x2f2e03['getAttribute']('src'),_0x2bb6b0);if('data:'===_0x114581['protocol']){const _0x199751=_0x114581['href']['split'](','),_0x40aa03=_0x199751[0x0]['match'](/:(.*?);/)[0x1],_0x4014dc=_0x40aa03['split']('/')[0x1],_0x33590a=_0x32b2ad['atob'](_0x199751[_0x199751['length']-0x1]);let _0x2080ba=_0x33590a['length'];const _0x4b7fd9=new _0x32b2ad['Uint8Array'](_0x2080ba);for(;_0x2080ba--;)_0x4b7fd9[_0x2080ba]=_0x33590a['charCodeAt'](_0x2080ba);return new _0x32b2ad['File']([_0x4b7fd9],'image.'+_0x4014dc,{'type':_0x40aa03});}const _0x362c6e=_0x114581['href']['split']('/'),_0xa3ea6a=_0x362c6e[_0x362c6e['length']-0x1],_0x58448a=_0xa3ea6a['split']('.')[0x1];return _0x32b2ad['fetch'](_0x114581['href'])['then'](_0x24969c=>_0x24969c['clone']()['blob']())['then'](_0x3fcceb=>new _0x32b2ad['File']([_0x3fcceb],_0xa3ea6a,{'type':'image/'+_0x58448a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xaf0009,_0x1bde1a){const _0x32db18=_0x3c40,_0x36a829=_0xaf0009();while(!![]){try{const _0x5366d7=-parseInt(_0x32db18(0x1fc))/0x1+parseInt(_0x32db18(0x1f0))/0x2*(parseInt(_0x32db18(0x1f2))/0x3)+-parseInt(_0x32db18(0x1f8))/0x4*(parseInt(_0x32db18(0x1f1))/0x5)+parseInt(_0x32db18(0x200))/0x6*(-parseInt(_0x32db18(0x1fa))/0x7)+-parseInt(_0x32db18(0x1ff))/0x8+-parseInt(_0x32db18(0x1fb))/0x9+parseInt(_0x32db18(0x1f4))/0xa;if(_0x5366d7===_0x1bde1a)break;else _0x36a829['push'](_0x36a829['shift']());}catch(_0x180a12){_0x36a829['push'](_0x36a829['shift']());}}}(_0x8cf8,0x8f6bc));import{View as _0x1d099f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1d099f{constructor(_0xd6d5d0,_0x2f885f){const _0x36656b=_0x3c40;super(_0xd6d5d0);const _0x4f6818=this[_0x36656b(0x1f9)];this[_0x36656b(0x201)](_0x36656b(0x1f6),''),this[_0x36656b(0x1f3)]({'tag':_0x36656b(0x1f7),'attributes':{..._0x2f885f,'class':[_0x36656b(0x1fd),_0x36656b(0x1fe)],'ctx-name':_0x36656b(0x1f5),'cdn-url':_0x4f6818['to'](_0x36656b(0x1f6))}});}}function _0x3c40(_0x1875b1,_0x21997a){const _0x8cf848=_0x8cf8();return _0x3c40=function(_0x3c4039,_0x487d02){_0x3c4039=_0x3c4039-0x1f0;let _0x2e1483=_0x8cf848[_0x3c4039];return _0x2e1483;},_0x3c40(_0x1875b1,_0x21997a);}function _0x8cf8(){const _0x256131=['6148056jKjYbE','set','50ebLRTy','5cGuFIn','53283wSnrVJ','setTemplate','45918420rUOmjD','image-edit','imageSrc','uc-cloud-image-editor','2945244zWewvA','bindTemplate','7KzfXYw','7457427iyijaJ','1020174siyXOi','uc-light','ck-uploadcare-theme','6709208WZAdbt'];_0x8cf8=function(){return _0x256131;};return _0x8cf8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x10b498}from'ckeditor5/src/icons.js';import{ButtonView as _0x1c1bfa,IconView as _0x7ae0f1,View as _0x13eb6c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x13eb6c{constructor(_0x448948){super(_0x448948);const t=_0x448948['t'];this['set']('errorType',null);const _0x361d4c=new _0x1c1bfa(_0x448948);_0x361d4c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x361d4c['withText']=!0x0,_0x361d4c['class']='ck-button-action',_0x361d4c['on']('execute',()=>{this['fire']('retry');}),_0x361d4c['bind']('isVisible')['to'](this,'errorType',_0x740c0e=>'NotFound'!==_0x740c0e);const _0x5ede6f=new _0x7ae0f1();_0x5ede6f['content']=_0x10b498,_0x5ede6f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5f5318=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':[_0x5ede6f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5f5318['to']('errorType',_0x483cdf=>t('NotFound'!==_0x483cdf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x361d4c]},{'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 _0xd2b9c5,View as _0x277a9d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x277a9d{constructor(_0xa5f311){super(_0xa5f311);const t=_0xa5f311['t'],_0x597c21=this['bindTemplate'],_0x43b090=new _0xd2b9c5();_0x43b090['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':[_0x43b090,{'text':_0x597c21['to']('imageUploadProgress',_0x85f2f6=>t('Loading\x20image...')+'\x20('+(_0x85f2f6||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 _0xf992d8=_0x4e8a;(function(_0x337f3f,_0x1f4dab){const _0x4549dd=_0x4e8a,_0x143ace=_0x337f3f();while(!![]){try{const _0x4e5111=parseInt(_0x4549dd(0x168))/0x1*(parseInt(_0x4549dd(0x163))/0x2)+parseInt(_0x4549dd(0x187))/0x3*(-parseInt(_0x4549dd(0x170))/0x4)+parseInt(_0x4549dd(0x15d))/0x5+parseInt(_0x4549dd(0x164))/0x6+-parseInt(_0x4549dd(0x174))/0x7+-parseInt(_0x4549dd(0x157))/0x8+parseInt(_0x4549dd(0x17e))/0x9;if(_0x4e5111===_0x1f4dab)break;else _0x143ace['push'](_0x143ace['shift']());}catch(_0x5b7d94){_0x143ace['push'](_0x143ace['shift']());}}}(_0x3b65,0xa24cb));import{View as _0x4b3050}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x503ae3}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x283cd3}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x390736}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3c8955}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x3b65(){const _0xbf980d=['createCollection','apply','target','8886493xVxmms','querySelector','fire','getFocusableElement','_editingView','_setView','once','_addErrorViewListeners','error','ready','8393958dEujez','element','retry','setTemplate','change:status','render','addMany','cancel','_focusableView','3QJnycp','ck-reset_all-excluded','add','ck-uploadcare-form','uploading','uc-cloud-image-editor','3901824JFPxTo','length','cdnUrl','observe','_waitForImageEditorComponent','filter','4088675urMhvM','div','_loadingView','disconnect','addedNodes','_items','4FfNdVY','4804242ZzSUcQ','toLowerCase','status','_errorView','589420cjMOys','detail','set','_addUploadcareImageEditorListeners','addEventListener','focus','nodeName','clear','5231752hHbGWO'];_0x3b65=function(){return _0xbf980d;};return _0x3b65();}function _0x4e8a(_0x417164,_0x5dd5a7){const _0x3b65c7=_0x3b65();return _0x4e8a=function(_0x4e8a4e,_0x68523a){_0x4e8a4e=_0x4e8a4e-0x155;let _0x5f075b=_0x3b65c7[_0x4e8a4e];return _0x5f075b;},_0x4e8a(_0x417164,_0x5dd5a7);}export class UploadcareImageEditFormView extends _0x3c8955{[_0xf992d8(0x162)];[_0xf992d8(0x15f)];[_0xf992d8(0x167)];[_0xf992d8(0x178)];[_0xf992d8(0x186)];constructor(_0x5884ba,_0x4330cf,_0x23602f){const _0x26627b=_0xf992d8;super(_0x5884ba),this[_0x26627b(0x162)]=this[_0x26627b(0x171)](),this[_0x26627b(0x15f)]=new _0x503ae3(_0x5884ba),this[_0x26627b(0x167)]=new _0x283cd3(_0x5884ba),this[_0x26627b(0x178)]=new _0x390736(_0x5884ba,_0x23602f),this[_0x26627b(0x186)]=new _0x4b3050(_0x5884ba),this[_0x26627b(0x186)][_0x26627b(0x181)](this[_0x26627b(0x177)]()),this[_0x26627b(0x16a)](_0x26627b(0x166),_0x4330cf),this[_0x26627b(0x181)]({'tag':_0x26627b(0x15e),'attributes':{'class':['ck',_0x26627b(0x188),_0x26627b(0x18a)],'tabindex':'-1'},'children':this[_0x26627b(0x162)]}),this[_0x26627b(0x179)](),this[_0x26627b(0x17a)](_0x26627b(0x183),()=>{const _0x584fe4=_0x26627b;this[_0x584fe4(0x15b)](this[_0x584fe4(0x17f)],_0x24b41e=>{const _0x3f7629=_0x584fe4;this[_0x3f7629(0x16b)](_0x24b41e);});}),this['on'](_0x26627b(0x182),()=>{const _0x51a943=_0x26627b;this[_0x51a943(0x179)]();}),this[_0x26627b(0x17b)]();}[_0xf992d8(0x16d)](){const _0x478b6b=_0xf992d8;this[_0x478b6b(0x17f)][_0x478b6b(0x16d)]();}[_0xf992d8(0x179)](){const _0xaae239=_0xf992d8;switch(this[_0xaae239(0x162)][_0xaae239(0x16f)](),this[_0xaae239(0x166)]){case _0xaae239(0x155):this[_0xaae239(0x162)][_0xaae239(0x189)](this[_0xaae239(0x15f)]);break;case _0xaae239(0x17c):this[_0xaae239(0x162)][_0xaae239(0x189)](this[_0xaae239(0x167)]);break;case _0xaae239(0x17d):this[_0xaae239(0x162)][_0xaae239(0x184)]([this[_0xaae239(0x178)],this[_0xaae239(0x186)]]);}}[_0xf992d8(0x15b)](_0x5e1a4e,_0x5cf8dc){const _0x341115=_0xf992d8,_0x389d6b=_0x341115(0x156),_0x194df9=_0x5e1a4e[_0x341115(0x175)](_0x389d6b);if(_0x194df9)return _0x5cf8dc(_0x194df9);const _0x4947c9=new MutationObserver(_0x48e5ef=>{const _0x5e92a8=_0x341115,_0x35d274=_0x48e5ef[_0x5e92a8(0x15c)](_0x4966f7=>_0x4966f7[_0x5e92a8(0x173)]===_0x5e1a4e&&_0x4966f7[_0x5e92a8(0x161)][_0x5e92a8(0x158)]>0x0&&_0x4966f7[_0x5e92a8(0x161)][0x0][_0x5e92a8(0x16e)][_0x5e92a8(0x165)]()===_0x389d6b);_0x35d274[_0x5e92a8(0x158)]&&(_0x4947c9[_0x5e92a8(0x160)](),_0x5cf8dc(_0x35d274[0x0][_0x5e92a8(0x161)][0x0]));});_0x4947c9[_0x341115(0x15a)](_0x5e1a4e,{'childList':!0x0,'subtree':!0x0});}[_0xf992d8(0x16b)](_0x3d8f63){const _0x195446=_0xf992d8;_0x3d8f63[_0x195446(0x16c)](_0x195446(0x172),_0x33445d=>{const _0x22c591=_0x195446;this[_0x22c591(0x176)](_0x22c591(0x172),{'imageSrc':_0x33445d[_0x22c591(0x169)][_0x22c591(0x159)]});}),_0x3d8f63[_0x195446(0x16c)](_0x195446(0x185),()=>{const _0x4c3fde=_0x195446;this[_0x4c3fde(0x176)](_0x4c3fde(0x185));});}[_0xf992d8(0x17b)](){const _0x46b508=_0xf992d8;this[_0x46b508(0x167)]['on'](_0x46b508(0x180),()=>{const _0x2987b2=_0x46b508;this[_0x2987b2(0x176)](_0x2987b2(0x180));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x217e(_0x5be252,_0x51aa47){const _0x38135c=_0x3813();return _0x217e=function(_0x217e2f,_0xa4a9f4){_0x217e2f=_0x217e2f-0x124;let _0x3409f2=_0x38135c[_0x217e2f];return _0x3409f2;},_0x217e(_0x5be252,_0x51aa47);}const _0x11fe5c=_0x217e;(function(_0x1ed054,_0x247c20){const _0x13e192=_0x217e,_0x2d8f54=_0x1ed054();while(!![]){try{const _0x1a4f56=parseInt(_0x13e192(0x133))/0x1+-parseInt(_0x13e192(0x135))/0x2*(parseInt(_0x13e192(0x130))/0x3)+parseInt(_0x13e192(0x124))/0x4+parseInt(_0x13e192(0x13d))/0x5+parseInt(_0x13e192(0x132))/0x6+-parseInt(_0x13e192(0x128))/0x7*(parseInt(_0x13e192(0x12e))/0x8)+-parseInt(_0x13e192(0x138))/0x9;if(_0x1a4f56===_0x247c20)break;else _0x2d8f54['push'](_0x2d8f54['shift']());}catch(_0x44e21a){_0x2d8f54['push'](_0x2d8f54['shift']());}}}(_0x3813,0xe85f1));import{Command as _0x2b7b34}from'ckeditor5/src/core.js';import{Dialog as _0xfa922f}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xde3479}from'./ui/uploadcareimageeditcontroller.js';function _0x3813(){const _0x4f61d8=['1564891KiReHG','imageEditController','2rOnLWY','uploadcare.allowExternalImagesEditing','document','17603802icrMwx','unbind','model','execute','isEnabled','3135885fdGmbt','selection','bind','config','set','getSelectedElement','6719744xaANfs','imageInline','_isEditable','editor','16793Mqsglr','isActive','element','plugins','refresh','get','376XsjOwW','requires','4033992QNvuKg','imageBlock','2959104RjBTJa'];_0x3813=function(){return _0x4f61d8;};return _0x3813();}import{createEditabilityChecker as _0x145b55}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2b7b34{[_0x11fe5c(0x134)];static get[_0x11fe5c(0x12f)](){return[_0xfa922f];}[_0x11fe5c(0x126)];constructor(_0x5fe3f0){const _0x2cfde8=_0x11fe5c;super(_0x5fe3f0),this[_0x2cfde8(0x134)]=void 0x0,this[_0x2cfde8(0x126)]=_0x145b55(_0x5fe3f0[_0x2cfde8(0x140)][_0x2cfde8(0x12d)](_0x2cfde8(0x136))||[]),this[_0x2cfde8(0x141)]({'isActive':!0x1});}[_0x11fe5c(0x12c)](){const _0x1839c0=_0x11fe5c,_0x1e2622=this[_0x1839c0(0x127)][_0x1839c0(0x13a)][_0x1839c0(0x137)][_0x1839c0(0x13e)][_0x1839c0(0x142)]();this[_0x1839c0(0x13c)]=this[_0x1839c0(0x126)](_0x1e2622);}[_0x11fe5c(0x13b)](){const _0x444b3=_0x11fe5c;this[_0x444b3(0x134)]&&(this[_0x444b3(0x139)](_0x444b3(0x129)),this[_0x444b3(0x134)]=void 0x0);const _0x236625=this[_0x444b3(0x127)][_0x444b3(0x13a)][_0x444b3(0x137)][_0x444b3(0x13e)][_0x444b3(0x142)]();_0x236625&&(_0x236625['is'](_0x444b3(0x12a),_0x444b3(0x131))||_0x236625['is'](_0x444b3(0x12a),_0x444b3(0x125)))&&(this[_0x444b3(0x134)]=new _0xde3479(this[_0x444b3(0x127)],this[_0x444b3(0x127)][_0x444b3(0x12b)][_0x444b3(0x12d)](_0xfa922f),_0x236625),this[_0x444b3(0x13f)](_0x444b3(0x129))['to'](this[_0x444b3(0x134)],_0x444b3(0x129)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a61df=_0x1695;(function(_0x3984a5,_0x1a8ad6){const _0x306914=_0x1695,_0x4c41b9=_0x3984a5();while(!![]){try{const _0x598617=-parseInt(_0x306914(0x170))/0x1+-parseInt(_0x306914(0x166))/0x2+-parseInt(_0x306914(0x16e))/0x3*(-parseInt(_0x306914(0x16a))/0x4)+-parseInt(_0x306914(0x16d))/0x5*(parseInt(_0x306914(0x176))/0x6)+parseInt(_0x306914(0x16c))/0x7*(-parseInt(_0x306914(0x178))/0x8)+parseInt(_0x306914(0x179))/0x9*(parseInt(_0x306914(0x16f))/0xa)+parseInt(_0x306914(0x165))/0xb*(parseInt(_0x306914(0x163))/0xc);if(_0x598617===_0x1a8ad6)break;else _0x4c41b9['push'](_0x4c41b9['shift']());}catch(_0x1c891f){_0x4c41b9['push'](_0x4c41b9['shift']());}}}(_0x4454,0x75375));import{Plugin as _0x4ed5f0}from'ckeditor5/src/core.js';import{Notification as _0x489706}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3580a2}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5edb50}from'./uploadcareimagereplacecommand.js';function _0x4454(){const _0x3022d6=['60cKDAry','pluginName','706145PTybgc','57196SWrASQ','uploadcareImageEdit','isOfficialPlugin','UploadcareImageEditEditing','16SEJhgZ','uploadcareImageReplace','1382507PERoKj','31965jsZyUi','450222CJSQIn','10GidypZ','580381FkmHhD','init','ImageUtils','commands','requires','add','6ktyUXF','isPremiumPlugin','8ovRJCS','3345471szyLGd','ImageEditing'];_0x4454=function(){return _0x3022d6;};return _0x4454();}import{UploadcareEditing as _0x3335ca}from'../uploadcareediting.js';function _0x1695(_0x21ad50,_0x5de24c){const _0x4454d4=_0x4454();return _0x1695=function(_0x1695d5,_0x5e5d84){_0x1695d5=_0x1695d5-0x162;let _0x4a6d3d=_0x4454d4[_0x1695d5];return _0x4a6d3d;},_0x1695(_0x21ad50,_0x5de24c);}export class UploadcareImageEditEditing extends _0x4ed5f0{static get[_0x5a61df(0x164)](){const _0x2782ad=_0x5a61df;return _0x2782ad(0x169);}static get[_0x5a61df(0x174)](){const _0x2b2434=_0x5a61df;return[_0x3335ca,_0x489706,_0x2b2434(0x172),_0x2b2434(0x162)];}static get[_0x5a61df(0x168)](){return!0x0;}static get[_0x5a61df(0x177)](){return!0x0;}[_0x5a61df(0x171)](){const _0x48e282=_0x5a61df,{editor:_0x13cee6}=this;_0x13cee6[_0x48e282(0x173)][_0x48e282(0x175)](_0x48e282(0x167),new _0x3580a2(_0x13cee6)),_0x13cee6[_0x48e282(0x173)][_0x48e282(0x175)](_0x48e282(0x16b),new _0x5edb50(_0x13cee6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1a5c11}from'ckeditor5/src/core.js';import{ButtonView as _0x335dae}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2be610}from'ckeditor5/src/icons.js';import{createElement as _0x4619e2}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 _0x1a5c11{['_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 _0x5d94c1=this['editor'];_0x5d94c1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a8473=>{const _0x93f6a4=_0x5d94c1['commands']['get']('uploadcareImageEdit'),_0x1adf60=new _0x335dae(_0x3a8473),t=_0x3a8473['t'];return _0x1adf60['set']({'icon':_0x2be610,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1adf60['bind']('isEnabled')['to'](_0x93f6a4),_0x1adf60['bind']('isOn')['to'](_0x93f6a4,'isActive'),this['listenTo'](_0x1adf60,'execute',()=>{_0x5d94c1['execute']('uploadcareImageEdit'),_0x5d94c1['editing']['view']['focus']();}),_0x1adf60;}),this['_initConfig']();}['_initConfig'](){const _0x3c0bf3=_0x4619e2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c0bf3),this['listenTo'](this['editor'],'destroy',()=>{_0x3c0bf3['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x302ad1=_0x3900;(function(_0x4d93ae,_0x92af6f){const _0xe7ae72=_0x3900,_0x360c63=_0x4d93ae();while(!![]){try{const _0xcb5c66=parseInt(_0xe7ae72(0x110))/0x1*(parseInt(_0xe7ae72(0x11d))/0x2)+-parseInt(_0xe7ae72(0x10e))/0x3*(-parseInt(_0xe7ae72(0x10c))/0x4)+-parseInt(_0xe7ae72(0x119))/0x5*(-parseInt(_0xe7ae72(0x111))/0x6)+parseInt(_0xe7ae72(0x11b))/0x7*(parseInt(_0xe7ae72(0x115))/0x8)+parseInt(_0xe7ae72(0x10a))/0x9*(parseInt(_0xe7ae72(0x122))/0xa)+parseInt(_0xe7ae72(0x11e))/0xb+-parseInt(_0xe7ae72(0x10b))/0xc;if(_0xcb5c66===_0x92af6f)break;else _0x360c63['push'](_0x360c63['shift']());}catch(_0x5b95d2){_0x360c63['push'](_0x360c63['shift']());}}}(_0x4bbf,0x44cb2));import{Command as _0x22e3d2}from'ckeditor5/src/core.js';function _0x4bbf(){const _0x4cfab8=['element','2971602nJShCN','17463312afmNyT','8umgabX','document','207039LTlnjx','imageBlock','1255PSwaMG','1660146DJZJyj','removeAttribute','getSelectedElement','sizes','2248hQqNMk','execute','selection','setAttributes','5PEKWwQ','model','12446FdOOJw','editor','78JkOMVj','4879556BbeBQM','change','isEnabled','imageInline','10HxWMmb','refresh','srcset'];_0x4bbf=function(){return _0x4cfab8;};return _0x4bbf();}function _0x3900(_0x52ec60,_0x18a1eb){const _0x4bbfbc=_0x4bbf();return _0x3900=function(_0x39003c,_0x757e9a){_0x39003c=_0x39003c-0x107;let _0x5dac99=_0x4bbfbc[_0x39003c];return _0x5dac99;},_0x3900(_0x52ec60,_0x18a1eb);}export class UploadcareImageReplaceCommand extends _0x22e3d2{[_0x302ad1(0x107)](){const _0x22e5e8=_0x302ad1,_0x3e355b=this[_0x22e5e8(0x11c)][_0x22e5e8(0x11a)][_0x22e5e8(0x10d)][_0x22e5e8(0x117)][_0x22e5e8(0x113)]();this[_0x22e5e8(0x120)]=Boolean(_0x3e355b&&(_0x3e355b['is'](_0x22e5e8(0x109),_0x22e5e8(0x10f))||_0x3e355b['is'](_0x22e5e8(0x109),_0x22e5e8(0x121))));}[_0x302ad1(0x116)](_0x449c46){const _0x4c3a50=_0x302ad1,_0x1d474d=this[_0x4c3a50(0x11c)][_0x4c3a50(0x11a)][_0x4c3a50(0x10d)][_0x4c3a50(0x117)][_0x4c3a50(0x113)]();this[_0x4c3a50(0x11c)][_0x4c3a50(0x11a)][_0x4c3a50(0x11f)](_0x4e3e1f=>{const _0x4b953a=_0x4c3a50;_0x4e3e1f[_0x4b953a(0x118)](_0x449c46,_0x1d474d),_0x4e3e1f[_0x4b953a(0x112)](_0x4b953a(0x108),_0x1d474d),_0x4e3e1f[_0x4b953a(0x112)](_0x4b953a(0x114),_0x1d474d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x372670=_0x5010;(function(_0x184436,_0x36c142){var _0x29a474=_0x5010,_0x5f0248=_0x184436();while(!![]){try{var _0x1dcfb0=-parseInt(_0x29a474(0x1c6))/0x1+parseInt(_0x29a474(0x1c4))/0x2*(-parseInt(_0x29a474(0x1cd))/0x3)+parseInt(_0x29a474(0x1ca))/0x4+-parseInt(_0x29a474(0x1c8))/0x5+parseInt(_0x29a474(0x1c5))/0x6+-parseInt(_0x29a474(0x1c3))/0x7*(-parseInt(_0x29a474(0x1cf))/0x8)+parseInt(_0x29a474(0x1c7))/0x9;if(_0x1dcfb0===_0x36c142)break;else _0x5f0248['push'](_0x5f0248['shift']());}catch(_0x5b308a){_0x5f0248['push'](_0x5f0248['shift']());}}}(_0x47bb,0xf2b9a));function _0x5010(_0x33e465,_0x53c500){var _0x47bbb7=_0x47bb();return _0x5010=function(_0x501091,_0xf96ec0){_0x501091=_0x501091-0x1c2;var _0xa3ca46=_0x47bbb7[_0x501091];return _0xa3ca46;},_0x5010(_0x33e465,_0x53c500);}import{Plugin as _0x1b396d}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x126dfe}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0xb84e0}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x1b396d{static get[_0x372670(0x1c2)](){var _0x15861f=_0x372670;return _0x15861f(0x1cc);}static get[_0x372670(0x1cb)](){return[_0x126dfe,_0xb84e0];}static get[_0x372670(0x1c9)](){return!0x0;}static get[_0x372670(0x1ce)](){return!0x0;}}function _0x47bb(){var _0x2d2b08=['pluginName','2786xvkygB','926lrQXKn','3800514QNCGYX','1803247KRQAZn','12101373FMStcY','5902985iIlzyb','isOfficialPlugin','3095140yfKdsI','requires','UploadcareImageEdit','1359AWtOSV','isPremiumPlugin','28864nFBqFf'];_0x47bb=function(){return _0x2d2b08;};return _0x47bb();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x486806=_0x4124;(function(_0x760499,_0x4e55a5){const _0x3e40dc=_0x4124,_0x37faf6=_0x760499();while(!![]){try{const _0x20c5b8=parseInt(_0x3e40dc(0x91))/0x1+parseInt(_0x3e40dc(0x89))/0x2*(parseInt(_0x3e40dc(0xc9))/0x3)+-parseInt(_0x3e40dc(0x9c))/0x4+-parseInt(_0x3e40dc(0xc6))/0x5+-parseInt(_0x3e40dc(0xa8))/0x6*(-parseInt(_0x3e40dc(0xc3))/0x7)+-parseInt(_0x3e40dc(0x9b))/0x8+parseInt(_0x3e40dc(0xc8))/0x9*(-parseInt(_0x3e40dc(0x81))/0xa);if(_0x20c5b8===_0x4e55a5)break;else _0x37faf6['push'](_0x37faf6['shift']());}catch(_0x163bf6){_0x37faf6['push'](_0x37faf6['shift']());}}}(_0x2b5b,0x6c518));import{Plugin as _0xea8602}from'ckeditor5/src/core.js';import{IconDropbox as _0x270e46,IconFacebook as _0x359895,IconGoogleDrive as _0x85c4a8,IconGooglePhotos as _0x3d3988,IconUploadcareImageUpload as _0x38263a,IconUploadcareLink as _0x51b9a3,IconOneDrive as _0x3831cc}from'ckeditor5/src/icons.js';function _0x2b5b(){const _0x526017=['pluginName','433551cEQJMJ','usageLimit','expired','Insert','Dropbox','Replace','uploadcareLicenseKeyTrialLimit','trialLimit','upload','text','2178672ulOUVl','53784umKrbj','_createToolbarButton','withText','config','shortText','uploadcareLicenseKeyInvalid','reduce','editor','entries','domainLimit','assetManager','has','2973540LBcmSp','uploadcareLicenseKeyUsageLimit','Facebook','featureNotAllowed','icon','afterInit','registerIntegration','url','bind','tooltip','type','GDrive','uploadcareLicenseKeyExpired','uploadcareLicenseKeyDomainLimit','isImageSelected','execute','OneDrive','evaluationLimit','isEnabled','invalid','_showLicenseError','_createMenuBarButtons','map','ImageInsertUI','uploadcareLicenseKeyValid','URL','isOfficialPlugin','7umKnIk','get','_licenseKeyCheckInterval','1815720mvLoNd','forEach','18SMLjqk','1430553UKzkZD','GPhotos','Uploadcare','init','destroy','uploadcareLicenseKeyNotAllowed','UploadcareUI','commands','uploadcareLicenseKeyEvaluationLimit','1566980OPRzns','Local','locale','push','plugins','_getIntegrationKey','uploadcare','_createButton','2FNpDBh','label','isPremiumPlugin','licenseKey','_normalizeConfigSourceList','_createDropdownButtons','uploadcare.uploader.sourceList'];_0x2b5b=function(){return _0x526017;};return _0x2b5b();}function _0x4124(_0x6f52a4,_0x5a7c64){const _0x2b5b52=_0x2b5b();return _0x4124=function(_0x41246e,_0x5e5299){_0x41246e=_0x41246e-0x7f;let _0x1e21a4=_0x2b5b52[_0x41246e];return _0x1e21a4;},_0x4124(_0x6f52a4,_0x5a7c64);}import{ButtonView as _0x119ac1,MenuBarMenuListItemButtonView as _0x316ecf}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x46923c}from'./uploadcareconfig.js';import{getTranslation as _0x20c536}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0xea8602{[_0x486806(0x8c)];[_0x486806(0xc5)];static get[_0x486806(0x90)](){const _0xf5bd0f=_0x486806;return _0xf5bd0f(0xcf);}static get[_0x486806(0xc2)](){return!0x0;}static get[_0x486806(0x8b)](){return!0x0;}[_0x486806(0xcc)](){const _0xf382ca=_0x486806;this[_0xf382ca(0x8c)]=this[_0xf382ca(0xa3)][_0xf382ca(0x9f)][_0xf382ca(0xc4)](_0xf382ca(0x8c));const _0x5e2344=this[_0xf382ca(0xa3)];this[_0xf382ca(0xc5)]=setInterval(()=>{const _0x1ff72c=_0xf382ca;let _0x82de6c;for(const _0x521078 in _0x5e2344){const _0x1f80b5=_0x521078,_0x589bdb=_0x5e2344[_0x1f80b5];if(_0x1ff72c(0xc0)==_0x589bdb||_0x1ff72c(0xa1)==_0x589bdb||_0x1ff72c(0xb4)==_0x589bdb||_0x1ff72c(0xb5)==_0x589bdb||_0x1ff72c(0xce)==_0x589bdb||_0x1ff72c(0x80)==_0x589bdb||_0x1ff72c(0x97)==_0x589bdb||_0x1ff72c(0xa9)==_0x589bdb){delete _0x5e2344[_0x1f80b5],_0x82de6c=_0x589bdb,clearInterval(this[_0x1ff72c(0xc5)]),this[_0x1ff72c(0xc5)]=void 0x0;break;}}_0x1ff72c(0xa1)==_0x82de6c&&_0x5e2344[_0x1ff72c(0xbc)](_0x1ff72c(0xbb)),_0x1ff72c(0xb4)==_0x82de6c&&_0x5e2344[_0x1ff72c(0xbc)](_0x1ff72c(0x93)),_0x1ff72c(0xb5)==_0x82de6c&&_0x5e2344[_0x1ff72c(0xbc)](_0x1ff72c(0xa5)),_0x1ff72c(0xce)==_0x82de6c&&_0x5e2344[_0x1ff72c(0xbc)](_0x1ff72c(0xab),_0x1ff72c(0xcb)),_0x1ff72c(0x80)==_0x82de6c&&_0x5e2344[_0x1ff72c(0xbc)](_0x1ff72c(0xb9)),_0x1ff72c(0x97)==_0x82de6c&&_0x5e2344[_0x1ff72c(0xbc)](_0x1ff72c(0x98)),_0x1ff72c(0xa9)==_0x82de6c&&_0x5e2344[_0x1ff72c(0xbc)](_0x1ff72c(0x92));},0x3e8);}[_0x486806(0xad)](){const _0x502837=_0x486806,{editor:_0x4d439b}=this,_0x417d46=_0x4d439b[_0x502837(0x7f)][_0x502837(0xc4)](_0x502837(0x87));if(!_0x417d46)return;const _0x232eec=this[_0x502837(0x8d)](_0x4d439b[_0x502837(0x9f)][_0x502837(0xc4)](_0x502837(0x8f)))[_0x502837(0xa2)]((_0x513a11,_0x497105)=>{const _0x26f5bf=_0x502837,_0x5277c1=this[_0x26f5bf(0x86)](_0x497105[_0x26f5bf(0xb2)]);return _0x513a11[_0x5277c1]||(_0x513a11[_0x5277c1]=[]),_0x513a11[_0x5277c1][_0x26f5bf(0x84)](_0x497105),_0x513a11;},{});_0x4d439b[_0x502837(0x85)][_0x502837(0xa7)](_0x502837(0xbf))&&_0x4d439b[_0x502837(0x7f)][_0x502837(0xc4)](_0x502837(0x87))&&Object[_0x502837(0xa4)](_0x232eec)[_0x502837(0xc7)](([_0x580812,_0x43bc2b])=>{const _0x554f6e=_0x502837;_0x4d439b[_0x554f6e(0x85)][_0x554f6e(0xc4)](_0x554f6e(0xbf))[_0x554f6e(0xae)]({'name':_0x580812,'observable':()=>_0x417d46,'buttonViewCreator':()=>this[_0x554f6e(0x9d)](_0x43bc2b),'formViewCreator':()=>this[_0x554f6e(0x8e)](_0x43bc2b),'menuBarButtonViewCreator':()=>this[_0x554f6e(0xbd)](_0x43bc2b),'override':_0x554f6e(0xa6)!==_0x580812});});}[_0x486806(0xcd)](){const _0x1e8128=_0x486806;super[_0x1e8128(0xcd)](),this[_0x1e8128(0xc5)]&&clearInterval(this[_0x1e8128(0xc5)]);}[_0x486806(0x8d)](_0x207004){const _0x2a59d0=_0x486806,{locale:_0x55dfe3}=this[_0x2a59d0(0xa3)];return _0x207004[_0x2a59d0(0xbe)](_0x35678d=>{const _0x836dc5=_0x2a59d0,_0x5986f9=_0x20c536(_0x55dfe3,_0x35678d,_0x836dc5(0x94));switch(_0x35678d){case _0x46923c[_0x836dc5(0x82)]:return{'icon':_0x38263a,'type':_0x46923c[_0x836dc5(0x82)],..._0x5986f9};case _0x46923c[_0x836dc5(0xc1)]:return{'icon':_0x51b9a3,'type':_0x46923c[_0x836dc5(0xc1)],..._0x5986f9};case _0x46923c[_0x836dc5(0x95)]:return{'icon':_0x270e46,'type':_0x46923c[_0x836dc5(0x95)],..._0x5986f9};case _0x46923c[_0x836dc5(0xaa)]:return{'icon':_0x359895,'type':_0x46923c[_0x836dc5(0xaa)],..._0x5986f9};case _0x46923c[_0x836dc5(0xb3)]:return{'icon':_0x85c4a8,'type':_0x46923c[_0x836dc5(0xb3)],..._0x5986f9};case _0x46923c[_0x836dc5(0xca)]:return{'icon':_0x3d3988,'type':_0x46923c[_0x836dc5(0xca)],..._0x5986f9};case _0x46923c[_0x836dc5(0xb8)]:return{'icon':_0x3831cc,'type':_0x46923c[_0x836dc5(0xb8)],..._0x5986f9};}});}[_0x486806(0x86)](_0x221d13){const _0xe9d815=_0x486806;switch(_0x221d13){case _0x46923c[_0xe9d815(0x82)]:return _0xe9d815(0x99);case _0x46923c[_0xe9d815(0xc1)]:return _0xe9d815(0xaf);default:return _0xe9d815(0xa6);}}[_0x486806(0x88)](_0x1c925c,_0x52d751){const _0x380bdc=_0x486806,_0x491714=this[_0x380bdc(0xa3)],_0xecfabe=new _0x1c925c(_0x491714[_0x380bdc(0x83)]),_0x319da4=_0x491714[_0x380bdc(0x7f)][_0x380bdc(0xc4)](_0x380bdc(0x87));return _0xecfabe[_0x380bdc(0xb0)](_0x380bdc(0xba))['to'](_0x319da4),_0xecfabe['on'](_0x380bdc(0xb7),()=>{const _0x5ba7e4=_0x380bdc;_0x319da4[_0x5ba7e4(0xb7)](_0x52d751);}),_0xecfabe;}[_0x486806(0x9d)](_0x332d9a){const _0x3bd583=_0x486806,{locale:_0x4560c8}=this[_0x3bd583(0xa3)],_0x248d94=this[_0x3bd583(0xa3)][_0x3bd583(0x85)][_0x3bd583(0xc4)](_0x3bd583(0xbf)),_0x4f61d4=_0x332d9a[0x0],_0x3e1672=this[_0x3bd583(0x88)](_0x119ac1,_0x4f61d4[_0x3bd583(0xb2)]);return _0x3e1672[_0x3bd583(0xac)]=_0x4f61d4[_0x3bd583(0xac)],_0x3e1672[_0x3bd583(0xb0)](_0x3bd583(0x8a))['to'](_0x248d94,_0x3bd583(0xb6),_0x5601ee=>_0x20c536(_0x4560c8,_0x4f61d4[_0x3bd583(0xb2)],_0x5601ee?_0x3bd583(0x96):_0x3bd583(0x94))[_0x3bd583(0x9a)]),_0x3e1672[_0x3bd583(0xb1)]=!0x0,_0x3e1672;}[_0x486806(0x8e)](_0x51a0ea){const _0x86f1ee=_0x486806,{locale:_0x594bac}=this[_0x86f1ee(0xa3)],_0x1b7a01=this[_0x86f1ee(0xa3)][_0x86f1ee(0x85)][_0x86f1ee(0xc4)](_0x86f1ee(0xbf));return _0x51a0ea[_0x86f1ee(0xbe)](_0x3801e7=>{const _0x2f653d=_0x86f1ee,_0x36153a=this[_0x2f653d(0x88)](_0x119ac1,_0x3801e7[_0x2f653d(0xb2)]);return _0x36153a[_0x2f653d(0x9e)]=!0x0,_0x36153a[_0x2f653d(0xac)]=_0x3801e7[_0x2f653d(0xac)],_0x36153a[_0x2f653d(0xb0)](_0x2f653d(0x8a))['to'](_0x1b7a01,_0x2f653d(0xb6),_0x1e2073=>_0x20c536(_0x594bac,_0x3801e7[_0x2f653d(0xb2)],_0x1e2073?_0x2f653d(0x96):_0x2f653d(0x94))[_0x2f653d(0x9a)]),_0x36153a;});}[_0x486806(0xbd)](_0x18c871){const _0x229bac=_0x486806;return _0x18c871[_0x229bac(0xbe)](_0x32779a=>{const _0x2fb25d=_0x229bac,_0x4f1a93=this[_0x2fb25d(0x88)](_0x316ecf,_0x32779a[_0x2fb25d(0xb2)]);return _0x4f1a93[_0x2fb25d(0xac)]=_0x32779a[_0x2fb25d(0xac)],_0x4f1a93[_0x2fb25d(0x8a)]=_0x32779a[_0x2fb25d(0xa0)],_0x4f1a93;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x198ea5}from'ckeditor5/src/core.js';import{FileRepository as _0x52a0fe}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2081a9}from'./uploadcareediting.js';import{UploadUtils as _0x236af5}from'./utils/uploadutils.js';import{getImageUrls as _0x8ac6c}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x198ea5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x52a0fe,_0x2081a9];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5eb852=this['editor'];if(!!!_0x5eb852['config']['get']('uploadcare'))return;_0x5eb852['plugins']['get'](_0x52a0fe)['createUploadAdapter']=_0x40acbb=>new k(_0x40acbb,_0x5eb852),_0x5eb852['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x222a86,{imageElement:_0x14cfe3,data:_0x18d677})=>{_0x5eb852['model']['change'](_0x223d01=>{_0x223d01['setAttribute']('uploadcareImageId',_0x18d677['uploadcareImageId'],_0x14cfe3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5191cd,_0x560b1e){this['loader']=_0x5191cd,this['editor']=_0x560b1e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x30bca2=await this['loader']['file'];return _0x236af5['upload']({'file':_0x30bca2,'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':_0x5420f8=>{_0x5420f8&&_0x5420f8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5420f8['value']);}})['then'](async _0x25ea7b=>{const {imageFallbackUrl:_0x428576,imageSources:_0x3613c7}=_0x8ac6c(_0x25ea7b['cdnUrl'],_0x25ea7b['imageInfo']['width']);return{'uploadcareImageId':_0x25ea7b['uuid'],'default':_0x428576,'sources':_0x3613c7};})['catch'](()=>{const _0x5ee99c=t('Cannot\x20upload\x20file:')+('\x20'+_0x30bca2['name']+'.');return Promise['reject'](_0x5ee99c);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xdbc37a}from'../uploadcareconfig.js';export function getTranslation(_0x3c148d,_0x2bf8ee,_0x4ca366){const t=_0x3c148d['t'],_0x1ef54d=_0x3c148d['t'];switch(_0x2bf8ee){case _0xdbc37a['Local']:return{'text':_0x1ef54d('Insert'===_0x4ca366?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ef54d('From\x20computer')};case _0xdbc37a['URL']:return{'text':'Insert'===_0x4ca366?_0x1ef54d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ef54d('Via\x20URL')};case _0xdbc37a['Dropbox']:return{'text':t('Insert'===_0x4ca366?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xdbc37a['Facebook']:return{'text':t('Insert'===_0x4ca366?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xdbc37a['GDrive']:return{'text':t('Insert'===_0x4ca366?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xdbc37a['GPhotos']:return{'text':t('Insert'===_0x4ca366?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xdbc37a['OneDrive']:return{'text':t('Insert'===_0x4ca366?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2bf8ee;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3891d5=_0x3343;(function(_0x18057b,_0x2efae4){var _0x43e48f=_0x3343,_0x439fbc=_0x18057b();while(!![]){try{var _0x2cb3f4=parseInt(_0x43e48f(0x1ed))/0x1*(parseInt(_0x43e48f(0x1fb))/0x2)+parseInt(_0x43e48f(0x1f0))/0x3+parseInt(_0x43e48f(0x1f6))/0x4*(parseInt(_0x43e48f(0x1f7))/0x5)+parseInt(_0x43e48f(0x1ff))/0x6*(-parseInt(_0x43e48f(0x1f1))/0x7)+-parseInt(_0x43e48f(0x1fe))/0x8*(parseInt(_0x43e48f(0x1f8))/0x9)+parseInt(_0x43e48f(0x200))/0xa+-parseInt(_0x43e48f(0x201))/0xb*(parseInt(_0x43e48f(0x1f5))/0xc);if(_0x2cb3f4===_0x2efae4)break;else _0x439fbc['push'](_0x439fbc['shift']());}catch(_0x36f3ad){_0x439fbc['push'](_0x439fbc['shift']());}}}(_0x26f2,0xb1b65));import{FocusTracker as _0x3323a3}from'ckeditor5/src/utils.js';import{View as _0x2077a7,FocusCycler as _0x4758c1}from'ckeditor5/src/ui.js';function _0x26f2(){var _0x28d876=['2DPkbOZ','forwardCycle','getFocusableElement','6632OgTwxk','195528GCKkhb','852120gTxJBU','33zGxXRz','1378159iHvaQO','fire','focusCycler','4063848vjpxJk','252wvYDZE','bindTemplate','true','focusTracker','2311056XDwFmc','10636mhgZTD','600ySxmMv','7146mtwVpI','div','createCollection'];_0x26f2=function(){return _0x28d876;};return _0x26f2();}import'../../theme/uploadcare-form.css';function _0x3343(_0x19c9cc,_0x34e959){var _0x26f21c=_0x26f2();return _0x3343=function(_0x3343a6,_0x1055ca){_0x3343a6=_0x3343a6-0x1ed;var _0x521f5f=_0x26f21c[_0x3343a6];return _0x521f5f;},_0x3343(_0x19c9cc,_0x34e959);}export class DialogFocusManagerView extends _0x2077a7{[_0x3891d5(0x1f4)];[_0x3891d5(0x1ef)];constructor(_0x45ec8a){var _0x488c5b=_0x3891d5;super(_0x45ec8a),this[_0x488c5b(0x1f4)]=new _0x3323a3(),this[_0x488c5b(0x1ef)]=new _0x4758c1({'focusables':this[_0x488c5b(0x1fa)](),'focusTracker':this[_0x488c5b(0x1f4)]});}[_0x3891d5(0x1fd)](){var _0x5eb1b6=_0x3891d5;return{'tag':_0x5eb1b6(0x1f9),'attributes':{'aria-hidden':_0x5eb1b6(0x1f3),'tabindex':'0'},'on':{'focus':this[_0x5eb1b6(0x1f2)]['to'](()=>{var _0x58af39=_0x5eb1b6;this[_0x58af39(0x1ef)][_0x58af39(0x1ee)](_0x58af39(0x1fc));})}};}}
|