@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260112.0 → 0.0.0-nightly-20260113.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 _0x4c8b04=_0x39c5;(function(_0x43cea4,_0x44a80b){const _0x8f7c3e=_0x39c5,_0x9e91d5=_0x43cea4();while(!![]){try{const _0xf99a79=parseInt(_0x8f7c3e(0x17f))/0x1+-parseInt(_0x8f7c3e(0x14d))/0x2*(parseInt(_0x8f7c3e(0x143))/0x3)+parseInt(_0x8f7c3e(0x14c))/0x4+-parseInt(_0x8f7c3e(0x15a))/0x5+parseInt(_0x8f7c3e(0x171))/0x6*(-parseInt(_0x8f7c3e(0x179))/0x7)+-parseInt(_0x8f7c3e(0x16f))/0x8*(parseInt(_0x8f7c3e(0x148))/0x9)+parseInt(_0x8f7c3e(0x147))/0xa;if(_0xf99a79===_0x44a80b)break;else _0x9e91d5['push'](_0x9e91d5['shift']());}catch(_0xe139c2){_0x9e91d5['push'](_0x9e91d5['shift']());}}}(_0x522b,0xc6959));import{Plugin as _0x465c1c}from'ckeditor5/src/core.js';import{Dialog as _0x3a4da8}from'ckeditor5/src/ui.js';import{createElement as _0x3ecc53,global as _0x5d62ac,uid as _0x327f0f}from'ckeditor5/src/utils.js';function _0x39c5(_0x10d558,_0x2e822a){const _0x522bea=_0x522b();return _0x39c5=function(_0x39c588,_0x5bcd1b){_0x39c588=_0x39c588-0x142;let _0x840e27=_0x522bea[_0x39c588];return _0x840e27;},_0x39c5(_0x10d558,_0x2e822a);}import{UploadcareCommand as _0x13e6d7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x36c193}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3992f9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x465c1c{[_0x4c8b04(0x17c)]=null;[_0x4c8b04(0x162)]=null;static get[_0x4c8b04(0x14f)](){const _0x2ebb6d=_0x4c8b04;return _0x2ebb6d(0x14b);}static get[_0x4c8b04(0x160)](){const _0x32ff01=_0x4c8b04;return[_0x32ff01(0x156),_0x36c193,_0x3a4da8];}static get[_0x4c8b04(0x15f)](){return!0x0;}static get[_0x4c8b04(0x183)](){return!0x0;}[_0x4c8b04(0x16c)];get[_0x4c8b04(0x168)](){const _0x10ba51=_0x4c8b04;return this[_0x10ba51(0x17c)];}get[_0x4c8b04(0x14e)](){const _0x13324b=_0x4c8b04;return this[_0x13324b(0x162)];}constructor(_0x196e2d){const _0x5bcc62=_0x4c8b04;super(_0x196e2d),this[_0x5bcc62(0x16c)]=_0x327f0f();}[_0x4c8b04(0x17a)](){const _0x34a3a3=_0x4c8b04,_0x5a2a30=this[_0x34a3a3(0x194)];_0x5a2a30[_0x34a3a3(0x187)][_0x34a3a3(0x186)](_0x34a3a3(0x177),new _0x13e6d7(_0x5a2a30));}[_0x4c8b04(0x16b)](){const _0x54ba5a=_0x4c8b04;this[_0x54ba5a(0x166)](),this[_0x54ba5a(0x144)](),this[_0x54ba5a(0x180)](),this[_0x54ba5a(0x164)](),this[_0x54ba5a(0x15e)](),this[_0x54ba5a(0x173)](this[_0x54ba5a(0x194)],_0x54ba5a(0x158),()=>{const _0x2d6773=_0x54ba5a;this[_0x2d6773(0x17c)]&&(this[_0x2d6773(0x17c)][_0x2d6773(0x163)](),this[_0x2d6773(0x17c)]=null),this[_0x2d6773(0x162)]&&(this[_0x2d6773(0x162)][_0x2d6773(0x163)](),this[_0x2d6773(0x162)]=null);const _0x1b1c07=_0x5d62ac[_0x2d6773(0x181)][_0x2d6773(0x16d)](_0x2d6773(0x17b));_0x1b1c07&&_0x1b1c07[_0x2d6773(0x163)]();}),async function(_0x15d303){const _0x13c1d8=_0x40ad53([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x376d73=0x535f8c3a,_0x45e2dc=0x5358f2a2^_0x376d73,_0x2a1167=window[_0x40ad53([0x44,0x61,0x74,0x65])][_0x40ad53([0x6e,0x6f,0x77])](),_0x4300b8=_0x15d303[_0x40ad53([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e2c03=new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc8d8c=>{_0x4300b8[_0x40ad53([0x6f,0x6e,0x63,0x65])](_0x40ad53([0x72,0x65,0x61,0x64,0x79]),_0xcc8d8c);}),_0x160a8f={[_0x40ad53([0x6b,0x74,0x79])]:_0x40ad53([0x45,0x43]),[_0x40ad53([0x75,0x73,0x65])]:_0x40ad53([0x73,0x69,0x67]),[_0x40ad53([0x63,0x72,0x76])]:_0x40ad53([0x50,0x2d,0x32,0x35,0x36]),[_0x40ad53([0x78])]:_0x40ad53([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]),[_0x40ad53([0x79])]:_0x40ad53([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]),[_0x40ad53([0x61,0x6c,0x67])]:_0x40ad53([0x45,0x53,0x32,0x35,0x36])},_0x3ab5b3=_0x4300b8[_0x40ad53([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40ad53([0x67,0x65,0x74])](_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbe681e(){let _0x3ab90c,_0x58ff6e=null,_0xc92fe7=null;try{if(_0x3ab5b3==_0x40ad53([0x47,0x50,0x4c]))return _0x40ad53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ab90c=_0x551190(),!_0x3ab90c)return _0x40ad53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ab90c[_0x40ad53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc92fe7=_0x2053d9(_0x3ab90c[_0x40ad53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ab90c[_0x40ad53([0x6a,0x74,0x69])])),await _0x50b51e()?_0x11fcf2()?_0x1a553e()?_0x40ad53([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x216991()?(_0x3ab90c[_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ad53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58ff6e=_0x4e24d3(_0x40ad53([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c84a7()):_0x40ad53([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40ad53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40ad53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40ad53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a553e(){const _0x3efc87=[_0x40ad53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40ad53([0x74,0x72,0x69,0x61,0x6c])][_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab90c[_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a1167/0x3e8:0xe10*_0x45e2dc;return _0x3ab90c[_0x40ad53([0x65,0x78,0x70])]<_0x3efc87;}function _0x11fcf2(){const _0x553f3a=_0x3ab90c[_0x40ad53([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x553f3a&&(!!_0x553f3a[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ad53([0x2a]))||!!_0x553f3a[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ad53([0x55,0x50,0x4c,0x43])));}function _0x216991(){const _0x518d52=_0x39c5,_0x206b84=_0x3ab90c[_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x206b84||0x0==_0x206b84[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x401c76}=new URL(window[_0x40ad53([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x518d52(0x15d)]);if(_0x206b84[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401c76))return!0x0;const _0x4a0c38=_0x401c76[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e]));return _0x206b84[_0x40ad53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10be69=>_0x10be69[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ad53([0x2a])))[_0x40ad53([0x6d,0x61,0x70])](_0x1e8227=>_0x1e8227[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e])))[_0x40ad53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x203b06=>_0x203b06[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a0c38[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ad53([0x6d,0x61,0x70])](_0x73e670=>Array(_0x4a0c38[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x73e670[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ad53([0x66,0x69,0x6c,0x6c])](_0x73e670[0x0]===_0x40ad53([0x2a])?_0x40ad53([0x2a]):'')[_0x40ad53([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x73e670))[_0x40ad53([0x73,0x6f,0x6d,0x65])](_0x57b76e=>_0x4a0c38[_0x40ad53([0x65,0x76,0x65,0x72,0x79])]((_0x56aa24,_0x29c480)=>_0x57b76e[_0x29c480]===_0x56aa24||_0x57b76e[_0x29c480]===_0x40ad53([0x2a])));}function _0x5c84a7(){return _0x58ff6e&&_0xc92fe7?new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc8af,_0x49331b)=>{_0x58ff6e[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x1dc8af,_0x49331b),_0xc92fe7[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x356446=>{_0x356446!=_0x40ad53([0x56,0x61,0x6c,0x69,0x64])&&_0x1dc8af(_0x356446);},_0x49331b);}):_0x58ff6e||_0xc92fe7||_0x40ad53([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2053d9(_0x3bad82,_0x852534){return new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x315210=>{if(_0x184158())return _0x315210(_0x40ad53([0x56,0x61,0x6c,0x69,0x64]));_0x21c0f5(),_0x4300b8[_0x40ad53([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40ad53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7e157d=!0x1;const _0x184975=_0x327f0f();function _0xf57db8(_0x93c018){return!!_0x93c018&&(typeof _0x93c018===_0x40ad53([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x93c018===_0x40ad53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x93c018[_0x40ad53([0x74,0x68,0x65,0x6e])]===_0x40ad53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x93c018[_0x40ad53([0x63,0x61,0x74,0x63,0x68])]===_0x40ad53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f22f3(_0x16e1e9){_0x287b08(_0x16e1e9)[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x9cf9d8=>{if(!_0x9cf9d8||_0x9cf9d8[_0x40ad53([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40ad53([0x6f,0x6b]))return _0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e8389(_0x3819cd(_0x184975+_0x852534))!=_0x9cf9d8[_0x40ad53([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40ad53([0x56,0x61,0x6c,0x69,0x64]);})[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x4a2466=>(_0x315ff3(),_0x4a2466),()=>{const _0x2cfdfa=_0x1df43c();return null==_0x2cfdfa?(_0x315ff3(),_0x40ad53([0x56,0x61,0x6c,0x69,0x64])):_0x40ad53(_0x2a1167-_0x2cfdfa>(0x7753083a^_0x376d73)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x315210)[_0x40ad53([0x63,0x61,0x74,0x63,0x68])](()=>{_0x315210(_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12980b=0x536962ba^_0x376d73;function _0x315ff3(){const _0x5ba349=_0x40ad53([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8389(_0x3819cd(_0x3bad82)),_0x3e3725=_0x1af29a(_0x3e8389(window[_0x40ad53([0x4d,0x61,0x74,0x68])][_0x40ad53([0x63,0x65,0x69,0x6c])](_0x2a1167/_0x12980b)));window[_0x40ad53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ad53([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ba349,_0x3e3725);}function _0x1df43c(){const _0x40c927=_0x40ad53([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8389(_0x3819cd(_0x3bad82)),_0x2e612f=window[_0x40ad53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ad53([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40c927);return _0x2e612f?window[_0x40ad53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af29a(_0x2e612f),0x10)*_0x12980b:null;}function _0x287b08(_0xcc32eb){return new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7dd30,_0x7c86aa)=>{_0xcc32eb[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x7dd30,_0x7c86aa),window[_0x40ad53([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7c86aa,0x535e58fa^_0x376d73);});}}_0x4300b8[_0x40ad53([0x6f,0x6e])](_0x40ad53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4271b8,_0x239116)=>{if(_0x239116[0x0]!=_0x3bad82)return _0x315210(_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x239116[0x1]={..._0x239116[0x1],[_0x40ad53([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x184975};},{[_0x40ad53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ad53([0x68,0x69,0x67,0x68])}),_0x4300b8[_0x40ad53([0x6f,0x6e])](_0x40ad53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x70f519=>{_0xf57db8(_0x70f519[_0x40ad53([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7e157d=!0x0,_0x4f22f3(_0x70f519[_0x40ad53([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40ad53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ad53([0x6c,0x6f,0x77])}),_0x3e2c03[_0x40ad53([0x74,0x68,0x65,0x6e])](()=>{_0x7e157d||_0x315210(_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x184158(){return _0x4300b8[_0x40ad53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ad53([0x76,0x69,0x65,0x77])][_0x40ad53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40ad53([0x61,0x75,0x74,0x6f]);}function _0x21c0f5(){_0x4300b8[_0x40ad53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ad53([0x76,0x69,0x65,0x77])][_0x40ad53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ad53([0x61,0x75,0x74,0x6f]);}}function _0x4e24d3(_0x3ebcf8){const _0x1156f9=[new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187117=>setTimeout(_0x187117,0x5356b2f6^_0x376d73)),_0x3e2c03[_0x40ad53([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c56a9=>{let _0x5a3804=0x0;_0x4300b8[_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ad53([0x6f,0x6e])](_0x40ad53([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ae347,_0x34f276)=>{_0x34f276[0x0][_0x40ad53([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a3804++,_0x5a3804==(0x535f89d2^_0x376d73)&&(_0x2c56a9(),_0x2ae347[_0x40ad53([0x6f,0x66,0x66])]());});}))];return window[_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ad53([0x72,0x61,0x63,0x65])](_0x1156f9)[_0x40ad53([0x74,0x68,0x65,0x6e])](()=>_0x3ebcf8);}async function _0x12317c(){await _0x3e2c03,_0x4300b8[_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ad53([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d456f,_0x4300b8[_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ad53([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d456f,_0x4300b8[_0x40ad53([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x409e68(_0x2b39b1){const _0x216577=_0x59a142();_0x4300b8[_0x216577]=_0x40ad53([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b39b1,_0x2b39b1!=_0x40ad53([0x56,0x61,0x6c,0x69,0x64])&&_0x12317c();}function _0x59a142(){const _0x2e8946=window[_0x40ad53([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40ad53([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40ad53([0x6e,0x6f,0x77])]())[_0x40ad53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40ad53([0x2e]),'');let _0x5ca269=_0x40ad53([0x68]);for(let _0x31248d=0x0;_0x31248d<_0x2e8946[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31248d+=0x2){let _0x5789df=window[_0x40ad53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e8946[_0x40ad53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31248d,_0x31248d+0x2));_0x5789df>=_0x13c1d8[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5789df-=_0x13c1d8[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ca269+=_0x13c1d8[_0x5789df];}return _0x5ca269;}function _0x551190(){const _0x3e44ae=_0x3ab5b3[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e]));if(0x3!=_0x3e44ae[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c79db(_0x3e44ae[0x1]);function _0x4c79db(_0x484c12){const _0x58bd70=_0x3ee167(_0x484c12);return _0x58bd70&&_0x482473()?_0x58bd70:null;function _0x482473(){const _0xab1636=_0x58bd70[_0x40ad53([0x6a,0x74,0x69])],_0x545355=window[_0x40ad53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab1636[_0x40ad53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xab1636[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16edc0={..._0x58bd70,[_0x40ad53([0x6a,0x74,0x69])]:_0xab1636[_0x40ad53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xab1636[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16edc0[_0x40ad53([0x76,0x63])],_0x3819cd(_0x16edc0)==_0x545355;}}}async function _0x50b51e(){let _0x149dfb=!0x0;try{const _0x32c665=_0x3ab5b3[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e])),[_0x106ede,_0x40946f,_0x4425d1]=_0x32c665;return _0x2f347f(_0x106ede),await _0x471d6b(_0x106ede,_0x40946f,_0x4425d1),_0x149dfb;}catch{return!0x1;}function _0x2f347f(_0x73ffb0){const _0x34993e=_0x3ee167(_0x73ffb0);_0x34993e&&_0x34993e[_0x40ad53([0x61,0x6c,0x67])]==_0x40ad53([0x45,0x53,0x32,0x35,0x36])||(_0x149dfb=!0x1);}async function _0x471d6b(_0x37d4e1,_0xeefac3,_0xbb9657){const _0x1c5db6=window[_0x40ad53([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40ad53([0x66,0x72,0x6f,0x6d])](_0x511fa1(_0xbb9657),_0x2db008=>_0x2db008[_0x40ad53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20ba06=new window[(_0x40ad53([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40ad53([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37d4e1+_0x40ad53([0x2e])+_0xeefac3),_0x424357=window[_0x40ad53([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40ad53([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x424357)return;const _0x28f3f3=await _0x424357[_0x40ad53([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40ad53([0x6a,0x77,0x6b]),_0x160a8f,{[_0x40ad53([0x6e,0x61,0x6d,0x65])]:_0x40ad53([0x45,0x43,0x44,0x53,0x41]),[_0x40ad53([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40ad53([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40ad53([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x424357[_0x40ad53([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40ad53([0x6e,0x61,0x6d,0x65])]:_0x40ad53([0x45,0x43,0x44,0x53,0x41]),[_0x40ad53([0x68,0x61,0x73,0x68])]:{[_0x40ad53([0x6e,0x61,0x6d,0x65])]:_0x40ad53([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28f3f3,_0x1c5db6,_0x20ba06)||(_0x149dfb=!0x1);}}function _0x3ee167(_0x5df12c){return _0x5df12c[_0x40ad53([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40ad53([0x65,0x79]))?JSON[_0x40ad53([0x70,0x61,0x72,0x73,0x65])](_0x511fa1(_0x5df12c)):null;}function _0x511fa1(_0x1b832e){return window[_0x40ad53([0x61,0x74,0x6f,0x62])](_0x1b832e[_0x40ad53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40ad53([0x2b]))[_0x40ad53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40ad53([0x2f])));}function _0x3819cd(_0x3a85fb){let _0x47be20=0x1505;function _0x1b2b05(_0x18968e){for(let _0x2f56ee=0x0;_0x2f56ee<_0x18968e[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f56ee++){const _0x9d661a=_0x18968e[_0x40ad53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f56ee);_0x47be20=(_0x47be20<<0x5)+_0x47be20+_0x9d661a,_0x47be20&=_0x47be20;}}function _0x48dea1(_0x530234){Array[_0x40ad53([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x530234)?_0x530234[_0x40ad53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48dea1):_0x530234&&typeof _0x530234==_0x40ad53([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40ad53([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x530234)[_0x40ad53([0x73,0x6f,0x72,0x74])]()[_0x40ad53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2227b3,_0x4bf3a0])=>{_0x1b2b05(_0x2227b3),_0x48dea1(_0x4bf3a0);}):_0x1b2b05(window[_0x40ad53([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x530234));}return _0x48dea1(_0x3a85fb),_0x47be20>>>0x0;}function _0x3e8389(_0x1ced34){return _0x1ced34[_0x40ad53([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40ad53([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40ad53([0x30]));}function _0x1af29a(_0xa7843a){return _0xa7843a[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40ad53([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40ad53([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d456f(){}function _0x40ad53(_0x4f4ac1){const _0x26b82c=_0x39c5;return _0x4f4ac1[_0x26b82c(0x18f)](_0x2a8b69=>String[_0x26b82c(0x182)](_0x2a8b69))[_0x26b82c(0x192)]('');}_0x409e68(await _0xbe681e());}(this);}[_0x4c8b04(0x166)](){const _0x529f03=_0x4c8b04,_0x4a18c5=this[_0x529f03(0x194)][_0x529f03(0x172)][_0x529f03(0x190)];_0x4a18c5[_0x529f03(0x174)](_0x529f03(0x14a))&&_0x4a18c5[_0x529f03(0x18b)](_0x529f03(0x14a),{'allowAttributes':[_0x529f03(0x176)]}),_0x4a18c5[_0x529f03(0x174)](_0x529f03(0x193))&&_0x4a18c5[_0x529f03(0x18b)](_0x529f03(0x193),{'allowAttributes':[_0x529f03(0x176)]});}[_0x4c8b04(0x144)](){const _0x217c54=_0x4c8b04,_0xe3440f=this[_0x217c54(0x194)];_0xe3440f[_0x217c54(0x18d)][_0x217c54(0x178)](_0x217c54(0x152))[_0x217c54(0x17e)]({'model':_0x217c54(0x176),'view':_0x217c54(0x161)}),_0xe3440f[_0x217c54(0x18d)][_0x217c54(0x178)](_0x217c54(0x157))[_0x217c54(0x18c)]({'model':{'key':_0x217c54(0x176),'value':_0x50ac24=>_0x50ac24[_0x217c54(0x151)](_0x217c54(0x161))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c50f4=_0xe3440f[_0x217c54(0x187)][_0x217c54(0x189)](_0x217c54(0x159));_0x5c50f4&&this[_0x217c54(0x173)](_0x5c50f4,_0x217c54(0x170),(_0x293664,[_0x458574,_0x24a677])=>{const _0x123462=_0x217c54;_0x458574[_0x123462(0x188)](_0x123462(0x176),_0x24a677);});}[_0x4c8b04(0x180)](){const _0xf0a78=_0x4c8b04,_0x464aff=this[_0xf0a78(0x194)][_0xf0a78(0x18a)][_0xf0a78(0x189)](_0xf0a78(0x17d))||{},_0xdc750f=this[_0xf0a78(0x194)][_0xf0a78(0x18a)][_0xf0a78(0x189)](_0xf0a78(0x175))||'';this[_0xf0a78(0x17c)]=_0x3ecc53(_0x5d62ac[_0xf0a78(0x181)],_0xf0a78(0x145),{..._0x464aff,'pubkey':_0xdc750f,'ctx-name':_0xf0a78(0x195)+this[_0xf0a78(0x16c)],'sourceList':'','imgOnly':_0xf0a78(0x191),'removeCopyright':_0xf0a78(0x191),'localeName':this[_0xf0a78(0x194)][_0xf0a78(0x154)][_0xf0a78(0x185)],'externalSourcesEmbedCss':_0xf0a78(0x16a)}),this[_0xf0a78(0x17c)][_0xf0a78(0x149)]=_0x1cfd4b=>{const _0x388682=_0xf0a78;if(_0x388682(0x165)==_0x1cfd4b)return _0x388682(0x155);},_0x5d62ac[_0xf0a78(0x181)][_0xf0a78(0x169)][_0xf0a78(0x150)](this[_0xf0a78(0x17c)]);}[_0x4c8b04(0x164)](){const _0x19e58d=_0x4c8b04;this[_0x19e58d(0x162)]=_0x3ecc53(_0x5d62ac[_0x19e58d(0x181)],_0x19e58d(0x167),{'ctx-name':_0x19e58d(0x195)+this[_0x19e58d(0x16c)]}),_0x5d62ac[_0x19e58d(0x181)][_0x19e58d(0x169)][_0x19e58d(0x150)](this[_0x19e58d(0x162)]);}[_0x4c8b04(0x15e)](){const _0x54ccba=_0x4c8b04,_0x35c70e=this[_0x54ccba(0x194)][_0x54ccba(0x187)][_0x54ccba(0x189)](_0x54ccba(0x16e));_0x35c70e&&this[_0x54ccba(0x173)](_0x35c70e,_0x54ccba(0x196),()=>{const _0x54a21e=_0x54ccba,_0x3b65c4=this[_0x54a21e(0x194)][_0x54a21e(0x172)][_0x54a21e(0x181)][_0x54a21e(0x153)][_0x54a21e(0x15c)]();_0x3b65c4&&_0x3b65c4[_0x54a21e(0x151)](_0x54a21e(0x176))&&this[_0x54a21e(0x194)][_0x54a21e(0x15b)][_0x54a21e(0x142)][_0x54a21e(0x18e)](_0x54a21e(0x184),()=>{const _0x21c9f8=_0x54a21e;_0x3992f9(this[_0x21c9f8(0x194)],_0x3b65c4);});});const _0x5b79ba=this[_0x54ccba(0x194)][_0x54ccba(0x187)][_0x54ccba(0x189)](_0x54ccba(0x146));_0x5b79ba&&this[_0x54ccba(0x173)](_0x5b79ba,_0x54ccba(0x196),()=>{const _0x207613=_0x54ccba,_0x1cf2ba=this[_0x207613(0x194)][_0x207613(0x172)][_0x207613(0x181)][_0x207613(0x153)][_0x207613(0x15c)]();_0x1cf2ba&&_0x1cf2ba[_0x207613(0x151)](_0x207613(0x176))&&this[_0x207613(0x194)][_0x207613(0x15b)][_0x207613(0x142)][_0x207613(0x18e)](_0x207613(0x184),()=>{const _0x28b44e=_0x207613;_0x3992f9(this[_0x28b44e(0x194)],_0x1cf2ba);});});}}function _0x522b(){const _0x2bdc08=['16ZtjHrh','cleanupImage','9670182YMtvKl','model','listenTo','isRegistered','uploadcare.pubkey','uploadcareImageId','uploadcare','for','7pIHfNZ','init','input[uploadcare-file-input]','_configElement','uploadcare.uploader','attributeToAttribute','1163229DBnOMC','_initConfig','document','fromCharCode','isPremiumPlugin','render','contentLanguage','add','commands','removeAttribute','get','config','extend','elementToAttribute','conversion','once','map','schema','true','join','imageInline','editor','uploader-','execute','view','69xmhbZe','_initConversion','uc-config','uploadcareImageReplace','29439710PEoyZH','6579423YYqzBx','iconHrefResolver','imageBlock','UploadcareEditing','5182892zqYebE','113618CnypCf','ctxElement','pluginName','appendChild','getAttribute','downcast','selection','locale','#uc-icon-arrow-down','PictureEditing','upcast','destroy','replaceImageSource','1045620krYGYn','editing','getSelectedElement','href','_initImageProcessingIndicator','isOfficialPlugin','requires','data-uc-image-id','_ctxElement','remove','_initCtx','closeMax','_initSchema','uc-upload-ctx-provider','configElement','body','\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','afterInit','ucContextId','querySelector','insertImage'];_0x522b=function(){return _0x2bdc08;};return _0x522b();}
|
|
23
|
+
const _0xa0f4d0=_0xc805;(function(_0x542eca,_0x1ab77c){const _0x51c892=_0xc805,_0x8cec86=_0x542eca();while(!![]){try{const _0x17f768=-parseInt(_0x51c892(0x20d))/0x1*(parseInt(_0x51c892(0x204))/0x2)+parseInt(_0x51c892(0x1cb))/0x3*(-parseInt(_0x51c892(0x208))/0x4)+-parseInt(_0x51c892(0x1e5))/0x5*(parseInt(_0x51c892(0x1bd))/0x6)+parseInt(_0x51c892(0x1ca))/0x7+parseInt(_0x51c892(0x1e3))/0x8*(-parseInt(_0x51c892(0x1fa))/0x9)+parseInt(_0x51c892(0x1d8))/0xa+parseInt(_0x51c892(0x1f7))/0xb*(parseInt(_0x51c892(0x1c1))/0xc);if(_0x17f768===_0x1ab77c)break;else _0x8cec86['push'](_0x8cec86['shift']());}catch(_0x4df08a){_0x8cec86['push'](_0x8cec86['shift']());}}}(_0x1d4f,0x65b75));import{Plugin as _0x5ec774}from'ckeditor5/src/core.js';function _0x1d4f(){const _0x569649=['imageBlock','model','upcast','configElement','PictureEditing','imageInline','ctxElement','ucContextId','isOfficialPlugin','editing','true','uploadcareImageId','220Aujqjw','uc-upload-ctx-provider','cleanupImage','1341UdYlIv','input[uploadcare-file-input]','_initSchema','appendChild','data-uc-image-id','_initImageProcessingIndicator','uploadcare','uploader-','_initConfig','href','929622hsqrzN','_initCtx','pluginName','closeMax','565844EmeRHp','conversion','view','attributeToAttribute','_ctxElement','1vhzHGn','destroy','uploadcare.pubkey','init','fromCharCode','locale','for','17436WTYLib','get','getSelectedElement','join','426552DbGidx','removeAttribute','getAttribute','requires','insertImage','editor','config','extend','commands','1253959OnSIWq','3RUpCyV','downcast','contentLanguage','isPremiumPlugin','_configElement','elementToAttribute','map','add','body','once','schema','isRegistered','render','7916530SgYjBW','afterInit','iconHrefResolver','selection','uploadcareImageReplace','remove','querySelector','\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','uploadcare.uploader','#uc-icon-arrow-down','_initConversion','33656lXWxma','replaceImageSource','55BnSsff','execute','listenTo','uc-config','UploadcareEditing','document'];_0x1d4f=function(){return _0x569649;};return _0x1d4f();}function _0xc805(_0x3acf61,_0x22efee){const _0x1d4f2f=_0x1d4f();return _0xc805=function(_0xc8057d,_0x39d748){_0xc8057d=_0xc8057d-0x1b7;let _0x44c679=_0x1d4f2f[_0xc8057d];return _0x44c679;},_0xc805(_0x3acf61,_0x22efee);}import{Dialog as _0x36ffb7}from'ckeditor5/src/ui.js';import{createElement as _0x25cdc9,global as _0x10f359,uid as _0x45c37e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x45d0c8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x39a543}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x11f39d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5ec774{[_0xa0f4d0(0x1cf)]=null;[_0xa0f4d0(0x20c)]=null;static get[_0xa0f4d0(0x206)](){const _0x40fdde=_0xa0f4d0;return _0x40fdde(0x1e9);}static get[_0xa0f4d0(0x1c4)](){const _0x4ca0fa=_0xa0f4d0;return[_0x4ca0fa(0x1ef),_0x39a543,_0x36ffb7];}static get[_0xa0f4d0(0x1f3)](){return!0x0;}static get[_0xa0f4d0(0x1ce)](){return!0x0;}[_0xa0f4d0(0x1f2)];get[_0xa0f4d0(0x1ee)](){const _0x42d1e0=_0xa0f4d0;return this[_0x42d1e0(0x1cf)];}get[_0xa0f4d0(0x1f1)](){const _0x3a5c72=_0xa0f4d0;return this[_0x3a5c72(0x20c)];}constructor(_0x3393f3){const _0x4c29be=_0xa0f4d0;super(_0x3393f3),this[_0x4c29be(0x1f2)]=_0x45c37e();}[_0xa0f4d0(0x1b9)](){const _0x5c822b=_0xa0f4d0,_0x4468e0=this[_0x5c822b(0x1c6)];_0x4468e0[_0x5c822b(0x1c9)][_0x5c822b(0x1d2)](_0x5c822b(0x200),new _0x45d0c8(_0x4468e0));}[_0xa0f4d0(0x1d9)](){const _0x3e3c4f=_0xa0f4d0;this[_0x3e3c4f(0x1fc)](),this[_0x3e3c4f(0x1e2)](),this[_0x3e3c4f(0x202)](),this[_0x3e3c4f(0x205)](),this[_0x3e3c4f(0x1ff)](),this[_0x3e3c4f(0x1e7)](this[_0x3e3c4f(0x1c6)],_0x3e3c4f(0x1b7),()=>{const _0xe1274d=_0x3e3c4f;this[_0xe1274d(0x1cf)]&&(this[_0xe1274d(0x1cf)][_0xe1274d(0x1dd)](),this[_0xe1274d(0x1cf)]=null),this[_0xe1274d(0x20c)]&&(this[_0xe1274d(0x20c)][_0xe1274d(0x1dd)](),this[_0xe1274d(0x20c)]=null);const _0x573046=_0x10f359[_0xe1274d(0x1ea)][_0xe1274d(0x1de)](_0xe1274d(0x1fb));_0x573046&&_0x573046[_0xe1274d(0x1dd)]();}),async function(_0x4c70ba){const _0xc3a25c=_0x263899([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x286b4f=0x535f8c3a,_0x273399=0x5358f28a^_0x286b4f,_0x14f040=window[_0x263899([0x44,0x61,0x74,0x65])][_0x263899([0x6e,0x6f,0x77])](),_0x337455=_0x4c70ba[_0x263899([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ff387=new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28bc9a=>{_0x337455[_0x263899([0x6f,0x6e,0x63,0x65])](_0x263899([0x72,0x65,0x61,0x64,0x79]),_0x28bc9a);}),_0x144188={[_0x263899([0x6b,0x74,0x79])]:_0x263899([0x45,0x43]),[_0x263899([0x75,0x73,0x65])]:_0x263899([0x73,0x69,0x67]),[_0x263899([0x63,0x72,0x76])]:_0x263899([0x50,0x2d,0x32,0x35,0x36]),[_0x263899([0x78])]:_0x263899([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]),[_0x263899([0x79])]:_0x263899([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]),[_0x263899([0x61,0x6c,0x67])]:_0x263899([0x45,0x53,0x32,0x35,0x36])},_0x176f05=_0x337455[_0x263899([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x263899([0x67,0x65,0x74])](_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22b6a2(){let _0x51400a,_0x520dde=null,_0x250d2a=null;try{if(_0x176f05==_0x263899([0x47,0x50,0x4c]))return _0x263899([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51400a=_0xf80954(),!_0x51400a)return _0x263899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51400a[_0x263899([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x250d2a=_0x4d0eb4(_0x51400a[_0x263899([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51400a[_0x263899([0x6a,0x74,0x69])])),await _0x2d1c28()?_0x2de9dd()?_0x2d341d()?_0x263899([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39077e()?(_0x51400a[_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x263899([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x520dde=_0x5e413e(_0x263899([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20ddd6()):_0x263899([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x263899([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x263899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x263899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d341d(){const _0x149284=[_0x263899([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x263899([0x74,0x72,0x69,0x61,0x6c])][_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51400a[_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14f040/0x3e8:0xe10*_0x273399;return _0x51400a[_0x263899([0x65,0x78,0x70])]<_0x149284;}function _0x2de9dd(){const _0x380366=_0x51400a[_0x263899([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x380366&&(!!_0x380366[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263899([0x2a]))||!!_0x380366[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263899([0x55,0x50,0x4c,0x43])));}function _0x39077e(){const _0x31caa2=_0xc805,_0x4f8d9d=_0x51400a[_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f8d9d||0x0==_0x4f8d9d[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x308c38}=new URL(window[_0x263899([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31caa2(0x203)]);if(_0x4f8d9d[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308c38))return!0x0;const _0x235c3f=_0x308c38[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e]));return _0x4f8d9d[_0x263899([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57a6ec=>_0x57a6ec[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263899([0x2a])))[_0x263899([0x6d,0x61,0x70])](_0x4119d3=>_0x4119d3[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e])))[_0x263899([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x197a79=>_0x197a79[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x235c3f[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x263899([0x6d,0x61,0x70])](_0x235fb4=>Array(_0x235c3f[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x235fb4[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x263899([0x66,0x69,0x6c,0x6c])](_0x235fb4[0x0]===_0x263899([0x2a])?_0x263899([0x2a]):'')[_0x263899([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x235fb4))[_0x263899([0x73,0x6f,0x6d,0x65])](_0xb7ba90=>_0x235c3f[_0x263899([0x65,0x76,0x65,0x72,0x79])]((_0x3fadba,_0x36aab1)=>_0xb7ba90[_0x36aab1]===_0x3fadba||_0xb7ba90[_0x36aab1]===_0x263899([0x2a])));}function _0x20ddd6(){return _0x520dde&&_0x250d2a?new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a5d5f,_0x4dd415)=>{_0x520dde[_0x263899([0x74,0x68,0x65,0x6e])](_0x5a5d5f,_0x4dd415),_0x250d2a[_0x263899([0x74,0x68,0x65,0x6e])](_0x507149=>{_0x507149!=_0x263899([0x56,0x61,0x6c,0x69,0x64])&&_0x5a5d5f(_0x507149);},_0x4dd415);}):_0x520dde||_0x250d2a||_0x263899([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d0eb4(_0x32975a,_0xa6883b){return new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x266355=>{if(_0x1e787b())return _0x266355(_0x263899([0x56,0x61,0x6c,0x69,0x64]));_0x115d25(),_0x337455[_0x263899([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x263899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a933f=!0x1;const _0x1141ce=_0x45c37e();function _0x5a926f(_0x528b40){return!!_0x528b40&&(typeof _0x528b40===_0x263899([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x528b40===_0x263899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x528b40[_0x263899([0x74,0x68,0x65,0x6e])]===_0x263899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x528b40[_0x263899([0x63,0x61,0x74,0x63,0x68])]===_0x263899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9fe5dc(_0xf10f0d){_0x51a11e(_0xf10f0d)[_0x263899([0x74,0x68,0x65,0x6e])](_0x17c67d=>{if(!_0x17c67d||_0x17c67d[_0x263899([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x263899([0x6f,0x6b]))return _0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39aac9(_0x144ace(_0x1141ce+_0xa6883b))!=_0x17c67d[_0x263899([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x263899([0x56,0x61,0x6c,0x69,0x64]);})[_0x263899([0x74,0x68,0x65,0x6e])](_0x59b38a=>(_0x2e6944(),_0x59b38a),()=>{const _0x448bbd=_0x573844();return null==_0x448bbd?(_0x2e6944(),_0x263899([0x56,0x61,0x6c,0x69,0x64])):_0x263899(_0x14f040-_0x448bbd>(0x7753083a^_0x286b4f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x263899([0x74,0x68,0x65,0x6e])](_0x266355)[_0x263899([0x63,0x61,0x74,0x63,0x68])](()=>{_0x266355(_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33d048=0x536962ba^_0x286b4f;function _0x2e6944(){const _0x24cd5a=_0x263899([0x6c,0x6c,0x63,0x74,0x2d])+_0x39aac9(_0x144ace(_0x32975a)),_0x346415=_0x3e0b54(_0x39aac9(window[_0x263899([0x4d,0x61,0x74,0x68])][_0x263899([0x63,0x65,0x69,0x6c])](_0x14f040/_0x33d048)));window[_0x263899([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x263899([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24cd5a,_0x346415);}function _0x573844(){const _0x57c393=_0x263899([0x6c,0x6c,0x63,0x74,0x2d])+_0x39aac9(_0x144ace(_0x32975a)),_0x4ac19b=window[_0x263899([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x263899([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57c393);return _0x4ac19b?window[_0x263899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e0b54(_0x4ac19b),0x10)*_0x33d048:null;}function _0x51a11e(_0x1b8aa6){return new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31ed7c,_0x5f8520)=>{_0x1b8aa6[_0x263899([0x74,0x68,0x65,0x6e])](_0x31ed7c,_0x5f8520),window[_0x263899([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f8520,0x535e58fa^_0x286b4f);});}}_0x337455[_0x263899([0x6f,0x6e])](_0x263899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x441a6b,_0x487c8b)=>{if(_0x487c8b[0x0]!=_0x32975a)return _0x266355(_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x487c8b[0x1]={..._0x487c8b[0x1],[_0x263899([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1141ce};},{[_0x263899([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x263899([0x68,0x69,0x67,0x68])}),_0x337455[_0x263899([0x6f,0x6e])](_0x263899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e6ac0=>{_0x5a926f(_0x1e6ac0[_0x263899([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a933f=!0x0,_0x9fe5dc(_0x1e6ac0[_0x263899([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x263899([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x263899([0x6c,0x6f,0x77])}),_0x4ff387[_0x263899([0x74,0x68,0x65,0x6e])](()=>{_0x4a933f||_0x266355(_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e787b(){return _0x337455[_0x263899([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x263899([0x76,0x69,0x65,0x77])][_0x263899([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x263899([0x61,0x75,0x74,0x6f]);}function _0x115d25(){_0x337455[_0x263899([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x263899([0x76,0x69,0x65,0x77])][_0x263899([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x263899([0x61,0x75,0x74,0x6f]);}}function _0x5e413e(_0x22c584){const _0xd21eab=[new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x285b63=>setTimeout(_0x285b63,0x5356b2f6^_0x286b4f)),_0x4ff387[_0x263899([0x74,0x68,0x65,0x6e])](()=>new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa84ed5=>{let _0x2566d7=0x0;_0x337455[_0x263899([0x6d,0x6f,0x64,0x65,0x6c])][_0x263899([0x6f,0x6e])](_0x263899([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x460f1d,_0x47ed6e)=>{_0x47ed6e[0x0][_0x263899([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2566d7++,_0x2566d7==(0x535f89d2^_0x286b4f)&&(_0xa84ed5(),_0x460f1d[_0x263899([0x6f,0x66,0x66])]());});}))];return window[_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x263899([0x72,0x61,0x63,0x65])](_0xd21eab)[_0x263899([0x74,0x68,0x65,0x6e])](()=>_0x22c584);}async function _0x1047b4(){await _0x4ff387,_0x337455[_0x263899([0x6d,0x6f,0x64,0x65,0x6c])][_0x263899([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6358,_0x337455[_0x263899([0x6d,0x6f,0x64,0x65,0x6c])][_0x263899([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6358,_0x337455[_0x263899([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x263899([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15e10b(_0x2177ec){const _0x10f03d=_0x2157aa();_0x337455[_0x10f03d]=_0x263899([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2177ec,_0x2177ec!=_0x263899([0x56,0x61,0x6c,0x69,0x64])&&_0x1047b4();}function _0x2157aa(){const _0x49cbaf=window[_0x263899([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x263899([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x263899([0x6e,0x6f,0x77])]())[_0x263899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x263899([0x2e]),'');let _0x55f385=_0x263899([0x68]);for(let _0x4f5937=0x0;_0x4f5937<_0x49cbaf[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f5937+=0x2){let _0x101537=window[_0x263899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49cbaf[_0x263899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f5937,_0x4f5937+0x2));_0x101537>=_0xc3a25c[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x101537-=_0xc3a25c[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55f385+=_0xc3a25c[_0x101537];}return _0x55f385;}function _0xf80954(){const _0x5bb706=_0x176f05[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e]));if(0x3!=_0x5bb706[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d05b7(_0x5bb706[0x1]);function _0x5d05b7(_0x3175dd){const _0x3902fe=_0x4d9b17(_0x3175dd);return _0x3902fe&&_0x2ac515()?_0x3902fe:null;function _0x2ac515(){const _0x569d32=_0x3902fe[_0x263899([0x6a,0x74,0x69])],_0x5a289c=window[_0x263899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x569d32[_0x263899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x569d32[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1422bd={..._0x3902fe,[_0x263899([0x6a,0x74,0x69])]:_0x569d32[_0x263899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x569d32[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1422bd[_0x263899([0x76,0x63])],_0x144ace(_0x1422bd)==_0x5a289c;}}}async function _0x2d1c28(){let _0x5466b9=!0x0;try{const _0x170bfc=_0x176f05[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e])),[_0x2e323f,_0x12423e,_0x16bbbf]=_0x170bfc;return _0x2474a1(_0x2e323f),await _0x2320ec(_0x2e323f,_0x12423e,_0x16bbbf),_0x5466b9;}catch{return!0x1;}function _0x2474a1(_0x329544){const _0xd72c83=_0x4d9b17(_0x329544);_0xd72c83&&_0xd72c83[_0x263899([0x61,0x6c,0x67])]==_0x263899([0x45,0x53,0x32,0x35,0x36])||(_0x5466b9=!0x1);}async function _0x2320ec(_0x19daf3,_0x190704,_0x3abab5){const _0x116c70=window[_0x263899([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x263899([0x66,0x72,0x6f,0x6d])](_0x47e631(_0x3abab5),_0x525f53=>_0x525f53[_0x263899([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3aad11=new window[(_0x263899([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x263899([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19daf3+_0x263899([0x2e])+_0x190704),_0x57dcfd=window[_0x263899([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x263899([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57dcfd)return;const _0x5d9832=await _0x57dcfd[_0x263899([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x263899([0x6a,0x77,0x6b]),_0x144188,{[_0x263899([0x6e,0x61,0x6d,0x65])]:_0x263899([0x45,0x43,0x44,0x53,0x41]),[_0x263899([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x263899([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x263899([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57dcfd[_0x263899([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x263899([0x6e,0x61,0x6d,0x65])]:_0x263899([0x45,0x43,0x44,0x53,0x41]),[_0x263899([0x68,0x61,0x73,0x68])]:{[_0x263899([0x6e,0x61,0x6d,0x65])]:_0x263899([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d9832,_0x116c70,_0x3aad11)||(_0x5466b9=!0x1);}}function _0x4d9b17(_0x5ec330){return _0x5ec330[_0x263899([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x263899([0x65,0x79]))?JSON[_0x263899([0x70,0x61,0x72,0x73,0x65])](_0x47e631(_0x5ec330)):null;}function _0x47e631(_0x44ac27){return window[_0x263899([0x61,0x74,0x6f,0x62])](_0x44ac27[_0x263899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x263899([0x2b]))[_0x263899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x263899([0x2f])));}function _0x144ace(_0x3bbca4){let _0x8a1260=0x1505;function _0xc9692c(_0x1afec5){for(let _0x369373=0x0;_0x369373<_0x1afec5[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x369373++){const _0x12fbc8=_0x1afec5[_0x263899([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x369373);_0x8a1260=(_0x8a1260<<0x5)+_0x8a1260+_0x12fbc8,_0x8a1260&=_0x8a1260;}}function _0x24fe8f(_0x13aa30){Array[_0x263899([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13aa30)?_0x13aa30[_0x263899([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24fe8f):_0x13aa30&&typeof _0x13aa30==_0x263899([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x263899([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13aa30)[_0x263899([0x73,0x6f,0x72,0x74])]()[_0x263899([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x323ef5,_0x42b0a1])=>{_0xc9692c(_0x323ef5),_0x24fe8f(_0x42b0a1);}):_0xc9692c(window[_0x263899([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13aa30));}return _0x24fe8f(_0x3bbca4),_0x8a1260>>>0x0;}function _0x39aac9(_0x34b988){return _0x34b988[_0x263899([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x263899([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x263899([0x30]));}function _0x3e0b54(_0x2f4916){return _0x2f4916[_0x263899([0x73,0x70,0x6c,0x69,0x74])]('')[_0x263899([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x263899([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f6358(){}function _0x263899(_0x49457c){const _0x11cc86=_0xc805;return _0x49457c[_0x11cc86(0x1d1)](_0x33dfa3=>String[_0x11cc86(0x1ba)](_0x33dfa3))[_0x11cc86(0x1c0)]('');}_0x15e10b(await _0x22b6a2());}(this);}[_0xa0f4d0(0x1fc)](){const _0x436a60=_0xa0f4d0,_0x5cb2a4=this[_0x436a60(0x1c6)][_0x436a60(0x1ec)][_0x436a60(0x1d5)];_0x5cb2a4[_0x436a60(0x1d6)](_0x436a60(0x1eb))&&_0x5cb2a4[_0x436a60(0x1c8)](_0x436a60(0x1eb),{'allowAttributes':[_0x436a60(0x1f6)]}),_0x5cb2a4[_0x436a60(0x1d6)](_0x436a60(0x1f0))&&_0x5cb2a4[_0x436a60(0x1c8)](_0x436a60(0x1f0),{'allowAttributes':[_0x436a60(0x1f6)]});}[_0xa0f4d0(0x1e2)](){const _0x343f5e=_0xa0f4d0,_0x24d91c=this[_0x343f5e(0x1c6)];_0x24d91c[_0x343f5e(0x209)][_0x343f5e(0x1bc)](_0x343f5e(0x1cc))[_0x343f5e(0x20b)]({'model':_0x343f5e(0x1f6),'view':_0x343f5e(0x1fe)}),_0x24d91c[_0x343f5e(0x209)][_0x343f5e(0x1bc)](_0x343f5e(0x1ed))[_0x343f5e(0x1d0)]({'model':{'key':_0x343f5e(0x1f6),'value':_0x3d917a=>_0x3d917a[_0x343f5e(0x1c3)](_0x343f5e(0x1fe))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4c82ba=_0x24d91c[_0x343f5e(0x1c9)][_0x343f5e(0x1be)](_0x343f5e(0x1e4));_0x4c82ba&&this[_0x343f5e(0x1e7)](_0x4c82ba,_0x343f5e(0x1f9),(_0x227da4,[_0x48a4ef,_0x49dec7])=>{const _0x1177ab=_0x343f5e;_0x48a4ef[_0x1177ab(0x1c2)](_0x1177ab(0x1f6),_0x49dec7);});}[_0xa0f4d0(0x202)](){const _0x5f04fe=_0xa0f4d0,_0xb347ee=this[_0x5f04fe(0x1c6)][_0x5f04fe(0x1c7)][_0x5f04fe(0x1be)](_0x5f04fe(0x1e0))||{},_0x7dc27b=this[_0x5f04fe(0x1c6)][_0x5f04fe(0x1c7)][_0x5f04fe(0x1be)](_0x5f04fe(0x1b8))||'';this[_0x5f04fe(0x1cf)]=_0x25cdc9(_0x10f359[_0x5f04fe(0x1ea)],_0x5f04fe(0x1e8),{..._0xb347ee,'pubkey':_0x7dc27b,'ctx-name':_0x5f04fe(0x201)+this[_0x5f04fe(0x1f2)],'sourceList':'','imgOnly':_0x5f04fe(0x1f5),'removeCopyright':_0x5f04fe(0x1f5),'localeName':this[_0x5f04fe(0x1c6)][_0x5f04fe(0x1bb)][_0x5f04fe(0x1cd)],'externalSourcesEmbedCss':_0x5f04fe(0x1df)}),this[_0x5f04fe(0x1cf)][_0x5f04fe(0x1da)]=_0x110c86=>{const _0x335e06=_0x5f04fe;if(_0x335e06(0x207)==_0x110c86)return _0x335e06(0x1e1);},_0x10f359[_0x5f04fe(0x1ea)][_0x5f04fe(0x1d3)][_0x5f04fe(0x1fd)](this[_0x5f04fe(0x1cf)]);}[_0xa0f4d0(0x205)](){const _0x4b169c=_0xa0f4d0;this[_0x4b169c(0x20c)]=_0x25cdc9(_0x10f359[_0x4b169c(0x1ea)],_0x4b169c(0x1f8),{'ctx-name':_0x4b169c(0x201)+this[_0x4b169c(0x1f2)]}),_0x10f359[_0x4b169c(0x1ea)][_0x4b169c(0x1d3)][_0x4b169c(0x1fd)](this[_0x4b169c(0x20c)]);}[_0xa0f4d0(0x1ff)](){const _0x157742=_0xa0f4d0,_0x2b300d=this[_0x157742(0x1c6)][_0x157742(0x1c9)][_0x157742(0x1be)](_0x157742(0x1c5));_0x2b300d&&this[_0x157742(0x1e7)](_0x2b300d,_0x157742(0x1e6),()=>{const _0x56d409=_0x157742,_0x208445=this[_0x56d409(0x1c6)][_0x56d409(0x1ec)][_0x56d409(0x1ea)][_0x56d409(0x1db)][_0x56d409(0x1bf)]();_0x208445&&_0x208445[_0x56d409(0x1c3)](_0x56d409(0x1f6))&&this[_0x56d409(0x1c6)][_0x56d409(0x1f4)][_0x56d409(0x20a)][_0x56d409(0x1d4)](_0x56d409(0x1d7),()=>{const _0x4766b6=_0x56d409;_0x11f39d(this[_0x4766b6(0x1c6)],_0x208445);});});const _0x4105bc=this[_0x157742(0x1c6)][_0x157742(0x1c9)][_0x157742(0x1be)](_0x157742(0x1dc));_0x4105bc&&this[_0x157742(0x1e7)](_0x4105bc,_0x157742(0x1e6),()=>{const _0x9fbb8d=_0x157742,_0x31b792=this[_0x9fbb8d(0x1c6)][_0x9fbb8d(0x1ec)][_0x9fbb8d(0x1ea)][_0x9fbb8d(0x1db)][_0x9fbb8d(0x1bf)]();_0x31b792&&_0x31b792[_0x9fbb8d(0x1c3)](_0x9fbb8d(0x1f6))&&this[_0x9fbb8d(0x1c6)][_0x9fbb8d(0x1f4)][_0x9fbb8d(0x20a)][_0x9fbb8d(0x1d4)](_0x9fbb8d(0x1d7),()=>{const _0x27acc0=_0x9fbb8d;_0x11f39d(this[_0x27acc0(0x1c6)],_0x31b792);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x52bae7,ObservableMixin as _0x5c6902}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1ff6d3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xd3a443}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3d5955}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x8a9701}from'../../utils/uploadutils.js';import{getImageUrls as _0x2509b6,getImageDimension as _0x27b7b3}from'../../utils/editingutils.js';import{isAncestor as _0x56f6ad}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c6902(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x219bb4,_0x8ef0a5,_0x24c86c){super(),this['_editor']=_0x219bb4,this['_dialog']=_0x8ef0a5,this['_imageElement']=_0x24c86c,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 _0x17f427=this['_imageElement'],_0x2c11b6=_0x17f427['getAttribute']('uploadcareImageId'),_0x21b27d=_0x17f427['getAttribute']('src');if(_0x2c11b6)await this['_loadImageInfo'](_0x2c11b6,_0x21b27d);else{if(this['_imageCache']['has'](_0x21b27d)){const _0xbd7ef4=this['_imageCache']['get'](_0x21b27d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbd7ef4['url'],this['imageDimension']=_0xbd7ef4['dimension'],this['imageId']=_0xbd7ef4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1b2f2c}=this['_editor'],t=_0x1b2f2c['t'],_0x310eba=new _0x3d5955(_0x1b2f2c,this['imageStatus'],this['_attributes']);_0x310eba['bind']('status')['to'](this,'imageStatus'),_0x310eba['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x310eba['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x310eba['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x310eba,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xd3a443,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x310eba,'position':_0x1ff6d3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x310eba['focus']();},'onHide':()=>{_0x310eba['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51a2db=>!_0x56f6ad(_0x51a2db,_0x310eba['element'])}});}['_loadImageInfo'](_0x4bce02,_0x1d9c88){return _0x8a9701['getInfo'](_0x4bce02,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x215b49=>{const {width:_0x545a79,height:_0x432fa0}=_0x215b49['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d9c88,this['imageDimension']={'width':_0x545a79,'height':_0x432fa0},this['imageId']=_0x4bce02;})['catch'](_0x42826e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42826e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3989bf,_0x3b04a9){return this['_getImageAsFile'](_0x3989bf)['then'](_0x285377=>_0x8a9701['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3b04a9['signal'],'file':_0x285377,'onProgress':_0x3aa55e=>{_0x3aa55e&&_0x3aa55e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3aa55e['value']));}}))['then'](_0x3d08fe=>{const {width:_0x1f40bb,height:_0x266b96}=_0x3d08fe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d08fe['cdnUrl'],this['imageDimension']={'width':_0x1f40bb,'height':_0x266b96},this['imageId']=_0x3d08fe['uuid'],this['imageUploadProgress']=null;const _0x47b2a8=_0x3989bf['getAttribute']('src');this['_imageCache']['set'](_0x47b2a8,{'id':_0x3d08fe['uuid'],'url':_0x3d08fe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x54915a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x54915a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3b5151,_0x52abbd){_0x3b5151['on']('apply',(_0x33d7b6,_0x129621)=>{this['_replaceImage'](_0x52abbd,_0x129621['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3b5151['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3b5151['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x179109,_0x4f5da0,_0x5a3961){const _0x57917c=this['_editor'],{width:_0x11ad22,height:_0x55dabc}=_0x27b7b3(_0x4f5da0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57aede,imageSources:_0x1d1564}=_0x2509b6(_0x4f5da0,_0x11ad22);_0x57917c['model']['change'](_0x2a8a74=>{if('$graveyard'===_0x179109['root']['rootName']){_0x57917c['execute']('insertImage',{'imageType':_0x179109['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x179109['getAttributes']()),'uploadcareImageId':_0x5a3961,'src':_0x57aede,'sources':_0x1d1564,'width':_0x11ad22,'height':_0x55dabc}});const _0x1b3907=_0x179109['getChildren']();_0x179109=_0x57917c['model']['document']['selection']['getSelectedElement']();for(const _0x4dc8cb of _0x1b3907)_0x2a8a74['append'](_0x2a8a74['cloneElement'](_0x4dc8cb),_0x179109);}else _0x2a8a74['setSelection'](_0x179109,'on'),_0x57917c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x179109['getAttributes']()),'uploadcareImageId':_0x5a3961,'src':_0x57aede,'sources':_0x1d1564,'width':_0x11ad22,'height':_0x55dabc},_0x179109);_0x2a8a74['setSelection'](_0x179109,'on');});}async['_getImageAsFile'](_0x46aa43){const _0x31d879=_0x52bae7['window'],_0x504eb6=_0x52bae7['document']['location']['href'],_0x515fe6=new _0x31d879['URL'](_0x46aa43['getAttribute']('src'),_0x504eb6);if('data:'===_0x515fe6['protocol']){const _0x3089aa=_0x515fe6['href']['split'](','),_0x2b347f=_0x3089aa[0x0]['match'](/:(.*?);/)[0x1],_0x37674c=_0x2b347f['split']('/')[0x1],_0xac5dcb=_0x31d879['atob'](_0x3089aa[_0x3089aa['length']-0x1]);let _0x1f5a8b=_0xac5dcb['length'];const _0x246bf1=new _0x31d879['Uint8Array'](_0x1f5a8b);for(;_0x1f5a8b--;)_0x246bf1[_0x1f5a8b]=_0xac5dcb['charCodeAt'](_0x1f5a8b);return new _0x31d879['File']([_0x246bf1],'image.'+_0x37674c,{'type':_0x2b347f});}const _0x561628=_0x515fe6['href']['split']('/'),_0x7c4f48=_0x561628[_0x561628['length']-0x1],_0x4137df=_0x7c4f48['split']('.')[0x1];return _0x31d879['fetch'](_0x515fe6['href'])['then'](_0x28e698=>_0x28e698['clone']()['blob']())['then'](_0xfadd1d=>new _0x31d879['File']([_0xfadd1d],_0x7c4f48,{'type':'image/'+_0x4137df}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4fa7(){const _0x25682b=['set','setTemplate','249161gEZFsV','30NaIqhh','12pqRNUx','68LbclXn','imageSrc','bindTemplate','46632jTfqoC','128646ebSdES','152PoihQC','uc-cloud-image-editor','40626911pQTohw','2334114XakQes','image-edit','608713kuBPLQ','102VhzOPq','uc-light','24PIiolK','ck-uploadcare-theme','1118955EUMycB'];_0x4fa7=function(){return _0x25682b;};return _0x4fa7();}(function(_0x5078e9,_0x56ef7b){const _0x3bc659=_0xa610,_0x3dd3f8=_0x5078e9();while(!![]){try{const _0x42f88e=-parseInt(_0x3bc659(0xd9))/0x1*(parseInt(_0x3bc659(0xd6))/0x2)+-parseInt(_0x3bc659(0xde))/0x3+parseInt(_0x3bc659(0xce))/0x4*(parseInt(_0x3bc659(0xd0))/0x5)+parseInt(_0x3bc659(0xcc))/0x6*(-parseInt(_0x3bc659(0xcb))/0x7)+-parseInt(_0x3bc659(0xdb))/0x8*(-parseInt(_0x3bc659(0xda))/0x9)+parseInt(_0x3bc659(0xd4))/0xa*(parseInt(_0x3bc659(0xd3))/0xb)+-parseInt(_0x3bc659(0xd5))/0xc*(-parseInt(_0x3bc659(0xdd))/0xd);if(_0x42f88e===_0x56ef7b)break;else _0x3dd3f8['push'](_0x3dd3f8['shift']());}catch(_0x17d771){_0x3dd3f8['push'](_0x3dd3f8['shift']());}}}(_0x4fa7,0xebbe3));import{View as _0x17d2c8}from'ckeditor5/src/ui.js';function _0xa610(_0x2faeb2,_0x55a75e){const _0x4fa786=_0x4fa7();return _0xa610=function(_0xa610df,_0x3693aa){_0xa610df=_0xa610df-0xca;let _0x127e79=_0x4fa786[_0xa610df];return _0x127e79;},_0xa610(_0x2faeb2,_0x55a75e);}export class UploadcareImageEditFormEditingView extends _0x17d2c8{constructor(_0x21013f,_0xd254ef){const _0x5b30d7=_0xa610;super(_0x21013f);const _0x16996f=this[_0x5b30d7(0xd8)];this[_0x5b30d7(0xd1)](_0x5b30d7(0xd7),''),this[_0x5b30d7(0xd2)]({'tag':_0x5b30d7(0xdc),'attributes':{..._0xd254ef,'class':[_0x5b30d7(0xcd),_0x5b30d7(0xcf)],'ctx-name':_0x5b30d7(0xca),'cdn-url':_0x16996f['to'](_0x5b30d7(0xd7))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1909fc}from'ckeditor5/src/icons.js';import{ButtonView as _0x8e058a,IconView as _0x36fc5f,View as _0x1fee39}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1fee39{constructor(_0x214f18){super(_0x214f18);const t=_0x214f18['t'];this['set']('errorType',null);const _0xd0590a=new _0x8e058a(_0x214f18);_0xd0590a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xd0590a['withText']=!0x0,_0xd0590a['class']='ck-button-action',_0xd0590a['on']('execute',()=>{this['fire']('retry');}),_0xd0590a['bind']('isVisible')['to'](this,'errorType',_0x21f6b1=>'NotFound'!==_0x21f6b1);const _0x580a18=new _0x36fc5f();_0x580a18['content']=_0x1909fc,_0x580a18['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ea410=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':[_0x580a18,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ea410['to']('errorType',_0x1c91c9=>t('NotFound'!==_0x1c91c9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xd0590a]},{'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 _0x2fa2fa,View as _0x32cc43}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x32cc43{constructor(_0x1c61db){super(_0x1c61db);const t=_0x1c61db['t'],_0x101183=this['bindTemplate'],_0x5c1fa2=new _0x2fa2fa();_0x5c1fa2['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':[_0x5c1fa2,{'text':_0x101183['to']('imageUploadProgress',_0x339b07=>t('Loading\x20image...')+'\x20('+(_0x339b07||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 _0x24c843=_0x374c;(function(_0x5ae9e6,_0xc35900){const _0x465647=_0x374c,_0x365801=_0x5ae9e6();while(!![]){try{const _0x27c07d=parseInt(_0x465647(0x14d))/0x1*(parseInt(_0x465647(0x167))/0x2)+-parseInt(_0x465647(0x154))/0x3*(parseInt(_0x465647(0x15e))/0x4)+-parseInt(_0x465647(0x157))/0x5*(-parseInt(_0x465647(0x171))/0x6)+-parseInt(_0x465647(0x168))/0x7+-parseInt(_0x465647(0x142))/0x8+-parseInt(_0x465647(0x173))/0x9+-parseInt(_0x465647(0x14c))/0xa*(-parseInt(_0x465647(0x14a))/0xb);if(_0x27c07d===_0xc35900)break;else _0x365801['push'](_0x365801['shift']());}catch(_0x26bd6b){_0x365801['push'](_0x365801['shift']());}}}(_0x5c2d,0xf418d));import{View as _0x57333e}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x133747}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x48714c}from'./uploadcareimageeditformerrorview.js';function _0x5c2d(){const _0x37a7a8=['clear','_setView','2Cvhrtz','9910495yiysKR','length','status','ck-reset_all-excluded','_loadingView','set','element','focus','addedNodes','13422SsrPHk','apply','12206088DTfIEg','once','render','ready','retry','observe','toLowerCase','15492696ScxIbP','createCollection','getFocusableElement','_waitForImageEditorComponent','uploading','addMany','add','_addUploadcareImageEditorListeners','3454NyjflX','_focusableView','122510ufCtLr','1262231gItwtS','detail','querySelector','disconnect','_errorView','change:status','cdnUrl','132051uCEpnD','ck-uploadcare-form','cancel','1930SVKShE','error','_items','nodeName','_addErrorViewListeners','fire','_editingView','24amqkFz','addEventListener','filter','target','setTemplate','div','uc-cloud-image-editor'];_0x5c2d=function(){return _0x37a7a8;};return _0x5c2d();}function _0x374c(_0x5407cf,_0x2e7d00){const _0x5c2de7=_0x5c2d();return _0x374c=function(_0x374cd9,_0x3223b7){_0x374cd9=_0x374cd9-0x13c;let _0x342ada=_0x5c2de7[_0x374cd9];return _0x342ada;},_0x374c(_0x5407cf,_0x2e7d00);}import{UploadcareImageEditFormEditingView as _0x4ce3be}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x38222a}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x38222a{[_0x24c843(0x159)];[_0x24c843(0x16c)];[_0x24c843(0x151)];[_0x24c843(0x15d)];[_0x24c843(0x14b)];constructor(_0x3ae8be,_0x64bc11,_0x2ca530){const _0x5b5ce3=_0x24c843;super(_0x3ae8be),this[_0x5b5ce3(0x159)]=this[_0x5b5ce3(0x143)](),this[_0x5b5ce3(0x16c)]=new _0x133747(_0x3ae8be),this[_0x5b5ce3(0x151)]=new _0x48714c(_0x3ae8be),this[_0x5b5ce3(0x15d)]=new _0x4ce3be(_0x3ae8be,_0x2ca530),this[_0x5b5ce3(0x14b)]=new _0x57333e(_0x3ae8be),this[_0x5b5ce3(0x14b)][_0x5b5ce3(0x162)](this[_0x5b5ce3(0x144)]()),this[_0x5b5ce3(0x16d)](_0x5b5ce3(0x16a),_0x64bc11),this[_0x5b5ce3(0x162)]({'tag':_0x5b5ce3(0x163),'attributes':{'class':['ck',_0x5b5ce3(0x16b),_0x5b5ce3(0x155)],'tabindex':'-1'},'children':this[_0x5b5ce3(0x159)]}),this[_0x5b5ce3(0x166)](),this[_0x5b5ce3(0x13c)](_0x5b5ce3(0x13d),()=>{const _0x4179f2=_0x5b5ce3;this[_0x4179f2(0x145)](this[_0x4179f2(0x16e)],_0x31260e=>{const _0x51ac64=_0x4179f2;this[_0x51ac64(0x149)](_0x31260e);});}),this['on'](_0x5b5ce3(0x152),()=>{const _0x30814a=_0x5b5ce3;this[_0x30814a(0x166)]();}),this[_0x5b5ce3(0x15b)]();}[_0x24c843(0x16f)](){const _0x4e0c78=_0x24c843;this[_0x4e0c78(0x16e)][_0x4e0c78(0x16f)]();}[_0x24c843(0x166)](){const _0x3a7a89=_0x24c843;switch(this[_0x3a7a89(0x159)][_0x3a7a89(0x165)](),this[_0x3a7a89(0x16a)]){case _0x3a7a89(0x146):this[_0x3a7a89(0x159)][_0x3a7a89(0x148)](this[_0x3a7a89(0x16c)]);break;case _0x3a7a89(0x158):this[_0x3a7a89(0x159)][_0x3a7a89(0x148)](this[_0x3a7a89(0x151)]);break;case _0x3a7a89(0x13e):this[_0x3a7a89(0x159)][_0x3a7a89(0x147)]([this[_0x3a7a89(0x15d)],this[_0x3a7a89(0x14b)]]);}}[_0x24c843(0x145)](_0x5f12fe,_0x361557){const _0x5cfb0e=_0x24c843,_0x1dde56=_0x5cfb0e(0x164),_0x246a81=_0x5f12fe[_0x5cfb0e(0x14f)](_0x1dde56);if(_0x246a81)return _0x361557(_0x246a81);const _0x2f0486=new MutationObserver(_0x5514d8=>{const _0x4aa18f=_0x5cfb0e,_0x4f1738=_0x5514d8[_0x4aa18f(0x160)](_0x132331=>_0x132331[_0x4aa18f(0x161)]===_0x5f12fe&&_0x132331[_0x4aa18f(0x170)][_0x4aa18f(0x169)]>0x0&&_0x132331[_0x4aa18f(0x170)][0x0][_0x4aa18f(0x15a)][_0x4aa18f(0x141)]()===_0x1dde56);_0x4f1738[_0x4aa18f(0x169)]&&(_0x2f0486[_0x4aa18f(0x150)](),_0x361557(_0x4f1738[0x0][_0x4aa18f(0x170)][0x0]));});_0x2f0486[_0x5cfb0e(0x140)](_0x5f12fe,{'childList':!0x0,'subtree':!0x0});}[_0x24c843(0x149)](_0x373c73){const _0x44617d=_0x24c843;_0x373c73[_0x44617d(0x15f)](_0x44617d(0x172),_0x62df85=>{const _0x3e565f=_0x44617d;this[_0x3e565f(0x15c)](_0x3e565f(0x172),{'imageSrc':_0x62df85[_0x3e565f(0x14e)][_0x3e565f(0x153)]});}),_0x373c73[_0x44617d(0x15f)](_0x44617d(0x156),()=>{const _0x292074=_0x44617d;this[_0x292074(0x15c)](_0x292074(0x156));});}[_0x24c843(0x15b)](){const _0x424078=_0x24c843;this[_0x424078(0x151)]['on'](_0x424078(0x13f),()=>{const _0xf0054c=_0x424078;this[_0xf0054c(0x15c)](_0xf0054c(0x13f));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56592e=_0x30e6;(function(_0x2ef2d2,_0x1e848c){const _0x34d360=_0x30e6,_0x4348a2=_0x2ef2d2();while(!![]){try{const _0x5b2a45=parseInt(_0x34d360(0x14a))/0x1*(parseInt(_0x34d360(0x15c))/0x2)+-parseInt(_0x34d360(0x152))/0x3+-parseInt(_0x34d360(0x143))/0x4*(-parseInt(_0x34d360(0x140))/0x5)+parseInt(_0x34d360(0x157))/0x6*(parseInt(_0x34d360(0x156))/0x7)+-parseInt(_0x34d360(0x159))/0x8*(parseInt(_0x34d360(0x160))/0x9)+-parseInt(_0x34d360(0x149))/0xa+parseInt(_0x34d360(0x15d))/0xb;if(_0x5b2a45===_0x1e848c)break;else _0x4348a2['push'](_0x4348a2['shift']());}catch(_0x19f22f){_0x4348a2['push'](_0x4348a2['shift']());}}}(_0x4597,0xbca7e));import{Command as _0x25aedd}from'ckeditor5/src/core.js';function _0x4597(){const _0x5ac737=['set','bind','5841lGVdyW','176015YjGCEy','document','imageEditController','156rcLQoR','get','getSelectedElement','unbind','isEnabled','refresh','11042630JwhSRr','458mVvlUk','uploadcare.allowExternalImagesEditing','_isEditable','requires','isActive','element','plugins','config','560178mKQSyG','imageBlock','selection','model','28RsUspk','106512AVwKgp','imageInline','6304epoNlX','editor','execute','1982KiWtpK','7450652tMSwJS'];_0x4597=function(){return _0x5ac737;};return _0x4597();}import{Dialog as _0x5043b7}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3d58cd}from'./ui/uploadcareimageeditcontroller.js';function _0x30e6(_0x30b757,_0x4d2a37){const _0x4597fd=_0x4597();return _0x30e6=function(_0x30e696,_0x55d8ac){_0x30e696=_0x30e696-0x140;let _0x4075bc=_0x4597fd[_0x30e696];return _0x4075bc;},_0x30e6(_0x30b757,_0x4d2a37);}import{createEditabilityChecker as _0x14d9b0}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x25aedd{[_0x56592e(0x142)];static get[_0x56592e(0x14d)](){return[_0x5043b7];}[_0x56592e(0x14c)];constructor(_0x32d6b9){const _0x866c77=_0x56592e;super(_0x32d6b9),this[_0x866c77(0x142)]=void 0x0,this[_0x866c77(0x14c)]=_0x14d9b0(_0x32d6b9[_0x866c77(0x151)][_0x866c77(0x144)](_0x866c77(0x14b))||[]),this[_0x866c77(0x15e)]({'isActive':!0x1});}[_0x56592e(0x148)](){const _0xbc8b28=_0x56592e,_0x12078d=this[_0xbc8b28(0x15a)][_0xbc8b28(0x155)][_0xbc8b28(0x141)][_0xbc8b28(0x154)][_0xbc8b28(0x145)]();this[_0xbc8b28(0x147)]=this[_0xbc8b28(0x14c)](_0x12078d);}[_0x56592e(0x15b)](){const _0x110c9b=_0x56592e;this[_0x110c9b(0x142)]&&(this[_0x110c9b(0x146)](_0x110c9b(0x14e)),this[_0x110c9b(0x142)]=void 0x0);const _0x28ad1c=this[_0x110c9b(0x15a)][_0x110c9b(0x155)][_0x110c9b(0x141)][_0x110c9b(0x154)][_0x110c9b(0x145)]();_0x28ad1c&&(_0x28ad1c['is'](_0x110c9b(0x14f),_0x110c9b(0x153))||_0x28ad1c['is'](_0x110c9b(0x14f),_0x110c9b(0x158)))&&(this[_0x110c9b(0x142)]=new _0x3d58cd(this[_0x110c9b(0x15a)],this[_0x110c9b(0x15a)][_0x110c9b(0x150)][_0x110c9b(0x144)](_0x5043b7),_0x28ad1c),this[_0x110c9b(0x15f)](_0x110c9b(0x14e))['to'](this[_0x110c9b(0x142)],_0x110c9b(0x14e)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2976(){const _0x27e342=['uploadcareImageEdit','UploadcareImageEditEditing','pluginName','init','commands','isPremiumPlugin','52TKkJgd','16134crlaJK','ImageUtils','uploadcareImageReplace','add','2180vGdCYO','43836590hQquZl','1151865URDItQ','1986996aafgSO','4161896gQMpnF','requires','7LBYGtR','ImageEditing','3669741CYOAzd','isOfficialPlugin','90786HJfPfJ'];_0x2976=function(){return _0x27e342;};return _0x2976();}const _0x331d5f=_0xc4c4;(function(_0x496fd1,_0x51ce7d){const _0x301ad3=_0xc4c4,_0x48df6e=_0x496fd1();while(!![]){try{const _0x2072be=-parseInt(_0x301ad3(0x208))/0x1+parseInt(_0x301ad3(0x201))/0x2*(-parseInt(_0x301ad3(0x1fa))/0x3)+parseInt(_0x301ad3(0x1f3))/0x4+parseInt(_0x301ad3(0x206))/0x5*(-parseInt(_0x301ad3(0x202))/0x6)+-parseInt(_0x301ad3(0x1f6))/0x7*(parseInt(_0x301ad3(0x1f4))/0x8)+-parseInt(_0x301ad3(0x1f8))/0x9+parseInt(_0x301ad3(0x207))/0xa;if(_0x2072be===_0x51ce7d)break;else _0x48df6e['push'](_0x48df6e['shift']());}catch(_0x399401){_0x48df6e['push'](_0x48df6e['shift']());}}}(_0x2976,0xcd67d));import{Plugin as _0x137e48}from'ckeditor5/src/core.js';import{Notification as _0x527ae2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1a784f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x347c38}from'./uploadcareimagereplacecommand.js';function _0xc4c4(_0x4eaf98,_0x3e5f15){const _0x2976b4=_0x2976();return _0xc4c4=function(_0xc4c42,_0x4ec7ad){_0xc4c42=_0xc4c42-0x1f3;let _0x8f39a1=_0x2976b4[_0xc4c42];return _0x8f39a1;},_0xc4c4(_0x4eaf98,_0x3e5f15);}import{UploadcareEditing as _0x3ec9e6}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x137e48{static get[_0x331d5f(0x1fd)](){const _0x5b5813=_0x331d5f;return _0x5b5813(0x1fc);}static get[_0x331d5f(0x1f5)](){const _0x3c8497=_0x331d5f;return[_0x3ec9e6,_0x527ae2,_0x3c8497(0x203),_0x3c8497(0x1f7)];}static get[_0x331d5f(0x1f9)](){return!0x0;}static get[_0x331d5f(0x200)](){return!0x0;}[_0x331d5f(0x1fe)](){const _0x320c75=_0x331d5f,{editor:_0x48e091}=this;_0x48e091[_0x320c75(0x1ff)][_0x320c75(0x205)](_0x320c75(0x1fb),new _0x1a784f(_0x48e091)),_0x48e091[_0x320c75(0x1ff)][_0x320c75(0x205)](_0x320c75(0x204),new _0x347c38(_0x48e091));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x26a264}from'ckeditor5/src/core.js';import{ButtonView as _0x3e2bf5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4dc162}from'ckeditor5/src/icons.js';import{createElement as _0x376d4b}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 _0x26a264{['_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 _0x35487b=this['editor'];_0x35487b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x395152=>{const _0xa6cdf3=_0x35487b['commands']['get']('uploadcareImageEdit'),_0x435a72=new _0x3e2bf5(_0x395152),t=_0x395152['t'];return _0x435a72['set']({'icon':_0x4dc162,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x435a72['bind']('isEnabled')['to'](_0xa6cdf3),_0x435a72['bind']('isOn')['to'](_0xa6cdf3,'isActive'),this['listenTo'](_0x435a72,'execute',()=>{_0x35487b['execute']('uploadcareImageEdit'),_0x35487b['editing']['view']['focus']();}),_0x435a72;}),this['_initConfig']();}['_initConfig'](){const _0x5195f8=_0x376d4b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5195f8),this['listenTo'](this['editor'],'destroy',()=>{_0x5195f8['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1a155=_0x18e5;(function(_0x1d3d69,_0x5180ca){const _0x334e2a=_0x18e5,_0x181a43=_0x1d3d69();while(!![]){try{const _0x1a8641=parseInt(_0x334e2a(0x136))/0x1+parseInt(_0x334e2a(0x139))/0x2+-parseInt(_0x334e2a(0x13e))/0x3*(parseInt(_0x334e2a(0x140))/0x4)+-parseInt(_0x334e2a(0x142))/0x5+-parseInt(_0x334e2a(0x135))/0x6+parseInt(_0x334e2a(0x132))/0x7+-parseInt(_0x334e2a(0x12f))/0x8*(-parseInt(_0x334e2a(0x13c))/0x9);if(_0x1a8641===_0x5180ca)break;else _0x181a43['push'](_0x181a43['shift']());}catch(_0x486ee1){_0x181a43['push'](_0x181a43['shift']());}}}(_0xb913,0xa94f5));import{Command as _0x5a67e4}from'ckeditor5/src/core.js';function _0x18e5(_0x243865,_0x12fa39){const _0xb913ee=_0xb913();return _0x18e5=function(_0x18e50f,_0xbf2dd5){_0x18e50f=_0x18e50f-0x12f;let _0x2051ef=_0xb913ee[_0x18e50f];return _0x2051ef;},_0x18e5(_0x243865,_0x12fa39);}function _0xb913(){const _0x89d0c6=['78koZiMN','getSelectedElement','12660JHDUfo','imageBlock','2232220LZYwiu','imageInline','srcset','setAttributes','change','execute','1632oHwfNJ','sizes','editor','3118178LjvHUt','model','refresh','3259134JpssZa','152133CNaIGD','document','isEnabled','778322gfIPls','selection','element','34353ZsAyIG','removeAttribute'];_0xb913=function(){return _0x89d0c6;};return _0xb913();}export class UploadcareImageReplaceCommand extends _0x5a67e4{[_0x1a155(0x134)](){const _0x363dd4=_0x1a155,_0x110e58=this[_0x363dd4(0x131)][_0x363dd4(0x133)][_0x363dd4(0x137)][_0x363dd4(0x13a)][_0x363dd4(0x13f)]();this[_0x363dd4(0x138)]=Boolean(_0x110e58&&(_0x110e58['is'](_0x363dd4(0x13b),_0x363dd4(0x141))||_0x110e58['is'](_0x363dd4(0x13b),_0x363dd4(0x143))));}[_0x1a155(0x147)](_0x576af4){const _0x1e155f=_0x1a155,_0x4c8c8c=this[_0x1e155f(0x131)][_0x1e155f(0x133)][_0x1e155f(0x137)][_0x1e155f(0x13a)][_0x1e155f(0x13f)]();this[_0x1e155f(0x131)][_0x1e155f(0x133)][_0x1e155f(0x146)](_0x643f3a=>{const _0x19328f=_0x1e155f;_0x643f3a[_0x19328f(0x145)](_0x576af4,_0x4c8c8c),_0x643f3a[_0x19328f(0x13d)](_0x19328f(0x144),_0x4c8c8c),_0x643f3a[_0x19328f(0x13d)](_0x19328f(0x130),_0x4c8c8c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4e2051=_0x15de;(function(_0x5d1eb6,_0x4090b7){var _0x279d06=_0x15de,_0x2e6248=_0x5d1eb6();while(!![]){try{var _0x31ef63=parseInt(_0x279d06(0x147))/0x1*(-parseInt(_0x279d06(0x13f))/0x2)+parseInt(_0x279d06(0x148))/0x3+parseInt(_0x279d06(0x13e))/0x4*(-parseInt(_0x279d06(0x146))/0x5)+parseInt(_0x279d06(0x145))/0x6*(parseInt(_0x279d06(0x143))/0x7)+parseInt(_0x279d06(0x13d))/0x8*(-parseInt(_0x279d06(0x141))/0x9)+parseInt(_0x279d06(0x142))/0xa+-parseInt(_0x279d06(0x140))/0xb;if(_0x31ef63===_0x4090b7)break;else _0x2e6248['push'](_0x2e6248['shift']());}catch(_0x305251){_0x2e6248['push'](_0x2e6248['shift']());}}}(_0x2c41,0x5079e));import{Plugin as _0xab373e}from'ckeditor5/src/core.js';function _0x15de(_0x2756ea,_0x4cc046){var _0x2c41b8=_0x2c41();return _0x15de=function(_0x15de24,_0x401a68){_0x15de24=_0x15de24-0x139;var _0x2cc2d1=_0x2c41b8[_0x15de24];return _0x2cc2d1;},_0x15de(_0x2756ea,_0x4cc046);}import{UploadcareImageEditEditing as _0x314141}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x2c41(){var _0xcd2ff3=['157400AcpgIp','4ZBrMNJ','54202CJEEpr','972059RcbYsK','72MEDfVk','3215220TfDWsT','40453dItCEf','UploadcareImageEdit','282JQDlis','851110bXCahv','1RwpfyZ','538761QTaaiS','pluginName','isPremiumPlugin','requires','isOfficialPlugin'];_0x2c41=function(){return _0xcd2ff3;};return _0x2c41();}import{UploadcareImageEditUI as _0x2647dd}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0xab373e{static get[_0x4e2051(0x139)](){var _0x5b467f=_0x4e2051;return _0x5b467f(0x144);}static get[_0x4e2051(0x13b)](){return[_0x314141,_0x2647dd];}static get[_0x4e2051(0x13c)](){return!0x0;}static get[_0x4e2051(0x13a)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4e0077=_0x550f;(function(_0x20bbe3,_0x849f52){const _0x41909a=_0x550f,_0x5479f2=_0x20bbe3();while(!![]){try{const _0x2bd611=parseInt(_0x41909a(0x9c))/0x1*(-parseInt(_0x41909a(0x91))/0x2)+parseInt(_0x41909a(0xa0))/0x3*(-parseInt(_0x41909a(0xc9))/0x4)+parseInt(_0x41909a(0x95))/0x5*(parseInt(_0x41909a(0xc1))/0x6)+parseInt(_0x41909a(0xd0))/0x7*(parseInt(_0x41909a(0xc6))/0x8)+parseInt(_0x41909a(0xb5))/0x9+-parseInt(_0x41909a(0xc7))/0xa*(-parseInt(_0x41909a(0xa4))/0xb)+-parseInt(_0x41909a(0x9e))/0xc*(parseInt(_0x41909a(0xd3))/0xd);if(_0x2bd611===_0x849f52)break;else _0x5479f2['push'](_0x5479f2['shift']());}catch(_0x119be0){_0x5479f2['push'](_0x5479f2['shift']());}}}(_0x4cb8,0xd08bc));import{Plugin as _0x290525}from'ckeditor5/src/core.js';import{IconDropbox as _0x13e9a9,IconFacebook as _0x5a35c7,IconGoogleDrive as _0x3155a1,IconGooglePhotos as _0x337966,IconUploadcareImageUpload as _0x29df2b,IconUploadcareLink as _0x1028a1,IconOneDrive as _0x1656aa}from'ckeditor5/src/icons.js';import{ButtonView as _0x446506,MenuBarMenuListItemButtonView as _0x4b2b0a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x27a846}from'./uploadcareconfig.js';function _0x550f(_0x1d3158,_0x35f024){const _0x4cb851=_0x4cb8();return _0x550f=function(_0x550ffd,_0x2b88cc){_0x550ffd=_0x550ffd-0x85;let _0x765a9b=_0x4cb851[_0x550ffd];return _0x765a9b;},_0x550f(_0x1d3158,_0x35f024);}import{getTranslation as _0x1bf483}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x4cb8(){const _0x530c0e=['get','OneDrive','_normalizeConfigSourceList','uploadcare','85982slwKNM','label','invalid','registerIntegration','1565XBaKnO','upload','uploadcareLicenseKeyUsageLimit','Replace','editor','pluginName','ImageInsertUI','5hNuWbZ','destroy','76836mndcgs','licenseKey','317973kHVYxw','push','uploadcareLicenseKeyValid','_getIntegrationKey','1639RBSaxm','_createToolbarButton','execute','uploadcareLicenseKeyInvalid','withText','isEnabled','Facebook','url','Insert','commands','URL','_createButton','Local','uploadcareLicenseKeyExpired','init','reduce','uploadcare.uploader.sourceList','9310599FHnEjp','shortText','uploadcareLicenseKeyEvaluationLimit','_showLicenseError','UploadcareUI','has','featureNotAllowed','locale','config','assetManager','text','_createDropdownButtons','22122oZbjwy','isPremiumPlugin','type','expired','icon','481808ymzTBi','4870qHapcy','entries','16pFWhSU','afterInit','usageLimit','GPhotos','isOfficialPlugin','GDrive','map','70SRGEGr','Uploadcare','Dropbox','2782RNqNLG','evaluationLimit','isImageSelected','uploadcareLicenseKeyDomainLimit','domainLimit','plugins','bind','tooltip','uploadcareLicenseKeyNotAllowed','_createMenuBarButtons','forEach','_licenseKeyCheckInterval'];_0x4cb8=function(){return _0x530c0e;};return _0x4cb8();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x290525{[_0x4e0077(0x9f)];[_0x4e0077(0x8c)];static get[_0x4e0077(0x9a)](){const _0x1166e4=_0x4e0077;return _0x1166e4(0xb9);}static get[_0x4e0077(0xcd)](){return!0x0;}static get[_0x4e0077(0xc2)](){return!0x0;}[_0x4e0077(0xb2)](){const _0x53f277=_0x4e0077;this[_0x53f277(0x9f)]=this[_0x53f277(0x99)][_0x53f277(0xbd)][_0x53f277(0x8d)](_0x53f277(0x9f));const _0x34ff9b=this[_0x53f277(0x99)];this[_0x53f277(0x8c)]=setInterval(()=>{const _0x4db841=_0x53f277;let _0xdef016;for(const _0xedb70d in _0x34ff9b){const _0x3e45c3=_0xedb70d,_0x537368=_0x34ff9b[_0x3e45c3];if(_0x4db841(0xa2)==_0x537368||_0x4db841(0xa7)==_0x537368||_0x4db841(0xb1)==_0x537368||_0x4db841(0xd6)==_0x537368||_0x4db841(0x89)==_0x537368||_0x4db841(0xb7)==_0x537368||_0x4db841(0x97)==_0x537368){delete _0x34ff9b[_0x3e45c3],_0xdef016=_0x537368,clearInterval(this[_0x4db841(0x8c)]),this[_0x4db841(0x8c)]=void 0x0;break;}}_0x4db841(0xa7)==_0xdef016&&_0x34ff9b[_0x4db841(0xb8)](_0x4db841(0x93)),_0x4db841(0xb1)==_0xdef016&&_0x34ff9b[_0x4db841(0xb8)](_0x4db841(0xc4)),_0x4db841(0xd6)==_0xdef016&&_0x34ff9b[_0x4db841(0xb8)](_0x4db841(0x85)),_0x4db841(0x89)==_0xdef016&&_0x34ff9b[_0x4db841(0xb8)](_0x4db841(0xbb),_0x4db841(0xd1)),_0x4db841(0xb7)==_0xdef016&&_0x34ff9b[_0x4db841(0xb8)](_0x4db841(0xd4)),_0x4db841(0x97)==_0xdef016&&_0x34ff9b[_0x4db841(0xb8)](_0x4db841(0xcb));},0x3e8);}[_0x4e0077(0xca)](){const _0x17d597=_0x4e0077,{editor:_0x531325}=this,_0x4aa681=_0x531325[_0x17d597(0xad)][_0x17d597(0x8d)](_0x17d597(0x90));if(!_0x4aa681)return;const _0x337dbd=this[_0x17d597(0x8f)](_0x531325[_0x17d597(0xbd)][_0x17d597(0x8d)](_0x17d597(0xb4)))[_0x17d597(0xb3)]((_0x697eec,_0x1a7829)=>{const _0x3650bc=_0x17d597,_0x49ecc4=this[_0x3650bc(0xa3)](_0x1a7829[_0x3650bc(0xc3)]);return _0x697eec[_0x49ecc4]||(_0x697eec[_0x49ecc4]=[]),_0x697eec[_0x49ecc4][_0x3650bc(0xa1)](_0x1a7829),_0x697eec;},{});_0x531325[_0x17d597(0x86)][_0x17d597(0xba)](_0x17d597(0x9b))&&_0x531325[_0x17d597(0xad)][_0x17d597(0x8d)](_0x17d597(0x90))&&Object[_0x17d597(0xc8)](_0x337dbd)[_0x17d597(0x8b)](([_0x278a0c,_0x2ea1c0])=>{const _0x433878=_0x17d597;_0x531325[_0x433878(0x86)][_0x433878(0x8d)](_0x433878(0x9b))[_0x433878(0x94)]({'name':_0x278a0c,'observable':()=>_0x4aa681,'buttonViewCreator':()=>this[_0x433878(0xa5)](_0x2ea1c0),'formViewCreator':()=>this[_0x433878(0xc0)](_0x2ea1c0),'menuBarButtonViewCreator':()=>this[_0x433878(0x8a)](_0x2ea1c0),'override':_0x433878(0xbe)!==_0x278a0c});});}[_0x4e0077(0x9d)](){const _0x45ebd5=_0x4e0077;super[_0x45ebd5(0x9d)](),this[_0x45ebd5(0x8c)]&&clearInterval(this[_0x45ebd5(0x8c)]);}[_0x4e0077(0x8f)](_0x4033b3){const _0x2f9634=_0x4e0077,{locale:_0x1c58c9}=this[_0x2f9634(0x99)];return _0x4033b3[_0x2f9634(0xcf)](_0x4de075=>{const _0xb5cbe9=_0x2f9634,_0x5ad000=_0x1bf483(_0x1c58c9,_0x4de075,_0xb5cbe9(0xac));switch(_0x4de075){case _0x27a846[_0xb5cbe9(0xb0)]:return{'icon':_0x29df2b,'type':_0x27a846[_0xb5cbe9(0xb0)],..._0x5ad000};case _0x27a846[_0xb5cbe9(0xae)]:return{'icon':_0x1028a1,'type':_0x27a846[_0xb5cbe9(0xae)],..._0x5ad000};case _0x27a846[_0xb5cbe9(0xd2)]:return{'icon':_0x13e9a9,'type':_0x27a846[_0xb5cbe9(0xd2)],..._0x5ad000};case _0x27a846[_0xb5cbe9(0xaa)]:return{'icon':_0x5a35c7,'type':_0x27a846[_0xb5cbe9(0xaa)],..._0x5ad000};case _0x27a846[_0xb5cbe9(0xce)]:return{'icon':_0x3155a1,'type':_0x27a846[_0xb5cbe9(0xce)],..._0x5ad000};case _0x27a846[_0xb5cbe9(0xcc)]:return{'icon':_0x337966,'type':_0x27a846[_0xb5cbe9(0xcc)],..._0x5ad000};case _0x27a846[_0xb5cbe9(0x8e)]:return{'icon':_0x1656aa,'type':_0x27a846[_0xb5cbe9(0x8e)],..._0x5ad000};}});}[_0x4e0077(0xa3)](_0x3d16fc){const _0x3e60aa=_0x4e0077;switch(_0x3d16fc){case _0x27a846[_0x3e60aa(0xb0)]:return _0x3e60aa(0x96);case _0x27a846[_0x3e60aa(0xae)]:return _0x3e60aa(0xab);default:return _0x3e60aa(0xbe);}}[_0x4e0077(0xaf)](_0x14655b,_0x455be4){const _0xe16a64=_0x4e0077,_0x29d119=this[_0xe16a64(0x99)],_0x1226fe=new _0x14655b(_0x29d119[_0xe16a64(0xbc)]),_0x5e2feb=_0x29d119[_0xe16a64(0xad)][_0xe16a64(0x8d)](_0xe16a64(0x90));return _0x1226fe[_0xe16a64(0x87)](_0xe16a64(0xa9))['to'](_0x5e2feb),_0x1226fe['on'](_0xe16a64(0xa6),()=>{const _0x2cff19=_0xe16a64;_0x5e2feb[_0x2cff19(0xa6)](_0x455be4);}),_0x1226fe;}[_0x4e0077(0xa5)](_0x47e6a0){const _0x20e701=_0x4e0077,{locale:_0x3b90bf}=this[_0x20e701(0x99)],_0x16725d=this[_0x20e701(0x99)][_0x20e701(0x86)][_0x20e701(0x8d)](_0x20e701(0x9b)),_0x4e8327=_0x47e6a0[0x0],_0x391296=this[_0x20e701(0xaf)](_0x446506,_0x4e8327[_0x20e701(0xc3)]);return _0x391296[_0x20e701(0xc5)]=_0x4e8327[_0x20e701(0xc5)],_0x391296[_0x20e701(0x87)](_0x20e701(0x92))['to'](_0x16725d,_0x20e701(0xd5),_0x3b63c4=>_0x1bf483(_0x3b90bf,_0x4e8327[_0x20e701(0xc3)],_0x3b63c4?_0x20e701(0x98):_0x20e701(0xac))[_0x20e701(0xbf)]),_0x391296[_0x20e701(0x88)]=!0x0,_0x391296;}[_0x4e0077(0xc0)](_0x524e9f){const _0x3bd5ac=_0x4e0077,{locale:_0x4a1c5a}=this[_0x3bd5ac(0x99)],_0x1559b2=this[_0x3bd5ac(0x99)][_0x3bd5ac(0x86)][_0x3bd5ac(0x8d)](_0x3bd5ac(0x9b));return _0x524e9f[_0x3bd5ac(0xcf)](_0x2f21cf=>{const _0x488110=_0x3bd5ac,_0x24e824=this[_0x488110(0xaf)](_0x446506,_0x2f21cf[_0x488110(0xc3)]);return _0x24e824[_0x488110(0xa8)]=!0x0,_0x24e824[_0x488110(0xc5)]=_0x2f21cf[_0x488110(0xc5)],_0x24e824[_0x488110(0x87)](_0x488110(0x92))['to'](_0x1559b2,_0x488110(0xd5),_0x131b74=>_0x1bf483(_0x4a1c5a,_0x2f21cf[_0x488110(0xc3)],_0x131b74?_0x488110(0x98):_0x488110(0xac))[_0x488110(0xbf)]),_0x24e824;});}[_0x4e0077(0x8a)](_0x4a0b0b){const _0x1f345b=_0x4e0077;return _0x4a0b0b[_0x1f345b(0xcf)](_0x18a744=>{const _0x4b08eb=_0x1f345b,_0x40f977=this[_0x4b08eb(0xaf)](_0x4b2b0a,_0x18a744[_0x4b08eb(0xc3)]);return _0x40f977[_0x4b08eb(0xc5)]=_0x18a744[_0x4b08eb(0xc5)],_0x40f977[_0x4b08eb(0x92)]=_0x18a744[_0x4b08eb(0xb6)],_0x40f977;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x9713d6}from'ckeditor5/src/core.js';import{FileRepository as _0x44cbc7}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1fbf09}from'./uploadcareediting.js';import{UploadUtils as _0x1f331a}from'./utils/uploadutils.js';import{getImageUrls as _0x3017fd}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x9713d6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x44cbc7,_0x1fbf09];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1737b3=this['editor'];if(!!!_0x1737b3['config']['get']('uploadcare'))return;_0x1737b3['plugins']['get'](_0x44cbc7)['createUploadAdapter']=_0x54172e=>new k(_0x54172e,_0x1737b3),_0x1737b3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x15b556,{imageElement:_0x42d047,data:_0x51a7fc})=>{_0x1737b3['model']['change'](_0x59ca69=>{_0x59ca69['setAttribute']('uploadcareImageId',_0x51a7fc['uploadcareImageId'],_0x42d047);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x9395f8,_0xe25dfd){this['loader']=_0x9395f8,this['editor']=_0xe25dfd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5970ee=await this['loader']['file'];return _0x1f331a['upload']({'file':_0x5970ee,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x402329=>{_0x402329&&_0x402329['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x402329['value']);}})['then'](async _0x1d0921=>{const {imageFallbackUrl:_0x596248,imageSources:_0x37d5a5}=_0x3017fd(_0x1d0921['cdnUrl'],_0x1d0921['imageInfo']['width']);return{'uploadcareImageId':_0x1d0921['uuid'],'default':_0x596248,'sources':_0x37d5a5};})['catch'](()=>{const _0x23a93a=t('Cannot\x20upload\x20file:')+('\x20'+_0x5970ee['name']+'.');return Promise['reject'](_0x23a93a);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x41849b}from'../uploadcareconfig.js';export function getTranslation(_0x377e51,_0x4e341a,_0x2b6e60){const t=_0x377e51['t'],_0x138363=_0x377e51['t'];switch(_0x4e341a){case _0x41849b['Local']:return{'text':_0x138363('Insert'===_0x2b6e60?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x138363('From\x20computer')};case _0x41849b['URL']:return{'text':'Insert'===_0x2b6e60?_0x138363('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x138363('Via\x20URL')};case _0x41849b['Dropbox']:return{'text':t('Insert'===_0x2b6e60?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x41849b['Facebook']:return{'text':t('Insert'===_0x2b6e60?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x41849b['GDrive']:return{'text':t('Insert'===_0x2b6e60?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x41849b['GPhotos']:return{'text':t('Insert'===_0x2b6e60?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x41849b['OneDrive']:return{'text':t('Insert'===_0x2b6e60?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4e341a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x415d82=_0x4b7e;(function(_0x242416,_0x2a0b98){var _0xf29318=_0x4b7e,_0x519256=_0x242416();while(!![]){try{var _0x1edfcd=-parseInt(_0xf29318(0x195))/0x1*(-parseInt(_0xf29318(0x192))/0x2)+-parseInt(_0xf29318(0x1a2))/0x3*(-parseInt(_0xf29318(0x199))/0x4)+-parseInt(_0xf29318(0x196))/0x5*(parseInt(_0xf29318(0x194))/0x6)+-parseInt(_0xf29318(0x19c))/0x7*(parseInt(_0xf29318(0x190))/0x8)+-parseInt(_0xf29318(0x193))/0x9*(-parseInt(_0xf29318(0x191))/0xa)+parseInt(_0xf29318(0x19e))/0xb+-parseInt(_0xf29318(0x1a4))/0xc;if(_0x1edfcd===_0x2a0b98)break;else _0x519256['push'](_0x519256['shift']());}catch(_0x11c875){_0x519256['push'](_0x519256['shift']());}}}(_0x36d3,0x55e08));function _0x4b7e(_0x4ba948,_0x4922fd){var _0x36d381=_0x36d3();return _0x4b7e=function(_0x4b7e08,_0x544dc7){_0x4b7e08=_0x4b7e08-0x190;var _0x4b5f1c=_0x36d381[_0x4b7e08];return _0x4b5f1c;},_0x4b7e(_0x4ba948,_0x4922fd);}function _0x36d3(){var _0x39a11c=['15579WjHpUc','30pihQxJ','13pZaLBY','562255utsRyX','focusCycler','forwardCycle','4144LgRgVp','getFocusableElement','div','7ivHylp','createCollection','7497182UzZXQI','fire','focusTracker','true','393uKGKZB','bindTemplate','2830944BJpOan','4675592PynrvE','3470cdnpMs','48682YaEoJW'];_0x36d3=function(){return _0x39a11c;};return _0x36d3();}import{FocusTracker as _0x2a9e9d}from'ckeditor5/src/utils.js';import{View as _0x74bdf,FocusCycler as _0xa535c3}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x74bdf{[_0x415d82(0x1a0)];[_0x415d82(0x197)];constructor(_0x1eeed9){var _0x14a717=_0x415d82;super(_0x1eeed9),this[_0x14a717(0x1a0)]=new _0x2a9e9d(),this[_0x14a717(0x197)]=new _0xa535c3({'focusables':this[_0x14a717(0x19d)](),'focusTracker':this[_0x14a717(0x1a0)]});}[_0x415d82(0x19a)](){var _0x8a677c=_0x415d82;return{'tag':_0x8a677c(0x19b),'attributes':{'aria-hidden':_0x8a677c(0x1a1),'tabindex':'0'},'on':{'focus':this[_0x8a677c(0x1a3)]['to'](()=>{var _0x5b052c=_0x8a677c;this[_0x5b052c(0x197)][_0x5b052c(0x19f)](_0x5b052c(0x198));})}};}}
|