@ckeditor/ckeditor5-uploadcare 44.3.0-alpha.1 → 44.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- 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 _0x47f255=_0x3f84;(function(_0x98eead,_0x25529b){const _0x1f6acd=_0x3f84,_0x45a418=_0x98eead();while(!![]){try{const _0x59e283=parseInt(_0x1f6acd(0xd3))/0x1*(parseInt(_0x1f6acd(0xde))/0x2)+parseInt(_0x1f6acd(0xf8))/0x3+parseInt(_0x1f6acd(0xbc))/0x4+parseInt(_0x1f6acd(0xf4))/0x5+-parseInt(_0x1f6acd(0x102))/0x6*(-parseInt(_0x1f6acd(0xeb))/0x7)+parseInt(_0x1f6acd(0xc1))/0x8*(parseInt(_0x1f6acd(0xd2))/0x9)+-parseInt(_0x1f6acd(0xea))/0xa;if(_0x59e283===_0x25529b)break;else _0x45a418['push'](_0x45a418['shift']());}catch(_0xa55d69){_0x45a418['push'](_0x45a418['shift']());}}}(_0x284c,0x4b94a));import{Plugin as _0x1be430}from'ckeditor5/src/core.js';import{Dialog as _0xeb9a0e}from'ckeditor5/src/ui.js';import{createElement as _0x899434,global as _0x23f2fa,uid as _0x474db5}from'ckeditor5/src/utils.js';import _0x3fa7b9 from'./uploadcarecommand.js';function _0x3f84(_0x5e0fef,_0xdf0964){const _0x284c74=_0x284c();return _0x3f84=function(_0x3f84e3,_0x53bc6c){_0x3f84e3=_0x3f84e3-0xb4;let _0x3cf2e9=_0x284c74[_0x3f84e3];return _0x3cf2e9;},_0x3f84(_0x5e0fef,_0xdf0964);}import _0x57b6ff from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x22da51}from'./utils/editingutils.js';export default class i extends _0x1be430{constructor(){const _0x2a87be=_0x3f84;super(...arguments),this[_0x2a87be(0xd8)]=null,this[_0x2a87be(0xf5)]=null;}static get[_0x47f255(0xf2)](){const _0x50ba00=_0x47f255;return _0x50ba00(0xe9);}static get[_0x47f255(0xbd)](){const _0x5da94f=_0x47f255;return[_0x5da94f(0xda),_0x57b6ff,_0xeb9a0e];}static get[_0x47f255(0xcc)](){return!0x0;}static get[_0x47f255(0xef)](){return!0x0;}get[_0x47f255(0xf0)](){const _0xe2ea08=_0x47f255;return this[_0xe2ea08(0xd8)];}get[_0x47f255(0xd0)](){const _0x57144c=_0x47f255;return this[_0x57144c(0xf5)];}[_0x47f255(0xd7)](){const _0x42baf9=_0x47f255,_0x831a58=this[_0x42baf9(0xd5)];_0x831a58[_0x42baf9(0xfd)][_0x42baf9(0xe1)](_0x42baf9(0xb4),new _0x3fa7b9(_0x831a58));}[_0x47f255(0x106)](){const _0x409837=_0x47f255;this[_0x409837(0xfb)](),this[_0x409837(0xf9)](),this[_0x409837(0xc6)](),this[_0x409837(0xfe)](),this[_0x409837(0xb5)](),this[_0x409837(0xe6)](this[_0x409837(0xd5)],_0x409837(0xe8),()=>{const _0x1faa28=_0x409837;this[_0x1faa28(0xd8)]&&(this[_0x1faa28(0xd8)][_0x1faa28(0xb8)](),this[_0x1faa28(0xd8)]=null),this[_0x1faa28(0xf5)]&&(this[_0x1faa28(0xf5)][_0x1faa28(0xb8)](),this[_0x1faa28(0xf5)]=null);const _0xb06647=_0x23f2fa[_0x1faa28(0x100)][_0x1faa28(0xe2)](_0x1faa28(0xe4));_0xb06647&&_0xb06647[_0x1faa28(0xb8)]();}),async function(_0x345005){const _0x4a6cb6=_0x3c034c([0x4b,0x46,0x76,0x39,0x48,0x63,0x61,0x34,0x74,0x68,0x30,0x6b,0x69,0x79,0x38,0x70,0x77,0x42,0x55,0x44,0x4c,0x35,0x31,0x72,0x53,0x4d,0x33,0x56,0x6d,0x65,0x32,0x66,0x37,0x67,0x6e,0x41,0x4e,0x58,0x73,0x62,0x64,0x57,0x5a,0x45,0x49,0x36,0x71,0x75,0x59,0x47,0x6a,0x50,0x4f,0x4a,0x43,0x51,0x78,0x6f,0x54,0x7a,0x52,0x6c]),_0x3192d0=0x152d19fa,_0x203736=0x152a794a^_0x3192d0,_0x2f66a0=window[_0x3c034c([0x44,0x61,0x74,0x65])][_0x3c034c([0x6e,0x6f,0x77])](),_0x470e01=_0x345005[_0x3c034c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ff2f5=new window[(_0x3c034c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4515=>{_0x470e01[_0x3c034c([0x6f,0x6e,0x63,0x65])](_0x3c034c([0x72,0x65,0x61,0x64,0x79]),_0x5e4515);}),_0x3a6309={[_0x3c034c([0x6b,0x74,0x79])]:_0x3c034c([0x45,0x43]),[_0x3c034c([0x75,0x73,0x65])]:_0x3c034c([0x73,0x69,0x67]),[_0x3c034c([0x63,0x72,0x76])]:_0x3c034c([0x50,0x2d,0x32,0x35,0x36]),[_0x3c034c([0x78])]:_0x3c034c([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]),[_0x3c034c([0x79])]:_0x3c034c([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]),[_0x3c034c([0x61,0x6c,0x67])]:_0x3c034c([0x45,0x53,0x32,0x35,0x36])},_0x36ca12=_0x470e01[_0x3c034c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c034c([0x67,0x65,0x74])](_0x3c034c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x170401(){let _0x3c5d52,_0x5cf61f=null,_0x3245a8=null;try{if(_0x36ca12==_0x3c034c([0x47,0x50,0x4c]))return _0x3c034c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c5d52=_0x518aea(),!_0x3c5d52)return _0x3c034c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c5d52[_0x3c034c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3245a8=_0x33608f(_0x3c5d52[_0x3c034c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c5d52[_0x3c034c([0x6a,0x74,0x69])])),await _0x48ae21()?_0x69d88e()?_0xf2a78c()?_0x3c034c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x522c23()?(_0x3c5d52[_0x3c034c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c034c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5cf61f=_0x21b8b0(_0x3c034c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c5d52[_0x3c034c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c034c([0x74,0x72,0x69,0x61,0x6c])&&(_0x5cf61f=_0x21b8b0(_0x3c034c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17056d()):_0x3c034c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c034c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c034c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x35acd7){return _0x3c034c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf2a78c(){const _0x36e78d=[_0x3c034c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c034c([0x74,0x72,0x69,0x61,0x6c])][_0x3c034c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c5d52[_0x3c034c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f66a0/0x3e8:0xe10*_0x203736;return _0x3c5d52[_0x3c034c([0x65,0x78,0x70])]<_0x36e78d;}function _0x69d88e(){const _0x42cf49=_0x3c5d52[_0x3c034c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42cf49&&(!!_0x42cf49[_0x3c034c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c034c([0x2a]))||!!_0x42cf49[_0x3c034c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c034c([0x55,0x50,0x4c,0x43])));}function _0x522c23(){const _0x5d1dde=_0x3f84,_0x2638f0=_0x3c5d52[_0x3c034c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2638f0||0x0==_0x2638f0[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fbb84}=new URL(window[_0x3c034c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d1dde(0xd1)]);if(_0x2638f0[_0x3c034c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fbb84))return!0x0;const _0x21925f=_0x2fbb84[_0x3c034c([0x73,0x70,0x6c,0x69,0x74])](_0x3c034c([0x2e]));return _0x2638f0[_0x3c034c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18bd1c=>_0x18bd1c[_0x3c034c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c034c([0x2a])))[_0x3c034c([0x6d,0x61,0x70])](_0x3f39c4=>_0x3f39c4[_0x3c034c([0x73,0x70,0x6c,0x69,0x74])](_0x3c034c([0x2e])))[_0x3c034c([0x73,0x6f,0x6d,0x65])](_0x3dfeb1=>_0x21925f[_0x3c034c([0x65,0x76,0x65,0x72,0x79])]((_0x13912b,_0x14da81)=>_0x3dfeb1[_0x14da81]===_0x13912b||_0x3dfeb1[_0x14da81]===_0x3c034c([0x2a])));}function _0x17056d(){return _0x5cf61f&&_0x3245a8?new window[(_0x3c034c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9d2246,_0x33f372)=>{_0x5cf61f[_0x3c034c([0x74,0x68,0x65,0x6e])](_0x9d2246,_0x33f372),_0x3245a8[_0x3c034c([0x74,0x68,0x65,0x6e])](_0x456cee=>{_0x456cee!=_0x3c034c([0x56,0x61,0x6c,0x69,0x64])&&_0x9d2246(_0x456cee);},_0x33f372);}):_0x5cf61f||_0x3245a8||_0x3c034c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33608f(_0x515b4e,_0x434036){return new window[(_0x3c034c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4722d3=>{if(_0x3088f9())return _0x4722d3(_0x3c034c([0x56,0x61,0x6c,0x69,0x64]));_0x332bf2(),_0x470e01[_0x3c034c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c034c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f16f3=!0x1;const _0x373a99=_0x474db5();function _0x4a44d6(_0x58ea39){return!!_0x58ea39&&(typeof _0x58ea39===_0x3c034c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58ea39===_0x3c034c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58ea39[_0x3c034c([0x74,0x68,0x65,0x6e])]===_0x3c034c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58ea39[_0x3c034c([0x63,0x61,0x74,0x63,0x68])]===_0x3c034c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30d184(_0x707907){_0x40fb65(_0x707907)[_0x3c034c([0x74,0x68,0x65,0x6e])](_0x1ebabf=>{if(!_0x1ebabf||_0x1ebabf[_0x3c034c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c034c([0x6f,0x6b]))return _0x3c034c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49f5b2(_0x48e57a(_0x373a99+_0x434036))!=_0x1ebabf[_0x3c034c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c034c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c034c([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c034c([0x74,0x68,0x65,0x6e])](_0x36a29b=>(_0x142669(),_0x36a29b),()=>{const _0x505cb4=_0x138cef();return null==_0x505cb4?(_0x142669(),_0x3c034c([0x56,0x61,0x6c,0x69,0x64])):_0x3c034c(_0x2f66a0-_0x505cb4>(0x31219dfa^_0x3192d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c034c([0x74,0x68,0x65,0x6e])](_0x4722d3)[_0x3c034c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4722d3(_0x3c034c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b217f=0x151bf77a^_0x3192d0;function _0x142669(){const _0x568763=_0x3c034c([0x6c,0x6c,0x63,0x74,0x2d])+_0x49f5b2(_0x48e57a(_0x515b4e)),_0x1dfae8=_0x5ab581(_0x49f5b2(window[_0x3c034c([0x4d,0x61,0x74,0x68])][_0x3c034c([0x63,0x65,0x69,0x6c])](_0x2f66a0/_0x2b217f)));window[_0x3c034c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c034c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x568763,_0x1dfae8);}function _0x138cef(){const _0x345d17=_0x3c034c([0x6c,0x6c,0x63,0x74,0x2d])+_0x49f5b2(_0x48e57a(_0x515b4e)),_0x300a1f=window[_0x3c034c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c034c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x345d17);return _0x300a1f?window[_0x3c034c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ab581(_0x300a1f),0x10)*_0x2b217f:null;}function _0x40fb65(_0x590c92){return new window[(_0x3c034c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37ac5b,_0x5079ee)=>{_0x590c92[_0x3c034c([0x74,0x68,0x65,0x6e])](_0x37ac5b,_0x5079ee),window[_0x3c034c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5079ee,0x152ccd3a^_0x3192d0);});}}_0x470e01[_0x3c034c([0x6f,0x6e])](_0x3c034c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x537193,_0x4d00c8)=>{if(_0x4d00c8[0x0]!=_0x515b4e)return _0x4722d3(_0x3c034c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d00c8[0x1]={..._0x4d00c8[0x1],[_0x3c034c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x373a99};},{[_0x3c034c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c034c([0x68,0x69,0x67,0x68])}),_0x470e01[_0x3c034c([0x6f,0x6e])](_0x3c034c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe456ed=>{_0x4a44d6(_0xe456ed[_0x3c034c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f16f3=!0x0,_0x30d184(_0xe456ed[_0x3c034c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c034c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c034c([0x6c,0x6f,0x77])}),_0x2ff2f5[_0x3c034c([0x74,0x68,0x65,0x6e])](()=>{_0x1f16f3||_0x4722d3(_0x3c034c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3088f9(){return _0x470e01[_0x3c034c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c034c([0x76,0x69,0x65,0x77])][_0x3c034c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c034c([0x61,0x75,0x74,0x6f]);}function _0x332bf2(){_0x470e01[_0x3c034c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c034c([0x76,0x69,0x65,0x77])][_0x3c034c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c034c([0x61,0x75,0x74,0x6f]);}}function _0x21b8b0(_0x2edbf7){const _0x47a481=[new window[(_0x3c034c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215b08=>setTimeout(_0x215b08,0x15242736^_0x3192d0)),_0x2ff2f5[_0x3c034c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c034c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb9b42f=>{let _0x37330c=0x0;_0x470e01[_0x3c034c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c034c([0x6f,0x6e])](_0x3c034c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51f881,_0x53beca)=>{_0x53beca[0x0][_0x3c034c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37330c++,_0x37330c==(0x152d1802^_0x3192d0)&&(_0xb9b42f(),_0x51f881[_0x3c034c([0x6f,0x66,0x66])]());});}))];return window[_0x3c034c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c034c([0x72,0x61,0x63,0x65])](_0x47a481)[_0x3c034c([0x74,0x68,0x65,0x6e])](()=>_0x2edbf7);}async function _0x4946c0(){await _0x2ff2f5,_0x470e01[_0x3c034c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c034c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58fc90,_0x470e01[_0x3c034c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c034c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58fc90,_0x470e01[_0x3c034c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c034c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a26d3(_0x1a29fb){const _0x4d2dc7=_0x473abb();_0x470e01[_0x4d2dc7]=_0x3c034c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a29fb,_0x1a29fb!=_0x3c034c([0x56,0x61,0x6c,0x69,0x64])&&_0x4946c0();}function _0x473abb(){const _0x32ed85=window[_0x3c034c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c034c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c034c([0x6e,0x6f,0x77])]())[_0x3c034c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c034c([0x2e]),'');let _0x17b6dc=_0x3c034c([0x4b]);for(let _0x275b73=0x0;_0x275b73<_0x32ed85[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x275b73+=0x2){let _0x2fcb04=window[_0x3c034c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32ed85[_0x3c034c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x275b73,_0x275b73+0x2));_0x2fcb04>=_0x4a6cb6[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fcb04-=_0x4a6cb6[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17b6dc+=_0x4a6cb6[_0x2fcb04];}return _0x17b6dc;}function _0x518aea(){const _0xbd790d=_0x36ca12[_0x3c034c([0x73,0x70,0x6c,0x69,0x74])](_0x3c034c([0x2e]));if(0x3!=_0xbd790d[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a328b(_0xbd790d[0x1]);function _0x3a328b(_0x361c36){const _0x12c2d2=_0xc7c30(_0x361c36);return _0x12c2d2&&_0x480378()?_0x12c2d2:null;function _0x480378(){const _0x68aaec=_0x12c2d2[_0x3c034c([0x6a,0x74,0x69])],_0x4b3cbb=window[_0x3c034c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x68aaec[_0x3c034c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x68aaec[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12faec={..._0x12c2d2,[_0x3c034c([0x6a,0x74,0x69])]:_0x68aaec[_0x3c034c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x68aaec[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12faec[_0x3c034c([0x76,0x63])],_0x48e57a(_0x12faec)==_0x4b3cbb;}}}async function _0x48ae21(){let _0x4d1538=!0x0;try{const _0x52984=_0x36ca12[_0x3c034c([0x73,0x70,0x6c,0x69,0x74])](_0x3c034c([0x2e])),[_0x254506,_0x16866a,_0x31d4aa]=_0x52984;return _0x5eaa83(_0x254506),await _0x4d8228(_0x254506,_0x16866a,_0x31d4aa),_0x4d1538;}catch(_0x5c26fb){return!0x1;}function _0x5eaa83(_0x4312e7){const _0x1da1da=_0xc7c30(_0x4312e7);_0x1da1da&&_0x1da1da[_0x3c034c([0x61,0x6c,0x67])]==_0x3c034c([0x45,0x53,0x32,0x35,0x36])||(_0x4d1538=!0x1);}async function _0x4d8228(_0x4ae7aa,_0x3d0e1b,_0x2a8f33){const _0x16c859=window[_0x3c034c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c034c([0x66,0x72,0x6f,0x6d])](_0xd6165c(_0x2a8f33),_0x4fb8ff=>_0x4fb8ff[_0x3c034c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14e4d2=new window[(_0x3c034c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c034c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ae7aa+_0x3c034c([0x2e])+_0x3d0e1b),_0x19d598=window[_0x3c034c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c034c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19d598)return;const _0x4994b7=await _0x19d598[_0x3c034c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c034c([0x6a,0x77,0x6b]),_0x3a6309,{[_0x3c034c([0x6e,0x61,0x6d,0x65])]:_0x3c034c([0x45,0x43,0x44,0x53,0x41]),[_0x3c034c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c034c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c034c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19d598[_0x3c034c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c034c([0x6e,0x61,0x6d,0x65])]:_0x3c034c([0x45,0x43,0x44,0x53,0x41]),[_0x3c034c([0x68,0x61,0x73,0x68])]:{[_0x3c034c([0x6e,0x61,0x6d,0x65])]:_0x3c034c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4994b7,_0x16c859,_0x14e4d2)||(_0x4d1538=!0x1);}}function _0xc7c30(_0x425ac7){return _0x425ac7[_0x3c034c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c034c([0x65,0x79]))?JSON[_0x3c034c([0x70,0x61,0x72,0x73,0x65])](_0xd6165c(_0x425ac7)):null;}function _0xd6165c(_0x141500){return window[_0x3c034c([0x61,0x74,0x6f,0x62])](_0x141500[_0x3c034c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c034c([0x2b]))[_0x3c034c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c034c([0x2f])));}function _0x48e57a(_0x4d2fe9){let _0x2d69f1=0x1505;function _0x177063(_0x81daf3){for(let _0xf6e08=0x0;_0xf6e08<_0x81daf3[_0x3c034c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf6e08++){const _0x1fbcc4=_0x81daf3[_0x3c034c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf6e08);_0x2d69f1=(_0x2d69f1<<0x5)+_0x2d69f1+_0x1fbcc4,_0x2d69f1&=_0x2d69f1;}}function _0x25da71(_0x145d43){Array[_0x3c034c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x145d43)?_0x145d43[_0x3c034c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25da71):_0x145d43&&typeof _0x145d43==_0x3c034c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c034c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x145d43)[_0x3c034c([0x73,0x6f,0x72,0x74])]()[_0x3c034c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x555d99,_0x375c50])=>{_0x177063(_0x555d99),_0x25da71(_0x375c50);}):_0x177063(window[_0x3c034c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x145d43));}return _0x25da71(_0x4d2fe9),_0x2d69f1>>>0x0;}function _0x49f5b2(_0xe4a7c7){return _0xe4a7c7[_0x3c034c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c034c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c034c([0x30]));}function _0x5ab581(_0x4c9da3){return _0x4c9da3[_0x3c034c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c034c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c034c([0x6a,0x6f,0x69,0x6e])]('');}function _0x58fc90(){}function _0x3c034c(_0x186420){const _0x5e275b=_0x3f84;return _0x186420[_0x5e275b(0xb6)](_0x45eac1=>String[_0x5e275b(0xc2)](_0x45eac1))[_0x5e275b(0xec)]('');}_0x2a26d3(await _0x170401());}(this);}[_0x47f255(0xfb)](){const _0x326385=_0x47f255,_0x2e0f7b=this[_0x326385(0xd5)][_0x326385(0xdc)][_0x326385(0xee)];_0x2e0f7b[_0x326385(0xff)](_0x326385(0xba))&&_0x2e0f7b[_0x326385(0xf1)](_0x326385(0xba),{'allowAttributes':[_0x326385(0xbf)]}),_0x2e0f7b[_0x326385(0xff)](_0x326385(0xb9))&&_0x2e0f7b[_0x326385(0xf1)](_0x326385(0xb9),{'allowAttributes':[_0x326385(0xbf)]});}[_0x47f255(0xf9)](){const _0x428622=_0x47f255,_0x2b914d=this[_0x428622(0xd5)];_0x2b914d[_0x428622(0xfa)][_0x428622(0xc5)](_0x428622(0xcf))[_0x428622(0xfc)]({'model':_0x428622(0xbf),'view':_0x428622(0x103)}),_0x2b914d[_0x428622(0xfa)][_0x428622(0xc5)](_0x428622(0xdd))[_0x428622(0xe7)]({'model':{'key':_0x428622(0xbf),'value':_0x18340d=>_0x18340d[_0x428622(0x107)](_0x428622(0x103))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e3ac3=_0x2b914d[_0x428622(0xfd)][_0x428622(0xe3)](_0x428622(0xc9));_0x1e3ac3&&this[_0x428622(0xe6)](_0x1e3ac3,_0x428622(0x101),(_0x12a196,[_0x2915ea,_0x5f40ab])=>{const _0x1fe249=_0x428622;_0x2915ea[_0x1fe249(0xc0)](_0x1fe249(0xbf),_0x5f40ab);});}[_0x47f255(0xc6)](){const _0x35ef86=_0x47f255,_0x6bdb2c=this[_0x35ef86(0xd5)][_0x35ef86(0xf7)][_0x35ef86(0xe3)](_0x35ef86(0xb7))||{},_0x43a805=this[_0x35ef86(0xd5)][_0x35ef86(0xf7)][_0x35ef86(0xe3)](_0x35ef86(0x105))||'';this[_0x35ef86(0xd8)]=_0x899434(_0x23f2fa[_0x35ef86(0x100)],_0x35ef86(0xf3),{..._0x6bdb2c,'pubkey':_0x43a805,'ctx-name':_0x35ef86(0xe0),'sourceList':'','imgOnly':_0x35ef86(0xdb),'removeCopyright':_0x35ef86(0xdb),'localeName':this[_0x35ef86(0xd5)][_0x35ef86(0xd6)][_0x35ef86(0xca)],'externalSourcesEmbedCss':_0x35ef86(0xce)}),this[_0x35ef86(0xd8)][_0x35ef86(0x104)]=_0x45335b=>{const _0x4bab19=_0x35ef86;if(_0x4bab19(0xc8)==_0x45335b)return _0x4bab19(0xbe);},_0x23f2fa[_0x35ef86(0x100)][_0x35ef86(0xd4)][_0x35ef86(0xe5)](this[_0x35ef86(0xd8)]);}[_0x47f255(0xfe)](){const _0x412410=_0x47f255;this[_0x412410(0xf5)]=_0x899434(_0x23f2fa[_0x412410(0x100)],_0x412410(0xed),{'ctx-name':_0x412410(0xe0)}),_0x23f2fa[_0x412410(0x100)][_0x412410(0xd4)][_0x412410(0xe5)](this[_0x412410(0xf5)]);}[_0x47f255(0xb5)](){const _0xe3006d=_0x47f255,_0x3cc0a7=this[_0xe3006d(0xd5)][_0xe3006d(0xfd)][_0xe3006d(0xe3)](_0xe3006d(0xd9));_0x3cc0a7&&this[_0xe3006d(0xe6)](_0x3cc0a7,_0xe3006d(0xcd),()=>{const _0x28c23f=_0xe3006d,_0x2032e2=this[_0x28c23f(0xd5)][_0x28c23f(0xdc)][_0x28c23f(0x100)][_0x28c23f(0xcb)][_0x28c23f(0xc3)]();_0x2032e2&&_0x2032e2[_0x28c23f(0x107)](_0x28c23f(0xbf))&&this[_0x28c23f(0xd5)][_0x28c23f(0xf6)][_0x28c23f(0xc7)][_0x28c23f(0xdf)](_0x28c23f(0xc4),()=>{const _0x359518=_0x28c23f;_0x22da51(this[_0x359518(0xd5)],_0x2032e2);});});const _0x429edb=this[_0xe3006d(0xd5)][_0xe3006d(0xfd)][_0xe3006d(0xe3)](_0xe3006d(0xbb));_0x429edb&&this[_0xe3006d(0xe6)](_0x429edb,_0xe3006d(0xcd),()=>{const _0x53444c=_0xe3006d,_0x251ff2=this[_0x53444c(0xd5)][_0x53444c(0xdc)][_0x53444c(0x100)][_0x53444c(0xcb)][_0x53444c(0xc3)]();_0x251ff2&&_0x251ff2[_0x53444c(0x107)](_0x53444c(0xbf))&&this[_0x53444c(0xd5)][_0x53444c(0xf6)][_0x53444c(0xc7)][_0x53444c(0xdf)](_0x53444c(0xc4),()=>{const _0x198595=_0x53444c;_0x22da51(this[_0x198595(0xd5)],_0x251ff2);});});}}function _0x284c(){const _0x23a564=['99rpLGkd','51VcXaDY','body','editor','locale','init','_configElement','insertImage','PictureEditing','true','model','upcast','102bbXJLm','once','uploader','add','querySelector','get','input[uploadcare-file-input]','appendChild','listenTo','elementToAttribute','destroy','UploadcareEditing','11832380zAQefi','1374394KhWdaW','join','uc-upload-ctx-provider','schema','isPremiumPlugin','configElement','extend','pluginName','uc-config','803330sJyJjt','_ctxElement','editing','config','775818FlnmKL','_initConversion','conversion','_initSchema','attributeToAttribute','commands','_initCtx','isRegistered','document','cleanupImage','12yifkXm','data-uc-image-id','iconHrefResolver','uploadcare.pubkey','afterInit','getAttribute','uploadcare','_initImageProcessingIndicator','map','uploadcare.uploader','remove','imageInline','imageBlock','uploadcareImageReplace','2034072oyljBN','requires','#uc-icon-arrow-down','uploadcareImageId','removeAttribute','123448QFhKOY','fromCharCode','getSelectedElement','render','for','_initConfig','view','closeMax','replaceImageSource','contentLanguage','selection','isOfficialPlugin','execute','\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','downcast','ctxElement','href'];_0x284c=function(){return _0x23a564;};return _0x284c();}
|
|
23
|
+
const _0x5daa58=_0x52ea;(function(_0x30c94b,_0x33daa7){const _0x9b0050=_0x52ea,_0x104bf1=_0x30c94b();while(!![]){try{const _0x38b8e2=-parseInt(_0x9b0050(0x13b))/0x1*(-parseInt(_0x9b0050(0x109))/0x2)+-parseInt(_0x9b0050(0x12a))/0x3*(-parseInt(_0x9b0050(0x103))/0x4)+-parseInt(_0x9b0050(0xfd))/0x5*(-parseInt(_0x9b0050(0x121))/0x6)+parseInt(_0x9b0050(0x101))/0x7*(parseInt(_0x9b0050(0xf7))/0x8)+parseInt(_0x9b0050(0x136))/0x9+-parseInt(_0x9b0050(0x100))/0xa+-parseInt(_0x9b0050(0x12b))/0xb*(parseInt(_0x9b0050(0xfc))/0xc);if(_0x38b8e2===_0x33daa7)break;else _0x104bf1['push'](_0x104bf1['shift']());}catch(_0x3decef){_0x104bf1['push'](_0x104bf1['shift']());}}}(_0x3df5,0xb1bec));import{Plugin as _0x41e768}from'ckeditor5/src/core.js';import{Dialog as _0x22481c}from'ckeditor5/src/ui.js';import{createElement as _0x44ed3a,global as _0x1be687,uid as _0x4d6ca9}from'ckeditor5/src/utils.js';import _0xd17580 from'./uploadcarecommand.js';import _0x1d7cb4 from'./uploadcareuploadadapter.js';function _0x52ea(_0x568b96,_0x325f74){const _0x3df550=_0x3df5();return _0x52ea=function(_0x52ea31,_0x14ebf0){_0x52ea31=_0x52ea31-0xe6;let _0x5d2ef1=_0x3df550[_0x52ea31];return _0x5d2ef1;},_0x52ea(_0x568b96,_0x325f74);}import{showImageProcessingIndicator as _0x56629e}from'./utils/editingutils.js';function _0x3df5(){const _0x20c1c8=['_initConfig','_initConversion','closeMax','5113917pKONuE','href','replaceImageSource','uploader','body','1CoFZvl','downcast','locale','destroy','editing','appendChild','cleanupImage','uc-config','view','UploadcareEditing','\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','_ctxElement','#uc-icon-arrow-down','listenTo','getSelectedElement','_configElement','remove','_initImageProcessingIndicator','8AMCipP','requires','init','isRegistered','uc-upload-ctx-provider','732GqVLSh','150805dvcnRu','once','data-uc-image-id','2137040GoVNWA','5259751BYjhej','_initCtx','12QUgBib','uploadcareImageId','document','render','model','map','891938bHYUUr','contentLanguage','true','schema','selection','insertImage','isPremiumPlugin','imageInline','afterInit','pluginName','imageBlock','elementToAttribute','uploadcareImageReplace','fromCharCode','execute','attributeToAttribute','input[uploadcare-file-input]','commands','PictureEditing','getAttribute','iconHrefResolver','upcast','editor','configElement','66OcLKgO','uploadcare.uploader','get','querySelector','uploadcare','for','uploadcare.pubkey','_initSchema','join','1290441kPVuPK','441089XNUJbN','ctxElement','conversion','add','config','isOfficialPlugin','removeAttribute','extend'];_0x3df5=function(){return _0x20c1c8;};return _0x3df5();}export default class i extends _0x41e768{constructor(){const _0xa6094c=_0x52ea;super(...arguments),this[_0xa6094c(0xf4)]=null,this[_0xa6094c(0xf0)]=null;}static get[_0x5daa58(0x112)](){const _0x5d871d=_0x5daa58;return _0x5d871d(0xee);}static get[_0x5daa58(0xf8)](){const _0x27cf4f=_0x5daa58;return[_0x27cf4f(0x11b),_0x1d7cb4,_0x22481c];}static get[_0x5daa58(0x130)](){return!0x0;}static get[_0x5daa58(0x10f)](){return!0x0;}get[_0x5daa58(0x120)](){const _0x2bb1ee=_0x5daa58;return this[_0x2bb1ee(0xf4)];}get[_0x5daa58(0x12c)](){const _0x28fecb=_0x5daa58;return this[_0x28fecb(0xf0)];}[_0x5daa58(0xf9)](){const _0x47b524=_0x5daa58,_0x35c80b=this[_0x47b524(0x11f)];_0x35c80b[_0x47b524(0x11a)][_0x47b524(0x12e)](_0x47b524(0x125),new _0xd17580(_0x35c80b));}[_0x5daa58(0x111)](){const _0x17dd5b=_0x5daa58;this[_0x17dd5b(0x128)](),this[_0x17dd5b(0x134)](),this[_0x17dd5b(0x133)](),this[_0x17dd5b(0x102)](),this[_0x17dd5b(0xf6)](),this[_0x17dd5b(0xf2)](this[_0x17dd5b(0x11f)],_0x17dd5b(0xe8),()=>{const _0x5d63c8=_0x17dd5b;this[_0x5d63c8(0xf4)]&&(this[_0x5d63c8(0xf4)][_0x5d63c8(0xf5)](),this[_0x5d63c8(0xf4)]=null),this[_0x5d63c8(0xf0)]&&(this[_0x5d63c8(0xf0)][_0x5d63c8(0xf5)](),this[_0x5d63c8(0xf0)]=null);const _0x2305c6=_0x1be687[_0x5d63c8(0x105)][_0x5d63c8(0x124)](_0x5d63c8(0x119));_0x2305c6&&_0x2305c6[_0x5d63c8(0xf5)]();}),async function(_0x45475c){const _0x48d193=_0x55520b([0x44,0x43,0x6f,0x30,0x71,0x72,0x33,0x47,0x75,0x4e,0x77,0x39,0x4c,0x32,0x42,0x74,0x50,0x7a,0x59,0x6b,0x4b,0x36,0x52,0x49,0x51,0x68,0x4f,0x79,0x66,0x45,0x6e,0x4a,0x4d,0x6d,0x63,0x61,0x35,0x54,0x78,0x38,0x5a,0x41,0x53,0x76,0x6c,0x73,0x67,0x65,0x62,0x58,0x46,0x70,0x57,0x69,0x34,0x37,0x6a,0x56,0x55,0x48,0x64,0x31]),_0x4e852c=0x67902e45,_0x10048b=0x67974ea5^_0x4e852c,_0x2d7bba=window[_0x55520b([0x44,0x61,0x74,0x65])][_0x55520b([0x6e,0x6f,0x77])](),_0x50c9b5=_0x45475c[_0x55520b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b0b3=new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5984d8=>{_0x50c9b5[_0x55520b([0x6f,0x6e,0x63,0x65])](_0x55520b([0x72,0x65,0x61,0x64,0x79]),_0x5984d8);}),_0x3496f8={[_0x55520b([0x6b,0x74,0x79])]:_0x55520b([0x45,0x43]),[_0x55520b([0x75,0x73,0x65])]:_0x55520b([0x73,0x69,0x67]),[_0x55520b([0x63,0x72,0x76])]:_0x55520b([0x50,0x2d,0x32,0x35,0x36]),[_0x55520b([0x78])]:_0x55520b([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]),[_0x55520b([0x79])]:_0x55520b([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]),[_0x55520b([0x61,0x6c,0x67])]:_0x55520b([0x45,0x53,0x32,0x35,0x36])},_0x40b495=_0x50c9b5[_0x55520b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55520b([0x67,0x65,0x74])](_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x320d5a(){let _0x17bdf1,_0x43edb8=null,_0x4739c1=null;try{if(_0x40b495==_0x55520b([0x47,0x50,0x4c]))return _0x55520b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17bdf1=_0x329854(),!_0x17bdf1)return _0x55520b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17bdf1[_0x55520b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4739c1=_0x2b2c06(_0x17bdf1[_0x55520b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17bdf1[_0x55520b([0x6a,0x74,0x69])])),await _0x3199c1()?_0x26b47d()?_0x1e647b()?_0x55520b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x332ad8()?(_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55520b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43edb8=_0x510b9f(_0x55520b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55520b([0x74,0x72,0x69,0x61,0x6c])&&(_0x43edb8=_0x510b9f(_0x55520b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57a609()):_0x55520b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55520b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55520b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21e30e){return _0x55520b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e647b(){const _0x265fcc=[_0x55520b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55520b([0x74,0x72,0x69,0x61,0x6c])][_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d7bba/0x3e8:0xe10*_0x10048b;return _0x17bdf1[_0x55520b([0x65,0x78,0x70])]<_0x265fcc;}function _0x26b47d(){const _0x496f8b=_0x17bdf1[_0x55520b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x496f8b&&(!!_0x496f8b[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55520b([0x2a]))||!!_0x496f8b[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55520b([0x55,0x50,0x4c,0x43])));}function _0x332ad8(){const _0x418ef7=_0x52ea,_0x265ca8=_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x265ca8||0x0==_0x265ca8[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1bc0dd}=new URL(window[_0x55520b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x418ef7(0x137)]);if(_0x265ca8[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc0dd))return!0x0;const _0x142d21=_0x1bc0dd[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e]));return _0x265ca8[_0x55520b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52e6a2=>_0x52e6a2[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55520b([0x2a])))[_0x55520b([0x6d,0x61,0x70])](_0x3cd1cc=>_0x3cd1cc[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e])))[_0x55520b([0x73,0x6f,0x6d,0x65])](_0x33d069=>_0x142d21[_0x55520b([0x65,0x76,0x65,0x72,0x79])]((_0x11a7ad,_0x2cab2e)=>_0x33d069[_0x2cab2e]===_0x11a7ad||_0x33d069[_0x2cab2e]===_0x55520b([0x2a])));}function _0x57a609(){return _0x43edb8&&_0x4739c1?new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x165005,_0x2307ed)=>{_0x43edb8[_0x55520b([0x74,0x68,0x65,0x6e])](_0x165005,_0x2307ed),_0x4739c1[_0x55520b([0x74,0x68,0x65,0x6e])](_0x53c1c2=>{_0x53c1c2!=_0x55520b([0x56,0x61,0x6c,0x69,0x64])&&_0x165005(_0x53c1c2);},_0x2307ed);}):_0x43edb8||_0x4739c1||_0x55520b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b2c06(_0x41cc59,_0x5aab7e){return new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26543e=>{if(_0x48788d())return _0x26543e(_0x55520b([0x56,0x61,0x6c,0x69,0x64]));_0x4211e2(),_0x50c9b5[_0x55520b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55520b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x451c79=!0x1;const _0xb9a2d1=_0x4d6ca9();function _0x34eae2(_0xb62650){return!!_0xb62650&&(typeof _0xb62650===_0x55520b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb62650===_0x55520b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb62650[_0x55520b([0x74,0x68,0x65,0x6e])]===_0x55520b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb62650[_0x55520b([0x63,0x61,0x74,0x63,0x68])]===_0x55520b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3eac17(_0x10f5aa){_0x1ea776(_0x10f5aa)[_0x55520b([0x74,0x68,0x65,0x6e])](_0x33bd72=>{if(!_0x33bd72||_0x33bd72[_0x55520b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55520b([0x6f,0x6b]))return _0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a5655(_0x1bf38f(_0xb9a2d1+_0x5aab7e))!=_0x33bd72[_0x55520b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55520b([0x56,0x61,0x6c,0x69,0x64]);})[_0x55520b([0x74,0x68,0x65,0x6e])](_0x19abee=>(_0x3a03e(),_0x19abee),()=>{const _0x562197=_0x3f53e1();return null==_0x562197?(_0x3a03e(),_0x55520b([0x56,0x61,0x6c,0x69,0x64])):_0x55520b(_0x2d7bba-_0x562197>(0x439caa45^_0x4e852c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55520b([0x74,0x68,0x65,0x6e])](_0x26543e)[_0x55520b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26543e(_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x333ddb=0x67a6c0c5^_0x4e852c;function _0x3a03e(){const _0x36ed55=_0x55520b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a5655(_0x1bf38f(_0x41cc59)),_0x45dc42=_0x34abf2(_0x4a5655(window[_0x55520b([0x4d,0x61,0x74,0x68])][_0x55520b([0x63,0x65,0x69,0x6c])](_0x2d7bba/_0x333ddb)));window[_0x55520b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55520b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36ed55,_0x45dc42);}function _0x3f53e1(){const _0x5718a5=_0x55520b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a5655(_0x1bf38f(_0x41cc59)),_0x26fa3c=window[_0x55520b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55520b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5718a5);return _0x26fa3c?window[_0x55520b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34abf2(_0x26fa3c),0x10)*_0x333ddb:null;}function _0x1ea776(_0x24c1fc){return new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4497ef,_0x205313)=>{_0x24c1fc[_0x55520b([0x74,0x68,0x65,0x6e])](_0x4497ef,_0x205313),window[_0x55520b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x205313,0x6791fa85^_0x4e852c);});}}_0x50c9b5[_0x55520b([0x6f,0x6e])](_0x55520b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcb8113,_0x4d8da1)=>{if(_0x4d8da1[0x0]!=_0x41cc59)return _0x26543e(_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d8da1[0x1]={..._0x4d8da1[0x1],[_0x55520b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb9a2d1};},{[_0x55520b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55520b([0x68,0x69,0x67,0x68])}),_0x50c9b5[_0x55520b([0x6f,0x6e])](_0x55520b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11c165=>{_0x34eae2(_0x11c165[_0x55520b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x451c79=!0x0,_0x3eac17(_0x11c165[_0x55520b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55520b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55520b([0x6c,0x6f,0x77])}),_0x12b0b3[_0x55520b([0x74,0x68,0x65,0x6e])](()=>{_0x451c79||_0x26543e(_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48788d(){return _0x50c9b5[_0x55520b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55520b([0x76,0x69,0x65,0x77])][_0x55520b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55520b([0x61,0x75,0x74,0x6f]);}function _0x4211e2(){_0x50c9b5[_0x55520b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55520b([0x76,0x69,0x65,0x77])][_0x55520b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55520b([0x61,0x75,0x74,0x6f]);}}function _0x510b9f(_0x11c0fd){const _0x565710=[new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc5e00a=>setTimeout(_0xc5e00a,0x67991089^_0x4e852c)),_0x12b0b3[_0x55520b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46f07a=>{let _0x13aa04=0x0;_0x50c9b5[_0x55520b([0x6d,0x6f,0x64,0x65,0x6c])][_0x55520b([0x6f,0x6e])](_0x55520b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11e726,_0x5cd034)=>{_0x5cd034[0x0][_0x55520b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13aa04++,_0x13aa04==(0x67902fbd^_0x4e852c)&&(_0x46f07a(),_0x11e726[_0x55520b([0x6f,0x66,0x66])]());});}))];return window[_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55520b([0x72,0x61,0x63,0x65])](_0x565710)[_0x55520b([0x74,0x68,0x65,0x6e])](()=>_0x11c0fd);}async function _0x2425ed(){await _0x12b0b3,_0x50c9b5[_0x55520b([0x6d,0x6f,0x64,0x65,0x6c])][_0x55520b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10ebea,_0x50c9b5[_0x55520b([0x6d,0x6f,0x64,0x65,0x6c])][_0x55520b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10ebea,_0x50c9b5[_0x55520b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55520b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ff5d2(_0x29896c){const _0x55f886=_0x348e4c();_0x50c9b5[_0x55f886]=_0x55520b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29896c,_0x29896c!=_0x55520b([0x56,0x61,0x6c,0x69,0x64])&&_0x2425ed();}function _0x348e4c(){const _0x44ff3e=window[_0x55520b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55520b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55520b([0x6e,0x6f,0x77])]())[_0x55520b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55520b([0x2e]),'');let _0x3ff545=_0x55520b([0x44]);for(let _0x2666af=0x0;_0x2666af<_0x44ff3e[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2666af+=0x2){let _0x5c9511=window[_0x55520b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44ff3e[_0x55520b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2666af,_0x2666af+0x2));_0x5c9511>=_0x48d193[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c9511-=_0x48d193[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ff545+=_0x48d193[_0x5c9511];}return _0x3ff545;}function _0x329854(){const _0x5cd3f5=_0x40b495[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e]));if(0x3!=_0x5cd3f5[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb228c2(_0x5cd3f5[0x1]);function _0xb228c2(_0x5a5b46){const _0x34397a=_0x1688bd(_0x5a5b46);return _0x34397a&&_0x2b1184()?_0x34397a:null;function _0x2b1184(){const _0x10a3a9=_0x34397a[_0x55520b([0x6a,0x74,0x69])],_0x173f55=window[_0x55520b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10a3a9[_0x55520b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10a3a9[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36cfc6={..._0x34397a,[_0x55520b([0x6a,0x74,0x69])]:_0x10a3a9[_0x55520b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10a3a9[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36cfc6[_0x55520b([0x76,0x63])],_0x1bf38f(_0x36cfc6)==_0x173f55;}}}async function _0x3199c1(){let _0x52f62a=!0x0;try{const _0x1ecf96=_0x40b495[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e])),[_0x3ea9a9,_0x49edb1,_0x4ba2d1]=_0x1ecf96;return _0x3668da(_0x3ea9a9),await _0x2555f6(_0x3ea9a9,_0x49edb1,_0x4ba2d1),_0x52f62a;}catch(_0x169639){return!0x1;}function _0x3668da(_0x305e2b){const _0x42458e=_0x1688bd(_0x305e2b);_0x42458e&&_0x42458e[_0x55520b([0x61,0x6c,0x67])]==_0x55520b([0x45,0x53,0x32,0x35,0x36])||(_0x52f62a=!0x1);}async function _0x2555f6(_0x559f67,_0x51fbdf,_0x3e2792){const _0x1fd8a4=window[_0x55520b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55520b([0x66,0x72,0x6f,0x6d])](_0x4cbc44(_0x3e2792),_0x2febb1=>_0x2febb1[_0x55520b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x525bcb=new window[(_0x55520b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55520b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x559f67+_0x55520b([0x2e])+_0x51fbdf),_0x461c59=window[_0x55520b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55520b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x461c59)return;const _0x598a1f=await _0x461c59[_0x55520b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55520b([0x6a,0x77,0x6b]),_0x3496f8,{[_0x55520b([0x6e,0x61,0x6d,0x65])]:_0x55520b([0x45,0x43,0x44,0x53,0x41]),[_0x55520b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55520b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55520b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x461c59[_0x55520b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55520b([0x6e,0x61,0x6d,0x65])]:_0x55520b([0x45,0x43,0x44,0x53,0x41]),[_0x55520b([0x68,0x61,0x73,0x68])]:{[_0x55520b([0x6e,0x61,0x6d,0x65])]:_0x55520b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x598a1f,_0x1fd8a4,_0x525bcb)||(_0x52f62a=!0x1);}}function _0x1688bd(_0x4390e4){return _0x4390e4[_0x55520b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55520b([0x65,0x79]))?JSON[_0x55520b([0x70,0x61,0x72,0x73,0x65])](_0x4cbc44(_0x4390e4)):null;}function _0x4cbc44(_0x170c95){return window[_0x55520b([0x61,0x74,0x6f,0x62])](_0x170c95[_0x55520b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55520b([0x2b]))[_0x55520b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55520b([0x2f])));}function _0x1bf38f(_0x303853){let _0x4c4d2a=0x1505;function _0x4538f8(_0x176a80){for(let _0x12a141=0x0;_0x12a141<_0x176a80[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12a141++){const _0x2ab056=_0x176a80[_0x55520b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12a141);_0x4c4d2a=(_0x4c4d2a<<0x5)+_0x4c4d2a+_0x2ab056,_0x4c4d2a&=_0x4c4d2a;}}function _0x1b716e(_0x158dd6){Array[_0x55520b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x158dd6)?_0x158dd6[_0x55520b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b716e):_0x158dd6&&typeof _0x158dd6==_0x55520b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55520b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x158dd6)[_0x55520b([0x73,0x6f,0x72,0x74])]()[_0x55520b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1473ba,_0x236911])=>{_0x4538f8(_0x1473ba),_0x1b716e(_0x236911);}):_0x4538f8(window[_0x55520b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x158dd6));}return _0x1b716e(_0x303853),_0x4c4d2a>>>0x0;}function _0x4a5655(_0x5a4960){return _0x5a4960[_0x55520b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55520b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55520b([0x30]));}function _0x34abf2(_0xf06958){return _0xf06958[_0x55520b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55520b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55520b([0x6a,0x6f,0x69,0x6e])]('');}function _0x10ebea(){}function _0x55520b(_0x44b6dc){const _0x2916f8=_0x52ea;return _0x44b6dc[_0x2916f8(0x108)](_0x295bb8=>String[_0x2916f8(0x116)](_0x295bb8))[_0x2916f8(0x129)]('');}_0x3ff5d2(await _0x320d5a());}(this);}[_0x5daa58(0x128)](){const _0x582c63=_0x5daa58,_0x4af341=this[_0x582c63(0x11f)][_0x582c63(0x107)][_0x582c63(0x10c)];_0x4af341[_0x582c63(0xfa)](_0x582c63(0x113))&&_0x4af341[_0x582c63(0x132)](_0x582c63(0x113),{'allowAttributes':[_0x582c63(0x104)]}),_0x4af341[_0x582c63(0xfa)](_0x582c63(0x110))&&_0x4af341[_0x582c63(0x132)](_0x582c63(0x110),{'allowAttributes':[_0x582c63(0x104)]});}[_0x5daa58(0x134)](){const _0x53d1ed=_0x5daa58,_0x1cdaee=this[_0x53d1ed(0x11f)];_0x1cdaee[_0x53d1ed(0x12d)][_0x53d1ed(0x126)](_0x53d1ed(0xe6))[_0x53d1ed(0x118)]({'model':_0x53d1ed(0x104),'view':_0x53d1ed(0xff)}),_0x1cdaee[_0x53d1ed(0x12d)][_0x53d1ed(0x126)](_0x53d1ed(0x11e))[_0x53d1ed(0x114)]({'model':{'key':_0x53d1ed(0x104),'value':_0x2517fd=>_0x2517fd[_0x53d1ed(0x11c)](_0x53d1ed(0xff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21efa4=_0x1cdaee[_0x53d1ed(0x11a)][_0x53d1ed(0x123)](_0x53d1ed(0x138));_0x21efa4&&this[_0x53d1ed(0xf2)](_0x21efa4,_0x53d1ed(0xeb),(_0x5a386d,[_0x5aaa81,_0x46dc5b])=>{const _0x205684=_0x53d1ed;_0x5aaa81[_0x205684(0x131)](_0x205684(0x104),_0x46dc5b);});}[_0x5daa58(0x133)](){const _0x21f7b7=_0x5daa58,_0x1f22a4=this[_0x21f7b7(0x11f)][_0x21f7b7(0x12f)][_0x21f7b7(0x123)](_0x21f7b7(0x122))||{},_0x54e582=this[_0x21f7b7(0x11f)][_0x21f7b7(0x12f)][_0x21f7b7(0x123)](_0x21f7b7(0x127))||'';this[_0x21f7b7(0xf4)]=_0x44ed3a(_0x1be687[_0x21f7b7(0x105)],_0x21f7b7(0xec),{..._0x1f22a4,'pubkey':_0x54e582,'ctx-name':_0x21f7b7(0x139),'sourceList':'','imgOnly':_0x21f7b7(0x10b),'removeCopyright':_0x21f7b7(0x10b),'localeName':this[_0x21f7b7(0x11f)][_0x21f7b7(0xe7)][_0x21f7b7(0x10a)],'externalSourcesEmbedCss':_0x21f7b7(0xef)}),this[_0x21f7b7(0xf4)][_0x21f7b7(0x11d)]=_0x10a163=>{const _0x389f55=_0x21f7b7;if(_0x389f55(0x135)==_0x10a163)return _0x389f55(0xf1);},_0x1be687[_0x21f7b7(0x105)][_0x21f7b7(0x13a)][_0x21f7b7(0xea)](this[_0x21f7b7(0xf4)]);}[_0x5daa58(0x102)](){const _0x2ad5d7=_0x5daa58;this[_0x2ad5d7(0xf0)]=_0x44ed3a(_0x1be687[_0x2ad5d7(0x105)],_0x2ad5d7(0xfb),{'ctx-name':_0x2ad5d7(0x139)}),_0x1be687[_0x2ad5d7(0x105)][_0x2ad5d7(0x13a)][_0x2ad5d7(0xea)](this[_0x2ad5d7(0xf0)]);}[_0x5daa58(0xf6)](){const _0x2b0a4e=_0x5daa58,_0x5a4e4f=this[_0x2b0a4e(0x11f)][_0x2b0a4e(0x11a)][_0x2b0a4e(0x123)](_0x2b0a4e(0x10e));_0x5a4e4f&&this[_0x2b0a4e(0xf2)](_0x5a4e4f,_0x2b0a4e(0x117),()=>{const _0x1f5f4e=_0x2b0a4e,_0x24970e=this[_0x1f5f4e(0x11f)][_0x1f5f4e(0x107)][_0x1f5f4e(0x105)][_0x1f5f4e(0x10d)][_0x1f5f4e(0xf3)]();_0x24970e&&_0x24970e[_0x1f5f4e(0x11c)](_0x1f5f4e(0x104))&&this[_0x1f5f4e(0x11f)][_0x1f5f4e(0xe9)][_0x1f5f4e(0xed)][_0x1f5f4e(0xfe)](_0x1f5f4e(0x106),()=>{const _0x2c5bac=_0x1f5f4e;_0x56629e(this[_0x2c5bac(0x11f)],_0x24970e);});});const _0x59eb79=this[_0x2b0a4e(0x11f)][_0x2b0a4e(0x11a)][_0x2b0a4e(0x123)](_0x2b0a4e(0x115));_0x59eb79&&this[_0x2b0a4e(0xf2)](_0x59eb79,_0x2b0a4e(0x117),()=>{const _0x13f14c=_0x2b0a4e,_0x107471=this[_0x13f14c(0x11f)][_0x13f14c(0x107)][_0x13f14c(0x105)][_0x13f14c(0x10d)][_0x13f14c(0xf3)]();_0x107471&&_0x107471[_0x13f14c(0x11c)](_0x13f14c(0x104))&&this[_0x13f14c(0x11f)][_0x13f14c(0xe9)][_0x13f14c(0xed)][_0x13f14c(0xfe)](_0x13f14c(0x106),()=>{const _0x95b94c=_0x13f14c;_0x56629e(this[_0x95b94c(0x11f)],_0x107471);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x340aeb,ObservableMixin as _0x4c05fb}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x56ab88}from'ckeditor5/src/ui.js';import _0x4c433e from'./uploadcareimageeditformview.js';import _0x4b1669 from'../../utils/uploadutils.js';import _0x171e57 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x5a3512,getImageDimension as _0x5f116d}from'../../utils/editingutils.js';import{isAncestor as _0x35042e}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4c05fb(){constructor(_0x283ad5,_0x5192ff,_0x3808ad){super(),this['_editor']=_0x283ad5,this['_dialog']=_0x5192ff,this['_imageElement']=_0x3808ad,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 _0x2d6caa=this['_imageElement'],_0x3e75cb=_0x2d6caa['getAttribute']('uploadcareImageId'),_0x6d662f=_0x2d6caa['getAttribute']('src');if(_0x3e75cb)await this['_loadImageInfo'](_0x3e75cb,_0x6d662f);else{if(this['_imageCache']['has'](_0x6d662f)){const _0x4965bd=this['_imageCache']['get'](_0x6d662f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4965bd['url'],this['imageDimension']=_0x4965bd['dimension'],this['imageId']=_0x4965bd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3f3fc9}=this['_editor'],t=_0x3f3fc9['t'],_0x212b92=new _0x4c433e(_0x3f3fc9,this['imageStatus'],this['_attributes']);_0x212b92['bind']('status')['to'](this,'imageStatus'),_0x212b92['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x212b92['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x212b92['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x212b92,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x171e57,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x212b92,'position':_0x56ab88['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x212b92['focus']();},'onHide':()=>{_0x212b92['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ffc74=>!_0x35042e(_0x4ffc74,_0x212b92['element'])}});}['_loadImageInfo'](_0x57f4d2,_0x54d456){return _0x4b1669['getInfo'](_0x57f4d2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4ebfd3=>{const {width:_0x58740b,height:_0x28adda}=_0x4ebfd3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54d456,this['imageDimension']={'width':_0x58740b,'height':_0x28adda},this['imageId']=_0x57f4d2;})['catch'](_0x52085a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x52085a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1acec5,_0x3e28ed){return this['_getImageAsFile'](_0x1acec5)['then'](_0x3d47da=>_0x4b1669['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3e28ed['signal'],'file':_0x3d47da,'onProgress':_0x1ea509=>{_0x1ea509&&_0x1ea509['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1ea509['value']));}}))['then'](_0x4e845b=>{const {width:_0x16ed4f,height:_0x21a76a}=_0x4e845b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e845b['cdnUrl'],this['imageDimension']={'width':_0x16ed4f,'height':_0x21a76a},this['imageId']=_0x4e845b['uuid'],this['imageUploadProgress']=null;const _0x24add4=_0x1acec5['getAttribute']('src');this['_imageCache']['set'](_0x24add4,{'id':_0x4e845b['uuid'],'url':_0x4e845b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4536cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4536cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x541cf7,_0xb2508e){_0x541cf7['on']('apply',(_0xc71b88,_0x4606fd)=>{this['_replaceImage'](_0xb2508e,_0x4606fd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x541cf7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x541cf7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4af928,_0xa8e624,_0x2ba350){const _0x10ffb4=this['_editor'],{width:_0x33b7bb,height:_0x2adb30}=_0x5f116d(_0xa8e624,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x569d00,imageSources:_0x27f335}=_0x5a3512(_0xa8e624,_0x33b7bb);_0x10ffb4['model']['change'](_0x4d7a25=>{if('$graveyard'===_0x4af928['root']['rootName']){_0x10ffb4['execute']('insertImage',{'imageType':_0x4af928['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4af928['getAttributes']()),'uploadcareImageId':_0x2ba350,'src':_0x569d00,'sources':_0x27f335,'width':_0x33b7bb,'height':_0x2adb30}});const _0x9c6638=_0x4af928['getChildren']();_0x4af928=_0x10ffb4['model']['document']['selection']['getSelectedElement']();for(const _0x2fb6d3 of _0x9c6638)_0x4d7a25['append'](_0x4d7a25['cloneElement'](_0x2fb6d3),_0x4af928);}else _0x4d7a25['setSelection'](_0x4af928,'on'),_0x10ffb4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4af928['getAttributes']()),'uploadcareImageId':_0x2ba350,'src':_0x569d00,'sources':_0x27f335,'width':_0x33b7bb,'height':_0x2adb30},_0x4af928);_0x4d7a25['setSelection'](_0x4af928,'on');});}async['_getImageAsFile'](_0x1c4558){const _0xf55115=_0x340aeb['window'],_0x2867fc=_0x340aeb['document']['location']['href'],_0x66e6aa=new _0xf55115['URL'](_0x1c4558['getAttribute']('src'),_0x2867fc);if('data:'===_0x66e6aa['protocol']){const _0x58bf85=_0x66e6aa['href']['split'](','),_0x1f731a=_0x58bf85[0x0]['match'](/:(.*?);/)[0x1],_0x252f4e=_0x1f731a['split']('/')[0x1],_0x4c6ca6=_0xf55115['atob'](_0x58bf85[_0x58bf85['length']-0x1]);let _0x308111=_0x4c6ca6['length'];const _0x4384af=new _0xf55115['Uint8Array'](_0x308111);for(;_0x308111--;)_0x4384af[_0x308111]=_0x4c6ca6['charCodeAt'](_0x308111);return new _0xf55115['File']([_0x4384af],'image.'+_0x252f4e,{'type':_0x1f731a});}const _0x381b06=_0x66e6aa['href']['split']('/'),_0xa7d35=_0x381b06[_0x381b06['length']-0x1],_0x4877fa=_0xa7d35['split']('.')[0x1];return _0xf55115['fetch'](_0x66e6aa['href'])['then'](_0x1ed15e=>_0x1ed15e['clone']()['blob']())['then'](_0x591885=>new _0xf55115['File']([_0x591885],_0xa7d35,{'type':'image/'+_0x4877fa}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1bee(_0xa431a0,_0x432bea){const _0x4503bd=_0x4503();return _0x1bee=function(_0x1bee5b,_0x1cea46){_0x1bee5b=_0x1bee5b-0x1a4;let _0x2db729=_0x4503bd[_0x1bee5b];return _0x2db729;},_0x1bee(_0xa431a0,_0x432bea);}(function(_0x445f4d,_0x3e3ebb){const _0x477c42=_0x1bee,_0xb23b58=_0x445f4d();while(!![]){try{const _0x4beb06=parseInt(_0x477c42(0x1aa))/0x1*(-parseInt(_0x477c42(0x1a5))/0x2)+-parseInt(_0x477c42(0x1b3))/0x3+-parseInt(_0x477c42(0x1a4))/0x4*(-parseInt(_0x477c42(0x1ab))/0x5)+-parseInt(_0x477c42(0x1af))/0x6+parseInt(_0x477c42(0x1a8))/0x7*(parseInt(_0x477c42(0x1a6))/0x8)+parseInt(_0x477c42(0x1b1))/0x9*(-parseInt(_0x477c42(0x1ae))/0xa)+parseInt(_0x477c42(0x1b2))/0xb;if(_0x4beb06===_0x3e3ebb)break;else _0xb23b58['push'](_0xb23b58['shift']());}catch(_0x33740d){_0xb23b58['push'](_0xb23b58['shift']());}}}(_0x4503,0x73db3));function _0x4503(){const _0x5b3084=['2685588ZsWVjS','bindTemplate','uc-cloud-image-editor','image-edit','73060yYGpNu','38018wpueYy','92632FUFsek','setTemplate','413otkFKH','ck-uploadcare-theme','3swGFCM','145ehIcuX','uc-light','imageSrc','354630CxODzP','4755420xSJyON','set','108kChQWN','15752550hakmWZ'];_0x4503=function(){return _0x5b3084;};return _0x4503();}import{View as _0x2dede7}from'ckeditor5/src/ui.js';export default class tt extends _0x2dede7{constructor(_0x36631e,_0x3f2ad0){const _0x5c4eeb=_0x1bee;super(_0x36631e);const _0x3e1742=this[_0x5c4eeb(0x1b4)];this[_0x5c4eeb(0x1b0)](_0x5c4eeb(0x1ad),''),this[_0x5c4eeb(0x1a7)]({'tag':_0x5c4eeb(0x1b5),'attributes':{..._0x3f2ad0,'class':[_0x5c4eeb(0x1ac),_0x5c4eeb(0x1a9)],'ctx-name':_0x5c4eeb(0x1b6),'cdn-url':_0x3e1742['to'](_0x5c4eeb(0x1ad))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x190ea4,IconView as et,View as _0x23cb07}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x23cb07{constructor(_0x28a164){super(_0x28a164);const t=_0x28a164['t'];this['set']('errorType',null);const _0x98e764=new _0x190ea4(_0x28a164);_0x98e764['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x98e764['withText']=!0x0,_0x98e764['class']='ck-button-action',_0x98e764['on']('execute',()=>{this['fire']('retry');}),_0x98e764['bind']('isVisible')['to'](this,'errorType',_0xf6feed=>'NotFound'!==_0xf6feed);const _0x5a6095=new et();_0x5a6095['content']=at,_0x5a6095['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f4f5d=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':[_0x5a6095,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f4f5d['to']('errorType',_0x58cfb7=>t('NotFound'!==_0x58cfb7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x98e764]},{'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 _0x3c9dce,View as _0x11d937}from'ckeditor5/src/ui.js';export default class ta extends _0x11d937{constructor(_0xe41a21){super(_0xe41a21);const t=_0xe41a21['t'],_0x2fb8bb=this['bindTemplate'],_0x5581b9=new _0x3c9dce();_0x5581b9['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':[_0x5581b9,{'text':_0x2fb8bb['to']('imageUploadProgress',_0x31002c=>t('Loading\x20image...')+'\x20('+(_0x31002c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x570ee0=_0x733e;(function(_0x3e6b5d,_0x22562d){const _0x57512c=_0x733e,_0x2baaa4=_0x3e6b5d();while(!![]){try{const _0xc93e8c=parseInt(_0x57512c(0x1a4))/0x1+parseInt(_0x57512c(0x190))/0x2*(parseInt(_0x57512c(0x193))/0x3)+parseInt(_0x57512c(0x197))/0x4+parseInt(_0x57512c(0x188))/0x5+parseInt(_0x57512c(0x181))/0x6*(-parseInt(_0x57512c(0x173))/0x7)+-parseInt(_0x57512c(0x1a0))/0x8+parseInt(_0x57512c(0x18a))/0x9*(-parseInt(_0x57512c(0x19e))/0xa);if(_0xc93e8c===_0x22562d)break;else _0x2baaa4['push'](_0x2baaa4['shift']());}catch(_0x21d506){_0x2baaa4['push'](_0x2baaa4['shift']());}}}(_0x3d20,0x45581));import{View as _0x402dff}from'ckeditor5/src/ui.js';import _0x32a3a8 from'./uploadcareimageeditformloadingview.js';import _0x13aad9 from'./uploadcareimageeditformerrorview.js';import _0x12c2f3 from'./uploadcareimageeditformeditingview.js';import _0x3be0d7 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x3d20(){const _0x597b93=['ck-reset_all-excluded','212460zMQueJ','div','error','nodeName','cancel','_items','filter','2520390cQRDOn','change:status','11223NYSZFT','_addErrorViewListeners','set','getFocusableElement','focus','uploading','526ZAfIwf','toLowerCase','createCollection','1566pHpvIX','_errorView','retry','detail','779340XfphdC','uc-cloud-image-editor','addEventListener','ready','add','fire','element','2370vnAoGS','_waitForImageEditorComponent','792696vxwOab','_focusableView','setTemplate','once','409020OYvIfB','_loadingView','status','cdnUrl','addedNodes','_setView','112HkXDsq','ck-uploadcare-form','render','length','observe','querySelector','clear','disconnect','addMany','_addUploadcareImageEditorListeners','target','apply','_editingView'];_0x3d20=function(){return _0x597b93;};return _0x3d20();}function _0x733e(_0x29d7dc,_0xad2a38){const _0x3d2013=_0x3d20();return _0x733e=function(_0x733e9,_0x5b2797){_0x733e9=_0x733e9-0x173;let _0x4b152c=_0x3d2013[_0x733e9];return _0x4b152c;},_0x733e(_0x29d7dc,_0xad2a38);}export default class Z extends _0x3be0d7{constructor(_0x292380,_0x759f30,_0x146538){const _0x49c7bb=_0x733e;super(_0x292380),this[_0x49c7bb(0x186)]=this[_0x49c7bb(0x192)](),this[_0x49c7bb(0x1a5)]=new _0x32a3a8(_0x292380),this[_0x49c7bb(0x194)]=new _0x13aad9(_0x292380),this[_0x49c7bb(0x17f)]=new _0x12c2f3(_0x292380,_0x146538),this[_0x49c7bb(0x1a1)]=new _0x402dff(_0x292380),this[_0x49c7bb(0x1a1)][_0x49c7bb(0x1a2)](this[_0x49c7bb(0x18d)]()),this[_0x49c7bb(0x18c)](_0x49c7bb(0x1a6),_0x759f30),this[_0x49c7bb(0x1a2)]({'tag':_0x49c7bb(0x182),'attributes':{'class':['ck',_0x49c7bb(0x180),_0x49c7bb(0x174)],'tabindex':'-1'},'children':this[_0x49c7bb(0x186)]}),this[_0x49c7bb(0x1a9)](),this[_0x49c7bb(0x1a3)](_0x49c7bb(0x175),()=>{const _0x469c99=_0x49c7bb;this[_0x469c99(0x19f)](this[_0x469c99(0x19d)],_0x22354c=>{const _0x334d80=_0x469c99;this[_0x334d80(0x17c)](_0x22354c);});}),this['on'](_0x49c7bb(0x189),()=>{const _0x4797f2=_0x49c7bb;this[_0x4797f2(0x1a9)]();}),this[_0x49c7bb(0x18b)]();}[_0x570ee0(0x18e)](){const _0xc5c59a=_0x570ee0;this[_0xc5c59a(0x19d)][_0xc5c59a(0x18e)]();}[_0x570ee0(0x1a9)](){const _0x5be751=_0x570ee0;switch(this[_0x5be751(0x186)][_0x5be751(0x179)](),this[_0x5be751(0x1a6)]){case _0x5be751(0x18f):this[_0x5be751(0x186)][_0x5be751(0x19b)](this[_0x5be751(0x1a5)]);break;case _0x5be751(0x183):this[_0x5be751(0x186)][_0x5be751(0x19b)](this[_0x5be751(0x194)]);break;case _0x5be751(0x19a):this[_0x5be751(0x186)][_0x5be751(0x17b)]([this[_0x5be751(0x17f)],this[_0x5be751(0x1a1)]]);}}[_0x570ee0(0x19f)](_0x17115e,_0x31794f){const _0x497be1=_0x570ee0,_0x12cb46=_0x497be1(0x198),_0x259676=_0x17115e[_0x497be1(0x178)](_0x12cb46);if(_0x259676)return _0x31794f(_0x259676);const _0x2e2451=new MutationObserver(_0x548cc4=>{const _0x4198e9=_0x497be1,_0x28c873=_0x548cc4[_0x4198e9(0x187)](_0x2a617b=>_0x2a617b[_0x4198e9(0x17d)]===_0x17115e&&_0x2a617b[_0x4198e9(0x1a8)][_0x4198e9(0x176)]>0x0&&_0x2a617b[_0x4198e9(0x1a8)][0x0][_0x4198e9(0x184)][_0x4198e9(0x191)]()===_0x12cb46);_0x28c873[_0x4198e9(0x176)]&&(_0x2e2451[_0x4198e9(0x17a)](),_0x31794f(_0x28c873[0x0][_0x4198e9(0x1a8)][0x0]));});_0x2e2451[_0x497be1(0x177)](_0x17115e,{'childList':!0x0,'subtree':!0x0});}[_0x570ee0(0x17c)](_0x4d05ea){const _0x581d93=_0x570ee0;_0x4d05ea[_0x581d93(0x199)](_0x581d93(0x17e),_0x57959e=>{const _0x130cd1=_0x581d93;this[_0x130cd1(0x19c)](_0x130cd1(0x17e),{'imageSrc':_0x57959e[_0x130cd1(0x196)][_0x130cd1(0x1a7)]});}),_0x4d05ea[_0x581d93(0x199)](_0x581d93(0x185),()=>{const _0x32a268=_0x581d93;this[_0x32a268(0x19c)](_0x32a268(0x185));});}[_0x570ee0(0x18b)](){const _0x2b7fa4=_0x570ee0;this[_0x2b7fa4(0x194)]['on'](_0x2b7fa4(0x195),()=>{const _0x21daf2=_0x2b7fa4;this[_0x21daf2(0x19c)](_0x21daf2(0x195));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x196ccf=_0x4435;(function(_0x3aa3f3,_0x6727fd){const _0x7af9db=_0x4435,_0x168be8=_0x3aa3f3();while(!![]){try{const _0x5d387d=-parseInt(_0x7af9db(0x17e))/0x1*(-parseInt(_0x7af9db(0x16f))/0x2)+parseInt(_0x7af9db(0x178))/0x3*(-parseInt(_0x7af9db(0x174))/0x4)+-parseInt(_0x7af9db(0x17f))/0x5+-parseInt(_0x7af9db(0x175))/0x6+-parseInt(_0x7af9db(0x166))/0x7*(-parseInt(_0x7af9db(0x165))/0x8)+-parseInt(_0x7af9db(0x183))/0x9*(-parseInt(_0x7af9db(0x179))/0xa)+parseInt(_0x7af9db(0x16d))/0xb*(-parseInt(_0x7af9db(0x16c))/0xc);if(_0x5d387d===_0x6727fd)break;else _0x168be8['push'](_0x168be8['shift']());}catch(_0x34dc0d){_0x168be8['push'](_0x168be8['shift']());}}}(_0x1d52,0x708c3));import{Command as _0x359f92}from'ckeditor5/src/core.js';import{Dialog as _0xd25a96}from'ckeditor5/src/ui.js';function _0x4435(_0x4ac22b,_0x55a544){const _0x1d520f=_0x1d52();return _0x4435=function(_0x443579,_0x3e7a6b){_0x443579=_0x443579-0x165;let _0x43fe4a=_0x1d520f[_0x443579];return _0x43fe4a;},_0x4435(_0x4ac22b,_0x55a544);}function _0x1d52(){const _0x5acbc9=['config','imageEditController','imageBlock','9ZpWelT','model','element','get','16WWJfaE','1474396ZeWSTD','isEnabled','requires','set','unbind','isActive','12MCliqs','309551WoPfoS','document','2056dgSUWX','execute','uploadcare.allowExternalImagesEditing','bind','refresh','719624GSysEv','1115484Mfqoyq','editor','imageInline','6MPJHvr','2417410mkkvPx','_isEditable','plugins','selection','getSelectedElement','674FDKbLi','1605035moagvB'];_0x1d52=function(){return _0x5acbc9;};return _0x1d52();}import _0x34eea4 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x9b7a3a}from'../utils/editingutils.js';export default class V extends _0x359f92{static get[_0x196ccf(0x168)](){return[_0xd25a96];}constructor(_0x53da8c){const _0x3c8ee4=_0x196ccf;super(_0x53da8c),this[_0x3c8ee4(0x181)]=void 0x0,this[_0x3c8ee4(0x17a)]=_0x9b7a3a(_0x53da8c[_0x3c8ee4(0x180)][_0x3c8ee4(0x186)](_0x3c8ee4(0x171))||[]),this[_0x3c8ee4(0x169)]({'isActive':!0x1});}[_0x196ccf(0x173)](){const _0x5824d2=_0x196ccf,_0x1952a3=this[_0x5824d2(0x176)][_0x5824d2(0x184)][_0x5824d2(0x16e)][_0x5824d2(0x17c)][_0x5824d2(0x17d)]();this[_0x5824d2(0x167)]=this[_0x5824d2(0x17a)](_0x1952a3);}[_0x196ccf(0x170)](){const _0x42aae6=_0x196ccf;this[_0x42aae6(0x181)]&&(this[_0x42aae6(0x16a)](_0x42aae6(0x16b)),this[_0x42aae6(0x181)]=void 0x0);const _0x4969a8=this[_0x42aae6(0x176)][_0x42aae6(0x184)][_0x42aae6(0x16e)][_0x42aae6(0x17c)][_0x42aae6(0x17d)]();_0x4969a8&&(_0x4969a8['is'](_0x42aae6(0x185),_0x42aae6(0x182))||_0x4969a8['is'](_0x42aae6(0x185),_0x42aae6(0x177)))&&(this[_0x42aae6(0x181)]=new _0x34eea4(this[_0x42aae6(0x176)],this[_0x42aae6(0x176)][_0x42aae6(0x17b)][_0x42aae6(0x186)](_0xd25a96),_0x4969a8),this[_0x42aae6(0x172)](_0x42aae6(0x16b))['to'](this[_0x42aae6(0x181)],_0x42aae6(0x16b)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2a0e6e=_0x4e77;function _0x27d0(){const _0x4f45cd=['uploadcareImageEdit','415132utmkDr','commands','pluginName','ImageUtils','8lkHjpB','2IcdgBN','14808AxIXUi','34746rAIgrN','6631889DnVMnX','init','3845390UVyhjI','isOfficialPlugin','1414AjRhcz','671304MoNuCR','369aWKRuH','uploadcareImageReplace','UploadcareImageEditEditing','requires','ImageEditing','isPremiumPlugin','add','5130530BNlAdc'];_0x27d0=function(){return _0x4f45cd;};return _0x27d0();}(function(_0x13e61b,_0xeb29b4){const _0x3f3c24=_0x4e77,_0x5412d8=_0x13e61b();while(!![]){try{const _0x35b14c=-parseInt(_0x3f3c24(0x1f3))/0x1*(-parseInt(_0x3f3c24(0x1f8))/0x2)+parseInt(_0x3f3c24(0x200))/0x3*(-parseInt(_0x3f3c24(0x1f7))/0x4)+parseInt(_0x3f3c24(0x1fd))/0x5+parseInt(_0x3f3c24(0x1fa))/0x6*(-parseInt(_0x3f3c24(0x1ff))/0x7)+parseInt(_0x3f3c24(0x1f9))/0x8*(-parseInt(_0x3f3c24(0x201))/0x9)+parseInt(_0x3f3c24(0x1f1))/0xa+parseInt(_0x3f3c24(0x1fb))/0xb;if(_0x35b14c===_0xeb29b4)break;else _0x5412d8['push'](_0x5412d8['shift']());}catch(_0xb5a46){_0x5412d8['push'](_0x5412d8['shift']());}}}(_0x27d0,0x942e9));import{Plugin as _0x1477c4}from'ckeditor5/src/core.js';import{Notification as _0x3a6954}from'ckeditor5/src/ui.js';import _0xd044ca from'./uploadcareimageeditcommand.js';import _0x4b12af from'./uploadcareimagereplacecommand.js';function _0x4e77(_0x477ad7,_0x6defc){const _0x27d040=_0x27d0();return _0x4e77=function(_0x4e7779,_0x5f1517){_0x4e7779=_0x4e7779-0x1ec;let _0x2c30b6=_0x27d040[_0x4e7779];return _0x2c30b6;},_0x4e77(_0x477ad7,_0x6defc);}import _0x25a543 from'../uploadcareediting.js';export default class m extends _0x1477c4{static get[_0x2a0e6e(0x1f5)](){const _0x2ce12d=_0x2a0e6e;return _0x2ce12d(0x1ec);}static get[_0x2a0e6e(0x1ed)](){const _0x39ef3d=_0x2a0e6e;return[_0x25a543,_0x3a6954,_0x39ef3d(0x1f6),_0x39ef3d(0x1ee)];}static get[_0x2a0e6e(0x1fe)](){return!0x0;}static get[_0x2a0e6e(0x1ef)](){return!0x0;}[_0x2a0e6e(0x1fc)](){const _0x15e66d=_0x2a0e6e,{editor:_0x3e3acc}=this;_0x3e3acc[_0x15e66d(0x1f4)][_0x15e66d(0x1f0)](_0x15e66d(0x1f2),new _0xd044ca(_0x3e3acc)),_0x3e3acc[_0x15e66d(0x1f4)][_0x15e66d(0x1f0)](_0x15e66d(0x202),new _0x4b12af(_0x3e3acc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1aea5b}from'ckeditor5/src/core.js';import{ButtonView as _0x30f7b4}from'ckeditor5/src/ui.js';import{createElement as _0x2d6489}from'ckeditor5/src/utils.js';import _0x103b2e from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x1aea5b{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x5a54b7=this['editor'];_0x5a54b7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f9790=>{const _0x495a32=_0x5a54b7['commands']['get']('uploadcareImageEdit'),_0x39fe16=new _0x30f7b4(_0x1f9790),t=_0x1f9790['t'];return _0x39fe16['set']({'icon':_0x103b2e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x39fe16['bind']('isEnabled')['to'](_0x495a32),_0x39fe16['bind']('isOn')['to'](_0x495a32,'isActive'),this['listenTo'](_0x39fe16,'execute',()=>{_0x5a54b7['execute']('uploadcareImageEdit'),_0x5a54b7['editing']['view']['focus']();}),_0x39fe16;}),this['_initConfig']();}['_initConfig'](){const _0x5142a5=_0x2d6489(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5142a5),this['listenTo'](this['editor'],'destroy',()=>{_0x5142a5['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d6f82=_0x22a8;function _0x3939(){const _0x2a3a12=['selection','isEnabled','464045HKxAHd','change','model','imageInline','1448940cwfUAC','srcset','element','432dyhOvj','document','154196VQRCvL','removeAttribute','9XawaZY','imageBlock','10930161HLWAMs','133581ewnIlQ','getSelectedElement','10DzNPsA','sizes','refresh','42EZBAJy','execute','editor','396021zzmUjo','setAttributes','937000Fwxtde'];_0x3939=function(){return _0x2a3a12;};return _0x3939();}(function(_0x17ab69,_0x31454c){const _0x316f3e=_0x22a8,_0x265dcd=_0x17ab69();while(!![]){try{const _0x47059c=parseInt(_0x316f3e(0x19b))/0x1+parseInt(_0x316f3e(0x1a2))/0x2*(parseInt(_0x316f3e(0x1a8))/0x3)+parseInt(_0x316f3e(0x1b1))/0x4+parseInt(_0x316f3e(0x1ad))/0x5*(-parseInt(_0x316f3e(0x1a5))/0x6)+-parseInt(_0x316f3e(0x1a0))/0x7*(-parseInt(_0x316f3e(0x1b4))/0x8)+parseInt(_0x316f3e(0x19d))/0x9*(parseInt(_0x316f3e(0x1aa))/0xa)+-parseInt(_0x316f3e(0x19f))/0xb;if(_0x47059c===_0x31454c)break;else _0x265dcd['push'](_0x265dcd['shift']());}catch(_0x4d4566){_0x265dcd['push'](_0x265dcd['shift']());}}}(_0x3939,0xa07b6));function _0x22a8(_0x6ba4dd,_0x2d4944){const _0x39396c=_0x3939();return _0x22a8=function(_0x22a804,_0x29374f){_0x22a804=_0x22a804-0x19a;let _0x3b87e0=_0x39396c[_0x22a804];return _0x3b87e0;},_0x22a8(_0x6ba4dd,_0x2d4944);}import{Command as _0xf9a98c}from'ckeditor5/src/core.js';export default class X extends _0xf9a98c{[_0x3d6f82(0x1a4)](){const _0x380d4e=_0x3d6f82,_0x3d4432=this[_0x380d4e(0x1a7)][_0x380d4e(0x1af)][_0x380d4e(0x19a)][_0x380d4e(0x1ab)][_0x380d4e(0x1a1)]();this[_0x380d4e(0x1ac)]=Boolean(_0x3d4432&&(_0x3d4432['is'](_0x380d4e(0x1b3),_0x380d4e(0x19e))||_0x3d4432['is'](_0x380d4e(0x1b3),_0x380d4e(0x1b0))));}[_0x3d6f82(0x1a6)](_0x36d45f){const _0x54acd7=_0x3d6f82,_0x179e47=this[_0x54acd7(0x1a7)][_0x54acd7(0x1af)][_0x54acd7(0x19a)][_0x54acd7(0x1ab)][_0x54acd7(0x1a1)]();this[_0x54acd7(0x1a7)][_0x54acd7(0x1af)][_0x54acd7(0x1ae)](_0x7c206a=>{const _0x13956f=_0x54acd7;_0x7c206a[_0x13956f(0x1a9)](_0x36d45f,_0x179e47),_0x7c206a[_0x13956f(0x19c)](_0x13956f(0x1b2),_0x179e47),_0x7c206a[_0x13956f(0x19c)](_0x13956f(0x1a3),_0x179e47);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x285b(){var _0x1dd5a5=['978036XpFECG','1bPwORY','1617955RInlQZ','4RwtkNr','8CfvWDH','99SOjgMx','1008798uESGXL','359506ijzJCV','UploadcareImageEdit','requires','isOfficialPlugin','570807urhPTI','pluginName','542350euqesM','isPremiumPlugin','1509732zbdUso'];_0x285b=function(){return _0x1dd5a5;};return _0x285b();}function _0xe9fb(_0x1f1f7e,_0x3f015c){var _0x285b90=_0x285b();return _0xe9fb=function(_0xe9fbcb,_0x485cc5){_0xe9fbcb=_0xe9fbcb-0xeb;var _0x43ebbe=_0x285b90[_0xe9fbcb];return _0x43ebbe;},_0xe9fb(_0x1f1f7e,_0x3f015c);}var _0x3f57fb=_0xe9fb;(function(_0x2149e8,_0x196624){var _0x27c22e=_0xe9fb,_0x17ba56=_0x2149e8();while(!![]){try{var _0x359380=-parseInt(_0x27c22e(0xf3))/0x1*(-parseInt(_0x27c22e(0xf9))/0x2)+parseInt(_0x27c22e(0xf2))/0x3+parseInt(_0x27c22e(0xf5))/0x4*(parseInt(_0x27c22e(0xf4))/0x5)+-parseInt(_0x27c22e(0xf1))/0x6+parseInt(_0x27c22e(0xf8))/0x7+-parseInt(_0x27c22e(0xf6))/0x8*(parseInt(_0x27c22e(0xed))/0x9)+parseInt(_0x27c22e(0xef))/0xa*(-parseInt(_0x27c22e(0xf7))/0xb);if(_0x359380===_0x196624)break;else _0x17ba56['push'](_0x17ba56['shift']());}catch(_0x46c79c){_0x17ba56['push'](_0x17ba56['shift']());}}}(_0x285b,0x29946));import{Plugin as _0x37a7cb}from'ckeditor5/src/core.js';import _0x1de8af from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x3454cf from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x37a7cb{static get[_0x3f57fb(0xee)](){var _0x24a89a=_0x3f57fb;return _0x24a89a(0xfa);}static get[_0x3f57fb(0xeb)](){return[_0x1de8af,_0x3454cf];}static get[_0x3f57fb(0xec)](){return!0x0;}static get[_0x3f57fb(0xf0)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43ed40=_0x38a9;(function(_0x6df745,_0x9c9d39){const _0x44ab6e=_0x38a9,_0x2b35d2=_0x6df745();while(!![]){try{const _0x1d4b3e=-parseInt(_0x44ab6e(0xa8))/0x1*(-parseInt(_0x44ab6e(0x97))/0x2)+-parseInt(_0x44ab6e(0x88))/0x3*(parseInt(_0x44ab6e(0x71))/0x4)+parseInt(_0x44ab6e(0xad))/0x5*(parseInt(_0x44ab6e(0xb1))/0x6)+-parseInt(_0x44ab6e(0x81))/0x7*(parseInt(_0x44ab6e(0x87))/0x8)+parseInt(_0x44ab6e(0xc4))/0x9*(parseInt(_0x44ab6e(0x75))/0xa)+-parseInt(_0x44ab6e(0xbc))/0xb*(-parseInt(_0x44ab6e(0x91))/0xc)+parseInt(_0x44ab6e(0xb9))/0xd*(-parseInt(_0x44ab6e(0x7d))/0xe);if(_0x1d4b3e===_0x9c9d39)break;else _0x2b35d2['push'](_0x2b35d2['shift']());}catch(_0x255e44){_0x2b35d2['push'](_0x2b35d2['shift']());}}}(_0x1c0d,0x1a44e));import{Plugin as _0x97c0f0,icons as _0x590e25}from'ckeditor5/src/core.js';import{ButtonView as _0x2f3aa7,MenuBarMenuListItemButtonView as _0x38a7db}from'ckeditor5/src/ui.js';import _0x1db23c from'../theme/icons/dropbox.svg';import _0x2cac07 from'../theme/icons/facebook.svg';import _0x20aff7 from'../theme/icons/google-drive.svg';import _0x19e4dc from'../theme/icons/google-photos.svg';function _0x1c0d(){const _0xf13250=['assetManager','Uploadcare','_createToolbarButton','text','115210bdHEBB','shortText','invalid','uploadcareLicenseKeyExpired','trialLimit','push','_showLicenseError','init','OneDrive','isImageSelected','UploadcareUI','uploadcare','licenseKey','bind','Replace','type','uploadcareLicenseKeyUsageLimit','1vgHPsz','editor','_normalizeConfigSourceList','uploadcareLicenseKeyNotAllowed','expired','109130vPuoWN','destroy','plugins','isPremiumPlugin','36yvRWBW','URL','evaluationLimit','get','_getIntegrationKey','isOfficialPlugin','withText','commands','246220CmYqAC','execute','has','22ejpONJ','isEnabled','uploadcareLicenseKeyTrialLimit','domainLimit','Local','_createDropdownButtons','imageUpload','ImageInsertUI','179757oTMJHq','featureNotAllowed','url','36dkjheS','_createMenuBarButtons','afterInit','usageLimit','20nsDYlh','GPhotos','forEach','registerIntegration','entries','uploadcareLicenseKeyEvaluationLimit','tooltip','Dropbox','56vYWTiO','reduce','uploadcare.uploader.sourceList','pluginName','7RWfKre','GDrive','Facebook','label','icon','locale','244176KEUVev','39987noQXPi','uploadcareLicenseKeyDomainLimit','upload','Insert','uploadcareLicenseKeyValid','map','uploadcareLicenseKeyInvalid','_licenseKeyCheckInterval','_createButton','632004HfpBYZ','config'];_0x1c0d=function(){return _0xf13250;};return _0x1c0d();}import _0xc3122f from'../theme/icons/link.svg';import _0x554a7f from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x1236a8}from'./uploadcareconfig.js';import{getTranslation as _0xc8002d}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x38a9(_0x44d07c,_0x5ab4d1){const _0x1c0d23=_0x1c0d();return _0x38a9=function(_0x38a9d4,_0x29a394){_0x38a9d4=_0x38a9d4-0x70;let _0x230776=_0x1c0d23[_0x38a9d4];return _0x230776;},_0x38a9(_0x44d07c,_0x5ab4d1);}export default class e extends _0x97c0f0{static get[_0x43ed40(0x80)](){const _0x2cc329=_0x43ed40;return _0x2cc329(0xa1);}static get[_0x43ed40(0xb6)](){return!0x0;}static get[_0x43ed40(0xb0)](){return!0x0;}[_0x43ed40(0x9e)](){const _0x49fc52=_0x43ed40;this[_0x49fc52(0xa3)]=this[_0x49fc52(0xa9)][_0x49fc52(0x92)][_0x49fc52(0xb4)](_0x49fc52(0xa3));const _0x4c074b=this[_0x49fc52(0xa9)];this[_0x49fc52(0x8f)]=setInterval(()=>{const _0xab3c8e=_0x49fc52;let _0x51c39d;for(const _0xe8810a in _0x4c074b){const _0xab8164=_0xe8810a,_0xf47ba5=_0x4c074b[_0xab8164];if(_0xab3c8e(0x8c)==_0xf47ba5||_0xab3c8e(0x8e)==_0xf47ba5||_0xab3c8e(0x9a)==_0xf47ba5||_0xab3c8e(0x89)==_0xf47ba5||_0xab3c8e(0xab)==_0xf47ba5||_0xab3c8e(0x7a)==_0xf47ba5||_0xab3c8e(0xbe)==_0xf47ba5||_0xab3c8e(0xa7)==_0xf47ba5){delete _0x4c074b[_0xab8164],_0x51c39d=_0xf47ba5,clearInterval(this[_0xab3c8e(0x8f)]),this[_0xab3c8e(0x8f)]=void 0x0;break;}}_0xab3c8e(0x8e)==_0x51c39d&&_0x4c074b[_0xab3c8e(0x9d)](_0xab3c8e(0x99)),_0xab3c8e(0x9a)==_0x51c39d&&_0x4c074b[_0xab3c8e(0x9d)](_0xab3c8e(0xac)),_0xab3c8e(0x89)==_0x51c39d&&_0x4c074b[_0xab3c8e(0x9d)](_0xab3c8e(0xbf)),_0xab3c8e(0xab)==_0x51c39d&&_0x4c074b[_0xab3c8e(0x9d)](_0xab3c8e(0xc5),_0xab3c8e(0x94)),_0xab3c8e(0x7a)==_0x51c39d&&_0x4c074b[_0xab3c8e(0x9d)](_0xab3c8e(0xb3)),_0xab3c8e(0xbe)==_0x51c39d&&_0x4c074b[_0xab3c8e(0x9d)](_0xab3c8e(0x9b)),_0xab3c8e(0xa7)==_0x51c39d&&_0x4c074b[_0xab3c8e(0x9d)](_0xab3c8e(0x74));},0x3e8);}[_0x43ed40(0x73)](){const _0x3674c5=_0x43ed40,{editor:_0x2d07ed}=this,_0x2cbc17=_0x2d07ed[_0x3674c5(0xb8)][_0x3674c5(0xb4)](_0x3674c5(0xa2));if(!_0x2cbc17)return;const _0x255165=this[_0x3674c5(0xaa)](_0x2d07ed[_0x3674c5(0x92)][_0x3674c5(0xb4)](_0x3674c5(0x7f)))[_0x3674c5(0x7e)]((_0x38d288,_0x17caf5)=>{const _0x1ffd37=_0x3674c5,_0x459d96=this[_0x1ffd37(0xb5)](_0x17caf5[_0x1ffd37(0xa6)]);return _0x38d288[_0x459d96]||(_0x38d288[_0x459d96]=[]),_0x38d288[_0x459d96][_0x1ffd37(0x9c)](_0x17caf5),_0x38d288;},{});_0x2d07ed[_0x3674c5(0xaf)][_0x3674c5(0xbb)](_0x3674c5(0xc3))&&_0x2d07ed[_0x3674c5(0xb8)][_0x3674c5(0xb4)](_0x3674c5(0xa2))&&Object[_0x3674c5(0x79)](_0x255165)[_0x3674c5(0x77)](([_0x50b474,_0x409526])=>{const _0x4bb8cd=_0x3674c5;_0x2d07ed[_0x4bb8cd(0xaf)][_0x4bb8cd(0xb4)](_0x4bb8cd(0xc3))[_0x4bb8cd(0x78)]({'name':_0x50b474,'observable':()=>_0x2cbc17,'buttonViewCreator':()=>this[_0x4bb8cd(0x95)](_0x409526),'formViewCreator':()=>this[_0x4bb8cd(0xc1)](_0x409526),'menuBarButtonViewCreator':()=>this[_0x4bb8cd(0x72)](_0x409526),'override':_0x4bb8cd(0x93)!==_0x50b474});});}[_0x43ed40(0xae)](){const _0x305905=_0x43ed40;super[_0x305905(0xae)](),this[_0x305905(0x8f)]&&clearInterval(this[_0x305905(0x8f)]);}[_0x43ed40(0xaa)](_0x2c9b88){const _0x31abb0=_0x43ed40,{locale:_0x281a7d}=this[_0x31abb0(0xa9)];return _0x2c9b88[_0x31abb0(0x8d)](_0x2b0483=>{const _0x4ea740=_0x31abb0,_0x3cab95=_0xc8002d(_0x281a7d,_0x2b0483,_0x4ea740(0x8b));switch(_0x2b0483){case _0x1236a8[_0x4ea740(0xc0)]:return{'icon':_0x590e25[_0x4ea740(0xc2)],'type':_0x1236a8[_0x4ea740(0xc0)],..._0x3cab95};case _0x1236a8[_0x4ea740(0xb2)]:return{'icon':_0xc3122f,'type':_0x1236a8[_0x4ea740(0xb2)],..._0x3cab95};case _0x1236a8[_0x4ea740(0x7c)]:return{'icon':_0x1db23c,'type':_0x1236a8[_0x4ea740(0x7c)],..._0x3cab95};case _0x1236a8[_0x4ea740(0x83)]:return{'icon':_0x2cac07,'type':_0x1236a8[_0x4ea740(0x83)],..._0x3cab95};case _0x1236a8[_0x4ea740(0x82)]:return{'icon':_0x20aff7,'type':_0x1236a8[_0x4ea740(0x82)],..._0x3cab95};case _0x1236a8[_0x4ea740(0x76)]:return{'icon':_0x19e4dc,'type':_0x1236a8[_0x4ea740(0x76)],..._0x3cab95};case _0x1236a8[_0x4ea740(0x9f)]:return{'icon':_0x554a7f,'type':_0x1236a8[_0x4ea740(0x9f)],..._0x3cab95};}});}[_0x43ed40(0xb5)](_0x572511){const _0x562b66=_0x43ed40;switch(_0x572511){case _0x1236a8[_0x562b66(0xc0)]:return _0x562b66(0x8a);case _0x1236a8[_0x562b66(0xb2)]:return _0x562b66(0x70);default:return _0x562b66(0x93);}}[_0x43ed40(0x90)](_0x43c25a,_0x1cb499){const _0x81461a=_0x43ed40,_0x44df19=this[_0x81461a(0xa9)],_0x2a2118=new _0x43c25a(_0x44df19[_0x81461a(0x86)]),_0x29732d=_0x44df19[_0x81461a(0xb8)][_0x81461a(0xb4)](_0x81461a(0xa2));return _0x2a2118[_0x81461a(0xa4)](_0x81461a(0xbd))['to'](_0x29732d),_0x2a2118['on'](_0x81461a(0xba),()=>{const _0x3f2635=_0x81461a;_0x29732d[_0x3f2635(0xba)](_0x1cb499);}),_0x2a2118;}[_0x43ed40(0x95)](_0x3163af){const _0x1c69c9=_0x43ed40,{locale:_0x1ac6b0}=this[_0x1c69c9(0xa9)],_0xa34648=this[_0x1c69c9(0xa9)][_0x1c69c9(0xaf)][_0x1c69c9(0xb4)](_0x1c69c9(0xc3)),_0x23535f=_0x3163af[0x0],_0x38cb99=this[_0x1c69c9(0x90)](_0x2f3aa7,_0x23535f[_0x1c69c9(0xa6)]);return _0x38cb99[_0x1c69c9(0x85)]=_0x23535f[_0x1c69c9(0x85)],_0x38cb99[_0x1c69c9(0xa4)](_0x1c69c9(0x84))['to'](_0xa34648,_0x1c69c9(0xa0),_0x4ac8e1=>_0xc8002d(_0x1ac6b0,_0x23535f[_0x1c69c9(0xa6)],_0x4ac8e1?_0x1c69c9(0xa5):_0x1c69c9(0x8b))[_0x1c69c9(0x96)]),_0x38cb99[_0x1c69c9(0x7b)]=!0x0,_0x38cb99;}[_0x43ed40(0xc1)](_0x1278ba){const _0x31ed51=_0x43ed40,{locale:_0x276c01}=this[_0x31ed51(0xa9)],_0x3b2fe3=this[_0x31ed51(0xa9)][_0x31ed51(0xaf)][_0x31ed51(0xb4)](_0x31ed51(0xc3));return _0x1278ba[_0x31ed51(0x8d)](_0x698f36=>{const _0x5acef0=_0x31ed51,_0x3b1dc0=this[_0x5acef0(0x90)](_0x2f3aa7,_0x698f36[_0x5acef0(0xa6)]);return _0x3b1dc0[_0x5acef0(0xb7)]=!0x0,_0x3b1dc0[_0x5acef0(0x85)]=_0x698f36[_0x5acef0(0x85)],_0x3b1dc0[_0x5acef0(0xa4)](_0x5acef0(0x84))['to'](_0x3b2fe3,_0x5acef0(0xa0),_0x19918=>_0xc8002d(_0x276c01,_0x698f36[_0x5acef0(0xa6)],_0x19918?_0x5acef0(0xa5):_0x5acef0(0x8b))[_0x5acef0(0x96)]),_0x3b1dc0;});}[_0x43ed40(0x72)](_0x1efdd6){const _0x131716=_0x43ed40;return _0x1efdd6[_0x131716(0x8d)](_0x57da39=>{const _0x30b67f=_0x131716,_0x3e9725=this[_0x30b67f(0x90)](_0x38a7db,_0x57da39[_0x30b67f(0xa6)]);return _0x3e9725[_0x30b67f(0x85)]=_0x57da39[_0x30b67f(0x85)],_0x3e9725[_0x30b67f(0x84)]=_0x57da39[_0x30b67f(0x98)],_0x3e9725;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2c25ae}from'ckeditor5/src/core.js';import{FileRepository as _0x40f43d}from'ckeditor5/src/upload.js';import _0x21e7a6 from'./uploadcareediting.js';import _0x501efd from'./utils/uploadutils.js';import{getImageUrls as _0x426cb4}from'./utils/editingutils.js';export default class f extends _0x2c25ae{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x40f43d,_0x21e7a6];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b8244=this['editor'];if(!!!_0x3b8244['config']['get']('uploadcare'))return;_0x3b8244['plugins']['get'](_0x40f43d)['createUploadAdapter']=_0xefab54=>new E(_0xefab54,_0x3b8244),_0x3b8244['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x19011f,{imageElement:_0x88a36c,data:_0x2cdb4a})=>{_0x3b8244['model']['change'](_0x35554b=>{_0x35554b['setAttribute']('uploadcareImageId',_0x2cdb4a['uploadcareImageId'],_0x88a36c);});});}}class E{constructor(_0x179ae6,_0x4a6f6a){this['loader']=_0x179ae6,this['editor']=_0x4a6f6a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xc56c9e=this['editor']['config']['get']('uploadcare.pubkey'),_0x48a215=await this['loader']['file'];return _0x501efd['upload']({'file':_0x48a215,'publicKey':_0xc56c9e,'signal':this['controller']['signal'],'onProgress':_0x144949=>{_0x144949&&_0x144949['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x144949['value']);}})['then'](async _0x114896=>{const {imageFallbackUrl:_0x593f81,imageSources:_0x5f2ccc}=_0x426cb4(_0x114896['cdnUrl'],_0x114896['imageInfo']['width']);return{'uploadcareImageId':_0x114896['uuid'],'default':_0x593f81,'sources':_0x5f2ccc};})['catch'](()=>{const _0x373c1c=t('Cannot\x20upload\x20file:')+('\x20'+_0x48a215['name']+'.');return Promise['reject'](_0x373c1c);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1980ef}from'../uploadcareconfig.js';export function getTranslation(_0x52cd50,_0x481aa5,_0x564a40){const t=_0x52cd50['t'],_0x261bee=_0x52cd50['t'];switch(_0x481aa5){case _0x1980ef['Local']:return{'text':_0x261bee('Insert'===_0x564a40?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x261bee('From\x20computer')};case _0x1980ef['URL']:return{'text':'Insert'===_0x564a40?_0x261bee('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x261bee('Via\x20URL')};case _0x1980ef['Dropbox']:return{'text':t('Insert'===_0x564a40?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1980ef['Facebook']:return{'text':t('Insert'===_0x564a40?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1980ef['GDrive']:return{'text':t('Insert'===_0x564a40?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1980ef['GPhotos']:return{'text':t('Insert'===_0x564a40?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1980ef['OneDrive']:return{'text':t('Insert'===_0x564a40?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x481aa5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x279b(_0x1ae327,_0xc4456d){var _0x46b6bf=_0x46b6();return _0x279b=function(_0x279ba8,_0x168b77){_0x279ba8=_0x279ba8-0xc6;var _0x24be12=_0x46b6bf[_0x279ba8];return _0x24be12;},_0x279b(_0x1ae327,_0xc4456d);}var _0x4fe899=_0x279b;(function(_0x297e46,_0x5a79df){var _0x4b13ff=_0x279b,_0xf17e1b=_0x297e46();while(!![]){try{var _0x3c023b=parseInt(_0x4b13ff(0xd0))/0x1+-parseInt(_0x4b13ff(0xce))/0x2*(parseInt(_0x4b13ff(0xcd))/0x3)+parseInt(_0x4b13ff(0xcf))/0x4+-parseInt(_0x4b13ff(0xc9))/0x5+-parseInt(_0x4b13ff(0xd1))/0x6+-parseInt(_0x4b13ff(0xca))/0x7+parseInt(_0x4b13ff(0xcb))/0x8;if(_0x3c023b===_0x5a79df)break;else _0xf17e1b['push'](_0xf17e1b['shift']());}catch(_0x211f6b){_0xf17e1b['push'](_0xf17e1b['shift']());}}}(_0x46b6,0x51227));import{FocusTracker as _0x3047b4}from'ckeditor5/src/utils.js';function _0x46b6(){var _0x1332eb=['forwardCycle','192kEsyPz','10552tpmzlD','1832492pxBmej','316562IEVpbs','917904YhAEDR','div','true','fire','createCollection','focusCycler','getFocusableElement','bindTemplate','focusTracker','2489870ZaTUNS','3039225ZkuLQX','7843512dOVYYc'];_0x46b6=function(){return _0x1332eb;};return _0x46b6();}import{View as _0x50d56b,FocusCycler as _0xe240a8}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x50d56b{constructor(_0x340e7a){var _0x265515=_0x279b;super(_0x340e7a),this[_0x265515(0xc8)]=new _0x3047b4(),this[_0x265515(0xd6)]=new _0xe240a8({'focusables':this[_0x265515(0xd5)](),'focusTracker':this[_0x265515(0xc8)]});}[_0x4fe899(0xc6)](){var _0x5ba41f=_0x4fe899;return{'tag':_0x5ba41f(0xd2),'attributes':{'aria-hidden':_0x5ba41f(0xd3),'tabindex':'0'},'on':{'focus':this[_0x5ba41f(0xc7)]['to'](()=>{var _0x5bff43=_0x5ba41f;this[_0x5bff43(0xd6)][_0x5bff43(0xd4)](_0x5bff43(0xcc));})}};}}
|