@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250306.0 → 0.0.0-nightly-20250307.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/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 _0x609de9=_0x503e;(function(_0x4a76ad,_0x1dd22d){const _0x12fb58=_0x503e,_0x45713a=_0x4a76ad();while(!![]){try{const _0x3eb0e5=-parseInt(_0x12fb58(0x155))/0x1+parseInt(_0x12fb58(0x14c))/0x2+-parseInt(_0x12fb58(0x153))/0x3*(parseInt(_0x12fb58(0x14a))/0x4)+parseInt(_0x12fb58(0x120))/0x5+-parseInt(_0x12fb58(0x154))/0x6*(parseInt(_0x12fb58(0x12e))/0x7)+parseInt(_0x12fb58(0x145))/0x8*(parseInt(_0x12fb58(0x13d))/0x9)+-parseInt(_0x12fb58(0x134))/0xa*(-parseInt(_0x12fb58(0x10c))/0xb);if(_0x3eb0e5===_0x1dd22d)break;else _0x45713a['push'](_0x45713a['shift']());}catch(_0x31957f){_0x45713a['push'](_0x45713a['shift']());}}}(_0x5a17,0x4e3ac));import{Plugin as _0x24673d}from'ckeditor5/src/core.js';import{Dialog as _0x550d3b}from'ckeditor5/src/ui.js';import{createElement as _0x247c6a,global as _0x66a62a,uid as _0x295f31}from'ckeditor5/src/utils.js';import _0x58ba62 from'./uploadcarecommand.js';import _0x1775ad from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x45b94e}from'./utils/editingutils.js';function _0x503e(_0x254f69,_0xdfb7a9){const _0x5a1762=_0x5a17();return _0x503e=function(_0x503e43,_0x3d54c4){_0x503e43=_0x503e43-0x105;let _0x1888b9=_0x5a1762[_0x503e43];return _0x1888b9;},_0x503e(_0x254f69,_0xdfb7a9);}export default class i extends _0x24673d{[_0x609de9(0x11f)]=null;[_0x609de9(0x137)]=null;static get[_0x609de9(0x13e)](){const _0x3faa13=_0x609de9;return _0x3faa13(0x121);}static get[_0x609de9(0x12b)](){const _0x39f828=_0x609de9;return[_0x39f828(0x14b),_0x1775ad,_0x550d3b];}static get[_0x609de9(0x116)](){return!0x0;}static get[_0x609de9(0x122)](){return!0x0;}get[_0x609de9(0x108)](){const _0x19cb3b=_0x609de9;return this[_0x19cb3b(0x11f)];}get[_0x609de9(0x151)](){const _0x544ac7=_0x609de9;return this[_0x544ac7(0x137)];}[_0x609de9(0x114)](){const _0xf2937f=_0x609de9,_0x3f7bbc=this[_0xf2937f(0x152)];_0x3f7bbc[_0xf2937f(0x10f)][_0xf2937f(0x123)](_0xf2937f(0x141),new _0x58ba62(_0x3f7bbc));}[_0x609de9(0x144)](){const _0x53981a=_0x609de9;this[_0x53981a(0x138)](),this[_0x53981a(0x13b)](),this[_0x53981a(0x135)](),this[_0x53981a(0x125)](),this[_0x53981a(0x13f)](),this[_0x53981a(0x11c)](this[_0x53981a(0x152)],_0x53981a(0x132),()=>{const _0xf50303=_0x53981a;this[_0xf50303(0x11f)]&&(this[_0xf50303(0x11f)][_0xf50303(0x156)](),this[_0xf50303(0x11f)]=null),this[_0xf50303(0x137)]&&(this[_0xf50303(0x137)][_0xf50303(0x156)](),this[_0xf50303(0x137)]=null);const _0x371d6e=_0x66a62a[_0xf50303(0x126)][_0xf50303(0x159)](_0xf50303(0x12f));_0x371d6e&&_0x371d6e[_0xf50303(0x156)]();}),async function(_0x5a1e53){const _0x1cdf56=_0x2fe2a0([0x6d,0x64,0x49,0x52,0x4b,0x46,0x38,0x73,0x5a,0x42,0x72,0x66,0x50,0x4a,0x79,0x77,0x30,0x47,0x4c,0x63,0x68,0x76,0x6a,0x61,0x39,0x59,0x45,0x65,0x78,0x56,0x62,0x32,0x44,0x58,0x74,0x43,0x71,0x36,0x35,0x70,0x69,0x6b,0x6c,0x53,0x57,0x4d,0x7a,0x6e,0x55,0x54,0x4f,0x67,0x4e,0x48,0x31,0x6f,0x75,0x37,0x51,0x33,0x41,0x34]),_0x38893c=0x16a33eb0,_0x5827d6=0x16a45fe8^_0x38893c,_0x44e670=window[_0x2fe2a0([0x44,0x61,0x74,0x65])][_0x2fe2a0([0x6e,0x6f,0x77])](),_0x164f44=_0x5a1e53[_0x2fe2a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b982f=new window[(_0x2fe2a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19701f=>{_0x164f44[_0x2fe2a0([0x6f,0x6e,0x63,0x65])](_0x2fe2a0([0x72,0x65,0x61,0x64,0x79]),_0x19701f);}),_0x4acda1={[_0x2fe2a0([0x6b,0x74,0x79])]:_0x2fe2a0([0x45,0x43]),[_0x2fe2a0([0x75,0x73,0x65])]:_0x2fe2a0([0x73,0x69,0x67]),[_0x2fe2a0([0x63,0x72,0x76])]:_0x2fe2a0([0x50,0x2d,0x32,0x35,0x36]),[_0x2fe2a0([0x78])]:_0x2fe2a0([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]),[_0x2fe2a0([0x79])]:_0x2fe2a0([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]),[_0x2fe2a0([0x61,0x6c,0x67])]:_0x2fe2a0([0x45,0x53,0x32,0x35,0x36])},_0x4eb723=_0x164f44[_0x2fe2a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fe2a0([0x67,0x65,0x74])](_0x2fe2a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c6227(){let _0xae618d,_0x359af4=null,_0x35f0dc=null;try{if(_0x4eb723==_0x2fe2a0([0x47,0x50,0x4c]))return _0x2fe2a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xae618d=_0x321e64(),!_0xae618d)return _0x2fe2a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xae618d[_0x2fe2a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35f0dc=_0x4d3dc3(_0xae618d[_0x2fe2a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xae618d[_0x2fe2a0([0x6a,0x74,0x69])])),await _0x18e999()?_0x5d8609()?_0x4b6e84()?_0x2fe2a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xab64b4()?(_0xae618d[_0x2fe2a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe2a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x359af4=_0x512602(_0x2fe2a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xae618d[_0x2fe2a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe2a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x359af4=_0x512602(_0x2fe2a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c8b92()):_0x2fe2a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe2a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fe2a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4666ce){return _0x2fe2a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b6e84(){const _0x3f0675=[_0x2fe2a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fe2a0([0x74,0x72,0x69,0x61,0x6c])][_0x2fe2a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xae618d[_0x2fe2a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44e670/0x3e8:0xe10*_0x5827d6;return _0xae618d[_0x2fe2a0([0x65,0x78,0x70])]<_0x3f0675;}function _0x5d8609(){const _0x234653=_0xae618d[_0x2fe2a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x234653&&(!!_0x234653[_0x2fe2a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe2a0([0x2a]))||!!_0x234653[_0x2fe2a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe2a0([0x55,0x50,0x4c,0x43])));}function _0xab64b4(){const _0x133c8e=_0x503e,_0x396976=_0xae618d[_0x2fe2a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x396976||0x0==_0x396976[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c9780}=new URL(window[_0x2fe2a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x133c8e(0x130)]);if(_0x396976[_0x2fe2a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9780))return!0x0;const _0x3858cb=_0x2c9780[_0x2fe2a0([0x73,0x70,0x6c,0x69,0x74])](_0x2fe2a0([0x2e]));return _0x396976[_0x2fe2a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d64d9=>_0x3d64d9[_0x2fe2a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe2a0([0x2a])))[_0x2fe2a0([0x6d,0x61,0x70])](_0x24dc84=>_0x24dc84[_0x2fe2a0([0x73,0x70,0x6c,0x69,0x74])](_0x2fe2a0([0x2e])))[_0x2fe2a0([0x73,0x6f,0x6d,0x65])](_0x54c944=>_0x3858cb[_0x2fe2a0([0x65,0x76,0x65,0x72,0x79])]((_0x18da91,_0x5b189f)=>_0x54c944[_0x5b189f]===_0x18da91||_0x54c944[_0x5b189f]===_0x2fe2a0([0x2a])));}function _0x1c8b92(){return _0x359af4&&_0x35f0dc?new window[(_0x2fe2a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x486305,_0x5488fe)=>{_0x359af4[_0x2fe2a0([0x74,0x68,0x65,0x6e])](_0x486305,_0x5488fe),_0x35f0dc[_0x2fe2a0([0x74,0x68,0x65,0x6e])](_0x582963=>{_0x582963!=_0x2fe2a0([0x56,0x61,0x6c,0x69,0x64])&&_0x486305(_0x582963);},_0x5488fe);}):_0x359af4||_0x35f0dc||_0x2fe2a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d3dc3(_0x2ed826,_0x239b49){return new window[(_0x2fe2a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d1a5b=>{if(_0x56e3bd())return _0x5d1a5b(_0x2fe2a0([0x56,0x61,0x6c,0x69,0x64]));_0x1896c2(),_0x164f44[_0x2fe2a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fe2a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15f006=!0x1;const _0x5be37d=_0x295f31();function _0x32e96f(_0x4972e7){return!!_0x4972e7&&(typeof _0x4972e7===_0x2fe2a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4972e7===_0x2fe2a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4972e7[_0x2fe2a0([0x74,0x68,0x65,0x6e])]===_0x2fe2a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4972e7[_0x2fe2a0([0x63,0x61,0x74,0x63,0x68])]===_0x2fe2a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55b9c3(_0xcf2e46){_0x29430f(_0xcf2e46)[_0x2fe2a0([0x74,0x68,0x65,0x6e])](_0x535fcc=>{if(!_0x535fcc||_0x535fcc[_0x2fe2a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fe2a0([0x6f,0x6b]))return _0x2fe2a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bd629(_0x40b808(_0x5be37d+_0x239b49))!=_0x535fcc[_0x2fe2a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fe2a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe2a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe2a0([0x74,0x68,0x65,0x6e])](_0x4728d4=>(_0x43e9f9(),_0x4728d4),()=>{const _0x4a1045=_0x857e9e();return null==_0x4a1045?(_0x43e9f9(),_0x2fe2a0([0x56,0x61,0x6c,0x69,0x64])):_0x2fe2a0(_0x44e670-_0x4a1045>(0x32afbab0^_0x38893c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe2a0([0x74,0x68,0x65,0x6e])](_0x5d1a5b)[_0x2fe2a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d1a5b(_0x2fe2a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fe967=0x1695d030^_0x38893c;function _0x43e9f9(){const _0x930603=_0x2fe2a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bd629(_0x40b808(_0x2ed826)),_0xcb0a65=_0x1d759c(_0x1bd629(window[_0x2fe2a0([0x4d,0x61,0x74,0x68])][_0x2fe2a0([0x63,0x65,0x69,0x6c])](_0x44e670/_0x4fe967)));window[_0x2fe2a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe2a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x930603,_0xcb0a65);}function _0x857e9e(){const _0xb31e6c=_0x2fe2a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bd629(_0x40b808(_0x2ed826)),_0x1b127a=window[_0x2fe2a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe2a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb31e6c);return _0x1b127a?window[_0x2fe2a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d759c(_0x1b127a),0x10)*_0x4fe967:null;}function _0x29430f(_0x1e4a48){return new window[(_0x2fe2a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49c669,_0x3203b9)=>{_0x1e4a48[_0x2fe2a0([0x74,0x68,0x65,0x6e])](_0x49c669,_0x3203b9),window[_0x2fe2a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3203b9,0x16a2ea70^_0x38893c);});}}_0x164f44[_0x2fe2a0([0x6f,0x6e])](_0x2fe2a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28e36c,_0xd11918)=>{if(_0xd11918[0x0]!=_0x2ed826)return _0x5d1a5b(_0x2fe2a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd11918[0x1]={..._0xd11918[0x1],[_0x2fe2a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5be37d};},{[_0x2fe2a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe2a0([0x68,0x69,0x67,0x68])}),_0x164f44[_0x2fe2a0([0x6f,0x6e])](_0x2fe2a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5562bc=>{_0x32e96f(_0x5562bc[_0x2fe2a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15f006=!0x0,_0x55b9c3(_0x5562bc[_0x2fe2a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fe2a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe2a0([0x6c,0x6f,0x77])}),_0x5b982f[_0x2fe2a0([0x74,0x68,0x65,0x6e])](()=>{_0x15f006||_0x5d1a5b(_0x2fe2a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56e3bd(){return _0x164f44[_0x2fe2a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe2a0([0x76,0x69,0x65,0x77])][_0x2fe2a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fe2a0([0x61,0x75,0x74,0x6f]);}function _0x1896c2(){_0x164f44[_0x2fe2a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe2a0([0x76,0x69,0x65,0x77])][_0x2fe2a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fe2a0([0x61,0x75,0x74,0x6f]);}}function _0x512602(_0x200ae7){const _0x1beccf=[new window[(_0x2fe2a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f664a=>setTimeout(_0x1f664a,0x16aa007c^_0x38893c)),_0x5b982f[_0x2fe2a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fe2a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a870e=>{let _0x1a0f26=0x0;_0x164f44[_0x2fe2a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe2a0([0x6f,0x6e])](_0x2fe2a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d5274,_0x9ab43e)=>{_0x9ab43e[0x0][_0x2fe2a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a0f26++,_0x1a0f26==(0x16a33f48^_0x38893c)&&(_0x2a870e(),_0x5d5274[_0x2fe2a0([0x6f,0x66,0x66])]());});}))];return window[_0x2fe2a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fe2a0([0x72,0x61,0x63,0x65])](_0x1beccf)[_0x2fe2a0([0x74,0x68,0x65,0x6e])](()=>_0x200ae7);}async function _0x45217e(){await _0x5b982f,_0x164f44[_0x2fe2a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe2a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x343eea,_0x164f44[_0x2fe2a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe2a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x343eea,_0x164f44[_0x2fe2a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fe2a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x487a8c(_0x1cdf98){const _0x27b8a2=_0x4b6791();_0x164f44[_0x27b8a2]=_0x2fe2a0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cdf98,_0x1cdf98!=_0x2fe2a0([0x56,0x61,0x6c,0x69,0x64])&&_0x45217e();}function _0x4b6791(){const _0x2dd49c=window[_0x2fe2a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fe2a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fe2a0([0x6e,0x6f,0x77])]())[_0x2fe2a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fe2a0([0x2e]),'');let _0xafcabb=_0x2fe2a0([0x6d]);for(let _0x4112cf=0x0;_0x4112cf<_0x2dd49c[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4112cf+=0x2){let _0x1796d6=window[_0x2fe2a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dd49c[_0x2fe2a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4112cf,_0x4112cf+0x2));_0x1796d6>=_0x1cdf56[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1796d6-=_0x1cdf56[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xafcabb+=_0x1cdf56[_0x1796d6];}return _0xafcabb;}function _0x321e64(){const _0x5c600c=_0x4eb723[_0x2fe2a0([0x73,0x70,0x6c,0x69,0x74])](_0x2fe2a0([0x2e]));if(0x3!=_0x5c600c[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f0fcb(_0x5c600c[0x1]);function _0x4f0fcb(_0x268f04){const _0x24e9b7=_0x2ea9f4(_0x268f04);return _0x24e9b7&&_0x56dcf3()?_0x24e9b7:null;function _0x56dcf3(){const _0x5b1d65=_0x24e9b7[_0x2fe2a0([0x6a,0x74,0x69])],_0x18e3e4=window[_0x2fe2a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b1d65[_0x2fe2a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b1d65[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x364562={..._0x24e9b7,[_0x2fe2a0([0x6a,0x74,0x69])]:_0x5b1d65[_0x2fe2a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b1d65[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x364562[_0x2fe2a0([0x76,0x63])],_0x40b808(_0x364562)==_0x18e3e4;}}}async function _0x18e999(){let _0x3d0a8a=!0x0;try{const _0x2ccc46=_0x4eb723[_0x2fe2a0([0x73,0x70,0x6c,0x69,0x74])](_0x2fe2a0([0x2e])),[_0x1a5036,_0x2e41d1,_0xff2b]=_0x2ccc46;return _0x382bd0(_0x1a5036),await _0x5cd17a(_0x1a5036,_0x2e41d1,_0xff2b),_0x3d0a8a;}catch(_0x329331){return!0x1;}function _0x382bd0(_0xfdd186){const _0xd104cb=_0x2ea9f4(_0xfdd186);_0xd104cb&&_0xd104cb[_0x2fe2a0([0x61,0x6c,0x67])]==_0x2fe2a0([0x45,0x53,0x32,0x35,0x36])||(_0x3d0a8a=!0x1);}async function _0x5cd17a(_0x140903,_0x3d6dea,_0x12adde){const _0x266c63=window[_0x2fe2a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fe2a0([0x66,0x72,0x6f,0x6d])](_0x1e7b7f(_0x12adde),_0x2586af=>_0x2586af[_0x2fe2a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a5eb5=new window[(_0x2fe2a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fe2a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x140903+_0x2fe2a0([0x2e])+_0x3d6dea),_0x4d8b02=window[_0x2fe2a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fe2a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d8b02)return;const _0x5d73b5=await _0x4d8b02[_0x2fe2a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fe2a0([0x6a,0x77,0x6b]),_0x4acda1,{[_0x2fe2a0([0x6e,0x61,0x6d,0x65])]:_0x2fe2a0([0x45,0x43,0x44,0x53,0x41]),[_0x2fe2a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fe2a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fe2a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d8b02[_0x2fe2a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fe2a0([0x6e,0x61,0x6d,0x65])]:_0x2fe2a0([0x45,0x43,0x44,0x53,0x41]),[_0x2fe2a0([0x68,0x61,0x73,0x68])]:{[_0x2fe2a0([0x6e,0x61,0x6d,0x65])]:_0x2fe2a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d73b5,_0x266c63,_0x5a5eb5)||(_0x3d0a8a=!0x1);}}function _0x2ea9f4(_0x2b5e58){return _0x2b5e58[_0x2fe2a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fe2a0([0x65,0x79]))?JSON[_0x2fe2a0([0x70,0x61,0x72,0x73,0x65])](_0x1e7b7f(_0x2b5e58)):null;}function _0x1e7b7f(_0xbc6c60){return window[_0x2fe2a0([0x61,0x74,0x6f,0x62])](_0xbc6c60[_0x2fe2a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fe2a0([0x2b]))[_0x2fe2a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fe2a0([0x2f])));}function _0x40b808(_0x12d165){let _0x35bcea=0x1505;function _0x58c2bd(_0x203d2c){for(let _0x5718d1=0x0;_0x5718d1<_0x203d2c[_0x2fe2a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5718d1++){const _0x101e4a=_0x203d2c[_0x2fe2a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5718d1);_0x35bcea=(_0x35bcea<<0x5)+_0x35bcea+_0x101e4a,_0x35bcea&=_0x35bcea;}}function _0x319018(_0x144643){Array[_0x2fe2a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x144643)?_0x144643[_0x2fe2a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x319018):_0x144643&&typeof _0x144643==_0x2fe2a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fe2a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x144643)[_0x2fe2a0([0x73,0x6f,0x72,0x74])]()[_0x2fe2a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31ed08,_0xa318ce])=>{_0x58c2bd(_0x31ed08),_0x319018(_0xa318ce);}):_0x58c2bd(window[_0x2fe2a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x144643));}return _0x319018(_0x12d165),_0x35bcea>>>0x0;}function _0x1bd629(_0x442002){return _0x442002[_0x2fe2a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fe2a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fe2a0([0x30]));}function _0x1d759c(_0x2c322f){return _0x2c322f[_0x2fe2a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fe2a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fe2a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x343eea(){}function _0x2fe2a0(_0x2821bb){const _0x28fd72=_0x503e;return _0x2821bb[_0x28fd72(0x115)](_0x231e0e=>String[_0x28fd72(0x11e)](_0x231e0e))[_0x28fd72(0x12c)]('');}_0x487a8c(await _0x2c6227());}(this);}[_0x609de9(0x138)](){const _0x4949bd=_0x609de9,_0x329d11=this[_0x4949bd(0x152)][_0x4949bd(0x128)][_0x4949bd(0x106)];_0x329d11[_0x4949bd(0x111)](_0x4949bd(0x14d))&&_0x329d11[_0x4949bd(0x119)](_0x4949bd(0x14d),{'allowAttributes':[_0x4949bd(0x139)]}),_0x329d11[_0x4949bd(0x111)](_0x4949bd(0x10e))&&_0x329d11[_0x4949bd(0x119)](_0x4949bd(0x10e),{'allowAttributes':[_0x4949bd(0x139)]});}[_0x609de9(0x13b)](){const _0x524415=_0x609de9,_0x58444e=this[_0x524415(0x152)];_0x58444e[_0x524415(0x107)][_0x524415(0x150)](_0x524415(0x148))[_0x524415(0x14e)]({'model':_0x524415(0x139),'view':_0x524415(0x146)}),_0x58444e[_0x524415(0x107)][_0x524415(0x150)](_0x524415(0x13c))[_0x524415(0x113)]({'model':{'key':_0x524415(0x139),'value':_0x4f7543=>_0x4f7543[_0x524415(0x112)](_0x524415(0x146))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x362375=_0x58444e[_0x524415(0x10f)][_0x524415(0x149)](_0x524415(0x157));_0x362375&&this[_0x524415(0x11c)](_0x362375,_0x524415(0x136),(_0x35c219,[_0xa327cf,_0x3d45ac])=>{const _0x25931c=_0x524415;_0xa327cf[_0x25931c(0x10d)](_0x25931c(0x139),_0x3d45ac);});}[_0x609de9(0x135)](){const _0x6ae01a=_0x609de9,_0x97a28a=this[_0x6ae01a(0x152)][_0x6ae01a(0x12a)][_0x6ae01a(0x149)](_0x6ae01a(0x143))||{},_0x4653f5=this[_0x6ae01a(0x152)][_0x6ae01a(0x12a)][_0x6ae01a(0x149)](_0x6ae01a(0x14f))||'';this[_0x6ae01a(0x11f)]=_0x247c6a(_0x66a62a[_0x6ae01a(0x126)],_0x6ae01a(0x117),{..._0x97a28a,'pubkey':_0x4653f5,'ctx-name':_0x6ae01a(0x11b),'sourceList':'','imgOnly':_0x6ae01a(0x10a),'removeCopyright':_0x6ae01a(0x10a),'localeName':this[_0x6ae01a(0x152)][_0x6ae01a(0x124)][_0x6ae01a(0x147)],'externalSourcesEmbedCss':_0x6ae01a(0x131)}),this[_0x6ae01a(0x11f)][_0x6ae01a(0x127)]=_0x1a5f56=>{const _0x5bd5cb=_0x6ae01a;if(_0x5bd5cb(0x158)==_0x1a5f56)return _0x5bd5cb(0x11a);},_0x66a62a[_0x6ae01a(0x126)][_0x6ae01a(0x133)][_0x6ae01a(0x13a)](this[_0x6ae01a(0x11f)]);}[_0x609de9(0x125)](){const _0x589eb7=_0x609de9;this[_0x589eb7(0x137)]=_0x247c6a(_0x66a62a[_0x589eb7(0x126)],_0x589eb7(0x10b),{'ctx-name':_0x589eb7(0x11b)}),_0x66a62a[_0x589eb7(0x126)][_0x589eb7(0x133)][_0x589eb7(0x13a)](this[_0x589eb7(0x137)]);}[_0x609de9(0x13f)](){const _0x471127=_0x609de9,_0x2141df=this[_0x471127(0x152)][_0x471127(0x10f)][_0x471127(0x149)](_0x471127(0x110));_0x2141df&&this[_0x471127(0x11c)](_0x2141df,_0x471127(0x142),()=>{const _0xa42790=_0x471127,_0xcc0dcc=this[_0xa42790(0x152)][_0xa42790(0x128)][_0xa42790(0x126)][_0xa42790(0x118)][_0xa42790(0x105)]();_0xcc0dcc&&_0xcc0dcc[_0xa42790(0x112)](_0xa42790(0x139))&&this[_0xa42790(0x152)][_0xa42790(0x11d)][_0xa42790(0x140)][_0xa42790(0x129)](_0xa42790(0x109),()=>{const _0x57fe5a=_0xa42790;_0x45b94e(this[_0x57fe5a(0x152)],_0xcc0dcc);});});const _0x2efd38=this[_0x471127(0x152)][_0x471127(0x10f)][_0x471127(0x149)](_0x471127(0x12d));_0x2efd38&&this[_0x471127(0x11c)](_0x2efd38,_0x471127(0x142),()=>{const _0x494adc=_0x471127,_0x58250d=this[_0x494adc(0x152)][_0x494adc(0x128)][_0x494adc(0x126)][_0x494adc(0x118)][_0x494adc(0x105)]();_0x58250d&&_0x58250d[_0x494adc(0x112)](_0x494adc(0x139))&&this[_0x494adc(0x152)][_0x494adc(0x11d)][_0x494adc(0x140)][_0x494adc(0x129)](_0x494adc(0x109),()=>{const _0x349cb3=_0x494adc;_0x45b94e(this[_0x349cb3(0x152)],_0x58250d);});});}}function _0x5a17(){const _0x32ee6f=['uploadcareImageId','appendChild','_initConversion','upcast','1372968KePIti','pluginName','_initImageProcessingIndicator','view','uploadcare','execute','uploadcare.uploader','afterInit','16loBrHq','data-uc-image-id','contentLanguage','downcast','get','2435144wIxtPo','PictureEditing','688364vswRYp','imageBlock','attributeToAttribute','uploadcare.pubkey','for','ctxElement','editor','3zICIcV','12YhiBgO','597429EEZSYz','remove','replaceImageSource','closeMax','querySelector','getSelectedElement','schema','conversion','configElement','render','true','uc-upload-ctx-provider','11KhtXKo','removeAttribute','imageInline','commands','insertImage','isRegistered','getAttribute','elementToAttribute','init','map','isOfficialPlugin','uc-config','selection','extend','#uc-icon-arrow-down','uploader','listenTo','editing','fromCharCode','_configElement','2210560qVoyPp','UploadcareEditing','isPremiumPlugin','add','locale','_initCtx','document','iconHrefResolver','model','once','config','requires','join','uploadcareImageReplace','255941HCeTYV','input[uploadcare-file-input]','href','\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','destroy','body','5083710NzLgyy','_initConfig','cleanupImage','_ctxElement','_initSchema'];_0x5a17=function(){return _0x32ee6f;};return _0x5a17();}
|
|
23
|
+
function _0xae0c(_0x5c3ec8,_0x485914){const _0x28e227=_0x28e2();return _0xae0c=function(_0xae0c5,_0x15971f){_0xae0c5=_0xae0c5-0x1c8;let _0x1165d0=_0x28e227[_0xae0c5];return _0x1165d0;},_0xae0c(_0x5c3ec8,_0x485914);}const _0x26853e=_0xae0c;(function(_0x2e7ccb,_0x430bce){const _0x4b0c00=_0xae0c,_0x465e14=_0x2e7ccb();while(!![]){try{const _0x3fdb8a=-parseInt(_0x4b0c00(0x1e9))/0x1+-parseInt(_0x4b0c00(0x21a))/0x2+parseInt(_0x4b0c00(0x1fa))/0x3+parseInt(_0x4b0c00(0x1f0))/0x4*(parseInt(_0x4b0c00(0x1dc))/0x5)+parseInt(_0x4b0c00(0x219))/0x6+parseInt(_0x4b0c00(0x1ef))/0x7*(-parseInt(_0x4b0c00(0x1c9))/0x8)+parseInt(_0x4b0c00(0x1ec))/0x9;if(_0x3fdb8a===_0x430bce)break;else _0x465e14['push'](_0x465e14['shift']());}catch(_0x149be4){_0x465e14['push'](_0x465e14['shift']());}}}(_0x28e2,0x45022));import{Plugin as _0x490e9c}from'ckeditor5/src/core.js';import{Dialog as _0x433b5d}from'ckeditor5/src/ui.js';import{createElement as _0x3aedde,global as _0x1b5e9d,uid as _0x44cc2f}from'ckeditor5/src/utils.js';import _0x1b677d from'./uploadcarecommand.js';function _0x28e2(){const _0x576650=['document','configElement','uploadcare','add','elementToAttribute','data-uc-image-id','map','_initSchema','execute','appendChild','1198595YoegIH','upcast','uploader','init','selection','UploadcareEditing','commands','for','get','locale','querySelector','uploadcareImageReplace','afterInit','390265dzugTR','body','_initConversion','3951720YZcJLO','imageInline','requires','53879RcRtiQ','4QayvTG','extend','remove','ctxElement','downcast','fromCharCode','editor','listenTo','imageBlock','isRegistered','1547403njkjUk','iconHrefResolver','config','uc-upload-ctx-provider','editing','cleanupImage','getSelectedElement','pluginName','uc-config','destroy','closeMax','uploadcareImageId','getAttribute','removeAttribute','_configElement','true','join','_initConfig','#uc-icon-arrow-down','conversion','uploadcare.uploader','_ctxElement','model','once','href','PictureEditing','contentLanguage','render','uploadcare.pubkey','attributeToAttribute','replaceImageSource','834654KhDVCr','243992owfrIn','schema','560pSTKWT','isPremiumPlugin','isOfficialPlugin','\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','input[uploadcare-file-input]','_initCtx','insertImage','view','_initImageProcessingIndicator'];_0x28e2=function(){return _0x576650;};return _0x28e2();}import _0x57d27a from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1aa870}from'./utils/editingutils.js';export default class i extends _0x490e9c{[_0x26853e(0x208)]=null;[_0x26853e(0x20f)]=null;static get[_0x26853e(0x201)](){const _0x520a88=_0x26853e;return _0x520a88(0x1e1);}static get[_0x26853e(0x1ee)](){const _0x51fc1d=_0x26853e;return[_0x51fc1d(0x213),_0x57d27a,_0x433b5d];}static get[_0x26853e(0x1cb)](){return!0x0;}static get[_0x26853e(0x1ca)](){return!0x0;}get[_0x26853e(0x1d3)](){const _0x1ce361=_0x26853e;return this[_0x1ce361(0x208)];}get[_0x26853e(0x1f3)](){const _0x161d8a=_0x26853e;return this[_0x161d8a(0x20f)];}[_0x26853e(0x1df)](){const _0x40aa84=_0x26853e,_0x208432=this[_0x40aa84(0x1f6)];_0x208432[_0x40aa84(0x1e2)][_0x40aa84(0x1d5)](_0x40aa84(0x1d4),new _0x1b677d(_0x208432));}[_0x26853e(0x1e8)](){const _0x39c09b=_0x26853e;this[_0x39c09b(0x1d9)](),this[_0x39c09b(0x1eb)](),this[_0x39c09b(0x20b)](),this[_0x39c09b(0x1ce)](),this[_0x39c09b(0x1d1)](),this[_0x39c09b(0x1f7)](this[_0x39c09b(0x1f6)],_0x39c09b(0x203),()=>{const _0x2ab28c=_0x39c09b;this[_0x2ab28c(0x208)]&&(this[_0x2ab28c(0x208)][_0x2ab28c(0x1f2)](),this[_0x2ab28c(0x208)]=null),this[_0x2ab28c(0x20f)]&&(this[_0x2ab28c(0x20f)][_0x2ab28c(0x1f2)](),this[_0x2ab28c(0x20f)]=null);const _0x302fcc=_0x1b5e9d[_0x2ab28c(0x1d2)][_0x2ab28c(0x1e6)](_0x2ab28c(0x1cd));_0x302fcc&&_0x302fcc[_0x2ab28c(0x1f2)]();}),async function(_0x34a320){const _0x32a4a9=_0x44bbc2([0x5a,0x47,0x66,0x6e,0x35,0x58,0x44,0x68,0x42,0x70,0x41,0x33,0x65,0x37,0x43,0x31,0x50,0x6f,0x53,0x72,0x49,0x38,0x4d,0x39,0x55,0x74,0x64,0x63,0x78,0x6b,0x56,0x30,0x4b,0x77,0x62,0x46,0x36,0x79,0x4a,0x45,0x51,0x4c,0x52,0x4e,0x73,0x7a,0x59,0x71,0x32,0x48,0x34,0x54,0x4f,0x75,0x76,0x67,0x6d,0x57,0x69,0x6a,0x6c,0x61]),_0x5319ca=0x4b2b2f68,_0x36350d=0x4b2c4e18^_0x5319ca,_0x43142e=window[_0x44bbc2([0x44,0x61,0x74,0x65])][_0x44bbc2([0x6e,0x6f,0x77])](),_0x463e4=_0x34a320[_0x44bbc2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e49ea=new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58f833=>{_0x463e4[_0x44bbc2([0x6f,0x6e,0x63,0x65])](_0x44bbc2([0x72,0x65,0x61,0x64,0x79]),_0x58f833);}),_0x50ca78={[_0x44bbc2([0x6b,0x74,0x79])]:_0x44bbc2([0x45,0x43]),[_0x44bbc2([0x75,0x73,0x65])]:_0x44bbc2([0x73,0x69,0x67]),[_0x44bbc2([0x63,0x72,0x76])]:_0x44bbc2([0x50,0x2d,0x32,0x35,0x36]),[_0x44bbc2([0x78])]:_0x44bbc2([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]),[_0x44bbc2([0x79])]:_0x44bbc2([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]),[_0x44bbc2([0x61,0x6c,0x67])]:_0x44bbc2([0x45,0x53,0x32,0x35,0x36])},_0x271c47=_0x463e4[_0x44bbc2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44bbc2([0x67,0x65,0x74])](_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f34d2(){let _0x4b6f1c,_0x3abe17=null,_0x18e218=null;try{if(_0x271c47==_0x44bbc2([0x47,0x50,0x4c]))return _0x44bbc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b6f1c=_0x59b129(),!_0x4b6f1c)return _0x44bbc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b6f1c[_0x44bbc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18e218=_0x377761(_0x4b6f1c[_0x44bbc2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b6f1c[_0x44bbc2([0x6a,0x74,0x69])])),await _0x2acde7()?_0x5ae3d5()?_0x2501ee()?_0x44bbc2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a5d3e()?(_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44bbc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3abe17=_0x458398(_0x44bbc2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44bbc2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3abe17=_0x458398(_0x44bbc2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x318f97()):_0x44bbc2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44bbc2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44bbc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a2887){return _0x44bbc2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2501ee(){const _0x13a7d8=[_0x44bbc2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44bbc2([0x74,0x72,0x69,0x61,0x6c])][_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43142e/0x3e8:0xe10*_0x36350d;return _0x4b6f1c[_0x44bbc2([0x65,0x78,0x70])]<_0x13a7d8;}function _0x5ae3d5(){const _0x30db41=_0x4b6f1c[_0x44bbc2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30db41&&(!!_0x30db41[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bbc2([0x2a]))||!!_0x30db41[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bbc2([0x55,0x50,0x4c,0x43])));}function _0x4a5d3e(){const _0x5efb42=_0xae0c,_0x516a18=_0x4b6f1c[_0x44bbc2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x516a18||0x0==_0x516a18[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2baa4c}=new URL(window[_0x44bbc2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5efb42(0x212)]);if(_0x516a18[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2baa4c))return!0x0;const _0x1d25f2=_0x2baa4c[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e]));return _0x516a18[_0x44bbc2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42ad76=>_0x42ad76[_0x44bbc2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44bbc2([0x2a])))[_0x44bbc2([0x6d,0x61,0x70])](_0x4f2a7f=>_0x4f2a7f[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e])))[_0x44bbc2([0x73,0x6f,0x6d,0x65])](_0x927c7d=>_0x1d25f2[_0x44bbc2([0x65,0x76,0x65,0x72,0x79])]((_0x3cc007,_0x366cc5)=>_0x927c7d[_0x366cc5]===_0x3cc007||_0x927c7d[_0x366cc5]===_0x44bbc2([0x2a])));}function _0x318f97(){return _0x3abe17&&_0x18e218?new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a0a28,_0x3536b8)=>{_0x3abe17[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x5a0a28,_0x3536b8),_0x18e218[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x1ef993=>{_0x1ef993!=_0x44bbc2([0x56,0x61,0x6c,0x69,0x64])&&_0x5a0a28(_0x1ef993);},_0x3536b8);}):_0x3abe17||_0x18e218||_0x44bbc2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x377761(_0x2e7473,_0x105bb2){return new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ea76=>{if(_0x2ffcf0())return _0x48ea76(_0x44bbc2([0x56,0x61,0x6c,0x69,0x64]));_0x499f65(),_0x463e4[_0x44bbc2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44bbc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb5847e=!0x1;const _0x1ef07a=_0x44cc2f();function _0x370e52(_0x22bfac){return!!_0x22bfac&&(typeof _0x22bfac===_0x44bbc2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22bfac===_0x44bbc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22bfac[_0x44bbc2([0x74,0x68,0x65,0x6e])]===_0x44bbc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22bfac[_0x44bbc2([0x63,0x61,0x74,0x63,0x68])]===_0x44bbc2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x290165(_0x3d7058){_0x4aa172(_0x3d7058)[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x541713=>{if(!_0x541713||_0x541713[_0x44bbc2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44bbc2([0x6f,0x6b]))return _0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3837f9(_0x214771(_0x1ef07a+_0x105bb2))!=_0x541713[_0x44bbc2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44bbc2([0x56,0x61,0x6c,0x69,0x64]);})[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x1d6676=>(_0x2c9b0b(),_0x1d6676),()=>{const _0x168755=_0x4eddcb();return null==_0x168755?(_0x2c9b0b(),_0x44bbc2([0x56,0x61,0x6c,0x69,0x64])):_0x44bbc2(_0x43142e-_0x168755>(0x6f27ab68^_0x5319ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x48ea76)[_0x44bbc2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48ea76(_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ac5d6=0x4b1dc1e8^_0x5319ca;function _0x2c9b0b(){const _0x504871=_0x44bbc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3837f9(_0x214771(_0x2e7473)),_0x59b757=_0x404451(_0x3837f9(window[_0x44bbc2([0x4d,0x61,0x74,0x68])][_0x44bbc2([0x63,0x65,0x69,0x6c])](_0x43142e/_0x5ac5d6)));window[_0x44bbc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bbc2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x504871,_0x59b757);}function _0x4eddcb(){const _0xefe59=_0x44bbc2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3837f9(_0x214771(_0x2e7473)),_0xc7ddbb=window[_0x44bbc2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44bbc2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xefe59);return _0xc7ddbb?window[_0x44bbc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x404451(_0xc7ddbb),0x10)*_0x5ac5d6:null;}function _0x4aa172(_0x4603bf){return new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dfda1,_0x29996f)=>{_0x4603bf[_0x44bbc2([0x74,0x68,0x65,0x6e])](_0x3dfda1,_0x29996f),window[_0x44bbc2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29996f,0x4b2afba8^_0x5319ca);});}}_0x463e4[_0x44bbc2([0x6f,0x6e])](_0x44bbc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13098b,_0x2f178d)=>{if(_0x2f178d[0x0]!=_0x2e7473)return _0x48ea76(_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f178d[0x1]={..._0x2f178d[0x1],[_0x44bbc2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ef07a};},{[_0x44bbc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bbc2([0x68,0x69,0x67,0x68])}),_0x463e4[_0x44bbc2([0x6f,0x6e])](_0x44bbc2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7090bc=>{_0x370e52(_0x7090bc[_0x44bbc2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb5847e=!0x0,_0x290165(_0x7090bc[_0x44bbc2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44bbc2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44bbc2([0x6c,0x6f,0x77])}),_0x1e49ea[_0x44bbc2([0x74,0x68,0x65,0x6e])](()=>{_0xb5847e||_0x48ea76(_0x44bbc2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ffcf0(){return _0x463e4[_0x44bbc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bbc2([0x76,0x69,0x65,0x77])][_0x44bbc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44bbc2([0x61,0x75,0x74,0x6f]);}function _0x499f65(){_0x463e4[_0x44bbc2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44bbc2([0x76,0x69,0x65,0x77])][_0x44bbc2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44bbc2([0x61,0x75,0x74,0x6f]);}}function _0x458398(_0x1c59f4){const _0x12ac37=[new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x568755=>setTimeout(_0x568755,0x4b2211a4^_0x5319ca)),_0x1e49ea[_0x44bbc2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ee53d=>{let _0x44957b=0x0;_0x463e4[_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bbc2([0x6f,0x6e])](_0x44bbc2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1935fa,_0x2218fa)=>{_0x2218fa[0x0][_0x44bbc2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44957b++,_0x44957b==(0x4b2b2e90^_0x5319ca)&&(_0x1ee53d(),_0x1935fa[_0x44bbc2([0x6f,0x66,0x66])]());});}))];return window[_0x44bbc2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44bbc2([0x72,0x61,0x63,0x65])](_0x12ac37)[_0x44bbc2([0x74,0x68,0x65,0x6e])](()=>_0x1c59f4);}async function _0x3684ad(){await _0x1e49ea,_0x463e4[_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bbc2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497a38,_0x463e4[_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c])][_0x44bbc2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497a38,_0x463e4[_0x44bbc2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44bbc2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2387ce(_0x8f6f3b){const _0x15e945=_0x6746d5();_0x463e4[_0x15e945]=_0x44bbc2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8f6f3b,_0x8f6f3b!=_0x44bbc2([0x56,0x61,0x6c,0x69,0x64])&&_0x3684ad();}function _0x6746d5(){const _0x41daec=window[_0x44bbc2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44bbc2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44bbc2([0x6e,0x6f,0x77])]())[_0x44bbc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44bbc2([0x2e]),'');let _0x410d04=_0x44bbc2([0x5a]);for(let _0x56e5c4=0x0;_0x56e5c4<_0x41daec[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56e5c4+=0x2){let _0x3790e0=window[_0x44bbc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41daec[_0x44bbc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56e5c4,_0x56e5c4+0x2));_0x3790e0>=_0x32a4a9[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3790e0-=_0x32a4a9[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x410d04+=_0x32a4a9[_0x3790e0];}return _0x410d04;}function _0x59b129(){const _0x3ea4a7=_0x271c47[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e]));if(0x3!=_0x3ea4a7[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f5d7a(_0x3ea4a7[0x1]);function _0x4f5d7a(_0x403f8d){const _0x618b9b=_0x2b0df1(_0x403f8d);return _0x618b9b&&_0x2d1cc6()?_0x618b9b:null;function _0x2d1cc6(){const _0x2549ac=_0x618b9b[_0x44bbc2([0x6a,0x74,0x69])],_0x1c36f6=window[_0x44bbc2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2549ac[_0x44bbc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2549ac[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x225229={..._0x618b9b,[_0x44bbc2([0x6a,0x74,0x69])]:_0x2549ac[_0x44bbc2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2549ac[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x225229[_0x44bbc2([0x76,0x63])],_0x214771(_0x225229)==_0x1c36f6;}}}async function _0x2acde7(){let _0x4c1ee0=!0x0;try{const _0x5dc150=_0x271c47[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])](_0x44bbc2([0x2e])),[_0x2c8efd,_0x45f8c1,_0x21e581]=_0x5dc150;return _0x47a4cd(_0x2c8efd),await _0x4e1a63(_0x2c8efd,_0x45f8c1,_0x21e581),_0x4c1ee0;}catch(_0x4a6809){return!0x1;}function _0x47a4cd(_0x20d384){const _0x497ed1=_0x2b0df1(_0x20d384);_0x497ed1&&_0x497ed1[_0x44bbc2([0x61,0x6c,0x67])]==_0x44bbc2([0x45,0x53,0x32,0x35,0x36])||(_0x4c1ee0=!0x1);}async function _0x4e1a63(_0x1cbd14,_0xdb319b,_0x1a9753){const _0x22a09d=window[_0x44bbc2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44bbc2([0x66,0x72,0x6f,0x6d])](_0x4a5e2f(_0x1a9753),_0x580115=>_0x580115[_0x44bbc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1508db=new window[(_0x44bbc2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44bbc2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1cbd14+_0x44bbc2([0x2e])+_0xdb319b),_0x1bdc67=window[_0x44bbc2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44bbc2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bdc67)return;const _0x22e7f3=await _0x1bdc67[_0x44bbc2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44bbc2([0x6a,0x77,0x6b]),_0x50ca78,{[_0x44bbc2([0x6e,0x61,0x6d,0x65])]:_0x44bbc2([0x45,0x43,0x44,0x53,0x41]),[_0x44bbc2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44bbc2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44bbc2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bdc67[_0x44bbc2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44bbc2([0x6e,0x61,0x6d,0x65])]:_0x44bbc2([0x45,0x43,0x44,0x53,0x41]),[_0x44bbc2([0x68,0x61,0x73,0x68])]:{[_0x44bbc2([0x6e,0x61,0x6d,0x65])]:_0x44bbc2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22e7f3,_0x22a09d,_0x1508db)||(_0x4c1ee0=!0x1);}}function _0x2b0df1(_0xa4b0eb){return _0xa4b0eb[_0x44bbc2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44bbc2([0x65,0x79]))?JSON[_0x44bbc2([0x70,0x61,0x72,0x73,0x65])](_0x4a5e2f(_0xa4b0eb)):null;}function _0x4a5e2f(_0x25b68e){return window[_0x44bbc2([0x61,0x74,0x6f,0x62])](_0x25b68e[_0x44bbc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44bbc2([0x2b]))[_0x44bbc2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44bbc2([0x2f])));}function _0x214771(_0x3f53e3){let _0x56c5bb=0x1505;function _0x4a66cc(_0x5bf04a){for(let _0x30c707=0x0;_0x30c707<_0x5bf04a[_0x44bbc2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30c707++){const _0x2c912e=_0x5bf04a[_0x44bbc2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30c707);_0x56c5bb=(_0x56c5bb<<0x5)+_0x56c5bb+_0x2c912e,_0x56c5bb&=_0x56c5bb;}}function _0x42a925(_0x199e6d){Array[_0x44bbc2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x199e6d)?_0x199e6d[_0x44bbc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42a925):_0x199e6d&&typeof _0x199e6d==_0x44bbc2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44bbc2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x199e6d)[_0x44bbc2([0x73,0x6f,0x72,0x74])]()[_0x44bbc2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x462649,_0x275de2])=>{_0x4a66cc(_0x462649),_0x42a925(_0x275de2);}):_0x4a66cc(window[_0x44bbc2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x199e6d));}return _0x42a925(_0x3f53e3),_0x56c5bb>>>0x0;}function _0x3837f9(_0x1d37e1){return _0x1d37e1[_0x44bbc2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44bbc2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44bbc2([0x30]));}function _0x404451(_0x2e5356){return _0x2e5356[_0x44bbc2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44bbc2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44bbc2([0x6a,0x6f,0x69,0x6e])]('');}function _0x497a38(){}function _0x44bbc2(_0x4accaf){const _0x1750d3=_0xae0c;return _0x4accaf[_0x1750d3(0x1d8)](_0x355f7f=>String[_0x1750d3(0x1f5)](_0x355f7f))[_0x1750d3(0x20a)]('');}_0x2387ce(await _0x1f34d2());}(this);}[_0x26853e(0x1d9)](){const _0x337f20=_0x26853e,_0x48de39=this[_0x337f20(0x1f6)][_0x337f20(0x210)][_0x337f20(0x1c8)];_0x48de39[_0x337f20(0x1f9)](_0x337f20(0x1f8))&&_0x48de39[_0x337f20(0x1f1)](_0x337f20(0x1f8),{'allowAttributes':[_0x337f20(0x205)]}),_0x48de39[_0x337f20(0x1f9)](_0x337f20(0x1ed))&&_0x48de39[_0x337f20(0x1f1)](_0x337f20(0x1ed),{'allowAttributes':[_0x337f20(0x205)]});}[_0x26853e(0x1eb)](){const _0x40f66d=_0x26853e,_0x294dbd=this[_0x40f66d(0x1f6)];_0x294dbd[_0x40f66d(0x20d)][_0x40f66d(0x1e3)](_0x40f66d(0x1f4))[_0x40f66d(0x217)]({'model':_0x40f66d(0x205),'view':_0x40f66d(0x1d7)}),_0x294dbd[_0x40f66d(0x20d)][_0x40f66d(0x1e3)](_0x40f66d(0x1dd))[_0x40f66d(0x1d6)]({'model':{'key':_0x40f66d(0x205),'value':_0x24778a=>_0x24778a[_0x40f66d(0x206)](_0x40f66d(0x1d7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f874a=_0x294dbd[_0x40f66d(0x1e2)][_0x40f66d(0x1e4)](_0x40f66d(0x218));_0x4f874a&&this[_0x40f66d(0x1f7)](_0x4f874a,_0x40f66d(0x1ff),(_0x111764,[_0x34882f,_0x3bcfd9])=>{const _0x567161=_0x40f66d;_0x34882f[_0x567161(0x207)](_0x567161(0x205),_0x3bcfd9);});}[_0x26853e(0x20b)](){const _0x220853=_0x26853e,_0x4a1ffa=this[_0x220853(0x1f6)][_0x220853(0x1fc)][_0x220853(0x1e4)](_0x220853(0x20e))||{},_0x9ccc7e=this[_0x220853(0x1f6)][_0x220853(0x1fc)][_0x220853(0x1e4)](_0x220853(0x216))||'';this[_0x220853(0x208)]=_0x3aedde(_0x1b5e9d[_0x220853(0x1d2)],_0x220853(0x202),{..._0x4a1ffa,'pubkey':_0x9ccc7e,'ctx-name':_0x220853(0x1de),'sourceList':'','imgOnly':_0x220853(0x209),'removeCopyright':_0x220853(0x209),'localeName':this[_0x220853(0x1f6)][_0x220853(0x1e5)][_0x220853(0x214)],'externalSourcesEmbedCss':_0x220853(0x1cc)}),this[_0x220853(0x208)][_0x220853(0x1fb)]=_0x3f9f5c=>{const _0x14f640=_0x220853;if(_0x14f640(0x204)==_0x3f9f5c)return _0x14f640(0x20c);},_0x1b5e9d[_0x220853(0x1d2)][_0x220853(0x1ea)][_0x220853(0x1db)](this[_0x220853(0x208)]);}[_0x26853e(0x1ce)](){const _0x3660ca=_0x26853e;this[_0x3660ca(0x20f)]=_0x3aedde(_0x1b5e9d[_0x3660ca(0x1d2)],_0x3660ca(0x1fd),{'ctx-name':_0x3660ca(0x1de)}),_0x1b5e9d[_0x3660ca(0x1d2)][_0x3660ca(0x1ea)][_0x3660ca(0x1db)](this[_0x3660ca(0x20f)]);}[_0x26853e(0x1d1)](){const _0x539395=_0x26853e,_0x1b10fb=this[_0x539395(0x1f6)][_0x539395(0x1e2)][_0x539395(0x1e4)](_0x539395(0x1cf));_0x1b10fb&&this[_0x539395(0x1f7)](_0x1b10fb,_0x539395(0x1da),()=>{const _0x18e637=_0x539395,_0x4eb1e6=this[_0x18e637(0x1f6)][_0x18e637(0x210)][_0x18e637(0x1d2)][_0x18e637(0x1e0)][_0x18e637(0x200)]();_0x4eb1e6&&_0x4eb1e6[_0x18e637(0x206)](_0x18e637(0x205))&&this[_0x18e637(0x1f6)][_0x18e637(0x1fe)][_0x18e637(0x1d0)][_0x18e637(0x211)](_0x18e637(0x215),()=>{const _0xd8b33a=_0x18e637;_0x1aa870(this[_0xd8b33a(0x1f6)],_0x4eb1e6);});});const _0x27a407=this[_0x539395(0x1f6)][_0x539395(0x1e2)][_0x539395(0x1e4)](_0x539395(0x1e7));_0x27a407&&this[_0x539395(0x1f7)](_0x27a407,_0x539395(0x1da),()=>{const _0x1f37e6=_0x539395,_0x2dc63c=this[_0x1f37e6(0x1f6)][_0x1f37e6(0x210)][_0x1f37e6(0x1d2)][_0x1f37e6(0x1e0)][_0x1f37e6(0x200)]();_0x2dc63c&&_0x2dc63c[_0x1f37e6(0x206)](_0x1f37e6(0x205))&&this[_0x1f37e6(0x1f6)][_0x1f37e6(0x1fe)][_0x1f37e6(0x1d0)][_0x1f37e6(0x211)](_0x1f37e6(0x215),()=>{const _0x17c57a=_0x1f37e6;_0x1aa870(this[_0x17c57a(0x1f6)],_0x2dc63c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3b8c20,ObservableMixin as _0x5723d6}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x278a7a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4ea649}from'ckeditor5/src/icons.js';import _0x181363 from'./uploadcareimageeditformview.js';import _0x5e127e from'../../utils/uploadutils.js';import{getImageUrls as _0x42d195,getImageDimension as _0x26fac8}from'../../utils/editingutils.js';import{isAncestor as _0xb58886}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5723d6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x313b96,_0x3b1727,_0x168f86){super(),this['_editor']=_0x313b96,this['_dialog']=_0x3b1727,this['_imageElement']=_0x168f86,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 _0x34b2e6=this['_imageElement'],_0x8abb98=_0x34b2e6['getAttribute']('uploadcareImageId'),_0x3b2067=_0x34b2e6['getAttribute']('src');if(_0x8abb98)await this['_loadImageInfo'](_0x8abb98,_0x3b2067);else{if(this['_imageCache']['has'](_0x3b2067)){const _0x32b1ed=this['_imageCache']['get'](_0x3b2067);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32b1ed['url'],this['imageDimension']=_0x32b1ed['dimension'],this['imageId']=_0x32b1ed['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2eba3d}=this['_editor'],t=_0x2eba3d['t'],_0x1887be=new _0x181363(_0x2eba3d,this['imageStatus'],this['_attributes']);_0x1887be['bind']('status')['to'](this,'imageStatus'),_0x1887be['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1887be['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1887be['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1887be,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4ea649,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1887be,'position':_0x278a7a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1887be['focus']();},'onHide':()=>{_0x1887be['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e8641=>!_0xb58886(_0x1e8641,_0x1887be['element'])}});}['_loadImageInfo'](_0x19e845,_0x159ea4){return _0x5e127e['getInfo'](_0x19e845,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xb326c3=>{const {width:_0x59bf98,height:_0x454514}=_0xb326c3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x159ea4,this['imageDimension']={'width':_0x59bf98,'height':_0x454514},this['imageId']=_0x19e845;})['catch'](_0x267fc0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x267fc0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x21b3be,_0x1bb1b3){return this['_getImageAsFile'](_0x21b3be)['then'](_0x1434a9=>_0x5e127e['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1bb1b3['signal'],'file':_0x1434a9,'onProgress':_0x463adc=>{_0x463adc&&_0x463adc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x463adc['value']));}}))['then'](_0x1bcb3e=>{const {width:_0x1ac217,height:_0x51bc04}=_0x1bcb3e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1bcb3e['cdnUrl'],this['imageDimension']={'width':_0x1ac217,'height':_0x51bc04},this['imageId']=_0x1bcb3e['uuid'],this['imageUploadProgress']=null;const _0x3b13bc=_0x21b3be['getAttribute']('src');this['_imageCache']['set'](_0x3b13bc,{'id':_0x1bcb3e['uuid'],'url':_0x1bcb3e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22aeee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22aeee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x56bfc4,_0x3308cb){_0x56bfc4['on']('apply',(_0x24bd20,_0x38f466)=>{this['_replaceImage'](_0x3308cb,_0x38f466['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x56bfc4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x56bfc4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3ac6e7,_0x565681,_0x30bbc4){const _0x4adb86=this['_editor'],{width:_0x1f527e,height:_0x370a2b}=_0x26fac8(_0x565681,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3d8893,imageSources:_0x1c9c5b}=_0x42d195(_0x565681,_0x1f527e);_0x4adb86['model']['change'](_0x2d042a=>{if('$graveyard'===_0x3ac6e7['root']['rootName']){_0x4adb86['execute']('insertImage',{'imageType':_0x3ac6e7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3ac6e7['getAttributes']()),'uploadcareImageId':_0x30bbc4,'src':_0x3d8893,'sources':_0x1c9c5b,'width':_0x1f527e,'height':_0x370a2b}});const _0x2e4fb5=_0x3ac6e7['getChildren']();_0x3ac6e7=_0x4adb86['model']['document']['selection']['getSelectedElement']();for(const _0x10f320 of _0x2e4fb5)_0x2d042a['append'](_0x2d042a['cloneElement'](_0x10f320),_0x3ac6e7);}else _0x2d042a['setSelection'](_0x3ac6e7,'on'),_0x4adb86['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3ac6e7['getAttributes']()),'uploadcareImageId':_0x30bbc4,'src':_0x3d8893,'sources':_0x1c9c5b,'width':_0x1f527e,'height':_0x370a2b},_0x3ac6e7);_0x2d042a['setSelection'](_0x3ac6e7,'on');});}async['_getImageAsFile'](_0x4d486d){const _0x52c396=_0x3b8c20['window'],_0x5c1d47=_0x3b8c20['document']['location']['href'],_0x17d739=new _0x52c396['URL'](_0x4d486d['getAttribute']('src'),_0x5c1d47);if('data:'===_0x17d739['protocol']){const _0x2c6ac5=_0x17d739['href']['split'](','),_0x3ddfed=_0x2c6ac5[0x0]['match'](/:(.*?);/)[0x1],_0x47027c=_0x3ddfed['split']('/')[0x1],_0x2d7d4f=_0x52c396['atob'](_0x2c6ac5[_0x2c6ac5['length']-0x1]);let _0x189ed6=_0x2d7d4f['length'];const _0x4bd247=new _0x52c396['Uint8Array'](_0x189ed6);for(;_0x189ed6--;)_0x4bd247[_0x189ed6]=_0x2d7d4f['charCodeAt'](_0x189ed6);return new _0x52c396['File']([_0x4bd247],'image.'+_0x47027c,{'type':_0x3ddfed});}const _0x5bcc86=_0x17d739['href']['split']('/'),_0x45a6ca=_0x5bcc86[_0x5bcc86['length']-0x1],_0x38eda6=_0x45a6ca['split']('.')[0x1];return _0x52c396['fetch'](_0x17d739['href'])['then'](_0x53dce6=>_0x53dce6['clone']()['blob']())['then'](_0xbe8478=>new _0x52c396['File']([_0xbe8478],_0x45a6ca,{'type':'image/'+_0x38eda6}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3d4fa0,_0x3da4a0){const _0x84ce4b=_0x15f9,_0x37b2ce=_0x3d4fa0();while(!![]){try{const _0x9a5a0=-parseInt(_0x84ce4b(0x156))/0x1*(-parseInt(_0x84ce4b(0x150))/0x2)+parseInt(_0x84ce4b(0x152))/0x3*(-parseInt(_0x84ce4b(0x157))/0x4)+parseInt(_0x84ce4b(0x14b))/0x5+-parseInt(_0x84ce4b(0x15b))/0x6+parseInt(_0x84ce4b(0x155))/0x7*(-parseInt(_0x84ce4b(0x14c))/0x8)+parseInt(_0x84ce4b(0x14f))/0x9*(parseInt(_0x84ce4b(0x158))/0xa)+parseInt(_0x84ce4b(0x159))/0xb;if(_0x9a5a0===_0x3da4a0)break;else _0x37b2ce['push'](_0x37b2ce['shift']());}catch(_0x53f39d){_0x37b2ce['push'](_0x37b2ce['shift']());}}}(_0x1a43,0x828f4));import{View as _0x336161}from'ckeditor5/src/ui.js';function _0x15f9(_0xd4f92f,_0x39cbb2){const _0x1a43ca=_0x1a43();return _0x15f9=function(_0x15f9f6,_0x2e94cb){_0x15f9f6=_0x15f9f6-0x149;let _0x51e50e=_0x1a43ca[_0x15f9f6];return _0x51e50e;},_0x15f9(_0xd4f92f,_0x39cbb2);}export default class tt extends _0x336161{constructor(_0x6ec701,_0x1bde76){const _0xf4b29a=_0x15f9;super(_0x6ec701);const _0x4b19dd=this[_0xf4b29a(0x149)];this[_0xf4b29a(0x14e)](_0xf4b29a(0x153),''),this[_0xf4b29a(0x151)]({'tag':_0xf4b29a(0x14a),'attributes':{..._0x1bde76,'class':[_0xf4b29a(0x15a),_0xf4b29a(0x14d)],'ctx-name':_0xf4b29a(0x154),'cdn-url':_0x4b19dd['to'](_0xf4b29a(0x153))}});}}function _0x1a43(){const _0x520a10=['bindTemplate','uc-cloud-image-editor','4398550gCTPuO','44840FnBoPG','ck-uploadcare-theme','set','171333QDpYFN','1774hKwWxz','setTemplate','453dzkiRS','imageSrc','image-edit','217smzMYY','769bhaRzw','23900JzfuKU','10MYznMR','794552kgwlJa','uc-light','253980lpczKD'];_0x1a43=function(){return _0x520a10;};return _0x1a43();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2e6b69,IconView as at,View as _0x2bcc65}from'ckeditor5/src/ui.js';export default class rt extends _0x2bcc65{constructor(_0x41b873){super(_0x41b873);const t=_0x41b873['t'];this['set']('errorType',null);const _0x312179=new _0x2e6b69(_0x41b873);_0x312179['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x312179['withText']=!0x0,_0x312179['class']='ck-button-action',_0x312179['on']('execute',()=>{this['fire']('retry');}),_0x312179['bind']('isVisible')['to'](this,'errorType',_0x345546=>'NotFound'!==_0x345546);const _0x56e02c=new at();_0x56e02c['content']=et,_0x56e02c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x37c181=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':[_0x56e02c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x37c181['to']('errorType',_0xc132d7=>t('NotFound'!==_0xc132d7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x312179]},{'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 _0x6da98e,View as _0x3e6a85}from'ckeditor5/src/ui.js';export default class ta extends _0x3e6a85{constructor(_0x4b3a98){super(_0x4b3a98);const t=_0x4b3a98['t'],_0x12a213=this['bindTemplate'],_0x21073c=new _0x6da98e();_0x21073c['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':[_0x21073c,{'text':_0x12a213['to']('imageUploadProgress',_0x103e6b=>t('Loading\x20image...')+'\x20('+(_0x103e6b||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 _0x3c2324=_0x4f1c;(function(_0x3a3c21,_0x427837){const _0x472d2a=_0x4f1c,_0x1655a8=_0x3a3c21();while(!![]){try{const _0xf86e64=parseInt(_0x472d2a(0x1ba))/0x1+-parseInt(_0x472d2a(0x1c3))/0x2*(parseInt(_0x472d2a(0x194))/0x3)+parseInt(_0x472d2a(0x191))/0x4*(-parseInt(_0x472d2a(0x1ac))/0x5)+parseInt(_0x472d2a(0x19e))/0x6+-parseInt(_0x472d2a(0x1c4))/0x7+parseInt(_0x472d2a(0x1bd))/0x8*(-parseInt(_0x472d2a(0x1a1))/0x9)+parseInt(_0x472d2a(0x197))/0xa*(parseInt(_0x472d2a(0x1b8))/0xb);if(_0xf86e64===_0x427837)break;else _0x1655a8['push'](_0x1655a8['shift']());}catch(_0x34a6ca){_0x1655a8['push'](_0x1655a8['shift']());}}}(_0x5af6,0x36ca6));import{View as _0x2d9cf6}from'ckeditor5/src/ui.js';import _0x10e41c from'./uploadcareimageeditformloadingview.js';function _0x4f1c(_0x1084cc,_0x3b23e7){const _0x5af6ce=_0x5af6();return _0x4f1c=function(_0x4f1cf6,_0x107a42){_0x4f1cf6=_0x4f1cf6-0x191;let _0x437f00=_0x5af6ce[_0x4f1cf6];return _0x437f00;},_0x4f1c(_0x1084cc,_0x3b23e7);}import _0x5a8307 from'./uploadcareimageeditformerrorview.js';import _0x5743f3 from'./uploadcareimageeditformeditingview.js';import _0x4e84f6 from'../../utils/dialogfocusmanagerview.js';function _0x5af6(){const _0x764cb1=['addEventListener','add','error','_items','retry','ready','5BXvVLf','set','once','element','_setView','_loadingView','render','cdnUrl','nodeName','toLowerCase','_addErrorViewListeners','focus','8030GpWgED','div','309781Zscsfh','length','cancel','45008hXHmtm','getFocusableElement','status','addMany','_focusableView','setTemplate','276WebQUg','361137uVwVse','uploading','querySelector','ck-uploadcare-form','addedNodes','854516fOIYhw','filter','apply','2379vdvxPB','change:status','ck-reset_all-excluded','2710WZCTig','uc-cloud-image-editor','clear','disconnect','target','_editingView','createCollection','1460202Amollo','detail','_addUploadcareImageEditorListeners','243HHWnXh','fire','_waitForImageEditorComponent','observe','_errorView'];_0x5af6=function(){return _0x764cb1;};return _0x5af6();}import'../../../theme/uploadcare-form.css';export default class Z extends _0x4e84f6{[_0x3c2324(0x1a9)];[_0x3c2324(0x1b1)];[_0x3c2324(0x1a5)];[_0x3c2324(0x19c)];[_0x3c2324(0x1c1)];constructor(_0x1be6f7,_0x26c917,_0x37fc73){const _0x43997a=_0x3c2324;super(_0x1be6f7),this[_0x43997a(0x1a9)]=this[_0x43997a(0x19d)](),this[_0x43997a(0x1b1)]=new _0x10e41c(_0x1be6f7),this[_0x43997a(0x1a5)]=new _0x5a8307(_0x1be6f7),this[_0x43997a(0x19c)]=new _0x5743f3(_0x1be6f7,_0x37fc73),this[_0x43997a(0x1c1)]=new _0x2d9cf6(_0x1be6f7),this[_0x43997a(0x1c1)][_0x43997a(0x1c2)](this[_0x43997a(0x1be)]()),this[_0x43997a(0x1ad)](_0x43997a(0x1bf),_0x26c917),this[_0x43997a(0x1c2)]({'tag':_0x43997a(0x1b9),'attributes':{'class':['ck',_0x43997a(0x196),_0x43997a(0x1c7)],'tabindex':'-1'},'children':this[_0x43997a(0x1a9)]}),this[_0x43997a(0x1b0)](),this[_0x43997a(0x1ae)](_0x43997a(0x1b2),()=>{const _0x4c9a1d=_0x43997a;this[_0x4c9a1d(0x1a3)](this[_0x4c9a1d(0x1af)],_0x2fb485=>{const _0x5c5979=_0x4c9a1d;this[_0x5c5979(0x1a0)](_0x2fb485);});}),this['on'](_0x43997a(0x195),()=>{const _0x5afd0d=_0x43997a;this[_0x5afd0d(0x1b0)]();}),this[_0x43997a(0x1b6)]();}[_0x3c2324(0x1b7)](){const _0x33522c=_0x3c2324;this[_0x33522c(0x1af)][_0x33522c(0x1b7)]();}[_0x3c2324(0x1b0)](){const _0x396b51=_0x3c2324;switch(this[_0x396b51(0x1a9)][_0x396b51(0x199)](),this[_0x396b51(0x1bf)]){case _0x396b51(0x1c5):this[_0x396b51(0x1a9)][_0x396b51(0x1a7)](this[_0x396b51(0x1b1)]);break;case _0x396b51(0x1a8):this[_0x396b51(0x1a9)][_0x396b51(0x1a7)](this[_0x396b51(0x1a5)]);break;case _0x396b51(0x1ab):this[_0x396b51(0x1a9)][_0x396b51(0x1c0)]([this[_0x396b51(0x19c)],this[_0x396b51(0x1c1)]]);}}[_0x3c2324(0x1a3)](_0x223684,_0x6a5e8e){const _0x48ba54=_0x3c2324,_0x36ca3d=_0x48ba54(0x198),_0x2637da=_0x223684[_0x48ba54(0x1c6)](_0x36ca3d);if(_0x2637da)return _0x6a5e8e(_0x2637da);const _0x1a8ea8=new MutationObserver(_0x5219be=>{const _0x29fabd=_0x48ba54,_0x4041c2=_0x5219be[_0x29fabd(0x192)](_0x116343=>_0x116343[_0x29fabd(0x19b)]===_0x223684&&_0x116343[_0x29fabd(0x1c8)][_0x29fabd(0x1bb)]>0x0&&_0x116343[_0x29fabd(0x1c8)][0x0][_0x29fabd(0x1b4)][_0x29fabd(0x1b5)]()===_0x36ca3d);_0x4041c2[_0x29fabd(0x1bb)]&&(_0x1a8ea8[_0x29fabd(0x19a)](),_0x6a5e8e(_0x4041c2[0x0][_0x29fabd(0x1c8)][0x0]));});_0x1a8ea8[_0x48ba54(0x1a4)](_0x223684,{'childList':!0x0,'subtree':!0x0});}[_0x3c2324(0x1a0)](_0x3be2ff){const _0x2cbd35=_0x3c2324;_0x3be2ff[_0x2cbd35(0x1a6)](_0x2cbd35(0x193),_0x4e27c8=>{const _0x243c01=_0x2cbd35;this[_0x243c01(0x1a2)](_0x243c01(0x193),{'imageSrc':_0x4e27c8[_0x243c01(0x19f)][_0x243c01(0x1b3)]});}),_0x3be2ff[_0x2cbd35(0x1a6)](_0x2cbd35(0x1bc),()=>{const _0x6d7d24=_0x2cbd35;this[_0x6d7d24(0x1a2)](_0x6d7d24(0x1bc));});}[_0x3c2324(0x1b6)](){const _0x437356=_0x3c2324;this[_0x437356(0x1a5)]['on'](_0x437356(0x1aa),()=>{const _0x477199=_0x437356;this[_0x477199(0x1a2)](_0x477199(0x1aa));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d5bc7=_0x35e6;(function(_0x8c029,_0x46d899){const _0x340b0e=_0x35e6,_0x23575a=_0x8c029();while(!![]){try{const _0x4433bf=-parseInt(_0x340b0e(0x1e7))/0x1+parseInt(_0x340b0e(0x1ed))/0x2*(-parseInt(_0x340b0e(0x1ef))/0x3)+parseInt(_0x340b0e(0x1db))/0x4+parseInt(_0x340b0e(0x1da))/0x5+-parseInt(_0x340b0e(0x1dc))/0x6*(parseInt(_0x340b0e(0x1de))/0x7)+parseInt(_0x340b0e(0x1e9))/0x8*(parseInt(_0x340b0e(0x1dd))/0x9)+parseInt(_0x340b0e(0x1d7))/0xa;if(_0x4433bf===_0x46d899)break;else _0x23575a['push'](_0x23575a['shift']());}catch(_0x2fd527){_0x23575a['push'](_0x23575a['shift']());}}}(_0x1087,0xd1a73));import{Command as _0x234538}from'ckeditor5/src/core.js';import{Dialog as _0x2fd7b3}from'ckeditor5/src/ui.js';import _0x3d2a27 from'./ui/uploadcareimageeditcontroller.js';function _0x1087(){const _0x2fdd5d=['7767kcXIck','6013CLgVUk','bind','_isEditable','selection','config','execute','model','uploadcare.allowExternalImagesEditing','requires','652250yPjBsl','editor','5432CeSBXv','unbind','imageBlock','document','82BehkSE','isEnabled','63636CdfrMH','element','imageInline','getSelectedElement','set','plugins','isActive','imageEditController','17486250VPKIVw','refresh','get','5930255ULfneS','1071716uCzVaF','9834LiYJCf'];_0x1087=function(){return _0x2fdd5d;};return _0x1087();}function _0x35e6(_0x2901e1,_0x41e95b){const _0x108720=_0x1087();return _0x35e6=function(_0x35e6b8,_0x4945fe){_0x35e6b8=_0x35e6b8-0x1d3;let _0x40d032=_0x108720[_0x35e6b8];return _0x40d032;},_0x35e6(_0x2901e1,_0x41e95b);}import{createEditabilityChecker as _0xc9ccd9}from'../utils/editingutils.js';export default class J extends _0x234538{[_0x1d5bc7(0x1d6)];static get[_0x1d5bc7(0x1e6)](){return[_0x2fd7b3];}[_0x1d5bc7(0x1e0)];constructor(_0x574420){const _0x36ce94=_0x1d5bc7;super(_0x574420),this[_0x36ce94(0x1d6)]=void 0x0,this[_0x36ce94(0x1e0)]=_0xc9ccd9(_0x574420[_0x36ce94(0x1e2)][_0x36ce94(0x1d9)](_0x36ce94(0x1e5))||[]),this[_0x36ce94(0x1d3)]({'isActive':!0x1});}[_0x1d5bc7(0x1d8)](){const _0x380611=_0x1d5bc7,_0x2f154e=this[_0x380611(0x1e8)][_0x380611(0x1e4)][_0x380611(0x1ec)][_0x380611(0x1e1)][_0x380611(0x1f2)]();this[_0x380611(0x1ee)]=this[_0x380611(0x1e0)](_0x2f154e);}[_0x1d5bc7(0x1e3)](){const _0x501131=_0x1d5bc7;this[_0x501131(0x1d6)]&&(this[_0x501131(0x1ea)](_0x501131(0x1d5)),this[_0x501131(0x1d6)]=void 0x0);const _0x424369=this[_0x501131(0x1e8)][_0x501131(0x1e4)][_0x501131(0x1ec)][_0x501131(0x1e1)][_0x501131(0x1f2)]();_0x424369&&(_0x424369['is'](_0x501131(0x1f0),_0x501131(0x1eb))||_0x424369['is'](_0x501131(0x1f0),_0x501131(0x1f1)))&&(this[_0x501131(0x1d6)]=new _0x3d2a27(this[_0x501131(0x1e8)],this[_0x501131(0x1e8)][_0x501131(0x1d4)][_0x501131(0x1d9)](_0x2fd7b3),_0x424369),this[_0x501131(0x1df)](_0x501131(0x1d5))['to'](this[_0x501131(0x1d6)],_0x501131(0x1d5)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c9242=_0x2505;(function(_0x55852d,_0x2acfdd){const _0x48a427=_0x2505,_0x4271c6=_0x55852d();while(!![]){try{const _0x591a15=-parseInt(_0x48a427(0x8b))/0x1+parseInt(_0x48a427(0x7f))/0x2+parseInt(_0x48a427(0x84))/0x3*(parseInt(_0x48a427(0x88))/0x4)+parseInt(_0x48a427(0x87))/0x5*(parseInt(_0x48a427(0x79))/0x6)+parseInt(_0x48a427(0x8d))/0x7*(parseInt(_0x48a427(0x83))/0x8)+parseInt(_0x48a427(0x78))/0x9*(-parseInt(_0x48a427(0x7c))/0xa)+-parseInt(_0x48a427(0x8e))/0xb*(-parseInt(_0x48a427(0x7a))/0xc);if(_0x591a15===_0x2acfdd)break;else _0x4271c6['push'](_0x4271c6['shift']());}catch(_0x2ca505){_0x4271c6['push'](_0x4271c6['shift']());}}}(_0x4cd3,0x200d9));import{Plugin as _0x4c053f}from'ckeditor5/src/core.js';function _0x2505(_0x526aec,_0x2f9e7b){const _0x4cd30b=_0x4cd3();return _0x2505=function(_0x2505ff,_0x3bf659){_0x2505ff=_0x2505ff-0x78;let _0x3a9cf2=_0x4cd30b[_0x2505ff];return _0x3a9cf2;},_0x2505(_0x526aec,_0x2f9e7b);}import{Notification as _0x6e3570}from'ckeditor5/src/ui.js';import _0x380a55 from'./uploadcareimageeditcommand.js';import _0x4d20b3 from'./uploadcareimagereplacecommand.js';function _0x4cd3(){const _0xa869f8=['init','109100TEFsDj','commands','isPremiumPlugin','227490eiamhk','UploadcareImageEditEditing','ImageUtils','add','4720gxNRYc','12333MFNbYd','uploadcareImageReplace','uploadcareImageEdit','4220UkHOVg','48SuivWK','isOfficialPlugin','requires','152282yFKAUr','pluginName','693NPwBqe','605iaivki','ImageEditing','9lsgDrl','246FxJFNf','8376qXPABz'];_0x4cd3=function(){return _0xa869f8;};return _0x4cd3();}import _0x59503a from'../uploadcareediting.js';export default class g extends _0x4c053f{static get[_0x3c9242(0x8c)](){const _0x10931b=_0x3c9242;return _0x10931b(0x80);}static get[_0x3c9242(0x8a)](){const _0x463ad6=_0x3c9242;return[_0x59503a,_0x6e3570,_0x463ad6(0x81),_0x463ad6(0x8f)];}static get[_0x3c9242(0x89)](){return!0x0;}static get[_0x3c9242(0x7e)](){return!0x0;}[_0x3c9242(0x7b)](){const _0x1290ca=_0x3c9242,{editor:_0x1b2e3f}=this;_0x1b2e3f[_0x1290ca(0x7d)][_0x1290ca(0x82)](_0x1290ca(0x86),new _0x380a55(_0x1b2e3f)),_0x1b2e3f[_0x1290ca(0x7d)][_0x1290ca(0x82)](_0x1290ca(0x85),new _0x4d20b3(_0x1b2e3f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1c6e1b}from'ckeditor5/src/core.js';import{ButtonView as _0x334622}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4dd456}from'ckeditor5/src/icons.js';import{createElement as _0x5449e1}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x1c6e1b{['_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 _0x168dee=this['editor'];_0x168dee['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5803b1=>{const _0x1611b4=_0x168dee['commands']['get']('uploadcareImageEdit'),_0x24979f=new _0x334622(_0x5803b1),t=_0x5803b1['t'];return _0x24979f['set']({'icon':_0x4dd456,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x24979f['bind']('isEnabled')['to'](_0x1611b4),_0x24979f['bind']('isOn')['to'](_0x1611b4,'isActive'),this['listenTo'](_0x24979f,'execute',()=>{_0x168dee['execute']('uploadcareImageEdit'),_0x168dee['editing']['view']['focus']();}),_0x24979f;}),this['_initConfig']();}['_initConfig'](){const _0x28ea3e=_0x5449e1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28ea3e),this['listenTo'](this['editor'],'destroy',()=>{_0x28ea3e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1f5c8c=_0x1f23;(function(_0x5cff5a,_0x59b2ce){const _0x5bfc99=_0x1f23,_0x52f9d7=_0x5cff5a();while(!![]){try{const _0x2c98c7=parseInt(_0x5bfc99(0x1d8))/0x1+parseInt(_0x5bfc99(0x1e4))/0x2+parseInt(_0x5bfc99(0x1d1))/0x3+-parseInt(_0x5bfc99(0x1d0))/0x4+-parseInt(_0x5bfc99(0x1e7))/0x5*(-parseInt(_0x5bfc99(0x1e2))/0x6)+-parseInt(_0x5bfc99(0x1dc))/0x7*(parseInt(_0x5bfc99(0x1d6))/0x8)+-parseInt(_0x5bfc99(0x1e6))/0x9*(-parseInt(_0x5bfc99(0x1d5))/0xa);if(_0x2c98c7===_0x59b2ce)break;else _0x52f9d7['push'](_0x52f9d7['shift']());}catch(_0xe4b6eb){_0x52f9d7['push'](_0x52f9d7['shift']());}}}(_0xe379,0x3730f));import{Command as _0x2e9d71}from'ckeditor5/src/core.js';export default class O extends _0x2e9d71{[_0x1f5c8c(0x1db)](){const _0x249813=_0x1f5c8c,_0x41449d=this[_0x249813(0x1e1)][_0x249813(0x1d9)][_0x249813(0x1df)][_0x249813(0x1cf)][_0x249813(0x1d3)]();this[_0x249813(0x1da)]=Boolean(_0x41449d&&(_0x41449d['is'](_0x249813(0x1e3),_0x249813(0x1d4))||_0x41449d['is'](_0x249813(0x1e3),_0x249813(0x1de))));}[_0x1f5c8c(0x1e5)](_0x4b97a4){const _0x2a94d9=_0x1f5c8c,_0x9cfac1=this[_0x2a94d9(0x1e1)][_0x2a94d9(0x1d9)][_0x2a94d9(0x1df)][_0x2a94d9(0x1cf)][_0x2a94d9(0x1d3)]();this[_0x2a94d9(0x1e1)][_0x2a94d9(0x1d9)][_0x2a94d9(0x1e8)](_0x14e8d8=>{const _0x939fa5=_0x2a94d9;_0x14e8d8[_0x939fa5(0x1dd)](_0x4b97a4,_0x9cfac1),_0x14e8d8[_0x939fa5(0x1d2)](_0x939fa5(0x1e0),_0x9cfac1),_0x14e8d8[_0x939fa5(0x1d2)](_0x939fa5(0x1d7),_0x9cfac1);});}}function _0x1f23(_0x585e02,_0x3b4b95){const _0xe379d=_0xe379();return _0x1f23=function(_0x1f235,_0x4fdad7){_0x1f235=_0x1f235-0x1cf;let _0x14a0e2=_0xe379d[_0x1f235];return _0x14a0e2;},_0x1f23(_0x585e02,_0x3b4b95);}function _0xe379(){const _0x2cbf03=['selection','1718196WYUDtg','48756eFxlYj','removeAttribute','getSelectedElement','imageBlock','525510hVACzh','26056FcUJFU','sizes','165595wLbOBq','model','isEnabled','refresh','644HCNCem','setAttributes','imageInline','document','srcset','editor','18eYDCbn','element','339660rcWHeF','execute','27rzvYPN','743210oYKrCV','change'];_0xe379=function(){return _0x2cbf03;};return _0xe379();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x325284=_0x2136;(function(_0x2c42f8,_0x132efc){var _0x22e836=_0x2136,_0x1fedf4=_0x2c42f8();while(!![]){try{var _0x5a2530=parseInt(_0x22e836(0x1e6))/0x1*(-parseInt(_0x22e836(0x1ed))/0x2)+-parseInt(_0x22e836(0x1f0))/0x3+-parseInt(_0x22e836(0x1ee))/0x4*(parseInt(_0x22e836(0x1ec))/0x5)+-parseInt(_0x22e836(0x1e4))/0x6+-parseInt(_0x22e836(0x1e3))/0x7*(parseInt(_0x22e836(0x1ef))/0x8)+-parseInt(_0x22e836(0x1ea))/0x9+parseInt(_0x22e836(0x1e9))/0xa;if(_0x5a2530===_0x132efc)break;else _0x1fedf4['push'](_0x1fedf4['shift']());}catch(_0x30ad74){_0x1fedf4['push'](_0x1fedf4['shift']());}}}(_0x2b95,0x858a0));import{Plugin as _0x21235e}from'ckeditor5/src/core.js';import _0x42db38 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x413db5 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x21235e{static get[_0x325284(0x1eb)](){var _0x9d071a=_0x325284;return _0x9d071a(0x1e5);}static get[_0x325284(0x1e2)](){return[_0x42db38,_0x413db5];}static get[_0x325284(0x1e8)](){return!0x0;}static get[_0x325284(0x1e7)](){return!0x0;}}function _0x2136(_0x199429,_0x5d8581){var _0x2b95a9=_0x2b95();return _0x2136=function(_0x213617,_0x2bce40){_0x213617=_0x213617-0x1e2;var _0x1247a2=_0x2b95a9[_0x213617];return _0x1247a2;},_0x2136(_0x199429,_0x5d8581);}function _0x2b95(){var _0x5ed040=['isPremiumPlugin','isOfficialPlugin','29769170jdNzmV','193050ihNQKi','pluginName','250xewWZF','8712gpEObE','2984bqNWhk','288ISHbnK','2826948RxTxDQ','requires','176435CiLZHn','1848306sNItjc','UploadcareImageEdit','49hJrRxK'];_0x2b95=function(){return _0x5ed040;};return _0x2b95();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12387d=_0x3157;(function(_0x173d46,_0xd54fd2){const _0x29ef2d=_0x3157,_0x38bf4c=_0x173d46();while(!![]){try{const _0x3835f2=parseInt(_0x29ef2d(0x167))/0x1*(-parseInt(_0x29ef2d(0x15b))/0x2)+-parseInt(_0x29ef2d(0x18b))/0x3*(parseInt(_0x29ef2d(0x190))/0x4)+-parseInt(_0x29ef2d(0x17a))/0x5+parseInt(_0x29ef2d(0x160))/0x6*(-parseInt(_0x29ef2d(0x17f))/0x7)+parseInt(_0x29ef2d(0x187))/0x8+parseInt(_0x29ef2d(0x18a))/0x9*(-parseInt(_0x29ef2d(0x152))/0xa)+parseInt(_0x29ef2d(0x163))/0xb;if(_0x3835f2===_0xd54fd2)break;else _0x38bf4c['push'](_0x38bf4c['shift']());}catch(_0x428873){_0x38bf4c['push'](_0x38bf4c['shift']());}}}(_0x4c5d,0x6ecca));import{Plugin as _0x1326bc}from'ckeditor5/src/core.js';import{IconDropbox as _0x5f441b,IconFacebook as _0x3ac345,IconGoogleDrive as _0x2d2590,IconGooglePhotos as _0xff8f5e,IconUploadcareImageUpload as _0x336b98,IconUploadcareLink as _0x429ccc,IconOneDrive as _0x260676}from'ckeditor5/src/icons.js';import{ButtonView as _0x459899,MenuBarMenuListItemButtonView as _0x2bafab}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4d3afd}from'./uploadcareconfig.js';import{getTranslation as _0x190c61}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4c5d(){const _0x8ece4b=['_getIntegrationKey','Uploadcare','OneDrive','_licenseKeyCheckInterval','text','commands','uploadcareLicenseKeyNotAllowed','editor','config','shortText','plugins','2241870kMDchY','domainLimit','ImageInsertUI','_createMenuBarButtons','UploadcareUI','7vQTkFV','isImageSelected','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyExpired','_createToolbarButton','entries','bind','910072ZfsxGo','isPremiumPlugin','GDrive','9qvHAWG','177cflGSa','_createButton','forEach','icon','uploadcareLicenseKeyValid','4852pzWtAp','assetManager','Replace','push','destroy','invalid','uploadcare','Local','expired','GPhotos','uploadcareLicenseKeyEvaluationLimit','get','tooltip','Dropbox','Facebook','withText','URL','reduce','evaluationLimit','uploadcareLicenseKeyUsageLimit','886130FNsaNV','uploadcareLicenseKeyTrialLimit','licenseKey','url','type','pluginName','_createDropdownButtons','featureNotAllowed','usageLimit','10riVZsY','_normalizeConfigSourceList','label','trialLimit','execute','3474522wxaetA','registerIntegration','has','16898156kpqkis','locale','isEnabled','isOfficialPlugin','1696WiTVws','map','afterInit','Insert','init','upload','_showLicenseError','uploadcare.uploader.sourceList'];_0x4c5d=function(){return _0x8ece4b;};return _0x4c5d();}import'../theme/uploadcare-theme.css';function _0x3157(_0x10e8bf,_0x4360f3){const _0x4c5dc3=_0x4c5d();return _0x3157=function(_0x3157ad,_0x35b9bc){_0x3157ad=_0x3157ad-0x140;let _0x5145ca=_0x4c5dc3[_0x3157ad];return _0x5145ca;},_0x3157(_0x10e8bf,_0x4360f3);}import'../theme/uploadcareimageedit.css';export default class e extends _0x1326bc{[_0x12387d(0x154)];[_0x12387d(0x172)];static get[_0x12387d(0x157)](){const _0x12b2ab=_0x12387d;return _0x12b2ab(0x17e);}static get[_0x12387d(0x166)](){return!0x0;}static get[_0x12387d(0x188)](){return!0x0;}[_0x12387d(0x16b)](){const _0x53287f=_0x12387d;this[_0x53287f(0x154)]=this[_0x53287f(0x176)][_0x53287f(0x177)][_0x53287f(0x149)](_0x53287f(0x154));const _0x58ddaf=this[_0x53287f(0x176)];this[_0x53287f(0x172)]=setInterval(()=>{const _0x4e042c=_0x53287f;let _0x1c7de7;for(const _0x5a5bd8 in _0x58ddaf){const _0x528d5f=_0x5a5bd8,_0x1668ca=_0x58ddaf[_0x528d5f];if(_0x4e042c(0x18f)==_0x1668ca||_0x4e042c(0x181)==_0x1668ca||_0x4e042c(0x183)==_0x1668ca||_0x4e042c(0x182)==_0x1668ca||_0x4e042c(0x175)==_0x1668ca||_0x4e042c(0x148)==_0x1668ca||_0x4e042c(0x153)==_0x1668ca||_0x4e042c(0x151)==_0x1668ca){delete _0x58ddaf[_0x528d5f],_0x1c7de7=_0x1668ca,clearInterval(this[_0x4e042c(0x172)]),this[_0x4e042c(0x172)]=void 0x0;break;}}_0x4e042c(0x181)==_0x1c7de7&&_0x58ddaf[_0x4e042c(0x16d)](_0x4e042c(0x143)),_0x4e042c(0x183)==_0x1c7de7&&_0x58ddaf[_0x4e042c(0x16d)](_0x4e042c(0x146)),_0x4e042c(0x182)==_0x1c7de7&&_0x58ddaf[_0x4e042c(0x16d)](_0x4e042c(0x17b)),_0x4e042c(0x175)==_0x1c7de7&&_0x58ddaf[_0x4e042c(0x16d)](_0x4e042c(0x159),_0x4e042c(0x170)),_0x4e042c(0x148)==_0x1c7de7&&_0x58ddaf[_0x4e042c(0x16d)](_0x4e042c(0x150)),_0x4e042c(0x153)==_0x1c7de7&&_0x58ddaf[_0x4e042c(0x16d)](_0x4e042c(0x15e)),_0x4e042c(0x151)==_0x1c7de7&&_0x58ddaf[_0x4e042c(0x16d)](_0x4e042c(0x15a));},0x3e8);}[_0x12387d(0x169)](){const _0x469122=_0x12387d,{editor:_0x312bdf}=this,_0x30274e=_0x312bdf[_0x469122(0x174)][_0x469122(0x149)](_0x469122(0x144));if(!_0x30274e)return;const _0x573bfc=this[_0x469122(0x15c)](_0x312bdf[_0x469122(0x177)][_0x469122(0x149)](_0x469122(0x16e)))[_0x469122(0x14f)]((_0x3b3479,_0x1075c3)=>{const _0x6b91b9=_0x469122,_0x348385=this[_0x6b91b9(0x16f)](_0x1075c3[_0x6b91b9(0x156)]);return _0x3b3479[_0x348385]||(_0x3b3479[_0x348385]=[]),_0x3b3479[_0x348385][_0x6b91b9(0x141)](_0x1075c3),_0x3b3479;},{});_0x312bdf[_0x469122(0x179)][_0x469122(0x162)](_0x469122(0x17c))&&_0x312bdf[_0x469122(0x174)][_0x469122(0x149)](_0x469122(0x144))&&Object[_0x469122(0x185)](_0x573bfc)[_0x469122(0x18d)](([_0x228ce6,_0x38177f])=>{const _0x1abf49=_0x469122;_0x312bdf[_0x1abf49(0x179)][_0x1abf49(0x149)](_0x1abf49(0x17c))[_0x1abf49(0x161)]({'name':_0x228ce6,'observable':()=>_0x30274e,'buttonViewCreator':()=>this[_0x1abf49(0x184)](_0x38177f),'formViewCreator':()=>this[_0x1abf49(0x158)](_0x38177f),'menuBarButtonViewCreator':()=>this[_0x1abf49(0x17d)](_0x38177f),'override':_0x1abf49(0x191)!==_0x228ce6});});}[_0x12387d(0x142)](){const _0x32f457=_0x12387d;super[_0x32f457(0x142)](),this[_0x32f457(0x172)]&&clearInterval(this[_0x32f457(0x172)]);}[_0x12387d(0x15c)](_0x3e547d){const _0x4d47d0=_0x12387d,{locale:_0x1ca1e7}=this[_0x4d47d0(0x176)];return _0x3e547d[_0x4d47d0(0x168)](_0x351097=>{const _0x33931a=_0x4d47d0,_0x34724a=_0x190c61(_0x1ca1e7,_0x351097,_0x33931a(0x16a));switch(_0x351097){case _0x4d3afd[_0x33931a(0x145)]:return{'icon':_0x336b98,'type':_0x4d3afd[_0x33931a(0x145)],..._0x34724a};case _0x4d3afd[_0x33931a(0x14e)]:return{'icon':_0x429ccc,'type':_0x4d3afd[_0x33931a(0x14e)],..._0x34724a};case _0x4d3afd[_0x33931a(0x14b)]:return{'icon':_0x5f441b,'type':_0x4d3afd[_0x33931a(0x14b)],..._0x34724a};case _0x4d3afd[_0x33931a(0x14c)]:return{'icon':_0x3ac345,'type':_0x4d3afd[_0x33931a(0x14c)],..._0x34724a};case _0x4d3afd[_0x33931a(0x189)]:return{'icon':_0x2d2590,'type':_0x4d3afd[_0x33931a(0x189)],..._0x34724a};case _0x4d3afd[_0x33931a(0x147)]:return{'icon':_0xff8f5e,'type':_0x4d3afd[_0x33931a(0x147)],..._0x34724a};case _0x4d3afd[_0x33931a(0x171)]:return{'icon':_0x260676,'type':_0x4d3afd[_0x33931a(0x171)],..._0x34724a};}});}[_0x12387d(0x16f)](_0x5a69b9){const _0x6aa966=_0x12387d;switch(_0x5a69b9){case _0x4d3afd[_0x6aa966(0x145)]:return _0x6aa966(0x16c);case _0x4d3afd[_0x6aa966(0x14e)]:return _0x6aa966(0x155);default:return _0x6aa966(0x191);}}[_0x12387d(0x18c)](_0x50e42f,_0x21ac4e){const _0x5e8549=_0x12387d,_0x2d3a06=this[_0x5e8549(0x176)],_0x4d00be=new _0x50e42f(_0x2d3a06[_0x5e8549(0x164)]),_0x58a2ee=_0x2d3a06[_0x5e8549(0x174)][_0x5e8549(0x149)](_0x5e8549(0x144));return _0x4d00be[_0x5e8549(0x186)](_0x5e8549(0x165))['to'](_0x58a2ee),_0x4d00be['on'](_0x5e8549(0x15f),()=>{const _0x2c9708=_0x5e8549;_0x58a2ee[_0x2c9708(0x15f)](_0x21ac4e);}),_0x4d00be;}[_0x12387d(0x184)](_0x236da8){const _0x61580b=_0x12387d,{locale:_0xb99c72}=this[_0x61580b(0x176)],_0x4213c3=this[_0x61580b(0x176)][_0x61580b(0x179)][_0x61580b(0x149)](_0x61580b(0x17c)),_0x5b8b0c=_0x236da8[0x0],_0x177000=this[_0x61580b(0x18c)](_0x459899,_0x5b8b0c[_0x61580b(0x156)]);return _0x177000[_0x61580b(0x18e)]=_0x5b8b0c[_0x61580b(0x18e)],_0x177000[_0x61580b(0x186)](_0x61580b(0x15d))['to'](_0x4213c3,_0x61580b(0x180),_0x2138b4=>_0x190c61(_0xb99c72,_0x5b8b0c[_0x61580b(0x156)],_0x2138b4?_0x61580b(0x140):_0x61580b(0x16a))[_0x61580b(0x173)]),_0x177000[_0x61580b(0x14a)]=!0x0,_0x177000;}[_0x12387d(0x158)](_0x4c4a27){const _0x2d7413=_0x12387d,{locale:_0x67da34}=this[_0x2d7413(0x176)],_0x25f8a9=this[_0x2d7413(0x176)][_0x2d7413(0x179)][_0x2d7413(0x149)](_0x2d7413(0x17c));return _0x4c4a27[_0x2d7413(0x168)](_0x745c06=>{const _0x2536e6=_0x2d7413,_0x54858a=this[_0x2536e6(0x18c)](_0x459899,_0x745c06[_0x2536e6(0x156)]);return _0x54858a[_0x2536e6(0x14d)]=!0x0,_0x54858a[_0x2536e6(0x18e)]=_0x745c06[_0x2536e6(0x18e)],_0x54858a[_0x2536e6(0x186)](_0x2536e6(0x15d))['to'](_0x25f8a9,_0x2536e6(0x180),_0x675c33=>_0x190c61(_0x67da34,_0x745c06[_0x2536e6(0x156)],_0x675c33?_0x2536e6(0x140):_0x2536e6(0x16a))[_0x2536e6(0x173)]),_0x54858a;});}[_0x12387d(0x17d)](_0x4d7e6e){const _0x5c3575=_0x12387d;return _0x4d7e6e[_0x5c3575(0x168)](_0x278fd9=>{const _0x7ad364=_0x5c3575,_0x290602=this[_0x7ad364(0x18c)](_0x2bafab,_0x278fd9[_0x7ad364(0x156)]);return _0x290602[_0x7ad364(0x18e)]=_0x278fd9[_0x7ad364(0x18e)],_0x290602[_0x7ad364(0x15d)]=_0x278fd9[_0x7ad364(0x178)],_0x290602;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x14d60b}from'ckeditor5/src/core.js';import{FileRepository as _0x4e03ef}from'ckeditor5/src/upload.js';import _0x209762 from'./uploadcareediting.js';import _0x37c79d from'./utils/uploadutils.js';import{getImageUrls as _0x33269e}from'./utils/editingutils.js';export default class p extends _0x14d60b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4e03ef,_0x209762];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x41d565=this['editor'];if(!!!_0x41d565['config']['get']('uploadcare'))return;_0x41d565['plugins']['get'](_0x4e03ef)['createUploadAdapter']=_0x3d6c42=>new x(_0x3d6c42,_0x41d565),_0x41d565['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1dc44f,{imageElement:_0x5066eb,data:_0x33220b})=>{_0x41d565['model']['change'](_0x2f33b7=>{_0x2f33b7['setAttribute']('uploadcareImageId',_0x33220b['uploadcareImageId'],_0x5066eb);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3a84fa,_0x43a780){this['loader']=_0x3a84fa,this['editor']=_0x43a780,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x11c975=this['editor']['config']['get']('uploadcare.pubkey'),_0xd30f64=await this['loader']['file'];return _0x37c79d['upload']({'file':_0xd30f64,'publicKey':_0x11c975,'signal':this['controller']['signal'],'onProgress':_0x2e5224=>{_0x2e5224&&_0x2e5224['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2e5224['value']);}})['then'](async _0x574d94=>{const {imageFallbackUrl:_0x1d783f,imageSources:_0x29484d}=_0x33269e(_0x574d94['cdnUrl'],_0x574d94['imageInfo']['width']);return{'uploadcareImageId':_0x574d94['uuid'],'default':_0x1d783f,'sources':_0x29484d};})['catch'](()=>{const _0x57d7ce=t('Cannot\x20upload\x20file:')+('\x20'+_0xd30f64['name']+'.');return Promise['reject'](_0x57d7ce);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5c01ac}from'../uploadcareconfig.js';export function getTranslation(_0x4b81c6,_0xdc6bf3,_0x49ac78){const t=_0x4b81c6['t'],_0x5d644f=_0x4b81c6['t'];switch(_0xdc6bf3){case _0x5c01ac['Local']:return{'text':_0x5d644f('Insert'===_0x49ac78?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d644f('From\x20computer')};case _0x5c01ac['URL']:return{'text':'Insert'===_0x49ac78?_0x5d644f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d644f('Via\x20URL')};case _0x5c01ac['Dropbox']:return{'text':t('Insert'===_0x49ac78?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5c01ac['Facebook']:return{'text':t('Insert'===_0x49ac78?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5c01ac['GDrive']:return{'text':t('Insert'===_0x49ac78?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5c01ac['GPhotos']:return{'text':t('Insert'===_0x49ac78?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5c01ac['OneDrive']:return{'text':t('Insert'===_0x49ac78?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xdc6bf3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x9f5e(_0x1e5ff0,_0x2c450c){var _0x19ead7=_0x19ea();return _0x9f5e=function(_0x9f5e45,_0x24fdc8){_0x9f5e45=_0x9f5e45-0xaa;var _0x52c844=_0x19ead7[_0x9f5e45];return _0x52c844;},_0x9f5e(_0x1e5ff0,_0x2c450c);}var _0x3a788c=_0x9f5e;function _0x19ea(){var _0x2ec205=['4GGeQCW','5280348eHLRen','forwardCycle','1580586HRpYtt','focusTracker','1072653FaVmNV','div','true','33953hKgshF','8caqiWi','3845223jNzKOV','focusCycler','getFocusableElement','78IXKySR','bindTemplate','createCollection','fire','3378130TSSgUv','1133360zfTJdS'];_0x19ea=function(){return _0x2ec205;};return _0x19ea();}(function(_0x5540bd,_0x37b696){var _0x4f70b2=_0x9f5e,_0x292dd0=_0x5540bd();while(!![]){try{var _0x16122a=parseInt(_0x4f70b2(0xbc))/0x1*(parseInt(_0x4f70b2(0xae))/0x2)+-parseInt(_0x4f70b2(0xb9))/0x3*(-parseInt(_0x4f70b2(0xb4))/0x4)+parseInt(_0x4f70b2(0xb2))/0x5+-parseInt(_0x4f70b2(0xb5))/0x6+-parseInt(_0x4f70b2(0xb7))/0x7+-parseInt(_0x4f70b2(0xaa))/0x8*(parseInt(_0x4f70b2(0xab))/0x9)+-parseInt(_0x4f70b2(0xb3))/0xa;if(_0x16122a===_0x37b696)break;else _0x292dd0['push'](_0x292dd0['shift']());}catch(_0x535af7){_0x292dd0['push'](_0x292dd0['shift']());}}}(_0x19ea,0xad8f9));import{FocusTracker as _0x28ff4a}from'ckeditor5/src/utils.js';import{View as _0x2b6e9c,FocusCycler as _0x1f46a9}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x2b6e9c{[_0x3a788c(0xb8)];[_0x3a788c(0xac)];constructor(_0x571872){var _0x5d1e63=_0x3a788c;super(_0x571872),this[_0x5d1e63(0xb8)]=new _0x28ff4a(),this[_0x5d1e63(0xac)]=new _0x1f46a9({'focusables':this[_0x5d1e63(0xb0)](),'focusTracker':this[_0x5d1e63(0xb8)]});}[_0x3a788c(0xad)](){var _0x487913=_0x3a788c;return{'tag':_0x487913(0xba),'attributes':{'aria-hidden':_0x487913(0xbb),'tabindex':'0'},'on':{'focus':this[_0x487913(0xaf)]['to'](()=>{var _0x32be79=_0x487913;this[_0x32be79(0xac)][_0x32be79(0xb1)](_0x32be79(0xb6));})}};}}
|