@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250613.0 → 0.0.0-nightly-20250615.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xef2c09=_0x48c9;function _0x48c9(_0x8e6322,_0x65f143){const _0x347db1=_0x347d();return _0x48c9=function(_0x48c944,_0x4d7157){_0x48c944=_0x48c944-0xe3;let _0x3a795b=_0x347db1[_0x48c944];return _0x3a795b;},_0x48c9(_0x8e6322,_0x65f143);}(function(_0x548993,_0x537610){const _0x208adb=_0x48c9,_0x3b1a87=_0x548993();while(!![]){try{const _0x7c98fd=-parseInt(_0x208adb(0x107))/0x1+-parseInt(_0x208adb(0xfd))/0x2*(-parseInt(_0x208adb(0x113))/0x3)+parseInt(_0x208adb(0x12b))/0x4*(parseInt(_0x208adb(0xf0))/0x5)+-parseInt(_0x208adb(0x11b))/0x6+-parseInt(_0x208adb(0x134))/0x7+parseInt(_0x208adb(0xf4))/0x8+parseInt(_0x208adb(0x118))/0x9;if(_0x7c98fd===_0x537610)break;else _0x3b1a87['push'](_0x3b1a87['shift']());}catch(_0x3610dd){_0x3b1a87['push'](_0x3b1a87['shift']());}}}(_0x347d,0x4f3d0));import{Plugin as _0x2ebcc1}from'ckeditor5/src/core.js';import{Dialog as _0x5b46a1}from'ckeditor5/src/ui.js';import{createElement as _0xb0c87b,global as _0x24c747,uid as _0x1817e6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5c53bc}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x520fb5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x46683f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2ebcc1{[_0xef2c09(0x130)]=null;[_0xef2c09(0x121)]=null;static get[_0xef2c09(0xec)](){const _0x4c9c33=_0xef2c09;return _0x4c9c33(0x12e);}static get[_0xef2c09(0xe3)](){const _0x2e8e8f=_0xef2c09;return[_0x2e8e8f(0x125),_0x520fb5,_0x5b46a1];}static get[_0xef2c09(0x12c)](){return!0x0;}static get[_0xef2c09(0x135)](){return!0x0;}get[_0xef2c09(0x10e)](){const _0x57df16=_0xef2c09;return this[_0x57df16(0x130)];}get[_0xef2c09(0x106)](){const _0x4b18f1=_0xef2c09;return this[_0x4b18f1(0x121)];}[_0xef2c09(0xfb)](){const _0x34b81e=_0xef2c09,_0x186586=this[_0x34b81e(0x10d)];_0x186586[_0x34b81e(0xf3)][_0x34b81e(0x12f)](_0x34b81e(0x102),new _0x5c53bc(_0x186586));}[_0xef2c09(0x117)](){const _0x1b4383=_0xef2c09;this[_0x1b4383(0xff)](),this[_0x1b4383(0x115)](),this[_0x1b4383(0xf5)](),this[_0x1b4383(0xf8)](),this[_0x1b4383(0x110)](),this[_0x1b4383(0x101)](this[_0x1b4383(0x10d)],_0x1b4383(0x126),()=>{const _0x48bd3a=_0x1b4383;this[_0x48bd3a(0x130)]&&(this[_0x48bd3a(0x130)][_0x48bd3a(0x10a)](),this[_0x48bd3a(0x130)]=null),this[_0x48bd3a(0x121)]&&(this[_0x48bd3a(0x121)][_0x48bd3a(0x10a)](),this[_0x48bd3a(0x121)]=null);const _0x5a89b6=_0x24c747[_0x48bd3a(0x123)][_0x48bd3a(0x105)](_0x48bd3a(0x12a));_0x5a89b6&&_0x5a89b6[_0x48bd3a(0x10a)]();}),async function(_0x105b24){const _0x845de4=_0x7b9856([0x36,0x64,0x76,0x75,0x43,0x70,0x39,0x4f,0x66,0x38,0x67,0x34,0x37,0x50,0x54,0x4c,0x65,0x74,0x41,0x6f,0x6d,0x4a,0x44,0x7a,0x58,0x47,0x69,0x72,0x61,0x71,0x62,0x6a,0x32,0x4b,0x6b,0x57,0x31,0x49,0x45,0x42,0x68,0x53,0x55,0x51,0x30,0x52,0x6e,0x48,0x35,0x33,0x56,0x77,0x78,0x73,0x6c,0x4d,0x4e,0x63,0x79,0x46,0x59,0x5a]),_0x2f9ebc=0x179b91bb,_0x56eddc=0x179cfb1b^_0x2f9ebc,_0x38c9c3=window[_0x7b9856([0x44,0x61,0x74,0x65])][_0x7b9856([0x6e,0x6f,0x77])](),_0x1de2aa=_0x105b24[_0x7b9856([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26c9f5=new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42eb21=>{_0x1de2aa[_0x7b9856([0x6f,0x6e,0x63,0x65])](_0x7b9856([0x72,0x65,0x61,0x64,0x79]),_0x42eb21);}),_0x22189d={[_0x7b9856([0x6b,0x74,0x79])]:_0x7b9856([0x45,0x43]),[_0x7b9856([0x75,0x73,0x65])]:_0x7b9856([0x73,0x69,0x67]),[_0x7b9856([0x63,0x72,0x76])]:_0x7b9856([0x50,0x2d,0x32,0x35,0x36]),[_0x7b9856([0x78])]:_0x7b9856([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]),[_0x7b9856([0x79])]:_0x7b9856([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]),[_0x7b9856([0x61,0x6c,0x67])]:_0x7b9856([0x45,0x53,0x32,0x35,0x36])},_0x1a7704=_0x1de2aa[_0x7b9856([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7b9856([0x67,0x65,0x74])](_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39f722(){let _0x5ac641,_0x19acdc=null,_0x39d467=null;try{if(_0x1a7704==_0x7b9856([0x47,0x50,0x4c]))return _0x7b9856([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ac641=_0x3e3670(),!_0x5ac641)return _0x7b9856([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ac641[_0x7b9856([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39d467=_0x2898dd(_0x5ac641[_0x7b9856([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ac641[_0x7b9856([0x6a,0x74,0x69])])),await _0x43ba0c()?_0x446cea()?_0x301450()?_0x7b9856([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5afc96()?(_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7b9856([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19acdc=_0x1467af(_0x7b9856([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7b9856([0x74,0x72,0x69,0x61,0x6c])&&(_0x19acdc=_0x1467af(_0x7b9856([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31d89d()):_0x7b9856([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7b9856([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7b9856([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7b9856([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x301450(){const _0x1ff2dc=[_0x7b9856([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7b9856([0x74,0x72,0x69,0x61,0x6c])][_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38c9c3/0x3e8:0xe10*_0x56eddc;return _0x5ac641[_0x7b9856([0x65,0x78,0x70])]<_0x1ff2dc;}function _0x446cea(){const _0x3e7b05=_0x5ac641[_0x7b9856([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e7b05&&(!!_0x3e7b05[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b9856([0x2a]))||!!_0x3e7b05[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b9856([0x55,0x50,0x4c,0x43])));}function _0x5afc96(){const _0x3130bc=_0x48c9,_0x2689ed=_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2689ed||0x0==_0x2689ed[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18dc5a}=new URL(window[_0x7b9856([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3130bc(0x103)]);if(_0x2689ed[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18dc5a))return!0x0;const _0x352e84=_0x18dc5a[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e]));return _0x2689ed[_0x7b9856([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2241f1=>_0x2241f1[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b9856([0x2a])))[_0x7b9856([0x6d,0x61,0x70])](_0x2bb2ae=>_0x2bb2ae[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e])))[_0x7b9856([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x177819=>_0x177819[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x352e84[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7b9856([0x6d,0x61,0x70])](_0x8d53f4=>Array(_0x352e84[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8d53f4[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7b9856([0x66,0x69,0x6c,0x6c])](_0x8d53f4[0x0]===_0x7b9856([0x2a])?_0x7b9856([0x2a]):'')[_0x7b9856([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8d53f4))[_0x7b9856([0x73,0x6f,0x6d,0x65])](_0x5f263e=>_0x352e84[_0x7b9856([0x65,0x76,0x65,0x72,0x79])]((_0x20d09a,_0x525ee7)=>_0x5f263e[_0x525ee7]===_0x20d09a||_0x5f263e[_0x525ee7]===_0x7b9856([0x2a])));}function _0x31d89d(){return _0x19acdc&&_0x39d467?new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4041c5,_0x45b759)=>{_0x19acdc[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x4041c5,_0x45b759),_0x39d467[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x12fc19=>{_0x12fc19!=_0x7b9856([0x56,0x61,0x6c,0x69,0x64])&&_0x4041c5(_0x12fc19);},_0x45b759);}):_0x19acdc||_0x39d467||_0x7b9856([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2898dd(_0x504d0f,_0x26c861){return new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b417b=>{if(_0x393646())return _0x4b417b(_0x7b9856([0x56,0x61,0x6c,0x69,0x64]));_0x173612(),_0x1de2aa[_0x7b9856([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7b9856([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x263280=!0x1;const _0x2173f8=_0x1817e6();function _0x9707f8(_0x57365f){return!!_0x57365f&&(typeof _0x57365f===_0x7b9856([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57365f===_0x7b9856([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57365f[_0x7b9856([0x74,0x68,0x65,0x6e])]===_0x7b9856([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57365f[_0x7b9856([0x63,0x61,0x74,0x63,0x68])]===_0x7b9856([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x103520(_0x5bac21){_0x39a238(_0x5bac21)[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x771819=>{if(!_0x771819||_0x771819[_0x7b9856([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7b9856([0x6f,0x6b]))return _0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40755c(_0x1521e2(_0x2173f8+_0x26c861))!=_0x771819[_0x7b9856([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7b9856([0x56,0x61,0x6c,0x69,0x64]);})[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x1e1871=>(_0x2cad97(),_0x1e1871),()=>{const _0xbd65e1=_0x2d2de7();return null==_0xbd65e1?(_0x2cad97(),_0x7b9856([0x56,0x61,0x6c,0x69,0x64])):_0x7b9856(_0x38c9c3-_0xbd65e1>(0x339715bb^_0x2f9ebc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x4b417b)[_0x7b9856([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b417b(_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3199f9=0x17ad7f3b^_0x2f9ebc;function _0x2cad97(){const _0x56cc5b=_0x7b9856([0x6c,0x6c,0x63,0x74,0x2d])+_0x40755c(_0x1521e2(_0x504d0f)),_0x4d07bb=_0x1924d6(_0x40755c(window[_0x7b9856([0x4d,0x61,0x74,0x68])][_0x7b9856([0x63,0x65,0x69,0x6c])](_0x38c9c3/_0x3199f9)));window[_0x7b9856([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7b9856([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56cc5b,_0x4d07bb);}function _0x2d2de7(){const _0x23fe9e=_0x7b9856([0x6c,0x6c,0x63,0x74,0x2d])+_0x40755c(_0x1521e2(_0x504d0f)),_0x23d208=window[_0x7b9856([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7b9856([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23fe9e);return _0x23d208?window[_0x7b9856([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1924d6(_0x23d208),0x10)*_0x3199f9:null;}function _0x39a238(_0x2fa2f){return new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58f591,_0x32ff98)=>{_0x2fa2f[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x58f591,_0x32ff98),window[_0x7b9856([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32ff98,0x179a457b^_0x2f9ebc);});}}_0x1de2aa[_0x7b9856([0x6f,0x6e])](_0x7b9856([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x262989,_0x39bbff)=>{if(_0x39bbff[0x0]!=_0x504d0f)return _0x4b417b(_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39bbff[0x1]={..._0x39bbff[0x1],[_0x7b9856([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2173f8};},{[_0x7b9856([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7b9856([0x68,0x69,0x67,0x68])}),_0x1de2aa[_0x7b9856([0x6f,0x6e])](_0x7b9856([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f6046=>{_0x9707f8(_0x4f6046[_0x7b9856([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x263280=!0x0,_0x103520(_0x4f6046[_0x7b9856([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7b9856([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7b9856([0x6c,0x6f,0x77])}),_0x26c9f5[_0x7b9856([0x74,0x68,0x65,0x6e])](()=>{_0x263280||_0x4b417b(_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x393646(){return _0x1de2aa[_0x7b9856([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7b9856([0x76,0x69,0x65,0x77])][_0x7b9856([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7b9856([0x61,0x75,0x74,0x6f]);}function _0x173612(){_0x1de2aa[_0x7b9856([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7b9856([0x76,0x69,0x65,0x77])][_0x7b9856([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7b9856([0x61,0x75,0x74,0x6f]);}}function _0x1467af(_0x4adda2){const _0x57d78e=[new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331ec3=>setTimeout(_0x331ec3,0x1792af77^_0x2f9ebc)),_0x26c9f5[_0x7b9856([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534683=>{let _0x3cd79b=0x0;_0x1de2aa[_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c])][_0x7b9856([0x6f,0x6e])](_0x7b9856([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ff4c6,_0xa7d4cc)=>{_0xa7d4cc[0x0][_0x7b9856([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cd79b++,_0x3cd79b==(0x179b9043^_0x2f9ebc)&&(_0x534683(),_0x2ff4c6[_0x7b9856([0x6f,0x66,0x66])]());});}))];return window[_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7b9856([0x72,0x61,0x63,0x65])](_0x57d78e)[_0x7b9856([0x74,0x68,0x65,0x6e])](()=>_0x4adda2);}async function _0x13fbdf(){await _0x26c9f5,_0x1de2aa[_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c])][_0x7b9856([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x499060,_0x1de2aa[_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c])][_0x7b9856([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x499060,_0x1de2aa[_0x7b9856([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c8e9b(_0x4b353d){const _0x374302=_0x2da990();_0x1de2aa[_0x374302]=_0x7b9856([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b353d,_0x4b353d!=_0x7b9856([0x56,0x61,0x6c,0x69,0x64])&&_0x13fbdf();}function _0x2da990(){const _0x2f94e7=window[_0x7b9856([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7b9856([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7b9856([0x6e,0x6f,0x77])]())[_0x7b9856([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7b9856([0x2e]),'');let _0x42b05b=_0x7b9856([0x64]);for(let _0x5197b0=0x0;_0x5197b0<_0x2f94e7[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5197b0+=0x2){let _0x151576=window[_0x7b9856([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f94e7[_0x7b9856([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5197b0,_0x5197b0+0x2));_0x151576>=_0x845de4[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x151576-=_0x845de4[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42b05b+=_0x845de4[_0x151576];}return _0x42b05b;}function _0x3e3670(){const _0x3a26ee=_0x1a7704[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e]));if(0x3!=_0x3a26ee[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x91d21d(_0x3a26ee[0x1]);function _0x91d21d(_0x305b7f){const _0x4475c3=_0x117e65(_0x305b7f);return _0x4475c3&&_0x5730a3()?_0x4475c3:null;function _0x5730a3(){const _0x54e49e=_0x4475c3[_0x7b9856([0x6a,0x74,0x69])],_0x5ccd32=window[_0x7b9856([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54e49e[_0x7b9856([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54e49e[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x71a857={..._0x4475c3,[_0x7b9856([0x6a,0x74,0x69])]:_0x54e49e[_0x7b9856([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54e49e[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x71a857[_0x7b9856([0x76,0x63])],_0x1521e2(_0x71a857)==_0x5ccd32;}}}async function _0x43ba0c(){let _0x54cb7b=!0x0;try{const _0x16e1f7=_0x1a7704[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e])),[_0x56dcad,_0x28f14d,_0x4fda7c]=_0x16e1f7;return _0x35d1d2(_0x56dcad),await _0x509529(_0x56dcad,_0x28f14d,_0x4fda7c),_0x54cb7b;}catch{return!0x1;}function _0x35d1d2(_0x26527b){const _0x1d9a72=_0x117e65(_0x26527b);_0x1d9a72&&_0x1d9a72[_0x7b9856([0x61,0x6c,0x67])]==_0x7b9856([0x45,0x53,0x32,0x35,0x36])||(_0x54cb7b=!0x1);}async function _0x509529(_0x55029a,_0x51a92e,_0x2a0f78){const _0x2d8c84=window[_0x7b9856([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7b9856([0x66,0x72,0x6f,0x6d])](_0xf3f85(_0x2a0f78),_0x2bb07c=>_0x2bb07c[_0x7b9856([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x814d60=new window[(_0x7b9856([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7b9856([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55029a+_0x7b9856([0x2e])+_0x51a92e),_0x526cac=window[_0x7b9856([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7b9856([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x526cac)return;const _0x21f537=await _0x526cac[_0x7b9856([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7b9856([0x6a,0x77,0x6b]),_0x22189d,{[_0x7b9856([0x6e,0x61,0x6d,0x65])]:_0x7b9856([0x45,0x43,0x44,0x53,0x41]),[_0x7b9856([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7b9856([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7b9856([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x526cac[_0x7b9856([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7b9856([0x6e,0x61,0x6d,0x65])]:_0x7b9856([0x45,0x43,0x44,0x53,0x41]),[_0x7b9856([0x68,0x61,0x73,0x68])]:{[_0x7b9856([0x6e,0x61,0x6d,0x65])]:_0x7b9856([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21f537,_0x2d8c84,_0x814d60)||(_0x54cb7b=!0x1);}}function _0x117e65(_0x4182d2){return _0x4182d2[_0x7b9856([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7b9856([0x65,0x79]))?JSON[_0x7b9856([0x70,0x61,0x72,0x73,0x65])](_0xf3f85(_0x4182d2)):null;}function _0xf3f85(_0x519f63){return window[_0x7b9856([0x61,0x74,0x6f,0x62])](_0x519f63[_0x7b9856([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7b9856([0x2b]))[_0x7b9856([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7b9856([0x2f])));}function _0x1521e2(_0x3d7b5c){let _0x5234f8=0x1505;function _0x481a56(_0x371dfe){for(let _0x1dcd26=0x0;_0x1dcd26<_0x371dfe[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dcd26++){const _0x116199=_0x371dfe[_0x7b9856([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1dcd26);_0x5234f8=(_0x5234f8<<0x5)+_0x5234f8+_0x116199,_0x5234f8&=_0x5234f8;}}function _0x2f0a40(_0x3d1c23){Array[_0x7b9856([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d1c23)?_0x3d1c23[_0x7b9856([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f0a40):_0x3d1c23&&typeof _0x3d1c23==_0x7b9856([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7b9856([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d1c23)[_0x7b9856([0x73,0x6f,0x72,0x74])]()[_0x7b9856([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1aaf16,_0x3c9a7c])=>{_0x481a56(_0x1aaf16),_0x2f0a40(_0x3c9a7c);}):_0x481a56(window[_0x7b9856([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d1c23));}return _0x2f0a40(_0x3d7b5c),_0x5234f8>>>0x0;}function _0x40755c(_0x33627e){return _0x33627e[_0x7b9856([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7b9856([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7b9856([0x30]));}function _0x1924d6(_0x48c342){return _0x48c342[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7b9856([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7b9856([0x6a,0x6f,0x69,0x6e])]('');}function _0x499060(){}function _0x7b9856(_0x2aee2f){const _0x46eb23=_0x48c9;return _0x2aee2f[_0x46eb23(0x119)](_0x503bec=>String[_0x46eb23(0x11a)](_0x503bec))[_0x46eb23(0x108)]('');}_0x2c8e9b(await _0x39f722());}(this);}[_0xef2c09(0xff)](){const _0x53e48f=_0xef2c09,_0x789757=this[_0x53e48f(0x10d)][_0x53e48f(0x109)][_0x53e48f(0xe8)];_0x789757[_0x53e48f(0x127)](_0x53e48f(0x10f))&&_0x789757[_0x53e48f(0x129)](_0x53e48f(0x10f),{'allowAttributes':[_0x53e48f(0x11f)]}),_0x789757[_0x53e48f(0x127)](_0x53e48f(0x10c))&&_0x789757[_0x53e48f(0x129)](_0x53e48f(0x10c),{'allowAttributes':[_0x53e48f(0x11f)]});}[_0xef2c09(0x115)](){const _0x46fa84=_0xef2c09,_0x1ac569=this[_0x46fa84(0x10d)];_0x1ac569[_0x46fa84(0x111)][_0x46fa84(0xf6)](_0x46fa84(0x114))[_0x46fa84(0xea)]({'model':_0x46fa84(0x11f),'view':_0x46fa84(0x11c)}),_0x1ac569[_0x46fa84(0x111)][_0x46fa84(0xf6)](_0x46fa84(0xf7))[_0x46fa84(0x12d)]({'model':{'key':_0x46fa84(0x11f),'value':_0x26b066=>_0x26b066[_0x46fa84(0xe9)](_0x46fa84(0x11c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x198451=_0x1ac569[_0x46fa84(0xf3)][_0x46fa84(0xf2)](_0x46fa84(0xee));_0x198451&&this[_0x46fa84(0x101)](_0x198451,_0x46fa84(0x11d),(_0x2617f7,[_0x283040,_0x8aaa54])=>{const _0x97939c=_0x46fa84;_0x283040[_0x97939c(0xe6)](_0x97939c(0x11f),_0x8aaa54);});}[_0xef2c09(0xf5)](){const _0x593e23=_0xef2c09,_0x1b37d7=this[_0x593e23(0x10d)][_0x593e23(0x132)][_0x593e23(0xf2)](_0x593e23(0x128))||{},_0x18f986=this[_0x593e23(0x10d)][_0x593e23(0x132)][_0x593e23(0xf2)](_0x593e23(0x100))||'';this[_0x593e23(0x130)]=_0xb0c87b(_0x24c747[_0x593e23(0x123)],_0x593e23(0xe4),{..._0x1b37d7,'pubkey':_0x18f986,'ctx-name':_0x593e23(0xed),'sourceList':'','imgOnly':_0x593e23(0xf1),'removeCopyright':_0x593e23(0xf1),'localeName':this[_0x593e23(0x10d)][_0x593e23(0xeb)][_0x593e23(0xfa)],'externalSourcesEmbedCss':_0x593e23(0x104)}),this[_0x593e23(0x130)][_0x593e23(0xe7)]=_0x5cb3c9=>{const _0x1353b0=_0x593e23;if(_0x1353b0(0x131)==_0x5cb3c9)return _0x1353b0(0x133);},_0x24c747[_0x593e23(0x123)][_0x593e23(0x122)][_0x593e23(0x116)](this[_0x593e23(0x130)]);}[_0xef2c09(0xf8)](){const _0x1a58cb=_0xef2c09;this[_0x1a58cb(0x121)]=_0xb0c87b(_0x24c747[_0x1a58cb(0x123)],_0x1a58cb(0x10b),{'ctx-name':_0x1a58cb(0xed)}),_0x24c747[_0x1a58cb(0x123)][_0x1a58cb(0x122)][_0x1a58cb(0x116)](this[_0x1a58cb(0x121)]);}[_0xef2c09(0x110)](){const _0x13eeaf=_0xef2c09,_0x4a5eda=this[_0x13eeaf(0x10d)][_0x13eeaf(0xf3)][_0x13eeaf(0xf2)](_0x13eeaf(0xf9));_0x4a5eda&&this[_0x13eeaf(0x101)](_0x4a5eda,_0x13eeaf(0xef),()=>{const _0x45b885=_0x13eeaf,_0x784601=this[_0x45b885(0x10d)][_0x45b885(0x109)][_0x45b885(0x123)][_0x45b885(0xfc)][_0x45b885(0x120)]();_0x784601&&_0x784601[_0x45b885(0xe9)](_0x45b885(0x11f))&&this[_0x45b885(0x10d)][_0x45b885(0xe5)][_0x45b885(0x11e)][_0x45b885(0x112)](_0x45b885(0xfe),()=>{const _0x5d5384=_0x45b885;_0x46683f(this[_0x5d5384(0x10d)],_0x784601);});});const _0x6a81ae=this[_0x13eeaf(0x10d)][_0x13eeaf(0xf3)][_0x13eeaf(0xf2)](_0x13eeaf(0x124));_0x6a81ae&&this[_0x13eeaf(0x101)](_0x6a81ae,_0x13eeaf(0xef),()=>{const _0x277f2d=_0x13eeaf,_0x1ffc01=this[_0x277f2d(0x10d)][_0x277f2d(0x109)][_0x277f2d(0x123)][_0x277f2d(0xfc)][_0x277f2d(0x120)]();_0x1ffc01&&_0x1ffc01[_0x277f2d(0xe9)](_0x277f2d(0x11f))&&this[_0x277f2d(0x10d)][_0x277f2d(0xe5)][_0x277f2d(0x11e)][_0x277f2d(0x112)](_0x277f2d(0xfe),()=>{const _0x227da5=_0x277f2d;_0x46683f(this[_0x227da5(0x10d)],_0x1ffc01);});});}}function _0x347d(){const _0xb58998=['attributeToAttribute','locale','pluginName','uploader','replaceImageSource','execute','895wziwmB','true','get','commands','842360QTUgdN','_initConfig','for','upcast','_initCtx','insertImage','contentLanguage','init','selection','52ZBoKKK','render','_initSchema','uploadcare.pubkey','listenTo','uploadcare','href','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','querySelector','ctxElement','426560CSIRHW','join','model','remove','uc-upload-ctx-provider','imageInline','editor','configElement','imageBlock','_initImageProcessingIndicator','conversion','once','31377CzKyMJ','downcast','_initConversion','appendChild','afterInit','8538813SDermx','map','fromCharCode','889950ckuMUh','data-uc-image-id','cleanupImage','view','uploadcareImageId','getSelectedElement','_ctxElement','body','document','uploadcareImageReplace','PictureEditing','destroy','isRegistered','uploadcare.uploader','extend','input[uploadcare-file-input]','404IZkuxq','isOfficialPlugin','elementToAttribute','UploadcareEditing','add','_configElement','closeMax','config','#uc-icon-arrow-down','3112340mPPvFC','isPremiumPlugin','requires','uc-config','editing','removeAttribute','iconHrefResolver','schema','getAttribute'];_0x347d=function(){return _0xb58998;};return _0x347d();}
|
|
23
|
+
const _0x4c3ba5=_0x5bb4;function _0x5d2a(){const _0xbbc54b=['href','pluginName','selection','_configElement','45xtpYpe','12913542uqGcWi','fromCharCode','_initConfig','isPremiumPlugin','_initSchema','removeAttribute','document','imageInline','querySelector','uploadcare.uploader','appendChild','isRegistered','attributeToAttribute','12456GzcQXA','uploadcareImageReplace','afterInit','map','closeMax','schema','downcast','isOfficialPlugin','ctxElement','_initImageProcessingIndicator','for','config','once','body','locale','destroy','elementToAttribute','extend','contentLanguage','2DgxKfX','iconHrefResolver','listenTo','_ctxElement','3004656HCkWSv','getAttribute','remove','359185SFjeEl','join','configElement','input[uploadcare-file-input]','replaceImageSource','conversion','uploader','getSelectedElement','1200882IhIkAb','uc-upload-ctx-provider','insertImage','upcast','get','uploadcareImageId','editing','requires','init','uc-config','\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','_initCtx','_initConversion','view','imageBlock','cleanupImage','data-uc-image-id','true','model','commands','uploadcare','1505686XDaFlV','add','3068094ojBcqo','render','editor','UploadcareEditing','execute','PictureEditing','#uc-icon-arrow-down','uploadcare.pubkey'];_0x5d2a=function(){return _0xbbc54b;};return _0x5d2a();}(function(_0x329185,_0x3795e2){const _0x303e26=_0x5bb4,_0x5c71a2=_0x329185();while(!![]){try{const _0x239e1c=parseInt(_0x303e26(0xd1))/0x1*(parseInt(_0x303e26(0xca))/0x2)+-parseInt(_0x303e26(0xd9))/0x3+-parseInt(_0x303e26(0xb7))/0x4*(parseInt(_0x303e26(0xa9))/0x5)+-parseInt(_0x303e26(0x9d))/0x6+-parseInt(_0x303e26(0x9b))/0x7+-parseInt(_0x303e26(0xce))/0x8+parseInt(_0x303e26(0xaa))/0x9;if(_0x239e1c===_0x3795e2)break;else _0x5c71a2['push'](_0x5c71a2['shift']());}catch(_0x3eedfa){_0x5c71a2['push'](_0x5c71a2['shift']());}}}(_0x5d2a,0x405fa));import{Plugin as _0x20311e}from'ckeditor5/src/core.js';import{Dialog as _0x248cd0}from'ckeditor5/src/ui.js';import{createElement as _0x1a6a1d,global as _0x5472f4,uid as _0x1d5226}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2c52ac}from'./uploadcarecommand.js';function _0x5bb4(_0x5d4f2c,_0x3ad184){const _0x5d2afc=_0x5d2a();return _0x5bb4=function(_0x5bb41a,_0x5b8e97){_0x5bb41a=_0x5bb41a-0x88;let _0x30c976=_0x5d2afc[_0x5bb41a];return _0x30c976;},_0x5bb4(_0x5d4f2c,_0x3ad184);}import{UploadcareUploadAdapter as _0x3ce7ad}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x29cfbd}from'./utils/editingutils.js';export class UploadcareEditing extends _0x20311e{[_0x4c3ba5(0xa8)]=null;[_0x4c3ba5(0xcd)]=null;static get[_0x4c3ba5(0xa6)](){const _0x349d4c=_0x4c3ba5;return _0x349d4c(0xa0);}static get[_0x4c3ba5(0x8d)](){const _0x1d30ce=_0x4c3ba5;return[_0x1d30ce(0xa2),_0x3ce7ad,_0x248cd0];}static get[_0x4c3ba5(0xbe)](){return!0x0;}static get[_0x4c3ba5(0xad)](){return!0x0;}get[_0x4c3ba5(0xd3)](){const _0x56ab10=_0x4c3ba5;return this[_0x56ab10(0xa8)];}get[_0x4c3ba5(0xbf)](){const _0x4aceb7=_0x4c3ba5;return this[_0x4aceb7(0xcd)];}[_0x4c3ba5(0x8e)](){const _0x4cdced=_0x4c3ba5,_0x52e868=this[_0x4cdced(0x9f)];_0x52e868[_0x4cdced(0x99)][_0x4cdced(0x9c)](_0x4cdced(0x9a),new _0x2c52ac(_0x52e868));}[_0x4c3ba5(0xb9)](){const _0x58be44=_0x4c3ba5;this[_0x58be44(0xae)](),this[_0x58be44(0x92)](),this[_0x58be44(0xac)](),this[_0x58be44(0x91)](),this[_0x58be44(0xc0)](),this[_0x58be44(0xcc)](this[_0x58be44(0x9f)],_0x58be44(0xc6),()=>{const _0x39ebb9=_0x58be44;this[_0x39ebb9(0xa8)]&&(this[_0x39ebb9(0xa8)][_0x39ebb9(0xd0)](),this[_0x39ebb9(0xa8)]=null),this[_0x39ebb9(0xcd)]&&(this[_0x39ebb9(0xcd)][_0x39ebb9(0xd0)](),this[_0x39ebb9(0xcd)]=null);const _0x2bc605=_0x5472f4[_0x39ebb9(0xb0)][_0x39ebb9(0xb2)](_0x39ebb9(0xd4));_0x2bc605&&_0x2bc605[_0x39ebb9(0xd0)]();}),async function(_0x3005d1){const _0x2b5b53=_0xd26c5e([0x56,0x5a,0x50,0x46,0x70,0x45,0x64,0x7a,0x65,0x71,0x4c,0x6d,0x36,0x37,0x74,0x6c,0x54,0x55,0x52,0x57,0x77,0x61,0x33,0x51,0x42,0x69,0x32,0x6b,0x31,0x53,0x68,0x4d,0x6a,0x43,0x79,0x48,0x35,0x47,0x4a,0x34,0x49,0x4e,0x39,0x58,0x4b,0x66,0x72,0x73,0x4f,0x38,0x78,0x41,0x76,0x67,0x75,0x59,0x30,0x63,0x62,0x44,0x6f,0x6e]),_0xfa859d=0x676da686,_0x5c3e0d=0x676acc56^_0xfa859d,_0x4547b7=window[_0xd26c5e([0x44,0x61,0x74,0x65])][_0xd26c5e([0x6e,0x6f,0x77])](),_0x4e9899=_0x3005d1[_0xd26c5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ca22f=new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x817ef0=>{_0x4e9899[_0xd26c5e([0x6f,0x6e,0x63,0x65])](_0xd26c5e([0x72,0x65,0x61,0x64,0x79]),_0x817ef0);}),_0x130f9b={[_0xd26c5e([0x6b,0x74,0x79])]:_0xd26c5e([0x45,0x43]),[_0xd26c5e([0x75,0x73,0x65])]:_0xd26c5e([0x73,0x69,0x67]),[_0xd26c5e([0x63,0x72,0x76])]:_0xd26c5e([0x50,0x2d,0x32,0x35,0x36]),[_0xd26c5e([0x78])]:_0xd26c5e([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]),[_0xd26c5e([0x79])]:_0xd26c5e([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]),[_0xd26c5e([0x61,0x6c,0x67])]:_0xd26c5e([0x45,0x53,0x32,0x35,0x36])},_0x13408e=_0x4e9899[_0xd26c5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd26c5e([0x67,0x65,0x74])](_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4112ec(){let _0x4af4d8,_0x25f9e8=null,_0x28e4e9=null;try{if(_0x13408e==_0xd26c5e([0x47,0x50,0x4c]))return _0xd26c5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4af4d8=_0x59f0d3(),!_0x4af4d8)return _0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4af4d8[_0xd26c5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28e4e9=_0x268aea(_0x4af4d8[_0xd26c5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4af4d8[_0xd26c5e([0x6a,0x74,0x69])])),await _0x36f997()?_0x2d352d()?_0x942e6a()?_0xd26c5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4aa13d()?(_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd26c5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25f9e8=_0x144b0d(_0xd26c5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd26c5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x25f9e8=_0x144b0d(_0xd26c5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bf481()):_0xd26c5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd26c5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x942e6a(){const _0x1c21a5=[_0xd26c5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd26c5e([0x74,0x72,0x69,0x61,0x6c])][_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4547b7/0x3e8:0xe10*_0x5c3e0d;return _0x4af4d8[_0xd26c5e([0x65,0x78,0x70])]<_0x1c21a5;}function _0x2d352d(){const _0xcba79=_0x4af4d8[_0xd26c5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xcba79&&(!!_0xcba79[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x2a]))||!!_0xcba79[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x55,0x50,0x4c,0x43])));}function _0x4aa13d(){const _0x21f0c9=_0x5bb4,_0x2f3ad4=_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f3ad4||0x0==_0x2f3ad4[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39d160}=new URL(window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21f0c9(0xa5)]);if(_0x2f3ad4[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d160))return!0x0;const _0xf1cae8=_0x39d160[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e]));return _0x2f3ad4[_0xd26c5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ca0f2=>_0x3ca0f2[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x2a])))[_0xd26c5e([0x6d,0x61,0x70])](_0x4adf53=>_0x4adf53[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e])))[_0xd26c5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5015f7=>_0x5015f7[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf1cae8[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd26c5e([0x6d,0x61,0x70])](_0x3f50a1=>Array(_0xf1cae8[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f50a1[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd26c5e([0x66,0x69,0x6c,0x6c])](_0x3f50a1[0x0]===_0xd26c5e([0x2a])?_0xd26c5e([0x2a]):'')[_0xd26c5e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f50a1))[_0xd26c5e([0x73,0x6f,0x6d,0x65])](_0x24e111=>_0xf1cae8[_0xd26c5e([0x65,0x76,0x65,0x72,0x79])]((_0x1320bf,_0x4b0bec)=>_0x24e111[_0x4b0bec]===_0x1320bf||_0x24e111[_0x4b0bec]===_0xd26c5e([0x2a])));}function _0x4bf481(){return _0x25f9e8&&_0x28e4e9?new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d6ab0,_0x26fc82)=>{_0x25f9e8[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x4d6ab0,_0x26fc82),_0x28e4e9[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x38c43a=>{_0x38c43a!=_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])&&_0x4d6ab0(_0x38c43a);},_0x26fc82);}):_0x25f9e8||_0x28e4e9||_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x268aea(_0x36c192,_0x1d36e9){return new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d3e7=>{if(_0x325888())return _0x29d3e7(_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]));_0x5edad2(),_0x4e9899[_0xd26c5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x117c65=!0x1;const _0x50abc6=_0x1d5226();function _0xbffb9e(_0x365176){return!!_0x365176&&(typeof _0x365176===_0xd26c5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x365176===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x365176[_0xd26c5e([0x74,0x68,0x65,0x6e])]===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x365176[_0xd26c5e([0x63,0x61,0x74,0x63,0x68])]===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a660e(_0x4dbbc5){_0x10bd95(_0x4dbbc5)[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x1195e0=>{if(!_0x1195e0||_0x1195e0[_0xd26c5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd26c5e([0x6f,0x6b]))return _0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xccb89c(_0x1c6f42(_0x50abc6+_0x1d36e9))!=_0x1195e0[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]);})[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x4be2f8=>(_0x35096e(),_0x4be2f8),()=>{const _0x131c47=_0x11e11c();return null==_0x131c47?(_0x35096e(),_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])):_0xd26c5e(_0x4547b7-_0x131c47>(0x43612286^_0xfa859d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x29d3e7)[_0xd26c5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fbe31=0x675b4806^_0xfa859d;function _0x35096e(){const _0x5410a9=_0xd26c5e([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb89c(_0x1c6f42(_0x36c192)),_0x4f012f=_0x3f374b(_0xccb89c(window[_0xd26c5e([0x4d,0x61,0x74,0x68])][_0xd26c5e([0x63,0x65,0x69,0x6c])](_0x4547b7/_0x1fbe31)));window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd26c5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5410a9,_0x4f012f);}function _0x11e11c(){const _0x5a7b8a=_0xd26c5e([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb89c(_0x1c6f42(_0x36c192)),_0x45548a=window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd26c5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a7b8a);return _0x45548a?window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f374b(_0x45548a),0x10)*_0x1fbe31:null;}function _0x10bd95(_0x171fc6){return new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11be01,_0x31b156)=>{_0x171fc6[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x11be01,_0x31b156),window[_0xd26c5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31b156,0x676c7246^_0xfa859d);});}}_0x4e9899[_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1933f1,_0x1082b8)=>{if(_0x1082b8[0x0]!=_0x36c192)return _0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1082b8[0x1]={..._0x1082b8[0x1],[_0xd26c5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50abc6};},{[_0xd26c5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd26c5e([0x68,0x69,0x67,0x68])}),_0x4e9899[_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc072=>{_0xbffb9e(_0x2fc072[_0xd26c5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x117c65=!0x0,_0x2a660e(_0x2fc072[_0xd26c5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd26c5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd26c5e([0x6c,0x6f,0x77])}),_0x4ca22f[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>{_0x117c65||_0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x325888(){return _0x4e9899[_0xd26c5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd26c5e([0x76,0x69,0x65,0x77])][_0xd26c5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd26c5e([0x61,0x75,0x74,0x6f]);}function _0x5edad2(){_0x4e9899[_0xd26c5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd26c5e([0x76,0x69,0x65,0x77])][_0xd26c5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd26c5e([0x61,0x75,0x74,0x6f]);}}function _0x144b0d(_0x39040b){const _0x25e223=[new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da6dc=>setTimeout(_0x4da6dc,0x6764984a^_0xfa859d)),_0x4ca22f[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23a06b=>{let _0x2142b4=0x0;_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x514876,_0x3120c3)=>{_0x3120c3[0x0][_0xd26c5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2142b4++,_0x2142b4==(0x676da77e^_0xfa859d)&&(_0x23a06b(),_0x514876[_0xd26c5e([0x6f,0x66,0x66])]());});}))];return window[_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd26c5e([0x72,0x61,0x63,0x65])](_0x25e223)[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>_0x39040b);}async function _0x450e70(){await _0x4ca22f,_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3e8a,_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3e8a,_0x4e9899[_0xd26c5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b684d(_0x25ab93){const _0x8ff9b2=_0x35df22();_0x4e9899[_0x8ff9b2]=_0xd26c5e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25ab93,_0x25ab93!=_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])&&_0x450e70();}function _0x35df22(){const _0x4f259b=window[_0xd26c5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd26c5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd26c5e([0x6e,0x6f,0x77])]())[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd26c5e([0x2e]),'');let _0x2e1de4=_0xd26c5e([0x56]);for(let _0x969512=0x0;_0x969512<_0x4f259b[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x969512+=0x2){let _0x2f5449=window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f259b[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x969512,_0x969512+0x2));_0x2f5449>=_0x2b5b53[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f5449-=_0x2b5b53[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1de4+=_0x2b5b53[_0x2f5449];}return _0x2e1de4;}function _0x59f0d3(){const _0x4974f9=_0x13408e[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e]));if(0x3!=_0x4974f9[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14459c(_0x4974f9[0x1]);function _0x14459c(_0x35e1df){const _0x357ce2=_0x1a8634(_0x35e1df);return _0x357ce2&&_0xd6e25a()?_0x357ce2:null;function _0xd6e25a(){const _0x23e97d=_0x357ce2[_0xd26c5e([0x6a,0x74,0x69])],_0x4c60a=window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23e97d[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23e97d[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47d603={..._0x357ce2,[_0xd26c5e([0x6a,0x74,0x69])]:_0x23e97d[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23e97d[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47d603[_0xd26c5e([0x76,0x63])],_0x1c6f42(_0x47d603)==_0x4c60a;}}}async function _0x36f997(){let _0x52331f=!0x0;try{const _0x568ab7=_0x13408e[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e])),[_0x3e3cb6,_0x2a38f7,_0x4a956a]=_0x568ab7;return _0x31b080(_0x3e3cb6),await _0x1ff3e1(_0x3e3cb6,_0x2a38f7,_0x4a956a),_0x52331f;}catch{return!0x1;}function _0x31b080(_0x2f54e0){const _0x15a221=_0x1a8634(_0x2f54e0);_0x15a221&&_0x15a221[_0xd26c5e([0x61,0x6c,0x67])]==_0xd26c5e([0x45,0x53,0x32,0x35,0x36])||(_0x52331f=!0x1);}async function _0x1ff3e1(_0x1d3a53,_0x43eab2,_0x1bf12e){const _0xc01157=window[_0xd26c5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd26c5e([0x66,0x72,0x6f,0x6d])](_0x4daf84(_0x1bf12e),_0x315aa5=>_0x315aa5[_0xd26c5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36fd89=new window[(_0xd26c5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd26c5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d3a53+_0xd26c5e([0x2e])+_0x43eab2),_0x2ae84e=window[_0xd26c5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd26c5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae84e)return;const _0x1c5649=await _0x2ae84e[_0xd26c5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd26c5e([0x6a,0x77,0x6b]),_0x130f9b,{[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x45,0x43,0x44,0x53,0x41]),[_0xd26c5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd26c5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae84e[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x45,0x43,0x44,0x53,0x41]),[_0xd26c5e([0x68,0x61,0x73,0x68])]:{[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c5649,_0xc01157,_0x36fd89)||(_0x52331f=!0x1);}}function _0x1a8634(_0x16d755){return _0x16d755[_0xd26c5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd26c5e([0x65,0x79]))?JSON[_0xd26c5e([0x70,0x61,0x72,0x73,0x65])](_0x4daf84(_0x16d755)):null;}function _0x4daf84(_0x5502a){return window[_0xd26c5e([0x61,0x74,0x6f,0x62])](_0x5502a[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd26c5e([0x2b]))[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd26c5e([0x2f])));}function _0x1c6f42(_0x4f9423){let _0x37295e=0x1505;function _0x4e1bf4(_0x45ae68){for(let _0xc135c8=0x0;_0xc135c8<_0x45ae68[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc135c8++){const _0x382d45=_0x45ae68[_0xd26c5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc135c8);_0x37295e=(_0x37295e<<0x5)+_0x37295e+_0x382d45,_0x37295e&=_0x37295e;}}function _0x5523d7(_0x589867){Array[_0xd26c5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x589867)?_0x589867[_0xd26c5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5523d7):_0x589867&&typeof _0x589867==_0xd26c5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd26c5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x589867)[_0xd26c5e([0x73,0x6f,0x72,0x74])]()[_0xd26c5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23669b,_0x4b842f])=>{_0x4e1bf4(_0x23669b),_0x5523d7(_0x4b842f);}):_0x4e1bf4(window[_0xd26c5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x589867));}return _0x5523d7(_0x4f9423),_0x37295e>>>0x0;}function _0xccb89c(_0xed263e){return _0xed263e[_0xd26c5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd26c5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd26c5e([0x30]));}function _0x3f374b(_0x1217cb){return _0x1217cb[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd26c5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd26c5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3e8a(){}function _0xd26c5e(_0x453067){const _0x1dc8d8=_0x5bb4;return _0x453067[_0x1dc8d8(0xba)](_0x3ee9aa=>String[_0x1dc8d8(0xab)](_0x3ee9aa))[_0x1dc8d8(0xd2)]('');}_0x5b684d(await _0x4112ec());}(this);}[_0x4c3ba5(0xae)](){const _0x16d00b=_0x4c3ba5,_0xfbaacb=this[_0x16d00b(0x9f)][_0x16d00b(0x98)][_0x16d00b(0xbc)];_0xfbaacb[_0x16d00b(0xb5)](_0x16d00b(0x94))&&_0xfbaacb[_0x16d00b(0xc8)](_0x16d00b(0x94),{'allowAttributes':[_0x16d00b(0x8b)]}),_0xfbaacb[_0x16d00b(0xb5)](_0x16d00b(0xb1))&&_0xfbaacb[_0x16d00b(0xc8)](_0x16d00b(0xb1),{'allowAttributes':[_0x16d00b(0x8b)]});}[_0x4c3ba5(0x92)](){const _0x4290da=_0x4c3ba5,_0x227799=this[_0x4290da(0x9f)];_0x227799[_0x4290da(0xd6)][_0x4290da(0xc1)](_0x4290da(0xbd))[_0x4290da(0xb6)]({'model':_0x4290da(0x8b),'view':_0x4290da(0x96)}),_0x227799[_0x4290da(0xd6)][_0x4290da(0xc1)](_0x4290da(0x89))[_0x4290da(0xc7)]({'model':{'key':_0x4290da(0x8b),'value':_0x3048db=>_0x3048db[_0x4290da(0xcf)](_0x4290da(0x96))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15f01b=_0x227799[_0x4290da(0x99)][_0x4290da(0x8a)](_0x4290da(0xd5));_0x15f01b&&this[_0x4290da(0xcc)](_0x15f01b,_0x4290da(0x95),(_0x148702,[_0x271967,_0x36d05f])=>{const _0x286618=_0x4290da;_0x271967[_0x286618(0xaf)](_0x286618(0x8b),_0x36d05f);});}[_0x4c3ba5(0xac)](){const _0x593a54=_0x4c3ba5,_0x576737=this[_0x593a54(0x9f)][_0x593a54(0xc2)][_0x593a54(0x8a)](_0x593a54(0xb3))||{},_0x123dc9=this[_0x593a54(0x9f)][_0x593a54(0xc2)][_0x593a54(0x8a)](_0x593a54(0xa4))||'';this[_0x593a54(0xa8)]=_0x1a6a1d(_0x5472f4[_0x593a54(0xb0)],_0x593a54(0x8f),{..._0x576737,'pubkey':_0x123dc9,'ctx-name':_0x593a54(0xd7),'sourceList':'','imgOnly':_0x593a54(0x97),'removeCopyright':_0x593a54(0x97),'localeName':this[_0x593a54(0x9f)][_0x593a54(0xc5)][_0x593a54(0xc9)],'externalSourcesEmbedCss':_0x593a54(0x90)}),this[_0x593a54(0xa8)][_0x593a54(0xcb)]=_0x4d9d9b=>{const _0x41f47e=_0x593a54;if(_0x41f47e(0xbb)==_0x4d9d9b)return _0x41f47e(0xa3);},_0x5472f4[_0x593a54(0xb0)][_0x593a54(0xc4)][_0x593a54(0xb4)](this[_0x593a54(0xa8)]);}[_0x4c3ba5(0x91)](){const _0xf915ca=_0x4c3ba5;this[_0xf915ca(0xcd)]=_0x1a6a1d(_0x5472f4[_0xf915ca(0xb0)],_0xf915ca(0xda),{'ctx-name':_0xf915ca(0xd7)}),_0x5472f4[_0xf915ca(0xb0)][_0xf915ca(0xc4)][_0xf915ca(0xb4)](this[_0xf915ca(0xcd)]);}[_0x4c3ba5(0xc0)](){const _0x414666=_0x4c3ba5,_0x5302c8=this[_0x414666(0x9f)][_0x414666(0x99)][_0x414666(0x8a)](_0x414666(0x88));_0x5302c8&&this[_0x414666(0xcc)](_0x5302c8,_0x414666(0xa1),()=>{const _0x45220c=_0x414666,_0x5ac779=this[_0x45220c(0x9f)][_0x45220c(0x98)][_0x45220c(0xb0)][_0x45220c(0xa7)][_0x45220c(0xd8)]();_0x5ac779&&_0x5ac779[_0x45220c(0xcf)](_0x45220c(0x8b))&&this[_0x45220c(0x9f)][_0x45220c(0x8c)][_0x45220c(0x93)][_0x45220c(0xc3)](_0x45220c(0x9e),()=>{const _0xab1d71=_0x45220c;_0x29cfbd(this[_0xab1d71(0x9f)],_0x5ac779);});});const _0x5ab5c2=this[_0x414666(0x9f)][_0x414666(0x99)][_0x414666(0x8a)](_0x414666(0xb8));_0x5ab5c2&&this[_0x414666(0xcc)](_0x5ab5c2,_0x414666(0xa1),()=>{const _0x57f531=_0x414666,_0x4ffe17=this[_0x57f531(0x9f)][_0x57f531(0x98)][_0x57f531(0xb0)][_0x57f531(0xa7)][_0x57f531(0xd8)]();_0x4ffe17&&_0x4ffe17[_0x57f531(0xcf)](_0x57f531(0x8b))&&this[_0x57f531(0x9f)][_0x57f531(0x8c)][_0x57f531(0x93)][_0x57f531(0xc3)](_0x57f531(0x9e),()=>{const _0x5b9d89=_0x57f531;_0x29cfbd(this[_0x5b9d89(0x9f)],_0x4ffe17);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x54105a,ObservableMixin as _0x53e2f4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5f45e6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2c7210}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x56f174}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x43309c}from'../../utils/uploadutils.js';import{getImageUrls as _0x139161,getImageDimension as _0x4a122c}from'../../utils/editingutils.js';import{isAncestor as _0x1a6861}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x53e2f4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4105eb,_0x425c7f,_0xba419e){super(),this['_editor']=_0x4105eb,this['_dialog']=_0x425c7f,this['_imageElement']=_0xba419e,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 _0x196025=this['_imageElement'],_0x445765=_0x196025['getAttribute']('uploadcareImageId'),_0xef86ba=_0x196025['getAttribute']('src');if(_0x445765)await this['_loadImageInfo'](_0x445765,_0xef86ba);else{if(this['_imageCache']['has'](_0xef86ba)){const _0x23fee7=this['_imageCache']['get'](_0xef86ba);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23fee7['url'],this['imageDimension']=_0x23fee7['dimension'],this['imageId']=_0x23fee7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4fa2ac}=this['_editor'],t=_0x4fa2ac['t'],_0x2a28fa=new _0x56f174(_0x4fa2ac,this['imageStatus'],this['_attributes']);_0x2a28fa['bind']('status')['to'](this,'imageStatus'),_0x2a28fa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a28fa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a28fa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a28fa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2c7210,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a28fa,'position':_0x5f45e6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a28fa['focus']();},'onHide':()=>{_0x2a28fa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14dde2=>!_0x1a6861(_0x14dde2,_0x2a28fa['element'])}});}['_loadImageInfo'](_0x45f7b1,_0x499c0e){return _0x43309c['getInfo'](_0x45f7b1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2c58ee=>{const {width:_0x33dcd3,height:_0x5a4714}=_0x2c58ee['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x499c0e,this['imageDimension']={'width':_0x33dcd3,'height':_0x5a4714},this['imageId']=_0x45f7b1;})['catch'](_0xd188a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd188a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x359b6e,_0xd7d1d7){return this['_getImageAsFile'](_0x359b6e)['then'](_0x460aa1=>_0x43309c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd7d1d7['signal'],'file':_0x460aa1,'onProgress':_0x4b45f0=>{_0x4b45f0&&_0x4b45f0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4b45f0['value']));}}))['then'](_0x1ad05b=>{const {width:_0x6ae500,height:_0x21b480}=_0x1ad05b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ad05b['cdnUrl'],this['imageDimension']={'width':_0x6ae500,'height':_0x21b480},this['imageId']=_0x1ad05b['uuid'],this['imageUploadProgress']=null;const _0xf6fdc4=_0x359b6e['getAttribute']('src');this['_imageCache']['set'](_0xf6fdc4,{'id':_0x1ad05b['uuid'],'url':_0x1ad05b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x283005=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x283005['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x91c855,_0x37c83a){_0x91c855['on']('apply',(_0x449818,_0x3d1771)=>{this['_replaceImage'](_0x37c83a,_0x3d1771['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x91c855['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x91c855['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x230d53,_0x5ac29e,_0x450e09){const _0x977f85=this['_editor'],{width:_0x3f8004,height:_0x11200e}=_0x4a122c(_0x5ac29e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3c6158,imageSources:_0x44022c}=_0x139161(_0x5ac29e,_0x3f8004);_0x977f85['model']['change'](_0x1015f2=>{if('$graveyard'===_0x230d53['root']['rootName']){_0x977f85['execute']('insertImage',{'imageType':_0x230d53['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x230d53['getAttributes']()),'uploadcareImageId':_0x450e09,'src':_0x3c6158,'sources':_0x44022c,'width':_0x3f8004,'height':_0x11200e}});const _0x23fe37=_0x230d53['getChildren']();_0x230d53=_0x977f85['model']['document']['selection']['getSelectedElement']();for(const _0x35d62b of _0x23fe37)_0x1015f2['append'](_0x1015f2['cloneElement'](_0x35d62b),_0x230d53);}else _0x1015f2['setSelection'](_0x230d53,'on'),_0x977f85['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x230d53['getAttributes']()),'uploadcareImageId':_0x450e09,'src':_0x3c6158,'sources':_0x44022c,'width':_0x3f8004,'height':_0x11200e},_0x230d53);_0x1015f2['setSelection'](_0x230d53,'on');});}async['_getImageAsFile'](_0x89a3bd){const _0x353970=_0x54105a['window'],_0x300116=_0x54105a['document']['location']['href'],_0x4cfdf9=new _0x353970['URL'](_0x89a3bd['getAttribute']('src'),_0x300116);if('data:'===_0x4cfdf9['protocol']){const _0x1ca647=_0x4cfdf9['href']['split'](','),_0x2bab78=_0x1ca647[0x0]['match'](/:(.*?);/)[0x1],_0x349d5c=_0x2bab78['split']('/')[0x1],_0x44808b=_0x353970['atob'](_0x1ca647[_0x1ca647['length']-0x1]);let _0x28a46c=_0x44808b['length'];const _0x17894c=new _0x353970['Uint8Array'](_0x28a46c);for(;_0x28a46c--;)_0x17894c[_0x28a46c]=_0x44808b['charCodeAt'](_0x28a46c);return new _0x353970['File']([_0x17894c],'image.'+_0x349d5c,{'type':_0x2bab78});}const _0x272bcf=_0x4cfdf9['href']['split']('/'),_0x2a7397=_0x272bcf[_0x272bcf['length']-0x1],_0x4b7e33=_0x2a7397['split']('.')[0x1];return _0x353970['fetch'](_0x4cfdf9['href'])['then'](_0x5d5921=>_0x5d5921['clone']()['blob']())['then'](_0x3584f8=>new _0x353970['File']([_0x3584f8],_0x2a7397,{'type':'image/'+_0x4b7e33}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4ca913,_0x2855ec){const _0x2a9646=_0x2ee9,_0x4185c1=_0x4ca913();while(!![]){try{const _0xe6c91c=-parseInt(_0x2a9646(0x86))/0x1+-parseInt(_0x2a9646(0x88))/0x2+-parseInt(_0x2a9646(0x91))/0x3+-parseInt(_0x2a9646(0x8b))/0x4*(-parseInt(_0x2a9646(0x87))/0x5)+-parseInt(_0x2a9646(0x90))/0x6+parseInt(_0x2a9646(0x89))/0x7*(parseInt(_0x2a9646(0x8a))/0x8)+parseInt(_0x2a9646(0x82))/0x9;if(_0xe6c91c===_0x2855ec)break;else _0x4185c1['push'](_0x4185c1['shift']());}catch(_0x5301a1){_0x4185c1['push'](_0x4185c1['shift']());}}}(_0x5b6f,0x70092));import{View as _0x5470aa}from'ckeditor5/src/ui.js';function _0x2ee9(_0x2f16a4,_0x40de80){const _0x5b6f67=_0x5b6f();return _0x2ee9=function(_0x2ee934,_0x906cfe){_0x2ee934=_0x2ee934-0x82;let _0x3c04d9=_0x5b6f67[_0x2ee934];return _0x3c04d9;},_0x2ee9(_0x2f16a4,_0x40de80);}function _0x5b6f(){const _0x4b149b=['9145593YNnqjD','image-edit','uc-cloud-image-editor','setTemplate','340434UaSzCz','177585BCyIFi','2990hoWUHI','3376814UKVvad','8TNaNAg','32QtmzVE','imageSrc','ck-uploadcare-theme','uc-light','set','4598088LwazGT','646620pDrOWl','bindTemplate'];_0x5b6f=function(){return _0x4b149b;};return _0x5b6f();}export class UploadcareImageEditFormEditingView extends _0x5470aa{constructor(_0x19e85e,_0x4d528b){const _0x5c1507=_0x2ee9;super(_0x19e85e);const _0x286daf=this[_0x5c1507(0x92)];this[_0x5c1507(0x8f)](_0x5c1507(0x8c),''),this[_0x5c1507(0x85)]({'tag':_0x5c1507(0x84),'attributes':{..._0x4d528b,'class':[_0x5c1507(0x8e),_0x5c1507(0x8d)],'ctx-name':_0x5c1507(0x83),'cdn-url':_0x286daf['to'](_0x5c1507(0x8c))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2fbe97}from'ckeditor5/src/icons.js';import{ButtonView as _0x578a6a,IconView as _0x26b822,View as _0x3adfc5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3adfc5{constructor(_0x464065){super(_0x464065);const t=_0x464065['t'];this['set']('errorType',null);const _0x5c9a48=new _0x578a6a(_0x464065);_0x5c9a48['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c9a48['withText']=!0x0,_0x5c9a48['class']='ck-button-action',_0x5c9a48['on']('execute',()=>{this['fire']('retry');}),_0x5c9a48['bind']('isVisible')['to'](this,'errorType',_0x54f0db=>'NotFound'!==_0x54f0db);const _0x2dcb45=new _0x26b822();_0x2dcb45['content']=_0x2fbe97,_0x2dcb45['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5bd22c=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':[_0x2dcb45,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5bd22c['to']('errorType',_0x41b949=>t('NotFound'!==_0x41b949?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c9a48]},{'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 _0x3e5d86,View as _0x5f112b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5f112b{constructor(_0x428169){super(_0x428169);const t=_0x428169['t'],_0x4f98d3=this['bindTemplate'],_0x48102e=new _0x3e5d86();_0x48102e['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':[_0x48102e,{'text':_0x4f98d3['to']('imageUploadProgress',_0x1c32e5=>t('Loading\x20image...')+'\x20('+(_0x1c32e5||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55c5db=_0x258e;(function(_0x4897bc,_0x47ed24){const _0x2513da=_0x258e,_0x446873=_0x4897bc();while(!![]){try{const _0x5915cd=parseInt(_0x2513da(0x1d3))/0x1+-parseInt(_0x2513da(0x1c1))/0x2+-parseInt(_0x2513da(0x1e4))/0x3*(parseInt(_0x2513da(0x1cb))/0x4)+parseInt(_0x2513da(0x1d5))/0x5*(-parseInt(_0x2513da(0x1ed))/0x6)+parseInt(_0x2513da(0x1ce))/0x7*(-parseInt(_0x2513da(0x1ec))/0x8)+-parseInt(_0x2513da(0x1c5))/0x9*(parseInt(_0x2513da(0x1d0))/0xa)+-parseInt(_0x2513da(0x1e3))/0xb*(-parseInt(_0x2513da(0x1cc))/0xc);if(_0x5915cd===_0x47ed24)break;else _0x446873['push'](_0x446873['shift']());}catch(_0xdbb733){_0x446873['push'](_0x446873['shift']());}}}(_0x2c3b,0xd7888));import{View as _0x4eb068}from'ckeditor5/src/ui.js';function _0x258e(_0x109f3a,_0x4f4458){const _0x2c3b51=_0x2c3b();return _0x258e=function(_0x258e47,_0x4d9c16){_0x258e47=_0x258e47-0x1b7;let _0x36a836=_0x2c3b51[_0x258e47];return _0x36a836;},_0x258e(_0x109f3a,_0x4f4458);}import{UploadcareImageEditFormLoadingView as _0x49b5fc}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x28de98}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x52e627}from'./uploadcareimageeditformeditingview.js';function _0x2c3b(){const _0x35b232=['focus','detail','238839ijhZRq','_focusableView','6998545dTQJbL','_errorView','element','uploading','change:status','addedNodes','render','apply','_addErrorViewListeners','target','ck-reset_all-excluded','disconnect','_editingView','retry','2266ANyTKo','62403WwAMet','querySelector','fire','clear','status','add','cdnUrl','createCollection','23744KPMzxu','6iiWHRR','set','ready','once','ck-uploadcare-form','nodeName','div','cancel','getFocusableElement','filter','_loadingView','addMany','addEventListener','1092582hGJnCx','setTemplate','observe','toLowerCase','242613DMNSyF','error','_items','_addUploadcareImageEditorListeners','length','_setView','308GngngC','348456ZhjSkP','uc-cloud-image-editor','3332BAGqzM','_waitForImageEditorComponent','140IzeXkq'];_0x2c3b=function(){return _0x35b232;};return _0x2c3b();}import{DialogFocusManagerView as _0x449300}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x449300{[_0x55c5db(0x1c7)];[_0x55c5db(0x1be)];[_0x55c5db(0x1d6)];[_0x55c5db(0x1e1)];[_0x55c5db(0x1d4)];constructor(_0x835744,_0x149a90,_0x416576){const _0xbed7c5=_0x55c5db;super(_0x835744),this[_0xbed7c5(0x1c7)]=this[_0xbed7c5(0x1eb)](),this[_0xbed7c5(0x1be)]=new _0x49b5fc(_0x835744),this[_0xbed7c5(0x1d6)]=new _0x28de98(_0x835744),this[_0xbed7c5(0x1e1)]=new _0x52e627(_0x835744,_0x416576),this[_0xbed7c5(0x1d4)]=new _0x4eb068(_0x835744),this[_0xbed7c5(0x1d4)][_0xbed7c5(0x1c2)](this[_0xbed7c5(0x1bc)]()),this[_0xbed7c5(0x1ee)](_0xbed7c5(0x1e8),_0x149a90),this[_0xbed7c5(0x1c2)]({'tag':_0xbed7c5(0x1ba),'attributes':{'class':['ck',_0xbed7c5(0x1df),_0xbed7c5(0x1b8)],'tabindex':'-1'},'children':this[_0xbed7c5(0x1c7)]}),this[_0xbed7c5(0x1ca)](),this[_0xbed7c5(0x1b7)](_0xbed7c5(0x1db),()=>{const _0x20aa85=_0xbed7c5;this[_0x20aa85(0x1cf)](this[_0x20aa85(0x1d7)],_0x5dc0f0=>{const _0x1e8e22=_0x20aa85;this[_0x1e8e22(0x1c8)](_0x5dc0f0);});}),this['on'](_0xbed7c5(0x1d9),()=>{const _0x2231c8=_0xbed7c5;this[_0x2231c8(0x1ca)]();}),this[_0xbed7c5(0x1dd)]();}[_0x55c5db(0x1d1)](){const _0x208ac4=_0x55c5db;this[_0x208ac4(0x1d7)][_0x208ac4(0x1d1)]();}[_0x55c5db(0x1ca)](){const _0x1388d3=_0x55c5db;switch(this[_0x1388d3(0x1c7)][_0x1388d3(0x1e7)](),this[_0x1388d3(0x1e8)]){case _0x1388d3(0x1d8):this[_0x1388d3(0x1c7)][_0x1388d3(0x1e9)](this[_0x1388d3(0x1be)]);break;case _0x1388d3(0x1c6):this[_0x1388d3(0x1c7)][_0x1388d3(0x1e9)](this[_0x1388d3(0x1d6)]);break;case _0x1388d3(0x1ef):this[_0x1388d3(0x1c7)][_0x1388d3(0x1bf)]([this[_0x1388d3(0x1e1)],this[_0x1388d3(0x1d4)]]);}}[_0x55c5db(0x1cf)](_0x207563,_0x3f4a8b){const _0x138a94=_0x55c5db,_0x133511=_0x138a94(0x1cd),_0x4bf760=_0x207563[_0x138a94(0x1e5)](_0x133511);if(_0x4bf760)return _0x3f4a8b(_0x4bf760);const _0x1eda2c=new MutationObserver(_0x317075=>{const _0x42b4e6=_0x138a94,_0x447847=_0x317075[_0x42b4e6(0x1bd)](_0x20c0c8=>_0x20c0c8[_0x42b4e6(0x1de)]===_0x207563&&_0x20c0c8[_0x42b4e6(0x1da)][_0x42b4e6(0x1c9)]>0x0&&_0x20c0c8[_0x42b4e6(0x1da)][0x0][_0x42b4e6(0x1b9)][_0x42b4e6(0x1c4)]()===_0x133511);_0x447847[_0x42b4e6(0x1c9)]&&(_0x1eda2c[_0x42b4e6(0x1e0)](),_0x3f4a8b(_0x447847[0x0][_0x42b4e6(0x1da)][0x0]));});_0x1eda2c[_0x138a94(0x1c3)](_0x207563,{'childList':!0x0,'subtree':!0x0});}[_0x55c5db(0x1c8)](_0x10bdb7){const _0xd671ab=_0x55c5db;_0x10bdb7[_0xd671ab(0x1c0)](_0xd671ab(0x1dc),_0x1a0567=>{const _0x412eff=_0xd671ab;this[_0x412eff(0x1e6)](_0x412eff(0x1dc),{'imageSrc':_0x1a0567[_0x412eff(0x1d2)][_0x412eff(0x1ea)]});}),_0x10bdb7[_0xd671ab(0x1c0)](_0xd671ab(0x1bb),()=>{const _0x1be9c0=_0xd671ab;this[_0x1be9c0(0x1e6)](_0x1be9c0(0x1bb));});}[_0x55c5db(0x1dd)](){const _0x17870f=_0x55c5db;this[_0x17870f(0x1d6)]['on'](_0x17870f(0x1e2),()=>{const _0x3dc21e=_0x17870f;this[_0x3dc21e(0x1e6)](_0x3dc21e(0x1e2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5509c5=_0x2fbe;(function(_0x48fd26,_0x5ab720){const _0x12ec60=_0x2fbe,_0x5396a5=_0x48fd26();while(!![]){try{const _0x296a92=-parseInt(_0x12ec60(0x1f1))/0x1*(-parseInt(_0x12ec60(0x1de))/0x2)+parseInt(_0x12ec60(0x1d4))/0x3*(-parseInt(_0x12ec60(0x1dc))/0x4)+parseInt(_0x12ec60(0x1f3))/0x5*(parseInt(_0x12ec60(0x1f4))/0x6)+parseInt(_0x12ec60(0x1ec))/0x7+parseInt(_0x12ec60(0x1eb))/0x8*(-parseInt(_0x12ec60(0x1e0))/0x9)+parseInt(_0x12ec60(0x1ee))/0xa+parseInt(_0x12ec60(0x1d7))/0xb*(-parseInt(_0x12ec60(0x1dd))/0xc);if(_0x296a92===_0x5ab720)break;else _0x5396a5['push'](_0x5396a5['shift']());}catch(_0x4cbdff){_0x5396a5['push'](_0x5396a5['shift']());}}}(_0x505b,0xcfefd));import{Command as _0xdbbf5c}from'ckeditor5/src/core.js';import{Dialog as _0x4ae999}from'ckeditor5/src/ui.js';function _0x2fbe(_0x2457ea,_0x3e2892){const _0x505bb6=_0x505b();return _0x2fbe=function(_0x2fbed6,_0x21b043){_0x2fbed6=_0x2fbed6-0x1d4;let _0x407903=_0x505bb6[_0x2fbed6];return _0x407903;},_0x2fbe(_0x2457ea,_0x3e2892);}import{UploadcareImageEditController as _0x3bd651}from'./ui/uploadcareimageeditcontroller.js';function _0x505b(){const _0x40b3ac=['isEnabled','2664GyUWha','plugins','uploadcare.allowExternalImagesEditing','editor','imageEditController','imageInline','element','model','imageBlock','_isEditable','config','35576iAVYnQ','4917542PGktZC','execute','9837080hBIAgh','unbind','isActive','298363lcJtTL','requires','85nqnfGi','379878hgwYCx','selection','12861MPBEve','getSelectedElement','bind','9302920ilwAjB','document','get','refresh','set','44SGBamL','12metFyz','2gkRQQn'];_0x505b=function(){return _0x40b3ac;};return _0x505b();}import{createEditabilityChecker as _0x2646b2}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xdbbf5c{[_0x5509c5(0x1e4)];static get[_0x5509c5(0x1f2)](){return[_0x4ae999];}[_0x5509c5(0x1e9)];constructor(_0x37d37f){const _0x784514=_0x5509c5;super(_0x37d37f),this[_0x784514(0x1e4)]=void 0x0,this[_0x784514(0x1e9)]=_0x2646b2(_0x37d37f[_0x784514(0x1ea)][_0x784514(0x1d9)](_0x784514(0x1e2))||[]),this[_0x784514(0x1db)]({'isActive':!0x1});}[_0x5509c5(0x1da)](){const _0x1e62a5=_0x5509c5,_0x10f108=this[_0x1e62a5(0x1e3)][_0x1e62a5(0x1e7)][_0x1e62a5(0x1d8)][_0x1e62a5(0x1f5)][_0x1e62a5(0x1d5)]();this[_0x1e62a5(0x1df)]=this[_0x1e62a5(0x1e9)](_0x10f108);}[_0x5509c5(0x1ed)](){const _0x12635f=_0x5509c5;this[_0x12635f(0x1e4)]&&(this[_0x12635f(0x1ef)](_0x12635f(0x1f0)),this[_0x12635f(0x1e4)]=void 0x0);const _0x3d26e3=this[_0x12635f(0x1e3)][_0x12635f(0x1e7)][_0x12635f(0x1d8)][_0x12635f(0x1f5)][_0x12635f(0x1d5)]();_0x3d26e3&&(_0x3d26e3['is'](_0x12635f(0x1e6),_0x12635f(0x1e8))||_0x3d26e3['is'](_0x12635f(0x1e6),_0x12635f(0x1e5)))&&(this[_0x12635f(0x1e4)]=new _0x3bd651(this[_0x12635f(0x1e3)],this[_0x12635f(0x1e3)][_0x12635f(0x1e1)][_0x12635f(0x1d9)](_0x4ae999),_0x3d26e3),this[_0x12635f(0x1d6)](_0x12635f(0x1f0))['to'](this[_0x12635f(0x1e4)],_0x12635f(0x1f0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf74910=_0xdf24;(function(_0x4e2cb8,_0x4efb68){const _0x63f67b=_0xdf24,_0x4a6eb5=_0x4e2cb8();while(!![]){try{const _0x597667=parseInt(_0x63f67b(0x1e1))/0x1*(-parseInt(_0x63f67b(0x1f4))/0x2)+-parseInt(_0x63f67b(0x1e0))/0x3*(parseInt(_0x63f67b(0x1ec))/0x4)+-parseInt(_0x63f67b(0x1f1))/0x5*(-parseInt(_0x63f67b(0x1e7))/0x6)+parseInt(_0x63f67b(0x1de))/0x7*(-parseInt(_0x63f67b(0x1f2))/0x8)+parseInt(_0x63f67b(0x1f0))/0x9+-parseInt(_0x63f67b(0x1e5))/0xa+parseInt(_0x63f67b(0x1eb))/0xb;if(_0x597667===_0x4efb68)break;else _0x4a6eb5['push'](_0x4a6eb5['shift']());}catch(_0x288ad6){_0x4a6eb5['push'](_0x4a6eb5['shift']());}}}(_0x3548,0x4df5a));import{Plugin as _0x579338}from'ckeditor5/src/core.js';import{Notification as _0x260425}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2a1cb8}from'./uploadcareimageeditcommand.js';function _0x3548(){const _0x1c5c17=['9krVbZS','init','ImageUtils','uploadcareImageEdit','339580dnJrsM','uploadcareImageReplace','64518DDiAZQ','isOfficialPlugin','isPremiumPlugin','pluginName','3174897rgQJDZ','4968zMErPf','commands','ImageEditing','add','2403648AjBLJI','195HTVhlb','42072FJVvbf','requires','115336IcktCJ','112AMKSib','UploadcareImageEditEditing','45AInUGm'];_0x3548=function(){return _0x1c5c17;};return _0x3548();}import{UploadcareImageReplaceCommand as _0x370092}from'./uploadcareimagereplacecommand.js';function _0xdf24(_0x573d6c,_0x34ee94){const _0x3548d6=_0x3548();return _0xdf24=function(_0xdf2479,_0x47f1e6){_0xdf2479=_0xdf2479-0x1de;let _0x2f0331=_0x3548d6[_0xdf2479];return _0x2f0331;},_0xdf24(_0x573d6c,_0x34ee94);}import{UploadcareEditing as _0x3be748}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x579338{static get[_0xf74910(0x1ea)](){const _0x1be0ca=_0xf74910;return _0x1be0ca(0x1df);}static get[_0xf74910(0x1f3)](){const _0x14a27d=_0xf74910;return[_0x3be748,_0x260425,_0x14a27d(0x1e3),_0x14a27d(0x1ee)];}static get[_0xf74910(0x1e8)](){return!0x0;}static get[_0xf74910(0x1e9)](){return!0x0;}[_0xf74910(0x1e2)](){const _0x669ac2=_0xf74910,{editor:_0x568944}=this;_0x568944[_0x669ac2(0x1ed)][_0x669ac2(0x1ef)](_0x669ac2(0x1e4),new _0x2a1cb8(_0x568944)),_0x568944[_0x669ac2(0x1ed)][_0x669ac2(0x1ef)](_0x669ac2(0x1e6),new _0x370092(_0x568944));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2c8c63}from'ckeditor5/src/core.js';import{ButtonView as _0x3691e9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xa349}from'ckeditor5/src/icons.js';import{createElement as _0x276ee5}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x2c8c63{['_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 _0x133b25=this['editor'];_0x133b25['ui']['componentFactory']['add']('uploadcareImageEdit',_0x18fc0a=>{const _0x1e21b5=_0x133b25['commands']['get']('uploadcareImageEdit'),_0x2aa4d6=new _0x3691e9(_0x18fc0a),t=_0x18fc0a['t'];return _0x2aa4d6['set']({'icon':_0xa349,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2aa4d6['bind']('isEnabled')['to'](_0x1e21b5),_0x2aa4d6['bind']('isOn')['to'](_0x1e21b5,'isActive'),this['listenTo'](_0x2aa4d6,'execute',()=>{_0x133b25['execute']('uploadcareImageEdit'),_0x133b25['editing']['view']['focus']();}),_0x2aa4d6;}),this['_initConfig']();}['_initConfig'](){const _0x1614dd=_0x276ee5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1614dd),this['listenTo'](this['editor'],'destroy',()=>{_0x1614dd['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x16fd(){const _0x3e9962=['srcset','204chqjMF','10237480eLjCVV','19623HXOOuv','model','removeAttribute','document','getSelectedElement','21371pixRqI','288sqGVdU','32382Hyglsh','sizes','4SXuWwO','setAttributes','297400hlbtEP','2953225gargtZ','selection','isEnabled','execute','element','refresh','86616pddHpl','change','31VjPppT','editor','imageInline','imageBlock'];_0x16fd=function(){return _0x3e9962;};return _0x16fd();}const _0x47a530=_0x1011;function _0x1011(_0x45de37,_0x44dfec){const _0x16fd40=_0x16fd();return _0x1011=function(_0x1011be,_0x1fa904){_0x1011be=_0x1011be-0xc3;let _0x413a94=_0x16fd40[_0x1011be];return _0x413a94;},_0x1011(_0x45de37,_0x44dfec);}(function(_0x131878,_0x20aea2){const _0x44ab3c=_0x1011,_0x7eea3b=_0x131878();while(!![]){try{const _0x4dbe0d=parseInt(_0x44ab3c(0xd1))/0x1*(-parseInt(_0x44ab3c(0xc4))/0x2)+-parseInt(_0x44ab3c(0xd8))/0x3+-parseInt(_0x44ab3c(0xc6))/0x4*(parseInt(_0x44ab3c(0xc9))/0x5)+-parseInt(_0x44ab3c(0xd6))/0x6*(-parseInt(_0x44ab3c(0xdd))/0x7)+parseInt(_0x44ab3c(0xcf))/0x8*(parseInt(_0x44ab3c(0xc3))/0x9)+parseInt(_0x44ab3c(0xc8))/0xa+parseInt(_0x44ab3c(0xd7))/0xb;if(_0x4dbe0d===_0x20aea2)break;else _0x7eea3b['push'](_0x7eea3b['shift']());}catch(_0x34fb32){_0x7eea3b['push'](_0x7eea3b['shift']());}}}(_0x16fd,0x4c11b));import{Command as _0x1046a8}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x1046a8{[_0x47a530(0xce)](){const _0x28f708=_0x47a530,_0x51660d=this[_0x28f708(0xd2)][_0x28f708(0xd9)][_0x28f708(0xdb)][_0x28f708(0xca)][_0x28f708(0xdc)]();this[_0x28f708(0xcb)]=Boolean(_0x51660d&&(_0x51660d['is'](_0x28f708(0xcd),_0x28f708(0xd4))||_0x51660d['is'](_0x28f708(0xcd),_0x28f708(0xd3))));}[_0x47a530(0xcc)](_0x5e6dbb){const _0x1744f1=_0x47a530,_0x4b9719=this[_0x1744f1(0xd2)][_0x1744f1(0xd9)][_0x1744f1(0xdb)][_0x1744f1(0xca)][_0x1744f1(0xdc)]();this[_0x1744f1(0xd2)][_0x1744f1(0xd9)][_0x1744f1(0xd0)](_0x3c6ff7=>{const _0x1a69b9=_0x1744f1;_0x3c6ff7[_0x1a69b9(0xc7)](_0x5e6dbb,_0x4b9719),_0x3c6ff7[_0x1a69b9(0xda)](_0x1a69b9(0xd5),_0x4b9719),_0x3c6ff7[_0x1a69b9(0xda)](_0x1a69b9(0xc5),_0x4b9719);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x58f598=_0xa8e6;(function(_0x5a8289,_0x12344e){var _0x53890d=_0xa8e6,_0x5eb376=_0x5a8289();while(!![]){try{var _0xc7dd0d=-parseInt(_0x53890d(0xef))/0x1+-parseInt(_0x53890d(0xeb))/0x2*(-parseInt(_0x53890d(0xe5))/0x3)+-parseInt(_0x53890d(0xe4))/0x4*(parseInt(_0x53890d(0xe9))/0x5)+parseInt(_0x53890d(0xe0))/0x6+parseInt(_0x53890d(0xe7))/0x7*(-parseInt(_0x53890d(0xe8))/0x8)+parseInt(_0x53890d(0xea))/0x9+parseInt(_0x53890d(0xee))/0xa*(parseInt(_0x53890d(0xe2))/0xb);if(_0xc7dd0d===_0x12344e)break;else _0x5eb376['push'](_0x5eb376['shift']());}catch(_0x5a2e1b){_0x5eb376['push'](_0x5eb376['shift']());}}}(_0x48f9,0xf0fa7));function _0xa8e6(_0x21d5c1,_0x16e017){var _0x48f90d=_0x48f9();return _0xa8e6=function(_0xa8e636,_0x3903d3){_0xa8e636=_0xa8e636-0xe0;var _0x4a5a6c=_0x48f90d[_0xa8e636];return _0x4a5a6c;},_0xa8e6(_0x21d5c1,_0x16e017);}function _0x48f9(){var _0x48152f=['isOfficialPlugin','3198643xEebuq','32jbRXPN','500605znNlgR','6446295VgKhVX','1705136PtPMEn','requires','UploadcareImageEdit','15887120VnYQhM','1436988KmwUxG','8968680ImkQEX','pluginName','11geuWml','isPremiumPlugin','16WuLYdc','3BbrUyF'];_0x48f9=function(){return _0x48152f;};return _0x48f9();}import{Plugin as _0x2b50ed}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x82768f}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5d0bed}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2b50ed{static get[_0x58f598(0xe1)](){var _0x579d2c=_0x58f598;return _0x579d2c(0xed);}static get[_0x58f598(0xec)](){return[_0x82768f,_0x5d0bed];}static get[_0x58f598(0xe6)](){return!0x0;}static get[_0x58f598(0xe3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2116f5=_0x40ca;(function(_0x5e6384,_0x484f98){const _0x36c8f2=_0x40ca,_0x4be39f=_0x5e6384();while(!![]){try{const _0x2d00f9=-parseInt(_0x36c8f2(0x214))/0x1+-parseInt(_0x36c8f2(0x1dc))/0x2+-parseInt(_0x36c8f2(0x1f1))/0x3+parseInt(_0x36c8f2(0x1eb))/0x4+parseInt(_0x36c8f2(0x1df))/0x5*(parseInt(_0x36c8f2(0x1fb))/0x6)+-parseInt(_0x36c8f2(0x220))/0x7+parseInt(_0x36c8f2(0x204))/0x8;if(_0x2d00f9===_0x484f98)break;else _0x4be39f['push'](_0x4be39f['shift']());}catch(_0x30b401){_0x4be39f['push'](_0x4be39f['shift']());}}}(_0x22ec,0x235f2));import{Plugin as _0x22ea78}from'ckeditor5/src/core.js';import{IconDropbox as _0x4f49a4,IconFacebook as _0x1b3cf4,IconGoogleDrive as _0x2f2dfe,IconGooglePhotos as _0x47fce4,IconUploadcareImageUpload as _0x270f8b,IconUploadcareLink as _0x39f3e5,IconOneDrive as _0x1ca5f0}from'ckeditor5/src/icons.js';import{ButtonView as _0x68e68e,MenuBarMenuListItemButtonView as _0x13650c}from'ckeditor5/src/ui.js';function _0x40ca(_0x1c9bc1,_0x530c7a){const _0x22eca2=_0x22ec();return _0x40ca=function(_0x40caac,_0x5d776b){_0x40caac=_0x40caac-0x1d9;let _0x585480=_0x22eca2[_0x40caac];return _0x585480;},_0x40ca(_0x1c9bc1,_0x530c7a);}import{UploadcareSource as _0x1c1353}from'./uploadcareconfig.js';import{getTranslation as _0x1589ba}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';export class UploadcareUI extends _0x22ea78{[_0x2116f5(0x20a)];[_0x2116f5(0x1e1)];static get[_0x2116f5(0x223)](){const _0x3ac28d=_0x2116f5;return _0x3ac28d(0x213);}static get[_0x2116f5(0x203)](){return!0x0;}static get[_0x2116f5(0x215)](){return!0x0;}[_0x2116f5(0x21a)](){const _0x4906a2=_0x2116f5;this[_0x4906a2(0x20a)]=this[_0x4906a2(0x1fa)][_0x4906a2(0x1e0)][_0x4906a2(0x21d)](_0x4906a2(0x20a));const _0xe992d4=this[_0x4906a2(0x1fa)];this[_0x4906a2(0x1e1)]=setInterval(()=>{const _0x3c7750=_0x4906a2;let _0x4e6f67;for(const _0x42f50c in _0xe992d4){const _0x11a2d8=_0x42f50c,_0x58d428=_0xe992d4[_0x11a2d8];if(_0x3c7750(0x1ee)==_0x58d428||_0x3c7750(0x209)==_0x58d428||_0x3c7750(0x207)==_0x58d428||_0x3c7750(0x200)==_0x58d428||_0x3c7750(0x1f9)==_0x58d428||_0x3c7750(0x1e8)==_0x58d428||_0x3c7750(0x1ff)==_0x58d428||_0x3c7750(0x211)==_0x58d428){delete _0xe992d4[_0x11a2d8],_0x4e6f67=_0x58d428,clearInterval(this[_0x3c7750(0x1e1)]),this[_0x3c7750(0x1e1)]=void 0x0;break;}}_0x3c7750(0x209)==_0x4e6f67&&_0xe992d4[_0x3c7750(0x20b)](_0x3c7750(0x1de)),_0x3c7750(0x207)==_0x4e6f67&&_0xe992d4[_0x3c7750(0x20b)](_0x3c7750(0x1e4)),_0x3c7750(0x200)==_0x4e6f67&&_0xe992d4[_0x3c7750(0x20b)](_0x3c7750(0x1fc)),_0x3c7750(0x1f9)==_0x4e6f67&&_0xe992d4[_0x3c7750(0x20b)](_0x3c7750(0x1dd),_0x3c7750(0x212)),_0x3c7750(0x1e8)==_0x4e6f67&&_0xe992d4[_0x3c7750(0x20b)](_0x3c7750(0x1f4)),_0x3c7750(0x1ff)==_0x4e6f67&&_0xe992d4[_0x3c7750(0x20b)](_0x3c7750(0x1ef)),_0x3c7750(0x211)==_0x4e6f67&&_0xe992d4[_0x3c7750(0x20b)](_0x3c7750(0x217));},0x3e8);}[_0x2116f5(0x222)](){const _0x4876ec=_0x2116f5,{editor:_0x59d452}=this,_0x4bfd7b=_0x59d452[_0x4876ec(0x224)][_0x4876ec(0x21d)](_0x4876ec(0x1db));if(!_0x4bfd7b)return;const _0x258991=this[_0x4876ec(0x1fe)](_0x59d452[_0x4876ec(0x1e0)][_0x4876ec(0x21d)](_0x4876ec(0x206)))[_0x4876ec(0x1f3)]((_0x49bf50,_0x5aa7de)=>{const _0xba9a11=_0x4876ec,_0x4c76b5=this[_0xba9a11(0x1e6)](_0x5aa7de[_0xba9a11(0x20d)]);return _0x49bf50[_0x4c76b5]||(_0x49bf50[_0x4c76b5]=[]),_0x49bf50[_0x4c76b5][_0xba9a11(0x1fd)](_0x5aa7de),_0x49bf50;},{});_0x59d452[_0x4876ec(0x201)][_0x4876ec(0x208)](_0x4876ec(0x1ea))&&_0x59d452[_0x4876ec(0x224)][_0x4876ec(0x21d)](_0x4876ec(0x1db))&&Object[_0x4876ec(0x1da)](_0x258991)[_0x4876ec(0x1f7)](([_0x16851a,_0x6dfd51])=>{const _0x16970c=_0x4876ec;_0x59d452[_0x16970c(0x201)][_0x16970c(0x21d)](_0x16970c(0x1ea))[_0x16970c(0x216)]({'name':_0x16851a,'observable':()=>_0x4bfd7b,'buttonViewCreator':()=>this[_0x16970c(0x210)](_0x6dfd51),'formViewCreator':()=>this[_0x16970c(0x1e7)](_0x6dfd51),'menuBarButtonViewCreator':()=>this[_0x16970c(0x1ec)](_0x6dfd51),'override':_0x16970c(0x226)!==_0x16851a});});}[_0x2116f5(0x202)](){const _0xdd9cb9=_0x2116f5;super[_0xdd9cb9(0x202)](),this[_0xdd9cb9(0x1e1)]&&clearInterval(this[_0xdd9cb9(0x1e1)]);}[_0x2116f5(0x1fe)](_0x3e183e){const _0x5be357=_0x2116f5,{locale:_0x250eca}=this[_0x5be357(0x1fa)];return _0x3e183e[_0x5be357(0x1ed)](_0x4a502f=>{const _0x5af2b1=_0x5be357,_0x129b02=_0x1589ba(_0x250eca,_0x4a502f,_0x5af2b1(0x221));switch(_0x4a502f){case _0x1c1353[_0x5af2b1(0x218)]:return{'icon':_0x270f8b,'type':_0x1c1353[_0x5af2b1(0x218)],..._0x129b02};case _0x1c1353[_0x5af2b1(0x1e2)]:return{'icon':_0x39f3e5,'type':_0x1c1353[_0x5af2b1(0x1e2)],..._0x129b02};case _0x1c1353[_0x5af2b1(0x227)]:return{'icon':_0x4f49a4,'type':_0x1c1353[_0x5af2b1(0x227)],..._0x129b02};case _0x1c1353[_0x5af2b1(0x21e)]:return{'icon':_0x1b3cf4,'type':_0x1c1353[_0x5af2b1(0x21e)],..._0x129b02};case _0x1c1353[_0x5af2b1(0x1f2)]:return{'icon':_0x2f2dfe,'type':_0x1c1353[_0x5af2b1(0x1f2)],..._0x129b02};case _0x1c1353[_0x5af2b1(0x1d9)]:return{'icon':_0x47fce4,'type':_0x1c1353[_0x5af2b1(0x1d9)],..._0x129b02};case _0x1c1353[_0x5af2b1(0x1e5)]:return{'icon':_0x1ca5f0,'type':_0x1c1353[_0x5af2b1(0x1e5)],..._0x129b02};}});}[_0x2116f5(0x1e6)](_0x49770a){const _0x293906=_0x2116f5;switch(_0x49770a){case _0x1c1353[_0x293906(0x218)]:return _0x293906(0x1e9);case _0x1c1353[_0x293906(0x1e2)]:return _0x293906(0x205);default:return _0x293906(0x226);}}[_0x2116f5(0x20f)](_0x33fd03,_0x472466){const _0x2819fd=_0x2116f5,_0x570440=this[_0x2819fd(0x1fa)],_0x1a65a9=new _0x33fd03(_0x570440[_0x2819fd(0x21b)]),_0x31b566=_0x570440[_0x2819fd(0x224)][_0x2819fd(0x21d)](_0x2819fd(0x1db));return _0x1a65a9[_0x2819fd(0x21c)](_0x2819fd(0x21f))['to'](_0x31b566),_0x1a65a9['on'](_0x2819fd(0x219),()=>{const _0x3c2b08=_0x2819fd;_0x31b566[_0x3c2b08(0x219)](_0x472466);}),_0x1a65a9;}[_0x2116f5(0x210)](_0x1bae47){const _0x26f338=_0x2116f5,{locale:_0xd371b4}=this[_0x26f338(0x1fa)],_0x2bafdb=this[_0x26f338(0x1fa)][_0x26f338(0x201)][_0x26f338(0x21d)](_0x26f338(0x1ea)),_0x3ecaec=_0x1bae47[0x0],_0x4a2e7b=this[_0x26f338(0x20f)](_0x68e68e,_0x3ecaec[_0x26f338(0x20d)]);return _0x4a2e7b[_0x26f338(0x1f8)]=_0x3ecaec[_0x26f338(0x1f8)],_0x4a2e7b[_0x26f338(0x21c)](_0x26f338(0x225))['to'](_0x2bafdb,_0x26f338(0x1f0),_0x320542=>_0x1589ba(_0xd371b4,_0x3ecaec[_0x26f338(0x20d)],_0x320542?_0x26f338(0x1f6):_0x26f338(0x221))[_0x26f338(0x20c)]),_0x4a2e7b[_0x26f338(0x20e)]=!0x0,_0x4a2e7b;}[_0x2116f5(0x1e7)](_0x4d733f){const _0x513e4e=_0x2116f5,{locale:_0x254de7}=this[_0x513e4e(0x1fa)],_0x1d8b56=this[_0x513e4e(0x1fa)][_0x513e4e(0x201)][_0x513e4e(0x21d)](_0x513e4e(0x1ea));return _0x4d733f[_0x513e4e(0x1ed)](_0x2a2261=>{const _0x1f770e=_0x513e4e,_0x3b6400=this[_0x1f770e(0x20f)](_0x68e68e,_0x2a2261[_0x1f770e(0x20d)]);return _0x3b6400[_0x1f770e(0x1f5)]=!0x0,_0x3b6400[_0x1f770e(0x1f8)]=_0x2a2261[_0x1f770e(0x1f8)],_0x3b6400[_0x1f770e(0x21c)](_0x1f770e(0x225))['to'](_0x1d8b56,_0x1f770e(0x1f0),_0x168deb=>_0x1589ba(_0x254de7,_0x2a2261[_0x1f770e(0x20d)],_0x168deb?_0x1f770e(0x1f6):_0x1f770e(0x221))[_0x1f770e(0x20c)]),_0x3b6400;});}[_0x2116f5(0x1ec)](_0x28d209){const _0xb4c470=_0x2116f5;return _0x28d209[_0xb4c470(0x1ed)](_0x35f571=>{const _0x3bc757=_0xb4c470,_0x18c39d=this[_0x3bc757(0x20f)](_0x13650c,_0x35f571[_0x3bc757(0x20d)]);return _0x18c39d[_0x3bc757(0x1f8)]=_0x35f571[_0x3bc757(0x1f8)],_0x18c39d[_0x3bc757(0x225)]=_0x35f571[_0x3bc757(0x1e3)],_0x18c39d;});}}function _0x22ec(){const _0x49a9cf=['label','assetManager','Dropbox','GPhotos','entries','uploadcare','378962paoTFX','featureNotAllowed','invalid','154610kYteFr','config','_licenseKeyCheckInterval','URL','shortText','expired','OneDrive','_getIntegrationKey','_createDropdownButtons','uploadcareLicenseKeyEvaluationLimit','upload','ImageInsertUI','914080zjzHUj','_createMenuBarButtons','map','uploadcareLicenseKeyValid','trialLimit','isImageSelected','453003glxWlz','GDrive','reduce','evaluationLimit','withText','Replace','forEach','icon','uploadcareLicenseKeyNotAllowed','editor','42KAKAHo','domainLimit','push','_normalizeConfigSourceList','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyDomainLimit','plugins','destroy','isOfficialPlugin','2336760UkEPCG','url','uploadcare.uploader.sourceList','uploadcareLicenseKeyExpired','has','uploadcareLicenseKeyInvalid','licenseKey','_showLicenseError','text','type','tooltip','_createButton','_createToolbarButton','uploadcareLicenseKeyUsageLimit','Uploadcare','UploadcareUI','134128uLEnEn','isPremiumPlugin','registerIntegration','usageLimit','Local','execute','init','locale','bind','get','Facebook','isEnabled','823039BNLXVK','Insert','afterInit','pluginName','commands'];_0x22ec=function(){return _0x49a9cf;};return _0x22ec();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1a6a9a}from'ckeditor5/src/core.js';import{FileRepository as _0x42a900}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xfc174b}from'./uploadcareediting.js';import{UploadUtils as _0x1e6227}from'./utils/uploadutils.js';import{getImageUrls as _0x32ba43}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1a6a9a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x42a900,_0xfc174b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x362723=this['editor'];if(!!!_0x362723['config']['get']('uploadcare'))return;_0x362723['plugins']['get'](_0x42a900)['createUploadAdapter']=_0x23999b=>new A(_0x23999b,_0x362723),_0x362723['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2f9c6e,{imageElement:_0x207160,data:_0x32fea7})=>{_0x362723['model']['change'](_0x1fd437=>{_0x1fd437['setAttribute']('uploadcareImageId',_0x32fea7['uploadcareImageId'],_0x207160);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x2b6db5,_0x3e29fd){this['loader']=_0x2b6db5,this['editor']=_0x3e29fd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5dffb5=this['editor']['config']['get']('uploadcare.pubkey'),_0x53de7b=await this['loader']['file'];return _0x1e6227['upload']({'file':_0x53de7b,'publicKey':_0x5dffb5,'signal':this['controller']['signal'],'onProgress':_0x47e2a7=>{_0x47e2a7&&_0x47e2a7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x47e2a7['value']);}})['then'](async _0x28d53d=>{const {imageFallbackUrl:_0x19ccd9,imageSources:_0x519e41}=_0x32ba43(_0x28d53d['cdnUrl'],_0x28d53d['imageInfo']['width']);return{'uploadcareImageId':_0x28d53d['uuid'],'default':_0x19ccd9,'sources':_0x519e41};})['catch'](()=>{const _0x1201a1=t('Cannot\x20upload\x20file:')+('\x20'+_0x53de7b['name']+'.');return Promise['reject'](_0x1201a1);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x52f104}from'../uploadcareconfig.js';export function getTranslation(_0x3336f8,_0x50b944,_0x1f7ceb){const t=_0x3336f8['t'],_0x268270=_0x3336f8['t'];switch(_0x50b944){case _0x52f104['Local']:return{'text':_0x268270('Insert'===_0x1f7ceb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x268270('From\x20computer')};case _0x52f104['URL']:return{'text':'Insert'===_0x1f7ceb?_0x268270('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x268270('Via\x20URL')};case _0x52f104['Dropbox']:return{'text':t('Insert'===_0x1f7ceb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x52f104['Facebook']:return{'text':t('Insert'===_0x1f7ceb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x52f104['GDrive']:return{'text':t('Insert'===_0x1f7ceb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x52f104['GPhotos']:return{'text':t('Insert'===_0x1f7ceb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x52f104['OneDrive']:return{'text':t('Insert'===_0x1f7ceb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x50b944;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13547a=_0x4fef;(function(_0x33a3e3,_0x48713e){var _0x403bab=_0x4fef,_0xad205e=_0x33a3e3();while(!![]){try{var _0x203f06=-parseInt(_0x403bab(0x142))/0x1+-parseInt(_0x403bab(0x130))/0x2*(parseInt(_0x403bab(0x13d))/0x3)+parseInt(_0x403bab(0x135))/0x4*(parseInt(_0x403bab(0x140))/0x5)+-parseInt(_0x403bab(0x13a))/0x6*(parseInt(_0x403bab(0x136))/0x7)+parseInt(_0x403bab(0x139))/0x8*(-parseInt(_0x403bab(0x131))/0x9)+parseInt(_0x403bab(0x132))/0xa*(parseInt(_0x403bab(0x133))/0xb)+parseInt(_0x403bab(0x138))/0xc;if(_0x203f06===_0x48713e)break;else _0xad205e['push'](_0xad205e['shift']());}catch(_0x247512){_0xad205e['push'](_0xad205e['shift']());}}}(_0x1ea1,0xea2a7));import{FocusTracker as _0x5036e9}from'ckeditor5/src/utils.js';function _0x4fef(_0x2b8630,_0x5047ac){var _0x1ea1eb=_0x1ea1();return _0x4fef=function(_0x4fef38,_0x2cb68a){_0x4fef38=_0x4fef38-0x12f;var _0x5bb9c5=_0x1ea1eb[_0x4fef38];return _0x5bb9c5;},_0x4fef(_0x2b8630,_0x5047ac);}import{View as _0x18fff3,FocusCycler as _0x124041}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x1ea1(){var _0x5d6b4f=['2FwRbsa','171DQxhRq','470TlOIaA','353111tbiHmj','createCollection','588EEZBGv','224blxKCo','div','16597728erkudp','361792XNgWaz','343560nLVKlB','forwardCycle','fire','2720757QffwCV','true','focusCycler','62975pGHCoI','focusTracker','185718nYKTyY','getFocusableElement','bindTemplate'];_0x1ea1=function(){return _0x5d6b4f;};return _0x1ea1();}export class DialogFocusManagerView extends _0x18fff3{[_0x13547a(0x141)];[_0x13547a(0x13f)];constructor(_0x433494){var _0x5a72ca=_0x13547a;super(_0x433494),this[_0x5a72ca(0x141)]=new _0x5036e9(),this[_0x5a72ca(0x13f)]=new _0x124041({'focusables':this[_0x5a72ca(0x134)](),'focusTracker':this[_0x5a72ca(0x141)]});}[_0x13547a(0x143)](){var _0x266779=_0x13547a;return{'tag':_0x266779(0x137),'attributes':{'aria-hidden':_0x266779(0x13e),'tabindex':'0'},'on':{'focus':this[_0x266779(0x12f)]['to'](()=>{var _0x497a91=_0x266779;this[_0x497a91(0x13f)][_0x497a91(0x13c)](_0x497a91(0x13b));})}};}}
|