@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251209.0 → 0.0.0-nightly-20251210.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 _0x54f871=_0x18cb;(function(_0x3fb683,_0x212834){const _0x44f1c5=_0x18cb,_0x336b31=_0x3fb683();while(!![]){try{const _0x246a2b=parseInt(_0x44f1c5(0x104))/0x1+-parseInt(_0x44f1c5(0xbe))/0x2+parseInt(_0x44f1c5(0xc0))/0x3+-parseInt(_0x44f1c5(0xca))/0x4+parseInt(_0x44f1c5(0xb6))/0x5*(-parseInt(_0x44f1c5(0xc6))/0x6)+parseInt(_0x44f1c5(0xe9))/0x7+parseInt(_0x44f1c5(0xe1))/0x8;if(_0x246a2b===_0x212834)break;else _0x336b31['push'](_0x336b31['shift']());}catch(_0x51ff96){_0x336b31['push'](_0x336b31['shift']());}}}(_0x49c9,0xdc90c));import{Plugin as _0x2edae1}from'ckeditor5/src/core.js';import{Dialog as _0x450b3d}from'ckeditor5/src/ui.js';import{createElement as _0x1479cd,global as _0x390f53,uid as _0xee8fdb}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1da540}from'./uploadcarecommand.js';function _0x18cb(_0x49da35,_0x4a4a47){const _0x49c982=_0x49c9();return _0x18cb=function(_0x18cb61,_0x6d1597){_0x18cb61=_0x18cb61-0xb2;let _0x5c4695=_0x49c982[_0x18cb61];return _0x5c4695;},_0x18cb(_0x49da35,_0x4a4a47);}import{UploadcareUploadAdapter as _0x4df1f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x403fb0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2edae1{[_0x54f871(0xbb)]=null;[_0x54f871(0xdf)]=null;static get[_0x54f871(0xe6)](){const _0x1088c4=_0x54f871;return _0x1088c4(0x101);}static get[_0x54f871(0xb7)](){const _0x5f1767=_0x54f871;return[_0x5f1767(0xd3),_0x4df1f,_0x450b3d];}static get[_0x54f871(0xf4)](){return!0x0;}static get[_0x54f871(0xba)](){return!0x0;}[_0x54f871(0xc8)];get[_0x54f871(0xd2)](){const _0x569def=_0x54f871;return this[_0x569def(0xbb)];}get[_0x54f871(0xb4)](){const _0x28e860=_0x54f871;return this[_0x28e860(0xdf)];}constructor(_0x530fa4){const _0x171f0d=_0x54f871;super(_0x530fa4),this[_0x171f0d(0xc8)]=_0xee8fdb();}[_0x54f871(0x102)](){const _0x1e3525=_0x54f871,_0x25bb21=this[_0x1e3525(0x100)];_0x25bb21[_0x1e3525(0xe0)][_0x1e3525(0xc5)](_0x1e3525(0xbd),new _0x1da540(_0x25bb21));}[_0x54f871(0xea)](){const _0xe42a60=_0x54f871;this[_0xe42a60(0xf0)](),this[_0xe42a60(0xf3)](),this[_0xe42a60(0xe4)](),this[_0xe42a60(0xda)](),this[_0xe42a60(0xc7)](),this[_0xe42a60(0xf2)](this[_0xe42a60(0x100)],_0xe42a60(0xd7),()=>{const _0x14fd36=_0xe42a60;this[_0x14fd36(0xbb)]&&(this[_0x14fd36(0xbb)][_0x14fd36(0xb5)](),this[_0x14fd36(0xbb)]=null),this[_0x14fd36(0xdf)]&&(this[_0x14fd36(0xdf)][_0x14fd36(0xb5)](),this[_0x14fd36(0xdf)]=null);const _0x309a9e=_0x390f53[_0x14fd36(0xf7)][_0x14fd36(0xdc)](_0x14fd36(0xd8));_0x309a9e&&_0x309a9e[_0x14fd36(0xb5)]();}),async function(_0x94039){const _0x2a1c21=_0x45317c([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1cd59a=0x535f8c3a,_0x4bb273=0x5358f752^_0x1cd59a,_0x3ee56f=window[_0x45317c([0x44,0x61,0x74,0x65])][_0x45317c([0x6e,0x6f,0x77])](),_0x11b89d=_0x94039[_0x45317c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x284cee=new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259003=>{_0x11b89d[_0x45317c([0x6f,0x6e,0x63,0x65])](_0x45317c([0x72,0x65,0x61,0x64,0x79]),_0x259003);}),_0x39cf6b={[_0x45317c([0x6b,0x74,0x79])]:_0x45317c([0x45,0x43]),[_0x45317c([0x75,0x73,0x65])]:_0x45317c([0x73,0x69,0x67]),[_0x45317c([0x63,0x72,0x76])]:_0x45317c([0x50,0x2d,0x32,0x35,0x36]),[_0x45317c([0x78])]:_0x45317c([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]),[_0x45317c([0x79])]:_0x45317c([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]),[_0x45317c([0x61,0x6c,0x67])]:_0x45317c([0x45,0x53,0x32,0x35,0x36])},_0x602f9d=_0x11b89d[_0x45317c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45317c([0x67,0x65,0x74])](_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x319445(){let _0x1820eb,_0x53b57b=null,_0x5f16f0=null;try{if(_0x602f9d==_0x45317c([0x47,0x50,0x4c]))return _0x45317c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1820eb=_0x20bddb(),!_0x1820eb)return _0x45317c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1820eb[_0x45317c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f16f0=_0x229adc(_0x1820eb[_0x45317c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1820eb[_0x45317c([0x6a,0x74,0x69])])),await _0x4d7b39()?_0x3d7b67()?_0x2070b2()?_0x45317c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52961e()?(_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45317c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53b57b=_0x5ebff6(_0x45317c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45317c([0x74,0x72,0x69,0x61,0x6c])&&(_0x53b57b=_0x5ebff6(_0x45317c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x521f88()):_0x45317c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45317c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45317c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45317c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2070b2(){const _0x36c7fc=[_0x45317c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45317c([0x74,0x72,0x69,0x61,0x6c])][_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ee56f/0x3e8:0xe10*_0x4bb273;return _0x1820eb[_0x45317c([0x65,0x78,0x70])]<_0x36c7fc;}function _0x3d7b67(){const _0x417f46=_0x1820eb[_0x45317c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x417f46&&(!!_0x417f46[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45317c([0x2a]))||!!_0x417f46[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45317c([0x55,0x50,0x4c,0x43])));}function _0x52961e(){const _0x13fdbd=_0x18cb,_0x4a2a2d=_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a2a2d||0x0==_0x4a2a2d[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30b81e}=new URL(window[_0x45317c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x13fdbd(0xcd)]);if(_0x4a2a2d[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b81e))return!0x0;const _0x5a7299=_0x30b81e[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e]));return _0x4a2a2d[_0x45317c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11fc08=>_0x11fc08[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45317c([0x2a])))[_0x45317c([0x6d,0x61,0x70])](_0xba7f83=>_0xba7f83[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e])))[_0x45317c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d0ba6=>_0x1d0ba6[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a7299[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45317c([0x6d,0x61,0x70])](_0x34d9e8=>Array(_0x5a7299[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34d9e8[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45317c([0x66,0x69,0x6c,0x6c])](_0x34d9e8[0x0]===_0x45317c([0x2a])?_0x45317c([0x2a]):'')[_0x45317c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34d9e8))[_0x45317c([0x73,0x6f,0x6d,0x65])](_0x4330f5=>_0x5a7299[_0x45317c([0x65,0x76,0x65,0x72,0x79])]((_0x578f7b,_0xef8660)=>_0x4330f5[_0xef8660]===_0x578f7b||_0x4330f5[_0xef8660]===_0x45317c([0x2a])));}function _0x521f88(){return _0x53b57b&&_0x5f16f0?new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5eee,_0x199506)=>{_0x53b57b[_0x45317c([0x74,0x68,0x65,0x6e])](_0x3c5eee,_0x199506),_0x5f16f0[_0x45317c([0x74,0x68,0x65,0x6e])](_0xf6b54f=>{_0xf6b54f!=_0x45317c([0x56,0x61,0x6c,0x69,0x64])&&_0x3c5eee(_0xf6b54f);},_0x199506);}):_0x53b57b||_0x5f16f0||_0x45317c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x229adc(_0x5d1040,_0x4e0db8){return new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ffc5=>{if(_0x112c2b())return _0x25ffc5(_0x45317c([0x56,0x61,0x6c,0x69,0x64]));_0x4c2c51(),_0x11b89d[_0x45317c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45317c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x351385=!0x1;const _0x31760c=_0xee8fdb();function _0x748638(_0x45abbf){return!!_0x45abbf&&(typeof _0x45abbf===_0x45317c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45abbf===_0x45317c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45abbf[_0x45317c([0x74,0x68,0x65,0x6e])]===_0x45317c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45abbf[_0x45317c([0x63,0x61,0x74,0x63,0x68])]===_0x45317c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x448e79(_0x2e197a){_0x534365(_0x2e197a)[_0x45317c([0x74,0x68,0x65,0x6e])](_0x4ea04d=>{if(!_0x4ea04d||_0x4ea04d[_0x45317c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45317c([0x6f,0x6b]))return _0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42376e(_0x282935(_0x31760c+_0x4e0db8))!=_0x4ea04d[_0x45317c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45317c([0x56,0x61,0x6c,0x69,0x64]);})[_0x45317c([0x74,0x68,0x65,0x6e])](_0x46e5da=>(_0x258167(),_0x46e5da),()=>{const _0x1e08c7=_0x249852();return null==_0x1e08c7?(_0x258167(),_0x45317c([0x56,0x61,0x6c,0x69,0x64])):_0x45317c(_0x3ee56f-_0x1e08c7>(0x7753083a^_0x1cd59a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45317c([0x74,0x68,0x65,0x6e])](_0x25ffc5)[_0x45317c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25ffc5(_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ea316=0x536962ba^_0x1cd59a;function _0x258167(){const _0x304dd1=_0x45317c([0x6c,0x6c,0x63,0x74,0x2d])+_0x42376e(_0x282935(_0x5d1040)),_0x1e5743=_0x594e82(_0x42376e(window[_0x45317c([0x4d,0x61,0x74,0x68])][_0x45317c([0x63,0x65,0x69,0x6c])](_0x3ee56f/_0x2ea316)));window[_0x45317c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45317c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x304dd1,_0x1e5743);}function _0x249852(){const _0xd5c7d7=_0x45317c([0x6c,0x6c,0x63,0x74,0x2d])+_0x42376e(_0x282935(_0x5d1040)),_0x48149d=window[_0x45317c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45317c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd5c7d7);return _0x48149d?window[_0x45317c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x594e82(_0x48149d),0x10)*_0x2ea316:null;}function _0x534365(_0x5c1d94){return new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9eaa,_0x1c2cf6)=>{_0x5c1d94[_0x45317c([0x74,0x68,0x65,0x6e])](_0x2d9eaa,_0x1c2cf6),window[_0x45317c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c2cf6,0x535e58fa^_0x1cd59a);});}}_0x11b89d[_0x45317c([0x6f,0x6e])](_0x45317c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x484ce9,_0x5f626e)=>{if(_0x5f626e[0x0]!=_0x5d1040)return _0x25ffc5(_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f626e[0x1]={..._0x5f626e[0x1],[_0x45317c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31760c};},{[_0x45317c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45317c([0x68,0x69,0x67,0x68])}),_0x11b89d[_0x45317c([0x6f,0x6e])](_0x45317c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10a65f=>{_0x748638(_0x10a65f[_0x45317c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x351385=!0x0,_0x448e79(_0x10a65f[_0x45317c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45317c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45317c([0x6c,0x6f,0x77])}),_0x284cee[_0x45317c([0x74,0x68,0x65,0x6e])](()=>{_0x351385||_0x25ffc5(_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x112c2b(){return _0x11b89d[_0x45317c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45317c([0x76,0x69,0x65,0x77])][_0x45317c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45317c([0x61,0x75,0x74,0x6f]);}function _0x4c2c51(){_0x11b89d[_0x45317c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45317c([0x76,0x69,0x65,0x77])][_0x45317c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45317c([0x61,0x75,0x74,0x6f]);}}function _0x5ebff6(_0xa60ec9){const _0x3980f6=[new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17387a=>setTimeout(_0x17387a,0x5356b2f6^_0x1cd59a)),_0x284cee[_0x45317c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bbd52=>{let _0x28cec9=0x0;_0x11b89d[_0x45317c([0x6d,0x6f,0x64,0x65,0x6c])][_0x45317c([0x6f,0x6e])](_0x45317c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f7610,_0x171ada)=>{_0x171ada[0x0][_0x45317c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28cec9++,_0x28cec9==(0x535f8dc2^_0x1cd59a)&&(_0x3bbd52(),_0x1f7610[_0x45317c([0x6f,0x66,0x66])]());});}))];return window[_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45317c([0x72,0x61,0x63,0x65])](_0x3980f6)[_0x45317c([0x74,0x68,0x65,0x6e])](()=>_0xa60ec9);}async function _0x5b7369(){await _0x284cee,_0x11b89d[_0x45317c([0x6d,0x6f,0x64,0x65,0x6c])][_0x45317c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b41ba,_0x11b89d[_0x45317c([0x6d,0x6f,0x64,0x65,0x6c])][_0x45317c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b41ba,_0x11b89d[_0x45317c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45317c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4453a1(_0x85f886){const _0x3b2d69=_0x2bfecd();_0x11b89d[_0x3b2d69]=_0x45317c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x85f886,_0x85f886!=_0x45317c([0x56,0x61,0x6c,0x69,0x64])&&_0x5b7369();}function _0x2bfecd(){const _0xb3e3a6=window[_0x45317c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45317c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45317c([0x6e,0x6f,0x77])]())[_0x45317c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45317c([0x2e]),'');let _0x400a14=_0x45317c([0x68]);for(let _0x33f1cf=0x0;_0x33f1cf<_0xb3e3a6[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f1cf+=0x2){let _0x1277e6=window[_0x45317c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb3e3a6[_0x45317c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f1cf,_0x33f1cf+0x2));_0x1277e6>=_0x2a1c21[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1277e6-=_0x2a1c21[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x400a14+=_0x2a1c21[_0x1277e6];}return _0x400a14;}function _0x20bddb(){const _0x538a25=_0x602f9d[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e]));if(0x3!=_0x538a25[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dee41(_0x538a25[0x1]);function _0x4dee41(_0x2566c8){const _0x198717=_0x2132b4(_0x2566c8);return _0x198717&&_0x187a64()?_0x198717:null;function _0x187a64(){const _0x4dd863=_0x198717[_0x45317c([0x6a,0x74,0x69])],_0x54a317=window[_0x45317c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dd863[_0x45317c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dd863[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdfbb34={..._0x198717,[_0x45317c([0x6a,0x74,0x69])]:_0x4dd863[_0x45317c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dd863[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdfbb34[_0x45317c([0x76,0x63])],_0x282935(_0xdfbb34)==_0x54a317;}}}async function _0x4d7b39(){let _0x12e2f0=!0x0;try{const _0x3f1c52=_0x602f9d[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e])),[_0x5a3f19,_0xa12251,_0x47be55]=_0x3f1c52;return _0x7d887a(_0x5a3f19),await _0x1da691(_0x5a3f19,_0xa12251,_0x47be55),_0x12e2f0;}catch{return!0x1;}function _0x7d887a(_0x53db13){const _0x16b94c=_0x2132b4(_0x53db13);_0x16b94c&&_0x16b94c[_0x45317c([0x61,0x6c,0x67])]==_0x45317c([0x45,0x53,0x32,0x35,0x36])||(_0x12e2f0=!0x1);}async function _0x1da691(_0x565c46,_0x36ef7d,_0xfad3f6){const _0x18e5af=window[_0x45317c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45317c([0x66,0x72,0x6f,0x6d])](_0x3349ec(_0xfad3f6),_0x576b0a=>_0x576b0a[_0x45317c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cc740=new window[(_0x45317c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45317c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x565c46+_0x45317c([0x2e])+_0x36ef7d),_0x53412c=window[_0x45317c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45317c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53412c)return;const _0x2685bb=await _0x53412c[_0x45317c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45317c([0x6a,0x77,0x6b]),_0x39cf6b,{[_0x45317c([0x6e,0x61,0x6d,0x65])]:_0x45317c([0x45,0x43,0x44,0x53,0x41]),[_0x45317c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45317c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45317c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53412c[_0x45317c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45317c([0x6e,0x61,0x6d,0x65])]:_0x45317c([0x45,0x43,0x44,0x53,0x41]),[_0x45317c([0x68,0x61,0x73,0x68])]:{[_0x45317c([0x6e,0x61,0x6d,0x65])]:_0x45317c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2685bb,_0x18e5af,_0x4cc740)||(_0x12e2f0=!0x1);}}function _0x2132b4(_0x447ae0){return _0x447ae0[_0x45317c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45317c([0x65,0x79]))?JSON[_0x45317c([0x70,0x61,0x72,0x73,0x65])](_0x3349ec(_0x447ae0)):null;}function _0x3349ec(_0x2595f5){return window[_0x45317c([0x61,0x74,0x6f,0x62])](_0x2595f5[_0x45317c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45317c([0x2b]))[_0x45317c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45317c([0x2f])));}function _0x282935(_0x45b83c){let _0x4e9c48=0x1505;function _0xf140b6(_0x2c2eb5){for(let _0x648963=0x0;_0x648963<_0x2c2eb5[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x648963++){const _0x3ce295=_0x2c2eb5[_0x45317c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x648963);_0x4e9c48=(_0x4e9c48<<0x5)+_0x4e9c48+_0x3ce295,_0x4e9c48&=_0x4e9c48;}}function _0x340ca5(_0x42ea05){Array[_0x45317c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42ea05)?_0x42ea05[_0x45317c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x340ca5):_0x42ea05&&typeof _0x42ea05==_0x45317c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45317c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42ea05)[_0x45317c([0x73,0x6f,0x72,0x74])]()[_0x45317c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc62592,_0x5e012b])=>{_0xf140b6(_0xc62592),_0x340ca5(_0x5e012b);}):_0xf140b6(window[_0x45317c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42ea05));}return _0x340ca5(_0x45b83c),_0x4e9c48>>>0x0;}function _0x42376e(_0x5e97f){return _0x5e97f[_0x45317c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45317c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45317c([0x30]));}function _0x594e82(_0x394f12){return _0x394f12[_0x45317c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45317c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45317c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b41ba(){}function _0x45317c(_0x149912){const _0x2508e2=_0x18cb;return _0x149912[_0x2508e2(0xcb)](_0x2d097d=>String[_0x2508e2(0xd9)](_0x2d097d))[_0x2508e2(0xf9)]('');}_0x4453a1(await _0x319445());}(this);}[_0x54f871(0xf0)](){const _0x909abd=_0x54f871,_0x57f193=this[_0x909abd(0x100)][_0x909abd(0xbf)][_0x909abd(0xc3)];_0x57f193[_0x909abd(0xee)](_0x909abd(0xfa))&&_0x57f193[_0x909abd(0xbc)](_0x909abd(0xfa),{'allowAttributes':[_0x909abd(0xd1)]}),_0x57f193[_0x909abd(0xee)](_0x909abd(0xec))&&_0x57f193[_0x909abd(0xbc)](_0x909abd(0xec),{'allowAttributes':[_0x909abd(0xd1)]});}[_0x54f871(0xf3)](){const _0x4fff96=_0x54f871,_0x125b97=this[_0x4fff96(0x100)];_0x125b97[_0x4fff96(0xfc)][_0x4fff96(0xed)](_0x4fff96(0xfe))[_0x4fff96(0xcc)]({'model':_0x4fff96(0xd1),'view':_0x4fff96(0xcf)}),_0x125b97[_0x4fff96(0xfc)][_0x4fff96(0xed)](_0x4fff96(0xfd))[_0x4fff96(0xc1)]({'model':{'key':_0x4fff96(0xd1),'value':_0x3c0520=>_0x3c0520[_0x4fff96(0xf6)](_0x4fff96(0xcf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x547640=_0x125b97[_0x4fff96(0xe0)][_0x4fff96(0xd0)](_0x4fff96(0xb8));_0x547640&&this[_0x4fff96(0xf2)](_0x547640,_0x4fff96(0xc9),(_0x3da336,[_0x48fd65,_0x1ea201])=>{const _0x5d7f77=_0x4fff96;_0x48fd65[_0x5d7f77(0xce)](_0x5d7f77(0xd1),_0x1ea201);});}[_0x54f871(0xe4)](){const _0x342731=_0x54f871,_0x3e0a2e=this[_0x342731(0x100)][_0x342731(0xd4)][_0x342731(0xd0)](_0x342731(0xf8))||{},_0x1958e0=this[_0x342731(0x100)][_0x342731(0xd4)][_0x342731(0xd0)](_0x342731(0xeb))||'';this[_0x342731(0xbb)]=_0x1479cd(_0x390f53[_0x342731(0xf7)],_0x342731(0xf1),{..._0x3e0a2e,'pubkey':_0x1958e0,'ctx-name':_0x342731(0xc4)+this[_0x342731(0xc8)],'sourceList':'','imgOnly':_0x342731(0xb2),'removeCopyright':_0x342731(0xb2),'localeName':this[_0x342731(0x100)][_0x342731(0xb3)][_0x342731(0x103)],'externalSourcesEmbedCss':_0x342731(0xdd)}),this[_0x342731(0xbb)][_0x342731(0xe2)]=_0x531cc3=>{const _0x27c8e3=_0x342731;if(_0x27c8e3(0xf5)==_0x531cc3)return _0x27c8e3(0xe3);},_0x390f53[_0x342731(0xf7)][_0x342731(0xc2)][_0x342731(0xff)](this[_0x342731(0xbb)]);}[_0x54f871(0xda)](){const _0x40f388=_0x54f871;this[_0x40f388(0xdf)]=_0x1479cd(_0x390f53[_0x40f388(0xf7)],_0x40f388(0xe5),{'ctx-name':_0x40f388(0xc4)+this[_0x40f388(0xc8)]}),_0x390f53[_0x40f388(0xf7)][_0x40f388(0xc2)][_0x40f388(0xff)](this[_0x40f388(0xdf)]);}[_0x54f871(0xc7)](){const _0x469e27=_0x54f871,_0x4eb4a2=this[_0x469e27(0x100)][_0x469e27(0xe0)][_0x469e27(0xd0)](_0x469e27(0xd6));_0x4eb4a2&&this[_0x469e27(0xf2)](_0x4eb4a2,_0x469e27(0xe7),()=>{const _0x40c75e=_0x469e27,_0xc0b973=this[_0x40c75e(0x100)][_0x40c75e(0xbf)][_0x40c75e(0xf7)][_0x40c75e(0xde)][_0x40c75e(0xdb)]();_0xc0b973&&_0xc0b973[_0x40c75e(0xf6)](_0x40c75e(0xd1))&&this[_0x40c75e(0x100)][_0x40c75e(0xef)][_0x40c75e(0xfb)][_0x40c75e(0xb9)](_0x40c75e(0xd5),()=>{const _0x28565d=_0x40c75e;_0x403fb0(this[_0x28565d(0x100)],_0xc0b973);});});const _0x2cea28=this[_0x469e27(0x100)][_0x469e27(0xe0)][_0x469e27(0xd0)](_0x469e27(0xe8));_0x2cea28&&this[_0x469e27(0xf2)](_0x2cea28,_0x469e27(0xe7),()=>{const _0x922565=_0x469e27,_0x7455df=this[_0x922565(0x100)][_0x922565(0xbf)][_0x922565(0xf7)][_0x922565(0xde)][_0x922565(0xdb)]();_0x7455df&&_0x7455df[_0x922565(0xf6)](_0x922565(0xd1))&&this[_0x922565(0x100)][_0x922565(0xef)][_0x922565(0xfb)][_0x922565(0xb9)](_0x922565(0xd5),()=>{const _0x2d0000=_0x922565;_0x403fb0(this[_0x2d0000(0x100)],_0x7455df);});});}}function _0x49c9(){const _0x38a7a6=['uploadcare','3477576IJsOOu','model','2591946gkFiJq','elementToAttribute','body','schema','uploader-','add','8514MwefGA','_initImageProcessingIndicator','ucContextId','cleanupImage','4665248OYTbpB','map','attributeToAttribute','href','removeAttribute','data-uc-image-id','get','uploadcareImageId','configElement','PictureEditing','config','render','insertImage','destroy','input[uploadcare-file-input]','fromCharCode','_initCtx','getSelectedElement','querySelector','\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','selection','_ctxElement','commands','4458552vhUmBt','iconHrefResolver','#uc-icon-arrow-down','_initConfig','uc-upload-ctx-provider','pluginName','execute','uploadcareImageReplace','12575801nRqXmm','afterInit','uploadcare.pubkey','imageInline','for','isRegistered','editing','_initSchema','uc-config','listenTo','_initConversion','isOfficialPlugin','closeMax','getAttribute','document','uploadcare.uploader','join','imageBlock','view','conversion','upcast','downcast','appendChild','editor','UploadcareEditing','init','contentLanguage','1436416ZxaVib','true','locale','ctxElement','remove','2980EJblLo','requires','replaceImageSource','once','isPremiumPlugin','_configElement','extend'];_0x49c9=function(){return _0x38a7a6;};return _0x49c9();}
|
|
23
|
+
const _0x6b630d=_0xa04b;(function(_0x1019f1,_0x172a68){const _0x52d0bd=_0xa04b,_0x350727=_0x1019f1();while(!![]){try{const _0x848f48=-parseInt(_0x52d0bd(0x178))/0x1+-parseInt(_0x52d0bd(0x187))/0x2+parseInt(_0x52d0bd(0x1c3))/0x3*(parseInt(_0x52d0bd(0x182))/0x4)+parseInt(_0x52d0bd(0x1cb))/0x5*(-parseInt(_0x52d0bd(0x19b))/0x6)+parseInt(_0x52d0bd(0x1b3))/0x7*(-parseInt(_0x52d0bd(0x1ca))/0x8)+parseInt(_0x52d0bd(0x1bf))/0x9*(parseInt(_0x52d0bd(0x1b0))/0xa)+parseInt(_0x52d0bd(0x1b9))/0xb*(parseInt(_0x52d0bd(0x1c8))/0xc);if(_0x848f48===_0x172a68)break;else _0x350727['push'](_0x350727['shift']());}catch(_0x2c9bac){_0x350727['push'](_0x350727['shift']());}}}(_0x4f91,0x6bd8d));import{Plugin as _0xee4b4d}from'ckeditor5/src/core.js';import{Dialog as _0x736ec6}from'ckeditor5/src/ui.js';import{createElement as _0x369d61,global as _0x3be056,uid as _0x59c115}from'ckeditor5/src/utils.js';function _0xa04b(_0x25f688,_0x5a7709){const _0x4f91ab=_0x4f91();return _0xa04b=function(_0xa04bd7,_0x505e47){_0xa04bd7=_0xa04bd7-0x177;let _0x2aaa1e=_0x4f91ab[_0xa04bd7];return _0x2aaa1e;},_0xa04b(_0x25f688,_0x5a7709);}function _0x4f91(){const _0x1cbb0a=['editor','closeMax','PictureEditing','426449sqldkk','_initCtx','uploadcareImageId','insertImage','_initConversion','document','selection','querySelector','uploader-','extend','206500CEUwzS','imageBlock','isRegistered','data-uc-image-id','editing','1007682TZKknN','remove','isOfficialPlugin','replaceImageSource','model','elementToAttribute','_initSchema','iconHrefResolver','_initImageProcessingIndicator','isPremiumPlugin','ucContextId','uc-upload-ctx-provider','input[uploadcare-file-input]','ctxElement','execute','uploadcare','get','config','listenTo','uploadcareImageReplace','60uAihTt','UploadcareEditing','configElement','_ctxElement','init','commands','add','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','#uc-icon-arrow-down','downcast','for','map','body','attributeToAttribute','getAttribute','_initConfig','locale','true','destroy','once','requires','180QCDwms','cleanupImage','appendChild','482853OmFycW','conversion','join','uploadcare.pubkey','schema','pluginName','11UIlBxO','upcast','view','afterInit','imageInline','render','7839RYcJCL','fromCharCode','removeAttribute','_configElement','9nyPTmp','href','uploadcare.uploader','uc-config','getSelectedElement','26930592apoIfX','contentLanguage','96JBbUMm','107495JFYNPk'];_0x4f91=function(){return _0x1cbb0a;};return _0x4f91();}import{UploadcareCommand as _0x5adcd5}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2b205f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xc834a4}from'./utils/editingutils.js';export class UploadcareEditing extends _0xee4b4d{[_0x6b630d(0x1c2)]=null;[_0x6b630d(0x19e)]=null;static get[_0x6b630d(0x1b8)](){const _0x138562=_0x6b630d;return _0x138562(0x19c);}static get[_0x6b630d(0x1af)](){const _0x58ec6a=_0x6b630d;return[_0x58ec6a(0x177),_0x2b205f,_0x736ec6];}static get[_0x6b630d(0x189)](){return!0x0;}static get[_0x6b630d(0x190)](){return!0x0;}[_0x6b630d(0x191)];get[_0x6b630d(0x19d)](){const _0x48ec79=_0x6b630d;return this[_0x48ec79(0x1c2)];}get[_0x6b630d(0x194)](){const _0xbd23b=_0x6b630d;return this[_0xbd23b(0x19e)];}constructor(_0x108ad7){const _0x19731f=_0x6b630d;super(_0x108ad7),this[_0x19731f(0x191)]=_0x59c115();}[_0x6b630d(0x19f)](){const _0x293abe=_0x6b630d,_0x4b9b2c=this[_0x293abe(0x1cc)];_0x4b9b2c[_0x293abe(0x1a0)][_0x293abe(0x1a1)](_0x293abe(0x196),new _0x5adcd5(_0x4b9b2c));}[_0x6b630d(0x1bc)](){const _0x29675d=_0x6b630d;this[_0x29675d(0x18d)](),this[_0x29675d(0x17c)](),this[_0x29675d(0x1aa)](),this[_0x29675d(0x179)](),this[_0x29675d(0x18f)](),this[_0x29675d(0x199)](this[_0x29675d(0x1cc)],_0x29675d(0x1ad),()=>{const _0x4b1bc8=_0x29675d;this[_0x4b1bc8(0x1c2)]&&(this[_0x4b1bc8(0x1c2)][_0x4b1bc8(0x188)](),this[_0x4b1bc8(0x1c2)]=null),this[_0x4b1bc8(0x19e)]&&(this[_0x4b1bc8(0x19e)][_0x4b1bc8(0x188)](),this[_0x4b1bc8(0x19e)]=null);const _0x53a281=_0x3be056[_0x4b1bc8(0x17d)][_0x4b1bc8(0x17f)](_0x4b1bc8(0x193));_0x53a281&&_0x53a281[_0x4b1bc8(0x188)]();}),async function(_0x20260b){const _0x561e44=_0x5d68fb([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1082f7=0x535f8c3a,_0x31519f=0x5358f7ba^_0x1082f7,_0x214abf=window[_0x5d68fb([0x44,0x61,0x74,0x65])][_0x5d68fb([0x6e,0x6f,0x77])](),_0x594dc7=_0x20260b[_0x5d68fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x71b69d=new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40a343=>{_0x594dc7[_0x5d68fb([0x6f,0x6e,0x63,0x65])](_0x5d68fb([0x72,0x65,0x61,0x64,0x79]),_0x40a343);}),_0x20b4e5={[_0x5d68fb([0x6b,0x74,0x79])]:_0x5d68fb([0x45,0x43]),[_0x5d68fb([0x75,0x73,0x65])]:_0x5d68fb([0x73,0x69,0x67]),[_0x5d68fb([0x63,0x72,0x76])]:_0x5d68fb([0x50,0x2d,0x32,0x35,0x36]),[_0x5d68fb([0x78])]:_0x5d68fb([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]),[_0x5d68fb([0x79])]:_0x5d68fb([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]),[_0x5d68fb([0x61,0x6c,0x67])]:_0x5d68fb([0x45,0x53,0x32,0x35,0x36])},_0x37cc77=_0x594dc7[_0x5d68fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d68fb([0x67,0x65,0x74])](_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x124623(){let _0x210b13,_0x41b3d1=null,_0x56741c=null;try{if(_0x37cc77==_0x5d68fb([0x47,0x50,0x4c]))return _0x5d68fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x210b13=_0x21cd95(),!_0x210b13)return _0x5d68fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x210b13[_0x5d68fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56741c=_0x1ec03f(_0x210b13[_0x5d68fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x210b13[_0x5d68fb([0x6a,0x74,0x69])])),await _0x2c64b1()?_0x2cf16f()?_0x1a0e6a()?_0x5d68fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd0120a()?(_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d68fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41b3d1=_0x20849d(_0x5d68fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d68fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x41b3d1=_0x20849d(_0x5d68fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3cb6af()):_0x5d68fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d68fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d68fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d68fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a0e6a(){const _0x3894c7=[_0x5d68fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d68fb([0x74,0x72,0x69,0x61,0x6c])][_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x214abf/0x3e8:0xe10*_0x31519f;return _0x210b13[_0x5d68fb([0x65,0x78,0x70])]<_0x3894c7;}function _0x2cf16f(){const _0x4249c5=_0x210b13[_0x5d68fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4249c5&&(!!_0x4249c5[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d68fb([0x2a]))||!!_0x4249c5[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d68fb([0x55,0x50,0x4c,0x43])));}function _0xd0120a(){const _0xf0e312=_0xa04b,_0x298500=_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x298500||0x0==_0x298500[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ae2f0}=new URL(window[_0x5d68fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xf0e312(0x1c4)]);if(_0x298500[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ae2f0))return!0x0;const _0x14c24a=_0x3ae2f0[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e]));return _0x298500[_0x5d68fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19c0ea=>_0x19c0ea[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d68fb([0x2a])))[_0x5d68fb([0x6d,0x61,0x70])](_0xed21a=>_0xed21a[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e])))[_0x5d68fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb796df=>_0xb796df[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14c24a[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d68fb([0x6d,0x61,0x70])](_0x4ab601=>Array(_0x14c24a[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ab601[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d68fb([0x66,0x69,0x6c,0x6c])](_0x4ab601[0x0]===_0x5d68fb([0x2a])?_0x5d68fb([0x2a]):'')[_0x5d68fb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ab601))[_0x5d68fb([0x73,0x6f,0x6d,0x65])](_0x29dcfa=>_0x14c24a[_0x5d68fb([0x65,0x76,0x65,0x72,0x79])]((_0x473444,_0x430fb0)=>_0x29dcfa[_0x430fb0]===_0x473444||_0x29dcfa[_0x430fb0]===_0x5d68fb([0x2a])));}function _0x3cb6af(){return _0x41b3d1&&_0x56741c?new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x130cca,_0x72be86)=>{_0x41b3d1[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x130cca,_0x72be86),_0x56741c[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x2b05cc=>{_0x2b05cc!=_0x5d68fb([0x56,0x61,0x6c,0x69,0x64])&&_0x130cca(_0x2b05cc);},_0x72be86);}):_0x41b3d1||_0x56741c||_0x5d68fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ec03f(_0x5b03d1,_0x354f48){return new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a3e82=>{if(_0x2ae14c())return _0x1a3e82(_0x5d68fb([0x56,0x61,0x6c,0x69,0x64]));_0x1449d0(),_0x594dc7[_0x5d68fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d68fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6f1d00=!0x1;const _0x47946f=_0x59c115();function _0x246c7d(_0xcfcc1a){return!!_0xcfcc1a&&(typeof _0xcfcc1a===_0x5d68fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcfcc1a===_0x5d68fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcfcc1a[_0x5d68fb([0x74,0x68,0x65,0x6e])]===_0x5d68fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcfcc1a[_0x5d68fb([0x63,0x61,0x74,0x63,0x68])]===_0x5d68fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25642b(_0x56cb90){_0x431fa3(_0x56cb90)[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x9a9409=>{if(!_0x9a9409||_0x9a9409[_0x5d68fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d68fb([0x6f,0x6b]))return _0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf32189(_0x4597e6(_0x47946f+_0x354f48))!=_0x9a9409[_0x5d68fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d68fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x3d2aa7=>(_0x2824f3(),_0x3d2aa7),()=>{const _0xd5cdec=_0x5d4a1d();return null==_0xd5cdec?(_0x2824f3(),_0x5d68fb([0x56,0x61,0x6c,0x69,0x64])):_0x5d68fb(_0x214abf-_0xd5cdec>(0x7753083a^_0x1082f7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x1a3e82)[_0x5d68fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a3e82(_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x298951=0x536962ba^_0x1082f7;function _0x2824f3(){const _0x3d98b9=_0x5d68fb([0x6c,0x6c,0x63,0x74,0x2d])+_0xf32189(_0x4597e6(_0x5b03d1)),_0x1c1ff3=_0x1eb4df(_0xf32189(window[_0x5d68fb([0x4d,0x61,0x74,0x68])][_0x5d68fb([0x63,0x65,0x69,0x6c])](_0x214abf/_0x298951)));window[_0x5d68fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d68fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d98b9,_0x1c1ff3);}function _0x5d4a1d(){const _0x588967=_0x5d68fb([0x6c,0x6c,0x63,0x74,0x2d])+_0xf32189(_0x4597e6(_0x5b03d1)),_0x1ef267=window[_0x5d68fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d68fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x588967);return _0x1ef267?window[_0x5d68fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eb4df(_0x1ef267),0x10)*_0x298951:null;}function _0x431fa3(_0x4c6d3e){return new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3570e5,_0x170351)=>{_0x4c6d3e[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x3570e5,_0x170351),window[_0x5d68fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x170351,0x535e58fa^_0x1082f7);});}}_0x594dc7[_0x5d68fb([0x6f,0x6e])](_0x5d68fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6e5315,_0x48c0ee)=>{if(_0x48c0ee[0x0]!=_0x5b03d1)return _0x1a3e82(_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48c0ee[0x1]={..._0x48c0ee[0x1],[_0x5d68fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47946f};},{[_0x5d68fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d68fb([0x68,0x69,0x67,0x68])}),_0x594dc7[_0x5d68fb([0x6f,0x6e])](_0x5d68fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x369596=>{_0x246c7d(_0x369596[_0x5d68fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6f1d00=!0x0,_0x25642b(_0x369596[_0x5d68fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d68fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d68fb([0x6c,0x6f,0x77])}),_0x71b69d[_0x5d68fb([0x74,0x68,0x65,0x6e])](()=>{_0x6f1d00||_0x1a3e82(_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ae14c(){return _0x594dc7[_0x5d68fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d68fb([0x76,0x69,0x65,0x77])][_0x5d68fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d68fb([0x61,0x75,0x74,0x6f]);}function _0x1449d0(){_0x594dc7[_0x5d68fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d68fb([0x76,0x69,0x65,0x77])][_0x5d68fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d68fb([0x61,0x75,0x74,0x6f]);}}function _0x20849d(_0x3a1f0c){const _0x573e89=[new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e11c0=>setTimeout(_0x2e11c0,0x5356b2f6^_0x1082f7)),_0x71b69d[_0x5d68fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52d921=>{let _0xe4ced2=0x0;_0x594dc7[_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d68fb([0x6f,0x6e])](_0x5d68fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d3364,_0x252918)=>{_0x252918[0x0][_0x5d68fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe4ced2++,_0xe4ced2==(0x535f8dc2^_0x1082f7)&&(_0x52d921(),_0x5d3364[_0x5d68fb([0x6f,0x66,0x66])]());});}))];return window[_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d68fb([0x72,0x61,0x63,0x65])](_0x573e89)[_0x5d68fb([0x74,0x68,0x65,0x6e])](()=>_0x3a1f0c);}async function _0x9e42c7(){await _0x71b69d,_0x594dc7[_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d68fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59dafe,_0x594dc7[_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d68fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59dafe,_0x594dc7[_0x5d68fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x459380(_0x11c156){const _0x99e0b7=_0x331601();_0x594dc7[_0x99e0b7]=_0x5d68fb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11c156,_0x11c156!=_0x5d68fb([0x56,0x61,0x6c,0x69,0x64])&&_0x9e42c7();}function _0x331601(){const _0x4b71f0=window[_0x5d68fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d68fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d68fb([0x6e,0x6f,0x77])]())[_0x5d68fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d68fb([0x2e]),'');let _0x22d4b0=_0x5d68fb([0x68]);for(let _0x42e71b=0x0;_0x42e71b<_0x4b71f0[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42e71b+=0x2){let _0x455cbe=window[_0x5d68fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b71f0[_0x5d68fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42e71b,_0x42e71b+0x2));_0x455cbe>=_0x561e44[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x455cbe-=_0x561e44[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22d4b0+=_0x561e44[_0x455cbe];}return _0x22d4b0;}function _0x21cd95(){const _0x12a3f3=_0x37cc77[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e]));if(0x3!=_0x12a3f3[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd2ee75(_0x12a3f3[0x1]);function _0xd2ee75(_0x24d184){const _0x433e8c=_0x2bd260(_0x24d184);return _0x433e8c&&_0x485738()?_0x433e8c:null;function _0x485738(){const _0x1e01be=_0x433e8c[_0x5d68fb([0x6a,0x74,0x69])],_0x446815=window[_0x5d68fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e01be[_0x5d68fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e01be[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b9784={..._0x433e8c,[_0x5d68fb([0x6a,0x74,0x69])]:_0x1e01be[_0x5d68fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e01be[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b9784[_0x5d68fb([0x76,0x63])],_0x4597e6(_0x4b9784)==_0x446815;}}}async function _0x2c64b1(){let _0x276e26=!0x0;try{const _0x13141c=_0x37cc77[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e])),[_0x545465,_0x168990,_0x972662]=_0x13141c;return _0x10d4a3(_0x545465),await _0x1175db(_0x545465,_0x168990,_0x972662),_0x276e26;}catch{return!0x1;}function _0x10d4a3(_0x429610){const _0x59d194=_0x2bd260(_0x429610);_0x59d194&&_0x59d194[_0x5d68fb([0x61,0x6c,0x67])]==_0x5d68fb([0x45,0x53,0x32,0x35,0x36])||(_0x276e26=!0x1);}async function _0x1175db(_0x40a4a9,_0x3d099f,_0x294557){const _0x5f3349=window[_0x5d68fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d68fb([0x66,0x72,0x6f,0x6d])](_0x5c88d7(_0x294557),_0x544af8=>_0x544af8[_0x5d68fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd0b03f=new window[(_0x5d68fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d68fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40a4a9+_0x5d68fb([0x2e])+_0x3d099f),_0x3ac384=window[_0x5d68fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d68fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ac384)return;const _0x1beeed=await _0x3ac384[_0x5d68fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d68fb([0x6a,0x77,0x6b]),_0x20b4e5,{[_0x5d68fb([0x6e,0x61,0x6d,0x65])]:_0x5d68fb([0x45,0x43,0x44,0x53,0x41]),[_0x5d68fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d68fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d68fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ac384[_0x5d68fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d68fb([0x6e,0x61,0x6d,0x65])]:_0x5d68fb([0x45,0x43,0x44,0x53,0x41]),[_0x5d68fb([0x68,0x61,0x73,0x68])]:{[_0x5d68fb([0x6e,0x61,0x6d,0x65])]:_0x5d68fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1beeed,_0x5f3349,_0xd0b03f)||(_0x276e26=!0x1);}}function _0x2bd260(_0xd833bb){return _0xd833bb[_0x5d68fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d68fb([0x65,0x79]))?JSON[_0x5d68fb([0x70,0x61,0x72,0x73,0x65])](_0x5c88d7(_0xd833bb)):null;}function _0x5c88d7(_0x25d94f){return window[_0x5d68fb([0x61,0x74,0x6f,0x62])](_0x25d94f[_0x5d68fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d68fb([0x2b]))[_0x5d68fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d68fb([0x2f])));}function _0x4597e6(_0x7297bb){let _0x3195aa=0x1505;function _0x3c3d13(_0x29abbf){for(let _0x54935a=0x0;_0x54935a<_0x29abbf[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54935a++){const _0xd5e739=_0x29abbf[_0x5d68fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54935a);_0x3195aa=(_0x3195aa<<0x5)+_0x3195aa+_0xd5e739,_0x3195aa&=_0x3195aa;}}function _0x20b667(_0x5eea49){Array[_0x5d68fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5eea49)?_0x5eea49[_0x5d68fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20b667):_0x5eea49&&typeof _0x5eea49==_0x5d68fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d68fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5eea49)[_0x5d68fb([0x73,0x6f,0x72,0x74])]()[_0x5d68fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a04f3,_0x5d4f03])=>{_0x3c3d13(_0x2a04f3),_0x20b667(_0x5d4f03);}):_0x3c3d13(window[_0x5d68fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5eea49));}return _0x20b667(_0x7297bb),_0x3195aa>>>0x0;}function _0xf32189(_0x3a3e8c){return _0x3a3e8c[_0x5d68fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d68fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d68fb([0x30]));}function _0x1eb4df(_0x184ce2){return _0x184ce2[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d68fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d68fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x59dafe(){}function _0x5d68fb(_0x5b188a){const _0x45429f=_0xa04b;return _0x5b188a[_0x45429f(0x1a6)](_0x7ca2d8=>String[_0x45429f(0x1c0)](_0x7ca2d8))[_0x45429f(0x1b5)]('');}_0x459380(await _0x124623());}(this);}[_0x6b630d(0x18d)](){const _0x18bc21=_0x6b630d,_0x24050e=this[_0x18bc21(0x1cc)][_0x18bc21(0x18b)][_0x18bc21(0x1b7)];_0x24050e[_0x18bc21(0x184)](_0x18bc21(0x183))&&_0x24050e[_0x18bc21(0x181)](_0x18bc21(0x183),{'allowAttributes':[_0x18bc21(0x17a)]}),_0x24050e[_0x18bc21(0x184)](_0x18bc21(0x1bd))&&_0x24050e[_0x18bc21(0x181)](_0x18bc21(0x1bd),{'allowAttributes':[_0x18bc21(0x17a)]});}[_0x6b630d(0x17c)](){const _0x2fd536=_0x6b630d,_0x54a5ac=this[_0x2fd536(0x1cc)];_0x54a5ac[_0x2fd536(0x1b4)][_0x2fd536(0x1a5)](_0x2fd536(0x1a4))[_0x2fd536(0x1a8)]({'model':_0x2fd536(0x17a),'view':_0x2fd536(0x185)}),_0x54a5ac[_0x2fd536(0x1b4)][_0x2fd536(0x1a5)](_0x2fd536(0x1ba))[_0x2fd536(0x18c)]({'model':{'key':_0x2fd536(0x17a),'value':_0x2c45f8=>_0x2c45f8[_0x2fd536(0x1a9)](_0x2fd536(0x185))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5da8c5=_0x54a5ac[_0x2fd536(0x1a0)][_0x2fd536(0x197)](_0x2fd536(0x18a));_0x5da8c5&&this[_0x2fd536(0x199)](_0x5da8c5,_0x2fd536(0x1b1),(_0x52cf75,[_0x4b3b40,_0x5038a4])=>{const _0x852dfe=_0x2fd536;_0x4b3b40[_0x852dfe(0x1c1)](_0x852dfe(0x17a),_0x5038a4);});}[_0x6b630d(0x1aa)](){const _0x12ae60=_0x6b630d,_0x2ebc11=this[_0x12ae60(0x1cc)][_0x12ae60(0x198)][_0x12ae60(0x197)](_0x12ae60(0x1c5))||{},_0xb997bb=this[_0x12ae60(0x1cc)][_0x12ae60(0x198)][_0x12ae60(0x197)](_0x12ae60(0x1b6))||'';this[_0x12ae60(0x1c2)]=_0x369d61(_0x3be056[_0x12ae60(0x17d)],_0x12ae60(0x1c6),{..._0x2ebc11,'pubkey':_0xb997bb,'ctx-name':_0x12ae60(0x180)+this[_0x12ae60(0x191)],'sourceList':'','imgOnly':_0x12ae60(0x1ac),'removeCopyright':_0x12ae60(0x1ac),'localeName':this[_0x12ae60(0x1cc)][_0x12ae60(0x1ab)][_0x12ae60(0x1c9)],'externalSourcesEmbedCss':_0x12ae60(0x1a2)}),this[_0x12ae60(0x1c2)][_0x12ae60(0x18e)]=_0x1da5b8=>{const _0x3fc147=_0x12ae60;if(_0x3fc147(0x1cd)==_0x1da5b8)return _0x3fc147(0x1a3);},_0x3be056[_0x12ae60(0x17d)][_0x12ae60(0x1a7)][_0x12ae60(0x1b2)](this[_0x12ae60(0x1c2)]);}[_0x6b630d(0x179)](){const _0x75938e=_0x6b630d;this[_0x75938e(0x19e)]=_0x369d61(_0x3be056[_0x75938e(0x17d)],_0x75938e(0x192),{'ctx-name':_0x75938e(0x180)+this[_0x75938e(0x191)]}),_0x3be056[_0x75938e(0x17d)][_0x75938e(0x1a7)][_0x75938e(0x1b2)](this[_0x75938e(0x19e)]);}[_0x6b630d(0x18f)](){const _0x2f9867=_0x6b630d,_0x19fac7=this[_0x2f9867(0x1cc)][_0x2f9867(0x1a0)][_0x2f9867(0x197)](_0x2f9867(0x17b));_0x19fac7&&this[_0x2f9867(0x199)](_0x19fac7,_0x2f9867(0x195),()=>{const _0x360cd5=_0x2f9867,_0x5c2821=this[_0x360cd5(0x1cc)][_0x360cd5(0x18b)][_0x360cd5(0x17d)][_0x360cd5(0x17e)][_0x360cd5(0x1c7)]();_0x5c2821&&_0x5c2821[_0x360cd5(0x1a9)](_0x360cd5(0x17a))&&this[_0x360cd5(0x1cc)][_0x360cd5(0x186)][_0x360cd5(0x1bb)][_0x360cd5(0x1ae)](_0x360cd5(0x1be),()=>{const _0x154d8e=_0x360cd5;_0xc834a4(this[_0x154d8e(0x1cc)],_0x5c2821);});});const _0x17bc19=this[_0x2f9867(0x1cc)][_0x2f9867(0x1a0)][_0x2f9867(0x197)](_0x2f9867(0x19a));_0x17bc19&&this[_0x2f9867(0x199)](_0x17bc19,_0x2f9867(0x195),()=>{const _0x3def34=_0x2f9867,_0x3d1d60=this[_0x3def34(0x1cc)][_0x3def34(0x18b)][_0x3def34(0x17d)][_0x3def34(0x17e)][_0x3def34(0x1c7)]();_0x3d1d60&&_0x3d1d60[_0x3def34(0x1a9)](_0x3def34(0x17a))&&this[_0x3def34(0x1cc)][_0x3def34(0x186)][_0x3def34(0x1bb)][_0x3def34(0x1ae)](_0x3def34(0x1be),()=>{const _0x2c73c9=_0x3def34;_0xc834a4(this[_0x2c73c9(0x1cc)],_0x3d1d60);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1b7e05,ObservableMixin as _0x5174fc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4dbe7f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2d525e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2ef1c0}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x30ceb4}from'../../utils/uploadutils.js';import{getImageUrls as _0x140580,getImageDimension as _0x41171a}from'../../utils/editingutils.js';import{isAncestor as _0x540a3f}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5174fc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1996f3,_0x5d7b94,_0x2a14b4){super(),this['_editor']=_0x1996f3,this['_dialog']=_0x5d7b94,this['_imageElement']=_0x2a14b4,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 _0xb14d9=this['_imageElement'],_0x483423=_0xb14d9['getAttribute']('uploadcareImageId'),_0x10c63a=_0xb14d9['getAttribute']('src');if(_0x483423)await this['_loadImageInfo'](_0x483423,_0x10c63a);else{if(this['_imageCache']['has'](_0x10c63a)){const _0x5539e6=this['_imageCache']['get'](_0x10c63a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5539e6['url'],this['imageDimension']=_0x5539e6['dimension'],this['imageId']=_0x5539e6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x152241}=this['_editor'],t=_0x152241['t'],_0x4419e7=new _0x2ef1c0(_0x152241,this['imageStatus'],this['_attributes']);_0x4419e7['bind']('status')['to'](this,'imageStatus'),_0x4419e7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4419e7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4419e7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4419e7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d525e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4419e7,'position':_0x4dbe7f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4419e7['focus']();},'onHide':()=>{_0x4419e7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ef670=>!_0x540a3f(_0x2ef670,_0x4419e7['element'])}});}['_loadImageInfo'](_0x3159c4,_0x559098){return _0x30ceb4['getInfo'](_0x3159c4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x361f34=>{const {width:_0x27327c,height:_0x422856}=_0x361f34['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x559098,this['imageDimension']={'width':_0x27327c,'height':_0x422856},this['imageId']=_0x3159c4;})['catch'](_0xd42c30=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd42c30['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x33c494,_0x11764e){return this['_getImageAsFile'](_0x33c494)['then'](_0x4bbe62=>_0x30ceb4['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':_0x11764e['signal'],'file':_0x4bbe62,'onProgress':_0x3199c0=>{_0x3199c0&&_0x3199c0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3199c0['value']));}}))['then'](_0xfc0f8a=>{const {width:_0x229509,height:_0x208501}=_0xfc0f8a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfc0f8a['cdnUrl'],this['imageDimension']={'width':_0x229509,'height':_0x208501},this['imageId']=_0xfc0f8a['uuid'],this['imageUploadProgress']=null;const _0x5a40fa=_0x33c494['getAttribute']('src');this['_imageCache']['set'](_0x5a40fa,{'id':_0xfc0f8a['uuid'],'url':_0xfc0f8a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4bc91b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4bc91b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x46139d,_0x99b1f7){_0x46139d['on']('apply',(_0x21fe5f,_0x552a82)=>{this['_replaceImage'](_0x99b1f7,_0x552a82['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x46139d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x46139d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4b54c7,_0x50f305,_0x266ab5){const _0x457f11=this['_editor'],{width:_0x9f24a5,height:_0x2c42fd}=_0x41171a(_0x50f305,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1a3925,imageSources:_0x25dff4}=_0x140580(_0x50f305,_0x9f24a5);_0x457f11['model']['change'](_0x1c70bd=>{if('$graveyard'===_0x4b54c7['root']['rootName']){_0x457f11['execute']('insertImage',{'imageType':_0x4b54c7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4b54c7['getAttributes']()),'uploadcareImageId':_0x266ab5,'src':_0x1a3925,'sources':_0x25dff4,'width':_0x9f24a5,'height':_0x2c42fd}});const _0x2b01d6=_0x4b54c7['getChildren']();_0x4b54c7=_0x457f11['model']['document']['selection']['getSelectedElement']();for(const _0x557bf8 of _0x2b01d6)_0x1c70bd['append'](_0x1c70bd['cloneElement'](_0x557bf8),_0x4b54c7);}else _0x1c70bd['setSelection'](_0x4b54c7,'on'),_0x457f11['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4b54c7['getAttributes']()),'uploadcareImageId':_0x266ab5,'src':_0x1a3925,'sources':_0x25dff4,'width':_0x9f24a5,'height':_0x2c42fd},_0x4b54c7);_0x1c70bd['setSelection'](_0x4b54c7,'on');});}async['_getImageAsFile'](_0x4f5582){const _0x351357=_0x1b7e05['window'],_0xed350=_0x1b7e05['document']['location']['href'],_0x4d9148=new _0x351357['URL'](_0x4f5582['getAttribute']('src'),_0xed350);if('data:'===_0x4d9148['protocol']){const _0xe2b598=_0x4d9148['href']['split'](','),_0xb8308b=_0xe2b598[0x0]['match'](/:(.*?);/)[0x1],_0x444319=_0xb8308b['split']('/')[0x1],_0x58011e=_0x351357['atob'](_0xe2b598[_0xe2b598['length']-0x1]);let _0x3046df=_0x58011e['length'];const _0x185af9=new _0x351357['Uint8Array'](_0x3046df);for(;_0x3046df--;)_0x185af9[_0x3046df]=_0x58011e['charCodeAt'](_0x3046df);return new _0x351357['File']([_0x185af9],'image.'+_0x444319,{'type':_0xb8308b});}const _0x3cf716=_0x4d9148['href']['split']('/'),_0x20475b=_0x3cf716[_0x3cf716['length']-0x1],_0x21c400=_0x20475b['split']('.')[0x1];return _0x351357['fetch'](_0x4d9148['href'])['then'](_0x109743=>_0x109743['clone']()['blob']())['then'](_0x431520=>new _0x351357['File']([_0x431520],_0x20475b,{'type':'image/'+_0x21c400}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1e24(){const _0x51b9cf=['bindTemplate','452534bgzkDp','543760WyRmfo','3bJrhHD','6399045pVgeBn','9431933oBUYle','2805360ghWorD','set','131034EWMHRr','image-edit','7621200flOGez','ck-uploadcare-theme','uc-cloud-image-editor','imageSrc','setTemplate','uc-light'];_0x1e24=function(){return _0x51b9cf;};return _0x1e24();}(function(_0x3efca2,_0x2bac95){const _0x667a4e=_0x5e93,_0x37415c=_0x3efca2();while(!![]){try{const _0x4f1c93=-parseInt(_0x667a4e(0x147))/0x1+parseInt(_0x667a4e(0x13e))/0x2*(parseInt(_0x667a4e(0x139))/0x3)+-parseInt(_0x667a4e(0x138))/0x4+parseInt(_0x667a4e(0x13a))/0x5+-parseInt(_0x667a4e(0x13c))/0x6+parseInt(_0x667a4e(0x13b))/0x7+-parseInt(_0x667a4e(0x140))/0x8;if(_0x4f1c93===_0x2bac95)break;else _0x37415c['push'](_0x37415c['shift']());}catch(_0x58692e){_0x37415c['push'](_0x37415c['shift']());}}}(_0x1e24,0xa701d));import{View as _0x11d7e7}from'ckeditor5/src/ui.js';function _0x5e93(_0x28ee54,_0xf07dc3){const _0x1e244b=_0x1e24();return _0x5e93=function(_0x5e932b,_0x226bf1){_0x5e932b=_0x5e932b-0x138;let _0x4ebe76=_0x1e244b[_0x5e932b];return _0x4ebe76;},_0x5e93(_0x28ee54,_0xf07dc3);}export class UploadcareImageEditFormEditingView extends _0x11d7e7{constructor(_0x2929af,_0x52524b){const _0x41769b=_0x5e93;super(_0x2929af);const _0x4f4cf2=this[_0x41769b(0x146)];this[_0x41769b(0x13d)](_0x41769b(0x143),''),this[_0x41769b(0x144)]({'tag':_0x41769b(0x142),'attributes':{..._0x52524b,'class':[_0x41769b(0x145),_0x41769b(0x141)],'ctx-name':_0x41769b(0x13f),'cdn-url':_0x4f4cf2['to'](_0x41769b(0x143))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x291496}from'ckeditor5/src/icons.js';import{ButtonView as _0x31f964,IconView as _0x536529,View as _0x50415c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x50415c{constructor(_0x3b6c39){super(_0x3b6c39);const t=_0x3b6c39['t'];this['set']('errorType',null);const _0x4821c9=new _0x31f964(_0x3b6c39);_0x4821c9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4821c9['withText']=!0x0,_0x4821c9['class']='ck-button-action',_0x4821c9['on']('execute',()=>{this['fire']('retry');}),_0x4821c9['bind']('isVisible')['to'](this,'errorType',_0x82b129=>'NotFound'!==_0x82b129);const _0x2256eb=new _0x536529();_0x2256eb['content']=_0x291496,_0x2256eb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x33b0e3=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':[_0x2256eb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x33b0e3['to']('errorType',_0x4ba346=>t('NotFound'!==_0x4ba346?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4821c9]},{'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 _0x324d53,View as _0x3a6737}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3a6737{constructor(_0x2637cb){super(_0x2637cb);const t=_0x2637cb['t'],_0x1bfdd7=this['bindTemplate'],_0x4362af=new _0x324d53();_0x4362af['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':[_0x4362af,{'text':_0x1bfdd7['to']('imageUploadProgress',_0x482dea=>t('Loading\x20image...')+'\x20('+(_0x482dea||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
|
-
function
|
|
23
|
+
const _0x50e03c=_0x4e6f;(function(_0x142045,_0x31e21f){const _0x250446=_0x4e6f,_0x1dae92=_0x142045();while(!![]){try{const _0x406808=parseInt(_0x250446(0x191))/0x1*(parseInt(_0x250446(0x1a0))/0x2)+parseInt(_0x250446(0x186))/0x3+parseInt(_0x250446(0x17d))/0x4+-parseInt(_0x250446(0x17c))/0x5*(parseInt(_0x250446(0x19d))/0x6)+parseInt(_0x250446(0x182))/0x7*(parseInt(_0x250446(0x17e))/0x8)+parseInt(_0x250446(0x174))/0x9+-parseInt(_0x250446(0x18b))/0xa*(parseInt(_0x250446(0x17a))/0xb);if(_0x406808===_0x31e21f)break;else _0x1dae92['push'](_0x1dae92['shift']());}catch(_0x5ab423){_0x1dae92['push'](_0x1dae92['shift']());}}}(_0x4f22,0xd87ff));function _0x4f22(){const _0x2eec3e=['_items','addMany','target','status','setTemplate','createCollection','filter','_errorView','length','observe','focus','3053880GnIvVn','element','apply','disconnect','uploading','detail','44FJgtIy','addEventListener','5EusklI','6289640watZDl','16tvcsjF','once','toLowerCase','fire','4305098IRofBn','_waitForImageEditorComponent','cdnUrl','set','601008ndcGto','_focusableView','cancel','_addErrorViewListeners','getFocusableElement','5743660wUWqqA','div','_setView','add','ready','querySelector','1lzcjhY','_addUploadcareImageEditorListeners','clear','_editingView','_loadingView','render','addedNodes','uc-cloud-image-editor','error','retry','ck-uploadcare-form','nodeName','6300396yvtVZJ','change:status','ck-reset_all-excluded','1784438smDmmd'];_0x4f22=function(){return _0x2eec3e;};return _0x4f22();}import{View as _0x3f12dc}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x38b0cd}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1c8300}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x469fa9}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4051cb}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4e6f(_0xd3ce0,_0x1a206b){const _0x4f22c9=_0x4f22();return _0x4e6f=function(_0x4e6fca,_0x27e463){_0x4e6fca=_0x4e6fca-0x16a;let _0x535421=_0x4f22c9[_0x4e6fca];return _0x535421;},_0x4e6f(_0xd3ce0,_0x1a206b);}export class UploadcareImageEditFormView extends _0x4051cb{[_0x50e03c(0x1a1)];[_0x50e03c(0x195)];[_0x50e03c(0x170)];[_0x50e03c(0x194)];[_0x50e03c(0x187)];constructor(_0x1da076,_0x44ab8f,_0x311816){const _0x530157=_0x50e03c;super(_0x1da076),this[_0x530157(0x1a1)]=this[_0x530157(0x16e)](),this[_0x530157(0x195)]=new _0x38b0cd(_0x1da076),this[_0x530157(0x170)]=new _0x1c8300(_0x1da076),this[_0x530157(0x194)]=new _0x469fa9(_0x1da076,_0x311816),this[_0x530157(0x187)]=new _0x3f12dc(_0x1da076),this[_0x530157(0x187)][_0x530157(0x16d)](this[_0x530157(0x18a)]()),this[_0x530157(0x185)](_0x530157(0x16c),_0x44ab8f),this[_0x530157(0x16d)]({'tag':_0x530157(0x18c),'attributes':{'class':['ck',_0x530157(0x19f),_0x530157(0x19b)],'tabindex':'-1'},'children':this[_0x530157(0x1a1)]}),this[_0x530157(0x18d)](),this[_0x530157(0x17f)](_0x530157(0x196),()=>{const _0x44f54c=_0x530157;this[_0x44f54c(0x183)](this[_0x44f54c(0x175)],_0x22a6a6=>{const _0xbebf31=_0x44f54c;this[_0xbebf31(0x192)](_0x22a6a6);});}),this['on'](_0x530157(0x19e),()=>{const _0x447cb4=_0x530157;this[_0x447cb4(0x18d)]();}),this[_0x530157(0x189)]();}[_0x50e03c(0x173)](){const _0x4dd4ee=_0x50e03c;this[_0x4dd4ee(0x175)][_0x4dd4ee(0x173)]();}[_0x50e03c(0x18d)](){const _0x194ba8=_0x50e03c;switch(this[_0x194ba8(0x1a1)][_0x194ba8(0x193)](),this[_0x194ba8(0x16c)]){case _0x194ba8(0x178):this[_0x194ba8(0x1a1)][_0x194ba8(0x18e)](this[_0x194ba8(0x195)]);break;case _0x194ba8(0x199):this[_0x194ba8(0x1a1)][_0x194ba8(0x18e)](this[_0x194ba8(0x170)]);break;case _0x194ba8(0x18f):this[_0x194ba8(0x1a1)][_0x194ba8(0x16a)]([this[_0x194ba8(0x194)],this[_0x194ba8(0x187)]]);}}[_0x50e03c(0x183)](_0x548b6e,_0x5bf5cf){const _0x36ef1f=_0x50e03c,_0x32b8a0=_0x36ef1f(0x198),_0x1d9241=_0x548b6e[_0x36ef1f(0x190)](_0x32b8a0);if(_0x1d9241)return _0x5bf5cf(_0x1d9241);const _0x1e2531=new MutationObserver(_0x5b8e47=>{const _0x4425d7=_0x36ef1f,_0x13e187=_0x5b8e47[_0x4425d7(0x16f)](_0xbb12a2=>_0xbb12a2[_0x4425d7(0x16b)]===_0x548b6e&&_0xbb12a2[_0x4425d7(0x197)][_0x4425d7(0x171)]>0x0&&_0xbb12a2[_0x4425d7(0x197)][0x0][_0x4425d7(0x19c)][_0x4425d7(0x180)]()===_0x32b8a0);_0x13e187[_0x4425d7(0x171)]&&(_0x1e2531[_0x4425d7(0x177)](),_0x5bf5cf(_0x13e187[0x0][_0x4425d7(0x197)][0x0]));});_0x1e2531[_0x36ef1f(0x172)](_0x548b6e,{'childList':!0x0,'subtree':!0x0});}[_0x50e03c(0x192)](_0xcadfc0){const _0x32de87=_0x50e03c;_0xcadfc0[_0x32de87(0x17b)](_0x32de87(0x176),_0x226885=>{const _0x3a2327=_0x32de87;this[_0x3a2327(0x181)](_0x3a2327(0x176),{'imageSrc':_0x226885[_0x3a2327(0x179)][_0x3a2327(0x184)]});}),_0xcadfc0[_0x32de87(0x17b)](_0x32de87(0x188),()=>{const _0x5cdd87=_0x32de87;this[_0x5cdd87(0x181)](_0x5cdd87(0x188));});}[_0x50e03c(0x189)](){const _0x412c30=_0x50e03c;this[_0x412c30(0x170)]['on'](_0x412c30(0x19a),()=>{const _0xbee2b0=_0x412c30;this[_0xbee2b0(0x181)](_0xbee2b0(0x19a));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24324a=_0x3328;(function(_0x28c582,_0x312a30){const _0x504850=_0x3328,_0x42eb97=_0x28c582();while(!![]){try{const _0x3f6266=parseInt(_0x504850(0x122))/0x1+parseInt(_0x504850(0x126))/0x2+-parseInt(_0x504850(0x11c))/0x3*(-parseInt(_0x504850(0x123))/0x4)+-parseInt(_0x504850(0x114))/0x5+parseInt(_0x504850(0x10a))/0x6+-parseInt(_0x504850(0x116))/0x7*(-parseInt(_0x504850(0x11b))/0x8)+-parseInt(_0x504850(0x109))/0x9*(parseInt(_0x504850(0x120))/0xa);if(_0x3f6266===_0x312a30)break;else _0x42eb97['push'](_0x42eb97['shift']());}catch(_0x436684){_0x42eb97['push'](_0x42eb97['shift']());}}}(_0x4c58,0xd933b));import{Command as _0x5da5ec}from'ckeditor5/src/core.js';import{Dialog as _0x4a1d58}from'ckeditor5/src/ui.js';function _0x3328(_0x495580,_0x32957f){const _0x4c5856=_0x4c58();return _0x3328=function(_0x332862,_0xaaf04b){_0x332862=_0x332862-0x108;let _0x589331=_0x4c5856[_0x332862];return _0x589331;},_0x3328(_0x495580,_0x32957f);}import{UploadcareImageEditController as _0x2c8da4}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x27ab0b}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5da5ec{[_0x24324a(0x113)];static get[_0x24324a(0x118)](){return[_0x4a1d58];}[_0x24324a(0x11f)];constructor(_0x4e6e50){const _0x29fead=_0x24324a;super(_0x4e6e50),this[_0x29fead(0x113)]=void 0x0,this[_0x29fead(0x11f)]=_0x27ab0b(_0x4e6e50[_0x29fead(0x11a)][_0x29fead(0x11e)](_0x29fead(0x124))||[]),this[_0x29fead(0x121)]({'isActive':!0x1});}[_0x24324a(0x10e)](){const _0x5c6305=_0x24324a,_0x132fe1=this[_0x5c6305(0x127)][_0x5c6305(0x115)][_0x5c6305(0x10d)][_0x5c6305(0x108)][_0x5c6305(0x10c)]();this[_0x5c6305(0x112)]=this[_0x5c6305(0x11f)](_0x132fe1);}[_0x24324a(0x117)](){const _0xd2c05a=_0x24324a;this[_0xd2c05a(0x113)]&&(this[_0xd2c05a(0x111)](_0xd2c05a(0x125)),this[_0xd2c05a(0x113)]=void 0x0);const _0x589b1f=this[_0xd2c05a(0x127)][_0xd2c05a(0x115)][_0xd2c05a(0x10d)][_0xd2c05a(0x108)][_0xd2c05a(0x10c)]();_0x589b1f&&(_0x589b1f['is'](_0xd2c05a(0x10b),_0xd2c05a(0x110))||_0x589b1f['is'](_0xd2c05a(0x10b),_0xd2c05a(0x11d)))&&(this[_0xd2c05a(0x113)]=new _0x2c8da4(this[_0xd2c05a(0x127)],this[_0xd2c05a(0x127)][_0xd2c05a(0x119)][_0xd2c05a(0x11e)](_0x4a1d58),_0x589b1f),this[_0xd2c05a(0x10f)](_0xd2c05a(0x125))['to'](this[_0xd2c05a(0x113)],_0xd2c05a(0x125)));}}function _0x4c58(){const _0x4d65c3=['bind','imageBlock','unbind','isEnabled','imageEditController','1270355KrcmhZ','model','61607brQWWh','execute','requires','plugins','config','1296DiXgsR','3726702crHXDj','imageInline','get','_isEditable','47010930tCdzMj','set','407871HzWIeQ','4fUTzMp','uploadcare.allowExternalImagesEditing','isActive','3482882KNXAGW','editor','selection','9CXcBzl','6165090ndrdov','element','getSelectedElement','document','refresh'];_0x4c58=function(){return _0x4d65c3;};return _0x4c58();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fa11c=_0x2e29;(function(_0x5b4e3b,_0x3c1cc1){const _0xf42a5f=_0x2e29,_0x20a9c8=_0x5b4e3b();while(!![]){try{const _0x1f587f=-parseInt(_0xf42a5f(0xf2))/0x1*(-parseInt(_0xf42a5f(0xf9))/0x2)+-parseInt(_0xf42a5f(0xf4))/0x3*(-parseInt(_0xf42a5f(0xfa))/0x4)+-parseInt(_0xf42a5f(0xee))/0x5+parseInt(_0xf42a5f(0x103))/0x6*(parseInt(_0xf42a5f(0xef))/0x7)+-parseInt(_0xf42a5f(0xfd))/0x8+-parseInt(_0xf42a5f(0x104))/0x9*(-parseInt(_0xf42a5f(0x101))/0xa)+-parseInt(_0xf42a5f(0xf8))/0xb*(parseInt(_0xf42a5f(0x102))/0xc);if(_0x1f587f===_0x3c1cc1)break;else _0x20a9c8['push'](_0x20a9c8['shift']());}catch(_0x3688c2){_0x20a9c8['push'](_0x20a9c8['shift']());}}}(_0xe1f6,0xbd462));import{Plugin as _0x105e00}from'ckeditor5/src/core.js';function _0x2e29(_0x53c1ed,_0x26a8f5){const _0xe1f6d2=_0xe1f6();return _0x2e29=function(_0x2e2924,_0x404883){_0x2e2924=_0x2e2924-0xee;let _0x1274b4=_0xe1f6d2[_0x2e2924];return _0x1274b4;},_0x2e29(_0x53c1ed,_0x26a8f5);}import{Notification as _0x59171a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x432093}from'./uploadcareimageeditcommand.js';function _0xe1f6(){const _0x3ed3c7=['isPremiumPlugin','1123573jtKOlM','422qdKlJu','996NodVcr','uploadcareImageReplace','ImageEditing','8710544WUOxwu','pluginName','add','init','7137060FapqnU','84sfWpHf','77646SBkXFf','9LeapKy','ImageUtils','2116290KcInMs','49ePhpJJ','UploadcareImageEditEditing','requires','6451VvVVyL','uploadcareImageEdit','10083grgGOY','isOfficialPlugin','commands'];_0xe1f6=function(){return _0x3ed3c7;};return _0xe1f6();}import{UploadcareImageReplaceCommand as _0x46042b}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x28b024}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x105e00{static get[_0x2fa11c(0xfe)](){const _0x376a59=_0x2fa11c;return _0x376a59(0xf0);}static get[_0x2fa11c(0xf1)](){const _0x182f57=_0x2fa11c;return[_0x28b024,_0x59171a,_0x182f57(0x105),_0x182f57(0xfc)];}static get[_0x2fa11c(0xf5)](){return!0x0;}static get[_0x2fa11c(0xf7)](){return!0x0;}[_0x2fa11c(0x100)](){const _0x4089bb=_0x2fa11c,{editor:_0x5525c3}=this;_0x5525c3[_0x4089bb(0xf6)][_0x4089bb(0xff)](_0x4089bb(0xf3),new _0x432093(_0x5525c3)),_0x5525c3[_0x4089bb(0xf6)][_0x4089bb(0xff)](_0x4089bb(0xfb),new _0x46042b(_0x5525c3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5b23e2}from'ckeditor5/src/core.js';import{ButtonView as _0x7d62e3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2db2f3}from'ckeditor5/src/icons.js';import{createElement as _0x20f2a0}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 _0x5b23e2{['_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 _0x3980d2=this['editor'];_0x3980d2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x598241=>{const _0x4a1f00=_0x3980d2['commands']['get']('uploadcareImageEdit'),_0x18f9d=new _0x7d62e3(_0x598241),t=_0x598241['t'];return _0x18f9d['set']({'icon':_0x2db2f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x18f9d['bind']('isEnabled')['to'](_0x4a1f00),_0x18f9d['bind']('isOn')['to'](_0x4a1f00,'isActive'),this['listenTo'](_0x18f9d,'execute',()=>{_0x3980d2['execute']('uploadcareImageEdit'),_0x3980d2['editing']['view']['focus']();}),_0x18f9d;}),this['_initConfig']();}['_initConfig'](){const _0x144268=_0x20f2a0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x144268),this['listenTo'](this['editor'],'destroy',()=>{_0x144268['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x386f(){const _0x3443b4=['2179385jYXpml','3550zUTEcR','11751439vjoQkn','imageInline','33jCmFIe','isEnabled','587112YqsAFa','execute','imageBlock','element','sizes','934Mdjxyg','81tuegLi','document','srcset','getSelectedElement','2028714UFdVOO','3325136lvoFSF','editor','change','model','removeAttribute','setAttributes','refresh','1307110GElPhd','selection'];_0x386f=function(){return _0x3443b4;};return _0x386f();}const _0x2d6527=_0x561f;(function(_0x3ba14d,_0x58ed90){const _0x38ebe1=_0x561f,_0x5477c9=_0x3ba14d();while(!![]){try{const _0x159dd4=parseInt(_0x38ebe1(0x120))/0x1*(parseInt(_0x38ebe1(0x130))/0x2)+parseInt(_0x38ebe1(0x119))/0x3*(-parseInt(_0x38ebe1(0x11b))/0x4)+-parseInt(_0x38ebe1(0x12f))/0x5+parseInt(_0x38ebe1(0x125))/0x6+parseInt(_0x38ebe1(0x117))/0x7+parseInt(_0x38ebe1(0x126))/0x8+parseInt(_0x38ebe1(0x121))/0x9*(-parseInt(_0x38ebe1(0x12d))/0xa);if(_0x159dd4===_0x58ed90)break;else _0x5477c9['push'](_0x5477c9['shift']());}catch(_0x43a39c){_0x5477c9['push'](_0x5477c9['shift']());}}}(_0x386f,0xd2d42));import{Command as _0x36960e}from'ckeditor5/src/core.js';function _0x561f(_0x33d5bc,_0x534f12){const _0x386f7c=_0x386f();return _0x561f=function(_0x561f85,_0x4eda7d){_0x561f85=_0x561f85-0x117;let _0x51253=_0x386f7c[_0x561f85];return _0x51253;},_0x561f(_0x33d5bc,_0x534f12);}export class UploadcareImageReplaceCommand extends _0x36960e{[_0x2d6527(0x12c)](){const _0x3b6839=_0x2d6527,_0x3c340f=this[_0x3b6839(0x127)][_0x3b6839(0x129)][_0x3b6839(0x122)][_0x3b6839(0x12e)][_0x3b6839(0x124)]();this[_0x3b6839(0x11a)]=Boolean(_0x3c340f&&(_0x3c340f['is'](_0x3b6839(0x11e),_0x3b6839(0x11d))||_0x3c340f['is'](_0x3b6839(0x11e),_0x3b6839(0x118))));}[_0x2d6527(0x11c)](_0x39fbfe){const _0xe39d8d=_0x2d6527,_0x3852fb=this[_0xe39d8d(0x127)][_0xe39d8d(0x129)][_0xe39d8d(0x122)][_0xe39d8d(0x12e)][_0xe39d8d(0x124)]();this[_0xe39d8d(0x127)][_0xe39d8d(0x129)][_0xe39d8d(0x128)](_0x539247=>{const _0x1006cc=_0xe39d8d;_0x539247[_0x1006cc(0x12b)](_0x39fbfe,_0x3852fb),_0x539247[_0x1006cc(0x12a)](_0x1006cc(0x123),_0x3852fb),_0x539247[_0x1006cc(0x12a)](_0x1006cc(0x11f),_0x3852fb);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x353c(){var _0xe1c3c7=['18428jcpNSD','4870NIpgor','738050lvHZxL','1098dNnZbo','requires','2559935ZGwkLd','1828OnBllU','UploadcareImageEdit','171OcXVie','8FYhPWg','isPremiumPlugin','6822948jMsnog','pluginName','42259243eLfOVp','isOfficialPlugin','4374OfnSOF','12ArbQGX','85XZBqMD'];_0x353c=function(){return _0xe1c3c7;};return _0x353c();}function _0xd321(_0x176807,_0x4b8608){var _0x353c0b=_0x353c();return _0xd321=function(_0xd321d5,_0x528fe5){_0xd321d5=_0xd321d5-0x1e5;var _0xd8a1c2=_0x353c0b[_0xd321d5];return _0xd8a1c2;},_0xd321(_0x176807,_0x4b8608);}var _0x329144=_0xd321;(function(_0x2cd86d,_0x5daf69){var _0x2392a0=_0xd321,_0x3aa864=_0x2cd86d();while(!![]){try{var _0x51104a=parseInt(_0x2392a0(0x1eb))/0x1*(parseInt(_0x2392a0(0x1ec))/0x2)+-parseInt(_0x2392a0(0x1ef))/0x3*(-parseInt(_0x2392a0(0x1f2))/0x4)+parseInt(_0x2392a0(0x1ed))/0x5*(parseInt(_0x2392a0(0x1e9))/0x6)+parseInt(_0x2392a0(0x1f1))/0x7*(parseInt(_0x2392a0(0x1f5))/0x8)+-parseInt(_0x2392a0(0x1f4))/0x9*(-parseInt(_0x2392a0(0x1ee))/0xa)+parseInt(_0x2392a0(0x1e5))/0xb+-parseInt(_0x2392a0(0x1ea))/0xc*(parseInt(_0x2392a0(0x1e7))/0xd);if(_0x51104a===_0x5daf69)break;else _0x3aa864['push'](_0x3aa864['shift']());}catch(_0x220c75){_0x3aa864['push'](_0x3aa864['shift']());}}}(_0x353c,0xc2d67));import{Plugin as _0x58ecf1}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x861e18}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x35c562}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x58ecf1{static get[_0x329144(0x1e6)](){var _0x40788a=_0x329144;return _0x40788a(0x1f3);}static get[_0x329144(0x1f0)](){return[_0x861e18,_0x35c562];}static get[_0x329144(0x1e8)](){return!0x0;}static get[_0x329144(0x1f6)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ab763=_0x58d6;function _0x4cd0(){const _0x3ad154=['has','ImageInsertUI','label','push','OneDrive','GPhotos','_normalizeConfigSourceList','8nvnUUW','config','editor','uploadcare.uploader.sourceList','reduce','init','_getIntegrationKey','_createDropdownButtons','map','uploadcareLicenseKeyNotAllowed','shortText','evaluationLimit','Facebook','_createMenuBarButtons','isImageSelected','withText','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyEvaluationLimit','licenseKey','assetManager','uploadcareLicenseKeyDomainLimit','Replace','_createToolbarButton','114128Jnicss','16925OvPseq','_showLicenseError','entries','204CDHAhv','2970541mYjwqS','destroy','commands','isPremiumPlugin','uploadcareLicenseKeyUsageLimit','type','uploadcare','6ISrAVW','17163eCBWPm','invalid','afterInit','upload','plugins','locale','expired','Uploadcare','_licenseKeyCheckInterval','GDrive','bind','get','Local','132rClrAN','domainLimit','uploadcareLicenseKeyExpired','564414qZLFrA','tooltip','_createButton','icon','uploadcareLicenseKeyTrialLimit','1019799HHJQIg','forEach','uploadcareLicenseKeyValid','Dropbox','pluginName','URL','text','usageLimit','url','150iJqnTY','40MnyLZO','543068NKoEDQ','registerIntegration','execute','5629RUZaqP','isOfficialPlugin','featureNotAllowed','trialLimit','Insert','isEnabled','UploadcareUI'];_0x4cd0=function(){return _0x3ad154;};return _0x4cd0();}(function(_0x271ad1,_0x39665e){const _0x2626bc=_0x58d6,_0x566cc7=_0x271ad1();while(!![]){try{const _0x119bf8=-parseInt(_0x2626bc(0x17e))/0x1*(parseInt(_0x2626bc(0x142))/0x2)+-parseInt(_0x2626bc(0x189))/0x3*(parseInt(_0x2626bc(0x155))/0x4)+parseInt(_0x2626bc(0x154))/0x5*(parseInt(_0x2626bc(0x145))/0x6)+-parseInt(_0x2626bc(0x182))/0x7*(parseInt(_0x2626bc(0x166))/0x8)+-parseInt(_0x2626bc(0x18a))/0x9*(parseInt(_0x2626bc(0x153))/0xa)+parseInt(_0x2626bc(0x14a))/0xb*(-parseInt(_0x2626bc(0x181))/0xc)+-parseInt(_0x2626bc(0x158))/0xd*(-parseInt(_0x2626bc(0x17d))/0xe);if(_0x119bf8===_0x39665e)break;else _0x566cc7['push'](_0x566cc7['shift']());}catch(_0x39fe9e){_0x566cc7['push'](_0x566cc7['shift']());}}}(_0x4cd0,0xd31fb));import{Plugin as _0x4163f4}from'ckeditor5/src/core.js';import{IconDropbox as _0xf3d82b,IconFacebook as _0x62677e,IconGoogleDrive as _0xa4f369,IconGooglePhotos as _0x75c592,IconUploadcareImageUpload as _0x189410,IconUploadcareLink as _0xcccead,IconOneDrive as _0x717ce2}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d9e95,MenuBarMenuListItemButtonView as _0x66efd6}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x330151}from'./uploadcareconfig.js';import{getTranslation as _0x47ea94}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x58d6(_0x39a325,_0xee4d26){const _0x4cd068=_0x4cd0();return _0x58d6=function(_0x58d614,_0x1fc923){_0x58d614=_0x58d614-0x140;let _0x5269ac=_0x4cd068[_0x58d614];return _0x5269ac;},_0x58d6(_0x39a325,_0xee4d26);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x4163f4{[_0x4ab763(0x178)];[_0x4ab763(0x192)];static get[_0x4ab763(0x14e)](){const _0x4f483d=_0x4ab763;return _0x4f483d(0x15e);}static get[_0x4ab763(0x159)](){return!0x0;}static get[_0x4ab763(0x185)](){return!0x0;}[_0x4ab763(0x16b)](){const _0x226c73=_0x4ab763;this[_0x226c73(0x178)]=this[_0x226c73(0x168)][_0x226c73(0x167)][_0x226c73(0x140)](_0x226c73(0x178));const _0x20ec28=this[_0x226c73(0x168)];this[_0x226c73(0x192)]=setInterval(()=>{const _0x456a15=_0x226c73;let _0x2b3e84;for(const _0x299632 in _0x20ec28){const _0x5d1c73=_0x299632,_0x57c45e=_0x20ec28[_0x5d1c73];if(_0x456a15(0x14c)==_0x57c45e||_0x456a15(0x176)==_0x57c45e||_0x456a15(0x144)==_0x57c45e||_0x456a15(0x17a)==_0x57c45e||_0x456a15(0x16f)==_0x57c45e||_0x456a15(0x177)==_0x57c45e||_0x456a15(0x149)==_0x57c45e||_0x456a15(0x186)==_0x57c45e){delete _0x20ec28[_0x5d1c73],_0x2b3e84=_0x57c45e,clearInterval(this[_0x456a15(0x192)]),this[_0x456a15(0x192)]=void 0x0;break;}}_0x456a15(0x176)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x18b)),_0x456a15(0x144)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x190)),_0x456a15(0x17a)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x143)),_0x456a15(0x16f)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x15a),_0x456a15(0x191)),_0x456a15(0x177)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x171)),_0x456a15(0x149)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x15b)),_0x456a15(0x186)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x151));},0x3e8);}[_0x4ab763(0x18c)](){const _0x360cb=_0x4ab763,{editor:_0x534e4e}=this,_0x40393b=_0x534e4e[_0x360cb(0x184)][_0x360cb(0x140)](_0x360cb(0x188));if(!_0x40393b)return;const _0x1db59d=this[_0x360cb(0x165)](_0x534e4e[_0x360cb(0x167)][_0x360cb(0x140)](_0x360cb(0x169)))[_0x360cb(0x16a)]((_0x38ec97,_0x889bc1)=>{const _0x43a33d=_0x360cb,_0x900420=this[_0x43a33d(0x16c)](_0x889bc1[_0x43a33d(0x187)]);return _0x38ec97[_0x900420]||(_0x38ec97[_0x900420]=[]),_0x38ec97[_0x900420][_0x43a33d(0x162)](_0x889bc1),_0x38ec97;},{});_0x534e4e[_0x360cb(0x18e)][_0x360cb(0x15f)](_0x360cb(0x160))&&_0x534e4e[_0x360cb(0x184)][_0x360cb(0x140)](_0x360cb(0x188))&&Object[_0x360cb(0x180)](_0x1db59d)[_0x360cb(0x14b)](([_0x309f79,_0x165253])=>{const _0x4014b6=_0x360cb;_0x534e4e[_0x4014b6(0x18e)][_0x4014b6(0x140)](_0x4014b6(0x160))[_0x4014b6(0x156)]({'name':_0x309f79,'observable':()=>_0x40393b,'buttonViewCreator':()=>this[_0x4014b6(0x17c)](_0x165253),'formViewCreator':()=>this[_0x4014b6(0x16d)](_0x165253),'menuBarButtonViewCreator':()=>this[_0x4014b6(0x173)](_0x165253),'override':_0x4014b6(0x179)!==_0x309f79});});}[_0x4ab763(0x183)](){const _0x1b298c=_0x4ab763;super[_0x1b298c(0x183)](),this[_0x1b298c(0x192)]&&clearInterval(this[_0x1b298c(0x192)]);}[_0x4ab763(0x165)](_0xd35740){const _0x1546c8=_0x4ab763,{locale:_0x350ac9}=this[_0x1546c8(0x168)];return _0xd35740[_0x1546c8(0x16e)](_0x5a0550=>{const _0x552baa=_0x1546c8,_0x3ad934=_0x47ea94(_0x350ac9,_0x5a0550,_0x552baa(0x15c));switch(_0x5a0550){case _0x330151[_0x552baa(0x141)]:return{'icon':_0x189410,'type':_0x330151[_0x552baa(0x141)],..._0x3ad934};case _0x330151[_0x552baa(0x14f)]:return{'icon':_0xcccead,'type':_0x330151[_0x552baa(0x14f)],..._0x3ad934};case _0x330151[_0x552baa(0x14d)]:return{'icon':_0xf3d82b,'type':_0x330151[_0x552baa(0x14d)],..._0x3ad934};case _0x330151[_0x552baa(0x172)]:return{'icon':_0x62677e,'type':_0x330151[_0x552baa(0x172)],..._0x3ad934};case _0x330151[_0x552baa(0x193)]:return{'icon':_0xa4f369,'type':_0x330151[_0x552baa(0x193)],..._0x3ad934};case _0x330151[_0x552baa(0x164)]:return{'icon':_0x75c592,'type':_0x330151[_0x552baa(0x164)],..._0x3ad934};case _0x330151[_0x552baa(0x163)]:return{'icon':_0x717ce2,'type':_0x330151[_0x552baa(0x163)],..._0x3ad934};}});}[_0x4ab763(0x16c)](_0x4c5827){const _0x7d23f3=_0x4ab763;switch(_0x4c5827){case _0x330151[_0x7d23f3(0x141)]:return _0x7d23f3(0x18d);case _0x330151[_0x7d23f3(0x14f)]:return _0x7d23f3(0x152);default:return _0x7d23f3(0x179);}}[_0x4ab763(0x147)](_0x31aebb,_0x1a7286){const _0x2e3738=_0x4ab763,_0x4bede1=this[_0x2e3738(0x168)],_0x3ee78c=new _0x31aebb(_0x4bede1[_0x2e3738(0x18f)]),_0x21283f=_0x4bede1[_0x2e3738(0x184)][_0x2e3738(0x140)](_0x2e3738(0x188));return _0x3ee78c[_0x2e3738(0x194)](_0x2e3738(0x15d))['to'](_0x21283f),_0x3ee78c['on'](_0x2e3738(0x157),()=>{const _0x405a6e=_0x2e3738;_0x21283f[_0x405a6e(0x157)](_0x1a7286);}),_0x3ee78c;}[_0x4ab763(0x17c)](_0x4d2f07){const _0x422c47=_0x4ab763,{locale:_0xc3a8e4}=this[_0x422c47(0x168)],_0x29383a=this[_0x422c47(0x168)][_0x422c47(0x18e)][_0x422c47(0x140)](_0x422c47(0x160)),_0x2586bc=_0x4d2f07[0x0],_0xd44f91=this[_0x422c47(0x147)](_0x5d9e95,_0x2586bc[_0x422c47(0x187)]);return _0xd44f91[_0x422c47(0x148)]=_0x2586bc[_0x422c47(0x148)],_0xd44f91[_0x422c47(0x194)](_0x422c47(0x161))['to'](_0x29383a,_0x422c47(0x174),_0x527faa=>_0x47ea94(_0xc3a8e4,_0x2586bc[_0x422c47(0x187)],_0x527faa?_0x422c47(0x17b):_0x422c47(0x15c))[_0x422c47(0x150)]),_0xd44f91[_0x422c47(0x146)]=!0x0,_0xd44f91;}[_0x4ab763(0x16d)](_0x5efce3){const _0x147cf4=_0x4ab763,{locale:_0x23c4d5}=this[_0x147cf4(0x168)],_0xd9e35e=this[_0x147cf4(0x168)][_0x147cf4(0x18e)][_0x147cf4(0x140)](_0x147cf4(0x160));return _0x5efce3[_0x147cf4(0x16e)](_0x432ddc=>{const _0x6e3860=_0x147cf4,_0x6f098d=this[_0x6e3860(0x147)](_0x5d9e95,_0x432ddc[_0x6e3860(0x187)]);return _0x6f098d[_0x6e3860(0x175)]=!0x0,_0x6f098d[_0x6e3860(0x148)]=_0x432ddc[_0x6e3860(0x148)],_0x6f098d[_0x6e3860(0x194)](_0x6e3860(0x161))['to'](_0xd9e35e,_0x6e3860(0x174),_0x5d2ee9=>_0x47ea94(_0x23c4d5,_0x432ddc[_0x6e3860(0x187)],_0x5d2ee9?_0x6e3860(0x17b):_0x6e3860(0x15c))[_0x6e3860(0x150)]),_0x6f098d;});}[_0x4ab763(0x173)](_0x45c44a){const _0x11e92c=_0x4ab763;return _0x45c44a[_0x11e92c(0x16e)](_0x2a6468=>{const _0xb4e0dc=_0x11e92c,_0x55bee3=this[_0xb4e0dc(0x147)](_0x66efd6,_0x2a6468[_0xb4e0dc(0x187)]);return _0x55bee3[_0xb4e0dc(0x148)]=_0x2a6468[_0xb4e0dc(0x148)],_0x55bee3[_0xb4e0dc(0x161)]=_0x2a6468[_0xb4e0dc(0x170)],_0x55bee3;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4551f3}from'ckeditor5/src/core.js';import{FileRepository as _0x4b40d9}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2b0f42}from'./uploadcareediting.js';import{UploadUtils as _0x58544a}from'./utils/uploadutils.js';import{getImageUrls as _0x189785}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4551f3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4b40d9,_0x2b0f42];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x306b0f=this['editor'];if(!!!_0x306b0f['config']['get']('uploadcare'))return;_0x306b0f['plugins']['get'](_0x4b40d9)['createUploadAdapter']=_0x2f0af1=>new k(_0x2f0af1,_0x306b0f),_0x306b0f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4636a4,{imageElement:_0xf44a97,data:_0x4ae9db})=>{_0x306b0f['model']['change'](_0x204c60=>{_0x204c60['setAttribute']('uploadcareImageId',_0x4ae9db['uploadcareImageId'],_0xf44a97);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x34aa69,_0x3f5aa6){this['loader']=_0x34aa69,this['editor']=_0x3f5aa6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3378f3=await this['loader']['file'];return _0x58544a['upload']({'file':_0x3378f3,'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':_0x150975=>{_0x150975&&_0x150975['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x150975['value']);}})['then'](async _0x4282a2=>{const {imageFallbackUrl:_0x11aca5,imageSources:_0x1d3994}=_0x189785(_0x4282a2['cdnUrl'],_0x4282a2['imageInfo']['width']);return{'uploadcareImageId':_0x4282a2['uuid'],'default':_0x11aca5,'sources':_0x1d3994};})['catch'](()=>{const _0xf73fc0=t('Cannot\x20upload\x20file:')+('\x20'+_0x3378f3['name']+'.');return Promise['reject'](_0xf73fc0);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x2f25d7}from'../uploadcareconfig.js';export function getTranslation(_0x189d50,_0x2b438e,_0x45202f){const t=_0x189d50['t'],_0x2e9aa6=_0x189d50['t'];switch(_0x2b438e){case _0x2f25d7['Local']:return{'text':_0x2e9aa6('Insert'===_0x45202f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2e9aa6('From\x20computer')};case _0x2f25d7['URL']:return{'text':'Insert'===_0x45202f?_0x2e9aa6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2e9aa6('Via\x20URL')};case _0x2f25d7['Dropbox']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2f25d7['Facebook']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2f25d7['GDrive']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2f25d7['GPhotos']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2f25d7['OneDrive']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2b438e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3105(_0x1d94dd,_0x19af37){var _0x4d2911=_0x4d29();return _0x3105=function(_0x31055a,_0x301070){_0x31055a=_0x31055a-0x1cc;var _0x936c57=_0x4d2911[_0x31055a];return _0x936c57;},_0x3105(_0x1d94dd,_0x19af37);}var _0x4991bb=_0x3105;(function(_0x51f364,_0x580c14){var _0x3db063=_0x3105,_0x3b8926=_0x51f364();while(!![]){try{var _0x15577d=-parseInt(_0x3db063(0x1cf))/0x1+-parseInt(_0x3db063(0x1d4))/0x2+parseInt(_0x3db063(0x1d8))/0x3+-parseInt(_0x3db063(0x1d6))/0x4*(-parseInt(_0x3db063(0x1d0))/0x5)+-parseInt(_0x3db063(0x1ce))/0x6+-parseInt(_0x3db063(0x1db))/0x7+parseInt(_0x3db063(0x1d2))/0x8;if(_0x15577d===_0x580c14)break;else _0x3b8926['push'](_0x3b8926['shift']());}catch(_0x4c9124){_0x3b8926['push'](_0x3b8926['shift']());}}}(_0x4d29,0x5573f));function _0x4d29(){var _0x2e6458=['true','1267128QnKHsu','68205rSeRvz','575mOquvq','focusCycler','12102576UGkHdM','div','1315986zpQFTG','createCollection','4040vJUzJi','focusTracker','430260nyTcUI','bindTemplate','fire','3394937JPqkpt','forwardCycle','getFocusableElement'];_0x4d29=function(){return _0x2e6458;};return _0x4d29();}import{FocusTracker as _0x13e072}from'ckeditor5/src/utils.js';import{View as _0x4f4afd,FocusCycler as _0x106884}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4f4afd{[_0x4991bb(0x1d7)];[_0x4991bb(0x1d1)];constructor(_0x12edcc){var _0x3294f1=_0x4991bb;super(_0x12edcc),this[_0x3294f1(0x1d7)]=new _0x13e072(),this[_0x3294f1(0x1d1)]=new _0x106884({'focusables':this[_0x3294f1(0x1d5)](),'focusTracker':this[_0x3294f1(0x1d7)]});}[_0x4991bb(0x1cc)](){var _0x36807a=_0x4991bb;return{'tag':_0x36807a(0x1d3),'attributes':{'aria-hidden':_0x36807a(0x1cd),'tabindex':'0'},'on':{'focus':this[_0x36807a(0x1d9)]['to'](()=>{var _0x215ae3=_0x36807a;this[_0x215ae3(0x1d1)][_0x215ae3(0x1da)](_0x215ae3(0x1dc));})}};}}
|