@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251210.0 → 0.0.0-internal-20251211.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 _0x4bf0b9=_0x390d;(function(_0xd4f335,_0x2428e5){const _0x1217bd=_0x390d,_0x56cfa7=_0xd4f335();while(!![]){try{const _0x30cbf1=parseInt(_0x1217bd(0x1b6))/0x1+parseInt(_0x1217bd(0x1c2))/0x2+-parseInt(_0x1217bd(0x1dd))/0x3*(-parseInt(_0x1217bd(0x1db))/0x4)+-parseInt(_0x1217bd(0x19c))/0x5+parseInt(_0x1217bd(0x19a))/0x6+-parseInt(_0x1217bd(0x1a9))/0x7+-parseInt(_0x1217bd(0x1d6))/0x8;if(_0x30cbf1===_0x2428e5)break;else _0x56cfa7['push'](_0x56cfa7['shift']());}catch(_0x47471e){_0x56cfa7['push'](_0x56cfa7['shift']());}}}(_0x3534,0x9863e));import{Plugin as _0x3156d1}from'ckeditor5/src/core.js';function _0x390d(_0x4b5fb9,_0x2d6d06){const _0x353408=_0x3534();return _0x390d=function(_0x390d1a,_0x2f0fe5){_0x390d1a=_0x390d1a-0x190;let _0x504603=_0x353408[_0x390d1a];return _0x504603;},_0x390d(_0x4b5fb9,_0x2d6d06);}import{Dialog as _0x421c6c}from'ckeditor5/src/ui.js';import{createElement as _0x4e32d4,global as _0x532bf9,uid as _0x1d7a55}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4af48a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x55a946}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x83ee42}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3156d1{[_0x4bf0b9(0x1b3)]=null;[_0x4bf0b9(0x190)]=null;static get[_0x4bf0b9(0x1c8)](){const _0x50c723=_0x4bf0b9;return _0x50c723(0x1d7);}static get[_0x4bf0b9(0x1be)](){const _0x7d145a=_0x4bf0b9;return[_0x7d145a(0x1b5),_0x55a946,_0x421c6c];}static get[_0x4bf0b9(0x1aa)](){return!0x0;}static get[_0x4bf0b9(0x1de)](){return!0x0;}[_0x4bf0b9(0x195)];get[_0x4bf0b9(0x191)](){const _0x1da2c0=_0x4bf0b9;return this[_0x1da2c0(0x1b3)];}get[_0x4bf0b9(0x1c1)](){const _0x59e189=_0x4bf0b9;return this[_0x59e189(0x190)];}constructor(_0x107727){const _0x2c14af=_0x4bf0b9;super(_0x107727),this[_0x2c14af(0x195)]=_0x1d7a55();}[_0x4bf0b9(0x1a8)](){const _0xdedfea=_0x4bf0b9,_0x1cbc01=this[_0xdedfea(0x1ce)];_0x1cbc01[_0xdedfea(0x1e2)][_0xdedfea(0x1cc)](_0xdedfea(0x1a7),new _0x4af48a(_0x1cbc01));}[_0x4bf0b9(0x1c7)](){const _0x12f131=_0x4bf0b9;this[_0x12f131(0x19f)](),this[_0x12f131(0x1bd)](),this[_0x12f131(0x1c3)](),this[_0x12f131(0x1a1)](),this[_0x12f131(0x1bc)](),this[_0x12f131(0x1b8)](this[_0x12f131(0x1ce)],_0x12f131(0x1d3),()=>{const _0x2dddfb=_0x12f131;this[_0x2dddfb(0x1b3)]&&(this[_0x2dddfb(0x1b3)][_0x2dddfb(0x19b)](),this[_0x2dddfb(0x1b3)]=null),this[_0x2dddfb(0x190)]&&(this[_0x2dddfb(0x190)][_0x2dddfb(0x19b)](),this[_0x2dddfb(0x190)]=null);const _0xfa6933=_0x532bf9[_0x2dddfb(0x1b9)][_0x2dddfb(0x1d2)](_0x2dddfb(0x19d));_0xfa6933&&_0xfa6933[_0x2dddfb(0x19b)]();}),async function(_0x3d120b){const _0xf73744=_0x5ea345([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]),_0x2884d9=0x535f8c3a,_0xeeea09=0x5358f7ba^_0x2884d9,_0x32ae47=window[_0x5ea345([0x44,0x61,0x74,0x65])][_0x5ea345([0x6e,0x6f,0x77])](),_0x25a1dd=_0x3d120b[_0x5ea345([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x126200=new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4f9a=>{_0x25a1dd[_0x5ea345([0x6f,0x6e,0x63,0x65])](_0x5ea345([0x72,0x65,0x61,0x64,0x79]),_0x5e4f9a);}),_0x1698dc={[_0x5ea345([0x6b,0x74,0x79])]:_0x5ea345([0x45,0x43]),[_0x5ea345([0x75,0x73,0x65])]:_0x5ea345([0x73,0x69,0x67]),[_0x5ea345([0x63,0x72,0x76])]:_0x5ea345([0x50,0x2d,0x32,0x35,0x36]),[_0x5ea345([0x78])]:_0x5ea345([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]),[_0x5ea345([0x79])]:_0x5ea345([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]),[_0x5ea345([0x61,0x6c,0x67])]:_0x5ea345([0x45,0x53,0x32,0x35,0x36])},_0x59744f=_0x25a1dd[_0x5ea345([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ea345([0x67,0x65,0x74])](_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x404f54(){let _0x21bced,_0x4d5188=null,_0x423009=null;try{if(_0x59744f==_0x5ea345([0x47,0x50,0x4c]))return _0x5ea345([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21bced=_0x1516e9(),!_0x21bced)return _0x5ea345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21bced[_0x5ea345([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x423009=_0x49790e(_0x21bced[_0x5ea345([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21bced[_0x5ea345([0x6a,0x74,0x69])])),await _0x31f5c8()?_0x3384e9()?_0x45b36a()?_0x5ea345([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28e005()?(_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ea345([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d5188=_0x1f1690(_0x5ea345([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ea345([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d5188=_0x1f1690(_0x5ea345([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a7f9d()):_0x5ea345([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ea345([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ea345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ea345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45b36a(){const _0x169350=[_0x5ea345([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ea345([0x74,0x72,0x69,0x61,0x6c])][_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32ae47/0x3e8:0xe10*_0xeeea09;return _0x21bced[_0x5ea345([0x65,0x78,0x70])]<_0x169350;}function _0x3384e9(){const _0x4fb22a=_0x21bced[_0x5ea345([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4fb22a&&(!!_0x4fb22a[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea345([0x2a]))||!!_0x4fb22a[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea345([0x55,0x50,0x4c,0x43])));}function _0x28e005(){const _0x221905=_0x390d,_0x171b69=_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x171b69||0x0==_0x171b69[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x406d8c}=new URL(window[_0x5ea345([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x221905(0x197)]);if(_0x171b69[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406d8c))return!0x0;const _0x35a387=_0x406d8c[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e]));return _0x171b69[_0x5ea345([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fa45b=>_0x1fa45b[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea345([0x2a])))[_0x5ea345([0x6d,0x61,0x70])](_0x5549ed=>_0x5549ed[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e])))[_0x5ea345([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bb625=>_0x4bb625[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35a387[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ea345([0x6d,0x61,0x70])](_0x56bc29=>Array(_0x35a387[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56bc29[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ea345([0x66,0x69,0x6c,0x6c])](_0x56bc29[0x0]===_0x5ea345([0x2a])?_0x5ea345([0x2a]):'')[_0x5ea345([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56bc29))[_0x5ea345([0x73,0x6f,0x6d,0x65])](_0x1003e0=>_0x35a387[_0x5ea345([0x65,0x76,0x65,0x72,0x79])]((_0x48ae74,_0x1d530f)=>_0x1003e0[_0x1d530f]===_0x48ae74||_0x1003e0[_0x1d530f]===_0x5ea345([0x2a])));}function _0x5a7f9d(){return _0x4d5188&&_0x423009?new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26e266,_0x59d7e9)=>{_0x4d5188[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x26e266,_0x59d7e9),_0x423009[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x2456cf=>{_0x2456cf!=_0x5ea345([0x56,0x61,0x6c,0x69,0x64])&&_0x26e266(_0x2456cf);},_0x59d7e9);}):_0x4d5188||_0x423009||_0x5ea345([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49790e(_0x2d7d9f,_0x13e6a4){return new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8749=>{if(_0x1bd102())return _0x4c8749(_0x5ea345([0x56,0x61,0x6c,0x69,0x64]));_0x6f723f(),_0x25a1dd[_0x5ea345([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ea345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2aba98=!0x1;const _0x5c9e6b=_0x1d7a55();function _0x4079e2(_0x19d875){return!!_0x19d875&&(typeof _0x19d875===_0x5ea345([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19d875===_0x5ea345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19d875[_0x5ea345([0x74,0x68,0x65,0x6e])]===_0x5ea345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19d875[_0x5ea345([0x63,0x61,0x74,0x63,0x68])]===_0x5ea345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x326fa2(_0x56c97a){_0x5a21e3(_0x56c97a)[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x48289b=>{if(!_0x48289b||_0x48289b[_0x5ea345([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ea345([0x6f,0x6b]))return _0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19d997(_0x299765(_0x5c9e6b+_0x13e6a4))!=_0x48289b[_0x5ea345([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ea345([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x3159e4=>(_0x196a72(),_0x3159e4),()=>{const _0x67c9a0=_0x4859bb();return null==_0x67c9a0?(_0x196a72(),_0x5ea345([0x56,0x61,0x6c,0x69,0x64])):_0x5ea345(_0x32ae47-_0x67c9a0>(0x7753083a^_0x2884d9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x4c8749)[_0x5ea345([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c8749(_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3879ff=0x536962ba^_0x2884d9;function _0x196a72(){const _0x48dac2=_0x5ea345([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d997(_0x299765(_0x2d7d9f)),_0x4900aa=_0x11510b(_0x19d997(window[_0x5ea345([0x4d,0x61,0x74,0x68])][_0x5ea345([0x63,0x65,0x69,0x6c])](_0x32ae47/_0x3879ff)));window[_0x5ea345([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ea345([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48dac2,_0x4900aa);}function _0x4859bb(){const _0x24000c=_0x5ea345([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d997(_0x299765(_0x2d7d9f)),_0x3084dd=window[_0x5ea345([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ea345([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24000c);return _0x3084dd?window[_0x5ea345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11510b(_0x3084dd),0x10)*_0x3879ff:null;}function _0x5a21e3(_0x413c03){return new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f253f,_0x4f332c)=>{_0x413c03[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x5f253f,_0x4f332c),window[_0x5ea345([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f332c,0x535e58fa^_0x2884d9);});}}_0x25a1dd[_0x5ea345([0x6f,0x6e])](_0x5ea345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35d041,_0xf8f786)=>{if(_0xf8f786[0x0]!=_0x2d7d9f)return _0x4c8749(_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf8f786[0x1]={..._0xf8f786[0x1],[_0x5ea345([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c9e6b};},{[_0x5ea345([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ea345([0x68,0x69,0x67,0x68])}),_0x25a1dd[_0x5ea345([0x6f,0x6e])](_0x5ea345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3beebb=>{_0x4079e2(_0x3beebb[_0x5ea345([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2aba98=!0x0,_0x326fa2(_0x3beebb[_0x5ea345([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ea345([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ea345([0x6c,0x6f,0x77])}),_0x126200[_0x5ea345([0x74,0x68,0x65,0x6e])](()=>{_0x2aba98||_0x4c8749(_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bd102(){return _0x25a1dd[_0x5ea345([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ea345([0x76,0x69,0x65,0x77])][_0x5ea345([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ea345([0x61,0x75,0x74,0x6f]);}function _0x6f723f(){_0x25a1dd[_0x5ea345([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ea345([0x76,0x69,0x65,0x77])][_0x5ea345([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ea345([0x61,0x75,0x74,0x6f]);}}function _0x1f1690(_0x187545){const _0x25e15c=[new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x176060=>setTimeout(_0x176060,0x5356b2f6^_0x2884d9)),_0x126200[_0x5ea345([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9538f5=>{let _0x11630a=0x0;_0x25a1dd[_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ea345([0x6f,0x6e])](_0x5ea345([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x275f9a,_0x54045a)=>{_0x54045a[0x0][_0x5ea345([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11630a++,_0x11630a==(0x535f8dc2^_0x2884d9)&&(_0x9538f5(),_0x275f9a[_0x5ea345([0x6f,0x66,0x66])]());});}))];return window[_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ea345([0x72,0x61,0x63,0x65])](_0x25e15c)[_0x5ea345([0x74,0x68,0x65,0x6e])](()=>_0x187545);}async function _0x62a20b(){await _0x126200,_0x25a1dd[_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ea345([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25eab8,_0x25a1dd[_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ea345([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25eab8,_0x25a1dd[_0x5ea345([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5238d0(_0x37a084){const _0x328d42=_0x212ee0();_0x25a1dd[_0x328d42]=_0x5ea345([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37a084,_0x37a084!=_0x5ea345([0x56,0x61,0x6c,0x69,0x64])&&_0x62a20b();}function _0x212ee0(){const _0x325807=window[_0x5ea345([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ea345([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ea345([0x6e,0x6f,0x77])]())[_0x5ea345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ea345([0x2e]),'');let _0x1df07d=_0x5ea345([0x68]);for(let _0x3412b2=0x0;_0x3412b2<_0x325807[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3412b2+=0x2){let _0x332b95=window[_0x5ea345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x325807[_0x5ea345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3412b2,_0x3412b2+0x2));_0x332b95>=_0xf73744[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x332b95-=_0xf73744[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1df07d+=_0xf73744[_0x332b95];}return _0x1df07d;}function _0x1516e9(){const _0x3e2b08=_0x59744f[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e]));if(0x3!=_0x3e2b08[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b3d59(_0x3e2b08[0x1]);function _0x4b3d59(_0x526868){const _0x535405=_0x3b753e(_0x526868);return _0x535405&&_0x5528c7()?_0x535405:null;function _0x5528c7(){const _0x585de0=_0x535405[_0x5ea345([0x6a,0x74,0x69])],_0x448308=window[_0x5ea345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x585de0[_0x5ea345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x585de0[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b58f0={..._0x535405,[_0x5ea345([0x6a,0x74,0x69])]:_0x585de0[_0x5ea345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x585de0[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b58f0[_0x5ea345([0x76,0x63])],_0x299765(_0x1b58f0)==_0x448308;}}}async function _0x31f5c8(){let _0x5d7651=!0x0;try{const _0x5cce39=_0x59744f[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e])),[_0x1d4c06,_0x243d64,_0x2c759c]=_0x5cce39;return _0x48bede(_0x1d4c06),await _0x5af9fe(_0x1d4c06,_0x243d64,_0x2c759c),_0x5d7651;}catch{return!0x1;}function _0x48bede(_0x3efb43){const _0x4470e2=_0x3b753e(_0x3efb43);_0x4470e2&&_0x4470e2[_0x5ea345([0x61,0x6c,0x67])]==_0x5ea345([0x45,0x53,0x32,0x35,0x36])||(_0x5d7651=!0x1);}async function _0x5af9fe(_0x11350c,_0x3cf9d9,_0x557df0){const _0x3bbba3=window[_0x5ea345([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ea345([0x66,0x72,0x6f,0x6d])](_0x5c14e3(_0x557df0),_0x543aa2=>_0x543aa2[_0x5ea345([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1062b5=new window[(_0x5ea345([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ea345([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11350c+_0x5ea345([0x2e])+_0x3cf9d9),_0x1b48dc=window[_0x5ea345([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ea345([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b48dc)return;const _0x23baf2=await _0x1b48dc[_0x5ea345([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ea345([0x6a,0x77,0x6b]),_0x1698dc,{[_0x5ea345([0x6e,0x61,0x6d,0x65])]:_0x5ea345([0x45,0x43,0x44,0x53,0x41]),[_0x5ea345([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ea345([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ea345([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b48dc[_0x5ea345([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ea345([0x6e,0x61,0x6d,0x65])]:_0x5ea345([0x45,0x43,0x44,0x53,0x41]),[_0x5ea345([0x68,0x61,0x73,0x68])]:{[_0x5ea345([0x6e,0x61,0x6d,0x65])]:_0x5ea345([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23baf2,_0x3bbba3,_0x1062b5)||(_0x5d7651=!0x1);}}function _0x3b753e(_0x3b04a3){return _0x3b04a3[_0x5ea345([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ea345([0x65,0x79]))?JSON[_0x5ea345([0x70,0x61,0x72,0x73,0x65])](_0x5c14e3(_0x3b04a3)):null;}function _0x5c14e3(_0x45705d){return window[_0x5ea345([0x61,0x74,0x6f,0x62])](_0x45705d[_0x5ea345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ea345([0x2b]))[_0x5ea345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ea345([0x2f])));}function _0x299765(_0x159018){let _0x3c064f=0x1505;function _0x66f668(_0x762a82){for(let _0x1dba1e=0x0;_0x1dba1e<_0x762a82[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dba1e++){const _0x17ce4d=_0x762a82[_0x5ea345([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1dba1e);_0x3c064f=(_0x3c064f<<0x5)+_0x3c064f+_0x17ce4d,_0x3c064f&=_0x3c064f;}}function _0x37f45d(_0x178708){Array[_0x5ea345([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x178708)?_0x178708[_0x5ea345([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37f45d):_0x178708&&typeof _0x178708==_0x5ea345([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ea345([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x178708)[_0x5ea345([0x73,0x6f,0x72,0x74])]()[_0x5ea345([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x205f66,_0x4d2b8a])=>{_0x66f668(_0x205f66),_0x37f45d(_0x4d2b8a);}):_0x66f668(window[_0x5ea345([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x178708));}return _0x37f45d(_0x159018),_0x3c064f>>>0x0;}function _0x19d997(_0x26ab8f){return _0x26ab8f[_0x5ea345([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ea345([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ea345([0x30]));}function _0x11510b(_0x238585){return _0x238585[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ea345([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ea345([0x6a,0x6f,0x69,0x6e])]('');}function _0x25eab8(){}function _0x5ea345(_0x7b2e01){const _0x19990a=_0x390d;return _0x7b2e01[_0x19990a(0x1ad)](_0x1301e0=>String[_0x19990a(0x196)](_0x1301e0))[_0x19990a(0x1dc)]('');}_0x5238d0(await _0x404f54());}(this);}[_0x4bf0b9(0x19f)](){const _0x54df29=_0x4bf0b9,_0x59e314=this[_0x54df29(0x1ce)][_0x54df29(0x1a4)][_0x54df29(0x194)];_0x59e314[_0x54df29(0x1b0)](_0x54df29(0x1a2))&&_0x59e314[_0x54df29(0x1cd)](_0x54df29(0x1a2),{'allowAttributes':[_0x54df29(0x1a3)]}),_0x59e314[_0x54df29(0x1b0)](_0x54df29(0x1c5))&&_0x59e314[_0x54df29(0x1cd)](_0x54df29(0x1c5),{'allowAttributes':[_0x54df29(0x1a3)]});}[_0x4bf0b9(0x1bd)](){const _0x135386=_0x4bf0b9,_0x36c92e=this[_0x135386(0x1ce)];_0x36c92e[_0x135386(0x1bf)][_0x135386(0x1ac)](_0x135386(0x1d0))[_0x135386(0x1e0)]({'model':_0x135386(0x1a3),'view':_0x135386(0x1a5)}),_0x36c92e[_0x135386(0x1bf)][_0x135386(0x1ac)](_0x135386(0x1d8))[_0x135386(0x1d4)]({'model':{'key':_0x135386(0x1a3),'value':_0x5edce7=>_0x5edce7[_0x135386(0x1c0)](_0x135386(0x1a5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x933e4=_0x36c92e[_0x135386(0x1e2)][_0x135386(0x1bb)](_0x135386(0x192));_0x933e4&&this[_0x135386(0x1b8)](_0x933e4,_0x135386(0x199),(_0x405ca0,[_0x99a668,_0x441909])=>{const _0xdbdf13=_0x135386;_0x99a668[_0xdbdf13(0x1d1)](_0xdbdf13(0x1a3),_0x441909);});}[_0x4bf0b9(0x1c3)](){const _0x3fb8fa=_0x4bf0b9,_0x3e0a00=this[_0x3fb8fa(0x1ce)][_0x3fb8fa(0x1cf)][_0x3fb8fa(0x1bb)](_0x3fb8fa(0x1b1))||{},_0x3b916b=this[_0x3fb8fa(0x1ce)][_0x3fb8fa(0x1cf)][_0x3fb8fa(0x1bb)](_0x3fb8fa(0x19e))||'';this[_0x3fb8fa(0x1b3)]=_0x4e32d4(_0x532bf9[_0x3fb8fa(0x1b9)],_0x3fb8fa(0x1ab),{..._0x3e0a00,'pubkey':_0x3b916b,'ctx-name':_0x3fb8fa(0x193)+this[_0x3fb8fa(0x195)],'sourceList':'','imgOnly':_0x3fb8fa(0x1e1),'removeCopyright':_0x3fb8fa(0x1e1),'localeName':this[_0x3fb8fa(0x1ce)][_0x3fb8fa(0x1da)][_0x3fb8fa(0x1b7)],'externalSourcesEmbedCss':_0x3fb8fa(0x1a6)}),this[_0x3fb8fa(0x1b3)][_0x3fb8fa(0x1ae)]=_0x65371c=>{const _0x498ffd=_0x3fb8fa;if(_0x498ffd(0x1d5)==_0x65371c)return _0x498ffd(0x1cb);},_0x532bf9[_0x3fb8fa(0x1b9)][_0x3fb8fa(0x1b2)][_0x3fb8fa(0x1c4)](this[_0x3fb8fa(0x1b3)]);}[_0x4bf0b9(0x1a1)](){const _0x5ef3c1=_0x4bf0b9;this[_0x5ef3c1(0x190)]=_0x4e32d4(_0x532bf9[_0x5ef3c1(0x1b9)],_0x5ef3c1(0x1c6),{'ctx-name':_0x5ef3c1(0x193)+this[_0x5ef3c1(0x195)]}),_0x532bf9[_0x5ef3c1(0x1b9)][_0x5ef3c1(0x1b2)][_0x5ef3c1(0x1c4)](this[_0x5ef3c1(0x190)]);}[_0x4bf0b9(0x1bc)](){const _0x2b356d=_0x4bf0b9,_0xf3ca32=this[_0x2b356d(0x1ce)][_0x2b356d(0x1e2)][_0x2b356d(0x1bb)](_0x2b356d(0x1df));_0xf3ca32&&this[_0x2b356d(0x1b8)](_0xf3ca32,_0x2b356d(0x198),()=>{const _0x1fc9ff=_0x2b356d,_0x531c11=this[_0x1fc9ff(0x1ce)][_0x1fc9ff(0x1a4)][_0x1fc9ff(0x1b9)][_0x1fc9ff(0x1ca)][_0x1fc9ff(0x1af)]();_0x531c11&&_0x531c11[_0x1fc9ff(0x1c0)](_0x1fc9ff(0x1a3))&&this[_0x1fc9ff(0x1ce)][_0x1fc9ff(0x1d9)][_0x1fc9ff(0x1ba)][_0x1fc9ff(0x1b4)](_0x1fc9ff(0x1a0),()=>{const _0x2bb08a=_0x1fc9ff;_0x83ee42(this[_0x2bb08a(0x1ce)],_0x531c11);});});const _0x1c3d92=this[_0x2b356d(0x1ce)][_0x2b356d(0x1e2)][_0x2b356d(0x1bb)](_0x2b356d(0x1c9));_0x1c3d92&&this[_0x2b356d(0x1b8)](_0x1c3d92,_0x2b356d(0x198),()=>{const _0x4824ea=_0x2b356d,_0x58d3dc=this[_0x4824ea(0x1ce)][_0x4824ea(0x1a4)][_0x4824ea(0x1b9)][_0x4824ea(0x1ca)][_0x4824ea(0x1af)]();_0x58d3dc&&_0x58d3dc[_0x4824ea(0x1c0)](_0x4824ea(0x1a3))&&this[_0x4824ea(0x1ce)][_0x4824ea(0x1d9)][_0x4824ea(0x1ba)][_0x4824ea(0x1b4)](_0x4824ea(0x1a0),()=>{const _0x311a97=_0x4824ea;_0x83ee42(this[_0x311a97(0x1ce)],_0x58d3dc);});});}}function _0x3534(){const _0xc026c3=['remove','1917565xBHoKr','input[uploadcare-file-input]','uploadcare.pubkey','_initSchema','render','_initCtx','imageBlock','uploadcareImageId','model','data-uc-image-id','\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','init','1836394xQtiJd','isOfficialPlugin','uc-config','for','map','iconHrefResolver','getSelectedElement','isRegistered','uploadcare.uploader','body','_configElement','once','PictureEditing','1129102KBDQFk','contentLanguage','listenTo','document','view','get','_initImageProcessingIndicator','_initConversion','requires','conversion','getAttribute','ctxElement','575600tVovbE','_initConfig','appendChild','imageInline','uc-upload-ctx-provider','afterInit','pluginName','uploadcareImageReplace','selection','#uc-icon-arrow-down','add','extend','editor','config','downcast','removeAttribute','querySelector','destroy','elementToAttribute','closeMax','15491752qLqasN','UploadcareEditing','upcast','editing','locale','4Ldgbfr','join','2147730RoMiKf','isPremiumPlugin','insertImage','attributeToAttribute','true','commands','_ctxElement','configElement','replaceImageSource','uploader-','schema','ucContextId','fromCharCode','href','execute','cleanupImage','6442212YCBQeB'];_0x3534=function(){return _0xc026c3;};return _0x3534();}
|
|
23
|
+
const _0x7246a1=_0xc614;function _0xc614(_0xe88b86,_0x442c67){const _0x58b022=_0x58b0();return _0xc614=function(_0xc614c4,_0x5d3966){_0xc614c4=_0xc614c4-0xaf;let _0x5dd73e=_0x58b022[_0xc614c4];return _0x5dd73e;},_0xc614(_0xe88b86,_0x442c67);}(function(_0x3d5082,_0x46db6e){const _0x435193=_0xc614,_0x68cff4=_0x3d5082();while(!![]){try{const _0x185732=-parseInt(_0x435193(0xdf))/0x1+-parseInt(_0x435193(0xb8))/0x2*(parseInt(_0x435193(0xf6))/0x3)+-parseInt(_0x435193(0xb2))/0x4*(parseInt(_0x435193(0xde))/0x5)+-parseInt(_0x435193(0xdb))/0x6+parseInt(_0x435193(0xd2))/0x7+parseInt(_0x435193(0xf0))/0x8+parseInt(_0x435193(0xb1))/0x9;if(_0x185732===_0x46db6e)break;else _0x68cff4['push'](_0x68cff4['shift']());}catch(_0x31bdb1){_0x68cff4['push'](_0x68cff4['shift']());}}}(_0x58b0,0xdf3ed));import{Plugin as _0x25df8b}from'ckeditor5/src/core.js';import{Dialog as _0x1c31b6}from'ckeditor5/src/ui.js';import{createElement as _0x1c201b,global as _0x490fe3,uid as _0xd153b6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x275ced}from'./uploadcarecommand.js';function _0x58b0(){const _0x376dce=['14605xPSFkh','517003cfbjTV','editing','conversion','body','contentLanguage','href','iconHrefResolver','editor','render','imageInline','fromCharCode','PictureEditing','init','uc-config','once','document','cleanupImage','543800SQsOjn','_configElement','destroy','upcast','_initConfig','querySelector','6249fdWiSJ','for','pluginName','uploadcare.pubkey','add','isOfficialPlugin','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','data-uc-image-id','extend','execute','afterInit','schema','uploadcareImageId','_initCtx','ctxElement','18359010HTkHWs','1252exmXjQ','true','selection','elementToAttribute','_initSchema','requires','192JUAAQo','replaceImageSource','isPremiumPlugin','uploadcare.uploader','imageBlock','uploadcareImageReplace','view','commands','getAttribute','join','getSelectedElement','isRegistered','downcast','model','closeMax','map','locale','insertImage','attributeToAttribute','get','_initImageProcessingIndicator','_ctxElement','UploadcareEditing','ucContextId','uploadcare','uc-upload-ctx-provider','10509443hiciyM','configElement','removeAttribute','#uc-icon-arrow-down','_initConversion','appendChild','config','uploader-','remove','6381342jiWjFZ','input[uploadcare-file-input]','listenTo'];_0x58b0=function(){return _0x376dce;};return _0x58b0();}import{UploadcareUploadAdapter as _0x3fb762}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x545154}from'./utils/editingutils.js';export class UploadcareEditing extends _0x25df8b{[_0x7246a1(0xf1)]=null;[_0x7246a1(0xcd)]=null;static get[_0x7246a1(0xf8)](){const _0x2bc404=_0x7246a1;return _0x2bc404(0xce);}static get[_0x7246a1(0xb7)](){const _0x386c73=_0x7246a1;return[_0x386c73(0xea),_0x3fb762,_0x1c31b6];}static get[_0x7246a1(0xfb)](){return!0x0;}static get[_0x7246a1(0xba)](){return!0x0;}[_0x7246a1(0xcf)];get[_0x7246a1(0xd3)](){const _0x37166c=_0x7246a1;return this[_0x37166c(0xf1)];}get[_0x7246a1(0xb0)](){const _0x5754fa=_0x7246a1;return this[_0x5754fa(0xcd)];}constructor(_0x2089a9){const _0x36ab3d=_0x7246a1;super(_0x2089a9),this[_0x36ab3d(0xcf)]=_0xd153b6();}[_0x7246a1(0xeb)](){const _0x3dde5d=_0x7246a1,_0x2b7826=this[_0x3dde5d(0xe6)];_0x2b7826[_0x3dde5d(0xbf)][_0x3dde5d(0xfa)](_0x3dde5d(0xd0),new _0x275ced(_0x2b7826));}[_0x7246a1(0x100)](){const _0x5d22e0=_0x7246a1;this[_0x5d22e0(0xb6)](),this[_0x5d22e0(0xd6)](),this[_0x5d22e0(0xf4)](),this[_0x5d22e0(0xaf)](),this[_0x5d22e0(0xcc)](),this[_0x5d22e0(0xdd)](this[_0x5d22e0(0xe6)],_0x5d22e0(0xf2),()=>{const _0x41b459=_0x5d22e0;this[_0x41b459(0xf1)]&&(this[_0x41b459(0xf1)][_0x41b459(0xda)](),this[_0x41b459(0xf1)]=null),this[_0x41b459(0xcd)]&&(this[_0x41b459(0xcd)][_0x41b459(0xda)](),this[_0x41b459(0xcd)]=null);const _0x5a88e6=_0x490fe3[_0x41b459(0xee)][_0x41b459(0xf5)](_0x41b459(0xdc));_0x5a88e6&&_0x5a88e6[_0x41b459(0xda)]();}),async function(_0x1c1aef){const _0x52e55a=_0x3351b9([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]),_0x5ef953=0x535f8c3a,_0x5d6038=0x5358f7a2^_0x5ef953,_0x3a4b4e=window[_0x3351b9([0x44,0x61,0x74,0x65])][_0x3351b9([0x6e,0x6f,0x77])](),_0x550437=_0x1c1aef[_0x3351b9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x592695=new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x240af1=>{_0x550437[_0x3351b9([0x6f,0x6e,0x63,0x65])](_0x3351b9([0x72,0x65,0x61,0x64,0x79]),_0x240af1);}),_0x3252d1={[_0x3351b9([0x6b,0x74,0x79])]:_0x3351b9([0x45,0x43]),[_0x3351b9([0x75,0x73,0x65])]:_0x3351b9([0x73,0x69,0x67]),[_0x3351b9([0x63,0x72,0x76])]:_0x3351b9([0x50,0x2d,0x32,0x35,0x36]),[_0x3351b9([0x78])]:_0x3351b9([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]),[_0x3351b9([0x79])]:_0x3351b9([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]),[_0x3351b9([0x61,0x6c,0x67])]:_0x3351b9([0x45,0x53,0x32,0x35,0x36])},_0x58c2a5=_0x550437[_0x3351b9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3351b9([0x67,0x65,0x74])](_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bc78f(){let _0x34254a,_0x2a49b7=null,_0x12f02e=null;try{if(_0x58c2a5==_0x3351b9([0x47,0x50,0x4c]))return _0x3351b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34254a=_0x1878be(),!_0x34254a)return _0x3351b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34254a[_0x3351b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12f02e=_0x1b0988(_0x34254a[_0x3351b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34254a[_0x3351b9([0x6a,0x74,0x69])])),await _0x3f8cad()?_0x385964()?_0x13bc82()?_0x3351b9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x293373()?(_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3351b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a49b7=_0x19ea79(_0x3351b9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3351b9([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a49b7=_0x19ea79(_0x3351b9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e58a8()):_0x3351b9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3351b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3351b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3351b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13bc82(){const _0xc1b905=[_0x3351b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3351b9([0x74,0x72,0x69,0x61,0x6c])][_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a4b4e/0x3e8:0xe10*_0x5d6038;return _0x34254a[_0x3351b9([0x65,0x78,0x70])]<_0xc1b905;}function _0x385964(){const _0x28f61e=_0x34254a[_0x3351b9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28f61e&&(!!_0x28f61e[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3351b9([0x2a]))||!!_0x28f61e[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3351b9([0x55,0x50,0x4c,0x43])));}function _0x293373(){const _0x30a5df=_0xc614,_0x5e67f5=_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e67f5||0x0==_0x5e67f5[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x119360}=new URL(window[_0x3351b9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x30a5df(0xe4)]);if(_0x5e67f5[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119360))return!0x0;const _0x5e9f00=_0x119360[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e]));return _0x5e67f5[_0x3351b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5236f8=>_0x5236f8[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3351b9([0x2a])))[_0x3351b9([0x6d,0x61,0x70])](_0x4500a7=>_0x4500a7[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e])))[_0x3351b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x104ced=>_0x104ced[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e9f00[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3351b9([0x6d,0x61,0x70])](_0x4959fa=>Array(_0x5e9f00[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4959fa[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3351b9([0x66,0x69,0x6c,0x6c])](_0x4959fa[0x0]===_0x3351b9([0x2a])?_0x3351b9([0x2a]):'')[_0x3351b9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4959fa))[_0x3351b9([0x73,0x6f,0x6d,0x65])](_0x2123a3=>_0x5e9f00[_0x3351b9([0x65,0x76,0x65,0x72,0x79])]((_0x4f80fc,_0x43e67e)=>_0x2123a3[_0x43e67e]===_0x4f80fc||_0x2123a3[_0x43e67e]===_0x3351b9([0x2a])));}function _0x3e58a8(){return _0x2a49b7&&_0x12f02e?new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9e29b1,_0x4d8a22)=>{_0x2a49b7[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x9e29b1,_0x4d8a22),_0x12f02e[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x164399=>{_0x164399!=_0x3351b9([0x56,0x61,0x6c,0x69,0x64])&&_0x9e29b1(_0x164399);},_0x4d8a22);}):_0x2a49b7||_0x12f02e||_0x3351b9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b0988(_0x5ef2e3,_0x14b8b4){return new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b334=>{if(_0x39c36f())return _0x33b334(_0x3351b9([0x56,0x61,0x6c,0x69,0x64]));_0x1c8589(),_0x550437[_0x3351b9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3351b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6d6dd6=!0x1;const _0x49abae=_0xd153b6();function _0x2177e8(_0x2ad1ab){return!!_0x2ad1ab&&(typeof _0x2ad1ab===_0x3351b9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ad1ab===_0x3351b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ad1ab[_0x3351b9([0x74,0x68,0x65,0x6e])]===_0x3351b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ad1ab[_0x3351b9([0x63,0x61,0x74,0x63,0x68])]===_0x3351b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bdb40(_0x3cf719){_0x2dd1f0(_0x3cf719)[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x504144=>{if(!_0x504144||_0x504144[_0x3351b9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3351b9([0x6f,0x6b]))return _0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x309061(_0x2e9e6f(_0x49abae+_0x14b8b4))!=_0x504144[_0x3351b9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3351b9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x404ced=>(_0x4f9b55(),_0x404ced),()=>{const _0x473395=_0x52d41f();return null==_0x473395?(_0x4f9b55(),_0x3351b9([0x56,0x61,0x6c,0x69,0x64])):_0x3351b9(_0x3a4b4e-_0x473395>(0x7753083a^_0x5ef953)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x33b334)[_0x3351b9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33b334(_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf63ceb=0x536962ba^_0x5ef953;function _0x4f9b55(){const _0x33c063=_0x3351b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309061(_0x2e9e6f(_0x5ef2e3)),_0x59c981=_0x428f14(_0x309061(window[_0x3351b9([0x4d,0x61,0x74,0x68])][_0x3351b9([0x63,0x65,0x69,0x6c])](_0x3a4b4e/_0xf63ceb)));window[_0x3351b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3351b9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33c063,_0x59c981);}function _0x52d41f(){const _0x8d5beb=_0x3351b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309061(_0x2e9e6f(_0x5ef2e3)),_0x35e3d1=window[_0x3351b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3351b9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8d5beb);return _0x35e3d1?window[_0x3351b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x428f14(_0x35e3d1),0x10)*_0xf63ceb:null;}function _0x2dd1f0(_0x37c67b){return new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22708a,_0x354825)=>{_0x37c67b[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x22708a,_0x354825),window[_0x3351b9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x354825,0x535e58fa^_0x5ef953);});}}_0x550437[_0x3351b9([0x6f,0x6e])](_0x3351b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x601ddf,_0x52138b)=>{if(_0x52138b[0x0]!=_0x5ef2e3)return _0x33b334(_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52138b[0x1]={..._0x52138b[0x1],[_0x3351b9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49abae};},{[_0x3351b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3351b9([0x68,0x69,0x67,0x68])}),_0x550437[_0x3351b9([0x6f,0x6e])](_0x3351b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ff2ae=>{_0x2177e8(_0x4ff2ae[_0x3351b9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6d6dd6=!0x0,_0x4bdb40(_0x4ff2ae[_0x3351b9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3351b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3351b9([0x6c,0x6f,0x77])}),_0x592695[_0x3351b9([0x74,0x68,0x65,0x6e])](()=>{_0x6d6dd6||_0x33b334(_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39c36f(){return _0x550437[_0x3351b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3351b9([0x76,0x69,0x65,0x77])][_0x3351b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3351b9([0x61,0x75,0x74,0x6f]);}function _0x1c8589(){_0x550437[_0x3351b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3351b9([0x76,0x69,0x65,0x77])][_0x3351b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3351b9([0x61,0x75,0x74,0x6f]);}}function _0x19ea79(_0x52d8c7){const _0x5fbd40=[new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b54f6=>setTimeout(_0x3b54f6,0x5356b2f6^_0x5ef953)),_0x592695[_0x3351b9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562406=>{let _0x28ccc0=0x0;_0x550437[_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3351b9([0x6f,0x6e])](_0x3351b9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c67fd,_0x177110)=>{_0x177110[0x0][_0x3351b9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28ccc0++,_0x28ccc0==(0x535f8dc2^_0x5ef953)&&(_0x562406(),_0x2c67fd[_0x3351b9([0x6f,0x66,0x66])]());});}))];return window[_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3351b9([0x72,0x61,0x63,0x65])](_0x5fbd40)[_0x3351b9([0x74,0x68,0x65,0x6e])](()=>_0x52d8c7);}async function _0x45770d(){await _0x592695,_0x550437[_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3351b9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a7734,_0x550437[_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3351b9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a7734,_0x550437[_0x3351b9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c28bb(_0xa0e0df){const _0x8987f4=_0x331346();_0x550437[_0x8987f4]=_0x3351b9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa0e0df,_0xa0e0df!=_0x3351b9([0x56,0x61,0x6c,0x69,0x64])&&_0x45770d();}function _0x331346(){const _0x1a1a1d=window[_0x3351b9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3351b9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3351b9([0x6e,0x6f,0x77])]())[_0x3351b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3351b9([0x2e]),'');let _0x864acf=_0x3351b9([0x68]);for(let _0x51948a=0x0;_0x51948a<_0x1a1a1d[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51948a+=0x2){let _0x2abdd9=window[_0x3351b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a1a1d[_0x3351b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51948a,_0x51948a+0x2));_0x2abdd9>=_0x52e55a[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2abdd9-=_0x52e55a[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x864acf+=_0x52e55a[_0x2abdd9];}return _0x864acf;}function _0x1878be(){const _0x4259c5=_0x58c2a5[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e]));if(0x3!=_0x4259c5[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b22bd(_0x4259c5[0x1]);function _0x2b22bd(_0x54cb06){const _0x5414f4=_0xd3471e(_0x54cb06);return _0x5414f4&&_0x484618()?_0x5414f4:null;function _0x484618(){const _0x27184f=_0x5414f4[_0x3351b9([0x6a,0x74,0x69])],_0x2c83e9=window[_0x3351b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27184f[_0x3351b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27184f[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e7ae7={..._0x5414f4,[_0x3351b9([0x6a,0x74,0x69])]:_0x27184f[_0x3351b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27184f[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e7ae7[_0x3351b9([0x76,0x63])],_0x2e9e6f(_0x2e7ae7)==_0x2c83e9;}}}async function _0x3f8cad(){let _0x2d1c84=!0x0;try{const _0x2152ea=_0x58c2a5[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e])),[_0x10c918,_0x13d4fe,_0x2f2f2d]=_0x2152ea;return _0x2e2a05(_0x10c918),await _0x44d5ae(_0x10c918,_0x13d4fe,_0x2f2f2d),_0x2d1c84;}catch{return!0x1;}function _0x2e2a05(_0x439394){const _0x5ed1ee=_0xd3471e(_0x439394);_0x5ed1ee&&_0x5ed1ee[_0x3351b9([0x61,0x6c,0x67])]==_0x3351b9([0x45,0x53,0x32,0x35,0x36])||(_0x2d1c84=!0x1);}async function _0x44d5ae(_0x3d5525,_0xcd2d2d,_0x4375f5){const _0x24c70a=window[_0x3351b9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3351b9([0x66,0x72,0x6f,0x6d])](_0xb4cbe0(_0x4375f5),_0x30b516=>_0x30b516[_0x3351b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x571584=new window[(_0x3351b9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3351b9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d5525+_0x3351b9([0x2e])+_0xcd2d2d),_0x2e369c=window[_0x3351b9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3351b9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e369c)return;const _0x37548c=await _0x2e369c[_0x3351b9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3351b9([0x6a,0x77,0x6b]),_0x3252d1,{[_0x3351b9([0x6e,0x61,0x6d,0x65])]:_0x3351b9([0x45,0x43,0x44,0x53,0x41]),[_0x3351b9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3351b9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3351b9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e369c[_0x3351b9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3351b9([0x6e,0x61,0x6d,0x65])]:_0x3351b9([0x45,0x43,0x44,0x53,0x41]),[_0x3351b9([0x68,0x61,0x73,0x68])]:{[_0x3351b9([0x6e,0x61,0x6d,0x65])]:_0x3351b9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37548c,_0x24c70a,_0x571584)||(_0x2d1c84=!0x1);}}function _0xd3471e(_0x1db985){return _0x1db985[_0x3351b9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3351b9([0x65,0x79]))?JSON[_0x3351b9([0x70,0x61,0x72,0x73,0x65])](_0xb4cbe0(_0x1db985)):null;}function _0xb4cbe0(_0x127819){return window[_0x3351b9([0x61,0x74,0x6f,0x62])](_0x127819[_0x3351b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3351b9([0x2b]))[_0x3351b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3351b9([0x2f])));}function _0x2e9e6f(_0x38058d){let _0x2e8d49=0x1505;function _0x5ef8ea(_0x5ca497){for(let _0x4f46d2=0x0;_0x4f46d2<_0x5ca497[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f46d2++){const _0x57bb53=_0x5ca497[_0x3351b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f46d2);_0x2e8d49=(_0x2e8d49<<0x5)+_0x2e8d49+_0x57bb53,_0x2e8d49&=_0x2e8d49;}}function _0x2ee8d4(_0x5a9cb8){Array[_0x3351b9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a9cb8)?_0x5a9cb8[_0x3351b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ee8d4):_0x5a9cb8&&typeof _0x5a9cb8==_0x3351b9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3351b9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a9cb8)[_0x3351b9([0x73,0x6f,0x72,0x74])]()[_0x3351b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a7f8e,_0x29a42e])=>{_0x5ef8ea(_0x1a7f8e),_0x2ee8d4(_0x29a42e);}):_0x5ef8ea(window[_0x3351b9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a9cb8));}return _0x2ee8d4(_0x38058d),_0x2e8d49>>>0x0;}function _0x309061(_0xac8f23){return _0xac8f23[_0x3351b9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3351b9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3351b9([0x30]));}function _0x428f14(_0x5cdf93){return _0x5cdf93[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3351b9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3351b9([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a7734(){}function _0x3351b9(_0x3e2ac0){const _0x5cd761=_0xc614;return _0x3e2ac0[_0x5cd761(0xc7)](_0x22947d=>String[_0x5cd761(0xe9)](_0x22947d))[_0x5cd761(0xc1)]('');}_0x3c28bb(await _0x4bc78f());}(this);}[_0x7246a1(0xb6)](){const _0xafd830=_0x7246a1,_0x2ea210=this[_0xafd830(0xe6)][_0xafd830(0xc5)][_0xafd830(0x101)];_0x2ea210[_0xafd830(0xc3)](_0xafd830(0xbc))&&_0x2ea210[_0xafd830(0xfe)](_0xafd830(0xbc),{'allowAttributes':[_0xafd830(0x102)]}),_0x2ea210[_0xafd830(0xc3)](_0xafd830(0xe8))&&_0x2ea210[_0xafd830(0xfe)](_0xafd830(0xe8),{'allowAttributes':[_0xafd830(0x102)]});}[_0x7246a1(0xd6)](){const _0x33256e=_0x7246a1,_0x43c8b3=this[_0x33256e(0xe6)];_0x43c8b3[_0x33256e(0xe1)][_0x33256e(0xf7)](_0x33256e(0xc4))[_0x33256e(0xca)]({'model':_0x33256e(0x102),'view':_0x33256e(0xfd)}),_0x43c8b3[_0x33256e(0xe1)][_0x33256e(0xf7)](_0x33256e(0xf3))[_0x33256e(0xb5)]({'model':{'key':_0x33256e(0x102),'value':_0x40489a=>_0x40489a[_0x33256e(0xc0)](_0x33256e(0xfd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2078f9=_0x43c8b3[_0x33256e(0xbf)][_0x33256e(0xcb)](_0x33256e(0xb9));_0x2078f9&&this[_0x33256e(0xdd)](_0x2078f9,_0x33256e(0xef),(_0x3b50ab,[_0x3caed7,_0xcca929])=>{const _0xfab00f=_0x33256e;_0x3caed7[_0xfab00f(0xd4)](_0xfab00f(0x102),_0xcca929);});}[_0x7246a1(0xf4)](){const _0x55d69f=_0x7246a1,_0x59c158=this[_0x55d69f(0xe6)][_0x55d69f(0xd8)][_0x55d69f(0xcb)](_0x55d69f(0xbb))||{},_0x5ed570=this[_0x55d69f(0xe6)][_0x55d69f(0xd8)][_0x55d69f(0xcb)](_0x55d69f(0xf9))||'';this[_0x55d69f(0xf1)]=_0x1c201b(_0x490fe3[_0x55d69f(0xee)],_0x55d69f(0xec),{..._0x59c158,'pubkey':_0x5ed570,'ctx-name':_0x55d69f(0xd9)+this[_0x55d69f(0xcf)],'sourceList':'','imgOnly':_0x55d69f(0xb3),'removeCopyright':_0x55d69f(0xb3),'localeName':this[_0x55d69f(0xe6)][_0x55d69f(0xc8)][_0x55d69f(0xe3)],'externalSourcesEmbedCss':_0x55d69f(0xfc)}),this[_0x55d69f(0xf1)][_0x55d69f(0xe5)]=_0x2309b7=>{const _0x32a380=_0x55d69f;if(_0x32a380(0xc6)==_0x2309b7)return _0x32a380(0xd5);},_0x490fe3[_0x55d69f(0xee)][_0x55d69f(0xe2)][_0x55d69f(0xd7)](this[_0x55d69f(0xf1)]);}[_0x7246a1(0xaf)](){const _0x17df0e=_0x7246a1;this[_0x17df0e(0xcd)]=_0x1c201b(_0x490fe3[_0x17df0e(0xee)],_0x17df0e(0xd1),{'ctx-name':_0x17df0e(0xd9)+this[_0x17df0e(0xcf)]}),_0x490fe3[_0x17df0e(0xee)][_0x17df0e(0xe2)][_0x17df0e(0xd7)](this[_0x17df0e(0xcd)]);}[_0x7246a1(0xcc)](){const _0x33ce41=_0x7246a1,_0x1b8183=this[_0x33ce41(0xe6)][_0x33ce41(0xbf)][_0x33ce41(0xcb)](_0x33ce41(0xc9));_0x1b8183&&this[_0x33ce41(0xdd)](_0x1b8183,_0x33ce41(0xff),()=>{const _0x507f11=_0x33ce41,_0x21284d=this[_0x507f11(0xe6)][_0x507f11(0xc5)][_0x507f11(0xee)][_0x507f11(0xb4)][_0x507f11(0xc2)]();_0x21284d&&_0x21284d[_0x507f11(0xc0)](_0x507f11(0x102))&&this[_0x507f11(0xe6)][_0x507f11(0xe0)][_0x507f11(0xbe)][_0x507f11(0xed)](_0x507f11(0xe7),()=>{const _0x39b9d8=_0x507f11;_0x545154(this[_0x39b9d8(0xe6)],_0x21284d);});});const _0x30e649=this[_0x33ce41(0xe6)][_0x33ce41(0xbf)][_0x33ce41(0xcb)](_0x33ce41(0xbd));_0x30e649&&this[_0x33ce41(0xdd)](_0x30e649,_0x33ce41(0xff),()=>{const _0xf82648=_0x33ce41,_0x88f6e4=this[_0xf82648(0xe6)][_0xf82648(0xc5)][_0xf82648(0xee)][_0xf82648(0xb4)][_0xf82648(0xc2)]();_0x88f6e4&&_0x88f6e4[_0xf82648(0xc0)](_0xf82648(0x102))&&this[_0xf82648(0xe6)][_0xf82648(0xe0)][_0xf82648(0xbe)][_0xf82648(0xed)](_0xf82648(0xe7),()=>{const _0x15a716=_0xf82648;_0x545154(this[_0x15a716(0xe6)],_0x88f6e4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3c3a33,ObservableMixin as _0x484bca}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x52bd2a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xf678a0}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xbb7ad3}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x43fed5}from'../../utils/uploadutils.js';import{getImageUrls as _0x336392,getImageDimension as _0x346887}from'../../utils/editingutils.js';import{isAncestor as _0x10188f}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x484bca(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x161b21,_0x116e07,_0x251537){super(),this['_editor']=_0x161b21,this['_dialog']=_0x116e07,this['_imageElement']=_0x251537,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 _0x3f7a1a=this['_imageElement'],_0x89d2d0=_0x3f7a1a['getAttribute']('uploadcareImageId'),_0x5967c8=_0x3f7a1a['getAttribute']('src');if(_0x89d2d0)await this['_loadImageInfo'](_0x89d2d0,_0x5967c8);else{if(this['_imageCache']['has'](_0x5967c8)){const _0x4a760c=this['_imageCache']['get'](_0x5967c8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a760c['url'],this['imageDimension']=_0x4a760c['dimension'],this['imageId']=_0x4a760c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51041e}=this['_editor'],t=_0x51041e['t'],_0x4ff086=new _0xbb7ad3(_0x51041e,this['imageStatus'],this['_attributes']);_0x4ff086['bind']('status')['to'](this,'imageStatus'),_0x4ff086['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4ff086['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4ff086['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4ff086,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xf678a0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4ff086,'position':_0x52bd2a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4ff086['focus']();},'onHide':()=>{_0x4ff086['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x328c50=>!_0x10188f(_0x328c50,_0x4ff086['element'])}});}['_loadImageInfo'](_0xc4c396,_0xd9f479){return _0x43fed5['getInfo'](_0xc4c396,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x44e642=>{const {width:_0x3fbd4f,height:_0x5bdb6d}=_0x44e642['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xd9f479,this['imageDimension']={'width':_0x3fbd4f,'height':_0x5bdb6d},this['imageId']=_0xc4c396;})['catch'](_0x2b1814=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b1814['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x358b47,_0x2ec367){return this['_getImageAsFile'](_0x358b47)['then'](_0x17f2ef=>_0x43fed5['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':_0x2ec367['signal'],'file':_0x17f2ef,'onProgress':_0x50d810=>{_0x50d810&&_0x50d810['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x50d810['value']));}}))['then'](_0x285637=>{const {width:_0x1364ac,height:_0x1a0514}=_0x285637['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x285637['cdnUrl'],this['imageDimension']={'width':_0x1364ac,'height':_0x1a0514},this['imageId']=_0x285637['uuid'],this['imageUploadProgress']=null;const _0x55bac8=_0x358b47['getAttribute']('src');this['_imageCache']['set'](_0x55bac8,{'id':_0x285637['uuid'],'url':_0x285637['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ef364=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ef364['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16c4e1,_0x176453){_0x16c4e1['on']('apply',(_0x3c0338,_0x449185)=>{this['_replaceImage'](_0x176453,_0x449185['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16c4e1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16c4e1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53d004,_0x2649dc,_0x57ce87){const _0x137f10=this['_editor'],{width:_0x3f4360,height:_0x115fd2}=_0x346887(_0x2649dc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xf02222,imageSources:_0x5021ff}=_0x336392(_0x2649dc,_0x3f4360);_0x137f10['model']['change'](_0x32091f=>{if('$graveyard'===_0x53d004['root']['rootName']){_0x137f10['execute']('insertImage',{'imageType':_0x53d004['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53d004['getAttributes']()),'uploadcareImageId':_0x57ce87,'src':_0xf02222,'sources':_0x5021ff,'width':_0x3f4360,'height':_0x115fd2}});const _0x5751e5=_0x53d004['getChildren']();_0x53d004=_0x137f10['model']['document']['selection']['getSelectedElement']();for(const _0x2483d9 of _0x5751e5)_0x32091f['append'](_0x32091f['cloneElement'](_0x2483d9),_0x53d004);}else _0x32091f['setSelection'](_0x53d004,'on'),_0x137f10['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53d004['getAttributes']()),'uploadcareImageId':_0x57ce87,'src':_0xf02222,'sources':_0x5021ff,'width':_0x3f4360,'height':_0x115fd2},_0x53d004);_0x32091f['setSelection'](_0x53d004,'on');});}async['_getImageAsFile'](_0x3040a2){const _0x19a3b7=_0x3c3a33['window'],_0xf1d3d5=_0x3c3a33['document']['location']['href'],_0x44947e=new _0x19a3b7['URL'](_0x3040a2['getAttribute']('src'),_0xf1d3d5);if('data:'===_0x44947e['protocol']){const _0x50c236=_0x44947e['href']['split'](','),_0x4039b5=_0x50c236[0x0]['match'](/:(.*?);/)[0x1],_0xc44889=_0x4039b5['split']('/')[0x1],_0x170db9=_0x19a3b7['atob'](_0x50c236[_0x50c236['length']-0x1]);let _0x515a4e=_0x170db9['length'];const _0x2ed7e8=new _0x19a3b7['Uint8Array'](_0x515a4e);for(;_0x515a4e--;)_0x2ed7e8[_0x515a4e]=_0x170db9['charCodeAt'](_0x515a4e);return new _0x19a3b7['File']([_0x2ed7e8],'image.'+_0xc44889,{'type':_0x4039b5});}const _0x48afaa=_0x44947e['href']['split']('/'),_0x670f60=_0x48afaa[_0x48afaa['length']-0x1],_0x3a2a78=_0x670f60['split']('.')[0x1];return _0x19a3b7['fetch'](_0x44947e['href'])['then'](_0x12c36f=>_0x12c36f['clone']()['blob']())['then'](_0x136df1=>new _0x19a3b7['File']([_0x136df1],_0x670f60,{'type':'image/'+_0x3a2a78}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2a3ade,_0x4525da){const _0x486c2d=_0xf674,_0x1d53bd=_0x2a3ade();while(!![]){try{const _0x1f2a63=parseInt(_0x486c2d(0x1ce))/0x1*(parseInt(_0x486c2d(0x1d0))/0x2)+-parseInt(_0x486c2d(0x1d8))/0x3*(parseInt(_0x486c2d(0x1d7))/0x4)+parseInt(_0x486c2d(0x1cf))/0x5+-parseInt(_0x486c2d(0x1d6))/0x6*(-parseInt(_0x486c2d(0x1db))/0x7)+parseInt(_0x486c2d(0x1d2))/0x8*(-parseInt(_0x486c2d(0x1d5))/0x9)+parseInt(_0x486c2d(0x1dc))/0xa+-parseInt(_0x486c2d(0x1cb))/0xb*(parseInt(_0x486c2d(0x1cd))/0xc);if(_0x1f2a63===_0x4525da)break;else _0x1d53bd['push'](_0x1d53bd['shift']());}catch(_0x125189){_0x1d53bd['push'](_0x1d53bd['shift']());}}}(_0x15bd,0x460f9));function _0xf674(_0x23767f,_0x27315e){const _0x15bd47=_0x15bd();return _0xf674=function(_0xf67440,_0x4b9f47){_0xf67440=_0xf67440-0x1ca;let _0x50456f=_0x15bd47[_0xf67440];return _0x50456f;},_0xf674(_0x23767f,_0x27315e);}import{View as _0x414ef9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x414ef9{constructor(_0x71a9f1,_0x56266a){const _0x346489=_0xf674;super(_0x71a9f1);const _0x4308b1=this[_0x346489(0x1d1)];this[_0x346489(0x1dd)](_0x346489(0x1ca),''),this[_0x346489(0x1d9)]({'tag':_0x346489(0x1d3),'attributes':{..._0x56266a,'class':[_0x346489(0x1cc),_0x346489(0x1da)],'ctx-name':_0x346489(0x1d4),'cdn-url':_0x4308b1['to'](_0x346489(0x1ca))}});}}function _0x15bd(){const _0x1b6eb7=['11862GBELxr','bindTemplate','40456RINfaQ','uc-cloud-image-editor','image-edit','333TpVyxk','384186wAhGPb','135776sChBGB','39Pfmhuq','setTemplate','ck-uploadcare-theme','56CVRYWN','1581540VDTcGX','set','imageSrc','720962cDOGyJ','uc-light','48TkeBGR','67jwvDmf','548695jeIIEd'];_0x15bd=function(){return _0x1b6eb7;};return _0x15bd();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1cb5d6}from'ckeditor5/src/icons.js';import{ButtonView as _0x27a99e,IconView as _0x3dbf3e,View as _0x3ecba1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3ecba1{constructor(_0x5a7735){super(_0x5a7735);const t=_0x5a7735['t'];this['set']('errorType',null);const _0xbf551e=new _0x27a99e(_0x5a7735);_0xbf551e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xbf551e['withText']=!0x0,_0xbf551e['class']='ck-button-action',_0xbf551e['on']('execute',()=>{this['fire']('retry');}),_0xbf551e['bind']('isVisible')['to'](this,'errorType',_0x363159=>'NotFound'!==_0x363159);const _0x4fd324=new _0x3dbf3e();_0x4fd324['content']=_0x1cb5d6,_0x4fd324['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x240709=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':[_0x4fd324,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x240709['to']('errorType',_0x42b90d=>t('NotFound'!==_0x42b90d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xbf551e]},{'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 _0x2aef7a,View as _0x1d5fbe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1d5fbe{constructor(_0x1ad67d){super(_0x1ad67d);const t=_0x1ad67d['t'],_0x2f2bf3=this['bindTemplate'],_0x5de93c=new _0x2aef7a();_0x5de93c['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':[_0x5de93c,{'text':_0x2f2bf3['to']('imageUploadProgress',_0x520c00=>t('Loading\x20image...')+'\x20('+(_0x520c00||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
|
-
|
|
23
|
+
const _0x527893=_0x2c3f;function _0xeec5(){const _0x563ca2=['getFocusableElement','54rDDpQE','change:status','_focusableView','_setView','ready','set','setTemplate','add','focus','addMany','retry','609380dcilXo','apply','render','clear','_editingView','toLowerCase','_addUploadcareImageEditorListeners','disconnect','once','length','uploading','error','10zFXyDL','_items','div','_loadingView','uc-cloud-image-editor','ck-uploadcare-form','status','cancel','309306XqcNoz','addEventListener','10248326XDvgYk','ck-reset_all-excluded','observe','688136qvOzAq','_errorView','detail','addedNodes','214109HwjcHO','_waitForImageEditorComponent','cdnUrl','fire','filter','468600BbCCMh','target','28QYHgFn','createCollection','9054phYdIH','querySelector','1570seUpKw','nodeName','element','_addErrorViewListeners'];_0xeec5=function(){return _0x563ca2;};return _0xeec5();}(function(_0x321628,_0x585d50){const _0x312dee=_0x2c3f,_0x28ab89=_0x321628();while(!![]){try{const _0x512bba=parseInt(_0x312dee(0x139))/0x1+parseInt(_0x312dee(0x160))/0x2*(-parseInt(_0x312dee(0x130))/0x3)+parseInt(_0x312dee(0x13e))/0x4+-parseInt(_0x312dee(0x144))/0x5*(parseInt(_0x312dee(0x142))/0x6)+parseInt(_0x312dee(0x140))/0x7*(-parseInt(_0x312dee(0x135))/0x8)+-parseInt(_0x312dee(0x149))/0x9*(-parseInt(_0x312dee(0x154))/0xa)+parseInt(_0x312dee(0x132))/0xb;if(_0x512bba===_0x585d50)break;else _0x28ab89['push'](_0x28ab89['shift']());}catch(_0xd4981){_0x28ab89['push'](_0x28ab89['shift']());}}}(_0xeec5,0x480ed));import{View as _0x5fa42}from'ckeditor5/src/ui.js';function _0x2c3f(_0x3481b6,_0x14e1f){const _0xeec585=_0xeec5();return _0x2c3f=function(_0x2c3f52,_0x2c81c5){_0x2c3f52=_0x2c3f52-0x12c;let _0x3de008=_0xeec585[_0x2c3f52];return _0x3de008;},_0x2c3f(_0x3481b6,_0x14e1f);}import{UploadcareImageEditFormLoadingView as _0x2bb2e8}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x566ff9}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5a2f9a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x295a73}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x295a73{[_0x527893(0x161)];[_0x527893(0x163)];[_0x527893(0x136)];[_0x527893(0x158)];[_0x527893(0x14b)];constructor(_0x365f65,_0x1bacfd,_0x25ea59){const _0x3b41e8=_0x527893;super(_0x365f65),this[_0x3b41e8(0x161)]=this[_0x3b41e8(0x141)](),this[_0x3b41e8(0x163)]=new _0x2bb2e8(_0x365f65),this[_0x3b41e8(0x136)]=new _0x566ff9(_0x365f65),this[_0x3b41e8(0x158)]=new _0x5a2f9a(_0x365f65,_0x25ea59),this[_0x3b41e8(0x14b)]=new _0x5fa42(_0x365f65),this[_0x3b41e8(0x14b)][_0x3b41e8(0x14f)](this[_0x3b41e8(0x148)]()),this[_0x3b41e8(0x14e)](_0x3b41e8(0x12e),_0x1bacfd),this[_0x3b41e8(0x14f)]({'tag':_0x3b41e8(0x162),'attributes':{'class':['ck',_0x3b41e8(0x133),_0x3b41e8(0x12d)],'tabindex':'-1'},'children':this[_0x3b41e8(0x161)]}),this[_0x3b41e8(0x14c)](),this[_0x3b41e8(0x15c)](_0x3b41e8(0x156),()=>{const _0x3ed125=_0x3b41e8;this[_0x3ed125(0x13a)](this[_0x3ed125(0x146)],_0x5b7e31=>{const _0x3b4199=_0x3ed125;this[_0x3b4199(0x15a)](_0x5b7e31);});}),this['on'](_0x3b41e8(0x14a),()=>{const _0x490724=_0x3b41e8;this[_0x490724(0x14c)]();}),this[_0x3b41e8(0x147)]();}[_0x527893(0x151)](){const _0x3de8c3=_0x527893;this[_0x3de8c3(0x146)][_0x3de8c3(0x151)]();}[_0x527893(0x14c)](){const _0x1c2044=_0x527893;switch(this[_0x1c2044(0x161)][_0x1c2044(0x157)](),this[_0x1c2044(0x12e)]){case _0x1c2044(0x15e):this[_0x1c2044(0x161)][_0x1c2044(0x150)](this[_0x1c2044(0x163)]);break;case _0x1c2044(0x15f):this[_0x1c2044(0x161)][_0x1c2044(0x150)](this[_0x1c2044(0x136)]);break;case _0x1c2044(0x14d):this[_0x1c2044(0x161)][_0x1c2044(0x152)]([this[_0x1c2044(0x158)],this[_0x1c2044(0x14b)]]);}}[_0x527893(0x13a)](_0x222712,_0x694e96){const _0x30b442=_0x527893,_0x2c0516=_0x30b442(0x12c),_0x36df58=_0x222712[_0x30b442(0x143)](_0x2c0516);if(_0x36df58)return _0x694e96(_0x36df58);const _0x4ae4d7=new MutationObserver(_0x597f5a=>{const _0x14cb43=_0x30b442,_0x2f3e01=_0x597f5a[_0x14cb43(0x13d)](_0xed4bb3=>_0xed4bb3[_0x14cb43(0x13f)]===_0x222712&&_0xed4bb3[_0x14cb43(0x138)][_0x14cb43(0x15d)]>0x0&&_0xed4bb3[_0x14cb43(0x138)][0x0][_0x14cb43(0x145)][_0x14cb43(0x159)]()===_0x2c0516);_0x2f3e01[_0x14cb43(0x15d)]&&(_0x4ae4d7[_0x14cb43(0x15b)](),_0x694e96(_0x2f3e01[0x0][_0x14cb43(0x138)][0x0]));});_0x4ae4d7[_0x30b442(0x134)](_0x222712,{'childList':!0x0,'subtree':!0x0});}[_0x527893(0x15a)](_0x572c3d){const _0x52068c=_0x527893;_0x572c3d[_0x52068c(0x131)](_0x52068c(0x155),_0x1593a8=>{const _0x48d60a=_0x52068c;this[_0x48d60a(0x13c)](_0x48d60a(0x155),{'imageSrc':_0x1593a8[_0x48d60a(0x137)][_0x48d60a(0x13b)]});}),_0x572c3d[_0x52068c(0x131)](_0x52068c(0x12f),()=>{const _0xd0a421=_0x52068c;this[_0xd0a421(0x13c)](_0xd0a421(0x12f));});}[_0x527893(0x147)](){const _0x319085=_0x527893;this[_0x319085(0x136)]['on'](_0x319085(0x153),()=>{const _0x33679b=_0x319085;this[_0x33679b(0x13c)](_0x33679b(0x153));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bd9df=_0x5ba6;(function(_0xae86ef,_0x66e547){const _0xc69bc6=_0x5ba6,_0x126cb9=_0xae86ef();while(!![]){try{const _0x2ed4a0=-parseInt(_0xc69bc6(0xfd))/0x1+-parseInt(_0xc69bc6(0xe4))/0x2*(parseInt(_0xc69bc6(0xf8))/0x3)+-parseInt(_0xc69bc6(0x102))/0x4*(parseInt(_0xc69bc6(0xe1))/0x5)+-parseInt(_0xc69bc6(0xe8))/0x6*(parseInt(_0xc69bc6(0xff))/0x7)+parseInt(_0xc69bc6(0xe3))/0x8*(parseInt(_0xc69bc6(0xf0))/0x9)+parseInt(_0xc69bc6(0xea))/0xa*(parseInt(_0xc69bc6(0xf1))/0xb)+-parseInt(_0xc69bc6(0xf4))/0xc*(-parseInt(_0xc69bc6(0xeb))/0xd);if(_0x2ed4a0===_0x66e547)break;else _0x126cb9['push'](_0x126cb9['shift']());}catch(_0x50b261){_0x126cb9['push'](_0x126cb9['shift']());}}}(_0x5aef,0x97d3f));import{Command as _0x35834f}from'ckeditor5/src/core.js';import{Dialog as _0x457372}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1f4431}from'./ui/uploadcareimageeditcontroller.js';function _0x5aef(){const _0x148de6=['4308tYMFqd','set','model','unbind','9gRlAVP','bind','getSelectedElement','get','requires','1051624jATfkd','document','133ikeXKf','refresh','plugins','92McrvGQ','uploadcare.allowExternalImagesEditing','145570wDeBrI','config','5024heNZQp','330886qgqhtt','isEnabled','element','isActive','130044YRyLrQ','execute','10QZAOIq','56251zPsYJs','imageInline','editor','selection','imageEditController','15948TPbSUv','6435649mYoBIt','_isEditable','imageBlock'];_0x5aef=function(){return _0x148de6;};return _0x5aef();}function _0x5ba6(_0x1420ff,_0x5a9573){const _0x5aef55=_0x5aef();return _0x5ba6=function(_0x5ba64d,_0x507347){_0x5ba64d=_0x5ba64d-0xe0;let _0x4bad81=_0x5aef55[_0x5ba64d];return _0x4bad81;},_0x5ba6(_0x1420ff,_0x5a9573);}import{createEditabilityChecker as _0xb519e}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x35834f{[_0x2bd9df(0xef)];static get[_0x2bd9df(0xfc)](){return[_0x457372];}[_0x2bd9df(0xf2)];constructor(_0x32163f){const _0x635b0e=_0x2bd9df;super(_0x32163f),this[_0x635b0e(0xef)]=void 0x0,this[_0x635b0e(0xf2)]=_0xb519e(_0x32163f[_0x635b0e(0xe2)][_0x635b0e(0xfb)](_0x635b0e(0xe0))||[]),this[_0x635b0e(0xf5)]({'isActive':!0x1});}[_0x2bd9df(0x100)](){const _0x17c20c=_0x2bd9df,_0x340064=this[_0x17c20c(0xed)][_0x17c20c(0xf6)][_0x17c20c(0xfe)][_0x17c20c(0xee)][_0x17c20c(0xfa)]();this[_0x17c20c(0xe5)]=this[_0x17c20c(0xf2)](_0x340064);}[_0x2bd9df(0xe9)](){const _0x541308=_0x2bd9df;this[_0x541308(0xef)]&&(this[_0x541308(0xf7)](_0x541308(0xe7)),this[_0x541308(0xef)]=void 0x0);const _0xa27306=this[_0x541308(0xed)][_0x541308(0xf6)][_0x541308(0xfe)][_0x541308(0xee)][_0x541308(0xfa)]();_0xa27306&&(_0xa27306['is'](_0x541308(0xe6),_0x541308(0xf3))||_0xa27306['is'](_0x541308(0xe6),_0x541308(0xec)))&&(this[_0x541308(0xef)]=new _0x1f4431(this[_0x541308(0xed)],this[_0x541308(0xed)][_0x541308(0x101)][_0x541308(0xfb)](_0x457372),_0xa27306),this[_0x541308(0xf9)](_0x541308(0xe7))['to'](this[_0x541308(0xef)],_0x541308(0xe7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8d9cd=_0x14a6;(function(_0x428291,_0x5e01ee){const _0x1741b1=_0x14a6,_0x5de85e=_0x428291();while(!![]){try{const _0x24f3b9=-parseInt(_0x1741b1(0x7e))/0x1+parseInt(_0x1741b1(0x8d))/0x2+parseInt(_0x1741b1(0x79))/0x3*(parseInt(_0x1741b1(0x86))/0x4)+-parseInt(_0x1741b1(0x82))/0x5+parseInt(_0x1741b1(0x8e))/0x6*(-parseInt(_0x1741b1(0x7c))/0x7)+-parseInt(_0x1741b1(0x88))/0x8+parseInt(_0x1741b1(0x7a))/0x9*(parseInt(_0x1741b1(0x7b))/0xa);if(_0x24f3b9===_0x5e01ee)break;else _0x5de85e['push'](_0x5de85e['shift']());}catch(_0x4c9073){_0x5de85e['push'](_0x5de85e['shift']());}}}(_0x5072,0x774a9));import{Plugin as _0x42ba05}from'ckeditor5/src/core.js';import{Notification as _0x1ace12}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x972bf}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x43e9fa}from'./uploadcareimagereplacecommand.js';function _0x5072(){const _0x9ec8ee=['2723166hwfWrX','42CkxxXe','28647UXXeMQ','5490DUDBlg','7TZsWeK','pluginName','598921digLJL','init','requires','isOfficialPlugin','991645GpYnPk','add','uploadcareImageEdit','ImageUtils','38536CCShZL','uploadcareImageReplace','1686832IapvgC','UploadcareImageEditEditing','isPremiumPlugin','ImageEditing','commands','136478JDhfoh'];_0x5072=function(){return _0x9ec8ee;};return _0x5072();}import{UploadcareEditing as _0x1836b1}from'../uploadcareediting.js';function _0x14a6(_0x10eb1a,_0x1c8673){const _0x5072c1=_0x5072();return _0x14a6=function(_0x14a6a6,_0x3aa4){_0x14a6a6=_0x14a6a6-0x79;let _0x192196=_0x5072c1[_0x14a6a6];return _0x192196;},_0x14a6(_0x10eb1a,_0x1c8673);}export class UploadcareImageEditEditing extends _0x42ba05{static get[_0x8d9cd(0x7d)](){const _0x269443=_0x8d9cd;return _0x269443(0x89);}static get[_0x8d9cd(0x80)](){const _0x305174=_0x8d9cd;return[_0x1836b1,_0x1ace12,_0x305174(0x85),_0x305174(0x8b)];}static get[_0x8d9cd(0x81)](){return!0x0;}static get[_0x8d9cd(0x8a)](){return!0x0;}[_0x8d9cd(0x7f)](){const _0x1046aa=_0x8d9cd,{editor:_0x5b6907}=this;_0x5b6907[_0x1046aa(0x8c)][_0x1046aa(0x83)](_0x1046aa(0x84),new _0x972bf(_0x5b6907)),_0x5b6907[_0x1046aa(0x8c)][_0x1046aa(0x83)](_0x1046aa(0x87),new _0x43e9fa(_0x5b6907));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2cadf3}from'ckeditor5/src/core.js';import{ButtonView as _0x5b85e7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x111eab}from'ckeditor5/src/icons.js';import{createElement as _0x4c5d6f}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 _0x2cadf3{['_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 _0x2fa903=this['editor'];_0x2fa903['ui']['componentFactory']['add']('uploadcareImageEdit',_0x47a307=>{const _0x1e0e8d=_0x2fa903['commands']['get']('uploadcareImageEdit'),_0x1b5535=new _0x5b85e7(_0x47a307),t=_0x47a307['t'];return _0x1b5535['set']({'icon':_0x111eab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1b5535['bind']('isEnabled')['to'](_0x1e0e8d),_0x1b5535['bind']('isOn')['to'](_0x1e0e8d,'isActive'),this['listenTo'](_0x1b5535,'execute',()=>{_0x2fa903['execute']('uploadcareImageEdit'),_0x2fa903['editing']['view']['focus']();}),_0x1b5535;}),this['_initConfig']();}['_initConfig'](){const _0x478008=_0x4c5d6f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x478008),this['listenTo'](this['editor'],'destroy',()=>{_0x478008['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x215b(_0x3258e9,_0x31214d){const _0x484ff8=_0x484f();return _0x215b=function(_0x215bc7,_0x1a7ccd){_0x215bc7=_0x215bc7-0x1bd;let _0x3967f5=_0x484ff8[_0x215bc7];return _0x3967f5;},_0x215b(_0x3258e9,_0x31214d);}const _0x59b861=_0x215b;(function(_0x39c409,_0xf82442){const _0x595365=_0x215b,_0x14721f=_0x39c409();while(!![]){try{const _0x42863d=parseInt(_0x595365(0x1d0))/0x1*(-parseInt(_0x595365(0x1cf))/0x2)+parseInt(_0x595365(0x1c9))/0x3*(-parseInt(_0x595365(0x1d5))/0x4)+parseInt(_0x595365(0x1d7))/0x5*(parseInt(_0x595365(0x1d2))/0x6)+-parseInt(_0x595365(0x1c0))/0x7*(-parseInt(_0x595365(0x1d4))/0x8)+-parseInt(_0x595365(0x1c5))/0x9*(parseInt(_0x595365(0x1cb))/0xa)+-parseInt(_0x595365(0x1bd))/0xb+-parseInt(_0x595365(0x1c4))/0xc*(-parseInt(_0x595365(0x1d8))/0xd);if(_0x42863d===_0xf82442)break;else _0x14721f['push'](_0x14721f['shift']());}catch(_0x142844){_0x14721f['push'](_0x14721f['shift']());}}}(_0x484f,0x1e20d));function _0x484f(){const _0x252642=['sizes','537220lKnzKA','1157tkNdPN','getSelectedElement','129745SBJoda','change','execute','7oGCNJk','selection','document','removeAttribute','49848oDkLse','64899sRGxfE','imageInline','model','editor','3iluhhC','setAttributes','260mcDgVb','element','isEnabled','refresh','99054QhFdsk','4OxWHFb','imageBlock','6TLsdRn','srcset','460744UCnpoG','55796BDoAcM'];_0x484f=function(){return _0x252642;};return _0x484f();}import{Command as _0x2c6ca2}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2c6ca2{[_0x59b861(0x1ce)](){const _0x5a7c56=_0x59b861,_0x41073c=this[_0x5a7c56(0x1c8)][_0x5a7c56(0x1c7)][_0x5a7c56(0x1c2)][_0x5a7c56(0x1c1)][_0x5a7c56(0x1d9)]();this[_0x5a7c56(0x1cd)]=Boolean(_0x41073c&&(_0x41073c['is'](_0x5a7c56(0x1cc),_0x5a7c56(0x1d1))||_0x41073c['is'](_0x5a7c56(0x1cc),_0x5a7c56(0x1c6))));}[_0x59b861(0x1bf)](_0x58efd6){const _0x581186=_0x59b861,_0x121423=this[_0x581186(0x1c8)][_0x581186(0x1c7)][_0x581186(0x1c2)][_0x581186(0x1c1)][_0x581186(0x1d9)]();this[_0x581186(0x1c8)][_0x581186(0x1c7)][_0x581186(0x1be)](_0x1e400b=>{const _0x518798=_0x581186;_0x1e400b[_0x518798(0x1ca)](_0x58efd6,_0x121423),_0x1e400b[_0x518798(0x1c3)](_0x518798(0x1d3),_0x121423),_0x1e400b[_0x518798(0x1c3)](_0x518798(0x1d6),_0x121423);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x12f4(){var _0x5bc3fe=['1526628nCgzwU','2748136ItaOCb','4bMdbhl','9956844VjHqiD','UploadcareImageEdit','7PHQyAT','10ssnetS','requires','26176854yVKBZL','isOfficialPlugin','5gvOGGH','2214136BnaoKM','1958511xNhKqS','isPremiumPlugin','pluginName','1317396ouOxgo'];_0x12f4=function(){return _0x5bc3fe;};return _0x12f4();}function _0x40e9(_0x254b70,_0x3ea761){var _0x12f402=_0x12f4();return _0x40e9=function(_0x40e97b,_0x2b5fdb){_0x40e97b=_0x40e97b-0x1c0;var _0x261e12=_0x12f402[_0x40e97b];return _0x261e12;},_0x40e9(_0x254b70,_0x3ea761);}var _0x358779=_0x40e9;(function(_0x3924ca,_0x4cd972){var _0x4b796c=_0x40e9,_0x58edd7=_0x3924ca();while(!![]){try{var _0x34b2c0=-parseInt(_0x4b796c(0x1ce))/0x1+-parseInt(_0x4b796c(0x1c9))/0x2+-parseInt(_0x4b796c(0x1ca))/0x3*(-parseInt(_0x4b796c(0x1c0))/0x4)+parseInt(_0x4b796c(0x1c8))/0x5*(-parseInt(_0x4b796c(0x1cd))/0x6)+parseInt(_0x4b796c(0x1c3))/0x7*(-parseInt(_0x4b796c(0x1cf))/0x8)+parseInt(_0x4b796c(0x1c1))/0x9+parseInt(_0x4b796c(0x1c4))/0xa*(parseInt(_0x4b796c(0x1c6))/0xb);if(_0x34b2c0===_0x4cd972)break;else _0x58edd7['push'](_0x58edd7['shift']());}catch(_0xd1d9d5){_0x58edd7['push'](_0x58edd7['shift']());}}}(_0x12f4,0xe6008));import{Plugin as _0x2a4737}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x54c74b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x11bb72}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2a4737{static get[_0x358779(0x1cc)](){var _0x40c163=_0x358779;return _0x40c163(0x1c2);}static get[_0x358779(0x1c5)](){return[_0x54c74b,_0x11bb72];}static get[_0x358779(0x1c7)](){return!0x0;}static get[_0x358779(0x1cb)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x15f0f7=_0x33d6;(function(_0x581604,_0x54b3c3){const _0x3cf3f7=_0x33d6,_0x58aea0=_0x581604();while(!![]){try{const _0x1534fc=parseInt(_0x3cf3f7(0xf7))/0x1+-parseInt(_0x3cf3f7(0x11c))/0x2*(-parseInt(_0x3cf3f7(0xf5))/0x3)+parseInt(_0x3cf3f7(0xfb))/0x4*(-parseInt(_0x3cf3f7(0xfc))/0x5)+parseInt(_0x3cf3f7(0x102))/0x6+parseInt(_0x3cf3f7(0x132))/0x7+-parseInt(_0x3cf3f7(0x10b))/0x8+parseInt(_0x3cf3f7(0x118))/0x9*(-parseInt(_0x3cf3f7(0x100))/0xa);if(_0x1534fc===_0x54b3c3)break;else _0x58aea0['push'](_0x58aea0['shift']());}catch(_0x592786){_0x58aea0['push'](_0x58aea0['shift']());}}}(_0x24e1,0x6585a));import{Plugin as _0x35c097}from'ckeditor5/src/core.js';function _0x33d6(_0x2c03ac,_0x47e2d8){const _0x24e1b4=_0x24e1();return _0x33d6=function(_0x33d6c8,_0x4fb807){_0x33d6c8=_0x33d6c8-0xf2;let _0x39afcc=_0x24e1b4[_0x33d6c8];return _0x39afcc;},_0x33d6(_0x2c03ac,_0x47e2d8);}import{IconDropbox as _0x338f44,IconFacebook as _0x6b610a,IconGoogleDrive as _0x650c13,IconGooglePhotos as _0x4b414d,IconUploadcareImageUpload as _0x58f314,IconUploadcareLink as _0x232ebe,IconOneDrive as _0x4ad03}from'ckeditor5/src/icons.js';import{ButtonView as _0x20d70d,MenuBarMenuListItemButtonView as _0x50e607}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x59dc91}from'./uploadcareconfig.js';import{getTranslation as _0x275015}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x24e1(){const _0x16f286=['Local','assetManager','expired','licenseKey','uploadcareLicenseKeyInvalid','GPhotos','uploadcare','forEach','init','text','_createButton','editor','216570mfdNpd','pluginName','496002zsTIVJ','_showLicenseError','push','commands','2926480qHMmsb','5VWDztB','uploadcareLicenseKeyValid','invalid','ImageInsertUI','100efiTdX','map','806478FBpdoM','_createToolbarButton','evaluationLimit','Uploadcare','uploadcare.uploader.sourceList','label','has','plugins','_createDropdownButtons','1631736ZiMrHp','get','Facebook','uploadcareLicenseKeyTrialLimit','bind','domainLimit','config','Insert','reduce','OneDrive','uploadcareLicenseKeyUsageLimit','GDrive','registerIntegration','572211pUvpfD','execute','isImageSelected','tooltip','16MrsEnZ','uploadcareLicenseKeyDomainLimit','_createMenuBarButtons','Replace','_licenseKeyCheckInterval','upload','isEnabled','featureNotAllowed','isPremiumPlugin','destroy','URL','url','uploadcareLicenseKeyExpired','_getIntegrationKey','UploadcareUI','afterInit','isOfficialPlugin','locale','uploadcareLicenseKeyEvaluationLimit','Dropbox','icon','shortText','5454932ZmnkPa','uploadcareLicenseKeyNotAllowed','type','usageLimit','entries','withText','_normalizeConfigSourceList','trialLimit'];_0x24e1=function(){return _0x16f286;};return _0x24e1();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x35c097{[_0x15f0f7(0x13d)];[_0x15f0f7(0x120)];static get[_0x15f0f7(0xf6)](){const _0x3210b0=_0x15f0f7;return _0x3210b0(0x12a);}static get[_0x15f0f7(0x12c)](){return!0x0;}static get[_0x15f0f7(0x124)](){return!0x0;}[_0x15f0f7(0x142)](){const _0x4a42b0=_0x15f0f7;this[_0x4a42b0(0x13d)]=this[_0x4a42b0(0xf4)][_0x4a42b0(0x111)][_0x4a42b0(0x10c)](_0x4a42b0(0x13d));const _0x101c7e=this[_0x4a42b0(0xf4)];this[_0x4a42b0(0x120)]=setInterval(()=>{const _0x136433=_0x4a42b0;let _0x5d799c;for(const _0x2c81b7 in _0x101c7e){const _0x364ac4=_0x2c81b7,_0x32ce60=_0x101c7e[_0x364ac4];if(_0x136433(0xfd)==_0x32ce60||_0x136433(0x13e)==_0x32ce60||_0x136433(0x128)==_0x32ce60||_0x136433(0x11d)==_0x32ce60||_0x136433(0x133)==_0x32ce60||_0x136433(0x12e)==_0x32ce60||_0x136433(0x10e)==_0x32ce60||_0x136433(0x115)==_0x32ce60){delete _0x101c7e[_0x364ac4],_0x5d799c=_0x32ce60,clearInterval(this[_0x136433(0x120)]),this[_0x136433(0x120)]=void 0x0;break;}}_0x136433(0x13e)==_0x5d799c&&_0x101c7e[_0x136433(0xf8)](_0x136433(0xfe)),_0x136433(0x128)==_0x5d799c&&_0x101c7e[_0x136433(0xf8)](_0x136433(0x13c)),_0x136433(0x11d)==_0x5d799c&&_0x101c7e[_0x136433(0xf8)](_0x136433(0x110)),_0x136433(0x133)==_0x5d799c&&_0x101c7e[_0x136433(0xf8)](_0x136433(0x123),_0x136433(0x105)),_0x136433(0x12e)==_0x5d799c&&_0x101c7e[_0x136433(0xf8)](_0x136433(0x104)),_0x136433(0x10e)==_0x5d799c&&_0x101c7e[_0x136433(0xf8)](_0x136433(0x139)),_0x136433(0x115)==_0x5d799c&&_0x101c7e[_0x136433(0xf8)](_0x136433(0x135));},0x3e8);}[_0x15f0f7(0x12b)](){const _0x120bdd=_0x15f0f7,{editor:_0x4efc3c}=this,_0x44b99e=_0x4efc3c[_0x120bdd(0xfa)][_0x120bdd(0x10c)](_0x120bdd(0x140));if(!_0x44b99e)return;const _0x48fe3b=this[_0x120bdd(0x138)](_0x4efc3c[_0x120bdd(0x111)][_0x120bdd(0x10c)](_0x120bdd(0x106)))[_0x120bdd(0x113)]((_0x2da01a,_0x1520f)=>{const _0x36bdf2=_0x120bdd,_0x3d6c1f=this[_0x36bdf2(0x129)](_0x1520f[_0x36bdf2(0x134)]);return _0x2da01a[_0x3d6c1f]||(_0x2da01a[_0x3d6c1f]=[]),_0x2da01a[_0x3d6c1f][_0x36bdf2(0xf9)](_0x1520f),_0x2da01a;},{});_0x4efc3c[_0x120bdd(0x109)][_0x120bdd(0x108)](_0x120bdd(0xff))&&_0x4efc3c[_0x120bdd(0xfa)][_0x120bdd(0x10c)](_0x120bdd(0x140))&&Object[_0x120bdd(0x136)](_0x48fe3b)[_0x120bdd(0x141)](([_0x2f40e5,_0x3b8a3f])=>{const _0x56bfda=_0x120bdd;_0x4efc3c[_0x56bfda(0x109)][_0x56bfda(0x10c)](_0x56bfda(0xff))[_0x56bfda(0x117)]({'name':_0x2f40e5,'observable':()=>_0x44b99e,'buttonViewCreator':()=>this[_0x56bfda(0x103)](_0x3b8a3f),'formViewCreator':()=>this[_0x56bfda(0x10a)](_0x3b8a3f),'menuBarButtonViewCreator':()=>this[_0x56bfda(0x11e)](_0x3b8a3f),'override':_0x56bfda(0x13b)!==_0x2f40e5});});}[_0x15f0f7(0x125)](){const _0xd902d3=_0x15f0f7;super[_0xd902d3(0x125)](),this[_0xd902d3(0x120)]&&clearInterval(this[_0xd902d3(0x120)]);}[_0x15f0f7(0x138)](_0x37c44e){const _0x1a54ef=_0x15f0f7,{locale:_0x59ec0b}=this[_0x1a54ef(0xf4)];return _0x37c44e[_0x1a54ef(0x101)](_0x197990=>{const _0x357bdb=_0x1a54ef,_0xe476fd=_0x275015(_0x59ec0b,_0x197990,_0x357bdb(0x112));switch(_0x197990){case _0x59dc91[_0x357bdb(0x13a)]:return{'icon':_0x58f314,'type':_0x59dc91[_0x357bdb(0x13a)],..._0xe476fd};case _0x59dc91[_0x357bdb(0x126)]:return{'icon':_0x232ebe,'type':_0x59dc91[_0x357bdb(0x126)],..._0xe476fd};case _0x59dc91[_0x357bdb(0x12f)]:return{'icon':_0x338f44,'type':_0x59dc91[_0x357bdb(0x12f)],..._0xe476fd};case _0x59dc91[_0x357bdb(0x10d)]:return{'icon':_0x6b610a,'type':_0x59dc91[_0x357bdb(0x10d)],..._0xe476fd};case _0x59dc91[_0x357bdb(0x116)]:return{'icon':_0x650c13,'type':_0x59dc91[_0x357bdb(0x116)],..._0xe476fd};case _0x59dc91[_0x357bdb(0x13f)]:return{'icon':_0x4b414d,'type':_0x59dc91[_0x357bdb(0x13f)],..._0xe476fd};case _0x59dc91[_0x357bdb(0x114)]:return{'icon':_0x4ad03,'type':_0x59dc91[_0x357bdb(0x114)],..._0xe476fd};}});}[_0x15f0f7(0x129)](_0x124091){const _0x5aee7c=_0x15f0f7;switch(_0x124091){case _0x59dc91[_0x5aee7c(0x13a)]:return _0x5aee7c(0x121);case _0x59dc91[_0x5aee7c(0x126)]:return _0x5aee7c(0x127);default:return _0x5aee7c(0x13b);}}[_0x15f0f7(0xf3)](_0x2ebce2,_0x26092b){const _0x4a6a7b=_0x15f0f7,_0x339922=this[_0x4a6a7b(0xf4)],_0x648970=new _0x2ebce2(_0x339922[_0x4a6a7b(0x12d)]),_0x4722cc=_0x339922[_0x4a6a7b(0xfa)][_0x4a6a7b(0x10c)](_0x4a6a7b(0x140));return _0x648970[_0x4a6a7b(0x10f)](_0x4a6a7b(0x122))['to'](_0x4722cc),_0x648970['on'](_0x4a6a7b(0x119),()=>{const _0x4ed03d=_0x4a6a7b;_0x4722cc[_0x4ed03d(0x119)](_0x26092b);}),_0x648970;}[_0x15f0f7(0x103)](_0x372505){const _0x32ea47=_0x15f0f7,{locale:_0x32d661}=this[_0x32ea47(0xf4)],_0x16d129=this[_0x32ea47(0xf4)][_0x32ea47(0x109)][_0x32ea47(0x10c)](_0x32ea47(0xff)),_0xaf279a=_0x372505[0x0],_0xb28c1d=this[_0x32ea47(0xf3)](_0x20d70d,_0xaf279a[_0x32ea47(0x134)]);return _0xb28c1d[_0x32ea47(0x130)]=_0xaf279a[_0x32ea47(0x130)],_0xb28c1d[_0x32ea47(0x10f)](_0x32ea47(0x107))['to'](_0x16d129,_0x32ea47(0x11a),_0x55ba5d=>_0x275015(_0x32d661,_0xaf279a[_0x32ea47(0x134)],_0x55ba5d?_0x32ea47(0x11f):_0x32ea47(0x112))[_0x32ea47(0xf2)]),_0xb28c1d[_0x32ea47(0x11b)]=!0x0,_0xb28c1d;}[_0x15f0f7(0x10a)](_0x68c2af){const _0x258458=_0x15f0f7,{locale:_0x24aca2}=this[_0x258458(0xf4)],_0x3e4451=this[_0x258458(0xf4)][_0x258458(0x109)][_0x258458(0x10c)](_0x258458(0xff));return _0x68c2af[_0x258458(0x101)](_0x17b5ec=>{const _0x593eba=_0x258458,_0x5513e3=this[_0x593eba(0xf3)](_0x20d70d,_0x17b5ec[_0x593eba(0x134)]);return _0x5513e3[_0x593eba(0x137)]=!0x0,_0x5513e3[_0x593eba(0x130)]=_0x17b5ec[_0x593eba(0x130)],_0x5513e3[_0x593eba(0x10f)](_0x593eba(0x107))['to'](_0x3e4451,_0x593eba(0x11a),_0x565691=>_0x275015(_0x24aca2,_0x17b5ec[_0x593eba(0x134)],_0x565691?_0x593eba(0x11f):_0x593eba(0x112))[_0x593eba(0xf2)]),_0x5513e3;});}[_0x15f0f7(0x11e)](_0x1d835a){const _0x2b6542=_0x15f0f7;return _0x1d835a[_0x2b6542(0x101)](_0x13640c=>{const _0x33ddad=_0x2b6542,_0x5baf53=this[_0x33ddad(0xf3)](_0x50e607,_0x13640c[_0x33ddad(0x134)]);return _0x5baf53[_0x33ddad(0x130)]=_0x13640c[_0x33ddad(0x130)],_0x5baf53[_0x33ddad(0x107)]=_0x13640c[_0x33ddad(0x131)],_0x5baf53;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xcbc18c}from'ckeditor5/src/core.js';import{FileRepository as _0x16f005}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2c5da8}from'./uploadcareediting.js';import{UploadUtils as _0x1ae357}from'./utils/uploadutils.js';import{getImageUrls as _0x72167d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xcbc18c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x16f005,_0x2c5da8];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x109515=this['editor'];if(!!!_0x109515['config']['get']('uploadcare'))return;_0x109515['plugins']['get'](_0x16f005)['createUploadAdapter']=_0x433950=>new k(_0x433950,_0x109515),_0x109515['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x31bd3a,{imageElement:_0x9ceb4a,data:_0xd112dd})=>{_0x109515['model']['change'](_0x56871c=>{_0x56871c['setAttribute']('uploadcareImageId',_0xd112dd['uploadcareImageId'],_0x9ceb4a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x343a30,_0x15950a){this['loader']=_0x343a30,this['editor']=_0x15950a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3a2967=await this['loader']['file'];return _0x1ae357['upload']({'file':_0x3a2967,'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':_0x498571=>{_0x498571&&_0x498571['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x498571['value']);}})['then'](async _0x58c6a7=>{const {imageFallbackUrl:_0x3306c4,imageSources:_0x1beee0}=_0x72167d(_0x58c6a7['cdnUrl'],_0x58c6a7['imageInfo']['width']);return{'uploadcareImageId':_0x58c6a7['uuid'],'default':_0x3306c4,'sources':_0x1beee0};})['catch'](()=>{const _0x4f3e15=t('Cannot\x20upload\x20file:')+('\x20'+_0x3a2967['name']+'.');return Promise['reject'](_0x4f3e15);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x143696}from'../uploadcareconfig.js';export function getTranslation(_0x3e39c6,_0x4785dc,_0x14fdcd){const t=_0x3e39c6['t'],_0x4089c1=_0x3e39c6['t'];switch(_0x4785dc){case _0x143696['Local']:return{'text':_0x4089c1('Insert'===_0x14fdcd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4089c1('From\x20computer')};case _0x143696['URL']:return{'text':'Insert'===_0x14fdcd?_0x4089c1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4089c1('Via\x20URL')};case _0x143696['Dropbox']:return{'text':t('Insert'===_0x14fdcd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x143696['Facebook']:return{'text':t('Insert'===_0x14fdcd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x143696['GDrive']:return{'text':t('Insert'===_0x14fdcd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x143696['GPhotos']:return{'text':t('Insert'===_0x14fdcd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x143696['OneDrive']:return{'text':t('Insert'===_0x14fdcd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4785dc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x27a9(_0x3a4e4f,_0x1fad7e){var _0x5bbbdb=_0x5bbb();return _0x27a9=function(_0x27a972,_0x4f07c2){_0x27a972=_0x27a972-0x16a;var _0xdde421=_0x5bbbdb[_0x27a972];return _0xdde421;},_0x27a9(_0x3a4e4f,_0x1fad7e);}var _0x4aef8e=_0x27a9;function _0x5bbb(){var _0x577cdf=['1981420yYySRp','forwardCycle','focusCycler','14732SWWHJA','true','createCollection','4529815HoZWBr','21mfLpuM','2176232NtEyIg','bindTemplate','div','116gICELl','393132nwkhMu','14665662UXCYHo','797481onPrDJ','fire','getFocusableElement','focusTracker'];_0x5bbb=function(){return _0x577cdf;};return _0x5bbb();}(function(_0x5e86f1,_0x352284){var _0x48d4b2=_0x27a9,_0x531fbd=_0x5e86f1();while(!![]){try{var _0x3d72b8=parseInt(_0x48d4b2(0x170))/0x1*(parseInt(_0x48d4b2(0x178))/0x2)+parseInt(_0x48d4b2(0x17b))/0x3+-parseInt(_0x48d4b2(0x16d))/0x4+-parseInt(_0x48d4b2(0x173))/0x5+-parseInt(_0x48d4b2(0x179))/0x6+-parseInt(_0x48d4b2(0x174))/0x7*(parseInt(_0x48d4b2(0x175))/0x8)+parseInt(_0x48d4b2(0x17a))/0x9;if(_0x3d72b8===_0x352284)break;else _0x531fbd['push'](_0x531fbd['shift']());}catch(_0x63277){_0x531fbd['push'](_0x531fbd['shift']());}}}(_0x5bbb,0x71fba));import{FocusTracker as _0x47fda3}from'ckeditor5/src/utils.js';import{View as _0x4dba4b,FocusCycler as _0xf20ecb}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4dba4b{[_0x4aef8e(0x16c)];[_0x4aef8e(0x16f)];constructor(_0x4108b0){var _0x3b091f=_0x4aef8e;super(_0x4108b0),this[_0x3b091f(0x16c)]=new _0x47fda3(),this[_0x3b091f(0x16f)]=new _0xf20ecb({'focusables':this[_0x3b091f(0x172)](),'focusTracker':this[_0x3b091f(0x16c)]});}[_0x4aef8e(0x16b)](){var _0x2a7555=_0x4aef8e;return{'tag':_0x2a7555(0x177),'attributes':{'aria-hidden':_0x2a7555(0x171),'tabindex':'0'},'on':{'focus':this[_0x2a7555(0x176)]['to'](()=>{var _0xf252ff=_0x2a7555;this[_0xf252ff(0x16f)][_0xf252ff(0x16a)](_0xf252ff(0x16e));})}};}}
|