@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260116.0 → 0.0.0-nightly-20260117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x37deec=_0x5594;(function(_0x58ab8,_0x3deaa8){const _0x1dace6=_0x5594,_0x524d1d=_0x58ab8();while(!![]){try{const _0x567477=parseInt(_0x1dace6(0xad))/0x1*(-parseInt(_0x1dace6(0xf0))/0x2)+parseInt(_0x1dace6(0xf3))/0x3*(-parseInt(_0x1dace6(0xda))/0x4)+parseInt(_0x1dace6(0xe4))/0x5*(parseInt(_0x1dace6(0xb7))/0x6)+-parseInt(_0x1dace6(0xb4))/0x7+parseInt(_0x1dace6(0x9f))/0x8*(parseInt(_0x1dace6(0xb2))/0x9)+-parseInt(_0x1dace6(0xc0))/0xa*(parseInt(_0x1dace6(0xde))/0xb)+parseInt(_0x1dace6(0xa4))/0xc;if(_0x567477===_0x3deaa8)break;else _0x524d1d['push'](_0x524d1d['shift']());}catch(_0x1bbbac){_0x524d1d['push'](_0x524d1d['shift']());}}}(_0x33c1,0xb9c9e));import{Plugin as _0x51dc4f}from'ckeditor5/src/core.js';import{Dialog as _0x2ae7c8}from'ckeditor5/src/ui.js';import{createElement as _0x530af2,global as _0x1b2f9a,uid as _0x5b697c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xaa4555}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5791b7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xd90381}from'./utils/editingutils.js';function _0x5594(_0x9ebd51,_0x2366fa){const _0x33c1a0=_0x33c1();return _0x5594=function(_0x5594bf,_0x14841a){_0x5594bf=_0x5594bf-0x9e;let _0xf5573e=_0x33c1a0[_0x5594bf];return _0xf5573e;},_0x5594(_0x9ebd51,_0x2366fa);}function _0x33c1(){const _0x5a5b07=['2WnHgRK','for','conversion','locale','contentLanguage','732222lnGRDs','imageInline','3757523uUTYQU','isPremiumPlugin','selection','8473266IyXsjk','editing','PictureEditing','model','attributeToAttribute','document','input[uploadcare-file-input]','_initConversion','cleanupImage','24410OLnNJg','map','elementToAttribute','configElement','isOfficialPlugin','join','editor','data-uc-image-id','_ctxElement','\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','extend','afterInit','listenTo','get','getSelectedElement','isRegistered','_initCtx','add','schema','_initSchema','iconHrefResolver','href','pluginName','remove','imageBlock','uploadcareImageId','128720ZnzDOi','ctxElement','destroy','body','1947BySrYT','_initImageProcessingIndicator','uploadcare.uploader','config','uc-upload-ctx-provider','fromCharCode','5BWLWkH','init','true','uploadcare.pubkey','_configElement','insertImage','render','closeMax','ucContextId','once','replaceImageSource','uc-config','1387624ZqOvqI','_initConfig','#uc-icon-arrow-down','114ukTdaz','appendChild','commands','88eNEpnP','requires','uploadcare','view','upcast','24397812yXJdvs','getAttribute','UploadcareEditing','uploader-','removeAttribute','uploadcareImageReplace','downcast','querySelector','execute'];_0x33c1=function(){return _0x5a5b07;};return _0x33c1();}export class UploadcareEditing extends _0x51dc4f{[_0x37deec(0xe8)]=null;[_0x37deec(0xc8)]=null;static get[_0x37deec(0xd6)](){const _0x145463=_0x37deec;return _0x145463(0xa6);}static get[_0x37deec(0xa0)](){const _0xfd8ee7=_0x37deec;return[_0xfd8ee7(0xb9),_0x5791b7,_0x2ae7c8];}static get[_0x37deec(0xc4)](){return!0x0;}static get[_0x37deec(0xb5)](){return!0x0;}[_0x37deec(0xec)];get[_0x37deec(0xc3)](){const _0x43bb32=_0x37deec;return this[_0x43bb32(0xe8)];}get[_0x37deec(0xdb)](){const _0x3f9b96=_0x37deec;return this[_0x3f9b96(0xc8)];}constructor(_0x529205){const _0x5ca39c=_0x37deec;super(_0x529205),this[_0x5ca39c(0xec)]=_0x5b697c();}[_0x37deec(0xe5)](){const _0x5a1c88=_0x37deec,_0x1b9796=this[_0x5a1c88(0xc6)];_0x1b9796[_0x5a1c88(0x9e)][_0x5a1c88(0xd1)](_0x5a1c88(0xa1),new _0xaa4555(_0x1b9796));}[_0x37deec(0xcb)](){const _0x59638d=_0x37deec;this[_0x59638d(0xd3)](),this[_0x59638d(0xbe)](),this[_0x59638d(0xf1)](),this[_0x59638d(0xd0)](),this[_0x59638d(0xdf)](),this[_0x59638d(0xcc)](this[_0x59638d(0xc6)],_0x59638d(0xdc),()=>{const _0x2dc6ef=_0x59638d;this[_0x2dc6ef(0xe8)]&&(this[_0x2dc6ef(0xe8)][_0x2dc6ef(0xd7)](),this[_0x2dc6ef(0xe8)]=null),this[_0x2dc6ef(0xc8)]&&(this[_0x2dc6ef(0xc8)][_0x2dc6ef(0xd7)](),this[_0x2dc6ef(0xc8)]=null);const _0x173c20=_0x1b2f9a[_0x2dc6ef(0xbc)][_0x2dc6ef(0xab)](_0x2dc6ef(0xbd));_0x173c20&&_0x173c20[_0x2dc6ef(0xd7)]();}),async function(_0x5d1d52){const _0x323d87=_0x3039ea([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4541ce=0x535f8c3a,_0xc4f361=0x5358f2c2^_0x4541ce,_0x2fd8e8=window[_0x3039ea([0x44,0x61,0x74,0x65])][_0x3039ea([0x6e,0x6f,0x77])](),_0xc347d8=_0x5d1d52[_0x3039ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cc999=new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x273bc3=>{_0xc347d8[_0x3039ea([0x6f,0x6e,0x63,0x65])](_0x3039ea([0x72,0x65,0x61,0x64,0x79]),_0x273bc3);}),_0x31710a={[_0x3039ea([0x6b,0x74,0x79])]:_0x3039ea([0x45,0x43]),[_0x3039ea([0x75,0x73,0x65])]:_0x3039ea([0x73,0x69,0x67]),[_0x3039ea([0x63,0x72,0x76])]:_0x3039ea([0x50,0x2d,0x32,0x35,0x36]),[_0x3039ea([0x78])]:_0x3039ea([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]),[_0x3039ea([0x79])]:_0x3039ea([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]),[_0x3039ea([0x61,0x6c,0x67])]:_0x3039ea([0x45,0x53,0x32,0x35,0x36])},_0x3ab3c8=_0xc347d8[_0x3039ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3039ea([0x67,0x65,0x74])](_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a7db0(){let _0x2a76d2,_0x5982d1=null,_0x11305d=null;try{if(_0x3ab3c8==_0x3039ea([0x47,0x50,0x4c]))return _0x3039ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a76d2=_0x162d23(),!_0x2a76d2)return _0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a76d2[_0x3039ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11305d=_0x180804(_0x2a76d2[_0x3039ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a76d2[_0x3039ea([0x6a,0x74,0x69])])),await _0x195a05()?_0x1a6556()?_0x5d504b()?_0x3039ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7c863a()?(_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3039ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5982d1=_0x66f322(_0x3039ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25a05c()):_0x3039ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3039ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d504b(){const _0x5aadad=[_0x3039ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3039ea([0x74,0x72,0x69,0x61,0x6c])][_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fd8e8/0x3e8:0xe10*_0xc4f361;return _0x2a76d2[_0x3039ea([0x65,0x78,0x70])]<_0x5aadad;}function _0x1a6556(){const _0x113163=_0x2a76d2[_0x3039ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x113163&&(!!_0x113163[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x2a]))||!!_0x113163[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x55,0x50,0x4c,0x43])));}function _0x7c863a(){const _0x3baab0=_0x5594,_0x2e58bd=_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e58bd||0x0==_0x2e58bd[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6a2937}=new URL(window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3baab0(0xd5)]);if(_0x2e58bd[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6a2937))return!0x0;const _0xc92079=_0x6a2937[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e]));return _0x2e58bd[_0x3039ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10ce27=>_0x10ce27[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x2a])))[_0x3039ea([0x6d,0x61,0x70])](_0x58da63=>_0x58da63[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e])))[_0x3039ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7c0a0f=>_0x7c0a0f[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc92079[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039ea([0x6d,0x61,0x70])](_0x1a3851=>Array(_0xc92079[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3851[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039ea([0x66,0x69,0x6c,0x6c])](_0x1a3851[0x0]===_0x3039ea([0x2a])?_0x3039ea([0x2a]):'')[_0x3039ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3851))[_0x3039ea([0x73,0x6f,0x6d,0x65])](_0x4f6c8b=>_0xc92079[_0x3039ea([0x65,0x76,0x65,0x72,0x79])]((_0x37e511,_0x138be7)=>_0x4f6c8b[_0x138be7]===_0x37e511||_0x4f6c8b[_0x138be7]===_0x3039ea([0x2a])));}function _0x25a05c(){return _0x5982d1&&_0x11305d?new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cc75c,_0x166e9c)=>{_0x5982d1[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x5cc75c,_0x166e9c),_0x11305d[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x3e7953=>{_0x3e7953!=_0x3039ea([0x56,0x61,0x6c,0x69,0x64])&&_0x5cc75c(_0x3e7953);},_0x166e9c);}):_0x5982d1||_0x11305d||_0x3039ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x180804(_0x49479b,_0x57cba8){return new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2e13=>{if(_0x15cd64())return _0x3d2e13(_0x3039ea([0x56,0x61,0x6c,0x69,0x64]));_0x28188a(),_0xc347d8[_0x3039ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16ba07=!0x1;const _0x5ae2d1=_0x5b697c();function _0x218ee9(_0x38a599){return!!_0x38a599&&(typeof _0x38a599===_0x3039ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38a599===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38a599[_0x3039ea([0x74,0x68,0x65,0x6e])]===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38a599[_0x3039ea([0x63,0x61,0x74,0x63,0x68])]===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b486c(_0x35d38e){_0x3afb4f(_0x35d38e)[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x1cab00=>{if(!_0x1cab00||_0x1cab00[_0x3039ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3039ea([0x6f,0x6b]))return _0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x74048(_0x332680(_0x5ae2d1+_0x57cba8))!=_0x1cab00[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3039ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x4dae67=>(_0x49b82c(),_0x4dae67),()=>{const _0x56db01=_0x5f5597();return null==_0x56db01?(_0x49b82c(),_0x3039ea([0x56,0x61,0x6c,0x69,0x64])):_0x3039ea(_0x2fd8e8-_0x56db01>(0x7753083a^_0x4541ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x3d2e13)[_0x3039ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a8e45=0x536962ba^_0x4541ce;function _0x49b82c(){const _0x15e8c2=_0x3039ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x74048(_0x332680(_0x49479b)),_0x31d890=_0x7355c9(_0x74048(window[_0x3039ea([0x4d,0x61,0x74,0x68])][_0x3039ea([0x63,0x65,0x69,0x6c])](_0x2fd8e8/_0x1a8e45)));window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15e8c2,_0x31d890);}function _0x5f5597(){const _0x25bf8d=_0x3039ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x74048(_0x332680(_0x49479b)),_0x1cd3ee=window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25bf8d);return _0x1cd3ee?window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7355c9(_0x1cd3ee),0x10)*_0x1a8e45:null;}function _0x3afb4f(_0x550d3a){return new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc2c3,_0x513743)=>{_0x550d3a[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x1dc2c3,_0x513743),window[_0x3039ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x513743,0x535e58fa^_0x4541ce);});}}_0xc347d8[_0x3039ea([0x6f,0x6e])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46419a,_0x4a4318)=>{if(_0x4a4318[0x0]!=_0x49479b)return _0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a4318[0x1]={..._0x4a4318[0x1],[_0x3039ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ae2d1};},{[_0x3039ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039ea([0x68,0x69,0x67,0x68])}),_0xc347d8[_0x3039ea([0x6f,0x6e])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x238deb=>{_0x218ee9(_0x238deb[_0x3039ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16ba07=!0x0,_0x2b486c(_0x238deb[_0x3039ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3039ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039ea([0x6c,0x6f,0x77])}),_0x3cc999[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>{_0x16ba07||_0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15cd64(){return _0xc347d8[_0x3039ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039ea([0x76,0x69,0x65,0x77])][_0x3039ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3039ea([0x61,0x75,0x74,0x6f]);}function _0x28188a(){_0xc347d8[_0x3039ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039ea([0x76,0x69,0x65,0x77])][_0x3039ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3039ea([0x61,0x75,0x74,0x6f]);}}function _0x66f322(_0x284cdb){const _0x4edb39=[new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3239d=>setTimeout(_0x3239d,0x5356b2f6^_0x4541ce)),_0x3cc999[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab921=>{let _0x3e1d9d=0x0;_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x6f,0x6e])](_0x3039ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52be21,_0x28cd54)=>{_0x28cd54[0x0][_0x3039ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e1d9d++,_0x3e1d9d==(0x535f89d2^_0x4541ce)&&(_0x5ab921(),_0x52be21[_0x3039ea([0x6f,0x66,0x66])]());});}))];return window[_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3039ea([0x72,0x61,0x63,0x65])](_0x4edb39)[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>_0x284cdb);}async function _0x41da02(){await _0x3cc999,_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41cc37,_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41cc37,_0xc347d8[_0x3039ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7e1707(_0x597936){const _0x56a4e5=_0x268afb();_0xc347d8[_0x56a4e5]=_0x3039ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x597936,_0x597936!=_0x3039ea([0x56,0x61,0x6c,0x69,0x64])&&_0x41da02();}function _0x268afb(){const _0x350c29=window[_0x3039ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3039ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3039ea([0x6e,0x6f,0x77])]())[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3039ea([0x2e]),'');let _0x26163e=_0x3039ea([0x68]);for(let _0x5ee444=0x0;_0x5ee444<_0x350c29[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ee444+=0x2){let _0x53665=window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x350c29[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ee444,_0x5ee444+0x2));_0x53665>=_0x323d87[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53665-=_0x323d87[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26163e+=_0x323d87[_0x53665];}return _0x26163e;}function _0x162d23(){const _0x19aff6=_0x3ab3c8[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e]));if(0x3!=_0x19aff6[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58eed5(_0x19aff6[0x1]);function _0x58eed5(_0x28d7f5){const _0x5861cc=_0xa90b74(_0x28d7f5);return _0x5861cc&&_0xf2de24()?_0x5861cc:null;function _0xf2de24(){const _0x5a262b=_0x5861cc[_0x3039ea([0x6a,0x74,0x69])],_0x56f1fd=window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a262b[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a262b[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ff20e={..._0x5861cc,[_0x3039ea([0x6a,0x74,0x69])]:_0x5a262b[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a262b[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ff20e[_0x3039ea([0x76,0x63])],_0x332680(_0x4ff20e)==_0x56f1fd;}}}async function _0x195a05(){let _0x2fc717=!0x0;try{const _0x30235d=_0x3ab3c8[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e])),[_0x2b54dd,_0x121916,_0x4b7d0c]=_0x30235d;return _0x5c629d(_0x2b54dd),await _0x2b4e9c(_0x2b54dd,_0x121916,_0x4b7d0c),_0x2fc717;}catch{return!0x1;}function _0x5c629d(_0xd6f028){const _0x11825b=_0xa90b74(_0xd6f028);_0x11825b&&_0x11825b[_0x3039ea([0x61,0x6c,0x67])]==_0x3039ea([0x45,0x53,0x32,0x35,0x36])||(_0x2fc717=!0x1);}async function _0x2b4e9c(_0x49fecf,_0x59f8e7,_0x423313){const _0x5a6635=window[_0x3039ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3039ea([0x66,0x72,0x6f,0x6d])](_0x1e1f1f(_0x423313),_0x5bc9ce=>_0x5bc9ce[_0x3039ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf4d78=new window[(_0x3039ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3039ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49fecf+_0x3039ea([0x2e])+_0x59f8e7),_0xdd8358=window[_0x3039ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3039ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdd8358)return;const _0x4a80c8=await _0xdd8358[_0x3039ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3039ea([0x6a,0x77,0x6b]),_0x31710a,{[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x45,0x43,0x44,0x53,0x41]),[_0x3039ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3039ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdd8358[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x45,0x43,0x44,0x53,0x41]),[_0x3039ea([0x68,0x61,0x73,0x68])]:{[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a80c8,_0x5a6635,_0xf4d78)||(_0x2fc717=!0x1);}}function _0xa90b74(_0x1d1b2a){return _0x1d1b2a[_0x3039ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3039ea([0x65,0x79]))?JSON[_0x3039ea([0x70,0x61,0x72,0x73,0x65])](_0x1e1f1f(_0x1d1b2a)):null;}function _0x1e1f1f(_0x57ae3a){return window[_0x3039ea([0x61,0x74,0x6f,0x62])](_0x57ae3a[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3039ea([0x2b]))[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3039ea([0x2f])));}function _0x332680(_0x1403c8){let _0x2ed575=0x1505;function _0x2f5444(_0x5b49d8){for(let _0x5bd8cd=0x0;_0x5bd8cd<_0x5b49d8[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bd8cd++){const _0x42e78e=_0x5b49d8[_0x3039ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bd8cd);_0x2ed575=(_0x2ed575<<0x5)+_0x2ed575+_0x42e78e,_0x2ed575&=_0x2ed575;}}function _0x19518c(_0x342c4c){Array[_0x3039ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x342c4c)?_0x342c4c[_0x3039ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19518c):_0x342c4c&&typeof _0x342c4c==_0x3039ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3039ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x342c4c)[_0x3039ea([0x73,0x6f,0x72,0x74])]()[_0x3039ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cd065,_0x4ef3ff])=>{_0x2f5444(_0x1cd065),_0x19518c(_0x4ef3ff);}):_0x2f5444(window[_0x3039ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x342c4c));}return _0x19518c(_0x1403c8),_0x2ed575>>>0x0;}function _0x74048(_0x3594eb){return _0x3594eb[_0x3039ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3039ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3039ea([0x30]));}function _0x7355c9(_0x10e8f2){return _0x10e8f2[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3039ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3039ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x41cc37(){}function _0x3039ea(_0x2cfbc4){const _0x1af3ce=_0x5594;return _0x2cfbc4[_0x1af3ce(0xc1)](_0x19a2ef=>String[_0x1af3ce(0xe3)](_0x19a2ef))[_0x1af3ce(0xc5)]('');}_0x7e1707(await _0x3a7db0());}(this);}[_0x37deec(0xd3)](){const _0x455e10=_0x37deec,_0x4c6dee=this[_0x455e10(0xc6)][_0x455e10(0xba)][_0x455e10(0xd2)];_0x4c6dee[_0x455e10(0xcf)](_0x455e10(0xd8))&&_0x4c6dee[_0x455e10(0xca)](_0x455e10(0xd8),{'allowAttributes':[_0x455e10(0xd9)]}),_0x4c6dee[_0x455e10(0xcf)](_0x455e10(0xb3))&&_0x4c6dee[_0x455e10(0xca)](_0x455e10(0xb3),{'allowAttributes':[_0x455e10(0xd9)]});}[_0x37deec(0xbe)](){const _0x3b428d=_0x37deec,_0x43d69d=this[_0x3b428d(0xc6)];_0x43d69d[_0x3b428d(0xaf)][_0x3b428d(0xae)](_0x3b428d(0xaa))[_0x3b428d(0xbb)]({'model':_0x3b428d(0xd9),'view':_0x3b428d(0xc7)}),_0x43d69d[_0x3b428d(0xaf)][_0x3b428d(0xae)](_0x3b428d(0xa3))[_0x3b428d(0xc2)]({'model':{'key':_0x3b428d(0xd9),'value':_0x125383=>_0x125383[_0x3b428d(0xa5)](_0x3b428d(0xc7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54bcf5=_0x43d69d[_0x3b428d(0x9e)][_0x3b428d(0xcd)](_0x3b428d(0xee));_0x54bcf5&&this[_0x3b428d(0xcc)](_0x54bcf5,_0x3b428d(0xbf),(_0x4b03f7,[_0x8b0105,_0x23b864])=>{const _0x804850=_0x3b428d;_0x8b0105[_0x804850(0xa8)](_0x804850(0xd9),_0x23b864);});}[_0x37deec(0xf1)](){const _0xe9ed60=_0x37deec,_0x894ea=this[_0xe9ed60(0xc6)][_0xe9ed60(0xe1)][_0xe9ed60(0xcd)](_0xe9ed60(0xe0))||{},_0x47981a=this[_0xe9ed60(0xc6)][_0xe9ed60(0xe1)][_0xe9ed60(0xcd)](_0xe9ed60(0xe7))||'';this[_0xe9ed60(0xe8)]=_0x530af2(_0x1b2f9a[_0xe9ed60(0xbc)],_0xe9ed60(0xef),{..._0x894ea,'pubkey':_0x47981a,'ctx-name':_0xe9ed60(0xa7)+this[_0xe9ed60(0xec)],'sourceList':'','imgOnly':_0xe9ed60(0xe6),'removeCopyright':_0xe9ed60(0xe6),'localeName':this[_0xe9ed60(0xc6)][_0xe9ed60(0xb0)][_0xe9ed60(0xb1)],'externalSourcesEmbedCss':_0xe9ed60(0xc9)}),this[_0xe9ed60(0xe8)][_0xe9ed60(0xd4)]=_0x50d322=>{const _0x253e55=_0xe9ed60;if(_0x253e55(0xeb)==_0x50d322)return _0x253e55(0xf2);},_0x1b2f9a[_0xe9ed60(0xbc)][_0xe9ed60(0xdd)][_0xe9ed60(0xf4)](this[_0xe9ed60(0xe8)]);}[_0x37deec(0xd0)](){const _0x333057=_0x37deec;this[_0x333057(0xc8)]=_0x530af2(_0x1b2f9a[_0x333057(0xbc)],_0x333057(0xe2),{'ctx-name':_0x333057(0xa7)+this[_0x333057(0xec)]}),_0x1b2f9a[_0x333057(0xbc)][_0x333057(0xdd)][_0x333057(0xf4)](this[_0x333057(0xc8)]);}[_0x37deec(0xdf)](){const _0x4b739b=_0x37deec,_0x305be6=this[_0x4b739b(0xc6)][_0x4b739b(0x9e)][_0x4b739b(0xcd)](_0x4b739b(0xe9));_0x305be6&&this[_0x4b739b(0xcc)](_0x305be6,_0x4b739b(0xac),()=>{const _0x350e14=_0x4b739b,_0x3fe8e2=this[_0x350e14(0xc6)][_0x350e14(0xba)][_0x350e14(0xbc)][_0x350e14(0xb6)][_0x350e14(0xce)]();_0x3fe8e2&&_0x3fe8e2[_0x350e14(0xa5)](_0x350e14(0xd9))&&this[_0x350e14(0xc6)][_0x350e14(0xb8)][_0x350e14(0xa2)][_0x350e14(0xed)](_0x350e14(0xea),()=>{const _0x5ccfb9=_0x350e14;_0xd90381(this[_0x5ccfb9(0xc6)],_0x3fe8e2);});});const _0x2c0b56=this[_0x4b739b(0xc6)][_0x4b739b(0x9e)][_0x4b739b(0xcd)](_0x4b739b(0xa9));_0x2c0b56&&this[_0x4b739b(0xcc)](_0x2c0b56,_0x4b739b(0xac),()=>{const _0x89a103=_0x4b739b,_0x48f37b=this[_0x89a103(0xc6)][_0x89a103(0xba)][_0x89a103(0xbc)][_0x89a103(0xb6)][_0x89a103(0xce)]();_0x48f37b&&_0x48f37b[_0x89a103(0xa5)](_0x89a103(0xd9))&&this[_0x89a103(0xc6)][_0x89a103(0xb8)][_0x89a103(0xa2)][_0x89a103(0xed)](_0x89a103(0xea),()=>{const _0x46fddc=_0x89a103;_0xd90381(this[_0x46fddc(0xc6)],_0x48f37b);});});}}
|
|
23
|
+
function _0x4bb6(){const _0x21ec5a=['cleanupImage','fromCharCode','querySelector','uploadcare.pubkey','model','2601582PCXGNh','listenTo','uploadcareImageId','_initConfig','upcast','for','editor','editing','conversion','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','imageInline','5360712WygRZx','extend','ctxElement','render','isRegistered','uploader-','data-uc-image-id','3951NmbaoH','get','_ctxElement','join','UploadcareEditing','#uc-icon-arrow-down','isOfficialPlugin','pluginName','getSelectedElement','add','uc-upload-ctx-provider','32Mgvzxd','document','href','elementToAttribute','execute','uploadcare.uploader','uploadcareImageReplace','_initConversion','body','_configElement','map','destroy','replaceImageSource','configElement','contentLanguage','selection','once','downcast','remove','iconHrefResolver','260UyztFF','attributeToAttribute','removeAttribute','closeMax','appendChild','uploadcare','config','843khraAL','init','isPremiumPlugin','insertImage','434592nmLeLx','commands','input[uploadcare-file-input]','schema','_initSchema','getAttribute','22466950KofKJg','locale','ucContextId','_initCtx','9004insaqT','requires','true','afterInit','imageBlock','view','555MvbZaE','PictureEditing','uc-config','_initImageProcessingIndicator'];_0x4bb6=function(){return _0x21ec5a;};return _0x4bb6();}const _0x160eda=_0x3ee6;function _0x3ee6(_0x3d2315,_0x5e20bd){const _0x4bb6b0=_0x4bb6();return _0x3ee6=function(_0x3ee61b,_0x1cd0b4){_0x3ee61b=_0x3ee61b-0x96;let _0x5abaef=_0x4bb6b0[_0x3ee61b];return _0x5abaef;},_0x3ee6(_0x3d2315,_0x5e20bd);}(function(_0x5e31cd,_0x49d941){const _0x3dcc29=_0x3ee6,_0xac57a7=_0x5e31cd();while(!![]){try{const _0x436051=-parseInt(_0x3dcc29(0xc7))/0x1+parseInt(_0x3dcc29(0xd1))/0x2*(-parseInt(_0x3dcc29(0xc3))/0x3)+-parseInt(_0x3dcc29(0xbc))/0x4*(-parseInt(_0x3dcc29(0xd7))/0x5)+-parseInt(_0x3dcc29(0xe0))/0x6+parseInt(_0x3dcc29(0x96))/0x7+-parseInt(_0x3dcc29(0xa8))/0x8*(-parseInt(_0x3dcc29(0x9d))/0x9)+parseInt(_0x3dcc29(0xcd))/0xa;if(_0x436051===_0x49d941)break;else _0xac57a7['push'](_0xac57a7['shift']());}catch(_0x239159){_0xac57a7['push'](_0xac57a7['shift']());}}}(_0x4bb6,0xd8da7));import{Plugin as _0x460c15}from'ckeditor5/src/core.js';import{Dialog as _0x18e440}from'ckeditor5/src/ui.js';import{createElement as _0x297fed,global as _0x53678f,uid as _0x20a186}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5355f4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x325c27}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5b129b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x460c15{[_0x160eda(0xb1)]=null;[_0x160eda(0x9f)]=null;static get[_0x160eda(0xa4)](){const _0x44910c=_0x160eda;return _0x44910c(0xa1);}static get[_0x160eda(0xd2)](){const _0x9f1447=_0x160eda;return[_0x9f1447(0xd8),_0x325c27,_0x18e440];}static get[_0x160eda(0xa3)](){return!0x0;}static get[_0x160eda(0xc5)](){return!0x0;}[_0x160eda(0xcf)];get[_0x160eda(0xb5)](){const _0x314c0b=_0x160eda;return this[_0x314c0b(0xb1)];}get[_0x160eda(0x98)](){const _0x3c3b07=_0x160eda;return this[_0x3c3b07(0x9f)];}constructor(_0x5e35a3){const _0xfa6a66=_0x160eda;super(_0x5e35a3),this[_0xfa6a66(0xcf)]=_0x20a186();}[_0x160eda(0xc4)](){const _0x1c2dfe=_0x160eda,_0x5b0e1b=this[_0x1c2dfe(0xe6)];_0x5b0e1b[_0x1c2dfe(0xc8)][_0x1c2dfe(0xa6)](_0x1c2dfe(0xc1),new _0x5355f4(_0x5b0e1b));}[_0x160eda(0xd4)](){const _0x1eda12=_0x160eda;this[_0x1eda12(0xcb)](),this[_0x1eda12(0xaf)](),this[_0x1eda12(0xe3)](),this[_0x1eda12(0xd0)](),this[_0x1eda12(0xda)](),this[_0x1eda12(0xe1)](this[_0x1eda12(0xe6)],_0x1eda12(0xb3),()=>{const _0x75cf21=_0x1eda12;this[_0x75cf21(0xb1)]&&(this[_0x75cf21(0xb1)][_0x75cf21(0xba)](),this[_0x75cf21(0xb1)]=null),this[_0x75cf21(0x9f)]&&(this[_0x75cf21(0x9f)][_0x75cf21(0xba)](),this[_0x75cf21(0x9f)]=null);const _0x10287a=_0x53678f[_0x75cf21(0xa9)][_0x75cf21(0xdd)](_0x75cf21(0xc9));_0x10287a&&_0x10287a[_0x75cf21(0xba)]();}),async function(_0x3b990c){const _0x363199=_0x3e45a2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x46245c=0x535f8c3a,_0x2dd974=0x5358f32a^_0x46245c,_0x2d596d=window[_0x3e45a2([0x44,0x61,0x74,0x65])][_0x3e45a2([0x6e,0x6f,0x77])](),_0x20dfd3=_0x3b990c[_0x3e45a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a842c=new window[(_0x3e45a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343bbe=>{_0x20dfd3[_0x3e45a2([0x6f,0x6e,0x63,0x65])](_0x3e45a2([0x72,0x65,0x61,0x64,0x79]),_0x343bbe);}),_0xc3d359={[_0x3e45a2([0x6b,0x74,0x79])]:_0x3e45a2([0x45,0x43]),[_0x3e45a2([0x75,0x73,0x65])]:_0x3e45a2([0x73,0x69,0x67]),[_0x3e45a2([0x63,0x72,0x76])]:_0x3e45a2([0x50,0x2d,0x32,0x35,0x36]),[_0x3e45a2([0x78])]:_0x3e45a2([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]),[_0x3e45a2([0x79])]:_0x3e45a2([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]),[_0x3e45a2([0x61,0x6c,0x67])]:_0x3e45a2([0x45,0x53,0x32,0x35,0x36])},_0x1b820e=_0x20dfd3[_0x3e45a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e45a2([0x67,0x65,0x74])](_0x3e45a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19d63b(){let _0x29a5d5,_0x5e7972=null,_0x17fabe=null;try{if(_0x1b820e==_0x3e45a2([0x47,0x50,0x4c]))return _0x3e45a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29a5d5=_0x4db417(),!_0x29a5d5)return _0x3e45a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29a5d5[_0x3e45a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17fabe=_0x2846cc(_0x29a5d5[_0x3e45a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29a5d5[_0x3e45a2([0x6a,0x74,0x69])])),await _0x2a4334()?_0x460c45()?_0x401a1e()?_0x3e45a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49c9b6()?(_0x29a5d5[_0x3e45a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e45a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e7972=_0x241ba3(_0x3e45a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2389e7()):_0x3e45a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e45a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e45a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e45a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x401a1e(){const _0x4ea1d4=[_0x3e45a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e45a2([0x74,0x72,0x69,0x61,0x6c])][_0x3e45a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29a5d5[_0x3e45a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d596d/0x3e8:0xe10*_0x2dd974;return _0x29a5d5[_0x3e45a2([0x65,0x78,0x70])]<_0x4ea1d4;}function _0x460c45(){const _0x51c709=_0x29a5d5[_0x3e45a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51c709&&(!!_0x51c709[_0x3e45a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e45a2([0x2a]))||!!_0x51c709[_0x3e45a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e45a2([0x55,0x50,0x4c,0x43])));}function _0x49c9b6(){const _0x2b1990=_0x3ee6,_0x18a038=_0x29a5d5[_0x3e45a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18a038||0x0==_0x18a038[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5571ee}=new URL(window[_0x3e45a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b1990(0xaa)]);if(_0x18a038[_0x3e45a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5571ee))return!0x0;const _0x25459f=_0x5571ee[_0x3e45a2([0x73,0x70,0x6c,0x69,0x74])](_0x3e45a2([0x2e]));return _0x18a038[_0x3e45a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bf947=>_0x5bf947[_0x3e45a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e45a2([0x2a])))[_0x3e45a2([0x6d,0x61,0x70])](_0x45df49=>_0x45df49[_0x3e45a2([0x73,0x70,0x6c,0x69,0x74])](_0x3e45a2([0x2e])))[_0x3e45a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59b6b8=>_0x59b6b8[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25459f[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e45a2([0x6d,0x61,0x70])](_0x31db01=>Array(_0x25459f[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31db01[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e45a2([0x66,0x69,0x6c,0x6c])](_0x31db01[0x0]===_0x3e45a2([0x2a])?_0x3e45a2([0x2a]):'')[_0x3e45a2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31db01))[_0x3e45a2([0x73,0x6f,0x6d,0x65])](_0x8a772=>_0x25459f[_0x3e45a2([0x65,0x76,0x65,0x72,0x79])]((_0xc7cffe,_0x1536c6)=>_0x8a772[_0x1536c6]===_0xc7cffe||_0x8a772[_0x1536c6]===_0x3e45a2([0x2a])));}function _0x2389e7(){return _0x5e7972&&_0x17fabe?new window[(_0x3e45a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x494934,_0x26f930)=>{_0x5e7972[_0x3e45a2([0x74,0x68,0x65,0x6e])](_0x494934,_0x26f930),_0x17fabe[_0x3e45a2([0x74,0x68,0x65,0x6e])](_0x295592=>{_0x295592!=_0x3e45a2([0x56,0x61,0x6c,0x69,0x64])&&_0x494934(_0x295592);},_0x26f930);}):_0x5e7972||_0x17fabe||_0x3e45a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2846cc(_0x4c04ac,_0x25e056){return new window[(_0x3e45a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49ddeb=>{if(_0x2de727())return _0x49ddeb(_0x3e45a2([0x56,0x61,0x6c,0x69,0x64]));_0x3f7f70(),_0x20dfd3[_0x3e45a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e45a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1379e8=!0x1;const _0xfbfdab=_0x20a186();function _0x4a5f05(_0x568f6c){return!!_0x568f6c&&(typeof _0x568f6c===_0x3e45a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x568f6c===_0x3e45a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x568f6c[_0x3e45a2([0x74,0x68,0x65,0x6e])]===_0x3e45a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x568f6c[_0x3e45a2([0x63,0x61,0x74,0x63,0x68])]===_0x3e45a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb55a(_0x314975){_0x4e3baa(_0x314975)[_0x3e45a2([0x74,0x68,0x65,0x6e])](_0x47974b=>{if(!_0x47974b||_0x47974b[_0x3e45a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e45a2([0x6f,0x6b]))return _0x3e45a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d28ec(_0x114836(_0xfbfdab+_0x25e056))!=_0x47974b[_0x3e45a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e45a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e45a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e45a2([0x74,0x68,0x65,0x6e])](_0x4630e3=>(_0x15a474(),_0x4630e3),()=>{const _0x29f8e9=_0xc90ddf();return null==_0x29f8e9?(_0x15a474(),_0x3e45a2([0x56,0x61,0x6c,0x69,0x64])):_0x3e45a2(_0x2d596d-_0x29f8e9>(0x7753083a^_0x46245c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e45a2([0x74,0x68,0x65,0x6e])](_0x49ddeb)[_0x3e45a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49ddeb(_0x3e45a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x360a6d=0x536962ba^_0x46245c;function _0x15a474(){const _0x13a00=_0x3e45a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d28ec(_0x114836(_0x4c04ac)),_0x366f5a=_0x4c825e(_0x4d28ec(window[_0x3e45a2([0x4d,0x61,0x74,0x68])][_0x3e45a2([0x63,0x65,0x69,0x6c])](_0x2d596d/_0x360a6d)));window[_0x3e45a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e45a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13a00,_0x366f5a);}function _0xc90ddf(){const _0x564a72=_0x3e45a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d28ec(_0x114836(_0x4c04ac)),_0x2de8c5=window[_0x3e45a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e45a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x564a72);return _0x2de8c5?window[_0x3e45a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c825e(_0x2de8c5),0x10)*_0x360a6d:null;}function _0x4e3baa(_0x2f2075){return new window[(_0x3e45a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52eb36,_0xe4830c)=>{_0x2f2075[_0x3e45a2([0x74,0x68,0x65,0x6e])](_0x52eb36,_0xe4830c),window[_0x3e45a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe4830c,0x535e58fa^_0x46245c);});}}_0x20dfd3[_0x3e45a2([0x6f,0x6e])](_0x3e45a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x244650,_0x400fd4)=>{if(_0x400fd4[0x0]!=_0x4c04ac)return _0x49ddeb(_0x3e45a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x400fd4[0x1]={..._0x400fd4[0x1],[_0x3e45a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfbfdab};},{[_0x3e45a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e45a2([0x68,0x69,0x67,0x68])}),_0x20dfd3[_0x3e45a2([0x6f,0x6e])](_0x3e45a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x18c3f9=>{_0x4a5f05(_0x18c3f9[_0x3e45a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1379e8=!0x0,_0x2fb55a(_0x18c3f9[_0x3e45a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e45a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e45a2([0x6c,0x6f,0x77])}),_0x5a842c[_0x3e45a2([0x74,0x68,0x65,0x6e])](()=>{_0x1379e8||_0x49ddeb(_0x3e45a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2de727(){return _0x20dfd3[_0x3e45a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e45a2([0x76,0x69,0x65,0x77])][_0x3e45a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e45a2([0x61,0x75,0x74,0x6f]);}function _0x3f7f70(){_0x20dfd3[_0x3e45a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e45a2([0x76,0x69,0x65,0x77])][_0x3e45a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e45a2([0x61,0x75,0x74,0x6f]);}}function _0x241ba3(_0x23b24a){const _0x109227=[new window[(_0x3e45a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x511f29=>setTimeout(_0x511f29,0x5356b2f6^_0x46245c)),_0x5a842c[_0x3e45a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e45a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d2f3c=>{let _0x384468=0x0;_0x20dfd3[_0x3e45a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e45a2([0x6f,0x6e])](_0x3e45a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f543f,_0x2cab29)=>{_0x2cab29[0x0][_0x3e45a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x384468++,_0x384468==(0x535f89d2^_0x46245c)&&(_0x1d2f3c(),_0x1f543f[_0x3e45a2([0x6f,0x66,0x66])]());});}))];return window[_0x3e45a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e45a2([0x72,0x61,0x63,0x65])](_0x109227)[_0x3e45a2([0x74,0x68,0x65,0x6e])](()=>_0x23b24a);}async function _0x2b8f6c(){await _0x5a842c,_0x20dfd3[_0x3e45a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e45a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a68d5,_0x20dfd3[_0x3e45a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e45a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a68d5,_0x20dfd3[_0x3e45a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e45a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39e75d(_0x22f9e0){const _0x6aecc4=_0x1023e7();_0x20dfd3[_0x6aecc4]=_0x3e45a2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22f9e0,_0x22f9e0!=_0x3e45a2([0x56,0x61,0x6c,0x69,0x64])&&_0x2b8f6c();}function _0x1023e7(){const _0x497467=window[_0x3e45a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e45a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e45a2([0x6e,0x6f,0x77])]())[_0x3e45a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e45a2([0x2e]),'');let _0x226f8e=_0x3e45a2([0x68]);for(let _0x2c7aaf=0x0;_0x2c7aaf<_0x497467[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c7aaf+=0x2){let _0x3cd2df=window[_0x3e45a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497467[_0x3e45a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c7aaf,_0x2c7aaf+0x2));_0x3cd2df>=_0x363199[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cd2df-=_0x363199[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x226f8e+=_0x363199[_0x3cd2df];}return _0x226f8e;}function _0x4db417(){const _0x5d28e2=_0x1b820e[_0x3e45a2([0x73,0x70,0x6c,0x69,0x74])](_0x3e45a2([0x2e]));if(0x3!=_0x5d28e2[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34aa93(_0x5d28e2[0x1]);function _0x34aa93(_0x425090){const _0x5c57b5=_0x245b2f(_0x425090);return _0x5c57b5&&_0x2fdac5()?_0x5c57b5:null;function _0x2fdac5(){const _0x3ea6f6=_0x5c57b5[_0x3e45a2([0x6a,0x74,0x69])],_0x51d8d7=window[_0x3e45a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ea6f6[_0x3e45a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ea6f6[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x327d5b={..._0x5c57b5,[_0x3e45a2([0x6a,0x74,0x69])]:_0x3ea6f6[_0x3e45a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ea6f6[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x327d5b[_0x3e45a2([0x76,0x63])],_0x114836(_0x327d5b)==_0x51d8d7;}}}async function _0x2a4334(){let _0x954c92=!0x0;try{const _0x21a0e4=_0x1b820e[_0x3e45a2([0x73,0x70,0x6c,0x69,0x74])](_0x3e45a2([0x2e])),[_0x9f2b0f,_0x57666e,_0x5b6a54]=_0x21a0e4;return _0xdb7598(_0x9f2b0f),await _0x5c5c4e(_0x9f2b0f,_0x57666e,_0x5b6a54),_0x954c92;}catch{return!0x1;}function _0xdb7598(_0x12e785){const _0x54b10e=_0x245b2f(_0x12e785);_0x54b10e&&_0x54b10e[_0x3e45a2([0x61,0x6c,0x67])]==_0x3e45a2([0x45,0x53,0x32,0x35,0x36])||(_0x954c92=!0x1);}async function _0x5c5c4e(_0x321158,_0x2fb7ed,_0x3b4786){const _0x5411cc=window[_0x3e45a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e45a2([0x66,0x72,0x6f,0x6d])](_0x1d0cd7(_0x3b4786),_0x554121=>_0x554121[_0x3e45a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x496fe3=new window[(_0x3e45a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e45a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x321158+_0x3e45a2([0x2e])+_0x2fb7ed),_0x91bf65=window[_0x3e45a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e45a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x91bf65)return;const _0x29fc3d=await _0x91bf65[_0x3e45a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e45a2([0x6a,0x77,0x6b]),_0xc3d359,{[_0x3e45a2([0x6e,0x61,0x6d,0x65])]:_0x3e45a2([0x45,0x43,0x44,0x53,0x41]),[_0x3e45a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e45a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e45a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x91bf65[_0x3e45a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e45a2([0x6e,0x61,0x6d,0x65])]:_0x3e45a2([0x45,0x43,0x44,0x53,0x41]),[_0x3e45a2([0x68,0x61,0x73,0x68])]:{[_0x3e45a2([0x6e,0x61,0x6d,0x65])]:_0x3e45a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29fc3d,_0x5411cc,_0x496fe3)||(_0x954c92=!0x1);}}function _0x245b2f(_0x4e03cd){return _0x4e03cd[_0x3e45a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e45a2([0x65,0x79]))?JSON[_0x3e45a2([0x70,0x61,0x72,0x73,0x65])](_0x1d0cd7(_0x4e03cd)):null;}function _0x1d0cd7(_0x225d87){return window[_0x3e45a2([0x61,0x74,0x6f,0x62])](_0x225d87[_0x3e45a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e45a2([0x2b]))[_0x3e45a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e45a2([0x2f])));}function _0x114836(_0x1a1c4e){let _0x344cc7=0x1505;function _0x4ddf1f(_0x4f97fb){for(let _0x5d43bf=0x0;_0x5d43bf<_0x4f97fb[_0x3e45a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d43bf++){const _0x41a89c=_0x4f97fb[_0x3e45a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d43bf);_0x344cc7=(_0x344cc7<<0x5)+_0x344cc7+_0x41a89c,_0x344cc7&=_0x344cc7;}}function _0x5a5a00(_0x224929){Array[_0x3e45a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x224929)?_0x224929[_0x3e45a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a5a00):_0x224929&&typeof _0x224929==_0x3e45a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e45a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x224929)[_0x3e45a2([0x73,0x6f,0x72,0x74])]()[_0x3e45a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf23346,_0x30b63b])=>{_0x4ddf1f(_0xf23346),_0x5a5a00(_0x30b63b);}):_0x4ddf1f(window[_0x3e45a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x224929));}return _0x5a5a00(_0x1a1c4e),_0x344cc7>>>0x0;}function _0x4d28ec(_0x46927a){return _0x46927a[_0x3e45a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e45a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e45a2([0x30]));}function _0x4c825e(_0x256437){return _0x256437[_0x3e45a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e45a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e45a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a68d5(){}function _0x3e45a2(_0x399a26){const _0x509e1b=_0x3ee6;return _0x399a26[_0x509e1b(0xb2)](_0x3e277d=>String[_0x509e1b(0xdc)](_0x3e277d))[_0x509e1b(0xa0)]('');}_0x39e75d(await _0x19d63b());}(this);}[_0x160eda(0xcb)](){const _0x2a6b7c=_0x160eda,_0x35b757=this[_0x2a6b7c(0xe6)][_0x2a6b7c(0xdf)][_0x2a6b7c(0xca)];_0x35b757[_0x2a6b7c(0x9a)](_0x2a6b7c(0xd5))&&_0x35b757[_0x2a6b7c(0x97)](_0x2a6b7c(0xd5),{'allowAttributes':[_0x2a6b7c(0xe2)]}),_0x35b757[_0x2a6b7c(0x9a)](_0x2a6b7c(0xea))&&_0x35b757[_0x2a6b7c(0x97)](_0x2a6b7c(0xea),{'allowAttributes':[_0x2a6b7c(0xe2)]});}[_0x160eda(0xaf)](){const _0x34dae7=_0x160eda,_0x239b47=this[_0x34dae7(0xe6)];_0x239b47[_0x34dae7(0xe8)][_0x34dae7(0xe5)](_0x34dae7(0xb9))[_0x34dae7(0xbd)]({'model':_0x34dae7(0xe2),'view':_0x34dae7(0x9c)}),_0x239b47[_0x34dae7(0xe8)][_0x34dae7(0xe5)](_0x34dae7(0xe4))[_0x34dae7(0xab)]({'model':{'key':_0x34dae7(0xe2),'value':_0x13a8c0=>_0x13a8c0[_0x34dae7(0xcc)](_0x34dae7(0x9c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x322443=_0x239b47[_0x34dae7(0xc8)][_0x34dae7(0x9e)](_0x34dae7(0xb4));_0x322443&&this[_0x34dae7(0xe1)](_0x322443,_0x34dae7(0xdb),(_0x12ed98,[_0x767719,_0xb487a1])=>{const _0x4a1966=_0x34dae7;_0x767719[_0x4a1966(0xbe)](_0x4a1966(0xe2),_0xb487a1);});}[_0x160eda(0xe3)](){const _0x18d210=_0x160eda,_0x4be19d=this[_0x18d210(0xe6)][_0x18d210(0xc2)][_0x18d210(0x9e)](_0x18d210(0xad))||{},_0x571a91=this[_0x18d210(0xe6)][_0x18d210(0xc2)][_0x18d210(0x9e)](_0x18d210(0xde))||'';this[_0x18d210(0xb1)]=_0x297fed(_0x53678f[_0x18d210(0xa9)],_0x18d210(0xd9),{..._0x4be19d,'pubkey':_0x571a91,'ctx-name':_0x18d210(0x9b)+this[_0x18d210(0xcf)],'sourceList':'','imgOnly':_0x18d210(0xd3),'removeCopyright':_0x18d210(0xd3),'localeName':this[_0x18d210(0xe6)][_0x18d210(0xce)][_0x18d210(0xb6)],'externalSourcesEmbedCss':_0x18d210(0xe9)}),this[_0x18d210(0xb1)][_0x18d210(0xbb)]=_0x257bff=>{const _0x599db2=_0x18d210;if(_0x599db2(0xbf)==_0x257bff)return _0x599db2(0xa2);},_0x53678f[_0x18d210(0xa9)][_0x18d210(0xb0)][_0x18d210(0xc0)](this[_0x18d210(0xb1)]);}[_0x160eda(0xd0)](){const _0x417765=_0x160eda;this[_0x417765(0x9f)]=_0x297fed(_0x53678f[_0x417765(0xa9)],_0x417765(0xa7),{'ctx-name':_0x417765(0x9b)+this[_0x417765(0xcf)]}),_0x53678f[_0x417765(0xa9)][_0x417765(0xb0)][_0x417765(0xc0)](this[_0x417765(0x9f)]);}[_0x160eda(0xda)](){const _0x1fe24c=_0x160eda,_0x44f36e=this[_0x1fe24c(0xe6)][_0x1fe24c(0xc8)][_0x1fe24c(0x9e)](_0x1fe24c(0xc6));_0x44f36e&&this[_0x1fe24c(0xe1)](_0x44f36e,_0x1fe24c(0xac),()=>{const _0x1a72b8=_0x1fe24c,_0x13ad8f=this[_0x1a72b8(0xe6)][_0x1a72b8(0xdf)][_0x1a72b8(0xa9)][_0x1a72b8(0xb7)][_0x1a72b8(0xa5)]();_0x13ad8f&&_0x13ad8f[_0x1a72b8(0xcc)](_0x1a72b8(0xe2))&&this[_0x1a72b8(0xe6)][_0x1a72b8(0xe7)][_0x1a72b8(0xd6)][_0x1a72b8(0xb8)](_0x1a72b8(0x99),()=>{const _0x3bb8d0=_0x1a72b8;_0x5b129b(this[_0x3bb8d0(0xe6)],_0x13ad8f);});});const _0x4b8f73=this[_0x1fe24c(0xe6)][_0x1fe24c(0xc8)][_0x1fe24c(0x9e)](_0x1fe24c(0xae));_0x4b8f73&&this[_0x1fe24c(0xe1)](_0x4b8f73,_0x1fe24c(0xac),()=>{const _0x524506=_0x1fe24c,_0xabbab6=this[_0x524506(0xe6)][_0x524506(0xdf)][_0x524506(0xa9)][_0x524506(0xb7)][_0x524506(0xa5)]();_0xabbab6&&_0xabbab6[_0x524506(0xcc)](_0x524506(0xe2))&&this[_0x524506(0xe6)][_0x524506(0xe7)][_0x524506(0xd6)][_0x524506(0xb8)](_0x524506(0x99),()=>{const _0x1ff5a1=_0x524506;_0x5b129b(this[_0x1ff5a1(0xe6)],_0xabbab6);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x109f3a,ObservableMixin as _0x3d1949}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4bf96e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x10e9e7}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x111121}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xe387cf}from'../../utils/uploadutils.js';import{getImageUrls as _0x205c39,getImageDimension as _0x3c450a}from'../../utils/editingutils.js';import{isAncestor as _0x5cd371}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d1949(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x505781,_0x2ab482,_0x308aee){super(),this['_editor']=_0x505781,this['_dialog']=_0x2ab482,this['_imageElement']=_0x308aee,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 _0x227e94=this['_imageElement'],_0xf90d07=_0x227e94['getAttribute']('uploadcareImageId'),_0x3cb60a=_0x227e94['getAttribute']('src');if(_0xf90d07)await this['_loadImageInfo'](_0xf90d07,_0x3cb60a);else{if(this['_imageCache']['has'](_0x3cb60a)){const _0x3c1538=this['_imageCache']['get'](_0x3cb60a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c1538['url'],this['imageDimension']=_0x3c1538['dimension'],this['imageId']=_0x3c1538['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x27ad7e}=this['_editor'],t=_0x27ad7e['t'],_0xca9bd2=new _0x111121(_0x27ad7e,this['imageStatus'],this['_attributes']);_0xca9bd2['bind']('status')['to'](this,'imageStatus'),_0xca9bd2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xca9bd2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xca9bd2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xca9bd2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10e9e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xca9bd2,'position':_0x4bf96e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xca9bd2['focus']();},'onHide':()=>{_0xca9bd2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x47edef=>!_0x5cd371(_0x47edef,_0xca9bd2['element'])}});}['_loadImageInfo'](_0xdaa831,_0x4cf142){return _0xe387cf['getInfo'](_0xdaa831,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x45fc9a=>{const {width:_0x3049f7,height:_0x26bf0d}=_0x45fc9a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4cf142,this['imageDimension']={'width':_0x3049f7,'height':_0x26bf0d},this['imageId']=_0xdaa831;})['catch'](_0x257069=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x257069['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xc98088,_0x5291a3){return this['_getImageAsFile'](_0xc98088)['then'](_0x23fdf9=>_0xe387cf['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x5291a3['signal'],'file':_0x23fdf9,'onProgress':_0x4e72c1=>{_0x4e72c1&&_0x4e72c1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4e72c1['value']));}}))['then'](_0x1c1869=>{const {width:_0xff4b2b,height:_0x3eb2eb}=_0x1c1869['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c1869['cdnUrl'],this['imageDimension']={'width':_0xff4b2b,'height':_0x3eb2eb},this['imageId']=_0x1c1869['uuid'],this['imageUploadProgress']=null;const _0x229d73=_0xc98088['getAttribute']('src');this['_imageCache']['set'](_0x229d73,{'id':_0x1c1869['uuid'],'url':_0x1c1869['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x89ad5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x89ad5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x208f76,_0x554db3){_0x208f76['on']('apply',(_0x2964bd,_0x3dd490)=>{this['_replaceImage'](_0x554db3,_0x3dd490['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x208f76['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x208f76['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5c9943,_0x165e03,_0x548c28){const _0x249806=this['_editor'],{width:_0xe75b9d,height:_0x103c14}=_0x3c450a(_0x165e03,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x568982,imageSources:_0x3561d5}=_0x205c39(_0x165e03,_0xe75b9d);_0x249806['model']['change'](_0x576cac=>{if('$graveyard'===_0x5c9943['root']['rootName']){_0x249806['execute']('insertImage',{'imageType':_0x5c9943['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5c9943['getAttributes']()),'uploadcareImageId':_0x548c28,'src':_0x568982,'sources':_0x3561d5,'width':_0xe75b9d,'height':_0x103c14}});const _0x32cd96=_0x5c9943['getChildren']();_0x5c9943=_0x249806['model']['document']['selection']['getSelectedElement']();for(const _0x418f06 of _0x32cd96)_0x576cac['append'](_0x576cac['cloneElement'](_0x418f06),_0x5c9943);}else _0x576cac['setSelection'](_0x5c9943,'on'),_0x249806['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5c9943['getAttributes']()),'uploadcareImageId':_0x548c28,'src':_0x568982,'sources':_0x3561d5,'width':_0xe75b9d,'height':_0x103c14},_0x5c9943);_0x576cac['setSelection'](_0x5c9943,'on');});}async['_getImageAsFile'](_0x429c8a){const _0x2a0915=_0x109f3a['window'],_0x2510dd=_0x109f3a['document']['location']['href'],_0x42b82d=new _0x2a0915['URL'](_0x429c8a['getAttribute']('src'),_0x2510dd);if('data:'===_0x42b82d['protocol']){const _0x51cf32=_0x42b82d['href']['split'](','),_0x53fe6e=_0x51cf32[0x0]['match'](/:(.*?);/)[0x1],_0x56d0cb=_0x53fe6e['split']('/')[0x1],_0x10aa40=_0x2a0915['atob'](_0x51cf32[_0x51cf32['length']-0x1]);let _0x1d45f0=_0x10aa40['length'];const _0x39162f=new _0x2a0915['Uint8Array'](_0x1d45f0);for(;_0x1d45f0--;)_0x39162f[_0x1d45f0]=_0x10aa40['charCodeAt'](_0x1d45f0);return new _0x2a0915['File']([_0x39162f],'image.'+_0x56d0cb,{'type':_0x53fe6e});}const _0x386f54=_0x42b82d['href']['split']('/'),_0x5265e5=_0x386f54[_0x386f54['length']-0x1],_0xfed084=_0x5265e5['split']('.')[0x1];return _0x2a0915['fetch'](_0x42b82d['href'])['then'](_0x527e5b=>_0x527e5b['clone']()['blob']())['then'](_0x2a7d3a=>new _0x2a0915['File']([_0x2a7d3a],_0x5265e5,{'type':'image/'+_0xfed084}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x56f7(_0x2b4f40,_0x163d26){const _0x2dcad4=_0x2dca();return _0x56f7=function(_0x56f74d,_0x495774){_0x56f74d=_0x56f74d-0x161;let _0x516f23=_0x2dcad4[_0x56f74d];return _0x516f23;},_0x56f7(_0x2b4f40,_0x163d26);}(function(_0x4a2c1a,_0x145de6){const _0x28279e=_0x56f7,_0x1ca37c=_0x4a2c1a();while(!![]){try{const _0x4cf30d=parseInt(_0x28279e(0x173))/0x1+-parseInt(_0x28279e(0x169))/0x2*(parseInt(_0x28279e(0x16d))/0x3)+-parseInt(_0x28279e(0x171))/0x4+parseInt(_0x28279e(0x16f))/0x5+parseInt(_0x28279e(0x168))/0x6*(parseInt(_0x28279e(0x162))/0x7)+parseInt(_0x28279e(0x163))/0x8*(-parseInt(_0x28279e(0x161))/0x9)+parseInt(_0x28279e(0x16a))/0xa*(-parseInt(_0x28279e(0x165))/0xb);if(_0x4cf30d===_0x145de6)break;else _0x1ca37c['push'](_0x1ca37c['shift']());}catch(_0x30c5f9){_0x1ca37c['push'](_0x1ca37c['shift']());}}}(_0x2dca,0xd98bf));import{View as _0x4f337c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x4f337c{constructor(_0x4232e0,_0x551cd8){const _0x10fcb7=_0x56f7;super(_0x4232e0);const _0x24f167=this[_0x10fcb7(0x16e)];this[_0x10fcb7(0x172)](_0x10fcb7(0x16b),''),this[_0x10fcb7(0x166)]({'tag':_0x10fcb7(0x167),'attributes':{..._0x551cd8,'class':[_0x10fcb7(0x164),_0x10fcb7(0x16c)],'ctx-name':_0x10fcb7(0x170),'cdn-url':_0x24f167['to'](_0x10fcb7(0x16b))}});}}function _0x2dca(){const _0x339df0=['ck-uploadcare-theme','1360251txwCKV','bindTemplate','7116165YRyiFT','image-edit','5582704PcIxQC','set','992719VNpYHi','2583KmPbjo','8691137vQweKC','8696uJtjko','uc-light','22PFkcYT','setTemplate','uc-cloud-image-editor','6SHDYwb','2ZCSXYc','3027050jRKqCv','imageSrc'];_0x2dca=function(){return _0x339df0;};return _0x2dca();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x542231}from'ckeditor5/src/icons.js';import{ButtonView as _0x2e9206,IconView as _0x4d1aa5,View as _0x3a34de}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3a34de{constructor(_0x197352){super(_0x197352);const t=_0x197352['t'];this['set']('errorType',null);const _0x29864f=new _0x2e9206(_0x197352);_0x29864f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x29864f['withText']=!0x0,_0x29864f['class']='ck-button-action',_0x29864f['on']('execute',()=>{this['fire']('retry');}),_0x29864f['bind']('isVisible')['to'](this,'errorType',_0x139c40=>'NotFound'!==_0x139c40);const _0x5464b1=new _0x4d1aa5();_0x5464b1['content']=_0x542231,_0x5464b1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4583b5=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':[_0x5464b1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4583b5['to']('errorType',_0x571682=>t('NotFound'!==_0x571682?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x29864f]},{'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 _0x3646d6,View as _0x5918f6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5918f6{constructor(_0x3f302b){super(_0x3f302b);const t=_0x3f302b['t'],_0x59df4d=this['bindTemplate'],_0x3ffd0a=new _0x3646d6();_0x3ffd0a['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':[_0x3ffd0a,{'text':_0x59df4d['to']('imageUploadProgress',_0x26b1e8=>t('Loading\x20image...')+'\x20('+(_0x26b1e8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5c5a(_0x27a8df,_0x44bc7f){const _0x2f075a=_0x2f07();return _0x5c5a=function(_0x5c5a85,_0xd522c0){_0x5c5a85=_0x5c5a85-0x96;let _0x5985d1=_0x2f075a[_0x5c5a85];return _0x5985d1;},_0x5c5a(_0x27a8df,_0x44bc7f);}const _0x93159=_0x5c5a;(function(_0x5ab6ae,_0x2e36e4){const _0x4b3aba=_0x5c5a,_0x288d33=_0x5ab6ae();while(!![]){try{const _0x472a25=-parseInt(_0x4b3aba(0x9a))/0x1*(parseInt(_0x4b3aba(0xc0))/0x2)+-parseInt(_0x4b3aba(0xc1))/0x3*(-parseInt(_0x4b3aba(0xa6))/0x4)+-parseInt(_0x4b3aba(0xa9))/0x5*(-parseInt(_0x4b3aba(0xca))/0x6)+parseInt(_0x4b3aba(0xc4))/0x7*(parseInt(_0x4b3aba(0x9e))/0x8)+parseInt(_0x4b3aba(0x98))/0x9+-parseInt(_0x4b3aba(0xb9))/0xa*(-parseInt(_0x4b3aba(0xb4))/0xb)+-parseInt(_0x4b3aba(0xab))/0xc;if(_0x472a25===_0x2e36e4)break;else _0x288d33['push'](_0x288d33['shift']());}catch(_0x3bff01){_0x288d33['push'](_0x288d33['shift']());}}}(_0x2f07,0xe63f2));import{View as _0x51b0e7}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x8c1796}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2e96bd}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xed1e5d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3e9006}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3e9006{[_0x93159(0xc2)];[_0x93159(0xa8)];[_0x93159(0xaf)];[_0x93159(0xb2)];[_0x93159(0x9c)];constructor(_0x4d0dc3,_0x5c3e53,_0x3c9c97){const _0x5b7ea5=_0x93159;super(_0x4d0dc3),this[_0x5b7ea5(0xc2)]=this[_0x5b7ea5(0xbb)](),this[_0x5b7ea5(0xa8)]=new _0x8c1796(_0x4d0dc3),this[_0x5b7ea5(0xaf)]=new _0x2e96bd(_0x4d0dc3),this[_0x5b7ea5(0xb2)]=new _0xed1e5d(_0x4d0dc3,_0x3c9c97),this[_0x5b7ea5(0x9c)]=new _0x51b0e7(_0x4d0dc3),this[_0x5b7ea5(0x9c)][_0x5b7ea5(0xbd)](this[_0x5b7ea5(0xa2)]()),this[_0x5b7ea5(0xa3)](_0x5b7ea5(0xcc),_0x5c3e53),this[_0x5b7ea5(0xbd)]({'tag':_0x5b7ea5(0xb0),'attributes':{'class':['ck',_0x5b7ea5(0xb8),_0x5b7ea5(0xaa)],'tabindex':'-1'},'children':this[_0x5b7ea5(0xc2)]}),this[_0x5b7ea5(0xbf)](),this[_0x5b7ea5(0xb3)](_0x5b7ea5(0xb7),()=>{const _0x42860c=_0x5b7ea5;this[_0x42860c(0xae)](this[_0x42860c(0xb1)],_0x44e10a=>{const _0xc333fd=_0x42860c;this[_0xc333fd(0x9d)](_0x44e10a);});}),this['on'](_0x5b7ea5(0xa5),()=>{const _0xd93945=_0x5b7ea5;this[_0xd93945(0xbf)]();}),this[_0x5b7ea5(0xbe)]();}[_0x93159(0x99)](){const _0x542190=_0x93159;this[_0x542190(0xb1)][_0x542190(0x99)]();}[_0x93159(0xbf)](){const _0xd18c7d=_0x93159;switch(this[_0xd18c7d(0xc2)][_0xd18c7d(0xc3)](),this[_0xd18c7d(0xcc)]){case _0xd18c7d(0xb5):this[_0xd18c7d(0xc2)][_0xd18c7d(0xad)](this[_0xd18c7d(0xa8)]);break;case _0xd18c7d(0xac):this[_0xd18c7d(0xc2)][_0xd18c7d(0xad)](this[_0xd18c7d(0xaf)]);break;case _0xd18c7d(0xa0):this[_0xd18c7d(0xc2)][_0xd18c7d(0x97)]([this[_0xd18c7d(0xb2)],this[_0xd18c7d(0x9c)]]);}}[_0x93159(0xae)](_0x2aef7b,_0x4a1595){const _0x31464f=_0x93159,_0x2608a3=_0x31464f(0xce),_0x12a39c=_0x2aef7b[_0x31464f(0xa4)](_0x2608a3);if(_0x12a39c)return _0x4a1595(_0x12a39c);const _0x33cc68=new MutationObserver(_0x4b7520=>{const _0x2d8e46=_0x31464f,_0x1df7fc=_0x4b7520[_0x2d8e46(0xba)](_0x232de2=>_0x232de2[_0x2d8e46(0xc7)]===_0x2aef7b&&_0x232de2[_0x2d8e46(0x96)][_0x2d8e46(0xcb)]>0x0&&_0x232de2[_0x2d8e46(0x96)][0x0][_0x2d8e46(0xc9)][_0x2d8e46(0xa1)]()===_0x2608a3);_0x1df7fc[_0x2d8e46(0xcb)]&&(_0x33cc68[_0x2d8e46(0xa7)](),_0x4a1595(_0x1df7fc[0x0][_0x2d8e46(0x96)][0x0]));});_0x33cc68[_0x31464f(0xcd)](_0x2aef7b,{'childList':!0x0,'subtree':!0x0});}[_0x93159(0x9d)](_0x3375ce){const _0x5b8bd8=_0x93159;_0x3375ce[_0x5b8bd8(0x9b)](_0x5b8bd8(0x9f),_0x5c6eed=>{const _0x30dde1=_0x5b8bd8;this[_0x30dde1(0xc6)](_0x30dde1(0x9f),{'imageSrc':_0x5c6eed[_0x30dde1(0xc8)][_0x30dde1(0xb6)]});}),_0x3375ce[_0x5b8bd8(0x9b)](_0x5b8bd8(0xc5),()=>{const _0xe830b9=_0x5b8bd8;this[_0xe830b9(0xc6)](_0xe830b9(0xc5));});}[_0x93159(0xbe)](){const _0x19caef=_0x93159;this[_0x19caef(0xaf)]['on'](_0x19caef(0xbc),()=>{const _0x5cb0cf=_0x19caef;this[_0x5cb0cf(0xc6)](_0x5cb0cf(0xbc));});}}function _0x2f07(){const _0x4f9d7d=['_waitForImageEditorComponent','_errorView','div','element','_editingView','once','737DDrXOz','uploading','cdnUrl','render','ck-reset_all-excluded','6460cHxQii','filter','createCollection','retry','setTemplate','_addErrorViewListeners','_setView','18PMyvym','87kJQnEA','_items','clear','7SuQdpV','cancel','fire','target','detail','nodeName','1956IbGaSx','length','status','observe','uc-cloud-image-editor','addedNodes','addMany','4024485zunBwC','focus','204743lKnWBZ','addEventListener','_focusableView','_addUploadcareImageEditorListeners','11454152DtLhbS','apply','ready','toLowerCase','getFocusableElement','set','querySelector','change:status','233476vePbTJ','disconnect','_loadingView','21310wPsEZT','ck-uploadcare-form','26622624qnzspD','error','add'];_0x2f07=function(){return _0x4f9d7d;};return _0x2f07();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x483cc1=_0x42ba;(function(_0x58265d,_0x15d8b9){const _0x34467c=_0x42ba,_0x230ca6=_0x58265d();while(!![]){try{const _0x292e42=-parseInt(_0x34467c(0xc4))/0x1*(parseInt(_0x34467c(0xd2))/0x2)+-parseInt(_0x34467c(0xce))/0x3+parseInt(_0x34467c(0xd7))/0x4+-parseInt(_0x34467c(0xcd))/0x5*(-parseInt(_0x34467c(0xd3))/0x6)+-parseInt(_0x34467c(0xd4))/0x7*(-parseInt(_0x34467c(0xb7))/0x8)+parseInt(_0x34467c(0xc2))/0x9+parseInt(_0x34467c(0xd5))/0xa*(-parseInt(_0x34467c(0xbd))/0xb);if(_0x292e42===_0x15d8b9)break;else _0x230ca6['push'](_0x230ca6['shift']());}catch(_0x206e73){_0x230ca6['push'](_0x230ca6['shift']());}}}(_0x300d,0x61bd4));function _0x300d(){const _0x2f64c5=['40805kwLmMd','575346zRpSSx','unbind','requires','isEnabled','64950YYlKjZ','558wkiJFg','14EkWBmI','7547350HXCRar','imageEditController','1236488WSrpIW','11896aBEsAg','execute','model','document','imageBlock','getSelectedElement','11gRnvHb','imageInline','config','_isEditable','set','3943467WatGZc','isActive','5ISrMif','element','uploadcare.allowExternalImagesEditing','selection','refresh','plugins','bind','get','editor'];_0x300d=function(){return _0x2f64c5;};return _0x300d();}import{Command as _0x49945f}from'ckeditor5/src/core.js';import{Dialog as _0x6ea064}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x54836d}from'./ui/uploadcareimageeditcontroller.js';function _0x42ba(_0x45949e,_0x45c64a){const _0x300ddb=_0x300d();return _0x42ba=function(_0x42ba97,_0x35a094){_0x42ba97=_0x42ba97-0xb7;let _0x3caf21=_0x300ddb[_0x42ba97];return _0x3caf21;},_0x42ba(_0x45949e,_0x45c64a);}import{createEditabilityChecker as _0x1db201}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x49945f{[_0x483cc1(0xd6)];static get[_0x483cc1(0xd0)](){return[_0x6ea064];}[_0x483cc1(0xc0)];constructor(_0x167c79){const _0x5b9f84=_0x483cc1;super(_0x167c79),this[_0x5b9f84(0xd6)]=void 0x0,this[_0x5b9f84(0xc0)]=_0x1db201(_0x167c79[_0x5b9f84(0xbf)][_0x5b9f84(0xcb)](_0x5b9f84(0xc6))||[]),this[_0x5b9f84(0xc1)]({'isActive':!0x1});}[_0x483cc1(0xc8)](){const _0x49776c=_0x483cc1,_0x5c88fd=this[_0x49776c(0xcc)][_0x49776c(0xb9)][_0x49776c(0xba)][_0x49776c(0xc7)][_0x49776c(0xbc)]();this[_0x49776c(0xd1)]=this[_0x49776c(0xc0)](_0x5c88fd);}[_0x483cc1(0xb8)](){const _0x226117=_0x483cc1;this[_0x226117(0xd6)]&&(this[_0x226117(0xcf)](_0x226117(0xc3)),this[_0x226117(0xd6)]=void 0x0);const _0x4ebb99=this[_0x226117(0xcc)][_0x226117(0xb9)][_0x226117(0xba)][_0x226117(0xc7)][_0x226117(0xbc)]();_0x4ebb99&&(_0x4ebb99['is'](_0x226117(0xc5),_0x226117(0xbb))||_0x4ebb99['is'](_0x226117(0xc5),_0x226117(0xbe)))&&(this[_0x226117(0xd6)]=new _0x54836d(this[_0x226117(0xcc)],this[_0x226117(0xcc)][_0x226117(0xc9)][_0x226117(0xcb)](_0x6ea064),_0x4ebb99),this[_0x226117(0xca)](_0x226117(0xc3))['to'](this[_0x226117(0xd6)],_0x226117(0xc3)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33a0a9=_0x2c14;(function(_0x52332f,_0x109b04){const _0x410b42=_0x2c14,_0x4710e2=_0x52332f();while(!![]){try{const _0x4c42c8=parseInt(_0x410b42(0x107))/0x1*(-parseInt(_0x410b42(0x10e))/0x2)+-parseInt(_0x410b42(0x103))/0x3*(parseInt(_0x410b42(0xfb))/0x4)+parseInt(_0x410b42(0xfc))/0x5+parseInt(_0x410b42(0x106))/0x6*(-parseInt(_0x410b42(0x10c))/0x7)+-parseInt(_0x410b42(0xfd))/0x8*(parseInt(_0x410b42(0x102))/0x9)+parseInt(_0x410b42(0x10d))/0xa+parseInt(_0x410b42(0x101))/0xb;if(_0x4c42c8===_0x109b04)break;else _0x4710e2['push'](_0x4710e2['shift']());}catch(_0x2094b7){_0x4710e2['push'](_0x4710e2['shift']());}}}(_0x3715,0x77274));import{Plugin as _0x22bac9}from'ckeditor5/src/core.js';import{Notification as _0x43a44f}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1624d7}from'./uploadcareimageeditcommand.js';function _0x2c14(_0x590ccd,_0x48f2d5){const _0x37154b=_0x3715();return _0x2c14=function(_0x2c14e3,_0x4f4fb1){_0x2c14e3=_0x2c14e3-0xf9;let _0x54825b=_0x37154b[_0x2c14e3];return _0x54825b;},_0x2c14(_0x590ccd,_0x48f2d5);}import{UploadcareImageReplaceCommand as _0x490a45}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x558cad}from'../uploadcareediting.js';function _0x3715(){const _0x236dfb=['491405vedREt','4617256tPUNNZ','uploadcareImageEdit','commands','add','30013731OpOIwW','9hXdGqG','45qrFhmi','requires','init','360rGZLjD','59870ndYLFo','ImageUtils','isOfficialPlugin','ImageEditing','pluginName','43372IgBhyF','990120RHCPPc','32AytMqG','isPremiumPlugin','uploadcareImageReplace','UploadcareImageEditEditing','141580iFzqtg'];_0x3715=function(){return _0x236dfb;};return _0x3715();}export class UploadcareImageEditEditing extends _0x22bac9{static get[_0x33a0a9(0x10b)](){const _0x3176cf=_0x33a0a9;return _0x3176cf(0xfa);}static get[_0x33a0a9(0x104)](){const _0x50ffbb=_0x33a0a9;return[_0x558cad,_0x43a44f,_0x50ffbb(0x108),_0x50ffbb(0x10a)];}static get[_0x33a0a9(0x109)](){return!0x0;}static get[_0x33a0a9(0x10f)](){return!0x0;}[_0x33a0a9(0x105)](){const _0x4b8716=_0x33a0a9,{editor:_0x1f8eae}=this;_0x1f8eae[_0x4b8716(0xff)][_0x4b8716(0x100)](_0x4b8716(0xfe),new _0x1624d7(_0x1f8eae)),_0x1f8eae[_0x4b8716(0xff)][_0x4b8716(0x100)](_0x4b8716(0xf9),new _0x490a45(_0x1f8eae));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x6cfac5}from'ckeditor5/src/core.js';import{ButtonView as _0x207e0b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x553a97}from'ckeditor5/src/icons.js';import{createElement as _0x1f13a3}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 _0x6cfac5{['_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 _0x50e31d=this['editor'];_0x50e31d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x11484a=>{const _0x22518e=_0x50e31d['commands']['get']('uploadcareImageEdit'),_0x3b2720=new _0x207e0b(_0x11484a),t=_0x11484a['t'];return _0x3b2720['set']({'icon':_0x553a97,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b2720['bind']('isEnabled')['to'](_0x22518e),_0x3b2720['bind']('isOn')['to'](_0x22518e,'isActive'),this['listenTo'](_0x3b2720,'execute',()=>{_0x50e31d['execute']('uploadcareImageEdit'),_0x50e31d['editing']['view']['focus']();}),_0x3b2720;}),this['_initConfig']();}['_initConfig'](){const _0x206fb9=_0x1f13a3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x206fb9),this['listenTo'](this['editor'],'destroy',()=>{_0x206fb9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1a71(_0x465c77,_0x39812b){const _0x3f355f=_0x3f35();return _0x1a71=function(_0x1a7131,_0xdb92f1){_0x1a7131=_0x1a7131-0xd4;let _0x47c912=_0x3f355f[_0x1a7131];return _0x47c912;},_0x1a71(_0x465c77,_0x39812b);}const _0xbd8785=_0x1a71;function _0x3f35(){const _0x3febdb=['1719522AsFhDN','getSelectedElement','refresh','selection','setAttributes','10565SEFldI','removeAttribute','isEnabled','2317bajVnq','9075gXcGrj','document','5038410gygkAu','change','227756EyUcRz','element','78OmVdTT','2712GdSrBB','execute','imageInline','srcset','editor','479628spxaCi','model','sizes','imageBlock','220WaTBJi'];_0x3f35=function(){return _0x3febdb;};return _0x3f35();}(function(_0x30fc88,_0x52a23b){const _0x166261=_0x1a71,_0x566ab0=_0x30fc88();while(!![]){try{const _0x45f4ed=parseInt(_0x166261(0xe5))/0x1+parseInt(_0x166261(0xe7))/0x2*(parseInt(_0x166261(0xe1))/0x3)+-parseInt(_0x166261(0xd7))/0x4*(-parseInt(_0x166261(0xdd))/0x5)+parseInt(_0x166261(0xed))/0x6+parseInt(_0x166261(0xe0))/0x7*(-parseInt(_0x166261(0xe8))/0x8)+parseInt(_0x166261(0xd8))/0x9+-parseInt(_0x166261(0xe3))/0xa;if(_0x45f4ed===_0x52a23b)break;else _0x566ab0['push'](_0x566ab0['shift']());}catch(_0x4c9903){_0x566ab0['push'](_0x566ab0['shift']());}}}(_0x3f35,0x1c89c));import{Command as _0x2efae7}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2efae7{[_0xbd8785(0xda)](){const _0x19ef6a=_0xbd8785,_0xc3621d=this[_0x19ef6a(0xec)][_0x19ef6a(0xd4)][_0x19ef6a(0xe2)][_0x19ef6a(0xdb)][_0x19ef6a(0xd9)]();this[_0x19ef6a(0xdf)]=Boolean(_0xc3621d&&(_0xc3621d['is'](_0x19ef6a(0xe6),_0x19ef6a(0xd6))||_0xc3621d['is'](_0x19ef6a(0xe6),_0x19ef6a(0xea))));}[_0xbd8785(0xe9)](_0xe05629){const _0x341950=_0xbd8785,_0x4af020=this[_0x341950(0xec)][_0x341950(0xd4)][_0x341950(0xe2)][_0x341950(0xdb)][_0x341950(0xd9)]();this[_0x341950(0xec)][_0x341950(0xd4)][_0x341950(0xe4)](_0x1885ea=>{const _0x29a15f=_0x341950;_0x1885ea[_0x29a15f(0xdc)](_0xe05629,_0x4af020),_0x1885ea[_0x29a15f(0xde)](_0x29a15f(0xeb),_0x4af020),_0x1885ea[_0x29a15f(0xde)](_0x29a15f(0xd5),_0x4af020);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x410261=_0x5a5a;(function(_0x407757,_0x4ad393){var _0x4ddc36=_0x5a5a,_0x9f6f0e=_0x407757();while(!![]){try{var _0x1ad61a=parseInt(_0x4ddc36(0x11c))/0x1+-parseInt(_0x4ddc36(0x115))/0x2+parseInt(_0x4ddc36(0x113))/0x3*(-parseInt(_0x4ddc36(0x11a))/0x4)+parseInt(_0x4ddc36(0x111))/0x5*(-parseInt(_0x4ddc36(0x10f))/0x6)+-parseInt(_0x4ddc36(0x116))/0x7+-parseInt(_0x4ddc36(0x117))/0x8+-parseInt(_0x4ddc36(0x11d))/0x9*(-parseInt(_0x4ddc36(0x112))/0xa);if(_0x1ad61a===_0x4ad393)break;else _0x9f6f0e['push'](_0x9f6f0e['shift']());}catch(_0xc35533){_0x9f6f0e['push'](_0x9f6f0e['shift']());}}}(_0x8544,0xe426b));function _0x8544(){var _0x333134=['13405257OWbnlm','33864iyXwHO','UploadcareImageEdit','1315YeIGnZ','40UpXfgz','45870WvoXCf','isPremiumPlugin','2037228YcBMCG','11396770sCJElS','2916208kKVxOX','requires','isOfficialPlugin','452NxmByD','pluginName','1200007QCzZuZ'];_0x8544=function(){return _0x333134;};return _0x8544();}import{Plugin as _0x5d871b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x467f4c}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x5a5a(_0x392d77,_0x125261){var _0x85442f=_0x8544();return _0x5a5a=function(_0x5a5af7,_0x3ede14){_0x5a5af7=_0x5a5af7-0x10f;var _0x5a027d=_0x85442f[_0x5a5af7];return _0x5a027d;},_0x5a5a(_0x392d77,_0x125261);}import{UploadcareImageEditUI as _0x4142d5}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5d871b{static get[_0x410261(0x11b)](){var _0x40b072=_0x410261;return _0x40b072(0x110);}static get[_0x410261(0x118)](){return[_0x467f4c,_0x4142d5];}static get[_0x410261(0x119)](){return!0x0;}static get[_0x410261(0x114)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dcea8=_0x9cd5;(function(_0x5f1e41,_0x271b98){const _0x470ccc=_0x9cd5,_0x59c1ac=_0x5f1e41();while(!![]){try{const _0xc36ceb=parseInt(_0x470ccc(0x1a4))/0x1+-parseInt(_0x470ccc(0x1af))/0x2*(parseInt(_0x470ccc(0x1b8))/0x3)+-parseInt(_0x470ccc(0x1a8))/0x4+parseInt(_0x470ccc(0x1e1))/0x5*(-parseInt(_0x470ccc(0x1b9))/0x6)+-parseInt(_0x470ccc(0x1c1))/0x7+parseInt(_0x470ccc(0x19a))/0x8*(-parseInt(_0x470ccc(0x1a2))/0x9)+parseInt(_0x470ccc(0x1c2))/0xa;if(_0xc36ceb===_0x271b98)break;else _0x59c1ac['push'](_0x59c1ac['shift']());}catch(_0x48ad19){_0x59c1ac['push'](_0x59c1ac['shift']());}}}(_0x3449,0x9c61d));import{Plugin as _0x386a90}from'ckeditor5/src/core.js';import{IconDropbox as _0x58bb16,IconFacebook as _0x2eb2f8,IconGoogleDrive as _0x2cd82a,IconGooglePhotos as _0x5acbd5,IconUploadcareImageUpload as _0x4e929a,IconUploadcareLink as _0x57d734,IconOneDrive as _0x564018}from'ckeditor5/src/icons.js';function _0x9cd5(_0x211d58,_0x22dddd){const _0x34495f=_0x3449();return _0x9cd5=function(_0x9cd59c,_0x44b72c){_0x9cd59c=_0x9cd59c-0x197;let _0x1896a9=_0x34495f[_0x9cd59c];return _0x1896a9;},_0x9cd5(_0x211d58,_0x22dddd);}import{ButtonView as _0x4eca97,MenuBarMenuListItemButtonView as _0x55f544}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1b319f}from'./uploadcareconfig.js';import{getTranslation as _0x3273a0}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';function _0x3449(){const _0x338cb2=['isEnabled','map','registerIntegration','uploadcare.uploader.sourceList','_createToolbarButton','shortText','get','1305SodIIp','evaluationLimit','140234KEcjyT','upload','uploadcareLicenseKeyNotAllowed','_normalizeConfigSourceList','3830916JfhAxF','url','Facebook','_showLicenseError','uploadcareLicenseKeyUsageLimit','label','plugins','2aVmvsU','isPremiumPlugin','uploadcareLicenseKeyInvalid','editor','_createDropdownButtons','bind','init','uploadcareLicenseKeyValid','OneDrive','1191315bZuJpf','4896FeGvTX','Replace','icon','Uploadcare','assetManager','isImageSelected','Dropbox','Insert','3365621jHiScK','33961270nJnszL','GDrive','type','usageLimit','text','_createButton','forEach','config','_licenseKeyCheckInterval','Local','commands','UploadcareUI','domainLimit','withText','locale','execute','isOfficialPlugin','destroy','licenseKey','uploadcareLicenseKeyExpired','tooltip','has','push','_getIntegrationKey','GPhotos','_createMenuBarButtons','expired','URL','pluginName','uploadcare','entries','3590gZfvha','featureNotAllowed','invalid','afterInit','uploadcareLicenseKeyEvaluationLimit','reduce','uploadcareLicenseKeyDomainLimit','ImageInsertUI','26168fENyxz'];_0x3449=function(){return _0x338cb2;};return _0x3449();}export class UploadcareUI extends _0x386a90{[_0x4dcea8(0x1d4)];[_0x4dcea8(0x1ca)];static get[_0x4dcea8(0x1de)](){const _0x5394f2=_0x4dcea8;return _0x5394f2(0x1cd);}static get[_0x4dcea8(0x1d2)](){return!0x0;}static get[_0x4dcea8(0x1b0)](){return!0x0;}[_0x4dcea8(0x1b5)](){const _0x50d7c2=_0x4dcea8;this[_0x50d7c2(0x1d4)]=this[_0x50d7c2(0x1b2)][_0x50d7c2(0x1c9)][_0x50d7c2(0x1a1)](_0x50d7c2(0x1d4));const _0x23537e=this[_0x50d7c2(0x1b2)];this[_0x50d7c2(0x1ca)]=setInterval(()=>{const _0x54ed4c=_0x50d7c2;let _0x344a9a;for(const _0x31ff90 in _0x23537e){const _0x3ebd41=_0x31ff90,_0x5242b1=_0x23537e[_0x3ebd41];if(_0x54ed4c(0x1b6)==_0x5242b1||_0x54ed4c(0x1b1)==_0x5242b1||_0x54ed4c(0x1d5)==_0x5242b1||_0x54ed4c(0x198)==_0x5242b1||_0x54ed4c(0x1a6)==_0x5242b1||_0x54ed4c(0x1e5)==_0x5242b1||_0x54ed4c(0x1ac)==_0x5242b1){delete _0x23537e[_0x3ebd41],_0x344a9a=_0x5242b1,clearInterval(this[_0x54ed4c(0x1ca)]),this[_0x54ed4c(0x1ca)]=void 0x0;break;}}_0x54ed4c(0x1b1)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1e3)),_0x54ed4c(0x1d5)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1dc)),_0x54ed4c(0x198)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1ce)),_0x54ed4c(0x1a6)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1e2),_0x54ed4c(0x1bc)),_0x54ed4c(0x1e5)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1a3)),_0x54ed4c(0x1ac)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1c5));},0x3e8);}[_0x4dcea8(0x1e4)](){const _0x441fa6=_0x4dcea8,{editor:_0x2d30e9}=this,_0x870c83=_0x2d30e9[_0x441fa6(0x1cc)][_0x441fa6(0x1a1)](_0x441fa6(0x1df));if(!_0x870c83)return;const _0x3b0941=this[_0x441fa6(0x1a7)](_0x2d30e9[_0x441fa6(0x1c9)][_0x441fa6(0x1a1)](_0x441fa6(0x19e)))[_0x441fa6(0x197)]((_0x2a82c5,_0x16c99b)=>{const _0x413695=_0x441fa6,_0x256df6=this[_0x413695(0x1d9)](_0x16c99b[_0x413695(0x1c4)]);return _0x2a82c5[_0x256df6]||(_0x2a82c5[_0x256df6]=[]),_0x2a82c5[_0x256df6][_0x413695(0x1d8)](_0x16c99b),_0x2a82c5;},{});_0x2d30e9[_0x441fa6(0x1ae)][_0x441fa6(0x1d7)](_0x441fa6(0x199))&&_0x2d30e9[_0x441fa6(0x1cc)][_0x441fa6(0x1a1)](_0x441fa6(0x1df))&&Object[_0x441fa6(0x1e0)](_0x3b0941)[_0x441fa6(0x1c8)](([_0x4569ff,_0x3703ec])=>{const _0x5c0cf6=_0x441fa6;_0x2d30e9[_0x5c0cf6(0x1ae)][_0x5c0cf6(0x1a1)](_0x5c0cf6(0x199))[_0x5c0cf6(0x19d)]({'name':_0x4569ff,'observable':()=>_0x870c83,'buttonViewCreator':()=>this[_0x5c0cf6(0x19f)](_0x3703ec),'formViewCreator':()=>this[_0x5c0cf6(0x1b3)](_0x3703ec),'menuBarButtonViewCreator':()=>this[_0x5c0cf6(0x1db)](_0x3703ec),'override':_0x5c0cf6(0x1bd)!==_0x4569ff});});}[_0x4dcea8(0x1d3)](){const _0x16d62b=_0x4dcea8;super[_0x16d62b(0x1d3)](),this[_0x16d62b(0x1ca)]&&clearInterval(this[_0x16d62b(0x1ca)]);}[_0x4dcea8(0x1a7)](_0x166498){const _0xcfec5b=_0x4dcea8,{locale:_0x9acae3}=this[_0xcfec5b(0x1b2)];return _0x166498[_0xcfec5b(0x19c)](_0x3579d8=>{const _0x230d90=_0xcfec5b,_0x1bbf34=_0x3273a0(_0x9acae3,_0x3579d8,_0x230d90(0x1c0));switch(_0x3579d8){case _0x1b319f[_0x230d90(0x1cb)]:return{'icon':_0x4e929a,'type':_0x1b319f[_0x230d90(0x1cb)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1dd)]:return{'icon':_0x57d734,'type':_0x1b319f[_0x230d90(0x1dd)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1bf)]:return{'icon':_0x58bb16,'type':_0x1b319f[_0x230d90(0x1bf)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1aa)]:return{'icon':_0x2eb2f8,'type':_0x1b319f[_0x230d90(0x1aa)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1c3)]:return{'icon':_0x2cd82a,'type':_0x1b319f[_0x230d90(0x1c3)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1da)]:return{'icon':_0x5acbd5,'type':_0x1b319f[_0x230d90(0x1da)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1b7)]:return{'icon':_0x564018,'type':_0x1b319f[_0x230d90(0x1b7)],..._0x1bbf34};}});}[_0x4dcea8(0x1d9)](_0x5efa12){const _0x1fc7df=_0x4dcea8;switch(_0x5efa12){case _0x1b319f[_0x1fc7df(0x1cb)]:return _0x1fc7df(0x1a5);case _0x1b319f[_0x1fc7df(0x1dd)]:return _0x1fc7df(0x1a9);default:return _0x1fc7df(0x1bd);}}[_0x4dcea8(0x1c7)](_0x507214,_0x6071a9){const _0x166b0e=_0x4dcea8,_0x26eacb=this[_0x166b0e(0x1b2)],_0x32374d=new _0x507214(_0x26eacb[_0x166b0e(0x1d0)]),_0x5b307e=_0x26eacb[_0x166b0e(0x1cc)][_0x166b0e(0x1a1)](_0x166b0e(0x1df));return _0x32374d[_0x166b0e(0x1b4)](_0x166b0e(0x19b))['to'](_0x5b307e),_0x32374d['on'](_0x166b0e(0x1d1),()=>{const _0x2497cd=_0x166b0e;_0x5b307e[_0x2497cd(0x1d1)](_0x6071a9);}),_0x32374d;}[_0x4dcea8(0x19f)](_0xb6a24c){const _0x522090=_0x4dcea8,{locale:_0x2e4f26}=this[_0x522090(0x1b2)],_0x232481=this[_0x522090(0x1b2)][_0x522090(0x1ae)][_0x522090(0x1a1)](_0x522090(0x199)),_0x442e5a=_0xb6a24c[0x0],_0x340742=this[_0x522090(0x1c7)](_0x4eca97,_0x442e5a[_0x522090(0x1c4)]);return _0x340742[_0x522090(0x1bb)]=_0x442e5a[_0x522090(0x1bb)],_0x340742[_0x522090(0x1b4)](_0x522090(0x1ad))['to'](_0x232481,_0x522090(0x1be),_0x59a4b1=>_0x3273a0(_0x2e4f26,_0x442e5a[_0x522090(0x1c4)],_0x59a4b1?_0x522090(0x1ba):_0x522090(0x1c0))[_0x522090(0x1c6)]),_0x340742[_0x522090(0x1d6)]=!0x0,_0x340742;}[_0x4dcea8(0x1b3)](_0x389e36){const _0x513775=_0x4dcea8,{locale:_0x993181}=this[_0x513775(0x1b2)],_0x4d630a=this[_0x513775(0x1b2)][_0x513775(0x1ae)][_0x513775(0x1a1)](_0x513775(0x199));return _0x389e36[_0x513775(0x19c)](_0x4637bc=>{const _0xeebfd5=_0x513775,_0x893033=this[_0xeebfd5(0x1c7)](_0x4eca97,_0x4637bc[_0xeebfd5(0x1c4)]);return _0x893033[_0xeebfd5(0x1cf)]=!0x0,_0x893033[_0xeebfd5(0x1bb)]=_0x4637bc[_0xeebfd5(0x1bb)],_0x893033[_0xeebfd5(0x1b4)](_0xeebfd5(0x1ad))['to'](_0x4d630a,_0xeebfd5(0x1be),_0x12cbe8=>_0x3273a0(_0x993181,_0x4637bc[_0xeebfd5(0x1c4)],_0x12cbe8?_0xeebfd5(0x1ba):_0xeebfd5(0x1c0))[_0xeebfd5(0x1c6)]),_0x893033;});}[_0x4dcea8(0x1db)](_0x15544c){const _0x313430=_0x4dcea8;return _0x15544c[_0x313430(0x19c)](_0x294437=>{const _0x273dd7=_0x313430,_0x537abe=this[_0x273dd7(0x1c7)](_0x55f544,_0x294437[_0x273dd7(0x1c4)]);return _0x537abe[_0x273dd7(0x1bb)]=_0x294437[_0x273dd7(0x1bb)],_0x537abe[_0x273dd7(0x1ad)]=_0x294437[_0x273dd7(0x1a0)],_0x537abe;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4705a7}from'ckeditor5/src/core.js';import{FileRepository as _0x50f94f}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2bb6ed}from'./uploadcareediting.js';import{UploadUtils as _0x493209}from'./utils/uploadutils.js';import{getImageUrls as _0x51d76a}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4705a7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x50f94f,_0x2bb6ed];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x200223=this['editor'];if(!!!_0x200223['config']['get']('uploadcare'))return;_0x200223['plugins']['get'](_0x50f94f)['createUploadAdapter']=_0x5d621a=>new k(_0x5d621a,_0x200223),_0x200223['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x46dc08,{imageElement:_0x281bb1,data:_0x381ff4})=>{_0x200223['model']['change'](_0x5eaf39=>{_0x5eaf39['setAttribute']('uploadcareImageId',_0x381ff4['uploadcareImageId'],_0x281bb1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x50234b,_0x30254c){this['loader']=_0x50234b,this['editor']=_0x30254c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3aa5c7=await this['loader']['file'];return _0x493209['upload']({'file':_0x3aa5c7,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x50f66b=>{_0x50f66b&&_0x50f66b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50f66b['value']);}})['then'](async _0x3d2101=>{const {imageFallbackUrl:_0x29d11b,imageSources:_0x54753b}=_0x51d76a(_0x3d2101['cdnUrl'],_0x3d2101['imageInfo']['width']);return{'uploadcareImageId':_0x3d2101['uuid'],'default':_0x29d11b,'sources':_0x54753b};})['catch'](()=>{const _0x5da110=t('Cannot\x20upload\x20file:')+('\x20'+_0x3aa5c7['name']+'.');return Promise['reject'](_0x5da110);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1b8874}from'../uploadcareconfig.js';export function getTranslation(_0xa076cd,_0x277542,_0x8d0325){const t=_0xa076cd['t'],_0x4bed4f=_0xa076cd['t'];switch(_0x277542){case _0x1b8874['Local']:return{'text':_0x4bed4f('Insert'===_0x8d0325?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4bed4f('From\x20computer')};case _0x1b8874['URL']:return{'text':'Insert'===_0x8d0325?_0x4bed4f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4bed4f('Via\x20URL')};case _0x1b8874['Dropbox']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1b8874['Facebook']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1b8874['GDrive']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1b8874['GPhotos']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1b8874['OneDrive']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x277542;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2fc9d1=_0x5403;function _0x1b32(){var _0x9c3522=['12HUsWVw','bindTemplate','1290732PeDmVq','69463refFmX','4543946khUtdR','fire','3385440MSZmdN','focusCycler','965142OfikVv','1331216xafIoE','56WOePRd','238776ZkYikH','forwardCycle','getFocusableElement','div','createCollection','10DLVVZV','true','focusTracker','15inPxIu'];_0x1b32=function(){return _0x9c3522;};return _0x1b32();}(function(_0x49d394,_0x420315){var _0x4fbdfb=_0x5403,_0x5c3c43=_0x49d394();while(!![]){try{var _0x5d8198=parseInt(_0x4fbdfb(0x15d))/0x1*(-parseInt(_0x4fbdfb(0x15a))/0x2)+-parseInt(_0x4fbdfb(0x15c))/0x3+parseInt(_0x4fbdfb(0x14f))/0x4+-parseInt(_0x4fbdfb(0x159))/0x5*(-parseInt(_0x4fbdfb(0x162))/0x6)+parseInt(_0x4fbdfb(0x150))/0x7*(parseInt(_0x4fbdfb(0x151))/0x8)+-parseInt(_0x4fbdfb(0x160))/0x9+parseInt(_0x4fbdfb(0x156))/0xa*(parseInt(_0x4fbdfb(0x15e))/0xb);if(_0x5d8198===_0x420315)break;else _0x5c3c43['push'](_0x5c3c43['shift']());}catch(_0x4e7318){_0x5c3c43['push'](_0x5c3c43['shift']());}}}(_0x1b32,0x3b957));import{FocusTracker as _0xcd8502}from'ckeditor5/src/utils.js';import{View as _0x45f13a,FocusCycler as _0x73d02a}from'ckeditor5/src/ui.js';function _0x5403(_0x1b78b4,_0x40ef6e){var _0x1b327e=_0x1b32();return _0x5403=function(_0x540349,_0x4a722b){_0x540349=_0x540349-0x14f;var _0x3eff53=_0x1b327e[_0x540349];return _0x3eff53;},_0x5403(_0x1b78b4,_0x40ef6e);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x45f13a{[_0x2fc9d1(0x158)];[_0x2fc9d1(0x161)];constructor(_0x74084a){var _0x46c9f9=_0x2fc9d1;super(_0x74084a),this[_0x46c9f9(0x158)]=new _0xcd8502(),this[_0x46c9f9(0x161)]=new _0x73d02a({'focusables':this[_0x46c9f9(0x155)](),'focusTracker':this[_0x46c9f9(0x158)]});}[_0x2fc9d1(0x153)](){var _0x122b44=_0x2fc9d1;return{'tag':_0x122b44(0x154),'attributes':{'aria-hidden':_0x122b44(0x157),'tabindex':'0'},'on':{'focus':this[_0x122b44(0x15b)]['to'](()=>{var _0x4137f4=_0x122b44;this[_0x4137f4(0x161)][_0x4137f4(0x15f)](_0x4137f4(0x152));})}};}}
|