@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250302.0 → 0.0.0-nightly-next-20250302.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/ckeditor5-metadata.json +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/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 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -6
- 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.d.ts +1 -4
- 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/theme/icons/dropbox.svg +0 -11
- package/theme/icons/error.svg +0 -1
- package/theme/icons/facebook.svg +0 -11
- package/theme/icons/google-drive.svg +0 -11
- package/theme/icons/google-photos.svg +0 -11
- package/theme/icons/image-upload.svg +0 -11
- package/theme/icons/link.svg +0 -11
- package/theme/icons/local.svg +0 -11
- package/theme/icons/onedrive.svg +0 -11
- package/theme/icons/uploadcare-image-edit.svg +0 -11
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2752c7=_0x1dca;(function(_0x580d30,_0xf74010){const _0x5a98b9=_0x1dca,_0x2503e3=_0x580d30();while(!![]){try{const _0x48f30a=-parseInt(_0x5a98b9(0x196))/0x1*(-parseInt(_0x5a98b9(0x1af))/0x2)+-parseInt(_0x5a98b9(0x1a9))/0x3+-parseInt(_0x5a98b9(0x189))/0x4+-parseInt(_0x5a98b9(0x1cd))/0x5+-parseInt(_0x5a98b9(0x185))/0x6*(-parseInt(_0x5a98b9(0x1be))/0x7)+parseInt(_0x5a98b9(0x1b5))/0x8+parseInt(_0x5a98b9(0x1b4))/0x9;if(_0x48f30a===_0xf74010)break;else _0x2503e3['push'](_0x2503e3['shift']());}catch(_0x191a11){_0x2503e3['push'](_0x2503e3['shift']());}}}(_0x23c6,0xdccf7));import{Plugin as _0x4bba8a}from'ckeditor5/src/core.js';import{Dialog as _0x49bdf6}from'ckeditor5/src/ui.js';function _0x23c6(){const _0xeb42a3=['add','uploadcare.uploader','editing','uploader','isPremiumPlugin','insertImage','#uc-icon-arrow-down','cleanupImage','UploadcareEditing','map','_initConversion','207siKeuW','commands','imageBlock','appendChild','upcast','get','href','getSelectedElement','closeMax','schema','ctxElement','document','requires','\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','removeAttribute','true','for','init','_configElement','450018uCzFhf','isOfficialPlugin','pluginName','_initImageProcessingIndicator','selection','contentLanguage','9920lBRRIh','iconHrefResolver','_initCtx','editor','uploadcareImageId','1911915rwFBvc','10851232PLifnD','downcast','listenTo','_ctxElement','uploadcareImageReplace','uploadcare','uc-upload-ctx-provider','attributeToAttribute','imageInline','28NWeDVe','destroy','afterInit','querySelector','render','remove','isRegistered','input[uploadcare-file-input]','getAttribute','PictureEditing','uc-config','replaceImageSource','_initConfig','configElement','elementToAttribute','7867710dKwXbO','execute','fromCharCode','model','extend','body','_initSchema','join','locale','data-uc-image-id','uploadcare.pubkey','292704fywGdc','once','config','view','650832DirEbm','conversion'];_0x23c6=function(){return _0xeb42a3;};return _0x23c6();}import{createElement as _0x2bd368,global as _0xf631f7,uid as _0x28d319}from'ckeditor5/src/utils.js';import _0x391913 from'./uploadcarecommand.js';import _0x492bf5 from'./uploadcareuploadadapter.js';function _0x1dca(_0x7b6802,_0x253ca8){const _0x23c6d8=_0x23c6();return _0x1dca=function(_0x1dca98,_0x249371){_0x1dca98=_0x1dca98-0x17b;let _0x2daa32=_0x23c6d8[_0x1dca98];return _0x2daa32;},_0x1dca(_0x7b6802,_0x253ca8);}import{showImageProcessingIndicator as _0x13c7b4}from'./utils/editingutils.js';export default class i extends _0x4bba8a{constructor(){const _0x2051ef=_0x1dca;super(...arguments),this[_0x2051ef(0x1a8)]=null,this[_0x2051ef(0x1b8)]=null;}static get[_0x2752c7(0x1ab)](){const _0x19d72c=_0x2752c7;return _0x19d72c(0x193);}static get[_0x2752c7(0x1a2)](){const _0x434164=_0x2752c7;return[_0x434164(0x1c7),_0x492bf5,_0x49bdf6];}static get[_0x2752c7(0x1aa)](){return!0x0;}static get[_0x2752c7(0x18f)](){return!0x0;}get[_0x2752c7(0x1cb)](){const _0x58b588=_0x2752c7;return this[_0x58b588(0x1a8)];}get[_0x2752c7(0x1a0)](){const _0x546c88=_0x2752c7;return this[_0x546c88(0x1b8)];}[_0x2752c7(0x1a7)](){const _0x2ab552=_0x2752c7,_0x45232e=this[_0x2ab552(0x1b2)];_0x45232e[_0x2ab552(0x197)][_0x2ab552(0x18b)](_0x2ab552(0x1ba),new _0x391913(_0x45232e));}[_0x2752c7(0x1c0)](){const _0xabf9ac=_0x2752c7;this[_0xabf9ac(0x180)](),this[_0xabf9ac(0x195)](),this[_0xabf9ac(0x1ca)](),this[_0xabf9ac(0x1b1)](),this[_0xabf9ac(0x1ac)](),this[_0xabf9ac(0x1b7)](this[_0xabf9ac(0x1b2)],_0xabf9ac(0x1bf),()=>{const _0x4f1d99=_0xabf9ac;this[_0x4f1d99(0x1a8)]&&(this[_0x4f1d99(0x1a8)][_0x4f1d99(0x1c3)](),this[_0x4f1d99(0x1a8)]=null),this[_0x4f1d99(0x1b8)]&&(this[_0x4f1d99(0x1b8)][_0x4f1d99(0x1c3)](),this[_0x4f1d99(0x1b8)]=null);const _0x5540cc=_0xf631f7[_0x4f1d99(0x1a1)][_0x4f1d99(0x1c1)](_0x4f1d99(0x1c5));_0x5540cc&&_0x5540cc[_0x4f1d99(0x1c3)]();}),async function(_0x48b6aa){const _0x5878fa=_0x183808([0x79,0x4d,0x4e,0x73,0x45,0x50,0x42,0x41,0x57,0x56,0x47,0x4b,0x72,0x76,0x6c,0x4c,0x46,0x31,0x51,0x52,0x32,0x36,0x44,0x34,0x58,0x53,0x38,0x6f,0x6e,0x64,0x30,0x75,0x4f,0x63,0x69,0x65,0x74,0x49,0x6b,0x67,0x59,0x35,0x61,0x37,0x7a,0x43,0x33,0x55,0x4a,0x71,0x6d,0x39,0x48,0x54,0x66,0x77,0x62,0x5a,0x78,0x6a,0x68,0x70]),_0x1ce347=0x2dc31763,_0x2264d4=0x2dc4779b^_0x1ce347,_0x7bf06c=window[_0x183808([0x44,0x61,0x74,0x65])][_0x183808([0x6e,0x6f,0x77])](),_0x55615a=_0x48b6aa[_0x183808([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43833e=new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4155a9=>{_0x55615a[_0x183808([0x6f,0x6e,0x63,0x65])](_0x183808([0x72,0x65,0x61,0x64,0x79]),_0x4155a9);}),_0x94948c={[_0x183808([0x6b,0x74,0x79])]:_0x183808([0x45,0x43]),[_0x183808([0x75,0x73,0x65])]:_0x183808([0x73,0x69,0x67]),[_0x183808([0x63,0x72,0x76])]:_0x183808([0x50,0x2d,0x32,0x35,0x36]),[_0x183808([0x78])]:_0x183808([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]),[_0x183808([0x79])]:_0x183808([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]),[_0x183808([0x61,0x6c,0x67])]:_0x183808([0x45,0x53,0x32,0x35,0x36])},_0x58d861=_0x55615a[_0x183808([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x183808([0x67,0x65,0x74])](_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38b714(){let _0x2b2361,_0x46ddf7=null,_0x45d2da=null;try{if(_0x58d861==_0x183808([0x47,0x50,0x4c]))return _0x183808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b2361=_0x1d9fa5(),!_0x2b2361)return _0x183808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b2361[_0x183808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45d2da=_0x23ea72(_0x2b2361[_0x183808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b2361[_0x183808([0x6a,0x74,0x69])])),await _0xcbcd38()?_0x59be50()?_0x275143()?_0x183808([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b0eb0()?(_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46ddf7=_0x3ecd84(_0x183808([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183808([0x74,0x72,0x69,0x61,0x6c])&&(_0x46ddf7=_0x3ecd84(_0x183808([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ceedf()):_0x183808([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x183808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x183808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a74b0){return _0x183808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x275143(){const _0x1dd28c=[_0x183808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x183808([0x74,0x72,0x69,0x61,0x6c])][_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7bf06c/0x3e8:0xe10*_0x2264d4;return _0x2b2361[_0x183808([0x65,0x78,0x70])]<_0x1dd28c;}function _0x59be50(){const _0x507fcc=_0x2b2361[_0x183808([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x507fcc&&(!!_0x507fcc[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183808([0x2a]))||!!_0x507fcc[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183808([0x55,0x50,0x4c,0x43])));}function _0x2b0eb0(){const _0x1a84d6=_0x1dca,_0x5b61ab=_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b61ab||0x0==_0x5b61ab[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ee9b6}=new URL(window[_0x183808([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1a84d6(0x19c)]);if(_0x5b61ab[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ee9b6))return!0x0;const _0x9033f=_0x5ee9b6[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e]));return _0x5b61ab[_0x183808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48754c=>_0x48754c[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183808([0x2a])))[_0x183808([0x6d,0x61,0x70])](_0x469fab=>_0x469fab[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e])))[_0x183808([0x73,0x6f,0x6d,0x65])](_0x4d0dcb=>_0x9033f[_0x183808([0x65,0x76,0x65,0x72,0x79])]((_0x12fee3,_0x1705e0)=>_0x4d0dcb[_0x1705e0]===_0x12fee3||_0x4d0dcb[_0x1705e0]===_0x183808([0x2a])));}function _0x4ceedf(){return _0x46ddf7&&_0x45d2da?new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x411ce3,_0x2b55f9)=>{_0x46ddf7[_0x183808([0x74,0x68,0x65,0x6e])](_0x411ce3,_0x2b55f9),_0x45d2da[_0x183808([0x74,0x68,0x65,0x6e])](_0x5208e6=>{_0x5208e6!=_0x183808([0x56,0x61,0x6c,0x69,0x64])&&_0x411ce3(_0x5208e6);},_0x2b55f9);}):_0x46ddf7||_0x45d2da||_0x183808([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23ea72(_0x17a092,_0x13bdd7){return new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b0c67=>{if(_0x35df93())return _0x4b0c67(_0x183808([0x56,0x61,0x6c,0x69,0x64]));_0x2c9b9f(),_0x55615a[_0x183808([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x183808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2669bb=!0x1;const _0x5bd23a=_0x28d319();function _0x57b2b0(_0x2ebc64){return!!_0x2ebc64&&(typeof _0x2ebc64===_0x183808([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ebc64===_0x183808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ebc64[_0x183808([0x74,0x68,0x65,0x6e])]===_0x183808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ebc64[_0x183808([0x63,0x61,0x74,0x63,0x68])]===_0x183808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a0507(_0x420874){_0x438da2(_0x420874)[_0x183808([0x74,0x68,0x65,0x6e])](_0x20d67b=>{if(!_0x20d67b||_0x20d67b[_0x183808([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x183808([0x6f,0x6b]))return _0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x207175(_0x39ef5a(_0x5bd23a+_0x13bdd7))!=_0x20d67b[_0x183808([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x183808([0x56,0x61,0x6c,0x69,0x64]);})[_0x183808([0x74,0x68,0x65,0x6e])](_0x10e520=>(_0x379b7b(),_0x10e520),()=>{const _0x229bdd=_0x58544b();return null==_0x229bdd?(_0x379b7b(),_0x183808([0x56,0x61,0x6c,0x69,0x64])):_0x183808(_0x7bf06c-_0x229bdd>(0x9cf9363^_0x1ce347)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x183808([0x74,0x68,0x65,0x6e])](_0x4b0c67)[_0x183808([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b0c67(_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e6ee4=0x2df5f9e3^_0x1ce347;function _0x379b7b(){const _0x44bf30=_0x183808([0x6c,0x6c,0x63,0x74,0x2d])+_0x207175(_0x39ef5a(_0x17a092)),_0x37833f=_0x514953(_0x207175(window[_0x183808([0x4d,0x61,0x74,0x68])][_0x183808([0x63,0x65,0x69,0x6c])](_0x7bf06c/_0x3e6ee4)));window[_0x183808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183808([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44bf30,_0x37833f);}function _0x58544b(){const _0x2888d4=_0x183808([0x6c,0x6c,0x63,0x74,0x2d])+_0x207175(_0x39ef5a(_0x17a092)),_0x4c4f57=window[_0x183808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183808([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2888d4);return _0x4c4f57?window[_0x183808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514953(_0x4c4f57),0x10)*_0x3e6ee4:null;}function _0x438da2(_0x44dba4){return new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bf36f,_0x5341cb)=>{_0x44dba4[_0x183808([0x74,0x68,0x65,0x6e])](_0x3bf36f,_0x5341cb),window[_0x183808([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5341cb,0x2dc2c3a3^_0x1ce347);});}}_0x55615a[_0x183808([0x6f,0x6e])](_0x183808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5abc39,_0x2db646)=>{if(_0x2db646[0x0]!=_0x17a092)return _0x4b0c67(_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2db646[0x1]={..._0x2db646[0x1],[_0x183808([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bd23a};},{[_0x183808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183808([0x68,0x69,0x67,0x68])}),_0x55615a[_0x183808([0x6f,0x6e])](_0x183808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6ba8c5=>{_0x57b2b0(_0x6ba8c5[_0x183808([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2669bb=!0x0,_0x1a0507(_0x6ba8c5[_0x183808([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x183808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183808([0x6c,0x6f,0x77])}),_0x43833e[_0x183808([0x74,0x68,0x65,0x6e])](()=>{_0x2669bb||_0x4b0c67(_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35df93(){return _0x55615a[_0x183808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183808([0x76,0x69,0x65,0x77])][_0x183808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x183808([0x61,0x75,0x74,0x6f]);}function _0x2c9b9f(){_0x55615a[_0x183808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183808([0x76,0x69,0x65,0x77])][_0x183808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x183808([0x61,0x75,0x74,0x6f]);}}function _0x3ecd84(_0x4a3823){const _0x15f51b=[new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47b82c=>setTimeout(_0x47b82c,0x2dca29af^_0x1ce347)),_0x43833e[_0x183808([0x74,0x68,0x65,0x6e])](()=>new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5373c1=>{let _0x1d75f7=0x0;_0x55615a[_0x183808([0x6d,0x6f,0x64,0x65,0x6c])][_0x183808([0x6f,0x6e])](_0x183808([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x159853,_0x3a88f6)=>{_0x3a88f6[0x0][_0x183808([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d75f7++,_0x1d75f7==(0x2dc3169b^_0x1ce347)&&(_0x5373c1(),_0x159853[_0x183808([0x6f,0x66,0x66])]());});}))];return window[_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x183808([0x72,0x61,0x63,0x65])](_0x15f51b)[_0x183808([0x74,0x68,0x65,0x6e])](()=>_0x4a3823);}async function _0x5037a8(){await _0x43833e,_0x55615a[_0x183808([0x6d,0x6f,0x64,0x65,0x6c])][_0x183808([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1240f7,_0x55615a[_0x183808([0x6d,0x6f,0x64,0x65,0x6c])][_0x183808([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1240f7,_0x55615a[_0x183808([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x183808([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbe820d(_0x31ceea){const _0x3a0713=_0xa06b14();_0x55615a[_0x3a0713]=_0x183808([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31ceea,_0x31ceea!=_0x183808([0x56,0x61,0x6c,0x69,0x64])&&_0x5037a8();}function _0xa06b14(){const _0x5942f9=window[_0x183808([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x183808([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x183808([0x6e,0x6f,0x77])]())[_0x183808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x183808([0x2e]),'');let _0xfcc3e5=_0x183808([0x79]);for(let _0x2fcc84=0x0;_0x2fcc84<_0x5942f9[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fcc84+=0x2){let _0x28844f=window[_0x183808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5942f9[_0x183808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fcc84,_0x2fcc84+0x2));_0x28844f>=_0x5878fa[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28844f-=_0x5878fa[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfcc3e5+=_0x5878fa[_0x28844f];}return _0xfcc3e5;}function _0x1d9fa5(){const _0x2bac71=_0x58d861[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e]));if(0x3!=_0x2bac71[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d2fbb(_0x2bac71[0x1]);function _0x5d2fbb(_0x283006){const _0x968cb9=_0x187a01(_0x283006);return _0x968cb9&&_0xb46ef5()?_0x968cb9:null;function _0xb46ef5(){const _0x1616c7=_0x968cb9[_0x183808([0x6a,0x74,0x69])],_0x3b4b28=window[_0x183808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1616c7[_0x183808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1616c7[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x514af3={..._0x968cb9,[_0x183808([0x6a,0x74,0x69])]:_0x1616c7[_0x183808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1616c7[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x514af3[_0x183808([0x76,0x63])],_0x39ef5a(_0x514af3)==_0x3b4b28;}}}async function _0xcbcd38(){let _0x1ef4d=!0x0;try{const _0x41c0ae=_0x58d861[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e])),[_0x11e75e,_0x3fac91,_0x41b276]=_0x41c0ae;return _0x286054(_0x11e75e),await _0xae78df(_0x11e75e,_0x3fac91,_0x41b276),_0x1ef4d;}catch(_0x20aecb){return!0x1;}function _0x286054(_0x45ce81){const _0x4475fa=_0x187a01(_0x45ce81);_0x4475fa&&_0x4475fa[_0x183808([0x61,0x6c,0x67])]==_0x183808([0x45,0x53,0x32,0x35,0x36])||(_0x1ef4d=!0x1);}async function _0xae78df(_0x4640f6,_0x4a1c1c,_0x509bcb){const _0x4f4515=window[_0x183808([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x183808([0x66,0x72,0x6f,0x6d])](_0x3deab6(_0x509bcb),_0x1c6e57=>_0x1c6e57[_0x183808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43b46d=new window[(_0x183808([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x183808([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4640f6+_0x183808([0x2e])+_0x4a1c1c),_0x351742=window[_0x183808([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x183808([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x351742)return;const _0x1722f9=await _0x351742[_0x183808([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x183808([0x6a,0x77,0x6b]),_0x94948c,{[_0x183808([0x6e,0x61,0x6d,0x65])]:_0x183808([0x45,0x43,0x44,0x53,0x41]),[_0x183808([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x183808([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x183808([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x351742[_0x183808([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x183808([0x6e,0x61,0x6d,0x65])]:_0x183808([0x45,0x43,0x44,0x53,0x41]),[_0x183808([0x68,0x61,0x73,0x68])]:{[_0x183808([0x6e,0x61,0x6d,0x65])]:_0x183808([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1722f9,_0x4f4515,_0x43b46d)||(_0x1ef4d=!0x1);}}function _0x187a01(_0x2bbe0f){return _0x2bbe0f[_0x183808([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x183808([0x65,0x79]))?JSON[_0x183808([0x70,0x61,0x72,0x73,0x65])](_0x3deab6(_0x2bbe0f)):null;}function _0x3deab6(_0x5aa088){return window[_0x183808([0x61,0x74,0x6f,0x62])](_0x5aa088[_0x183808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x183808([0x2b]))[_0x183808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x183808([0x2f])));}function _0x39ef5a(_0x19e027){let _0x50e184=0x1505;function _0x51b886(_0x4e3d3b){for(let _0x5036b7=0x0;_0x5036b7<_0x4e3d3b[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5036b7++){const _0x80b7ce=_0x4e3d3b[_0x183808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5036b7);_0x50e184=(_0x50e184<<0x5)+_0x50e184+_0x80b7ce,_0x50e184&=_0x50e184;}}function _0x22ea67(_0x37e367){Array[_0x183808([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37e367)?_0x37e367[_0x183808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22ea67):_0x37e367&&typeof _0x37e367==_0x183808([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x183808([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37e367)[_0x183808([0x73,0x6f,0x72,0x74])]()[_0x183808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b2348,_0x44d0b5])=>{_0x51b886(_0x3b2348),_0x22ea67(_0x44d0b5);}):_0x51b886(window[_0x183808([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37e367));}return _0x22ea67(_0x19e027),_0x50e184>>>0x0;}function _0x207175(_0x259abf){return _0x259abf[_0x183808([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x183808([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x183808([0x30]));}function _0x514953(_0x15fa77){return _0x15fa77[_0x183808([0x73,0x70,0x6c,0x69,0x74])]('')[_0x183808([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x183808([0x6a,0x6f,0x69,0x6e])]('');}function _0x1240f7(){}function _0x183808(_0x2eed22){const _0x4cb75a=_0x1dca;return _0x2eed22[_0x4cb75a(0x194)](_0xca3a09=>String[_0x4cb75a(0x17c)](_0xca3a09))[_0x4cb75a(0x181)]('');}_0xbe820d(await _0x38b714());}(this);}[_0x2752c7(0x180)](){const _0x334fa5=_0x2752c7,_0x868805=this[_0x334fa5(0x1b2)][_0x334fa5(0x17d)][_0x334fa5(0x19f)];_0x868805[_0x334fa5(0x1c4)](_0x334fa5(0x198))&&_0x868805[_0x334fa5(0x17e)](_0x334fa5(0x198),{'allowAttributes':[_0x334fa5(0x1b3)]}),_0x868805[_0x334fa5(0x1c4)](_0x334fa5(0x1bd))&&_0x868805[_0x334fa5(0x17e)](_0x334fa5(0x1bd),{'allowAttributes':[_0x334fa5(0x1b3)]});}[_0x2752c7(0x195)](){const _0x35fee7=_0x2752c7,_0x3fe439=this[_0x35fee7(0x1b2)];_0x3fe439[_0x35fee7(0x18a)][_0x35fee7(0x1a6)](_0x35fee7(0x1b6))[_0x35fee7(0x1bc)]({'model':_0x35fee7(0x1b3),'view':_0x35fee7(0x183)}),_0x3fe439[_0x35fee7(0x18a)][_0x35fee7(0x1a6)](_0x35fee7(0x19a))[_0x35fee7(0x1cc)]({'model':{'key':_0x35fee7(0x1b3),'value':_0x5ca5de=>_0x5ca5de[_0x35fee7(0x1c6)](_0x35fee7(0x183))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7b175d=_0x3fe439[_0x35fee7(0x197)][_0x35fee7(0x19b)](_0x35fee7(0x1c9));_0x7b175d&&this[_0x35fee7(0x1b7)](_0x7b175d,_0x35fee7(0x192),(_0xdc44e1,[_0x44a6ad,_0x5d58a4])=>{const _0x323316=_0x35fee7;_0x44a6ad[_0x323316(0x1a4)](_0x323316(0x1b3),_0x5d58a4);});}[_0x2752c7(0x1ca)](){const _0x48bf38=_0x2752c7,_0x117c7a=this[_0x48bf38(0x1b2)][_0x48bf38(0x187)][_0x48bf38(0x19b)](_0x48bf38(0x18c))||{},_0x1568b5=this[_0x48bf38(0x1b2)][_0x48bf38(0x187)][_0x48bf38(0x19b)](_0x48bf38(0x184))||'';this[_0x48bf38(0x1a8)]=_0x2bd368(_0xf631f7[_0x48bf38(0x1a1)],_0x48bf38(0x1c8),{..._0x117c7a,'pubkey':_0x1568b5,'ctx-name':_0x48bf38(0x18e),'sourceList':'','imgOnly':_0x48bf38(0x1a5),'removeCopyright':_0x48bf38(0x1a5),'localeName':this[_0x48bf38(0x1b2)][_0x48bf38(0x182)][_0x48bf38(0x1ae)],'externalSourcesEmbedCss':_0x48bf38(0x1a3)}),this[_0x48bf38(0x1a8)][_0x48bf38(0x1b0)]=_0x4feebc=>{const _0x5138dc=_0x48bf38;if(_0x5138dc(0x19e)==_0x4feebc)return _0x5138dc(0x191);},_0xf631f7[_0x48bf38(0x1a1)][_0x48bf38(0x17f)][_0x48bf38(0x199)](this[_0x48bf38(0x1a8)]);}[_0x2752c7(0x1b1)](){const _0xdc8981=_0x2752c7;this[_0xdc8981(0x1b8)]=_0x2bd368(_0xf631f7[_0xdc8981(0x1a1)],_0xdc8981(0x1bb),{'ctx-name':_0xdc8981(0x18e)}),_0xf631f7[_0xdc8981(0x1a1)][_0xdc8981(0x17f)][_0xdc8981(0x199)](this[_0xdc8981(0x1b8)]);}[_0x2752c7(0x1ac)](){const _0x3e330a=_0x2752c7,_0x31b196=this[_0x3e330a(0x1b2)][_0x3e330a(0x197)][_0x3e330a(0x19b)](_0x3e330a(0x190));_0x31b196&&this[_0x3e330a(0x1b7)](_0x31b196,_0x3e330a(0x17b),()=>{const _0x12774c=_0x3e330a,_0x9f0e6c=this[_0x12774c(0x1b2)][_0x12774c(0x17d)][_0x12774c(0x1a1)][_0x12774c(0x1ad)][_0x12774c(0x19d)]();_0x9f0e6c&&_0x9f0e6c[_0x12774c(0x1c6)](_0x12774c(0x1b3))&&this[_0x12774c(0x1b2)][_0x12774c(0x18d)][_0x12774c(0x188)][_0x12774c(0x186)](_0x12774c(0x1c2),()=>{const _0x5979ff=_0x12774c;_0x13c7b4(this[_0x5979ff(0x1b2)],_0x9f0e6c);});});const _0x5c5b48=this[_0x3e330a(0x1b2)][_0x3e330a(0x197)][_0x3e330a(0x19b)](_0x3e330a(0x1b9));_0x5c5b48&&this[_0x3e330a(0x1b7)](_0x5c5b48,_0x3e330a(0x17b),()=>{const _0xcc341a=_0x3e330a,_0x251357=this[_0xcc341a(0x1b2)][_0xcc341a(0x17d)][_0xcc341a(0x1a1)][_0xcc341a(0x1ad)][_0xcc341a(0x19d)]();_0x251357&&_0x251357[_0xcc341a(0x1c6)](_0xcc341a(0x1b3))&&this[_0xcc341a(0x1b2)][_0xcc341a(0x18d)][_0xcc341a(0x188)][_0xcc341a(0x186)](_0xcc341a(0x1c2),()=>{const _0x28b41a=_0xcc341a;_0x13c7b4(this[_0x28b41a(0x1b2)],_0x251357);});});}}
|
|
23
|
+
function _0xd721(_0x2b9c33,_0x20fca7){const _0x4e7782=_0x4e77();return _0xd721=function(_0xd7214d,_0x485695){_0xd7214d=_0xd7214d-0x99;let _0x5b899f=_0x4e7782[_0xd7214d];return _0x5b899f;},_0xd721(_0x2b9c33,_0x20fca7);}const _0x237162=_0xd721;(function(_0x3be282,_0x3e78c8){const _0x297f62=_0xd721,_0x1434b8=_0x3be282();while(!![]){try{const _0x56860b=parseInt(_0x297f62(0xb1))/0x1*(-parseInt(_0x297f62(0xbb))/0x2)+-parseInt(_0x297f62(0xcc))/0x3+-parseInt(_0x297f62(0xc3))/0x4+-parseInt(_0x297f62(0xec))/0x5*(parseInt(_0x297f62(0xa5))/0x6)+parseInt(_0x297f62(0x9c))/0x7*(parseInt(_0x297f62(0x99))/0x8)+parseInt(_0x297f62(0xe6))/0x9*(-parseInt(_0x297f62(0xc6))/0xa)+parseInt(_0x297f62(0xe8))/0xb;if(_0x56860b===_0x3e78c8)break;else _0x1434b8['push'](_0x1434b8['shift']());}catch(_0x3097db){_0x1434b8['push'](_0x1434b8['shift']());}}}(_0x4e77,0xb0e32));import{Plugin as _0x558766}from'ckeditor5/src/core.js';import{Dialog as _0x29622c}from'ckeditor5/src/ui.js';import{createElement as _0x26cb4b,global as _0x286320,uid as _0x5d1cd2}from'ckeditor5/src/utils.js';import _0x3d33e9 from'./uploadcarecommand.js';import _0x2be5ce from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xb57d8c}from'./utils/editingutils.js';export default class i extends _0x558766{[_0x237162(0x9b)]=null;[_0x237162(0xb5)]=null;static get[_0x237162(0xa8)](){const _0x3c94bd=_0x237162;return _0x3c94bd(0xa9);}static get[_0x237162(0xa0)](){const _0x121413=_0x237162;return[_0x121413(0xed),_0x2be5ce,_0x29622c];}static get[_0x237162(0xe1)](){return!0x0;}static get[_0x237162(0xbf)](){return!0x0;}get[_0x237162(0xd9)](){const _0x1f0c2d=_0x237162;return this[_0x1f0c2d(0x9b)];}get[_0x237162(0xe4)](){const _0x364977=_0x237162;return this[_0x364977(0xb5)];}[_0x237162(0xe0)](){const _0xfb8eb9=_0x237162,_0x8df291=this[_0xfb8eb9(0xe7)];_0x8df291[_0xfb8eb9(0xde)][_0xfb8eb9(0xda)](_0xfb8eb9(0xac),new _0x3d33e9(_0x8df291));}[_0x237162(0xea)](){const _0x54c362=_0x237162;this[_0x54c362(0xc2)](),this[_0x54c362(0x9f)](),this[_0x54c362(0xbc)](),this[_0x54c362(0xa3)](),this[_0x54c362(0xd2)](),this[_0x54c362(0xe5)](this[_0x54c362(0xe7)],_0x54c362(0xeb),()=>{const _0x2ed50a=_0x54c362;this[_0x2ed50a(0x9b)]&&(this[_0x2ed50a(0x9b)][_0x2ed50a(0xb0)](),this[_0x2ed50a(0x9b)]=null),this[_0x2ed50a(0xb5)]&&(this[_0x2ed50a(0xb5)][_0x2ed50a(0xb0)](),this[_0x2ed50a(0xb5)]=null);const _0x1b2279=_0x286320[_0x2ed50a(0xb7)][_0x2ed50a(0xb3)](_0x2ed50a(0xdc));_0x1b2279&&_0x1b2279[_0x2ed50a(0xb0)]();}),async function(_0x330268){const _0x282678=_0x5c4493([0x66,0x5a,0x47,0x6e,0x6b,0x45,0x6c,0x35,0x4e,0x7a,0x4d,0x58,0x61,0x62,0x34,0x52,0x49,0x4a,0x74,0x59,0x68,0x70,0x30,0x50,0x4b,0x46,0x77,0x33,0x71,0x6d,0x42,0x54,0x79,0x73,0x38,0x53,0x78,0x69,0x4c,0x31,0x51,0x56,0x32,0x4f,0x6f,0x43,0x65,0x36,0x75,0x48,0x6a,0x57,0x63,0x39,0x64,0x55,0x41,0x67,0x44,0x37,0x76,0x72]),_0x1b6927=0x85e1710,_0x118e12=0x85977e8^_0x1b6927,_0x57f766=window[_0x5c4493([0x44,0x61,0x74,0x65])][_0x5c4493([0x6e,0x6f,0x77])](),_0x130b87=_0x330268[_0x5c4493([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4749c6=new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df75b=>{_0x130b87[_0x5c4493([0x6f,0x6e,0x63,0x65])](_0x5c4493([0x72,0x65,0x61,0x64,0x79]),_0x3df75b);}),_0x4056f3={[_0x5c4493([0x6b,0x74,0x79])]:_0x5c4493([0x45,0x43]),[_0x5c4493([0x75,0x73,0x65])]:_0x5c4493([0x73,0x69,0x67]),[_0x5c4493([0x63,0x72,0x76])]:_0x5c4493([0x50,0x2d,0x32,0x35,0x36]),[_0x5c4493([0x78])]:_0x5c4493([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]),[_0x5c4493([0x79])]:_0x5c4493([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]),[_0x5c4493([0x61,0x6c,0x67])]:_0x5c4493([0x45,0x53,0x32,0x35,0x36])},_0x23a95d=_0x130b87[_0x5c4493([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c4493([0x67,0x65,0x74])](_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x596398(){let _0x2e0b93,_0x42a8cd=null,_0x262762=null;try{if(_0x23a95d==_0x5c4493([0x47,0x50,0x4c]))return _0x5c4493([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e0b93=_0x4024ef(),!_0x2e0b93)return _0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e0b93[_0x5c4493([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x262762=_0x282177(_0x2e0b93[_0x5c4493([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e0b93[_0x5c4493([0x6a,0x74,0x69])])),await _0x5daa17()?_0x14b280()?_0x160d45()?_0x5c4493([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ddb10()?(_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c4493([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42a8cd=_0x4bb2b4(_0x5c4493([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c4493([0x74,0x72,0x69,0x61,0x6c])&&(_0x42a8cd=_0x4bb2b4(_0x5c4493([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x272adb()):_0x5c4493([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c4493([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b410b){return _0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x160d45(){const _0x466be1=[_0x5c4493([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c4493([0x74,0x72,0x69,0x61,0x6c])][_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f766/0x3e8:0xe10*_0x118e12;return _0x2e0b93[_0x5c4493([0x65,0x78,0x70])]<_0x466be1;}function _0x14b280(){const _0xd0b2d8=_0x2e0b93[_0x5c4493([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd0b2d8&&(!!_0xd0b2d8[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x2a]))||!!_0xd0b2d8[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x55,0x50,0x4c,0x43])));}function _0x4ddb10(){const _0x40ac42=_0xd721,_0x5dac64=_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5dac64||0x0==_0x5dac64[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b2dd2}=new URL(window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x40ac42(0xdf)]);if(_0x5dac64[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b2dd2))return!0x0;const _0x10ee44=_0x5b2dd2[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e]));return _0x5dac64[_0x5c4493([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x530c26=>_0x530c26[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x2a])))[_0x5c4493([0x6d,0x61,0x70])](_0x111dfd=>_0x111dfd[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e])))[_0x5c4493([0x73,0x6f,0x6d,0x65])](_0x2e7560=>_0x10ee44[_0x5c4493([0x65,0x76,0x65,0x72,0x79])]((_0x4a5ec2,_0x3ea489)=>_0x2e7560[_0x3ea489]===_0x4a5ec2||_0x2e7560[_0x3ea489]===_0x5c4493([0x2a])));}function _0x272adb(){return _0x42a8cd&&_0x262762?new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa9deb0,_0x9cbe8e)=>{_0x42a8cd[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xa9deb0,_0x9cbe8e),_0x262762[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x5f2cd5=>{_0x5f2cd5!=_0x5c4493([0x56,0x61,0x6c,0x69,0x64])&&_0xa9deb0(_0x5f2cd5);},_0x9cbe8e);}):_0x42a8cd||_0x262762||_0x5c4493([0x56,0x61,0x6c,0x69,0x64]);}}function _0x282177(_0x5b2641,_0x347e61){return new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbcd5e0=>{if(_0x3e9684())return _0xbcd5e0(_0x5c4493([0x56,0x61,0x6c,0x69,0x64]));_0x5ee08a(),_0x130b87[_0x5c4493([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3acb0d=!0x1;const _0x3f580e=_0x5d1cd2();function _0x1b6f4b(_0x1ca6b1){return!!_0x1ca6b1&&(typeof _0x1ca6b1===_0x5c4493([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ca6b1===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ca6b1[_0x5c4493([0x74,0x68,0x65,0x6e])]===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ca6b1[_0x5c4493([0x63,0x61,0x74,0x63,0x68])]===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd9a02e(_0x425627){_0x14724f(_0x425627)[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x1c64ac=>{if(!_0x1c64ac||_0x1c64ac[_0x5c4493([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c4493([0x6f,0x6b]))return _0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4afa4b(_0x3a110e(_0x3f580e+_0x347e61))!=_0x1c64ac[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c4493([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xdd749=>(_0x4233d6(),_0xdd749),()=>{const _0x3fd8de=_0x2a9c79();return null==_0x3fd8de?(_0x4233d6(),_0x5c4493([0x56,0x61,0x6c,0x69,0x64])):_0x5c4493(_0x57f766-_0x3fd8de>(0x2c529310^_0x1b6927)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xbcd5e0)[_0x5c4493([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d71f5=0x868f990^_0x1b6927;function _0x4233d6(){const _0x52cd62=_0x5c4493([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afa4b(_0x3a110e(_0x5b2641)),_0x1d0999=_0x2cf618(_0x4afa4b(window[_0x5c4493([0x4d,0x61,0x74,0x68])][_0x5c4493([0x63,0x65,0x69,0x6c])](_0x57f766/_0x1d71f5)));window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c4493([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52cd62,_0x1d0999);}function _0x2a9c79(){const _0x42d44d=_0x5c4493([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afa4b(_0x3a110e(_0x5b2641)),_0x2c76b0=window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c4493([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42d44d);return _0x2c76b0?window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cf618(_0x2c76b0),0x10)*_0x1d71f5:null;}function _0x14724f(_0xccbe82){return new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8108,_0x32b40f)=>{_0xccbe82[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x1d8108,_0x32b40f),window[_0x5c4493([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32b40f,0x85fc3d0^_0x1b6927);});}}_0x130b87[_0x5c4493([0x6f,0x6e])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c8bdb,_0x38514b)=>{if(_0x38514b[0x0]!=_0x5b2641)return _0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38514b[0x1]={..._0x38514b[0x1],[_0x5c4493([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f580e};},{[_0x5c4493([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c4493([0x68,0x69,0x67,0x68])}),_0x130b87[_0x5c4493([0x6f,0x6e])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4dc5e1=>{_0x1b6f4b(_0x4dc5e1[_0x5c4493([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3acb0d=!0x0,_0xd9a02e(_0x4dc5e1[_0x5c4493([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c4493([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c4493([0x6c,0x6f,0x77])}),_0x4749c6[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>{_0x3acb0d||_0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e9684(){return _0x130b87[_0x5c4493([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c4493([0x76,0x69,0x65,0x77])][_0x5c4493([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c4493([0x61,0x75,0x74,0x6f]);}function _0x5ee08a(){_0x130b87[_0x5c4493([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c4493([0x76,0x69,0x65,0x77])][_0x5c4493([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c4493([0x61,0x75,0x74,0x6f]);}}function _0x4bb2b4(_0x30634e){const _0x58e243=[new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6d01=>setTimeout(_0x4e6d01,0x85729dc^_0x1b6927)),_0x4749c6[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x850a0b=>{let _0x1d2a88=0x0;_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x6f,0x6e])](_0x5c4493([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x230d86,_0x1d2a12)=>{_0x1d2a12[0x0][_0x5c4493([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d2a88++,_0x1d2a88==(0x85e16e8^_0x1b6927)&&(_0x850a0b(),_0x230d86[_0x5c4493([0x6f,0x66,0x66])]());});}))];return window[_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c4493([0x72,0x61,0x63,0x65])](_0x58e243)[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>_0x30634e);}async function _0x5f4c10(){await _0x4749c6,_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17ef48,_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17ef48,_0x130b87[_0x5c4493([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f9385(_0x55a241){const _0x26150c=_0x662907();_0x130b87[_0x26150c]=_0x5c4493([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55a241,_0x55a241!=_0x5c4493([0x56,0x61,0x6c,0x69,0x64])&&_0x5f4c10();}function _0x662907(){const _0x55ae86=window[_0x5c4493([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c4493([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c4493([0x6e,0x6f,0x77])]())[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c4493([0x2e]),'');let _0xb2f8ab=_0x5c4493([0x66]);for(let _0x59b95d=0x0;_0x59b95d<_0x55ae86[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59b95d+=0x2){let _0x11b485=window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55ae86[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59b95d,_0x59b95d+0x2));_0x11b485>=_0x282678[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11b485-=_0x282678[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb2f8ab+=_0x282678[_0x11b485];}return _0xb2f8ab;}function _0x4024ef(){const _0xd083cd=_0x23a95d[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e]));if(0x3!=_0xd083cd[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x271649(_0xd083cd[0x1]);function _0x271649(_0x333643){const _0x37cf5e=_0x5613e0(_0x333643);return _0x37cf5e&&_0x430f07()?_0x37cf5e:null;function _0x430f07(){const _0x2de40f=_0x37cf5e[_0x5c4493([0x6a,0x74,0x69])],_0x1736ae=window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2de40f[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2de40f[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59e47e={..._0x37cf5e,[_0x5c4493([0x6a,0x74,0x69])]:_0x2de40f[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2de40f[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59e47e[_0x5c4493([0x76,0x63])],_0x3a110e(_0x59e47e)==_0x1736ae;}}}async function _0x5daa17(){let _0x2217f2=!0x0;try{const _0x5c8aa9=_0x23a95d[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e])),[_0x800cad,_0xc5e632,_0x3ce5a8]=_0x5c8aa9;return _0x24d6bd(_0x800cad),await _0x2443ce(_0x800cad,_0xc5e632,_0x3ce5a8),_0x2217f2;}catch(_0x436db2){return!0x1;}function _0x24d6bd(_0x229206){const _0x1dc141=_0x5613e0(_0x229206);_0x1dc141&&_0x1dc141[_0x5c4493([0x61,0x6c,0x67])]==_0x5c4493([0x45,0x53,0x32,0x35,0x36])||(_0x2217f2=!0x1);}async function _0x2443ce(_0x55bf8b,_0x3ec209,_0x13deb9){const _0x4e6d28=window[_0x5c4493([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c4493([0x66,0x72,0x6f,0x6d])](_0x25a9aa(_0x13deb9),_0x5626c3=>_0x5626c3[_0x5c4493([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xca070b=new window[(_0x5c4493([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c4493([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55bf8b+_0x5c4493([0x2e])+_0x3ec209),_0x4b1278=window[_0x5c4493([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c4493([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1278)return;const _0x40c7d9=await _0x4b1278[_0x5c4493([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c4493([0x6a,0x77,0x6b]),_0x4056f3,{[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x45,0x43,0x44,0x53,0x41]),[_0x5c4493([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c4493([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1278[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x45,0x43,0x44,0x53,0x41]),[_0x5c4493([0x68,0x61,0x73,0x68])]:{[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40c7d9,_0x4e6d28,_0xca070b)||(_0x2217f2=!0x1);}}function _0x5613e0(_0x498481){return _0x498481[_0x5c4493([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c4493([0x65,0x79]))?JSON[_0x5c4493([0x70,0x61,0x72,0x73,0x65])](_0x25a9aa(_0x498481)):null;}function _0x25a9aa(_0x5716aa){return window[_0x5c4493([0x61,0x74,0x6f,0x62])](_0x5716aa[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c4493([0x2b]))[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c4493([0x2f])));}function _0x3a110e(_0x2acb12){let _0x1eb5dc=0x1505;function _0x3907ab(_0x38fda9){for(let _0x557019=0x0;_0x557019<_0x38fda9[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x557019++){const _0x5d44ce=_0x38fda9[_0x5c4493([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x557019);_0x1eb5dc=(_0x1eb5dc<<0x5)+_0x1eb5dc+_0x5d44ce,_0x1eb5dc&=_0x1eb5dc;}}function _0x10cee6(_0x9b29fa){Array[_0x5c4493([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b29fa)?_0x9b29fa[_0x5c4493([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10cee6):_0x9b29fa&&typeof _0x9b29fa==_0x5c4493([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c4493([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b29fa)[_0x5c4493([0x73,0x6f,0x72,0x74])]()[_0x5c4493([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e9736,_0x1d2244])=>{_0x3907ab(_0x3e9736),_0x10cee6(_0x1d2244);}):_0x3907ab(window[_0x5c4493([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b29fa));}return _0x10cee6(_0x2acb12),_0x1eb5dc>>>0x0;}function _0x4afa4b(_0x2d9120){return _0x2d9120[_0x5c4493([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c4493([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c4493([0x30]));}function _0x2cf618(_0x2ef276){return _0x2ef276[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c4493([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c4493([0x6a,0x6f,0x69,0x6e])]('');}function _0x17ef48(){}function _0x5c4493(_0x5bd189){const _0x2c386b=_0xd721;return _0x5bd189[_0x2c386b(0xd1)](_0x27b42b=>String[_0x2c386b(0x9d)](_0x27b42b))[_0x2c386b(0xd4)]('');}_0x4f9385(await _0x596398());}(this);}[_0x237162(0xc2)](){const _0x43915f=_0x237162,_0x3fee76=this[_0x43915f(0xe7)][_0x43915f(0xa7)][_0x43915f(0xcd)];_0x3fee76[_0x43915f(0xca)](_0x43915f(0xdb))&&_0x3fee76[_0x43915f(0xbd)](_0x43915f(0xdb),{'allowAttributes':[_0x43915f(0xe2)]}),_0x3fee76[_0x43915f(0xca)](_0x43915f(0xab))&&_0x3fee76[_0x43915f(0xbd)](_0x43915f(0xab),{'allowAttributes':[_0x43915f(0xe2)]});}[_0x237162(0x9f)](){const _0x51c0da=_0x237162,_0x22ae0e=this[_0x51c0da(0xe7)];_0x22ae0e[_0x51c0da(0xd3)][_0x51c0da(0xa4)](_0x51c0da(0xb8))[_0x51c0da(0xaa)]({'model':_0x51c0da(0xe2),'view':_0x51c0da(0xa2)}),_0x22ae0e[_0x51c0da(0xd3)][_0x51c0da(0xa4)](_0x51c0da(0xd0))[_0x51c0da(0xe3)]({'model':{'key':_0x51c0da(0xe2),'value':_0x422f08=>_0x422f08[_0x51c0da(0xaf)](_0x51c0da(0xa2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x409c9d=_0x22ae0e[_0x51c0da(0xde)][_0x51c0da(0xae)](_0x51c0da(0xba));_0x409c9d&&this[_0x51c0da(0xe5)](_0x409c9d,_0x51c0da(0xc8),(_0x2e7498,[_0x578cda,_0x15fcee])=>{const _0x40d024=_0x51c0da;_0x578cda[_0x40d024(0xc1)](_0x40d024(0xe2),_0x15fcee);});}[_0x237162(0xbc)](){const _0x281ea5=_0x237162,_0x3d7bba=this[_0x281ea5(0xe7)][_0x281ea5(0xb6)][_0x281ea5(0xae)](_0x281ea5(0xc5))||{},_0x2e8363=this[_0x281ea5(0xe7)][_0x281ea5(0xb6)][_0x281ea5(0xae)](_0x281ea5(0xd6))||'';this[_0x281ea5(0x9b)]=_0x26cb4b(_0x286320[_0x281ea5(0xb7)],_0x281ea5(0xa1),{..._0x3d7bba,'pubkey':_0x2e8363,'ctx-name':_0x281ea5(0xd7),'sourceList':'','imgOnly':_0x281ea5(0xcf),'removeCopyright':_0x281ea5(0xcf),'localeName':this[_0x281ea5(0xe7)][_0x281ea5(0xb2)][_0x281ea5(0xd5)],'externalSourcesEmbedCss':_0x281ea5(0x9e)}),this[_0x281ea5(0x9b)][_0x281ea5(0xb9)]=_0x25608c=>{const _0x4c8865=_0x281ea5;if(_0x4c8865(0xdd)==_0x25608c)return _0x4c8865(0xa6);},_0x286320[_0x281ea5(0xb7)][_0x281ea5(0xbe)][_0x281ea5(0xb4)](this[_0x281ea5(0x9b)]);}[_0x237162(0xa3)](){const _0x4af657=_0x237162;this[_0x4af657(0xb5)]=_0x26cb4b(_0x286320[_0x4af657(0xb7)],_0x4af657(0xcb),{'ctx-name':_0x4af657(0xd7)}),_0x286320[_0x4af657(0xb7)][_0x4af657(0xbe)][_0x4af657(0xb4)](this[_0x4af657(0xb5)]);}[_0x237162(0xd2)](){const _0x6e6257=_0x237162,_0x519842=this[_0x6e6257(0xe7)][_0x6e6257(0xde)][_0x6e6257(0xae)](_0x6e6257(0xc0));_0x519842&&this[_0x6e6257(0xe5)](_0x519842,_0x6e6257(0xd8),()=>{const _0x14f6f3=_0x6e6257,_0x5d0365=this[_0x14f6f3(0xe7)][_0x14f6f3(0xa7)][_0x14f6f3(0xb7)][_0x14f6f3(0xc4)][_0x14f6f3(0xad)]();_0x5d0365&&_0x5d0365[_0x14f6f3(0xaf)](_0x14f6f3(0xe2))&&this[_0x14f6f3(0xe7)][_0x14f6f3(0x9a)][_0x14f6f3(0xce)][_0x14f6f3(0xc9)](_0x14f6f3(0xe9),()=>{const _0xfd50cf=_0x14f6f3;_0xb57d8c(this[_0xfd50cf(0xe7)],_0x5d0365);});});const _0x14b9b0=this[_0x6e6257(0xe7)][_0x6e6257(0xde)][_0x6e6257(0xae)](_0x6e6257(0xc7));_0x14b9b0&&this[_0x6e6257(0xe5)](_0x14b9b0,_0x6e6257(0xd8),()=>{const _0x4b1e04=_0x6e6257,_0x54d837=this[_0x4b1e04(0xe7)][_0x4b1e04(0xa7)][_0x4b1e04(0xb7)][_0x4b1e04(0xc4)][_0x4b1e04(0xad)]();_0x54d837&&_0x54d837[_0x4b1e04(0xaf)](_0x4b1e04(0xe2))&&this[_0x4b1e04(0xe7)][_0x4b1e04(0x9a)][_0x4b1e04(0xce)][_0x4b1e04(0xc9)](_0x4b1e04(0xe9),()=>{const _0x430553=_0x4b1e04;_0xb57d8c(this[_0x430553(0xe7)],_0x54d837);});});}}function _0x4e77(){const _0x1979c1=['uploader','execute','configElement','add','imageBlock','input[uploadcare-file-input]','closeMax','commands','href','init','isOfficialPlugin','uploadcareImageId','elementToAttribute','ctxElement','listenTo','339399bwiqYN','editor','50751437bZjPzn','render','afterInit','destroy','50zaCvSD','PictureEditing','96eLwRRV','editing','_configElement','136311gdwUbN','fromCharCode','\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','_initConversion','requires','uc-config','data-uc-image-id','_initCtx','for','305220dIdqaX','#uc-icon-arrow-down','model','pluginName','UploadcareEditing','attributeToAttribute','imageInline','uploadcare','getSelectedElement','get','getAttribute','remove','1yJSXGa','locale','querySelector','appendChild','_ctxElement','config','document','downcast','iconHrefResolver','replaceImageSource','1879310McWVrN','_initConfig','extend','body','isPremiumPlugin','insertImage','removeAttribute','_initSchema','4698892ElPtAw','selection','uploadcare.uploader','50dTHrUi','uploadcareImageReplace','cleanupImage','once','isRegistered','uc-upload-ctx-provider','3933840JHnYLi','schema','view','true','upcast','map','_initImageProcessingIndicator','conversion','join','contentLanguage','uploadcare.pubkey'];_0x4e77=function(){return _0x1979c1;};return _0x4e77();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x30652b,ObservableMixin as _0x129ddc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x24c100}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x24a76b}from'ckeditor5/src/icons.js';import _0x4d39e2 from'./uploadcareimageeditformview.js';import _0x312137 from'../../utils/uploadutils.js';import{getImageUrls as _0x146b83,getImageDimension as _0x59bf8a}from'../../utils/editingutils.js';import{isAncestor as _0x43c35a}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x129ddc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1f42ea,_0xdb8cbd,_0x52572e){super(),this['_editor']=_0x1f42ea,this['_dialog']=_0xdb8cbd,this['_imageElement']=_0x52572e,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 _0x283c3d=this['_imageElement'],_0x384fc4=_0x283c3d['getAttribute']('uploadcareImageId'),_0x110d74=_0x283c3d['getAttribute']('src');if(_0x384fc4)await this['_loadImageInfo'](_0x384fc4,_0x110d74);else{if(this['_imageCache']['has'](_0x110d74)){const _0x4f79b5=this['_imageCache']['get'](_0x110d74);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f79b5['url'],this['imageDimension']=_0x4f79b5['dimension'],this['imageId']=_0x4f79b5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xcb82ae}=this['_editor'],t=_0xcb82ae['t'],_0x5baa2c=new _0x4d39e2(_0xcb82ae,this['imageStatus'],this['_attributes']);_0x5baa2c['bind']('status')['to'](this,'imageStatus'),_0x5baa2c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5baa2c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5baa2c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5baa2c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24a76b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5baa2c,'position':_0x24c100['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5baa2c['focus']();},'onHide':()=>{_0x5baa2c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c4a39=>!_0x43c35a(_0x4c4a39,_0x5baa2c['element'])}});}['_loadImageInfo'](_0xf08f48,_0x208e51){return _0x312137['getInfo'](_0xf08f48,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x26df52=>{const {width:_0x43959a,height:_0x1e12f1}=_0x26df52['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x208e51,this['imageDimension']={'width':_0x43959a,'height':_0x1e12f1},this['imageId']=_0xf08f48;})['catch'](_0x15e1e6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15e1e6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x54c8d3,_0x229052){return this['_getImageAsFile'](_0x54c8d3)['then'](_0x152b3a=>_0x312137['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x229052['signal'],'file':_0x152b3a,'onProgress':_0x3274bc=>{_0x3274bc&&_0x3274bc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3274bc['value']));}}))['then'](_0x5e3de5=>{const {width:_0x1e228f,height:_0x345f65}=_0x5e3de5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e3de5['cdnUrl'],this['imageDimension']={'width':_0x1e228f,'height':_0x345f65},this['imageId']=_0x5e3de5['uuid'],this['imageUploadProgress']=null;const _0x436b96=_0x54c8d3['getAttribute']('src');this['_imageCache']['set'](_0x436b96,{'id':_0x5e3de5['uuid'],'url':_0x5e3de5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x15a5d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15a5d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x30b23e,_0x34e7df){_0x30b23e['on']('apply',(_0x25705f,_0x567acf)=>{this['_replaceImage'](_0x34e7df,_0x567acf['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x30b23e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x30b23e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3bf687,_0xc3bf1c,_0x75b18c){const _0x35298d=this['_editor'],{width:_0x57f138,height:_0x50e876}=_0x59bf8a(_0xc3bf1c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x6145b3,imageSources:_0x5817a7}=_0x146b83(_0xc3bf1c,_0x57f138);_0x35298d['model']['change'](_0xed7922=>{if('$graveyard'===_0x3bf687['root']['rootName']){_0x35298d['execute']('insertImage',{'imageType':_0x3bf687['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3bf687['getAttributes']()),'uploadcareImageId':_0x75b18c,'src':_0x6145b3,'sources':_0x5817a7,'width':_0x57f138,'height':_0x50e876}});const _0x118f4e=_0x3bf687['getChildren']();_0x3bf687=_0x35298d['model']['document']['selection']['getSelectedElement']();for(const _0xe7e247 of _0x118f4e)_0xed7922['append'](_0xed7922['cloneElement'](_0xe7e247),_0x3bf687);}else _0xed7922['setSelection'](_0x3bf687,'on'),_0x35298d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3bf687['getAttributes']()),'uploadcareImageId':_0x75b18c,'src':_0x6145b3,'sources':_0x5817a7,'width':_0x57f138,'height':_0x50e876},_0x3bf687);_0xed7922['setSelection'](_0x3bf687,'on');});}async['_getImageAsFile'](_0x509952){const _0x5c6d7a=_0x30652b['window'],_0x57a829=_0x30652b['document']['location']['href'],_0x3d49a2=new _0x5c6d7a['URL'](_0x509952['getAttribute']('src'),_0x57a829);if('data:'===_0x3d49a2['protocol']){const _0xbae0d1=_0x3d49a2['href']['split'](','),_0x1cd769=_0xbae0d1[0x0]['match'](/:(.*?);/)[0x1],_0x122f5e=_0x1cd769['split']('/')[0x1],_0x29b72a=_0x5c6d7a['atob'](_0xbae0d1[_0xbae0d1['length']-0x1]);let _0x6210c9=_0x29b72a['length'];const _0x54da6f=new _0x5c6d7a['Uint8Array'](_0x6210c9);for(;_0x6210c9--;)_0x54da6f[_0x6210c9]=_0x29b72a['charCodeAt'](_0x6210c9);return new _0x5c6d7a['File']([_0x54da6f],'image.'+_0x122f5e,{'type':_0x1cd769});}const _0x366b82=_0x3d49a2['href']['split']('/'),_0x5b6819=_0x366b82[_0x366b82['length']-0x1],_0x1a2899=_0x5b6819['split']('.')[0x1];return _0x5c6d7a['fetch'](_0x3d49a2['href'])['then'](_0x2536ba=>_0x2536ba['clone']()['blob']())['then'](_0x51bccb=>new _0x5c6d7a['File']([_0x51bccb],_0x5b6819,{'type':'image/'+_0x1a2899}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2806(_0x4b556e,_0xf81034){const _0x1913b0=_0x1913();return _0x2806=function(_0x2806da,_0xb6575f){_0x2806da=_0x2806da-0x157;let _0x2ea8eb=_0x1913b0[_0x2806da];return _0x2ea8eb;},_0x2806(_0x4b556e,_0xf81034);}function _0x1913(){const _0xae3730=['ck-uploadcare-theme','40geueqi','8166033MjJEKz','uc-cloud-image-editor','8emGrTs','93270xOXpUi','imageSrc','28726951IhreyZ','uc-light','5171292VcLlYW','149IiIuid','bindTemplate','image-edit','10821156OiRRMI','10brVlti','3166800edBZVE','11330wpIOxo','setTemplate','set'];_0x1913=function(){return _0xae3730;};return _0x1913();}(function(_0x21aae4,_0x2689d5){const _0x124aca=_0x2806,_0x11802c=_0x21aae4();while(!![]){try{const _0x16bba8=parseInt(_0x124aca(0x158))/0x1*(parseInt(_0x124aca(0x15e))/0x2)+parseInt(_0x124aca(0x166))/0x3*(parseInt(_0x124aca(0x162))/0x4)+parseInt(_0x124aca(0x15d))/0x5+-parseInt(_0x124aca(0x15b))/0x6+-parseInt(_0x124aca(0x157))/0x7+-parseInt(_0x124aca(0x165))/0x8*(parseInt(_0x124aca(0x163))/0x9)+parseInt(_0x124aca(0x15c))/0xa*(parseInt(_0x124aca(0x168))/0xb);if(_0x16bba8===_0x2689d5)break;else _0x11802c['push'](_0x11802c['shift']());}catch(_0x27b4e2){_0x11802c['push'](_0x11802c['shift']());}}}(_0x1913,0xe7ffb));import{View as _0x493504}from'ckeditor5/src/ui.js';export default class tt extends _0x493504{constructor(_0x504ec9,_0x4502c8){const _0xa21d7b=_0x2806;super(_0x504ec9);const _0x30528f=this[_0xa21d7b(0x159)];this[_0xa21d7b(0x160)](_0xa21d7b(0x167),''),this[_0xa21d7b(0x15f)]({'tag':_0xa21d7b(0x164),'attributes':{..._0x4502c8,'class':[_0xa21d7b(0x169),_0xa21d7b(0x161)],'ctx-name':_0xa21d7b(0x15a),'cdn-url':_0x30528f['to'](_0xa21d7b(0x167))}});}}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
7
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
11
8
|
/**
|
|
12
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0xe2c891,IconView as at,View as _0x53b406}from'ckeditor5/src/ui.js';export default class rt extends _0x53b406{constructor(_0x170ff3){super(_0x170ff3);const t=_0x170ff3['t'];this['set']('errorType',null);const _0x2295c3=new _0xe2c891(_0x170ff3);_0x2295c3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2295c3['withText']=!0x0,_0x2295c3['class']='ck-button-action',_0x2295c3['on']('execute',()=>{this['fire']('retry');}),_0x2295c3['bind']('isVisible')['to'](this,'errorType',_0x136880=>'NotFound'!==_0x136880);const _0x243ef2=new at();_0x243ef2['content']=et,_0x243ef2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57ddf5=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':[_0x243ef2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57ddf5['to']('errorType',_0x4a0305=>t('NotFound'!==_0x4a0305?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2295c3]},{'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 _0x1137fe,View as _0x1235bc}from'ckeditor5/src/ui.js';export default class ta extends _0x1235bc{constructor(_0x826c04){super(_0x826c04);const t=_0x826c04['t'],_0x52f2c4=this['bindTemplate'],_0x2cf6ba=new _0x1137fe();_0x2cf6ba['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':[_0x2cf6ba,{'text':_0x52f2c4['to']('imageUploadProgress',_0x5d718a=>t('Loading\x20image...')+'\x20('+(_0x5d718a||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
|
-
|
|
23
|
+
const _0x2acfd8=_0x3669;(function(_0x5f22e6,_0x36f634){const _0xbfbc2c=_0x3669,_0x36bf16=_0x5f22e6();while(!![]){try{const _0x5c4a3e=parseInt(_0xbfbc2c(0xcf))/0x1*(parseInt(_0xbfbc2c(0xc4))/0x2)+-parseInt(_0xbfbc2c(0xbc))/0x3+parseInt(_0xbfbc2c(0xb4))/0x4+parseInt(_0xbfbc2c(0xbd))/0x5+-parseInt(_0xbfbc2c(0xb9))/0x6+parseInt(_0xbfbc2c(0xd0))/0x7*(parseInt(_0xbfbc2c(0xd9))/0x8)+parseInt(_0xbfbc2c(0xb5))/0x9;if(_0x5c4a3e===_0x36f634)break;else _0x36bf16['push'](_0x36bf16['shift']());}catch(_0x123a45){_0x36bf16['push'](_0x36bf16['shift']());}}}(_0x1f5c,0x263a3));import{View as _0x12e8ce}from'ckeditor5/src/ui.js';import _0x303508 from'./uploadcareimageeditformloadingview.js';function _0x3669(_0x574fa3,_0x3c7d54){const _0x1f5c48=_0x1f5c();return _0x3669=function(_0x3669b3,_0x520eaa){_0x3669b3=_0x3669b3-0xb4;let _0x4ce354=_0x1f5c48[_0x3669b3];return _0x4ce354;},_0x3669(_0x574fa3,_0x3c7d54);}function _0x1f5c(){const _0x484530=['_errorView','fire','617376QbNAjS','target','apply','800529JCyrKI','991490doLCib','_items','change:status','disconnect','querySelector','_waitForImageEditorComponent','observe','2hhvobO','ready','render','_addErrorViewListeners','add','retry','cdnUrl','_loadingView','detail','_editingView','filter','46617agbZfb','127603kkRRhx','toLowerCase','_addUploadcareImageEditorListeners','ck-uploadcare-form','clear','_setView','createCollection','getFocusableElement','error','16UrIMnl','nodeName','_focusableView','set','uploading','focus','setTemplate','ck-reset_all-excluded','addEventListener','addedNodes','once','addMany','div','element','cancel','status','length','596976suFnDc','861309ezRMOF','uc-cloud-image-editor'];_0x1f5c=function(){return _0x484530;};return _0x1f5c();}import _0x19d456 from'./uploadcareimageeditformerrorview.js';import _0x3bbc67 from'./uploadcareimageeditformeditingview.js';import _0x1f5b88 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x1f5b88{[_0x2acfd8(0xbe)];[_0x2acfd8(0xcb)];[_0x2acfd8(0xb7)];[_0x2acfd8(0xcd)];[_0x2acfd8(0xdb)];constructor(_0xc5f76,_0x5c0724,_0x4c3618){const _0x211d31=_0x2acfd8;super(_0xc5f76),this[_0x211d31(0xbe)]=this[_0x211d31(0xd6)](),this[_0x211d31(0xcb)]=new _0x303508(_0xc5f76),this[_0x211d31(0xb7)]=new _0x19d456(_0xc5f76),this[_0x211d31(0xcd)]=new _0x3bbc67(_0xc5f76,_0x4c3618),this[_0x211d31(0xdb)]=new _0x12e8ce(_0xc5f76),this[_0x211d31(0xdb)][_0x211d31(0xdf)](this[_0x211d31(0xd7)]()),this[_0x211d31(0xdc)](_0x211d31(0xe8),_0x5c0724),this[_0x211d31(0xdf)]({'tag':_0x211d31(0xe5),'attributes':{'class':['ck',_0x211d31(0xe0),_0x211d31(0xd3)],'tabindex':'-1'},'children':this[_0x211d31(0xbe)]}),this[_0x211d31(0xd5)](),this[_0x211d31(0xe3)](_0x211d31(0xc6),()=>{const _0x341e04=_0x211d31;this[_0x341e04(0xc2)](this[_0x341e04(0xe6)],_0x4aab08=>{const _0x10f175=_0x341e04;this[_0x10f175(0xd2)](_0x4aab08);});}),this['on'](_0x211d31(0xbf),()=>{const _0xf4075c=_0x211d31;this[_0xf4075c(0xd5)]();}),this[_0x211d31(0xc7)]();}[_0x2acfd8(0xde)](){const _0x36aff5=_0x2acfd8;this[_0x36aff5(0xe6)][_0x36aff5(0xde)]();}[_0x2acfd8(0xd5)](){const _0x9b30f=_0x2acfd8;switch(this[_0x9b30f(0xbe)][_0x9b30f(0xd4)](),this[_0x9b30f(0xe8)]){case _0x9b30f(0xdd):this[_0x9b30f(0xbe)][_0x9b30f(0xc8)](this[_0x9b30f(0xcb)]);break;case _0x9b30f(0xd8):this[_0x9b30f(0xbe)][_0x9b30f(0xc8)](this[_0x9b30f(0xb7)]);break;case _0x9b30f(0xc5):this[_0x9b30f(0xbe)][_0x9b30f(0xe4)]([this[_0x9b30f(0xcd)],this[_0x9b30f(0xdb)]]);}}[_0x2acfd8(0xc2)](_0x1b5ab4,_0x21a126){const _0x58b80d=_0x2acfd8,_0x52a644=_0x58b80d(0xb6),_0x39365c=_0x1b5ab4[_0x58b80d(0xc1)](_0x52a644);if(_0x39365c)return _0x21a126(_0x39365c);const _0x5dde5b=new MutationObserver(_0x328114=>{const _0x335936=_0x58b80d,_0x263efe=_0x328114[_0x335936(0xce)](_0x45b918=>_0x45b918[_0x335936(0xba)]===_0x1b5ab4&&_0x45b918[_0x335936(0xe2)][_0x335936(0xe9)]>0x0&&_0x45b918[_0x335936(0xe2)][0x0][_0x335936(0xda)][_0x335936(0xd1)]()===_0x52a644);_0x263efe[_0x335936(0xe9)]&&(_0x5dde5b[_0x335936(0xc0)](),_0x21a126(_0x263efe[0x0][_0x335936(0xe2)][0x0]));});_0x5dde5b[_0x58b80d(0xc3)](_0x1b5ab4,{'childList':!0x0,'subtree':!0x0});}[_0x2acfd8(0xd2)](_0x4c0228){const _0x5ede0f=_0x2acfd8;_0x4c0228[_0x5ede0f(0xe1)](_0x5ede0f(0xbb),_0x4cd851=>{const _0x3a84d0=_0x5ede0f;this[_0x3a84d0(0xb8)](_0x3a84d0(0xbb),{'imageSrc':_0x4cd851[_0x3a84d0(0xcc)][_0x3a84d0(0xca)]});}),_0x4c0228[_0x5ede0f(0xe1)](_0x5ede0f(0xe7),()=>{const _0x3297f1=_0x5ede0f;this[_0x3297f1(0xb8)](_0x3297f1(0xe7));});}[_0x2acfd8(0xc7)](){const _0x43599f=_0x2acfd8;this[_0x43599f(0xb7)]['on'](_0x43599f(0xc9),()=>{const _0x4e3478=_0x43599f;this[_0x4e3478(0xb8)](_0x4e3478(0xc9));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x174044=_0x326a;(function(_0x31ea54,_0x1ea430){const _0x1561a7=_0x326a,_0x273226=_0x31ea54();while(!![]){try{const _0x1a2d14=-parseInt(_0x1561a7(0x1a9))/0x1*(parseInt(_0x1561a7(0x19c))/0x2)+-parseInt(_0x1561a7(0x1aa))/0x3*(parseInt(_0x1561a7(0x1ae))/0x4)+-parseInt(_0x1561a7(0x1a2))/0x5+parseInt(_0x1561a7(0x1a1))/0x6+parseInt(_0x1561a7(0x1a3))/0x7*(parseInt(_0x1561a7(0x1b0))/0x8)+-parseInt(_0x1561a7(0x1af))/0x9+-parseInt(_0x1561a7(0x19a))/0xa*(-parseInt(_0x1561a7(0x1ac))/0xb);if(_0x1a2d14===_0x1ea430)break;else _0x273226['push'](_0x273226['shift']());}catch(_0x573439){_0x273226['push'](_0x273226['shift']());}}}(_0x3a80,0x9a436));import{Command as _0x3147f1}from'ckeditor5/src/core.js';import{Dialog as _0x467725}from'ckeditor5/src/ui.js';function _0x3a80(){const _0x20d2e2=['81252ZtjQHb','837882WpIoXU','8nQExEt','set','plugins','element','execute','editor','model','unbind','get','bind','getSelectedElement','391910vsySrr','document','396692gTHzcI','isActive','uploadcare.allowExternalImagesEditing','_isEditable','imageInline','4705680GoxoPO','6047955LugLiS','1839229bnDloM','refresh','isEnabled','requires','selection','config','4LInfed','18tbzswl','imageEditController','506DyRzqM','imageBlock'];_0x3a80=function(){return _0x20d2e2;};return _0x3a80();}import _0x49615e from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1b14e9}from'../utils/editingutils.js';function _0x326a(_0x212fbe,_0xe5930){const _0x3a804c=_0x3a80();return _0x326a=function(_0x326a59,_0x410139){_0x326a59=_0x326a59-0x193;let _0x122017=_0x3a804c[_0x326a59];return _0x122017;},_0x326a(_0x212fbe,_0xe5930);}export default class J extends _0x3147f1{[_0x174044(0x1ab)];static get[_0x174044(0x1a6)](){return[_0x467725];}[_0x174044(0x19f)];constructor(_0xd564a6){const _0x1472c2=_0x174044;super(_0xd564a6),this[_0x1472c2(0x1ab)]=void 0x0,this[_0x1472c2(0x19f)]=_0x1b14e9(_0xd564a6[_0x1472c2(0x1a8)][_0x1472c2(0x197)](_0x1472c2(0x19e))||[]),this[_0x1472c2(0x1b1)]({'isActive':!0x1});}[_0x174044(0x1a4)](){const _0x246e71=_0x174044,_0x4cc8fd=this[_0x246e71(0x194)][_0x246e71(0x195)][_0x246e71(0x19b)][_0x246e71(0x1a7)][_0x246e71(0x199)]();this[_0x246e71(0x1a5)]=this[_0x246e71(0x19f)](_0x4cc8fd);}[_0x174044(0x193)](){const _0x4eac82=_0x174044;this[_0x4eac82(0x1ab)]&&(this[_0x4eac82(0x196)](_0x4eac82(0x19d)),this[_0x4eac82(0x1ab)]=void 0x0);const _0x496d53=this[_0x4eac82(0x194)][_0x4eac82(0x195)][_0x4eac82(0x19b)][_0x4eac82(0x1a7)][_0x4eac82(0x199)]();_0x496d53&&(_0x496d53['is'](_0x4eac82(0x1b3),_0x4eac82(0x1ad))||_0x496d53['is'](_0x4eac82(0x1b3),_0x4eac82(0x1a0)))&&(this[_0x4eac82(0x1ab)]=new _0x49615e(this[_0x4eac82(0x194)],this[_0x4eac82(0x194)][_0x4eac82(0x1b2)][_0x4eac82(0x197)](_0x467725),_0x496d53),this[_0x4eac82(0x198)](_0x4eac82(0x19d))['to'](this[_0x4eac82(0x1ab)],_0x4eac82(0x19d)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1eec6c=_0x2277;function _0x2277(_0x374645,_0x3ffa2f){const _0x221d9e=_0x221d();return _0x2277=function(_0x2277e1,_0x2d7331){_0x2277e1=_0x2277e1-0x160;let _0x32030b=_0x221d9e[_0x2277e1];return _0x32030b;},_0x2277(_0x374645,_0x3ffa2f);}(function(_0x4a39a7,_0x39165a){const _0x18a030=_0x2277,_0x4004ba=_0x4a39a7();while(!![]){try{const _0x5a38de=-parseInt(_0x18a030(0x16f))/0x1*(parseInt(_0x18a030(0x175))/0x2)+parseInt(_0x18a030(0x164))/0x3*(-parseInt(_0x18a030(0x16b))/0x4)+parseInt(_0x18a030(0x16a))/0x5*(-parseInt(_0x18a030(0x16c))/0x6)+parseInt(_0x18a030(0x179))/0x7*(parseInt(_0x18a030(0x166))/0x8)+parseInt(_0x18a030(0x178))/0x9*(-parseInt(_0x18a030(0x161))/0xa)+parseInt(_0x18a030(0x176))/0xb*(-parseInt(_0x18a030(0x160))/0xc)+-parseInt(_0x18a030(0x174))/0xd*(-parseInt(_0x18a030(0x165))/0xe);if(_0x5a38de===_0x39165a)break;else _0x4004ba['push'](_0x4004ba['shift']());}catch(_0x4b64c8){_0x4004ba['push'](_0x4004ba['shift']());}}}(_0x221d,0x61707));function _0x221d(){const _0x462c57=['isPremiumPlugin','init','ImageUtils','117VBaEPv','446GqluNg','584881UoVgfr','UploadcareImageEditEditing','1344321sYLYdU','7TUwjZP','12akLPcF','10qtHGoW','add','uploadcareImageEdit','3HJnQGf','2303518kLqtAG','1091072MnOwUA','uploadcareImageReplace','pluginName','requires','2961925pRXtno','302096gVSXiB','6dAztKv','isOfficialPlugin','commands','1559GryXsL','ImageEditing'];_0x221d=function(){return _0x462c57;};return _0x221d();}import{Plugin as _0x4af499}from'ckeditor5/src/core.js';import{Notification as _0x371e7f}from'ckeditor5/src/ui.js';import _0x4bb0f7 from'./uploadcareimageeditcommand.js';import _0xc13a1a from'./uploadcareimagereplacecommand.js';import _0x37dcd5 from'../uploadcareediting.js';export default class g extends _0x4af499{static get[_0x1eec6c(0x168)](){const _0x4b835f=_0x1eec6c;return _0x4b835f(0x177);}static get[_0x1eec6c(0x169)](){const _0x1b1998=_0x1eec6c;return[_0x37dcd5,_0x371e7f,_0x1b1998(0x173),_0x1b1998(0x170)];}static get[_0x1eec6c(0x16d)](){return!0x0;}static get[_0x1eec6c(0x171)](){return!0x0;}[_0x1eec6c(0x172)](){const _0x234f82=_0x1eec6c,{editor:_0x37c7d0}=this;_0x37c7d0[_0x234f82(0x16e)][_0x234f82(0x162)](_0x234f82(0x163),new _0x4bb0f7(_0x37c7d0)),_0x37c7d0[_0x234f82(0x16e)][_0x234f82(0x162)](_0x234f82(0x167),new _0xc13a1a(_0x37c7d0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x221c6b}from'ckeditor5/src/core.js';import{ButtonView as _0x4d1c8c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x245e2a}from'ckeditor5/src/icons.js';import{createElement as _0x55ef93}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x221c6b{['_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 _0x112ab2=this['editor'];_0x112ab2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x457256=>{const _0x237884=_0x112ab2['commands']['get']('uploadcareImageEdit'),_0x158ac2=new _0x4d1c8c(_0x457256),t=_0x457256['t'];return _0x158ac2['set']({'icon':_0x245e2a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x158ac2['bind']('isEnabled')['to'](_0x237884),_0x158ac2['bind']('isOn')['to'](_0x237884,'isActive'),this['listenTo'](_0x158ac2,'execute',()=>{_0x112ab2['execute']('uploadcareImageEdit'),_0x112ab2['editing']['view']['focus']();}),_0x158ac2;}),this['_initConfig']();}['_initConfig'](){const _0x3c1da0=_0x55ef93(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c1da0),this['listenTo'](this['editor'],'destroy',()=>{_0x3c1da0['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x44747b=_0x3811;(function(_0x2d8dbc,_0x38212e){const _0x1d83e5=_0x3811,_0x33fe8a=_0x2d8dbc();while(!![]){try{const _0x47d882=-parseInt(_0x1d83e5(0x1eb))/0x1+parseInt(_0x1d83e5(0x1f1))/0x2+parseInt(_0x1d83e5(0x1f5))/0x3+-parseInt(_0x1d83e5(0x1ed))/0x4+parseInt(_0x1d83e5(0x1f3))/0x5*(-parseInt(_0x1d83e5(0x1f6))/0x6)+parseInt(_0x1d83e5(0x1e5))/0x7*(-parseInt(_0x1d83e5(0x1ee))/0x8)+parseInt(_0x1d83e5(0x1f4))/0x9*(parseInt(_0x1d83e5(0x1e2))/0xa);if(_0x47d882===_0x38212e)break;else _0x33fe8a['push'](_0x33fe8a['shift']());}catch(_0x56dacb){_0x33fe8a['push'](_0x33fe8a['shift']());}}}(_0x4de8,0x826c4));import{Command as _0x3fcf52}from'ckeditor5/src/core.js';function _0x3811(_0x3c8b25,_0x30c082){const _0x4de85f=_0x4de8();return _0x3811=function(_0x381107,_0x343d00){_0x381107=_0x381107-0x1de;let _0xffca5c=_0x4de85f[_0x381107];return _0xffca5c;},_0x3811(_0x3c8b25,_0x30c082);}export default class O extends _0x3fcf52{[_0x44747b(0x1de)](){const _0x393239=_0x44747b,_0x306bb9=this[_0x393239(0x1ea)][_0x393239(0x1e8)][_0x393239(0x1e4)][_0x393239(0x1ef)][_0x393239(0x1e3)]();this[_0x393239(0x1e9)]=Boolean(_0x306bb9&&(_0x306bb9['is'](_0x393239(0x1df),_0x393239(0x1f2))||_0x306bb9['is'](_0x393239(0x1df),_0x393239(0x1e0))));}[_0x44747b(0x1ec)](_0x214c22){const _0x30e202=_0x44747b,_0x5cf8f5=this[_0x30e202(0x1ea)][_0x30e202(0x1e8)][_0x30e202(0x1e4)][_0x30e202(0x1ef)][_0x30e202(0x1e3)]();this[_0x30e202(0x1ea)][_0x30e202(0x1e8)][_0x30e202(0x1f7)](_0xecddf1=>{const _0x3d4d52=_0x30e202;_0xecddf1[_0x3d4d52(0x1e6)](_0x214c22,_0x5cf8f5),_0xecddf1[_0x3d4d52(0x1e7)](_0x3d4d52(0x1e1),_0x5cf8f5),_0xecddf1[_0x3d4d52(0x1e7)](_0x3d4d52(0x1f0),_0x5cf8f5);});}}function _0x4de8(){const _0x41d5e2=['change','refresh','element','imageInline','srcset','1290JqoBYP','getSelectedElement','document','3591mvoVIT','setAttributes','removeAttribute','model','isEnabled','editor','708481OOQUHG','execute','1276080JtVrrY','4696LcDYkQ','selection','sizes','917716GgMPsM','imageBlock','5480GeuMoN','118602HmTxFp','828408mRgAfs','3132aCSTaE'];_0x4de8=function(){return _0x41d5e2;};return _0x4de8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x114cd2=_0x38fa;(function(_0x15d629,_0xacbaa2){var _0x2b6650=_0x38fa,_0x42a9c8=_0x15d629();while(!![]){try{var _0x759067=-parseInt(_0x2b6650(0x1f2))/0x1*(-parseInt(_0x2b6650(0x1ef))/0x2)+-parseInt(_0x2b6650(0x1f4))/0x3*(-parseInt(_0x2b6650(0x1fd))/0x4)+parseInt(_0x2b6650(0x1f1))/0x5+-parseInt(_0x2b6650(0x1f0))/0x6+-parseInt(_0x2b6650(0x1fb))/0x7+-parseInt(_0x2b6650(0x1f6))/0x8+-parseInt(_0x2b6650(0x1f7))/0x9*(-parseInt(_0x2b6650(0x1fc))/0xa);if(_0x759067===_0xacbaa2)break;else _0x42a9c8['push'](_0x42a9c8['shift']());}catch(_0x145a60){_0x42a9c8['push'](_0x42a9c8['shift']());}}}(_0x33bb,0x779dc));function _0x33bb(){var _0x1f123a=['isPremiumPlugin','pluginName','6758689axaSBk','1587190RcDDju','28hArSvl','363608EJKLlx','170364mQetYU','1352910zjZYIo','4VujWmp','requires','317886yqvmvK','UploadcareImageEdit','7124312IVnOPV','36VoOZEY','isOfficialPlugin'];_0x33bb=function(){return _0x1f123a;};return _0x33bb();}import{Plugin as _0x4bc4d7}from'ckeditor5/src/core.js';import _0x9563bb from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x40ccf3 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x38fa(_0x1e962e,_0x4c9302){var _0x33bb68=_0x33bb();return _0x38fa=function(_0x38fad0,_0x3c8f4f){_0x38fad0=_0x38fad0-0x1ef;var _0x12ed86=_0x33bb68[_0x38fad0];return _0x12ed86;},_0x38fa(_0x1e962e,_0x4c9302);}export default class P extends _0x4bc4d7{static get[_0x114cd2(0x1fa)](){var _0xff46d4=_0x114cd2;return _0xff46d4(0x1f5);}static get[_0x114cd2(0x1f3)](){return[_0x9563bb,_0x40ccf3];}static get[_0x114cd2(0x1f8)](){return!0x0;}static get[_0x114cd2(0x1f9)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38d380=_0x1e76;(function(_0x4da363,_0x33a600){const _0x4b2296=_0x1e76,_0xa94293=_0x4da363();while(!![]){try{const _0x4886da=parseInt(_0x4b2296(0x12d))/0x1*(-parseInt(_0x4b2296(0x137))/0x2)+-parseInt(_0x4b2296(0xfa))/0x3*(parseInt(_0x4b2296(0x105))/0x4)+parseInt(_0x4b2296(0x121))/0x5+-parseInt(_0x4b2296(0x11e))/0x6+parseInt(_0x4b2296(0x133))/0x7+parseInt(_0x4b2296(0x101))/0x8*(parseInt(_0x4b2296(0x109))/0x9)+-parseInt(_0x4b2296(0x123))/0xa;if(_0x4886da===_0x33a600)break;else _0xa94293['push'](_0xa94293['shift']());}catch(_0x4ae22f){_0xa94293['push'](_0xa94293['shift']());}}}(_0x1a79,0x57ab0));import{Plugin as _0x4f5f04}from'ckeditor5/src/core.js';import{IconDropbox as _0x1f2921,IconFacebook as _0xf355af,IconGoogleDrive as _0x1e1ae1,IconGooglePhotos as _0x39c9d0,IconUploadcareImageUpload as _0x106772,IconUploadcareLink as _0x55ce31,IconOneDrive as _0x4aa2a9}from'ckeditor5/src/icons.js';import{ButtonView as _0x44873b,MenuBarMenuListItemButtonView as _0x330254}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3acd75}from'./uploadcareconfig.js';import{getTranslation as _0x29e6d2}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1e76(_0x363432,_0x3bb54e){const _0x1a793e=_0x1a79();return _0x1e76=function(_0x1e7603,_0x4f3cfc){_0x1e7603=_0x1e7603-0xf2;let _0x34a272=_0x1a793e[_0x1e7603];return _0x34a272;},_0x1e76(_0x363432,_0x3bb54e);}function _0x1a79(){const _0x50d814=['uploadcare','commands','entries','uploadcareLicenseKeyUsageLimit','162144SVChMX','map','has','3168315JPfKzN','isEnabled','7726580mAwJXg','_normalizeConfigSourceList','get','UploadcareUI','reduce','icon','url','expired','_createToolbarButton','push','366gPnRGU','licenseKey','ImageInsertUI','invalid','destroy','trialLimit','4643681MAGGOh','forEach','editor','featureNotAllowed','394TLwKER','_createMenuBarButtons','Dropbox','URL','isOfficialPlugin','Facebook','label','uploadcareLicenseKeyDomainLimit','evaluationLimit','_getIntegrationKey','Insert','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyEvaluationLimit','isPremiumPlugin','_createDropdownButtons','text','uploadcareLicenseKeyNotAllowed','tooltip','OneDrive','config','123JPFDpG','uploadcare.uploader.sourceList','assetManager','GPhotos','_createButton','GDrive','afterInit','54376OCUxmu','uploadcareLicenseKeyValid','execute','pluginName','33644Adkhkg','locale','upload','_showLicenseError','369GfqeRF','init','withText','uploadcareLicenseKeyTrialLimit','type','uploadcareLicenseKeyExpired','registerIntegration','bind','isImageSelected','_licenseKeyCheckInterval','Replace','Uploadcare','plugins','usageLimit','Local','shortText','domainLimit'];_0x1a79=function(){return _0x50d814;};return _0x1a79();}import'../theme/uploadcareimageedit.css';export default class e extends _0x4f5f04{[_0x38d380(0x12e)];[_0x38d380(0x112)];static get[_0x38d380(0x104)](){const _0x249cc7=_0x38d380;return _0x249cc7(0x126);}static get[_0x38d380(0x13b)](){return!0x0;}static get[_0x38d380(0xf3)](){return!0x0;}[_0x38d380(0x10a)](){const _0x4c8391=_0x38d380;this[_0x4c8391(0x12e)]=this[_0x4c8391(0x135)][_0x4c8391(0xf9)][_0x4c8391(0x125)](_0x4c8391(0x12e));const _0x228502=this[_0x4c8391(0x135)];this[_0x4c8391(0x112)]=setInterval(()=>{const _0x286ba=_0x4c8391;let _0x1de05c;for(const _0x5569df in _0x228502){const _0x5aacf7=_0x5569df,_0x526e0e=_0x228502[_0x5aacf7];if(_0x286ba(0x102)==_0x526e0e||_0x286ba(0x142)==_0x526e0e||_0x286ba(0x10e)==_0x526e0e||_0x286ba(0x13e)==_0x526e0e||_0x286ba(0xf6)==_0x526e0e||_0x286ba(0xf2)==_0x526e0e||_0x286ba(0x10c)==_0x526e0e||_0x286ba(0x11d)==_0x526e0e){delete _0x228502[_0x5aacf7],_0x1de05c=_0x526e0e,clearInterval(this[_0x286ba(0x112)]),this[_0x286ba(0x112)]=void 0x0;break;}}_0x286ba(0x142)==_0x1de05c&&_0x228502[_0x286ba(0x108)](_0x286ba(0x130)),_0x286ba(0x10e)==_0x1de05c&&_0x228502[_0x286ba(0x108)](_0x286ba(0x12a)),_0x286ba(0x13e)==_0x1de05c&&_0x228502[_0x286ba(0x108)](_0x286ba(0x119)),_0x286ba(0xf6)==_0x1de05c&&_0x228502[_0x286ba(0x108)](_0x286ba(0x136),_0x286ba(0x114)),_0x286ba(0xf2)==_0x1de05c&&_0x228502[_0x286ba(0x108)](_0x286ba(0x13f)),_0x286ba(0x10c)==_0x1de05c&&_0x228502[_0x286ba(0x108)](_0x286ba(0x132)),_0x286ba(0x11d)==_0x1de05c&&_0x228502[_0x286ba(0x108)](_0x286ba(0x116));},0x3e8);}[_0x38d380(0x100)](){const _0x3d2a63=_0x38d380,{editor:_0x1a6c88}=this,_0xc60559=_0x1a6c88[_0x3d2a63(0x11b)][_0x3d2a63(0x125)](_0x3d2a63(0x11a));if(!_0xc60559)return;const _0x43a464=this[_0x3d2a63(0x124)](_0x1a6c88[_0x3d2a63(0xf9)][_0x3d2a63(0x125)](_0x3d2a63(0xfb)))[_0x3d2a63(0x127)]((_0x5d9e41,_0x295e6c)=>{const _0x43fcb9=_0x3d2a63,_0x48890e=this[_0x43fcb9(0x140)](_0x295e6c[_0x43fcb9(0x10d)]);return _0x5d9e41[_0x48890e]||(_0x5d9e41[_0x48890e]=[]),_0x5d9e41[_0x48890e][_0x43fcb9(0x12c)](_0x295e6c),_0x5d9e41;},{});_0x1a6c88[_0x3d2a63(0x115)][_0x3d2a63(0x120)](_0x3d2a63(0x12f))&&_0x1a6c88[_0x3d2a63(0x11b)][_0x3d2a63(0x125)](_0x3d2a63(0x11a))&&Object[_0x3d2a63(0x11c)](_0x43a464)[_0x3d2a63(0x134)](([_0x345b7b,_0xd27979])=>{const _0x284c34=_0x3d2a63;_0x1a6c88[_0x284c34(0x115)][_0x284c34(0x125)](_0x284c34(0x12f))[_0x284c34(0x10f)]({'name':_0x345b7b,'observable':()=>_0xc60559,'buttonViewCreator':()=>this[_0x284c34(0x12b)](_0xd27979),'formViewCreator':()=>this[_0x284c34(0xf4)](_0xd27979),'menuBarButtonViewCreator':()=>this[_0x284c34(0x138)](_0xd27979),'override':_0x284c34(0xfc)!==_0x345b7b});});}[_0x38d380(0x131)](){const _0x42ff8f=_0x38d380;super[_0x42ff8f(0x131)](),this[_0x42ff8f(0x112)]&&clearInterval(this[_0x42ff8f(0x112)]);}[_0x38d380(0x124)](_0x273ecb){const _0x10a2b7=_0x38d380,{locale:_0x5f2756}=this[_0x10a2b7(0x135)];return _0x273ecb[_0x10a2b7(0x11f)](_0x4f8e01=>{const _0x10bcb2=_0x10a2b7,_0x4471e0=_0x29e6d2(_0x5f2756,_0x4f8e01,_0x10bcb2(0x141));switch(_0x4f8e01){case _0x3acd75[_0x10bcb2(0x117)]:return{'icon':_0x106772,'type':_0x3acd75[_0x10bcb2(0x117)],..._0x4471e0};case _0x3acd75[_0x10bcb2(0x13a)]:return{'icon':_0x55ce31,'type':_0x3acd75[_0x10bcb2(0x13a)],..._0x4471e0};case _0x3acd75[_0x10bcb2(0x139)]:return{'icon':_0x1f2921,'type':_0x3acd75[_0x10bcb2(0x139)],..._0x4471e0};case _0x3acd75[_0x10bcb2(0x13c)]:return{'icon':_0xf355af,'type':_0x3acd75[_0x10bcb2(0x13c)],..._0x4471e0};case _0x3acd75[_0x10bcb2(0xff)]:return{'icon':_0x1e1ae1,'type':_0x3acd75[_0x10bcb2(0xff)],..._0x4471e0};case _0x3acd75[_0x10bcb2(0xfd)]:return{'icon':_0x39c9d0,'type':_0x3acd75[_0x10bcb2(0xfd)],..._0x4471e0};case _0x3acd75[_0x10bcb2(0xf8)]:return{'icon':_0x4aa2a9,'type':_0x3acd75[_0x10bcb2(0xf8)],..._0x4471e0};}});}[_0x38d380(0x140)](_0x5cd380){const _0x1c9e80=_0x38d380;switch(_0x5cd380){case _0x3acd75[_0x1c9e80(0x117)]:return _0x1c9e80(0x107);case _0x3acd75[_0x1c9e80(0x13a)]:return _0x1c9e80(0x129);default:return _0x1c9e80(0xfc);}}[_0x38d380(0xfe)](_0x3dd5ad,_0x5f499a){const _0x1dae53=_0x38d380,_0x5bba21=this[_0x1dae53(0x135)],_0xb5efd=new _0x3dd5ad(_0x5bba21[_0x1dae53(0x106)]),_0x17fbd7=_0x5bba21[_0x1dae53(0x11b)][_0x1dae53(0x125)](_0x1dae53(0x11a));return _0xb5efd[_0x1dae53(0x110)](_0x1dae53(0x122))['to'](_0x17fbd7),_0xb5efd['on'](_0x1dae53(0x103),()=>{const _0x12eb91=_0x1dae53;_0x17fbd7[_0x12eb91(0x103)](_0x5f499a);}),_0xb5efd;}[_0x38d380(0x12b)](_0x465b5d){const _0x1c8dc0=_0x38d380,{locale:_0x530935}=this[_0x1c8dc0(0x135)],_0x45b918=this[_0x1c8dc0(0x135)][_0x1c8dc0(0x115)][_0x1c8dc0(0x125)](_0x1c8dc0(0x12f)),_0x5c608d=_0x465b5d[0x0],_0x505f59=this[_0x1c8dc0(0xfe)](_0x44873b,_0x5c608d[_0x1c8dc0(0x10d)]);return _0x505f59[_0x1c8dc0(0x128)]=_0x5c608d[_0x1c8dc0(0x128)],_0x505f59[_0x1c8dc0(0x110)](_0x1c8dc0(0x13d))['to'](_0x45b918,_0x1c8dc0(0x111),_0x442fef=>_0x29e6d2(_0x530935,_0x5c608d[_0x1c8dc0(0x10d)],_0x442fef?_0x1c8dc0(0x113):_0x1c8dc0(0x141))[_0x1c8dc0(0xf5)]),_0x505f59[_0x1c8dc0(0xf7)]=!0x0,_0x505f59;}[_0x38d380(0xf4)](_0x18208c){const _0x268862=_0x38d380,{locale:_0x315db7}=this[_0x268862(0x135)],_0xfd4b3e=this[_0x268862(0x135)][_0x268862(0x115)][_0x268862(0x125)](_0x268862(0x12f));return _0x18208c[_0x268862(0x11f)](_0x2c5c42=>{const _0x5dbb3f=_0x268862,_0x302971=this[_0x5dbb3f(0xfe)](_0x44873b,_0x2c5c42[_0x5dbb3f(0x10d)]);return _0x302971[_0x5dbb3f(0x10b)]=!0x0,_0x302971[_0x5dbb3f(0x128)]=_0x2c5c42[_0x5dbb3f(0x128)],_0x302971[_0x5dbb3f(0x110)](_0x5dbb3f(0x13d))['to'](_0xfd4b3e,_0x5dbb3f(0x111),_0x4cecbc=>_0x29e6d2(_0x315db7,_0x2c5c42[_0x5dbb3f(0x10d)],_0x4cecbc?_0x5dbb3f(0x113):_0x5dbb3f(0x141))[_0x5dbb3f(0xf5)]),_0x302971;});}[_0x38d380(0x138)](_0x2b6ec3){const _0x497c96=_0x38d380;return _0x2b6ec3[_0x497c96(0x11f)](_0x4458b8=>{const _0x4af8ef=_0x497c96,_0x1e878f=this[_0x4af8ef(0xfe)](_0x330254,_0x4458b8[_0x4af8ef(0x10d)]);return _0x1e878f[_0x4af8ef(0x128)]=_0x4458b8[_0x4af8ef(0x128)],_0x1e878f[_0x4af8ef(0x13d)]=_0x4458b8[_0x4af8ef(0x118)],_0x1e878f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x128ad2}from'ckeditor5/src/core.js';import{FileRepository as _0x36395f}from'ckeditor5/src/upload.js';import _0x48c961 from'./uploadcareediting.js';import _0x3791bf from'./utils/uploadutils.js';import{getImageUrls as _0x3dbd16}from'./utils/editingutils.js';export default class p extends _0x128ad2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x36395f,_0x48c961];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ddd4c=this['editor'];if(!!!_0x1ddd4c['config']['get']('uploadcare'))return;_0x1ddd4c['plugins']['get'](_0x36395f)['createUploadAdapter']=_0x56b3e7=>new x(_0x56b3e7,_0x1ddd4c),_0x1ddd4c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x34c1bb,{imageElement:_0x224305,data:_0x36c41b})=>{_0x1ddd4c['model']['change'](_0x5f4b22=>{_0x5f4b22['setAttribute']('uploadcareImageId',_0x36c41b['uploadcareImageId'],_0x224305);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1f62c0,_0x572cc0){this['loader']=_0x1f62c0,this['editor']=_0x572cc0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4efc68=this['editor']['config']['get']('uploadcare.pubkey'),_0x31bda9=await this['loader']['file'];return _0x3791bf['upload']({'file':_0x31bda9,'publicKey':_0x4efc68,'signal':this['controller']['signal'],'onProgress':_0x569e1e=>{_0x569e1e&&_0x569e1e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x569e1e['value']);}})['then'](async _0x7353ee=>{const {imageFallbackUrl:_0x387f13,imageSources:_0x1513ff}=_0x3dbd16(_0x7353ee['cdnUrl'],_0x7353ee['imageInfo']['width']);return{'uploadcareImageId':_0x7353ee['uuid'],'default':_0x387f13,'sources':_0x1513ff};})['catch'](()=>{const _0x24280a=t('Cannot\x20upload\x20file:')+('\x20'+_0x31bda9['name']+'.');return Promise['reject'](_0x24280a);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x4bf4e9}from'../uploadcareconfig.js';export function getTranslation(_0x235335,_0x510987,_0x506f2c){const t=_0x235335['t'],_0x17a2a2=_0x235335['t'];switch(_0x510987){case _0x4bf4e9['Local']:return{'text':_0x17a2a2('Insert'===_0x506f2c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17a2a2('From\x20computer')};case _0x4bf4e9['URL']:return{'text':'Insert'===_0x506f2c?_0x17a2a2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17a2a2('Via\x20URL')};case _0x4bf4e9['Dropbox']:return{'text':t('Insert'===_0x506f2c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x4bf4e9['Facebook']:return{'text':t('Insert'===_0x506f2c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x4bf4e9['GDrive']:return{'text':t('Insert'===_0x506f2c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x4bf4e9['GPhotos']:return{'text':t('Insert'===_0x506f2c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x4bf4e9['OneDrive']:return{'text':t('Insert'===_0x506f2c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x510987;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe349ef=_0x2b61;function _0x2b61(_0x228186,_0x2d82c2){var _0x2053b7=_0x2053();return _0x2b61=function(_0x2b6180,_0xde5bae){_0x2b6180=_0x2b6180-0xa9;var _0xdbee2a=_0x2053b7[_0x2b6180];return _0xdbee2a;},_0x2b61(_0x228186,_0x2d82c2);}(function(_0x1709d7,_0x254231){var _0x2d1618=_0x2b61,_0x493758=_0x1709d7();while(!![]){try{var _0x4bdcf0=parseInt(_0x2d1618(0xb3))/0x1*(-parseInt(_0x2d1618(0xb5))/0x2)+parseInt(_0x2d1618(0xb4))/0x3+parseInt(_0x2d1618(0xae))/0x4+-parseInt(_0x2d1618(0xb9))/0x5+-parseInt(_0x2d1618(0xb7))/0x6*(-parseInt(_0x2d1618(0xb6))/0x7)+parseInt(_0x2d1618(0xaf))/0x8+-parseInt(_0x2d1618(0xac))/0x9*(-parseInt(_0x2d1618(0xa9))/0xa);if(_0x4bdcf0===_0x254231)break;else _0x493758['push'](_0x493758['shift']());}catch(_0x21e565){_0x493758['push'](_0x493758['shift']());}}}(_0x2053,0x9d265));function _0x2053(){var _0x41c4d4=['36344VqPTGZ','403417pNHJQT','18dzcInk','getFocusableElement','1170425gIYepr','bindTemplate','fire','623240VEzZsX','createCollection','forwardCycle','9OEpFFo','focusTracker','2268328FhrRvJ','954152mGtDyB','div','true','focusCycler','33bfWpjy','1667634EvhDmH'];_0x2053=function(){return _0x41c4d4;};return _0x2053();}import{FocusTracker as _0x1ac176}from'ckeditor5/src/utils.js';import{View as _0x13952f,FocusCycler as _0x1893b8}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x13952f{[_0xe349ef(0xad)];[_0xe349ef(0xb2)];constructor(_0x1da2d3){var _0x1ff9d6=_0xe349ef;super(_0x1da2d3),this[_0x1ff9d6(0xad)]=new _0x1ac176(),this[_0x1ff9d6(0xb2)]=new _0x1893b8({'focusables':this[_0x1ff9d6(0xaa)](),'focusTracker':this[_0x1ff9d6(0xad)]});}[_0xe349ef(0xb8)](){var _0x461d71=_0xe349ef;return{'tag':_0x461d71(0xb0),'attributes':{'aria-hidden':_0x461d71(0xb1),'tabindex':'0'},'on':{'focus':this[_0x461d71(0xba)]['to'](()=>{var _0x5cf6fd=_0x461d71;this[_0x5cf6fd(0xb2)][_0x5cf6fd(0xbb)](_0x5cf6fd(0xab));})}};}}
|