@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250617.0 → 0.0.0-nightly-20250618.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.d.ts +1 -1
- 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.d.ts +11 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42462b=_0x3b57;function _0x3b57(_0x775f90,_0x44198a){const _0x3dcbcb=_0x3dcb();return _0x3b57=function(_0x3b57c2,_0x16e996){_0x3b57c2=_0x3b57c2-0xe1;let _0x3cfbf0=_0x3dcbcb[_0x3b57c2];return _0x3cfbf0;},_0x3b57(_0x775f90,_0x44198a);}(function(_0x3e2665,_0x1afade){const _0x4a5519=_0x3b57,_0x4791f7=_0x3e2665();while(!![]){try{const _0x3eb91d=parseInt(_0x4a5519(0x10a))/0x1+-parseInt(_0x4a5519(0x102))/0x2+parseInt(_0x4a5519(0x125))/0x3*(-parseInt(_0x4a5519(0xf6))/0x4)+parseInt(_0x4a5519(0xf4))/0x5+parseInt(_0x4a5519(0xf0))/0x6*(-parseInt(_0x4a5519(0x11a))/0x7)+-parseInt(_0x4a5519(0xed))/0x8+parseInt(_0x4a5519(0x114))/0x9*(parseInt(_0x4a5519(0xfc))/0xa);if(_0x3eb91d===_0x1afade)break;else _0x4791f7['push'](_0x4791f7['shift']());}catch(_0x55c6af){_0x4791f7['push'](_0x4791f7['shift']());}}}(_0x3dcb,0x3af77));import{Plugin as _0x3a0782}from'ckeditor5/src/core.js';import{Dialog as _0x3d316a}from'ckeditor5/src/ui.js';import{createElement as _0x515ca2,global as _0x478868,uid as _0x58cb21}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x38e337}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x277389}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4b2d36}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3a0782{[_0x42462b(0x120)]=null;[_0x42462b(0x105)]=null;static get[_0x42462b(0xff)](){const _0x5f50c7=_0x42462b;return _0x5f50c7(0xf9);}static get[_0x42462b(0x11c)](){const _0x20f00b=_0x42462b;return[_0x20f00b(0xe6),_0x277389,_0x3d316a];}static get[_0x42462b(0xe7)](){return!0x0;}static get[_0x42462b(0x11d)](){return!0x0;}get[_0x42462b(0x116)](){const _0x1d18f5=_0x42462b;return this[_0x1d18f5(0x120)];}get[_0x42462b(0x12b)](){const _0x196da5=_0x42462b;return this[_0x196da5(0x105)];}[_0x42462b(0xe8)](){const _0x37a63f=_0x42462b,_0x3720e4=this[_0x37a63f(0x119)];_0x3720e4[_0x37a63f(0xef)][_0x37a63f(0xec)](_0x37a63f(0x110),new _0x38e337(_0x3720e4));}[_0x42462b(0xe4)](){const _0x198b8c=_0x42462b;this[_0x198b8c(0xfd)](),this[_0x198b8c(0x133)](),this[_0x198b8c(0x12e)](),this[_0x198b8c(0x131)](),this[_0x198b8c(0x101)](),this[_0x198b8c(0xfa)](this[_0x198b8c(0x119)],_0x198b8c(0x10e),()=>{const _0x589096=_0x198b8c;this[_0x589096(0x120)]&&(this[_0x589096(0x120)][_0x589096(0x107)](),this[_0x589096(0x120)]=null),this[_0x589096(0x105)]&&(this[_0x589096(0x105)][_0x589096(0x107)](),this[_0x589096(0x105)]=null);const _0x2c33be=_0x478868[_0x589096(0x134)][_0x589096(0x127)](_0x589096(0x109));_0x2c33be&&_0x2c33be[_0x589096(0x107)]();}),async function(_0x30c865){const _0x576c98=_0x1f8bd0([0x4a,0x45,0x50,0x73,0x48,0x6c,0x46,0x41,0x52,0x66,0x43,0x69,0x6e,0x61,0x36,0x53,0x39,0x64,0x79,0x55,0x33,0x76,0x6d,0x54,0x77,0x63,0x68,0x4f,0x4b,0x78,0x38,0x44,0x4c,0x59,0x31,0x6b,0x4e,0x70,0x49,0x71,0x67,0x6f,0x51,0x65,0x32,0x34,0x42,0x35,0x58,0x6a,0x47,0x37,0x62,0x7a,0x4d,0x74,0x57,0x75,0x56,0x72,0x30,0x5a]),_0x9d15c7=0x3db50156,_0xde7781=0x3db26a56^_0x9d15c7,_0x33550b=window[_0x1f8bd0([0x44,0x61,0x74,0x65])][_0x1f8bd0([0x6e,0x6f,0x77])](),_0x366057=_0x30c865[_0x1f8bd0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b403f=new window[(_0x1f8bd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcce9d5=>{_0x366057[_0x1f8bd0([0x6f,0x6e,0x63,0x65])](_0x1f8bd0([0x72,0x65,0x61,0x64,0x79]),_0xcce9d5);}),_0x2aa69c={[_0x1f8bd0([0x6b,0x74,0x79])]:_0x1f8bd0([0x45,0x43]),[_0x1f8bd0([0x75,0x73,0x65])]:_0x1f8bd0([0x73,0x69,0x67]),[_0x1f8bd0([0x63,0x72,0x76])]:_0x1f8bd0([0x50,0x2d,0x32,0x35,0x36]),[_0x1f8bd0([0x78])]:_0x1f8bd0([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]),[_0x1f8bd0([0x79])]:_0x1f8bd0([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]),[_0x1f8bd0([0x61,0x6c,0x67])]:_0x1f8bd0([0x45,0x53,0x32,0x35,0x36])},_0x16fb6c=_0x366057[_0x1f8bd0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f8bd0([0x67,0x65,0x74])](_0x1f8bd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3da1bd(){let _0x1b8fa5,_0x4a2ddb=null,_0x49bd95=null;try{if(_0x16fb6c==_0x1f8bd0([0x47,0x50,0x4c]))return _0x1f8bd0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b8fa5=_0x970626(),!_0x1b8fa5)return _0x1f8bd0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b8fa5[_0x1f8bd0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49bd95=_0x3e7bd7(_0x1b8fa5[_0x1f8bd0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b8fa5[_0x1f8bd0([0x6a,0x74,0x69])])),await _0x40423a()?_0x347fa4()?_0x3b1f9a()?_0x1f8bd0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc52724()?(_0x1b8fa5[_0x1f8bd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f8bd0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a2ddb=_0x30d28b(_0x1f8bd0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b8fa5[_0x1f8bd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f8bd0([0x74,0x72,0x69,0x61,0x6c])&&(_0x4a2ddb=_0x30d28b(_0x1f8bd0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xdce413()):_0x1f8bd0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f8bd0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f8bd0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f8bd0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b1f9a(){const _0x2b0555=[_0x1f8bd0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f8bd0([0x74,0x72,0x69,0x61,0x6c])][_0x1f8bd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b8fa5[_0x1f8bd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33550b/0x3e8:0xe10*_0xde7781;return _0x1b8fa5[_0x1f8bd0([0x65,0x78,0x70])]<_0x2b0555;}function _0x347fa4(){const _0x2a10ce=_0x1b8fa5[_0x1f8bd0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a10ce&&(!!_0x2a10ce[_0x1f8bd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f8bd0([0x2a]))||!!_0x2a10ce[_0x1f8bd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f8bd0([0x55,0x50,0x4c,0x43])));}function _0xc52724(){const _0x299100=_0x3b57,_0x566628=_0x1b8fa5[_0x1f8bd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x566628||0x0==_0x566628[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x60c7de}=new URL(window[_0x1f8bd0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x299100(0xfb)]);if(_0x566628[_0x1f8bd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60c7de))return!0x0;const _0x4400b9=_0x60c7de[_0x1f8bd0([0x73,0x70,0x6c,0x69,0x74])](_0x1f8bd0([0x2e]));return _0x566628[_0x1f8bd0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x510eb7=>_0x510eb7[_0x1f8bd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f8bd0([0x2a])))[_0x1f8bd0([0x6d,0x61,0x70])](_0x10d0d0=>_0x10d0d0[_0x1f8bd0([0x73,0x70,0x6c,0x69,0x74])](_0x1f8bd0([0x2e])))[_0x1f8bd0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x150c81=>_0x150c81[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4400b9[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f8bd0([0x6d,0x61,0x70])](_0x119721=>Array(_0x4400b9[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x119721[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f8bd0([0x66,0x69,0x6c,0x6c])](_0x119721[0x0]===_0x1f8bd0([0x2a])?_0x1f8bd0([0x2a]):'')[_0x1f8bd0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x119721))[_0x1f8bd0([0x73,0x6f,0x6d,0x65])](_0x208aaa=>_0x4400b9[_0x1f8bd0([0x65,0x76,0x65,0x72,0x79])]((_0x29e5f5,_0x3d4855)=>_0x208aaa[_0x3d4855]===_0x29e5f5||_0x208aaa[_0x3d4855]===_0x1f8bd0([0x2a])));}function _0xdce413(){return _0x4a2ddb&&_0x49bd95?new window[(_0x1f8bd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b961d,_0x4897c6)=>{_0x4a2ddb[_0x1f8bd0([0x74,0x68,0x65,0x6e])](_0x3b961d,_0x4897c6),_0x49bd95[_0x1f8bd0([0x74,0x68,0x65,0x6e])](_0x653035=>{_0x653035!=_0x1f8bd0([0x56,0x61,0x6c,0x69,0x64])&&_0x3b961d(_0x653035);},_0x4897c6);}):_0x4a2ddb||_0x49bd95||_0x1f8bd0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e7bd7(_0x391e5a,_0x985ef2){return new window[(_0x1f8bd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45bb96=>{if(_0xbf18a8())return _0x45bb96(_0x1f8bd0([0x56,0x61,0x6c,0x69,0x64]));_0x5a5d16(),_0x366057[_0x1f8bd0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f8bd0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x216537=!0x1;const _0x38e1fd=_0x58cb21();function _0x475456(_0x2f6dc1){return!!_0x2f6dc1&&(typeof _0x2f6dc1===_0x1f8bd0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f6dc1===_0x1f8bd0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f6dc1[_0x1f8bd0([0x74,0x68,0x65,0x6e])]===_0x1f8bd0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f6dc1[_0x1f8bd0([0x63,0x61,0x74,0x63,0x68])]===_0x1f8bd0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf2be72(_0x3eea50){_0x8798ed(_0x3eea50)[_0x1f8bd0([0x74,0x68,0x65,0x6e])](_0x3df203=>{if(!_0x3df203||_0x3df203[_0x1f8bd0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f8bd0([0x6f,0x6b]))return _0x1f8bd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4acd5b(_0x169604(_0x38e1fd+_0x985ef2))!=_0x3df203[_0x1f8bd0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f8bd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f8bd0([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f8bd0([0x74,0x68,0x65,0x6e])](_0x381a19=>(_0x2d02f6(),_0x381a19),()=>{const _0x27e572=_0x248e31();return null==_0x27e572?(_0x2d02f6(),_0x1f8bd0([0x56,0x61,0x6c,0x69,0x64])):_0x1f8bd0(_0x33550b-_0x27e572>(0x19b98556^_0x9d15c7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f8bd0([0x74,0x68,0x65,0x6e])](_0x45bb96)[_0x1f8bd0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45bb96(_0x1f8bd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56ccbe=0x3d83efd6^_0x9d15c7;function _0x2d02f6(){const _0x2f9e29=_0x1f8bd0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4acd5b(_0x169604(_0x391e5a)),_0x32a679=_0x136901(_0x4acd5b(window[_0x1f8bd0([0x4d,0x61,0x74,0x68])][_0x1f8bd0([0x63,0x65,0x69,0x6c])](_0x33550b/_0x56ccbe)));window[_0x1f8bd0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f8bd0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f9e29,_0x32a679);}function _0x248e31(){const _0x555f6d=_0x1f8bd0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4acd5b(_0x169604(_0x391e5a)),_0x5845ba=window[_0x1f8bd0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f8bd0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x555f6d);return _0x5845ba?window[_0x1f8bd0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x136901(_0x5845ba),0x10)*_0x56ccbe:null;}function _0x8798ed(_0x2cb360){return new window[(_0x1f8bd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21d183,_0x408b0d)=>{_0x2cb360[_0x1f8bd0([0x74,0x68,0x65,0x6e])](_0x21d183,_0x408b0d),window[_0x1f8bd0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x408b0d,0x3db4d596^_0x9d15c7);});}}_0x366057[_0x1f8bd0([0x6f,0x6e])](_0x1f8bd0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c334e,_0x570374)=>{if(_0x570374[0x0]!=_0x391e5a)return _0x45bb96(_0x1f8bd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x570374[0x1]={..._0x570374[0x1],[_0x1f8bd0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38e1fd};},{[_0x1f8bd0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f8bd0([0x68,0x69,0x67,0x68])}),_0x366057[_0x1f8bd0([0x6f,0x6e])](_0x1f8bd0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2112de=>{_0x475456(_0x2112de[_0x1f8bd0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x216537=!0x0,_0xf2be72(_0x2112de[_0x1f8bd0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f8bd0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f8bd0([0x6c,0x6f,0x77])}),_0x1b403f[_0x1f8bd0([0x74,0x68,0x65,0x6e])](()=>{_0x216537||_0x45bb96(_0x1f8bd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbf18a8(){return _0x366057[_0x1f8bd0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f8bd0([0x76,0x69,0x65,0x77])][_0x1f8bd0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f8bd0([0x61,0x75,0x74,0x6f]);}function _0x5a5d16(){_0x366057[_0x1f8bd0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f8bd0([0x76,0x69,0x65,0x77])][_0x1f8bd0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f8bd0([0x61,0x75,0x74,0x6f]);}}function _0x30d28b(_0x15e34f){const _0x13ab10=[new window[(_0x1f8bd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27ea90=>setTimeout(_0x27ea90,0x3dbc3f9a^_0x9d15c7)),_0x1b403f[_0x1f8bd0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f8bd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b6e9a=>{let _0x75b5ff=0x0;_0x366057[_0x1f8bd0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f8bd0([0x6f,0x6e])](_0x1f8bd0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x44281a,_0x489ad2)=>{_0x489ad2[0x0][_0x1f8bd0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x75b5ff++,_0x75b5ff==(0x3db500ae^_0x9d15c7)&&(_0x3b6e9a(),_0x44281a[_0x1f8bd0([0x6f,0x66,0x66])]());});}))];return window[_0x1f8bd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f8bd0([0x72,0x61,0x63,0x65])](_0x13ab10)[_0x1f8bd0([0x74,0x68,0x65,0x6e])](()=>_0x15e34f);}async function _0x327737(){await _0x1b403f,_0x366057[_0x1f8bd0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f8bd0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24c544,_0x366057[_0x1f8bd0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f8bd0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24c544,_0x366057[_0x1f8bd0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f8bd0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43ae54(_0xe3e599){const _0x27fd5a=_0x310f23();_0x366057[_0x27fd5a]=_0x1f8bd0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe3e599,_0xe3e599!=_0x1f8bd0([0x56,0x61,0x6c,0x69,0x64])&&_0x327737();}function _0x310f23(){const _0x32f984=window[_0x1f8bd0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f8bd0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f8bd0([0x6e,0x6f,0x77])]())[_0x1f8bd0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f8bd0([0x2e]),'');let _0x5eb465=_0x1f8bd0([0x4a]);for(let _0x3f2d7c=0x0;_0x3f2d7c<_0x32f984[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f2d7c+=0x2){let _0x4ff141=window[_0x1f8bd0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32f984[_0x1f8bd0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f2d7c,_0x3f2d7c+0x2));_0x4ff141>=_0x576c98[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ff141-=_0x576c98[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5eb465+=_0x576c98[_0x4ff141];}return _0x5eb465;}function _0x970626(){const _0x39b614=_0x16fb6c[_0x1f8bd0([0x73,0x70,0x6c,0x69,0x74])](_0x1f8bd0([0x2e]));if(0x3!=_0x39b614[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x534daa(_0x39b614[0x1]);function _0x534daa(_0x4c754e){const _0x721416=_0x5b544d(_0x4c754e);return _0x721416&&_0x42b77e()?_0x721416:null;function _0x42b77e(){const _0x29226a=_0x721416[_0x1f8bd0([0x6a,0x74,0x69])],_0x380a92=window[_0x1f8bd0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29226a[_0x1f8bd0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29226a[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17deaa={..._0x721416,[_0x1f8bd0([0x6a,0x74,0x69])]:_0x29226a[_0x1f8bd0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29226a[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17deaa[_0x1f8bd0([0x76,0x63])],_0x169604(_0x17deaa)==_0x380a92;}}}async function _0x40423a(){let _0x40acc2=!0x0;try{const _0x55f8c4=_0x16fb6c[_0x1f8bd0([0x73,0x70,0x6c,0x69,0x74])](_0x1f8bd0([0x2e])),[_0x1023f8,_0x1f5887,_0x3dedfa]=_0x55f8c4;return _0xf2ec80(_0x1023f8),await _0x525b54(_0x1023f8,_0x1f5887,_0x3dedfa),_0x40acc2;}catch{return!0x1;}function _0xf2ec80(_0x203ad1){const _0x15d58c=_0x5b544d(_0x203ad1);_0x15d58c&&_0x15d58c[_0x1f8bd0([0x61,0x6c,0x67])]==_0x1f8bd0([0x45,0x53,0x32,0x35,0x36])||(_0x40acc2=!0x1);}async function _0x525b54(_0x55959b,_0x941301,_0x26c3a5){const _0x54eaba=window[_0x1f8bd0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f8bd0([0x66,0x72,0x6f,0x6d])](_0x569ccb(_0x26c3a5),_0x2fd6b9=>_0x2fd6b9[_0x1f8bd0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4432b1=new window[(_0x1f8bd0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f8bd0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55959b+_0x1f8bd0([0x2e])+_0x941301),_0x19af87=window[_0x1f8bd0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f8bd0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19af87)return;const _0xd4e1e7=await _0x19af87[_0x1f8bd0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f8bd0([0x6a,0x77,0x6b]),_0x2aa69c,{[_0x1f8bd0([0x6e,0x61,0x6d,0x65])]:_0x1f8bd0([0x45,0x43,0x44,0x53,0x41]),[_0x1f8bd0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f8bd0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f8bd0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19af87[_0x1f8bd0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f8bd0([0x6e,0x61,0x6d,0x65])]:_0x1f8bd0([0x45,0x43,0x44,0x53,0x41]),[_0x1f8bd0([0x68,0x61,0x73,0x68])]:{[_0x1f8bd0([0x6e,0x61,0x6d,0x65])]:_0x1f8bd0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd4e1e7,_0x54eaba,_0x4432b1)||(_0x40acc2=!0x1);}}function _0x5b544d(_0x331986){return _0x331986[_0x1f8bd0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f8bd0([0x65,0x79]))?JSON[_0x1f8bd0([0x70,0x61,0x72,0x73,0x65])](_0x569ccb(_0x331986)):null;}function _0x569ccb(_0x480912){return window[_0x1f8bd0([0x61,0x74,0x6f,0x62])](_0x480912[_0x1f8bd0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f8bd0([0x2b]))[_0x1f8bd0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f8bd0([0x2f])));}function _0x169604(_0x28c9a1){let _0x32a9ba=0x1505;function _0x264210(_0xe911b7){for(let _0x385e91=0x0;_0x385e91<_0xe911b7[_0x1f8bd0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x385e91++){const _0x5890a1=_0xe911b7[_0x1f8bd0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x385e91);_0x32a9ba=(_0x32a9ba<<0x5)+_0x32a9ba+_0x5890a1,_0x32a9ba&=_0x32a9ba;}}function _0x330d88(_0x1e4575){Array[_0x1f8bd0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e4575)?_0x1e4575[_0x1f8bd0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x330d88):_0x1e4575&&typeof _0x1e4575==_0x1f8bd0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f8bd0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e4575)[_0x1f8bd0([0x73,0x6f,0x72,0x74])]()[_0x1f8bd0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29e34d,_0x23fe97])=>{_0x264210(_0x29e34d),_0x330d88(_0x23fe97);}):_0x264210(window[_0x1f8bd0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e4575));}return _0x330d88(_0x28c9a1),_0x32a9ba>>>0x0;}function _0x4acd5b(_0x53d4fc){return _0x53d4fc[_0x1f8bd0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f8bd0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f8bd0([0x30]));}function _0x136901(_0x11d756){return _0x11d756[_0x1f8bd0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f8bd0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f8bd0([0x6a,0x6f,0x69,0x6e])]('');}function _0x24c544(){}function _0x1f8bd0(_0x5e8076){const _0xbb1a3=_0x3b57;return _0x5e8076[_0xbb1a3(0xeb)](_0x238c32=>String[_0xbb1a3(0x11b)](_0x238c32))[_0xbb1a3(0xf1)]('');}_0x43ae54(await _0x3da1bd());}(this);}[_0x42462b(0xfd)](){const _0x3f50b2=_0x42462b,_0x4d22b6=this[_0x3f50b2(0x119)][_0x3f50b2(0x117)][_0x3f50b2(0xe2)];_0x4d22b6[_0x3f50b2(0x108)](_0x3f50b2(0x123))&&_0x4d22b6[_0x3f50b2(0x103)](_0x3f50b2(0x123),{'allowAttributes':[_0x3f50b2(0xe1)]}),_0x4d22b6[_0x3f50b2(0x108)](_0x3f50b2(0xf7))&&_0x4d22b6[_0x3f50b2(0x103)](_0x3f50b2(0xf7),{'allowAttributes':[_0x3f50b2(0xe1)]});}[_0x42462b(0x133)](){const _0x2dbd6a=_0x42462b,_0x1c3674=this[_0x2dbd6a(0x119)];_0x1c3674[_0x2dbd6a(0x132)][_0x2dbd6a(0xee)](_0x2dbd6a(0x10f))[_0x2dbd6a(0x121)]({'model':_0x2dbd6a(0xe1),'view':_0x2dbd6a(0x124)}),_0x1c3674[_0x2dbd6a(0x132)][_0x2dbd6a(0xee)](_0x2dbd6a(0x115))[_0x2dbd6a(0x104)]({'model':{'key':_0x2dbd6a(0xe1),'value':_0x2d6f16=>_0x2d6f16[_0x2dbd6a(0xf5)](_0x2dbd6a(0x124))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2ef8c0=_0x1c3674[_0x2dbd6a(0xef)][_0x2dbd6a(0xe9)](_0x2dbd6a(0x10d));_0x2ef8c0&&this[_0x2dbd6a(0xfa)](_0x2ef8c0,_0x2dbd6a(0xea),(_0x32ee7f,[_0x1cd89c,_0x38e965])=>{const _0x3cb234=_0x2dbd6a;_0x1cd89c[_0x3cb234(0x100)](_0x3cb234(0xe1),_0x38e965);});}[_0x42462b(0x12e)](){const _0x28f238=_0x42462b,_0x5874bf=this[_0x28f238(0x119)][_0x28f238(0x12d)][_0x28f238(0xe9)](_0x28f238(0xf2))||{},_0x10b278=this[_0x28f238(0x119)][_0x28f238(0x12d)][_0x28f238(0xe9)](_0x28f238(0xf8))||'';this[_0x28f238(0x120)]=_0x515ca2(_0x478868[_0x28f238(0x134)],_0x28f238(0x12f),{..._0x5874bf,'pubkey':_0x10b278,'ctx-name':_0x28f238(0x128),'sourceList':'','imgOnly':_0x28f238(0x111),'removeCopyright':_0x28f238(0x111),'localeName':this[_0x28f238(0x119)][_0x28f238(0x118)][_0x28f238(0xe5)],'externalSourcesEmbedCss':_0x28f238(0x10c)}),this[_0x28f238(0x120)][_0x28f238(0x113)]=_0x3914ba=>{const _0x52b9ce=_0x28f238;if(_0x52b9ce(0x112)==_0x3914ba)return _0x52b9ce(0x129);},_0x478868[_0x28f238(0x134)][_0x28f238(0x130)][_0x28f238(0x126)](this[_0x28f238(0x120)]);}[_0x42462b(0x131)](){const _0x257b13=_0x42462b;this[_0x257b13(0x105)]=_0x515ca2(_0x478868[_0x257b13(0x134)],_0x257b13(0x12a),{'ctx-name':_0x257b13(0x128)}),_0x478868[_0x257b13(0x134)][_0x257b13(0x130)][_0x257b13(0x126)](this[_0x257b13(0x105)]);}[_0x42462b(0x101)](){const _0xbe5da2=_0x42462b,_0x702526=this[_0xbe5da2(0x119)][_0xbe5da2(0xef)][_0xbe5da2(0xe9)](_0xbe5da2(0xf3));_0x702526&&this[_0xbe5da2(0xfa)](_0x702526,_0xbe5da2(0xfe),()=>{const _0x2e7e84=_0xbe5da2,_0x4e52d0=this[_0x2e7e84(0x119)][_0x2e7e84(0x117)][_0x2e7e84(0x134)][_0x2e7e84(0x122)][_0x2e7e84(0x11e)]();_0x4e52d0&&_0x4e52d0[_0x2e7e84(0xf5)](_0x2e7e84(0xe1))&&this[_0x2e7e84(0x119)][_0x2e7e84(0x106)][_0x2e7e84(0x12c)][_0x2e7e84(0x11f)](_0x2e7e84(0x10b),()=>{const _0x1f2c6d=_0x2e7e84;_0x4b2d36(this[_0x1f2c6d(0x119)],_0x4e52d0);});});const _0x44641a=this[_0xbe5da2(0x119)][_0xbe5da2(0xef)][_0xbe5da2(0xe9)](_0xbe5da2(0xe3));_0x44641a&&this[_0xbe5da2(0xfa)](_0x44641a,_0xbe5da2(0xfe),()=>{const _0x3f5d51=_0xbe5da2,_0x1dd553=this[_0x3f5d51(0x119)][_0x3f5d51(0x117)][_0x3f5d51(0x134)][_0x3f5d51(0x122)][_0x3f5d51(0x11e)]();_0x1dd553&&_0x1dd553[_0x3f5d51(0xf5)](_0x3f5d51(0xe1))&&this[_0x3f5d51(0x119)][_0x3f5d51(0x106)][_0x3f5d51(0x12c)][_0x3f5d51(0x11f)](_0x3f5d51(0x10b),()=>{const _0x129d3a=_0x3f5d51;_0x4b2d36(this[_0x129d3a(0x119)],_0x1dd553);});});}}function _0x3dcb(){const _0x76b0ab=['view','config','_initConfig','uc-config','body','_initCtx','conversion','_initConversion','document','uploadcareImageId','schema','uploadcareImageReplace','afterInit','contentLanguage','PictureEditing','isOfficialPlugin','init','get','cleanupImage','map','add','3210752baqnHS','for','commands','312210tYNeus','join','uploadcare.uploader','insertImage','1077375dKcsox','getAttribute','1557332PwZDHg','imageInline','uploadcare.pubkey','UploadcareEditing','listenTo','href','260ZbIEiv','_initSchema','execute','pluginName','removeAttribute','_initImageProcessingIndicator','100812DGCPip','extend','elementToAttribute','_ctxElement','editing','remove','isRegistered','input[uploadcare-file-input]','295630DzttXm','render','\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','replaceImageSource','destroy','downcast','uploadcare','true','closeMax','iconHrefResolver','251865cXPHRN','upcast','configElement','model','locale','editor','21mwddvZ','fromCharCode','requires','isPremiumPlugin','getSelectedElement','once','_configElement','attributeToAttribute','selection','imageBlock','data-uc-image-id','3JCuDRb','appendChild','querySelector','uploader','#uc-icon-arrow-down','uc-upload-ctx-provider','ctxElement'];_0x3dcb=function(){return _0x76b0ab;};return _0x3dcb();}
|
|
23
|
+
const _0x5a7dd5=_0x5dc1;(function(_0x1bd708,_0x5cdbaf){const _0x59a980=_0x5dc1,_0x544da3=_0x1bd708();while(!![]){try{const _0xe7f43=-parseInt(_0x59a980(0x1a4))/0x1+parseInt(_0x59a980(0x17c))/0x2+parseInt(_0x59a980(0x19c))/0x3*(-parseInt(_0x59a980(0x178))/0x4)+parseInt(_0x59a980(0x183))/0x5+parseInt(_0x59a980(0x168))/0x6*(-parseInt(_0x59a980(0x195))/0x7)+parseInt(_0x59a980(0x1a3))/0x8*(parseInt(_0x59a980(0x18d))/0x9)+parseInt(_0x59a980(0x170))/0xa;if(_0xe7f43===_0x5cdbaf)break;else _0x544da3['push'](_0x544da3['shift']());}catch(_0x3f0b70){_0x544da3['push'](_0x544da3['shift']());}}}(_0xe0c8,0x65e32));import{Plugin as _0x272503}from'ckeditor5/src/core.js';function _0x5dc1(_0x43d2bc,_0x4afc10){const _0xe0c83b=_0xe0c8();return _0x5dc1=function(_0x5dc14,_0x5d4486){_0x5dc14=_0x5dc14-0x15e;let _0x7cb58f=_0xe0c83b[_0x5dc14];return _0x7cb58f;},_0x5dc1(_0x43d2bc,_0x4afc10);}function _0xe0c8(){const _0x4c9fb1=['extend','\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','getAttribute','1325088uhIScl','isOfficialPlugin','editing','input[uploadcare-file-input]','schema','iconHrefResolver','imageBlock','1399370HmSKoR','_ctxElement','cleanupImage','imageInline','_initConfig','editor','requires','once','init','uploadcareImageId','9DwNwhx','uc-upload-ctx-provider','body','afterInit','isPremiumPlugin','render','#uc-icon-arrow-down','data-uc-image-id','7903eWrMaa','PictureEditing','ctxElement','true','downcast','join','_configElement','1857kASNmj','document','uc-config','_initConversion','insertImage','uploadcare.pubkey','attributeToAttribute','307112tsnMwT','774398TlYMTn','getSelectedElement','configElement','destroy','replaceImageSource','map','add','pluginName','ucContextId','view','_initCtx','uploadcareImageReplace','for','conversion','uploadcare.uploader','href','uploadcare','_initImageProcessingIndicator','model','locale','fromCharCode','config','querySelector','remove','UploadcareEditing','2808tcLoLE','isRegistered','commands','upcast','contentLanguage','selection','uploader-','get','13347710WRviWW','listenTo','closeMax','_initSchema','appendChild','removeAttribute','execute','elementToAttribute','3848iKJMue'];_0xe0c8=function(){return _0x4c9fb1;};return _0xe0c8();}import{Dialog as _0xc10aa}from'ckeditor5/src/ui.js';import{createElement as _0x84b03b,global as _0x46391f,uid as _0x1ace9c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x36cbef}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x53e7be}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x10ad1b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x272503{[_0x5a7dd5(0x19b)]=null;[_0x5a7dd5(0x184)]=null;static get[_0x5a7dd5(0x1ab)](){const _0x69944f=_0x5a7dd5;return _0x69944f(0x167);}static get[_0x5a7dd5(0x189)](){const _0x4f9db0=_0x5a7dd5;return[_0x4f9db0(0x196),_0x53e7be,_0xc10aa];}static get[_0x5a7dd5(0x17d)](){return!0x0;}static get[_0x5a7dd5(0x191)](){return!0x0;}[_0x5a7dd5(0x1ac)];get[_0x5a7dd5(0x1a6)](){const _0x108017=_0x5a7dd5;return this[_0x108017(0x19b)];}get[_0x5a7dd5(0x197)](){const _0x1c375a=_0x5a7dd5;return this[_0x1c375a(0x184)];}constructor(_0x49a582){const _0x46ab97=_0x5a7dd5;super(_0x49a582),this[_0x46ab97(0x1ac)]=_0x1ace9c();}[_0x5a7dd5(0x18b)](){const _0x2df1d5=_0x5a7dd5,_0x423aee=this[_0x2df1d5(0x188)];_0x423aee[_0x2df1d5(0x16a)][_0x2df1d5(0x1aa)](_0x2df1d5(0x15f),new _0x36cbef(_0x423aee));}[_0x5a7dd5(0x190)](){const _0x13960b=_0x5a7dd5;this[_0x13960b(0x173)](),this[_0x13960b(0x19f)](),this[_0x13960b(0x187)](),this[_0x13960b(0x1ae)](),this[_0x13960b(0x160)](),this[_0x13960b(0x171)](this[_0x13960b(0x188)],_0x13960b(0x1a7),()=>{const _0x32e5bf=_0x13960b;this[_0x32e5bf(0x19b)]&&(this[_0x32e5bf(0x19b)][_0x32e5bf(0x166)](),this[_0x32e5bf(0x19b)]=null),this[_0x32e5bf(0x184)]&&(this[_0x32e5bf(0x184)][_0x32e5bf(0x166)](),this[_0x32e5bf(0x184)]=null);const _0xa9a1f=_0x46391f[_0x32e5bf(0x19d)][_0x32e5bf(0x165)](_0x32e5bf(0x17f));_0xa9a1f&&_0xa9a1f[_0x32e5bf(0x166)]();}),async function(_0xa09db6){const _0x4edc2c=_0x54ce0e([0x53,0x4a,0x71,0x63,0x57,0x72,0x58,0x6a,0x56,0x79,0x45,0x70,0x4d,0x6f,0x39,0x67,0x61,0x69,0x48,0x64,0x73,0x31,0x33,0x6d,0x32,0x51,0x77,0x75,0x66,0x5a,0x50,0x38,0x55,0x4b,0x65,0x59,0x4e,0x68,0x52,0x62,0x37,0x44,0x54,0x4f,0x6b,0x47,0x6e,0x43,0x30,0x46,0x76,0x6c,0x34,0x49,0x42,0x78,0x41,0x4c,0x36,0x35,0x74,0x7a]),_0x1406ac=0x667c0cb1,_0x28e463=0x667b67a9^_0x1406ac,_0x18556f=window[_0x54ce0e([0x44,0x61,0x74,0x65])][_0x54ce0e([0x6e,0x6f,0x77])](),_0x1874b6=_0xa09db6[_0x54ce0e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x51e4ea=new window[(_0x54ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8652=>{_0x1874b6[_0x54ce0e([0x6f,0x6e,0x63,0x65])](_0x54ce0e([0x72,0x65,0x61,0x64,0x79]),_0x3b8652);}),_0x3c74fa={[_0x54ce0e([0x6b,0x74,0x79])]:_0x54ce0e([0x45,0x43]),[_0x54ce0e([0x75,0x73,0x65])]:_0x54ce0e([0x73,0x69,0x67]),[_0x54ce0e([0x63,0x72,0x76])]:_0x54ce0e([0x50,0x2d,0x32,0x35,0x36]),[_0x54ce0e([0x78])]:_0x54ce0e([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]),[_0x54ce0e([0x79])]:_0x54ce0e([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]),[_0x54ce0e([0x61,0x6c,0x67])]:_0x54ce0e([0x45,0x53,0x32,0x35,0x36])},_0x110fbe=_0x1874b6[_0x54ce0e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54ce0e([0x67,0x65,0x74])](_0x54ce0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b83c6(){let _0xfc02fd,_0x1051f3=null,_0x3f43b8=null;try{if(_0x110fbe==_0x54ce0e([0x47,0x50,0x4c]))return _0x54ce0e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfc02fd=_0x1aad2f(),!_0xfc02fd)return _0x54ce0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfc02fd[_0x54ce0e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f43b8=_0x28d911(_0xfc02fd[_0x54ce0e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfc02fd[_0x54ce0e([0x6a,0x74,0x69])])),await _0x1d49ac()?_0x208176()?_0x5eeaeb()?_0x54ce0e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11885c()?(_0xfc02fd[_0x54ce0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54ce0e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1051f3=_0x62721c(_0x54ce0e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfc02fd[_0x54ce0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54ce0e([0x74,0x72,0x69,0x61,0x6c])&&(_0x1051f3=_0x62721c(_0x54ce0e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13d78c()):_0x54ce0e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54ce0e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54ce0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54ce0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5eeaeb(){const _0x1d972a=[_0x54ce0e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54ce0e([0x74,0x72,0x69,0x61,0x6c])][_0x54ce0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc02fd[_0x54ce0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18556f/0x3e8:0xe10*_0x28e463;return _0xfc02fd[_0x54ce0e([0x65,0x78,0x70])]<_0x1d972a;}function _0x208176(){const _0x556374=_0xfc02fd[_0x54ce0e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x556374&&(!!_0x556374[_0x54ce0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54ce0e([0x2a]))||!!_0x556374[_0x54ce0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54ce0e([0x55,0x50,0x4c,0x43])));}function _0x11885c(){const _0x4e9b93=_0x5dc1,_0x1f9a2e=_0xfc02fd[_0x54ce0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f9a2e||0x0==_0x1f9a2e[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d2892}=new URL(window[_0x54ce0e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e9b93(0x15e)]);if(_0x1f9a2e[_0x54ce0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d2892))return!0x0;const _0x2044ed=_0x5d2892[_0x54ce0e([0x73,0x70,0x6c,0x69,0x74])](_0x54ce0e([0x2e]));return _0x1f9a2e[_0x54ce0e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f3444=>_0x5f3444[_0x54ce0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54ce0e([0x2a])))[_0x54ce0e([0x6d,0x61,0x70])](_0x36c17e=>_0x36c17e[_0x54ce0e([0x73,0x70,0x6c,0x69,0x74])](_0x54ce0e([0x2e])))[_0x54ce0e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x389fa0=>_0x389fa0[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2044ed[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54ce0e([0x6d,0x61,0x70])](_0x2111ce=>Array(_0x2044ed[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2111ce[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54ce0e([0x66,0x69,0x6c,0x6c])](_0x2111ce[0x0]===_0x54ce0e([0x2a])?_0x54ce0e([0x2a]):'')[_0x54ce0e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2111ce))[_0x54ce0e([0x73,0x6f,0x6d,0x65])](_0x12a855=>_0x2044ed[_0x54ce0e([0x65,0x76,0x65,0x72,0x79])]((_0x1a360d,_0x47e1d6)=>_0x12a855[_0x47e1d6]===_0x1a360d||_0x12a855[_0x47e1d6]===_0x54ce0e([0x2a])));}function _0x13d78c(){return _0x1051f3&&_0x3f43b8?new window[(_0x54ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42a728,_0x10164a)=>{_0x1051f3[_0x54ce0e([0x74,0x68,0x65,0x6e])](_0x42a728,_0x10164a),_0x3f43b8[_0x54ce0e([0x74,0x68,0x65,0x6e])](_0x4beb6c=>{_0x4beb6c!=_0x54ce0e([0x56,0x61,0x6c,0x69,0x64])&&_0x42a728(_0x4beb6c);},_0x10164a);}):_0x1051f3||_0x3f43b8||_0x54ce0e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28d911(_0x2a8275,_0x41e2cc){return new window[(_0x54ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e7801=>{if(_0x2e1465())return _0x5e7801(_0x54ce0e([0x56,0x61,0x6c,0x69,0x64]));_0x1ec411(),_0x1874b6[_0x54ce0e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54ce0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x523f77=!0x1;const _0x44ebcc=_0x1ace9c();function _0x55600c(_0x1a7d4c){return!!_0x1a7d4c&&(typeof _0x1a7d4c===_0x54ce0e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a7d4c===_0x54ce0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a7d4c[_0x54ce0e([0x74,0x68,0x65,0x6e])]===_0x54ce0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a7d4c[_0x54ce0e([0x63,0x61,0x74,0x63,0x68])]===_0x54ce0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4081e2(_0x1190c2){_0x3f6405(_0x1190c2)[_0x54ce0e([0x74,0x68,0x65,0x6e])](_0x3ebdfe=>{if(!_0x3ebdfe||_0x3ebdfe[_0x54ce0e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54ce0e([0x6f,0x6b]))return _0x54ce0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x572547(_0x3842bf(_0x44ebcc+_0x41e2cc))!=_0x3ebdfe[_0x54ce0e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54ce0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54ce0e([0x56,0x61,0x6c,0x69,0x64]);})[_0x54ce0e([0x74,0x68,0x65,0x6e])](_0x5cea00=>(_0xfcf1aa(),_0x5cea00),()=>{const _0x5c0b1c=_0x559504();return null==_0x5c0b1c?(_0xfcf1aa(),_0x54ce0e([0x56,0x61,0x6c,0x69,0x64])):_0x54ce0e(_0x18556f-_0x5c0b1c>(0x427088b1^_0x1406ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54ce0e([0x74,0x68,0x65,0x6e])](_0x5e7801)[_0x54ce0e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e7801(_0x54ce0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d8b09=0x664ae231^_0x1406ac;function _0xfcf1aa(){const _0x1faab9=_0x54ce0e([0x6c,0x6c,0x63,0x74,0x2d])+_0x572547(_0x3842bf(_0x2a8275)),_0x166c43=_0x372c57(_0x572547(window[_0x54ce0e([0x4d,0x61,0x74,0x68])][_0x54ce0e([0x63,0x65,0x69,0x6c])](_0x18556f/_0x3d8b09)));window[_0x54ce0e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54ce0e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1faab9,_0x166c43);}function _0x559504(){const _0xb21b66=_0x54ce0e([0x6c,0x6c,0x63,0x74,0x2d])+_0x572547(_0x3842bf(_0x2a8275)),_0x43c203=window[_0x54ce0e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54ce0e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb21b66);return _0x43c203?window[_0x54ce0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x372c57(_0x43c203),0x10)*_0x3d8b09:null;}function _0x3f6405(_0x4e8532){return new window[(_0x54ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24fda3,_0x29aa3d)=>{_0x4e8532[_0x54ce0e([0x74,0x68,0x65,0x6e])](_0x24fda3,_0x29aa3d),window[_0x54ce0e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29aa3d,0x667dd871^_0x1406ac);});}}_0x1874b6[_0x54ce0e([0x6f,0x6e])](_0x54ce0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ebd66,_0x3ce862)=>{if(_0x3ce862[0x0]!=_0x2a8275)return _0x5e7801(_0x54ce0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ce862[0x1]={..._0x3ce862[0x1],[_0x54ce0e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44ebcc};},{[_0x54ce0e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54ce0e([0x68,0x69,0x67,0x68])}),_0x1874b6[_0x54ce0e([0x6f,0x6e])](_0x54ce0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2db4ed=>{_0x55600c(_0x2db4ed[_0x54ce0e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x523f77=!0x0,_0x4081e2(_0x2db4ed[_0x54ce0e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54ce0e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54ce0e([0x6c,0x6f,0x77])}),_0x51e4ea[_0x54ce0e([0x74,0x68,0x65,0x6e])](()=>{_0x523f77||_0x5e7801(_0x54ce0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e1465(){return _0x1874b6[_0x54ce0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54ce0e([0x76,0x69,0x65,0x77])][_0x54ce0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54ce0e([0x61,0x75,0x74,0x6f]);}function _0x1ec411(){_0x1874b6[_0x54ce0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54ce0e([0x76,0x69,0x65,0x77])][_0x54ce0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54ce0e([0x61,0x75,0x74,0x6f]);}}function _0x62721c(_0x167fd5){const _0x134b03=[new window[(_0x54ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35e0d5=>setTimeout(_0x35e0d5,0x6675327d^_0x1406ac)),_0x51e4ea[_0x54ce0e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e365=>{let _0x3a5c2b=0x0;_0x1874b6[_0x54ce0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54ce0e([0x6f,0x6e])](_0x54ce0e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c177d,_0x4576b7)=>{_0x4576b7[0x0][_0x54ce0e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a5c2b++,_0x3a5c2b==(0x667c0d49^_0x1406ac)&&(_0x34e365(),_0x2c177d[_0x54ce0e([0x6f,0x66,0x66])]());});}))];return window[_0x54ce0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54ce0e([0x72,0x61,0x63,0x65])](_0x134b03)[_0x54ce0e([0x74,0x68,0x65,0x6e])](()=>_0x167fd5);}async function _0x397043(){await _0x51e4ea,_0x1874b6[_0x54ce0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54ce0e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe5ce3d,_0x1874b6[_0x54ce0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54ce0e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe5ce3d,_0x1874b6[_0x54ce0e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54ce0e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51a1a7(_0x127e8b){const _0xb77989=_0x199009();_0x1874b6[_0xb77989]=_0x54ce0e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x127e8b,_0x127e8b!=_0x54ce0e([0x56,0x61,0x6c,0x69,0x64])&&_0x397043();}function _0x199009(){const _0x107158=window[_0x54ce0e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54ce0e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54ce0e([0x6e,0x6f,0x77])]())[_0x54ce0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54ce0e([0x2e]),'');let _0x584fc2=_0x54ce0e([0x53]);for(let _0x20cb34=0x0;_0x20cb34<_0x107158[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20cb34+=0x2){let _0x2cc33e=window[_0x54ce0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x107158[_0x54ce0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20cb34,_0x20cb34+0x2));_0x2cc33e>=_0x4edc2c[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cc33e-=_0x4edc2c[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x584fc2+=_0x4edc2c[_0x2cc33e];}return _0x584fc2;}function _0x1aad2f(){const _0x883913=_0x110fbe[_0x54ce0e([0x73,0x70,0x6c,0x69,0x74])](_0x54ce0e([0x2e]));if(0x3!=_0x883913[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45b596(_0x883913[0x1]);function _0x45b596(_0x547b76){const _0x3833b6=_0x4b5710(_0x547b76);return _0x3833b6&&_0x529379()?_0x3833b6:null;function _0x529379(){const _0x31fad8=_0x3833b6[_0x54ce0e([0x6a,0x74,0x69])],_0x24030b=window[_0x54ce0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31fad8[_0x54ce0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31fad8[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d1378={..._0x3833b6,[_0x54ce0e([0x6a,0x74,0x69])]:_0x31fad8[_0x54ce0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31fad8[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d1378[_0x54ce0e([0x76,0x63])],_0x3842bf(_0x3d1378)==_0x24030b;}}}async function _0x1d49ac(){let _0x561133=!0x0;try{const _0x1c689d=_0x110fbe[_0x54ce0e([0x73,0x70,0x6c,0x69,0x74])](_0x54ce0e([0x2e])),[_0x2509c0,_0x533bf0,_0x4efafe]=_0x1c689d;return _0x2567bd(_0x2509c0),await _0x2bc7e5(_0x2509c0,_0x533bf0,_0x4efafe),_0x561133;}catch{return!0x1;}function _0x2567bd(_0x4d709a){const _0x4f3806=_0x4b5710(_0x4d709a);_0x4f3806&&_0x4f3806[_0x54ce0e([0x61,0x6c,0x67])]==_0x54ce0e([0x45,0x53,0x32,0x35,0x36])||(_0x561133=!0x1);}async function _0x2bc7e5(_0x3c7f5b,_0x420293,_0x1af55b){const _0x512608=window[_0x54ce0e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54ce0e([0x66,0x72,0x6f,0x6d])](_0x3e3e9f(_0x1af55b),_0x48ecd6=>_0x48ecd6[_0x54ce0e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d654b=new window[(_0x54ce0e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54ce0e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c7f5b+_0x54ce0e([0x2e])+_0x420293),_0x2540f6=window[_0x54ce0e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54ce0e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2540f6)return;const _0x1361e0=await _0x2540f6[_0x54ce0e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54ce0e([0x6a,0x77,0x6b]),_0x3c74fa,{[_0x54ce0e([0x6e,0x61,0x6d,0x65])]:_0x54ce0e([0x45,0x43,0x44,0x53,0x41]),[_0x54ce0e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54ce0e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54ce0e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2540f6[_0x54ce0e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54ce0e([0x6e,0x61,0x6d,0x65])]:_0x54ce0e([0x45,0x43,0x44,0x53,0x41]),[_0x54ce0e([0x68,0x61,0x73,0x68])]:{[_0x54ce0e([0x6e,0x61,0x6d,0x65])]:_0x54ce0e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1361e0,_0x512608,_0x4d654b)||(_0x561133=!0x1);}}function _0x4b5710(_0x18d516){return _0x18d516[_0x54ce0e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54ce0e([0x65,0x79]))?JSON[_0x54ce0e([0x70,0x61,0x72,0x73,0x65])](_0x3e3e9f(_0x18d516)):null;}function _0x3e3e9f(_0x5b43dc){return window[_0x54ce0e([0x61,0x74,0x6f,0x62])](_0x5b43dc[_0x54ce0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54ce0e([0x2b]))[_0x54ce0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54ce0e([0x2f])));}function _0x3842bf(_0x3a728f){let _0x4d7735=0x1505;function _0x4ce21f(_0x4a2948){for(let _0x27fa2f=0x0;_0x27fa2f<_0x4a2948[_0x54ce0e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27fa2f++){const _0x57c45e=_0x4a2948[_0x54ce0e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27fa2f);_0x4d7735=(_0x4d7735<<0x5)+_0x4d7735+_0x57c45e,_0x4d7735&=_0x4d7735;}}function _0x3fb9b2(_0x466381){Array[_0x54ce0e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x466381)?_0x466381[_0x54ce0e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3fb9b2):_0x466381&&typeof _0x466381==_0x54ce0e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54ce0e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x466381)[_0x54ce0e([0x73,0x6f,0x72,0x74])]()[_0x54ce0e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d50a4,_0x106548])=>{_0x4ce21f(_0x1d50a4),_0x3fb9b2(_0x106548);}):_0x4ce21f(window[_0x54ce0e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x466381));}return _0x3fb9b2(_0x3a728f),_0x4d7735>>>0x0;}function _0x572547(_0xd876a){return _0xd876a[_0x54ce0e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54ce0e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54ce0e([0x30]));}function _0x372c57(_0xf1666d){return _0xf1666d[_0x54ce0e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54ce0e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54ce0e([0x6a,0x6f,0x69,0x6e])]('');}function _0xe5ce3d(){}function _0x54ce0e(_0x4faaaa){const _0x23ffbc=_0x5dc1;return _0x4faaaa[_0x23ffbc(0x1a9)](_0x50c2fa=>String[_0x23ffbc(0x163)](_0x50c2fa))[_0x23ffbc(0x19a)]('');}_0x51a1a7(await _0x3b83c6());}(this);}[_0x5a7dd5(0x173)](){const _0x1ae2ce=_0x5a7dd5,_0x4c852d=this[_0x1ae2ce(0x188)][_0x1ae2ce(0x161)][_0x1ae2ce(0x180)];_0x4c852d[_0x1ae2ce(0x169)](_0x1ae2ce(0x182))&&_0x4c852d[_0x1ae2ce(0x179)](_0x1ae2ce(0x182),{'allowAttributes':[_0x1ae2ce(0x18c)]}),_0x4c852d[_0x1ae2ce(0x169)](_0x1ae2ce(0x186))&&_0x4c852d[_0x1ae2ce(0x179)](_0x1ae2ce(0x186),{'allowAttributes':[_0x1ae2ce(0x18c)]});}[_0x5a7dd5(0x19f)](){const _0x1cb3cb=_0x5a7dd5,_0xa88969=this[_0x1cb3cb(0x188)];_0xa88969[_0x1cb3cb(0x1b1)][_0x1cb3cb(0x1b0)](_0x1cb3cb(0x199))[_0x1cb3cb(0x1a2)]({'model':_0x1cb3cb(0x18c),'view':_0x1cb3cb(0x194)}),_0xa88969[_0x1cb3cb(0x1b1)][_0x1cb3cb(0x1b0)](_0x1cb3cb(0x16b))[_0x1cb3cb(0x177)]({'model':{'key':_0x1cb3cb(0x18c),'value':_0x538a9e=>_0x538a9e[_0x1cb3cb(0x17b)](_0x1cb3cb(0x194))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x528032=_0xa88969[_0x1cb3cb(0x16a)][_0x1cb3cb(0x16f)](_0x1cb3cb(0x1a8));_0x528032&&this[_0x1cb3cb(0x171)](_0x528032,_0x1cb3cb(0x185),(_0x4fee09,[_0x31c184,_0x3232b9])=>{const _0x113aee=_0x1cb3cb;_0x31c184[_0x113aee(0x175)](_0x113aee(0x18c),_0x3232b9);});}[_0x5a7dd5(0x187)](){const _0x5ddd2e=_0x5a7dd5,_0x2835a2=this[_0x5ddd2e(0x188)][_0x5ddd2e(0x164)][_0x5ddd2e(0x16f)](_0x5ddd2e(0x1b2))||{},_0x27bd6e=this[_0x5ddd2e(0x188)][_0x5ddd2e(0x164)][_0x5ddd2e(0x16f)](_0x5ddd2e(0x1a1))||'';this[_0x5ddd2e(0x19b)]=_0x84b03b(_0x46391f[_0x5ddd2e(0x19d)],_0x5ddd2e(0x19e),{..._0x2835a2,'pubkey':_0x27bd6e,'ctx-name':_0x5ddd2e(0x16e)+this[_0x5ddd2e(0x1ac)],'sourceList':'','imgOnly':_0x5ddd2e(0x198),'removeCopyright':_0x5ddd2e(0x198),'localeName':this[_0x5ddd2e(0x188)][_0x5ddd2e(0x162)][_0x5ddd2e(0x16c)],'externalSourcesEmbedCss':_0x5ddd2e(0x17a)}),this[_0x5ddd2e(0x19b)][_0x5ddd2e(0x181)]=_0x42aa27=>{const _0x180dba=_0x5ddd2e;if(_0x180dba(0x172)==_0x42aa27)return _0x180dba(0x193);},_0x46391f[_0x5ddd2e(0x19d)][_0x5ddd2e(0x18f)][_0x5ddd2e(0x174)](this[_0x5ddd2e(0x19b)]);}[_0x5a7dd5(0x1ae)](){const _0x23019d=_0x5a7dd5;this[_0x23019d(0x184)]=_0x84b03b(_0x46391f[_0x23019d(0x19d)],_0x23019d(0x18e),{'ctx-name':_0x23019d(0x16e)+this[_0x23019d(0x1ac)]}),_0x46391f[_0x23019d(0x19d)][_0x23019d(0x18f)][_0x23019d(0x174)](this[_0x23019d(0x184)]);}[_0x5a7dd5(0x160)](){const _0x465533=_0x5a7dd5,_0x3f4cac=this[_0x465533(0x188)][_0x465533(0x16a)][_0x465533(0x16f)](_0x465533(0x1a0));_0x3f4cac&&this[_0x465533(0x171)](_0x3f4cac,_0x465533(0x176),()=>{const _0x3785a2=_0x465533,_0x2cd4dd=this[_0x3785a2(0x188)][_0x3785a2(0x161)][_0x3785a2(0x19d)][_0x3785a2(0x16d)][_0x3785a2(0x1a5)]();_0x2cd4dd&&_0x2cd4dd[_0x3785a2(0x17b)](_0x3785a2(0x18c))&&this[_0x3785a2(0x188)][_0x3785a2(0x17e)][_0x3785a2(0x1ad)][_0x3785a2(0x18a)](_0x3785a2(0x192),()=>{const _0x2c0b4d=_0x3785a2;_0x10ad1b(this[_0x2c0b4d(0x188)],_0x2cd4dd);});});const _0x36d232=this[_0x465533(0x188)][_0x465533(0x16a)][_0x465533(0x16f)](_0x465533(0x1af));_0x36d232&&this[_0x465533(0x171)](_0x36d232,_0x465533(0x176),()=>{const _0x34cb1c=_0x465533,_0x161cb5=this[_0x34cb1c(0x188)][_0x34cb1c(0x161)][_0x34cb1c(0x19d)][_0x34cb1c(0x16d)][_0x34cb1c(0x1a5)]();_0x161cb5&&_0x161cb5[_0x34cb1c(0x17b)](_0x34cb1c(0x18c))&&this[_0x34cb1c(0x188)][_0x34cb1c(0x17e)][_0x34cb1c(0x1ad)][_0x34cb1c(0x18a)](_0x34cb1c(0x192),()=>{const _0x307716=_0x34cb1c;_0x10ad1b(this[_0x307716(0x188)],_0x161cb5);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5b140c,ObservableMixin as _0x39bfdf}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x14fe81}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x25aa26}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5ec5c6}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2c08ba}from'../../utils/uploadutils.js';import{getImageUrls as _0x480131,getImageDimension as _0xa80f66}from'../../utils/editingutils.js';import{isAncestor as _0x48a91b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39bfdf(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d1ba9,_0x23072b,_0x15cc03){super(),this['_editor']=_0x3d1ba9,this['_dialog']=_0x23072b,this['_imageElement']=_0x15cc03,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 _0x3f5f51=this['_imageElement'],_0x5be9f5=_0x3f5f51['getAttribute']('uploadcareImageId'),_0x2051d5=_0x3f5f51['getAttribute']('src');if(_0x5be9f5)await this['_loadImageInfo'](_0x5be9f5,_0x2051d5);else{if(this['_imageCache']['has'](_0x2051d5)){const _0x27295e=this['_imageCache']['get'](_0x2051d5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27295e['url'],this['imageDimension']=_0x27295e['dimension'],this['imageId']=_0x27295e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f577c}=this['_editor'],t=_0x4f577c['t'],_0x4da0ea=new _0x5ec5c6(_0x4f577c,this['imageStatus'],this['_attributes']);_0x4da0ea['bind']('status')['to'](this,'imageStatus'),_0x4da0ea['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4da0ea['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4da0ea['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4da0ea,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x25aa26,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4da0ea,'position':_0x14fe81['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4da0ea['focus']();},'onHide':()=>{_0x4da0ea['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b58c8=>!_0x48a91b(_0x3b58c8,_0x4da0ea['element'])}});}['_loadImageInfo'](_0x56fa0b,_0x90a429){return _0x2c08ba['getInfo'](_0x56fa0b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1d089e=>{const {width:_0x18e565,height:_0x453477}=_0x1d089e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x90a429,this['imageDimension']={'width':_0x18e565,'height':_0x453477},this['imageId']=_0x56fa0b;})['catch'](_0x19d59f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19d59f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44a8fc,_0x35dfc8){return this['_getImageAsFile'](_0x44a8fc)['then'](_0x2cc9fe=>_0x2c08ba['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x35dfc8['signal'],'file':_0x2cc9fe,'onProgress':_0x414de5=>{_0x414de5&&_0x414de5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x414de5['value']));}}))['then'](_0x3b3043=>{const {width:_0x30f8c2,height:_0x373566}=_0x3b3043['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b3043['cdnUrl'],this['imageDimension']={'width':_0x30f8c2,'height':_0x373566},this['imageId']=_0x3b3043['uuid'],this['imageUploadProgress']=null;const _0x4afbe2=_0x44a8fc['getAttribute']('src');this['_imageCache']['set'](_0x4afbe2,{'id':_0x3b3043['uuid'],'url':_0x3b3043['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1890d9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1890d9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x411de7,_0x38e1d7){_0x411de7['on']('apply',(_0x2f795a,_0x5f3b66)=>{this['_replaceImage'](_0x38e1d7,_0x5f3b66['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x411de7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x411de7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x124911,_0x1b7fe2,_0x11fde8){const _0x30f4c7=this['_editor'],{width:_0x260b55,height:_0x385d94}=_0xa80f66(_0x1b7fe2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1941fa,imageSources:_0x652380}=_0x480131(_0x1b7fe2,_0x260b55);_0x30f4c7['model']['change'](_0x3c2110=>{if('$graveyard'===_0x124911['root']['rootName']){_0x30f4c7['execute']('insertImage',{'imageType':_0x124911['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x124911['getAttributes']()),'uploadcareImageId':_0x11fde8,'src':_0x1941fa,'sources':_0x652380,'width':_0x260b55,'height':_0x385d94}});const _0x516b31=_0x124911['getChildren']();_0x124911=_0x30f4c7['model']['document']['selection']['getSelectedElement']();for(const _0x451257 of _0x516b31)_0x3c2110['append'](_0x3c2110['cloneElement'](_0x451257),_0x124911);}else _0x3c2110['setSelection'](_0x124911,'on'),_0x30f4c7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x124911['getAttributes']()),'uploadcareImageId':_0x11fde8,'src':_0x1941fa,'sources':_0x652380,'width':_0x260b55,'height':_0x385d94},_0x124911);_0x3c2110['setSelection'](_0x124911,'on');});}async['_getImageAsFile'](_0x4ae249){const _0x59409b=_0x5b140c['window'],_0x4203f4=_0x5b140c['document']['location']['href'],_0x5d934e=new _0x59409b['URL'](_0x4ae249['getAttribute']('src'),_0x4203f4);if('data:'===_0x5d934e['protocol']){const _0x2eaa4c=_0x5d934e['href']['split'](','),_0x250c0f=_0x2eaa4c[0x0]['match'](/:(.*?);/)[0x1],_0x44e888=_0x250c0f['split']('/')[0x1],_0x53a4d4=_0x59409b['atob'](_0x2eaa4c[_0x2eaa4c['length']-0x1]);let _0x2b0dff=_0x53a4d4['length'];const _0x483017=new _0x59409b['Uint8Array'](_0x2b0dff);for(;_0x2b0dff--;)_0x483017[_0x2b0dff]=_0x53a4d4['charCodeAt'](_0x2b0dff);return new _0x59409b['File']([_0x483017],'image.'+_0x44e888,{'type':_0x250c0f});}const _0x2060d0=_0x5d934e['href']['split']('/'),_0x108b20=_0x2060d0[_0x2060d0['length']-0x1],_0x5e9bf5=_0x108b20['split']('.')[0x1];return _0x59409b['fetch'](_0x5d934e['href'])['then'](_0x3776e1=>_0x3776e1['clone']()['blob']())['then'](_0xb1713d=>new _0x59409b['File']([_0xb1713d],_0x108b20,{'type':'image/'+_0x5e9bf5}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x29b290,_0x622aea){const _0x4fc4df=_0x2d0d,_0x1ec078=_0x29b290();while(!![]){try{const _0x189bf4=parseInt(_0x4fc4df(0x87))/0x1+parseInt(_0x4fc4df(0x7d))/0x2*(parseInt(_0x4fc4df(0x89))/0x3)+-parseInt(_0x4fc4df(0x82))/0x4*(-parseInt(_0x4fc4df(0x84))/0x5)+parseInt(_0x4fc4df(0x78))/0x6+parseInt(_0x4fc4df(0x79))/0x7*(-parseInt(_0x4fc4df(0x7f))/0x8)+-parseInt(_0x4fc4df(0x83))/0x9*(-parseInt(_0x4fc4df(0x7a))/0xa)+-parseInt(_0x4fc4df(0x7e))/0xb*(parseInt(_0x4fc4df(0x77))/0xc);if(_0x189bf4===_0x622aea)break;else _0x1ec078['push'](_0x1ec078['shift']());}catch(_0x416b4d){_0x1ec078['push'](_0x1ec078['shift']());}}}(_0x59c5,0x4b8e6));function _0x59c5(){const _0x431116=['uc-light','setTemplate','4NayAyR','279WCwuGZ','2939950HEVOQy','image-edit','uc-cloud-image-editor','139192oxQxgY','imageSrc','291BpiiJJ','set','10478700ithJMe','1257018yRYgdk','150360cUEJHM','3290oyuJWz','ck-uploadcare-theme','bindTemplate','9734MtaiCN','11gxXrYC','88wiWzQf'];_0x59c5=function(){return _0x431116;};return _0x59c5();}function _0x2d0d(_0xdfb509,_0x2c547e){const _0x59c52d=_0x59c5();return _0x2d0d=function(_0x2d0dd4,_0x5520b5){_0x2d0dd4=_0x2d0dd4-0x76;let _0x5318eb=_0x59c52d[_0x2d0dd4];return _0x5318eb;},_0x2d0d(_0xdfb509,_0x2c547e);}import{View as _0x17858c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x17858c{constructor(_0x1b06a8,_0x1aef74){const _0x30b71c=_0x2d0d;super(_0x1b06a8);const _0x111176=this[_0x30b71c(0x7c)];this[_0x30b71c(0x76)](_0x30b71c(0x88),''),this[_0x30b71c(0x81)]({'tag':_0x30b71c(0x86),'attributes':{..._0x1aef74,'class':[_0x30b71c(0x80),_0x30b71c(0x7b)],'ctx-name':_0x30b71c(0x85),'cdn-url':_0x111176['to'](_0x30b71c(0x88))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x374369}from'ckeditor5/src/icons.js';import{ButtonView as _0x551d57,IconView as _0x1bfb2f,View as _0x1fb808}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1fb808{constructor(_0x2d1e80){super(_0x2d1e80);const t=_0x2d1e80['t'];this['set']('errorType',null);const _0x46903a=new _0x551d57(_0x2d1e80);_0x46903a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x46903a['withText']=!0x0,_0x46903a['class']='ck-button-action',_0x46903a['on']('execute',()=>{this['fire']('retry');}),_0x46903a['bind']('isVisible')['to'](this,'errorType',_0x213b13=>'NotFound'!==_0x213b13);const _0x4376f6=new _0x1bfb2f();_0x4376f6['content']=_0x374369,_0x4376f6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x22fb5e=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':[_0x4376f6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x22fb5e['to']('errorType',_0x35c1e4=>t('NotFound'!==_0x35c1e4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x46903a]},{'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 _0x43d0f1,View as _0x4b76b4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4b76b4{constructor(_0x23000e){super(_0x23000e);const t=_0x23000e['t'],_0x138c8d=this['bindTemplate'],_0xe9907=new _0x43d0f1();_0xe9907['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':[_0xe9907,{'text':_0x138c8d['to']('imageUploadProgress',_0x5c87ea=>t('Loading\x20image...')+'\x20('+(_0x5c87ea||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1848(){const _0x4f6b1e=['retry','3628344tZWQln','observe','444232LzBQIn','clear','render','apply','length','change:status','_items','once','detail','cancel','div','add','toLowerCase','target','_errorView','42870KhZZDt','uc-cloud-image-editor','_loadingView','nodeName','_focusableView','createCollection','addedNodes','status','ck-reset_all-excluded','set','1HkwxQd','element','error','filter','354262AKGbVo','_addErrorViewListeners','cdnUrl','6CsHupt','ck-uploadcare-form','setTemplate','192447JUGKnZ','querySelector','1227665lQaDwz','focus','uploading','8fAqdMy','_setView','88rGVnPh','2602131tvwilu','45mVviFJ','_addUploadcareImageEditorListeners','getFocusableElement','addEventListener','_waitForImageEditorComponent','disconnect','addMany','_editingView','ready','fire'];_0x1848=function(){return _0x4f6b1e;};return _0x1848();}const _0xa1018b=_0x4a14;(function(_0x29d37e,_0x200170){const _0x281b34=_0x4a14,_0x584536=_0x29d37e();while(!![]){try{const _0x372c05=-parseInt(_0x281b34(0x96))/0x1*(-parseInt(_0x281b34(0x9a))/0x2)+parseInt(_0x281b34(0xa0))/0x3*(parseInt(_0x281b34(0xa5))/0x4)+parseInt(_0x281b34(0xa2))/0x5*(parseInt(_0x281b34(0x9d))/0x6)+-parseInt(_0x281b34(0xa8))/0x7+parseInt(_0x281b34(0xb6))/0x8*(parseInt(_0x281b34(0xa9))/0x9)+parseInt(_0x281b34(0xc5))/0xa*(parseInt(_0x281b34(0xa7))/0xb)+-parseInt(_0x281b34(0xb4))/0xc;if(_0x372c05===_0x200170)break;else _0x584536['push'](_0x584536['shift']());}catch(_0x324746){_0x584536['push'](_0x584536['shift']());}}}(_0x1848,0x2e188));import{View as _0x30dd44}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x17620c}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4d3476}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3bed63}from'./uploadcareimageeditformeditingview.js';function _0x4a14(_0x142169,_0x3b2479){const _0x18486f=_0x1848();return _0x4a14=function(_0x4a1453,_0x464732){_0x4a1453=_0x4a1453-0x92;let _0x5f2d04=_0x18486f[_0x4a1453];return _0x5f2d04;},_0x4a14(_0x142169,_0x3b2479);}import{DialogFocusManagerView as _0x5be61e}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5be61e{[_0xa1018b(0xbc)];[_0xa1018b(0xc7)];[_0xa1018b(0xc4)];[_0xa1018b(0xb0)];[_0xa1018b(0xc9)];constructor(_0x4d2e69,_0x2e0c2e,_0x446594){const _0x4bb611=_0xa1018b;super(_0x4d2e69),this[_0x4bb611(0xbc)]=this[_0x4bb611(0xca)](),this[_0x4bb611(0xc7)]=new _0x17620c(_0x4d2e69),this[_0x4bb611(0xc4)]=new _0x4d3476(_0x4d2e69),this[_0x4bb611(0xb0)]=new _0x3bed63(_0x4d2e69,_0x446594),this[_0x4bb611(0xc9)]=new _0x30dd44(_0x4d2e69),this[_0x4bb611(0xc9)][_0x4bb611(0x9f)](this[_0x4bb611(0xab)]()),this[_0x4bb611(0x95)](_0x4bb611(0x93),_0x2e0c2e),this[_0x4bb611(0x9f)]({'tag':_0x4bb611(0xc0),'attributes':{'class':['ck',_0x4bb611(0x94),_0x4bb611(0x9e)],'tabindex':'-1'},'children':this[_0x4bb611(0xbc)]}),this[_0x4bb611(0xa6)](),this[_0x4bb611(0xbd)](_0x4bb611(0xb8),()=>{const _0x415838=_0x4bb611;this[_0x415838(0xad)](this[_0x415838(0x97)],_0x30d28f=>{const _0x357f37=_0x415838;this[_0x357f37(0xaa)](_0x30d28f);});}),this['on'](_0x4bb611(0xbb),()=>{const _0x579e77=_0x4bb611;this[_0x579e77(0xa6)]();}),this[_0x4bb611(0x9b)]();}[_0xa1018b(0xa3)](){const _0x2ca4bb=_0xa1018b;this[_0x2ca4bb(0x97)][_0x2ca4bb(0xa3)]();}[_0xa1018b(0xa6)](){const _0x468e7a=_0xa1018b;switch(this[_0x468e7a(0xbc)][_0x468e7a(0xb7)](),this[_0x468e7a(0x93)]){case _0x468e7a(0xa4):this[_0x468e7a(0xbc)][_0x468e7a(0xc1)](this[_0x468e7a(0xc7)]);break;case _0x468e7a(0x98):this[_0x468e7a(0xbc)][_0x468e7a(0xc1)](this[_0x468e7a(0xc4)]);break;case _0x468e7a(0xb1):this[_0x468e7a(0xbc)][_0x468e7a(0xaf)]([this[_0x468e7a(0xb0)],this[_0x468e7a(0xc9)]]);}}[_0xa1018b(0xad)](_0xa3f4f9,_0x25b016){const _0x418c3a=_0xa1018b,_0x2b1822=_0x418c3a(0xc6),_0x4d57a9=_0xa3f4f9[_0x418c3a(0xa1)](_0x2b1822);if(_0x4d57a9)return _0x25b016(_0x4d57a9);const _0x20019f=new MutationObserver(_0x19ba3b=>{const _0x3202bc=_0x418c3a,_0x48b721=_0x19ba3b[_0x3202bc(0x99)](_0x2b4899=>_0x2b4899[_0x3202bc(0xc3)]===_0xa3f4f9&&_0x2b4899[_0x3202bc(0x92)][_0x3202bc(0xba)]>0x0&&_0x2b4899[_0x3202bc(0x92)][0x0][_0x3202bc(0xc8)][_0x3202bc(0xc2)]()===_0x2b1822);_0x48b721[_0x3202bc(0xba)]&&(_0x20019f[_0x3202bc(0xae)](),_0x25b016(_0x48b721[0x0][_0x3202bc(0x92)][0x0]));});_0x20019f[_0x418c3a(0xb5)](_0xa3f4f9,{'childList':!0x0,'subtree':!0x0});}[_0xa1018b(0xaa)](_0x5e80de){const _0xb5ebd5=_0xa1018b;_0x5e80de[_0xb5ebd5(0xac)](_0xb5ebd5(0xb9),_0x199e0a=>{const _0x45d81f=_0xb5ebd5;this[_0x45d81f(0xb2)](_0x45d81f(0xb9),{'imageSrc':_0x199e0a[_0x45d81f(0xbe)][_0x45d81f(0x9c)]});}),_0x5e80de[_0xb5ebd5(0xac)](_0xb5ebd5(0xbf),()=>{const _0x1a2909=_0xb5ebd5;this[_0x1a2909(0xb2)](_0x1a2909(0xbf));});}[_0xa1018b(0x9b)](){const _0x2fdb09=_0xa1018b;this[_0x2fdb09(0xc4)]['on'](_0x2fdb09(0xb3),()=>{const _0x3217bd=_0x2fdb09;this[_0x3217bd(0xb2)](_0x3217bd(0xb3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20021f=_0x4d5c;(function(_0x3fc5aa,_0x3b673a){const _0x1c81a1=_0x4d5c,_0xeb6a41=_0x3fc5aa();while(!![]){try{const _0x16224c=parseInt(_0x1c81a1(0xfa))/0x1*(parseInt(_0x1c81a1(0x108))/0x2)+-parseInt(_0x1c81a1(0xff))/0x3+parseInt(_0x1c81a1(0xf2))/0x4*(-parseInt(_0x1c81a1(0xfb))/0x5)+-parseInt(_0x1c81a1(0x107))/0x6+-parseInt(_0x1c81a1(0xf5))/0x7*(-parseInt(_0x1c81a1(0xf8))/0x8)+-parseInt(_0x1c81a1(0x104))/0x9+-parseInt(_0x1c81a1(0xfe))/0xa*(-parseInt(_0x1c81a1(0xf4))/0xb);if(_0x16224c===_0x3b673a)break;else _0xeb6a41['push'](_0xeb6a41['shift']());}catch(_0x4b8a85){_0xeb6a41['push'](_0xeb6a41['shift']());}}}(_0x58dc,0x250aa));function _0x58dc(){const _0x1c1c2b=['644919znXMAV','set','unbind','editor','requires','2099862EzKxLP','document','_isEditable','1375206VSSOSX','121006HjOBFu','isEnabled','selection','uploadcare.allowExternalImagesEditing','imageBlock','plugins','model','get','config','imageInline','execute','21176ppgvmr','bind','94985yOiiTH','5229ZaHuUN','refresh','isActive','2944eBcgdJ','getSelectedElement','5tZUDjh','15chBVtx','element','imageEditController','310JfgVYJ'];_0x58dc=function(){return _0x1c1c2b;};return _0x58dc();}import{Command as _0xaf1771}from'ckeditor5/src/core.js';import{Dialog as _0xd1bf30}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3d8e8b}from'./ui/uploadcareimageeditcontroller.js';function _0x4d5c(_0x180c0a,_0x3bb94f){const _0x58dc8f=_0x58dc();return _0x4d5c=function(_0x4d5cce,_0xb43a27){_0x4d5cce=_0x4d5cce-0xe8;let _0x3ad08b=_0x58dc8f[_0x4d5cce];return _0x3ad08b;},_0x4d5c(_0x180c0a,_0x3bb94f);}import{createEditabilityChecker as _0x1add76}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xaf1771{[_0x20021f(0xfd)];static get[_0x20021f(0x103)](){return[_0xd1bf30];}[_0x20021f(0x106)];constructor(_0x385fc4){const _0x46cc79=_0x20021f;super(_0x385fc4),this[_0x46cc79(0xfd)]=void 0x0,this[_0x46cc79(0x106)]=_0x1add76(_0x385fc4[_0x46cc79(0xef)][_0x46cc79(0xee)](_0x46cc79(0xea))||[]),this[_0x46cc79(0x100)]({'isActive':!0x1});}[_0x20021f(0xf6)](){const _0xebfc9d=_0x20021f,_0x53f65d=this[_0xebfc9d(0x102)][_0xebfc9d(0xed)][_0xebfc9d(0x105)][_0xebfc9d(0xe9)][_0xebfc9d(0xf9)]();this[_0xebfc9d(0xe8)]=this[_0xebfc9d(0x106)](_0x53f65d);}[_0x20021f(0xf1)](){const _0x22460a=_0x20021f;this[_0x22460a(0xfd)]&&(this[_0x22460a(0x101)](_0x22460a(0xf7)),this[_0x22460a(0xfd)]=void 0x0);const _0x41add2=this[_0x22460a(0x102)][_0x22460a(0xed)][_0x22460a(0x105)][_0x22460a(0xe9)][_0x22460a(0xf9)]();_0x41add2&&(_0x41add2['is'](_0x22460a(0xfc),_0x22460a(0xeb))||_0x41add2['is'](_0x22460a(0xfc),_0x22460a(0xf0)))&&(this[_0x22460a(0xfd)]=new _0x3d8e8b(this[_0x22460a(0x102)],this[_0x22460a(0x102)][_0x22460a(0xec)][_0x22460a(0xee)](_0xd1bf30),_0x41add2),this[_0x22460a(0xf3)](_0x22460a(0xf7))['to'](this[_0x22460a(0xfd)],_0x22460a(0xf7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x224c31=_0x29a5;(function(_0x3e701d,_0x2619ec){const _0x79d2ec=_0x29a5,_0x5291bb=_0x3e701d();while(!![]){try{const _0x2b99ad=-parseInt(_0x79d2ec(0xc0))/0x1*(parseInt(_0x79d2ec(0xba))/0x2)+-parseInt(_0x79d2ec(0xbb))/0x3+parseInt(_0x79d2ec(0xc5))/0x4*(-parseInt(_0x79d2ec(0xbc))/0x5)+-parseInt(_0x79d2ec(0xb4))/0x6+parseInt(_0x79d2ec(0xc8))/0x7+parseInt(_0x79d2ec(0xc6))/0x8*(-parseInt(_0x79d2ec(0xbf))/0x9)+-parseInt(_0x79d2ec(0xb7))/0xa*(-parseInt(_0x79d2ec(0xb8))/0xb);if(_0x2b99ad===_0x2619ec)break;else _0x5291bb['push'](_0x5291bb['shift']());}catch(_0x1cb69b){_0x5291bb['push'](_0x5291bb['shift']());}}}(_0x4b14,0xe8c0e));import{Plugin as _0x20dfb4}from'ckeditor5/src/core.js';import{Notification as _0x2a4d8b}from'ckeditor5/src/ui.js';function _0x29a5(_0x38300d,_0x1ba3d2){const _0x4b149a=_0x4b14();return _0x29a5=function(_0x29a59a,_0x2dc58e){_0x29a59a=_0x29a59a-0xb3;let _0x1c8499=_0x4b149a[_0x29a59a];return _0x1c8499;},_0x29a5(_0x38300d,_0x1ba3d2);}import{UploadcareImageEditCommand as _0x12fc72}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2f0894}from'./uploadcareimagereplacecommand.js';function _0x4b14(){const _0x51ae2d=['uploadcareImageReplace','582507mSXxWb','7WxNXQA','init','add','pluginName','requires','8412mjxhaf','104eXxgqT','isOfficialPlugin','6091281Wfpmpt','ImageUtils','isPremiumPlugin','1886796IpDTEJ','UploadcareImageEditEditing','ImageEditing','107540XlaLmb','4818ztfHVC','uploadcareImageEdit','15874sDjueH','5571990zSBHvI','3705SSqNtD','commands'];_0x4b14=function(){return _0x51ae2d;};return _0x4b14();}import{UploadcareEditing as _0xcd9d4a}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x20dfb4{static get[_0x224c31(0xc3)](){const _0x36e8c1=_0x224c31;return _0x36e8c1(0xb5);}static get[_0x224c31(0xc4)](){const _0x4020e4=_0x224c31;return[_0xcd9d4a,_0x2a4d8b,_0x4020e4(0xc9),_0x4020e4(0xb6)];}static get[_0x224c31(0xc7)](){return!0x0;}static get[_0x224c31(0xb3)](){return!0x0;}[_0x224c31(0xc1)](){const _0xdcf646=_0x224c31,{editor:_0xd3fa7f}=this;_0xd3fa7f[_0xdcf646(0xbd)][_0xdcf646(0xc2)](_0xdcf646(0xb9),new _0x12fc72(_0xd3fa7f)),_0xd3fa7f[_0xdcf646(0xbd)][_0xdcf646(0xc2)](_0xdcf646(0xbe),new _0x2f0894(_0xd3fa7f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x25bb16}from'ckeditor5/src/core.js';import{ButtonView as _0x14b244}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x112846}from'ckeditor5/src/icons.js';import{createElement as _0x4b8841}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x25bb16{['_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 _0x38b2cc=this['editor'];_0x38b2cc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x166a63=>{const _0x6340c7=_0x38b2cc['commands']['get']('uploadcareImageEdit'),_0x135506=new _0x14b244(_0x166a63),t=_0x166a63['t'];return _0x135506['set']({'icon':_0x112846,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x135506['bind']('isEnabled')['to'](_0x6340c7),_0x135506['bind']('isOn')['to'](_0x6340c7,'isActive'),this['listenTo'](_0x135506,'execute',()=>{_0x38b2cc['execute']('uploadcareImageEdit'),_0x38b2cc['editing']['view']['focus']();}),_0x135506;}),this['_initConfig']();}['_initConfig'](){const _0x227067=_0x4b8841(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x227067),this['listenTo'](this['editor'],'destroy',()=>{_0x227067['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x717a3=_0x4826;(function(_0x2955b8,_0x57da28){const _0x2d6a4e=_0x4826,_0x494ce6=_0x2955b8();while(!![]){try{const _0x5e39b4=parseInt(_0x2d6a4e(0xdd))/0x1*(parseInt(_0x2d6a4e(0xe1))/0x2)+-parseInt(_0x2d6a4e(0xd0))/0x3+parseInt(_0x2d6a4e(0xd7))/0x4*(-parseInt(_0x2d6a4e(0xcb))/0x5)+-parseInt(_0x2d6a4e(0xde))/0x6*(parseInt(_0x2d6a4e(0xc9))/0x7)+parseInt(_0x2d6a4e(0xda))/0x8+-parseInt(_0x2d6a4e(0xce))/0x9*(parseInt(_0x2d6a4e(0xdf))/0xa)+-parseInt(_0x2d6a4e(0xe2))/0xb*(-parseInt(_0x2d6a4e(0xd5))/0xc);if(_0x5e39b4===_0x57da28)break;else _0x494ce6['push'](_0x494ce6['shift']());}catch(_0x5a846d){_0x494ce6['push'](_0x494ce6['shift']());}}}(_0x564d,0x9b969));import{Command as _0x4dae8f}from'ckeditor5/src/core.js';function _0x564d(){const _0x72f5d6=['30xaQBqD','change','3646HNbQaX','814joXpSf','model','execute','330967qPPeCx','editor','70lEKWRJ','refresh','setAttributes','1393947yFcKtZ','element','2938296dlYSIs','removeAttribute','imageBlock','sizes','document','349728wXSwzw','selection','337148UVBYAP','imageInline','getSelectedElement','8268144DKsxbb','srcset','isEnabled','65KDJrWV','6LFrfLI'];_0x564d=function(){return _0x72f5d6;};return _0x564d();}function _0x4826(_0x468cd1,_0x1bc41){const _0x564d89=_0x564d();return _0x4826=function(_0x4826e1,_0x2d0cd8){_0x4826e1=_0x4826e1-0xc8;let _0x3cf16c=_0x564d89[_0x4826e1];return _0x3cf16c;},_0x4826(_0x468cd1,_0x1bc41);}export class UploadcareImageReplaceCommand extends _0x4dae8f{[_0x717a3(0xcc)](){const _0x4235c4=_0x717a3,_0x2978df=this[_0x4235c4(0xca)][_0x4235c4(0xe3)][_0x4235c4(0xd4)][_0x4235c4(0xd6)][_0x4235c4(0xd9)]();this[_0x4235c4(0xdc)]=Boolean(_0x2978df&&(_0x2978df['is'](_0x4235c4(0xcf),_0x4235c4(0xd2))||_0x2978df['is'](_0x4235c4(0xcf),_0x4235c4(0xd8))));}[_0x717a3(0xc8)](_0x4a5d9b){const _0x1376e8=_0x717a3,_0x4fcabd=this[_0x1376e8(0xca)][_0x1376e8(0xe3)][_0x1376e8(0xd4)][_0x1376e8(0xd6)][_0x1376e8(0xd9)]();this[_0x1376e8(0xca)][_0x1376e8(0xe3)][_0x1376e8(0xe0)](_0x2171cc=>{const _0x4d5d98=_0x1376e8;_0x2171cc[_0x4d5d98(0xcd)](_0x4a5d9b,_0x4fcabd),_0x2171cc[_0x4d5d98(0xd1)](_0x4d5d98(0xdb),_0x4fcabd),_0x2171cc[_0x4d5d98(0xd1)](_0x4d5d98(0xd3),_0x4fcabd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4ad602=_0x126c;(function(_0x472839,_0x4e11d5){var _0x3fd3a4=_0x126c,_0x4c3001=_0x472839();while(!![]){try{var _0x5eabb6=-parseInt(_0x3fd3a4(0x76))/0x1+parseInt(_0x3fd3a4(0x7b))/0x2+-parseInt(_0x3fd3a4(0x7e))/0x3+parseInt(_0x3fd3a4(0x7f))/0x4*(-parseInt(_0x3fd3a4(0x7c))/0x5)+parseInt(_0x3fd3a4(0x7a))/0x6+-parseInt(_0x3fd3a4(0x7d))/0x7+parseInt(_0x3fd3a4(0x77))/0x8;if(_0x5eabb6===_0x4e11d5)break;else _0x4c3001['push'](_0x4c3001['shift']());}catch(_0x545bb4){_0x4c3001['push'](_0x4c3001['shift']());}}}(_0x22dd,0xace9d));function _0x126c(_0x267b9d,_0x3bdcea){var _0x22dd61=_0x22dd();return _0x126c=function(_0x126c15,_0x43b778){_0x126c15=_0x126c15-0x74;var _0x277e00=_0x22dd61[_0x126c15];return _0x277e00;},_0x126c(_0x267b9d,_0x3bdcea);}function _0x22dd(){var _0x50f5ba=['16420880BFzAbF','isPremiumPlugin','pluginName','2621916ToTcpS','2163148qCLXsn','6554415ZFtHzN','4344312ZcNDlP','2047224KgiISL','4hmkmxv','UploadcareImageEdit','isOfficialPlugin','requires','249010iTicMU'];_0x22dd=function(){return _0x50f5ba;};return _0x22dd();}import{Plugin as _0x1772df}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1ccab0}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x4221e2}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x1772df{static get[_0x4ad602(0x79)](){var _0x1e9635=_0x4ad602;return _0x1e9635(0x80);}static get[_0x4ad602(0x75)](){return[_0x1ccab0,_0x4221e2];}static get[_0x4ad602(0x74)](){return!0x0;}static get[_0x4ad602(0x78)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x14b850=_0x45eb;(function(_0x1631bc,_0x2e13b0){const _0x398ecd=_0x45eb,_0x43e128=_0x1631bc();while(!![]){try{const _0x4f8271=-parseInt(_0x398ecd(0x115))/0x1+-parseInt(_0x398ecd(0xee))/0x2*(-parseInt(_0x398ecd(0x10e))/0x3)+parseInt(_0x398ecd(0x116))/0x4+parseInt(_0x398ecd(0x100))/0x5+-parseInt(_0x398ecd(0x132))/0x6+parseInt(_0x398ecd(0xeb))/0x7+-parseInt(_0x398ecd(0xf6))/0x8*(parseInt(_0x398ecd(0x130))/0x9);if(_0x4f8271===_0x2e13b0)break;else _0x43e128['push'](_0x43e128['shift']());}catch(_0x38905d){_0x43e128['push'](_0x43e128['shift']());}}}(_0x2edb,0xb5dc4));import{Plugin as _0x5ca54c}from'ckeditor5/src/core.js';import{IconDropbox as _0xff5d88,IconFacebook as _0x55e1ba,IconGoogleDrive as _0x4125bb,IconGooglePhotos as _0xdcb9e6,IconUploadcareImageUpload as _0x5d5d41,IconUploadcareLink as _0x428446,IconOneDrive as _0x10fb62}from'ckeditor5/src/icons.js';function _0x45eb(_0x26f873,_0x49c749){const _0x2edb2f=_0x2edb();return _0x45eb=function(_0x45eb41,_0x20f4b3){_0x45eb41=_0x45eb41-0xeb;let _0x190185=_0x2edb2f[_0x45eb41];return _0x190185;},_0x45eb(_0x26f873,_0x49c749);}function _0x2edb(){const _0x5527d5=['Insert','icon','Local','init','editor','commands','uploadcareLicenseKeyDomainLimit','withText','GDrive','ImageInsertUI','plugins','upload','_createMenuBarButtons','destroy','isImageSelected','uploadcare','push','invalid','domainLimit','OneDrive','5202lwERQl','isEnabled','1632432uavdjL','Facebook','shortText','get','text','uploadcareLicenseKeyTrialLimit','execute','bind','config','10004197jIRHmE','label','forEach','12116VpWprv','map','tooltip','registerIntegration','UploadcareUI','uploadcareLicenseKeyValid','uploadcareLicenseKeyEvaluationLimit','_createToolbarButton','15680ukimGj','usageLimit','Dropbox','assetManager','uploadcareLicenseKeyUsageLimit','locale','_licenseKeyCheckInterval','isOfficialPlugin','trialLimit','afterInit','2342490fcwtbJ','GPhotos','reduce','URL','uploadcareLicenseKeyNotAllowed','uploadcare.uploader.sourceList','featureNotAllowed','_normalizeConfigSourceList','Replace','Uploadcare','_showLicenseError','expired','licenseKey','isPremiumPlugin','477CDHRMB','_getIntegrationKey','url','_createButton','type','evaluationLimit','pluginName','1346785rsPKsK','2542984VipQCM','has','uploadcareLicenseKeyExpired','entries','_createDropdownButtons','uploadcareLicenseKeyInvalid'];_0x2edb=function(){return _0x5527d5;};return _0x2edb();}import{ButtonView as _0x40f8e3,MenuBarMenuListItemButtonView as _0xe1dce9}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2a48f2}from'./uploadcareconfig.js';import{getTranslation as _0x218a55}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x5ca54c{[_0x14b850(0x10c)];[_0x14b850(0xfc)];static get[_0x14b850(0x114)](){const _0x307073=_0x14b850;return _0x307073(0xf2);}static get[_0x14b850(0xfd)](){return!0x0;}static get[_0x14b850(0x10d)](){return!0x0;}[_0x14b850(0x11f)](){const _0x254b99=_0x14b850;this[_0x254b99(0x10c)]=this[_0x254b99(0x120)][_0x254b99(0x13a)][_0x254b99(0x135)](_0x254b99(0x10c));const _0x1b04e9=this[_0x254b99(0x120)];this[_0x254b99(0xfc)]=setInterval(()=>{const _0x45e53e=_0x254b99;let _0x2d4e0c;for(const _0x78a569 in _0x1b04e9){const _0x208473=_0x78a569,_0x38c1aa=_0x1b04e9[_0x208473];if(_0x45e53e(0xf3)==_0x38c1aa||_0x45e53e(0x11b)==_0x38c1aa||_0x45e53e(0x118)==_0x38c1aa||_0x45e53e(0x122)==_0x38c1aa||_0x45e53e(0x104)==_0x38c1aa||_0x45e53e(0xf4)==_0x38c1aa||_0x45e53e(0x137)==_0x38c1aa||_0x45e53e(0xfa)==_0x38c1aa){delete _0x1b04e9[_0x208473],_0x2d4e0c=_0x38c1aa,clearInterval(this[_0x45e53e(0xfc)]),this[_0x45e53e(0xfc)]=void 0x0;break;}}_0x45e53e(0x11b)==_0x2d4e0c&&_0x1b04e9[_0x45e53e(0x10a)](_0x45e53e(0x12d)),_0x45e53e(0x118)==_0x2d4e0c&&_0x1b04e9[_0x45e53e(0x10a)](_0x45e53e(0x10b)),_0x45e53e(0x122)==_0x2d4e0c&&_0x1b04e9[_0x45e53e(0x10a)](_0x45e53e(0x12e)),_0x45e53e(0x104)==_0x2d4e0c&&_0x1b04e9[_0x45e53e(0x10a)](_0x45e53e(0x106),_0x45e53e(0x109)),_0x45e53e(0xf4)==_0x2d4e0c&&_0x1b04e9[_0x45e53e(0x10a)](_0x45e53e(0x113)),_0x45e53e(0x137)==_0x2d4e0c&&_0x1b04e9[_0x45e53e(0x10a)](_0x45e53e(0xfe)),_0x45e53e(0xfa)==_0x2d4e0c&&_0x1b04e9[_0x45e53e(0x10a)](_0x45e53e(0xf7));},0x3e8);}[_0x14b850(0xff)](){const _0x386a3a=_0x14b850,{editor:_0x23db4e}=this,_0x2f1349=_0x23db4e[_0x386a3a(0x121)][_0x386a3a(0x135)](_0x386a3a(0x12b));if(!_0x2f1349)return;const _0x407de1=this[_0x386a3a(0x107)](_0x23db4e[_0x386a3a(0x13a)][_0x386a3a(0x135)](_0x386a3a(0x105)))[_0x386a3a(0x102)]((_0x434ce6,_0x2b5582)=>{const _0x3a71c0=_0x386a3a,_0x309d16=this[_0x3a71c0(0x10f)](_0x2b5582[_0x3a71c0(0x112)]);return _0x434ce6[_0x309d16]||(_0x434ce6[_0x309d16]=[]),_0x434ce6[_0x309d16][_0x3a71c0(0x12c)](_0x2b5582),_0x434ce6;},{});_0x23db4e[_0x386a3a(0x126)][_0x386a3a(0x117)](_0x386a3a(0x125))&&_0x23db4e[_0x386a3a(0x121)][_0x386a3a(0x135)](_0x386a3a(0x12b))&&Object[_0x386a3a(0x119)](_0x407de1)[_0x386a3a(0xed)](([_0x3b8f3f,_0x406aab])=>{const _0x256f00=_0x386a3a;_0x23db4e[_0x256f00(0x126)][_0x256f00(0x135)](_0x256f00(0x125))[_0x256f00(0xf1)]({'name':_0x3b8f3f,'observable':()=>_0x2f1349,'buttonViewCreator':()=>this[_0x256f00(0xf5)](_0x406aab),'formViewCreator':()=>this[_0x256f00(0x11a)](_0x406aab),'menuBarButtonViewCreator':()=>this[_0x256f00(0x128)](_0x406aab),'override':_0x256f00(0xf9)!==_0x3b8f3f});});}[_0x14b850(0x129)](){const _0x489cee=_0x14b850;super[_0x489cee(0x129)](),this[_0x489cee(0xfc)]&&clearInterval(this[_0x489cee(0xfc)]);}[_0x14b850(0x107)](_0x15b58d){const _0x12194b=_0x14b850,{locale:_0x3b822c}=this[_0x12194b(0x120)];return _0x15b58d[_0x12194b(0xef)](_0x3825fe=>{const _0x4529fb=_0x12194b,_0x5d4027=_0x218a55(_0x3b822c,_0x3825fe,_0x4529fb(0x11c));switch(_0x3825fe){case _0x2a48f2[_0x4529fb(0x11e)]:return{'icon':_0x5d5d41,'type':_0x2a48f2[_0x4529fb(0x11e)],..._0x5d4027};case _0x2a48f2[_0x4529fb(0x103)]:return{'icon':_0x428446,'type':_0x2a48f2[_0x4529fb(0x103)],..._0x5d4027};case _0x2a48f2[_0x4529fb(0xf8)]:return{'icon':_0xff5d88,'type':_0x2a48f2[_0x4529fb(0xf8)],..._0x5d4027};case _0x2a48f2[_0x4529fb(0x133)]:return{'icon':_0x55e1ba,'type':_0x2a48f2[_0x4529fb(0x133)],..._0x5d4027};case _0x2a48f2[_0x4529fb(0x124)]:return{'icon':_0x4125bb,'type':_0x2a48f2[_0x4529fb(0x124)],..._0x5d4027};case _0x2a48f2[_0x4529fb(0x101)]:return{'icon':_0xdcb9e6,'type':_0x2a48f2[_0x4529fb(0x101)],..._0x5d4027};case _0x2a48f2[_0x4529fb(0x12f)]:return{'icon':_0x10fb62,'type':_0x2a48f2[_0x4529fb(0x12f)],..._0x5d4027};}});}[_0x14b850(0x10f)](_0x1d7acb){const _0x37dd08=_0x14b850;switch(_0x1d7acb){case _0x2a48f2[_0x37dd08(0x11e)]:return _0x37dd08(0x127);case _0x2a48f2[_0x37dd08(0x103)]:return _0x37dd08(0x110);default:return _0x37dd08(0xf9);}}[_0x14b850(0x111)](_0x4e273e,_0xe88f67){const _0x42767c=_0x14b850,_0x59b8b1=this[_0x42767c(0x120)],_0x3b294e=new _0x4e273e(_0x59b8b1[_0x42767c(0xfb)]),_0x1e79dd=_0x59b8b1[_0x42767c(0x121)][_0x42767c(0x135)](_0x42767c(0x12b));return _0x3b294e[_0x42767c(0x139)](_0x42767c(0x131))['to'](_0x1e79dd),_0x3b294e['on'](_0x42767c(0x138),()=>{const _0x5cd8a6=_0x42767c;_0x1e79dd[_0x5cd8a6(0x138)](_0xe88f67);}),_0x3b294e;}[_0x14b850(0xf5)](_0x31cf93){const _0xf4ed46=_0x14b850,{locale:_0x38719e}=this[_0xf4ed46(0x120)],_0x206200=this[_0xf4ed46(0x120)][_0xf4ed46(0x126)][_0xf4ed46(0x135)](_0xf4ed46(0x125)),_0xfe16d6=_0x31cf93[0x0],_0x3ede5c=this[_0xf4ed46(0x111)](_0x40f8e3,_0xfe16d6[_0xf4ed46(0x112)]);return _0x3ede5c[_0xf4ed46(0x11d)]=_0xfe16d6[_0xf4ed46(0x11d)],_0x3ede5c[_0xf4ed46(0x139)](_0xf4ed46(0xec))['to'](_0x206200,_0xf4ed46(0x12a),_0x3797e2=>_0x218a55(_0x38719e,_0xfe16d6[_0xf4ed46(0x112)],_0x3797e2?_0xf4ed46(0x108):_0xf4ed46(0x11c))[_0xf4ed46(0x136)]),_0x3ede5c[_0xf4ed46(0xf0)]=!0x0,_0x3ede5c;}[_0x14b850(0x11a)](_0x24acf3){const _0x3d2165=_0x14b850,{locale:_0x5938f6}=this[_0x3d2165(0x120)],_0x6705c0=this[_0x3d2165(0x120)][_0x3d2165(0x126)][_0x3d2165(0x135)](_0x3d2165(0x125));return _0x24acf3[_0x3d2165(0xef)](_0x1bba9f=>{const _0x54535e=_0x3d2165,_0x441362=this[_0x54535e(0x111)](_0x40f8e3,_0x1bba9f[_0x54535e(0x112)]);return _0x441362[_0x54535e(0x123)]=!0x0,_0x441362[_0x54535e(0x11d)]=_0x1bba9f[_0x54535e(0x11d)],_0x441362[_0x54535e(0x139)](_0x54535e(0xec))['to'](_0x6705c0,_0x54535e(0x12a),_0x17a1f3=>_0x218a55(_0x5938f6,_0x1bba9f[_0x54535e(0x112)],_0x17a1f3?_0x54535e(0x108):_0x54535e(0x11c))[_0x54535e(0x136)]),_0x441362;});}[_0x14b850(0x128)](_0x1330ab){const _0x479699=_0x14b850;return _0x1330ab[_0x479699(0xef)](_0x567aff=>{const _0x49cdb3=_0x479699,_0x312072=this[_0x49cdb3(0x111)](_0xe1dce9,_0x567aff[_0x49cdb3(0x112)]);return _0x312072[_0x49cdb3(0x11d)]=_0x567aff[_0x49cdb3(0x11d)],_0x312072[_0x49cdb3(0xec)]=_0x567aff[_0x49cdb3(0x134)],_0x312072;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4b0855}from'ckeditor5/src/core.js';import{FileRepository as _0x4b75f5}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x364e6e}from'./uploadcareediting.js';import{UploadUtils as _0x3f7bad}from'./utils/uploadutils.js';import{getImageUrls as _0x2c9d9f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4b0855{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4b75f5,_0x364e6e];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4c16e3=this['editor'];if(!!!_0x4c16e3['config']['get']('uploadcare'))return;_0x4c16e3['plugins']['get'](_0x4b75f5)['createUploadAdapter']=_0x3be3f0=>new A(_0x3be3f0,_0x4c16e3),_0x4c16e3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5a487b,{imageElement:_0x4aaaa1,data:_0x397c6c})=>{_0x4c16e3['model']['change'](_0x36cd46=>{_0x36cd46['setAttribute']('uploadcareImageId',_0x397c6c['uploadcareImageId'],_0x4aaaa1);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1474d5,_0x512927){this['loader']=_0x1474d5,this['editor']=_0x512927,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4039a2=this['editor']['config']['get']('uploadcare.pubkey'),_0xabdfd3=await this['loader']['file'];return _0x3f7bad['upload']({'file':_0xabdfd3,'publicKey':_0x4039a2,'signal':this['controller']['signal'],'onProgress':_0x1159d0=>{_0x1159d0&&_0x1159d0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1159d0['value']);}})['then'](async _0x858b8e=>{const {imageFallbackUrl:_0x5cef8f,imageSources:_0x2142c5}=_0x2c9d9f(_0x858b8e['cdnUrl'],_0x858b8e['imageInfo']['width']);return{'uploadcareImageId':_0x858b8e['uuid'],'default':_0x5cef8f,'sources':_0x2142c5};})['catch'](()=>{const _0x2bd053=t('Cannot\x20upload\x20file:')+('\x20'+_0xabdfd3['name']+'.');return Promise['reject'](_0x2bd053);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x47302a}from'../uploadcareconfig.js';export function getTranslation(_0x29648b,_0xe110eb,_0x2d8b09){const t=_0x29648b['t'],_0xb5c5b4=_0x29648b['t'];switch(_0xe110eb){case _0x47302a['Local']:return{'text':_0xb5c5b4('Insert'===_0x2d8b09?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xb5c5b4('From\x20computer')};case _0x47302a['URL']:return{'text':'Insert'===_0x2d8b09?_0xb5c5b4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xb5c5b4('Via\x20URL')};case _0x47302a['Dropbox']:return{'text':t('Insert'===_0x2d8b09?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x47302a['Facebook']:return{'text':t('Insert'===_0x2d8b09?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x47302a['GDrive']:return{'text':t('Insert'===_0x2d8b09?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x47302a['GPhotos']:return{'text':t('Insert'===_0x2d8b09?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x47302a['OneDrive']:return{'text':t('Insert'===_0x2d8b09?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xe110eb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xc13a(_0x15dca4,_0x2fc2d8){var _0x136448=_0x1364();return _0xc13a=function(_0xc13ac4,_0x48d8b0){_0xc13ac4=_0xc13ac4-0x121;var _0x2851f9=_0x136448[_0xc13ac4];return _0x2851f9;},_0xc13a(_0x15dca4,_0x2fc2d8);}var _0x5a5274=_0xc13a;(function(_0x59bcee,_0xb953da){var _0x2699f4=_0xc13a,_0x3d0558=_0x59bcee();while(!![]){try{var _0x1e1d95=parseInt(_0x2699f4(0x12d))/0x1*(-parseInt(_0x2699f4(0x125))/0x2)+-parseInt(_0x2699f4(0x12a))/0x3+parseInt(_0x2699f4(0x135))/0x4*(parseInt(_0x2699f4(0x124))/0x5)+parseInt(_0x2699f4(0x133))/0x6*(parseInt(_0x2699f4(0x130))/0x7)+-parseInt(_0x2699f4(0x131))/0x8*(parseInt(_0x2699f4(0x134))/0x9)+parseInt(_0x2699f4(0x126))/0xa*(parseInt(_0x2699f4(0x123))/0xb)+parseInt(_0x2699f4(0x132))/0xc;if(_0x1e1d95===_0xb953da)break;else _0x3d0558['push'](_0x3d0558['shift']());}catch(_0x1eb021){_0x3d0558['push'](_0x3d0558['shift']());}}}(_0x1364,0x6a147));import{FocusTracker as _0x475662}from'ckeditor5/src/utils.js';import{View as _0x130d85,FocusCycler as _0x15d0c6}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x130d85{[_0x5a5274(0x122)];[_0x5a5274(0x12c)];constructor(_0x5e04c2){var _0x578112=_0x5a5274;super(_0x5e04c2),this[_0x578112(0x122)]=new _0x475662(),this[_0x578112(0x12c)]=new _0x15d0c6({'focusables':this[_0x578112(0x127)](),'focusTracker':this[_0x578112(0x122)]});}[_0x5a5274(0x12b)](){var _0x1fa730=_0x5a5274;return{'tag':_0x1fa730(0x12f),'attributes':{'aria-hidden':_0x1fa730(0x12e),'tabindex':'0'},'on':{'focus':this[_0x1fa730(0x128)]['to'](()=>{var _0x354905=_0x1fa730;this[_0x354905(0x12c)][_0x354905(0x121)](_0x354905(0x129));})}};}}function _0x1364(){var _0x54fe4a=['25930ffXwRY','createCollection','bindTemplate','forwardCycle','761145ZePraL','getFocusableElement','focusCycler','61EItRGJ','true','div','1927282MJDgYi','1027944ILSqgV','10001088vPDnNv','6BYTURG','27UFUloh','944892ZorSos','fire','focusTracker','1815BtcenB','5wUivuO','22922NSIZxw'];_0x1364=function(){return _0x54fe4a;};return _0x1364();}
|