@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.9 → 47.1.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 _0x289d00=_0x41f3;(function(_0x4a7160,_0x24141b){const _0x4f66b0=_0x41f3,_0x50ae44=_0x4a7160();while(!![]){try{const _0x453d1a=-parseInt(_0x4f66b0(0x116))/0x1*(-parseInt(_0x4f66b0(0x122))/0x2)+parseInt(_0x4f66b0(0xf9))/0x3*(parseInt(_0x4f66b0(0x11b))/0x4)+-parseInt(_0x4f66b0(0x128))/0x5+-parseInt(_0x4f66b0(0x129))/0x6*(-parseInt(_0x4f66b0(0x110))/0x7)+-parseInt(_0x4f66b0(0x12c))/0x8*(-parseInt(_0x4f66b0(0xf6))/0x9)+-parseInt(_0x4f66b0(0x130))/0xa*(parseInt(_0x4f66b0(0x145))/0xb)+-parseInt(_0x4f66b0(0x121))/0xc;if(_0x453d1a===_0x24141b)break;else _0x50ae44['push'](_0x50ae44['shift']());}catch(_0xee6b78){_0x50ae44['push'](_0x50ae44['shift']());}}}(_0x3656,0x59e0a));import{Plugin as _0x4175f3}from'ckeditor5/src/core.js';import{Dialog as _0x297fa6}from'ckeditor5/src/ui.js';import{createElement as _0x156951,global as _0x341d9a,uid as _0x3d2901}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x204db7}from'./uploadcarecommand.js';function _0x41f3(_0x3e1945,_0x395adc){const _0x3656ba=_0x3656();return _0x41f3=function(_0x41f3d9,_0x524a6e){_0x41f3d9=_0x41f3d9-0xf0;let _0x1e6369=_0x3656ba[_0x41f3d9];return _0x1e6369;},_0x41f3(_0x3e1945,_0x395adc);}import{UploadcareUploadAdapter as _0x4f6467}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2040c0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4175f3{[_0x289d00(0x136)]=null;[_0x289d00(0x117)]=null;static get[_0x289d00(0x102)](){const _0x525e0e=_0x289d00;return _0x525e0e(0x12e);}static get[_0x289d00(0x11c)](){const _0x2733bf=_0x289d00;return[_0x2733bf(0xf1),_0x4f6467,_0x297fa6];}static get[_0x289d00(0x125)](){return!0x0;}static get[_0x289d00(0x12d)](){return!0x0;}[_0x289d00(0xf2)];get[_0x289d00(0xfb)](){const _0x30f8d5=_0x289d00;return this[_0x30f8d5(0x136)];}get[_0x289d00(0x12a)](){const _0x1b0221=_0x289d00;return this[_0x1b0221(0x117)];}constructor(_0x43e0a4){const _0x1688dd=_0x289d00;super(_0x43e0a4),this[_0x1688dd(0xf2)]=_0x3d2901();}[_0x289d00(0x111)](){const _0xd5b101=_0x289d00,_0x45e17f=this[_0xd5b101(0x10c)];_0x45e17f[_0xd5b101(0x105)][_0xd5b101(0x120)](_0xd5b101(0x138),new _0x204db7(_0x45e17f));}[_0x289d00(0x131)](){const _0xda26ea=_0x289d00;this[_0xda26ea(0x13c)](),this[_0xda26ea(0x104)](),this[_0xda26ea(0xfd)](),this[_0xda26ea(0x140)](),this[_0xda26ea(0xfc)](),this[_0xda26ea(0x13e)](this[_0xda26ea(0x10c)],_0xda26ea(0xfa),()=>{const _0x4ecb49=_0xda26ea;this[_0x4ecb49(0x136)]&&(this[_0x4ecb49(0x136)][_0x4ecb49(0xff)](),this[_0x4ecb49(0x136)]=null),this[_0x4ecb49(0x117)]&&(this[_0x4ecb49(0x117)][_0x4ecb49(0xff)](),this[_0x4ecb49(0x117)]=null);const _0x2efeba=_0x341d9a[_0x4ecb49(0x137)][_0x4ecb49(0x124)](_0x4ecb49(0xf3));_0x2efeba&&_0x2efeba[_0x4ecb49(0xff)]();}),async function(_0x2a5728){const _0x46655d=_0x571271([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xc84625=0x3d8d0df,_0x4ebd3b=0x3dfa42f^_0xc84625,_0x537cc8=window[_0x571271([0x44,0x61,0x74,0x65])][_0x571271([0x6e,0x6f,0x77])](),_0x1e010e=_0x2a5728[_0x571271([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d79b9=new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b59ca=>{_0x1e010e[_0x571271([0x6f,0x6e,0x63,0x65])](_0x571271([0x72,0x65,0x61,0x64,0x79]),_0x4b59ca);}),_0x58583e={[_0x571271([0x6b,0x74,0x79])]:_0x571271([0x45,0x43]),[_0x571271([0x75,0x73,0x65])]:_0x571271([0x73,0x69,0x67]),[_0x571271([0x63,0x72,0x76])]:_0x571271([0x50,0x2d,0x32,0x35,0x36]),[_0x571271([0x78])]:_0x571271([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]),[_0x571271([0x79])]:_0x571271([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]),[_0x571271([0x61,0x6c,0x67])]:_0x571271([0x45,0x53,0x32,0x35,0x36])},_0x7d0328=_0x1e010e[_0x571271([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x571271([0x67,0x65,0x74])](_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39aed0(){let _0x164015,_0x5704a3=null,_0x532c91=null;try{if(_0x7d0328==_0x571271([0x47,0x50,0x4c]))return _0x571271([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x164015=_0x54f53f(),!_0x164015)return _0x571271([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x164015[_0x571271([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x532c91=_0x34526e(_0x164015[_0x571271([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x164015[_0x571271([0x6a,0x74,0x69])])),await _0x4381ff()?_0x1c53e4()?_0xe181b()?_0x571271([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x570a52()?(_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x571271([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5704a3=_0x4a02a3(_0x571271([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x571271([0x74,0x72,0x69,0x61,0x6c])&&(_0x5704a3=_0x4a02a3(_0x571271([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f0286()):_0x571271([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x571271([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x571271([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x571271([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe181b(){const _0x2def29=[_0x571271([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x571271([0x74,0x72,0x69,0x61,0x6c])][_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x537cc8/0x3e8:0xe10*_0x4ebd3b;return _0x164015[_0x571271([0x65,0x78,0x70])]<_0x2def29;}function _0x1c53e4(){const _0x44c841=_0x164015[_0x571271([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x44c841&&(!!_0x44c841[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571271([0x2a]))||!!_0x44c841[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571271([0x55,0x50,0x4c,0x43])));}function _0x570a52(){const _0x372b08=_0x41f3,_0x3e23e3=_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e23e3||0x0==_0x3e23e3[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20eb29}=new URL(window[_0x571271([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x372b08(0x126)]);if(_0x3e23e3[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eb29))return!0x0;const _0x47dfc9=_0x20eb29[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e]));return _0x3e23e3[_0x571271([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49d374=>_0x49d374[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571271([0x2a])))[_0x571271([0x6d,0x61,0x70])](_0x27acb4=>_0x27acb4[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e])))[_0x571271([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x471251=>_0x471251[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47dfc9[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x571271([0x6d,0x61,0x70])](_0x4c48c9=>Array(_0x47dfc9[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c48c9[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x571271([0x66,0x69,0x6c,0x6c])](_0x4c48c9[0x0]===_0x571271([0x2a])?_0x571271([0x2a]):'')[_0x571271([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c48c9))[_0x571271([0x73,0x6f,0x6d,0x65])](_0x556327=>_0x47dfc9[_0x571271([0x65,0x76,0x65,0x72,0x79])]((_0x1b9a35,_0x4915dd)=>_0x556327[_0x4915dd]===_0x1b9a35||_0x556327[_0x4915dd]===_0x571271([0x2a])));}function _0x5f0286(){return _0x5704a3&&_0x532c91?new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e0115,_0x44ecb6)=>{_0x5704a3[_0x571271([0x74,0x68,0x65,0x6e])](_0x1e0115,_0x44ecb6),_0x532c91[_0x571271([0x74,0x68,0x65,0x6e])](_0x3529cc=>{_0x3529cc!=_0x571271([0x56,0x61,0x6c,0x69,0x64])&&_0x1e0115(_0x3529cc);},_0x44ecb6);}):_0x5704a3||_0x532c91||_0x571271([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34526e(_0x3fd9e0,_0x2d00c3){return new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a335=>{if(_0x4c1849())return _0x45a335(_0x571271([0x56,0x61,0x6c,0x69,0x64]));_0x325882(),_0x1e010e[_0x571271([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x571271([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bdcb8=!0x1;const _0x5d936a=_0x3d2901();function _0x345192(_0x4e74a2){return!!_0x4e74a2&&(typeof _0x4e74a2===_0x571271([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e74a2===_0x571271([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e74a2[_0x571271([0x74,0x68,0x65,0x6e])]===_0x571271([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e74a2[_0x571271([0x63,0x61,0x74,0x63,0x68])]===_0x571271([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1038a8(_0x5c2b70){_0x208af1(_0x5c2b70)[_0x571271([0x74,0x68,0x65,0x6e])](_0x2d3578=>{if(!_0x2d3578||_0x2d3578[_0x571271([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x571271([0x6f,0x6b]))return _0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x176864(_0x441d83(_0x5d936a+_0x2d00c3))!=_0x2d3578[_0x571271([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x571271([0x56,0x61,0x6c,0x69,0x64]);})[_0x571271([0x74,0x68,0x65,0x6e])](_0x2febd3=>(_0x507c89(),_0x2febd3),()=>{const _0x2b47b0=_0x2bc2d2();return null==_0x2b47b0?(_0x507c89(),_0x571271([0x56,0x61,0x6c,0x69,0x64])):_0x571271(_0x537cc8-_0x2b47b0>(0x27d454df^_0xc84625)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x571271([0x74,0x68,0x65,0x6e])](_0x45a335)[_0x571271([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45a335(_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e176f=0x3ee3e5f^_0xc84625;function _0x507c89(){const _0x3170e3=_0x571271([0x6c,0x6c,0x63,0x74,0x2d])+_0x176864(_0x441d83(_0x3fd9e0)),_0xbde3df=_0x2d20d0(_0x176864(window[_0x571271([0x4d,0x61,0x74,0x68])][_0x571271([0x63,0x65,0x69,0x6c])](_0x537cc8/_0x3e176f)));window[_0x571271([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x571271([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3170e3,_0xbde3df);}function _0x2bc2d2(){const _0xc040b3=_0x571271([0x6c,0x6c,0x63,0x74,0x2d])+_0x176864(_0x441d83(_0x3fd9e0)),_0x3b3b83=window[_0x571271([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x571271([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc040b3);return _0x3b3b83?window[_0x571271([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d20d0(_0x3b3b83),0x10)*_0x3e176f:null;}function _0x208af1(_0x2a8354){return new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1310de,_0x48996b)=>{_0x2a8354[_0x571271([0x74,0x68,0x65,0x6e])](_0x1310de,_0x48996b),window[_0x571271([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48996b,0x3d9041f^_0xc84625);});}}_0x1e010e[_0x571271([0x6f,0x6e])](_0x571271([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e7fd9,_0x472f80)=>{if(_0x472f80[0x0]!=_0x3fd9e0)return _0x45a335(_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x472f80[0x1]={..._0x472f80[0x1],[_0x571271([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d936a};},{[_0x571271([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x571271([0x68,0x69,0x67,0x68])}),_0x1e010e[_0x571271([0x6f,0x6e])](_0x571271([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x248bdc=>{_0x345192(_0x248bdc[_0x571271([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bdcb8=!0x0,_0x1038a8(_0x248bdc[_0x571271([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x571271([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x571271([0x6c,0x6f,0x77])}),_0x4d79b9[_0x571271([0x74,0x68,0x65,0x6e])](()=>{_0x4bdcb8||_0x45a335(_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c1849(){return _0x1e010e[_0x571271([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x571271([0x76,0x69,0x65,0x77])][_0x571271([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x571271([0x61,0x75,0x74,0x6f]);}function _0x325882(){_0x1e010e[_0x571271([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x571271([0x76,0x69,0x65,0x77])][_0x571271([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x571271([0x61,0x75,0x74,0x6f]);}}function _0x4a02a3(_0x4be557){const _0x11b957=[new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138cbd=>setTimeout(_0x138cbd,0x3d1ee13^_0xc84625)),_0x4d79b9[_0x571271([0x74,0x68,0x65,0x6e])](()=>new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474258=>{let _0xe25b90=0x0;_0x1e010e[_0x571271([0x6d,0x6f,0x64,0x65,0x6c])][_0x571271([0x6f,0x6e])](_0x571271([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x202380,_0x5c36b3)=>{_0x5c36b3[0x0][_0x571271([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe25b90++,_0xe25b90==(0x3d8d127^_0xc84625)&&(_0x474258(),_0x202380[_0x571271([0x6f,0x66,0x66])]());});}))];return window[_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x571271([0x72,0x61,0x63,0x65])](_0x11b957)[_0x571271([0x74,0x68,0x65,0x6e])](()=>_0x4be557);}async function _0x475b37(){await _0x4d79b9,_0x1e010e[_0x571271([0x6d,0x6f,0x64,0x65,0x6c])][_0x571271([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7bfd,_0x1e010e[_0x571271([0x6d,0x6f,0x64,0x65,0x6c])][_0x571271([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7bfd,_0x1e010e[_0x571271([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x571271([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x440c86(_0x1d6710){const _0x3a1105=_0x4d92a9();_0x1e010e[_0x3a1105]=_0x571271([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d6710,_0x1d6710!=_0x571271([0x56,0x61,0x6c,0x69,0x64])&&_0x475b37();}function _0x4d92a9(){const _0x56958f=window[_0x571271([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x571271([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x571271([0x6e,0x6f,0x77])]())[_0x571271([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x571271([0x2e]),'');let _0x9bcb72=_0x571271([0x52]);for(let _0x3f8674=0x0;_0x3f8674<_0x56958f[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f8674+=0x2){let _0x574867=window[_0x571271([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56958f[_0x571271([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f8674,_0x3f8674+0x2));_0x574867>=_0x46655d[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x574867-=_0x46655d[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9bcb72+=_0x46655d[_0x574867];}return _0x9bcb72;}function _0x54f53f(){const _0x16c8de=_0x7d0328[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e]));if(0x3!=_0x16c8de[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bc43f(_0x16c8de[0x1]);function _0x1bc43f(_0x2462bd){const _0x1d3477=_0x82d163(_0x2462bd);return _0x1d3477&&_0x174815()?_0x1d3477:null;function _0x174815(){const _0x49b48c=_0x1d3477[_0x571271([0x6a,0x74,0x69])],_0x25d232=window[_0x571271([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49b48c[_0x571271([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49b48c[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a10b7={..._0x1d3477,[_0x571271([0x6a,0x74,0x69])]:_0x49b48c[_0x571271([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49b48c[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a10b7[_0x571271([0x76,0x63])],_0x441d83(_0x5a10b7)==_0x25d232;}}}async function _0x4381ff(){let _0xdf8ac=!0x0;try{const _0x123322=_0x7d0328[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e])),[_0x5a043a,_0x50b3c6,_0x487488]=_0x123322;return _0x32f85d(_0x5a043a),await _0x220722(_0x5a043a,_0x50b3c6,_0x487488),_0xdf8ac;}catch{return!0x1;}function _0x32f85d(_0x35a182){const _0x386f37=_0x82d163(_0x35a182);_0x386f37&&_0x386f37[_0x571271([0x61,0x6c,0x67])]==_0x571271([0x45,0x53,0x32,0x35,0x36])||(_0xdf8ac=!0x1);}async function _0x220722(_0x3f2063,_0x5e8883,_0x59c70b){const _0x412019=window[_0x571271([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x571271([0x66,0x72,0x6f,0x6d])](_0x3ba05b(_0x59c70b),_0x24d982=>_0x24d982[_0x571271([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f5c29=new window[(_0x571271([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x571271([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f2063+_0x571271([0x2e])+_0x5e8883),_0x14704a=window[_0x571271([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x571271([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14704a)return;const _0x5e6051=await _0x14704a[_0x571271([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x571271([0x6a,0x77,0x6b]),_0x58583e,{[_0x571271([0x6e,0x61,0x6d,0x65])]:_0x571271([0x45,0x43,0x44,0x53,0x41]),[_0x571271([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x571271([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x571271([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14704a[_0x571271([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x571271([0x6e,0x61,0x6d,0x65])]:_0x571271([0x45,0x43,0x44,0x53,0x41]),[_0x571271([0x68,0x61,0x73,0x68])]:{[_0x571271([0x6e,0x61,0x6d,0x65])]:_0x571271([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e6051,_0x412019,_0x2f5c29)||(_0xdf8ac=!0x1);}}function _0x82d163(_0x392f5b){return _0x392f5b[_0x571271([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x571271([0x65,0x79]))?JSON[_0x571271([0x70,0x61,0x72,0x73,0x65])](_0x3ba05b(_0x392f5b)):null;}function _0x3ba05b(_0x488a2f){return window[_0x571271([0x61,0x74,0x6f,0x62])](_0x488a2f[_0x571271([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x571271([0x2b]))[_0x571271([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x571271([0x2f])));}function _0x441d83(_0x3a2d71){let _0x232e85=0x1505;function _0xa11cba(_0x268efa){for(let _0x175c44=0x0;_0x175c44<_0x268efa[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x175c44++){const _0x198054=_0x268efa[_0x571271([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x175c44);_0x232e85=(_0x232e85<<0x5)+_0x232e85+_0x198054,_0x232e85&=_0x232e85;}}function _0x294e2f(_0x198adf){Array[_0x571271([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x198adf)?_0x198adf[_0x571271([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294e2f):_0x198adf&&typeof _0x198adf==_0x571271([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x571271([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x198adf)[_0x571271([0x73,0x6f,0x72,0x74])]()[_0x571271([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57601c,_0xa29367])=>{_0xa11cba(_0x57601c),_0x294e2f(_0xa29367);}):_0xa11cba(window[_0x571271([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x198adf));}return _0x294e2f(_0x3a2d71),_0x232e85>>>0x0;}function _0x176864(_0x11c14d){return _0x11c14d[_0x571271([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x571271([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x571271([0x30]));}function _0x2d20d0(_0x448c34){return _0x448c34[_0x571271([0x73,0x70,0x6c,0x69,0x74])]('')[_0x571271([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x571271([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a7bfd(){}function _0x571271(_0x47c740){const _0x5ef0f6=_0x41f3;return _0x47c740[_0x5ef0f6(0x119)](_0x3456cd=>String[_0x5ef0f6(0x10b)](_0x3456cd))[_0x5ef0f6(0x11d)]('');}_0x440c86(await _0x39aed0());}(this);}[_0x289d00(0x13c)](){const _0x5b2e12=_0x289d00,_0x3ddb48=this[_0x5b2e12(0x10c)][_0x5b2e12(0x10f)][_0x5b2e12(0x127)];_0x3ddb48[_0x5b2e12(0x101)](_0x5b2e12(0xf0))&&_0x3ddb48[_0x5b2e12(0x108)](_0x5b2e12(0xf0),{'allowAttributes':[_0x5b2e12(0x133)]}),_0x3ddb48[_0x5b2e12(0x101)](_0x5b2e12(0x115))&&_0x3ddb48[_0x5b2e12(0x108)](_0x5b2e12(0x115),{'allowAttributes':[_0x5b2e12(0x133)]});}[_0x289d00(0x104)](){const _0x157b08=_0x289d00,_0xf11c92=this[_0x157b08(0x10c)];_0xf11c92[_0x157b08(0x12b)][_0x157b08(0x146)](_0x157b08(0x142))[_0x157b08(0xf7)]({'model':_0x157b08(0x133),'view':_0x157b08(0x109)}),_0xf11c92[_0x157b08(0x12b)][_0x157b08(0x146)](_0x157b08(0x123))[_0x157b08(0x13f)]({'model':{'key':_0x157b08(0x133),'value':_0x12c1b1=>_0x12c1b1[_0x157b08(0x132)](_0x157b08(0x109))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x238a86=_0xf11c92[_0x157b08(0x105)][_0x157b08(0x13a)](_0x157b08(0xf5));_0x238a86&&this[_0x157b08(0x13e)](_0x238a86,_0x157b08(0x139),(_0x41bab8,[_0x15d10b,_0x5d8e79])=>{const _0x138926=_0x157b08;_0x15d10b[_0x138926(0x100)](_0x138926(0x133),_0x5d8e79);});}[_0x289d00(0xfd)](){const _0x43a008=_0x289d00,_0x2f65cc=this[_0x43a008(0x10c)][_0x43a008(0x13d)][_0x43a008(0x13a)](_0x43a008(0x134))||{},_0x19b999=this[_0x43a008(0x10c)][_0x43a008(0x13d)][_0x43a008(0x13a)](_0x43a008(0x143))||'';this[_0x43a008(0x136)]=_0x156951(_0x341d9a[_0x43a008(0x137)],_0x43a008(0x112),{..._0x2f65cc,'pubkey':_0x19b999,'ctx-name':_0x43a008(0xf4)+this[_0x43a008(0xf2)],'sourceList':'','imgOnly':_0x43a008(0x13b),'removeCopyright':_0x43a008(0x13b),'localeName':this[_0x43a008(0x10c)][_0x43a008(0x141)][_0x43a008(0x118)],'externalSourcesEmbedCss':_0x43a008(0x11a)}),this[_0x43a008(0x136)][_0x43a008(0x107)]=_0x12a094=>{const _0x782481=_0x43a008;if(_0x782481(0x10a)==_0x12a094)return _0x782481(0x10d);},_0x341d9a[_0x43a008(0x137)][_0x43a008(0x144)][_0x43a008(0x12f)](this[_0x43a008(0x136)]);}[_0x289d00(0x140)](){const _0x1165d7=_0x289d00;this[_0x1165d7(0x117)]=_0x156951(_0x341d9a[_0x1165d7(0x137)],_0x1165d7(0x135),{'ctx-name':_0x1165d7(0xf4)+this[_0x1165d7(0xf2)]}),_0x341d9a[_0x1165d7(0x137)][_0x1165d7(0x144)][_0x1165d7(0x12f)](this[_0x1165d7(0x117)]);}[_0x289d00(0xfc)](){const _0x5ee546=_0x289d00,_0x53db64=this[_0x5ee546(0x10c)][_0x5ee546(0x105)][_0x5ee546(0x13a)](_0x5ee546(0x103));_0x53db64&&this[_0x5ee546(0x13e)](_0x53db64,_0x5ee546(0x11e),()=>{const _0x3e4593=_0x5ee546,_0x59094a=this[_0x3e4593(0x10c)][_0x3e4593(0x10f)][_0x3e4593(0x137)][_0x3e4593(0x11f)][_0x3e4593(0xfe)]();_0x59094a&&_0x59094a[_0x3e4593(0x132)](_0x3e4593(0x133))&&this[_0x3e4593(0x10c)][_0x3e4593(0x113)][_0x3e4593(0x114)][_0x3e4593(0x106)](_0x3e4593(0x10e),()=>{const _0x41c3b1=_0x3e4593;_0x2040c0(this[_0x41c3b1(0x10c)],_0x59094a);});});const _0x350fa4=this[_0x5ee546(0x10c)][_0x5ee546(0x105)][_0x5ee546(0x13a)](_0x5ee546(0xf8));_0x350fa4&&this[_0x5ee546(0x13e)](_0x350fa4,_0x5ee546(0x11e),()=>{const _0x1c8b4a=_0x5ee546,_0x65a22b=this[_0x1c8b4a(0x10c)][_0x1c8b4a(0x10f)][_0x1c8b4a(0x137)][_0x1c8b4a(0x11f)][_0x1c8b4a(0xfe)]();_0x65a22b&&_0x65a22b[_0x1c8b4a(0x132)](_0x1c8b4a(0x133))&&this[_0x1c8b4a(0x10c)][_0x1c8b4a(0x113)][_0x1c8b4a(0x114)][_0x1c8b4a(0x106)](_0x1c8b4a(0x10e),()=>{const _0x1549b9=_0x1c8b4a;_0x2040c0(this[_0x1549b9(0x10c)],_0x65a22b);});});}}function _0x3656(){const _0x34b264=['PictureEditing','ucContextId','input[uploadcare-file-input]','uploader-','replaceImageSource','92403crzbdg','attributeToAttribute','uploadcareImageReplace','2186907ndJaPP','destroy','configElement','_initImageProcessingIndicator','_initConfig','getSelectedElement','remove','removeAttribute','isRegistered','pluginName','insertImage','_initConversion','commands','once','iconHrefResolver','extend','data-uc-image-id','closeMax','fromCharCode','editor','#uc-icon-arrow-down','render','model','158095pMjtSC','init','uc-config','editing','view','imageInline','127526nQeMcV','_ctxElement','contentLanguage','map','\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','4FkPHDR','requires','join','execute','selection','add','666984lsJYdQ','2Lyziye','upcast','querySelector','isOfficialPlugin','href','schema','2153675xmsoHH','48uvuEWQ','ctxElement','conversion','8GKJxtE','isPremiumPlugin','UploadcareEditing','appendChild','30XVfrgm','afterInit','getAttribute','uploadcareImageId','uploadcare.uploader','uc-upload-ctx-provider','_configElement','document','uploadcare','cleanupImage','get','true','_initSchema','config','listenTo','elementToAttribute','_initCtx','locale','downcast','uploadcare.pubkey','body','707619koczVe','for','imageBlock'];_0x3656=function(){return _0x34b264;};return _0x3656();}
|
|
23
|
+
const _0x2b9c14=_0x4798;(function(_0x4cf4e9,_0x53738f){const _0x26cff5=_0x4798,_0x470889=_0x4cf4e9();while(!![]){try{const _0x1737a6=parseInt(_0x26cff5(0x16d))/0x1+parseInt(_0x26cff5(0x149))/0x2*(parseInt(_0x26cff5(0x127))/0x3)+-parseInt(_0x26cff5(0x14a))/0x4+-parseInt(_0x26cff5(0x145))/0x5+-parseInt(_0x26cff5(0x164))/0x6*(parseInt(_0x26cff5(0x132))/0x7)+-parseInt(_0x26cff5(0x124))/0x8+parseInt(_0x26cff5(0x16e))/0x9;if(_0x1737a6===_0x53738f)break;else _0x470889['push'](_0x470889['shift']());}catch(_0x44c947){_0x470889['push'](_0x470889['shift']());}}}(_0x2dd9,0xee857));import{Plugin as _0x3d6486}from'ckeditor5/src/core.js';import{Dialog as _0xf3f75f}from'ckeditor5/src/ui.js';import{createElement as _0x47e0a3,global as _0x2a1571,uid as _0x388091}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x55023c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5d9957}from'./uploadcareuploadadapter.js';function _0x4798(_0x6cae61,_0xd7151a){const _0x2dd97e=_0x2dd9();return _0x4798=function(_0x479834,_0x42fa46){_0x479834=_0x479834-0x123;let _0xfdbd29=_0x2dd97e[_0x479834];return _0xfdbd29;},_0x4798(_0x6cae61,_0xd7151a);}function _0x2dd9(){const _0x380cc7=['data-uc-image-id','appendChild','iconHrefResolver','attributeToAttribute','replaceImageSource','_initConversion','getSelectedElement','1250376QkRdvT','uc-config','add','configElement','uc-upload-ctx-provider','uploadcare.uploader','isRegistered','cleanupImage','closeMax','1919190TTXrYA','13781385bsKYvy','remove','extend','init','true','downcast','uploadcare','editor','_initSchema','ctxElement','3777776gQhvyI','imageInline','href','813hSqgss','config','view','_configElement','listenTo','model','elementToAttribute','input[uploadcare-file-input]','getAttribute','locale','removeAttribute','42ComcQO','uploader-','ucContextId','document','body','PictureEditing','uploadcare.pubkey','uploadcareImageReplace','get','render','pluginName','isOfficialPlugin','isPremiumPlugin','contentLanguage','editing','afterInit','UploadcareEditing','_initCtx','#uc-icon-arrow-down','6600275HdFsPJ','map','\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','upcast','9866XLQHlT','3070648OkSDoW','requires','imageBlock','conversion','commands','execute','_ctxElement','fromCharCode','selection','uploadcareImageId','schema','insertImage','for','once','querySelector','_initConfig','join','_initImageProcessingIndicator','destroy'];_0x2dd9=function(){return _0x380cc7;};return _0x2dd9();}import{showImageProcessingIndicator as _0x41377c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3d6486{[_0x2b9c14(0x12a)]=null;[_0x2b9c14(0x150)]=null;static get[_0x2b9c14(0x13c)](){const _0x57a550=_0x2b9c14;return _0x57a550(0x142);}static get[_0x2b9c14(0x14b)](){const _0x17992f=_0x2b9c14;return[_0x17992f(0x137),_0x5d9957,_0xf3f75f];}static get[_0x2b9c14(0x13d)](){return!0x0;}static get[_0x2b9c14(0x13e)](){return!0x0;}[_0x2b9c14(0x134)];get[_0x2b9c14(0x167)](){const _0xc60c36=_0x2b9c14;return this[_0xc60c36(0x12a)];}get[_0x2b9c14(0x123)](){const _0x10dad2=_0x2b9c14;return this[_0x10dad2(0x150)];}constructor(_0x346897){const _0x1f1c84=_0x2b9c14;super(_0x346897),this[_0x1f1c84(0x134)]=_0x388091();}[_0x2b9c14(0x171)](){const _0x446ddf=_0x2b9c14,_0x2990a7=this[_0x446ddf(0x175)];_0x2990a7[_0x446ddf(0x14e)][_0x446ddf(0x166)](_0x446ddf(0x174),new _0x55023c(_0x2990a7));}[_0x2b9c14(0x141)](){const _0x1ca9ed=_0x2b9c14;this[_0x1ca9ed(0x176)](),this[_0x1ca9ed(0x162)](),this[_0x1ca9ed(0x159)](),this[_0x1ca9ed(0x143)](),this[_0x1ca9ed(0x15b)](),this[_0x1ca9ed(0x12b)](this[_0x1ca9ed(0x175)],_0x1ca9ed(0x15c),()=>{const _0xeecd15=_0x1ca9ed;this[_0xeecd15(0x12a)]&&(this[_0xeecd15(0x12a)][_0xeecd15(0x16f)](),this[_0xeecd15(0x12a)]=null),this[_0xeecd15(0x150)]&&(this[_0xeecd15(0x150)][_0xeecd15(0x16f)](),this[_0xeecd15(0x150)]=null);const _0x32489e=_0x2a1571[_0xeecd15(0x135)][_0xeecd15(0x158)](_0xeecd15(0x12e));_0x32489e&&_0x32489e[_0xeecd15(0x16f)]();}),async function(_0x3cc32f){const _0x44f7b5=_0x1050d9([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2d1449=0x3d8d0df,_0x254159=0x3dfa6f7^_0x2d1449,_0x459be0=window[_0x1050d9([0x44,0x61,0x74,0x65])][_0x1050d9([0x6e,0x6f,0x77])](),_0x45693f=_0x3cc32f[_0x1050d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a746f=new window[(_0x1050d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27bf24=>{_0x45693f[_0x1050d9([0x6f,0x6e,0x63,0x65])](_0x1050d9([0x72,0x65,0x61,0x64,0x79]),_0x27bf24);}),_0x568522={[_0x1050d9([0x6b,0x74,0x79])]:_0x1050d9([0x45,0x43]),[_0x1050d9([0x75,0x73,0x65])]:_0x1050d9([0x73,0x69,0x67]),[_0x1050d9([0x63,0x72,0x76])]:_0x1050d9([0x50,0x2d,0x32,0x35,0x36]),[_0x1050d9([0x78])]:_0x1050d9([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]),[_0x1050d9([0x79])]:_0x1050d9([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]),[_0x1050d9([0x61,0x6c,0x67])]:_0x1050d9([0x45,0x53,0x32,0x35,0x36])},_0x4f58a1=_0x45693f[_0x1050d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1050d9([0x67,0x65,0x74])](_0x1050d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x104811(){let _0x5ecae0,_0x312409=null,_0x9becc1=null;try{if(_0x4f58a1==_0x1050d9([0x47,0x50,0x4c]))return _0x1050d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ecae0=_0x1dfe72(),!_0x5ecae0)return _0x1050d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ecae0[_0x1050d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9becc1=_0x252c5a(_0x5ecae0[_0x1050d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ecae0[_0x1050d9([0x6a,0x74,0x69])])),await _0x4557a0()?_0x3afb64()?_0x245486()?_0x1050d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2771cf()?(_0x5ecae0[_0x1050d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1050d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x312409=_0x3a94af(_0x1050d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ecae0[_0x1050d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1050d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x312409=_0x3a94af(_0x1050d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ef380()):_0x1050d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1050d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1050d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1050d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x245486(){const _0xaba82e=[_0x1050d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1050d9([0x74,0x72,0x69,0x61,0x6c])][_0x1050d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ecae0[_0x1050d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x459be0/0x3e8:0xe10*_0x254159;return _0x5ecae0[_0x1050d9([0x65,0x78,0x70])]<_0xaba82e;}function _0x3afb64(){const _0x2daaed=_0x5ecae0[_0x1050d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2daaed&&(!!_0x2daaed[_0x1050d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1050d9([0x2a]))||!!_0x2daaed[_0x1050d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1050d9([0x55,0x50,0x4c,0x43])));}function _0x2771cf(){const _0x1fbeee=_0x4798,_0x4afd59=_0x5ecae0[_0x1050d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4afd59||0x0==_0x4afd59[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b212c}=new URL(window[_0x1050d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1fbeee(0x126)]);if(_0x4afd59[_0x1050d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b212c))return!0x0;const _0x42d69d=_0x3b212c[_0x1050d9([0x73,0x70,0x6c,0x69,0x74])](_0x1050d9([0x2e]));return _0x4afd59[_0x1050d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x471e1a=>_0x471e1a[_0x1050d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1050d9([0x2a])))[_0x1050d9([0x6d,0x61,0x70])](_0x27a4a0=>_0x27a4a0[_0x1050d9([0x73,0x70,0x6c,0x69,0x74])](_0x1050d9([0x2e])))[_0x1050d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f9703=>_0x3f9703[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x42d69d[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1050d9([0x6d,0x61,0x70])](_0x4034ea=>Array(_0x42d69d[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4034ea[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1050d9([0x66,0x69,0x6c,0x6c])](_0x4034ea[0x0]===_0x1050d9([0x2a])?_0x1050d9([0x2a]):'')[_0x1050d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4034ea))[_0x1050d9([0x73,0x6f,0x6d,0x65])](_0x4b9ec4=>_0x42d69d[_0x1050d9([0x65,0x76,0x65,0x72,0x79])]((_0x3deff9,_0x4d3cc9)=>_0x4b9ec4[_0x4d3cc9]===_0x3deff9||_0x4b9ec4[_0x4d3cc9]===_0x1050d9([0x2a])));}function _0x5ef380(){return _0x312409&&_0x9becc1?new window[(_0x1050d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ff0cb,_0x3f40f5)=>{_0x312409[_0x1050d9([0x74,0x68,0x65,0x6e])](_0x1ff0cb,_0x3f40f5),_0x9becc1[_0x1050d9([0x74,0x68,0x65,0x6e])](_0x10e23b=>{_0x10e23b!=_0x1050d9([0x56,0x61,0x6c,0x69,0x64])&&_0x1ff0cb(_0x10e23b);},_0x3f40f5);}):_0x312409||_0x9becc1||_0x1050d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x252c5a(_0x1694f8,_0x51b8f7){return new window[(_0x1050d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6fea08=>{if(_0x339a8f())return _0x6fea08(_0x1050d9([0x56,0x61,0x6c,0x69,0x64]));_0x537aed(),_0x45693f[_0x1050d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1050d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x572b98=!0x1;const _0x152f44=_0x388091();function _0x276e31(_0x54bd6f){return!!_0x54bd6f&&(typeof _0x54bd6f===_0x1050d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54bd6f===_0x1050d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54bd6f[_0x1050d9([0x74,0x68,0x65,0x6e])]===_0x1050d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54bd6f[_0x1050d9([0x63,0x61,0x74,0x63,0x68])]===_0x1050d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x365667(_0x267cc6){_0x3e53b9(_0x267cc6)[_0x1050d9([0x74,0x68,0x65,0x6e])](_0x56f1c9=>{if(!_0x56f1c9||_0x56f1c9[_0x1050d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1050d9([0x6f,0x6b]))return _0x1050d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10532e(_0x147151(_0x152f44+_0x51b8f7))!=_0x56f1c9[_0x1050d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1050d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1050d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x1050d9([0x74,0x68,0x65,0x6e])](_0x53f8e5=>(_0x333edc(),_0x53f8e5),()=>{const _0x34dce0=_0x23fd57();return null==_0x34dce0?(_0x333edc(),_0x1050d9([0x56,0x61,0x6c,0x69,0x64])):_0x1050d9(_0x459be0-_0x34dce0>(0x27d454df^_0x2d1449)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1050d9([0x74,0x68,0x65,0x6e])](_0x6fea08)[_0x1050d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6fea08(_0x1050d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36d6bc=0x3ee3e5f^_0x2d1449;function _0x333edc(){const _0x4fae16=_0x1050d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x10532e(_0x147151(_0x1694f8)),_0xa25a15=_0x21f5f3(_0x10532e(window[_0x1050d9([0x4d,0x61,0x74,0x68])][_0x1050d9([0x63,0x65,0x69,0x6c])](_0x459be0/_0x36d6bc)));window[_0x1050d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1050d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fae16,_0xa25a15);}function _0x23fd57(){const _0x271b3f=_0x1050d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x10532e(_0x147151(_0x1694f8)),_0x3bc4da=window[_0x1050d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1050d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x271b3f);return _0x3bc4da?window[_0x1050d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21f5f3(_0x3bc4da),0x10)*_0x36d6bc:null;}function _0x3e53b9(_0x1a9505){return new window[(_0x1050d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19fdbc,_0x2d5dc9)=>{_0x1a9505[_0x1050d9([0x74,0x68,0x65,0x6e])](_0x19fdbc,_0x2d5dc9),window[_0x1050d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d5dc9,0x3d9041f^_0x2d1449);});}}_0x45693f[_0x1050d9([0x6f,0x6e])](_0x1050d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ec091,_0xd09e2b)=>{if(_0xd09e2b[0x0]!=_0x1694f8)return _0x6fea08(_0x1050d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd09e2b[0x1]={..._0xd09e2b[0x1],[_0x1050d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x152f44};},{[_0x1050d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1050d9([0x68,0x69,0x67,0x68])}),_0x45693f[_0x1050d9([0x6f,0x6e])](_0x1050d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41d389=>{_0x276e31(_0x41d389[_0x1050d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x572b98=!0x0,_0x365667(_0x41d389[_0x1050d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1050d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1050d9([0x6c,0x6f,0x77])}),_0x1a746f[_0x1050d9([0x74,0x68,0x65,0x6e])](()=>{_0x572b98||_0x6fea08(_0x1050d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x339a8f(){return _0x45693f[_0x1050d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1050d9([0x76,0x69,0x65,0x77])][_0x1050d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1050d9([0x61,0x75,0x74,0x6f]);}function _0x537aed(){_0x45693f[_0x1050d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1050d9([0x76,0x69,0x65,0x77])][_0x1050d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1050d9([0x61,0x75,0x74,0x6f]);}}function _0x3a94af(_0x578c61){const _0x19dad0=[new window[(_0x1050d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x516ba6=>setTimeout(_0x516ba6,0x3d1ee13^_0x2d1449)),_0x1a746f[_0x1050d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1050d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f3b8=>{let _0x2f813d=0x0;_0x45693f[_0x1050d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1050d9([0x6f,0x6e])](_0x1050d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd43f69,_0x308fd0)=>{_0x308fd0[0x0][_0x1050d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f813d++,_0x2f813d==(0x3d8d127^_0x2d1449)&&(_0x20f3b8(),_0xd43f69[_0x1050d9([0x6f,0x66,0x66])]());});}))];return window[_0x1050d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1050d9([0x72,0x61,0x63,0x65])](_0x19dad0)[_0x1050d9([0x74,0x68,0x65,0x6e])](()=>_0x578c61);}async function _0x542b0a(){await _0x1a746f,_0x45693f[_0x1050d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1050d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e9179,_0x45693f[_0x1050d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1050d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e9179,_0x45693f[_0x1050d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1050d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3dfcfb(_0xaec15e){const _0x2a20cb=_0x2bdc2d();_0x45693f[_0x2a20cb]=_0x1050d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xaec15e,_0xaec15e!=_0x1050d9([0x56,0x61,0x6c,0x69,0x64])&&_0x542b0a();}function _0x2bdc2d(){const _0x13a1e0=window[_0x1050d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1050d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1050d9([0x6e,0x6f,0x77])]())[_0x1050d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1050d9([0x2e]),'');let _0x4f703b=_0x1050d9([0x52]);for(let _0x23a66d=0x0;_0x23a66d<_0x13a1e0[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a66d+=0x2){let _0xe106bd=window[_0x1050d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13a1e0[_0x1050d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23a66d,_0x23a66d+0x2));_0xe106bd>=_0x44f7b5[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe106bd-=_0x44f7b5[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f703b+=_0x44f7b5[_0xe106bd];}return _0x4f703b;}function _0x1dfe72(){const _0x33b787=_0x4f58a1[_0x1050d9([0x73,0x70,0x6c,0x69,0x74])](_0x1050d9([0x2e]));if(0x3!=_0x33b787[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x475275(_0x33b787[0x1]);function _0x475275(_0x1922d1){const _0x4daca6=_0x1833db(_0x1922d1);return _0x4daca6&&_0x517c13()?_0x4daca6:null;function _0x517c13(){const _0x58434b=_0x4daca6[_0x1050d9([0x6a,0x74,0x69])],_0x2084e2=window[_0x1050d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58434b[_0x1050d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58434b[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20f989={..._0x4daca6,[_0x1050d9([0x6a,0x74,0x69])]:_0x58434b[_0x1050d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58434b[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20f989[_0x1050d9([0x76,0x63])],_0x147151(_0x20f989)==_0x2084e2;}}}async function _0x4557a0(){let _0x15f2f8=!0x0;try{const _0x32037f=_0x4f58a1[_0x1050d9([0x73,0x70,0x6c,0x69,0x74])](_0x1050d9([0x2e])),[_0x4f394b,_0x14b121,_0x21dd18]=_0x32037f;return _0x2883b4(_0x4f394b),await _0x1c919f(_0x4f394b,_0x14b121,_0x21dd18),_0x15f2f8;}catch{return!0x1;}function _0x2883b4(_0x39881e){const _0x460b32=_0x1833db(_0x39881e);_0x460b32&&_0x460b32[_0x1050d9([0x61,0x6c,0x67])]==_0x1050d9([0x45,0x53,0x32,0x35,0x36])||(_0x15f2f8=!0x1);}async function _0x1c919f(_0x357afb,_0xea8795,_0x2f97b2){const _0x1fab6c=window[_0x1050d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1050d9([0x66,0x72,0x6f,0x6d])](_0x3e6853(_0x2f97b2),_0x47830f=>_0x47830f[_0x1050d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a9fb4=new window[(_0x1050d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1050d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x357afb+_0x1050d9([0x2e])+_0xea8795),_0x51b093=window[_0x1050d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1050d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51b093)return;const _0x104669=await _0x51b093[_0x1050d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1050d9([0x6a,0x77,0x6b]),_0x568522,{[_0x1050d9([0x6e,0x61,0x6d,0x65])]:_0x1050d9([0x45,0x43,0x44,0x53,0x41]),[_0x1050d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1050d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1050d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51b093[_0x1050d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1050d9([0x6e,0x61,0x6d,0x65])]:_0x1050d9([0x45,0x43,0x44,0x53,0x41]),[_0x1050d9([0x68,0x61,0x73,0x68])]:{[_0x1050d9([0x6e,0x61,0x6d,0x65])]:_0x1050d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x104669,_0x1fab6c,_0x4a9fb4)||(_0x15f2f8=!0x1);}}function _0x1833db(_0x1e279d){return _0x1e279d[_0x1050d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1050d9([0x65,0x79]))?JSON[_0x1050d9([0x70,0x61,0x72,0x73,0x65])](_0x3e6853(_0x1e279d)):null;}function _0x3e6853(_0x1b8f95){return window[_0x1050d9([0x61,0x74,0x6f,0x62])](_0x1b8f95[_0x1050d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1050d9([0x2b]))[_0x1050d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1050d9([0x2f])));}function _0x147151(_0x42b5b8){let _0x3f3a51=0x1505;function _0x16d93d(_0x48f5a7){for(let _0x14155b=0x0;_0x14155b<_0x48f5a7[_0x1050d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14155b++){const _0x5d5615=_0x48f5a7[_0x1050d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14155b);_0x3f3a51=(_0x3f3a51<<0x5)+_0x3f3a51+_0x5d5615,_0x3f3a51&=_0x3f3a51;}}function _0x2b083f(_0x1b63bf){Array[_0x1050d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b63bf)?_0x1b63bf[_0x1050d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b083f):_0x1b63bf&&typeof _0x1b63bf==_0x1050d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1050d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b63bf)[_0x1050d9([0x73,0x6f,0x72,0x74])]()[_0x1050d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x547cdc,_0xc5ef23])=>{_0x16d93d(_0x547cdc),_0x2b083f(_0xc5ef23);}):_0x16d93d(window[_0x1050d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b63bf));}return _0x2b083f(_0x42b5b8),_0x3f3a51>>>0x0;}function _0x10532e(_0x3909d5){return _0x3909d5[_0x1050d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1050d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1050d9([0x30]));}function _0x21f5f3(_0x5501ef){return _0x5501ef[_0x1050d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1050d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1050d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e9179(){}function _0x1050d9(_0x134ef3){const _0x10c3ad=_0x4798;return _0x134ef3[_0x10c3ad(0x146)](_0x2545e0=>String[_0x10c3ad(0x151)](_0x2545e0))[_0x10c3ad(0x15a)]('');}_0x3dfcfb(await _0x104811());}(this);}[_0x2b9c14(0x176)](){const _0xa9673b=_0x2b9c14,_0xf3309e=this[_0xa9673b(0x175)][_0xa9673b(0x12c)][_0xa9673b(0x154)];_0xf3309e[_0xa9673b(0x16a)](_0xa9673b(0x14c))&&_0xf3309e[_0xa9673b(0x170)](_0xa9673b(0x14c),{'allowAttributes':[_0xa9673b(0x153)]}),_0xf3309e[_0xa9673b(0x16a)](_0xa9673b(0x125))&&_0xf3309e[_0xa9673b(0x170)](_0xa9673b(0x125),{'allowAttributes':[_0xa9673b(0x153)]});}[_0x2b9c14(0x162)](){const _0x2c3990=_0x2b9c14,_0x16104=this[_0x2c3990(0x175)];_0x16104[_0x2c3990(0x14d)][_0x2c3990(0x156)](_0x2c3990(0x173))[_0x2c3990(0x160)]({'model':_0x2c3990(0x153),'view':_0x2c3990(0x15d)}),_0x16104[_0x2c3990(0x14d)][_0x2c3990(0x156)](_0x2c3990(0x148))[_0x2c3990(0x12d)]({'model':{'key':_0x2c3990(0x153),'value':_0x381e7c=>_0x381e7c[_0x2c3990(0x12f)](_0x2c3990(0x15d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2180f5=_0x16104[_0x2c3990(0x14e)][_0x2c3990(0x13a)](_0x2c3990(0x161));_0x2180f5&&this[_0x2c3990(0x12b)](_0x2180f5,_0x2c3990(0x16b),(_0x3948f3,[_0x4aab7e,_0x70127d])=>{const _0x1a66b4=_0x2c3990;_0x4aab7e[_0x1a66b4(0x131)](_0x1a66b4(0x153),_0x70127d);});}[_0x2b9c14(0x159)](){const _0x40557b=_0x2b9c14,_0x1e240d=this[_0x40557b(0x175)][_0x40557b(0x128)][_0x40557b(0x13a)](_0x40557b(0x169))||{},_0x39ea41=this[_0x40557b(0x175)][_0x40557b(0x128)][_0x40557b(0x13a)](_0x40557b(0x138))||'';this[_0x40557b(0x12a)]=_0x47e0a3(_0x2a1571[_0x40557b(0x135)],_0x40557b(0x165),{..._0x1e240d,'pubkey':_0x39ea41,'ctx-name':_0x40557b(0x133)+this[_0x40557b(0x134)],'sourceList':'','imgOnly':_0x40557b(0x172),'removeCopyright':_0x40557b(0x172),'localeName':this[_0x40557b(0x175)][_0x40557b(0x130)][_0x40557b(0x13f)],'externalSourcesEmbedCss':_0x40557b(0x147)}),this[_0x40557b(0x12a)][_0x40557b(0x15f)]=_0x309648=>{const _0x597a7f=_0x40557b;if(_0x597a7f(0x16c)==_0x309648)return _0x597a7f(0x144);},_0x2a1571[_0x40557b(0x135)][_0x40557b(0x136)][_0x40557b(0x15e)](this[_0x40557b(0x12a)]);}[_0x2b9c14(0x143)](){const _0x371fc2=_0x2b9c14;this[_0x371fc2(0x150)]=_0x47e0a3(_0x2a1571[_0x371fc2(0x135)],_0x371fc2(0x168),{'ctx-name':_0x371fc2(0x133)+this[_0x371fc2(0x134)]}),_0x2a1571[_0x371fc2(0x135)][_0x371fc2(0x136)][_0x371fc2(0x15e)](this[_0x371fc2(0x150)]);}[_0x2b9c14(0x15b)](){const _0x2cb304=_0x2b9c14,_0x11f68e=this[_0x2cb304(0x175)][_0x2cb304(0x14e)][_0x2cb304(0x13a)](_0x2cb304(0x155));_0x11f68e&&this[_0x2cb304(0x12b)](_0x11f68e,_0x2cb304(0x14f),()=>{const _0x5b09be=_0x2cb304,_0x3d4e77=this[_0x5b09be(0x175)][_0x5b09be(0x12c)][_0x5b09be(0x135)][_0x5b09be(0x152)][_0x5b09be(0x163)]();_0x3d4e77&&_0x3d4e77[_0x5b09be(0x12f)](_0x5b09be(0x153))&&this[_0x5b09be(0x175)][_0x5b09be(0x140)][_0x5b09be(0x129)][_0x5b09be(0x157)](_0x5b09be(0x13b),()=>{const _0x9832e4=_0x5b09be;_0x41377c(this[_0x9832e4(0x175)],_0x3d4e77);});});const _0xfb1f2d=this[_0x2cb304(0x175)][_0x2cb304(0x14e)][_0x2cb304(0x13a)](_0x2cb304(0x139));_0xfb1f2d&&this[_0x2cb304(0x12b)](_0xfb1f2d,_0x2cb304(0x14f),()=>{const _0x138b0c=_0x2cb304,_0x4183a1=this[_0x138b0c(0x175)][_0x138b0c(0x12c)][_0x138b0c(0x135)][_0x138b0c(0x152)][_0x138b0c(0x163)]();_0x4183a1&&_0x4183a1[_0x138b0c(0x12f)](_0x138b0c(0x153))&&this[_0x138b0c(0x175)][_0x138b0c(0x140)][_0x138b0c(0x129)][_0x138b0c(0x157)](_0x138b0c(0x13b),()=>{const _0x440125=_0x138b0c;_0x41377c(this[_0x440125(0x175)],_0x4183a1);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x439d8b,ObservableMixin as _0xf300a4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x385f2d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5b58f9}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1b2c60}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x21f171}from'../../utils/uploadutils.js';import{getImageUrls as _0x29c4b9,getImageDimension as _0x4b5682}from'../../utils/editingutils.js';import{isAncestor as _0x38eabe}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xf300a4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x38b546,_0x21cd31,_0x574c69){super(),this['_editor']=_0x38b546,this['_dialog']=_0x21cd31,this['_imageElement']=_0x574c69,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 _0x567530=this['_imageElement'],_0x310107=_0x567530['getAttribute']('uploadcareImageId'),_0x3891e8=_0x567530['getAttribute']('src');if(_0x310107)await this['_loadImageInfo'](_0x310107,_0x3891e8);else{if(this['_imageCache']['has'](_0x3891e8)){const _0x5cdbf4=this['_imageCache']['get'](_0x3891e8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cdbf4['url'],this['imageDimension']=_0x5cdbf4['dimension'],this['imageId']=_0x5cdbf4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x17d013}=this['_editor'],t=_0x17d013['t'],_0x5f3ace=new _0x1b2c60(_0x17d013,this['imageStatus'],this['_attributes']);_0x5f3ace['bind']('status')['to'](this,'imageStatus'),_0x5f3ace['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5f3ace['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5f3ace['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5f3ace,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b58f9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5f3ace,'position':_0x385f2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5f3ace['focus']();},'onHide':()=>{_0x5f3ace['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x55dcd3=>!_0x38eabe(_0x55dcd3,_0x5f3ace['element'])}});}['_loadImageInfo'](_0x3e370b,_0x32e50b){return _0x21f171['getInfo'](_0x3e370b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x307c78=>{const {width:_0x226055,height:_0x54dac5}=_0x307c78['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32e50b,this['imageDimension']={'width':_0x226055,'height':_0x54dac5},this['imageId']=_0x3e370b;})['catch'](_0xf012b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf012b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f4ef7,_0x1dad0a){return this['_getImageAsFile'](_0x1f4ef7)['then'](_0x152465=>_0x21f171['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':_0x1dad0a['signal'],'file':_0x152465,'onProgress':_0x5c7651=>{_0x5c7651&&_0x5c7651['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5c7651['value']));}}))['then'](_0x1fba70=>{const {width:_0xc4c63c,height:_0xc5f02b}=_0x1fba70['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fba70['cdnUrl'],this['imageDimension']={'width':_0xc4c63c,'height':_0xc5f02b},this['imageId']=_0x1fba70['uuid'],this['imageUploadProgress']=null;const _0x3672df=_0x1f4ef7['getAttribute']('src');this['_imageCache']['set'](_0x3672df,{'id':_0x1fba70['uuid'],'url':_0x1fba70['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x549b20=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x549b20['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26c6e2,_0x37c4e7){_0x26c6e2['on']('apply',(_0x4d5497,_0x16ce87)=>{this['_replaceImage'](_0x37c4e7,_0x16ce87['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26c6e2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26c6e2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10ffd6,_0x2ad504,_0x4ad4c1){const _0xd02a08=this['_editor'],{width:_0x321cff,height:_0x21378d}=_0x4b5682(_0x2ad504,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xeffcb4,imageSources:_0x217c8b}=_0x29c4b9(_0x2ad504,_0x321cff);_0xd02a08['model']['change'](_0x972e0d=>{if('$graveyard'===_0x10ffd6['root']['rootName']){_0xd02a08['execute']('insertImage',{'imageType':_0x10ffd6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10ffd6['getAttributes']()),'uploadcareImageId':_0x4ad4c1,'src':_0xeffcb4,'sources':_0x217c8b,'width':_0x321cff,'height':_0x21378d}});const _0x48bd5d=_0x10ffd6['getChildren']();_0x10ffd6=_0xd02a08['model']['document']['selection']['getSelectedElement']();for(const _0x307aa0 of _0x48bd5d)_0x972e0d['append'](_0x972e0d['cloneElement'](_0x307aa0),_0x10ffd6);}else _0x972e0d['setSelection'](_0x10ffd6,'on'),_0xd02a08['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10ffd6['getAttributes']()),'uploadcareImageId':_0x4ad4c1,'src':_0xeffcb4,'sources':_0x217c8b,'width':_0x321cff,'height':_0x21378d},_0x10ffd6);_0x972e0d['setSelection'](_0x10ffd6,'on');});}async['_getImageAsFile'](_0x4dc5e5){const _0x408ef8=_0x439d8b['window'],_0x1524e1=_0x439d8b['document']['location']['href'],_0x3493e0=new _0x408ef8['URL'](_0x4dc5e5['getAttribute']('src'),_0x1524e1);if('data:'===_0x3493e0['protocol']){const _0x595b96=_0x3493e0['href']['split'](','),_0x4445d5=_0x595b96[0x0]['match'](/:(.*?);/)[0x1],_0x1e96ba=_0x4445d5['split']('/')[0x1],_0x5b3d91=_0x408ef8['atob'](_0x595b96[_0x595b96['length']-0x1]);let _0x404e0b=_0x5b3d91['length'];const _0x553a85=new _0x408ef8['Uint8Array'](_0x404e0b);for(;_0x404e0b--;)_0x553a85[_0x404e0b]=_0x5b3d91['charCodeAt'](_0x404e0b);return new _0x408ef8['File']([_0x553a85],'image.'+_0x1e96ba,{'type':_0x4445d5});}const _0x3a70c1=_0x3493e0['href']['split']('/'),_0x3d5445=_0x3a70c1[_0x3a70c1['length']-0x1],_0x1ddab9=_0x3d5445['split']('.')[0x1];return _0x408ef8['fetch'](_0x3493e0['href'])['then'](_0x13ced3=>_0x13ced3['clone']()['blob']())['then'](_0x386afb=>new _0x408ef8['File']([_0x386afb],_0x3d5445,{'type':'image/'+_0x1ddab9}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x319ba7,_0x57e1e7){const _0x69b4be=_0x24ee,_0x46a76b=_0x319ba7();while(!![]){try{const _0x571e8a=-parseInt(_0x69b4be(0x13d))/0x1*(parseInt(_0x69b4be(0x146))/0x2)+-parseInt(_0x69b4be(0x144))/0x3+parseInt(_0x69b4be(0x141))/0x4+parseInt(_0x69b4be(0x138))/0x5*(parseInt(_0x69b4be(0x137))/0x6)+parseInt(_0x69b4be(0x140))/0x7*(parseInt(_0x69b4be(0x136))/0x8)+parseInt(_0x69b4be(0x143))/0x9*(-parseInt(_0x69b4be(0x13a))/0xa)+-parseInt(_0x69b4be(0x148))/0xb*(-parseInt(_0x69b4be(0x13e))/0xc);if(_0x571e8a===_0x57e1e7)break;else _0x46a76b['push'](_0x46a76b['shift']());}catch(_0x4b38c7){_0x46a76b['push'](_0x46a76b['shift']());}}}(_0xb82f,0x409a4));function _0xb82f(){const _0x576589=['ck-uploadcare-theme','9ijHVcB','804375ePsRYh','setTemplate','90CVSEkh','image-edit','5127265gUMhlr','bindTemplate','554920sUZnhM','627726GPdLIU','25rOjzBP','uc-cloud-image-editor','5035860hKkoML','uc-light','set','9807jgKKFW','12JmTHwM','imageSrc','35SUbhHX','566372AvphdO'];_0xb82f=function(){return _0x576589;};return _0xb82f();}function _0x24ee(_0x2460c5,_0x583b75){const _0xb82fe7=_0xb82f();return _0x24ee=function(_0x24eea1,_0x342581){_0x24eea1=_0x24eea1-0x136;let _0x47c697=_0xb82fe7[_0x24eea1];return _0x47c697;},_0x24ee(_0x2460c5,_0x583b75);}import{View as _0x2faec6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x2faec6{constructor(_0x417586,_0x598e82){const _0x3275c7=_0x24ee;super(_0x417586);const _0x4cbffb=this[_0x3275c7(0x149)];this[_0x3275c7(0x13c)](_0x3275c7(0x13f),''),this[_0x3275c7(0x145)]({'tag':_0x3275c7(0x139),'attributes':{..._0x598e82,'class':[_0x3275c7(0x13b),_0x3275c7(0x142)],'ctx-name':_0x3275c7(0x147),'cdn-url':_0x4cbffb['to'](_0x3275c7(0x13f))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x249f87}from'ckeditor5/src/icons.js';import{ButtonView as _0x44a029,IconView as _0x104764,View as _0x518805}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x518805{constructor(_0x5982bf){super(_0x5982bf);const t=_0x5982bf['t'];this['set']('errorType',null);const _0x534b01=new _0x44a029(_0x5982bf);_0x534b01['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x534b01['withText']=!0x0,_0x534b01['class']='ck-button-action',_0x534b01['on']('execute',()=>{this['fire']('retry');}),_0x534b01['bind']('isVisible')['to'](this,'errorType',_0x326d40=>'NotFound'!==_0x326d40);const _0x118cd2=new _0x104764();_0x118cd2['content']=_0x249f87,_0x118cd2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x21e7b5=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':[_0x118cd2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x21e7b5['to']('errorType',_0x5bb3e2=>t('NotFound'!==_0x5bb3e2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x534b01]},{'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 _0x26908a,View as _0x33fa23}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x33fa23{constructor(_0xac1bef){super(_0xac1bef);const t=_0xac1bef['t'],_0x4fd356=this['bindTemplate'],_0x39df95=new _0x26908a();_0x39df95['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':[_0x39df95,{'text':_0x4fd356['to']('imageUploadProgress',_0x4635db=>t('Loading\x20image...')+'\x20('+(_0x4635db||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 _0x262499=_0x2dc5;(function(_0x2c874d,_0x360546){const _0x34682e=_0x2dc5,_0x1a81dc=_0x2c874d();while(!![]){try{const _0x53bc47=parseInt(_0x34682e(0x166))/0x1+-parseInt(_0x34682e(0x169))/0x2+-parseInt(_0x34682e(0x176))/0x3*(parseInt(_0x34682e(0x168))/0x4)+-parseInt(_0x34682e(0x174))/0x5*(parseInt(_0x34682e(0x191))/0x6)+parseInt(_0x34682e(0x175))/0x7*(parseInt(_0x34682e(0x195))/0x8)+-parseInt(_0x34682e(0x198))/0x9*(-parseInt(_0x34682e(0x16f))/0xa)+parseInt(_0x34682e(0x192))/0xb;if(_0x53bc47===_0x360546)break;else _0x1a81dc['push'](_0x1a81dc['shift']());}catch(_0x2024df){_0x1a81dc['push'](_0x1a81dc['shift']());}}}(_0x2d32,0x8a48c));import{View as _0x4b0a4e}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x51e7d7}from'./uploadcareimageeditformloadingview.js';function _0x2d32(){const _0x4b5f63=['set','cdnUrl','_addUploadcareImageEditorListeners','observe','focus','_editingView','_errorView','addEventListener','length','apply','fire','retry','getFocusableElement','ck-uploadcare-form','div','error','target','_loadingView','disconnect','toLowerCase','ck-reset_all-excluded','228oaoOOZ','8856958OgNzsQ','uc-cloud-image-editor','_focusableView','20872gXUKDv','_addErrorViewListeners','uploading','8646129LrYFJN','ready','cancel','detail','change:status','_setView','581282jmWcXI','querySelector','146100ZOFPDz','1918998RUBugm','_waitForImageEditorComponent','render','clear','addedNodes','once','10kKAWTh','element','createCollection','filter','add','85745qUmdDW','1211HmvEbr','51wRmWAW','nodeName','status','_items','addMany','setTemplate'];_0x2d32=function(){return _0x4b5f63;};return _0x2d32();}import{UploadcareImageEditFormErrorView as _0x5c686e}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x100e69}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x455d01}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2dc5(_0x1c69af,_0x3f1fc4){const _0x2d3223=_0x2d32();return _0x2dc5=function(_0x2dc5a1,_0x238f17){_0x2dc5a1=_0x2dc5a1-0x161;let _0x1c3646=_0x2d3223[_0x2dc5a1];return _0x1c3646;},_0x2dc5(_0x1c69af,_0x3f1fc4);}export class UploadcareImageEditFormView extends _0x455d01{[_0x262499(0x179)];[_0x262499(0x18d)];[_0x262499(0x182)];[_0x262499(0x181)];[_0x262499(0x194)];constructor(_0xa4a314,_0x5204aa,_0x39262a){const _0x213cb4=_0x262499;super(_0xa4a314),this[_0x213cb4(0x179)]=this[_0x213cb4(0x171)](),this[_0x213cb4(0x18d)]=new _0x51e7d7(_0xa4a314),this[_0x213cb4(0x182)]=new _0x5c686e(_0xa4a314),this[_0x213cb4(0x181)]=new _0x100e69(_0xa4a314,_0x39262a),this[_0x213cb4(0x194)]=new _0x4b0a4e(_0xa4a314),this[_0x213cb4(0x194)][_0x213cb4(0x17b)](this[_0x213cb4(0x188)]()),this[_0x213cb4(0x17c)](_0x213cb4(0x178),_0x5204aa),this[_0x213cb4(0x17b)]({'tag':_0x213cb4(0x18a),'attributes':{'class':['ck',_0x213cb4(0x190),_0x213cb4(0x189)],'tabindex':'-1'},'children':this[_0x213cb4(0x179)]}),this[_0x213cb4(0x165)](),this[_0x213cb4(0x16e)](_0x213cb4(0x16b),()=>{const _0x156969=_0x213cb4;this[_0x156969(0x16a)](this[_0x156969(0x170)],_0x544ba6=>{const _0x10cace=_0x156969;this[_0x10cace(0x17e)](_0x544ba6);});}),this['on'](_0x213cb4(0x164),()=>{const _0x2cb92d=_0x213cb4;this[_0x2cb92d(0x165)]();}),this[_0x213cb4(0x196)]();}[_0x262499(0x180)](){const _0x13d7e0=_0x262499;this[_0x13d7e0(0x170)][_0x13d7e0(0x180)]();}[_0x262499(0x165)](){const _0x518e99=_0x262499;switch(this[_0x518e99(0x179)][_0x518e99(0x16c)](),this[_0x518e99(0x178)]){case _0x518e99(0x197):this[_0x518e99(0x179)][_0x518e99(0x173)](this[_0x518e99(0x18d)]);break;case _0x518e99(0x18b):this[_0x518e99(0x179)][_0x518e99(0x173)](this[_0x518e99(0x182)]);break;case _0x518e99(0x161):this[_0x518e99(0x179)][_0x518e99(0x17a)]([this[_0x518e99(0x181)],this[_0x518e99(0x194)]]);}}[_0x262499(0x16a)](_0x55a5de,_0x328906){const _0x17a229=_0x262499,_0x11e577=_0x17a229(0x193),_0x3f5733=_0x55a5de[_0x17a229(0x167)](_0x11e577);if(_0x3f5733)return _0x328906(_0x3f5733);const _0x54d468=new MutationObserver(_0x1acf29=>{const _0x3e085f=_0x17a229,_0x1cb9e6=_0x1acf29[_0x3e085f(0x172)](_0xb968f9=>_0xb968f9[_0x3e085f(0x18c)]===_0x55a5de&&_0xb968f9[_0x3e085f(0x16d)][_0x3e085f(0x184)]>0x0&&_0xb968f9[_0x3e085f(0x16d)][0x0][_0x3e085f(0x177)][_0x3e085f(0x18f)]()===_0x11e577);_0x1cb9e6[_0x3e085f(0x184)]&&(_0x54d468[_0x3e085f(0x18e)](),_0x328906(_0x1cb9e6[0x0][_0x3e085f(0x16d)][0x0]));});_0x54d468[_0x17a229(0x17f)](_0x55a5de,{'childList':!0x0,'subtree':!0x0});}[_0x262499(0x17e)](_0x719a75){const _0x5b36dc=_0x262499;_0x719a75[_0x5b36dc(0x183)](_0x5b36dc(0x185),_0x235999=>{const _0x34337e=_0x5b36dc;this[_0x34337e(0x186)](_0x34337e(0x185),{'imageSrc':_0x235999[_0x34337e(0x163)][_0x34337e(0x17d)]});}),_0x719a75[_0x5b36dc(0x183)](_0x5b36dc(0x162),()=>{const _0x430b53=_0x5b36dc;this[_0x430b53(0x186)](_0x430b53(0x162));});}[_0x262499(0x196)](){const _0x15c422=_0x262499;this[_0x15c422(0x182)]['on'](_0x15c422(0x187),()=>{const _0x15da62=_0x15c422;this[_0x15da62(0x186)](_0x15da62(0x187));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4bca(_0x571c36,_0x29bb79){const _0x3bdf45=_0x3bdf();return _0x4bca=function(_0x4bca54,_0x3a99e9){_0x4bca54=_0x4bca54-0xc7;let _0x152cc6=_0x3bdf45[_0x4bca54];return _0x152cc6;},_0x4bca(_0x571c36,_0x29bb79);}function _0x3bdf(){const _0x2bdc87=['imageEditController','279MDpZOn','element','config','isActive','3058728hHQUtM','59365WtOMST','bind','editor','document','uploadcare.allowExternalImagesEditing','set','refresh','execute','42gqxfFz','67736hzKHcW','getSelectedElement','unbind','2837513IqilnM','12412EBOIDG','model','imageInline','requires','isEnabled','289627XGajHp','4325922MFHARw','imageBlock','selection','_isEditable','plugins','get'];_0x3bdf=function(){return _0x2bdc87;};return _0x3bdf();}const _0x19d5ef=_0x4bca;(function(_0x1d9845,_0x432d3d){const _0x3415ae=_0x4bca,_0x330921=_0x1d9845();while(!![]){try{const _0x1aac6e=-parseInt(_0x3415ae(0xdf))/0x1+-parseInt(_0x3415ae(0xda))/0x2*(parseInt(_0x3415ae(0xc8))/0x3)+parseInt(_0x3415ae(0xd6))/0x4+-parseInt(_0x3415ae(0xcd))/0x5*(parseInt(_0x3415ae(0xd5))/0x6)+parseInt(_0x3415ae(0xd9))/0x7+parseInt(_0x3415ae(0xcc))/0x8+parseInt(_0x3415ae(0xe0))/0x9;if(_0x1aac6e===_0x432d3d)break;else _0x330921['push'](_0x330921['shift']());}catch(_0x10636a){_0x330921['push'](_0x330921['shift']());}}}(_0x3bdf,0x51e24));import{Command as _0x3d78f8}from'ckeditor5/src/core.js';import{Dialog as _0x4ac134}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x52f3f8}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3b6087}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3d78f8{[_0x19d5ef(0xc7)];static get[_0x19d5ef(0xdd)](){return[_0x4ac134];}[_0x19d5ef(0xe3)];constructor(_0x3d6420){const _0xa4cf47=_0x19d5ef;super(_0x3d6420),this[_0xa4cf47(0xc7)]=void 0x0,this[_0xa4cf47(0xe3)]=_0x3b6087(_0x3d6420[_0xa4cf47(0xca)][_0xa4cf47(0xe5)](_0xa4cf47(0xd1))||[]),this[_0xa4cf47(0xd2)]({'isActive':!0x1});}[_0x19d5ef(0xd3)](){const _0x3ce402=_0x19d5ef,_0x59ec06=this[_0x3ce402(0xcf)][_0x3ce402(0xdb)][_0x3ce402(0xd0)][_0x3ce402(0xe2)][_0x3ce402(0xd7)]();this[_0x3ce402(0xde)]=this[_0x3ce402(0xe3)](_0x59ec06);}[_0x19d5ef(0xd4)](){const _0x366405=_0x19d5ef;this[_0x366405(0xc7)]&&(this[_0x366405(0xd8)](_0x366405(0xcb)),this[_0x366405(0xc7)]=void 0x0);const _0x454b3e=this[_0x366405(0xcf)][_0x366405(0xdb)][_0x366405(0xd0)][_0x366405(0xe2)][_0x366405(0xd7)]();_0x454b3e&&(_0x454b3e['is'](_0x366405(0xc9),_0x366405(0xe1))||_0x454b3e['is'](_0x366405(0xc9),_0x366405(0xdc)))&&(this[_0x366405(0xc7)]=new _0x52f3f8(this[_0x366405(0xcf)],this[_0x366405(0xcf)][_0x366405(0xe4)][_0x366405(0xe5)](_0x4ac134),_0x454b3e),this[_0x366405(0xce)](_0x366405(0xcb))['to'](this[_0x366405(0xc7)],_0x366405(0xcb)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11e4cc=_0x3dd7;(function(_0xa4bdaa,_0x1a2eb3){const _0x3a6672=_0x3dd7,_0x4c2fd0=_0xa4bdaa();while(!![]){try{const _0x48e494=parseInt(_0x3a6672(0x196))/0x1+-parseInt(_0x3a6672(0x19a))/0x2+-parseInt(_0x3a6672(0x1a0))/0x3+-parseInt(_0x3a6672(0x19e))/0x4+-parseInt(_0x3a6672(0x19b))/0x5*(parseInt(_0x3a6672(0x19f))/0x6)+parseInt(_0x3a6672(0x197))/0x7+parseInt(_0x3a6672(0x19c))/0x8*(parseInt(_0x3a6672(0x1a4))/0x9);if(_0x48e494===_0x1a2eb3)break;else _0x4c2fd0['push'](_0x4c2fd0['shift']());}catch(_0x452f01){_0x4c2fd0['push'](_0x4c2fd0['shift']());}}}(_0x5439,0xd1c8d));import{Plugin as _0x31b9ab}from'ckeditor5/src/core.js';import{Notification as _0x811dcd}from'ckeditor5/src/ui.js';function _0x5439(){const _0x24c7d0=['1162264RVuxQj','1034230HvCWdr','6488lbbhBl','commands','6336728nFMzbZ','24vHIOei','2583402yLKOdw','ImageEditing','isPremiumPlugin','ImageUtils','19134qKRQxQ','pluginName','uploadcareImageEdit','uploadcareImageReplace','requires','init','isOfficialPlugin','1411574WLTgMF','11041443KUpXFK','UploadcareImageEditEditing','add'];_0x5439=function(){return _0x24c7d0;};return _0x5439();}function _0x3dd7(_0x197334,_0x2aaa4e){const _0x543943=_0x5439();return _0x3dd7=function(_0x3dd753,_0xd9cd4a){_0x3dd753=_0x3dd753-0x191;let _0x15494a=_0x543943[_0x3dd753];return _0x15494a;},_0x3dd7(_0x197334,_0x2aaa4e);}import{UploadcareImageEditCommand as _0x38967b}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3c5c51}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x184c50}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x31b9ab{static get[_0x11e4cc(0x1a5)](){const _0x5cba2b=_0x11e4cc;return _0x5cba2b(0x198);}static get[_0x11e4cc(0x193)](){const _0x5d0c4c=_0x11e4cc;return[_0x184c50,_0x811dcd,_0x5d0c4c(0x1a3),_0x5d0c4c(0x1a1)];}static get[_0x11e4cc(0x195)](){return!0x0;}static get[_0x11e4cc(0x1a2)](){return!0x0;}[_0x11e4cc(0x194)](){const _0x7d9cb5=_0x11e4cc,{editor:_0x1957ad}=this;_0x1957ad[_0x7d9cb5(0x19d)][_0x7d9cb5(0x199)](_0x7d9cb5(0x191),new _0x38967b(_0x1957ad)),_0x1957ad[_0x7d9cb5(0x19d)][_0x7d9cb5(0x199)](_0x7d9cb5(0x192),new _0x3c5c51(_0x1957ad));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x30a5ac}from'ckeditor5/src/core.js';import{ButtonView as _0x397296}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1e8f61}from'ckeditor5/src/icons.js';import{createElement as _0x134bb1}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 _0x30a5ac{['_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 _0x56f4d4=this['editor'];_0x56f4d4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x210cae=>{const _0x3c6ad4=_0x56f4d4['commands']['get']('uploadcareImageEdit'),_0x515edb=new _0x397296(_0x210cae),t=_0x210cae['t'];return _0x515edb['set']({'icon':_0x1e8f61,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x515edb['bind']('isEnabled')['to'](_0x3c6ad4),_0x515edb['bind']('isOn')['to'](_0x3c6ad4,'isActive'),this['listenTo'](_0x515edb,'execute',()=>{_0x56f4d4['execute']('uploadcareImageEdit'),_0x56f4d4['editing']['view']['focus']();}),_0x515edb;}),this['_initConfig']();}['_initConfig'](){const _0x20fc02=_0x134bb1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x20fc02),this['listenTo'](this['editor'],'destroy',()=>{_0x20fc02['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5d8c61=_0x4f70;function _0x1ad2(){const _0x5f1691=['srcset','5JVbfWZ','imageBlock','removeAttribute','sizes','model','getSelectedElement','926064FpCtPP','3BQvpOI','element','252658PFEayb','change','execute','483028dzkUQQ','672uSvJPG','16303090rpUbbe','setAttributes','1552830qbbruP','selection','imageInline','document','refresh','27162WDytlD','438807niJhlm','editor','isEnabled'];_0x1ad2=function(){return _0x5f1691;};return _0x1ad2();}(function(_0x2a1b40,_0xe0057e){const _0x29ed17=_0x4f70,_0x26e2df=_0x2a1b40();while(!![]){try{const _0x187737=-parseInt(_0x29ed17(0xa3))/0x1+-parseInt(_0x29ed17(0xb0))/0x2*(parseInt(_0x29ed17(0xae))/0x3)+-parseInt(_0x29ed17(0xad))/0x4+parseInt(_0x29ed17(0xa7))/0x5*(-parseInt(_0x29ed17(0x9d))/0x6)+-parseInt(_0x29ed17(0x99))/0x7+parseInt(_0x29ed17(0x9a))/0x8*(-parseInt(_0x29ed17(0xa2))/0x9)+parseInt(_0x29ed17(0x9b))/0xa;if(_0x187737===_0xe0057e)break;else _0x26e2df['push'](_0x26e2df['shift']());}catch(_0x5a5a7c){_0x26e2df['push'](_0x26e2df['shift']());}}}(_0x1ad2,0x3d9b0));function _0x4f70(_0x3e36ac,_0x23400e){const _0x1ad2e5=_0x1ad2();return _0x4f70=function(_0x4f702b,_0x49fa73){_0x4f702b=_0x4f702b-0x99;let _0xbc51c0=_0x1ad2e5[_0x4f702b];return _0xbc51c0;},_0x4f70(_0x3e36ac,_0x23400e);}import{Command as _0x4618ac}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x4618ac{[_0x5d8c61(0xa1)](){const _0x2b493c=_0x5d8c61,_0x251f33=this[_0x2b493c(0xa4)][_0x2b493c(0xab)][_0x2b493c(0xa0)][_0x2b493c(0x9e)][_0x2b493c(0xac)]();this[_0x2b493c(0xa5)]=Boolean(_0x251f33&&(_0x251f33['is'](_0x2b493c(0xaf),_0x2b493c(0xa8))||_0x251f33['is'](_0x2b493c(0xaf),_0x2b493c(0x9f))));}[_0x5d8c61(0xb2)](_0x54f9f9){const _0x163861=_0x5d8c61,_0x1f925e=this[_0x163861(0xa4)][_0x163861(0xab)][_0x163861(0xa0)][_0x163861(0x9e)][_0x163861(0xac)]();this[_0x163861(0xa4)][_0x163861(0xab)][_0x163861(0xb1)](_0x1119bf=>{const _0x28aa86=_0x163861;_0x1119bf[_0x28aa86(0x9c)](_0x54f9f9,_0x1f925e),_0x1119bf[_0x28aa86(0xa9)](_0x28aa86(0xa6),_0x1f925e),_0x1119bf[_0x28aa86(0xa9)](_0x28aa86(0xaa),_0x1f925e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ea4c7=_0x5aa1;(function(_0x7e968b,_0x291a31){var _0x31ff14=_0x5aa1,_0x10cff4=_0x7e968b();while(!![]){try{var _0x27a709=-parseInt(_0x31ff14(0xcb))/0x1*(-parseInt(_0x31ff14(0xbf))/0x2)+-parseInt(_0x31ff14(0xc7))/0x3+-parseInt(_0x31ff14(0xc3))/0x4*(-parseInt(_0x31ff14(0xbe))/0x5)+parseInt(_0x31ff14(0xca))/0x6*(-parseInt(_0x31ff14(0xc6))/0x7)+parseInt(_0x31ff14(0xbd))/0x8*(parseInt(_0x31ff14(0xcd))/0x9)+parseInt(_0x31ff14(0xc0))/0xa+-parseInt(_0x31ff14(0xc8))/0xb*(parseInt(_0x31ff14(0xc4))/0xc);if(_0x27a709===_0x291a31)break;else _0x10cff4['push'](_0x10cff4['shift']());}catch(_0x2f58b4){_0x10cff4['push'](_0x10cff4['shift']());}}}(_0x1372,0x4edab));function _0x5aa1(_0x4fab44,_0x39632c){var _0x13721a=_0x1372();return _0x5aa1=function(_0x5aa194,_0x1b344c){_0x5aa194=_0x5aa194-0xbd;var _0x320832=_0x13721a[_0x5aa194];return _0x320832;},_0x5aa1(_0x4fab44,_0x39632c);}import{Plugin as _0x4bd6c9}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x74bea0}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x9110d3}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x4bd6c9{static get[_0x5ea4c7(0xc5)](){var _0x2ea75c=_0x5ea4c7;return _0x2ea75c(0xc9);}static get[_0x5ea4c7(0xc2)](){return[_0x74bea0,_0x9110d3];}static get[_0x5ea4c7(0xc1)](){return!0x0;}static get[_0x5ea4c7(0xcc)](){return!0x0;}}function _0x1372(){var _0x48f17d=['120bnyOlA','pluginName','1408295oMOxHs','420738MNpAcu','497530CBKTiu','UploadcareImageEdit','18GuyzkR','116035wpbXnT','isPremiumPlugin','45BveYlY','58024JarkBI','388940YIVhUR','10GpyKfk','2803440kMdDIO','isOfficialPlugin','requires','32DYmyeE'];_0x1372=function(){return _0x48f17d;};return _0x1372();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4536cc=_0x1019;(function(_0xbb0495,_0x17f7bc){const _0x3213bb=_0x1019,_0x503fa4=_0xbb0495();while(!![]){try{const _0x5dc3a7=-parseInt(_0x3213bb(0x21f))/0x1*(parseInt(_0x3213bb(0x1e3))/0x2)+-parseInt(_0x3213bb(0x214))/0x3+-parseInt(_0x3213bb(0x1ff))/0x4+-parseInt(_0x3213bb(0x1ea))/0x5+-parseInt(_0x3213bb(0x1fa))/0x6+parseInt(_0x3213bb(0x1f2))/0x7*(parseInt(_0x3213bb(0x205))/0x8)+-parseInt(_0x3213bb(0x1da))/0x9*(-parseInt(_0x3213bb(0x1ef))/0xa);if(_0x5dc3a7===_0x17f7bc)break;else _0x503fa4['push'](_0x503fa4['shift']());}catch(_0x1aa01f){_0x503fa4['push'](_0x503fa4['shift']());}}}(_0x293e,0x50c87));import{Plugin as _0x361007}from'ckeditor5/src/core.js';import{IconDropbox as _0x57cb07,IconFacebook as _0x963968,IconGoogleDrive as _0x4a83f1,IconGooglePhotos as _0x53d5f2,IconUploadcareImageUpload as _0x1a2dcb,IconUploadcareLink as _0xc596e6,IconOneDrive as _0x584720}from'ckeditor5/src/icons.js';import{ButtonView as _0x2b253e,MenuBarMenuListItemButtonView as _0x23ee20}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4b57e4}from'./uploadcareconfig.js';import{getTranslation as _0xdb9ec5}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x1019(_0x70c5b9,_0x50a32b){const _0x293ea3=_0x293e();return _0x1019=function(_0x1019f5,_0xef06a5){_0x1019f5=_0x1019f5-0x1d3;let _0x139a7f=_0x293ea3[_0x1019f5];return _0x139a7f;},_0x1019(_0x70c5b9,_0x50a32b);}function _0x293e(){const _0x3a27ee=['usageLimit','entries','Replace','destroy','18peIUhW','licenseKey','url','_licenseKeyCheckInterval','reduce','afterInit','config','shortText','_normalizeConfigSourceList','95312lodWrT','evaluationLimit','Uploadcare','map','URL','uploadcareLicenseKeyDomainLimit','uploadcare','1376875NcMagL','Insert','Local','get','_getIntegrationKey','10751320RZPCVY','GDrive','featureNotAllowed','2919flgFQO','domainLimit','icon','ImageInsertUI','isEnabled','editor','isOfficialPlugin','_showLicenseError','3584448VFLkzn','registerIntegration','forEach','uploadcareLicenseKeyEvaluationLimit','withText','2030872HkjGYB','commands','push','invalid','pluginName','_createDropdownButtons','1864BncyDt','uploadcareLicenseKeyUsageLimit','Dropbox','label','isPremiumPlugin','init','isImageSelected','locale','UploadcareUI','Facebook','OneDrive','assetManager','uploadcareLicenseKeyNotAllowed','GPhotos','_createMenuBarButtons','750303gkptoz','tooltip','trialLimit','uploadcareLicenseKeyValid','has','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyExpired','_createToolbarButton','plugins','type','expired','6bwNRzk','uploadcareLicenseKeyInvalid','uploadcare.uploader.sourceList','_createButton','upload','execute','bind','text'];_0x293e=function(){return _0x3a27ee;};return _0x293e();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x361007{[_0x4536cc(0x1db)];[_0x4536cc(0x1dd)];static get[_0x4536cc(0x203)](){const _0x63c54a=_0x4536cc;return _0x63c54a(0x20d);}static get[_0x4536cc(0x1f8)](){return!0x0;}static get[_0x4536cc(0x209)](){return!0x0;}[_0x4536cc(0x20a)](){const _0x167781=_0x4536cc;this[_0x167781(0x1db)]=this[_0x167781(0x1f7)][_0x167781(0x1e0)][_0x167781(0x1ed)](_0x167781(0x1db));const _0x3996da=this[_0x167781(0x1f7)];this[_0x167781(0x1dd)]=setInterval(()=>{const _0x2c5d5a=_0x167781;let _0x405420;for(const _0x42404f in _0x3996da){const _0x1519ff=_0x42404f,_0x199031=_0x3996da[_0x1519ff];if(_0x2c5d5a(0x217)==_0x199031||_0x2c5d5a(0x220)==_0x199031||_0x2c5d5a(0x21a)==_0x199031||_0x2c5d5a(0x1e8)==_0x199031||_0x2c5d5a(0x211)==_0x199031||_0x2c5d5a(0x1fd)==_0x199031||_0x2c5d5a(0x219)==_0x199031||_0x2c5d5a(0x206)==_0x199031){delete _0x3996da[_0x1519ff],_0x405420=_0x199031,clearInterval(this[_0x2c5d5a(0x1dd)]),this[_0x2c5d5a(0x1dd)]=void 0x0;break;}}_0x2c5d5a(0x220)==_0x405420&&_0x3996da[_0x2c5d5a(0x1f9)](_0x2c5d5a(0x202)),_0x2c5d5a(0x21a)==_0x405420&&_0x3996da[_0x2c5d5a(0x1f9)](_0x2c5d5a(0x21e)),_0x2c5d5a(0x1e8)==_0x405420&&_0x3996da[_0x2c5d5a(0x1f9)](_0x2c5d5a(0x1f3)),_0x2c5d5a(0x211)==_0x405420&&_0x3996da[_0x2c5d5a(0x1f9)](_0x2c5d5a(0x1f1),_0x2c5d5a(0x1e5)),_0x2c5d5a(0x1fd)==_0x405420&&_0x3996da[_0x2c5d5a(0x1f9)](_0x2c5d5a(0x1e4)),_0x2c5d5a(0x219)==_0x405420&&_0x3996da[_0x2c5d5a(0x1f9)](_0x2c5d5a(0x216)),_0x2c5d5a(0x206)==_0x405420&&_0x3996da[_0x2c5d5a(0x1f9)](_0x2c5d5a(0x1d6));},0x3e8);}[_0x4536cc(0x1df)](){const _0x373acc=_0x4536cc,{editor:_0x1f5eb6}=this,_0x4c75f0=_0x1f5eb6[_0x373acc(0x200)][_0x373acc(0x1ed)](_0x373acc(0x1e9));if(!_0x4c75f0)return;const _0x47b45d=this[_0x373acc(0x1e2)](_0x1f5eb6[_0x373acc(0x1e0)][_0x373acc(0x1ed)](_0x373acc(0x221)))[_0x373acc(0x1de)]((_0x3bd79d,_0x217a86)=>{const _0x55952b=_0x373acc,_0x6702e4=this[_0x55952b(0x1ee)](_0x217a86[_0x55952b(0x21d)]);return _0x3bd79d[_0x6702e4]||(_0x3bd79d[_0x6702e4]=[]),_0x3bd79d[_0x6702e4][_0x55952b(0x201)](_0x217a86),_0x3bd79d;},{});_0x1f5eb6[_0x373acc(0x21c)][_0x373acc(0x218)](_0x373acc(0x1f5))&&_0x1f5eb6[_0x373acc(0x200)][_0x373acc(0x1ed)](_0x373acc(0x1e9))&&Object[_0x373acc(0x1d7)](_0x47b45d)[_0x373acc(0x1fc)](([_0x35ad1e,_0x57445b])=>{const _0x44f9a0=_0x373acc;_0x1f5eb6[_0x44f9a0(0x21c)][_0x44f9a0(0x1ed)](_0x44f9a0(0x1f5))[_0x44f9a0(0x1fb)]({'name':_0x35ad1e,'observable':()=>_0x4c75f0,'buttonViewCreator':()=>this[_0x44f9a0(0x21b)](_0x57445b),'formViewCreator':()=>this[_0x44f9a0(0x204)](_0x57445b),'menuBarButtonViewCreator':()=>this[_0x44f9a0(0x213)](_0x57445b),'override':_0x44f9a0(0x210)!==_0x35ad1e});});}[_0x4536cc(0x1d9)](){const _0x26ec44=_0x4536cc;super[_0x26ec44(0x1d9)](),this[_0x26ec44(0x1dd)]&&clearInterval(this[_0x26ec44(0x1dd)]);}[_0x4536cc(0x1e2)](_0x29beb3){const _0x1e0c99=_0x4536cc,{locale:_0x2adfe3}=this[_0x1e0c99(0x1f7)];return _0x29beb3[_0x1e0c99(0x1e6)](_0x214851=>{const _0x80da2e=_0x1e0c99,_0x180406=_0xdb9ec5(_0x2adfe3,_0x214851,_0x80da2e(0x1eb));switch(_0x214851){case _0x4b57e4[_0x80da2e(0x1ec)]:return{'icon':_0x1a2dcb,'type':_0x4b57e4[_0x80da2e(0x1ec)],..._0x180406};case _0x4b57e4[_0x80da2e(0x1e7)]:return{'icon':_0xc596e6,'type':_0x4b57e4[_0x80da2e(0x1e7)],..._0x180406};case _0x4b57e4[_0x80da2e(0x207)]:return{'icon':_0x57cb07,'type':_0x4b57e4[_0x80da2e(0x207)],..._0x180406};case _0x4b57e4[_0x80da2e(0x20e)]:return{'icon':_0x963968,'type':_0x4b57e4[_0x80da2e(0x20e)],..._0x180406};case _0x4b57e4[_0x80da2e(0x1f0)]:return{'icon':_0x4a83f1,'type':_0x4b57e4[_0x80da2e(0x1f0)],..._0x180406};case _0x4b57e4[_0x80da2e(0x212)]:return{'icon':_0x53d5f2,'type':_0x4b57e4[_0x80da2e(0x212)],..._0x180406};case _0x4b57e4[_0x80da2e(0x20f)]:return{'icon':_0x584720,'type':_0x4b57e4[_0x80da2e(0x20f)],..._0x180406};}});}[_0x4536cc(0x1ee)](_0x4ae564){const _0x22fae1=_0x4536cc;switch(_0x4ae564){case _0x4b57e4[_0x22fae1(0x1ec)]:return _0x22fae1(0x223);case _0x4b57e4[_0x22fae1(0x1e7)]:return _0x22fae1(0x1dc);default:return _0x22fae1(0x210);}}[_0x4536cc(0x222)](_0x248d36,_0x420fa3){const _0x358e90=_0x4536cc,_0xe7f09f=this[_0x358e90(0x1f7)],_0x4e32f4=new _0x248d36(_0xe7f09f[_0x358e90(0x20c)]),_0xe68539=_0xe7f09f[_0x358e90(0x200)][_0x358e90(0x1ed)](_0x358e90(0x1e9));return _0x4e32f4[_0x358e90(0x1d4)](_0x358e90(0x1f6))['to'](_0xe68539),_0x4e32f4['on'](_0x358e90(0x1d3),()=>{const _0x208aa7=_0x358e90;_0xe68539[_0x208aa7(0x1d3)](_0x420fa3);}),_0x4e32f4;}[_0x4536cc(0x21b)](_0x45e26b){const _0x49a94e=_0x4536cc,{locale:_0x4819fa}=this[_0x49a94e(0x1f7)],_0x4a8bd8=this[_0x49a94e(0x1f7)][_0x49a94e(0x21c)][_0x49a94e(0x1ed)](_0x49a94e(0x1f5)),_0x53310e=_0x45e26b[0x0],_0x31c76b=this[_0x49a94e(0x222)](_0x2b253e,_0x53310e[_0x49a94e(0x21d)]);return _0x31c76b[_0x49a94e(0x1f4)]=_0x53310e[_0x49a94e(0x1f4)],_0x31c76b[_0x49a94e(0x1d4)](_0x49a94e(0x208))['to'](_0x4a8bd8,_0x49a94e(0x20b),_0xc5a3a6=>_0xdb9ec5(_0x4819fa,_0x53310e[_0x49a94e(0x21d)],_0xc5a3a6?_0x49a94e(0x1d8):_0x49a94e(0x1eb))[_0x49a94e(0x1d5)]),_0x31c76b[_0x49a94e(0x215)]=!0x0,_0x31c76b;}[_0x4536cc(0x204)](_0x4f8095){const _0x377ff9=_0x4536cc,{locale:_0x557672}=this[_0x377ff9(0x1f7)],_0x4345a5=this[_0x377ff9(0x1f7)][_0x377ff9(0x21c)][_0x377ff9(0x1ed)](_0x377ff9(0x1f5));return _0x4f8095[_0x377ff9(0x1e6)](_0x2d859e=>{const _0x419c32=_0x377ff9,_0x13d9f7=this[_0x419c32(0x222)](_0x2b253e,_0x2d859e[_0x419c32(0x21d)]);return _0x13d9f7[_0x419c32(0x1fe)]=!0x0,_0x13d9f7[_0x419c32(0x1f4)]=_0x2d859e[_0x419c32(0x1f4)],_0x13d9f7[_0x419c32(0x1d4)](_0x419c32(0x208))['to'](_0x4345a5,_0x419c32(0x20b),_0x47c0ab=>_0xdb9ec5(_0x557672,_0x2d859e[_0x419c32(0x21d)],_0x47c0ab?_0x419c32(0x1d8):_0x419c32(0x1eb))[_0x419c32(0x1d5)]),_0x13d9f7;});}[_0x4536cc(0x213)](_0x35ffc1){const _0x5e2783=_0x4536cc;return _0x35ffc1[_0x5e2783(0x1e6)](_0x45ebda=>{const _0x2e8050=_0x5e2783,_0x25f18d=this[_0x2e8050(0x222)](_0x23ee20,_0x45ebda[_0x2e8050(0x21d)]);return _0x25f18d[_0x2e8050(0x1f4)]=_0x45ebda[_0x2e8050(0x1f4)],_0x25f18d[_0x2e8050(0x208)]=_0x45ebda[_0x2e8050(0x1e1)],_0x25f18d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5dddcf}from'ckeditor5/src/core.js';import{FileRepository as _0x4f97d2}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2856d2}from'./uploadcareediting.js';import{UploadUtils as _0x33f964}from'./utils/uploadutils.js';import{getImageUrls as _0x11f706}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5dddcf{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4f97d2,_0x2856d2];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x394b83=this['editor'];if(!!!_0x394b83['config']['get']('uploadcare'))return;_0x394b83['plugins']['get'](_0x4f97d2)['createUploadAdapter']=_0x7815c2=>new k(_0x7815c2,_0x394b83),_0x394b83['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2e34e2,{imageElement:_0x4f4080,data:_0x5e3a5b})=>{_0x394b83['model']['change'](_0x5203fd=>{_0x5203fd['setAttribute']('uploadcareImageId',_0x5e3a5b['uploadcareImageId'],_0x4f4080);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3bc81b,_0x4a178d){this['loader']=_0x3bc81b,this['editor']=_0x4a178d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x532aa8=await this['loader']['file'];return _0x33f964['upload']({'file':_0x532aa8,'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':_0xbf696a=>{_0xbf696a&&_0xbf696a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xbf696a['value']);}})['then'](async _0x136efa=>{const {imageFallbackUrl:_0x13a528,imageSources:_0x1f8cba}=_0x11f706(_0x136efa['cdnUrl'],_0x136efa['imageInfo']['width']);return{'uploadcareImageId':_0x136efa['uuid'],'default':_0x13a528,'sources':_0x1f8cba};})['catch'](()=>{const _0x376c0d=t('Cannot\x20upload\x20file:')+('\x20'+_0x532aa8['name']+'.');return Promise['reject'](_0x376c0d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1f5284}from'../uploadcareconfig.js';export function getTranslation(_0x58f2bb,_0x390226,_0x2163ac){const t=_0x58f2bb['t'],_0x7d1216=_0x58f2bb['t'];switch(_0x390226){case _0x1f5284['Local']:return{'text':_0x7d1216('Insert'===_0x2163ac?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x7d1216('From\x20computer')};case _0x1f5284['URL']:return{'text':'Insert'===_0x2163ac?_0x7d1216('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x7d1216('Via\x20URL')};case _0x1f5284['Dropbox']:return{'text':t('Insert'===_0x2163ac?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1f5284['Facebook']:return{'text':t('Insert'===_0x2163ac?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1f5284['GDrive']:return{'text':t('Insert'===_0x2163ac?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1f5284['GPhotos']:return{'text':t('Insert'===_0x2163ac?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1f5284['OneDrive']:return{'text':t('Insert'===_0x2163ac?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x390226;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x3921e9=_0x3860;function _0x2533(){var _0x2ba09d=['79806wCOnez','bindTemplate','focusCycler','true','27OIvTjm','1517980OWRHJr','1324735hFyaPN','2338080wuFOnP','8274IYpjIC','3YqqnyS','12716DKKdiy','fire','getFocusableElement','div','createCollection','forwardCycle','5753Kqptxm','focusTracker','1477ItGmqk'];_0x2533=function(){return _0x2ba09d;};return _0x2533();}(function(_0x9517bc,_0x3dccda){var _0x275644=_0x3860,_0x5b1d93=_0x9517bc();while(!![]){try{var _0x42a884=-parseInt(_0x275644(0x8e))/0x1+parseInt(_0x275644(0x91))/0x2*(-parseInt(_0x275644(0x87))/0x3)+parseInt(_0x275644(0x88))/0x4+-parseInt(_0x275644(0x84))/0x5+-parseInt(_0x275644(0x86))/0x6*(parseInt(_0x275644(0x90))/0x7)+parseInt(_0x275644(0x85))/0x8+parseInt(_0x275644(0x82))/0x9*(parseInt(_0x275644(0x83))/0xa);if(_0x42a884===_0x3dccda)break;else _0x5b1d93['push'](_0x5b1d93['shift']());}catch(_0x2ff94d){_0x5b1d93['push'](_0x5b1d93['shift']());}}}(_0x2533,0x2470d));function _0x3860(_0x1794d5,_0x4a365b){var _0x2533dd=_0x2533();return _0x3860=function(_0x386012,_0x3b71cb){_0x386012=_0x386012-0x81;var _0x21be2a=_0x2533dd[_0x386012];return _0x21be2a;},_0x3860(_0x1794d5,_0x4a365b);}import{FocusTracker as _0xfdccd0}from'ckeditor5/src/utils.js';import{View as _0x5b2230,FocusCycler as _0xac1e47}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5b2230{[_0x3921e9(0x8f)];[_0x3921e9(0x93)];constructor(_0x55ccef){var _0x29d269=_0x3921e9;super(_0x55ccef),this[_0x29d269(0x8f)]=new _0xfdccd0(),this[_0x29d269(0x93)]=new _0xac1e47({'focusables':this[_0x29d269(0x8c)](),'focusTracker':this[_0x29d269(0x8f)]});}[_0x3921e9(0x8a)](){var _0x1097f0=_0x3921e9;return{'tag':_0x1097f0(0x8b),'attributes':{'aria-hidden':_0x1097f0(0x81),'tabindex':'0'},'on':{'focus':this[_0x1097f0(0x92)]['to'](()=>{var _0x4dec55=_0x1097f0;this[_0x4dec55(0x93)][_0x4dec55(0x89)](_0x4dec55(0x8d));})}};}}
|