@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250926.0 → 0.0.0-nightly-20250927.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
|
+
function _0x4793(){const _0x31291a=['attributeToAttribute','717QyqUTA','remove','imageBlock','contentLanguage','UploadcareEditing','querySelector','schema','replaceImageSource','configElement','pluginName','afterInit','add','once','uploader-','locale','body','conversion','downcast','document','uploadcareImageReplace','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-upload-ctx-provider','176DzNPvo','insertImage','href','appendChild','uploadcare.uploader','ucContextId','_initSchema','isRegistered','_initConversion','uploadcareImageId','cleanupImage','_ctxElement','upcast','fromCharCode','_initCtx','isPremiumPlugin','join','model','data-uc-image-id','getSelectedElement','destroy','#uc-icon-arrow-down','for','3840347XNUhbV','elementToAttribute','imageInline','208685MUhnqx','config','getAttribute','true','3850510CKSEaZ','_initImageProcessingIndicator','requires','2536KEXicZ','493528SbcTQn','get','view','render','uploadcare','uc-config','removeAttribute','PictureEditing','9zStMlC','editing','selection','_configElement','commands','1126zmknAb','editor','execute','extend','iconHrefResolver','input[uploadcare-file-input]','listenTo','_initConfig','uploadcare.pubkey','2664588SIiIOO','ctxElement','map','isOfficialPlugin','closeMax','init'];_0x4793=function(){return _0x31291a;};return _0x4793();}const _0x25a5a2=_0x1e60;(function(_0x299ce3,_0x4153c0){const _0x48c950=_0x1e60,_0x2c588c=_0x299ce3();while(!![]){try{const _0x474896=parseInt(_0x48c950(0x1d2))/0x1*(-parseInt(_0x48c950(0x1f8))/0x2)+-parseInt(_0x48c950(0x1e2))/0x3*(-parseInt(_0x48c950(0x1c4))/0x4)+parseInt(_0x48c950(0x1bd))/0x5+parseInt(_0x48c950(0x1db))/0x6+-parseInt(_0x48c950(0x1ba))/0x7+-parseInt(_0x48c950(0x1c5))/0x8+-parseInt(_0x48c950(0x1cd))/0x9*(-parseInt(_0x48c950(0x1c1))/0xa);if(_0x474896===_0x4153c0)break;else _0x2c588c['push'](_0x2c588c['shift']());}catch(_0x1c199d){_0x2c588c['push'](_0x2c588c['shift']());}}}(_0x4793,0x4c6b4));import{Plugin as _0x5f0cdd}from'ckeditor5/src/core.js';import{Dialog as _0x5b1836}from'ckeditor5/src/ui.js';function _0x1e60(_0x56346b,_0x28414a){const _0x479310=_0x4793();return _0x1e60=function(_0x1e6020,_0x1da63e){_0x1e6020=_0x1e6020-0x1a7;let _0x27c11e=_0x479310[_0x1e6020];return _0x27c11e;},_0x1e60(_0x56346b,_0x28414a);}import{createElement as _0x2459e0,global as _0x32da1b,uid as _0x97c4b8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3cd789}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2746e7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5c72a7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5f0cdd{[_0x25a5a2(0x1d0)]=null;[_0x25a5a2(0x1ae)]=null;static get[_0x25a5a2(0x1eb)](){const _0x493fbd=_0x25a5a2;return _0x493fbd(0x1e6);}static get[_0x25a5a2(0x1c3)](){const _0x12b13a=_0x25a5a2;return[_0x12b13a(0x1cc),_0x2746e7,_0x5b1836];}static get[_0x25a5a2(0x1de)](){return!0x0;}static get[_0x25a5a2(0x1b2)](){return!0x0;}[_0x25a5a2(0x1a8)];get[_0x25a5a2(0x1ea)](){const _0x7c5811=_0x25a5a2;return this[_0x7c5811(0x1d0)];}get[_0x25a5a2(0x1dc)](){const _0x28745f=_0x25a5a2;return this[_0x28745f(0x1ae)];}constructor(_0x2c9b21){const _0x4f5e24=_0x25a5a2;super(_0x2c9b21),this[_0x4f5e24(0x1a8)]=_0x97c4b8();}[_0x25a5a2(0x1e0)](){const _0x251eed=_0x25a5a2,_0x497b60=this[_0x251eed(0x1d3)];_0x497b60[_0x251eed(0x1d1)][_0x251eed(0x1ed)](_0x251eed(0x1c9),new _0x3cd789(_0x497b60));}[_0x25a5a2(0x1ec)](){const _0x349619=_0x25a5a2;this[_0x349619(0x1a9)](),this[_0x349619(0x1ab)](),this[_0x349619(0x1d9)](),this[_0x349619(0x1b1)](),this[_0x349619(0x1c2)](),this[_0x349619(0x1d8)](this[_0x349619(0x1d3)],_0x349619(0x1b7),()=>{const _0x512cd7=_0x349619;this[_0x512cd7(0x1d0)]&&(this[_0x512cd7(0x1d0)][_0x512cd7(0x1e3)](),this[_0x512cd7(0x1d0)]=null),this[_0x512cd7(0x1ae)]&&(this[_0x512cd7(0x1ae)][_0x512cd7(0x1e3)](),this[_0x512cd7(0x1ae)]=null);const _0x5e9713=_0x32da1b[_0x512cd7(0x1f4)][_0x512cd7(0x1e7)](_0x512cd7(0x1d7));_0x5e9713&&_0x5e9713[_0x512cd7(0x1e3)]();}),async function(_0x3b287c){const _0x3157de=_0x551172([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]),_0x4c9959=0x3d8d0df,_0x2fcd53=0x3dfa44f^_0x4c9959,_0x1e8652=window[_0x551172([0x44,0x61,0x74,0x65])][_0x551172([0x6e,0x6f,0x77])](),_0x3140d6=_0x3b287c[_0x551172([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1803b0=new window[(_0x551172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdd169=>{_0x3140d6[_0x551172([0x6f,0x6e,0x63,0x65])](_0x551172([0x72,0x65,0x61,0x64,0x79]),_0xdd169);}),_0x474adf={[_0x551172([0x6b,0x74,0x79])]:_0x551172([0x45,0x43]),[_0x551172([0x75,0x73,0x65])]:_0x551172([0x73,0x69,0x67]),[_0x551172([0x63,0x72,0x76])]:_0x551172([0x50,0x2d,0x32,0x35,0x36]),[_0x551172([0x78])]:_0x551172([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]),[_0x551172([0x79])]:_0x551172([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]),[_0x551172([0x61,0x6c,0x67])]:_0x551172([0x45,0x53,0x32,0x35,0x36])},_0x471fc0=_0x3140d6[_0x551172([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x551172([0x67,0x65,0x74])](_0x551172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a6b48(){let _0x9128cb,_0x3eb060=null,_0x135d49=null;try{if(_0x471fc0==_0x551172([0x47,0x50,0x4c]))return _0x551172([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9128cb=_0x212b1b(),!_0x9128cb)return _0x551172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9128cb[_0x551172([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x135d49=_0xc59181(_0x9128cb[_0x551172([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9128cb[_0x551172([0x6a,0x74,0x69])])),await _0x4b8d66()?_0x2eb049()?_0x35fecb()?_0x551172([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46f5d8()?(_0x9128cb[_0x551172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x551172([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eb060=_0x5f37b9(_0x551172([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9128cb[_0x551172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x551172([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eb060=_0x5f37b9(_0x551172([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40fcbf()):_0x551172([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x551172([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x551172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x551172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35fecb(){const _0x1b7735=[_0x551172([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x551172([0x74,0x72,0x69,0x61,0x6c])][_0x551172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9128cb[_0x551172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e8652/0x3e8:0xe10*_0x2fcd53;return _0x9128cb[_0x551172([0x65,0x78,0x70])]<_0x1b7735;}function _0x2eb049(){const _0x4fc24d=_0x9128cb[_0x551172([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4fc24d&&(!!_0x4fc24d[_0x551172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x551172([0x2a]))||!!_0x4fc24d[_0x551172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x551172([0x55,0x50,0x4c,0x43])));}function _0x46f5d8(){const _0x1c22f9=_0x1e60,_0x723a0c=_0x9128cb[_0x551172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x723a0c||0x0==_0x723a0c[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2214c8}=new URL(window[_0x551172([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c22f9(0x1fa)]);if(_0x723a0c[_0x551172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2214c8))return!0x0;const _0x56a855=_0x2214c8[_0x551172([0x73,0x70,0x6c,0x69,0x74])](_0x551172([0x2e]));return _0x723a0c[_0x551172([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x317dd1=>_0x317dd1[_0x551172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x551172([0x2a])))[_0x551172([0x6d,0x61,0x70])](_0x365107=>_0x365107[_0x551172([0x73,0x70,0x6c,0x69,0x74])](_0x551172([0x2e])))[_0x551172([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ebaff=>_0x1ebaff[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56a855[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x551172([0x6d,0x61,0x70])](_0x260ecc=>Array(_0x56a855[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x260ecc[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x551172([0x66,0x69,0x6c,0x6c])](_0x260ecc[0x0]===_0x551172([0x2a])?_0x551172([0x2a]):'')[_0x551172([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x260ecc))[_0x551172([0x73,0x6f,0x6d,0x65])](_0x2cbd68=>_0x56a855[_0x551172([0x65,0x76,0x65,0x72,0x79])]((_0x3146bc,_0x35a4e6)=>_0x2cbd68[_0x35a4e6]===_0x3146bc||_0x2cbd68[_0x35a4e6]===_0x551172([0x2a])));}function _0x40fcbf(){return _0x3eb060&&_0x135d49?new window[(_0x551172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3423c4,_0x420498)=>{_0x3eb060[_0x551172([0x74,0x68,0x65,0x6e])](_0x3423c4,_0x420498),_0x135d49[_0x551172([0x74,0x68,0x65,0x6e])](_0x5d4e3d=>{_0x5d4e3d!=_0x551172([0x56,0x61,0x6c,0x69,0x64])&&_0x3423c4(_0x5d4e3d);},_0x420498);}):_0x3eb060||_0x135d49||_0x551172([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc59181(_0x59ccac,_0x18d428){return new window[(_0x551172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2953d8=>{if(_0x16ad00())return _0x2953d8(_0x551172([0x56,0x61,0x6c,0x69,0x64]));_0xfe613c(),_0x3140d6[_0x551172([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x551172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x504de8=!0x1;const _0x33394a=_0x97c4b8();function _0x12cb52(_0x21d4f1){return!!_0x21d4f1&&(typeof _0x21d4f1===_0x551172([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21d4f1===_0x551172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21d4f1[_0x551172([0x74,0x68,0x65,0x6e])]===_0x551172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21d4f1[_0x551172([0x63,0x61,0x74,0x63,0x68])]===_0x551172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c6f7(_0x14f886){_0x59e13b(_0x14f886)[_0x551172([0x74,0x68,0x65,0x6e])](_0x37f915=>{if(!_0x37f915||_0x37f915[_0x551172([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x551172([0x6f,0x6b]))return _0x551172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c3267(_0x4ae6ab(_0x33394a+_0x18d428))!=_0x37f915[_0x551172([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x551172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x551172([0x56,0x61,0x6c,0x69,0x64]);})[_0x551172([0x74,0x68,0x65,0x6e])](_0x4f8730=>(_0x295468(),_0x4f8730),()=>{const _0x1e23c0=_0x3b8090();return null==_0x1e23c0?(_0x295468(),_0x551172([0x56,0x61,0x6c,0x69,0x64])):_0x551172(_0x1e8652-_0x1e23c0>(0x27d454df^_0x4c9959)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x551172([0x74,0x68,0x65,0x6e])](_0x2953d8)[_0x551172([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2953d8(_0x551172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27982f=0x3ee3e5f^_0x4c9959;function _0x295468(){const _0x168fff=_0x551172([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c3267(_0x4ae6ab(_0x59ccac)),_0x39720d=_0x12405e(_0x2c3267(window[_0x551172([0x4d,0x61,0x74,0x68])][_0x551172([0x63,0x65,0x69,0x6c])](_0x1e8652/_0x27982f)));window[_0x551172([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x551172([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x168fff,_0x39720d);}function _0x3b8090(){const _0xf53736=_0x551172([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c3267(_0x4ae6ab(_0x59ccac)),_0x304fcc=window[_0x551172([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x551172([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf53736);return _0x304fcc?window[_0x551172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12405e(_0x304fcc),0x10)*_0x27982f:null;}function _0x59e13b(_0x4af53a){return new window[(_0x551172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6e052e,_0x34158b)=>{_0x4af53a[_0x551172([0x74,0x68,0x65,0x6e])](_0x6e052e,_0x34158b),window[_0x551172([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34158b,0x3d9041f^_0x4c9959);});}}_0x3140d6[_0x551172([0x6f,0x6e])](_0x551172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26e2ee,_0x4e46a6)=>{if(_0x4e46a6[0x0]!=_0x59ccac)return _0x2953d8(_0x551172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e46a6[0x1]={..._0x4e46a6[0x1],[_0x551172([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33394a};},{[_0x551172([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x551172([0x68,0x69,0x67,0x68])}),_0x3140d6[_0x551172([0x6f,0x6e])](_0x551172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xaef58f=>{_0x12cb52(_0xaef58f[_0x551172([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x504de8=!0x0,_0x1c6f7(_0xaef58f[_0x551172([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x551172([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x551172([0x6c,0x6f,0x77])}),_0x1803b0[_0x551172([0x74,0x68,0x65,0x6e])](()=>{_0x504de8||_0x2953d8(_0x551172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16ad00(){return _0x3140d6[_0x551172([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x551172([0x76,0x69,0x65,0x77])][_0x551172([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x551172([0x61,0x75,0x74,0x6f]);}function _0xfe613c(){_0x3140d6[_0x551172([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x551172([0x76,0x69,0x65,0x77])][_0x551172([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x551172([0x61,0x75,0x74,0x6f]);}}function _0x5f37b9(_0x3ba887){const _0xa493e8=[new window[(_0x551172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f517d=>setTimeout(_0x4f517d,0x3d1ee13^_0x4c9959)),_0x1803b0[_0x551172([0x74,0x68,0x65,0x6e])](()=>new window[(_0x551172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1592=>{let _0x1c5061=0x0;_0x3140d6[_0x551172([0x6d,0x6f,0x64,0x65,0x6c])][_0x551172([0x6f,0x6e])](_0x551172([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c35f9,_0x1167f4)=>{_0x1167f4[0x0][_0x551172([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c5061++,_0x1c5061==(0x3d8d127^_0x4c9959)&&(_0x5f1592(),_0x3c35f9[_0x551172([0x6f,0x66,0x66])]());});}))];return window[_0x551172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x551172([0x72,0x61,0x63,0x65])](_0xa493e8)[_0x551172([0x74,0x68,0x65,0x6e])](()=>_0x3ba887);}async function _0x42e876(){await _0x1803b0,_0x3140d6[_0x551172([0x6d,0x6f,0x64,0x65,0x6c])][_0x551172([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a8f4c,_0x3140d6[_0x551172([0x6d,0x6f,0x64,0x65,0x6c])][_0x551172([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a8f4c,_0x3140d6[_0x551172([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x551172([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x458085(_0x4b03c3){const _0x23d4fe=_0x4ba4f2();_0x3140d6[_0x23d4fe]=_0x551172([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b03c3,_0x4b03c3!=_0x551172([0x56,0x61,0x6c,0x69,0x64])&&_0x42e876();}function _0x4ba4f2(){const _0x37845d=window[_0x551172([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x551172([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x551172([0x6e,0x6f,0x77])]())[_0x551172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x551172([0x2e]),'');let _0x496c04=_0x551172([0x52]);for(let _0x2c6db9=0x0;_0x2c6db9<_0x37845d[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c6db9+=0x2){let _0x1447f4=window[_0x551172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37845d[_0x551172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c6db9,_0x2c6db9+0x2));_0x1447f4>=_0x3157de[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1447f4-=_0x3157de[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x496c04+=_0x3157de[_0x1447f4];}return _0x496c04;}function _0x212b1b(){const _0x5c5a27=_0x471fc0[_0x551172([0x73,0x70,0x6c,0x69,0x74])](_0x551172([0x2e]));if(0x3!=_0x5c5a27[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x208da8(_0x5c5a27[0x1]);function _0x208da8(_0x388440){const _0x359cb8=_0x2a2a1a(_0x388440);return _0x359cb8&&_0x32f8d2()?_0x359cb8:null;function _0x32f8d2(){const _0x548929=_0x359cb8[_0x551172([0x6a,0x74,0x69])],_0x522a0f=window[_0x551172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x548929[_0x551172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x548929[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2214d7={..._0x359cb8,[_0x551172([0x6a,0x74,0x69])]:_0x548929[_0x551172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x548929[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2214d7[_0x551172([0x76,0x63])],_0x4ae6ab(_0x2214d7)==_0x522a0f;}}}async function _0x4b8d66(){let _0x697ad4=!0x0;try{const _0x490f6c=_0x471fc0[_0x551172([0x73,0x70,0x6c,0x69,0x74])](_0x551172([0x2e])),[_0x11c794,_0x5c1c9d,_0x3f7ee6]=_0x490f6c;return _0x228dec(_0x11c794),await _0x54f42d(_0x11c794,_0x5c1c9d,_0x3f7ee6),_0x697ad4;}catch{return!0x1;}function _0x228dec(_0x39b6c1){const _0x134a47=_0x2a2a1a(_0x39b6c1);_0x134a47&&_0x134a47[_0x551172([0x61,0x6c,0x67])]==_0x551172([0x45,0x53,0x32,0x35,0x36])||(_0x697ad4=!0x1);}async function _0x54f42d(_0x105254,_0x350f2b,_0x4d174f){const _0x28b94b=window[_0x551172([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x551172([0x66,0x72,0x6f,0x6d])](_0x1da312(_0x4d174f),_0x5c2aed=>_0x5c2aed[_0x551172([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x166f85=new window[(_0x551172([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x551172([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x105254+_0x551172([0x2e])+_0x350f2b),_0x25f951=window[_0x551172([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x551172([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25f951)return;const _0x52d322=await _0x25f951[_0x551172([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x551172([0x6a,0x77,0x6b]),_0x474adf,{[_0x551172([0x6e,0x61,0x6d,0x65])]:_0x551172([0x45,0x43,0x44,0x53,0x41]),[_0x551172([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x551172([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x551172([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25f951[_0x551172([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x551172([0x6e,0x61,0x6d,0x65])]:_0x551172([0x45,0x43,0x44,0x53,0x41]),[_0x551172([0x68,0x61,0x73,0x68])]:{[_0x551172([0x6e,0x61,0x6d,0x65])]:_0x551172([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52d322,_0x28b94b,_0x166f85)||(_0x697ad4=!0x1);}}function _0x2a2a1a(_0x32be49){return _0x32be49[_0x551172([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x551172([0x65,0x79]))?JSON[_0x551172([0x70,0x61,0x72,0x73,0x65])](_0x1da312(_0x32be49)):null;}function _0x1da312(_0x113e68){return window[_0x551172([0x61,0x74,0x6f,0x62])](_0x113e68[_0x551172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x551172([0x2b]))[_0x551172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x551172([0x2f])));}function _0x4ae6ab(_0x30491d){let _0x2e93e5=0x1505;function _0x239636(_0xc10fc3){for(let _0x1c3868=0x0;_0x1c3868<_0xc10fc3[_0x551172([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c3868++){const _0x30305e=_0xc10fc3[_0x551172([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c3868);_0x2e93e5=(_0x2e93e5<<0x5)+_0x2e93e5+_0x30305e,_0x2e93e5&=_0x2e93e5;}}function _0x352698(_0x110c26){Array[_0x551172([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x110c26)?_0x110c26[_0x551172([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x352698):_0x110c26&&typeof _0x110c26==_0x551172([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x551172([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x110c26)[_0x551172([0x73,0x6f,0x72,0x74])]()[_0x551172([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25e9d7,_0x34cfe4])=>{_0x239636(_0x25e9d7),_0x352698(_0x34cfe4);}):_0x239636(window[_0x551172([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x110c26));}return _0x352698(_0x30491d),_0x2e93e5>>>0x0;}function _0x2c3267(_0x2cfb93){return _0x2cfb93[_0x551172([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x551172([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x551172([0x30]));}function _0x12405e(_0x370667){return _0x370667[_0x551172([0x73,0x70,0x6c,0x69,0x74])]('')[_0x551172([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x551172([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a8f4c(){}function _0x551172(_0x247ccc){const _0x149cff=_0x1e60;return _0x247ccc[_0x149cff(0x1dd)](_0x192651=>String[_0x149cff(0x1b0)](_0x192651))[_0x149cff(0x1b3)]('');}_0x458085(await _0x2a6b48());}(this);}[_0x25a5a2(0x1a9)](){const _0x2f0084=_0x25a5a2,_0x2179fc=this[_0x2f0084(0x1d3)][_0x2f0084(0x1b4)][_0x2f0084(0x1e8)];_0x2179fc[_0x2f0084(0x1aa)](_0x2f0084(0x1e4))&&_0x2179fc[_0x2f0084(0x1d5)](_0x2f0084(0x1e4),{'allowAttributes':[_0x2f0084(0x1ac)]}),_0x2179fc[_0x2f0084(0x1aa)](_0x2f0084(0x1bc))&&_0x2179fc[_0x2f0084(0x1d5)](_0x2f0084(0x1bc),{'allowAttributes':[_0x2f0084(0x1ac)]});}[_0x25a5a2(0x1ab)](){const _0x3a5573=_0x25a5a2,_0x2a158c=this[_0x3a5573(0x1d3)];_0x2a158c[_0x3a5573(0x1f2)][_0x3a5573(0x1b9)](_0x3a5573(0x1f3))[_0x3a5573(0x1e1)]({'model':_0x3a5573(0x1ac),'view':_0x3a5573(0x1b5)}),_0x2a158c[_0x3a5573(0x1f2)][_0x3a5573(0x1b9)](_0x3a5573(0x1af))[_0x3a5573(0x1bb)]({'model':{'key':_0x3a5573(0x1ac),'value':_0x21899e=>_0x21899e[_0x3a5573(0x1bf)](_0x3a5573(0x1b5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x406264=_0x2a158c[_0x3a5573(0x1d1)][_0x3a5573(0x1c6)](_0x3a5573(0x1e9));_0x406264&&this[_0x3a5573(0x1d8)](_0x406264,_0x3a5573(0x1ad),(_0x494427,[_0x421444,_0x1be16b])=>{const _0x1a49f6=_0x3a5573;_0x421444[_0x1a49f6(0x1cb)](_0x1a49f6(0x1ac),_0x1be16b);});}[_0x25a5a2(0x1d9)](){const _0x72c6f1=_0x25a5a2,_0x1b53a5=this[_0x72c6f1(0x1d3)][_0x72c6f1(0x1be)][_0x72c6f1(0x1c6)](_0x72c6f1(0x1a7))||{},_0x1417c2=this[_0x72c6f1(0x1d3)][_0x72c6f1(0x1be)][_0x72c6f1(0x1c6)](_0x72c6f1(0x1da))||'';this[_0x72c6f1(0x1d0)]=_0x2459e0(_0x32da1b[_0x72c6f1(0x1f4)],_0x72c6f1(0x1ca),{..._0x1b53a5,'pubkey':_0x1417c2,'ctx-name':_0x72c6f1(0x1ef)+this[_0x72c6f1(0x1a8)],'sourceList':'','imgOnly':_0x72c6f1(0x1c0),'removeCopyright':_0x72c6f1(0x1c0),'localeName':this[_0x72c6f1(0x1d3)][_0x72c6f1(0x1f0)][_0x72c6f1(0x1e5)],'externalSourcesEmbedCss':_0x72c6f1(0x1f6)}),this[_0x72c6f1(0x1d0)][_0x72c6f1(0x1d6)]=_0x5a5388=>{const _0x1ef41d=_0x72c6f1;if(_0x1ef41d(0x1df)==_0x5a5388)return _0x1ef41d(0x1b8);},_0x32da1b[_0x72c6f1(0x1f4)][_0x72c6f1(0x1f1)][_0x72c6f1(0x1fb)](this[_0x72c6f1(0x1d0)]);}[_0x25a5a2(0x1b1)](){const _0x38dcae=_0x25a5a2;this[_0x38dcae(0x1ae)]=_0x2459e0(_0x32da1b[_0x38dcae(0x1f4)],_0x38dcae(0x1f7),{'ctx-name':_0x38dcae(0x1ef)+this[_0x38dcae(0x1a8)]}),_0x32da1b[_0x38dcae(0x1f4)][_0x38dcae(0x1f1)][_0x38dcae(0x1fb)](this[_0x38dcae(0x1ae)]);}[_0x25a5a2(0x1c2)](){const _0x259d8f=_0x25a5a2,_0x456cce=this[_0x259d8f(0x1d3)][_0x259d8f(0x1d1)][_0x259d8f(0x1c6)](_0x259d8f(0x1f9));_0x456cce&&this[_0x259d8f(0x1d8)](_0x456cce,_0x259d8f(0x1d4),()=>{const _0x1bb2fb=_0x259d8f,_0xa2e3c2=this[_0x1bb2fb(0x1d3)][_0x1bb2fb(0x1b4)][_0x1bb2fb(0x1f4)][_0x1bb2fb(0x1cf)][_0x1bb2fb(0x1b6)]();_0xa2e3c2&&_0xa2e3c2[_0x1bb2fb(0x1bf)](_0x1bb2fb(0x1ac))&&this[_0x1bb2fb(0x1d3)][_0x1bb2fb(0x1ce)][_0x1bb2fb(0x1c7)][_0x1bb2fb(0x1ee)](_0x1bb2fb(0x1c8),()=>{const _0x362fdc=_0x1bb2fb;_0x5c72a7(this[_0x362fdc(0x1d3)],_0xa2e3c2);});});const _0x487d90=this[_0x259d8f(0x1d3)][_0x259d8f(0x1d1)][_0x259d8f(0x1c6)](_0x259d8f(0x1f5));_0x487d90&&this[_0x259d8f(0x1d8)](_0x487d90,_0x259d8f(0x1d4),()=>{const _0x3d9bcc=_0x259d8f,_0xcaa864=this[_0x3d9bcc(0x1d3)][_0x3d9bcc(0x1b4)][_0x3d9bcc(0x1f4)][_0x3d9bcc(0x1cf)][_0x3d9bcc(0x1b6)]();_0xcaa864&&_0xcaa864[_0x3d9bcc(0x1bf)](_0x3d9bcc(0x1ac))&&this[_0x3d9bcc(0x1d3)][_0x3d9bcc(0x1ce)][_0x3d9bcc(0x1c7)][_0x3d9bcc(0x1ee)](_0x3d9bcc(0x1c8),()=>{const _0x39753a=_0x3d9bcc;_0x5c72a7(this[_0x39753a(0x1d3)],_0xcaa864);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5e4a29,ObservableMixin as _0x549056}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3f8aa5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x549151}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x454495}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1d8ecc}from'../../utils/uploadutils.js';import{getImageUrls as _0x1bacba,getImageDimension as _0x101183}from'../../utils/editingutils.js';import{isAncestor as _0x1f8a5f}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x549056(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x281565,_0x5dcd04,_0x58b90){super(),this['_editor']=_0x281565,this['_dialog']=_0x5dcd04,this['_imageElement']=_0x58b90,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 _0x34542c=this['_imageElement'],_0x4b7aa5=_0x34542c['getAttribute']('uploadcareImageId'),_0x5b03ef=_0x34542c['getAttribute']('src');if(_0x4b7aa5)await this['_loadImageInfo'](_0x4b7aa5,_0x5b03ef);else{if(this['_imageCache']['has'](_0x5b03ef)){const _0x47937c=this['_imageCache']['get'](_0x5b03ef);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47937c['url'],this['imageDimension']=_0x47937c['dimension'],this['imageId']=_0x47937c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ce9c0}=this['_editor'],t=_0x4ce9c0['t'],_0x20e076=new _0x454495(_0x4ce9c0,this['imageStatus'],this['_attributes']);_0x20e076['bind']('status')['to'](this,'imageStatus'),_0x20e076['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x20e076['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x20e076['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x20e076,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x549151,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x20e076,'position':_0x3f8aa5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x20e076['focus']();},'onHide':()=>{_0x20e076['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4791a2=>!_0x1f8a5f(_0x4791a2,_0x20e076['element'])}});}['_loadImageInfo'](_0x2c7c2f,_0x2d253b){return _0x1d8ecc['getInfo'](_0x2c7c2f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1f3d05=>{const {width:_0x29f2d7,height:_0x193d0c}=_0x1f3d05['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d253b,this['imageDimension']={'width':_0x29f2d7,'height':_0x193d0c},this['imageId']=_0x2c7c2f;})['catch'](_0x58d4c1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58d4c1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1401c9,_0x4a2f3a){return this['_getImageAsFile'](_0x1401c9)['then'](_0x5aeca4=>_0x1d8ecc['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':_0x4a2f3a['signal'],'file':_0x5aeca4,'onProgress':_0x10895b=>{_0x10895b&&_0x10895b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x10895b['value']));}}))['then'](_0x698a03=>{const {width:_0x170192,height:_0x16b680}=_0x698a03['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x698a03['cdnUrl'],this['imageDimension']={'width':_0x170192,'height':_0x16b680},this['imageId']=_0x698a03['uuid'],this['imageUploadProgress']=null;const _0x44fddb=_0x1401c9['getAttribute']('src');this['_imageCache']['set'](_0x44fddb,{'id':_0x698a03['uuid'],'url':_0x698a03['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3095d8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3095d8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2821a1,_0x68411b){_0x2821a1['on']('apply',(_0x1ab821,_0x378989)=>{this['_replaceImage'](_0x68411b,_0x378989['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2821a1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2821a1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5f40d1,_0x500281,_0xb2219a){const _0xccdc73=this['_editor'],{width:_0x26ad54,height:_0x3cdbe1}=_0x101183(_0x500281,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x25c4dc,imageSources:_0x18223f}=_0x1bacba(_0x500281,_0x26ad54);_0xccdc73['model']['change'](_0x284960=>{if('$graveyard'===_0x5f40d1['root']['rootName']){_0xccdc73['execute']('insertImage',{'imageType':_0x5f40d1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5f40d1['getAttributes']()),'uploadcareImageId':_0xb2219a,'src':_0x25c4dc,'sources':_0x18223f,'width':_0x26ad54,'height':_0x3cdbe1}});const _0x5bcf23=_0x5f40d1['getChildren']();_0x5f40d1=_0xccdc73['model']['document']['selection']['getSelectedElement']();for(const _0x3568d1 of _0x5bcf23)_0x284960['append'](_0x284960['cloneElement'](_0x3568d1),_0x5f40d1);}else _0x284960['setSelection'](_0x5f40d1,'on'),_0xccdc73['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5f40d1['getAttributes']()),'uploadcareImageId':_0xb2219a,'src':_0x25c4dc,'sources':_0x18223f,'width':_0x26ad54,'height':_0x3cdbe1},_0x5f40d1);_0x284960['setSelection'](_0x5f40d1,'on');});}async['_getImageAsFile'](_0x56287d){const _0x812731=_0x5e4a29['window'],_0x462f68=_0x5e4a29['document']['location']['href'],_0x4f7fa8=new _0x812731['URL'](_0x56287d['getAttribute']('src'),_0x462f68);if('data:'===_0x4f7fa8['protocol']){const _0x451003=_0x4f7fa8['href']['split'](','),_0x1b102b=_0x451003[0x0]['match'](/:(.*?);/)[0x1],_0x43d825=_0x1b102b['split']('/')[0x1],_0x4a54be=_0x812731['atob'](_0x451003[_0x451003['length']-0x1]);let _0x14f34f=_0x4a54be['length'];const _0x5e36c2=new _0x812731['Uint8Array'](_0x14f34f);for(;_0x14f34f--;)_0x5e36c2[_0x14f34f]=_0x4a54be['charCodeAt'](_0x14f34f);return new _0x812731['File']([_0x5e36c2],'image.'+_0x43d825,{'type':_0x1b102b});}const _0x54b701=_0x4f7fa8['href']['split']('/'),_0x29c351=_0x54b701[_0x54b701['length']-0x1],_0x573a9c=_0x29c351['split']('.')[0x1];return _0x812731['fetch'](_0x4f7fa8['href'])['then'](_0x197445=>_0x197445['clone']()['blob']())['then'](_0x41dea1=>new _0x812731['File']([_0x41dea1],_0x29c351,{'type':'image/'+_0x573a9c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x22f3d3,_0xa4425c){const _0x5ec91b=_0x2976,_0x599317=_0x22f3d3();while(!![]){try{const _0x1d7405=-parseInt(_0x5ec91b(0x16d))/0x1*(parseInt(_0x5ec91b(0x169))/0x2)+parseInt(_0x5ec91b(0x162))/0x3*(-parseInt(_0x5ec91b(0x166))/0x4)+-parseInt(_0x5ec91b(0x16e))/0x5+parseInt(_0x5ec91b(0x16f))/0x6*(-parseInt(_0x5ec91b(0x16c))/0x7)+parseInt(_0x5ec91b(0x167))/0x8*(-parseInt(_0x5ec91b(0x15f))/0x9)+parseInt(_0x5ec91b(0x16a))/0xa+parseInt(_0x5ec91b(0x170))/0xb;if(_0x1d7405===_0xa4425c)break;else _0x599317['push'](_0x599317['shift']());}catch(_0x454ec7){_0x599317['push'](_0x599317['shift']());}}}(_0x1dd5,0xe33d0));import{View as _0x27a23b}from'ckeditor5/src/ui.js';function _0x1dd5(){const _0x3398d5=['67922448khpUMM','bindTemplate','171SfihZX','set','uc-cloud-image-editor','12PoYDnu','setTemplate','ck-uploadcare-theme','imageSrc','442072pMxMcg','349240BdXpvW','uc-light','399912kKVHzh','3960690YwILXX','image-edit','203wYbgHf','8LKdInh','5841825vpCazb','331146RIqKBf'];_0x1dd5=function(){return _0x3398d5;};return _0x1dd5();}function _0x2976(_0xd2751b,_0x38e2df){const _0x1dd535=_0x1dd5();return _0x2976=function(_0x297633,_0x2e6cb4){_0x297633=_0x297633-0x15e;let _0xe64607=_0x1dd535[_0x297633];return _0xe64607;},_0x2976(_0xd2751b,_0x38e2df);}export class UploadcareImageEditFormEditingView extends _0x27a23b{constructor(_0x4e2df1,_0x3312f9){const _0x208dda=_0x2976;super(_0x4e2df1);const _0x3e930b=this[_0x208dda(0x15e)];this[_0x208dda(0x160)](_0x208dda(0x165),''),this[_0x208dda(0x163)]({'tag':_0x208dda(0x161),'attributes':{..._0x3312f9,'class':[_0x208dda(0x168),_0x208dda(0x164)],'ctx-name':_0x208dda(0x16b),'cdn-url':_0x3e930b['to'](_0x208dda(0x165))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x26a594}from'ckeditor5/src/icons.js';import{ButtonView as _0x32cfc0,IconView as _0x4571b0,View as _0x165e50}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x165e50{constructor(_0x161f16){super(_0x161f16);const t=_0x161f16['t'];this['set']('errorType',null);const _0x24cf28=new _0x32cfc0(_0x161f16);_0x24cf28['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x24cf28['withText']=!0x0,_0x24cf28['class']='ck-button-action',_0x24cf28['on']('execute',()=>{this['fire']('retry');}),_0x24cf28['bind']('isVisible')['to'](this,'errorType',_0x3e46f7=>'NotFound'!==_0x3e46f7);const _0x204efe=new _0x4571b0();_0x204efe['content']=_0x26a594,_0x204efe['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x127a26=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':[_0x204efe,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x127a26['to']('errorType',_0x53d533=>t('NotFound'!==_0x53d533?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x24cf28]},{'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 _0x5db9bd,View as _0x133153}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x133153{constructor(_0x5bda9a){super(_0x5bda9a);const t=_0x5bda9a['t'],_0x3fb559=this['bindTemplate'],_0x909e8f=new _0x5db9bd();_0x909e8f['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':[_0x909e8f,{'text':_0x3fb559['to']('imageUploadProgress',_0x5a3455=>t('Loading\x20image...')+'\x20('+(_0x5a3455||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x580e(_0x2813c9,_0x42b87d){const _0xdd2f54=_0xdd2f();return _0x580e=function(_0x580e5e,_0x201cfc){_0x580e5e=_0x580e5e-0x79;let _0x3a2f44=_0xdd2f54[_0x580e5e];return _0x3a2f44;},_0x580e(_0x2813c9,_0x42b87d);}const _0x549d84=_0x580e;(function(_0x25f777,_0xbd6071){const _0x650de7=_0x580e,_0x1ff0dd=_0x25f777();while(!![]){try{const _0x58501c=-parseInt(_0x650de7(0x8b))/0x1+-parseInt(_0x650de7(0x79))/0x2*(-parseInt(_0x650de7(0x87))/0x3)+-parseInt(_0x650de7(0x90))/0x4*(-parseInt(_0x650de7(0x8f))/0x5)+-parseInt(_0x650de7(0xab))/0x6*(-parseInt(_0x650de7(0x7a))/0x7)+parseInt(_0x650de7(0x9f))/0x8*(-parseInt(_0x650de7(0xa3))/0x9)+parseInt(_0x650de7(0x81))/0xa+-parseInt(_0x650de7(0xaa))/0xb;if(_0x58501c===_0xbd6071)break;else _0x1ff0dd['push'](_0x1ff0dd['shift']());}catch(_0x18d968){_0x1ff0dd['push'](_0x1ff0dd['shift']());}}}(_0xdd2f,0x8b190));import{View as _0x27b8db}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x375054}from'./uploadcareimageeditformloadingview.js';function _0xdd2f(){const _0x5368a7=['_errorView','clear','cdnUrl','2026AiaxYW','7NPnyEB','apply','set','error','retry','addEventListener','ck-uploadcare-form','3504290jMNeaM','getFocusableElement','toLowerCase','ck-reset_all-excluded','detail','nodeName','3279vKRZLg','uploading','_addErrorViewListeners','div','319200tdYrMO','addedNodes','render','querySelector','35gEoHwX','500596cYBkvE','change:status','setTemplate','_focusableView','disconnect','status','ready','_addUploadcareImageEditorListeners','_editingView','observe','add','_loadingView','createCollection','target','fire','8162664nkBuQk','cancel','addMany','_setView','9asLYHj','focus','element','length','filter','_items','_waitForImageEditorComponent','16766849NvsZnc','6599130HZcwKZ','uc-cloud-image-editor','once'];_0xdd2f=function(){return _0x5368a7;};return _0xdd2f();}import{UploadcareImageEditFormErrorView as _0x3aa02f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2cb5f8}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1b0260}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1b0260{[_0x549d84(0xa8)];[_0x549d84(0x9b)];[_0x549d84(0xae)];[_0x549d84(0x98)];[_0x549d84(0x93)];constructor(_0x19e1db,_0x22fd54,_0x24c933){const _0x4ec4d2=_0x549d84;super(_0x19e1db),this[_0x4ec4d2(0xa8)]=this[_0x4ec4d2(0x9c)](),this[_0x4ec4d2(0x9b)]=new _0x375054(_0x19e1db),this[_0x4ec4d2(0xae)]=new _0x3aa02f(_0x19e1db),this[_0x4ec4d2(0x98)]=new _0x2cb5f8(_0x19e1db,_0x24c933),this[_0x4ec4d2(0x93)]=new _0x27b8db(_0x19e1db),this[_0x4ec4d2(0x93)][_0x4ec4d2(0x92)](this[_0x4ec4d2(0x82)]()),this[_0x4ec4d2(0x7c)](_0x4ec4d2(0x95),_0x22fd54),this[_0x4ec4d2(0x92)]({'tag':_0x4ec4d2(0x8a),'attributes':{'class':['ck',_0x4ec4d2(0x84),_0x4ec4d2(0x80)],'tabindex':'-1'},'children':this[_0x4ec4d2(0xa8)]}),this[_0x4ec4d2(0xa2)](),this[_0x4ec4d2(0xad)](_0x4ec4d2(0x8d),()=>{const _0x34f199=_0x4ec4d2;this[_0x34f199(0xa9)](this[_0x34f199(0xa5)],_0x5a9370=>{const _0x23d07d=_0x34f199;this[_0x23d07d(0x97)](_0x5a9370);});}),this['on'](_0x4ec4d2(0x91),()=>{const _0x144a06=_0x4ec4d2;this[_0x144a06(0xa2)]();}),this[_0x4ec4d2(0x89)]();}[_0x549d84(0xa4)](){const _0x46f880=_0x549d84;this[_0x46f880(0xa5)][_0x46f880(0xa4)]();}[_0x549d84(0xa2)](){const _0xd38608=_0x549d84;switch(this[_0xd38608(0xa8)][_0xd38608(0xaf)](),this[_0xd38608(0x95)]){case _0xd38608(0x88):this[_0xd38608(0xa8)][_0xd38608(0x9a)](this[_0xd38608(0x9b)]);break;case _0xd38608(0x7d):this[_0xd38608(0xa8)][_0xd38608(0x9a)](this[_0xd38608(0xae)]);break;case _0xd38608(0x96):this[_0xd38608(0xa8)][_0xd38608(0xa1)]([this[_0xd38608(0x98)],this[_0xd38608(0x93)]]);}}[_0x549d84(0xa9)](_0x10a53b,_0x36814d){const _0xdfbc18=_0x549d84,_0x192414=_0xdfbc18(0xac),_0x297dc3=_0x10a53b[_0xdfbc18(0x8e)](_0x192414);if(_0x297dc3)return _0x36814d(_0x297dc3);const _0x1c4cf7=new MutationObserver(_0x5c4a82=>{const _0x4d0cc6=_0xdfbc18,_0x156d7b=_0x5c4a82[_0x4d0cc6(0xa7)](_0x40fe20=>_0x40fe20[_0x4d0cc6(0x9d)]===_0x10a53b&&_0x40fe20[_0x4d0cc6(0x8c)][_0x4d0cc6(0xa6)]>0x0&&_0x40fe20[_0x4d0cc6(0x8c)][0x0][_0x4d0cc6(0x86)][_0x4d0cc6(0x83)]()===_0x192414);_0x156d7b[_0x4d0cc6(0xa6)]&&(_0x1c4cf7[_0x4d0cc6(0x94)](),_0x36814d(_0x156d7b[0x0][_0x4d0cc6(0x8c)][0x0]));});_0x1c4cf7[_0xdfbc18(0x99)](_0x10a53b,{'childList':!0x0,'subtree':!0x0});}[_0x549d84(0x97)](_0x4487f5){const _0xecad35=_0x549d84;_0x4487f5[_0xecad35(0x7f)](_0xecad35(0x7b),_0x21563a=>{const _0x156724=_0xecad35;this[_0x156724(0x9e)](_0x156724(0x7b),{'imageSrc':_0x21563a[_0x156724(0x85)][_0x156724(0xb0)]});}),_0x4487f5[_0xecad35(0x7f)](_0xecad35(0xa0),()=>{const _0x44108c=_0xecad35;this[_0x44108c(0x9e)](_0x44108c(0xa0));});}[_0x549d84(0x89)](){const _0x20f0ef=_0x549d84;this[_0x20f0ef(0xae)]['on'](_0x20f0ef(0x7e),()=>{const _0x39b11b=_0x20f0ef;this[_0x39b11b(0x9e)](_0x39b11b(0x7e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2657dd=_0x3eb9;(function(_0x5ef729,_0x3d886a){const _0xd4a4c2=_0x3eb9,_0x55063f=_0x5ef729();while(!![]){try{const _0x53ebc8=parseInt(_0xd4a4c2(0xb2))/0x1+parseInt(_0xd4a4c2(0xbb))/0x2+-parseInt(_0xd4a4c2(0xc4))/0x3*(parseInt(_0xd4a4c2(0xc0))/0x4)+-parseInt(_0xd4a4c2(0xd0))/0x5+-parseInt(_0xd4a4c2(0xb7))/0x6*(parseInt(_0xd4a4c2(0xbe))/0x7)+-parseInt(_0xd4a4c2(0xb5))/0x8*(-parseInt(_0xd4a4c2(0xbd))/0x9)+-parseInt(_0xd4a4c2(0xcc))/0xa*(parseInt(_0xd4a4c2(0xd2))/0xb);if(_0x53ebc8===_0x3d886a)break;else _0x55063f['push'](_0x55063f['shift']());}catch(_0x550276){_0x55063f['push'](_0x55063f['shift']());}}}(_0x47c2,0xc79cf));function _0x3eb9(_0x4a9ff0,_0x1ea759){const _0x47c2e9=_0x47c2();return _0x3eb9=function(_0x3eb97a,_0x1377e4){_0x3eb97a=_0x3eb97a-0xb2;let _0x67e226=_0x47c2e9[_0x3eb97a];return _0x67e226;},_0x3eb9(_0x4a9ff0,_0x1ea759);}import{Command as _0x1d7be6}from'ckeditor5/src/core.js';function _0x47c2(){const _0xc5b0f2=['isActive','editor','plugins','55010xBlmmL','unbind','requires','uploadcare.allowExternalImagesEditing','5011095iNHKQc','element','1001kMfMHx','629490YgFcfJ','execute','getSelectedElement','4287112avfDhl','model','114792kcNmxL','_isEditable','imageInline','isEnabled','3105472BhRCbg','config','18kETOVO','7fHFYuR','document','215164fwcQVO','refresh','set','imageEditController','51YNneIz','imageBlock','selection','bind','get'];_0x47c2=function(){return _0xc5b0f2;};return _0x47c2();}import{Dialog as _0x2a39a1}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1ccda7}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x628e31}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1d7be6{[_0x2657dd(0xc3)];static get[_0x2657dd(0xce)](){return[_0x2a39a1];}[_0x2657dd(0xb8)];constructor(_0x2ade73){const _0x257f49=_0x2657dd;super(_0x2ade73),this[_0x257f49(0xc3)]=void 0x0,this[_0x257f49(0xb8)]=_0x628e31(_0x2ade73[_0x257f49(0xbc)][_0x257f49(0xc8)](_0x257f49(0xcf))||[]),this[_0x257f49(0xc2)]({'isActive':!0x1});}[_0x2657dd(0xc1)](){const _0x52b8c1=_0x2657dd,_0x35cbd0=this[_0x52b8c1(0xca)][_0x52b8c1(0xb6)][_0x52b8c1(0xbf)][_0x52b8c1(0xc6)][_0x52b8c1(0xb4)]();this[_0x52b8c1(0xba)]=this[_0x52b8c1(0xb8)](_0x35cbd0);}[_0x2657dd(0xb3)](){const _0x5784ab=_0x2657dd;this[_0x5784ab(0xc3)]&&(this[_0x5784ab(0xcd)](_0x5784ab(0xc9)),this[_0x5784ab(0xc3)]=void 0x0);const _0x46cbe4=this[_0x5784ab(0xca)][_0x5784ab(0xb6)][_0x5784ab(0xbf)][_0x5784ab(0xc6)][_0x5784ab(0xb4)]();_0x46cbe4&&(_0x46cbe4['is'](_0x5784ab(0xd1),_0x5784ab(0xc5))||_0x46cbe4['is'](_0x5784ab(0xd1),_0x5784ab(0xb9)))&&(this[_0x5784ab(0xc3)]=new _0x1ccda7(this[_0x5784ab(0xca)],this[_0x5784ab(0xca)][_0x5784ab(0xcb)][_0x5784ab(0xc8)](_0x2a39a1),_0x46cbe4),this[_0x5784ab(0xc7)](_0x5784ab(0xc9))['to'](this[_0x5784ab(0xc3)],_0x5784ab(0xc9)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1310e3=_0x5152;(function(_0x3a3acf,_0xbbba54){const _0x1ace1d=_0x5152,_0x36c908=_0x3a3acf();while(!![]){try{const _0x37fd3a=parseInt(_0x1ace1d(0x14a))/0x1+-parseInt(_0x1ace1d(0x152))/0x2+parseInt(_0x1ace1d(0x151))/0x3+parseInt(_0x1ace1d(0x148))/0x4+-parseInt(_0x1ace1d(0x153))/0x5+parseInt(_0x1ace1d(0x14c))/0x6+-parseInt(_0x1ace1d(0x156))/0x7;if(_0x37fd3a===_0xbbba54)break;else _0x36c908['push'](_0x36c908['shift']());}catch(_0x2effa4){_0x36c908['push'](_0x36c908['shift']());}}}(_0x3289,0x72c23));import{Plugin as _0x256c8a}from'ckeditor5/src/core.js';import{Notification as _0x2b41ad}from'ckeditor5/src/ui.js';function _0x3289(){const _0x1b6252=['uploadcareImageReplace','ImageEditing','isPremiumPlugin','UploadcareImageEditEditing','3011744HkVXUe','ImageUtils','788840VQDHUy','uploadcareImageEdit','4244334jNAUvZ','commands','requires','add','isOfficialPlugin','2338053tPLtJm','424150vDUCVy','3851930ICZbjb','pluginName','init','11032028nccaaL'];_0x3289=function(){return _0x1b6252;};return _0x3289();}function _0x5152(_0x5297a3,_0x184794){const _0x328939=_0x3289();return _0x5152=function(_0x5152cc,_0x884daa){_0x5152cc=_0x5152cc-0x144;let _0x4988c3=_0x328939[_0x5152cc];return _0x4988c3;},_0x5152(_0x5297a3,_0x184794);}import{UploadcareImageEditCommand as _0x181f1f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x254282}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xd54ec0}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x256c8a{static get[_0x1310e3(0x154)](){const _0x9d0acd=_0x1310e3;return _0x9d0acd(0x147);}static get[_0x1310e3(0x14e)](){const _0x27205d=_0x1310e3;return[_0xd54ec0,_0x2b41ad,_0x27205d(0x149),_0x27205d(0x145)];}static get[_0x1310e3(0x150)](){return!0x0;}static get[_0x1310e3(0x146)](){return!0x0;}[_0x1310e3(0x155)](){const _0x19a345=_0x1310e3,{editor:_0x43b591}=this;_0x43b591[_0x19a345(0x14d)][_0x19a345(0x14f)](_0x19a345(0x14b),new _0x181f1f(_0x43b591)),_0x43b591[_0x19a345(0x14d)][_0x19a345(0x14f)](_0x19a345(0x144),new _0x254282(_0x43b591));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1bbe50}from'ckeditor5/src/core.js';import{ButtonView as _0x5c84fa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5c5bf1}from'ckeditor5/src/icons.js';import{createElement as _0x20307c}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 _0x1bbe50{['_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 _0x86f30c=this['editor'];_0x86f30c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x563454=>{const _0x22a123=_0x86f30c['commands']['get']('uploadcareImageEdit'),_0x2868e3=new _0x5c84fa(_0x563454),t=_0x563454['t'];return _0x2868e3['set']({'icon':_0x5c5bf1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2868e3['bind']('isEnabled')['to'](_0x22a123),_0x2868e3['bind']('isOn')['to'](_0x22a123,'isActive'),this['listenTo'](_0x2868e3,'execute',()=>{_0x86f30c['execute']('uploadcareImageEdit'),_0x86f30c['editing']['view']['focus']();}),_0x2868e3;}),this['_initConfig']();}['_initConfig'](){const _0x3bfad6=_0x20307c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3bfad6),this['listenTo'](this['editor'],'destroy',()=>{_0x3bfad6['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
|
+
function _0x2ba9(){var _0x51fa16=['28523990XEOixU','focusTracker','forwardCycle','div','334040tCyExM','6742458xFVdmY','focusCycler','635MXbKfQ','989188Cozabk','getFocusableElement','3TDNiUW','fire','1UeiYDC','1965320RCepfK','true','23898qjGlDf','createCollection','1679788nJsgCh','bindTemplate'];_0x2ba9=function(){return _0x51fa16;};return _0x2ba9();}var _0x3bfbd8=_0x5ecc;(function(_0x2d7db6,_0x14a09c){var _0x5b32ae=_0x5ecc,_0x5264ac=_0x2d7db6();while(!![]){try{var _0xf5d24=parseInt(_0x5b32ae(0x1c0))/0x1*(-parseInt(_0x5b32ae(0x1bc))/0x2)+parseInt(_0x5b32ae(0x1be))/0x3*(-parseInt(_0x5b32ae(0x1c5))/0x4)+parseInt(_0x5b32ae(0x1bb))/0x5*(-parseInt(_0x5b32ae(0x1c3))/0x6)+-parseInt(_0x5b32ae(0x1b8))/0x7+-parseInt(_0x5b32ae(0x1c1))/0x8+-parseInt(_0x5b32ae(0x1b9))/0x9+parseInt(_0x5b32ae(0x1c7))/0xa;if(_0xf5d24===_0x14a09c)break;else _0x5264ac['push'](_0x5264ac['shift']());}catch(_0x198a94){_0x5264ac['push'](_0x5264ac['shift']());}}}(_0x2ba9,0x5f15e));import{FocusTracker as _0x2c443d}from'ckeditor5/src/utils.js';import{View as _0x77bd46,FocusCycler as _0x5b74b4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5ecc(_0x4a2ee2,_0x147bff){var _0x2ba91f=_0x2ba9();return _0x5ecc=function(_0x5eccb2,_0x3eae64){_0x5eccb2=_0x5eccb2-0x1b6;var _0x400f85=_0x2ba91f[_0x5eccb2];return _0x400f85;},_0x5ecc(_0x4a2ee2,_0x147bff);}export class DialogFocusManagerView extends _0x77bd46{[_0x3bfbd8(0x1c8)];[_0x3bfbd8(0x1ba)];constructor(_0x196020){var _0xf7df20=_0x3bfbd8;super(_0x196020),this[_0xf7df20(0x1c8)]=new _0x2c443d(),this[_0xf7df20(0x1ba)]=new _0x5b74b4({'focusables':this[_0xf7df20(0x1c4)](),'focusTracker':this[_0xf7df20(0x1c8)]});}[_0x3bfbd8(0x1bd)](){var _0x30289b=_0x3bfbd8;return{'tag':_0x30289b(0x1b7),'attributes':{'aria-hidden':_0x30289b(0x1c2),'tabindex':'0'},'on':{'focus':this[_0x30289b(0x1c6)]['to'](()=>{var _0x1156d9=_0x30289b;this[_0x1156d9(0x1ba)][_0x1156d9(0x1bf)](_0x1156d9(0x1b6));})}};}}
|