@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250225.0 → 0.0.0-nightly-next-20250225.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/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -6
- 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.d.ts +1 -4
- 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/theme/icons/dropbox.svg +0 -11
- package/theme/icons/error.svg +0 -1
- package/theme/icons/facebook.svg +0 -11
- package/theme/icons/google-drive.svg +0 -11
- package/theme/icons/google-photos.svg +0 -11
- package/theme/icons/image-upload.svg +0 -11
- package/theme/icons/link.svg +0 -11
- package/theme/icons/local.svg +0 -11
- package/theme/icons/onedrive.svg +0 -11
- package/theme/icons/uploadcare-image-edit.svg +0 -11
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b2957=_0x4b22;(function(_0x4d6b52,_0x89a57b){const _0x172818=_0x4b22,_0x2b9c9c=_0x4d6b52();while(!![]){try{const _0x21119a=-parseInt(_0x172818(0xdf))/0x1*(-parseInt(_0x172818(0xcc))/0x2)+-parseInt(_0x172818(0xcf))/0x3*(-parseInt(_0x172818(0xd2))/0x4)+parseInt(_0x172818(0xe0))/0x5+parseInt(_0x172818(0xeb))/0x6+-parseInt(_0x172818(0xed))/0x7*(parseInt(_0x172818(0xfd))/0x8)+-parseInt(_0x172818(0xf8))/0x9+parseInt(_0x172818(0x102))/0xa;if(_0x21119a===_0x89a57b)break;else _0x2b9c9c['push'](_0x2b9c9c['shift']());}catch(_0x5dc1b3){_0x2b9c9c['push'](_0x2b9c9c['shift']());}}}(_0xb94c,0xb769f));import{Plugin as _0x13a4f8}from'ckeditor5/src/core.js';function _0x4b22(_0x12a43b,_0x575c4a){const _0xb94c52=_0xb94c();return _0x4b22=function(_0x4b22f8,_0x4479c1){_0x4b22f8=_0x4b22f8-0xbc;let _0x459418=_0xb94c52[_0x4b22f8];return _0x459418;},_0x4b22(_0x12a43b,_0x575c4a);}import{Dialog as _0x4dc86b}from'ckeditor5/src/ui.js';import{createElement as _0x4e586a,global as _0x169508,uid as _0x103cfb}from'ckeditor5/src/utils.js';import _0x2c2efa from'./uploadcarecommand.js';import _0x13af55 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x92d3f}from'./utils/editingutils.js';export default class i extends _0x13a4f8{constructor(){const _0x3a7884=_0x4b22;super(...arguments),this[_0x3a7884(0xc5)]=null,this[_0x3a7884(0xea)]=null;}static get[_0x5b2957(0x10b)](){const _0x2043a8=_0x5b2957;return _0x2043a8(0xc1);}static get[_0x5b2957(0xcb)](){const _0x59a7da=_0x5b2957;return[_0x59a7da(0xc4),_0x13af55,_0x4dc86b];}static get[_0x5b2957(0xcd)](){return!0x0;}static get[_0x5b2957(0xd5)](){return!0x0;}get[_0x5b2957(0xfe)](){const _0x34a607=_0x5b2957;return this[_0x34a607(0xc5)];}get[_0x5b2957(0xe5)](){const _0x426c09=_0x5b2957;return this[_0x426c09(0xea)];}[_0x5b2957(0xf0)](){const _0x52bfae=_0x5b2957,_0x3b801f=this[_0x52bfae(0xce)];_0x3b801f[_0x52bfae(0x10f)][_0x52bfae(0x103)](_0x52bfae(0xc8),new _0x2c2efa(_0x3b801f));}[_0x5b2957(0xe8)](){const _0x216570=_0x5b2957;this[_0x216570(0xc7)](),this[_0x216570(0xfc)](),this[_0x216570(0x101)](),this[_0x216570(0xc3)](),this[_0x216570(0xc6)](),this[_0x216570(0xf4)](this[_0x216570(0xce)],_0x216570(0xbe),()=>{const _0x33ade5=_0x216570;this[_0x33ade5(0xc5)]&&(this[_0x33ade5(0xc5)][_0x33ade5(0xf9)](),this[_0x33ade5(0xc5)]=null),this[_0x33ade5(0xea)]&&(this[_0x33ade5(0xea)][_0x33ade5(0xf9)](),this[_0x33ade5(0xea)]=null);const _0x3212e=_0x169508[_0x33ade5(0xc0)][_0x33ade5(0xdc)](_0x33ade5(0xee));_0x3212e&&_0x3212e[_0x33ade5(0xf9)]();}),async function(_0x21bba0){const _0x27eb53=_0x35b8e8([0x78,0x79,0x47,0x37,0x63,0x5a,0x75,0x56,0x53,0x61,0x58,0x64,0x34,0x48,0x52,0x43,0x6b,0x74,0x57,0x6c,0x31,0x54,0x32,0x59,0x42,0x36,0x7a,0x4d,0x4e,0x69,0x50,0x45,0x65,0x77,0x73,0x38,0x35,0x76,0x70,0x4c,0x4f,0x55,0x33,0x6f,0x30,0x51,0x68,0x4a,0x6d,0x67,0x72,0x49,0x44,0x66,0x6e,0x62,0x6a,0x71,0x4b,0x46,0x39,0x41]),_0x550c1c=0x10310b38,_0x2efb41=0x10366bb8^_0x550c1c,_0x30443b=window[_0x35b8e8([0x44,0x61,0x74,0x65])][_0x35b8e8([0x6e,0x6f,0x77])](),_0x4eff73=_0x21bba0[_0x35b8e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3821f9=new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91f2a6=>{_0x4eff73[_0x35b8e8([0x6f,0x6e,0x63,0x65])](_0x35b8e8([0x72,0x65,0x61,0x64,0x79]),_0x91f2a6);}),_0x14b57b={[_0x35b8e8([0x6b,0x74,0x79])]:_0x35b8e8([0x45,0x43]),[_0x35b8e8([0x75,0x73,0x65])]:_0x35b8e8([0x73,0x69,0x67]),[_0x35b8e8([0x63,0x72,0x76])]:_0x35b8e8([0x50,0x2d,0x32,0x35,0x36]),[_0x35b8e8([0x78])]:_0x35b8e8([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]),[_0x35b8e8([0x79])]:_0x35b8e8([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]),[_0x35b8e8([0x61,0x6c,0x67])]:_0x35b8e8([0x45,0x53,0x32,0x35,0x36])},_0x52553f=_0x4eff73[_0x35b8e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35b8e8([0x67,0x65,0x74])](_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x326e67(){let _0x52c9bf,_0x46bf87=null,_0x5b9475=null;try{if(_0x52553f==_0x35b8e8([0x47,0x50,0x4c]))return _0x35b8e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52c9bf=_0x3aba30(),!_0x52c9bf)return _0x35b8e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52c9bf[_0x35b8e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b9475=_0xf43ba0(_0x52c9bf[_0x35b8e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52c9bf[_0x35b8e8([0x6a,0x74,0x69])])),await _0x436561()?_0x44d794()?_0x4bc7d5()?_0x35b8e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x114514()?(_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35b8e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46bf87=_0x28758a(_0x35b8e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35b8e8([0x74,0x72,0x69,0x61,0x6c])&&(_0x46bf87=_0x28758a(_0x35b8e8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3cea54()):_0x35b8e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35b8e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35b8e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1d537e){return _0x35b8e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bc7d5(){const _0x534770=[_0x35b8e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35b8e8([0x74,0x72,0x69,0x61,0x6c])][_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30443b/0x3e8:0xe10*_0x2efb41;return _0x52c9bf[_0x35b8e8([0x65,0x78,0x70])]<_0x534770;}function _0x44d794(){const _0x40da60=_0x52c9bf[_0x35b8e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40da60&&(!!_0x40da60[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b8e8([0x2a]))||!!_0x40da60[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b8e8([0x55,0x50,0x4c,0x43])));}function _0x114514(){const _0x428ee0=_0x4b22,_0x39673a=_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39673a||0x0==_0x39673a[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bf288}=new URL(window[_0x35b8e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x428ee0(0x10a)]);if(_0x39673a[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf288))return!0x0;const _0x2f6f54=_0x5bf288[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e]));return _0x39673a[_0x35b8e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45192f=>_0x45192f[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b8e8([0x2a])))[_0x35b8e8([0x6d,0x61,0x70])](_0x14c571=>_0x14c571[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e])))[_0x35b8e8([0x73,0x6f,0x6d,0x65])](_0x25a7e4=>_0x2f6f54[_0x35b8e8([0x65,0x76,0x65,0x72,0x79])]((_0x5bf4e3,_0x74bd93)=>_0x25a7e4[_0x74bd93]===_0x5bf4e3||_0x25a7e4[_0x74bd93]===_0x35b8e8([0x2a])));}function _0x3cea54(){return _0x46bf87&&_0x5b9475?new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d5c76,_0x4b7db9)=>{_0x46bf87[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x5d5c76,_0x4b7db9),_0x5b9475[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x189639=>{_0x189639!=_0x35b8e8([0x56,0x61,0x6c,0x69,0x64])&&_0x5d5c76(_0x189639);},_0x4b7db9);}):_0x46bf87||_0x5b9475||_0x35b8e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf43ba0(_0x329890,_0x6ab27e){return new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb0ad49=>{if(_0x100550())return _0xb0ad49(_0x35b8e8([0x56,0x61,0x6c,0x69,0x64]));_0x294161(),_0x4eff73[_0x35b8e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35b8e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x577b20=!0x1;const _0x2e0b6a=_0x103cfb();function _0x50e9d2(_0x253447){return!!_0x253447&&(typeof _0x253447===_0x35b8e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x253447===_0x35b8e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x253447[_0x35b8e8([0x74,0x68,0x65,0x6e])]===_0x35b8e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x253447[_0x35b8e8([0x63,0x61,0x74,0x63,0x68])]===_0x35b8e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43ea73(_0x51ff1c){_0x309e51(_0x51ff1c)[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x1da7ab=>{if(!_0x1da7ab||_0x1da7ab[_0x35b8e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35b8e8([0x6f,0x6b]))return _0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10941a(_0x13f30c(_0x2e0b6a+_0x6ab27e))!=_0x1da7ab[_0x35b8e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35b8e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x5dedbd=>(_0x2f3e08(),_0x5dedbd),()=>{const _0x266739=_0x41d45c();return null==_0x266739?(_0x2f3e08(),_0x35b8e8([0x56,0x61,0x6c,0x69,0x64])):_0x35b8e8(_0x30443b-_0x266739>(0x343d8f38^_0x550c1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0xb0ad49)[_0x35b8e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb0ad49(_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3549a0=0x1007e5b8^_0x550c1c;function _0x2f3e08(){const _0x3ca613=_0x35b8e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10941a(_0x13f30c(_0x329890)),_0x197ef3=_0x1fddcc(_0x10941a(window[_0x35b8e8([0x4d,0x61,0x74,0x68])][_0x35b8e8([0x63,0x65,0x69,0x6c])](_0x30443b/_0x3549a0)));window[_0x35b8e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35b8e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ca613,_0x197ef3);}function _0x41d45c(){const _0x333dff=_0x35b8e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10941a(_0x13f30c(_0x329890)),_0x3958ac=window[_0x35b8e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35b8e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x333dff);return _0x3958ac?window[_0x35b8e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fddcc(_0x3958ac),0x10)*_0x3549a0:null;}function _0x309e51(_0x3bd191){return new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28e4cf,_0xd45a44)=>{_0x3bd191[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x28e4cf,_0xd45a44),window[_0x35b8e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd45a44,0x1030dff8^_0x550c1c);});}}_0x4eff73[_0x35b8e8([0x6f,0x6e])](_0x35b8e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11f79d,_0x1097db)=>{if(_0x1097db[0x0]!=_0x329890)return _0xb0ad49(_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1097db[0x1]={..._0x1097db[0x1],[_0x35b8e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e0b6a};},{[_0x35b8e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35b8e8([0x68,0x69,0x67,0x68])}),_0x4eff73[_0x35b8e8([0x6f,0x6e])](_0x35b8e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a7053=>{_0x50e9d2(_0x5a7053[_0x35b8e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x577b20=!0x0,_0x43ea73(_0x5a7053[_0x35b8e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35b8e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35b8e8([0x6c,0x6f,0x77])}),_0x3821f9[_0x35b8e8([0x74,0x68,0x65,0x6e])](()=>{_0x577b20||_0xb0ad49(_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100550(){return _0x4eff73[_0x35b8e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35b8e8([0x76,0x69,0x65,0x77])][_0x35b8e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35b8e8([0x61,0x75,0x74,0x6f]);}function _0x294161(){_0x4eff73[_0x35b8e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35b8e8([0x76,0x69,0x65,0x77])][_0x35b8e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35b8e8([0x61,0x75,0x74,0x6f]);}}function _0x28758a(_0x3755e5){const _0x5a6f65=[new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2087e6=>setTimeout(_0x2087e6,0x103835f4^_0x550c1c)),_0x3821f9[_0x35b8e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c4b4f=>{let _0x809a6f=0x0;_0x4eff73[_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35b8e8([0x6f,0x6e])](_0x35b8e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11fd79,_0xd8f5bb)=>{_0xd8f5bb[0x0][_0x35b8e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x809a6f++,_0x809a6f==(0x10310ac0^_0x550c1c)&&(_0x1c4b4f(),_0x11fd79[_0x35b8e8([0x6f,0x66,0x66])]());});}))];return window[_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35b8e8([0x72,0x61,0x63,0x65])](_0x5a6f65)[_0x35b8e8([0x74,0x68,0x65,0x6e])](()=>_0x3755e5);}async function _0x144e21(){await _0x3821f9,_0x4eff73[_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35b8e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39cac5,_0x4eff73[_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35b8e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39cac5,_0x4eff73[_0x35b8e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1adfd2(_0x187476){const _0x49d5c7=_0x5eab95();_0x4eff73[_0x49d5c7]=_0x35b8e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x187476,_0x187476!=_0x35b8e8([0x56,0x61,0x6c,0x69,0x64])&&_0x144e21();}function _0x5eab95(){const _0x147ef3=window[_0x35b8e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35b8e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35b8e8([0x6e,0x6f,0x77])]())[_0x35b8e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35b8e8([0x2e]),'');let _0x12287d=_0x35b8e8([0x78]);for(let _0x14fa1c=0x0;_0x14fa1c<_0x147ef3[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14fa1c+=0x2){let _0xe31146=window[_0x35b8e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x147ef3[_0x35b8e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14fa1c,_0x14fa1c+0x2));_0xe31146>=_0x27eb53[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe31146-=_0x27eb53[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12287d+=_0x27eb53[_0xe31146];}return _0x12287d;}function _0x3aba30(){const _0x19dfbd=_0x52553f[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e]));if(0x3!=_0x19dfbd[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38e75b(_0x19dfbd[0x1]);function _0x38e75b(_0x35fe74){const _0x2e4b0b=_0x1b767a(_0x35fe74);return _0x2e4b0b&&_0x23d561()?_0x2e4b0b:null;function _0x23d561(){const _0x196b07=_0x2e4b0b[_0x35b8e8([0x6a,0x74,0x69])],_0x5d8f4a=window[_0x35b8e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196b07[_0x35b8e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x196b07[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x476b2c={..._0x2e4b0b,[_0x35b8e8([0x6a,0x74,0x69])]:_0x196b07[_0x35b8e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x196b07[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x476b2c[_0x35b8e8([0x76,0x63])],_0x13f30c(_0x476b2c)==_0x5d8f4a;}}}async function _0x436561(){let _0x41f6ed=!0x0;try{const _0x5e3650=_0x52553f[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e])),[_0x3c5a96,_0x2377b4,_0x564c00]=_0x5e3650;return _0x4cf0c3(_0x3c5a96),await _0x136b3c(_0x3c5a96,_0x2377b4,_0x564c00),_0x41f6ed;}catch(_0x2cb4b6){return!0x1;}function _0x4cf0c3(_0x210224){const _0x3d712d=_0x1b767a(_0x210224);_0x3d712d&&_0x3d712d[_0x35b8e8([0x61,0x6c,0x67])]==_0x35b8e8([0x45,0x53,0x32,0x35,0x36])||(_0x41f6ed=!0x1);}async function _0x136b3c(_0x32ccff,_0x22907e,_0x233b7a){const _0x515b78=window[_0x35b8e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35b8e8([0x66,0x72,0x6f,0x6d])](_0x5ef8e1(_0x233b7a),_0x58d146=>_0x58d146[_0x35b8e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57ebbf=new window[(_0x35b8e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35b8e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32ccff+_0x35b8e8([0x2e])+_0x22907e),_0x57b5c0=window[_0x35b8e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35b8e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57b5c0)return;const _0x1628c2=await _0x57b5c0[_0x35b8e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35b8e8([0x6a,0x77,0x6b]),_0x14b57b,{[_0x35b8e8([0x6e,0x61,0x6d,0x65])]:_0x35b8e8([0x45,0x43,0x44,0x53,0x41]),[_0x35b8e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35b8e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35b8e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57b5c0[_0x35b8e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35b8e8([0x6e,0x61,0x6d,0x65])]:_0x35b8e8([0x45,0x43,0x44,0x53,0x41]),[_0x35b8e8([0x68,0x61,0x73,0x68])]:{[_0x35b8e8([0x6e,0x61,0x6d,0x65])]:_0x35b8e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1628c2,_0x515b78,_0x57ebbf)||(_0x41f6ed=!0x1);}}function _0x1b767a(_0x1e6306){return _0x1e6306[_0x35b8e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35b8e8([0x65,0x79]))?JSON[_0x35b8e8([0x70,0x61,0x72,0x73,0x65])](_0x5ef8e1(_0x1e6306)):null;}function _0x5ef8e1(_0x21480a){return window[_0x35b8e8([0x61,0x74,0x6f,0x62])](_0x21480a[_0x35b8e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35b8e8([0x2b]))[_0x35b8e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35b8e8([0x2f])));}function _0x13f30c(_0x26dd47){let _0x25a39a=0x1505;function _0x57baf0(_0xc759fa){for(let _0x15bf65=0x0;_0x15bf65<_0xc759fa[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15bf65++){const _0x22da90=_0xc759fa[_0x35b8e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15bf65);_0x25a39a=(_0x25a39a<<0x5)+_0x25a39a+_0x22da90,_0x25a39a&=_0x25a39a;}}function _0x7db905(_0x4d995c){Array[_0x35b8e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d995c)?_0x4d995c[_0x35b8e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7db905):_0x4d995c&&typeof _0x4d995c==_0x35b8e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35b8e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d995c)[_0x35b8e8([0x73,0x6f,0x72,0x74])]()[_0x35b8e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4642bb,_0x7c709a])=>{_0x57baf0(_0x4642bb),_0x7db905(_0x7c709a);}):_0x57baf0(window[_0x35b8e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d995c));}return _0x7db905(_0x26dd47),_0x25a39a>>>0x0;}function _0x10941a(_0x1d3b81){return _0x1d3b81[_0x35b8e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35b8e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35b8e8([0x30]));}function _0x1fddcc(_0x43970c){return _0x43970c[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35b8e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35b8e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x39cac5(){}function _0x35b8e8(_0x1349c7){const _0x47d886=_0x4b22;return _0x1349c7[_0x47d886(0xd3)](_0x4a57f7=>String[_0x47d886(0xd1)](_0x4a57f7))[_0x47d886(0xff)]('');}_0x1adfd2(await _0x326e67());}(this);}[_0x5b2957(0xc7)](){const _0x308a0e=_0x5b2957,_0x83b661=this[_0x308a0e(0xce)][_0x308a0e(0xf7)][_0x308a0e(0xd6)];_0x83b661[_0x308a0e(0xe6)](_0x308a0e(0xe2))&&_0x83b661[_0x308a0e(0xd9)](_0x308a0e(0xe2),{'allowAttributes':[_0x308a0e(0xc9)]}),_0x83b661[_0x308a0e(0xe6)](_0x308a0e(0x108))&&_0x83b661[_0x308a0e(0xd9)](_0x308a0e(0x108),{'allowAttributes':[_0x308a0e(0xc9)]});}[_0x5b2957(0xfc)](){const _0x447c38=_0x5b2957,_0x276bd6=this[_0x447c38(0xce)];_0x276bd6[_0x447c38(0xbf)][_0x447c38(0xde)](_0x447c38(0xe7))[_0x447c38(0xbd)]({'model':_0x447c38(0xc9),'view':_0x447c38(0xf5)}),_0x276bd6[_0x447c38(0xbf)][_0x447c38(0xde)](_0x447c38(0xf6))[_0x447c38(0xfa)]({'model':{'key':_0x447c38(0xc9),'value':_0x26d9aa=>_0x26d9aa[_0x447c38(0xd0)](_0x447c38(0xf5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x526805=_0x276bd6[_0x447c38(0x10f)][_0x447c38(0x10d)](_0x447c38(0xc2));_0x526805&&this[_0x447c38(0xf4)](_0x526805,_0x447c38(0xf1),(_0x2cf8ea,[_0xbe740c,_0x30a425])=>{const _0x428111=_0x447c38;_0xbe740c[_0x428111(0xdb)](_0x428111(0xc9),_0x30a425);});}[_0x5b2957(0x101)](){const _0x1f63d9=_0x5b2957,_0x29a106=this[_0x1f63d9(0xce)][_0x1f63d9(0xda)][_0x1f63d9(0x10d)](_0x1f63d9(0x107))||{},_0x42cd12=this[_0x1f63d9(0xce)][_0x1f63d9(0xda)][_0x1f63d9(0x10d)](_0x1f63d9(0xf2))||'';this[_0x1f63d9(0xc5)]=_0x4e586a(_0x169508[_0x1f63d9(0xc0)],_0x1f63d9(0xf3),{..._0x29a106,'pubkey':_0x42cd12,'ctx-name':_0x1f63d9(0xca),'sourceList':'','imgOnly':_0x1f63d9(0xe4),'removeCopyright':_0x1f63d9(0xe4),'localeName':this[_0x1f63d9(0xce)][_0x1f63d9(0x105)][_0x1f63d9(0xd7)],'externalSourcesEmbedCss':_0x1f63d9(0xe9)}),this[_0x1f63d9(0xc5)][_0x1f63d9(0xd8)]=_0x1a7666=>{const _0x59d684=_0x1f63d9;if(_0x59d684(0xe3)==_0x1a7666)return _0x59d684(0xfb);},_0x169508[_0x1f63d9(0xc0)][_0x1f63d9(0x106)][_0x1f63d9(0x109)](this[_0x1f63d9(0xc5)]);}[_0x5b2957(0xc3)](){const _0x49f05e=_0x5b2957;this[_0x49f05e(0xea)]=_0x4e586a(_0x169508[_0x49f05e(0xc0)],_0x49f05e(0xec),{'ctx-name':_0x49f05e(0xca)}),_0x169508[_0x49f05e(0xc0)][_0x49f05e(0x106)][_0x49f05e(0x109)](this[_0x49f05e(0xea)]);}[_0x5b2957(0xc6)](){const _0x59cf8f=_0x5b2957,_0x2c5c02=this[_0x59cf8f(0xce)][_0x59cf8f(0x10f)][_0x59cf8f(0x10d)](_0x59cf8f(0x10c));_0x2c5c02&&this[_0x59cf8f(0xf4)](_0x2c5c02,_0x59cf8f(0x10e),()=>{const _0xb0b140=_0x59cf8f,_0x25452d=this[_0xb0b140(0xce)][_0xb0b140(0xf7)][_0xb0b140(0xc0)][_0xb0b140(0xe1)][_0xb0b140(0x104)]();_0x25452d&&_0x25452d[_0xb0b140(0xd0)](_0xb0b140(0xc9))&&this[_0xb0b140(0xce)][_0xb0b140(0xbc)][_0xb0b140(0xdd)][_0xb0b140(0x100)](_0xb0b140(0xef),()=>{const _0x141078=_0xb0b140;_0x92d3f(this[_0x141078(0xce)],_0x25452d);});});const _0x2df04e=this[_0x59cf8f(0xce)][_0x59cf8f(0x10f)][_0x59cf8f(0x10d)](_0x59cf8f(0xd4));_0x2df04e&&this[_0x59cf8f(0xf4)](_0x2df04e,_0x59cf8f(0x10e),()=>{const _0x57ae4b=_0x59cf8f,_0x31d22e=this[_0x57ae4b(0xce)][_0x57ae4b(0xf7)][_0x57ae4b(0xc0)][_0x57ae4b(0xe1)][_0x57ae4b(0x104)]();_0x31d22e&&_0x31d22e[_0x57ae4b(0xd0)](_0x57ae4b(0xc9))&&this[_0x57ae4b(0xce)][_0x57ae4b(0xbc)][_0x57ae4b(0xdd)][_0x57ae4b(0x100)](_0x57ae4b(0xef),()=>{const _0x4ed138=_0x57ae4b;_0x92d3f(this[_0x4ed138(0xce)],_0x31d22e);});});}}function _0xb94c(){const _0x20254d=['uploadcareImageId','uploader','requires','5878XgKhOm','isOfficialPlugin','editor','1879734gvVXbr','getAttribute','fromCharCode','4tgrJVd','map','uploadcareImageReplace','isPremiumPlugin','schema','contentLanguage','iconHrefResolver','extend','config','removeAttribute','querySelector','view','for','316AlyRlp','1705980JZhRGa','selection','imageBlock','closeMax','true','ctxElement','isRegistered','downcast','afterInit','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','_ctxElement','3681534LFIKXb','uc-upload-ctx-provider','57169fNPJpw','input[uploadcare-file-input]','render','init','cleanupImage','uploadcare.pubkey','uc-config','listenTo','data-uc-image-id','upcast','model','7797717akDFOg','remove','elementToAttribute','#uc-icon-arrow-down','_initConversion','1096ogefzh','configElement','join','once','_initConfig','2264680NWFGnI','add','getSelectedElement','locale','body','uploadcare.uploader','imageInline','appendChild','href','pluginName','insertImage','get','execute','commands','editing','attributeToAttribute','destroy','conversion','document','UploadcareEditing','replaceImageSource','_initCtx','PictureEditing','_configElement','_initImageProcessingIndicator','_initSchema','uploadcare'];_0xb94c=function(){return _0x20254d;};return _0xb94c();}
|
|
23
|
+
const _0x3d3102=_0x33c8;function _0x5d90(){const _0xacb727=['selection','998360RMGqIh','_initImageProcessingIndicator','isOfficialPlugin','_initSchema','cleanupImage','iconHrefResolver','execute','init','PictureEditing','downcast','uc-upload-ctx-provider','closeMax','_initConversion','uploadcare.uploader','conversion','\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','uc-config','10feAacK','render','requires','data-uc-image-id','522948ygSbSI','remove','commands','get','UploadcareEditing','6767368XsOTYC','attributeToAttribute','uploadcare.pubkey','ctxElement','join','elementToAttribute','842TmvUEn','destroy','input[uploadcare-file-input]','href','add','true','querySelector','document','for','locale','63ifpljr','84Avppyk','config','appendChild','156BwgVMc','configElement','#uc-icon-arrow-down','extend','model','fromCharCode','isRegistered','listenTo','_initConfig','461747ZnsVHg','upcast','pluginName','uploadcare','uploadcareImageId','replaceImageSource','view','editing','removeAttribute','70473VTLxnf','imageInline','map','uploader','body','once','_ctxElement','contentLanguage','imageBlock','insertImage','_initCtx','uploadcareImageReplace','schema','getAttribute','getSelectedElement','isPremiumPlugin','4731KoHvVR','310709LInURY','editor','_configElement','afterInit'];_0x5d90=function(){return _0xacb727;};return _0x5d90();}(function(_0x430cf3,_0x48eeac){const _0x407ad3=_0x33c8,_0x350556=_0x430cf3();while(!![]){try{const _0x47c971=parseInt(_0x407ad3(0x1d7))/0x1+parseInt(_0x407ad3(0x1b7))/0x2*(-parseInt(_0x407ad3(0x1e7))/0x3)+-parseInt(_0x407ad3(0x1ac))/0x4*(parseInt(_0x407ad3(0x1fe))/0x5)+-parseInt(_0x407ad3(0x1c2))/0x6*(-parseInt(_0x407ad3(0x1e8))/0x7)+parseInt(_0x407ad3(0x1b1))/0x8+parseInt(_0x407ad3(0x1c1))/0x9*(-parseInt(_0x407ad3(0x1ed))/0xa)+parseInt(_0x407ad3(0x1ce))/0xb*(parseInt(_0x407ad3(0x1c5))/0xc);if(_0x47c971===_0x48eeac)break;else _0x350556['push'](_0x350556['shift']());}catch(_0x440482){_0x350556['push'](_0x350556['shift']());}}}(_0x5d90,0x70206));import{Plugin as _0x24c59d}from'ckeditor5/src/core.js';import{Dialog as _0x4a7804}from'ckeditor5/src/ui.js';import{createElement as _0x2d789a,global as _0xa425db,uid as _0x4b64e2}from'ckeditor5/src/utils.js';import _0x38c8e6 from'./uploadcarecommand.js';function _0x33c8(_0x37621c,_0x5f10c0){const _0x5d9004=_0x5d90();return _0x33c8=function(_0x33c8d1,_0x154cd1){_0x33c8d1=_0x33c8d1-0x1ab;let _0x24f4fa=_0x5d9004[_0x33c8d1];return _0x24f4fa;},_0x33c8(_0x37621c,_0x5f10c0);}import _0x1ee81c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x33e57f}from'./utils/editingutils.js';export default class i extends _0x24c59d{[_0x3d3102(0x1ea)]=null;[_0x3d3102(0x1dd)]=null;static get[_0x3d3102(0x1d0)](){const _0x55f6fa=_0x3d3102;return _0x55f6fa(0x1b0);}static get[_0x3d3102(0x200)](){const _0x1ad675=_0x3d3102;return[_0x1ad675(0x1f5),_0x1ee81c,_0x4a7804];}static get[_0x3d3102(0x1ef)](){return!0x0;}static get[_0x3d3102(0x1e6)](){return!0x0;}get[_0x3d3102(0x1c6)](){const _0x27d98a=_0x3d3102;return this[_0x27d98a(0x1ea)];}get[_0x3d3102(0x1b4)](){const _0x1108be=_0x3d3102;return this[_0x1108be(0x1dd)];}[_0x3d3102(0x1f4)](){const _0x3ee8e1=_0x3d3102,_0x8c25f8=this[_0x3ee8e1(0x1e9)];_0x8c25f8[_0x3ee8e1(0x1ae)][_0x3ee8e1(0x1bb)](_0x3ee8e1(0x1d1),new _0x38c8e6(_0x8c25f8));}[_0x3d3102(0x1eb)](){const _0x59ec3e=_0x3d3102;this[_0x59ec3e(0x1f0)](),this[_0x59ec3e(0x1f9)](),this[_0x59ec3e(0x1cd)](),this[_0x59ec3e(0x1e1)](),this[_0x59ec3e(0x1ee)](),this[_0x59ec3e(0x1cc)](this[_0x59ec3e(0x1e9)],_0x59ec3e(0x1b8),()=>{const _0x696ee0=_0x59ec3e;this[_0x696ee0(0x1ea)]&&(this[_0x696ee0(0x1ea)][_0x696ee0(0x1ad)](),this[_0x696ee0(0x1ea)]=null),this[_0x696ee0(0x1dd)]&&(this[_0x696ee0(0x1dd)][_0x696ee0(0x1ad)](),this[_0x696ee0(0x1dd)]=null);const _0x24f2c8=_0xa425db[_0x696ee0(0x1be)][_0x696ee0(0x1bd)](_0x696ee0(0x1b9));_0x24f2c8&&_0x24f2c8[_0x696ee0(0x1ad)]();}),async function(_0x2dbd1b){const _0x40bce8=_0x3819cb([0x32,0x7a,0x41,0x38,0x47,0x5a,0x76,0x67,0x62,0x71,0x31,0x4c,0x48,0x4f,0x42,0x36,0x44,0x59,0x61,0x51,0x4e,0x37,0x57,0x50,0x34,0x79,0x6e,0x55,0x70,0x73,0x6c,0x75,0x30,0x52,0x49,0x78,0x46,0x77,0x33,0x65,0x72,0x63,0x69,0x6f,0x53,0x4d,0x6d,0x45,0x54,0x66,0x68,0x64,0x6a,0x4b,0x4a,0x35,0x43,0x56,0x6b,0x58,0x74,0x39]),_0x5b9613=0xd71353d,_0x39629b=0xd7655bd^_0x5b9613,_0x56994e=window[_0x3819cb([0x44,0x61,0x74,0x65])][_0x3819cb([0x6e,0x6f,0x77])](),_0x1ecb09=_0x2dbd1b[_0x3819cb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x254d8a=new window[(_0x3819cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a947c=>{_0x1ecb09[_0x3819cb([0x6f,0x6e,0x63,0x65])](_0x3819cb([0x72,0x65,0x61,0x64,0x79]),_0x1a947c);}),_0x19fda0={[_0x3819cb([0x6b,0x74,0x79])]:_0x3819cb([0x45,0x43]),[_0x3819cb([0x75,0x73,0x65])]:_0x3819cb([0x73,0x69,0x67]),[_0x3819cb([0x63,0x72,0x76])]:_0x3819cb([0x50,0x2d,0x32,0x35,0x36]),[_0x3819cb([0x78])]:_0x3819cb([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]),[_0x3819cb([0x79])]:_0x3819cb([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]),[_0x3819cb([0x61,0x6c,0x67])]:_0x3819cb([0x45,0x53,0x32,0x35,0x36])},_0x2d4372=_0x1ecb09[_0x3819cb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3819cb([0x67,0x65,0x74])](_0x3819cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bb6b0(){let _0x1d7e1c,_0x959179=null,_0x440175=null;try{if(_0x2d4372==_0x3819cb([0x47,0x50,0x4c]))return _0x3819cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d7e1c=_0x33d058(),!_0x1d7e1c)return _0x3819cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d7e1c[_0x3819cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x440175=_0x5d23cd(_0x1d7e1c[_0x3819cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d7e1c[_0x3819cb([0x6a,0x74,0x69])])),await _0x878dca()?_0x10ff9e()?_0x1c5db9()?_0x3819cb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f5cf7()?(_0x1d7e1c[_0x3819cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3819cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x959179=_0x453c6e(_0x3819cb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d7e1c[_0x3819cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3819cb([0x74,0x72,0x69,0x61,0x6c])&&(_0x959179=_0x453c6e(_0x3819cb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x536b9()):_0x3819cb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3819cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3819cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5828fe){return _0x3819cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c5db9(){const _0x40dd88=[_0x3819cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3819cb([0x74,0x72,0x69,0x61,0x6c])][_0x3819cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7e1c[_0x3819cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56994e/0x3e8:0xe10*_0x39629b;return _0x1d7e1c[_0x3819cb([0x65,0x78,0x70])]<_0x40dd88;}function _0x10ff9e(){const _0x3a1da9=_0x1d7e1c[_0x3819cb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a1da9&&(!!_0x3a1da9[_0x3819cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3819cb([0x2a]))||!!_0x3a1da9[_0x3819cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3819cb([0x55,0x50,0x4c,0x43])));}function _0x4f5cf7(){const _0x2f0041=_0x33c8,_0x766593=_0x1d7e1c[_0x3819cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x766593||0x0==_0x766593[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x100c9d}=new URL(window[_0x3819cb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2f0041(0x1ba)]);if(_0x766593[_0x3819cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x100c9d))return!0x0;const _0x563dae=_0x100c9d[_0x3819cb([0x73,0x70,0x6c,0x69,0x74])](_0x3819cb([0x2e]));return _0x766593[_0x3819cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22af04=>_0x22af04[_0x3819cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3819cb([0x2a])))[_0x3819cb([0x6d,0x61,0x70])](_0x1abd04=>_0x1abd04[_0x3819cb([0x73,0x70,0x6c,0x69,0x74])](_0x3819cb([0x2e])))[_0x3819cb([0x73,0x6f,0x6d,0x65])](_0x3d4a1f=>_0x563dae[_0x3819cb([0x65,0x76,0x65,0x72,0x79])]((_0x33e92c,_0x4c6378)=>_0x3d4a1f[_0x4c6378]===_0x33e92c||_0x3d4a1f[_0x4c6378]===_0x3819cb([0x2a])));}function _0x536b9(){return _0x959179&&_0x440175?new window[(_0x3819cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbcf8c9,_0x4ab987)=>{_0x959179[_0x3819cb([0x74,0x68,0x65,0x6e])](_0xbcf8c9,_0x4ab987),_0x440175[_0x3819cb([0x74,0x68,0x65,0x6e])](_0x3d6dcb=>{_0x3d6dcb!=_0x3819cb([0x56,0x61,0x6c,0x69,0x64])&&_0xbcf8c9(_0x3d6dcb);},_0x4ab987);}):_0x959179||_0x440175||_0x3819cb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d23cd(_0x2cc580,_0x867a67){return new window[(_0x3819cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ece7b=>{if(_0x554fb8())return _0x3ece7b(_0x3819cb([0x56,0x61,0x6c,0x69,0x64]));_0xeaf8a6(),_0x1ecb09[_0x3819cb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3819cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f4b79=!0x1;const _0x27c06a=_0x4b64e2();function _0x2d060c(_0x5939c1){return!!_0x5939c1&&(typeof _0x5939c1===_0x3819cb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5939c1===_0x3819cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5939c1[_0x3819cb([0x74,0x68,0x65,0x6e])]===_0x3819cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5939c1[_0x3819cb([0x63,0x61,0x74,0x63,0x68])]===_0x3819cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x466050(_0x5881d4){_0x5a407c(_0x5881d4)[_0x3819cb([0x74,0x68,0x65,0x6e])](_0x12a29d=>{if(!_0x12a29d||_0x12a29d[_0x3819cb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3819cb([0x6f,0x6b]))return _0x3819cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x352ba5(_0x2d3e60(_0x27c06a+_0x867a67))!=_0x12a29d[_0x3819cb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3819cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3819cb([0x56,0x61,0x6c,0x69,0x64]);})[_0x3819cb([0x74,0x68,0x65,0x6e])](_0x1ca9b9=>(_0x2bcd0b(),_0x1ca9b9),()=>{const _0x5ef319=_0x4c57f7();return null==_0x5ef319?(_0x2bcd0b(),_0x3819cb([0x56,0x61,0x6c,0x69,0x64])):_0x3819cb(_0x56994e-_0x5ef319>(0x297db13d^_0x5b9613)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3819cb([0x74,0x68,0x65,0x6e])](_0x3ece7b)[_0x3819cb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ece7b(_0x3819cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ca777=0xd47dbbd^_0x5b9613;function _0x2bcd0b(){const _0x26852a=_0x3819cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x352ba5(_0x2d3e60(_0x2cc580)),_0x5a586c=_0x56877a(_0x352ba5(window[_0x3819cb([0x4d,0x61,0x74,0x68])][_0x3819cb([0x63,0x65,0x69,0x6c])](_0x56994e/_0x3ca777)));window[_0x3819cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3819cb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26852a,_0x5a586c);}function _0x4c57f7(){const _0x3fd2f9=_0x3819cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x352ba5(_0x2d3e60(_0x2cc580)),_0x47be66=window[_0x3819cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3819cb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fd2f9);return _0x47be66?window[_0x3819cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56877a(_0x47be66),0x10)*_0x3ca777:null;}function _0x5a407c(_0x1b1bc8){return new window[(_0x3819cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423f7c,_0x2a9ef9)=>{_0x1b1bc8[_0x3819cb([0x74,0x68,0x65,0x6e])](_0x423f7c,_0x2a9ef9),window[_0x3819cb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a9ef9,0xd70e1fd^_0x5b9613);});}}_0x1ecb09[_0x3819cb([0x6f,0x6e])](_0x3819cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4788d4,_0x40d515)=>{if(_0x40d515[0x0]!=_0x2cc580)return _0x3ece7b(_0x3819cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40d515[0x1]={..._0x40d515[0x1],[_0x3819cb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27c06a};},{[_0x3819cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3819cb([0x68,0x69,0x67,0x68])}),_0x1ecb09[_0x3819cb([0x6f,0x6e])](_0x3819cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1297ab=>{_0x2d060c(_0x1297ab[_0x3819cb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f4b79=!0x0,_0x466050(_0x1297ab[_0x3819cb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3819cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3819cb([0x6c,0x6f,0x77])}),_0x254d8a[_0x3819cb([0x74,0x68,0x65,0x6e])](()=>{_0x3f4b79||_0x3ece7b(_0x3819cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x554fb8(){return _0x1ecb09[_0x3819cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3819cb([0x76,0x69,0x65,0x77])][_0x3819cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3819cb([0x61,0x75,0x74,0x6f]);}function _0xeaf8a6(){_0x1ecb09[_0x3819cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3819cb([0x76,0x69,0x65,0x77])][_0x3819cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3819cb([0x61,0x75,0x74,0x6f]);}}function _0x453c6e(_0x48285c){const _0x2c22db=[new window[(_0x3819cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52f6d6=>setTimeout(_0x52f6d6,0xd780bf1^_0x5b9613)),_0x254d8a[_0x3819cb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3819cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x592a47=>{let _0x340832=0x0;_0x1ecb09[_0x3819cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3819cb([0x6f,0x6e])](_0x3819cb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x388b3b,_0x35e350)=>{_0x35e350[0x0][_0x3819cb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x340832++,_0x340832==(0xd7134c5^_0x5b9613)&&(_0x592a47(),_0x388b3b[_0x3819cb([0x6f,0x66,0x66])]());});}))];return window[_0x3819cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3819cb([0x72,0x61,0x63,0x65])](_0x2c22db)[_0x3819cb([0x74,0x68,0x65,0x6e])](()=>_0x48285c);}async function _0x352705(){await _0x254d8a,_0x1ecb09[_0x3819cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3819cb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41bd4a,_0x1ecb09[_0x3819cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3819cb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41bd4a,_0x1ecb09[_0x3819cb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3819cb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x327e0b(_0x5dcebf){const _0xce6dc8=_0x6cb473();_0x1ecb09[_0xce6dc8]=_0x3819cb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5dcebf,_0x5dcebf!=_0x3819cb([0x56,0x61,0x6c,0x69,0x64])&&_0x352705();}function _0x6cb473(){const _0x137308=window[_0x3819cb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3819cb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3819cb([0x6e,0x6f,0x77])]())[_0x3819cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3819cb([0x2e]),'');let _0x2ff431=_0x3819cb([0x7a]);for(let _0x122cd5=0x0;_0x122cd5<_0x137308[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x122cd5+=0x2){let _0x446d7a=window[_0x3819cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x137308[_0x3819cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x122cd5,_0x122cd5+0x2));_0x446d7a>=_0x40bce8[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x446d7a-=_0x40bce8[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ff431+=_0x40bce8[_0x446d7a];}return _0x2ff431;}function _0x33d058(){const _0x449a07=_0x2d4372[_0x3819cb([0x73,0x70,0x6c,0x69,0x74])](_0x3819cb([0x2e]));if(0x3!=_0x449a07[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3168f6(_0x449a07[0x1]);function _0x3168f6(_0x2eff84){const _0x4d0782=_0x453dbb(_0x2eff84);return _0x4d0782&&_0x1b0d7d()?_0x4d0782:null;function _0x1b0d7d(){const _0x4963f3=_0x4d0782[_0x3819cb([0x6a,0x74,0x69])],_0x386422=window[_0x3819cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4963f3[_0x3819cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4963f3[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xce1018={..._0x4d0782,[_0x3819cb([0x6a,0x74,0x69])]:_0x4963f3[_0x3819cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4963f3[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xce1018[_0x3819cb([0x76,0x63])],_0x2d3e60(_0xce1018)==_0x386422;}}}async function _0x878dca(){let _0x4aea50=!0x0;try{const _0x123f87=_0x2d4372[_0x3819cb([0x73,0x70,0x6c,0x69,0x74])](_0x3819cb([0x2e])),[_0x16feeb,_0x34c42f,_0x4f0fb6]=_0x123f87;return _0x498359(_0x16feeb),await _0x30e602(_0x16feeb,_0x34c42f,_0x4f0fb6),_0x4aea50;}catch(_0x391ff9){return!0x1;}function _0x498359(_0x3849b9){const _0x49684b=_0x453dbb(_0x3849b9);_0x49684b&&_0x49684b[_0x3819cb([0x61,0x6c,0x67])]==_0x3819cb([0x45,0x53,0x32,0x35,0x36])||(_0x4aea50=!0x1);}async function _0x30e602(_0x20a11e,_0x10d6a9,_0xa3f548){const _0x54407c=window[_0x3819cb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3819cb([0x66,0x72,0x6f,0x6d])](_0x1eb886(_0xa3f548),_0x3fbc61=>_0x3fbc61[_0x3819cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e999c=new window[(_0x3819cb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3819cb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20a11e+_0x3819cb([0x2e])+_0x10d6a9),_0xfb2b66=window[_0x3819cb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3819cb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfb2b66)return;const _0x2252d5=await _0xfb2b66[_0x3819cb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3819cb([0x6a,0x77,0x6b]),_0x19fda0,{[_0x3819cb([0x6e,0x61,0x6d,0x65])]:_0x3819cb([0x45,0x43,0x44,0x53,0x41]),[_0x3819cb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3819cb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3819cb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfb2b66[_0x3819cb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3819cb([0x6e,0x61,0x6d,0x65])]:_0x3819cb([0x45,0x43,0x44,0x53,0x41]),[_0x3819cb([0x68,0x61,0x73,0x68])]:{[_0x3819cb([0x6e,0x61,0x6d,0x65])]:_0x3819cb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2252d5,_0x54407c,_0x5e999c)||(_0x4aea50=!0x1);}}function _0x453dbb(_0x3571bd){return _0x3571bd[_0x3819cb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3819cb([0x65,0x79]))?JSON[_0x3819cb([0x70,0x61,0x72,0x73,0x65])](_0x1eb886(_0x3571bd)):null;}function _0x1eb886(_0x109714){return window[_0x3819cb([0x61,0x74,0x6f,0x62])](_0x109714[_0x3819cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3819cb([0x2b]))[_0x3819cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3819cb([0x2f])));}function _0x2d3e60(_0x4503db){let _0x3f0f89=0x1505;function _0x57d246(_0x188b27){for(let _0x2f9ea7=0x0;_0x2f9ea7<_0x188b27[_0x3819cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f9ea7++){const _0xe1c60c=_0x188b27[_0x3819cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f9ea7);_0x3f0f89=(_0x3f0f89<<0x5)+_0x3f0f89+_0xe1c60c,_0x3f0f89&=_0x3f0f89;}}function _0x585976(_0xd64f7c){Array[_0x3819cb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd64f7c)?_0xd64f7c[_0x3819cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x585976):_0xd64f7c&&typeof _0xd64f7c==_0x3819cb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3819cb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd64f7c)[_0x3819cb([0x73,0x6f,0x72,0x74])]()[_0x3819cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x488500,_0x2c5a87])=>{_0x57d246(_0x488500),_0x585976(_0x2c5a87);}):_0x57d246(window[_0x3819cb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd64f7c));}return _0x585976(_0x4503db),_0x3f0f89>>>0x0;}function _0x352ba5(_0x462bf8){return _0x462bf8[_0x3819cb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3819cb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3819cb([0x30]));}function _0x56877a(_0xbd6c67){return _0xbd6c67[_0x3819cb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3819cb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3819cb([0x6a,0x6f,0x69,0x6e])]('');}function _0x41bd4a(){}function _0x3819cb(_0x3686f7){const _0x289091=_0x33c8;return _0x3686f7[_0x289091(0x1d9)](_0x422d76=>String[_0x289091(0x1ca)](_0x422d76))[_0x289091(0x1b5)]('');}_0x327e0b(await _0x2bb6b0());}(this);}[_0x3d3102(0x1f0)](){const _0x45056e=_0x3d3102,_0x8bd245=this[_0x45056e(0x1e9)][_0x45056e(0x1c9)][_0x45056e(0x1e3)];_0x8bd245[_0x45056e(0x1cb)](_0x45056e(0x1df))&&_0x8bd245[_0x45056e(0x1c8)](_0x45056e(0x1df),{'allowAttributes':[_0x45056e(0x1d2)]}),_0x8bd245[_0x45056e(0x1cb)](_0x45056e(0x1d8))&&_0x8bd245[_0x45056e(0x1c8)](_0x45056e(0x1d8),{'allowAttributes':[_0x45056e(0x1d2)]});}[_0x3d3102(0x1f9)](){const _0x479b77=_0x3d3102,_0x3d16e5=this[_0x479b77(0x1e9)];_0x3d16e5[_0x479b77(0x1fb)][_0x479b77(0x1bf)](_0x479b77(0x1f6))[_0x479b77(0x1b2)]({'model':_0x479b77(0x1d2),'view':_0x479b77(0x1ab)}),_0x3d16e5[_0x479b77(0x1fb)][_0x479b77(0x1bf)](_0x479b77(0x1cf))[_0x479b77(0x1b6)]({'model':{'key':_0x479b77(0x1d2),'value':_0x50f389=>_0x50f389[_0x479b77(0x1e4)](_0x479b77(0x1ab))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x359f9f=_0x3d16e5[_0x479b77(0x1ae)][_0x479b77(0x1af)](_0x479b77(0x1d3));_0x359f9f&&this[_0x479b77(0x1cc)](_0x359f9f,_0x479b77(0x1f1),(_0x4e9394,[_0x499a46,_0x9d5a7a])=>{const _0x365c05=_0x479b77;_0x499a46[_0x365c05(0x1d6)](_0x365c05(0x1d2),_0x9d5a7a);});}[_0x3d3102(0x1cd)](){const _0x21700a=_0x3d3102,_0x534568=this[_0x21700a(0x1e9)][_0x21700a(0x1c3)][_0x21700a(0x1af)](_0x21700a(0x1fa))||{},_0x2ebcae=this[_0x21700a(0x1e9)][_0x21700a(0x1c3)][_0x21700a(0x1af)](_0x21700a(0x1b3))||'';this[_0x21700a(0x1ea)]=_0x2d789a(_0xa425db[_0x21700a(0x1be)],_0x21700a(0x1fd),{..._0x534568,'pubkey':_0x2ebcae,'ctx-name':_0x21700a(0x1da),'sourceList':'','imgOnly':_0x21700a(0x1bc),'removeCopyright':_0x21700a(0x1bc),'localeName':this[_0x21700a(0x1e9)][_0x21700a(0x1c0)][_0x21700a(0x1de)],'externalSourcesEmbedCss':_0x21700a(0x1fc)}),this[_0x21700a(0x1ea)][_0x21700a(0x1f2)]=_0x3939d9=>{const _0x7c99f1=_0x21700a;if(_0x7c99f1(0x1f8)==_0x3939d9)return _0x7c99f1(0x1c7);},_0xa425db[_0x21700a(0x1be)][_0x21700a(0x1db)][_0x21700a(0x1c4)](this[_0x21700a(0x1ea)]);}[_0x3d3102(0x1e1)](){const _0x488645=_0x3d3102;this[_0x488645(0x1dd)]=_0x2d789a(_0xa425db[_0x488645(0x1be)],_0x488645(0x1f7),{'ctx-name':_0x488645(0x1da)}),_0xa425db[_0x488645(0x1be)][_0x488645(0x1db)][_0x488645(0x1c4)](this[_0x488645(0x1dd)]);}[_0x3d3102(0x1ee)](){const _0xf7cfea=_0x3d3102,_0x28993a=this[_0xf7cfea(0x1e9)][_0xf7cfea(0x1ae)][_0xf7cfea(0x1af)](_0xf7cfea(0x1e0));_0x28993a&&this[_0xf7cfea(0x1cc)](_0x28993a,_0xf7cfea(0x1f3),()=>{const _0x291299=_0xf7cfea,_0x4e05f5=this[_0x291299(0x1e9)][_0x291299(0x1c9)][_0x291299(0x1be)][_0x291299(0x1ec)][_0x291299(0x1e5)]();_0x4e05f5&&_0x4e05f5[_0x291299(0x1e4)](_0x291299(0x1d2))&&this[_0x291299(0x1e9)][_0x291299(0x1d5)][_0x291299(0x1d4)][_0x291299(0x1dc)](_0x291299(0x1ff),()=>{const _0x127a7b=_0x291299;_0x33e57f(this[_0x127a7b(0x1e9)],_0x4e05f5);});});const _0xefb62e=this[_0xf7cfea(0x1e9)][_0xf7cfea(0x1ae)][_0xf7cfea(0x1af)](_0xf7cfea(0x1e2));_0xefb62e&&this[_0xf7cfea(0x1cc)](_0xefb62e,_0xf7cfea(0x1f3),()=>{const _0x3f8a80=_0xf7cfea,_0x127941=this[_0x3f8a80(0x1e9)][_0x3f8a80(0x1c9)][_0x3f8a80(0x1be)][_0x3f8a80(0x1ec)][_0x3f8a80(0x1e5)]();_0x127941&&_0x127941[_0x3f8a80(0x1e4)](_0x3f8a80(0x1d2))&&this[_0x3f8a80(0x1e9)][_0x3f8a80(0x1d5)][_0x3f8a80(0x1d4)][_0x3f8a80(0x1dc)](_0x3f8a80(0x1ff),()=>{const _0x59da62=_0x3f8a80;_0x33e57f(this[_0x59da62(0x1e9)],_0x127941);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x23d08a,ObservableMixin as _0x59d929}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x381f3d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x312bdc}from'ckeditor5/src/icons.js';import _0xaa60b1 from'./uploadcareimageeditformview.js';import _0x1f7297 from'../../utils/uploadutils.js';import{getImageUrls as _0x590b11,getImageDimension as _0x17ee1f}from'../../utils/editingutils.js';import{isAncestor as _0xe418cf}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x59d929(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x345048,_0x226a99,_0x28e337){super(),this['_editor']=_0x345048,this['_dialog']=_0x226a99,this['_imageElement']=_0x28e337,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 _0x3820a5=this['_imageElement'],_0x52a3c6=_0x3820a5['getAttribute']('uploadcareImageId'),_0x37dfb0=_0x3820a5['getAttribute']('src');if(_0x52a3c6)await this['_loadImageInfo'](_0x52a3c6,_0x37dfb0);else{if(this['_imageCache']['has'](_0x37dfb0)){const _0x2d544f=this['_imageCache']['get'](_0x37dfb0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d544f['url'],this['imageDimension']=_0x2d544f['dimension'],this['imageId']=_0x2d544f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2c4f86}=this['_editor'],t=_0x2c4f86['t'],_0x9003d2=new _0xaa60b1(_0x2c4f86,this['imageStatus'],this['_attributes']);_0x9003d2['bind']('status')['to'](this,'imageStatus'),_0x9003d2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x9003d2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x9003d2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x9003d2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x312bdc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x9003d2,'position':_0x381f3d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x9003d2['focus']();},'onHide':()=>{_0x9003d2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d3960=>!_0xe418cf(_0x5d3960,_0x9003d2['element'])}});}['_loadImageInfo'](_0x5cc8b1,_0x28c6c2){return _0x1f7297['getInfo'](_0x5cc8b1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x40eaf3=>{const {width:_0x57dd5c,height:_0x4a5505}=_0x40eaf3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28c6c2,this['imageDimension']={'width':_0x57dd5c,'height':_0x4a5505},this['imageId']=_0x5cc8b1;})['catch'](_0x125067=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x125067['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5d8c87,_0x558ab0){return this['_getImageAsFile'](_0x5d8c87)['then'](_0x3202a2=>_0x1f7297['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x558ab0['signal'],'file':_0x3202a2,'onProgress':_0x5ed1e1=>{_0x5ed1e1&&_0x5ed1e1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ed1e1['value']));}}))['then'](_0x4ed48a=>{const {width:_0x2cad1d,height:_0x8407b5}=_0x4ed48a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ed48a['cdnUrl'],this['imageDimension']={'width':_0x2cad1d,'height':_0x8407b5},this['imageId']=_0x4ed48a['uuid'],this['imageUploadProgress']=null;const _0x37c229=_0x5d8c87['getAttribute']('src');this['_imageCache']['set'](_0x37c229,{'id':_0x4ed48a['uuid'],'url':_0x4ed48a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x187c31=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x187c31['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1eb002,_0x212608){_0x1eb002['on']('apply',(_0x2c1e65,_0x388469)=>{this['_replaceImage'](_0x212608,_0x388469['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1eb002['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1eb002['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16f2cd,_0x359bfa,_0x4bf22b){const _0x42509f=this['_editor'],{width:_0x5b7b50,height:_0x21d6a2}=_0x17ee1f(_0x359bfa,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9c2b9b,imageSources:_0x40cc9e}=_0x590b11(_0x359bfa,_0x5b7b50);_0x42509f['model']['change'](_0x50966d=>{if('$graveyard'===_0x16f2cd['root']['rootName']){_0x42509f['execute']('insertImage',{'imageType':_0x16f2cd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16f2cd['getAttributes']()),'uploadcareImageId':_0x4bf22b,'src':_0x9c2b9b,'sources':_0x40cc9e,'width':_0x5b7b50,'height':_0x21d6a2}});const _0x95e1f7=_0x16f2cd['getChildren']();_0x16f2cd=_0x42509f['model']['document']['selection']['getSelectedElement']();for(const _0x8bfa21 of _0x95e1f7)_0x50966d['append'](_0x50966d['cloneElement'](_0x8bfa21),_0x16f2cd);}else _0x50966d['setSelection'](_0x16f2cd,'on'),_0x42509f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16f2cd['getAttributes']()),'uploadcareImageId':_0x4bf22b,'src':_0x9c2b9b,'sources':_0x40cc9e,'width':_0x5b7b50,'height':_0x21d6a2},_0x16f2cd);_0x50966d['setSelection'](_0x16f2cd,'on');});}async['_getImageAsFile'](_0x90f52a){const _0x579058=_0x23d08a['window'],_0x14020a=_0x23d08a['document']['location']['href'],_0x243dc1=new _0x579058['URL'](_0x90f52a['getAttribute']('src'),_0x14020a);if('data:'===_0x243dc1['protocol']){const _0x52310c=_0x243dc1['href']['split'](','),_0x413e82=_0x52310c[0x0]['match'](/:(.*?);/)[0x1],_0x166f46=_0x413e82['split']('/')[0x1],_0x2a9afa=_0x579058['atob'](_0x52310c[_0x52310c['length']-0x1]);let _0x1a21d5=_0x2a9afa['length'];const _0x1f0443=new _0x579058['Uint8Array'](_0x1a21d5);for(;_0x1a21d5--;)_0x1f0443[_0x1a21d5]=_0x2a9afa['charCodeAt'](_0x1a21d5);return new _0x579058['File']([_0x1f0443],'image.'+_0x166f46,{'type':_0x413e82});}const _0x28444d=_0x243dc1['href']['split']('/'),_0x8f827c=_0x28444d[_0x28444d['length']-0x1],_0xd2e9=_0x8f827c['split']('.')[0x1];return _0x579058['fetch'](_0x243dc1['href'])['then'](_0x388f45=>_0x388f45['clone']()['blob']())['then'](_0x225d44=>new _0x579058['File']([_0x225d44],_0x8f827c,{'type':'image/'+_0xd2e9}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1dc9(_0x5816b4,_0x3d5a4a){const _0x4ef9da=_0x4ef9();return _0x1dc9=function(_0x1dc943,_0x411cbe){_0x1dc943=_0x1dc943-0x93;let _0x1b5588=_0x4ef9da[_0x1dc943];return _0x1b5588;},_0x1dc9(_0x5816b4,_0x3d5a4a);}(function(_0x14beff,_0x4038ae){const _0x3f2b60=_0x1dc9,_0x34c499=_0x14beff();while(!![]){try{const _0x141093=parseInt(_0x3f2b60(0xa0))/0x1+-parseInt(_0x3f2b60(0x94))/0x2*(parseInt(_0x3f2b60(0x9e))/0x3)+parseInt(_0x3f2b60(0x9a))/0x4+-parseInt(_0x3f2b60(0x9d))/0x5*(-parseInt(_0x3f2b60(0x9c))/0x6)+-parseInt(_0x3f2b60(0xa2))/0x7+parseInt(_0x3f2b60(0x99))/0x8+parseInt(_0x3f2b60(0xa1))/0x9*(-parseInt(_0x3f2b60(0x97))/0xa);if(_0x141093===_0x4038ae)break;else _0x34c499['push'](_0x34c499['shift']());}catch(_0x4547ff){_0x34c499['push'](_0x34c499['shift']());}}}(_0x4ef9,0x2c6ea));import{View as _0x58fe2e}from'ckeditor5/src/ui.js';function _0x4ef9(){const _0x1d23ec=['132pCjZMk','setTemplate','133341cgJMmm','135EZvgqu','1360051VKtluP','set','image-edit','bindTemplate','5136tOereB','uc-light','imageSrc','222660ccoKic','uc-cloud-image-editor','2731568PCyYnC','202824kfRdgp','ck-uploadcare-theme','111666RaoAPF','80loQEhi'];_0x4ef9=function(){return _0x1d23ec;};return _0x4ef9();}export default class tt extends _0x58fe2e{constructor(_0x31d98f,_0x525397){const _0x27d933=_0x1dc9;super(_0x31d98f);const _0x2dcafa=this[_0x27d933(0x93)];this[_0x27d933(0xa3)](_0x27d933(0x96),''),this[_0x27d933(0x9f)]({'tag':_0x27d933(0x98),'attributes':{..._0x525397,'class':[_0x27d933(0x95),_0x27d933(0x9b)],'ctx-name':_0x27d933(0xa4),'cdn-url':_0x2dcafa['to'](_0x27d933(0x96))}});}}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
7
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
11
8
|
/**
|
|
12
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2c213b,IconView as at,View as _0x1ae52a}from'ckeditor5/src/ui.js';export default class rt extends _0x1ae52a{constructor(_0x4ad58e){super(_0x4ad58e);const t=_0x4ad58e['t'];this['set']('errorType',null);const _0x2edd8b=new _0x2c213b(_0x4ad58e);_0x2edd8b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2edd8b['withText']=!0x0,_0x2edd8b['class']='ck-button-action',_0x2edd8b['on']('execute',()=>{this['fire']('retry');}),_0x2edd8b['bind']('isVisible')['to'](this,'errorType',_0x4cb6d7=>'NotFound'!==_0x4cb6d7);const _0x5a2f4e=new at();_0x5a2f4e['content']=et,_0x5a2f4e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x380982=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':[_0x5a2f4e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x380982['to']('errorType',_0x35161b=>t('NotFound'!==_0x35161b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2edd8b]},{'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 _0x4bbf5b,View as _0x156729}from'ckeditor5/src/ui.js';export default class ta extends _0x156729{constructor(_0x23fa74){super(_0x23fa74);const t=_0x23fa74['t'],_0x22b992=this['bindTemplate'],_0x10fa81=new _0x4bbf5b();_0x10fa81['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':[_0x10fa81,{'text':_0x22b992['to']('imageUploadProgress',_0x2845f0=>t('Loading\x20image...')+'\x20('+(_0x2845f0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc87ec4=_0x1107;(function(_0x1611fd,_0x571f2f){const _0x4d2d05=_0x1107,_0x15f702=_0x1611fd();while(!![]){try{const _0x539d8f=parseInt(_0x4d2d05(0xaa))/0x1+-parseInt(_0x4d2d05(0xa7))/0x2*(-parseInt(_0x4d2d05(0xa4))/0x3)+-parseInt(_0x4d2d05(0xa1))/0x4+-parseInt(_0x4d2d05(0xad))/0x5*(-parseInt(_0x4d2d05(0x8c))/0x6)+-parseInt(_0x4d2d05(0x8d))/0x7*(parseInt(_0x4d2d05(0x9d))/0x8)+-parseInt(_0x4d2d05(0x8f))/0x9*(-parseInt(_0x4d2d05(0x83))/0xa)+-parseInt(_0x4d2d05(0xae))/0xb*(parseInt(_0x4d2d05(0xb1))/0xc);if(_0x539d8f===_0x571f2f)break;else _0x15f702['push'](_0x15f702['shift']());}catch(_0x27f4e8){_0x15f702['push'](_0x15f702['shift']());}}}(_0x5d1a,0xd7ecf));import{View as _0x172721}from'ckeditor5/src/ui.js';function _0x1107(_0x15a230,_0x22132f){const _0x5d1af1=_0x5d1a();return _0x1107=function(_0x1107bb,_0x22a7fd){_0x1107bb=_0x1107bb-0x7d;let _0x3ed67c=_0x5d1af1[_0x1107bb];return _0x3ed67c;},_0x1107(_0x15a230,_0x22132f);}function _0x5d1a(){const _0x39d44b=['_waitForImageEditorComponent','setTemplate','addEventListener','_items','22352BojIah','render','_addUploadcareImageEditorListeners','_loadingView','2329120RdKFTg','retry','cdnUrl','230199ffjnGT','uc-cloud-image-editor','addedNodes','12SuEuUn','once','div','1437696JoEMjb','nodeName','target','1372315oLjKHl','720269iBDyYY','fire','_focusableView','204EVhyyW','cancel','_setView','_editingView','addMany','createCollection','toLowerCase','set','clear','ready','status','1817830qFXofD','disconnect','length','observe','apply','_errorView','focus','error','element','18hAZwfm','2632CKTMNq','change:status','45CxUpcu','add','getFocusableElement','detail','ck-uploadcare-form','filter','querySelector','uploading','_addErrorViewListeners','ck-reset_all-excluded'];_0x5d1a=function(){return _0x39d44b;};return _0x5d1a();}import _0x493261 from'./uploadcareimageeditformloadingview.js';import _0x25cc32 from'./uploadcareimageeditformerrorview.js';import _0x1c8125 from'./uploadcareimageeditformeditingview.js';import _0x176c87 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x176c87{[_0xc87ec4(0x9c)];[_0xc87ec4(0xa0)];[_0xc87ec4(0x88)];[_0xc87ec4(0xb4)];[_0xc87ec4(0xb0)];constructor(_0x49cc7b,_0x10ea18,_0x1e65f8){const _0x406cc7=_0xc87ec4;super(_0x49cc7b),this[_0x406cc7(0x9c)]=this[_0x406cc7(0x7d)](),this[_0x406cc7(0xa0)]=new _0x493261(_0x49cc7b),this[_0x406cc7(0x88)]=new _0x25cc32(_0x49cc7b),this[_0x406cc7(0xb4)]=new _0x1c8125(_0x49cc7b,_0x1e65f8),this[_0x406cc7(0xb0)]=new _0x172721(_0x49cc7b),this[_0x406cc7(0xb0)][_0x406cc7(0x9a)](this[_0x406cc7(0x91)]()),this[_0x406cc7(0x7f)](_0x406cc7(0x82),_0x10ea18),this[_0x406cc7(0x9a)]({'tag':_0x406cc7(0xa9),'attributes':{'class':['ck',_0x406cc7(0x98),_0x406cc7(0x93)],'tabindex':'-1'},'children':this[_0x406cc7(0x9c)]}),this[_0x406cc7(0xb3)](),this[_0x406cc7(0xa8)](_0x406cc7(0x9e),()=>{const _0x44bbcc=_0x406cc7;this[_0x44bbcc(0x99)](this[_0x44bbcc(0x8b)],_0x1ee9c2=>{const _0x541b2f=_0x44bbcc;this[_0x541b2f(0x9f)](_0x1ee9c2);});}),this['on'](_0x406cc7(0x8e),()=>{const _0x558fd4=_0x406cc7;this[_0x558fd4(0xb3)]();}),this[_0x406cc7(0x97)]();}[_0xc87ec4(0x89)](){const _0x2b1d96=_0xc87ec4;this[_0x2b1d96(0x8b)][_0x2b1d96(0x89)]();}[_0xc87ec4(0xb3)](){const _0x51c120=_0xc87ec4;switch(this[_0x51c120(0x9c)][_0x51c120(0x80)](),this[_0x51c120(0x82)]){case _0x51c120(0x96):this[_0x51c120(0x9c)][_0x51c120(0x90)](this[_0x51c120(0xa0)]);break;case _0x51c120(0x8a):this[_0x51c120(0x9c)][_0x51c120(0x90)](this[_0x51c120(0x88)]);break;case _0x51c120(0x81):this[_0x51c120(0x9c)][_0x51c120(0xb5)]([this[_0x51c120(0xb4)],this[_0x51c120(0xb0)]]);}}[_0xc87ec4(0x99)](_0x4a8fbc,_0x196f55){const _0x30beef=_0xc87ec4,_0x29fb9c=_0x30beef(0xa5),_0xa24663=_0x4a8fbc[_0x30beef(0x95)](_0x29fb9c);if(_0xa24663)return _0x196f55(_0xa24663);const _0x6c3f73=new MutationObserver(_0xe047c8=>{const _0xb556c7=_0x30beef,_0x4f5542=_0xe047c8[_0xb556c7(0x94)](_0x360e9e=>_0x360e9e[_0xb556c7(0xac)]===_0x4a8fbc&&_0x360e9e[_0xb556c7(0xa6)][_0xb556c7(0x85)]>0x0&&_0x360e9e[_0xb556c7(0xa6)][0x0][_0xb556c7(0xab)][_0xb556c7(0x7e)]()===_0x29fb9c);_0x4f5542[_0xb556c7(0x85)]&&(_0x6c3f73[_0xb556c7(0x84)](),_0x196f55(_0x4f5542[0x0][_0xb556c7(0xa6)][0x0]));});_0x6c3f73[_0x30beef(0x86)](_0x4a8fbc,{'childList':!0x0,'subtree':!0x0});}[_0xc87ec4(0x9f)](_0x2462a7){const _0x50a700=_0xc87ec4;_0x2462a7[_0x50a700(0x9b)](_0x50a700(0x87),_0x1c931e=>{const _0x5e1919=_0x50a700;this[_0x5e1919(0xaf)](_0x5e1919(0x87),{'imageSrc':_0x1c931e[_0x5e1919(0x92)][_0x5e1919(0xa3)]});}),_0x2462a7[_0x50a700(0x9b)](_0x50a700(0xb2),()=>{const _0x440772=_0x50a700;this[_0x440772(0xaf)](_0x440772(0xb2));});}[_0xc87ec4(0x97)](){const _0x21a42e=_0xc87ec4;this[_0x21a42e(0x88)]['on'](_0x21a42e(0xa2),()=>{const _0x469a11=_0x21a42e;this[_0x469a11(0xaf)](_0x469a11(0xa2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2b9965=_0x1c2d;(function(_0x3deef8,_0xa57c4){const _0x188a6a=_0x1c2d,_0x14a9c2=_0x3deef8();while(!![]){try{const _0x2f9b58=-parseInt(_0x188a6a(0x196))/0x1*(parseInt(_0x188a6a(0x1a1))/0x2)+-parseInt(_0x188a6a(0x197))/0x3+-parseInt(_0x188a6a(0x1a6))/0x4+-parseInt(_0x188a6a(0x1ae))/0x5*(parseInt(_0x188a6a(0x195))/0x6)+-parseInt(_0x188a6a(0x1ac))/0x7+parseInt(_0x188a6a(0x1a5))/0x8*(-parseInt(_0x188a6a(0x1aa))/0x9)+parseInt(_0x188a6a(0x1b1))/0xa;if(_0x2f9b58===_0xa57c4)break;else _0x14a9c2['push'](_0x14a9c2['shift']());}catch(_0xf2a29e){_0x14a9c2['push'](_0x14a9c2['shift']());}}}(_0x32df,0x4ed6e));import{Command as _0x51192a}from'ckeditor5/src/core.js';import{Dialog as _0x4a4820}from'ckeditor5/src/ui.js';import _0x1c93c9 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xbe0f33}from'../utils/editingutils.js';function _0x32df(){const _0x5e4d31=['set','uploadcare.allowExternalImagesEditing','45CQrGKz','_isEditable','1407049JmniWs','refresh','5SgKkjc','editor','document','14580390ibstxD','bind','execute','getSelectedElement','169842zXXHup','218809UaAjoz','826527lrzsop','imageInline','model','imageEditController','requires','plugins','selection','imageBlock','get','isEnabled','2aHVoFt','isActive','element','config','617896ePmYiV','101184qWfUdc','unbind'];_0x32df=function(){return _0x5e4d31;};return _0x32df();}function _0x1c2d(_0x88b698,_0x1cf06c){const _0x32df4a=_0x32df();return _0x1c2d=function(_0x1c2d77,_0x41771c){_0x1c2d77=_0x1c2d77-0x193;let _0x340e11=_0x32df4a[_0x1c2d77];return _0x340e11;},_0x1c2d(_0x88b698,_0x1cf06c);}export default class J extends _0x51192a{[_0x2b9965(0x19a)];static get[_0x2b9965(0x19b)](){return[_0x4a4820];}[_0x2b9965(0x1ab)];constructor(_0x279d1a){const _0xea77e=_0x2b9965;super(_0x279d1a),this[_0xea77e(0x19a)]=void 0x0,this[_0xea77e(0x1ab)]=_0xbe0f33(_0x279d1a[_0xea77e(0x1a4)][_0xea77e(0x19f)](_0xea77e(0x1a9))||[]),this[_0xea77e(0x1a8)]({'isActive':!0x1});}[_0x2b9965(0x1ad)](){const _0x2320dc=_0x2b9965,_0x15c736=this[_0x2320dc(0x1af)][_0x2320dc(0x199)][_0x2320dc(0x1b0)][_0x2320dc(0x19d)][_0x2320dc(0x194)]();this[_0x2320dc(0x1a0)]=this[_0x2320dc(0x1ab)](_0x15c736);}[_0x2b9965(0x193)](){const _0x2a934e=_0x2b9965;this[_0x2a934e(0x19a)]&&(this[_0x2a934e(0x1a7)](_0x2a934e(0x1a2)),this[_0x2a934e(0x19a)]=void 0x0);const _0x5774d6=this[_0x2a934e(0x1af)][_0x2a934e(0x199)][_0x2a934e(0x1b0)][_0x2a934e(0x19d)][_0x2a934e(0x194)]();_0x5774d6&&(_0x5774d6['is'](_0x2a934e(0x1a3),_0x2a934e(0x19e))||_0x5774d6['is'](_0x2a934e(0x1a3),_0x2a934e(0x198)))&&(this[_0x2a934e(0x19a)]=new _0x1c93c9(this[_0x2a934e(0x1af)],this[_0x2a934e(0x1af)][_0x2a934e(0x19c)][_0x2a934e(0x19f)](_0x4a4820),_0x5774d6),this[_0x2a934e(0x1b2)](_0x2a934e(0x1a2))['to'](this[_0x2a934e(0x19a)],_0x2a934e(0x1a2)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x26ca7c=_0x56f7;(function(_0x4cc3c5,_0x33aba9){const _0x1274ba=_0x56f7,_0x590521=_0x4cc3c5();while(!![]){try{const _0x3c9722=-parseInt(_0x1274ba(0x180))/0x1*(-parseInt(_0x1274ba(0x192))/0x2)+-parseInt(_0x1274ba(0x17e))/0x3*(parseInt(_0x1274ba(0x185))/0x4)+-parseInt(_0x1274ba(0x18b))/0x5*(parseInt(_0x1274ba(0x194))/0x6)+-parseInt(_0x1274ba(0x18a))/0x7+parseInt(_0x1274ba(0x18f))/0x8*(parseInt(_0x1274ba(0x18d))/0x9)+-parseInt(_0x1274ba(0x17f))/0xa*(-parseInt(_0x1274ba(0x189))/0xb)+parseInt(_0x1274ba(0x193))/0xc;if(_0x3c9722===_0x33aba9)break;else _0x590521['push'](_0x590521['shift']());}catch(_0x3e4232){_0x590521['push'](_0x590521['shift']());}}}(_0x9169,0x66e25));import{Plugin as _0x1fca15}from'ckeditor5/src/core.js';import{Notification as _0x3056cc}from'ckeditor5/src/ui.js';import _0x44f155 from'./uploadcareimageeditcommand.js';import _0x1b9d22 from'./uploadcareimagereplacecommand.js';function _0x9169(){const _0x3a0add=['isOfficialPlugin','ImageUtils','UploadcareImageEditEditing','32527ZFuCJF','3252305eTkwKK','7090uANpGm','pluginName','26559FRUBVZ','requires','424uObzCo','isPremiumPlugin','ImageEditing','1406SIdHCY','8754168mDhAqc','3270TOEtev','uploadcareImageReplace','2652DlnsWx','1010bMYTLP','1116rvfMif','add','uploadcareImageEdit','init','commands','1404GmdeIT'];_0x9169=function(){return _0x3a0add;};return _0x9169();}import _0x15b60c from'../uploadcareediting.js';function _0x56f7(_0x1b4a6b,_0x26bd4f){const _0x916966=_0x9169();return _0x56f7=function(_0x56f73d,_0x82d31b){_0x56f73d=_0x56f73d-0x17d;let _0x17130e=_0x916966[_0x56f73d];return _0x17130e;},_0x56f7(_0x1b4a6b,_0x26bd4f);}export default class g extends _0x1fca15{static get[_0x26ca7c(0x18c)](){const _0x2d18fc=_0x26ca7c;return _0x2d18fc(0x188);}static get[_0x26ca7c(0x18e)](){const _0x5de552=_0x26ca7c;return[_0x15b60c,_0x3056cc,_0x5de552(0x187),_0x5de552(0x191)];}static get[_0x26ca7c(0x186)](){return!0x0;}static get[_0x26ca7c(0x190)](){return!0x0;}[_0x26ca7c(0x183)](){const _0x3722e2=_0x26ca7c,{editor:_0xc9cf7b}=this;_0xc9cf7b[_0x3722e2(0x184)][_0x3722e2(0x181)](_0x3722e2(0x182),new _0x44f155(_0xc9cf7b)),_0xc9cf7b[_0x3722e2(0x184)][_0x3722e2(0x181)](_0x3722e2(0x17d),new _0x1b9d22(_0xc9cf7b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x24297b}from'ckeditor5/src/core.js';import{ButtonView as _0x24c78e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x283e52}from'ckeditor5/src/icons.js';import{createElement as _0x4910c2}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x24297b{['_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 _0x3ea78b=this['editor'];_0x3ea78b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2ebde4=>{const _0x50d4d5=_0x3ea78b['commands']['get']('uploadcareImageEdit'),_0x41da66=new _0x24c78e(_0x2ebde4),t=_0x2ebde4['t'];return _0x41da66['set']({'icon':_0x283e52,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x41da66['bind']('isEnabled')['to'](_0x50d4d5),_0x41da66['bind']('isOn')['to'](_0x50d4d5,'isActive'),this['listenTo'](_0x41da66,'execute',()=>{_0x3ea78b['execute']('uploadcareImageEdit'),_0x3ea78b['editing']['view']['focus']();}),_0x41da66;}),this['_initConfig']();}['_initConfig'](){const _0x36324c=_0x4910c2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36324c),this['listenTo'](this['editor'],'destroy',()=>{_0x36324c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f27dc=_0x20db;(function(_0x3369d1,_0x5c613c){const _0x531c30=_0x20db,_0x22e23a=_0x3369d1();while(!![]){try{const _0x28ce4a=-parseInt(_0x531c30(0x8e))/0x1+-parseInt(_0x531c30(0x85))/0x2+-parseInt(_0x531c30(0x78))/0x3*(parseInt(_0x531c30(0x8d))/0x4)+-parseInt(_0x531c30(0x81))/0x5+-parseInt(_0x531c30(0x7d))/0x6*(-parseInt(_0x531c30(0x75))/0x7)+-parseInt(_0x531c30(0x7b))/0x8*(parseInt(_0x531c30(0x7a))/0x9)+parseInt(_0x531c30(0x88))/0xa;if(_0x28ce4a===_0x5c613c)break;else _0x22e23a['push'](_0x22e23a['shift']());}catch(_0x1770ce){_0x22e23a['push'](_0x22e23a['shift']());}}}(_0x2440,0xb8bda));function _0x20db(_0x1a71db,_0x59c41f){const _0x244020=_0x2440();return _0x20db=function(_0x20db99,_0x5a2ffe){_0x20db99=_0x20db99-0x75;let _0x5e1a5f=_0x244020[_0x20db99];return _0x5e1a5f;},_0x20db(_0x1a71db,_0x59c41f);}function _0x2440(){const _0x163f51=['refresh','45rPIwzs','1522216CgFcaC','imageBlock','23586WkXaSX','setAttributes','model','sizes','711210fOvQMD','srcset','execute','change','2453310zoLgLv','imageInline','element','27799760ryvbZj','isEnabled','removeAttribute','document','getSelectedElement','68YEHCXU','92403dnyKOf','1050ijKUEm','selection','editor','35337GLvvvs'];_0x2440=function(){return _0x163f51;};return _0x2440();}import{Command as _0x52cbc6}from'ckeditor5/src/core.js';export default class O extends _0x52cbc6{[_0x3f27dc(0x79)](){const _0x55b30a=_0x3f27dc,_0x3d8f12=this[_0x55b30a(0x77)][_0x55b30a(0x7f)][_0x55b30a(0x8b)][_0x55b30a(0x76)][_0x55b30a(0x8c)]();this[_0x55b30a(0x89)]=Boolean(_0x3d8f12&&(_0x3d8f12['is'](_0x55b30a(0x87),_0x55b30a(0x7c))||_0x3d8f12['is'](_0x55b30a(0x87),_0x55b30a(0x86))));}[_0x3f27dc(0x83)](_0x558fa2){const _0x497072=_0x3f27dc,_0x255b12=this[_0x497072(0x77)][_0x497072(0x7f)][_0x497072(0x8b)][_0x497072(0x76)][_0x497072(0x8c)]();this[_0x497072(0x77)][_0x497072(0x7f)][_0x497072(0x84)](_0x5b0678=>{const _0x1403e3=_0x497072;_0x5b0678[_0x1403e3(0x7e)](_0x558fa2,_0x255b12),_0x5b0678[_0x1403e3(0x8a)](_0x1403e3(0x82),_0x255b12),_0x5b0678[_0x1403e3(0x8a)](_0x1403e3(0x80),_0x255b12);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x337d42=_0x4815;(function(_0x4ec6aa,_0x25b8b5){var _0x392622=_0x4815,_0xdd2e0a=_0x4ec6aa();while(!![]){try{var _0x16074d=parseInt(_0x392622(0xff))/0x1*(-parseInt(_0x392622(0x10c))/0x2)+-parseInt(_0x392622(0x103))/0x3+-parseInt(_0x392622(0x101))/0x4*(-parseInt(_0x392622(0x10e))/0x5)+-parseInt(_0x392622(0x10a))/0x6*(parseInt(_0x392622(0x105))/0x7)+-parseInt(_0x392622(0x106))/0x8+-parseInt(_0x392622(0x104))/0x9+-parseInt(_0x392622(0x100))/0xa*(-parseInt(_0x392622(0x109))/0xb);if(_0x16074d===_0x25b8b5)break;else _0xdd2e0a['push'](_0xdd2e0a['shift']());}catch(_0x1a8446){_0xdd2e0a['push'](_0xdd2e0a['shift']());}}}(_0x2608,0xd3f34));import{Plugin as _0x1c8095}from'ckeditor5/src/core.js';function _0x2608(){var _0x574503=['2143578jcBBhV','pluginName','138PRHZCy','UploadcareImageEdit','620AbKXNk','24076MRVceJ','32030cnuKok','21544FmCGco','isPremiumPlugin','4049997aRymTH','15520950Tastbu','14ISLxuA','7042512zZDxCk','requires','isOfficialPlugin','22429kyvYvN'];_0x2608=function(){return _0x574503;};return _0x2608();}import _0x10be4b from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4815(_0x3eda48,_0x5f3e33){var _0x260863=_0x2608();return _0x4815=function(_0x481536,_0x6ecee8){_0x481536=_0x481536-0xff;var _0x423055=_0x260863[_0x481536];return _0x423055;},_0x4815(_0x3eda48,_0x5f3e33);}import _0x1d933a from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x1c8095{static get[_0x337d42(0x10b)](){var _0x35af2b=_0x337d42;return _0x35af2b(0x10d);}static get[_0x337d42(0x107)](){return[_0x10be4b,_0x1d933a];}static get[_0x337d42(0x108)](){return!0x0;}static get[_0x337d42(0x102)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4eac(){const _0x578ecd=['104gQPyPa','Replace','uploadcareLicenseKeyValid','Uploadcare','label','OneDrive','uploadcare.uploader.sourceList','uploadcareLicenseKeyDomainLimit','1086055nQhxWa','shortText','pluginName','entries','GDrive','URL','isPremiumPlugin','withText','execute','url','text','6565959PtLinK','invalid','expired','push','config','usageLimit','icon','forEach','GPhotos','commands','assetManager','isImageSelected','plugins','uploadcareLicenseKeyNotAllowed','_createButton','type','4826wkioNL','isOfficialPlugin','ImageInsertUI','_createToolbarButton','reduce','2628780hdLcvw','Facebook','627480CYLunF','_normalizeConfigSourceList','bind','has','evaluationLimit','uploadcareLicenseKeyInvalid','init','Local','uploadcareLicenseKeyEvaluationLimit','afterInit','uploadcare','registerIntegration','uploadcareLicenseKeyTrialLimit','_showLicenseError','isEnabled','uploadcareLicenseKeyUsageLimit','domainLimit','licenseKey','Insert','_getIntegrationKey','4YNYQcE','_createDropdownButtons','destroy','map','Dropbox','featureNotAllowed','trialLimit','UploadcareUI','196455guIXSs','locale','_licenseKeyCheckInterval','_createMenuBarButtons','uploadcareLicenseKeyExpired','upload','1943305IQrLyX','editor','tooltip','get'];_0x4eac=function(){return _0x578ecd;};return _0x4eac();}const _0x17427d=_0x3f01;(function(_0x2c383b,_0xa8c804){const _0x61b74a=_0x3f01,_0x25ade5=_0x2c383b();while(!![]){try{const _0x47b445=parseInt(_0x61b74a(0x182))/0x1*(-parseInt(_0x61b74a(0x1af))/0x2)+parseInt(_0x61b74a(0x1a5))/0x3+parseInt(_0x61b74a(0x19d))/0x4*(-parseInt(_0x61b74a(0x1b7))/0x5)+-parseInt(_0x61b74a(0x187))/0x6+parseInt(_0x61b74a(0x1ab))/0x7+parseInt(_0x61b74a(0x189))/0x8+parseInt(_0x61b74a(0x1c2))/0x9;if(_0x47b445===_0xa8c804)break;else _0x25ade5['push'](_0x25ade5['shift']());}catch(_0x2b45ec){_0x25ade5['push'](_0x25ade5['shift']());}}}(_0x4eac,0x3bc39));function _0x3f01(_0x11d7e5,_0x3f9767){const _0x4eac12=_0x4eac();return _0x3f01=function(_0x3f012f,_0x17258b){_0x3f012f=_0x3f012f-0x175;let _0x2d9f33=_0x4eac12[_0x3f012f];return _0x2d9f33;},_0x3f01(_0x11d7e5,_0x3f9767);}import{Plugin as _0x54c869}from'ckeditor5/src/core.js';import{IconDropbox as _0x41523f,IconFacebook as _0x5e4aae,IconGoogleDrive as _0x28c611,IconGooglePhotos as _0x74c5a7,IconUploadcareImageUpload as _0x1a2ddf,IconUploadcareLink as _0x48f96a,IconOneDrive as _0x53a513}from'ckeditor5/src/icons.js';import{ButtonView as _0x5e3ed1,MenuBarMenuListItemButtonView as _0x42938d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xe184a9}from'./uploadcareconfig.js';import{getTranslation as _0x108313}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x54c869{[_0x17427d(0x19a)];[_0x17427d(0x1a7)];static get[_0x17427d(0x1b9)](){const _0x6a608e=_0x17427d;return _0x6a608e(0x1a4);}static get[_0x17427d(0x183)](){return!0x0;}static get[_0x17427d(0x1bd)](){return!0x0;}[_0x17427d(0x18f)](){const _0x2ce17e=_0x17427d;this[_0x2ce17e(0x19a)]=this[_0x2ce17e(0x1ac)][_0x2ce17e(0x176)][_0x2ce17e(0x1ae)](_0x2ce17e(0x19a));const _0x38c0fa=this[_0x2ce17e(0x1ac)];this[_0x2ce17e(0x1a7)]=setInterval(()=>{const _0x4f30e4=_0x2ce17e;let _0x18c5f1;for(const _0xdcaf77 in _0x38c0fa){const _0x202311=_0xdcaf77,_0x36cb95=_0x38c0fa[_0x202311];if(_0x4f30e4(0x1b1)==_0x36cb95||_0x4f30e4(0x18e)==_0x36cb95||_0x4f30e4(0x1a9)==_0x36cb95||_0x4f30e4(0x1b6)==_0x36cb95||_0x4f30e4(0x17f)==_0x36cb95||_0x4f30e4(0x191)==_0x36cb95||_0x4f30e4(0x195)==_0x36cb95||_0x4f30e4(0x198)==_0x36cb95){delete _0x38c0fa[_0x202311],_0x18c5f1=_0x36cb95,clearInterval(this[_0x4f30e4(0x1a7)]),this[_0x4f30e4(0x1a7)]=void 0x0;break;}}_0x4f30e4(0x18e)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1c3)),_0x4f30e4(0x1a9)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1c4)),_0x4f30e4(0x1b6)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x199)),_0x4f30e4(0x17f)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1a2),_0x4f30e4(0x1b2)),_0x4f30e4(0x191)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x18d)),_0x4f30e4(0x195)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1a3)),_0x4f30e4(0x198)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x177));},0x3e8);}[_0x17427d(0x192)](){const _0xc5e101=_0x17427d,{editor:_0x4c59c7}=this,_0x5e7120=_0x4c59c7[_0xc5e101(0x17b)][_0xc5e101(0x1ae)](_0xc5e101(0x193));if(!_0x5e7120)return;const _0x32c9e4=this[_0xc5e101(0x18a)](_0x4c59c7[_0xc5e101(0x176)][_0xc5e101(0x1ae)](_0xc5e101(0x1b5)))[_0xc5e101(0x186)]((_0x2c9804,_0x138144)=>{const _0x43d116=_0xc5e101,_0x59ee54=this[_0x43d116(0x19c)](_0x138144[_0x43d116(0x181)]);return _0x2c9804[_0x59ee54]||(_0x2c9804[_0x59ee54]=[]),_0x2c9804[_0x59ee54][_0x43d116(0x175)](_0x138144),_0x2c9804;},{});_0x4c59c7[_0xc5e101(0x17e)][_0xc5e101(0x18c)](_0xc5e101(0x184))&&_0x4c59c7[_0xc5e101(0x17b)][_0xc5e101(0x1ae)](_0xc5e101(0x193))&&Object[_0xc5e101(0x1ba)](_0x32c9e4)[_0xc5e101(0x179)](([_0x4cf9c6,_0x4bcfdc])=>{const _0x36278c=_0xc5e101;_0x4c59c7[_0x36278c(0x17e)][_0x36278c(0x1ae)](_0x36278c(0x184))[_0x36278c(0x194)]({'name':_0x4cf9c6,'observable':()=>_0x5e7120,'buttonViewCreator':()=>this[_0x36278c(0x185)](_0x4bcfdc),'formViewCreator':()=>this[_0x36278c(0x19e)](_0x4bcfdc),'menuBarButtonViewCreator':()=>this[_0x36278c(0x1a8)](_0x4bcfdc),'override':_0x36278c(0x17c)!==_0x4cf9c6});});}[_0x17427d(0x19f)](){const _0x24ec85=_0x17427d;super[_0x24ec85(0x19f)](),this[_0x24ec85(0x1a7)]&&clearInterval(this[_0x24ec85(0x1a7)]);}[_0x17427d(0x18a)](_0x5da25f){const _0x204900=_0x17427d,{locale:_0xb8744b}=this[_0x204900(0x1ac)];return _0x5da25f[_0x204900(0x1a0)](_0x21ab13=>{const _0x1ecec1=_0x204900,_0x102357=_0x108313(_0xb8744b,_0x21ab13,_0x1ecec1(0x19b));switch(_0x21ab13){case _0xe184a9[_0x1ecec1(0x190)]:return{'icon':_0x1a2ddf,'type':_0xe184a9[_0x1ecec1(0x190)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1bc)]:return{'icon':_0x48f96a,'type':_0xe184a9[_0x1ecec1(0x1bc)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1a1)]:return{'icon':_0x41523f,'type':_0xe184a9[_0x1ecec1(0x1a1)],..._0x102357};case _0xe184a9[_0x1ecec1(0x188)]:return{'icon':_0x5e4aae,'type':_0xe184a9[_0x1ecec1(0x188)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1bb)]:return{'icon':_0x28c611,'type':_0xe184a9[_0x1ecec1(0x1bb)],..._0x102357};case _0xe184a9[_0x1ecec1(0x17a)]:return{'icon':_0x74c5a7,'type':_0xe184a9[_0x1ecec1(0x17a)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1b4)]:return{'icon':_0x53a513,'type':_0xe184a9[_0x1ecec1(0x1b4)],..._0x102357};}});}[_0x17427d(0x19c)](_0x32942f){const _0x34deb2=_0x17427d;switch(_0x32942f){case _0xe184a9[_0x34deb2(0x190)]:return _0x34deb2(0x1aa);case _0xe184a9[_0x34deb2(0x1bc)]:return _0x34deb2(0x1c0);default:return _0x34deb2(0x17c);}}[_0x17427d(0x180)](_0x519390,_0x2f6fd1){const _0x8c6b72=_0x17427d,_0x33a77e=this[_0x8c6b72(0x1ac)],_0x28f0c7=new _0x519390(_0x33a77e[_0x8c6b72(0x1a6)]),_0x288e58=_0x33a77e[_0x8c6b72(0x17b)][_0x8c6b72(0x1ae)](_0x8c6b72(0x193));return _0x28f0c7[_0x8c6b72(0x18b)](_0x8c6b72(0x197))['to'](_0x288e58),_0x28f0c7['on'](_0x8c6b72(0x1bf),()=>{const _0xa69b41=_0x8c6b72;_0x288e58[_0xa69b41(0x1bf)](_0x2f6fd1);}),_0x28f0c7;}[_0x17427d(0x185)](_0x402052){const _0x2df692=_0x17427d,{locale:_0x42deda}=this[_0x2df692(0x1ac)],_0x33ece8=this[_0x2df692(0x1ac)][_0x2df692(0x17e)][_0x2df692(0x1ae)](_0x2df692(0x184)),_0x3e7905=_0x402052[0x0],_0x43e33d=this[_0x2df692(0x180)](_0x5e3ed1,_0x3e7905[_0x2df692(0x181)]);return _0x43e33d[_0x2df692(0x178)]=_0x3e7905[_0x2df692(0x178)],_0x43e33d[_0x2df692(0x18b)](_0x2df692(0x1b3))['to'](_0x33ece8,_0x2df692(0x17d),_0x331b1d=>_0x108313(_0x42deda,_0x3e7905[_0x2df692(0x181)],_0x331b1d?_0x2df692(0x1b0):_0x2df692(0x19b))[_0x2df692(0x1c1)]),_0x43e33d[_0x2df692(0x1ad)]=!0x0,_0x43e33d;}[_0x17427d(0x19e)](_0x101c85){const _0x18be44=_0x17427d,{locale:_0x100a98}=this[_0x18be44(0x1ac)],_0x42543d=this[_0x18be44(0x1ac)][_0x18be44(0x17e)][_0x18be44(0x1ae)](_0x18be44(0x184));return _0x101c85[_0x18be44(0x1a0)](_0x59a509=>{const _0xce9a9d=_0x18be44,_0x1b5814=this[_0xce9a9d(0x180)](_0x5e3ed1,_0x59a509[_0xce9a9d(0x181)]);return _0x1b5814[_0xce9a9d(0x1be)]=!0x0,_0x1b5814[_0xce9a9d(0x178)]=_0x59a509[_0xce9a9d(0x178)],_0x1b5814[_0xce9a9d(0x18b)](_0xce9a9d(0x1b3))['to'](_0x42543d,_0xce9a9d(0x17d),_0x3a849a=>_0x108313(_0x100a98,_0x59a509[_0xce9a9d(0x181)],_0x3a849a?_0xce9a9d(0x1b0):_0xce9a9d(0x19b))[_0xce9a9d(0x1c1)]),_0x1b5814;});}[_0x17427d(0x1a8)](_0x296a5f){const _0x127b57=_0x17427d;return _0x296a5f[_0x127b57(0x1a0)](_0x1d17cb=>{const _0x1adf85=_0x127b57,_0x2f8c2f=this[_0x1adf85(0x180)](_0x42938d,_0x1d17cb[_0x1adf85(0x181)]);return _0x2f8c2f[_0x1adf85(0x178)]=_0x1d17cb[_0x1adf85(0x178)],_0x2f8c2f[_0x1adf85(0x1b3)]=_0x1d17cb[_0x1adf85(0x1b8)],_0x2f8c2f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1af3de}from'ckeditor5/src/core.js';import{FileRepository as _0x2e245a}from'ckeditor5/src/upload.js';import _0x443c3c from'./uploadcareediting.js';import _0x5e832a from'./utils/uploadutils.js';import{getImageUrls as _0x3d337f}from'./utils/editingutils.js';export default class p extends _0x1af3de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2e245a,_0x443c3c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x36a5bd=this['editor'];if(!!!_0x36a5bd['config']['get']('uploadcare'))return;_0x36a5bd['plugins']['get'](_0x2e245a)['createUploadAdapter']=_0x1801a0=>new x(_0x1801a0,_0x36a5bd),_0x36a5bd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x188962,{imageElement:_0x5afb68,data:_0x4772ef})=>{_0x36a5bd['model']['change'](_0x414207=>{_0x414207['setAttribute']('uploadcareImageId',_0x4772ef['uploadcareImageId'],_0x5afb68);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x25cf8e,_0x5f4e27){this['loader']=_0x25cf8e,this['editor']=_0x5f4e27,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x35fa24=this['editor']['config']['get']('uploadcare.pubkey'),_0x16f3bd=await this['loader']['file'];return _0x5e832a['upload']({'file':_0x16f3bd,'publicKey':_0x35fa24,'signal':this['controller']['signal'],'onProgress':_0xd6e34=>{_0xd6e34&&_0xd6e34['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xd6e34['value']);}})['then'](async _0x3f2be1=>{const {imageFallbackUrl:_0x42b34f,imageSources:_0x1a4288}=_0x3d337f(_0x3f2be1['cdnUrl'],_0x3f2be1['imageInfo']['width']);return{'uploadcareImageId':_0x3f2be1['uuid'],'default':_0x42b34f,'sources':_0x1a4288};})['catch'](()=>{const _0x30e532=t('Cannot\x20upload\x20file:')+('\x20'+_0x16f3bd['name']+'.');return Promise['reject'](_0x30e532);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x46edea}from'../uploadcareconfig.js';export function getTranslation(_0x4e72f1,_0x12225e,_0x317f90){const t=_0x4e72f1['t'],_0x50ce7a=_0x4e72f1['t'];switch(_0x12225e){case _0x46edea['Local']:return{'text':_0x50ce7a('Insert'===_0x317f90?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x50ce7a('From\x20computer')};case _0x46edea['URL']:return{'text':'Insert'===_0x317f90?_0x50ce7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x50ce7a('Via\x20URL')};case _0x46edea['Dropbox']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x46edea['Facebook']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x46edea['GDrive']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x46edea['GPhotos']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x46edea['OneDrive']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12225e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x28292a=_0x482f;(function(_0x1e7ca3,_0x34de28){var _0x58987c=_0x482f,_0x9e6f1c=_0x1e7ca3();while(!![]){try{var _0x4a4555=-parseInt(_0x58987c(0xcb))/0x1+-parseInt(_0x58987c(0xca))/0x2+parseInt(_0x58987c(0xd5))/0x3*(-parseInt(_0x58987c(0xcc))/0x4)+parseInt(_0x58987c(0xd2))/0x5*(parseInt(_0x58987c(0xcf))/0x6)+parseInt(_0x58987c(0xcd))/0x7+-parseInt(_0x58987c(0xd1))/0x8*(parseInt(_0x58987c(0xd8))/0x9)+-parseInt(_0x58987c(0xd0))/0xa*(-parseInt(_0x58987c(0xd3))/0xb);if(_0x4a4555===_0x34de28)break;else _0x9e6f1c['push'](_0x9e6f1c['shift']());}catch(_0x112efe){_0x9e6f1c['push'](_0x9e6f1c['shift']());}}}(_0xc7e5,0x1de1d));function _0xc7e5(){var _0x32cd49=['createCollection','fire','true','focusCycler','focusTracker','410878cHbbEL','224107eCcBIE','116Gcpcnl','1287475lkJIXT','div','570AGuKRg','5846270ePsBXd','48NBUeeT','12100wsdXay','11KWUXNG','bindTemplate','25287PKrjyW','getFocusableElement','forwardCycle','303102HprSCx'];_0xc7e5=function(){return _0x32cd49;};return _0xc7e5();}import{FocusTracker as _0x3d22d3}from'ckeditor5/src/utils.js';import{View as _0x5dfa8f,FocusCycler as _0x2144d2}from'ckeditor5/src/ui.js';function _0x482f(_0x593a8c,_0x4b2d21){var _0xc7e5e2=_0xc7e5();return _0x482f=function(_0x482f31,_0xee92d4){_0x482f31=_0x482f31-0xc5;var _0x4c7b72=_0xc7e5e2[_0x482f31];return _0x4c7b72;},_0x482f(_0x593a8c,_0x4b2d21);}import'../../theme/uploadcare-form.css';export default class q extends _0x5dfa8f{[_0x28292a(0xc9)];[_0x28292a(0xc8)];constructor(_0x56b17e){var _0x4e7954=_0x28292a;super(_0x56b17e),this[_0x4e7954(0xc9)]=new _0x3d22d3(),this[_0x4e7954(0xc8)]=new _0x2144d2({'focusables':this[_0x4e7954(0xc5)](),'focusTracker':this[_0x4e7954(0xc9)]});}[_0x28292a(0xd6)](){var _0x24876d=_0x28292a;return{'tag':_0x24876d(0xce),'attributes':{'aria-hidden':_0x24876d(0xc7),'tabindex':'0'},'on':{'focus':this[_0x24876d(0xd4)]['to'](()=>{var _0xf55565=_0x24876d;this[_0xf55565(0xc8)][_0xf55565(0xc6)](_0xf55565(0xd7));})}};}}
|