@ckeditor/ckeditor5-uploadcare 47.6.2-alpha.1 → 47.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30a2b1=_0x5d5a;(function(_0x34f3a4,_0x55b836){const _0x57b496=_0x5d5a,_0x40094d=_0x34f3a4();while(!![]){try{const _0x8b3d8=-parseInt(_0x57b496(0x171))/0x1+parseInt(_0x57b496(0x13f))/0x2+parseInt(_0x57b496(0x13d))/0x3+parseInt(_0x57b496(0x141))/0x4*(parseInt(_0x57b496(0x174))/0x5)+parseInt(_0x57b496(0x124))/0x6+-parseInt(_0x57b496(0x147))/0x7*(-parseInt(_0x57b496(0x131))/0x8)+-parseInt(_0x57b496(0x16f))/0x9;if(_0x8b3d8===_0x55b836)break;else _0x40094d['push'](_0x40094d['shift']());}catch(_0x23f246){_0x40094d['push'](_0x40094d['shift']());}}}(_0x30be,0x45afa));function _0x5d5a(_0x406726,_0x475973){const _0x30be2d=_0x30be();return _0x5d5a=function(_0x5d5a3f,_0xc9e680){_0x5d5a3f=_0x5d5a3f-0x122;let _0x429fe7=_0x30be2d[_0x5d5a3f];return _0x429fe7;},_0x5d5a(_0x406726,_0x475973);}import{Plugin as _0x4876f0}from'ckeditor5/src/core.js';import{Dialog as _0x730b31}from'ckeditor5/src/ui.js';import{createElement as _0x35b78c,global as _0x5ab8ee,uid as _0x3049a5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x35c08e}from'./uploadcarecommand.js';function _0x30be(){const _0x5e16a3=['configElement','uploadcareImageReplace','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','71435rdhNdh','upcast','join','getAttribute','attributeToAttribute','ctxElement','listenTo','selection','pluginName','editor','model','replaceImageSource','data-uc-image-id','_initCtx','querySelector','insertImage','extend','map','imageBlock','appendChild','_initImageProcessingIndicator','uploadcare','fromCharCode','cleanupImage','UploadcareEditing','downcast','_ctxElement','imageInline','_configElement','contentLanguage','ucContextId','_initSchema','once','commands','remove','elementToAttribute','uploadcare.pubkey','render','uploadcareImageId','view','12021921sDcNYs','uploader-','425915ONTXLv','uc-config','schema','50990JmrRkl','_initConfig','get','document','2878938tBvvud','true','isRegistered','href','for','editing','#uc-icon-arrow-down','getSelectedElement','add','destroy','execute','config','input[uploadcare-file-input]','248qUUepT','afterInit','uploadcare.uploader','uc-upload-ctx-provider','PictureEditing','isOfficialPlugin','locale','isPremiumPlugin','iconHrefResolver','conversion','init','body','1598667BVONMF','removeAttribute','559074itWygS','_initConversion','172aDcIOc','closeMax','requires'];_0x30be=function(){return _0x5e16a3;};return _0x30be();}import{UploadcareUploadAdapter as _0x2389bd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xbd22db}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4876f0{[_0x30a2b1(0x163)]=null;[_0x30a2b1(0x161)]=null;static get[_0x30a2b1(0x14f)](){const _0x1d4389=_0x30a2b1;return _0x1d4389(0x15f);}static get[_0x30a2b1(0x143)](){const _0x36ba13=_0x30a2b1;return[_0x36ba13(0x135),_0x2389bd,_0x730b31];}static get[_0x30a2b1(0x136)](){return!0x0;}static get[_0x30a2b1(0x138)](){return!0x0;}[_0x30a2b1(0x165)];get[_0x30a2b1(0x144)](){const _0x1470b6=_0x30a2b1;return this[_0x1470b6(0x163)];}get[_0x30a2b1(0x14c)](){const _0x133ee5=_0x30a2b1;return this[_0x133ee5(0x161)];}constructor(_0x4bd0d7){const _0x143494=_0x30a2b1;super(_0x4bd0d7),this[_0x143494(0x165)]=_0x3049a5();}[_0x30a2b1(0x13b)](){const _0x5a8690=_0x30a2b1,_0x516518=this[_0x5a8690(0x150)];_0x516518[_0x5a8690(0x168)][_0x5a8690(0x12c)](_0x5a8690(0x15c),new _0x35c08e(_0x516518));}[_0x30a2b1(0x132)](){const _0x27dc98=_0x30a2b1;this[_0x27dc98(0x166)](),this[_0x27dc98(0x140)](),this[_0x27dc98(0x175)](),this[_0x27dc98(0x154)](),this[_0x27dc98(0x15b)](),this[_0x27dc98(0x14d)](this[_0x27dc98(0x150)],_0x27dc98(0x12d),()=>{const _0x1ea64a=_0x27dc98;this[_0x1ea64a(0x163)]&&(this[_0x1ea64a(0x163)][_0x1ea64a(0x169)](),this[_0x1ea64a(0x163)]=null),this[_0x1ea64a(0x161)]&&(this[_0x1ea64a(0x161)][_0x1ea64a(0x169)](),this[_0x1ea64a(0x161)]=null);const _0x13687c=_0x5ab8ee[_0x1ea64a(0x123)][_0x1ea64a(0x155)](_0x1ea64a(0x130));_0x13687c&&_0x13687c[_0x1ea64a(0x169)]();}),async function(_0x224f78){const _0x34af4c=_0x33630a([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x589c13=0x535f8c3a,_0x53c57a=0x53580a92^_0x589c13,_0x597fbf=window[_0x33630a([0x44,0x61,0x74,0x65])][_0x33630a([0x6e,0x6f,0x77])](),_0x48702c=_0x224f78[_0x33630a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a0a93=new window[(_0x33630a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22d914=>{_0x48702c[_0x33630a([0x6f,0x6e,0x63,0x65])](_0x33630a([0x72,0x65,0x61,0x64,0x79]),_0x22d914);}),_0x28527d={[_0x33630a([0x6b,0x74,0x79])]:_0x33630a([0x45,0x43]),[_0x33630a([0x75,0x73,0x65])]:_0x33630a([0x73,0x69,0x67]),[_0x33630a([0x63,0x72,0x76])]:_0x33630a([0x50,0x2d,0x32,0x35,0x36]),[_0x33630a([0x78])]:_0x33630a([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]),[_0x33630a([0x79])]:_0x33630a([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]),[_0x33630a([0x61,0x6c,0x67])]:_0x33630a([0x45,0x53,0x32,0x35,0x36])},_0x4847a5=_0x48702c[_0x33630a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x33630a([0x67,0x65,0x74])](_0x33630a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a0c19(){let _0x36291f,_0x3abadf=null,_0x1f1d04=null;try{if(_0x4847a5==_0x33630a([0x47,0x50,0x4c]))return _0x33630a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36291f=_0x1af4f7(),!_0x36291f)return _0x33630a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36291f[_0x33630a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f1d04=_0x525f9d(_0x36291f[_0x33630a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36291f[_0x33630a([0x6a,0x74,0x69])])),await _0x73871b()?_0x387ae9()?_0x410535()?_0x33630a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5765d5()?(_0x36291f[_0x33630a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33630a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3abadf=_0x46d724(_0x33630a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10c522()):_0x33630a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x33630a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x33630a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x33630a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x410535(){const _0x1c5667=[_0x33630a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x33630a([0x74,0x72,0x69,0x61,0x6c])][_0x33630a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36291f[_0x33630a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x597fbf/0x3e8:0xe10*_0x53c57a;return _0x36291f[_0x33630a([0x65,0x78,0x70])]<_0x1c5667;}function _0x387ae9(){const _0x33b0a0=_0x36291f[_0x33630a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x33b0a0&&(!!_0x33b0a0[_0x33630a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33630a([0x2a]))||!!_0x33b0a0[_0x33630a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33630a([0x55,0x50,0x4c,0x43])));}function _0x5765d5(){const _0x362465=_0x5d5a,_0x553760=_0x36291f[_0x33630a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x553760||0x0==_0x553760[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1adb3f}=new URL(window[_0x33630a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x362465(0x127)]);if(_0x553760[_0x33630a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1adb3f))return!0x0;const _0x535068=_0x1adb3f[_0x33630a([0x73,0x70,0x6c,0x69,0x74])](_0x33630a([0x2e]));return _0x553760[_0x33630a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34fa1e=>_0x34fa1e[_0x33630a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33630a([0x2a])))[_0x33630a([0x6d,0x61,0x70])](_0x1b3c53=>_0x1b3c53[_0x33630a([0x73,0x70,0x6c,0x69,0x74])](_0x33630a([0x2e])))[_0x33630a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa60ee4=>_0xa60ee4[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x535068[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33630a([0x6d,0x61,0x70])](_0x3370ac=>Array(_0x535068[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3370ac[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33630a([0x66,0x69,0x6c,0x6c])](_0x3370ac[0x0]===_0x33630a([0x2a])?_0x33630a([0x2a]):'')[_0x33630a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3370ac))[_0x33630a([0x73,0x6f,0x6d,0x65])](_0x4be098=>_0x535068[_0x33630a([0x65,0x76,0x65,0x72,0x79])]((_0x350fc3,_0x184ca6)=>_0x4be098[_0x184ca6]===_0x350fc3||_0x4be098[_0x184ca6]===_0x33630a([0x2a])));}function _0x10c522(){return _0x3abadf&&_0x1f1d04?new window[(_0x33630a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53235a,_0x5290a0)=>{_0x3abadf[_0x33630a([0x74,0x68,0x65,0x6e])](_0x53235a,_0x5290a0),_0x1f1d04[_0x33630a([0x74,0x68,0x65,0x6e])](_0xfec02=>{_0xfec02!=_0x33630a([0x56,0x61,0x6c,0x69,0x64])&&_0x53235a(_0xfec02);},_0x5290a0);}):_0x3abadf||_0x1f1d04||_0x33630a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x525f9d(_0x11798f,_0x53d7cf){return new window[(_0x33630a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ae597=>{if(_0x4392a9())return _0x5ae597(_0x33630a([0x56,0x61,0x6c,0x69,0x64]));_0x266601(),_0x48702c[_0x33630a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x33630a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c6e13=!0x1;const _0x1632ee=_0x3049a5();function _0x3df43b(_0x9232d5){return!!_0x9232d5&&(typeof _0x9232d5===_0x33630a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9232d5===_0x33630a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9232d5[_0x33630a([0x74,0x68,0x65,0x6e])]===_0x33630a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9232d5[_0x33630a([0x63,0x61,0x74,0x63,0x68])]===_0x33630a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x161d1b(_0x3575d7){_0x23dbb8(_0x3575d7)[_0x33630a([0x74,0x68,0x65,0x6e])](_0x4db1d2=>{if(!_0x4db1d2||_0x4db1d2[_0x33630a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x33630a([0x6f,0x6b]))return _0x33630a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1505ca(_0x3457e1(_0x1632ee+_0x53d7cf))!=_0x4db1d2[_0x33630a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x33630a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x33630a([0x56,0x61,0x6c,0x69,0x64]);})[_0x33630a([0x74,0x68,0x65,0x6e])](_0x5a64ac=>(_0xbf925f(),_0x5a64ac),()=>{const _0xbac24f=_0x5e47b2();return null==_0xbac24f?(_0xbf925f(),_0x33630a([0x56,0x61,0x6c,0x69,0x64])):_0x33630a(_0x597fbf-_0xbac24f>(0x7753083a^_0x589c13)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x33630a([0x74,0x68,0x65,0x6e])](_0x5ae597)[_0x33630a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ae597(_0x33630a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d083f=0x536962ba^_0x589c13;function _0xbf925f(){const _0x7ccc42=_0x33630a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1505ca(_0x3457e1(_0x11798f)),_0x213b41=_0xd23398(_0x1505ca(window[_0x33630a([0x4d,0x61,0x74,0x68])][_0x33630a([0x63,0x65,0x69,0x6c])](_0x597fbf/_0x1d083f)));window[_0x33630a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33630a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7ccc42,_0x213b41);}function _0x5e47b2(){const _0x22b248=_0x33630a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1505ca(_0x3457e1(_0x11798f)),_0x22a84a=window[_0x33630a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33630a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22b248);return _0x22a84a?window[_0x33630a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd23398(_0x22a84a),0x10)*_0x1d083f:null;}function _0x23dbb8(_0x186d68){return new window[(_0x33630a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x210e49,_0x2cdb6b)=>{_0x186d68[_0x33630a([0x74,0x68,0x65,0x6e])](_0x210e49,_0x2cdb6b),window[_0x33630a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2cdb6b,0x535e58fa^_0x589c13);});}}_0x48702c[_0x33630a([0x6f,0x6e])](_0x33630a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5750d6,_0x46cefa)=>{if(_0x46cefa[0x0]!=_0x11798f)return _0x5ae597(_0x33630a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46cefa[0x1]={..._0x46cefa[0x1],[_0x33630a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1632ee};},{[_0x33630a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33630a([0x68,0x69,0x67,0x68])}),_0x48702c[_0x33630a([0x6f,0x6e])](_0x33630a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25d98b=>{_0x3df43b(_0x25d98b[_0x33630a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c6e13=!0x0,_0x161d1b(_0x25d98b[_0x33630a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x33630a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33630a([0x6c,0x6f,0x77])}),_0x2a0a93[_0x33630a([0x74,0x68,0x65,0x6e])](()=>{_0x5c6e13||_0x5ae597(_0x33630a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4392a9(){return _0x48702c[_0x33630a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33630a([0x76,0x69,0x65,0x77])][_0x33630a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x33630a([0x61,0x75,0x74,0x6f]);}function _0x266601(){_0x48702c[_0x33630a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33630a([0x76,0x69,0x65,0x77])][_0x33630a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33630a([0x61,0x75,0x74,0x6f]);}}function _0x46d724(_0x3a3d60){const _0x59411d=[new window[(_0x33630a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f6eef=>setTimeout(_0x1f6eef,0x5356b2f6^_0x589c13)),_0x2a0a93[_0x33630a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x33630a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3714f7=>{let _0x4e2a4e=0x0;_0x48702c[_0x33630a([0x6d,0x6f,0x64,0x65,0x6c])][_0x33630a([0x6f,0x6e])](_0x33630a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d8379,_0x4d341e)=>{_0x4d341e[0x0][_0x33630a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e2a4e++,_0x4e2a4e==(0x535f89d2^_0x589c13)&&(_0x3714f7(),_0x4d8379[_0x33630a([0x6f,0x66,0x66])]());});}))];return window[_0x33630a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33630a([0x72,0x61,0x63,0x65])](_0x59411d)[_0x33630a([0x74,0x68,0x65,0x6e])](()=>_0x3a3d60);}async function _0x389dc5(){await _0x2a0a93,_0x48702c[_0x33630a([0x6d,0x6f,0x64,0x65,0x6c])][_0x33630a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25a618,_0x48702c[_0x33630a([0x6d,0x6f,0x64,0x65,0x6c])][_0x33630a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25a618,_0x48702c[_0x33630a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x33630a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19f036(_0x480204){const _0x463d4=_0x513f57();_0x48702c[_0x463d4]=_0x33630a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x480204,_0x480204!=_0x33630a([0x56,0x61,0x6c,0x69,0x64])&&_0x389dc5();}function _0x513f57(){const _0x4cca9b=window[_0x33630a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x33630a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x33630a([0x6e,0x6f,0x77])]())[_0x33630a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x33630a([0x2e]),'');let _0x574da5=_0x33630a([0x68]);for(let _0x19126d=0x0;_0x19126d<_0x4cca9b[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19126d+=0x2){let _0x50d8b8=window[_0x33630a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cca9b[_0x33630a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19126d,_0x19126d+0x2));_0x50d8b8>=_0x34af4c[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50d8b8-=_0x34af4c[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x574da5+=_0x34af4c[_0x50d8b8];}return _0x574da5;}function _0x1af4f7(){const _0x2b33b0=_0x4847a5[_0x33630a([0x73,0x70,0x6c,0x69,0x74])](_0x33630a([0x2e]));if(0x3!=_0x2b33b0[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x395767(_0x2b33b0[0x1]);function _0x395767(_0x1bfb75){const _0x3520c7=_0x386a85(_0x1bfb75);return _0x3520c7&&_0x1adf29()?_0x3520c7:null;function _0x1adf29(){const _0x28a6fb=_0x3520c7[_0x33630a([0x6a,0x74,0x69])],_0x4a9380=window[_0x33630a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28a6fb[_0x33630a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28a6fb[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f6b5a={..._0x3520c7,[_0x33630a([0x6a,0x74,0x69])]:_0x28a6fb[_0x33630a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28a6fb[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f6b5a[_0x33630a([0x76,0x63])],_0x3457e1(_0x3f6b5a)==_0x4a9380;}}}async function _0x73871b(){let _0x5cdfea=!0x0;try{const _0x11d3c3=_0x4847a5[_0x33630a([0x73,0x70,0x6c,0x69,0x74])](_0x33630a([0x2e])),[_0xd24c93,_0x11338a,_0x14f9e1]=_0x11d3c3;return _0x5c9526(_0xd24c93),await _0x1cb2f8(_0xd24c93,_0x11338a,_0x14f9e1),_0x5cdfea;}catch{return!0x1;}function _0x5c9526(_0x59e9ae){const _0x53f5d7=_0x386a85(_0x59e9ae);_0x53f5d7&&_0x53f5d7[_0x33630a([0x61,0x6c,0x67])]==_0x33630a([0x45,0x53,0x32,0x35,0x36])||(_0x5cdfea=!0x1);}async function _0x1cb2f8(_0x5e70c4,_0x2150e3,_0x2da947){const _0x4dc7d2=window[_0x33630a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x33630a([0x66,0x72,0x6f,0x6d])](_0x3d4cf7(_0x2da947),_0x42707d=>_0x42707d[_0x33630a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1fb853=new window[(_0x33630a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x33630a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e70c4+_0x33630a([0x2e])+_0x2150e3),_0x2b484e=window[_0x33630a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x33630a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b484e)return;const _0x90c8c6=await _0x2b484e[_0x33630a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x33630a([0x6a,0x77,0x6b]),_0x28527d,{[_0x33630a([0x6e,0x61,0x6d,0x65])]:_0x33630a([0x45,0x43,0x44,0x53,0x41]),[_0x33630a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x33630a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x33630a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b484e[_0x33630a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x33630a([0x6e,0x61,0x6d,0x65])]:_0x33630a([0x45,0x43,0x44,0x53,0x41]),[_0x33630a([0x68,0x61,0x73,0x68])]:{[_0x33630a([0x6e,0x61,0x6d,0x65])]:_0x33630a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x90c8c6,_0x4dc7d2,_0x1fb853)||(_0x5cdfea=!0x1);}}function _0x386a85(_0xa0fc04){return _0xa0fc04[_0x33630a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x33630a([0x65,0x79]))?JSON[_0x33630a([0x70,0x61,0x72,0x73,0x65])](_0x3d4cf7(_0xa0fc04)):null;}function _0x3d4cf7(_0x1e0df8){return window[_0x33630a([0x61,0x74,0x6f,0x62])](_0x1e0df8[_0x33630a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x33630a([0x2b]))[_0x33630a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x33630a([0x2f])));}function _0x3457e1(_0x1af3f8){let _0x2cd07d=0x1505;function _0x3b9c0b(_0xb04d00){for(let _0x56d99e=0x0;_0x56d99e<_0xb04d00[_0x33630a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d99e++){const _0x34f7b5=_0xb04d00[_0x33630a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56d99e);_0x2cd07d=(_0x2cd07d<<0x5)+_0x2cd07d+_0x34f7b5,_0x2cd07d&=_0x2cd07d;}}function _0x582e1a(_0x28dd33){Array[_0x33630a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28dd33)?_0x28dd33[_0x33630a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x582e1a):_0x28dd33&&typeof _0x28dd33==_0x33630a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x33630a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28dd33)[_0x33630a([0x73,0x6f,0x72,0x74])]()[_0x33630a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57dddb,_0x548d37])=>{_0x3b9c0b(_0x57dddb),_0x582e1a(_0x548d37);}):_0x3b9c0b(window[_0x33630a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28dd33));}return _0x582e1a(_0x1af3f8),_0x2cd07d>>>0x0;}function _0x1505ca(_0x44aa93){return _0x44aa93[_0x33630a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x33630a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x33630a([0x30]));}function _0xd23398(_0x267f5e){return _0x267f5e[_0x33630a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x33630a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x33630a([0x6a,0x6f,0x69,0x6e])]('');}function _0x25a618(){}function _0x33630a(_0x5ef3a8){const _0x2ca7e3=_0x5d5a;return _0x5ef3a8[_0x2ca7e3(0x158)](_0x57cded=>String[_0x2ca7e3(0x15d)](_0x57cded))[_0x2ca7e3(0x149)]('');}_0x19f036(await _0x1a0c19());}(this);}[_0x30a2b1(0x166)](){const _0x45d9a6=_0x30a2b1,_0xa9f482=this[_0x45d9a6(0x150)][_0x45d9a6(0x151)][_0x45d9a6(0x173)];_0xa9f482[_0x45d9a6(0x126)](_0x45d9a6(0x159))&&_0xa9f482[_0x45d9a6(0x157)](_0x45d9a6(0x159),{'allowAttributes':[_0x45d9a6(0x16d)]}),_0xa9f482[_0x45d9a6(0x126)](_0x45d9a6(0x162))&&_0xa9f482[_0x45d9a6(0x157)](_0x45d9a6(0x162),{'allowAttributes':[_0x45d9a6(0x16d)]});}[_0x30a2b1(0x140)](){const _0x16bf07=_0x30a2b1,_0x496ba1=this[_0x16bf07(0x150)];_0x496ba1[_0x16bf07(0x13a)][_0x16bf07(0x128)](_0x16bf07(0x160))[_0x16bf07(0x14b)]({'model':_0x16bf07(0x16d),'view':_0x16bf07(0x153)}),_0x496ba1[_0x16bf07(0x13a)][_0x16bf07(0x128)](_0x16bf07(0x148))[_0x16bf07(0x16a)]({'model':{'key':_0x16bf07(0x16d),'value':_0x479c53=>_0x479c53[_0x16bf07(0x14a)](_0x16bf07(0x153))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd43cec=_0x496ba1[_0x16bf07(0x168)][_0x16bf07(0x122)](_0x16bf07(0x152));_0xd43cec&&this[_0x16bf07(0x14d)](_0xd43cec,_0x16bf07(0x15e),(_0x5c6c70,[_0x1c5729,_0x1a5f17])=>{const _0x15cb0a=_0x16bf07;_0x1c5729[_0x15cb0a(0x13e)](_0x15cb0a(0x16d),_0x1a5f17);});}[_0x30a2b1(0x175)](){const _0x237e47=_0x30a2b1,_0x158a6b=this[_0x237e47(0x150)][_0x237e47(0x12f)][_0x237e47(0x122)](_0x237e47(0x133))||{},_0x11fc31=this[_0x237e47(0x150)][_0x237e47(0x12f)][_0x237e47(0x122)](_0x237e47(0x16b))||'';this[_0x237e47(0x163)]=_0x35b78c(_0x5ab8ee[_0x237e47(0x123)],_0x237e47(0x172),{..._0x158a6b,'pubkey':_0x11fc31,'ctx-name':_0x237e47(0x170)+this[_0x237e47(0x165)],'sourceList':'','imgOnly':_0x237e47(0x125),'removeCopyright':_0x237e47(0x125),'localeName':this[_0x237e47(0x150)][_0x237e47(0x137)][_0x237e47(0x164)],'externalSourcesEmbedCss':_0x237e47(0x146)}),this[_0x237e47(0x163)][_0x237e47(0x139)]=_0x500c93=>{const _0x219878=_0x237e47;if(_0x219878(0x142)==_0x500c93)return _0x219878(0x12a);},_0x5ab8ee[_0x237e47(0x123)][_0x237e47(0x13c)][_0x237e47(0x15a)](this[_0x237e47(0x163)]);}[_0x30a2b1(0x154)](){const _0x5f225c=_0x30a2b1;this[_0x5f225c(0x161)]=_0x35b78c(_0x5ab8ee[_0x5f225c(0x123)],_0x5f225c(0x134),{'ctx-name':_0x5f225c(0x170)+this[_0x5f225c(0x165)]}),_0x5ab8ee[_0x5f225c(0x123)][_0x5f225c(0x13c)][_0x5f225c(0x15a)](this[_0x5f225c(0x161)]);}[_0x30a2b1(0x15b)](){const _0x19c979=_0x30a2b1,_0x1d780c=this[_0x19c979(0x150)][_0x19c979(0x168)][_0x19c979(0x122)](_0x19c979(0x156));_0x1d780c&&this[_0x19c979(0x14d)](_0x1d780c,_0x19c979(0x12e),()=>{const _0x2fd0b9=_0x19c979,_0x3eb026=this[_0x2fd0b9(0x150)][_0x2fd0b9(0x151)][_0x2fd0b9(0x123)][_0x2fd0b9(0x14e)][_0x2fd0b9(0x12b)]();_0x3eb026&&_0x3eb026[_0x2fd0b9(0x14a)](_0x2fd0b9(0x16d))&&this[_0x2fd0b9(0x150)][_0x2fd0b9(0x129)][_0x2fd0b9(0x16e)][_0x2fd0b9(0x167)](_0x2fd0b9(0x16c),()=>{const _0x1fbe13=_0x2fd0b9;_0xbd22db(this[_0x1fbe13(0x150)],_0x3eb026);});});const _0x2de24e=this[_0x19c979(0x150)][_0x19c979(0x168)][_0x19c979(0x122)](_0x19c979(0x145));_0x2de24e&&this[_0x19c979(0x14d)](_0x2de24e,_0x19c979(0x12e),()=>{const _0x15b61d=_0x19c979,_0x301ede=this[_0x15b61d(0x150)][_0x15b61d(0x151)][_0x15b61d(0x123)][_0x15b61d(0x14e)][_0x15b61d(0x12b)]();_0x301ede&&_0x301ede[_0x15b61d(0x14a)](_0x15b61d(0x16d))&&this[_0x15b61d(0x150)][_0x15b61d(0x129)][_0x15b61d(0x16e)][_0x15b61d(0x167)](_0x15b61d(0x16c),()=>{const _0x167d35=_0x15b61d;_0xbd22db(this[_0x167d35(0x150)],_0x301ede);});});}}
|
|
23
|
+
const _0x22f5e4=_0x5744;(function(_0x591318,_0x2156c2){const _0x1d616f=_0x5744,_0x37f024=_0x591318();while(!![]){try{const _0x44a9f5=parseInt(_0x1d616f(0xa6))/0x1*(parseInt(_0x1d616f(0xa3))/0x2)+-parseInt(_0x1d616f(0xac))/0x3+-parseInt(_0x1d616f(0xc2))/0x4+-parseInt(_0x1d616f(0xc4))/0x5+-parseInt(_0x1d616f(0xea))/0x6*(-parseInt(_0x1d616f(0xa7))/0x7)+-parseInt(_0x1d616f(0xce))/0x8+parseInt(_0x1d616f(0xd1))/0x9;if(_0x44a9f5===_0x2156c2)break;else _0x37f024['push'](_0x37f024['shift']());}catch(_0x561c71){_0x37f024['push'](_0x37f024['shift']());}}}(_0x3020,0xcf3b9));function _0x5744(_0x33e035,_0x1aefc0){const _0x302023=_0x3020();return _0x5744=function(_0x57445b,_0x3ac0d2){_0x57445b=_0x57445b-0xa2;let _0x472743=_0x302023[_0x57445b];return _0x472743;},_0x5744(_0x33e035,_0x1aefc0);}import{Plugin as _0x58b6de}from'ckeditor5/src/core.js';import{Dialog as _0x34b813}from'ckeditor5/src/ui.js';import{createElement as _0x2b11c2,global as _0x4d2320,uid as _0x543aa5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1f8638}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xe8ec30}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3ee6c7}from'./utils/editingutils.js';function _0x3020(){const _0x5bf1d7=['editing','remove','model','_configElement','12135608xWBDuE','_initImageProcessingIndicator','imageInline','24633891nhjEyj','schema','attributeToAttribute','ctxElement','isRegistered','uploadcareImageId','requires','destroy','upcast','data-uc-image-id','commands','uploader-','imageBlock','conversion','isPremiumPlugin','pluginName','uploadcareImageReplace','listenTo','input[uploadcare-file-input]','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-upload-ctx-provider','get','uploadcare.uploader','true','fromCharCode','4088694HGGCRW','_initConfig','execute','contentLanguage','querySelector','getAttribute','PictureEditing','document','UploadcareEditing','uploadcare.pubkey','#uc-icon-arrow-down','locale','insertImage','806iQtdTj','editor','removeAttribute','862PFsCnK','7TAxGgx','appendChild','configElement','extend','replaceImageSource','1336494QFUOtj','elementToAttribute','cleanupImage','_initSchema','closeMax','_initCtx','_ctxElement','getSelectedElement','map','init','join','for','downcast','body','uploadcare','once','_initConversion','ucContextId','isOfficialPlugin','iconHrefResolver','view','config','1955836PxhtXL','uc-config','2328505Mfdafg','href','add','selection','render','afterInit'];_0x3020=function(){return _0x5bf1d7;};return _0x3020();}export class UploadcareEditing extends _0x58b6de{[_0x22f5e4(0xcd)]=null;[_0x22f5e4(0xb2)]=null;static get[_0x22f5e4(0xe0)](){const _0x3a8224=_0x22f5e4;return _0x3a8224(0xf2);}static get[_0x22f5e4(0xd7)](){const _0x195d47=_0x22f5e4;return[_0x195d47(0xf0),_0xe8ec30,_0x34b813];}static get[_0x22f5e4(0xbe)](){return!0x0;}static get[_0x22f5e4(0xdf)](){return!0x0;}[_0x22f5e4(0xbd)];get[_0x22f5e4(0xa9)](){const _0x1ea484=_0x22f5e4;return this[_0x1ea484(0xcd)];}get[_0x22f5e4(0xd4)](){const _0x3a76bd=_0x22f5e4;return this[_0x3a76bd(0xb2)];}constructor(_0x11f40b){const _0xe1da5=_0x22f5e4;super(_0x11f40b),this[_0xe1da5(0xbd)]=_0x543aa5();}[_0x22f5e4(0xb5)](){const _0x482594=_0x22f5e4,_0x590e83=this[_0x482594(0xa4)];_0x590e83[_0x482594(0xdb)][_0x482594(0xc6)](_0x482594(0xba),new _0x1f8638(_0x590e83));}[_0x22f5e4(0xc9)](){const _0x2e9946=_0x22f5e4;this[_0x2e9946(0xaf)](),this[_0x2e9946(0xbc)](),this[_0x2e9946(0xeb)](),this[_0x2e9946(0xb1)](),this[_0x2e9946(0xcf)](),this[_0x2e9946(0xe2)](this[_0x2e9946(0xa4)],_0x2e9946(0xd8),()=>{const _0x7b229f=_0x2e9946;this[_0x7b229f(0xcd)]&&(this[_0x7b229f(0xcd)][_0x7b229f(0xcb)](),this[_0x7b229f(0xcd)]=null),this[_0x7b229f(0xb2)]&&(this[_0x7b229f(0xb2)][_0x7b229f(0xcb)](),this[_0x7b229f(0xb2)]=null);const _0x2703d1=_0x4d2320[_0x7b229f(0xf1)][_0x7b229f(0xee)](_0x7b229f(0xe3));_0x2703d1&&_0x2703d1[_0x7b229f(0xcb)]();}),async function(_0x4bd339){const _0x4d2914=_0x36ba89([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2d7f98=0x535f8c3a,_0x4acde3=0x53580a92^_0x2d7f98,_0x3ef62d=window[_0x36ba89([0x44,0x61,0x74,0x65])][_0x36ba89([0x6e,0x6f,0x77])](),_0x1cd573=_0x4bd339[_0x36ba89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25e132=new window[(_0x36ba89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224b08=>{_0x1cd573[_0x36ba89([0x6f,0x6e,0x63,0x65])](_0x36ba89([0x72,0x65,0x61,0x64,0x79]),_0x224b08);}),_0x4536c7={[_0x36ba89([0x6b,0x74,0x79])]:_0x36ba89([0x45,0x43]),[_0x36ba89([0x75,0x73,0x65])]:_0x36ba89([0x73,0x69,0x67]),[_0x36ba89([0x63,0x72,0x76])]:_0x36ba89([0x50,0x2d,0x32,0x35,0x36]),[_0x36ba89([0x78])]:_0x36ba89([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]),[_0x36ba89([0x79])]:_0x36ba89([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]),[_0x36ba89([0x61,0x6c,0x67])]:_0x36ba89([0x45,0x53,0x32,0x35,0x36])},_0xd34114=_0x1cd573[_0x36ba89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36ba89([0x67,0x65,0x74])](_0x36ba89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26dd79(){let _0x5beec1,_0x136d4f=null,_0x3e45db=null;try{if(_0xd34114==_0x36ba89([0x47,0x50,0x4c]))return _0x36ba89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5beec1=_0x3e13f2(),!_0x5beec1)return _0x36ba89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5beec1[_0x36ba89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e45db=_0x597b95(_0x5beec1[_0x36ba89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5beec1[_0x36ba89([0x6a,0x74,0x69])])),await _0x502c03()?_0x4c39e6()?_0x1243e0()?_0x36ba89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x116dbe()?(_0x5beec1[_0x36ba89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36ba89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x136d4f=_0x309943(_0x36ba89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30aab7()):_0x36ba89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36ba89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36ba89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36ba89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1243e0(){const _0x8a2ca6=[_0x36ba89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36ba89([0x74,0x72,0x69,0x61,0x6c])][_0x36ba89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5beec1[_0x36ba89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef62d/0x3e8:0xe10*_0x4acde3;return _0x5beec1[_0x36ba89([0x65,0x78,0x70])]<_0x8a2ca6;}function _0x4c39e6(){const _0x4865c4=_0x5beec1[_0x36ba89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4865c4&&(!!_0x4865c4[_0x36ba89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ba89([0x2a]))||!!_0x4865c4[_0x36ba89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ba89([0x55,0x50,0x4c,0x43])));}function _0x116dbe(){const _0x4a1f3b=_0x5744,_0x721a97=_0x5beec1[_0x36ba89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x721a97||0x0==_0x721a97[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2db355}=new URL(window[_0x36ba89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4a1f3b(0xc5)]);if(_0x721a97[_0x36ba89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2db355))return!0x0;const _0x5708a3=_0x2db355[_0x36ba89([0x73,0x70,0x6c,0x69,0x74])](_0x36ba89([0x2e]));return _0x721a97[_0x36ba89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48c1b1=>_0x48c1b1[_0x36ba89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36ba89([0x2a])))[_0x36ba89([0x6d,0x61,0x70])](_0x383d82=>_0x383d82[_0x36ba89([0x73,0x70,0x6c,0x69,0x74])](_0x36ba89([0x2e])))[_0x36ba89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dfd48=>_0x1dfd48[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5708a3[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36ba89([0x6d,0x61,0x70])](_0xb39a3a=>Array(_0x5708a3[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb39a3a[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36ba89([0x66,0x69,0x6c,0x6c])](_0xb39a3a[0x0]===_0x36ba89([0x2a])?_0x36ba89([0x2a]):'')[_0x36ba89([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb39a3a))[_0x36ba89([0x73,0x6f,0x6d,0x65])](_0x542473=>_0x5708a3[_0x36ba89([0x65,0x76,0x65,0x72,0x79])]((_0x286ab0,_0x1970e2)=>_0x542473[_0x1970e2]===_0x286ab0||_0x542473[_0x1970e2]===_0x36ba89([0x2a])));}function _0x30aab7(){return _0x136d4f&&_0x3e45db?new window[(_0x36ba89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ec77d,_0x1501aa)=>{_0x136d4f[_0x36ba89([0x74,0x68,0x65,0x6e])](_0x1ec77d,_0x1501aa),_0x3e45db[_0x36ba89([0x74,0x68,0x65,0x6e])](_0x17f09b=>{_0x17f09b!=_0x36ba89([0x56,0x61,0x6c,0x69,0x64])&&_0x1ec77d(_0x17f09b);},_0x1501aa);}):_0x136d4f||_0x3e45db||_0x36ba89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x597b95(_0x3e2cd9,_0x571d72){return new window[(_0x36ba89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44a858=>{if(_0x2f517e())return _0x44a858(_0x36ba89([0x56,0x61,0x6c,0x69,0x64]));_0x1ace8f(),_0x1cd573[_0x36ba89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36ba89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e58a0=!0x1;const _0x3eb570=_0x543aa5();function _0x12b15e(_0x365fa7){return!!_0x365fa7&&(typeof _0x365fa7===_0x36ba89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x365fa7===_0x36ba89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x365fa7[_0x36ba89([0x74,0x68,0x65,0x6e])]===_0x36ba89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x365fa7[_0x36ba89([0x63,0x61,0x74,0x63,0x68])]===_0x36ba89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45ce05(_0x5dbb34){_0x20cee8(_0x5dbb34)[_0x36ba89([0x74,0x68,0x65,0x6e])](_0x3eb2ff=>{if(!_0x3eb2ff||_0x3eb2ff[_0x36ba89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36ba89([0x6f,0x6b]))return _0x36ba89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e68eb(_0x357479(_0x3eb570+_0x571d72))!=_0x3eb2ff[_0x36ba89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36ba89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36ba89([0x56,0x61,0x6c,0x69,0x64]);})[_0x36ba89([0x74,0x68,0x65,0x6e])](_0x1379e3=>(_0x29e7a7(),_0x1379e3),()=>{const _0x39aa95=_0x4592aa();return null==_0x39aa95?(_0x29e7a7(),_0x36ba89([0x56,0x61,0x6c,0x69,0x64])):_0x36ba89(_0x3ef62d-_0x39aa95>(0x7753083a^_0x2d7f98)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36ba89([0x74,0x68,0x65,0x6e])](_0x44a858)[_0x36ba89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x44a858(_0x36ba89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20026d=0x536962ba^_0x2d7f98;function _0x29e7a7(){const _0x4a6b76=_0x36ba89([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e68eb(_0x357479(_0x3e2cd9)),_0x6e397d=_0x3f2f42(_0x3e68eb(window[_0x36ba89([0x4d,0x61,0x74,0x68])][_0x36ba89([0x63,0x65,0x69,0x6c])](_0x3ef62d/_0x20026d)));window[_0x36ba89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36ba89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a6b76,_0x6e397d);}function _0x4592aa(){const _0xf07ae9=_0x36ba89([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e68eb(_0x357479(_0x3e2cd9)),_0x4d2594=window[_0x36ba89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36ba89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf07ae9);return _0x4d2594?window[_0x36ba89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f2f42(_0x4d2594),0x10)*_0x20026d:null;}function _0x20cee8(_0x39a81d){return new window[(_0x36ba89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a27d5,_0x51f90d)=>{_0x39a81d[_0x36ba89([0x74,0x68,0x65,0x6e])](_0x3a27d5,_0x51f90d),window[_0x36ba89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51f90d,0x535e58fa^_0x2d7f98);});}}_0x1cd573[_0x36ba89([0x6f,0x6e])](_0x36ba89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44600a,_0x48bd53)=>{if(_0x48bd53[0x0]!=_0x3e2cd9)return _0x44a858(_0x36ba89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48bd53[0x1]={..._0x48bd53[0x1],[_0x36ba89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eb570};},{[_0x36ba89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36ba89([0x68,0x69,0x67,0x68])}),_0x1cd573[_0x36ba89([0x6f,0x6e])](_0x36ba89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40d702=>{_0x12b15e(_0x40d702[_0x36ba89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e58a0=!0x0,_0x45ce05(_0x40d702[_0x36ba89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36ba89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36ba89([0x6c,0x6f,0x77])}),_0x25e132[_0x36ba89([0x74,0x68,0x65,0x6e])](()=>{_0x5e58a0||_0x44a858(_0x36ba89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f517e(){return _0x1cd573[_0x36ba89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36ba89([0x76,0x69,0x65,0x77])][_0x36ba89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36ba89([0x61,0x75,0x74,0x6f]);}function _0x1ace8f(){_0x1cd573[_0x36ba89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36ba89([0x76,0x69,0x65,0x77])][_0x36ba89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36ba89([0x61,0x75,0x74,0x6f]);}}function _0x309943(_0x11e2da){const _0x37f50e=[new window[(_0x36ba89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b438=>setTimeout(_0x21b438,0x5356b2f6^_0x2d7f98)),_0x25e132[_0x36ba89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36ba89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474a12=>{let _0x9812ba=0x0;_0x1cd573[_0x36ba89([0x6d,0x6f,0x64,0x65,0x6c])][_0x36ba89([0x6f,0x6e])](_0x36ba89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x521376,_0x47ae7e)=>{_0x47ae7e[0x0][_0x36ba89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9812ba++,_0x9812ba==(0x535f89d2^_0x2d7f98)&&(_0x474a12(),_0x521376[_0x36ba89([0x6f,0x66,0x66])]());});}))];return window[_0x36ba89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36ba89([0x72,0x61,0x63,0x65])](_0x37f50e)[_0x36ba89([0x74,0x68,0x65,0x6e])](()=>_0x11e2da);}async function _0x12287b(){await _0x25e132,_0x1cd573[_0x36ba89([0x6d,0x6f,0x64,0x65,0x6c])][_0x36ba89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30654a,_0x1cd573[_0x36ba89([0x6d,0x6f,0x64,0x65,0x6c])][_0x36ba89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30654a,_0x1cd573[_0x36ba89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36ba89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2df9c0(_0x2ebc35){const _0x346337=_0x5117dc();_0x1cd573[_0x346337]=_0x36ba89([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ebc35,_0x2ebc35!=_0x36ba89([0x56,0x61,0x6c,0x69,0x64])&&_0x12287b();}function _0x5117dc(){const _0x3fd464=window[_0x36ba89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36ba89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36ba89([0x6e,0x6f,0x77])]())[_0x36ba89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36ba89([0x2e]),'');let _0x4cd7d0=_0x36ba89([0x68]);for(let _0x2f1f28=0x0;_0x2f1f28<_0x3fd464[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f1f28+=0x2){let _0x5cdead=window[_0x36ba89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fd464[_0x36ba89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f1f28,_0x2f1f28+0x2));_0x5cdead>=_0x4d2914[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cdead-=_0x4d2914[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cd7d0+=_0x4d2914[_0x5cdead];}return _0x4cd7d0;}function _0x3e13f2(){const _0x369460=_0xd34114[_0x36ba89([0x73,0x70,0x6c,0x69,0x74])](_0x36ba89([0x2e]));if(0x3!=_0x369460[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bf1fd(_0x369460[0x1]);function _0x4bf1fd(_0x2f58c7){const _0x4e371d=_0x1fc8d9(_0x2f58c7);return _0x4e371d&&_0x2fdfc2()?_0x4e371d:null;function _0x2fdfc2(){const _0x1939e2=_0x4e371d[_0x36ba89([0x6a,0x74,0x69])],_0x11eb28=window[_0x36ba89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1939e2[_0x36ba89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1939e2[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x534b86={..._0x4e371d,[_0x36ba89([0x6a,0x74,0x69])]:_0x1939e2[_0x36ba89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1939e2[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x534b86[_0x36ba89([0x76,0x63])],_0x357479(_0x534b86)==_0x11eb28;}}}async function _0x502c03(){let _0x36ccc8=!0x0;try{const _0x32a7bb=_0xd34114[_0x36ba89([0x73,0x70,0x6c,0x69,0x74])](_0x36ba89([0x2e])),[_0x56aa98,_0x2f060d,_0x49d963]=_0x32a7bb;return _0x324146(_0x56aa98),await _0x592df3(_0x56aa98,_0x2f060d,_0x49d963),_0x36ccc8;}catch{return!0x1;}function _0x324146(_0x19cb2a){const _0x67c8f6=_0x1fc8d9(_0x19cb2a);_0x67c8f6&&_0x67c8f6[_0x36ba89([0x61,0x6c,0x67])]==_0x36ba89([0x45,0x53,0x32,0x35,0x36])||(_0x36ccc8=!0x1);}async function _0x592df3(_0x51d6dc,_0x378557,_0x2ce2bb){const _0x40f3d7=window[_0x36ba89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36ba89([0x66,0x72,0x6f,0x6d])](_0x1f2623(_0x2ce2bb),_0x517af0=>_0x517af0[_0x36ba89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xea6f77=new window[(_0x36ba89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36ba89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51d6dc+_0x36ba89([0x2e])+_0x378557),_0x25d4e3=window[_0x36ba89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36ba89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25d4e3)return;const _0x4e6dbe=await _0x25d4e3[_0x36ba89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36ba89([0x6a,0x77,0x6b]),_0x4536c7,{[_0x36ba89([0x6e,0x61,0x6d,0x65])]:_0x36ba89([0x45,0x43,0x44,0x53,0x41]),[_0x36ba89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36ba89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36ba89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25d4e3[_0x36ba89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36ba89([0x6e,0x61,0x6d,0x65])]:_0x36ba89([0x45,0x43,0x44,0x53,0x41]),[_0x36ba89([0x68,0x61,0x73,0x68])]:{[_0x36ba89([0x6e,0x61,0x6d,0x65])]:_0x36ba89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6dbe,_0x40f3d7,_0xea6f77)||(_0x36ccc8=!0x1);}}function _0x1fc8d9(_0x522ef6){return _0x522ef6[_0x36ba89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36ba89([0x65,0x79]))?JSON[_0x36ba89([0x70,0x61,0x72,0x73,0x65])](_0x1f2623(_0x522ef6)):null;}function _0x1f2623(_0x503b45){return window[_0x36ba89([0x61,0x74,0x6f,0x62])](_0x503b45[_0x36ba89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36ba89([0x2b]))[_0x36ba89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36ba89([0x2f])));}function _0x357479(_0x2192f5){let _0x179528=0x1505;function _0x55253a(_0x3d793a){for(let _0x172928=0x0;_0x172928<_0x3d793a[_0x36ba89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x172928++){const _0x14caf9=_0x3d793a[_0x36ba89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x172928);_0x179528=(_0x179528<<0x5)+_0x179528+_0x14caf9,_0x179528&=_0x179528;}}function _0x4d0214(_0x344f24){Array[_0x36ba89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x344f24)?_0x344f24[_0x36ba89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d0214):_0x344f24&&typeof _0x344f24==_0x36ba89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36ba89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x344f24)[_0x36ba89([0x73,0x6f,0x72,0x74])]()[_0x36ba89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4512ec,_0x729a92])=>{_0x55253a(_0x4512ec),_0x4d0214(_0x729a92);}):_0x55253a(window[_0x36ba89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x344f24));}return _0x4d0214(_0x2192f5),_0x179528>>>0x0;}function _0x3e68eb(_0x3ef599){return _0x3ef599[_0x36ba89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36ba89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36ba89([0x30]));}function _0x3f2f42(_0x55bb1d){return _0x55bb1d[_0x36ba89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36ba89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36ba89([0x6a,0x6f,0x69,0x6e])]('');}function _0x30654a(){}function _0x36ba89(_0x501332){const _0x3c5616=_0x5744;return _0x501332[_0x3c5616(0xb4)](_0x43074e=>String[_0x3c5616(0xe9)](_0x43074e))[_0x3c5616(0xb6)]('');}_0x2df9c0(await _0x26dd79());}(this);}[_0x22f5e4(0xaf)](){const _0x3d1cd9=_0x22f5e4,_0x1d61a0=this[_0x3d1cd9(0xa4)][_0x3d1cd9(0xcc)][_0x3d1cd9(0xd2)];_0x1d61a0[_0x3d1cd9(0xd5)](_0x3d1cd9(0xdd))&&_0x1d61a0[_0x3d1cd9(0xaa)](_0x3d1cd9(0xdd),{'allowAttributes':[_0x3d1cd9(0xd6)]}),_0x1d61a0[_0x3d1cd9(0xd5)](_0x3d1cd9(0xd0))&&_0x1d61a0[_0x3d1cd9(0xaa)](_0x3d1cd9(0xd0),{'allowAttributes':[_0x3d1cd9(0xd6)]});}[_0x22f5e4(0xbc)](){const _0x2a40be=_0x22f5e4,_0x4d716f=this[_0x2a40be(0xa4)];_0x4d716f[_0x2a40be(0xde)][_0x2a40be(0xb7)](_0x2a40be(0xb8))[_0x2a40be(0xd3)]({'model':_0x2a40be(0xd6),'view':_0x2a40be(0xda)}),_0x4d716f[_0x2a40be(0xde)][_0x2a40be(0xb7)](_0x2a40be(0xd9))[_0x2a40be(0xad)]({'model':{'key':_0x2a40be(0xd6),'value':_0x52603d=>_0x52603d[_0x2a40be(0xef)](_0x2a40be(0xda))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x42ed43=_0x4d716f[_0x2a40be(0xdb)][_0x2a40be(0xe6)](_0x2a40be(0xab));_0x42ed43&&this[_0x2a40be(0xe2)](_0x42ed43,_0x2a40be(0xae),(_0x375330,[_0x567682,_0x1ac01b])=>{const _0x45e1dd=_0x2a40be;_0x567682[_0x45e1dd(0xa5)](_0x45e1dd(0xd6),_0x1ac01b);});}[_0x22f5e4(0xeb)](){const _0x506eff=_0x22f5e4,_0x2bdb33=this[_0x506eff(0xa4)][_0x506eff(0xc1)][_0x506eff(0xe6)](_0x506eff(0xe7))||{},_0x57561a=this[_0x506eff(0xa4)][_0x506eff(0xc1)][_0x506eff(0xe6)](_0x506eff(0xf3))||'';this[_0x506eff(0xcd)]=_0x2b11c2(_0x4d2320[_0x506eff(0xf1)],_0x506eff(0xc3),{..._0x2bdb33,'pubkey':_0x57561a,'ctx-name':_0x506eff(0xdc)+this[_0x506eff(0xbd)],'sourceList':'','imgOnly':_0x506eff(0xe8),'removeCopyright':_0x506eff(0xe8),'localeName':this[_0x506eff(0xa4)][_0x506eff(0xf5)][_0x506eff(0xed)],'externalSourcesEmbedCss':_0x506eff(0xe4)}),this[_0x506eff(0xcd)][_0x506eff(0xbf)]=_0xb95ec1=>{const _0x1cb6b4=_0x506eff;if(_0x1cb6b4(0xb0)==_0xb95ec1)return _0x1cb6b4(0xf4);},_0x4d2320[_0x506eff(0xf1)][_0x506eff(0xb9)][_0x506eff(0xa8)](this[_0x506eff(0xcd)]);}[_0x22f5e4(0xb1)](){const _0x43ff22=_0x22f5e4;this[_0x43ff22(0xb2)]=_0x2b11c2(_0x4d2320[_0x43ff22(0xf1)],_0x43ff22(0xe5),{'ctx-name':_0x43ff22(0xdc)+this[_0x43ff22(0xbd)]}),_0x4d2320[_0x43ff22(0xf1)][_0x43ff22(0xb9)][_0x43ff22(0xa8)](this[_0x43ff22(0xb2)]);}[_0x22f5e4(0xcf)](){const _0xe62bf1=_0x22f5e4,_0x25caaf=this[_0xe62bf1(0xa4)][_0xe62bf1(0xdb)][_0xe62bf1(0xe6)](_0xe62bf1(0xa2));_0x25caaf&&this[_0xe62bf1(0xe2)](_0x25caaf,_0xe62bf1(0xec),()=>{const _0x8efa73=_0xe62bf1,_0x41d608=this[_0x8efa73(0xa4)][_0x8efa73(0xcc)][_0x8efa73(0xf1)][_0x8efa73(0xc7)][_0x8efa73(0xb3)]();_0x41d608&&_0x41d608[_0x8efa73(0xef)](_0x8efa73(0xd6))&&this[_0x8efa73(0xa4)][_0x8efa73(0xca)][_0x8efa73(0xc0)][_0x8efa73(0xbb)](_0x8efa73(0xc8),()=>{const _0x25c545=_0x8efa73;_0x3ee6c7(this[_0x25c545(0xa4)],_0x41d608);});});const _0x319cee=this[_0xe62bf1(0xa4)][_0xe62bf1(0xdb)][_0xe62bf1(0xe6)](_0xe62bf1(0xe1));_0x319cee&&this[_0xe62bf1(0xe2)](_0x319cee,_0xe62bf1(0xec),()=>{const _0x4864f6=_0xe62bf1,_0x12aca6=this[_0x4864f6(0xa4)][_0x4864f6(0xcc)][_0x4864f6(0xf1)][_0x4864f6(0xc7)][_0x4864f6(0xb3)]();_0x12aca6&&_0x12aca6[_0x4864f6(0xef)](_0x4864f6(0xd6))&&this[_0x4864f6(0xa4)][_0x4864f6(0xca)][_0x4864f6(0xc0)][_0x4864f6(0xbb)](_0x4864f6(0xc8),()=>{const _0x5262e9=_0x4864f6;_0x3ee6c7(this[_0x5262e9(0xa4)],_0x12aca6);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3c55fa,ObservableMixin as _0x193d4f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x723296}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x446489}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x581f48}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1f3d8a}from'../../utils/uploadutils.js';import{getImageUrls as _0xfa0422,getImageDimension as _0x3b273a}from'../../utils/editingutils.js';import{isAncestor as _0x577d4f}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x193d4f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x564689,_0x472062,_0x50a06b){super(),this['_editor']=_0x564689,this['_dialog']=_0x472062,this['_imageElement']=_0x50a06b,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 _0x2ea481=this['_imageElement'],_0x2645f4=_0x2ea481['getAttribute']('uploadcareImageId'),_0x58e70a=_0x2ea481['getAttribute']('src');if(_0x2645f4)await this['_loadImageInfo'](_0x2645f4,_0x58e70a);else{if(this['_imageCache']['has'](_0x58e70a)){const _0x433f71=this['_imageCache']['get'](_0x58e70a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x433f71['url'],this['imageDimension']=_0x433f71['dimension'],this['imageId']=_0x433f71['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xf8b4ad}=this['_editor'],t=_0xf8b4ad['t'],_0x433e03=new _0x581f48(_0xf8b4ad,this['imageStatus'],this['_attributes']);_0x433e03['bind']('status')['to'](this,'imageStatus'),_0x433e03['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x433e03['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x433e03['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x433e03,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x446489,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x433e03,'position':_0x723296['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x433e03['focus']();},'onHide':()=>{_0x433e03['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x7e02ab=>!_0x577d4f(_0x7e02ab,_0x433e03['element'])}});}['_loadImageInfo'](_0x3fb203,_0x58b435){return _0x1f3d8a['getInfo'](_0x3fb203,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x169312=>{const {width:_0x5daa3d,height:_0x4ef1b8}=_0x169312['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x58b435,this['imageDimension']={'width':_0x5daa3d,'height':_0x4ef1b8},this['imageId']=_0x3fb203;})['catch'](_0x283a51=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x283a51['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x557a0e,_0x10dc27){return this['_getImageAsFile'](_0x557a0e)['then'](_0x5a9d91=>_0x1f3d8a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x10dc27['signal'],'file':_0x5a9d91,'onProgress':_0x25492a=>{_0x25492a&&_0x25492a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x25492a['value']));}}))['then'](_0x42894f=>{const {width:_0x47f7ca,height:_0x387a78}=_0x42894f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42894f['cdnUrl'],this['imageDimension']={'width':_0x47f7ca,'height':_0x387a78},this['imageId']=_0x42894f['uuid'],this['imageUploadProgress']=null;const _0x1557d0=_0x557a0e['getAttribute']('src');this['_imageCache']['set'](_0x1557d0,{'id':_0x42894f['uuid'],'url':_0x42894f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5a7c5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a7c5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d5bbb,_0x35a473){_0x1d5bbb['on']('apply',(_0x555f29,_0x4f96f4)=>{this['_replaceImage'](_0x35a473,_0x4f96f4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d5bbb['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d5bbb['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2a4bfa,_0x24bac5,_0x1d4ea5){const _0x4adfad=this['_editor'],{width:_0x41913f,height:_0x497dc1}=_0x3b273a(_0x24bac5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c6822,imageSources:_0x14f760}=_0xfa0422(_0x24bac5,_0x41913f);_0x4adfad['model']['change'](_0x1d53fb=>{if('$graveyard'===_0x2a4bfa['root']['rootName']){_0x4adfad['execute']('insertImage',{'imageType':_0x2a4bfa['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2a4bfa['getAttributes']()),'uploadcareImageId':_0x1d4ea5,'src':_0x1c6822,'sources':_0x14f760,'width':_0x41913f,'height':_0x497dc1}});const _0x47cf14=_0x2a4bfa['getChildren']();_0x2a4bfa=_0x4adfad['model']['document']['selection']['getSelectedElement']();for(const _0x4d007d of _0x47cf14)_0x1d53fb['append'](_0x1d53fb['cloneElement'](_0x4d007d),_0x2a4bfa);}else _0x1d53fb['setSelection'](_0x2a4bfa,'on'),_0x4adfad['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2a4bfa['getAttributes']()),'uploadcareImageId':_0x1d4ea5,'src':_0x1c6822,'sources':_0x14f760,'width':_0x41913f,'height':_0x497dc1},_0x2a4bfa);_0x1d53fb['setSelection'](_0x2a4bfa,'on');});}async['_getImageAsFile'](_0x38d1b9){const _0x3f26be=_0x3c55fa['window'],_0x4348c1=_0x3c55fa['document']['location']['href'],_0x1c3c49=new _0x3f26be['URL'](_0x38d1b9['getAttribute']('src'),_0x4348c1);if('data:'===_0x1c3c49['protocol']){const _0x41d903=_0x1c3c49['href']['split'](','),_0x48237f=_0x41d903[0x0]['match'](/:(.*?);/)[0x1],_0x1f8247=_0x48237f['split']('/')[0x1],_0x40784d=_0x3f26be['atob'](_0x41d903[_0x41d903['length']-0x1]);let _0x42ac56=_0x40784d['length'];const _0x1b2bd8=new _0x3f26be['Uint8Array'](_0x42ac56);for(;_0x42ac56--;)_0x1b2bd8[_0x42ac56]=_0x40784d['charCodeAt'](_0x42ac56);return new _0x3f26be['File']([_0x1b2bd8],'image.'+_0x1f8247,{'type':_0x48237f});}const _0x322480=_0x1c3c49['href']['split']('/'),_0x190895=_0x322480[_0x322480['length']-0x1],_0x87b35e=_0x190895['split']('.')[0x1];return _0x3f26be['fetch'](_0x1c3c49['href'])['then'](_0x4a75d6=>_0x4a75d6['clone']()['blob']())['then'](_0x37906d=>new _0x3f26be['File']([_0x37906d],_0x190895,{'type':'image/'+_0x87b35e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5f25(_0xe92adf,_0x35c3db){const _0x388fb1=_0x388f();return _0x5f25=function(_0x5f254c,_0x4dc37f){_0x5f254c=_0x5f254c-0x1b4;let _0x202a6f=_0x388fb1[_0x5f254c];return _0x202a6f;},_0x5f25(_0xe92adf,_0x35c3db);}(function(_0x35b944,_0x2aa862){const _0x3ecc02=_0x5f25,_0xda55bb=_0x35b944();while(!![]){try{const _0x2577f3=-parseInt(_0x3ecc02(0x1bd))/0x1+-parseInt(_0x3ecc02(0x1b5))/0x2+parseInt(_0x3ecc02(0x1b8))/0x3*(parseInt(_0x3ecc02(0x1be))/0x4)+parseInt(_0x3ecc02(0x1b4))/0x5*(parseInt(_0x3ecc02(0x1c5))/0x6)+parseInt(_0x3ecc02(0x1bb))/0x7+-parseInt(_0x3ecc02(0x1b9))/0x8*(parseInt(_0x3ecc02(0x1c2))/0x9)+-parseInt(_0x3ecc02(0x1c0))/0xa*(-parseInt(_0x3ecc02(0x1c3))/0xb);if(_0x2577f3===_0x2aa862)break;else _0xda55bb['push'](_0xda55bb['shift']());}catch(_0xa3ead5){_0xda55bb['push'](_0xda55bb['shift']());}}}(_0x388f,0xd825f));import{View as _0x42fced}from'ckeditor5/src/ui.js';function _0x388f(){const _0x435583=['56KKbZoX','bindTemplate','80kbQPwH','imageSrc','157347hObwiY','2275823KdMGXV','set','174uzXJDI','setTemplate','175130iARsLY','3532024iRvKgi','uc-light','ck-uploadcare-theme','17241gPjzdQ','464KGrGfD','image-edit','9488080LrINoZ','uc-cloud-image-editor','441427PcLzov'];_0x388f=function(){return _0x435583;};return _0x388f();}export class UploadcareImageEditFormEditingView extends _0x42fced{constructor(_0x21b4d1,_0x28d407){const _0x365d8b=_0x5f25;super(_0x21b4d1);const _0xd9d9e=this[_0x365d8b(0x1bf)];this[_0x365d8b(0x1c4)](_0x365d8b(0x1c1),''),this[_0x365d8b(0x1c6)]({'tag':_0x365d8b(0x1bc),'attributes':{..._0x28d407,'class':[_0x365d8b(0x1b6),_0x365d8b(0x1b7)],'ctx-name':_0x365d8b(0x1ba),'cdn-url':_0xd9d9e['to'](_0x365d8b(0x1c1))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x82fac3}from'ckeditor5/src/icons.js';import{ButtonView as _0x5dc086,IconView as _0x9ffb20,View as _0x10a9d4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x10a9d4{constructor(_0x2f45b7){super(_0x2f45b7);const t=_0x2f45b7['t'];this['set']('errorType',null);const _0x429bc1=new _0x5dc086(_0x2f45b7);_0x429bc1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x429bc1['withText']=!0x0,_0x429bc1['class']='ck-button-action',_0x429bc1['on']('execute',()=>{this['fire']('retry');}),_0x429bc1['bind']('isVisible')['to'](this,'errorType',_0x218630=>'NotFound'!==_0x218630);const _0x8c11f4=new _0x9ffb20();_0x8c11f4['content']=_0x82fac3,_0x8c11f4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b5faf=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':[_0x8c11f4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b5faf['to']('errorType',_0x5bf2db=>t('NotFound'!==_0x5bf2db?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x429bc1]},{'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 _0x22216a,View as _0x2417b0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x2417b0{constructor(_0x3be03b){super(_0x3be03b);const t=_0x3be03b['t'],_0x6a7676=this['bindTemplate'],_0x18c513=new _0x22216a();_0x18c513['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':[_0x18c513,{'text':_0x6a7676['to']('imageUploadProgress',_0x42e120=>t('Loading\x20image...')+'\x20('+(_0x42e120||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a2083=_0x5bc1;(function(_0x1cd4cc,_0xe46366){const _0x13433a=_0x5bc1,_0x3603e3=_0x1cd4cc();while(!![]){try{const _0x199a80=-parseInt(_0x13433a(0xc5))/0x1+parseInt(_0x13433a(0xde))/0x2*(-parseInt(_0x13433a(0xdf))/0x3)+parseInt(_0x13433a(0xc4))/0x4+parseInt(_0x13433a(0xc2))/0x5+parseInt(_0x13433a(0xbc))/0x6*(-parseInt(_0x13433a(0xdc))/0x7)+parseInt(_0x13433a(0xb2))/0x8*(-parseInt(_0x13433a(0xbf))/0x9)+parseInt(_0x13433a(0xdd))/0xa*(parseInt(_0x13433a(0xcd))/0xb);if(_0x199a80===_0xe46366)break;else _0x3603e3['push'](_0x3603e3['shift']());}catch(_0x351439){_0x3603e3['push'](_0x3603e3['shift']());}}}(_0x198e,0x6885a));import{View as _0x4490e1}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x532354}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2ad4d7}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x15f6f4}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x42feb6}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x42feb6{[_0x2a2083(0xca)];[_0x2a2083(0xc1)];[_0x2a2083(0xbb)];[_0x2a2083(0xcb)];[_0x2a2083(0xd8)];constructor(_0x58687e,_0x560a62,_0x25ecf4){const _0x1d73fa=_0x2a2083;super(_0x58687e),this[_0x1d73fa(0xca)]=this[_0x1d73fa(0xb0)](),this[_0x1d73fa(0xc1)]=new _0x532354(_0x58687e),this[_0x1d73fa(0xbb)]=new _0x2ad4d7(_0x58687e),this[_0x1d73fa(0xcb)]=new _0x15f6f4(_0x58687e,_0x25ecf4),this[_0x1d73fa(0xd8)]=new _0x4490e1(_0x58687e),this[_0x1d73fa(0xd8)][_0x1d73fa(0xd3)](this[_0x1d73fa(0xaa)]()),this[_0x1d73fa(0xd6)](_0x1d73fa(0xd0),_0x560a62),this[_0x1d73fa(0xd3)]({'tag':_0x1d73fa(0xb8),'attributes':{'class':['ck',_0x1d73fa(0xaf),_0x1d73fa(0xb9)],'tabindex':'-1'},'children':this[_0x1d73fa(0xca)]}),this[_0x1d73fa(0xcc)](),this[_0x1d73fa(0xd4)](_0x1d73fa(0xd7),()=>{const _0x2e5a81=_0x1d73fa;this[_0x2e5a81(0xae)](this[_0x2e5a81(0xda)],_0x4f31e4=>{const _0x4523d1=_0x2e5a81;this[_0x4523d1(0xc0)](_0x4f31e4);});}),this['on'](_0x1d73fa(0xd9),()=>{const _0x201891=_0x1d73fa;this[_0x201891(0xcc)]();}),this[_0x1d73fa(0xab)]();}[_0x2a2083(0xce)](){const _0x10b3dc=_0x2a2083;this[_0x10b3dc(0xda)][_0x10b3dc(0xce)]();}[_0x2a2083(0xcc)](){const _0x3358f6=_0x2a2083;switch(this[_0x3358f6(0xca)][_0x3358f6(0xb5)](),this[_0x3358f6(0xd0)]){case _0x3358f6(0xbd):this[_0x3358f6(0xca)][_0x3358f6(0xb4)](this[_0x3358f6(0xc1)]);break;case _0x3358f6(0xa9):this[_0x3358f6(0xca)][_0x3358f6(0xb4)](this[_0x3358f6(0xbb)]);break;case _0x3358f6(0xc6):this[_0x3358f6(0xca)][_0x3358f6(0xba)]([this[_0x3358f6(0xcb)],this[_0x3358f6(0xd8)]]);}}[_0x2a2083(0xae)](_0x1cbbe5,_0x1c1674){const _0x229e32=_0x2a2083,_0x5c0f38=_0x229e32(0xb6),_0x24790a=_0x1cbbe5[_0x229e32(0xd5)](_0x5c0f38);if(_0x24790a)return _0x1c1674(_0x24790a);const _0x60be89=new MutationObserver(_0x22f5d3=>{const _0x14c1af=_0x229e32,_0x387e75=_0x22f5d3[_0x14c1af(0xbe)](_0x553ae3=>_0x553ae3[_0x14c1af(0xdb)]===_0x1cbbe5&&_0x553ae3[_0x14c1af(0xc8)][_0x14c1af(0xc9)]>0x0&&_0x553ae3[_0x14c1af(0xc8)][0x0][_0x14c1af(0xb3)][_0x14c1af(0xb1)]()===_0x5c0f38);_0x387e75[_0x14c1af(0xc9)]&&(_0x60be89[_0x14c1af(0xcf)](),_0x1c1674(_0x387e75[0x0][_0x14c1af(0xc8)][0x0]));});_0x60be89[_0x229e32(0xd1)](_0x1cbbe5,{'childList':!0x0,'subtree':!0x0});}[_0x2a2083(0xc0)](_0x1d8c28){const _0x2724f7=_0x2a2083;_0x1d8c28[_0x2724f7(0xd2)](_0x2724f7(0xc3),_0xbbd67b=>{const _0x5c26ab=_0x2724f7;this[_0x5c26ab(0xac)](_0x5c26ab(0xc3),{'imageSrc':_0xbbd67b[_0x5c26ab(0xad)][_0x5c26ab(0xc7)]});}),_0x1d8c28[_0x2724f7(0xd2)](_0x2724f7(0xa8),()=>{const _0xda570e=_0x2724f7;this[_0xda570e(0xac)](_0xda570e(0xa8));});}[_0x2a2083(0xab)](){const _0x5526f4=_0x2a2083;this[_0x5526f4(0xbb)]['on'](_0x5526f4(0xb7),()=>{const _0x291148=_0x5526f4;this[_0x291148(0xac)](_0x291148(0xb7));});}}function _0x5bc1(_0x227a96,_0x1fff72){const _0x198ea4=_0x198e();return _0x5bc1=function(_0x5bc145,_0x37a65c){_0x5bc145=_0x5bc145-0xa8;let _0x560f5a=_0x198ea4[_0x5bc145];return _0x560f5a;},_0x5bc1(_0x227a96,_0x1fff72);}function _0x198e(){const _0x15cf17=['focus','disconnect','status','observe','addEventListener','setTemplate','once','querySelector','set','render','_focusableView','change:status','element','target','42fNwvUE','10EBxQtZ','218mNxpEH','10077BKAQLq','cancel','error','getFocusableElement','_addErrorViewListeners','fire','detail','_waitForImageEditorComponent','ck-reset_all-excluded','createCollection','toLowerCase','10520JmUDZP','nodeName','add','clear','uc-cloud-image-editor','retry','div','ck-uploadcare-form','addMany','_errorView','231348MDDxfs','uploading','filter','27oOstrt','_addUploadcareImageEditorListeners','_loadingView','1443140LkSWUQ','apply','2378712RkGJlO','330041MUjMGp','ready','cdnUrl','addedNodes','length','_items','_editingView','_setView','5239091zxWXCd'];_0x198e=function(){return _0x15cf17;};return _0x198e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a0ec5=_0x6273;(function(_0x3322df,_0x2d4355){const _0x4460f8=_0x6273,_0x9d1e21=_0x3322df();while(!![]){try{const _0x32d735=parseInt(_0x4460f8(0x1e7))/0x1+-parseInt(_0x4460f8(0x1f0))/0x2*(-parseInt(_0x4460f8(0x1f8))/0x3)+-parseInt(_0x4460f8(0x1f7))/0x4*(-parseInt(_0x4460f8(0x1f1))/0x5)+parseInt(_0x4460f8(0x1ef))/0x6*(parseInt(_0x4460f8(0x1e9))/0x7)+parseInt(_0x4460f8(0x1ec))/0x8*(parseInt(_0x4460f8(0x1fe))/0x9)+parseInt(_0x4460f8(0x203))/0xa*(parseInt(_0x4460f8(0x1f6))/0xb)+parseInt(_0x4460f8(0x1e8))/0xc*(-parseInt(_0x4460f8(0x1f3))/0xd);if(_0x32d735===_0x2d4355)break;else _0x9d1e21['push'](_0x9d1e21['shift']());}catch(_0x542687){_0x9d1e21['push'](_0x9d1e21['shift']());}}}(_0xdea0,0xd6eed));function _0x6273(_0x4c0f23,_0x3bb366){const _0xdea08c=_0xdea0();return _0x6273=function(_0x62735d,_0x40f3e4){_0x62735d=_0x62735d-0x1e7;let _0x41bedc=_0xdea08c[_0x62735d];return _0x41bedc;},_0x6273(_0x4c0f23,_0x3bb366);}function _0xdea0(){const _0x8141d2=['_isEditable','plugins','config','selection','bind','238671iWIhCA','refresh','get','isActive','requires','39310lGrwzJ','getSelectedElement','element','imageBlock','unbind','document','uploadcare.allowExternalImagesEditing','1661652pXczDz','12HDDsNL','1964165SiAEwt','isEnabled','model','152OfWYdl','execute','editor','18EBUlUx','67114voNNin','6410VMunlS','set','50999689EKCTgV','imageInline','imageEditController','1815CGtwpm','544zGnUZv','87vqMMRP'];_0xdea0=function(){return _0x8141d2;};return _0xdea0();}import{Command as _0x19e794}from'ckeditor5/src/core.js';import{Dialog as _0x29e86c}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2e80a6}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x32bfa1}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x19e794{[_0x3a0ec5(0x1f5)];static get[_0x3a0ec5(0x202)](){return[_0x29e86c];}[_0x3a0ec5(0x1f9)];constructor(_0x3cd76a){const _0x39535d=_0x3a0ec5;super(_0x3cd76a),this[_0x39535d(0x1f5)]=void 0x0,this[_0x39535d(0x1f9)]=_0x32bfa1(_0x3cd76a[_0x39535d(0x1fb)][_0x39535d(0x200)](_0x39535d(0x209))||[]),this[_0x39535d(0x1f2)]({'isActive':!0x1});}[_0x3a0ec5(0x1ff)](){const _0x3c5c87=_0x3a0ec5,_0x2e8bfc=this[_0x3c5c87(0x1ee)][_0x3c5c87(0x1eb)][_0x3c5c87(0x208)][_0x3c5c87(0x1fc)][_0x3c5c87(0x204)]();this[_0x3c5c87(0x1ea)]=this[_0x3c5c87(0x1f9)](_0x2e8bfc);}[_0x3a0ec5(0x1ed)](){const _0x26ca40=_0x3a0ec5;this[_0x26ca40(0x1f5)]&&(this[_0x26ca40(0x207)](_0x26ca40(0x201)),this[_0x26ca40(0x1f5)]=void 0x0);const _0x37f490=this[_0x26ca40(0x1ee)][_0x26ca40(0x1eb)][_0x26ca40(0x208)][_0x26ca40(0x1fc)][_0x26ca40(0x204)]();_0x37f490&&(_0x37f490['is'](_0x26ca40(0x205),_0x26ca40(0x206))||_0x37f490['is'](_0x26ca40(0x205),_0x26ca40(0x1f4)))&&(this[_0x26ca40(0x1f5)]=new _0x2e80a6(this[_0x26ca40(0x1ee)],this[_0x26ca40(0x1ee)][_0x26ca40(0x1fa)][_0x26ca40(0x200)](_0x29e86c),_0x37f490),this[_0x26ca40(0x1fd)](_0x26ca40(0x201))['to'](this[_0x26ca40(0x1f5)],_0x26ca40(0x201)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x50da81=_0x4fac;function _0x2b1b(){const _0x33f70c=['409jzypBL','commands','isOfficialPlugin','5709gCqHGc','add','648uKcMJu','isPremiumPlugin','7924568adgkTm','uploadcareImageEdit','uploadcareImageReplace','5390465kbEsgB','ImageUtils','3221869ZWyOKl','ImageEditing','4738jRQtMW','579910auOwqS','init','requires','3633462IfnEQW','pluginName','616wUjZpG','UploadcareImageEditEditing'];_0x2b1b=function(){return _0x33f70c;};return _0x2b1b();}(function(_0x1c5aa4,_0x4642e5){const _0x4d93a9=_0x4fac,_0x2420ea=_0x1c5aa4();while(!![]){try{const _0x1514ab=-parseInt(_0x4d93a9(0x119))/0x1*(parseInt(_0x4d93a9(0x111))/0x2)+parseInt(_0x4d93a9(0x11c))/0x3*(-parseInt(_0x4d93a9(0x117))/0x4)+-parseInt(_0x4d93a9(0x10d))/0x5+parseInt(_0x4d93a9(0x115))/0x6+-parseInt(_0x4d93a9(0x10f))/0x7+-parseInt(_0x4d93a9(0x10a))/0x8+-parseInt(_0x4d93a9(0x108))/0x9*(-parseInt(_0x4d93a9(0x112))/0xa);if(_0x1514ab===_0x4642e5)break;else _0x2420ea['push'](_0x2420ea['shift']());}catch(_0x105143){_0x2420ea['push'](_0x2420ea['shift']());}}}(_0x2b1b,0xf1b3f));function _0x4fac(_0x5c99a4,_0x4c594a){const _0x2b1bc6=_0x2b1b();return _0x4fac=function(_0x4facad,_0x5bbac6){_0x4facad=_0x4facad-0x108;let _0x39f79b=_0x2b1bc6[_0x4facad];return _0x39f79b;},_0x4fac(_0x5c99a4,_0x4c594a);}import{Plugin as _0x3b30cf}from'ckeditor5/src/core.js';import{Notification as _0x37c1d1}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xad3f36}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x309d6a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2269b8}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3b30cf{static get[_0x50da81(0x116)](){const _0x330d12=_0x50da81;return _0x330d12(0x118);}static get[_0x50da81(0x114)](){const _0x58d2e7=_0x50da81;return[_0x2269b8,_0x37c1d1,_0x58d2e7(0x10e),_0x58d2e7(0x110)];}static get[_0x50da81(0x11b)](){return!0x0;}static get[_0x50da81(0x109)](){return!0x0;}[_0x50da81(0x113)](){const _0x2fe151=_0x50da81,{editor:_0x375153}=this;_0x375153[_0x2fe151(0x11a)][_0x2fe151(0x11d)](_0x2fe151(0x10b),new _0xad3f36(_0x375153)),_0x375153[_0x2fe151(0x11a)][_0x2fe151(0x11d)](_0x2fe151(0x10c),new _0x309d6a(_0x375153));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x526e3a}from'ckeditor5/src/core.js';import{ButtonView as _0x3d44f8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x489b02}from'ckeditor5/src/icons.js';import{createElement as _0x1a1476}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x526e3a{['_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 _0x58f1b6=this['editor'];_0x58f1b6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x58446c=>{const _0x2af7d0=_0x58f1b6['commands']['get']('uploadcareImageEdit'),_0x3e94b6=new _0x3d44f8(_0x58446c),t=_0x58446c['t'];return _0x3e94b6['set']({'icon':_0x489b02,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e94b6['bind']('isEnabled')['to'](_0x2af7d0),_0x3e94b6['bind']('isOn')['to'](_0x2af7d0,'isActive'),this['listenTo'](_0x3e94b6,'execute',()=>{_0x58f1b6['execute']('uploadcareImageEdit'),_0x58f1b6['editing']['view']['focus']();}),_0x3e94b6;}),this['_initConfig']();}['_initConfig'](){const _0x59b959=_0x1a1476(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x59b959),this['listenTo'](this['editor'],'destroy',()=>{_0x59b959['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5550(){const _0x308922=['isEnabled','refresh','selection','1791880DuCkSv','model','396474gsLrCc','imageInline','element','824405iyljbZ','getSelectedElement','18010TVNFZz','42woLMAw','84215zZLFlV','removeAttribute','sizes','4TPanUc','srcset','execute','document','179358akCznY','change','imageBlock','39180sxWJDT','setAttributes','81SmXKIE','editor'];_0x5550=function(){return _0x308922;};return _0x5550();}function _0x2e97(_0x5450b6,_0x40f43c){const _0x555048=_0x5550();return _0x2e97=function(_0x2e9738,_0x9a3f56){_0x2e9738=_0x2e9738-0x122;let _0x5a6274=_0x555048[_0x2e9738];return _0x5a6274;},_0x2e97(_0x5450b6,_0x40f43c);}const _0x377695=_0x2e97;(function(_0x56591b,_0x20c553){const _0x4e092b=_0x2e97,_0x188a1e=_0x56591b();while(!![]){try{const _0xbbe63d=parseInt(_0x4e092b(0x134))/0x1+parseInt(_0x4e092b(0x12d))/0x2+-parseInt(_0x4e092b(0x124))/0x3+parseInt(_0x4e092b(0x137))/0x4*(-parseInt(_0x4e092b(0x130))/0x5)+parseInt(_0x4e092b(0x13b))/0x6*(-parseInt(_0x4e092b(0x133))/0x7)+parseInt(_0x4e092b(0x12b))/0x8+parseInt(_0x4e092b(0x126))/0x9*(-parseInt(_0x4e092b(0x132))/0xa);if(_0xbbe63d===_0x20c553)break;else _0x188a1e['push'](_0x188a1e['shift']());}catch(_0x55f291){_0x188a1e['push'](_0x188a1e['shift']());}}}(_0x5550,0x20741));import{Command as _0x41dfc8}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x41dfc8{[_0x377695(0x129)](){const _0x446492=_0x377695,_0x3137b8=this[_0x446492(0x127)][_0x446492(0x12c)][_0x446492(0x13a)][_0x446492(0x12a)][_0x446492(0x131)]();this[_0x446492(0x128)]=Boolean(_0x3137b8&&(_0x3137b8['is'](_0x446492(0x12f),_0x446492(0x123))||_0x3137b8['is'](_0x446492(0x12f),_0x446492(0x12e))));}[_0x377695(0x139)](_0x4bbf06){const _0x19f177=_0x377695,_0x23c4e7=this[_0x19f177(0x127)][_0x19f177(0x12c)][_0x19f177(0x13a)][_0x19f177(0x12a)][_0x19f177(0x131)]();this[_0x19f177(0x127)][_0x19f177(0x12c)][_0x19f177(0x122)](_0x178d89=>{const _0x2ed4c2=_0x19f177;_0x178d89[_0x2ed4c2(0x125)](_0x4bbf06,_0x23c4e7),_0x178d89[_0x2ed4c2(0x135)](_0x2ed4c2(0x138),_0x23c4e7),_0x178d89[_0x2ed4c2(0x135)](_0x2ed4c2(0x136),_0x23c4e7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x56e2(){var _0x420cd8=['isOfficialPlugin','2088351cwIJKu','2290gKXBTf','2178ngtqvR','requires','pluginName','UploadcareImageEdit','3101622kJUIzx','isPremiumPlugin','20348970KaDgFA','7rDsXaB','1745240VIolAI','292staYTU','2710125kxQywV','1892tkzxWS'];_0x56e2=function(){return _0x420cd8;};return _0x56e2();}var _0x39050c=_0x480f;function _0x480f(_0x2a609d,_0x336742){var _0x56e274=_0x56e2();return _0x480f=function(_0x480fe7,_0x17c8a2){_0x480fe7=_0x480fe7-0x178;var _0x5c6e7c=_0x56e274[_0x480fe7];return _0x5c6e7c;},_0x480f(_0x2a609d,_0x336742);}(function(_0x5f0220,_0x593bf0){var _0x342b38=_0x480f,_0x44a950=_0x5f0220();while(!![]){try{var _0x2a0ff4=parseInt(_0x342b38(0x181))/0x1*(-parseInt(_0x342b38(0x178))/0x2)+-parseInt(_0x342b38(0x182))/0x3+parseInt(_0x342b38(0x183))/0x4*(parseInt(_0x342b38(0x186))/0x5)+parseInt(_0x342b38(0x17c))/0x6*(-parseInt(_0x342b38(0x17f))/0x7)+parseInt(_0x342b38(0x180))/0x8+parseInt(_0x342b38(0x185))/0x9+parseInt(_0x342b38(0x17e))/0xa;if(_0x2a0ff4===_0x593bf0)break;else _0x44a950['push'](_0x44a950['shift']());}catch(_0x4bcda4){_0x44a950['push'](_0x44a950['shift']());}}}(_0x56e2,0xeb361));import{Plugin as _0x3b9172}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x4b826e}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x3977c3}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x3b9172{static get[_0x39050c(0x17a)](){var _0x29f3c1=_0x39050c;return _0x29f3c1(0x17b);}static get[_0x39050c(0x179)](){return[_0x4b826e,_0x3977c3];}static get[_0x39050c(0x184)](){return!0x0;}static get[_0x39050c(0x17d)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d4071=_0x5265;(function(_0x3463ae,_0x3e3095){const _0x2dc8e0=_0x5265,_0xe0d5bd=_0x3463ae();while(!![]){try{const _0x37d4d1=parseInt(_0x2dc8e0(0x1c6))/0x1*(-parseInt(_0x2dc8e0(0x1d7))/0x2)+parseInt(_0x2dc8e0(0x1d1))/0x3+parseInt(_0x2dc8e0(0x1aa))/0x4*(parseInt(_0x2dc8e0(0x1b0))/0x5)+-parseInt(_0x2dc8e0(0x1bd))/0x6*(-parseInt(_0x2dc8e0(0x1a8))/0x7)+-parseInt(_0x2dc8e0(0x1c9))/0x8*(parseInt(_0x2dc8e0(0x1d2))/0x9)+-parseInt(_0x2dc8e0(0x1eb))/0xa+-parseInt(_0x2dc8e0(0x1de))/0xb*(-parseInt(_0x2dc8e0(0x1c1))/0xc);if(_0x37d4d1===_0x3e3095)break;else _0xe0d5bd['push'](_0xe0d5bd['shift']());}catch(_0x5c3d04){_0xe0d5bd['push'](_0xe0d5bd['shift']());}}}(_0x545a,0xd6821));import{Plugin as _0xdff11e}from'ckeditor5/src/core.js';import{IconDropbox as _0x58290f,IconFacebook as _0x594bc4,IconGoogleDrive as _0x57637a,IconGooglePhotos as _0x5129c2,IconUploadcareImageUpload as _0xfb1072,IconUploadcareLink as _0x4c005c,IconOneDrive as _0x44304e}from'ckeditor5/src/icons.js';function _0x545a(){const _0x134b96=['init','map','licenseKey','1285785Hblkgl','Facebook','_createMenuBarButtons','uploadcareLicenseKeyInvalid','isEnabled','entries','uploadcareLicenseKeyUsageLimit','registerIntegration','withText','_normalizeConfigSourceList','assetManager','_showLicenseError','evaluationLimit','217716mxGHWS','label','pluginName','editor','24aUNHMX','domainLimit','featureNotAllowed','uploadcare','isOfficialPlugin','1lKmNFz','isPremiumPlugin','icon','2517584vcAeiN','GPhotos','UploadcareUI','uploadcare.uploader.sourceList','type','uploadcareLicenseKeyEvaluationLimit','shortText','_createButton','3344475NpfrLv','9IjSFuw','usageLimit','Replace','afterInit','text','556486DcYHWh','push','URL','upload','OneDrive','GDrive','_licenseKeyCheckInterval','1966525lxUcjS','_createToolbarButton','locale','_getIntegrationKey','url','has','uploadcareLicenseKeyExpired','plugins','isImageSelected','destroy','invalid','forEach','uploadcareLicenseKeyValid','7659700FgTxaG','ImageInsertUI','Uploadcare','uploadcareLicenseKeyNotAllowed','Dropbox','_createDropdownButtons','expired','commands','uploadcareLicenseKeyDomainLimit','Local','bind','reduce','get','tooltip','98gCnirv','config','4sbOIBX','Insert','execute'];_0x545a=function(){return _0x134b96;};return _0x545a();}import{ButtonView as _0x3ab055,MenuBarMenuListItemButtonView as _0x117e7a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x328805}from'./uploadcareconfig.js';import{getTranslation as _0x2c1e69}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x5265(_0x1c35b6,_0x5ae864){const _0x545a0d=_0x545a();return _0x5265=function(_0x526542,_0xa44d71){_0x526542=_0x526542-0x1a3;let _0x1dad2f=_0x545a0d[_0x526542];return _0x1dad2f;},_0x5265(_0x1c35b6,_0x5ae864);}export class UploadcareUI extends _0xdff11e{[_0x2d4071(0x1af)];[_0x2d4071(0x1dd)];static get[_0x2d4071(0x1bf)](){const _0x5bef9f=_0x2d4071;return _0x5bef9f(0x1cb);}static get[_0x2d4071(0x1c5)](){return!0x0;}static get[_0x2d4071(0x1c7)](){return!0x0;}[_0x2d4071(0x1ad)](){const _0x8e4b2=_0x2d4071;this[_0x8e4b2(0x1af)]=this[_0x8e4b2(0x1c0)][_0x8e4b2(0x1a9)][_0x8e4b2(0x1a6)](_0x8e4b2(0x1af));const _0x370c22=this[_0x8e4b2(0x1c0)];this[_0x8e4b2(0x1dd)]=setInterval(()=>{const _0x3cc610=_0x8e4b2;let _0x33ad06;for(const _0x219046 in _0x370c22){const _0x13c2e7=_0x219046,_0x1d63db=_0x370c22[_0x13c2e7];if(_0x3cc610(0x1ea)==_0x1d63db||_0x3cc610(0x1b3)==_0x1d63db||_0x3cc610(0x1e4)==_0x1d63db||_0x3cc610(0x1f3)==_0x1d63db||_0x3cc610(0x1ee)==_0x1d63db||_0x3cc610(0x1ce)==_0x1d63db||_0x3cc610(0x1b6)==_0x1d63db){delete _0x370c22[_0x13c2e7],_0x33ad06=_0x1d63db,clearInterval(this[_0x3cc610(0x1dd)]),this[_0x3cc610(0x1dd)]=void 0x0;break;}}_0x3cc610(0x1b3)==_0x33ad06&&_0x370c22[_0x3cc610(0x1bb)](_0x3cc610(0x1e8)),_0x3cc610(0x1e4)==_0x33ad06&&_0x370c22[_0x3cc610(0x1bb)](_0x3cc610(0x1f1)),_0x3cc610(0x1f3)==_0x33ad06&&_0x370c22[_0x3cc610(0x1bb)](_0x3cc610(0x1c2)),_0x3cc610(0x1ee)==_0x33ad06&&_0x370c22[_0x3cc610(0x1bb)](_0x3cc610(0x1c3),_0x3cc610(0x1ed)),_0x3cc610(0x1ce)==_0x33ad06&&_0x370c22[_0x3cc610(0x1bb)](_0x3cc610(0x1bc)),_0x3cc610(0x1b6)==_0x33ad06&&_0x370c22[_0x3cc610(0x1bb)](_0x3cc610(0x1d3));},0x3e8);}[_0x2d4071(0x1d5)](){const _0x5c4acf=_0x2d4071,{editor:_0x104b2f}=this,_0x44ea23=_0x104b2f[_0x5c4acf(0x1f2)][_0x5c4acf(0x1a6)](_0x5c4acf(0x1c4));if(!_0x44ea23)return;const _0xa736a=this[_0x5c4acf(0x1b9)](_0x104b2f[_0x5c4acf(0x1a9)][_0x5c4acf(0x1a6)](_0x5c4acf(0x1cc)))[_0x5c4acf(0x1a5)]((_0x5b8d4e,_0xddb513)=>{const _0xc77815=_0x5c4acf,_0xde2d1c=this[_0xc77815(0x1e1)](_0xddb513[_0xc77815(0x1cd)]);return _0x5b8d4e[_0xde2d1c]||(_0x5b8d4e[_0xde2d1c]=[]),_0x5b8d4e[_0xde2d1c][_0xc77815(0x1d8)](_0xddb513),_0x5b8d4e;},{});_0x104b2f[_0x5c4acf(0x1e5)][_0x5c4acf(0x1e3)](_0x5c4acf(0x1ec))&&_0x104b2f[_0x5c4acf(0x1f2)][_0x5c4acf(0x1a6)](_0x5c4acf(0x1c4))&&Object[_0x5c4acf(0x1b5)](_0xa736a)[_0x5c4acf(0x1e9)](([_0x30fa0c,_0x10c7f0])=>{const _0xbed4e6=_0x5c4acf;_0x104b2f[_0xbed4e6(0x1e5)][_0xbed4e6(0x1a6)](_0xbed4e6(0x1ec))[_0xbed4e6(0x1b7)]({'name':_0x30fa0c,'observable':()=>_0x44ea23,'buttonViewCreator':()=>this[_0xbed4e6(0x1df)](_0x10c7f0),'formViewCreator':()=>this[_0xbed4e6(0x1f0)](_0x10c7f0),'menuBarButtonViewCreator':()=>this[_0xbed4e6(0x1b2)](_0x10c7f0),'override':_0xbed4e6(0x1ba)!==_0x30fa0c});});}[_0x2d4071(0x1e7)](){const _0x264ebf=_0x2d4071;super[_0x264ebf(0x1e7)](),this[_0x264ebf(0x1dd)]&&clearInterval(this[_0x264ebf(0x1dd)]);}[_0x2d4071(0x1b9)](_0x50592f){const _0x5cc521=_0x2d4071,{locale:_0x267fce}=this[_0x5cc521(0x1c0)];return _0x50592f[_0x5cc521(0x1ae)](_0x5e14ad=>{const _0x2bf0aa=_0x5cc521,_0x57f3bc=_0x2c1e69(_0x267fce,_0x5e14ad,_0x2bf0aa(0x1ab));switch(_0x5e14ad){case _0x328805[_0x2bf0aa(0x1a3)]:return{'icon':_0xfb1072,'type':_0x328805[_0x2bf0aa(0x1a3)],..._0x57f3bc};case _0x328805[_0x2bf0aa(0x1d9)]:return{'icon':_0x4c005c,'type':_0x328805[_0x2bf0aa(0x1d9)],..._0x57f3bc};case _0x328805[_0x2bf0aa(0x1ef)]:return{'icon':_0x58290f,'type':_0x328805[_0x2bf0aa(0x1ef)],..._0x57f3bc};case _0x328805[_0x2bf0aa(0x1b1)]:return{'icon':_0x594bc4,'type':_0x328805[_0x2bf0aa(0x1b1)],..._0x57f3bc};case _0x328805[_0x2bf0aa(0x1dc)]:return{'icon':_0x57637a,'type':_0x328805[_0x2bf0aa(0x1dc)],..._0x57f3bc};case _0x328805[_0x2bf0aa(0x1ca)]:return{'icon':_0x5129c2,'type':_0x328805[_0x2bf0aa(0x1ca)],..._0x57f3bc};case _0x328805[_0x2bf0aa(0x1db)]:return{'icon':_0x44304e,'type':_0x328805[_0x2bf0aa(0x1db)],..._0x57f3bc};}});}[_0x2d4071(0x1e1)](_0x11e66d){const _0x26fa0f=_0x2d4071;switch(_0x11e66d){case _0x328805[_0x26fa0f(0x1a3)]:return _0x26fa0f(0x1da);case _0x328805[_0x26fa0f(0x1d9)]:return _0x26fa0f(0x1e2);default:return _0x26fa0f(0x1ba);}}[_0x2d4071(0x1d0)](_0x4d1884,_0x1aef5a){const _0x5878bf=_0x2d4071,_0x498991=this[_0x5878bf(0x1c0)],_0x58eca5=new _0x4d1884(_0x498991[_0x5878bf(0x1e0)]),_0x4e7958=_0x498991[_0x5878bf(0x1f2)][_0x5878bf(0x1a6)](_0x5878bf(0x1c4));return _0x58eca5[_0x5878bf(0x1a4)](_0x5878bf(0x1b4))['to'](_0x4e7958),_0x58eca5['on'](_0x5878bf(0x1ac),()=>{const _0x41af91=_0x5878bf;_0x4e7958[_0x41af91(0x1ac)](_0x1aef5a);}),_0x58eca5;}[_0x2d4071(0x1df)](_0x40fdc0){const _0xe3dd50=_0x2d4071,{locale:_0x7d0a8b}=this[_0xe3dd50(0x1c0)],_0x339807=this[_0xe3dd50(0x1c0)][_0xe3dd50(0x1e5)][_0xe3dd50(0x1a6)](_0xe3dd50(0x1ec)),_0x416851=_0x40fdc0[0x0],_0x51a129=this[_0xe3dd50(0x1d0)](_0x3ab055,_0x416851[_0xe3dd50(0x1cd)]);return _0x51a129[_0xe3dd50(0x1c8)]=_0x416851[_0xe3dd50(0x1c8)],_0x51a129[_0xe3dd50(0x1a4)](_0xe3dd50(0x1be))['to'](_0x339807,_0xe3dd50(0x1e6),_0x1324d3=>_0x2c1e69(_0x7d0a8b,_0x416851[_0xe3dd50(0x1cd)],_0x1324d3?_0xe3dd50(0x1d4):_0xe3dd50(0x1ab))[_0xe3dd50(0x1d6)]),_0x51a129[_0xe3dd50(0x1a7)]=!0x0,_0x51a129;}[_0x2d4071(0x1f0)](_0x28d034){const _0x45b0c9=_0x2d4071,{locale:_0x5ed579}=this[_0x45b0c9(0x1c0)],_0x722c80=this[_0x45b0c9(0x1c0)][_0x45b0c9(0x1e5)][_0x45b0c9(0x1a6)](_0x45b0c9(0x1ec));return _0x28d034[_0x45b0c9(0x1ae)](_0x4a7ee6=>{const _0x10035d=_0x45b0c9,_0x5bc08e=this[_0x10035d(0x1d0)](_0x3ab055,_0x4a7ee6[_0x10035d(0x1cd)]);return _0x5bc08e[_0x10035d(0x1b8)]=!0x0,_0x5bc08e[_0x10035d(0x1c8)]=_0x4a7ee6[_0x10035d(0x1c8)],_0x5bc08e[_0x10035d(0x1a4)](_0x10035d(0x1be))['to'](_0x722c80,_0x10035d(0x1e6),_0x3d4807=>_0x2c1e69(_0x5ed579,_0x4a7ee6[_0x10035d(0x1cd)],_0x3d4807?_0x10035d(0x1d4):_0x10035d(0x1ab))[_0x10035d(0x1d6)]),_0x5bc08e;});}[_0x2d4071(0x1b2)](_0x3efa41){const _0x13aa45=_0x2d4071;return _0x3efa41[_0x13aa45(0x1ae)](_0x441fc4=>{const _0x1b05fe=_0x13aa45,_0x49dfb4=this[_0x1b05fe(0x1d0)](_0x117e7a,_0x441fc4[_0x1b05fe(0x1cd)]);return _0x49dfb4[_0x1b05fe(0x1c8)]=_0x441fc4[_0x1b05fe(0x1c8)],_0x49dfb4[_0x1b05fe(0x1be)]=_0x441fc4[_0x1b05fe(0x1cf)],_0x49dfb4;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4101d9}from'ckeditor5/src/core.js';import{FileRepository as _0x40573c}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xc92991}from'./uploadcareediting.js';import{UploadUtils as _0x4fc9cd}from'./utils/uploadutils.js';import{getImageUrls as _0x1dc3c9}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4101d9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x40573c,_0xc92991];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4f7696=this['editor'];if(!!!_0x4f7696['config']['get']('uploadcare'))return;_0x4f7696['plugins']['get'](_0x40573c)['createUploadAdapter']=_0xad0e7b=>new k(_0xad0e7b,_0x4f7696),_0x4f7696['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xee6c38,{imageElement:_0x4f0969,data:_0x3ddd21})=>{_0x4f7696['model']['change'](_0x2a6bbd=>{_0x2a6bbd['setAttribute']('uploadcareImageId',_0x3ddd21['uploadcareImageId'],_0x4f0969);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1b0c6b,_0x48b61f){this['loader']=_0x1b0c6b,this['editor']=_0x48b61f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4cb7fa=await this['loader']['file'];return _0x4fc9cd['upload']({'file':_0x4cb7fa,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x10ebba=>{_0x10ebba&&_0x10ebba['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x10ebba['value']);}})['then'](async _0x472871=>{const {imageFallbackUrl:_0x3cc033,imageSources:_0x1b52fd}=_0x1dc3c9(_0x472871['cdnUrl'],_0x472871['imageInfo']['width']);return{'uploadcareImageId':_0x472871['uuid'],'default':_0x3cc033,'sources':_0x1b52fd};})['catch'](()=>{const _0x1cdb6f=t('Cannot\x20upload\x20file:')+('\x20'+_0x4cb7fa['name']+'.');return Promise['reject'](_0x1cdb6f);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x46b654}from'../uploadcareconfig.js';export function getTranslation(_0x2650d0,_0x5274b9,_0x2397dd){const t=_0x2650d0['t'],_0x3a906b=_0x2650d0['t'];switch(_0x5274b9){case _0x46b654['Local']:return{'text':_0x3a906b('Insert'===_0x2397dd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3a906b('From\x20computer')};case _0x46b654['URL']:return{'text':'Insert'===_0x2397dd?_0x3a906b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3a906b('Via\x20URL')};case _0x46b654['Dropbox']:return{'text':t('Insert'===_0x2397dd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x46b654['Facebook']:return{'text':t('Insert'===_0x2397dd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x46b654['GDrive']:return{'text':t('Insert'===_0x2397dd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x46b654['GPhotos']:return{'text':t('Insert'===_0x2397dd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x46b654['OneDrive']:return{'text':t('Insert'===_0x2397dd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5274b9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5e36a6=_0xbfdb;(function(_0x269109,_0x5864f1){var _0x2ff0ed=_0xbfdb,_0x1aa3bd=_0x269109();while(!![]){try{var _0x5c54a3=parseInt(_0x2ff0ed(0x1f2))/0x1+parseInt(_0x2ff0ed(0x1f4))/0x2+-parseInt(_0x2ff0ed(0x1f9))/0x3+parseInt(_0x2ff0ed(0x1f5))/0x4*(parseInt(_0x2ff0ed(0x1f1))/0x5)+-parseInt(_0x2ff0ed(0x1e8))/0x6*(parseInt(_0x2ff0ed(0x1ec))/0x7)+-parseInt(_0x2ff0ed(0x1ee))/0x8*(parseInt(_0x2ff0ed(0x1f6))/0x9)+-parseInt(_0x2ff0ed(0x1e9))/0xa;if(_0x5c54a3===_0x5864f1)break;else _0x1aa3bd['push'](_0x1aa3bd['shift']());}catch(_0x576b30){_0x1aa3bd['push'](_0x1aa3bd['shift']());}}}(_0x6655,0x92171));import{FocusTracker as _0x1ad449}from'ckeditor5/src/utils.js';function _0xbfdb(_0xac4acc,_0x9d896d){var _0x6655e5=_0x6655();return _0xbfdb=function(_0xbfdb39,_0x12263b){_0xbfdb39=_0xbfdb39-0x1e7;var _0x332f6d=_0x6655e5[_0xbfdb39];return _0x332f6d;},_0xbfdb(_0xac4acc,_0x9d896d);}function _0x6655(){var _0x2ed7f0=['bindTemplate','focusTracker','61195JEEVSU','340071lMqypa','true','2296294AMiVzL','56Hlfgeg','70191uHjlSx','forwardCycle','focusCycler','868371QtOwuT','createCollection','378CoDEsL','5778880GTGoAz','fire','div','12005xTdAPz','getFocusableElement','88nxVBCc'];_0x6655=function(){return _0x2ed7f0;};return _0x6655();}import{View as _0x5cdbb8,FocusCycler as _0x1bffa0}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5cdbb8{[_0x5e36a6(0x1f0)];[_0x5e36a6(0x1f8)];constructor(_0x40fd14){var _0x369d86=_0x5e36a6;super(_0x40fd14),this[_0x369d86(0x1f0)]=new _0x1ad449(),this[_0x369d86(0x1f8)]=new _0x1bffa0({'focusables':this[_0x369d86(0x1e7)](),'focusTracker':this[_0x369d86(0x1f0)]});}[_0x5e36a6(0x1ed)](){var _0x2ed42d=_0x5e36a6;return{'tag':_0x2ed42d(0x1eb),'attributes':{'aria-hidden':_0x2ed42d(0x1f3),'tabindex':'0'},'on':{'focus':this[_0x2ed42d(0x1ef)]['to'](()=>{var _0x10479d=_0x2ed42d;this[_0x10479d(0x1f8)][_0x10479d(0x1ea)](_0x10479d(0x1f7));})}};}}
|