@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250428.0 → 0.0.0-nightly-20250429.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x59b6a2=_0x1073;(function(_0x268580,_0x57efcf){const _0x5a8aa3=_0x1073,_0xd0cd=_0x268580();while(!![]){try{const _0x20171f=-parseInt(_0x5a8aa3(0x1b6))/0x1*(parseInt(_0x5a8aa3(0x1c3))/0x2)+-parseInt(_0x5a8aa3(0x1c6))/0x3+parseInt(_0x5a8aa3(0x1ec))/0x4*(parseInt(_0x5a8aa3(0x1f3))/0x5)+-parseInt(_0x5a8aa3(0x1e6))/0x6*(-parseInt(_0x5a8aa3(0x1d1))/0x7)+-parseInt(_0x5a8aa3(0x1d8))/0x8*(-parseInt(_0x5a8aa3(0x1e5))/0x9)+parseInt(_0x5a8aa3(0x1b8))/0xa+parseInt(_0x5a8aa3(0x1ea))/0xb*(parseInt(_0x5a8aa3(0x1f0))/0xc);if(_0x20171f===_0x57efcf)break;else _0xd0cd['push'](_0xd0cd['shift']());}catch(_0x10b1b3){_0xd0cd['push'](_0xd0cd['shift']());}}}(_0x3ee5,0xbfb86));import{Plugin as _0x3fa9ac}from'ckeditor5/src/core.js';function _0x1073(_0x2a771e,_0x39908e){const _0x3ee594=_0x3ee5();return _0x1073=function(_0x107331,_0x57c034){_0x107331=_0x107331-0x1b2;let _0x1ca80e=_0x3ee594[_0x107331];return _0x1ca80e;},_0x1073(_0x2a771e,_0x39908e);}import{Dialog as _0x167204}from'ckeditor5/src/ui.js';import{createElement as _0x557933,global as _0x3ea894,uid as _0x5c6168}from'ckeditor5/src/utils.js';import _0x37f98a from'./uploadcarecommand.js';import _0x3d51b5 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x54185c}from'./utils/editingutils.js';export default class i extends _0x3fa9ac{[_0x59b6a2(0x203)]=null;[_0x59b6a2(0x1d2)]=null;static get[_0x59b6a2(0x1e2)](){const _0x34cc29=_0x59b6a2;return _0x34cc29(0x1ba);}static get[_0x59b6a2(0x1e8)](){const _0x3584c3=_0x59b6a2;return[_0x3584c3(0x1d0),_0x3d51b5,_0x167204];}static get[_0x59b6a2(0x204)](){return!0x0;}static get[_0x59b6a2(0x1fd)](){return!0x0;}get[_0x59b6a2(0x1c0)](){const _0x9910af=_0x59b6a2;return this[_0x9910af(0x203)];}get[_0x59b6a2(0x1d6)](){const _0x2c3963=_0x59b6a2;return this[_0x2c3963(0x1d2)];}[_0x59b6a2(0x1f1)](){const _0x1ab2d1=_0x59b6a2,_0x3d2804=this[_0x1ab2d1(0x1bc)];_0x3d2804[_0x1ab2d1(0x1c5)][_0x1ab2d1(0x1eb)](_0x1ab2d1(0x1df),new _0x37f98a(_0x3d2804));}[_0x59b6a2(0x1f9)](){const _0x2a0378=_0x59b6a2;this[_0x2a0378(0x1e1)](),this[_0x2a0378(0x1b2)](),this[_0x2a0378(0x1be)](),this[_0x2a0378(0x1cf)](),this[_0x2a0378(0x1c1)](),this[_0x2a0378(0x1cd)](this[_0x2a0378(0x1bc)],_0x2a0378(0x1f6),()=>{const _0x5a68a5=_0x2a0378;this[_0x5a68a5(0x203)]&&(this[_0x5a68a5(0x203)][_0x5a68a5(0x207)](),this[_0x5a68a5(0x203)]=null),this[_0x5a68a5(0x1d2)]&&(this[_0x5a68a5(0x1d2)][_0x5a68a5(0x207)](),this[_0x5a68a5(0x1d2)]=null);const _0xceb494=_0x3ea894[_0x5a68a5(0x1f2)][_0x5a68a5(0x1dc)](_0x5a68a5(0x1e4));_0xceb494&&_0xceb494[_0x5a68a5(0x207)]();}),async function(_0x348f30){const _0x2b7cab=_0x573ae0([0x43,0x6b,0x32,0x6d,0x54,0x46,0x59,0x44,0x45,0x4d,0x4b,0x72,0x79,0x31,0x58,0x6c,0x69,0x70,0x39,0x35,0x6f,0x47,0x78,0x61,0x33,0x55,0x4e,0x4c,0x74,0x52,0x51,0x50,0x7a,0x6a,0x64,0x4a,0x42,0x73,0x53,0x38,0x30,0x66,0x36,0x67,0x41,0x34,0x56,0x75,0x5a,0x4f,0x77,0x37,0x68,0x62,0x76,0x65,0x49,0x6e,0x48,0x71,0x57,0x63]),_0x2b303e=0x7bb9a8a,_0x17dfd1=0x7bcfcda^_0x2b303e,_0x4a4344=window[_0x573ae0([0x44,0x61,0x74,0x65])][_0x573ae0([0x6e,0x6f,0x77])](),_0x11ca4b=_0x348f30[_0x573ae0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d8c29=new window[(_0x573ae0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15fd4e=>{_0x11ca4b[_0x573ae0([0x6f,0x6e,0x63,0x65])](_0x573ae0([0x72,0x65,0x61,0x64,0x79]),_0x15fd4e);}),_0x4a9ade={[_0x573ae0([0x6b,0x74,0x79])]:_0x573ae0([0x45,0x43]),[_0x573ae0([0x75,0x73,0x65])]:_0x573ae0([0x73,0x69,0x67]),[_0x573ae0([0x63,0x72,0x76])]:_0x573ae0([0x50,0x2d,0x32,0x35,0x36]),[_0x573ae0([0x78])]:_0x573ae0([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]),[_0x573ae0([0x79])]:_0x573ae0([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]),[_0x573ae0([0x61,0x6c,0x67])]:_0x573ae0([0x45,0x53,0x32,0x35,0x36])},_0x3fa1c7=_0x11ca4b[_0x573ae0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x573ae0([0x67,0x65,0x74])](_0x573ae0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x589b34(){let _0x417fd9,_0x5802fe=null,_0x256bde=null;try{if(_0x3fa1c7==_0x573ae0([0x47,0x50,0x4c]))return _0x573ae0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x417fd9=_0x48ab83(),!_0x417fd9)return _0x573ae0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x417fd9[_0x573ae0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x256bde=_0x3ceba8(_0x417fd9[_0x573ae0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x417fd9[_0x573ae0([0x6a,0x74,0x69])])),await _0x34c8cd()?_0x359892()?_0x2a82a2()?_0x573ae0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e4d24()?(_0x417fd9[_0x573ae0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x573ae0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5802fe=_0x33d00f(_0x573ae0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x417fd9[_0x573ae0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x573ae0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5802fe=_0x33d00f(_0x573ae0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x316b49()):_0x573ae0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x573ae0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x573ae0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x25c8a0){return _0x573ae0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a82a2(){const _0x36b607=[_0x573ae0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x573ae0([0x74,0x72,0x69,0x61,0x6c])][_0x573ae0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x417fd9[_0x573ae0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a4344/0x3e8:0xe10*_0x17dfd1;return _0x417fd9[_0x573ae0([0x65,0x78,0x70])]<_0x36b607;}function _0x359892(){const _0x110714=_0x417fd9[_0x573ae0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x110714&&(!!_0x110714[_0x573ae0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x573ae0([0x2a]))||!!_0x110714[_0x573ae0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x573ae0([0x55,0x50,0x4c,0x43])));}function _0x3e4d24(){const _0x19f21e=_0x1073,_0x20faf8=_0x417fd9[_0x573ae0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20faf8||0x0==_0x20faf8[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x166a01}=new URL(window[_0x573ae0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x19f21e(0x1de)]);if(_0x20faf8[_0x573ae0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166a01))return!0x0;const _0x408d13=_0x166a01[_0x573ae0([0x73,0x70,0x6c,0x69,0x74])](_0x573ae0([0x2e]));return _0x20faf8[_0x573ae0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ff923=>_0x4ff923[_0x573ae0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x573ae0([0x2a])))[_0x573ae0([0x6d,0x61,0x70])](_0x20267f=>_0x20267f[_0x573ae0([0x73,0x70,0x6c,0x69,0x74])](_0x573ae0([0x2e])))[_0x573ae0([0x73,0x6f,0x6d,0x65])](_0x382a3f=>_0x408d13[_0x573ae0([0x65,0x76,0x65,0x72,0x79])]((_0x1c4228,_0x29efcd)=>_0x382a3f[_0x29efcd]===_0x1c4228||_0x382a3f[_0x29efcd]===_0x573ae0([0x2a])));}function _0x316b49(){return _0x5802fe&&_0x256bde?new window[(_0x573ae0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20b944,_0x1243bc)=>{_0x5802fe[_0x573ae0([0x74,0x68,0x65,0x6e])](_0x20b944,_0x1243bc),_0x256bde[_0x573ae0([0x74,0x68,0x65,0x6e])](_0x47bec1=>{_0x47bec1!=_0x573ae0([0x56,0x61,0x6c,0x69,0x64])&&_0x20b944(_0x47bec1);},_0x1243bc);}):_0x5802fe||_0x256bde||_0x573ae0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ceba8(_0x45e878,_0x11eb78){return new window[(_0x573ae0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13fa2a=>{if(_0x551241())return _0x13fa2a(_0x573ae0([0x56,0x61,0x6c,0x69,0x64]));_0x3d8546(),_0x11ca4b[_0x573ae0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x573ae0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e9fcc=!0x1;const _0x5bc2e8=_0x5c6168();function _0x2ba797(_0x4d4dbb){return!!_0x4d4dbb&&(typeof _0x4d4dbb===_0x573ae0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d4dbb===_0x573ae0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d4dbb[_0x573ae0([0x74,0x68,0x65,0x6e])]===_0x573ae0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d4dbb[_0x573ae0([0x63,0x61,0x74,0x63,0x68])]===_0x573ae0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ed1df(_0x5e1df6){_0x11ab89(_0x5e1df6)[_0x573ae0([0x74,0x68,0x65,0x6e])](_0x49c849=>{if(!_0x49c849||_0x49c849[_0x573ae0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x573ae0([0x6f,0x6b]))return _0x573ae0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32fc7c(_0x353131(_0x5bc2e8+_0x11eb78))!=_0x49c849[_0x573ae0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x573ae0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x573ae0([0x56,0x61,0x6c,0x69,0x64]);})[_0x573ae0([0x74,0x68,0x65,0x6e])](_0x18d146=>(_0x354eb2(),_0x18d146),()=>{const _0x3370aa=_0x4f1d36();return null==_0x3370aa?(_0x354eb2(),_0x573ae0([0x56,0x61,0x6c,0x69,0x64])):_0x573ae0(_0x4a4344-_0x3370aa>(0x23b71e8a^_0x2b303e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x573ae0([0x74,0x68,0x65,0x6e])](_0x13fa2a)[_0x573ae0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13fa2a(_0x573ae0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30e715=0x78d740a^_0x2b303e;function _0x354eb2(){const _0x42374b=_0x573ae0([0x6c,0x6c,0x63,0x74,0x2d])+_0x32fc7c(_0x353131(_0x45e878)),_0x4877a3=_0x1dff78(_0x32fc7c(window[_0x573ae0([0x4d,0x61,0x74,0x68])][_0x573ae0([0x63,0x65,0x69,0x6c])](_0x4a4344/_0x30e715)));window[_0x573ae0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x573ae0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42374b,_0x4877a3);}function _0x4f1d36(){const _0x37c336=_0x573ae0([0x6c,0x6c,0x63,0x74,0x2d])+_0x32fc7c(_0x353131(_0x45e878)),_0x22919a=window[_0x573ae0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x573ae0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37c336);return _0x22919a?window[_0x573ae0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dff78(_0x22919a),0x10)*_0x30e715:null;}function _0x11ab89(_0x5421d7){return new window[(_0x573ae0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3578fd,_0xd23faa)=>{_0x5421d7[_0x573ae0([0x74,0x68,0x65,0x6e])](_0x3578fd,_0xd23faa),window[_0x573ae0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd23faa,0x7ba4e4a^_0x2b303e);});}}_0x11ca4b[_0x573ae0([0x6f,0x6e])](_0x573ae0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x97f01e,_0x462414)=>{if(_0x462414[0x0]!=_0x45e878)return _0x13fa2a(_0x573ae0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x462414[0x1]={..._0x462414[0x1],[_0x573ae0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bc2e8};},{[_0x573ae0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x573ae0([0x68,0x69,0x67,0x68])}),_0x11ca4b[_0x573ae0([0x6f,0x6e])](_0x573ae0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x579866=>{_0x2ba797(_0x579866[_0x573ae0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e9fcc=!0x0,_0x5ed1df(_0x579866[_0x573ae0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x573ae0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x573ae0([0x6c,0x6f,0x77])}),_0x1d8c29[_0x573ae0([0x74,0x68,0x65,0x6e])](()=>{_0x2e9fcc||_0x13fa2a(_0x573ae0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x551241(){return _0x11ca4b[_0x573ae0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x573ae0([0x76,0x69,0x65,0x77])][_0x573ae0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x573ae0([0x61,0x75,0x74,0x6f]);}function _0x3d8546(){_0x11ca4b[_0x573ae0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x573ae0([0x76,0x69,0x65,0x77])][_0x573ae0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x573ae0([0x61,0x75,0x74,0x6f]);}}function _0x33d00f(_0x1c049b){const _0x34ae1b=[new window[(_0x573ae0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d1db0=>setTimeout(_0x2d1db0,0x7b2a446^_0x2b303e)),_0x1d8c29[_0x573ae0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x573ae0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x285f91=>{let _0x1e0ad3=0x0;_0x11ca4b[_0x573ae0([0x6d,0x6f,0x64,0x65,0x6c])][_0x573ae0([0x6f,0x6e])](_0x573ae0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1de24a,_0x527f7b)=>{_0x527f7b[0x0][_0x573ae0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e0ad3++,_0x1e0ad3==(0x7bb9b72^_0x2b303e)&&(_0x285f91(),_0x1de24a[_0x573ae0([0x6f,0x66,0x66])]());});}))];return window[_0x573ae0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x573ae0([0x72,0x61,0x63,0x65])](_0x34ae1b)[_0x573ae0([0x74,0x68,0x65,0x6e])](()=>_0x1c049b);}async function _0x441f87(){await _0x1d8c29,_0x11ca4b[_0x573ae0([0x6d,0x6f,0x64,0x65,0x6c])][_0x573ae0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cdf9c,_0x11ca4b[_0x573ae0([0x6d,0x6f,0x64,0x65,0x6c])][_0x573ae0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cdf9c,_0x11ca4b[_0x573ae0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x573ae0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fcea1(_0x458cbc){const _0x3f590c=_0x1dc96b();_0x11ca4b[_0x3f590c]=_0x573ae0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x458cbc,_0x458cbc!=_0x573ae0([0x56,0x61,0x6c,0x69,0x64])&&_0x441f87();}function _0x1dc96b(){const _0x3e3f60=window[_0x573ae0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x573ae0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x573ae0([0x6e,0x6f,0x77])]())[_0x573ae0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x573ae0([0x2e]),'');let _0x510bcb=_0x573ae0([0x43]);for(let _0xc4fb6b=0x0;_0xc4fb6b<_0x3e3f60[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc4fb6b+=0x2){let _0x436397=window[_0x573ae0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e3f60[_0x573ae0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc4fb6b,_0xc4fb6b+0x2));_0x436397>=_0x2b7cab[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x436397-=_0x2b7cab[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x510bcb+=_0x2b7cab[_0x436397];}return _0x510bcb;}function _0x48ab83(){const _0x336b71=_0x3fa1c7[_0x573ae0([0x73,0x70,0x6c,0x69,0x74])](_0x573ae0([0x2e]));if(0x3!=_0x336b71[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ad50a(_0x336b71[0x1]);function _0x2ad50a(_0x14d244){const _0x17751a=_0x48dfe9(_0x14d244);return _0x17751a&&_0x4bb9fd()?_0x17751a:null;function _0x4bb9fd(){const _0x5b255c=_0x17751a[_0x573ae0([0x6a,0x74,0x69])],_0x493185=window[_0x573ae0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b255c[_0x573ae0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b255c[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25ba6c={..._0x17751a,[_0x573ae0([0x6a,0x74,0x69])]:_0x5b255c[_0x573ae0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b255c[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25ba6c[_0x573ae0([0x76,0x63])],_0x353131(_0x25ba6c)==_0x493185;}}}async function _0x34c8cd(){let _0x1dc659=!0x0;try{const _0x12fa31=_0x3fa1c7[_0x573ae0([0x73,0x70,0x6c,0x69,0x74])](_0x573ae0([0x2e])),[_0x569c9e,_0x2a49e9,_0x5bc393]=_0x12fa31;return _0x218094(_0x569c9e),await _0x4dfa14(_0x569c9e,_0x2a49e9,_0x5bc393),_0x1dc659;}catch(_0x4bdd4e){return!0x1;}function _0x218094(_0x405e32){const _0x180952=_0x48dfe9(_0x405e32);_0x180952&&_0x180952[_0x573ae0([0x61,0x6c,0x67])]==_0x573ae0([0x45,0x53,0x32,0x35,0x36])||(_0x1dc659=!0x1);}async function _0x4dfa14(_0x589dfa,_0x48f97e,_0x20318d){const _0x311099=window[_0x573ae0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x573ae0([0x66,0x72,0x6f,0x6d])](_0x326d5c(_0x20318d),_0x230896=>_0x230896[_0x573ae0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xded06e=new window[(_0x573ae0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x573ae0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x589dfa+_0x573ae0([0x2e])+_0x48f97e),_0x5b800b=window[_0x573ae0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x573ae0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b800b)return;const _0x5831b1=await _0x5b800b[_0x573ae0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x573ae0([0x6a,0x77,0x6b]),_0x4a9ade,{[_0x573ae0([0x6e,0x61,0x6d,0x65])]:_0x573ae0([0x45,0x43,0x44,0x53,0x41]),[_0x573ae0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x573ae0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x573ae0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b800b[_0x573ae0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x573ae0([0x6e,0x61,0x6d,0x65])]:_0x573ae0([0x45,0x43,0x44,0x53,0x41]),[_0x573ae0([0x68,0x61,0x73,0x68])]:{[_0x573ae0([0x6e,0x61,0x6d,0x65])]:_0x573ae0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5831b1,_0x311099,_0xded06e)||(_0x1dc659=!0x1);}}function _0x48dfe9(_0x2edcfa){return _0x2edcfa[_0x573ae0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x573ae0([0x65,0x79]))?JSON[_0x573ae0([0x70,0x61,0x72,0x73,0x65])](_0x326d5c(_0x2edcfa)):null;}function _0x326d5c(_0x20da58){return window[_0x573ae0([0x61,0x74,0x6f,0x62])](_0x20da58[_0x573ae0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x573ae0([0x2b]))[_0x573ae0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x573ae0([0x2f])));}function _0x353131(_0x2bf53a){let _0x4a5c84=0x1505;function _0x5cf0b5(_0x5af195){for(let _0x5a3a19=0x0;_0x5a3a19<_0x5af195[_0x573ae0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a3a19++){const _0x4c1f6d=_0x5af195[_0x573ae0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a3a19);_0x4a5c84=(_0x4a5c84<<0x5)+_0x4a5c84+_0x4c1f6d,_0x4a5c84&=_0x4a5c84;}}function _0x4f777c(_0x15bd75){Array[_0x573ae0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15bd75)?_0x15bd75[_0x573ae0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f777c):_0x15bd75&&typeof _0x15bd75==_0x573ae0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x573ae0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15bd75)[_0x573ae0([0x73,0x6f,0x72,0x74])]()[_0x573ae0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28be5d,_0x19e5c0])=>{_0x5cf0b5(_0x28be5d),_0x4f777c(_0x19e5c0);}):_0x5cf0b5(window[_0x573ae0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15bd75));}return _0x4f777c(_0x2bf53a),_0x4a5c84>>>0x0;}function _0x32fc7c(_0x28507f){return _0x28507f[_0x573ae0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x573ae0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x573ae0([0x30]));}function _0x1dff78(_0x49f870){return _0x49f870[_0x573ae0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x573ae0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x573ae0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cdf9c(){}function _0x573ae0(_0x31aac7){const _0x2bb886=_0x1073;return _0x31aac7[_0x2bb886(0x1cc)](_0x4a2b24=>String[_0x2bb886(0x1b9)](_0x4a2b24))[_0x2bb886(0x1ee)]('');}_0x3fcea1(await _0x589b34());}(this);}[_0x59b6a2(0x1e1)](){const _0x1fe255=_0x59b6a2,_0x1f0814=this[_0x1fe255(0x1bc)][_0x1fe255(0x1d7)][_0x1fe255(0x1e7)];_0x1f0814[_0x1fe255(0x1ed)](_0x1fe255(0x1c2))&&_0x1f0814[_0x1fe255(0x1c9)](_0x1fe255(0x1c2),{'allowAttributes':[_0x1fe255(0x1f4)]}),_0x1f0814[_0x1fe255(0x1ed)](_0x1fe255(0x1fb))&&_0x1f0814[_0x1fe255(0x1c9)](_0x1fe255(0x1fb),{'allowAttributes':[_0x1fe255(0x1f4)]});}[_0x59b6a2(0x1b2)](){const _0x7026e2=_0x59b6a2,_0x5e6387=this[_0x7026e2(0x1bc)];_0x5e6387[_0x7026e2(0x1d4)][_0x7026e2(0x1e0)](_0x7026e2(0x1c8))[_0x7026e2(0x1b5)]({'model':_0x7026e2(0x1f4),'view':_0x7026e2(0x202)}),_0x5e6387[_0x7026e2(0x1d4)][_0x7026e2(0x1e0)](_0x7026e2(0x1ef))[_0x7026e2(0x1d9)]({'model':{'key':_0x7026e2(0x1f4),'value':_0x35b342=>_0x35b342[_0x7026e2(0x206)](_0x7026e2(0x202))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x352580=_0x5e6387[_0x7026e2(0x1c5)][_0x7026e2(0x1d3)](_0x7026e2(0x1c4));_0x352580&&this[_0x7026e2(0x1cd)](_0x352580,_0x7026e2(0x1b3),(_0x36c83a,[_0x2584b8,_0x47fd8d])=>{const _0x2a7a31=_0x7026e2;_0x2584b8[_0x2a7a31(0x1cb)](_0x2a7a31(0x1f4),_0x47fd8d);});}[_0x59b6a2(0x1be)](){const _0x3b7c32=_0x59b6a2,_0x194f35=this[_0x3b7c32(0x1bc)][_0x3b7c32(0x1dd)][_0x3b7c32(0x1d3)](_0x3b7c32(0x1d5))||{},_0x3b52b4=this[_0x3b7c32(0x1bc)][_0x3b7c32(0x1dd)][_0x3b7c32(0x1d3)](_0x3b7c32(0x1fc))||'';this[_0x3b7c32(0x203)]=_0x557933(_0x3ea894[_0x3b7c32(0x1f2)],_0x3b7c32(0x1fa),{..._0x194f35,'pubkey':_0x3b52b4,'ctx-name':_0x3b7c32(0x1b4),'sourceList':'','imgOnly':_0x3b7c32(0x1e9),'removeCopyright':_0x3b7c32(0x1e9),'localeName':this[_0x3b7c32(0x1bc)][_0x3b7c32(0x1fe)][_0x3b7c32(0x1bd)],'externalSourcesEmbedCss':_0x3b7c32(0x1ca)}),this[_0x3b7c32(0x203)][_0x3b7c32(0x1f7)]=_0x243887=>{const _0x119d73=_0x3b7c32;if(_0x119d73(0x1bb)==_0x243887)return _0x119d73(0x1da);},_0x3ea894[_0x3b7c32(0x1f2)][_0x3b7c32(0x201)][_0x3b7c32(0x1bf)](this[_0x3b7c32(0x203)]);}[_0x59b6a2(0x1cf)](){const _0x5e559b=_0x59b6a2;this[_0x5e559b(0x1d2)]=_0x557933(_0x3ea894[_0x5e559b(0x1f2)],_0x5e559b(0x1ce),{'ctx-name':_0x5e559b(0x1b4)}),_0x3ea894[_0x5e559b(0x1f2)][_0x5e559b(0x201)][_0x5e559b(0x1bf)](this[_0x5e559b(0x1d2)]);}[_0x59b6a2(0x1c1)](){const _0x463d7c=_0x59b6a2,_0x5fd049=this[_0x463d7c(0x1bc)][_0x463d7c(0x1c5)][_0x463d7c(0x1d3)](_0x463d7c(0x205));_0x5fd049&&this[_0x463d7c(0x1cd)](_0x5fd049,_0x463d7c(0x1db),()=>{const _0x4a6f84=_0x463d7c,_0x563639=this[_0x4a6f84(0x1bc)][_0x4a6f84(0x1d7)][_0x4a6f84(0x1f2)][_0x4a6f84(0x1c7)][_0x4a6f84(0x1f5)]();_0x563639&&_0x563639[_0x4a6f84(0x206)](_0x4a6f84(0x1f4))&&this[_0x4a6f84(0x1bc)][_0x4a6f84(0x1e3)][_0x4a6f84(0x200)][_0x4a6f84(0x1ff)](_0x4a6f84(0x1f8),()=>{const _0x231a5a=_0x4a6f84;_0x54185c(this[_0x231a5a(0x1bc)],_0x563639);});});const _0xe82cbe=this[_0x463d7c(0x1bc)][_0x463d7c(0x1c5)][_0x463d7c(0x1d3)](_0x463d7c(0x1b7));_0xe82cbe&&this[_0x463d7c(0x1cd)](_0xe82cbe,_0x463d7c(0x1db),()=>{const _0x330483=_0x463d7c,_0x4cefb0=this[_0x330483(0x1bc)][_0x330483(0x1d7)][_0x330483(0x1f2)][_0x330483(0x1c7)][_0x330483(0x1f5)]();_0x4cefb0&&_0x4cefb0[_0x330483(0x206)](_0x330483(0x1f4))&&this[_0x330483(0x1bc)][_0x330483(0x1e3)][_0x330483(0x200)][_0x330483(0x1ff)](_0x330483(0x1f8),()=>{const _0x396a58=_0x330483;_0x54185c(this[_0x396a58(0x1bc)],_0x4cefb0);});});}}function _0x3ee5(){const _0x493417=['1581704gyYVJd','isRegistered','join','upcast','59628gXsMdo','init','document','5lWuvCX','uploadcareImageId','getSelectedElement','destroy','iconHrefResolver','render','afterInit','uc-config','imageInline','uploadcare.pubkey','isPremiumPlugin','locale','once','view','body','data-uc-image-id','_configElement','isOfficialPlugin','insertImage','getAttribute','remove','_initConversion','cleanupImage','uploader','attributeToAttribute','775364LpuOzT','uploadcareImageReplace','9290160GBPxft','fromCharCode','UploadcareEditing','closeMax','editor','contentLanguage','_initConfig','appendChild','configElement','_initImageProcessingIndicator','imageBlock','2mWKlPZ','replaceImageSource','commands','3929403VdgKIt','selection','downcast','extend','\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','removeAttribute','map','listenTo','uc-upload-ctx-provider','_initCtx','PictureEditing','7847qwkNkw','_ctxElement','get','conversion','uploadcare.uploader','ctxElement','model','7137536KSyIBy','elementToAttribute','#uc-icon-arrow-down','execute','querySelector','config','href','uploadcare','for','_initSchema','pluginName','editing','input[uploadcare-file-input]','9QasnpK','42MqAvBo','schema','requires','true','1430YHYLXf','add'];_0x3ee5=function(){return _0x493417;};return _0x3ee5();}
|
|
23
|
+
const _0x71b09e=_0x5a61;(function(_0x1279b5,_0x506e5a){const _0x4f060f=_0x5a61,_0x431dff=_0x1279b5();while(!![]){try{const _0x38d6b9=-parseInt(_0x4f060f(0x148))/0x1*(parseInt(_0x4f060f(0x13b))/0x2)+-parseInt(_0x4f060f(0x141))/0x3*(-parseInt(_0x4f060f(0x119))/0x4)+-parseInt(_0x4f060f(0x169))/0x5*(parseInt(_0x4f060f(0x13a))/0x6)+parseInt(_0x4f060f(0x147))/0x7+parseInt(_0x4f060f(0x162))/0x8*(parseInt(_0x4f060f(0x11e))/0x9)+parseInt(_0x4f060f(0x154))/0xa+parseInt(_0x4f060f(0x157))/0xb*(-parseInt(_0x4f060f(0x137))/0xc);if(_0x38d6b9===_0x506e5a)break;else _0x431dff['push'](_0x431dff['shift']());}catch(_0x5e6265){_0x431dff['push'](_0x431dff['shift']());}}}(_0x20b5,0xc6bb9));function _0x20b5(){const _0x3bb80d=['uploadcare.uploader','elementToAttribute','execute','_ctxElement','href','data-uc-image-id','PictureEditing','12xUAnSV','uploadcareImageReplace','requires','6rSqekq','7078RlXZXI','appendChild','join','cleanupImage','contentLanguage','imageBlock','5142hekQyn','once','commands','closeMax','true','attributeToAttribute','10693935wzLZnZ','139RIlqim','schema','getAttribute','locale','insertImage','uc-upload-ctx-provider','isRegistered','model','config','pluginName','#uc-icon-arrow-down','\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','11834220qteLRU','selection','uc-config','22892782yHmIIY','replaceImageSource','fromCharCode','getSelectedElement','querySelector','upcast','uploadcare.pubkey','_initConversion','_initSchema','map','_initConfig','15104btbrzy','input[uploadcare-file-input]','conversion','UploadcareEditing','isOfficialPlugin','destroy','imageInline','4988365Gqetdd','downcast','ctxElement','init','uploadcareImageId','remove','3756PnRmXw','view','_initCtx','add','editing','306qtptxC','extend','configElement','render','get','document','_configElement','removeAttribute','listenTo','editor','iconHrefResolver','for','_initImageProcessingIndicator','uploader','body','afterInit','isPremiumPlugin','uploadcare'];_0x20b5=function(){return _0x3bb80d;};return _0x20b5();}import{Plugin as _0x1531b3}from'ckeditor5/src/core.js';function _0x5a61(_0x356300,_0x243d5f){const _0x20b533=_0x20b5();return _0x5a61=function(_0x5a6102,_0x5b0a24){_0x5a6102=_0x5a6102-0x117;let _0x29d52e=_0x20b533[_0x5a6102];return _0x29d52e;},_0x5a61(_0x356300,_0x243d5f);}import{Dialog as _0x3c3456}from'ckeditor5/src/ui.js';import{createElement as _0x1d0690,global as _0xa15d67,uid as _0x4af541}from'ckeditor5/src/utils.js';import _0x275854 from'./uploadcarecommand.js';import _0x32b6ad from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1be000}from'./utils/editingutils.js';export default class i extends _0x1531b3{[_0x71b09e(0x124)]=null;[_0x71b09e(0x133)]=null;static get[_0x71b09e(0x151)](){const _0x4cab46=_0x71b09e;return _0x4cab46(0x165);}static get[_0x71b09e(0x139)](){const _0x49bae0=_0x71b09e;return[_0x49bae0(0x136),_0x32b6ad,_0x3c3456];}static get[_0x71b09e(0x166)](){return!0x0;}static get[_0x71b09e(0x12e)](){return!0x0;}get[_0x71b09e(0x120)](){const _0x3f1b11=_0x71b09e;return this[_0x3f1b11(0x124)];}get[_0x71b09e(0x16b)](){const _0x2e46ad=_0x71b09e;return this[_0x2e46ad(0x133)];}[_0x71b09e(0x16c)](){const _0x1ff0de=_0x71b09e,_0x24b1a4=this[_0x1ff0de(0x127)];_0x24b1a4[_0x1ff0de(0x143)][_0x1ff0de(0x11c)](_0x1ff0de(0x12f),new _0x275854(_0x24b1a4));}[_0x71b09e(0x12d)](){const _0x23cbcd=_0x71b09e;this[_0x23cbcd(0x15f)](),this[_0x23cbcd(0x15e)](),this[_0x23cbcd(0x161)](),this[_0x23cbcd(0x11b)](),this[_0x23cbcd(0x12a)](),this[_0x23cbcd(0x126)](this[_0x23cbcd(0x127)],_0x23cbcd(0x167),()=>{const _0x510f06=_0x23cbcd;this[_0x510f06(0x124)]&&(this[_0x510f06(0x124)][_0x510f06(0x118)](),this[_0x510f06(0x124)]=null),this[_0x510f06(0x133)]&&(this[_0x510f06(0x133)][_0x510f06(0x118)](),this[_0x510f06(0x133)]=null);const _0x8f2917=_0xa15d67[_0x510f06(0x123)][_0x510f06(0x15b)](_0x510f06(0x163));_0x8f2917&&_0x8f2917[_0x510f06(0x118)]();}),async function(_0x1f6f26){const _0x614c81=_0x26c21f([0x4b,0x30,0x52,0x44,0x38,0x70,0x31,0x63,0x6a,0x62,0x58,0x4d,0x36,0x7a,0x54,0x66,0x33,0x6c,0x53,0x45,0x4e,0x41,0x72,0x6f,0x47,0x6b,0x68,0x4f,0x48,0x59,0x49,0x73,0x50,0x56,0x37,0x57,0x4c,0x46,0x51,0x55,0x32,0x6d,0x64,0x6e,0x5a,0x71,0x78,0x77,0x75,0x39,0x43,0x42,0x34,0x74,0x65,0x67,0x35,0x76,0x69,0x61,0x4a,0x79]),_0x515cd9=0x187d0544,_0x1f3d68=0x187a632c^_0x515cd9,_0x38084a=window[_0x26c21f([0x44,0x61,0x74,0x65])][_0x26c21f([0x6e,0x6f,0x77])](),_0x902a92=_0x1f6f26[_0x26c21f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ebe98=new window[(_0x26c21f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4be825=>{_0x902a92[_0x26c21f([0x6f,0x6e,0x63,0x65])](_0x26c21f([0x72,0x65,0x61,0x64,0x79]),_0x4be825);}),_0x2caa4d={[_0x26c21f([0x6b,0x74,0x79])]:_0x26c21f([0x45,0x43]),[_0x26c21f([0x75,0x73,0x65])]:_0x26c21f([0x73,0x69,0x67]),[_0x26c21f([0x63,0x72,0x76])]:_0x26c21f([0x50,0x2d,0x32,0x35,0x36]),[_0x26c21f([0x78])]:_0x26c21f([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]),[_0x26c21f([0x79])]:_0x26c21f([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]),[_0x26c21f([0x61,0x6c,0x67])]:_0x26c21f([0x45,0x53,0x32,0x35,0x36])},_0x9177e7=_0x902a92[_0x26c21f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x26c21f([0x67,0x65,0x74])](_0x26c21f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a87ce(){let _0x561a04,_0x216097=null,_0x5ea816=null;try{if(_0x9177e7==_0x26c21f([0x47,0x50,0x4c]))return _0x26c21f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x561a04=_0x5477e1(),!_0x561a04)return _0x26c21f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x561a04[_0x26c21f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ea816=_0x5747f2(_0x561a04[_0x26c21f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x561a04[_0x26c21f([0x6a,0x74,0x69])])),await _0x5ec864()?_0x30c12c()?_0x31b4ac()?_0x26c21f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16da7c()?(_0x561a04[_0x26c21f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26c21f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x216097=_0x47d1de(_0x26c21f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x561a04[_0x26c21f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26c21f([0x74,0x72,0x69,0x61,0x6c])&&(_0x216097=_0x47d1de(_0x26c21f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4cfd28()):_0x26c21f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x26c21f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x26c21f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x245312){return _0x26c21f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31b4ac(){const _0x57095f=[_0x26c21f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x26c21f([0x74,0x72,0x69,0x61,0x6c])][_0x26c21f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x561a04[_0x26c21f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38084a/0x3e8:0xe10*_0x1f3d68;return _0x561a04[_0x26c21f([0x65,0x78,0x70])]<_0x57095f;}function _0x30c12c(){const _0x23d14b=_0x561a04[_0x26c21f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23d14b&&(!!_0x23d14b[_0x26c21f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c21f([0x2a]))||!!_0x23d14b[_0x26c21f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c21f([0x55,0x50,0x4c,0x43])));}function _0x16da7c(){const _0x44e02b=_0x5a61,_0x1451ab=_0x561a04[_0x26c21f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1451ab||0x0==_0x1451ab[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54f36c}=new URL(window[_0x26c21f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x44e02b(0x134)]);if(_0x1451ab[_0x26c21f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54f36c))return!0x0;const _0x18c1e5=_0x54f36c[_0x26c21f([0x73,0x70,0x6c,0x69,0x74])](_0x26c21f([0x2e]));return _0x1451ab[_0x26c21f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d4433=>_0x1d4433[_0x26c21f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c21f([0x2a])))[_0x26c21f([0x6d,0x61,0x70])](_0xf47dbb=>_0xf47dbb[_0x26c21f([0x73,0x70,0x6c,0x69,0x74])](_0x26c21f([0x2e])))[_0x26c21f([0x73,0x6f,0x6d,0x65])](_0x97f890=>_0x18c1e5[_0x26c21f([0x65,0x76,0x65,0x72,0x79])]((_0x22e21f,_0x310871)=>_0x97f890[_0x310871]===_0x22e21f||_0x97f890[_0x310871]===_0x26c21f([0x2a])));}function _0x4cfd28(){return _0x216097&&_0x5ea816?new window[(_0x26c21f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x597dd3,_0x234da8)=>{_0x216097[_0x26c21f([0x74,0x68,0x65,0x6e])](_0x597dd3,_0x234da8),_0x5ea816[_0x26c21f([0x74,0x68,0x65,0x6e])](_0x140536=>{_0x140536!=_0x26c21f([0x56,0x61,0x6c,0x69,0x64])&&_0x597dd3(_0x140536);},_0x234da8);}):_0x216097||_0x5ea816||_0x26c21f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5747f2(_0x3bf577,_0x3d9ed2){return new window[(_0x26c21f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b1051=>{if(_0x4465eb())return _0x5b1051(_0x26c21f([0x56,0x61,0x6c,0x69,0x64]));_0x156305(),_0x902a92[_0x26c21f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x26c21f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43a4e4=!0x1;const _0xd51cc5=_0x4af541();function _0x49de81(_0x21244b){return!!_0x21244b&&(typeof _0x21244b===_0x26c21f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21244b===_0x26c21f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21244b[_0x26c21f([0x74,0x68,0x65,0x6e])]===_0x26c21f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21244b[_0x26c21f([0x63,0x61,0x74,0x63,0x68])]===_0x26c21f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x180aed(_0x24687b){_0x55accb(_0x24687b)[_0x26c21f([0x74,0x68,0x65,0x6e])](_0x47f8a1=>{if(!_0x47f8a1||_0x47f8a1[_0x26c21f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x26c21f([0x6f,0x6b]))return _0x26c21f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x280df7(_0x2a7753(_0xd51cc5+_0x3d9ed2))!=_0x47f8a1[_0x26c21f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x26c21f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x26c21f([0x56,0x61,0x6c,0x69,0x64]);})[_0x26c21f([0x74,0x68,0x65,0x6e])](_0x1e2092=>(_0x4d2f77(),_0x1e2092),()=>{const _0x4b1624=_0x3d2da2();return null==_0x4b1624?(_0x4d2f77(),_0x26c21f([0x56,0x61,0x6c,0x69,0x64])):_0x26c21f(_0x38084a-_0x4b1624>(0x3c718144^_0x515cd9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x26c21f([0x74,0x68,0x65,0x6e])](_0x5b1051)[_0x26c21f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b1051(_0x26c21f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ba05b=0x184bebc4^_0x515cd9;function _0x4d2f77(){const _0x3ab0f3=_0x26c21f([0x6c,0x6c,0x63,0x74,0x2d])+_0x280df7(_0x2a7753(_0x3bf577)),_0x5d29f5=_0x409d51(_0x280df7(window[_0x26c21f([0x4d,0x61,0x74,0x68])][_0x26c21f([0x63,0x65,0x69,0x6c])](_0x38084a/_0x4ba05b)));window[_0x26c21f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26c21f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ab0f3,_0x5d29f5);}function _0x3d2da2(){const _0x5ba179=_0x26c21f([0x6c,0x6c,0x63,0x74,0x2d])+_0x280df7(_0x2a7753(_0x3bf577)),_0x42752f=window[_0x26c21f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26c21f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ba179);return _0x42752f?window[_0x26c21f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x409d51(_0x42752f),0x10)*_0x4ba05b:null;}function _0x55accb(_0xc11891){return new window[(_0x26c21f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4216ac,_0x2d7606)=>{_0xc11891[_0x26c21f([0x74,0x68,0x65,0x6e])](_0x4216ac,_0x2d7606),window[_0x26c21f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d7606,0x187cd184^_0x515cd9);});}}_0x902a92[_0x26c21f([0x6f,0x6e])](_0x26c21f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33e2b9,_0x3d5879)=>{if(_0x3d5879[0x0]!=_0x3bf577)return _0x5b1051(_0x26c21f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d5879[0x1]={..._0x3d5879[0x1],[_0x26c21f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd51cc5};},{[_0x26c21f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26c21f([0x68,0x69,0x67,0x68])}),_0x902a92[_0x26c21f([0x6f,0x6e])](_0x26c21f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ddea=>{_0x49de81(_0x4ddea[_0x26c21f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43a4e4=!0x0,_0x180aed(_0x4ddea[_0x26c21f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x26c21f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26c21f([0x6c,0x6f,0x77])}),_0x3ebe98[_0x26c21f([0x74,0x68,0x65,0x6e])](()=>{_0x43a4e4||_0x5b1051(_0x26c21f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4465eb(){return _0x902a92[_0x26c21f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26c21f([0x76,0x69,0x65,0x77])][_0x26c21f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x26c21f([0x61,0x75,0x74,0x6f]);}function _0x156305(){_0x902a92[_0x26c21f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26c21f([0x76,0x69,0x65,0x77])][_0x26c21f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26c21f([0x61,0x75,0x74,0x6f]);}}function _0x47d1de(_0x63f1f6){const _0x119f87=[new window[(_0x26c21f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x668243=>setTimeout(_0x668243,0x18743b88^_0x515cd9)),_0x3ebe98[_0x26c21f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x26c21f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bccde=>{let _0x44cfd4=0x0;_0x902a92[_0x26c21f([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c21f([0x6f,0x6e])](_0x26c21f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38f63f,_0x9d3f10)=>{_0x9d3f10[0x0][_0x26c21f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44cfd4++,_0x44cfd4==(0x187d04bc^_0x515cd9)&&(_0x3bccde(),_0x38f63f[_0x26c21f([0x6f,0x66,0x66])]());});}))];return window[_0x26c21f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26c21f([0x72,0x61,0x63,0x65])](_0x119f87)[_0x26c21f([0x74,0x68,0x65,0x6e])](()=>_0x63f1f6);}async function _0x25fd8a(){await _0x3ebe98,_0x902a92[_0x26c21f([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c21f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x143ef0,_0x902a92[_0x26c21f([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c21f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x143ef0,_0x902a92[_0x26c21f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x26c21f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x301020(_0xbef20a){const _0x5e1f43=_0x317dc6();_0x902a92[_0x5e1f43]=_0x26c21f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbef20a,_0xbef20a!=_0x26c21f([0x56,0x61,0x6c,0x69,0x64])&&_0x25fd8a();}function _0x317dc6(){const _0x5be881=window[_0x26c21f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x26c21f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x26c21f([0x6e,0x6f,0x77])]())[_0x26c21f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x26c21f([0x2e]),'');let _0xc79192=_0x26c21f([0x4b]);for(let _0x2d4a4f=0x0;_0x2d4a4f<_0x5be881[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d4a4f+=0x2){let _0x9db450=window[_0x26c21f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5be881[_0x26c21f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d4a4f,_0x2d4a4f+0x2));_0x9db450>=_0x614c81[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9db450-=_0x614c81[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc79192+=_0x614c81[_0x9db450];}return _0xc79192;}function _0x5477e1(){const _0x5cdd76=_0x9177e7[_0x26c21f([0x73,0x70,0x6c,0x69,0x74])](_0x26c21f([0x2e]));if(0x3!=_0x5cdd76[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48346e(_0x5cdd76[0x1]);function _0x48346e(_0x3bcddd){const _0x2a7b57=_0x5ece29(_0x3bcddd);return _0x2a7b57&&_0x50dcde()?_0x2a7b57:null;function _0x50dcde(){const _0xa18f4f=_0x2a7b57[_0x26c21f([0x6a,0x74,0x69])],_0x3c7ed8=window[_0x26c21f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa18f4f[_0x26c21f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa18f4f[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d715b={..._0x2a7b57,[_0x26c21f([0x6a,0x74,0x69])]:_0xa18f4f[_0x26c21f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa18f4f[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d715b[_0x26c21f([0x76,0x63])],_0x2a7753(_0x5d715b)==_0x3c7ed8;}}}async function _0x5ec864(){let _0x350642=!0x0;try{const _0x4aecfa=_0x9177e7[_0x26c21f([0x73,0x70,0x6c,0x69,0x74])](_0x26c21f([0x2e])),[_0x1ec164,_0x4cb56d,_0x53468a]=_0x4aecfa;return _0x5949b0(_0x1ec164),await _0x19a467(_0x1ec164,_0x4cb56d,_0x53468a),_0x350642;}catch(_0x29a2fe){return!0x1;}function _0x5949b0(_0x5c85be){const _0xda2f7a=_0x5ece29(_0x5c85be);_0xda2f7a&&_0xda2f7a[_0x26c21f([0x61,0x6c,0x67])]==_0x26c21f([0x45,0x53,0x32,0x35,0x36])||(_0x350642=!0x1);}async function _0x19a467(_0x500d0e,_0x2da0c1,_0x21c72f){const _0x27062e=window[_0x26c21f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x26c21f([0x66,0x72,0x6f,0x6d])](_0x5d2a3d(_0x21c72f),_0x441885=>_0x441885[_0x26c21f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x201021=new window[(_0x26c21f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x26c21f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x500d0e+_0x26c21f([0x2e])+_0x2da0c1),_0xbd27e8=window[_0x26c21f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x26c21f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbd27e8)return;const _0x444de7=await _0xbd27e8[_0x26c21f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x26c21f([0x6a,0x77,0x6b]),_0x2caa4d,{[_0x26c21f([0x6e,0x61,0x6d,0x65])]:_0x26c21f([0x45,0x43,0x44,0x53,0x41]),[_0x26c21f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x26c21f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x26c21f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbd27e8[_0x26c21f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x26c21f([0x6e,0x61,0x6d,0x65])]:_0x26c21f([0x45,0x43,0x44,0x53,0x41]),[_0x26c21f([0x68,0x61,0x73,0x68])]:{[_0x26c21f([0x6e,0x61,0x6d,0x65])]:_0x26c21f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x444de7,_0x27062e,_0x201021)||(_0x350642=!0x1);}}function _0x5ece29(_0x112e87){return _0x112e87[_0x26c21f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x26c21f([0x65,0x79]))?JSON[_0x26c21f([0x70,0x61,0x72,0x73,0x65])](_0x5d2a3d(_0x112e87)):null;}function _0x5d2a3d(_0x49d3d0){return window[_0x26c21f([0x61,0x74,0x6f,0x62])](_0x49d3d0[_0x26c21f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x26c21f([0x2b]))[_0x26c21f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x26c21f([0x2f])));}function _0x2a7753(_0xf1acc4){let _0x4df84b=0x1505;function _0x59edc4(_0x274254){for(let _0x9b7e92=0x0;_0x9b7e92<_0x274254[_0x26c21f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9b7e92++){const _0x431d5d=_0x274254[_0x26c21f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9b7e92);_0x4df84b=(_0x4df84b<<0x5)+_0x4df84b+_0x431d5d,_0x4df84b&=_0x4df84b;}}function _0x229b9f(_0x3d877e){Array[_0x26c21f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d877e)?_0x3d877e[_0x26c21f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x229b9f):_0x3d877e&&typeof _0x3d877e==_0x26c21f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x26c21f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d877e)[_0x26c21f([0x73,0x6f,0x72,0x74])]()[_0x26c21f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x575358,_0x203076])=>{_0x59edc4(_0x575358),_0x229b9f(_0x203076);}):_0x59edc4(window[_0x26c21f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d877e));}return _0x229b9f(_0xf1acc4),_0x4df84b>>>0x0;}function _0x280df7(_0x164ff1){return _0x164ff1[_0x26c21f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x26c21f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x26c21f([0x30]));}function _0x409d51(_0x4a4f14){return _0x4a4f14[_0x26c21f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x26c21f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x26c21f([0x6a,0x6f,0x69,0x6e])]('');}function _0x143ef0(){}function _0x26c21f(_0x5612a4){const _0x4d6baa=_0x5a61;return _0x5612a4[_0x4d6baa(0x160)](_0x1f9efc=>String[_0x4d6baa(0x159)](_0x1f9efc))[_0x4d6baa(0x13d)]('');}_0x301020(await _0x4a87ce());}(this);}[_0x71b09e(0x15f)](){const _0x3d3060=_0x71b09e,_0x510aae=this[_0x3d3060(0x127)][_0x3d3060(0x14f)][_0x3d3060(0x149)];_0x510aae[_0x3d3060(0x14e)](_0x3d3060(0x140))&&_0x510aae[_0x3d3060(0x11f)](_0x3d3060(0x140),{'allowAttributes':[_0x3d3060(0x117)]}),_0x510aae[_0x3d3060(0x14e)](_0x3d3060(0x168))&&_0x510aae[_0x3d3060(0x11f)](_0x3d3060(0x168),{'allowAttributes':[_0x3d3060(0x117)]});}[_0x71b09e(0x15e)](){const _0x5e0e1d=_0x71b09e,_0x4e2ed5=this[_0x5e0e1d(0x127)];_0x4e2ed5[_0x5e0e1d(0x164)][_0x5e0e1d(0x129)](_0x5e0e1d(0x16a))[_0x5e0e1d(0x146)]({'model':_0x5e0e1d(0x117),'view':_0x5e0e1d(0x135)}),_0x4e2ed5[_0x5e0e1d(0x164)][_0x5e0e1d(0x129)](_0x5e0e1d(0x15c))[_0x5e0e1d(0x131)]({'model':{'key':_0x5e0e1d(0x117),'value':_0x66a916=>_0x66a916[_0x5e0e1d(0x14a)](_0x5e0e1d(0x135))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d1c1e=_0x4e2ed5[_0x5e0e1d(0x143)][_0x5e0e1d(0x122)](_0x5e0e1d(0x158));_0x5d1c1e&&this[_0x5e0e1d(0x126)](_0x5d1c1e,_0x5e0e1d(0x13e),(_0x38347c,[_0x28cf62,_0x835be1])=>{const _0x11f665=_0x5e0e1d;_0x28cf62[_0x11f665(0x125)](_0x11f665(0x117),_0x835be1);});}[_0x71b09e(0x161)](){const _0x277d86=_0x71b09e,_0x6cbcbb=this[_0x277d86(0x127)][_0x277d86(0x150)][_0x277d86(0x122)](_0x277d86(0x130))||{},_0x5a06a3=this[_0x277d86(0x127)][_0x277d86(0x150)][_0x277d86(0x122)](_0x277d86(0x15d))||'';this[_0x277d86(0x124)]=_0x1d0690(_0xa15d67[_0x277d86(0x123)],_0x277d86(0x156),{..._0x6cbcbb,'pubkey':_0x5a06a3,'ctx-name':_0x277d86(0x12b),'sourceList':'','imgOnly':_0x277d86(0x145),'removeCopyright':_0x277d86(0x145),'localeName':this[_0x277d86(0x127)][_0x277d86(0x14b)][_0x277d86(0x13f)],'externalSourcesEmbedCss':_0x277d86(0x153)}),this[_0x277d86(0x124)][_0x277d86(0x128)]=_0x5b6645=>{const _0xa74f74=_0x277d86;if(_0xa74f74(0x144)==_0x5b6645)return _0xa74f74(0x152);},_0xa15d67[_0x277d86(0x123)][_0x277d86(0x12c)][_0x277d86(0x13c)](this[_0x277d86(0x124)]);}[_0x71b09e(0x11b)](){const _0x21f1a4=_0x71b09e;this[_0x21f1a4(0x133)]=_0x1d0690(_0xa15d67[_0x21f1a4(0x123)],_0x21f1a4(0x14d),{'ctx-name':_0x21f1a4(0x12b)}),_0xa15d67[_0x21f1a4(0x123)][_0x21f1a4(0x12c)][_0x21f1a4(0x13c)](this[_0x21f1a4(0x133)]);}[_0x71b09e(0x12a)](){const _0x566186=_0x71b09e,_0x3a3746=this[_0x566186(0x127)][_0x566186(0x143)][_0x566186(0x122)](_0x566186(0x14c));_0x3a3746&&this[_0x566186(0x126)](_0x3a3746,_0x566186(0x132),()=>{const _0x973698=_0x566186,_0x35e447=this[_0x973698(0x127)][_0x973698(0x14f)][_0x973698(0x123)][_0x973698(0x155)][_0x973698(0x15a)]();_0x35e447&&_0x35e447[_0x973698(0x14a)](_0x973698(0x117))&&this[_0x973698(0x127)][_0x973698(0x11d)][_0x973698(0x11a)][_0x973698(0x142)](_0x973698(0x121),()=>{const _0x22d641=_0x973698;_0x1be000(this[_0x22d641(0x127)],_0x35e447);});});const _0x42b95a=this[_0x566186(0x127)][_0x566186(0x143)][_0x566186(0x122)](_0x566186(0x138));_0x42b95a&&this[_0x566186(0x126)](_0x42b95a,_0x566186(0x132),()=>{const _0x46c482=_0x566186,_0x2fdc63=this[_0x46c482(0x127)][_0x46c482(0x14f)][_0x46c482(0x123)][_0x46c482(0x155)][_0x46c482(0x15a)]();_0x2fdc63&&_0x2fdc63[_0x46c482(0x14a)](_0x46c482(0x117))&&this[_0x46c482(0x127)][_0x46c482(0x11d)][_0x46c482(0x11a)][_0x46c482(0x142)](_0x46c482(0x121),()=>{const _0x19cfc9=_0x46c482;_0x1be000(this[_0x19cfc9(0x127)],_0x2fdc63);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2d1ad0,ObservableMixin as _0x1a06b5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xa894bc}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5ea4f9}from'ckeditor5/src/icons.js';import _0x5f0ade from'./uploadcareimageeditformview.js';import _0x28eb4d from'../../utils/uploadutils.js';import{getImageUrls as _0x48fbf0,getImageDimension as _0x1444b1}from'../../utils/editingutils.js';import{isAncestor as _0x4a1737}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1a06b5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x499533,_0xe33531,_0x4ae4c0){super(),this['_editor']=_0x499533,this['_dialog']=_0xe33531,this['_imageElement']=_0x4ae4c0,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 _0x38c58f=this['_imageElement'],_0x1c5fba=_0x38c58f['getAttribute']('uploadcareImageId'),_0x44f8e3=_0x38c58f['getAttribute']('src');if(_0x1c5fba)await this['_loadImageInfo'](_0x1c5fba,_0x44f8e3);else{if(this['_imageCache']['has'](_0x44f8e3)){const _0x391aed=this['_imageCache']['get'](_0x44f8e3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x391aed['url'],this['imageDimension']=_0x391aed['dimension'],this['imageId']=_0x391aed['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e0c1a}=this['_editor'],t=_0x4e0c1a['t'],_0x41341a=new _0x5f0ade(_0x4e0c1a,this['imageStatus'],this['_attributes']);_0x41341a['bind']('status')['to'](this,'imageStatus'),_0x41341a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x41341a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x41341a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x41341a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5ea4f9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x41341a,'position':_0xa894bc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x41341a['focus']();},'onHide':()=>{_0x41341a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x188db4=>!_0x4a1737(_0x188db4,_0x41341a['element'])}});}['_loadImageInfo'](_0x322616,_0x13a915){return _0x28eb4d['getInfo'](_0x322616,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x150243=>{const {width:_0x119f80,height:_0x513819}=_0x150243['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13a915,this['imageDimension']={'width':_0x119f80,'height':_0x513819},this['imageId']=_0x322616;})['catch'](_0x22d1e4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22d1e4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1c5658,_0x50131f){return this['_getImageAsFile'](_0x1c5658)['then'](_0x3eb994=>_0x28eb4d['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x50131f['signal'],'file':_0x3eb994,'onProgress':_0xe779d3=>{_0xe779d3&&_0xe779d3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe779d3['value']));}}))['then'](_0x41eb74=>{const {width:_0x512d44,height:_0x48b73a}=_0x41eb74['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41eb74['cdnUrl'],this['imageDimension']={'width':_0x512d44,'height':_0x48b73a},this['imageId']=_0x41eb74['uuid'],this['imageUploadProgress']=null;const _0x1ed7d9=_0x1c5658['getAttribute']('src');this['_imageCache']['set'](_0x1ed7d9,{'id':_0x41eb74['uuid'],'url':_0x41eb74['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x51b6e2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x51b6e2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa03752,_0x3d2192){_0xa03752['on']('apply',(_0x39ff32,_0x248f7b)=>{this['_replaceImage'](_0x3d2192,_0x248f7b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa03752['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa03752['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe9a0b1,_0x47107d,_0x36b4a8){const _0x4fb8aa=this['_editor'],{width:_0x127858,height:_0x3729fb}=_0x1444b1(_0x47107d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3845a7,imageSources:_0x179ae8}=_0x48fbf0(_0x47107d,_0x127858);_0x4fb8aa['model']['change'](_0x957ff3=>{if('$graveyard'===_0xe9a0b1['root']['rootName']){_0x4fb8aa['execute']('insertImage',{'imageType':_0xe9a0b1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe9a0b1['getAttributes']()),'uploadcareImageId':_0x36b4a8,'src':_0x3845a7,'sources':_0x179ae8,'width':_0x127858,'height':_0x3729fb}});const _0x105816=_0xe9a0b1['getChildren']();_0xe9a0b1=_0x4fb8aa['model']['document']['selection']['getSelectedElement']();for(const _0x9aad51 of _0x105816)_0x957ff3['append'](_0x957ff3['cloneElement'](_0x9aad51),_0xe9a0b1);}else _0x957ff3['setSelection'](_0xe9a0b1,'on'),_0x4fb8aa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe9a0b1['getAttributes']()),'uploadcareImageId':_0x36b4a8,'src':_0x3845a7,'sources':_0x179ae8,'width':_0x127858,'height':_0x3729fb},_0xe9a0b1);_0x957ff3['setSelection'](_0xe9a0b1,'on');});}async['_getImageAsFile'](_0x24388a){const _0x20d997=_0x2d1ad0['window'],_0x5874d0=_0x2d1ad0['document']['location']['href'],_0x5b9ca7=new _0x20d997['URL'](_0x24388a['getAttribute']('src'),_0x5874d0);if('data:'===_0x5b9ca7['protocol']){const _0xaf137b=_0x5b9ca7['href']['split'](','),_0x5e6ec5=_0xaf137b[0x0]['match'](/:(.*?);/)[0x1],_0x595947=_0x5e6ec5['split']('/')[0x1],_0x55b591=_0x20d997['atob'](_0xaf137b[_0xaf137b['length']-0x1]);let _0x5f2d47=_0x55b591['length'];const _0x55ae36=new _0x20d997['Uint8Array'](_0x5f2d47);for(;_0x5f2d47--;)_0x55ae36[_0x5f2d47]=_0x55b591['charCodeAt'](_0x5f2d47);return new _0x20d997['File']([_0x55ae36],'image.'+_0x595947,{'type':_0x5e6ec5});}const _0x10e39a=_0x5b9ca7['href']['split']('/'),_0x3ac95b=_0x10e39a[_0x10e39a['length']-0x1],_0x4a889b=_0x3ac95b['split']('.')[0x1];return _0x20d997['fetch'](_0x5b9ca7['href'])['then'](_0x46d9ee=>_0x46d9ee['clone']()['blob']())['then'](_0x1cc10a=>new _0x20d997['File']([_0x1cc10a],_0x3ac95b,{'type':'image/'+_0x4a889b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3842(_0x3bbe12,_0x3500de){const _0x554bc4=_0x554b();return _0x3842=function(_0x38427a,_0x5b011c){_0x38427a=_0x38427a-0x1ce;let _0x41d802=_0x554bc4[_0x38427a];return _0x41d802;},_0x3842(_0x3bbe12,_0x3500de);}function _0x554b(){const _0x1af272=['244buEmUL','5664204VImCYz','2277830OJUxFh','5081640rkJtIh','imageSrc','setTemplate','910189DRfWns','5151vtlgOS','uc-light','image-edit','set','ck-uploadcare-theme','uc-cloud-image-editor','bindTemplate','9037341WcBJnW','205LfjCGp','22998syNTqY'];_0x554b=function(){return _0x1af272;};return _0x554b();}(function(_0x24da14,_0x21ce03){const _0x276d03=_0x3842,_0xbc9721=_0x24da14();while(!![]){try{const _0x467e41=parseInt(_0x276d03(0x1d5))/0x1+parseInt(_0x276d03(0x1d1))/0x2+-parseInt(_0x276d03(0x1d6))/0x3*(parseInt(_0x276d03(0x1cf))/0x4)+-parseInt(_0x276d03(0x1de))/0x5*(parseInt(_0x276d03(0x1ce))/0x6)+-parseInt(_0x276d03(0x1d0))/0x7+parseInt(_0x276d03(0x1d2))/0x8+-parseInt(_0x276d03(0x1dd))/0x9;if(_0x467e41===_0x21ce03)break;else _0xbc9721['push'](_0xbc9721['shift']());}catch(_0x40ace3){_0xbc9721['push'](_0xbc9721['shift']());}}}(_0x554b,0x94b4a));import{View as _0x294ea2}from'ckeditor5/src/ui.js';export default class tt extends _0x294ea2{constructor(_0x4b9966,_0xcd2df6){const _0x474023=_0x3842;super(_0x4b9966);const _0x4bb948=this[_0x474023(0x1dc)];this[_0x474023(0x1d9)](_0x474023(0x1d3),''),this[_0x474023(0x1d4)]({'tag':_0x474023(0x1db),'attributes':{..._0xcd2df6,'class':[_0x474023(0x1d7),_0x474023(0x1da)],'ctx-name':_0x474023(0x1d8),'cdn-url':_0x4bb948['to'](_0x474023(0x1d3))}});}}
|
|
@@ -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 _0x738246,IconView as at,View as _0x39d85a}from'ckeditor5/src/ui.js';export default class rt extends _0x39d85a{constructor(_0x3cb68a){super(_0x3cb68a);const t=_0x3cb68a['t'];this['set']('errorType',null);const _0x26d7d7=new _0x738246(_0x3cb68a);_0x26d7d7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26d7d7['withText']=!0x0,_0x26d7d7['class']='ck-button-action',_0x26d7d7['on']('execute',()=>{this['fire']('retry');}),_0x26d7d7['bind']('isVisible')['to'](this,'errorType',_0x2b4eda=>'NotFound'!==_0x2b4eda);const _0x3bcd3d=new at();_0x3bcd3d['content']=et,_0x3bcd3d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x30b165=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':[_0x3bcd3d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x30b165['to']('errorType',_0x384906=>t('NotFound'!==_0x384906?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26d7d7]},{'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 _0x4831e3,View as _0x26149b}from'ckeditor5/src/ui.js';export default class ta extends _0x26149b{constructor(_0x76b949){super(_0x76b949);const t=_0x76b949['t'],_0x33232c=this['bindTemplate'],_0x2be408=new _0x4831e3();_0x2be408['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':[_0x2be408,{'text':_0x33232c['to']('imageUploadProgress',_0xd4b26e=>t('Loading\x20image...')+'\x20('+(_0xd4b26e||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
|
+
function _0x388f(){const _0x497fbd=['setTemplate','createCollection','uploading','addedNodes','fire','retry','detail','_setView','addMany','198hYzDbY','add','cancel','div','50vLgaCU','filter','toLowerCase','apply','observe','getFocusableElement','addEventListener','ck-reset_all-excluded','ck-uploadcare-form','nodeName','set','519507LBIlAk','length','error','99215mZZJcG','render','_focusableView','92CmXAUO','596722nHKtNL','_addUploadcareImageEditorListeners','clear','_waitForImageEditorComponent','_errorView','uc-cloud-image-editor','element','_loadingView','querySelector','once','141957ytifZf','10202OocgGA','focus','1710408aDhetR','status','2334255azXojG','_editingView','disconnect','change:status','target','_addErrorViewListeners','ready','cdnUrl','36JWQRBk','_items'];_0x388f=function(){return _0x497fbd;};return _0x388f();}const _0xf47a8c=_0xeb80;(function(_0x22b480,_0x536b11){const _0x35b8ba=_0xeb80,_0x5c8dd9=_0x22b480();while(!![]){try{const _0x10539e=parseInt(_0x35b8ba(0x177))/0x1*(parseInt(_0x35b8ba(0x16b))/0x2)+parseInt(_0x35b8ba(0x16a))/0x3*(parseInt(_0x35b8ba(0x197))/0x4)+-parseInt(_0x35b8ba(0x194))/0x5*(parseInt(_0x35b8ba(0x182))/0x6)+parseInt(_0x35b8ba(0x198))/0x7+-parseInt(_0x35b8ba(0x16d))/0x8+-parseInt(_0x35b8ba(0x191))/0x9*(-parseInt(_0x35b8ba(0x186))/0xa)+-parseInt(_0x35b8ba(0x16f))/0xb;if(_0x10539e===_0x536b11)break;else _0x5c8dd9['push'](_0x5c8dd9['shift']());}catch(_0x11d991){_0x5c8dd9['push'](_0x5c8dd9['shift']());}}}(_0x388f,0x89f11));import{View as _0x97ca1f}from'ckeditor5/src/ui.js';import _0x248601 from'./uploadcareimageeditformloadingview.js';import _0x46cbfa from'./uploadcareimageeditformerrorview.js';function _0xeb80(_0x434b28,_0x562af5){const _0x388fd1=_0x388f();return _0xeb80=function(_0xeb8047,_0xe2ced9){_0xeb8047=_0xeb8047-0x169;let _0x55fcf1=_0x388fd1[_0xeb8047];return _0x55fcf1;},_0xeb80(_0x434b28,_0x562af5);}import _0x1445f4 from'./uploadcareimageeditformeditingview.js';import _0x27a215 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x27a215{[_0xf47a8c(0x178)];[_0xf47a8c(0x19f)];[_0xf47a8c(0x19c)];[_0xf47a8c(0x170)];[_0xf47a8c(0x196)];constructor(_0x3771bf,_0x9c212,_0x1f6175){const _0x432ded=_0xf47a8c;super(_0x3771bf),this[_0x432ded(0x178)]=this[_0x432ded(0x17a)](),this[_0x432ded(0x19f)]=new _0x248601(_0x3771bf),this[_0x432ded(0x19c)]=new _0x46cbfa(_0x3771bf),this[_0x432ded(0x170)]=new _0x1445f4(_0x3771bf,_0x1f6175),this[_0x432ded(0x196)]=new _0x97ca1f(_0x3771bf),this[_0x432ded(0x196)][_0x432ded(0x179)](this[_0x432ded(0x18b)]()),this[_0x432ded(0x190)](_0x432ded(0x16e),_0x9c212),this[_0x432ded(0x179)]({'tag':_0x432ded(0x185),'attributes':{'class':['ck',_0x432ded(0x18d),_0x432ded(0x18e)],'tabindex':'-1'},'children':this[_0x432ded(0x178)]}),this[_0x432ded(0x180)](),this[_0x432ded(0x169)](_0x432ded(0x195),()=>{const _0x1d613e=_0x432ded;this[_0x1d613e(0x19b)](this[_0x1d613e(0x19e)],_0x296a2f=>{const _0x231cf5=_0x1d613e;this[_0x231cf5(0x199)](_0x296a2f);});}),this['on'](_0x432ded(0x172),()=>{const _0x24fead=_0x432ded;this[_0x24fead(0x180)]();}),this[_0x432ded(0x174)]();}[_0xf47a8c(0x16c)](){const _0x134669=_0xf47a8c;this[_0x134669(0x19e)][_0x134669(0x16c)]();}[_0xf47a8c(0x180)](){const _0x323f13=_0xf47a8c;switch(this[_0x323f13(0x178)][_0x323f13(0x19a)](),this[_0x323f13(0x16e)]){case _0x323f13(0x17b):this[_0x323f13(0x178)][_0x323f13(0x183)](this[_0x323f13(0x19f)]);break;case _0x323f13(0x193):this[_0x323f13(0x178)][_0x323f13(0x183)](this[_0x323f13(0x19c)]);break;case _0x323f13(0x175):this[_0x323f13(0x178)][_0x323f13(0x181)]([this[_0x323f13(0x170)],this[_0x323f13(0x196)]]);}}[_0xf47a8c(0x19b)](_0x32af92,_0x2bce80){const _0x4ced28=_0xf47a8c,_0x1f1926=_0x4ced28(0x19d),_0x3b353f=_0x32af92[_0x4ced28(0x1a0)](_0x1f1926);if(_0x3b353f)return _0x2bce80(_0x3b353f);const _0x229ea8=new MutationObserver(_0x4649d8=>{const _0x52f93d=_0x4ced28,_0x4ced4e=_0x4649d8[_0x52f93d(0x187)](_0x34e2b7=>_0x34e2b7[_0x52f93d(0x173)]===_0x32af92&&_0x34e2b7[_0x52f93d(0x17c)][_0x52f93d(0x192)]>0x0&&_0x34e2b7[_0x52f93d(0x17c)][0x0][_0x52f93d(0x18f)][_0x52f93d(0x188)]()===_0x1f1926);_0x4ced4e[_0x52f93d(0x192)]&&(_0x229ea8[_0x52f93d(0x171)](),_0x2bce80(_0x4ced4e[0x0][_0x52f93d(0x17c)][0x0]));});_0x229ea8[_0x4ced28(0x18a)](_0x32af92,{'childList':!0x0,'subtree':!0x0});}[_0xf47a8c(0x199)](_0x374a4d){const _0x47b77a=_0xf47a8c;_0x374a4d[_0x47b77a(0x18c)](_0x47b77a(0x189),_0x30fcd8=>{const _0x42446b=_0x47b77a;this[_0x42446b(0x17d)](_0x42446b(0x189),{'imageSrc':_0x30fcd8[_0x42446b(0x17f)][_0x42446b(0x176)]});}),_0x374a4d[_0x47b77a(0x18c)](_0x47b77a(0x184),()=>{const _0x2ffc41=_0x47b77a;this[_0x2ffc41(0x17d)](_0x2ffc41(0x184));});}[_0xf47a8c(0x174)](){const _0x18dbf3=_0xf47a8c;this[_0x18dbf3(0x19c)]['on'](_0x18dbf3(0x17e),()=>{const _0x159db1=_0x18dbf3;this[_0x159db1(0x17d)](_0x159db1(0x17e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1d7bd8=_0x1050;function _0x3f08(){const _0x1ef43b=['2zTrXxD','model','unbind','14SXRvsq','imageInline','5642340bLayZF','4uowaXp','4915704TLowdf','requires','isActive','1184987LJWHkb','get','imageBlock','imageEditController','element','config','769980QpBpaj','set','_isEditable','bind','plugins','12616824DHNuDW','execute','5LmJGyQ','isEnabled','editor','document','uploadcare.allowExternalImagesEditing','getSelectedElement','7141770eVTung','selection','refresh','443144RMYpvN'];_0x3f08=function(){return _0x1ef43b;};return _0x3f08();}(function(_0x36d9b4,_0x43908b){const _0x4dea5c=_0x1050,_0x5a164a=_0x36d9b4();while(!![]){try{const _0x195697=-parseInt(_0x4dea5c(0x1aa))/0x1*(parseInt(_0x4dea5c(0x1a0))/0x2)+parseInt(_0x4dea5c(0x1b0))/0x3*(-parseInt(_0x4dea5c(0x1a6))/0x4)+parseInt(_0x4dea5c(0x1b7))/0x5*(parseInt(_0x4dea5c(0x1a7))/0x6)+-parseInt(_0x4dea5c(0x1a3))/0x7*(parseInt(_0x4dea5c(0x19f))/0x8)+parseInt(_0x4dea5c(0x1bd))/0x9+-parseInt(_0x4dea5c(0x1a5))/0xa+parseInt(_0x4dea5c(0x1b5))/0xb;if(_0x195697===_0x43908b)break;else _0x5a164a['push'](_0x5a164a['shift']());}catch(_0x449849){_0x5a164a['push'](_0x5a164a['shift']());}}}(_0x3f08,0x9d03b));import{Command as _0xbc486a}from'ckeditor5/src/core.js';import{Dialog as _0x289ada}from'ckeditor5/src/ui.js';import _0x56f699 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x31fc84}from'../utils/editingutils.js';function _0x1050(_0x35dff3,_0x2c8c79){const _0x3f0869=_0x3f08();return _0x1050=function(_0x10508a,_0x1c6a05){_0x10508a=_0x10508a-0x19f;let _0x443cd5=_0x3f0869[_0x10508a];return _0x443cd5;},_0x1050(_0x35dff3,_0x2c8c79);}export default class J extends _0xbc486a{[_0x1d7bd8(0x1ad)];static get[_0x1d7bd8(0x1a8)](){return[_0x289ada];}[_0x1d7bd8(0x1b2)];constructor(_0x21bbc7){const _0x13ba07=_0x1d7bd8;super(_0x21bbc7),this[_0x13ba07(0x1ad)]=void 0x0,this[_0x13ba07(0x1b2)]=_0x31fc84(_0x21bbc7[_0x13ba07(0x1af)][_0x13ba07(0x1ab)](_0x13ba07(0x1bb))||[]),this[_0x13ba07(0x1b1)]({'isActive':!0x1});}[_0x1d7bd8(0x1bf)](){const _0x3028d8=_0x1d7bd8,_0x38d47b=this[_0x3028d8(0x1b9)][_0x3028d8(0x1a1)][_0x3028d8(0x1ba)][_0x3028d8(0x1be)][_0x3028d8(0x1bc)]();this[_0x3028d8(0x1b8)]=this[_0x3028d8(0x1b2)](_0x38d47b);}[_0x1d7bd8(0x1b6)](){const _0x2c2cde=_0x1d7bd8;this[_0x2c2cde(0x1ad)]&&(this[_0x2c2cde(0x1a2)](_0x2c2cde(0x1a9)),this[_0x2c2cde(0x1ad)]=void 0x0);const _0x384d74=this[_0x2c2cde(0x1b9)][_0x2c2cde(0x1a1)][_0x2c2cde(0x1ba)][_0x2c2cde(0x1be)][_0x2c2cde(0x1bc)]();_0x384d74&&(_0x384d74['is'](_0x2c2cde(0x1ae),_0x2c2cde(0x1ac))||_0x384d74['is'](_0x2c2cde(0x1ae),_0x2c2cde(0x1a4)))&&(this[_0x2c2cde(0x1ad)]=new _0x56f699(this[_0x2c2cde(0x1b9)],this[_0x2c2cde(0x1b9)][_0x2c2cde(0x1b4)][_0x2c2cde(0x1ab)](_0x289ada),_0x384d74),this[_0x2c2cde(0x1b3)](_0x2c2cde(0x1a9))['to'](this[_0x2c2cde(0x1ad)],_0x2c2cde(0x1a9)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55e25a=_0x204c;(function(_0x569704,_0x4f796e){const _0x2f49a4=_0x204c,_0x45696a=_0x569704();while(!![]){try{const _0x1e60f7=parseInt(_0x2f49a4(0x164))/0x1+-parseInt(_0x2f49a4(0x15a))/0x2+-parseInt(_0x2f49a4(0x153))/0x3+parseInt(_0x2f49a4(0x160))/0x4*(-parseInt(_0x2f49a4(0x162))/0x5)+-parseInt(_0x2f49a4(0x168))/0x6*(parseInt(_0x2f49a4(0x157))/0x7)+parseInt(_0x2f49a4(0x155))/0x8+-parseInt(_0x2f49a4(0x154))/0x9*(-parseInt(_0x2f49a4(0x15b))/0xa);if(_0x1e60f7===_0x4f796e)break;else _0x45696a['push'](_0x45696a['shift']());}catch(_0x355371){_0x45696a['push'](_0x45696a['shift']());}}}(_0x5813,0xd4dd8));import{Plugin as _0xbe18da}from'ckeditor5/src/core.js';function _0x204c(_0x12c3d7,_0x2ec2dd){const _0x58134c=_0x5813();return _0x204c=function(_0x204c2c,_0x356558){_0x204c2c=_0x204c2c-0x153;let _0x274f9a=_0x58134c[_0x204c2c];return _0x274f9a;},_0x204c(_0x12c3d7,_0x2ec2dd);}import{Notification as _0x306ab3}from'ckeditor5/src/ui.js';import _0x10899f from'./uploadcareimageeditcommand.js';import _0x461bf4 from'./uploadcareimagereplacecommand.js';function _0x5813(){const _0x31ed4e=['4010RVpRzM','uploadcareImageEdit','1730546ErvxKq','isOfficialPlugin','commands','UploadcareImageEditEditing','8560902Pykrct','4940937hzYpKB','16279416BjxJUQ','13170840tXAoNC','isPremiumPlugin','7kYzZxq','requires','init','2035758ZiMiOX','10jfwJpH','add','pluginName','ImageUtils','ImageEditing','1108OLpNsL','uploadcareImageReplace'];_0x5813=function(){return _0x31ed4e;};return _0x5813();}import _0x12d691 from'../uploadcareediting.js';export default class g extends _0xbe18da{static get[_0x55e25a(0x15d)](){const _0x4bf2ca=_0x55e25a;return _0x4bf2ca(0x167);}static get[_0x55e25a(0x158)](){const _0x2b5bf2=_0x55e25a;return[_0x12d691,_0x306ab3,_0x2b5bf2(0x15e),_0x2b5bf2(0x15f)];}static get[_0x55e25a(0x165)](){return!0x0;}static get[_0x55e25a(0x156)](){return!0x0;}[_0x55e25a(0x159)](){const _0x3f384c=_0x55e25a,{editor:_0x4ac5e5}=this;_0x4ac5e5[_0x3f384c(0x166)][_0x3f384c(0x15c)](_0x3f384c(0x163),new _0x10899f(_0x4ac5e5)),_0x4ac5e5[_0x3f384c(0x166)][_0x3f384c(0x15c)](_0x3f384c(0x161),new _0x461bf4(_0x4ac5e5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x6ab975}from'ckeditor5/src/core.js';import{ButtonView as _0x2ab5b4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x16005b}from'ckeditor5/src/icons.js';import{createElement as _0x482d82}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 _0x6ab975{['_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 _0x4fb764=this['editor'];_0x4fb764['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2bd3fa=>{const _0x1cf4d1=_0x4fb764['commands']['get']('uploadcareImageEdit'),_0xa318e=new _0x2ab5b4(_0x2bd3fa),t=_0x2bd3fa['t'];return _0xa318e['set']({'icon':_0x16005b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xa318e['bind']('isEnabled')['to'](_0x1cf4d1),_0xa318e['bind']('isOn')['to'](_0x1cf4d1,'isActive'),this['listenTo'](_0xa318e,'execute',()=>{_0x4fb764['execute']('uploadcareImageEdit'),_0x4fb764['editing']['view']['focus']();}),_0xa318e;}),this['_initConfig']();}['_initConfig'](){const _0x544e1c=_0x482d82(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x544e1c),this['listenTo'](this['editor'],'destroy',()=>{_0x544e1c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x26be07=_0x4443;function _0x4443(_0x52a19c,_0x100ef6){const _0x19ac8b=_0x19ac();return _0x4443=function(_0x4443b2,_0x3cb418){_0x4443b2=_0x4443b2-0x1df;let _0x53c12f=_0x19ac8b[_0x4443b2];return _0x53c12f;},_0x4443(_0x52a19c,_0x100ef6);}(function(_0x51852a,_0x32139a){const _0x1ba45e=_0x4443,_0x131c1e=_0x51852a();while(!![]){try{const _0x487234=parseInt(_0x1ba45e(0x1f7))/0x1+-parseInt(_0x1ba45e(0x1e0))/0x2+parseInt(_0x1ba45e(0x1f0))/0x3+-parseInt(_0x1ba45e(0x1e3))/0x4*(-parseInt(_0x1ba45e(0x1e2))/0x5)+-parseInt(_0x1ba45e(0x1e1))/0x6*(parseInt(_0x1ba45e(0x1df))/0x7)+parseInt(_0x1ba45e(0x1e9))/0x8*(parseInt(_0x1ba45e(0x1e4))/0x9)+parseInt(_0x1ba45e(0x1f3))/0xa;if(_0x487234===_0x32139a)break;else _0x131c1e['push'](_0x131c1e['shift']());}catch(_0x23bcb0){_0x131c1e['push'](_0x131c1e['shift']());}}}(_0x19ac,0x8f2f5));function _0x19ac(){const _0x336274=['9bqKDjG','removeAttribute','execute','change','selection','3050448MNlEKj','imageInline','editor','model','imageBlock','srcset','refresh','845649RvauyX','isEnabled','element','6056980GEbSvg','setAttributes','document','getSelectedElement','487570ktuNnQ','sizes','14LEtumn','1316588wKHDNt','2914986WQoARc','1110ZJjoHa','8288ApGyxa'];_0x19ac=function(){return _0x336274;};return _0x19ac();}import{Command as _0x4d03cc}from'ckeditor5/src/core.js';export default class O extends _0x4d03cc{[_0x26be07(0x1ef)](){const _0x3113c8=_0x26be07,_0x3d6c16=this[_0x3113c8(0x1eb)][_0x3113c8(0x1ec)][_0x3113c8(0x1f5)][_0x3113c8(0x1e8)][_0x3113c8(0x1f6)]();this[_0x3113c8(0x1f1)]=Boolean(_0x3d6c16&&(_0x3d6c16['is'](_0x3113c8(0x1f2),_0x3113c8(0x1ed))||_0x3d6c16['is'](_0x3113c8(0x1f2),_0x3113c8(0x1ea))));}[_0x26be07(0x1e6)](_0x8a4af5){const _0x433430=_0x26be07,_0x12b48b=this[_0x433430(0x1eb)][_0x433430(0x1ec)][_0x433430(0x1f5)][_0x433430(0x1e8)][_0x433430(0x1f6)]();this[_0x433430(0x1eb)][_0x433430(0x1ec)][_0x433430(0x1e7)](_0x3621d3=>{const _0x1e8a50=_0x433430;_0x3621d3[_0x1e8a50(0x1f4)](_0x8a4af5,_0x12b48b),_0x3621d3[_0x1e8a50(0x1e5)](_0x1e8a50(0x1ee),_0x12b48b),_0x3621d3[_0x1e8a50(0x1e5)](_0x1e8a50(0x1f8),_0x12b48b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13b1f0=_0x1e07;(function(_0x2da272,_0x4af9dc){var _0x1b18bc=_0x1e07,_0xd09f82=_0x2da272();while(!![]){try{var _0x441425=parseInt(_0x1b18bc(0x147))/0x1+-parseInt(_0x1b18bc(0x14c))/0x2*(parseInt(_0x1b18bc(0x156))/0x3)+parseInt(_0x1b18bc(0x148))/0x4*(parseInt(_0x1b18bc(0x14e))/0x5)+-parseInt(_0x1b18bc(0x155))/0x6+-parseInt(_0x1b18bc(0x151))/0x7*(-parseInt(_0x1b18bc(0x149))/0x8)+-parseInt(_0x1b18bc(0x14a))/0x9+-parseInt(_0x1b18bc(0x14d))/0xa*(-parseInt(_0x1b18bc(0x153))/0xb);if(_0x441425===_0x4af9dc)break;else _0xd09f82['push'](_0xd09f82['shift']());}catch(_0x31f6eb){_0xd09f82['push'](_0xd09f82['shift']());}}}(_0x33cb,0x1d950));function _0x1e07(_0x1977dc,_0x412d96){var _0x33cbae=_0x33cb();return _0x1e07=function(_0x1e0767,_0xf614c4){_0x1e0767=_0x1e0767-0x147;var _0x512289=_0x33cbae[_0x1e0767];return _0x512289;},_0x1e07(_0x1977dc,_0x412d96);}import{Plugin as _0x58471b}from'ckeditor5/src/core.js';import _0x31472e from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x33cb(){var _0x178312=['1408evgmIx','1088210VGglCF','5gTaEUc','isOfficialPlugin','requires','137459Dakgqs','isPremiumPlugin','33PUqqjN','UploadcareImageEdit','821544lZgmUW','777DmCYKt','13219ScGxpW','497384ATEVrf','72pfaXUJ','1802997vhxtVb','pluginName'];_0x33cb=function(){return _0x178312;};return _0x33cb();}import _0x49b6fb from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x58471b{static get[_0x13b1f0(0x14b)](){var _0x2be6d2=_0x13b1f0;return _0x2be6d2(0x154);}static get[_0x13b1f0(0x150)](){return[_0x31472e,_0x49b6fb];}static get[_0x13b1f0(0x14f)](){return!0x0;}static get[_0x13b1f0(0x152)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55d402=_0x163a;(function(_0x35b31b,_0x41b047){const _0x496e9a=_0x163a,_0x55c68a=_0x35b31b();while(!![]){try{const _0x65fbeb=-parseInt(_0x496e9a(0x11b))/0x1+-parseInt(_0x496e9a(0x108))/0x2*(-parseInt(_0x496e9a(0x13e))/0x3)+-parseInt(_0x496e9a(0xff))/0x4*(-parseInt(_0x496e9a(0x10d))/0x5)+-parseInt(_0x496e9a(0x111))/0x6+parseInt(_0x496e9a(0x131))/0x7*(parseInt(_0x496e9a(0xf4))/0x8)+parseInt(_0x496e9a(0x106))/0x9*(parseInt(_0x496e9a(0x114))/0xa)+-parseInt(_0x496e9a(0x109))/0xb;if(_0x65fbeb===_0x41b047)break;else _0x55c68a['push'](_0x55c68a['shift']());}catch(_0x28035b){_0x55c68a['push'](_0x55c68a['shift']());}}}(_0x4799,0x37125));import{Plugin as _0x5e532f}from'ckeditor5/src/core.js';import{IconDropbox as _0x140ec7,IconFacebook as _0x4a599b,IconGoogleDrive as _0x56d0fc,IconGooglePhotos as _0x3d2339,IconUploadcareImageUpload as _0x2df6b5,IconUploadcareLink as _0x525976,IconOneDrive as _0x13e82d}from'ckeditor5/src/icons.js';import{ButtonView as _0x243997,MenuBarMenuListItemButtonView as _0x297d93}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x123501}from'./uploadcareconfig.js';import{getTranslation as _0x567348}from'./utils/common-translations.js';function _0x163a(_0x5a7e9a,_0xf5b105){const _0x479944=_0x4799();return _0x163a=function(_0x163a20,_0x2c5479){_0x163a20=_0x163a20-0xf2;let _0x236a2d=_0x479944[_0x163a20];return _0x236a2d;},_0x163a(_0x5a7e9a,_0xf5b105);}function _0x4799(){const _0x27e020=['8407ksdAUK','uploadcare','uploadcareLicenseKeyValid','tooltip','UploadcareUI','isImageSelected','type','upload','icon','push','isEnabled','commands','assetManager','4206mnQlUj','pluginName','text','_normalizeConfigSourceList','uploadcareLicenseKeyEvaluationLimit','_getIntegrationKey','uploadcareLicenseKeyExpired','domainLimit','2104xRJOYA','GDrive','forEach','Dropbox','URL','ImageInsertUI','Uploadcare','destroy','label','locale','withText','368ABvBmo','_createMenuBarButtons','has','isOfficialPlugin','GPhotos','licenseKey','trialLimit','117927hjaHbT','Facebook','466NHdoUd','1382238ysnyaE','invalid','uploadcareLicenseKeyInvalid','reduce','3220BLgRGT','_createButton','afterInit','registerIntegration','1488630NPsDzo','Replace','uploadcareLicenseKeyNotAllowed','250HWoDNf','init','plugins','isPremiumPlugin','entries','_showLicenseError','uploadcareLicenseKeyDomainLimit','430016EHwGjP','execute','map','featureNotAllowed','uploadcare.uploader.sourceList','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyTrialLimit','_createDropdownButtons','usageLimit','Local','expired','_createToolbarButton','shortText','OneDrive','url','bind','editor','Insert','evaluationLimit','config','_licenseKeyCheckInterval','get'];_0x4799=function(){return _0x27e020;};return _0x4799();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x5e532f{[_0x55d402(0x104)];[_0x55d402(0x12f)];static get[_0x55d402(0x13f)](){const _0x3596af=_0x55d402;return _0x3596af(0x135);}static get[_0x55d402(0x102)](){return!0x0;}static get[_0x55d402(0x117)](){return!0x0;}[_0x55d402(0x115)](){const _0x3feab3=_0x55d402;this[_0x3feab3(0x104)]=this[_0x3feab3(0x12b)][_0x3feab3(0x12e)][_0x3feab3(0x130)](_0x3feab3(0x104));const _0xfb571b=this[_0x3feab3(0x12b)];this[_0x3feab3(0x12f)]=setInterval(()=>{const _0x59f8fd=_0x3feab3;let _0x20a591;for(const _0x18c8b8 in _0xfb571b){const _0x3d31c1=_0x18c8b8,_0x26e3ba=_0xfb571b[_0x3d31c1];if(_0x59f8fd(0x133)==_0x26e3ba||_0x59f8fd(0x10b)==_0x26e3ba||_0x59f8fd(0xf2)==_0x26e3ba||_0x59f8fd(0x11a)==_0x26e3ba||_0x59f8fd(0x113)==_0x26e3ba||_0x59f8fd(0x142)==_0x26e3ba||_0x59f8fd(0x121)==_0x26e3ba||_0x59f8fd(0x120)==_0x26e3ba){delete _0xfb571b[_0x3d31c1],_0x20a591=_0x26e3ba,clearInterval(this[_0x59f8fd(0x12f)]),this[_0x59f8fd(0x12f)]=void 0x0;break;}}_0x59f8fd(0x10b)==_0x20a591&&_0xfb571b[_0x59f8fd(0x119)](_0x59f8fd(0x10a)),_0x59f8fd(0xf2)==_0x20a591&&_0xfb571b[_0x59f8fd(0x119)](_0x59f8fd(0x125)),_0x59f8fd(0x11a)==_0x20a591&&_0xfb571b[_0x59f8fd(0x119)](_0x59f8fd(0xf3)),_0x59f8fd(0x113)==_0x20a591&&_0xfb571b[_0x59f8fd(0x119)](_0x59f8fd(0x11e),_0x59f8fd(0xfa)),_0x59f8fd(0x142)==_0x20a591&&_0xfb571b[_0x59f8fd(0x119)](_0x59f8fd(0x12d)),_0x59f8fd(0x121)==_0x20a591&&_0xfb571b[_0x59f8fd(0x119)](_0x59f8fd(0x105)),_0x59f8fd(0x120)==_0x20a591&&_0xfb571b[_0x59f8fd(0x119)](_0x59f8fd(0x123));},0x3e8);}[_0x55d402(0x10f)](){const _0x3a2e61=_0x55d402,{editor:_0x452131}=this,_0x21fb25=_0x452131[_0x3a2e61(0x13c)][_0x3a2e61(0x130)](_0x3a2e61(0x132));if(!_0x21fb25)return;const _0xd720f2=this[_0x3a2e61(0x141)](_0x452131[_0x3a2e61(0x12e)][_0x3a2e61(0x130)](_0x3a2e61(0x11f)))[_0x3a2e61(0x10c)]((_0x38b72e,_0x3e775c)=>{const _0x1f812f=_0x3a2e61,_0x5bc73d=this[_0x1f812f(0x143)](_0x3e775c[_0x1f812f(0x137)]);return _0x38b72e[_0x5bc73d]||(_0x38b72e[_0x5bc73d]=[]),_0x38b72e[_0x5bc73d][_0x1f812f(0x13a)](_0x3e775c),_0x38b72e;},{});_0x452131[_0x3a2e61(0x116)][_0x3a2e61(0x101)](_0x3a2e61(0xf9))&&_0x452131[_0x3a2e61(0x13c)][_0x3a2e61(0x130)](_0x3a2e61(0x132))&&Object[_0x3a2e61(0x118)](_0xd720f2)[_0x3a2e61(0xf6)](([_0x4fd004,_0x51c72a])=>{const _0x1cba3d=_0x3a2e61;_0x452131[_0x1cba3d(0x116)][_0x1cba3d(0x130)](_0x1cba3d(0xf9))[_0x1cba3d(0x110)]({'name':_0x4fd004,'observable':()=>_0x21fb25,'buttonViewCreator':()=>this[_0x1cba3d(0x126)](_0x51c72a),'formViewCreator':()=>this[_0x1cba3d(0x122)](_0x51c72a),'menuBarButtonViewCreator':()=>this[_0x1cba3d(0x100)](_0x51c72a),'override':_0x1cba3d(0x13d)!==_0x4fd004});});}[_0x55d402(0xfb)](){const _0x11586e=_0x55d402;super[_0x11586e(0xfb)](),this[_0x11586e(0x12f)]&&clearInterval(this[_0x11586e(0x12f)]);}[_0x55d402(0x141)](_0x3dfad5){const _0x207c2e=_0x55d402,{locale:_0x57f3c6}=this[_0x207c2e(0x12b)];return _0x3dfad5[_0x207c2e(0x11d)](_0x820655=>{const _0x2a8273=_0x207c2e,_0x502d9d=_0x567348(_0x57f3c6,_0x820655,_0x2a8273(0x12c));switch(_0x820655){case _0x123501[_0x2a8273(0x124)]:return{'icon':_0x2df6b5,'type':_0x123501[_0x2a8273(0x124)],..._0x502d9d};case _0x123501[_0x2a8273(0xf8)]:return{'icon':_0x525976,'type':_0x123501[_0x2a8273(0xf8)],..._0x502d9d};case _0x123501[_0x2a8273(0xf7)]:return{'icon':_0x140ec7,'type':_0x123501[_0x2a8273(0xf7)],..._0x502d9d};case _0x123501[_0x2a8273(0x107)]:return{'icon':_0x4a599b,'type':_0x123501[_0x2a8273(0x107)],..._0x502d9d};case _0x123501[_0x2a8273(0xf5)]:return{'icon':_0x56d0fc,'type':_0x123501[_0x2a8273(0xf5)],..._0x502d9d};case _0x123501[_0x2a8273(0x103)]:return{'icon':_0x3d2339,'type':_0x123501[_0x2a8273(0x103)],..._0x502d9d};case _0x123501[_0x2a8273(0x128)]:return{'icon':_0x13e82d,'type':_0x123501[_0x2a8273(0x128)],..._0x502d9d};}});}[_0x55d402(0x143)](_0x2005a2){const _0x3a9ffd=_0x55d402;switch(_0x2005a2){case _0x123501[_0x3a9ffd(0x124)]:return _0x3a9ffd(0x138);case _0x123501[_0x3a9ffd(0xf8)]:return _0x3a9ffd(0x129);default:return _0x3a9ffd(0x13d);}}[_0x55d402(0x10e)](_0x4e6429,_0x617885){const _0x4815fc=_0x55d402,_0xdd5c47=this[_0x4815fc(0x12b)],_0x563b37=new _0x4e6429(_0xdd5c47[_0x4815fc(0xfd)]),_0x19ab99=_0xdd5c47[_0x4815fc(0x13c)][_0x4815fc(0x130)](_0x4815fc(0x132));return _0x563b37[_0x4815fc(0x12a)](_0x4815fc(0x13b))['to'](_0x19ab99),_0x563b37['on'](_0x4815fc(0x11c),()=>{const _0x894e1f=_0x4815fc;_0x19ab99[_0x894e1f(0x11c)](_0x617885);}),_0x563b37;}[_0x55d402(0x126)](_0xe216da){const _0x133138=_0x55d402,{locale:_0x41af27}=this[_0x133138(0x12b)],_0x18f935=this[_0x133138(0x12b)][_0x133138(0x116)][_0x133138(0x130)](_0x133138(0xf9)),_0x22b0b4=_0xe216da[0x0],_0x393434=this[_0x133138(0x10e)](_0x243997,_0x22b0b4[_0x133138(0x137)]);return _0x393434[_0x133138(0x139)]=_0x22b0b4[_0x133138(0x139)],_0x393434[_0x133138(0x12a)](_0x133138(0xfc))['to'](_0x18f935,_0x133138(0x136),_0x1e2e56=>_0x567348(_0x41af27,_0x22b0b4[_0x133138(0x137)],_0x1e2e56?_0x133138(0x112):_0x133138(0x12c))[_0x133138(0x140)]),_0x393434[_0x133138(0x134)]=!0x0,_0x393434;}[_0x55d402(0x122)](_0x234fe7){const _0xb0a0da=_0x55d402,{locale:_0x303d4b}=this[_0xb0a0da(0x12b)],_0x2f3b27=this[_0xb0a0da(0x12b)][_0xb0a0da(0x116)][_0xb0a0da(0x130)](_0xb0a0da(0xf9));return _0x234fe7[_0xb0a0da(0x11d)](_0x2d5722=>{const _0xe80cb8=_0xb0a0da,_0xfea507=this[_0xe80cb8(0x10e)](_0x243997,_0x2d5722[_0xe80cb8(0x137)]);return _0xfea507[_0xe80cb8(0xfe)]=!0x0,_0xfea507[_0xe80cb8(0x139)]=_0x2d5722[_0xe80cb8(0x139)],_0xfea507[_0xe80cb8(0x12a)](_0xe80cb8(0xfc))['to'](_0x2f3b27,_0xe80cb8(0x136),_0x58b945=>_0x567348(_0x303d4b,_0x2d5722[_0xe80cb8(0x137)],_0x58b945?_0xe80cb8(0x112):_0xe80cb8(0x12c))[_0xe80cb8(0x140)]),_0xfea507;});}[_0x55d402(0x100)](_0x55731e){const _0x15527a=_0x55d402;return _0x55731e[_0x15527a(0x11d)](_0x5b5ca2=>{const _0x1423e3=_0x15527a,_0x22b284=this[_0x1423e3(0x10e)](_0x297d93,_0x5b5ca2[_0x1423e3(0x137)]);return _0x22b284[_0x1423e3(0x139)]=_0x5b5ca2[_0x1423e3(0x139)],_0x22b284[_0x1423e3(0xfc)]=_0x5b5ca2[_0x1423e3(0x127)],_0x22b284;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x254222}from'ckeditor5/src/core.js';import{FileRepository as _0x47ceac}from'ckeditor5/src/upload.js';import _0x3fcc49 from'./uploadcareediting.js';import _0x3adbe1 from'./utils/uploadutils.js';import{getImageUrls as _0x40d964}from'./utils/editingutils.js';export default class p extends _0x254222{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x47ceac,_0x3fcc49];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x555f0e=this['editor'];if(!!!_0x555f0e['config']['get']('uploadcare'))return;_0x555f0e['plugins']['get'](_0x47ceac)['createUploadAdapter']=_0x2d6317=>new x(_0x2d6317,_0x555f0e),_0x555f0e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5b8553,{imageElement:_0x3f5b8e,data:_0x3dcae4})=>{_0x555f0e['model']['change'](_0xdf31e2=>{_0xdf31e2['setAttribute']('uploadcareImageId',_0x3dcae4['uploadcareImageId'],_0x3f5b8e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2de7d3,_0x356559){this['loader']=_0x2de7d3,this['editor']=_0x356559,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xb0ba20=this['editor']['config']['get']('uploadcare.pubkey'),_0x373aba=await this['loader']['file'];return _0x3adbe1['upload']({'file':_0x373aba,'publicKey':_0xb0ba20,'signal':this['controller']['signal'],'onProgress':_0x2dccc9=>{_0x2dccc9&&_0x2dccc9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2dccc9['value']);}})['then'](async _0x420d0c=>{const {imageFallbackUrl:_0x3a97ca,imageSources:_0x1d49e9}=_0x40d964(_0x420d0c['cdnUrl'],_0x420d0c['imageInfo']['width']);return{'uploadcareImageId':_0x420d0c['uuid'],'default':_0x3a97ca,'sources':_0x1d49e9};})['catch'](()=>{const _0x8ded3a=t('Cannot\x20upload\x20file:')+('\x20'+_0x373aba['name']+'.');return Promise['reject'](_0x8ded3a);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x540ff1}from'../uploadcareconfig.js';export function getTranslation(_0x459fee,_0x1b62c8,_0x2f2854){const t=_0x459fee['t'],_0x29967f=_0x459fee['t'];switch(_0x1b62c8){case _0x540ff1['Local']:return{'text':_0x29967f('Insert'===_0x2f2854?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x29967f('From\x20computer')};case _0x540ff1['URL']:return{'text':'Insert'===_0x2f2854?_0x29967f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x29967f('Via\x20URL')};case _0x540ff1['Dropbox']:return{'text':t('Insert'===_0x2f2854?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x540ff1['Facebook']:return{'text':t('Insert'===_0x2f2854?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x540ff1['GDrive']:return{'text':t('Insert'===_0x2f2854?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x540ff1['GPhotos']:return{'text':t('Insert'===_0x2f2854?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x540ff1['OneDrive']:return{'text':t('Insert'===_0x2f2854?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1b62c8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4be874=_0x393a;function _0x393a(_0x198b56,_0x3e80ba){var _0x24a30d=_0x24a3();return _0x393a=function(_0x393a93,_0xb9a0ec){_0x393a93=_0x393a93-0x1b6;var _0x3c26ea=_0x24a30d[_0x393a93];return _0x3c26ea;},_0x393a(_0x198b56,_0x3e80ba);}(function(_0x4faafd,_0x14d378){var _0x300a09=_0x393a,_0x30d86a=_0x4faafd();while(!![]){try{var _0x462435=-parseInt(_0x300a09(0x1c5))/0x1+parseInt(_0x300a09(0x1c2))/0x2+-parseInt(_0x300a09(0x1c0))/0x3*(parseInt(_0x300a09(0x1c3))/0x4)+parseInt(_0x300a09(0x1bd))/0x5+parseInt(_0x300a09(0x1c6))/0x6*(parseInt(_0x300a09(0x1c8))/0x7)+-parseInt(_0x300a09(0x1be))/0x8*(parseInt(_0x300a09(0x1bf))/0x9)+parseInt(_0x300a09(0x1c4))/0xa;if(_0x462435===_0x14d378)break;else _0x30d86a['push'](_0x30d86a['shift']());}catch(_0x23bc9e){_0x30d86a['push'](_0x30d86a['shift']());}}}(_0x24a3,0xafa7d));import{FocusTracker as _0x910312}from'ckeditor5/src/utils.js';function _0x24a3(){var _0x5e990a=['1168398qfqaPH','4273464TGyUcH','12635860PLyGOD','362289wMXbIH','6ZJOXQh','getFocusableElement','2725863sVpcBD','createCollection','true','fire','forwardCycle','focusCycler','focusTracker','bindTemplate','6013645RGjVER','938024tzByDt','99TSdQVk','3PmfFsM','div'];_0x24a3=function(){return _0x5e990a;};return _0x24a3();}import{View as _0xcc7824,FocusCycler as _0x41f6c4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0xcc7824{[_0x4be874(0x1bb)];[_0x4be874(0x1ba)];constructor(_0x2db399){var _0x38be8b=_0x4be874;super(_0x2db399),this[_0x38be8b(0x1bb)]=new _0x910312(),this[_0x38be8b(0x1ba)]=new _0x41f6c4({'focusables':this[_0x38be8b(0x1b6)](),'focusTracker':this[_0x38be8b(0x1bb)]});}[_0x4be874(0x1c7)](){var _0x32646c=_0x4be874;return{'tag':_0x32646c(0x1c1),'attributes':{'aria-hidden':_0x32646c(0x1b7),'tabindex':'0'},'on':{'focus':this[_0x32646c(0x1bc)]['to'](()=>{var _0x48734d=_0x32646c;this[_0x48734d(0x1ba)][_0x48734d(0x1b8)](_0x48734d(0x1b9));})}};}}
|