@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250304.0 → 0.0.0-nightly-20250305.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +6 -2
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +4 -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/theme/icons/dropbox.svg +11 -0
- package/theme/icons/error.svg +1 -0
- package/theme/icons/facebook.svg +11 -0
- package/theme/icons/google-drive.svg +11 -0
- package/theme/icons/google-photos.svg +11 -0
- package/theme/icons/image-upload.svg +11 -0
- package/theme/icons/link.svg +11 -0
- package/theme/icons/local.svg +11 -0
- package/theme/icons/onedrive.svg +11 -0
- package/theme/icons/uploadcare-image-edit.svg +11 -0
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4294f4=_0x96de;(function(_0x4a8428,_0x452791){const _0x21ab57=_0x96de,_0x54f026=_0x4a8428();while(!![]){try{const _0x439dd9=-parseInt(_0x21ab57(0xd3))/0x1*(parseInt(_0x21ab57(0xc4))/0x2)+-parseInt(_0x21ab57(0xc1))/0x3*(parseInt(_0x21ab57(0x109))/0x4)+parseInt(_0x21ab57(0xe6))/0x5*(-parseInt(_0x21ab57(0xee))/0x6)+parseInt(_0x21ab57(0xc2))/0x7*(parseInt(_0x21ab57(0xfa))/0x8)+-parseInt(_0x21ab57(0xf5))/0x9+parseInt(_0x21ab57(0xdb))/0xa*(-parseInt(_0x21ab57(0xc8))/0xb)+parseInt(_0x21ab57(0xd4))/0xc;if(_0x439dd9===_0x452791)break;else _0x54f026['push'](_0x54f026['shift']());}catch(_0x581393){_0x54f026['push'](_0x54f026['shift']());}}}(_0xc02a,0x6ff67));import{Plugin as _0x402edc}from'ckeditor5/src/core.js';import{Dialog as _0x30c3f9}from'ckeditor5/src/ui.js';import{createElement as _0x290561,global as _0x4ee43e,uid as _0x2cc79a}from'ckeditor5/src/utils.js';import _0x2e666e from'./uploadcarecommand.js';import _0x10e80a from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x506343}from'./utils/editingutils.js';export default class i extends _0x402edc{[_0x4294f4(0xd2)]=null;[_0x4294f4(0xda)]=null;static get[_0x4294f4(0xfc)](){const _0x34d471=_0x4294f4;return _0x34d471(0xe3);}static get[_0x4294f4(0xf0)](){const _0x171e77=_0x4294f4;return[_0x171e77(0xdd),_0x10e80a,_0x30c3f9];}static get[_0x4294f4(0x113)](){return!0x0;}static get[_0x4294f4(0x108)](){return!0x0;}get[_0x4294f4(0xf9)](){const _0x3be5bb=_0x4294f4;return this[_0x3be5bb(0xd2)];}get[_0x4294f4(0xd7)](){const _0x33d091=_0x4294f4;return this[_0x33d091(0xda)];}[_0x4294f4(0xc5)](){const _0x4b1fdf=_0x4294f4,_0x564bc8=this[_0x4b1fdf(0xfe)];_0x564bc8[_0x4b1fdf(0xc0)][_0x4b1fdf(0xe4)](_0x4b1fdf(0x102),new _0x2e666e(_0x564bc8));}[_0x4294f4(0x10e)](){const _0x42ad21=_0x4294f4;this[_0x42ad21(0xce)](),this[_0x42ad21(0xef)](),this[_0x42ad21(0x103)](),this[_0x42ad21(0xf6)](),this[_0x42ad21(0x111)](),this[_0x42ad21(0xe8)](this[_0x42ad21(0xfe)],_0x42ad21(0xcc),()=>{const _0x3ac866=_0x42ad21;this[_0x3ac866(0xd2)]&&(this[_0x3ac866(0xd2)][_0x3ac866(0x10b)](),this[_0x3ac866(0xd2)]=null),this[_0x3ac866(0xda)]&&(this[_0x3ac866(0xda)][_0x3ac866(0x10b)](),this[_0x3ac866(0xda)]=null);const _0x1f1163=_0x4ee43e[_0x3ac866(0x104)][_0x3ac866(0x10a)](_0x3ac866(0xc9));_0x1f1163&&_0x1f1163[_0x3ac866(0x10b)]();}),async function(_0x368ec6){const _0x53b9b4=_0x150416([0x6d,0x6b,0x52,0x4e,0x69,0x51,0x4b,0x70,0x73,0x6f,0x57,0x74,0x54,0x64,0x6a,0x66,0x79,0x4c,0x58,0x59,0x6c,0x67,0x35,0x44,0x36,0x68,0x63,0x37,0x6e,0x39,0x72,0x77,0x78,0x50,0x48,0x32,0x38,0x76,0x45,0x43,0x46,0x71,0x56,0x47,0x62,0x33,0x61,0x30,0x53,0x65,0x55,0x7a,0x4d,0x42,0x75,0x4f,0x5a,0x49,0x4a,0x41,0x34,0x31]),_0x171857=0x62d3fbc8,_0x5f330b=0x62d49ae0^_0x171857,_0x9b8539=window[_0x150416([0x44,0x61,0x74,0x65])][_0x150416([0x6e,0x6f,0x77])](),_0x26642d=_0x368ec6[_0x150416([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53c10b=new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaeeb45=>{_0x26642d[_0x150416([0x6f,0x6e,0x63,0x65])](_0x150416([0x72,0x65,0x61,0x64,0x79]),_0xaeeb45);}),_0x2a8868={[_0x150416([0x6b,0x74,0x79])]:_0x150416([0x45,0x43]),[_0x150416([0x75,0x73,0x65])]:_0x150416([0x73,0x69,0x67]),[_0x150416([0x63,0x72,0x76])]:_0x150416([0x50,0x2d,0x32,0x35,0x36]),[_0x150416([0x78])]:_0x150416([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]),[_0x150416([0x79])]:_0x150416([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]),[_0x150416([0x61,0x6c,0x67])]:_0x150416([0x45,0x53,0x32,0x35,0x36])},_0x48efa8=_0x26642d[_0x150416([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x150416([0x67,0x65,0x74])](_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40a1fd(){let _0x4b58d3,_0x3b02a3=null,_0x5b8b47=null;try{if(_0x48efa8==_0x150416([0x47,0x50,0x4c]))return _0x150416([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b58d3=_0x2c39ed(),!_0x4b58d3)return _0x150416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b58d3[_0x150416([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b8b47=_0x3650cb(_0x4b58d3[_0x150416([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b58d3[_0x150416([0x6a,0x74,0x69])])),await _0x31ef27()?_0x5bed5b()?_0x2ca7eb()?_0x150416([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52b668()?(_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x150416([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b02a3=_0x35ab70(_0x150416([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x150416([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b02a3=_0x35ab70(_0x150416([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9a91a1()):_0x150416([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x150416([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x150416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24dc83){return _0x150416([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ca7eb(){const _0x3f13dc=[_0x150416([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x150416([0x74,0x72,0x69,0x61,0x6c])][_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9b8539/0x3e8:0xe10*_0x5f330b;return _0x4b58d3[_0x150416([0x65,0x78,0x70])]<_0x3f13dc;}function _0x5bed5b(){const _0x51ede2=_0x4b58d3[_0x150416([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51ede2&&(!!_0x51ede2[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150416([0x2a]))||!!_0x51ede2[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150416([0x55,0x50,0x4c,0x43])));}function _0x52b668(){const _0x4794e7=_0x96de,_0x257d51=_0x4b58d3[_0x150416([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x257d51||0x0==_0x257d51[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cb383}=new URL(window[_0x150416([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4794e7(0xcd)]);if(_0x257d51[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb383))return!0x0;const _0x335d51=_0x1cb383[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e]));return _0x257d51[_0x150416([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x284f76=>_0x284f76[_0x150416([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150416([0x2a])))[_0x150416([0x6d,0x61,0x70])](_0x49b655=>_0x49b655[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e])))[_0x150416([0x73,0x6f,0x6d,0x65])](_0x479b0b=>_0x335d51[_0x150416([0x65,0x76,0x65,0x72,0x79])]((_0x3e83aa,_0x33387b)=>_0x479b0b[_0x33387b]===_0x3e83aa||_0x479b0b[_0x33387b]===_0x150416([0x2a])));}function _0x9a91a1(){return _0x3b02a3&&_0x5b8b47?new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44c19c,_0x5f1144)=>{_0x3b02a3[_0x150416([0x74,0x68,0x65,0x6e])](_0x44c19c,_0x5f1144),_0x5b8b47[_0x150416([0x74,0x68,0x65,0x6e])](_0x2e994d=>{_0x2e994d!=_0x150416([0x56,0x61,0x6c,0x69,0x64])&&_0x44c19c(_0x2e994d);},_0x5f1144);}):_0x3b02a3||_0x5b8b47||_0x150416([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3650cb(_0x584237,_0x1e3427){return new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ffd1=>{if(_0x1b1cbc())return _0x57ffd1(_0x150416([0x56,0x61,0x6c,0x69,0x64]));_0x279026(),_0x26642d[_0x150416([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x150416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x166885=!0x1;const _0x2acb09=_0x2cc79a();function _0x1008e8(_0x33dbcb){return!!_0x33dbcb&&(typeof _0x33dbcb===_0x150416([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33dbcb===_0x150416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33dbcb[_0x150416([0x74,0x68,0x65,0x6e])]===_0x150416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33dbcb[_0x150416([0x63,0x61,0x74,0x63,0x68])]===_0x150416([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b5589(_0x5aa376){_0x4a06cd(_0x5aa376)[_0x150416([0x74,0x68,0x65,0x6e])](_0x6bedbd=>{if(!_0x6bedbd||_0x6bedbd[_0x150416([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x150416([0x6f,0x6b]))return _0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x544434(_0x302671(_0x2acb09+_0x1e3427))!=_0x6bedbd[_0x150416([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x150416([0x56,0x61,0x6c,0x69,0x64]);})[_0x150416([0x74,0x68,0x65,0x6e])](_0x5a8ace=>(_0xca4fdb(),_0x5a8ace),()=>{const _0x232dd4=_0x155af7();return null==_0x232dd4?(_0xca4fdb(),_0x150416([0x56,0x61,0x6c,0x69,0x64])):_0x150416(_0x9b8539-_0x232dd4>(0x46df7fc8^_0x171857)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x150416([0x74,0x68,0x65,0x6e])](_0x57ffd1)[_0x150416([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57ffd1(_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe48eed=0x62e51548^_0x171857;function _0xca4fdb(){const _0x2186cc=_0x150416([0x6c,0x6c,0x63,0x74,0x2d])+_0x544434(_0x302671(_0x584237)),_0x40ab0f=_0x369979(_0x544434(window[_0x150416([0x4d,0x61,0x74,0x68])][_0x150416([0x63,0x65,0x69,0x6c])](_0x9b8539/_0xe48eed)));window[_0x150416([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x150416([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2186cc,_0x40ab0f);}function _0x155af7(){const _0x58e4ca=_0x150416([0x6c,0x6c,0x63,0x74,0x2d])+_0x544434(_0x302671(_0x584237)),_0x595385=window[_0x150416([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x150416([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58e4ca);return _0x595385?window[_0x150416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x369979(_0x595385),0x10)*_0xe48eed:null;}function _0x4a06cd(_0x5ae0a8){return new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d7345,_0x48eb93)=>{_0x5ae0a8[_0x150416([0x74,0x68,0x65,0x6e])](_0x5d7345,_0x48eb93),window[_0x150416([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48eb93,0x62d22f08^_0x171857);});}}_0x26642d[_0x150416([0x6f,0x6e])](_0x150416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3077d5,_0xb9449)=>{if(_0xb9449[0x0]!=_0x584237)return _0x57ffd1(_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb9449[0x1]={..._0xb9449[0x1],[_0x150416([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2acb09};},{[_0x150416([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x150416([0x68,0x69,0x67,0x68])}),_0x26642d[_0x150416([0x6f,0x6e])](_0x150416([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39ef8a=>{_0x1008e8(_0x39ef8a[_0x150416([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x166885=!0x0,_0x1b5589(_0x39ef8a[_0x150416([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x150416([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x150416([0x6c,0x6f,0x77])}),_0x53c10b[_0x150416([0x74,0x68,0x65,0x6e])](()=>{_0x166885||_0x57ffd1(_0x150416([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b1cbc(){return _0x26642d[_0x150416([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x150416([0x76,0x69,0x65,0x77])][_0x150416([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x150416([0x61,0x75,0x74,0x6f]);}function _0x279026(){_0x26642d[_0x150416([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x150416([0x76,0x69,0x65,0x77])][_0x150416([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x150416([0x61,0x75,0x74,0x6f]);}}function _0x35ab70(_0x31a35d){const _0x606aeb=[new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a3a0d=>setTimeout(_0x5a3a0d,0x62dac504^_0x171857)),_0x53c10b[_0x150416([0x74,0x68,0x65,0x6e])](()=>new window[(_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37364a=>{let _0x1a4d8f=0x0;_0x26642d[_0x150416([0x6d,0x6f,0x64,0x65,0x6c])][_0x150416([0x6f,0x6e])](_0x150416([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c40de,_0xa1a3fb)=>{_0xa1a3fb[0x0][_0x150416([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a4d8f++,_0x1a4d8f==(0x62d3fa30^_0x171857)&&(_0x37364a(),_0x1c40de[_0x150416([0x6f,0x66,0x66])]());});}))];return window[_0x150416([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x150416([0x72,0x61,0x63,0x65])](_0x606aeb)[_0x150416([0x74,0x68,0x65,0x6e])](()=>_0x31a35d);}async function _0x57f0e6(){await _0x53c10b,_0x26642d[_0x150416([0x6d,0x6f,0x64,0x65,0x6c])][_0x150416([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f0f5a,_0x26642d[_0x150416([0x6d,0x6f,0x64,0x65,0x6c])][_0x150416([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f0f5a,_0x26642d[_0x150416([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x150416([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x245571(_0x5073a9){const _0x42ca49=_0x46684a();_0x26642d[_0x42ca49]=_0x150416([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5073a9,_0x5073a9!=_0x150416([0x56,0x61,0x6c,0x69,0x64])&&_0x57f0e6();}function _0x46684a(){const _0x13cba1=window[_0x150416([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x150416([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x150416([0x6e,0x6f,0x77])]())[_0x150416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x150416([0x2e]),'');let _0x1b4dc7=_0x150416([0x6d]);for(let _0x4b8cd6=0x0;_0x4b8cd6<_0x13cba1[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b8cd6+=0x2){let _0x115ffc=window[_0x150416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13cba1[_0x150416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b8cd6,_0x4b8cd6+0x2));_0x115ffc>=_0x53b9b4[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x115ffc-=_0x53b9b4[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b4dc7+=_0x53b9b4[_0x115ffc];}return _0x1b4dc7;}function _0x2c39ed(){const _0x3713b2=_0x48efa8[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e]));if(0x3!=_0x3713b2[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f6e97(_0x3713b2[0x1]);function _0x4f6e97(_0x3b571){const _0x268b86=_0x4a49d7(_0x3b571);return _0x268b86&&_0x493e15()?_0x268b86:null;function _0x493e15(){const _0x114d02=_0x268b86[_0x150416([0x6a,0x74,0x69])],_0x1f6a62=window[_0x150416([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114d02[_0x150416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114d02[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25825f={..._0x268b86,[_0x150416([0x6a,0x74,0x69])]:_0x114d02[_0x150416([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x114d02[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25825f[_0x150416([0x76,0x63])],_0x302671(_0x25825f)==_0x1f6a62;}}}async function _0x31ef27(){let _0x5aea0f=!0x0;try{const _0x31113b=_0x48efa8[_0x150416([0x73,0x70,0x6c,0x69,0x74])](_0x150416([0x2e])),[_0x4081b4,_0x2cfe71,_0x4f4e9d]=_0x31113b;return _0x268a36(_0x4081b4),await _0x45dbd6(_0x4081b4,_0x2cfe71,_0x4f4e9d),_0x5aea0f;}catch(_0x39d3d1){return!0x1;}function _0x268a36(_0x8111f6){const _0x5b0af8=_0x4a49d7(_0x8111f6);_0x5b0af8&&_0x5b0af8[_0x150416([0x61,0x6c,0x67])]==_0x150416([0x45,0x53,0x32,0x35,0x36])||(_0x5aea0f=!0x1);}async function _0x45dbd6(_0x6d3cc,_0x43a4c8,_0x312036){const _0x34a714=window[_0x150416([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x150416([0x66,0x72,0x6f,0x6d])](_0x62d7bc(_0x312036),_0x452f7d=>_0x452f7d[_0x150416([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x187b58=new window[(_0x150416([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x150416([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6d3cc+_0x150416([0x2e])+_0x43a4c8),_0x76fb69=window[_0x150416([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x150416([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x76fb69)return;const _0xa87a87=await _0x76fb69[_0x150416([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x150416([0x6a,0x77,0x6b]),_0x2a8868,{[_0x150416([0x6e,0x61,0x6d,0x65])]:_0x150416([0x45,0x43,0x44,0x53,0x41]),[_0x150416([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x150416([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x150416([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x76fb69[_0x150416([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x150416([0x6e,0x61,0x6d,0x65])]:_0x150416([0x45,0x43,0x44,0x53,0x41]),[_0x150416([0x68,0x61,0x73,0x68])]:{[_0x150416([0x6e,0x61,0x6d,0x65])]:_0x150416([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa87a87,_0x34a714,_0x187b58)||(_0x5aea0f=!0x1);}}function _0x4a49d7(_0x56e706){return _0x56e706[_0x150416([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x150416([0x65,0x79]))?JSON[_0x150416([0x70,0x61,0x72,0x73,0x65])](_0x62d7bc(_0x56e706)):null;}function _0x62d7bc(_0x258fbc){return window[_0x150416([0x61,0x74,0x6f,0x62])](_0x258fbc[_0x150416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x150416([0x2b]))[_0x150416([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x150416([0x2f])));}function _0x302671(_0x301628){let _0x54776d=0x1505;function _0x559e3c(_0x5cb855){for(let _0x4f318f=0x0;_0x4f318f<_0x5cb855[_0x150416([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f318f++){const _0x3b28bb=_0x5cb855[_0x150416([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f318f);_0x54776d=(_0x54776d<<0x5)+_0x54776d+_0x3b28bb,_0x54776d&=_0x54776d;}}function _0x33b5d9(_0x542fba){Array[_0x150416([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x542fba)?_0x542fba[_0x150416([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33b5d9):_0x542fba&&typeof _0x542fba==_0x150416([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x150416([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x542fba)[_0x150416([0x73,0x6f,0x72,0x74])]()[_0x150416([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58ad63,_0x21c4d6])=>{_0x559e3c(_0x58ad63),_0x33b5d9(_0x21c4d6);}):_0x559e3c(window[_0x150416([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x542fba));}return _0x33b5d9(_0x301628),_0x54776d>>>0x0;}function _0x544434(_0x5478a4){return _0x5478a4[_0x150416([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x150416([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x150416([0x30]));}function _0x369979(_0x193d7a){return _0x193d7a[_0x150416([0x73,0x70,0x6c,0x69,0x74])]('')[_0x150416([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x150416([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f0f5a(){}function _0x150416(_0xd02938){const _0x45949b=_0x96de;return _0xd02938[_0x45949b(0xf2)](_0x495e12=>String[_0x45949b(0xe9)](_0x495e12))[_0x45949b(0xe5)]('');}_0x245571(await _0x40a1fd());}(this);}[_0x4294f4(0xce)](){const _0x11938b=_0x4294f4,_0x5db1e8=this[_0x11938b(0xfe)][_0x11938b(0xd1)][_0x11938b(0xbe)];_0x5db1e8[_0x11938b(0xd8)](_0x11938b(0xe1))&&_0x5db1e8[_0x11938b(0x10d)](_0x11938b(0xe1),{'allowAttributes':[_0x11938b(0xf4)]}),_0x5db1e8[_0x11938b(0xd8)](_0x11938b(0xca))&&_0x5db1e8[_0x11938b(0x10d)](_0x11938b(0xca),{'allowAttributes':[_0x11938b(0xf4)]});}[_0x4294f4(0xef)](){const _0x452381=_0x4294f4,_0x51056a=this[_0x452381(0xfe)];_0x51056a[_0x452381(0xdc)][_0x452381(0xeb)](_0x452381(0xf8))[_0x452381(0x106)]({'model':_0x452381(0xf4),'view':_0x452381(0xc3)}),_0x51056a[_0x452381(0xdc)][_0x452381(0xeb)](_0x452381(0xcf))[_0x452381(0x10c)]({'model':{'key':_0x452381(0xf4),'value':_0x2f0538=>_0x2f0538[_0x452381(0xfd)](_0x452381(0xc3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1f97de=_0x51056a[_0x452381(0xc0)][_0x452381(0xc7)](_0x452381(0x110));_0x1f97de&&this[_0x452381(0xe8)](_0x1f97de,_0x452381(0xfb),(_0xe2a479,[_0x424bf1,_0x123e93])=>{const _0x1ddadc=_0x452381;_0x424bf1[_0x1ddadc(0xe2)](_0x1ddadc(0xf4),_0x123e93);});}[_0x4294f4(0x103)](){const _0x2e2e0d=_0x4294f4,_0x48b835=this[_0x2e2e0d(0xfe)][_0x2e2e0d(0xea)][_0x2e2e0d(0xc7)](_0x2e2e0d(0xf7))||{},_0x1c2036=this[_0x2e2e0d(0xfe)][_0x2e2e0d(0xea)][_0x2e2e0d(0xc7)](_0x2e2e0d(0xc6))||'';this[_0x2e2e0d(0xd2)]=_0x290561(_0x4ee43e[_0x2e2e0d(0x104)],_0x2e2e0d(0xe0),{..._0x48b835,'pubkey':_0x1c2036,'ctx-name':_0x2e2e0d(0xe7),'sourceList':'','imgOnly':_0x2e2e0d(0xd0),'removeCopyright':_0x2e2e0d(0xd0),'localeName':this[_0x2e2e0d(0xfe)][_0x2e2e0d(0xff)][_0x2e2e0d(0x112)],'externalSourcesEmbedCss':_0x2e2e0d(0xec)}),this[_0x2e2e0d(0xd2)][_0x2e2e0d(0x101)]=_0x50f467=>{const _0x336055=_0x2e2e0d;if(_0x336055(0xdf)==_0x50f467)return _0x336055(0xd6);},_0x4ee43e[_0x2e2e0d(0x104)][_0x2e2e0d(0x105)][_0x2e2e0d(0xbf)](this[_0x2e2e0d(0xd2)]);}[_0x4294f4(0xf6)](){const _0x4c9723=_0x4294f4;this[_0x4c9723(0xda)]=_0x290561(_0x4ee43e[_0x4c9723(0x104)],_0x4c9723(0xed),{'ctx-name':_0x4c9723(0xe7)}),_0x4ee43e[_0x4c9723(0x104)][_0x4c9723(0x105)][_0x4c9723(0xbf)](this[_0x4c9723(0xda)]);}[_0x4294f4(0x111)](){const _0x5e41a1=_0x4294f4,_0x13a79d=this[_0x5e41a1(0xfe)][_0x5e41a1(0xc0)][_0x5e41a1(0xc7)](_0x5e41a1(0x10f));_0x13a79d&&this[_0x5e41a1(0xe8)](_0x13a79d,_0x5e41a1(0xf1),()=>{const _0x429800=_0x5e41a1,_0x569a07=this[_0x429800(0xfe)][_0x429800(0xd1)][_0x429800(0x104)][_0x429800(0x100)][_0x429800(0xd9)]();_0x569a07&&_0x569a07[_0x429800(0xfd)](_0x429800(0xf4))&&this[_0x429800(0xfe)][_0x429800(0x107)][_0x429800(0xf3)][_0x429800(0xcb)](_0x429800(0xd5),()=>{const _0x52e2e9=_0x429800;_0x506343(this[_0x52e2e9(0xfe)],_0x569a07);});});const _0x38a232=this[_0x5e41a1(0xfe)][_0x5e41a1(0xc0)][_0x5e41a1(0xc7)](_0x5e41a1(0xde));_0x38a232&&this[_0x5e41a1(0xe8)](_0x38a232,_0x5e41a1(0xf1),()=>{const _0x14ed14=_0x5e41a1,_0x3bf4bf=this[_0x14ed14(0xfe)][_0x14ed14(0xd1)][_0x14ed14(0x104)][_0x14ed14(0x100)][_0x14ed14(0xd9)]();_0x3bf4bf&&_0x3bf4bf[_0x14ed14(0xfd)](_0x14ed14(0xf4))&&this[_0x14ed14(0xfe)][_0x14ed14(0x107)][_0x14ed14(0xf3)][_0x14ed14(0xcb)](_0x14ed14(0xd5),()=>{const _0x907a69=_0x14ed14;_0x506343(this[_0x907a69(0xfe)],_0x3bf4bf);});});}}function _0x96de(_0xd2cd74,_0x5bffdb){const _0xc02af9=_0xc02a();return _0x96de=function(_0x96de73,_0x3bba49){_0x96de73=_0x96de73-0xbe;let _0x47e463=_0xc02af9[_0x96de73];return _0x47e463;},_0x96de(_0xd2cd74,_0x5bffdb);}function _0xc02a(){const _0x3af8b0=['replaceImageSource','_initImageProcessingIndicator','contentLanguage','isOfficialPlugin','schema','appendChild','commands','6SUYLLj','1059716fFLrTR','data-uc-image-id','26PxaxmO','init','uploadcare.pubkey','get','11fGFMVo','input[uploadcare-file-input]','imageInline','once','destroy','href','_initSchema','upcast','true','model','_configElement','2420nYSrpj','28967592BccxBA','render','#uc-icon-arrow-down','ctxElement','isRegistered','getSelectedElement','_ctxElement','5171270KjbDKJ','conversion','PictureEditing','uploadcareImageReplace','closeMax','uc-config','imageBlock','removeAttribute','UploadcareEditing','add','join','2182345ZxqgFa','uploader','listenTo','fromCharCode','config','for','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-upload-ctx-provider','6RHsvxl','_initConversion','requires','execute','map','view','uploadcareImageId','3847365INXdWq','_initCtx','uploadcare.uploader','downcast','configElement','16gQsfZA','cleanupImage','pluginName','getAttribute','editor','locale','selection','iconHrefResolver','uploadcare','_initConfig','document','body','attributeToAttribute','editing','isPremiumPlugin','1691204RJmHZy','querySelector','remove','elementToAttribute','extend','afterInit','insertImage'];_0xc02a=function(){return _0x3af8b0;};return _0xc02a();}
|
|
23
|
+
const _0x55a53d=_0x9b0d;function _0x9b0d(_0x4ba678,_0x17288a){const _0xf1bf90=_0xf1bf();return _0x9b0d=function(_0x9b0d1a,_0x4c9649){_0x9b0d1a=_0x9b0d1a-0x134;let _0x448dc6=_0xf1bf90[_0x9b0d1a];return _0x448dc6;},_0x9b0d(_0x4ba678,_0x17288a);}(function(_0x458425,_0x1120a8){const _0x37b41a=_0x9b0d,_0x4e58f1=_0x458425();while(!![]){try{const _0x11d7df=parseInt(_0x37b41a(0x16f))/0x1+parseInt(_0x37b41a(0x16a))/0x2*(parseInt(_0x37b41a(0x174))/0x3)+-parseInt(_0x37b41a(0x169))/0x4*(-parseInt(_0x37b41a(0x15b))/0x5)+parseInt(_0x37b41a(0x156))/0x6+-parseInt(_0x37b41a(0x175))/0x7*(parseInt(_0x37b41a(0x149))/0x8)+-parseInt(_0x37b41a(0x13a))/0x9*(-parseInt(_0x37b41a(0x186))/0xa)+-parseInt(_0x37b41a(0x138))/0xb;if(_0x11d7df===_0x1120a8)break;else _0x4e58f1['push'](_0x4e58f1['shift']());}catch(_0x3d0c80){_0x4e58f1['push'](_0x4e58f1['shift']());}}}(_0xf1bf,0xf0107));import{Plugin as _0x3b1c79}from'ckeditor5/src/core.js';import{Dialog as _0x517218}from'ckeditor5/src/ui.js';import{createElement as _0x4deb1f,global as _0x4aeb5a,uid as _0x5dd7e5}from'ckeditor5/src/utils.js';function _0xf1bf(){const _0x1f2f5b=['uc-upload-ctx-provider','once','_initImageProcessingIndicator','editing','join','_initCtx','_initConfig','1566928lowQPx','conversion','body','iconHrefResolver','data-uc-image-id','fromCharCode','view','appendChild','configElement','config','extend','isPremiumPlugin','true','7833828ZqwSdd','commands','contentLanguage','_initSchema','isOfficialPlugin','1419745nsLMuY','init','removeAttribute','uploadcareImageReplace','schema','pluginName','uc-config','querySelector','isRegistered','document','input[uploadcare-file-input]','model','_ctxElement','getSelectedElement','4phoDSb','92afANCs','UploadcareEditing','locale','afterInit','\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','1783327OEGFWL','replaceImageSource','downcast','uploadcare','href','54741lZpBLn','49WluKoq','uploadcare.uploader','PictureEditing','#uc-icon-arrow-down','upcast','attributeToAttribute','_initConversion','get','uploadcareImageId','requires','getAttribute','render','closeMax','map','execute','destroy','editor','9950nyxclx','imageBlock','remove','_configElement','elementToAttribute','imageInline','uploadcare.pubkey','25635896AswsDf','ctxElement','4275pATgOR','insertImage','for','add','cleanupImage','listenTo','uploader','selection'];_0xf1bf=function(){return _0x1f2f5b;};return _0xf1bf();}import _0x284064 from'./uploadcarecommand.js';import _0x48ec12 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x379bdb}from'./utils/editingutils.js';export default class i extends _0x3b1c79{constructor(){const _0xbafcd2=_0x9b0d;super(...arguments),this[_0xbafcd2(0x134)]=null,this[_0xbafcd2(0x167)]=null;}static get[_0x55a53d(0x160)](){const _0x36c5e6=_0x55a53d;return _0x36c5e6(0x16b);}static get[_0x55a53d(0x17e)](){const _0x37513d=_0x55a53d;return[_0x37513d(0x177),_0x48ec12,_0x517218];}static get[_0x55a53d(0x15a)](){return!0x0;}static get[_0x55a53d(0x154)](){return!0x0;}get[_0x55a53d(0x151)](){const _0x4df480=_0x55a53d;return this[_0x4df480(0x134)];}get[_0x55a53d(0x139)](){const _0x482ec3=_0x55a53d;return this[_0x482ec3(0x167)];}[_0x55a53d(0x15c)](){const _0x8c0ecc=_0x55a53d,_0x420cfd=this[_0x8c0ecc(0x185)];_0x420cfd[_0x8c0ecc(0x157)][_0x8c0ecc(0x13d)](_0x8c0ecc(0x172),new _0x284064(_0x420cfd));}[_0x55a53d(0x16d)](){const _0x114eb2=_0x55a53d;this[_0x114eb2(0x159)](),this[_0x114eb2(0x17b)](),this[_0x114eb2(0x148)](),this[_0x114eb2(0x147)](),this[_0x114eb2(0x144)](),this[_0x114eb2(0x13f)](this[_0x114eb2(0x185)],_0x114eb2(0x184),()=>{const _0x38a7f4=_0x114eb2;this[_0x38a7f4(0x134)]&&(this[_0x38a7f4(0x134)][_0x38a7f4(0x188)](),this[_0x38a7f4(0x134)]=null),this[_0x38a7f4(0x167)]&&(this[_0x38a7f4(0x167)][_0x38a7f4(0x188)](),this[_0x38a7f4(0x167)]=null);const _0x17231b=_0x4aeb5a[_0x38a7f4(0x164)][_0x38a7f4(0x162)](_0x38a7f4(0x165));_0x17231b&&_0x17231b[_0x38a7f4(0x188)]();}),async function(_0xbcfc48){const _0x4bd5fc=_0x2da59c([0x47,0x59,0x38,0x32,0x58,0x66,0x37,0x75,0x78,0x64,0x4b,0x5a,0x69,0x70,0x43,0x30,0x77,0x41,0x49,0x57,0x67,0x74,0x39,0x44,0x7a,0x68,0x36,0x45,0x4e,0x53,0x6f,0x33,0x6a,0x62,0x6b,0x31,0x79,0x46,0x35,0x76,0x4a,0x6d,0x6c,0x51,0x4d,0x42,0x63,0x52,0x4f,0x73,0x50,0x71,0x54,0x4c,0x34,0x48,0x6e,0x61,0x65,0x56,0x72,0x55]),_0x779212=0x577e5f5b,_0x14122b=0x57793e1b^_0x779212,_0xf247a9=window[_0x2da59c([0x44,0x61,0x74,0x65])][_0x2da59c([0x6e,0x6f,0x77])](),_0x255fd8=_0xbcfc48[_0x2da59c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x451c3e=new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c42e6=>{_0x255fd8[_0x2da59c([0x6f,0x6e,0x63,0x65])](_0x2da59c([0x72,0x65,0x61,0x64,0x79]),_0x2c42e6);}),_0xd2f2dc={[_0x2da59c([0x6b,0x74,0x79])]:_0x2da59c([0x45,0x43]),[_0x2da59c([0x75,0x73,0x65])]:_0x2da59c([0x73,0x69,0x67]),[_0x2da59c([0x63,0x72,0x76])]:_0x2da59c([0x50,0x2d,0x32,0x35,0x36]),[_0x2da59c([0x78])]:_0x2da59c([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]),[_0x2da59c([0x79])]:_0x2da59c([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]),[_0x2da59c([0x61,0x6c,0x67])]:_0x2da59c([0x45,0x53,0x32,0x35,0x36])},_0x41402a=_0x255fd8[_0x2da59c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2da59c([0x67,0x65,0x74])](_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c1dcd(){let _0x3b819b,_0x414980=null,_0x4f692b=null;try{if(_0x41402a==_0x2da59c([0x47,0x50,0x4c]))return _0x2da59c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b819b=_0x16fb5f(),!_0x3b819b)return _0x2da59c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b819b[_0x2da59c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f692b=_0x3e4346(_0x3b819b[_0x2da59c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b819b[_0x2da59c([0x6a,0x74,0x69])])),await _0x560116()?_0x304c71()?_0x3492fe()?_0x2da59c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd08751()?(_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2da59c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x414980=_0x124e25(_0x2da59c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2da59c([0x74,0x72,0x69,0x61,0x6c])&&(_0x414980=_0x124e25(_0x2da59c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf08230()):_0x2da59c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2da59c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2da59c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34c721){return _0x2da59c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3492fe(){const _0x57925f=[_0x2da59c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2da59c([0x74,0x72,0x69,0x61,0x6c])][_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf247a9/0x3e8:0xe10*_0x14122b;return _0x3b819b[_0x2da59c([0x65,0x78,0x70])]<_0x57925f;}function _0x304c71(){const _0x3e9c85=_0x3b819b[_0x2da59c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e9c85&&(!!_0x3e9c85[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da59c([0x2a]))||!!_0x3e9c85[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da59c([0x55,0x50,0x4c,0x43])));}function _0xd08751(){const _0x68652a=_0x9b0d,_0x4ec500=_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ec500||0x0==_0x4ec500[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cc12a}=new URL(window[_0x2da59c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x68652a(0x173)]);if(_0x4ec500[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc12a))return!0x0;const _0x4cb1c8=_0x3cc12a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e]));return _0x4ec500[_0x2da59c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ce145=>_0x4ce145[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da59c([0x2a])))[_0x2da59c([0x6d,0x61,0x70])](_0x54a761=>_0x54a761[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e])))[_0x2da59c([0x73,0x6f,0x6d,0x65])](_0x23c249=>_0x4cb1c8[_0x2da59c([0x65,0x76,0x65,0x72,0x79])]((_0x113fcc,_0x39db99)=>_0x23c249[_0x39db99]===_0x113fcc||_0x23c249[_0x39db99]===_0x2da59c([0x2a])));}function _0xf08230(){return _0x414980&&_0x4f692b?new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfb3f56,_0x5ef395)=>{_0x414980[_0x2da59c([0x74,0x68,0x65,0x6e])](_0xfb3f56,_0x5ef395),_0x4f692b[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x1161dc=>{_0x1161dc!=_0x2da59c([0x56,0x61,0x6c,0x69,0x64])&&_0xfb3f56(_0x1161dc);},_0x5ef395);}):_0x414980||_0x4f692b||_0x2da59c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e4346(_0x32e56f,_0x59b734){return new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436592=>{if(_0x35dab6())return _0x436592(_0x2da59c([0x56,0x61,0x6c,0x69,0x64]));_0x434e96(),_0x255fd8[_0x2da59c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2da59c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42c908=!0x1;const _0x17ef3a=_0x5dd7e5();function _0x12775a(_0xcb69f5){return!!_0xcb69f5&&(typeof _0xcb69f5===_0x2da59c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcb69f5===_0x2da59c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcb69f5[_0x2da59c([0x74,0x68,0x65,0x6e])]===_0x2da59c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcb69f5[_0x2da59c([0x63,0x61,0x74,0x63,0x68])]===_0x2da59c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2df39b(_0x4659ca){_0x3cf6e2(_0x4659ca)[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x16b4e0=>{if(!_0x16b4e0||_0x16b4e0[_0x2da59c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2da59c([0x6f,0x6b]))return _0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a2288(_0x47359f(_0x17ef3a+_0x59b734))!=_0x16b4e0[_0x2da59c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2da59c([0x56,0x61,0x6c,0x69,0x64]);})[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x33d302=>(_0x217376(),_0x33d302),()=>{const _0x582c1c=_0xf3c5cd();return null==_0x582c1c?(_0x217376(),_0x2da59c([0x56,0x61,0x6c,0x69,0x64])):_0x2da59c(_0xf247a9-_0x582c1c>(0x7372db5b^_0x779212)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x436592)[_0x2da59c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x436592(_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c2f58=0x5748b1db^_0x779212;function _0x217376(){const _0x315088=_0x2da59c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2288(_0x47359f(_0x32e56f)),_0x459bbc=_0x4e70c4(_0x2a2288(window[_0x2da59c([0x4d,0x61,0x74,0x68])][_0x2da59c([0x63,0x65,0x69,0x6c])](_0xf247a9/_0x4c2f58)));window[_0x2da59c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2da59c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x315088,_0x459bbc);}function _0xf3c5cd(){const _0xfebbe7=_0x2da59c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2288(_0x47359f(_0x32e56f)),_0x286e54=window[_0x2da59c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2da59c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfebbe7);return _0x286e54?window[_0x2da59c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e70c4(_0x286e54),0x10)*_0x4c2f58:null;}function _0x3cf6e2(_0xd3d860){return new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a2905,_0x5669e2)=>{_0xd3d860[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x3a2905,_0x5669e2),window[_0x2da59c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5669e2,0x577f8b9b^_0x779212);});}}_0x255fd8[_0x2da59c([0x6f,0x6e])](_0x2da59c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bffc3,_0x4f37cd)=>{if(_0x4f37cd[0x0]!=_0x32e56f)return _0x436592(_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f37cd[0x1]={..._0x4f37cd[0x1],[_0x2da59c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17ef3a};},{[_0x2da59c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2da59c([0x68,0x69,0x67,0x68])}),_0x255fd8[_0x2da59c([0x6f,0x6e])](_0x2da59c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32b471=>{_0x12775a(_0x32b471[_0x2da59c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42c908=!0x0,_0x2df39b(_0x32b471[_0x2da59c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2da59c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2da59c([0x6c,0x6f,0x77])}),_0x451c3e[_0x2da59c([0x74,0x68,0x65,0x6e])](()=>{_0x42c908||_0x436592(_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35dab6(){return _0x255fd8[_0x2da59c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2da59c([0x76,0x69,0x65,0x77])][_0x2da59c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2da59c([0x61,0x75,0x74,0x6f]);}function _0x434e96(){_0x255fd8[_0x2da59c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2da59c([0x76,0x69,0x65,0x77])][_0x2da59c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2da59c([0x61,0x75,0x74,0x6f]);}}function _0x124e25(_0x2cb2ee){const _0xf9469e=[new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55c6d9=>setTimeout(_0x55c6d9,0x57776197^_0x779212)),_0x451c3e[_0x2da59c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7fb5=>{let _0x43f28f=0x0;_0x255fd8[_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da59c([0x6f,0x6e])](_0x2da59c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xcceb16,_0x4b81a4)=>{_0x4b81a4[0x0][_0x2da59c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43f28f++,_0x43f28f==(0x577e5ea3^_0x779212)&&(_0x3b7fb5(),_0xcceb16[_0x2da59c([0x6f,0x66,0x66])]());});}))];return window[_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2da59c([0x72,0x61,0x63,0x65])](_0xf9469e)[_0x2da59c([0x74,0x68,0x65,0x6e])](()=>_0x2cb2ee);}async function _0x1ffe89(){await _0x451c3e,_0x255fd8[_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da59c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x510c1d,_0x255fd8[_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da59c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x510c1d,_0x255fd8[_0x2da59c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x176603(_0x2124e8){const _0x31410f=_0x4c66db();_0x255fd8[_0x31410f]=_0x2da59c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2124e8,_0x2124e8!=_0x2da59c([0x56,0x61,0x6c,0x69,0x64])&&_0x1ffe89();}function _0x4c66db(){const _0x284c25=window[_0x2da59c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2da59c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2da59c([0x6e,0x6f,0x77])]())[_0x2da59c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2da59c([0x2e]),'');let _0x25d115=_0x2da59c([0x47]);for(let _0x35b68f=0x0;_0x35b68f<_0x284c25[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35b68f+=0x2){let _0x6356ca=window[_0x2da59c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x284c25[_0x2da59c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35b68f,_0x35b68f+0x2));_0x6356ca>=_0x4bd5fc[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6356ca-=_0x4bd5fc[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25d115+=_0x4bd5fc[_0x6356ca];}return _0x25d115;}function _0x16fb5f(){const _0x431346=_0x41402a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e]));if(0x3!=_0x431346[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bf8b0(_0x431346[0x1]);function _0x4bf8b0(_0x1ea764){const _0xe37424=_0xd9252e(_0x1ea764);return _0xe37424&&_0x577bec()?_0xe37424:null;function _0x577bec(){const _0x17280d=_0xe37424[_0x2da59c([0x6a,0x74,0x69])],_0x52421a=window[_0x2da59c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17280d[_0x2da59c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17280d[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20bda1={..._0xe37424,[_0x2da59c([0x6a,0x74,0x69])]:_0x17280d[_0x2da59c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17280d[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20bda1[_0x2da59c([0x76,0x63])],_0x47359f(_0x20bda1)==_0x52421a;}}}async function _0x560116(){let _0x6bf989=!0x0;try{const _0x20d17e=_0x41402a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e])),[_0x3a8e65,_0x25330c,_0x585871]=_0x20d17e;return _0x17b360(_0x3a8e65),await _0x123cb4(_0x3a8e65,_0x25330c,_0x585871),_0x6bf989;}catch(_0x27abfe){return!0x1;}function _0x17b360(_0x46aa3a){const _0x510686=_0xd9252e(_0x46aa3a);_0x510686&&_0x510686[_0x2da59c([0x61,0x6c,0x67])]==_0x2da59c([0x45,0x53,0x32,0x35,0x36])||(_0x6bf989=!0x1);}async function _0x123cb4(_0x3b8e08,_0xcdd444,_0x2a2d86){const _0x1f077e=window[_0x2da59c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2da59c([0x66,0x72,0x6f,0x6d])](_0x49006d(_0x2a2d86),_0x2e73b4=>_0x2e73b4[_0x2da59c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22b353=new window[(_0x2da59c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2da59c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b8e08+_0x2da59c([0x2e])+_0xcdd444),_0x5a900a=window[_0x2da59c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2da59c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a900a)return;const _0x534a38=await _0x5a900a[_0x2da59c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2da59c([0x6a,0x77,0x6b]),_0xd2f2dc,{[_0x2da59c([0x6e,0x61,0x6d,0x65])]:_0x2da59c([0x45,0x43,0x44,0x53,0x41]),[_0x2da59c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2da59c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2da59c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a900a[_0x2da59c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2da59c([0x6e,0x61,0x6d,0x65])]:_0x2da59c([0x45,0x43,0x44,0x53,0x41]),[_0x2da59c([0x68,0x61,0x73,0x68])]:{[_0x2da59c([0x6e,0x61,0x6d,0x65])]:_0x2da59c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x534a38,_0x1f077e,_0x22b353)||(_0x6bf989=!0x1);}}function _0xd9252e(_0x7f8b6b){return _0x7f8b6b[_0x2da59c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2da59c([0x65,0x79]))?JSON[_0x2da59c([0x70,0x61,0x72,0x73,0x65])](_0x49006d(_0x7f8b6b)):null;}function _0x49006d(_0x343966){return window[_0x2da59c([0x61,0x74,0x6f,0x62])](_0x343966[_0x2da59c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2da59c([0x2b]))[_0x2da59c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2da59c([0x2f])));}function _0x47359f(_0x29117a){let _0xeb7bdd=0x1505;function _0x228bb1(_0x4462f9){for(let _0x21b8e6=0x0;_0x21b8e6<_0x4462f9[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21b8e6++){const _0x3730d2=_0x4462f9[_0x2da59c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21b8e6);_0xeb7bdd=(_0xeb7bdd<<0x5)+_0xeb7bdd+_0x3730d2,_0xeb7bdd&=_0xeb7bdd;}}function _0x4df80e(_0x397ca8){Array[_0x2da59c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x397ca8)?_0x397ca8[_0x2da59c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4df80e):_0x397ca8&&typeof _0x397ca8==_0x2da59c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2da59c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x397ca8)[_0x2da59c([0x73,0x6f,0x72,0x74])]()[_0x2da59c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f9627,_0x315468])=>{_0x228bb1(_0x3f9627),_0x4df80e(_0x315468);}):_0x228bb1(window[_0x2da59c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x397ca8));}return _0x4df80e(_0x29117a),_0xeb7bdd>>>0x0;}function _0x2a2288(_0x4eb73c){return _0x4eb73c[_0x2da59c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2da59c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2da59c([0x30]));}function _0x4e70c4(_0x494a7a){return _0x494a7a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2da59c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2da59c([0x6a,0x6f,0x69,0x6e])]('');}function _0x510c1d(){}function _0x2da59c(_0x366c4d){const _0x3c82c9=_0x9b0d;return _0x366c4d[_0x3c82c9(0x182)](_0xb4226c=>String[_0x3c82c9(0x14e)](_0xb4226c))[_0x3c82c9(0x146)]('');}_0x176603(await _0x3c1dcd());}(this);}[_0x55a53d(0x159)](){const _0x92dc9e=_0x55a53d,_0x3dec5e=this[_0x92dc9e(0x185)][_0x92dc9e(0x166)][_0x92dc9e(0x15f)];_0x3dec5e[_0x92dc9e(0x163)](_0x92dc9e(0x187))&&_0x3dec5e[_0x92dc9e(0x153)](_0x92dc9e(0x187),{'allowAttributes':[_0x92dc9e(0x17d)]}),_0x3dec5e[_0x92dc9e(0x163)](_0x92dc9e(0x136))&&_0x3dec5e[_0x92dc9e(0x153)](_0x92dc9e(0x136),{'allowAttributes':[_0x92dc9e(0x17d)]});}[_0x55a53d(0x17b)](){const _0x523cc8=_0x55a53d,_0xf78c94=this[_0x523cc8(0x185)];_0xf78c94[_0x523cc8(0x14a)][_0x523cc8(0x13c)](_0x523cc8(0x171))[_0x523cc8(0x17a)]({'model':_0x523cc8(0x17d),'view':_0x523cc8(0x14d)}),_0xf78c94[_0x523cc8(0x14a)][_0x523cc8(0x13c)](_0x523cc8(0x179))[_0x523cc8(0x135)]({'model':{'key':_0x523cc8(0x17d),'value':_0x2ba66b=>_0x2ba66b[_0x523cc8(0x17f)](_0x523cc8(0x14d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2206bf=_0xf78c94[_0x523cc8(0x157)][_0x523cc8(0x17c)](_0x523cc8(0x170));_0x2206bf&&this[_0x523cc8(0x13f)](_0x2206bf,_0x523cc8(0x13e),(_0x39f9a9,[_0x3a7961,_0x175f68])=>{const _0x31aec5=_0x523cc8;_0x3a7961[_0x31aec5(0x15d)](_0x31aec5(0x17d),_0x175f68);});}[_0x55a53d(0x148)](){const _0x5a4ee2=_0x55a53d,_0x314272=this[_0x5a4ee2(0x185)][_0x5a4ee2(0x152)][_0x5a4ee2(0x17c)](_0x5a4ee2(0x176))||{},_0x2f6e0b=this[_0x5a4ee2(0x185)][_0x5a4ee2(0x152)][_0x5a4ee2(0x17c)](_0x5a4ee2(0x137))||'';this[_0x5a4ee2(0x134)]=_0x4deb1f(_0x4aeb5a[_0x5a4ee2(0x164)],_0x5a4ee2(0x161),{..._0x314272,'pubkey':_0x2f6e0b,'ctx-name':_0x5a4ee2(0x140),'sourceList':'','imgOnly':_0x5a4ee2(0x155),'removeCopyright':_0x5a4ee2(0x155),'localeName':this[_0x5a4ee2(0x185)][_0x5a4ee2(0x16c)][_0x5a4ee2(0x158)],'externalSourcesEmbedCss':_0x5a4ee2(0x16e)}),this[_0x5a4ee2(0x134)][_0x5a4ee2(0x14c)]=_0x3c071b=>{const _0x5efff5=_0x5a4ee2;if(_0x5efff5(0x181)==_0x3c071b)return _0x5efff5(0x178);},_0x4aeb5a[_0x5a4ee2(0x164)][_0x5a4ee2(0x14b)][_0x5a4ee2(0x150)](this[_0x5a4ee2(0x134)]);}[_0x55a53d(0x147)](){const _0x55cdf5=_0x55a53d;this[_0x55cdf5(0x167)]=_0x4deb1f(_0x4aeb5a[_0x55cdf5(0x164)],_0x55cdf5(0x142),{'ctx-name':_0x55cdf5(0x140)}),_0x4aeb5a[_0x55cdf5(0x164)][_0x55cdf5(0x14b)][_0x55cdf5(0x150)](this[_0x55cdf5(0x167)]);}[_0x55a53d(0x144)](){const _0x26fa28=_0x55a53d,_0x23dfdc=this[_0x26fa28(0x185)][_0x26fa28(0x157)][_0x26fa28(0x17c)](_0x26fa28(0x13b));_0x23dfdc&&this[_0x26fa28(0x13f)](_0x23dfdc,_0x26fa28(0x183),()=>{const _0x4e94fd=_0x26fa28,_0x3572bc=this[_0x4e94fd(0x185)][_0x4e94fd(0x166)][_0x4e94fd(0x164)][_0x4e94fd(0x141)][_0x4e94fd(0x168)]();_0x3572bc&&_0x3572bc[_0x4e94fd(0x17f)](_0x4e94fd(0x17d))&&this[_0x4e94fd(0x185)][_0x4e94fd(0x145)][_0x4e94fd(0x14f)][_0x4e94fd(0x143)](_0x4e94fd(0x180),()=>{const _0x273ac7=_0x4e94fd;_0x379bdb(this[_0x273ac7(0x185)],_0x3572bc);});});const _0x16efb2=this[_0x26fa28(0x185)][_0x26fa28(0x157)][_0x26fa28(0x17c)](_0x26fa28(0x15e));_0x16efb2&&this[_0x26fa28(0x13f)](_0x16efb2,_0x26fa28(0x183),()=>{const _0x597dd7=_0x26fa28,_0xe4de10=this[_0x597dd7(0x185)][_0x597dd7(0x166)][_0x597dd7(0x164)][_0x597dd7(0x141)][_0x597dd7(0x168)]();_0xe4de10&&_0xe4de10[_0x597dd7(0x17f)](_0x597dd7(0x17d))&&this[_0x597dd7(0x185)][_0x597dd7(0x145)][_0x597dd7(0x14f)][_0x597dd7(0x143)](_0x597dd7(0x180),()=>{const _0x4ab5fb=_0x597dd7;_0x379bdb(this[_0x4ab5fb(0x185)],_0xe4de10);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xa4a5a6,ObservableMixin as _0x4d4ce1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x7ca8de}from'ckeditor5/src/ui.js';import _0x21223c from'./uploadcareimageeditformview.js';import _0xee6090 from'../../utils/uploadutils.js';import _0x1d622a from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x3a3396,getImageDimension as _0x297414}from'../../utils/editingutils.js';import{isAncestor as _0x3c2b53}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4d4ce1(){constructor(_0x5372cf,_0x1f9ae0,_0x502566){super(),this['_editor']=_0x5372cf,this['_dialog']=_0x1f9ae0,this['_imageElement']=_0x502566,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 _0x4bee89=this['_imageElement'],_0x10a2d0=_0x4bee89['getAttribute']('uploadcareImageId'),_0x3d2447=_0x4bee89['getAttribute']('src');if(_0x10a2d0)await this['_loadImageInfo'](_0x10a2d0,_0x3d2447);else{if(this['_imageCache']['has'](_0x3d2447)){const _0x204dc8=this['_imageCache']['get'](_0x3d2447);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x204dc8['url'],this['imageDimension']=_0x204dc8['dimension'],this['imageId']=_0x204dc8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x419241}=this['_editor'],t=_0x419241['t'],_0x350f1e=new _0x21223c(_0x419241,this['imageStatus'],this['_attributes']);_0x350f1e['bind']('status')['to'](this,'imageStatus'),_0x350f1e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x350f1e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x350f1e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x350f1e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d622a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x350f1e,'position':_0x7ca8de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x350f1e['focus']();},'onHide':()=>{_0x350f1e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42c312=>!_0x3c2b53(_0x42c312,_0x350f1e['element'])}});}['_loadImageInfo'](_0x241a39,_0x5a0d71){return _0xee6090['getInfo'](_0x241a39,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4fedb4=>{const {width:_0x187aa8,height:_0x2ef2c7}=_0x4fedb4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a0d71,this['imageDimension']={'width':_0x187aa8,'height':_0x2ef2c7},this['imageId']=_0x241a39;})['catch'](_0x400bb6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x400bb6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xed8e38,_0x503d0c){return this['_getImageAsFile'](_0xed8e38)['then'](_0x269804=>_0xee6090['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x503d0c['signal'],'file':_0x269804,'onProgress':_0x959ef7=>{_0x959ef7&&_0x959ef7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x959ef7['value']));}}))['then'](_0x3f523c=>{const {width:_0x3baabb,height:_0x5ab2c8}=_0x3f523c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f523c['cdnUrl'],this['imageDimension']={'width':_0x3baabb,'height':_0x5ab2c8},this['imageId']=_0x3f523c['uuid'],this['imageUploadProgress']=null;const _0x13a2c3=_0xed8e38['getAttribute']('src');this['_imageCache']['set'](_0x13a2c3,{'id':_0x3f523c['uuid'],'url':_0x3f523c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x39da7c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x39da7c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5633e2,_0x475d80){_0x5633e2['on']('apply',(_0x283d01,_0x5bb39e)=>{this['_replaceImage'](_0x475d80,_0x5bb39e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5633e2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5633e2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x25c560,_0x501860,_0x4f14d6){const _0x41ab64=this['_editor'],{width:_0x235f8e,height:_0x400965}=_0x297414(_0x501860,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x248b54,imageSources:_0x490e40}=_0x3a3396(_0x501860,_0x235f8e);_0x41ab64['model']['change'](_0x4e693e=>{if('$graveyard'===_0x25c560['root']['rootName']){_0x41ab64['execute']('insertImage',{'imageType':_0x25c560['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x25c560['getAttributes']()),'uploadcareImageId':_0x4f14d6,'src':_0x248b54,'sources':_0x490e40,'width':_0x235f8e,'height':_0x400965}});const _0x13ba5d=_0x25c560['getChildren']();_0x25c560=_0x41ab64['model']['document']['selection']['getSelectedElement']();for(const _0x522764 of _0x13ba5d)_0x4e693e['append'](_0x4e693e['cloneElement'](_0x522764),_0x25c560);}else _0x4e693e['setSelection'](_0x25c560,'on'),_0x41ab64['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x25c560['getAttributes']()),'uploadcareImageId':_0x4f14d6,'src':_0x248b54,'sources':_0x490e40,'width':_0x235f8e,'height':_0x400965},_0x25c560);_0x4e693e['setSelection'](_0x25c560,'on');});}async['_getImageAsFile'](_0x4973a6){const _0x306740=_0xa4a5a6['window'],_0x420fe2=_0xa4a5a6['document']['location']['href'],_0x151ed9=new _0x306740['URL'](_0x4973a6['getAttribute']('src'),_0x420fe2);if('data:'===_0x151ed9['protocol']){const _0x169045=_0x151ed9['href']['split'](','),_0x102292=_0x169045[0x0]['match'](/:(.*?);/)[0x1],_0x250011=_0x102292['split']('/')[0x1],_0x183574=_0x306740['atob'](_0x169045[_0x169045['length']-0x1]);let _0x24a942=_0x183574['length'];const _0x496ba5=new _0x306740['Uint8Array'](_0x24a942);for(;_0x24a942--;)_0x496ba5[_0x24a942]=_0x183574['charCodeAt'](_0x24a942);return new _0x306740['File']([_0x496ba5],'image.'+_0x250011,{'type':_0x102292});}const _0x5aa629=_0x151ed9['href']['split']('/'),_0x43e4d8=_0x5aa629[_0x5aa629['length']-0x1],_0x22591b=_0x43e4d8['split']('.')[0x1];return _0x306740['fetch'](_0x151ed9['href'])['then'](_0x2fede6=>_0x2fede6['clone']()['blob']())['then'](_0x1b6f7a=>new _0x306740['File']([_0x1b6f7a],_0x43e4d8,{'type':'image/'+_0x22591b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x350cf0,_0x45bad8){const _0x255446=_0x22fc,_0x587f77=_0x350cf0();while(!![]){try{const _0x302e27=-parseInt(_0x255446(0x135))/0x1*(parseInt(_0x255446(0x137))/0x2)+-parseInt(_0x255446(0x12a))/0x3+parseInt(_0x255446(0x12e))/0x4*(parseInt(_0x255446(0x12c))/0x5)+-parseInt(_0x255446(0x134))/0x6*(-parseInt(_0x255446(0x136))/0x7)+-parseInt(_0x255446(0x12b))/0x8+-parseInt(_0x255446(0x132))/0x9+-parseInt(_0x255446(0x139))/0xa*(-parseInt(_0x255446(0x131))/0xb);if(_0x302e27===_0x45bad8)break;else _0x587f77['push'](_0x587f77['shift']());}catch(_0x150de5){_0x587f77['push'](_0x587f77['shift']());}}}(_0x419c,0x89881));function _0x22fc(_0x51ebe3,_0x38d183){const _0x419caf=_0x419c();return _0x22fc=function(_0x22fc33,_0x9054b6){_0x22fc33=_0x22fc33-0x129;let _0xc72209=_0x419caf[_0x22fc33];return _0xc72209;},_0x22fc(_0x51ebe3,_0x38d183);}function _0x419c(){const _0x2a51f4=['6446840bCPdWQ','297115tnEQDV','bindTemplate','4wQLbqe','imageSrc','uc-light','11KkDSjP','9194319hjoxfu','setTemplate','4662MdQVdj','5fcBrMI','8127EHHseK','450470DmbMJU','uc-cloud-image-editor','32310050njoyvZ','image-edit','ck-uploadcare-theme','set','2026725rvLBSI'];_0x419c=function(){return _0x2a51f4;};return _0x419c();}import{View as _0x169ec4}from'ckeditor5/src/ui.js';export default class tt extends _0x169ec4{constructor(_0x4de43f,_0x993554){const _0x312cf3=_0x22fc;super(_0x4de43f);const _0x383b04=this[_0x312cf3(0x12d)];this[_0x312cf3(0x129)](_0x312cf3(0x12f),''),this[_0x312cf3(0x133)]({'tag':_0x312cf3(0x138),'attributes':{..._0x993554,'class':[_0x312cf3(0x130),_0x312cf3(0x13b)],'ctx-name':_0x312cf3(0x13a),'cdn-url':_0x383b04['to'](_0x312cf3(0x12f))}});}}
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
5
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
10
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
8
11
|
/**
|
|
9
12
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{
|
|
23
|
+
import{ButtonView as _0x3713ad,IconView as et,View as _0x4aa70b}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x4aa70b{constructor(_0x1e9195){super(_0x1e9195);const t=_0x1e9195['t'];this['set']('errorType',null);const _0x2ee9c5=new _0x3713ad(_0x1e9195);_0x2ee9c5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2ee9c5['withText']=!0x0,_0x2ee9c5['class']='ck-button-action',_0x2ee9c5['on']('execute',()=>{this['fire']('retry');}),_0x2ee9c5['bind']('isVisible')['to'](this,'errorType',_0x22fde7=>'NotFound'!==_0x22fde7);const _0x1df164=new et();_0x1df164['content']=at,_0x1df164['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x28aa43=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':[_0x1df164,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x28aa43['to']('errorType',_0x4d774f=>t('NotFound'!==_0x4d774f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2ee9c5]},{'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 _0x359d72,View as _0x1213d7}from'ckeditor5/src/ui.js';export default class ta extends _0x1213d7{constructor(_0x4db4ac){super(_0x4db4ac);const t=_0x4db4ac['t'],_0xa3f213=this['bindTemplate'],_0x3d5b13=new _0x359d72();_0x3d5b13['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':[_0x3d5b13,{'text':_0xa3f213['to']('imageUploadProgress',_0x138b5b=>t('Loading\x20image...')+'\x20('+(_0x138b5b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19ad60=_0xad95;(function(_0x39aab0,_0x5cbe50){const _0x5a83d0=_0xad95,_0x1919be=_0x39aab0();while(!![]){try{const _0x222ebd=-parseInt(_0x5a83d0(0x168))/0x1*(-parseInt(_0x5a83d0(0x165))/0x2)+parseInt(_0x5a83d0(0x184))/0x3+parseInt(_0x5a83d0(0x181))/0x4*(-parseInt(_0x5a83d0(0x196))/0x5)+parseInt(_0x5a83d0(0x18c))/0x6*(parseInt(_0x5a83d0(0x18b))/0x7)+parseInt(_0x5a83d0(0x189))/0x8*(parseInt(_0x5a83d0(0x162))/0x9)+parseInt(_0x5a83d0(0x174))/0xa*(parseInt(_0x5a83d0(0x17f))/0xb)+-parseInt(_0x5a83d0(0x17a))/0xc*(parseInt(_0x5a83d0(0x192))/0xd);if(_0x222ebd===_0x5cbe50)break;else _0x1919be['push'](_0x1919be['shift']());}catch(_0x2ff16e){_0x1919be['push'](_0x1919be['shift']());}}}(_0x580d,0x5f472));import{View as _0x16a793}from'ckeditor5/src/ui.js';import _0x3c29ee from'./uploadcareimageeditformloadingview.js';import _0x596f7e from'./uploadcareimageeditformerrorview.js';import _0x558252 from'./uploadcareimageeditformeditingview.js';function _0x580d(){const _0x211d7f=['add','142724kRmaOs','_editingView','createCollection','1ObfFCL','addedNodes','ck-reset_all-excluded','addEventListener','focus','ck-uploadcare-form','setTemplate','render','target','observe','_loadingView','_items','1246850ycqJDo','uploading','ready','_setView','_addErrorViewListeners','div','924gRhNwp','uc-cloud-image-editor','fire','element','_addUploadcareImageEditorListeners','22lpiysI','detail','104leEyyh','addMany','filter','1840563dXbqrm','retry','cancel','_waitForImageEditorComponent','_focusableView','8GpNXbE','querySelector','8008bUNueK','1716mAziqV','length','nodeName','disconnect','status','once','101686mzhOKB','apply','error','_errorView','88805RynoKo','set','toLowerCase','clear','getFocusableElement','cdnUrl','1736109IdjaFZ','change:status'];_0x580d=function(){return _0x211d7f;};return _0x580d();}import _0x5595e2 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0xad95(_0x1c1f92,_0x5edca1){const _0x580db0=_0x580d();return _0xad95=function(_0xad95d6,_0x469411){_0xad95d6=_0xad95d6-0x15d;let _0x51edb7=_0x580db0[_0xad95d6];return _0x51edb7;},_0xad95(_0x1c1f92,_0x5edca1);}export default class Z extends _0x5595e2{constructor(_0x43b49b,_0x1c6db8,_0x5840bb){const _0xe1d427=_0xad95;super(_0x43b49b),this[_0xe1d427(0x173)]=this[_0xe1d427(0x167)](),this[_0xe1d427(0x172)]=new _0x3c29ee(_0x43b49b),this[_0xe1d427(0x195)]=new _0x596f7e(_0x43b49b),this[_0xe1d427(0x166)]=new _0x558252(_0x43b49b,_0x5840bb),this[_0xe1d427(0x188)]=new _0x16a793(_0x43b49b),this[_0xe1d427(0x188)][_0xe1d427(0x16e)](this[_0xe1d427(0x160)]()),this[_0xe1d427(0x15d)](_0xe1d427(0x190),_0x1c6db8),this[_0xe1d427(0x16e)]({'tag':_0xe1d427(0x179),'attributes':{'class':['ck',_0xe1d427(0x16a),_0xe1d427(0x16d)],'tabindex':'-1'},'children':this[_0xe1d427(0x173)]}),this[_0xe1d427(0x177)](),this[_0xe1d427(0x191)](_0xe1d427(0x16f),()=>{const _0x2d2163=_0xe1d427;this[_0x2d2163(0x187)](this[_0x2d2163(0x17d)],_0x74b73e=>{const _0x2db8bb=_0x2d2163;this[_0x2db8bb(0x17e)](_0x74b73e);});}),this['on'](_0xe1d427(0x163),()=>{const _0x578061=_0xe1d427;this[_0x578061(0x177)]();}),this[_0xe1d427(0x178)]();}[_0x19ad60(0x16c)](){const _0x6b5429=_0x19ad60;this[_0x6b5429(0x17d)][_0x6b5429(0x16c)]();}[_0x19ad60(0x177)](){const _0x5678f0=_0x19ad60;switch(this[_0x5678f0(0x173)][_0x5678f0(0x15f)](),this[_0x5678f0(0x190)]){case _0x5678f0(0x175):this[_0x5678f0(0x173)][_0x5678f0(0x164)](this[_0x5678f0(0x172)]);break;case _0x5678f0(0x194):this[_0x5678f0(0x173)][_0x5678f0(0x164)](this[_0x5678f0(0x195)]);break;case _0x5678f0(0x176):this[_0x5678f0(0x173)][_0x5678f0(0x182)]([this[_0x5678f0(0x166)],this[_0x5678f0(0x188)]]);}}[_0x19ad60(0x187)](_0x16eb7c,_0x484dbe){const _0x420eb1=_0x19ad60,_0x532419=_0x420eb1(0x17b),_0x3cb2c7=_0x16eb7c[_0x420eb1(0x18a)](_0x532419);if(_0x3cb2c7)return _0x484dbe(_0x3cb2c7);const _0x40d539=new MutationObserver(_0xa2960b=>{const _0x67ccbd=_0x420eb1,_0x71cbd7=_0xa2960b[_0x67ccbd(0x183)](_0x2ab374=>_0x2ab374[_0x67ccbd(0x170)]===_0x16eb7c&&_0x2ab374[_0x67ccbd(0x169)][_0x67ccbd(0x18d)]>0x0&&_0x2ab374[_0x67ccbd(0x169)][0x0][_0x67ccbd(0x18e)][_0x67ccbd(0x15e)]()===_0x532419);_0x71cbd7[_0x67ccbd(0x18d)]&&(_0x40d539[_0x67ccbd(0x18f)](),_0x484dbe(_0x71cbd7[0x0][_0x67ccbd(0x169)][0x0]));});_0x40d539[_0x420eb1(0x171)](_0x16eb7c,{'childList':!0x0,'subtree':!0x0});}[_0x19ad60(0x17e)](_0x1af7be){const _0x1d37b6=_0x19ad60;_0x1af7be[_0x1d37b6(0x16b)](_0x1d37b6(0x193),_0x45b1c1=>{const _0xe1edf3=_0x1d37b6;this[_0xe1edf3(0x17c)](_0xe1edf3(0x193),{'imageSrc':_0x45b1c1[_0xe1edf3(0x180)][_0xe1edf3(0x161)]});}),_0x1af7be[_0x1d37b6(0x16b)](_0x1d37b6(0x186),()=>{const _0x1f17bf=_0x1d37b6;this[_0x1f17bf(0x17c)](_0x1f17bf(0x186));});}[_0x19ad60(0x178)](){const _0x4b3005=_0x19ad60;this[_0x4b3005(0x195)]['on'](_0x4b3005(0x185),()=>{const _0x45910e=_0x4b3005;this[_0x45910e(0x17c)](_0x45910e(0x185));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf32c3d=_0x2dbe;(function(_0x4073c7,_0x5a6d34){const _0xb6599d=_0x2dbe,_0x3f379b=_0x4073c7();while(!![]){try{const _0x3f204f=parseInt(_0xb6599d(0x1d5))/0x1*(parseInt(_0xb6599d(0x1eb))/0x2)+parseInt(_0xb6599d(0x1de))/0x3*(-parseInt(_0xb6599d(0x1ec))/0x4)+-parseInt(_0xb6599d(0x1e4))/0x5+-parseInt(_0xb6599d(0x1d0))/0x6*(-parseInt(_0xb6599d(0x1e0))/0x7)+-parseInt(_0xb6599d(0x1df))/0x8*(-parseInt(_0xb6599d(0x1d8))/0x9)+parseInt(_0xb6599d(0x1ed))/0xa*(-parseInt(_0xb6599d(0x1e9))/0xb)+-parseInt(_0xb6599d(0x1d9))/0xc;if(_0x3f204f===_0x5a6d34)break;else _0x3f379b['push'](_0x3f379b['shift']());}catch(_0x2fe53c){_0x3f379b['push'](_0x3f379b['shift']());}}}(_0x3b73,0x517ce));import{Command as _0x5a434d}from'ckeditor5/src/core.js';import{Dialog as _0x2e16ad}from'ckeditor5/src/ui.js';import _0x186776 from'./ui/uploadcareimageeditcontroller.js';function _0x2dbe(_0x96a795,_0x157d32){const _0x3b73a4=_0x3b73();return _0x2dbe=function(_0x2dbe3a,_0x517255){_0x2dbe3a=_0x2dbe3a-0x1ce;let _0x906865=_0x3b73a4[_0x2dbe3a];return _0x906865;},_0x2dbe(_0x96a795,_0x157d32);}function _0x3b73(){const _0x5dd559=['plugins','4233cnYLDW','2634736QyrdhJ','7ZdXbSN','get','bind','selection','255700gWUyxX','element','imageInline','isActive','requires','11uUlKGJ','unbind','74012SFjMRY','956ZcemQK','2398020fPaOsY','refresh','imageEditController','set','config','1057974LZoiIJ','execute','model','document','imageBlock','6LvWgFm','editor','getSelectedElement','18cSZANF','1141248EeynHO','uploadcare.allowExternalImagesEditing','isEnabled','_isEditable'];_0x3b73=function(){return _0x5dd559;};return _0x3b73();}import{createEditabilityChecker as _0x3a05ff}from'../utils/editingutils.js';export default class J extends _0x5a434d{static get[_0xf32c3d(0x1e8)](){return[_0x2e16ad];}constructor(_0x41b4b6){const _0x18629b=_0xf32c3d;super(_0x41b4b6),this[_0x18629b(0x1ef)]=void 0x0,this[_0x18629b(0x1dc)]=_0x3a05ff(_0x41b4b6[_0x18629b(0x1cf)][_0x18629b(0x1e1)](_0x18629b(0x1da))||[]),this[_0x18629b(0x1ce)]({'isActive':!0x1});}[_0xf32c3d(0x1ee)](){const _0x22cedf=_0xf32c3d,_0x268b82=this[_0x22cedf(0x1d6)][_0x22cedf(0x1d2)][_0x22cedf(0x1d3)][_0x22cedf(0x1e3)][_0x22cedf(0x1d7)]();this[_0x22cedf(0x1db)]=this[_0x22cedf(0x1dc)](_0x268b82);}[_0xf32c3d(0x1d1)](){const _0x4fdb7a=_0xf32c3d;this[_0x4fdb7a(0x1ef)]&&(this[_0x4fdb7a(0x1ea)](_0x4fdb7a(0x1e7)),this[_0x4fdb7a(0x1ef)]=void 0x0);const _0x197d66=this[_0x4fdb7a(0x1d6)][_0x4fdb7a(0x1d2)][_0x4fdb7a(0x1d3)][_0x4fdb7a(0x1e3)][_0x4fdb7a(0x1d7)]();_0x197d66&&(_0x197d66['is'](_0x4fdb7a(0x1e5),_0x4fdb7a(0x1d4))||_0x197d66['is'](_0x4fdb7a(0x1e5),_0x4fdb7a(0x1e6)))&&(this[_0x4fdb7a(0x1ef)]=new _0x186776(this[_0x4fdb7a(0x1d6)],this[_0x4fdb7a(0x1d6)][_0x4fdb7a(0x1dd)][_0x4fdb7a(0x1e1)](_0x2e16ad),_0x197d66),this[_0x4fdb7a(0x1e2)](_0x4fdb7a(0x1e7))['to'](this[_0x4fdb7a(0x1ef)],_0x4fdb7a(0x1e7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x72d44e=_0x3195;(function(_0x2c1454,_0x1ca48d){const _0xf79c76=_0x3195,_0x3097ba=_0x2c1454();while(!![]){try{const _0x1f4170=parseInt(_0xf79c76(0x1ad))/0x1+parseInt(_0xf79c76(0x1b7))/0x2*(-parseInt(_0xf79c76(0x1be))/0x3)+-parseInt(_0xf79c76(0x1b6))/0x4+-parseInt(_0xf79c76(0x1b3))/0x5*(-parseInt(_0xf79c76(0x1af))/0x6)+-parseInt(_0xf79c76(0x1ae))/0x7*(parseInt(_0xf79c76(0x1c1))/0x8)+-parseInt(_0xf79c76(0x1b0))/0x9+-parseInt(_0xf79c76(0x1bd))/0xa*(-parseInt(_0xf79c76(0x1b5))/0xb);if(_0x1f4170===_0x1ca48d)break;else _0x3097ba['push'](_0x3097ba['shift']());}catch(_0x3aedc4){_0x3097ba['push'](_0x3097ba['shift']());}}}(_0x35c8,0x5c8bb));import{Plugin as _0x2537aa}from'ckeditor5/src/core.js';import{Notification as _0x1bac91}from'ckeditor5/src/ui.js';function _0x3195(_0xeaa985,_0x349cec){const _0x35c802=_0x35c8();return _0x3195=function(_0x3195fb,_0x28c0ad){_0x3195fb=_0x3195fb-0x1ab;let _0x34e5e7=_0x35c802[_0x3195fb];return _0x34e5e7;},_0x3195(_0xeaa985,_0x349cec);}import _0x2dc6b0 from'./uploadcareimageeditcommand.js';function _0x35c8(){const _0xd9e921=['ImageEditing','11EdsOAd','2193064tAHCWO','41308oJixyP','isOfficialPlugin','uploadcareImageEdit','isPremiumPlugin','add','pluginName','10466110kQibTk','45PosNtC','init','UploadcareImageEditEditing','31944NczXGW','commands','ImageUtils','325468jbJZZe','231DOpFQW','2316BOgLDV','4346685SHgqhQ','uploadcareImageReplace','requires','6215jBYMNp'];_0x35c8=function(){return _0xd9e921;};return _0x35c8();}import _0x1ba4c6 from'./uploadcareimagereplacecommand.js';import _0x3f8168 from'../uploadcareediting.js';export default class m extends _0x2537aa{static get[_0x72d44e(0x1bc)](){const _0x3260e0=_0x72d44e;return _0x3260e0(0x1c0);}static get[_0x72d44e(0x1b2)](){const _0x1242be=_0x72d44e;return[_0x3f8168,_0x1bac91,_0x1242be(0x1ac),_0x1242be(0x1b4)];}static get[_0x72d44e(0x1b8)](){return!0x0;}static get[_0x72d44e(0x1ba)](){return!0x0;}[_0x72d44e(0x1bf)](){const _0x164653=_0x72d44e,{editor:_0x3e87bc}=this;_0x3e87bc[_0x164653(0x1ab)][_0x164653(0x1bb)](_0x164653(0x1b9),new _0x2dc6b0(_0x3e87bc)),_0x3e87bc[_0x164653(0x1ab)][_0x164653(0x1bb)](_0x164653(0x1b1),new _0x1ba4c6(_0x3e87bc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3d8739}from'ckeditor5/src/core.js';import{ButtonView as _0x49d035}from'ckeditor5/src/ui.js';import{createElement as _0x518b97}from'ckeditor5/src/utils.js';import _0x1082b0 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x3d8739{constructor(){super(...arguments),this['_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 _0x342b85=this['editor'];_0x342b85['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1fac10=>{const _0x4fe469=_0x342b85['commands']['get']('uploadcareImageEdit'),_0x51f4d2=new _0x49d035(_0x1fac10),t=_0x1fac10['t'];return _0x51f4d2['set']({'icon':_0x1082b0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x51f4d2['bind']('isEnabled')['to'](_0x4fe469),_0x51f4d2['bind']('isOn')['to'](_0x4fe469,'isActive'),this['listenTo'](_0x51f4d2,'execute',()=>{_0x342b85['execute']('uploadcareImageEdit'),_0x342b85['editing']['view']['focus']();}),_0x51f4d2;}),this['_initConfig']();}['_initConfig'](){const _0x48df9e=_0x518b97(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x48df9e),this['listenTo'](this['editor'],'destroy',()=>{_0x48df9e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a9672=_0x2c38;(function(_0x420386,_0xb91d2c){const _0x16903b=_0x2c38,_0x2f4f71=_0x420386();while(!![]){try{const _0x322c1e=-parseInt(_0x16903b(0x1d7))/0x1+-parseInt(_0x16903b(0x1d0))/0x2*(parseInt(_0x16903b(0x1cf))/0x3)+-parseInt(_0x16903b(0x1cc))/0x4+-parseInt(_0x16903b(0x1d8))/0x5+-parseInt(_0x16903b(0x1d6))/0x6*(parseInt(_0x16903b(0x1c9))/0x7)+-parseInt(_0x16903b(0x1c6))/0x8*(parseInt(_0x16903b(0x1d2))/0x9)+-parseInt(_0x16903b(0x1ca))/0xa*(-parseInt(_0x16903b(0x1be))/0xb);if(_0x322c1e===_0xb91d2c)break;else _0x2f4f71['push'](_0x2f4f71['shift']());}catch(_0xcc0dbb){_0x2f4f71['push'](_0x2f4f71['shift']());}}}(_0x4ca5,0xc5c3e));function _0x2c38(_0x298673,_0x2c749f){const _0x4ca593=_0x4ca5();return _0x2c38=function(_0x2c3807,_0x213b46){_0x2c3807=_0x2c3807-0x1be;let _0x5a9be5=_0x4ca593[_0x2c3807];return _0x5a9be5;},_0x2c38(_0x298673,_0x2c749f);}import{Command as _0x466e7d}from'ckeditor5/src/core.js';function _0x4ca5(){const _0x2fb53a=['editor','3dRndnM','3226048HWyczi','sizes','280224EaIKXC','refresh','setAttributes','imageInline','2382ALAQzS','1184154pMsEtm','6015365kkhSxi','23718959slPQwl','element','removeAttribute','selection','imageBlock','document','change','getSelectedElement','408jbouqB','srcset','isEnabled','12026FnwYrU','40JmpRrX','execute','6179188vRgrui','model'];_0x4ca5=function(){return _0x2fb53a;};return _0x4ca5();}export default class O extends _0x466e7d{[_0x4a9672(0x1d3)](){const _0x190af7=_0x4a9672,_0x541c70=this[_0x190af7(0x1ce)][_0x190af7(0x1cd)][_0x190af7(0x1c3)][_0x190af7(0x1c1)][_0x190af7(0x1c5)]();this[_0x190af7(0x1c8)]=Boolean(_0x541c70&&(_0x541c70['is'](_0x190af7(0x1bf),_0x190af7(0x1c2))||_0x541c70['is'](_0x190af7(0x1bf),_0x190af7(0x1d5))));}[_0x4a9672(0x1cb)](_0x2d6c2b){const _0x12d504=_0x4a9672,_0x2fd4ff=this[_0x12d504(0x1ce)][_0x12d504(0x1cd)][_0x12d504(0x1c3)][_0x12d504(0x1c1)][_0x12d504(0x1c5)]();this[_0x12d504(0x1ce)][_0x12d504(0x1cd)][_0x12d504(0x1c4)](_0x99f85b=>{const _0x3ffab0=_0x12d504;_0x99f85b[_0x3ffab0(0x1d4)](_0x2d6c2b,_0x2fd4ff),_0x99f85b[_0x3ffab0(0x1c0)](_0x3ffab0(0x1c7),_0x2fd4ff),_0x99f85b[_0x3ffab0(0x1c0)](_0x3ffab0(0x1d1),_0x2fd4ff);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5609(){var _0x4e41fa=['pluginName','2333367myPWxQ','isPremiumPlugin','5YtcfPt','isOfficialPlugin','1721900IWNjWn','8362136uYMRaP','700914ACSjfs','15rpGXlO','7xCKoAZ','requires','713884CcDRXK','9202190HRubDR','1107895nVZCnz','UploadcareImageEdit'];_0x5609=function(){return _0x4e41fa;};return _0x5609();}var _0x2f0bf4=_0x3345;function _0x3345(_0x12d490,_0x5e868b){var _0x56098a=_0x5609();return _0x3345=function(_0x33455a,_0x47287a){_0x33455a=_0x33455a-0x1c6;var _0x374ac3=_0x56098a[_0x33455a];return _0x374ac3;},_0x3345(_0x12d490,_0x5e868b);}(function(_0x40e7bf,_0x4d9c5e){var _0x19459b=_0x3345,_0x2affcc=_0x40e7bf();while(!![]){try{var _0x364b22=parseInt(_0x19459b(0x1cb))/0x1+parseInt(_0x19459b(0x1d2))/0x2+-parseInt(_0x19459b(0x1c6))/0x3*(parseInt(_0x19459b(0x1c9))/0x4)+parseInt(_0x19459b(0x1d0))/0x5*(parseInt(_0x19459b(0x1d4))/0x6)+-parseInt(_0x19459b(0x1c7))/0x7*(parseInt(_0x19459b(0x1d3))/0x8)+-parseInt(_0x19459b(0x1ce))/0x9+parseInt(_0x19459b(0x1ca))/0xa;if(_0x364b22===_0x4d9c5e)break;else _0x2affcc['push'](_0x2affcc['shift']());}catch(_0x54b188){_0x2affcc['push'](_0x2affcc['shift']());}}}(_0x5609,0xc5826));import{Plugin as _0x44dc5e}from'ckeditor5/src/core.js';import _0x283877 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xd56297 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x44dc5e{static get[_0x2f0bf4(0x1cd)](){var _0x141471=_0x2f0bf4;return _0x141471(0x1cc);}static get[_0x2f0bf4(0x1c8)](){return[_0x283877,_0xd56297];}static get[_0x2f0bf4(0x1d1)](){return!0x0;}static get[_0x2f0bf4(0x1cf)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42b3f7=_0x5864;(function(_0x8e98a6,_0x24fc18){const _0x37b5e2=_0x5864,_0x234082=_0x8e98a6();while(!![]){try{const _0x44a173=-parseInt(_0x37b5e2(0xbf))/0x1*(-parseInt(_0x37b5e2(0xab))/0x2)+-parseInt(_0x37b5e2(0x99))/0x3+parseInt(_0x37b5e2(0x8a))/0x4*(parseInt(_0x37b5e2(0x92))/0x5)+parseInt(_0x37b5e2(0x91))/0x6+-parseInt(_0x37b5e2(0x8c))/0x7+-parseInt(_0x37b5e2(0xa5))/0x8*(-parseInt(_0x37b5e2(0x8b))/0x9)+-parseInt(_0x37b5e2(0x9e))/0xa;if(_0x44a173===_0x24fc18)break;else _0x234082['push'](_0x234082['shift']());}catch(_0x32f630){_0x234082['push'](_0x234082['shift']());}}}(_0x10aa,0x90a43));function _0x10aa(){const _0x5dac48=['3633066FLECxi','258320ugfZor','_createMenuBarButtons','has','Replace','push','imageUpload','licenseKey','2563335uCzXHP','uploadcare.uploader.sourceList','afterInit','_showLicenseError','bind','2080520UiNPMe','plugins','shortText','isPremiumPlugin','Uploadcare','_licenseKeyCheckInterval','icon','1211968FhQDgi','editor','expired','withText','destroy','pluginName','34hWpbgm','execute','forEach','uploadcareLicenseKeyDomainLimit','entries','upload','uploadcareLicenseKeyEvaluationLimit','type','UploadcareUI','map','Facebook','GPhotos','uploadcareLicenseKeyExpired','evaluationLimit','featureNotAllowed','_createToolbarButton','trialLimit','label','uploadcareLicenseKeyNotAllowed','url','15468yypGwi','reduce','assetManager','_normalizeConfigSourceList','uploadcareLicenseKeyUsageLimit','registerIntegration','usageLimit','uploadcareLicenseKeyInvalid','_getIntegrationKey','_createButton','uploadcareLicenseKeyTrialLimit','locale','isEnabled','config','isOfficialPlugin','Local','tooltip','uploadcareLicenseKeyValid','invalid','Dropbox','_createDropdownButtons','Insert','domainLimit','isImageSelected','uploadcare','text','OneDrive','ImageInsertUI','GDrive','4CEivuQ','54PkQFIR','1219113FNXxAx','get','URL','commands','init'];_0x10aa=function(){return _0x5dac48;};return _0x10aa();}import{Plugin as _0x36e496,icons as _0x5b2722}from'ckeditor5/src/core.js';import{ButtonView as _0x48b3b8,MenuBarMenuListItemButtonView as _0x1fde0f}from'ckeditor5/src/ui.js';import _0x5c5a31 from'../theme/icons/dropbox.svg';import _0x2463d0 from'../theme/icons/facebook.svg';import _0x129a02 from'../theme/icons/google-drive.svg';import _0x10514a from'../theme/icons/google-photos.svg';import _0x1a7522 from'../theme/icons/link.svg';import _0x6ba5ef from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x1a7bca}from'./uploadcareconfig.js';import{getTranslation as _0x2c409b}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x5864(_0x45e1c5,_0x46ae04){const _0x10aa7f=_0x10aa();return _0x5864=function(_0x586403,_0xe9616a){_0x586403=_0x586403-0x89;let _0x51ec97=_0x10aa7f[_0x586403];return _0x51ec97;},_0x5864(_0x45e1c5,_0x46ae04);}import'../theme/uploadcareimageedit.css';export default class e extends _0x36e496{static get[_0x42b3f7(0xaa)](){const _0x2e7ed2=_0x42b3f7;return _0x2e7ed2(0xb3);}static get[_0x42b3f7(0xcd)](){return!0x0;}static get[_0x42b3f7(0xa1)](){return!0x0;}[_0x42b3f7(0x90)](){const _0x2dbb77=_0x42b3f7;this[_0x2dbb77(0x98)]=this[_0x2dbb77(0xa6)][_0x2dbb77(0xcc)][_0x2dbb77(0x8d)](_0x2dbb77(0x98));const _0x23ca14=this[_0x2dbb77(0xa6)];this[_0x2dbb77(0xa3)]=setInterval(()=>{const _0x188730=_0x2dbb77;let _0x2f2aef;for(const _0x419d4a in _0x23ca14){const _0x3f8cb2=_0x419d4a,_0x46e7f3=_0x23ca14[_0x3f8cb2];if(_0x188730(0xd0)==_0x46e7f3||_0x188730(0xc6)==_0x46e7f3||_0x188730(0xb7)==_0x46e7f3||_0x188730(0xae)==_0x46e7f3||_0x188730(0xbd)==_0x46e7f3||_0x188730(0xb1)==_0x46e7f3||_0x188730(0xc9)==_0x46e7f3||_0x188730(0xc3)==_0x46e7f3){delete _0x23ca14[_0x3f8cb2],_0x2f2aef=_0x46e7f3,clearInterval(this[_0x188730(0xa3)]),this[_0x188730(0xa3)]=void 0x0;break;}}_0x188730(0xc6)==_0x2f2aef&&_0x23ca14[_0x188730(0x9c)](_0x188730(0xd1)),_0x188730(0xb7)==_0x2f2aef&&_0x23ca14[_0x188730(0x9c)](_0x188730(0xa7)),_0x188730(0xae)==_0x2f2aef&&_0x23ca14[_0x188730(0x9c)](_0x188730(0xd5)),_0x188730(0xbd)==_0x2f2aef&&_0x23ca14[_0x188730(0x9c)](_0x188730(0xb9),_0x188730(0xa2)),_0x188730(0xb1)==_0x2f2aef&&_0x23ca14[_0x188730(0x9c)](_0x188730(0xb8)),_0x188730(0xc9)==_0x2f2aef&&_0x23ca14[_0x188730(0x9c)](_0x188730(0xbb)),_0x188730(0xc3)==_0x2f2aef&&_0x23ca14[_0x188730(0x9c)](_0x188730(0xc5));},0x3e8);}[_0x42b3f7(0x9b)](){const _0x2e1b2d=_0x42b3f7,{editor:_0x52a07a}=this,_0x12c0b9=_0x52a07a[_0x2e1b2d(0x8f)][_0x2e1b2d(0x8d)](_0x2e1b2d(0xd7));if(!_0x12c0b9)return;const _0x1bbeec=this[_0x2e1b2d(0xc2)](_0x52a07a[_0x2e1b2d(0xcc)][_0x2e1b2d(0x8d)](_0x2e1b2d(0x9a)))[_0x2e1b2d(0xc0)]((_0xc05542,_0x2879c9)=>{const _0x2082f0=_0x2e1b2d,_0x3c0006=this[_0x2082f0(0xc7)](_0x2879c9[_0x2082f0(0xb2)]);return _0xc05542[_0x3c0006]||(_0xc05542[_0x3c0006]=[]),_0xc05542[_0x3c0006][_0x2082f0(0x96)](_0x2879c9),_0xc05542;},{});_0x52a07a[_0x2e1b2d(0x9f)][_0x2e1b2d(0x94)](_0x2e1b2d(0xda))&&_0x52a07a[_0x2e1b2d(0x8f)][_0x2e1b2d(0x8d)](_0x2e1b2d(0xd7))&&Object[_0x2e1b2d(0xaf)](_0x1bbeec)[_0x2e1b2d(0xad)](([_0x153811,_0x4cd791])=>{const _0x4bdd02=_0x2e1b2d;_0x52a07a[_0x4bdd02(0x9f)][_0x4bdd02(0x8d)](_0x4bdd02(0xda))[_0x4bdd02(0xc4)]({'name':_0x153811,'observable':()=>_0x12c0b9,'buttonViewCreator':()=>this[_0x4bdd02(0xba)](_0x4cd791),'formViewCreator':()=>this[_0x4bdd02(0xd3)](_0x4cd791),'menuBarButtonViewCreator':()=>this[_0x4bdd02(0x93)](_0x4cd791),'override':_0x4bdd02(0xc1)!==_0x153811});});}[_0x42b3f7(0xa9)](){const _0x4fa17d=_0x42b3f7;super[_0x4fa17d(0xa9)](),this[_0x4fa17d(0xa3)]&&clearInterval(this[_0x4fa17d(0xa3)]);}[_0x42b3f7(0xc2)](_0x32709a){const _0x32df18=_0x42b3f7,{locale:_0xbd9ecf}=this[_0x32df18(0xa6)];return _0x32709a[_0x32df18(0xb4)](_0x2a266b=>{const _0x1b2098=_0x32df18,_0x15b011=_0x2c409b(_0xbd9ecf,_0x2a266b,_0x1b2098(0xd4));switch(_0x2a266b){case _0x1a7bca[_0x1b2098(0xce)]:return{'icon':_0x5b2722[_0x1b2098(0x97)],'type':_0x1a7bca[_0x1b2098(0xce)],..._0x15b011};case _0x1a7bca[_0x1b2098(0x8e)]:return{'icon':_0x1a7522,'type':_0x1a7bca[_0x1b2098(0x8e)],..._0x15b011};case _0x1a7bca[_0x1b2098(0xd2)]:return{'icon':_0x5c5a31,'type':_0x1a7bca[_0x1b2098(0xd2)],..._0x15b011};case _0x1a7bca[_0x1b2098(0xb5)]:return{'icon':_0x2463d0,'type':_0x1a7bca[_0x1b2098(0xb5)],..._0x15b011};case _0x1a7bca[_0x1b2098(0x89)]:return{'icon':_0x129a02,'type':_0x1a7bca[_0x1b2098(0x89)],..._0x15b011};case _0x1a7bca[_0x1b2098(0xb6)]:return{'icon':_0x10514a,'type':_0x1a7bca[_0x1b2098(0xb6)],..._0x15b011};case _0x1a7bca[_0x1b2098(0xd9)]:return{'icon':_0x6ba5ef,'type':_0x1a7bca[_0x1b2098(0xd9)],..._0x15b011};}});}[_0x42b3f7(0xc7)](_0x28becc){const _0x2f0df2=_0x42b3f7;switch(_0x28becc){case _0x1a7bca[_0x2f0df2(0xce)]:return _0x2f0df2(0xb0);case _0x1a7bca[_0x2f0df2(0x8e)]:return _0x2f0df2(0xbe);default:return _0x2f0df2(0xc1);}}[_0x42b3f7(0xc8)](_0x3c6d6c,_0x1b2287){const _0x2f9b31=_0x42b3f7,_0x2fe2c6=this[_0x2f9b31(0xa6)],_0x4b4ba6=new _0x3c6d6c(_0x2fe2c6[_0x2f9b31(0xca)]),_0x1a4afd=_0x2fe2c6[_0x2f9b31(0x8f)][_0x2f9b31(0x8d)](_0x2f9b31(0xd7));return _0x4b4ba6[_0x2f9b31(0x9d)](_0x2f9b31(0xcb))['to'](_0x1a4afd),_0x4b4ba6['on'](_0x2f9b31(0xac),()=>{const _0x67a8c9=_0x2f9b31;_0x1a4afd[_0x67a8c9(0xac)](_0x1b2287);}),_0x4b4ba6;}[_0x42b3f7(0xba)](_0x556328){const _0x56d36c=_0x42b3f7,{locale:_0x4bbcdc}=this[_0x56d36c(0xa6)],_0x16069c=this[_0x56d36c(0xa6)][_0x56d36c(0x9f)][_0x56d36c(0x8d)](_0x56d36c(0xda)),_0x2823aa=_0x556328[0x0],_0x398f11=this[_0x56d36c(0xc8)](_0x48b3b8,_0x2823aa[_0x56d36c(0xb2)]);return _0x398f11[_0x56d36c(0xa4)]=_0x2823aa[_0x56d36c(0xa4)],_0x398f11[_0x56d36c(0x9d)](_0x56d36c(0xbc))['to'](_0x16069c,_0x56d36c(0xd6),_0x254c4a=>_0x2c409b(_0x4bbcdc,_0x2823aa[_0x56d36c(0xb2)],_0x254c4a?_0x56d36c(0x95):_0x56d36c(0xd4))[_0x56d36c(0xd8)]),_0x398f11[_0x56d36c(0xcf)]=!0x0,_0x398f11;}[_0x42b3f7(0xd3)](_0x2fc97a){const _0x7aeef1=_0x42b3f7,{locale:_0x3ca3e1}=this[_0x7aeef1(0xa6)],_0xf06539=this[_0x7aeef1(0xa6)][_0x7aeef1(0x9f)][_0x7aeef1(0x8d)](_0x7aeef1(0xda));return _0x2fc97a[_0x7aeef1(0xb4)](_0x49a64d=>{const _0x398390=_0x7aeef1,_0x4061b3=this[_0x398390(0xc8)](_0x48b3b8,_0x49a64d[_0x398390(0xb2)]);return _0x4061b3[_0x398390(0xa8)]=!0x0,_0x4061b3[_0x398390(0xa4)]=_0x49a64d[_0x398390(0xa4)],_0x4061b3[_0x398390(0x9d)](_0x398390(0xbc))['to'](_0xf06539,_0x398390(0xd6),_0x499072=>_0x2c409b(_0x3ca3e1,_0x49a64d[_0x398390(0xb2)],_0x499072?_0x398390(0x95):_0x398390(0xd4))[_0x398390(0xd8)]),_0x4061b3;});}[_0x42b3f7(0x93)](_0x8973fe){const _0x23f7b8=_0x42b3f7;return _0x8973fe[_0x23f7b8(0xb4)](_0x9a4b73=>{const _0x1fbe94=_0x23f7b8,_0x3349ee=this[_0x1fbe94(0xc8)](_0x1fde0f,_0x9a4b73[_0x1fbe94(0xb2)]);return _0x3349ee[_0x1fbe94(0xa4)]=_0x9a4b73[_0x1fbe94(0xa4)],_0x3349ee[_0x1fbe94(0xbc)]=_0x9a4b73[_0x1fbe94(0xa0)],_0x3349ee;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x258a3}from'ckeditor5/src/core.js';import{FileRepository as _0xe86dac}from'ckeditor5/src/upload.js';import _0x33c28a from'./uploadcareediting.js';import _0x3c0b51 from'./utils/uploadutils.js';import{getImageUrls as _0x52d6cf}from'./utils/editingutils.js';export default class f extends _0x258a3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xe86dac,_0x33c28a];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x7f45c8=this['editor'];if(!!!_0x7f45c8['config']['get']('uploadcare'))return;_0x7f45c8['plugins']['get'](_0xe86dac)['createUploadAdapter']=_0x1cfadc=>new E(_0x1cfadc,_0x7f45c8),_0x7f45c8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x438c64,{imageElement:_0x5c9745,data:_0x4b2801})=>{_0x7f45c8['model']['change'](_0x540f0d=>{_0x540f0d['setAttribute']('uploadcareImageId',_0x4b2801['uploadcareImageId'],_0x5c9745);});});}}class E{constructor(_0x29e693,_0x103e80){this['loader']=_0x29e693,this['editor']=_0x103e80,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x46edda=this['editor']['config']['get']('uploadcare.pubkey'),_0x2819f0=await this['loader']['file'];return _0x3c0b51['upload']({'file':_0x2819f0,'publicKey':_0x46edda,'signal':this['controller']['signal'],'onProgress':_0x1d27d0=>{_0x1d27d0&&_0x1d27d0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d27d0['value']);}})['then'](async _0x5d3295=>{const {imageFallbackUrl:_0x371e01,imageSources:_0x1b4dbb}=_0x52d6cf(_0x5d3295['cdnUrl'],_0x5d3295['imageInfo']['width']);return{'uploadcareImageId':_0x5d3295['uuid'],'default':_0x371e01,'sources':_0x1b4dbb};})['catch'](()=>{const _0x3c5e7e=t('Cannot\x20upload\x20file:')+('\x20'+_0x2819f0['name']+'.');return Promise['reject'](_0x3c5e7e);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5a1572}from'../uploadcareconfig.js';export function getTranslation(_0x1396d6,_0x2d22ce,_0x278193){const t=_0x1396d6['t'],_0x16d32a=_0x1396d6['t'];switch(_0x2d22ce){case _0x5a1572['Local']:return{'text':_0x16d32a('Insert'===_0x278193?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x16d32a('From\x20computer')};case _0x5a1572['URL']:return{'text':'Insert'===_0x278193?_0x16d32a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x16d32a('Via\x20URL')};case _0x5a1572['Dropbox']:return{'text':t('Insert'===_0x278193?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5a1572['Facebook']:return{'text':t('Insert'===_0x278193?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5a1572['GDrive']:return{'text':t('Insert'===_0x278193?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5a1572['GPhotos']:return{'text':t('Insert'===_0x278193?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5a1572['OneDrive']:return{'text':t('Insert'===_0x278193?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d22ce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x8f7b70=_0x4678;(function(_0x4f5f4c,_0x4af2d4){var _0x27f210=_0x4678,_0x4311c2=_0x4f5f4c();while(!![]){try{var _0x3041f1=parseInt(_0x27f210(0xb8))/0x1*(-parseInt(_0x27f210(0xbf))/0x2)+parseInt(_0x27f210(0xba))/0x3+parseInt(_0x27f210(0xbc))/0x4*(parseInt(_0x27f210(0xc1))/0x5)+-parseInt(_0x27f210(0xb3))/0x6+-parseInt(_0x27f210(0xbd))/0x7+-parseInt(_0x27f210(0xb9))/0x8*(parseInt(_0x27f210(0xc0))/0x9)+parseInt(_0x27f210(0xb2))/0xa*(parseInt(_0x27f210(0xc5))/0xb);if(_0x3041f1===_0x4af2d4)break;else _0x4311c2['push'](_0x4311c2['shift']());}catch(_0x4a0f63){_0x4311c2['push'](_0x4311c2['shift']());}}}(_0x23a0,0x5c09a));function _0x4678(_0x1e0aa8,_0x2c3b8b){var _0x23a09f=_0x23a0();return _0x4678=function(_0x4678a4,_0x4f6a1b){_0x4678a4=_0x4678a4-0xb2;var _0x1d5a1c=_0x23a09f[_0x4678a4];return _0x1d5a1c;},_0x4678(_0x1e0aa8,_0x2c3b8b);}import{FocusTracker as _0x45b2fa}from'ckeditor5/src/utils.js';import{View as _0x4bc356,FocusCycler as _0x5e5200}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x23a0(){var _0x7985fc=['991758qemzrb','forwardCycle','focusCycler','createCollection','fire','14grWfAf','664ldtYSk','128661gWfODB','focusTracker','16932ItHthJ','1858920Iodyfo','div','40980GmHHtK','55233CFnbUL','730OjyeIY','bindTemplate','true','getFocusableElement','11EAEdbg','9431650wjzhQX'];_0x23a0=function(){return _0x7985fc;};return _0x23a0();}export default class q extends _0x4bc356{constructor(_0x156fb5){var _0x41ea6a=_0x4678;super(_0x156fb5),this[_0x41ea6a(0xbb)]=new _0x45b2fa(),this[_0x41ea6a(0xb5)]=new _0x5e5200({'focusables':this[_0x41ea6a(0xb6)](),'focusTracker':this[_0x41ea6a(0xbb)]});}[_0x8f7b70(0xc4)](){var _0x4558a2=_0x8f7b70;return{'tag':_0x4558a2(0xbe),'attributes':{'aria-hidden':_0x4558a2(0xc3),'tabindex':'0'},'on':{'focus':this[_0x4558a2(0xc2)]['to'](()=>{var _0x1136a5=_0x4558a2;this[_0x1136a5(0xb5)][_0x1136a5(0xb7)](_0x1136a5(0xb4));})}};}}
|