@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251221.0 → 0.0.0-nightly-20251222.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1fff1d=_0x1145;(function(_0x240d6c,_0x4a8e99){const _0x13d75c=_0x1145,_0x51521e=_0x240d6c();while(!![]){try{const _0xc09456=-parseInt(_0x13d75c(0xd5))/0x1+parseInt(_0x13d75c(0xdf))/0x2*(parseInt(_0x13d75c(0xc3))/0x3)+-parseInt(_0x13d75c(0xfd))/0x4*(parseInt(_0x13d75c(0xbb))/0x5)+parseInt(_0x13d75c(0xd0))/0x6+parseInt(_0x13d75c(0xc1))/0x7*(parseInt(_0x13d75c(0xee))/0x8)+parseInt(_0x13d75c(0xb8))/0x9*(parseInt(_0x13d75c(0xdd))/0xa)+parseInt(_0x13d75c(0x100))/0xb*(-parseInt(_0x13d75c(0xdb))/0xc);if(_0xc09456===_0x4a8e99)break;else _0x51521e['push'](_0x51521e['shift']());}catch(_0x49bc39){_0x51521e['push'](_0x51521e['shift']());}}}(_0x36cc,0x5b724));import{Plugin as _0xeed6ab}from'ckeditor5/src/core.js';import{Dialog as _0x35eed4}from'ckeditor5/src/ui.js';import{createElement as _0x168b40,global as _0x544fc2,uid as _0x17bfc5}from'ckeditor5/src/utils.js';function _0x1145(_0x1dae1f,_0x4e9f90){const _0x36cc20=_0x36cc();return _0x1145=function(_0x114571,_0x3866b4){_0x114571=_0x114571-0xb8;let _0x3e0d65=_0x36cc20[_0x114571];return _0x3e0d65;},_0x1145(_0x1dae1f,_0x4e9f90);}import{UploadcareCommand as _0x5d2334}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x526c1f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x39f279}from'./utils/editingutils.js';export class UploadcareEditing extends _0xeed6ab{[_0x1fff1d(0x105)]=null;[_0x1fff1d(0x10e)]=null;static get[_0x1fff1d(0x10d)](){const _0x563a1d=_0x1fff1d;return _0x563a1d(0xba);}static get[_0x1fff1d(0xf7)](){const _0x17035e=_0x1fff1d;return[_0x17035e(0x10b),_0x526c1f,_0x35eed4];}static get[_0x1fff1d(0xf6)](){return!0x0;}static get[_0x1fff1d(0xf1)](){return!0x0;}[_0x1fff1d(0xed)];get[_0x1fff1d(0x10c)](){const _0x484fee=_0x1fff1d;return this[_0x484fee(0x105)];}get[_0x1fff1d(0xf8)](){const _0xb25aca=_0x1fff1d;return this[_0xb25aca(0x10e)];}constructor(_0x5c0cf0){const _0xb0acfc=_0x1fff1d;super(_0x5c0cf0),this[_0xb0acfc(0xed)]=_0x17bfc5();}[_0x1fff1d(0xe2)](){const _0x36984f=_0x1fff1d,_0x2bc5bf=this[_0x36984f(0x109)];_0x2bc5bf[_0x36984f(0xdc)][_0x36984f(0xc0)](_0x36984f(0xef),new _0x5d2334(_0x2bc5bf));}[_0x1fff1d(0xff)](){const _0x231814=_0x1fff1d;this[_0x231814(0x107)](),this[_0x231814(0xc9)](),this[_0x231814(0xbc)](),this[_0x231814(0x103)](),this[_0x231814(0xfc)](),this[_0x231814(0xd9)](this[_0x231814(0x109)],_0x231814(0xe3),()=>{const _0x528a54=_0x231814;this[_0x528a54(0x105)]&&(this[_0x528a54(0x105)][_0x528a54(0x101)](),this[_0x528a54(0x105)]=null),this[_0x528a54(0x10e)]&&(this[_0x528a54(0x10e)][_0x528a54(0x101)](),this[_0x528a54(0x10e)]=null);const _0x43c042=_0x544fc2[_0x528a54(0xea)][_0x528a54(0x10a)](_0x528a54(0xe4));_0x43c042&&_0x43c042[_0x528a54(0x101)]();}),async function(_0x4bc63e){const _0x1ed5a1=_0x281bb1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x22b6fb=0x535f8c3a,_0x18e3e6=0x5358f0b2^_0x22b6fb,_0xd4e5c8=window[_0x281bb1([0x44,0x61,0x74,0x65])][_0x281bb1([0x6e,0x6f,0x77])](),_0x2756a0=_0x4bc63e[_0x281bb1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46841b=new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2816e3=>{_0x2756a0[_0x281bb1([0x6f,0x6e,0x63,0x65])](_0x281bb1([0x72,0x65,0x61,0x64,0x79]),_0x2816e3);}),_0x45615b={[_0x281bb1([0x6b,0x74,0x79])]:_0x281bb1([0x45,0x43]),[_0x281bb1([0x75,0x73,0x65])]:_0x281bb1([0x73,0x69,0x67]),[_0x281bb1([0x63,0x72,0x76])]:_0x281bb1([0x50,0x2d,0x32,0x35,0x36]),[_0x281bb1([0x78])]:_0x281bb1([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]),[_0x281bb1([0x79])]:_0x281bb1([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]),[_0x281bb1([0x61,0x6c,0x67])]:_0x281bb1([0x45,0x53,0x32,0x35,0x36])},_0x2ceb8f=_0x2756a0[_0x281bb1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x281bb1([0x67,0x65,0x74])](_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59496f(){let _0x562cf4,_0x1bb5ac=null,_0x1e15dc=null;try{if(_0x2ceb8f==_0x281bb1([0x47,0x50,0x4c]))return _0x281bb1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x562cf4=_0x20b0fe(),!_0x562cf4)return _0x281bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x562cf4[_0x281bb1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e15dc=_0x437077(_0x562cf4[_0x281bb1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x562cf4[_0x281bb1([0x6a,0x74,0x69])])),await _0x5b6178()?_0x1f450b()?_0x1e21a8()?_0x281bb1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5254dc()?(_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x281bb1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bb5ac=_0x4df015(_0x281bb1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x281bb1([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bb5ac=_0x4df015(_0x281bb1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17bb08()):_0x281bb1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x281bb1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x281bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x281bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e21a8(){const _0x19d058=[_0x281bb1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x281bb1([0x74,0x72,0x69,0x61,0x6c])][_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd4e5c8/0x3e8:0xe10*_0x18e3e6;return _0x562cf4[_0x281bb1([0x65,0x78,0x70])]<_0x19d058;}function _0x1f450b(){const _0x14d1d1=_0x562cf4[_0x281bb1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14d1d1&&(!!_0x14d1d1[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x281bb1([0x2a]))||!!_0x14d1d1[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x281bb1([0x55,0x50,0x4c,0x43])));}function _0x5254dc(){const _0x503fa7=_0x1145,_0x5680cf=_0x562cf4[_0x281bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5680cf||0x0==_0x5680cf[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e155c}=new URL(window[_0x281bb1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x503fa7(0xf3)]);if(_0x5680cf[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e155c))return!0x0;const _0x432d69=_0x3e155c[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e]));return _0x5680cf[_0x281bb1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12eb2f=>_0x12eb2f[_0x281bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x281bb1([0x2a])))[_0x281bb1([0x6d,0x61,0x70])](_0x1f4035=>_0x1f4035[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e])))[_0x281bb1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c7e9b=>_0x4c7e9b[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x432d69[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x281bb1([0x6d,0x61,0x70])](_0x428768=>Array(_0x432d69[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x428768[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x281bb1([0x66,0x69,0x6c,0x6c])](_0x428768[0x0]===_0x281bb1([0x2a])?_0x281bb1([0x2a]):'')[_0x281bb1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x428768))[_0x281bb1([0x73,0x6f,0x6d,0x65])](_0xb45c48=>_0x432d69[_0x281bb1([0x65,0x76,0x65,0x72,0x79])]((_0x5ec7a3,_0x303209)=>_0xb45c48[_0x303209]===_0x5ec7a3||_0xb45c48[_0x303209]===_0x281bb1([0x2a])));}function _0x17bb08(){return _0x1bb5ac&&_0x1e15dc?new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c9750,_0x590922)=>{_0x1bb5ac[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x2c9750,_0x590922),_0x1e15dc[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x25c0e4=>{_0x25c0e4!=_0x281bb1([0x56,0x61,0x6c,0x69,0x64])&&_0x2c9750(_0x25c0e4);},_0x590922);}):_0x1bb5ac||_0x1e15dc||_0x281bb1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x437077(_0x22068e,_0x2e81db){return new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e8e62=>{if(_0x1c05cb())return _0x5e8e62(_0x281bb1([0x56,0x61,0x6c,0x69,0x64]));_0x13f77f(),_0x2756a0[_0x281bb1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x281bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bfc73=!0x1;const _0x45d8b4=_0x17bfc5();function _0x564a6c(_0x45c3b2){return!!_0x45c3b2&&(typeof _0x45c3b2===_0x281bb1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45c3b2===_0x281bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45c3b2[_0x281bb1([0x74,0x68,0x65,0x6e])]===_0x281bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45c3b2[_0x281bb1([0x63,0x61,0x74,0x63,0x68])]===_0x281bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b60ff(_0x5d9d11){_0x258277(_0x5d9d11)[_0x281bb1([0x74,0x68,0x65,0x6e])](_0xc1b2ed=>{if(!_0xc1b2ed||_0xc1b2ed[_0x281bb1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x281bb1([0x6f,0x6b]))return _0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e214e(_0x473678(_0x45d8b4+_0x2e81db))!=_0xc1b2ed[_0x281bb1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x281bb1([0x56,0x61,0x6c,0x69,0x64]);})[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x5326d1=>(_0x248938(),_0x5326d1),()=>{const _0xc7bbfc=_0x5a2d92();return null==_0xc7bbfc?(_0x248938(),_0x281bb1([0x56,0x61,0x6c,0x69,0x64])):_0x281bb1(_0xd4e5c8-_0xc7bbfc>(0x7753083a^_0x22b6fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x5e8e62)[_0x281bb1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e8e62(_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x220983=0x536962ba^_0x22b6fb;function _0x248938(){const _0x5f3eca=_0x281bb1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e214e(_0x473678(_0x22068e)),_0x531bb2=_0x1dfcf2(_0x4e214e(window[_0x281bb1([0x4d,0x61,0x74,0x68])][_0x281bb1([0x63,0x65,0x69,0x6c])](_0xd4e5c8/_0x220983)));window[_0x281bb1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x281bb1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f3eca,_0x531bb2);}function _0x5a2d92(){const _0x3f2f06=_0x281bb1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e214e(_0x473678(_0x22068e)),_0x19030b=window[_0x281bb1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x281bb1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f2f06);return _0x19030b?window[_0x281bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dfcf2(_0x19030b),0x10)*_0x220983:null;}function _0x258277(_0x151ec4){return new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cb318,_0x544209)=>{_0x151ec4[_0x281bb1([0x74,0x68,0x65,0x6e])](_0x2cb318,_0x544209),window[_0x281bb1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x544209,0x535e58fa^_0x22b6fb);});}}_0x2756a0[_0x281bb1([0x6f,0x6e])](_0x281bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ba2ea,_0x3c852a)=>{if(_0x3c852a[0x0]!=_0x22068e)return _0x5e8e62(_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c852a[0x1]={..._0x3c852a[0x1],[_0x281bb1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45d8b4};},{[_0x281bb1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x281bb1([0x68,0x69,0x67,0x68])}),_0x2756a0[_0x281bb1([0x6f,0x6e])](_0x281bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1db1b8=>{_0x564a6c(_0x1db1b8[_0x281bb1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bfc73=!0x0,_0x2b60ff(_0x1db1b8[_0x281bb1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x281bb1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x281bb1([0x6c,0x6f,0x77])}),_0x46841b[_0x281bb1([0x74,0x68,0x65,0x6e])](()=>{_0x3bfc73||_0x5e8e62(_0x281bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c05cb(){return _0x2756a0[_0x281bb1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x281bb1([0x76,0x69,0x65,0x77])][_0x281bb1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x281bb1([0x61,0x75,0x74,0x6f]);}function _0x13f77f(){_0x2756a0[_0x281bb1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x281bb1([0x76,0x69,0x65,0x77])][_0x281bb1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x281bb1([0x61,0x75,0x74,0x6f]);}}function _0x4df015(_0x5303d7){const _0x444a4e=[new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e671b=>setTimeout(_0x5e671b,0x5356b2f6^_0x22b6fb)),_0x46841b[_0x281bb1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f2b87=>{let _0x34e001=0x0;_0x2756a0[_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x281bb1([0x6f,0x6e])](_0x281bb1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x397def,_0x7713f4)=>{_0x7713f4[0x0][_0x281bb1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34e001++,_0x34e001==(0x535f89d2^_0x22b6fb)&&(_0x5f2b87(),_0x397def[_0x281bb1([0x6f,0x66,0x66])]());});}))];return window[_0x281bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x281bb1([0x72,0x61,0x63,0x65])](_0x444a4e)[_0x281bb1([0x74,0x68,0x65,0x6e])](()=>_0x5303d7);}async function _0x5e965c(){await _0x46841b,_0x2756a0[_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x281bb1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d641d,_0x2756a0[_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x281bb1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d641d,_0x2756a0[_0x281bb1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x281bb1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38b7d1(_0x289ea0){const _0x3ef740=_0xb54b23();_0x2756a0[_0x3ef740]=_0x281bb1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x289ea0,_0x289ea0!=_0x281bb1([0x56,0x61,0x6c,0x69,0x64])&&_0x5e965c();}function _0xb54b23(){const _0x5d8b4f=window[_0x281bb1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x281bb1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x281bb1([0x6e,0x6f,0x77])]())[_0x281bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x281bb1([0x2e]),'');let _0x30c3dc=_0x281bb1([0x68]);for(let _0x20f398=0x0;_0x20f398<_0x5d8b4f[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20f398+=0x2){let _0x54f7f2=window[_0x281bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d8b4f[_0x281bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20f398,_0x20f398+0x2));_0x54f7f2>=_0x1ed5a1[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54f7f2-=_0x1ed5a1[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30c3dc+=_0x1ed5a1[_0x54f7f2];}return _0x30c3dc;}function _0x20b0fe(){const _0x3f91d9=_0x2ceb8f[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e]));if(0x3!=_0x3f91d9[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa617d4(_0x3f91d9[0x1]);function _0xa617d4(_0x20ae31){const _0x352b2e=_0x458446(_0x20ae31);return _0x352b2e&&_0x405e41()?_0x352b2e:null;function _0x405e41(){const _0x164ffd=_0x352b2e[_0x281bb1([0x6a,0x74,0x69])],_0x1fcc6c=window[_0x281bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x164ffd[_0x281bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x164ffd[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48ae15={..._0x352b2e,[_0x281bb1([0x6a,0x74,0x69])]:_0x164ffd[_0x281bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x164ffd[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48ae15[_0x281bb1([0x76,0x63])],_0x473678(_0x48ae15)==_0x1fcc6c;}}}async function _0x5b6178(){let _0x3b4f5b=!0x0;try{const _0xbb6cad=_0x2ceb8f[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])](_0x281bb1([0x2e])),[_0x53fe91,_0x10cc1f,_0x17af41]=_0xbb6cad;return _0x5c57c8(_0x53fe91),await _0x406289(_0x53fe91,_0x10cc1f,_0x17af41),_0x3b4f5b;}catch{return!0x1;}function _0x5c57c8(_0x1b8bd4){const _0x2073e7=_0x458446(_0x1b8bd4);_0x2073e7&&_0x2073e7[_0x281bb1([0x61,0x6c,0x67])]==_0x281bb1([0x45,0x53,0x32,0x35,0x36])||(_0x3b4f5b=!0x1);}async function _0x406289(_0x26dd0b,_0x44815c,_0x458df0){const _0x14773e=window[_0x281bb1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x281bb1([0x66,0x72,0x6f,0x6d])](_0x10cd0c(_0x458df0),_0x24c48f=>_0x24c48f[_0x281bb1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f4072=new window[(_0x281bb1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x281bb1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26dd0b+_0x281bb1([0x2e])+_0x44815c),_0x5532fd=window[_0x281bb1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x281bb1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5532fd)return;const _0x301064=await _0x5532fd[_0x281bb1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x281bb1([0x6a,0x77,0x6b]),_0x45615b,{[_0x281bb1([0x6e,0x61,0x6d,0x65])]:_0x281bb1([0x45,0x43,0x44,0x53,0x41]),[_0x281bb1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x281bb1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x281bb1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5532fd[_0x281bb1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x281bb1([0x6e,0x61,0x6d,0x65])]:_0x281bb1([0x45,0x43,0x44,0x53,0x41]),[_0x281bb1([0x68,0x61,0x73,0x68])]:{[_0x281bb1([0x6e,0x61,0x6d,0x65])]:_0x281bb1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x301064,_0x14773e,_0x2f4072)||(_0x3b4f5b=!0x1);}}function _0x458446(_0x540fea){return _0x540fea[_0x281bb1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x281bb1([0x65,0x79]))?JSON[_0x281bb1([0x70,0x61,0x72,0x73,0x65])](_0x10cd0c(_0x540fea)):null;}function _0x10cd0c(_0x1982d3){return window[_0x281bb1([0x61,0x74,0x6f,0x62])](_0x1982d3[_0x281bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x281bb1([0x2b]))[_0x281bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x281bb1([0x2f])));}function _0x473678(_0x2a22c5){let _0x390ef3=0x1505;function _0x282950(_0x5b3b65){for(let _0x25ac0c=0x0;_0x25ac0c<_0x5b3b65[_0x281bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25ac0c++){const _0x565411=_0x5b3b65[_0x281bb1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25ac0c);_0x390ef3=(_0x390ef3<<0x5)+_0x390ef3+_0x565411,_0x390ef3&=_0x390ef3;}}function _0x46d97(_0x212331){Array[_0x281bb1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x212331)?_0x212331[_0x281bb1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46d97):_0x212331&&typeof _0x212331==_0x281bb1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x281bb1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x212331)[_0x281bb1([0x73,0x6f,0x72,0x74])]()[_0x281bb1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40cbc3,_0x1cfd10])=>{_0x282950(_0x40cbc3),_0x46d97(_0x1cfd10);}):_0x282950(window[_0x281bb1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x212331));}return _0x46d97(_0x2a22c5),_0x390ef3>>>0x0;}function _0x4e214e(_0x453e66){return _0x453e66[_0x281bb1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x281bb1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x281bb1([0x30]));}function _0x1dfcf2(_0x2c10d8){return _0x2c10d8[_0x281bb1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x281bb1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x281bb1([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d641d(){}function _0x281bb1(_0x245022){const _0x16205d=_0x1145;return _0x245022[_0x16205d(0xe7)](_0x15c2d4=>String[_0x16205d(0xda)](_0x15c2d4))[_0x16205d(0xce)]('');}_0x38b7d1(await _0x59496f());}(this);}[_0x1fff1d(0x107)](){const _0x197867=_0x1fff1d,_0xb67fe6=this[_0x197867(0x109)][_0x197867(0xe0)][_0x197867(0xb9)];_0xb67fe6[_0x197867(0xc2)](_0x197867(0xca))&&_0xb67fe6[_0x197867(0xec)](_0x197867(0xca),{'allowAttributes':[_0x197867(0xd6)]}),_0xb67fe6[_0x197867(0xc2)](_0x197867(0xd8))&&_0xb67fe6[_0x197867(0xec)](_0x197867(0xd8),{'allowAttributes':[_0x197867(0xd6)]});}[_0x1fff1d(0xc9)](){const _0x4a284e=_0x1fff1d,_0x3f94f2=this[_0x4a284e(0x109)];_0x3f94f2[_0x4a284e(0xe8)][_0x4a284e(0x104)](_0x4a284e(0xcd))[_0x4a284e(0xf0)]({'model':_0x4a284e(0xd6),'view':_0x4a284e(0xcc)}),_0x3f94f2[_0x4a284e(0xe8)][_0x4a284e(0x104)](_0x4a284e(0x108))[_0x4a284e(0xc7)]({'model':{'key':_0x4a284e(0xd6),'value':_0x398bf3=>_0x398bf3[_0x4a284e(0xeb)](_0x4a284e(0xcc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2ab721=_0x3f94f2[_0x4a284e(0xdc)][_0x4a284e(0xbe)](_0x4a284e(0x102));_0x2ab721&&this[_0x4a284e(0xd9)](_0x2ab721,_0x4a284e(0xe9),(_0x2ff9a4,[_0x2e27d2,_0x3ca9f8])=>{const _0x7bd4c5=_0x4a284e;_0x2e27d2[_0x7bd4c5(0xcf)](_0x7bd4c5(0xd6),_0x3ca9f8);});}[_0x1fff1d(0xbc)](){const _0xab1f73=_0x1fff1d,_0xc59271=this[_0xab1f73(0x109)][_0xab1f73(0xc6)][_0xab1f73(0xbe)](_0xab1f73(0xcb))||{},_0x14450f=this[_0xab1f73(0x109)][_0xab1f73(0xc6)][_0xab1f73(0xbe)](_0xab1f73(0xfa))||'';this[_0xab1f73(0x105)]=_0x168b40(_0x544fc2[_0xab1f73(0xea)],_0xab1f73(0xc4),{..._0xc59271,'pubkey':_0x14450f,'ctx-name':_0xab1f73(0xd3)+this[_0xab1f73(0xed)],'sourceList':'','imgOnly':_0xab1f73(0xf5),'removeCopyright':_0xab1f73(0xf5),'localeName':this[_0xab1f73(0x109)][_0xab1f73(0x106)][_0xab1f73(0xe1)],'externalSourcesEmbedCss':_0xab1f73(0xd1)}),this[_0xab1f73(0x105)][_0xab1f73(0xbd)]=_0x4851f8=>{const _0x5d7372=_0xab1f73;if(_0x5d7372(0xf2)==_0x4851f8)return _0x5d7372(0xe5);},_0x544fc2[_0xab1f73(0xea)][_0xab1f73(0xf4)][_0xab1f73(0xbf)](this[_0xab1f73(0x105)]);}[_0x1fff1d(0x103)](){const _0x2ff412=_0x1fff1d;this[_0x2ff412(0x10e)]=_0x168b40(_0x544fc2[_0x2ff412(0xea)],_0x2ff412(0xfe),{'ctx-name':_0x2ff412(0xd3)+this[_0x2ff412(0xed)]}),_0x544fc2[_0x2ff412(0xea)][_0x2ff412(0xf4)][_0x2ff412(0xbf)](this[_0x2ff412(0x10e)]);}[_0x1fff1d(0xfc)](){const _0x2e6da2=_0x1fff1d,_0x3f5347=this[_0x2e6da2(0x109)][_0x2e6da2(0xdc)][_0x2e6da2(0xbe)](_0x2e6da2(0xfb));_0x3f5347&&this[_0x2e6da2(0xd9)](_0x3f5347,_0x2e6da2(0xd7),()=>{const _0xccd59e=_0x2e6da2,_0x41f9f5=this[_0xccd59e(0x109)][_0xccd59e(0xe0)][_0xccd59e(0xea)][_0xccd59e(0xd4)][_0xccd59e(0xc8)]();_0x41f9f5&&_0x41f9f5[_0xccd59e(0xeb)](_0xccd59e(0xd6))&&this[_0xccd59e(0x109)][_0xccd59e(0xf9)][_0xccd59e(0xc5)][_0xccd59e(0xe6)](_0xccd59e(0xde),()=>{const _0x339417=_0xccd59e;_0x39f279(this[_0x339417(0x109)],_0x41f9f5);});});const _0x24091b=this[_0x2e6da2(0x109)][_0x2e6da2(0xdc)][_0x2e6da2(0xbe)](_0x2e6da2(0xd2));_0x24091b&&this[_0x2e6da2(0xd9)](_0x24091b,_0x2e6da2(0xd7),()=>{const _0x486cc0=_0x2e6da2,_0x4ea3ac=this[_0x486cc0(0x109)][_0x486cc0(0xe0)][_0x486cc0(0xea)][_0x486cc0(0xd4)][_0x486cc0(0xc8)]();_0x4ea3ac&&_0x4ea3ac[_0x486cc0(0xeb)](_0x486cc0(0xd6))&&this[_0x486cc0(0x109)][_0x486cc0(0xf9)][_0x486cc0(0xc5)][_0x486cc0(0xe6)](_0x486cc0(0xde),()=>{const _0x2f71b4=_0x486cc0;_0x39f279(this[_0x2f71b4(0x109)],_0x4ea3ac);});});}}function _0x36cc(){const _0x4c093f=['685FWQHLb','_initConfig','iconHrefResolver','get','appendChild','add','7MZanUx','isRegistered','21Dpyzcu','uc-config','view','config','elementToAttribute','getSelectedElement','_initConversion','imageBlock','uploadcare.uploader','data-uc-image-id','downcast','join','removeAttribute','428148DNBWQj','\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','uploadcareImageReplace','uploader-','selection','339455YqOuPf','uploadcareImageId','execute','imageInline','listenTo','fromCharCode','634128qJZleR','commands','2616450tJncwo','render','163316QkrUuD','model','contentLanguage','init','destroy','input[uploadcare-file-input]','#uc-icon-arrow-down','once','map','conversion','cleanupImage','document','getAttribute','extend','ucContextId','4596568rKCXXN','uploadcare','attributeToAttribute','isPremiumPlugin','closeMax','href','body','true','isOfficialPlugin','requires','ctxElement','editing','uploadcare.pubkey','insertImage','_initImageProcessingIndicator','740RjppmI','uc-upload-ctx-provider','afterInit','154TJCodO','remove','replaceImageSource','_initCtx','for','_configElement','locale','_initSchema','upcast','editor','querySelector','PictureEditing','configElement','pluginName','_ctxElement','9izvdfp','schema','UploadcareEditing'];_0x36cc=function(){return _0x4c093f;};return _0x36cc();}
|
|
23
|
+
const _0x2bcc45=_0x5039;function _0x5039(_0x4fa908,_0x76ac4d){const _0xf0a149=_0xf0a1();return _0x5039=function(_0x50395b,_0x50d547){_0x50395b=_0x50395b-0xd8;let _0x1347e4=_0xf0a149[_0x50395b];return _0x1347e4;},_0x5039(_0x4fa908,_0x76ac4d);}(function(_0x3069c4,_0x51396a){const _0xf2aaa0=_0x5039,_0xf7799b=_0x3069c4();while(!![]){try{const _0x388711=parseInt(_0xf2aaa0(0x110))/0x1+parseInt(_0xf2aaa0(0xfd))/0x2+-parseInt(_0xf2aaa0(0x128))/0x3+-parseInt(_0xf2aaa0(0x10f))/0x4+parseInt(_0xf2aaa0(0x129))/0x5+-parseInt(_0xf2aaa0(0x123))/0x6+-parseInt(_0xf2aaa0(0x11a))/0x7*(parseInt(_0xf2aaa0(0xee))/0x8);if(_0x388711===_0x51396a)break;else _0xf7799b['push'](_0xf7799b['shift']());}catch(_0x5c5205){_0xf7799b['push'](_0xf7799b['shift']());}}}(_0xf0a1,0xbf7f2));function _0xf0a1(){const _0x204a13=['schema','_ctxElement','ctxElement','uploadcare.pubkey','16YGvLtY','uploadcare','imageInline','getSelectedElement','map','_initImageProcessingIndicator','PictureEditing','closeMax','get','model','body','data-uc-image-id','downcast','UploadcareEditing','locale','1053950isZnSm','extend','uc-upload-ctx-provider','config','_initConfig','execute','render','destroy','insertImage','isPremiumPlugin','isOfficialPlugin','removeAttribute','\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','querySelector','listenTo','conversion','requires','appendChild','5658396NrTxka','1467409VyDjXP','_initCtx','true','pluginName','add','upcast','elementToAttribute','selection','fromCharCode','getAttribute','1167663FgksqU','_initConversion','uploadcareImageReplace','for','uploadcareImageId','cleanupImage','view','isRegistered','afterInit','726726xObrSh','editor','editing','iconHrefResolver','ucContextId','1906158bXhybC','6473550VFNrdE','document','uploader-','attributeToAttribute','_configElement','init','imageBlock','replaceImageSource','commands','uc-config','contentLanguage','input[uploadcare-file-input]','_initSchema','join','remove','href','once','uploadcare.uploader','configElement','#uc-icon-arrow-down'];_0xf0a1=function(){return _0x204a13;};return _0xf0a1();}import{Plugin as _0x5d35e8}from'ckeditor5/src/core.js';import{Dialog as _0x4a8adb}from'ckeditor5/src/ui.js';import{createElement as _0x1fe90e,global as _0x116a7d,uid as _0x5bb9b8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x140935}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x41f79a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3516d4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5d35e8{[_0x2bcc45(0xda)]=null;[_0x2bcc45(0xeb)]=null;static get[_0x2bcc45(0x113)](){const _0x1b0768=_0x2bcc45;return _0x1b0768(0xfb);}static get[_0x2bcc45(0x10d)](){const _0x2e859a=_0x2bcc45;return[_0x2e859a(0xf4),_0x41f79a,_0x4a8adb];}static get[_0x2bcc45(0x107)](){return!0x0;}static get[_0x2bcc45(0x106)](){return!0x0;}[_0x2bcc45(0x127)];get[_0x2bcc45(0xe8)](){const _0x22a7c2=_0x2bcc45;return this[_0x22a7c2(0xda)];}get[_0x2bcc45(0xec)](){const _0x33a797=_0x2bcc45;return this[_0x33a797(0xeb)];}constructor(_0x497dca){const _0x5631a9=_0x2bcc45;super(_0x497dca),this[_0x5631a9(0x127)]=_0x5bb9b8();}[_0x2bcc45(0xdb)](){const _0x40d4f4=_0x2bcc45,_0x196b07=this[_0x40d4f4(0x124)];_0x196b07[_0x40d4f4(0xde)][_0x40d4f4(0x114)](_0x40d4f4(0xef),new _0x140935(_0x196b07));}[_0x2bcc45(0x122)](){const _0x3abadd=_0x2bcc45;this[_0x3abadd(0xe2)](),this[_0x3abadd(0x11b)](),this[_0x3abadd(0x101)](),this[_0x3abadd(0x111)](),this[_0x3abadd(0xf3)](),this[_0x3abadd(0x10b)](this[_0x3abadd(0x124)],_0x3abadd(0x104),()=>{const _0x4368f1=_0x3abadd;this[_0x4368f1(0xda)]&&(this[_0x4368f1(0xda)][_0x4368f1(0xe4)](),this[_0x4368f1(0xda)]=null),this[_0x4368f1(0xeb)]&&(this[_0x4368f1(0xeb)][_0x4368f1(0xe4)](),this[_0x4368f1(0xeb)]=null);const _0x2aeb91=_0x116a7d[_0x4368f1(0x12a)][_0x4368f1(0x10a)](_0x4368f1(0xe1));_0x2aeb91&&_0x2aeb91[_0x4368f1(0xe4)]();}),async function(_0x2574c7){const _0x5a704a=_0x1e94cd([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2973ba=0x535f8c3a,_0x31e6f2=0x5358f09a^_0x2973ba,_0x239106=window[_0x1e94cd([0x44,0x61,0x74,0x65])][_0x1e94cd([0x6e,0x6f,0x77])](),_0x15a5c7=_0x2574c7[_0x1e94cd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1be300=new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40edd3=>{_0x15a5c7[_0x1e94cd([0x6f,0x6e,0x63,0x65])](_0x1e94cd([0x72,0x65,0x61,0x64,0x79]),_0x40edd3);}),_0x4d17f0={[_0x1e94cd([0x6b,0x74,0x79])]:_0x1e94cd([0x45,0x43]),[_0x1e94cd([0x75,0x73,0x65])]:_0x1e94cd([0x73,0x69,0x67]),[_0x1e94cd([0x63,0x72,0x76])]:_0x1e94cd([0x50,0x2d,0x32,0x35,0x36]),[_0x1e94cd([0x78])]:_0x1e94cd([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]),[_0x1e94cd([0x79])]:_0x1e94cd([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]),[_0x1e94cd([0x61,0x6c,0x67])]:_0x1e94cd([0x45,0x53,0x32,0x35,0x36])},_0x2f7e0c=_0x15a5c7[_0x1e94cd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e94cd([0x67,0x65,0x74])](_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b3264(){let _0x554017,_0x934aa7=null,_0x21ec00=null;try{if(_0x2f7e0c==_0x1e94cd([0x47,0x50,0x4c]))return _0x1e94cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x554017=_0x494666(),!_0x554017)return _0x1e94cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x554017[_0x1e94cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21ec00=_0x319c50(_0x554017[_0x1e94cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x554017[_0x1e94cd([0x6a,0x74,0x69])])),await _0x3e8836()?_0x472fd1()?_0x289d63()?_0x1e94cd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bf480()?(_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e94cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x934aa7=_0x3daa64(_0x1e94cd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e94cd([0x74,0x72,0x69,0x61,0x6c])&&(_0x934aa7=_0x3daa64(_0x1e94cd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a5f0d()):_0x1e94cd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e94cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e94cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e94cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x289d63(){const _0x2daddd=[_0x1e94cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e94cd([0x74,0x72,0x69,0x61,0x6c])][_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x239106/0x3e8:0xe10*_0x31e6f2;return _0x554017[_0x1e94cd([0x65,0x78,0x70])]<_0x2daddd;}function _0x472fd1(){const _0x20b425=_0x554017[_0x1e94cd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20b425&&(!!_0x20b425[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94cd([0x2a]))||!!_0x20b425[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94cd([0x55,0x50,0x4c,0x43])));}function _0x3bf480(){const _0x2a97c4=_0x5039,_0x27ab77=_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27ab77||0x0==_0x27ab77[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1bea02}=new URL(window[_0x1e94cd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2a97c4(0xe5)]);if(_0x27ab77[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bea02))return!0x0;const _0x10843e=_0x1bea02[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e]));return _0x27ab77[_0x1e94cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x145ae3=>_0x145ae3[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94cd([0x2a])))[_0x1e94cd([0x6d,0x61,0x70])](_0x498cdc=>_0x498cdc[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e])))[_0x1e94cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb1a25d=>_0xb1a25d[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10843e[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e94cd([0x6d,0x61,0x70])](_0x10bb88=>Array(_0x10843e[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10bb88[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e94cd([0x66,0x69,0x6c,0x6c])](_0x10bb88[0x0]===_0x1e94cd([0x2a])?_0x1e94cd([0x2a]):'')[_0x1e94cd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10bb88))[_0x1e94cd([0x73,0x6f,0x6d,0x65])](_0x4c09f0=>_0x10843e[_0x1e94cd([0x65,0x76,0x65,0x72,0x79])]((_0x45a6a6,_0x335a20)=>_0x4c09f0[_0x335a20]===_0x45a6a6||_0x4c09f0[_0x335a20]===_0x1e94cd([0x2a])));}function _0x2a5f0d(){return _0x934aa7&&_0x21ec00?new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36e0b6,_0x4b7df6)=>{_0x934aa7[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x36e0b6,_0x4b7df6),_0x21ec00[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x2f483d=>{_0x2f483d!=_0x1e94cd([0x56,0x61,0x6c,0x69,0x64])&&_0x36e0b6(_0x2f483d);},_0x4b7df6);}):_0x934aa7||_0x21ec00||_0x1e94cd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x319c50(_0x2859cc,_0x12c2e7){return new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b0664=>{if(_0x29bfcd())return _0x5b0664(_0x1e94cd([0x56,0x61,0x6c,0x69,0x64]));_0x58e367(),_0x15a5c7[_0x1e94cd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e94cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34486d=!0x1;const _0x554afe=_0x5bb9b8();function _0x4765b0(_0x5d5d45){return!!_0x5d5d45&&(typeof _0x5d5d45===_0x1e94cd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d5d45===_0x1e94cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d5d45[_0x1e94cd([0x74,0x68,0x65,0x6e])]===_0x1e94cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d5d45[_0x1e94cd([0x63,0x61,0x74,0x63,0x68])]===_0x1e94cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45a6a0(_0x422c59){_0xdfce53(_0x422c59)[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x36f13f=>{if(!_0x36f13f||_0x36f13f[_0x1e94cd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e94cd([0x6f,0x6b]))return _0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e804c(_0x38acd1(_0x554afe+_0x12c2e7))!=_0x36f13f[_0x1e94cd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e94cd([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x22a27b=>(_0x28ffe2(),_0x22a27b),()=>{const _0x3d3740=_0x396597();return null==_0x3d3740?(_0x28ffe2(),_0x1e94cd([0x56,0x61,0x6c,0x69,0x64])):_0x1e94cd(_0x239106-_0x3d3740>(0x7753083a^_0x2973ba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x5b0664)[_0x1e94cd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b0664(_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b65d8=0x536962ba^_0x2973ba;function _0x28ffe2(){const _0x527a4b=_0x1e94cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e804c(_0x38acd1(_0x2859cc)),_0x41841c=_0x130389(_0x4e804c(window[_0x1e94cd([0x4d,0x61,0x74,0x68])][_0x1e94cd([0x63,0x65,0x69,0x6c])](_0x239106/_0x5b65d8)));window[_0x1e94cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e94cd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x527a4b,_0x41841c);}function _0x396597(){const _0x1160a1=_0x1e94cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e804c(_0x38acd1(_0x2859cc)),_0x25c104=window[_0x1e94cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e94cd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1160a1);return _0x25c104?window[_0x1e94cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x130389(_0x25c104),0x10)*_0x5b65d8:null;}function _0xdfce53(_0x28dac8){return new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ff585,_0x4fd6f8)=>{_0x28dac8[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x4ff585,_0x4fd6f8),window[_0x1e94cd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fd6f8,0x535e58fa^_0x2973ba);});}}_0x15a5c7[_0x1e94cd([0x6f,0x6e])](_0x1e94cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34a434,_0x2f181e)=>{if(_0x2f181e[0x0]!=_0x2859cc)return _0x5b0664(_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f181e[0x1]={..._0x2f181e[0x1],[_0x1e94cd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x554afe};},{[_0x1e94cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e94cd([0x68,0x69,0x67,0x68])}),_0x15a5c7[_0x1e94cd([0x6f,0x6e])](_0x1e94cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x333b81=>{_0x4765b0(_0x333b81[_0x1e94cd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34486d=!0x0,_0x45a6a0(_0x333b81[_0x1e94cd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e94cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e94cd([0x6c,0x6f,0x77])}),_0x1be300[_0x1e94cd([0x74,0x68,0x65,0x6e])](()=>{_0x34486d||_0x5b0664(_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29bfcd(){return _0x15a5c7[_0x1e94cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e94cd([0x76,0x69,0x65,0x77])][_0x1e94cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e94cd([0x61,0x75,0x74,0x6f]);}function _0x58e367(){_0x15a5c7[_0x1e94cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e94cd([0x76,0x69,0x65,0x77])][_0x1e94cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e94cd([0x61,0x75,0x74,0x6f]);}}function _0x3daa64(_0x1d2ad9){const _0x3a1afa=[new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x121618=>setTimeout(_0x121618,0x5356b2f6^_0x2973ba)),_0x1be300[_0x1e94cd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x368530=>{let _0x5f798=0x0;_0x15a5c7[_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e94cd([0x6f,0x6e])](_0x1e94cd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e44a6,_0x38a6c3)=>{_0x38a6c3[0x0][_0x1e94cd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f798++,_0x5f798==(0x535f89d2^_0x2973ba)&&(_0x368530(),_0x3e44a6[_0x1e94cd([0x6f,0x66,0x66])]());});}))];return window[_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e94cd([0x72,0x61,0x63,0x65])](_0x3a1afa)[_0x1e94cd([0x74,0x68,0x65,0x6e])](()=>_0x1d2ad9);}async function _0x3b15e8(){await _0x1be300,_0x15a5c7[_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e94cd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3549,_0x15a5c7[_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e94cd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3549,_0x15a5c7[_0x1e94cd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29fc1a(_0x55cbad){const _0xcce737=_0x4a8c26();_0x15a5c7[_0xcce737]=_0x1e94cd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55cbad,_0x55cbad!=_0x1e94cd([0x56,0x61,0x6c,0x69,0x64])&&_0x3b15e8();}function _0x4a8c26(){const _0x511e6c=window[_0x1e94cd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e94cd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e94cd([0x6e,0x6f,0x77])]())[_0x1e94cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e94cd([0x2e]),'');let _0x2dad56=_0x1e94cd([0x68]);for(let _0x2a8ed1=0x0;_0x2a8ed1<_0x511e6c[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a8ed1+=0x2){let _0xcabb3d=window[_0x1e94cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x511e6c[_0x1e94cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a8ed1,_0x2a8ed1+0x2));_0xcabb3d>=_0x5a704a[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcabb3d-=_0x5a704a[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dad56+=_0x5a704a[_0xcabb3d];}return _0x2dad56;}function _0x494666(){const _0x507fa9=_0x2f7e0c[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e]));if(0x3!=_0x507fa9[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x224bb8(_0x507fa9[0x1]);function _0x224bb8(_0x233e56){const _0x222e58=_0x43830f(_0x233e56);return _0x222e58&&_0x39d883()?_0x222e58:null;function _0x39d883(){const _0x5774cc=_0x222e58[_0x1e94cd([0x6a,0x74,0x69])],_0x5b7576=window[_0x1e94cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5774cc[_0x1e94cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5774cc[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c92c2={..._0x222e58,[_0x1e94cd([0x6a,0x74,0x69])]:_0x5774cc[_0x1e94cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5774cc[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c92c2[_0x1e94cd([0x76,0x63])],_0x38acd1(_0x2c92c2)==_0x5b7576;}}}async function _0x3e8836(){let _0x174000=!0x0;try{const _0x3dbc87=_0x2f7e0c[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e])),[_0x4cbd9c,_0x5c65ec,_0x4e839b]=_0x3dbc87;return _0x2e041e(_0x4cbd9c),await _0x1657c7(_0x4cbd9c,_0x5c65ec,_0x4e839b),_0x174000;}catch{return!0x1;}function _0x2e041e(_0x21ab4b){const _0x2843f2=_0x43830f(_0x21ab4b);_0x2843f2&&_0x2843f2[_0x1e94cd([0x61,0x6c,0x67])]==_0x1e94cd([0x45,0x53,0x32,0x35,0x36])||(_0x174000=!0x1);}async function _0x1657c7(_0x17087e,_0x5bd80b,_0x29e596){const _0x4b88f2=window[_0x1e94cd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e94cd([0x66,0x72,0x6f,0x6d])](_0x5536ff(_0x29e596),_0x47bc7f=>_0x47bc7f[_0x1e94cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b631a=new window[(_0x1e94cd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e94cd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17087e+_0x1e94cd([0x2e])+_0x5bd80b),_0x1c5205=window[_0x1e94cd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e94cd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c5205)return;const _0x5998b5=await _0x1c5205[_0x1e94cd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e94cd([0x6a,0x77,0x6b]),_0x4d17f0,{[_0x1e94cd([0x6e,0x61,0x6d,0x65])]:_0x1e94cd([0x45,0x43,0x44,0x53,0x41]),[_0x1e94cd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e94cd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e94cd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c5205[_0x1e94cd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e94cd([0x6e,0x61,0x6d,0x65])]:_0x1e94cd([0x45,0x43,0x44,0x53,0x41]),[_0x1e94cd([0x68,0x61,0x73,0x68])]:{[_0x1e94cd([0x6e,0x61,0x6d,0x65])]:_0x1e94cd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5998b5,_0x4b88f2,_0x1b631a)||(_0x174000=!0x1);}}function _0x43830f(_0x35e16f){return _0x35e16f[_0x1e94cd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e94cd([0x65,0x79]))?JSON[_0x1e94cd([0x70,0x61,0x72,0x73,0x65])](_0x5536ff(_0x35e16f)):null;}function _0x5536ff(_0xf35a46){return window[_0x1e94cd([0x61,0x74,0x6f,0x62])](_0xf35a46[_0x1e94cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e94cd([0x2b]))[_0x1e94cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e94cd([0x2f])));}function _0x38acd1(_0x882126){let _0x1a11e0=0x1505;function _0x4a1edb(_0x55a260){for(let _0x40bb01=0x0;_0x40bb01<_0x55a260[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40bb01++){const _0x1287d9=_0x55a260[_0x1e94cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40bb01);_0x1a11e0=(_0x1a11e0<<0x5)+_0x1a11e0+_0x1287d9,_0x1a11e0&=_0x1a11e0;}}function _0x1bdf8d(_0x45dbe4){Array[_0x1e94cd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45dbe4)?_0x45dbe4[_0x1e94cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bdf8d):_0x45dbe4&&typeof _0x45dbe4==_0x1e94cd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e94cd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45dbe4)[_0x1e94cd([0x73,0x6f,0x72,0x74])]()[_0x1e94cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33be51,_0x3dc552])=>{_0x4a1edb(_0x33be51),_0x1bdf8d(_0x3dc552);}):_0x4a1edb(window[_0x1e94cd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45dbe4));}return _0x1bdf8d(_0x882126),_0x1a11e0>>>0x0;}function _0x4e804c(_0x2f4d46){return _0x2f4d46[_0x1e94cd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e94cd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e94cd([0x30]));}function _0x130389(_0x5ca04e){return _0x5ca04e[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e94cd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e94cd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3549(){}function _0x1e94cd(_0x2e0d8e){const _0x550028=_0x5039;return _0x2e0d8e[_0x550028(0xf2)](_0x218425=>String[_0x550028(0x118)](_0x218425))[_0x550028(0xe3)]('');}_0x29fc1a(await _0x1b3264());}(this);}[_0x2bcc45(0xe2)](){const _0x524005=_0x2bcc45,_0x3f3fc3=this[_0x524005(0x124)][_0x524005(0xf7)][_0x524005(0xea)];_0x3f3fc3[_0x524005(0x121)](_0x524005(0xdc))&&_0x3f3fc3[_0x524005(0xfe)](_0x524005(0xdc),{'allowAttributes':[_0x524005(0x11e)]}),_0x3f3fc3[_0x524005(0x121)](_0x524005(0xf0))&&_0x3f3fc3[_0x524005(0xfe)](_0x524005(0xf0),{'allowAttributes':[_0x524005(0x11e)]});}[_0x2bcc45(0x11b)](){const _0x4f1697=_0x2bcc45,_0x3d3646=this[_0x4f1697(0x124)];_0x3d3646[_0x4f1697(0x10c)][_0x4f1697(0x11d)](_0x4f1697(0xfa))[_0x4f1697(0xd9)]({'model':_0x4f1697(0x11e),'view':_0x4f1697(0xf9)}),_0x3d3646[_0x4f1697(0x10c)][_0x4f1697(0x11d)](_0x4f1697(0x115))[_0x4f1697(0x116)]({'model':{'key':_0x4f1697(0x11e),'value':_0x54a46a=>_0x54a46a[_0x4f1697(0x119)](_0x4f1697(0xf9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x162850=_0x3d3646[_0x4f1697(0xde)][_0x4f1697(0xf6)](_0x4f1697(0xdd));_0x162850&&this[_0x4f1697(0x10b)](_0x162850,_0x4f1697(0x11f),(_0x19925c,[_0x158001,_0x5ab30e])=>{const _0x20ead2=_0x4f1697;_0x158001[_0x20ead2(0x108)](_0x20ead2(0x11e),_0x5ab30e);});}[_0x2bcc45(0x101)](){const _0x179d04=_0x2bcc45,_0x167224=this[_0x179d04(0x124)][_0x179d04(0x100)][_0x179d04(0xf6)](_0x179d04(0xe7))||{},_0x1b34ed=this[_0x179d04(0x124)][_0x179d04(0x100)][_0x179d04(0xf6)](_0x179d04(0xed))||'';this[_0x179d04(0xda)]=_0x1fe90e(_0x116a7d[_0x179d04(0x12a)],_0x179d04(0xdf),{..._0x167224,'pubkey':_0x1b34ed,'ctx-name':_0x179d04(0xd8)+this[_0x179d04(0x127)],'sourceList':'','imgOnly':_0x179d04(0x112),'removeCopyright':_0x179d04(0x112),'localeName':this[_0x179d04(0x124)][_0x179d04(0xfc)][_0x179d04(0xe0)],'externalSourcesEmbedCss':_0x179d04(0x109)}),this[_0x179d04(0xda)][_0x179d04(0x126)]=_0x216028=>{const _0x676cdf=_0x179d04;if(_0x676cdf(0xf5)==_0x216028)return _0x676cdf(0xe9);},_0x116a7d[_0x179d04(0x12a)][_0x179d04(0xf8)][_0x179d04(0x10e)](this[_0x179d04(0xda)]);}[_0x2bcc45(0x111)](){const _0x3d2e9d=_0x2bcc45;this[_0x3d2e9d(0xeb)]=_0x1fe90e(_0x116a7d[_0x3d2e9d(0x12a)],_0x3d2e9d(0xff),{'ctx-name':_0x3d2e9d(0xd8)+this[_0x3d2e9d(0x127)]}),_0x116a7d[_0x3d2e9d(0x12a)][_0x3d2e9d(0xf8)][_0x3d2e9d(0x10e)](this[_0x3d2e9d(0xeb)]);}[_0x2bcc45(0xf3)](){const _0x176f0d=_0x2bcc45,_0x2aa396=this[_0x176f0d(0x124)][_0x176f0d(0xde)][_0x176f0d(0xf6)](_0x176f0d(0x105));_0x2aa396&&this[_0x176f0d(0x10b)](_0x2aa396,_0x176f0d(0x102),()=>{const _0xd612e=_0x176f0d,_0x5598bc=this[_0xd612e(0x124)][_0xd612e(0xf7)][_0xd612e(0x12a)][_0xd612e(0x117)][_0xd612e(0xf1)]();_0x5598bc&&_0x5598bc[_0xd612e(0x119)](_0xd612e(0x11e))&&this[_0xd612e(0x124)][_0xd612e(0x125)][_0xd612e(0x120)][_0xd612e(0xe6)](_0xd612e(0x103),()=>{const _0x4dd6f0=_0xd612e;_0x3516d4(this[_0x4dd6f0(0x124)],_0x5598bc);});});const _0x4c58e5=this[_0x176f0d(0x124)][_0x176f0d(0xde)][_0x176f0d(0xf6)](_0x176f0d(0x11c));_0x4c58e5&&this[_0x176f0d(0x10b)](_0x4c58e5,_0x176f0d(0x102),()=>{const _0x286f5d=_0x176f0d,_0x47969c=this[_0x286f5d(0x124)][_0x286f5d(0xf7)][_0x286f5d(0x12a)][_0x286f5d(0x117)][_0x286f5d(0xf1)]();_0x47969c&&_0x47969c[_0x286f5d(0x119)](_0x286f5d(0x11e))&&this[_0x286f5d(0x124)][_0x286f5d(0x125)][_0x286f5d(0x120)][_0x286f5d(0xe6)](_0x286f5d(0x103),()=>{const _0x4c0d01=_0x286f5d;_0x3516d4(this[_0x4c0d01(0x124)],_0x47969c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x421bb6,ObservableMixin as _0x3cc757}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x35a0f1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x350966}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x654e49}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1d4fcf}from'../../utils/uploadutils.js';import{getImageUrls as _0x35d1d0,getImageDimension as _0x222a88}from'../../utils/editingutils.js';import{isAncestor as _0x1bf06f}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3cc757(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39b865,_0x4bd06d,_0x251447){super(),this['_editor']=_0x39b865,this['_dialog']=_0x4bd06d,this['_imageElement']=_0x251447,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 _0x1167c6=this['_imageElement'],_0x115064=_0x1167c6['getAttribute']('uploadcareImageId'),_0x18f4e2=_0x1167c6['getAttribute']('src');if(_0x115064)await this['_loadImageInfo'](_0x115064,_0x18f4e2);else{if(this['_imageCache']['has'](_0x18f4e2)){const _0x2e8cbf=this['_imageCache']['get'](_0x18f4e2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e8cbf['url'],this['imageDimension']=_0x2e8cbf['dimension'],this['imageId']=_0x2e8cbf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1240c0}=this['_editor'],t=_0x1240c0['t'],_0x4830e2=new _0x654e49(_0x1240c0,this['imageStatus'],this['_attributes']);_0x4830e2['bind']('status')['to'](this,'imageStatus'),_0x4830e2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4830e2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4830e2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4830e2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x350966,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4830e2,'position':_0x35a0f1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4830e2['focus']();},'onHide':()=>{_0x4830e2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a415e=>!_0x1bf06f(_0x3a415e,_0x4830e2['element'])}});}['_loadImageInfo'](_0x1dfc7a,_0x27bb21){return _0x1d4fcf['getInfo'](_0x1dfc7a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x7f118b=>{const {width:_0x5a29b4,height:_0x56cce9}=_0x7f118b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27bb21,this['imageDimension']={'width':_0x5a29b4,'height':_0x56cce9},this['imageId']=_0x1dfc7a;})['catch'](_0x18b7c7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x18b7c7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x45bd8c,_0x341ac2){return this['_getImageAsFile'](_0x45bd8c)['then'](_0x265a15=>_0x1d4fcf['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x341ac2['signal'],'file':_0x265a15,'onProgress':_0x5d9587=>{_0x5d9587&&_0x5d9587['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5d9587['value']));}}))['then'](_0x1cc907=>{const {width:_0x40ea5d,height:_0x4f5cdd}=_0x1cc907['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cc907['cdnUrl'],this['imageDimension']={'width':_0x40ea5d,'height':_0x4f5cdd},this['imageId']=_0x1cc907['uuid'],this['imageUploadProgress']=null;const _0x1e6fa6=_0x45bd8c['getAttribute']('src');this['_imageCache']['set'](_0x1e6fa6,{'id':_0x1cc907['uuid'],'url':_0x1cc907['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5a6b19=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a6b19['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd7f2b8,_0x385d69){_0xd7f2b8['on']('apply',(_0x32dff6,_0x4e7a1b)=>{this['_replaceImage'](_0x385d69,_0x4e7a1b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd7f2b8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd7f2b8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x35d1f6,_0x312975,_0x1ba80e){const _0xc60e6d=this['_editor'],{width:_0x5a6b24,height:_0x4abb97}=_0x222a88(_0x312975,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3a0d4f,imageSources:_0x3a3b66}=_0x35d1d0(_0x312975,_0x5a6b24);_0xc60e6d['model']['change'](_0x3d0216=>{if('$graveyard'===_0x35d1f6['root']['rootName']){_0xc60e6d['execute']('insertImage',{'imageType':_0x35d1f6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x35d1f6['getAttributes']()),'uploadcareImageId':_0x1ba80e,'src':_0x3a0d4f,'sources':_0x3a3b66,'width':_0x5a6b24,'height':_0x4abb97}});const _0x3a7442=_0x35d1f6['getChildren']();_0x35d1f6=_0xc60e6d['model']['document']['selection']['getSelectedElement']();for(const _0x29a7a7 of _0x3a7442)_0x3d0216['append'](_0x3d0216['cloneElement'](_0x29a7a7),_0x35d1f6);}else _0x3d0216['setSelection'](_0x35d1f6,'on'),_0xc60e6d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x35d1f6['getAttributes']()),'uploadcareImageId':_0x1ba80e,'src':_0x3a0d4f,'sources':_0x3a3b66,'width':_0x5a6b24,'height':_0x4abb97},_0x35d1f6);_0x3d0216['setSelection'](_0x35d1f6,'on');});}async['_getImageAsFile'](_0x22b09c){const _0x574bfc=_0x421bb6['window'],_0xe75e9c=_0x421bb6['document']['location']['href'],_0x5c925e=new _0x574bfc['URL'](_0x22b09c['getAttribute']('src'),_0xe75e9c);if('data:'===_0x5c925e['protocol']){const _0x19be32=_0x5c925e['href']['split'](','),_0x57a305=_0x19be32[0x0]['match'](/:(.*?);/)[0x1],_0x39ba6b=_0x57a305['split']('/')[0x1],_0x3de11e=_0x574bfc['atob'](_0x19be32[_0x19be32['length']-0x1]);let _0x223da9=_0x3de11e['length'];const _0x2aa4bf=new _0x574bfc['Uint8Array'](_0x223da9);for(;_0x223da9--;)_0x2aa4bf[_0x223da9]=_0x3de11e['charCodeAt'](_0x223da9);return new _0x574bfc['File']([_0x2aa4bf],'image.'+_0x39ba6b,{'type':_0x57a305});}const _0xb3b2d8=_0x5c925e['href']['split']('/'),_0x1eb1a0=_0xb3b2d8[_0xb3b2d8['length']-0x1],_0x30a447=_0x1eb1a0['split']('.')[0x1];return _0x574bfc['fetch'](_0x5c925e['href'])['then'](_0x49fe39=>_0x49fe39['clone']()['blob']())['then'](_0x460382=>new _0x574bfc['File']([_0x460382],_0x1eb1a0,{'type':'image/'+_0x30a447}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5c7e(_0x4f9f51,_0x1edd29){const _0x27c6d4=_0x27c6();return _0x5c7e=function(_0x5c7e1c,_0x463996){_0x5c7e1c=_0x5c7e1c-0x1d3;let _0xa709f=_0x27c6d4[_0x5c7e1c];return _0xa709f;},_0x5c7e(_0x4f9f51,_0x1edd29);}(function(_0xc28989,_0x4c44eb){const _0x276b7b=_0x5c7e,_0xf3be66=_0xc28989();while(!![]){try{const _0x2014e5=parseInt(_0x276b7b(0x1d5))/0x1+-parseInt(_0x276b7b(0x1d3))/0x2+parseInt(_0x276b7b(0x1e5))/0x3+parseInt(_0x276b7b(0x1e1))/0x4*(-parseInt(_0x276b7b(0x1dd))/0x5)+parseInt(_0x276b7b(0x1d9))/0x6*(parseInt(_0x276b7b(0x1d6))/0x7)+-parseInt(_0x276b7b(0x1e2))/0x8*(parseInt(_0x276b7b(0x1da))/0x9)+-parseInt(_0x276b7b(0x1d4))/0xa*(-parseInt(_0x276b7b(0x1d8))/0xb);if(_0x2014e5===_0x4c44eb)break;else _0xf3be66['push'](_0xf3be66['shift']());}catch(_0x538022){_0xf3be66['push'](_0xf3be66['shift']());}}}(_0x27c6,0x3089c));import{View as _0x3aaf77}from'ckeditor5/src/ui.js';function _0x27c6(){const _0x1bbaf8=['27742ZEtvdV','390ciYSPw','9dUIDZQ','ck-uploadcare-theme','uc-cloud-image-editor','191335ssXUuf','imageSrc','set','uc-light','4bvpVVZ','278416yYfLYD','bindTemplate','image-edit','269493XnGyMO','286714jjCIGh','500FmYFVt','106487zqfJmU','9996wBuCKJ','setTemplate'];_0x27c6=function(){return _0x1bbaf8;};return _0x27c6();}export class UploadcareImageEditFormEditingView extends _0x3aaf77{constructor(_0x81812e,_0x26b28e){const _0x2d765d=_0x5c7e;super(_0x81812e);const _0x237c32=this[_0x2d765d(0x1e3)];this[_0x2d765d(0x1df)](_0x2d765d(0x1de),''),this[_0x2d765d(0x1d7)]({'tag':_0x2d765d(0x1dc),'attributes':{..._0x26b28e,'class':[_0x2d765d(0x1e0),_0x2d765d(0x1db)],'ctx-name':_0x2d765d(0x1e4),'cdn-url':_0x237c32['to'](_0x2d765d(0x1de))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x286186}from'ckeditor5/src/icons.js';import{ButtonView as _0x52f68b,IconView as _0x3bb70e,View as _0x538970}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x538970{constructor(_0x53a0cf){super(_0x53a0cf);const t=_0x53a0cf['t'];this['set']('errorType',null);const _0x52a238=new _0x52f68b(_0x53a0cf);_0x52a238['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x52a238['withText']=!0x0,_0x52a238['class']='ck-button-action',_0x52a238['on']('execute',()=>{this['fire']('retry');}),_0x52a238['bind']('isVisible')['to'](this,'errorType',_0x56887a=>'NotFound'!==_0x56887a);const _0x38fa96=new _0x3bb70e();_0x38fa96['content']=_0x286186,_0x38fa96['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x368dea=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':[_0x38fa96,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x368dea['to']('errorType',_0x186036=>t('NotFound'!==_0x186036?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x52a238]},{'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 _0x45a5da,View as _0x515d86}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x515d86{constructor(_0x3976d2){super(_0x3976d2);const t=_0x3976d2['t'],_0x5f4737=this['bindTemplate'],_0x19b1c8=new _0x45a5da();_0x19b1c8['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':[_0x19b1c8,{'text':_0x5f4737['to']('imageUploadProgress',_0x32627c=>t('Loading\x20image...')+'\x20('+(_0x32627c||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 _0x5bf43b=_0x50cd;(function(_0x5ae133,_0x2403ca){const _0x1453f4=_0x50cd,_0x42edd5=_0x5ae133();while(!![]){try{const _0x52cf0e=parseInt(_0x1453f4(0xa8))/0x1*(parseInt(_0x1453f4(0xbc))/0x2)+-parseInt(_0x1453f4(0xb4))/0x3*(parseInt(_0x1453f4(0xcc))/0x4)+-parseInt(_0x1453f4(0xbd))/0x5*(parseInt(_0x1453f4(0xca))/0x6)+parseInt(_0x1453f4(0x9f))/0x7*(parseInt(_0x1453f4(0xc8))/0x8)+-parseInt(_0x1453f4(0xac))/0x9+parseInt(_0x1453f4(0xa7))/0xa*(-parseInt(_0x1453f4(0xb9))/0xb)+parseInt(_0x1453f4(0xb5))/0xc;if(_0x52cf0e===_0x2403ca)break;else _0x42edd5['push'](_0x42edd5['shift']());}catch(_0x232565){_0x42edd5['push'](_0x42edd5['shift']());}}}(_0x2aa8,0xb0f54));import{View as _0x43beac}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5351eb}from'./uploadcareimageeditformloadingview.js';function _0x2aa8(){const _0x4c11e4=['observe','_editingView','change:status','_addUploadcareImageEditorListeners','ck-uploadcare-form','createCollection','detail','addEventListener','_focusableView','385BQKeuG','element','_setView','render','ck-reset_all-excluded','addMany','once','filter','120knUBAh','2EKuhLt','add','set','div','8102412HjsqQW','disconnect','_addErrorViewListeners','clear','target','cancel','apply','retry','378771dtHNBi','41510244ChHfxI','focus','querySelector','status','1055769nwSrap','_waitForImageEditorComponent','addedNodes','89902ZSSDnK','3011495LHloRu','length','uploading','error','cdnUrl','setTemplate','_items','getFocusableElement','_loadingView','_errorView','toLowerCase','103832SWCiFu','ready','6tjnmeQ','fire','28fcnXhv','uc-cloud-image-editor','nodeName'];_0x2aa8=function(){return _0x4c11e4;};return _0x2aa8();}import{UploadcareImageEditFormErrorView as _0x4af7f9}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1a095c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x489c2c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x50cd(_0x4e96c5,_0x9f4efc){const _0x2aa8af=_0x2aa8();return _0x50cd=function(_0x50cddd,_0x29ef96){_0x50cddd=_0x50cddd-0x99;let _0x48050a=_0x2aa8af[_0x50cddd];return _0x48050a;},_0x50cd(_0x4e96c5,_0x9f4efc);}export class UploadcareImageEditFormView extends _0x489c2c{[_0x5bf43b(0xc3)];[_0x5bf43b(0xc5)];[_0x5bf43b(0xc6)];[_0x5bf43b(0xd0)];[_0x5bf43b(0x9e)];constructor(_0x15d27c,_0x17a427,_0x23abfc){const _0x4a09d5=_0x5bf43b;super(_0x15d27c),this[_0x4a09d5(0xc3)]=this[_0x4a09d5(0x9b)](),this[_0x4a09d5(0xc5)]=new _0x5351eb(_0x15d27c),this[_0x4a09d5(0xc6)]=new _0x4af7f9(_0x15d27c),this[_0x4a09d5(0xd0)]=new _0x1a095c(_0x15d27c,_0x23abfc),this[_0x4a09d5(0x9e)]=new _0x43beac(_0x15d27c),this[_0x4a09d5(0x9e)][_0x4a09d5(0xc2)](this[_0x4a09d5(0xc4)]()),this[_0x4a09d5(0xaa)](_0x4a09d5(0xb8),_0x17a427),this[_0x4a09d5(0xc2)]({'tag':_0x4a09d5(0xab),'attributes':{'class':['ck',_0x4a09d5(0xa3),_0x4a09d5(0x9a)],'tabindex':'-1'},'children':this[_0x4a09d5(0xc3)]}),this[_0x4a09d5(0xa1)](),this[_0x4a09d5(0xa5)](_0x4a09d5(0xa2),()=>{const _0x4d2f5d=_0x4a09d5;this[_0x4d2f5d(0xba)](this[_0x4d2f5d(0xa0)],_0x32479f=>{const _0x314b84=_0x4d2f5d;this[_0x314b84(0x99)](_0x32479f);});}),this['on'](_0x4a09d5(0xd1),()=>{const _0x25b3c7=_0x4a09d5;this[_0x25b3c7(0xa1)]();}),this[_0x4a09d5(0xae)]();}[_0x5bf43b(0xb6)](){const _0x4630ac=_0x5bf43b;this[_0x4630ac(0xa0)][_0x4630ac(0xb6)]();}[_0x5bf43b(0xa1)](){const _0x5ab40e=_0x5bf43b;switch(this[_0x5ab40e(0xc3)][_0x5ab40e(0xaf)](),this[_0x5ab40e(0xb8)]){case _0x5ab40e(0xbf):this[_0x5ab40e(0xc3)][_0x5ab40e(0xa9)](this[_0x5ab40e(0xc5)]);break;case _0x5ab40e(0xc0):this[_0x5ab40e(0xc3)][_0x5ab40e(0xa9)](this[_0x5ab40e(0xc6)]);break;case _0x5ab40e(0xc9):this[_0x5ab40e(0xc3)][_0x5ab40e(0xa4)]([this[_0x5ab40e(0xd0)],this[_0x5ab40e(0x9e)]]);}}[_0x5bf43b(0xba)](_0x786ea9,_0x5858e3){const _0x51fac7=_0x5bf43b,_0x55d99d=_0x51fac7(0xcd),_0x6dbee7=_0x786ea9[_0x51fac7(0xb7)](_0x55d99d);if(_0x6dbee7)return _0x5858e3(_0x6dbee7);const _0x3fa05b=new MutationObserver(_0x5321c2=>{const _0x14737b=_0x51fac7,_0x28eb51=_0x5321c2[_0x14737b(0xa6)](_0x25c083=>_0x25c083[_0x14737b(0xb0)]===_0x786ea9&&_0x25c083[_0x14737b(0xbb)][_0x14737b(0xbe)]>0x0&&_0x25c083[_0x14737b(0xbb)][0x0][_0x14737b(0xce)][_0x14737b(0xc7)]()===_0x55d99d);_0x28eb51[_0x14737b(0xbe)]&&(_0x3fa05b[_0x14737b(0xad)](),_0x5858e3(_0x28eb51[0x0][_0x14737b(0xbb)][0x0]));});_0x3fa05b[_0x51fac7(0xcf)](_0x786ea9,{'childList':!0x0,'subtree':!0x0});}[_0x5bf43b(0x99)](_0x57b26e){const _0x4b3e4a=_0x5bf43b;_0x57b26e[_0x4b3e4a(0x9d)](_0x4b3e4a(0xb2),_0x112e57=>{const _0x167c22=_0x4b3e4a;this[_0x167c22(0xcb)](_0x167c22(0xb2),{'imageSrc':_0x112e57[_0x167c22(0x9c)][_0x167c22(0xc1)]});}),_0x57b26e[_0x4b3e4a(0x9d)](_0x4b3e4a(0xb1),()=>{const _0x524d4b=_0x4b3e4a;this[_0x524d4b(0xcb)](_0x524d4b(0xb1));});}[_0x5bf43b(0xae)](){const _0xcd44f0=_0x5bf43b;this[_0xcd44f0(0xc6)]['on'](_0xcd44f0(0xb3),()=>{const _0x42aa9b=_0xcd44f0;this[_0x42aa9b(0xcb)](_0x42aa9b(0xb3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x417e52=_0x3a00;(function(_0x1156ff,_0x4c40d7){const _0x55098a=_0x3a00,_0x373ce1=_0x1156ff();while(!![]){try{const _0x1671ca=-parseInt(_0x55098a(0x1e2))/0x1*(-parseInt(_0x55098a(0x1e6))/0x2)+-parseInt(_0x55098a(0x1ea))/0x3+-parseInt(_0x55098a(0x1e5))/0x4+-parseInt(_0x55098a(0x1d3))/0x5+-parseInt(_0x55098a(0x1e3))/0x6*(-parseInt(_0x55098a(0x1d2))/0x7)+-parseInt(_0x55098a(0x1e4))/0x8+parseInt(_0x55098a(0x1d0))/0x9;if(_0x1671ca===_0x4c40d7)break;else _0x373ce1['push'](_0x373ce1['shift']());}catch(_0x448019){_0x373ce1['push'](_0x373ce1['shift']());}}}(_0x4acc,0x35f71));import{Command as _0x1a69d1}from'ckeditor5/src/core.js';import{Dialog as _0x21ed66}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x53bf1c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x173a96}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1a69d1{[_0x417e52(0x1db)];static get[_0x417e52(0x1ed)](){return[_0x21ed66];}[_0x417e52(0x1d6)];constructor(_0x53c45d){const _0xfe3be4=_0x417e52;super(_0x53c45d),this[_0xfe3be4(0x1db)]=void 0x0,this[_0xfe3be4(0x1d6)]=_0x173a96(_0x53c45d[_0xfe3be4(0x1eb)][_0xfe3be4(0x1d9)](_0xfe3be4(0x1d7))||[]),this[_0xfe3be4(0x1e9)]({'isActive':!0x1});}[_0x417e52(0x1da)](){const _0x4037bb=_0x417e52,_0xb634d6=this[_0x4037bb(0x1dd)][_0x4037bb(0x1e1)][_0x4037bb(0x1d5)][_0x4037bb(0x1de)][_0x4037bb(0x1d4)]();this[_0x4037bb(0x1dc)]=this[_0x4037bb(0x1d6)](_0xb634d6);}[_0x417e52(0x1e0)](){const _0x103ceb=_0x417e52;this[_0x103ceb(0x1db)]&&(this[_0x103ceb(0x1d8)](_0x103ceb(0x1e7)),this[_0x103ceb(0x1db)]=void 0x0);const _0x387a14=this[_0x103ceb(0x1dd)][_0x103ceb(0x1e1)][_0x103ceb(0x1d5)][_0x103ceb(0x1de)][_0x103ceb(0x1d4)]();_0x387a14&&(_0x387a14['is'](_0x103ceb(0x1d1),_0x103ceb(0x1ee))||_0x387a14['is'](_0x103ceb(0x1d1),_0x103ceb(0x1ec)))&&(this[_0x103ceb(0x1db)]=new _0x53bf1c(this[_0x103ceb(0x1dd)],this[_0x103ceb(0x1dd)][_0x103ceb(0x1df)][_0x103ceb(0x1d9)](_0x21ed66),_0x387a14),this[_0x103ceb(0x1e8)](_0x103ceb(0x1e7))['to'](this[_0x103ceb(0x1db)],_0x103ceb(0x1e7)));}}function _0x3a00(_0x188eca,_0x2f447d){const _0x4accba=_0x4acc();return _0x3a00=function(_0x3a0045,_0x30e307){_0x3a0045=_0x3a0045-0x1d0;let _0x434c93=_0x4accba[_0x3a0045];return _0x434c93;},_0x3a00(_0x188eca,_0x2f447d);}function _0x4acc(){const _0xc18324=['set','562296DCjnYl','config','imageInline','requires','imageBlock','5678532EAsKkx','element','7aKFYza','995965LYXeGm','getSelectedElement','document','_isEditable','uploadcare.allowExternalImagesEditing','unbind','get','refresh','imageEditController','isEnabled','editor','selection','plugins','execute','model','1ZWiIYp','472536dsNaVb','178480lioKQe','635188nCbYyA','158138aUiDcC','isActive','bind'];_0x4acc=function(){return _0xc18324;};return _0x4acc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x397f68=_0x2b97;(function(_0x2460fb,_0x513dac){const _0x5e19e1=_0x2b97,_0x1fbb7b=_0x2460fb();while(!![]){try{const _0x36871b=-parseInt(_0x5e19e1(0x1df))/0x1*(-parseInt(_0x5e19e1(0x1da))/0x2)+-parseInt(_0x5e19e1(0x1e0))/0x3*(parseInt(_0x5e19e1(0x1d6))/0x4)+-parseInt(_0x5e19e1(0x1e4))/0x5*(-parseInt(_0x5e19e1(0x1dc))/0x6)+parseInt(_0x5e19e1(0x1e3))/0x7*(parseInt(_0x5e19e1(0x1e8))/0x8)+parseInt(_0x5e19e1(0x1e2))/0x9+-parseInt(_0x5e19e1(0x1e5))/0xa+-parseInt(_0x5e19e1(0x1d4))/0xb*(-parseInt(_0x5e19e1(0x1de))/0xc);if(_0x36871b===_0x513dac)break;else _0x1fbb7b['push'](_0x1fbb7b['shift']());}catch(_0x194636){_0x1fbb7b['push'](_0x1fbb7b['shift']());}}}(_0x4c0a,0xf0f86));import{Plugin as _0x4356f6}from'ckeditor5/src/core.js';import{Notification as _0x295b61}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x24efea}from'./uploadcareimageeditcommand.js';function _0x2b97(_0xe354f1,_0x2a46a9){const _0x4c0a92=_0x4c0a();return _0x2b97=function(_0x2b97a5,_0x263908){_0x2b97a5=_0x2b97a5-0x1d1;let _0x1484d0=_0x4c0a92[_0x2b97a5];return _0x1484d0;},_0x2b97(_0xe354f1,_0x2a46a9);}import{UploadcareImageReplaceCommand as _0x29fc5c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x24320c}from'../uploadcareediting.js';function _0x4c0a(){const _0x184249=['init','uploadcareImageReplace','12218xjothX','uploadcareImageEdit','1872pxXpmw','isPremiumPlugin','4028964UjAOpA','7NlyhNL','534UfFsvy','commands','7913223dqnadu','368711uhWSdu','1400TxKrlr','2817910CqERFQ','pluginName','requires','184elVtAH','UploadcareImageEditEditing','isOfficialPlugin','add','22JnZPrD','ImageEditing','36484XIVPVA','ImageUtils'];_0x4c0a=function(){return _0x184249;};return _0x4c0a();}export class UploadcareImageEditEditing extends _0x4356f6{static get[_0x397f68(0x1e6)](){const _0x7d838e=_0x397f68;return _0x7d838e(0x1d1);}static get[_0x397f68(0x1e7)](){const _0x1e8bb5=_0x397f68;return[_0x24320c,_0x295b61,_0x1e8bb5(0x1d7),_0x1e8bb5(0x1d5)];}static get[_0x397f68(0x1d2)](){return!0x0;}static get[_0x397f68(0x1dd)](){return!0x0;}[_0x397f68(0x1d8)](){const _0x3d4d41=_0x397f68,{editor:_0x51701b}=this;_0x51701b[_0x3d4d41(0x1e1)][_0x3d4d41(0x1d3)](_0x3d4d41(0x1db),new _0x24efea(_0x51701b)),_0x51701b[_0x3d4d41(0x1e1)][_0x3d4d41(0x1d3)](_0x3d4d41(0x1d9),new _0x29fc5c(_0x51701b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x350d3c}from'ckeditor5/src/core.js';import{ButtonView as _0x5efa7f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4ddb2e}from'ckeditor5/src/icons.js';import{createElement as _0x5ddbf7}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x350d3c{['_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 _0x4ed01b=this['editor'];_0x4ed01b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2488c6=>{const _0x157d2d=_0x4ed01b['commands']['get']('uploadcareImageEdit'),_0x556d60=new _0x5efa7f(_0x2488c6),t=_0x2488c6['t'];return _0x556d60['set']({'icon':_0x4ddb2e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x556d60['bind']('isEnabled')['to'](_0x157d2d),_0x556d60['bind']('isOn')['to'](_0x157d2d,'isActive'),this['listenTo'](_0x556d60,'execute',()=>{_0x4ed01b['execute']('uploadcareImageEdit'),_0x4ed01b['editing']['view']['focus']();}),_0x556d60;}),this['_initConfig']();}['_initConfig'](){const _0x7d3710=_0x5ddbf7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x7d3710),this['listenTo'](this['editor'],'destroy',()=>{_0x7d3710['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d5d4e=_0x90eb;function _0x90eb(_0x51f39,_0x45fc8a){const _0x29d7e6=_0x29d7();return _0x90eb=function(_0x90eb43,_0x44f7c6){_0x90eb43=_0x90eb43-0x1f0;let _0xe35bbc=_0x29d7e6[_0x90eb43];return _0xe35bbc;},_0x90eb(_0x51f39,_0x45fc8a);}(function(_0x570685,_0x17b0ee){const _0x51015e=_0x90eb,_0x18a78d=_0x570685();while(!![]){try{const _0x17b9a1=parseInt(_0x51015e(0x1f8))/0x1*(-parseInt(_0x51015e(0x202))/0x2)+parseInt(_0x51015e(0x200))/0x3*(-parseInt(_0x51015e(0x205))/0x4)+-parseInt(_0x51015e(0x206))/0x5+-parseInt(_0x51015e(0x1f5))/0x6+-parseInt(_0x51015e(0x201))/0x7+parseInt(_0x51015e(0x204))/0x8*(-parseInt(_0x51015e(0x1fc))/0x9)+parseInt(_0x51015e(0x1ff))/0xa;if(_0x17b9a1===_0x17b0ee)break;else _0x18a78d['push'](_0x18a78d['shift']());}catch(_0x5754b0){_0x18a78d['push'](_0x18a78d['shift']());}}}(_0x29d7,0x98b44));function _0x29d7(){const _0x46a2b8=['79371YjAqsn','document','imageBlock','35862660LSWgIL','81xqZxED','7934892XKGmFM','122XvFWij','srcset','472IceOeC','76764omQujk','494135kgMmHl','sizes','execute','removeAttribute','setAttributes','imageInline','selection','refresh','isEnabled','2470980YiTtgW','element','change','4559exEivK','editor','getSelectedElement','model'];_0x29d7=function(){return _0x46a2b8;};return _0x29d7();}import{Command as _0x5ecdb3}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x5ecdb3{[_0x5d5d4e(0x1f3)](){const _0x503631=_0x5d5d4e,_0x2a2ff3=this[_0x503631(0x1f9)][_0x503631(0x1fb)][_0x503631(0x1fd)][_0x503631(0x1f2)][_0x503631(0x1fa)]();this[_0x503631(0x1f4)]=Boolean(_0x2a2ff3&&(_0x2a2ff3['is'](_0x503631(0x1f6),_0x503631(0x1fe))||_0x2a2ff3['is'](_0x503631(0x1f6),_0x503631(0x1f1))));}[_0x5d5d4e(0x208)](_0x409776){const _0x5e0d3e=_0x5d5d4e,_0x38fff3=this[_0x5e0d3e(0x1f9)][_0x5e0d3e(0x1fb)][_0x5e0d3e(0x1fd)][_0x5e0d3e(0x1f2)][_0x5e0d3e(0x1fa)]();this[_0x5e0d3e(0x1f9)][_0x5e0d3e(0x1fb)][_0x5e0d3e(0x1f7)](_0x237975=>{const _0x345002=_0x5e0d3e;_0x237975[_0x345002(0x1f0)](_0x409776,_0x38fff3),_0x237975[_0x345002(0x209)](_0x345002(0x203),_0x38fff3),_0x237975[_0x345002(0x209)](_0x345002(0x207),_0x38fff3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x43ed(_0x45b113,_0x530cee){var _0x34704d=_0x3470();return _0x43ed=function(_0x43ed19,_0x101628){_0x43ed19=_0x43ed19-0xd2;var _0x4af7d8=_0x34704d[_0x43ed19];return _0x4af7d8;},_0x43ed(_0x45b113,_0x530cee);}var _0x204287=_0x43ed;(function(_0x589363,_0x3d9935){var _0x592bc0=_0x43ed,_0x5ba6ee=_0x589363();while(!![]){try{var _0x390ebf=-parseInt(_0x592bc0(0xd8))/0x1*(parseInt(_0x592bc0(0xd2))/0x2)+parseInt(_0x592bc0(0xd7))/0x3*(-parseInt(_0x592bc0(0xdd))/0x4)+-parseInt(_0x592bc0(0xdb))/0x5+parseInt(_0x592bc0(0xd3))/0x6+-parseInt(_0x592bc0(0xdc))/0x7+parseInt(_0x592bc0(0xda))/0x8*(parseInt(_0x592bc0(0xe0))/0x9)+parseInt(_0x592bc0(0xd4))/0xa;if(_0x390ebf===_0x3d9935)break;else _0x5ba6ee['push'](_0x5ba6ee['shift']());}catch(_0x41fdb0){_0x5ba6ee['push'](_0x5ba6ee['shift']());}}}(_0x3470,0x66ccd));import{Plugin as _0x5180ec}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xe3b11}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x4d6339}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5180ec{static get[_0x204287(0xd6)](){var _0x14aedb=_0x204287;return _0x14aedb(0xde);}static get[_0x204287(0xdf)](){return[_0xe3b11,_0x4d6339];}static get[_0x204287(0xd9)](){return!0x0;}static get[_0x204287(0xd5)](){return!0x0;}}function _0x3470(){var _0x1aaf6b=['28341KUoitS','11JuFTgH','isOfficialPlugin','808HpYQeC','997700tfGpDY','3126095sGWzLh','92wDzhNM','UploadcareImageEdit','requires','40095SvNZDq','89048zvAGas','673356WZvIyi','12120580YxzbMi','isPremiumPlugin','pluginName'];_0x3470=function(){return _0x1aaf6b;};return _0x3470();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d8667=_0x4ac8;(function(_0x5edc99,_0x157cc5){const _0x4c0ba7=_0x4ac8,_0x2b1052=_0x5edc99();while(!![]){try{const _0x321b54=parseInt(_0x4c0ba7(0x84))/0x1+-parseInt(_0x4c0ba7(0xa2))/0x2+parseInt(_0x4c0ba7(0x93))/0x3*(parseInt(_0x4c0ba7(0xbe))/0x4)+-parseInt(_0x4c0ba7(0xcd))/0x5+-parseInt(_0x4c0ba7(0xc1))/0x6*(-parseInt(_0x4c0ba7(0xab))/0x7)+parseInt(_0x4c0ba7(0xa4))/0x8*(-parseInt(_0x4c0ba7(0x92))/0x9)+parseInt(_0x4c0ba7(0x88))/0xa*(-parseInt(_0x4c0ba7(0xc8))/0xb);if(_0x321b54===_0x157cc5)break;else _0x2b1052['push'](_0x2b1052['shift']());}catch(_0x7b4eaa){_0x2b1052['push'](_0x2b1052['shift']());}}}(_0xd39e,0xc5bcf));import{Plugin as _0x326976}from'ckeditor5/src/core.js';import{IconDropbox as _0x2a2780,IconFacebook as _0x52f626,IconGoogleDrive as _0x34053e,IconGooglePhotos as _0x334f88,IconUploadcareImageUpload as _0x44ca75,IconUploadcareLink as _0x4a7497,IconOneDrive as _0x41f9b3}from'ckeditor5/src/icons.js';function _0xd39e(){const _0x4d7e3b=['url','GDrive','trialLimit','_createToolbarButton','869emEsPL','isEnabled','invalid','_normalizeConfigSourceList','push','1373175JRcSoz','type','_showLicenseError','isImageSelected','URL','has','Replace','featureNotAllowed','reduce','309202bbPSXb','registerIntegration','_createDropdownButtons','GPhotos','98390aebMrw','label','locale','Local','OneDrive','evaluationLimit','Dropbox','assetManager','destroy','forEach','3996ZwdjdS','6RgqMSQ','_createButton','shortText','uploadcare.uploader.sourceList','Facebook','tooltip','execute','text','licenseKey','_getIntegrationKey','afterInit','domainLimit','uploadcareLicenseKeyTrialLimit','withText','uploadcareLicenseKeyInvalid','346578ILLwKa','uploadcareLicenseKeyUsageLimit','2984vJWHqz','_licenseKeyCheckInterval','UploadcareUI','uploadcareLicenseKeyNotAllowed','expired','usageLimit','uploadcareLicenseKeyValid','28oUeAoC','isPremiumPlugin','upload','pluginName','entries','plugins','editor','config','get','isOfficialPlugin','commands','init','_createMenuBarButtons','icon','Uploadcare','uploadcare','bind','uploadcareLicenseKeyDomainLimit','Insert','2687924RsNqHV','ImageInsertUI','map','821382BunkYr','uploadcareLicenseKeyExpired','uploadcareLicenseKeyEvaluationLimit'];_0xd39e=function(){return _0x4d7e3b;};return _0xd39e();}import{ButtonView as _0x12d755,MenuBarMenuListItemButtonView as _0x3d872d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x10343d}from'./uploadcareconfig.js';import{getTranslation as _0x4fc504}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4ac8(_0x311683,_0x292b64){const _0xd39ee7=_0xd39e();return _0x4ac8=function(_0x4ac861,_0x21177b){_0x4ac861=_0x4ac861-0x7c;let _0x43c159=_0xd39ee7[_0x4ac861];return _0x43c159;},_0x4ac8(_0x311683,_0x292b64);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x326976{[_0x3d8667(0x9b)];[_0x3d8667(0xa5)];static get[_0x3d8667(0xae)](){const _0x1b6b2c=_0x3d8667;return _0x1b6b2c(0xa6);}static get[_0x3d8667(0xb4)](){return!0x0;}static get[_0x3d8667(0xac)](){return!0x0;}[_0x3d8667(0xb6)](){const _0x43320b=_0x3d8667;this[_0x43320b(0x9b)]=this[_0x43320b(0xb1)][_0x43320b(0xb2)][_0x43320b(0xb3)](_0x43320b(0x9b));const _0x42d855=this[_0x43320b(0xb1)];this[_0x43320b(0xa5)]=setInterval(()=>{const _0x3be69c=_0x43320b;let _0x42995e;for(const _0x91e3e4 in _0x42d855){const _0x39f488=_0x91e3e4,_0x358fbe=_0x42d855[_0x39f488];if(_0x3be69c(0xaa)==_0x358fbe||_0x3be69c(0xa1)==_0x358fbe||_0x3be69c(0xc2)==_0x358fbe||_0x3be69c(0xbc)==_0x358fbe||_0x3be69c(0xa7)==_0x358fbe||_0x3be69c(0xc3)==_0x358fbe||_0x3be69c(0x9f)==_0x358fbe||_0x3be69c(0xa3)==_0x358fbe){delete _0x42d855[_0x39f488],_0x42995e=_0x358fbe,clearInterval(this[_0x3be69c(0xa5)]),this[_0x3be69c(0xa5)]=void 0x0;break;}}_0x3be69c(0xa1)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xca)),_0x3be69c(0xc2)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xa8)),_0x3be69c(0xbc)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0x9e)),_0x3be69c(0xa7)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0x82),_0x3be69c(0xb9)),_0x3be69c(0xc3)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0x8d)),_0x3be69c(0x9f)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xc6)),_0x3be69c(0xa3)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xa9));},0x3e8);}[_0x3d8667(0x9d)](){const _0x7fdd48=_0x3d8667,{editor:_0xb69a8f}=this,_0x2fd450=_0xb69a8f[_0x7fdd48(0xb5)][_0x7fdd48(0xb3)](_0x7fdd48(0xba));if(!_0x2fd450)return;const _0x371644=this[_0x7fdd48(0xcb)](_0xb69a8f[_0x7fdd48(0xb2)][_0x7fdd48(0xb3)](_0x7fdd48(0x96)))[_0x7fdd48(0x83)]((_0x3f5ded,_0x5f57de)=>{const _0x510071=_0x7fdd48,_0x1dd4dd=this[_0x510071(0x9c)](_0x5f57de[_0x510071(0x7c)]);return _0x3f5ded[_0x1dd4dd]||(_0x3f5ded[_0x1dd4dd]=[]),_0x3f5ded[_0x1dd4dd][_0x510071(0xcc)](_0x5f57de),_0x3f5ded;},{});_0xb69a8f[_0x7fdd48(0xb0)][_0x7fdd48(0x80)](_0x7fdd48(0xbf))&&_0xb69a8f[_0x7fdd48(0xb5)][_0x7fdd48(0xb3)](_0x7fdd48(0xba))&&Object[_0x7fdd48(0xaf)](_0x371644)[_0x7fdd48(0x91)](([_0x333f1d,_0x2be522])=>{const _0x83455=_0x7fdd48;_0xb69a8f[_0x83455(0xb0)][_0x83455(0xb3)](_0x83455(0xbf))[_0x83455(0x85)]({'name':_0x333f1d,'observable':()=>_0x2fd450,'buttonViewCreator':()=>this[_0x83455(0xc7)](_0x2be522),'formViewCreator':()=>this[_0x83455(0x86)](_0x2be522),'menuBarButtonViewCreator':()=>this[_0x83455(0xb7)](_0x2be522),'override':_0x83455(0x8f)!==_0x333f1d});});}[_0x3d8667(0x90)](){const _0x5c1ee5=_0x3d8667;super[_0x5c1ee5(0x90)](),this[_0x5c1ee5(0xa5)]&&clearInterval(this[_0x5c1ee5(0xa5)]);}[_0x3d8667(0xcb)](_0x27d6cd){const _0x1ea976=_0x3d8667,{locale:_0x73445e}=this[_0x1ea976(0xb1)];return _0x27d6cd[_0x1ea976(0xc0)](_0x5e0c26=>{const _0x222f4d=_0x1ea976,_0x5ab7b1=_0x4fc504(_0x73445e,_0x5e0c26,_0x222f4d(0xbd));switch(_0x5e0c26){case _0x10343d[_0x222f4d(0x8b)]:return{'icon':_0x44ca75,'type':_0x10343d[_0x222f4d(0x8b)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x7f)]:return{'icon':_0x4a7497,'type':_0x10343d[_0x222f4d(0x7f)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x8e)]:return{'icon':_0x2a2780,'type':_0x10343d[_0x222f4d(0x8e)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x97)]:return{'icon':_0x52f626,'type':_0x10343d[_0x222f4d(0x97)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0xc5)]:return{'icon':_0x34053e,'type':_0x10343d[_0x222f4d(0xc5)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x87)]:return{'icon':_0x334f88,'type':_0x10343d[_0x222f4d(0x87)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x8c)]:return{'icon':_0x41f9b3,'type':_0x10343d[_0x222f4d(0x8c)],..._0x5ab7b1};}});}[_0x3d8667(0x9c)](_0x50dd7d){const _0x102cf4=_0x3d8667;switch(_0x50dd7d){case _0x10343d[_0x102cf4(0x8b)]:return _0x102cf4(0xad);case _0x10343d[_0x102cf4(0x7f)]:return _0x102cf4(0xc4);default:return _0x102cf4(0x8f);}}[_0x3d8667(0x94)](_0x51ec42,_0x264ecb){const _0x196a23=_0x3d8667,_0x120919=this[_0x196a23(0xb1)],_0x465309=new _0x51ec42(_0x120919[_0x196a23(0x8a)]),_0x5b2d88=_0x120919[_0x196a23(0xb5)][_0x196a23(0xb3)](_0x196a23(0xba));return _0x465309[_0x196a23(0xbb)](_0x196a23(0xc9))['to'](_0x5b2d88),_0x465309['on'](_0x196a23(0x99),()=>{const _0x40f8d9=_0x196a23;_0x5b2d88[_0x40f8d9(0x99)](_0x264ecb);}),_0x465309;}[_0x3d8667(0xc7)](_0x411392){const _0x2a1c99=_0x3d8667,{locale:_0x1f737a}=this[_0x2a1c99(0xb1)],_0x40de72=this[_0x2a1c99(0xb1)][_0x2a1c99(0xb0)][_0x2a1c99(0xb3)](_0x2a1c99(0xbf)),_0x481247=_0x411392[0x0],_0x27784e=this[_0x2a1c99(0x94)](_0x12d755,_0x481247[_0x2a1c99(0x7c)]);return _0x27784e[_0x2a1c99(0xb8)]=_0x481247[_0x2a1c99(0xb8)],_0x27784e[_0x2a1c99(0xbb)](_0x2a1c99(0x89))['to'](_0x40de72,_0x2a1c99(0x7e),_0x4dae02=>_0x4fc504(_0x1f737a,_0x481247[_0x2a1c99(0x7c)],_0x4dae02?_0x2a1c99(0x81):_0x2a1c99(0xbd))[_0x2a1c99(0x9a)]),_0x27784e[_0x2a1c99(0x98)]=!0x0,_0x27784e;}[_0x3d8667(0x86)](_0x367dda){const _0x4a9ee7=_0x3d8667,{locale:_0x1c4b18}=this[_0x4a9ee7(0xb1)],_0x26ec00=this[_0x4a9ee7(0xb1)][_0x4a9ee7(0xb0)][_0x4a9ee7(0xb3)](_0x4a9ee7(0xbf));return _0x367dda[_0x4a9ee7(0xc0)](_0x53a4e2=>{const _0x4aa88a=_0x4a9ee7,_0xca4613=this[_0x4aa88a(0x94)](_0x12d755,_0x53a4e2[_0x4aa88a(0x7c)]);return _0xca4613[_0x4aa88a(0xa0)]=!0x0,_0xca4613[_0x4aa88a(0xb8)]=_0x53a4e2[_0x4aa88a(0xb8)],_0xca4613[_0x4aa88a(0xbb)](_0x4aa88a(0x89))['to'](_0x26ec00,_0x4aa88a(0x7e),_0x2cf249=>_0x4fc504(_0x1c4b18,_0x53a4e2[_0x4aa88a(0x7c)],_0x2cf249?_0x4aa88a(0x81):_0x4aa88a(0xbd))[_0x4aa88a(0x9a)]),_0xca4613;});}[_0x3d8667(0xb7)](_0x3efcf3){const _0xde8d33=_0x3d8667;return _0x3efcf3[_0xde8d33(0xc0)](_0xb82fd1=>{const _0x503911=_0xde8d33,_0x52638a=this[_0x503911(0x94)](_0x3d872d,_0xb82fd1[_0x503911(0x7c)]);return _0x52638a[_0x503911(0xb8)]=_0xb82fd1[_0x503911(0xb8)],_0x52638a[_0x503911(0x89)]=_0xb82fd1[_0x503911(0x95)],_0x52638a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xc5d4fd}from'ckeditor5/src/core.js';import{FileRepository as _0x44112c}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xa44965}from'./uploadcareediting.js';import{UploadUtils as _0xe677ed}from'./utils/uploadutils.js';import{getImageUrls as _0x47f27b}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xc5d4fd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x44112c,_0xa44965];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x85f8f8=this['editor'];if(!!!_0x85f8f8['config']['get']('uploadcare'))return;_0x85f8f8['plugins']['get'](_0x44112c)['createUploadAdapter']=_0x53d3bc=>new k(_0x53d3bc,_0x85f8f8),_0x85f8f8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x577d19,{imageElement:_0x1a7128,data:_0x4babc0})=>{_0x85f8f8['model']['change'](_0x1f17bc=>{_0x1f17bc['setAttribute']('uploadcareImageId',_0x4babc0['uploadcareImageId'],_0x1a7128);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x15d0d4,_0x1b39c2){this['loader']=_0x15d0d4,this['editor']=_0x1b39c2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x513b1a=await this['loader']['file'];return _0xe677ed['upload']({'file':_0x513b1a,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1cffbf=>{_0x1cffbf&&_0x1cffbf['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1cffbf['value']);}})['then'](async _0xe622a3=>{const {imageFallbackUrl:_0x138058,imageSources:_0x3a4c5e}=_0x47f27b(_0xe622a3['cdnUrl'],_0xe622a3['imageInfo']['width']);return{'uploadcareImageId':_0xe622a3['uuid'],'default':_0x138058,'sources':_0x3a4c5e};})['catch'](()=>{const _0x54461d=t('Cannot\x20upload\x20file:')+('\x20'+_0x513b1a['name']+'.');return Promise['reject'](_0x54461d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x30e7d9}from'../uploadcareconfig.js';export function getTranslation(_0x57e0d7,_0x3eedce,_0x2899e2){const t=_0x57e0d7['t'],_0x4c5e46=_0x57e0d7['t'];switch(_0x3eedce){case _0x30e7d9['Local']:return{'text':_0x4c5e46('Insert'===_0x2899e2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c5e46('From\x20computer')};case _0x30e7d9['URL']:return{'text':'Insert'===_0x2899e2?_0x4c5e46('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c5e46('Via\x20URL')};case _0x30e7d9['Dropbox']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x30e7d9['Facebook']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x30e7d9['GDrive']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x30e7d9['GPhotos']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x30e7d9['OneDrive']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3eedce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x360d(){var _0x117973=['31uAKoPt','createCollection','20CEQQPs','4227665jxTJhi','441WJMeVn','4563438Qktqll','9438654JzzBck','5853KNwxZQ','focusTracker','true','focusCycler','forwardCycle','getFocusableElement','18992808NebPlf','bindTemplate','div','83318ImDyiB','1228VWKEsz','27576KErIOr','7bntkjW','fire'];_0x360d=function(){return _0x117973;};return _0x360d();}function _0x1417(_0x1684c5,_0x3440ff){var _0x360dcf=_0x360d();return _0x1417=function(_0x1417e3,_0x47ea63){_0x1417e3=_0x1417e3-0xb0;var _0x4756f0=_0x360dcf[_0x1417e3];return _0x4756f0;},_0x1417(_0x1684c5,_0x3440ff);}var _0x4d7a80=_0x1417;(function(_0x40c212,_0x1f756c){var _0x51c790=_0x1417,_0x565e2a=_0x40c212();while(!![]){try{var _0x3d966c=-parseInt(_0x51c790(0xbe))/0x1*(-parseInt(_0x51c790(0xb9))/0x2)+parseInt(_0x51c790(0xb0))/0x3*(-parseInt(_0x51c790(0xba))/0x4)+-parseInt(_0x51c790(0xc1))/0x5+parseInt(_0x51c790(0xc4))/0x6*(parseInt(_0x51c790(0xbc))/0x7)+-parseInt(_0x51c790(0xbb))/0x8*(-parseInt(_0x51c790(0xc2))/0x9)+parseInt(_0x51c790(0xc0))/0xa*(parseInt(_0x51c790(0xc3))/0xb)+-parseInt(_0x51c790(0xb6))/0xc;if(_0x3d966c===_0x1f756c)break;else _0x565e2a['push'](_0x565e2a['shift']());}catch(_0x1e5d26){_0x565e2a['push'](_0x565e2a['shift']());}}}(_0x360d,0xcc15d));import{FocusTracker as _0xf9b102}from'ckeditor5/src/utils.js';import{View as _0x9de671,FocusCycler as _0x565aa9}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x9de671{[_0x4d7a80(0xb1)];[_0x4d7a80(0xb3)];constructor(_0x26ce03){var _0x245d6d=_0x4d7a80;super(_0x26ce03),this[_0x245d6d(0xb1)]=new _0xf9b102(),this[_0x245d6d(0xb3)]=new _0x565aa9({'focusables':this[_0x245d6d(0xbf)](),'focusTracker':this[_0x245d6d(0xb1)]});}[_0x4d7a80(0xb5)](){var _0x17f81b=_0x4d7a80;return{'tag':_0x17f81b(0xb8),'attributes':{'aria-hidden':_0x17f81b(0xb2),'tabindex':'0'},'on':{'focus':this[_0x17f81b(0xb7)]['to'](()=>{var _0x452158=_0x17f81b;this[_0x452158(0xb3)][_0x452158(0xbd)](_0x452158(0xb4));})}};}}
|