@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250702.0 → 0.0.0-nightly-20250704.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 _0x11a2f3=_0x3dda;function _0x7a80(){const _0x16ffbf=['_configElement','for','view','9847728XkPmxn','elementToAttribute','uploadcare.uploader','href','afterInit','getAttribute','isRegistered','upcast','removeAttribute','getSelectedElement','3184735IbFUuB','once','downcast','model','extend','_ctxElement','uploadcareImageReplace','replaceImageSource','17388WrKzpu','schema','uploadcareImageId','ctxElement','init','map','isPremiumPlugin','render','conversion','remove','pluginName','6ITvxYF','ucContextId','7AmHTHI','_initCtx','commands','locale','imageBlock','appendChild','30694213XoRmcS','30pfBQFg','#uc-icon-arrow-down','_initConversion','attributeToAttribute','contentLanguage','input[uploadcare-file-input]','fromCharCode','editing','imageInline','UploadcareEditing','querySelector','join','document','664JUfBQn','6828nWKYNB','configElement','_initSchema','uc-config','closeMax','uploadcare.pubkey','cleanupImage','uc-upload-ctx-provider','data-uc-image-id','_initImageProcessingIndicator','isOfficialPlugin','true','editor','config','PictureEditing','listenTo','requires','get','insertImage','474392aRtZTE','uploadcare','destroy','\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','add','body','selection','_initConfig','1114888bPiOoD','iconHrefResolver','execute','uploader-'];_0x7a80=function(){return _0x16ffbf;};return _0x7a80();}(function(_0x3b2069,_0x198608){const _0xf4a2ab=_0x3dda,_0x252975=_0x3b2069();while(!![]){try{const _0x204073=-parseInt(_0xf4a2ab(0xb1))/0x1+parseInt(_0xf4a2ab(0xb9))/0x2+parseInt(_0xf4a2ab(0x9e))/0x3*(-parseInt(_0xf4a2ab(0x9d))/0x4)+parseInt(_0xf4a2ab(0xca))/0x5*(-parseInt(_0xf4a2ab(0x87))/0x6)+-parseInt(_0xf4a2ab(0x89))/0x7*(parseInt(_0xf4a2ab(0xc0))/0x8)+parseInt(_0xf4a2ab(0x7c))/0x9*(parseInt(_0xf4a2ab(0x90))/0xa)+parseInt(_0xf4a2ab(0x8f))/0xb;if(_0x204073===_0x198608)break;else _0x252975['push'](_0x252975['shift']());}catch(_0x540f0a){_0x252975['push'](_0x252975['shift']());}}}(_0x7a80,0x9aa9e));import{Plugin as _0x1c77d0}from'ckeditor5/src/core.js';import{Dialog as _0x4e1572}from'ckeditor5/src/ui.js';function _0x3dda(_0x27ee1d,_0x36343f){const _0x7a808a=_0x7a80();return _0x3dda=function(_0x3ddad0,_0x23cf71){_0x3ddad0=_0x3ddad0-0x7b;let _0x4a7684=_0x7a808a[_0x3ddad0];return _0x4a7684;},_0x3dda(_0x27ee1d,_0x36343f);}import{createElement as _0x5da183,global as _0x5a0269,uid as _0xa323ae}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x41ac28}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x251985}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2d1d5b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1c77d0{[_0x11a2f3(0xbd)]=null;[_0x11a2f3(0xcf)]=null;static get[_0x11a2f3(0x86)](){const _0x7b5449=_0x11a2f3;return _0x7b5449(0x99);}static get[_0x11a2f3(0xae)](){const _0x5b076a=_0x11a2f3;return[_0x5b076a(0xac),_0x251985,_0x4e1572];}static get[_0x11a2f3(0xa8)](){return!0x0;}static get[_0x11a2f3(0x82)](){return!0x0;}[_0x11a2f3(0x88)];get[_0x11a2f3(0x9f)](){const _0x5b5a31=_0x11a2f3;return this[_0x5b5a31(0xbd)];}get[_0x11a2f3(0x7f)](){const _0x4898be=_0x11a2f3;return this[_0x4898be(0xcf)];}constructor(_0x1b2859){const _0x1e0caa=_0x11a2f3;super(_0x1b2859),this[_0x1e0caa(0x88)]=_0xa323ae();}[_0x11a2f3(0x80)](){const _0x1d8c4f=_0x11a2f3,_0x58c0b5=this[_0x1d8c4f(0xaa)];_0x58c0b5[_0x1d8c4f(0x8b)][_0x1d8c4f(0xb5)](_0x1d8c4f(0xb2),new _0x41ac28(_0x58c0b5));}[_0x11a2f3(0xc4)](){const _0x4b9bfe=_0x11a2f3;this[_0x4b9bfe(0xa0)](),this[_0x4b9bfe(0x92)](),this[_0x4b9bfe(0xb8)](),this[_0x4b9bfe(0x8a)](),this[_0x4b9bfe(0xa7)](),this[_0x4b9bfe(0xad)](this[_0x4b9bfe(0xaa)],_0x4b9bfe(0xb3),()=>{const _0x46c432=_0x4b9bfe;this[_0x46c432(0xbd)]&&(this[_0x46c432(0xbd)][_0x46c432(0x85)](),this[_0x46c432(0xbd)]=null),this[_0x46c432(0xcf)]&&(this[_0x46c432(0xcf)][_0x46c432(0x85)](),this[_0x46c432(0xcf)]=null);const _0x25cb52=_0x5a0269[_0x46c432(0x9c)][_0x46c432(0x9a)](_0x46c432(0x95));_0x25cb52&&_0x25cb52[_0x46c432(0x85)]();}),async function(_0x591a99){const _0x1d6ff6=_0x2a5e4d([0x32,0x47,0x46,0x79,0x5a,0x41,0x70,0x37,0x61,0x45,0x69,0x59,0x6e,0x6a,0x44,0x4c,0x34,0x62,0x6f,0x7a,0x33,0x65,0x39,0x43,0x42,0x53,0x71,0x38,0x57,0x77,0x48,0x75,0x56,0x73,0x4f,0x78,0x31,0x6d,0x36,0x64,0x4a,0x72,0x51,0x4d,0x74,0x63,0x6c,0x68,0x54,0x4e,0x6b,0x67,0x52,0x55,0x30,0x35,0x4b,0x50,0x49,0x58,0x66,0x76]),_0xed59eb=0x201b7a59,_0x44e57b=0x201c1631^_0xed59eb,_0x34d908=window[_0x2a5e4d([0x44,0x61,0x74,0x65])][_0x2a5e4d([0x6e,0x6f,0x77])](),_0x2fa040=_0x591a99[_0x2a5e4d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20f6a5=new window[(_0x2a5e4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x249026=>{_0x2fa040[_0x2a5e4d([0x6f,0x6e,0x63,0x65])](_0x2a5e4d([0x72,0x65,0x61,0x64,0x79]),_0x249026);}),_0x5c2397={[_0x2a5e4d([0x6b,0x74,0x79])]:_0x2a5e4d([0x45,0x43]),[_0x2a5e4d([0x75,0x73,0x65])]:_0x2a5e4d([0x73,0x69,0x67]),[_0x2a5e4d([0x63,0x72,0x76])]:_0x2a5e4d([0x50,0x2d,0x32,0x35,0x36]),[_0x2a5e4d([0x78])]:_0x2a5e4d([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]),[_0x2a5e4d([0x79])]:_0x2a5e4d([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]),[_0x2a5e4d([0x61,0x6c,0x67])]:_0x2a5e4d([0x45,0x53,0x32,0x35,0x36])},_0x4a0792=_0x2fa040[_0x2a5e4d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a5e4d([0x67,0x65,0x74])](_0x2a5e4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5359c3(){let _0xfe151d,_0x18fe78=null,_0x1fddbc=null;try{if(_0x4a0792==_0x2a5e4d([0x47,0x50,0x4c]))return _0x2a5e4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfe151d=_0x3b3709(),!_0xfe151d)return _0x2a5e4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfe151d[_0x2a5e4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fddbc=_0x1555fe(_0xfe151d[_0x2a5e4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfe151d[_0x2a5e4d([0x6a,0x74,0x69])])),await _0x258f50()?_0x3f2a3a()?_0x18f5be()?_0x2a5e4d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa0b5e0()?(_0xfe151d[_0x2a5e4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a5e4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18fe78=_0x5e4464(_0x2a5e4d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfe151d[_0x2a5e4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a5e4d([0x74,0x72,0x69,0x61,0x6c])&&(_0x18fe78=_0x5e4464(_0x2a5e4d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x187b14()):_0x2a5e4d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a5e4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a5e4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2a5e4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18f5be(){const _0xce9f2b=[_0x2a5e4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a5e4d([0x74,0x72,0x69,0x61,0x6c])][_0x2a5e4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfe151d[_0x2a5e4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34d908/0x3e8:0xe10*_0x44e57b;return _0xfe151d[_0x2a5e4d([0x65,0x78,0x70])]<_0xce9f2b;}function _0x3f2a3a(){const _0x148b4a=_0xfe151d[_0x2a5e4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x148b4a&&(!!_0x148b4a[_0x2a5e4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a5e4d([0x2a]))||!!_0x148b4a[_0x2a5e4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a5e4d([0x55,0x50,0x4c,0x43])));}function _0xa0b5e0(){const _0x4fff00=_0x3dda,_0x50f155=_0xfe151d[_0x2a5e4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50f155||0x0==_0x50f155[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26f974}=new URL(window[_0x2a5e4d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4fff00(0xc3)]);if(_0x50f155[_0x2a5e4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26f974))return!0x0;const _0x5edcf3=_0x26f974[_0x2a5e4d([0x73,0x70,0x6c,0x69,0x74])](_0x2a5e4d([0x2e]));return _0x50f155[_0x2a5e4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48e764=>_0x48e764[_0x2a5e4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a5e4d([0x2a])))[_0x2a5e4d([0x6d,0x61,0x70])](_0x47fd41=>_0x47fd41[_0x2a5e4d([0x73,0x70,0x6c,0x69,0x74])](_0x2a5e4d([0x2e])))[_0x2a5e4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24d73f=>_0x24d73f[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5edcf3[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a5e4d([0x6d,0x61,0x70])](_0x293c32=>Array(_0x5edcf3[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x293c32[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a5e4d([0x66,0x69,0x6c,0x6c])](_0x293c32[0x0]===_0x2a5e4d([0x2a])?_0x2a5e4d([0x2a]):'')[_0x2a5e4d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x293c32))[_0x2a5e4d([0x73,0x6f,0x6d,0x65])](_0x4e3fe4=>_0x5edcf3[_0x2a5e4d([0x65,0x76,0x65,0x72,0x79])]((_0x2e5da3,_0x292353)=>_0x4e3fe4[_0x292353]===_0x2e5da3||_0x4e3fe4[_0x292353]===_0x2a5e4d([0x2a])));}function _0x187b14(){return _0x18fe78&&_0x1fddbc?new window[(_0x2a5e4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5464bc,_0x5c48e6)=>{_0x18fe78[_0x2a5e4d([0x74,0x68,0x65,0x6e])](_0x5464bc,_0x5c48e6),_0x1fddbc[_0x2a5e4d([0x74,0x68,0x65,0x6e])](_0x21b715=>{_0x21b715!=_0x2a5e4d([0x56,0x61,0x6c,0x69,0x64])&&_0x5464bc(_0x21b715);},_0x5c48e6);}):_0x18fe78||_0x1fddbc||_0x2a5e4d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1555fe(_0x3f8a6e,_0x36b095){return new window[(_0x2a5e4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e4181=>{if(_0x28e421())return _0x2e4181(_0x2a5e4d([0x56,0x61,0x6c,0x69,0x64]));_0x5a7859(),_0x2fa040[_0x2a5e4d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a5e4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x323817=!0x1;const _0x82742=_0xa323ae();function _0x4d6f59(_0x57b81a){return!!_0x57b81a&&(typeof _0x57b81a===_0x2a5e4d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57b81a===_0x2a5e4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57b81a[_0x2a5e4d([0x74,0x68,0x65,0x6e])]===_0x2a5e4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57b81a[_0x2a5e4d([0x63,0x61,0x74,0x63,0x68])]===_0x2a5e4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x247469(_0xed17f8){_0x24c302(_0xed17f8)[_0x2a5e4d([0x74,0x68,0x65,0x6e])](_0x47fb05=>{if(!_0x47fb05||_0x47fb05[_0x2a5e4d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a5e4d([0x6f,0x6b]))return _0x2a5e4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c0c79(_0x197c0b(_0x82742+_0x36b095))!=_0x47fb05[_0x2a5e4d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a5e4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a5e4d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a5e4d([0x74,0x68,0x65,0x6e])](_0x7934cf=>(_0x88be2f(),_0x7934cf),()=>{const _0x55c39e=_0x4a14ab();return null==_0x55c39e?(_0x88be2f(),_0x2a5e4d([0x56,0x61,0x6c,0x69,0x64])):_0x2a5e4d(_0x34d908-_0x55c39e>(0x417fe59^_0xed59eb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a5e4d([0x74,0x68,0x65,0x6e])](_0x2e4181)[_0x2a5e4d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e4181(_0x2a5e4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cd6ab=0x202d94d9^_0xed59eb;function _0x88be2f(){const _0x3ae6cd=_0x2a5e4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c0c79(_0x197c0b(_0x3f8a6e)),_0x326b1f=_0x3b10ca(_0x5c0c79(window[_0x2a5e4d([0x4d,0x61,0x74,0x68])][_0x2a5e4d([0x63,0x65,0x69,0x6c])](_0x34d908/_0x1cd6ab)));window[_0x2a5e4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a5e4d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ae6cd,_0x326b1f);}function _0x4a14ab(){const _0x21777d=_0x2a5e4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c0c79(_0x197c0b(_0x3f8a6e)),_0x48a11b=window[_0x2a5e4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a5e4d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21777d);return _0x48a11b?window[_0x2a5e4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b10ca(_0x48a11b),0x10)*_0x1cd6ab:null;}function _0x24c302(_0x1c8b39){return new window[(_0x2a5e4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406b4f,_0x3c6355)=>{_0x1c8b39[_0x2a5e4d([0x74,0x68,0x65,0x6e])](_0x406b4f,_0x3c6355),window[_0x2a5e4d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c6355,0x201aae99^_0xed59eb);});}}_0x2fa040[_0x2a5e4d([0x6f,0x6e])](_0x2a5e4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49abbe,_0xd4e710)=>{if(_0xd4e710[0x0]!=_0x3f8a6e)return _0x2e4181(_0x2a5e4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd4e710[0x1]={..._0xd4e710[0x1],[_0x2a5e4d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x82742};},{[_0x2a5e4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a5e4d([0x68,0x69,0x67,0x68])}),_0x2fa040[_0x2a5e4d([0x6f,0x6e])](_0x2a5e4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x210530=>{_0x4d6f59(_0x210530[_0x2a5e4d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x323817=!0x0,_0x247469(_0x210530[_0x2a5e4d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a5e4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a5e4d([0x6c,0x6f,0x77])}),_0x20f6a5[_0x2a5e4d([0x74,0x68,0x65,0x6e])](()=>{_0x323817||_0x2e4181(_0x2a5e4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28e421(){return _0x2fa040[_0x2a5e4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a5e4d([0x76,0x69,0x65,0x77])][_0x2a5e4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a5e4d([0x61,0x75,0x74,0x6f]);}function _0x5a7859(){_0x2fa040[_0x2a5e4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a5e4d([0x76,0x69,0x65,0x77])][_0x2a5e4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a5e4d([0x61,0x75,0x74,0x6f]);}}function _0x5e4464(_0x5caad8){const _0x59a026=[new window[(_0x2a5e4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42166d=>setTimeout(_0x42166d,0x20124495^_0xed59eb)),_0x20f6a5[_0x2a5e4d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a5e4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b280b=>{let _0x22bb2a=0x0;_0x2fa040[_0x2a5e4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a5e4d([0x6f,0x6e])](_0x2a5e4d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x188d4f,_0x1919d8)=>{_0x1919d8[0x0][_0x2a5e4d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22bb2a++,_0x22bb2a==(0x201b7ba1^_0xed59eb)&&(_0x1b280b(),_0x188d4f[_0x2a5e4d([0x6f,0x66,0x66])]());});}))];return window[_0x2a5e4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a5e4d([0x72,0x61,0x63,0x65])](_0x59a026)[_0x2a5e4d([0x74,0x68,0x65,0x6e])](()=>_0x5caad8);}async function _0x4869bf(){await _0x20f6a5,_0x2fa040[_0x2a5e4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a5e4d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42fda8,_0x2fa040[_0x2a5e4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a5e4d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42fda8,_0x2fa040[_0x2a5e4d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a5e4d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf119e2(_0x48f6bb){const _0x3c9a7c=_0x253d83();_0x2fa040[_0x3c9a7c]=_0x2a5e4d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48f6bb,_0x48f6bb!=_0x2a5e4d([0x56,0x61,0x6c,0x69,0x64])&&_0x4869bf();}function _0x253d83(){const _0x1ef94f=window[_0x2a5e4d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a5e4d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a5e4d([0x6e,0x6f,0x77])]())[_0x2a5e4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a5e4d([0x2e]),'');let _0x2e7043=_0x2a5e4d([0x47]);for(let _0x104ed4=0x0;_0x104ed4<_0x1ef94f[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104ed4+=0x2){let _0x24d3db=window[_0x2a5e4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ef94f[_0x2a5e4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x104ed4,_0x104ed4+0x2));_0x24d3db>=_0x1d6ff6[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24d3db-=_0x1d6ff6[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e7043+=_0x1d6ff6[_0x24d3db];}return _0x2e7043;}function _0x3b3709(){const _0x3e3a17=_0x4a0792[_0x2a5e4d([0x73,0x70,0x6c,0x69,0x74])](_0x2a5e4d([0x2e]));if(0x3!=_0x3e3a17[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48b3d8(_0x3e3a17[0x1]);function _0x48b3d8(_0x307c8a){const _0x2e25d7=_0xdaf6d1(_0x307c8a);return _0x2e25d7&&_0x519843()?_0x2e25d7:null;function _0x519843(){const _0x3fbb7d=_0x2e25d7[_0x2a5e4d([0x6a,0x74,0x69])],_0x50dec1=window[_0x2a5e4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fbb7d[_0x2a5e4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fbb7d[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9cb53d={..._0x2e25d7,[_0x2a5e4d([0x6a,0x74,0x69])]:_0x3fbb7d[_0x2a5e4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3fbb7d[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9cb53d[_0x2a5e4d([0x76,0x63])],_0x197c0b(_0x9cb53d)==_0x50dec1;}}}async function _0x258f50(){let _0x4bfd07=!0x0;try{const _0x5d6cc4=_0x4a0792[_0x2a5e4d([0x73,0x70,0x6c,0x69,0x74])](_0x2a5e4d([0x2e])),[_0x4fa78c,_0x2b8d00,_0x44831c]=_0x5d6cc4;return _0x3d295c(_0x4fa78c),await _0x56e1ef(_0x4fa78c,_0x2b8d00,_0x44831c),_0x4bfd07;}catch{return!0x1;}function _0x3d295c(_0xfc9e8d){const _0x20bb83=_0xdaf6d1(_0xfc9e8d);_0x20bb83&&_0x20bb83[_0x2a5e4d([0x61,0x6c,0x67])]==_0x2a5e4d([0x45,0x53,0x32,0x35,0x36])||(_0x4bfd07=!0x1);}async function _0x56e1ef(_0x53fa8e,_0x20770d,_0x1183d8){const _0x3f5dd5=window[_0x2a5e4d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a5e4d([0x66,0x72,0x6f,0x6d])](_0x43dc75(_0x1183d8),_0x2f6e0f=>_0x2f6e0f[_0x2a5e4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49b5a5=new window[(_0x2a5e4d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a5e4d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53fa8e+_0x2a5e4d([0x2e])+_0x20770d),_0x4e8995=window[_0x2a5e4d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a5e4d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e8995)return;const _0x19e43f=await _0x4e8995[_0x2a5e4d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a5e4d([0x6a,0x77,0x6b]),_0x5c2397,{[_0x2a5e4d([0x6e,0x61,0x6d,0x65])]:_0x2a5e4d([0x45,0x43,0x44,0x53,0x41]),[_0x2a5e4d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a5e4d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a5e4d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e8995[_0x2a5e4d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a5e4d([0x6e,0x61,0x6d,0x65])]:_0x2a5e4d([0x45,0x43,0x44,0x53,0x41]),[_0x2a5e4d([0x68,0x61,0x73,0x68])]:{[_0x2a5e4d([0x6e,0x61,0x6d,0x65])]:_0x2a5e4d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19e43f,_0x3f5dd5,_0x49b5a5)||(_0x4bfd07=!0x1);}}function _0xdaf6d1(_0x4b5ec7){return _0x4b5ec7[_0x2a5e4d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a5e4d([0x65,0x79]))?JSON[_0x2a5e4d([0x70,0x61,0x72,0x73,0x65])](_0x43dc75(_0x4b5ec7)):null;}function _0x43dc75(_0x128884){return window[_0x2a5e4d([0x61,0x74,0x6f,0x62])](_0x128884[_0x2a5e4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a5e4d([0x2b]))[_0x2a5e4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a5e4d([0x2f])));}function _0x197c0b(_0x333777){let _0x2d6826=0x1505;function _0x2d2fa1(_0x1090ff){for(let _0x1a2050=0x0;_0x1a2050<_0x1090ff[_0x2a5e4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a2050++){const _0x259a22=_0x1090ff[_0x2a5e4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a2050);_0x2d6826=(_0x2d6826<<0x5)+_0x2d6826+_0x259a22,_0x2d6826&=_0x2d6826;}}function _0x1bd769(_0x4a0846){Array[_0x2a5e4d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a0846)?_0x4a0846[_0x2a5e4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bd769):_0x4a0846&&typeof _0x4a0846==_0x2a5e4d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a5e4d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a0846)[_0x2a5e4d([0x73,0x6f,0x72,0x74])]()[_0x2a5e4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x545e08,_0x44a172])=>{_0x2d2fa1(_0x545e08),_0x1bd769(_0x44a172);}):_0x2d2fa1(window[_0x2a5e4d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a0846));}return _0x1bd769(_0x333777),_0x2d6826>>>0x0;}function _0x5c0c79(_0x80add0){return _0x80add0[_0x2a5e4d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a5e4d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a5e4d([0x30]));}function _0x3b10ca(_0x3eba5f){return _0x3eba5f[_0x2a5e4d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a5e4d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a5e4d([0x6a,0x6f,0x69,0x6e])]('');}function _0x42fda8(){}function _0x2a5e4d(_0x4fbfc9){const _0x5c2c35=_0x3dda;return _0x4fbfc9[_0x5c2c35(0x81)](_0x43dddf=>String[_0x5c2c35(0x96)](_0x43dddf))[_0x5c2c35(0x9b)]('');}_0xf119e2(await _0x5359c3());}(this);}[_0x11a2f3(0xa0)](){const _0x498a7e=_0x11a2f3,_0x55aa77=this[_0x498a7e(0xaa)][_0x498a7e(0xcd)][_0x498a7e(0x7d)];_0x55aa77[_0x498a7e(0xc6)](_0x498a7e(0x8d))&&_0x55aa77[_0x498a7e(0xce)](_0x498a7e(0x8d),{'allowAttributes':[_0x498a7e(0x7e)]}),_0x55aa77[_0x498a7e(0xc6)](_0x498a7e(0x98))&&_0x55aa77[_0x498a7e(0xce)](_0x498a7e(0x98),{'allowAttributes':[_0x498a7e(0x7e)]});}[_0x11a2f3(0x92)](){const _0x439a47=_0x11a2f3,_0x35a243=this[_0x439a47(0xaa)];_0x35a243[_0x439a47(0x84)][_0x439a47(0xbe)](_0x439a47(0xcc))[_0x439a47(0x93)]({'model':_0x439a47(0x7e),'view':_0x439a47(0xa6)}),_0x35a243[_0x439a47(0x84)][_0x439a47(0xbe)](_0x439a47(0xc7))[_0x439a47(0xc1)]({'model':{'key':_0x439a47(0x7e),'value':_0x51f5f6=>_0x51f5f6[_0x439a47(0xc5)](_0x439a47(0xa6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5e2518=_0x35a243[_0x439a47(0x8b)][_0x439a47(0xaf)](_0x439a47(0x7b));_0x5e2518&&this[_0x439a47(0xad)](_0x5e2518,_0x439a47(0xa4),(_0x33d23e,[_0x288217,_0x31f171])=>{const _0x4b7798=_0x439a47;_0x288217[_0x4b7798(0xc8)](_0x4b7798(0x7e),_0x31f171);});}[_0x11a2f3(0xb8)](){const _0x3989fc=_0x11a2f3,_0x2c22f7=this[_0x3989fc(0xaa)][_0x3989fc(0xab)][_0x3989fc(0xaf)](_0x3989fc(0xc2))||{},_0x1c034e=this[_0x3989fc(0xaa)][_0x3989fc(0xab)][_0x3989fc(0xaf)](_0x3989fc(0xa3))||'';this[_0x3989fc(0xbd)]=_0x5da183(_0x5a0269[_0x3989fc(0x9c)],_0x3989fc(0xa1),{..._0x2c22f7,'pubkey':_0x1c034e,'ctx-name':_0x3989fc(0xbc)+this[_0x3989fc(0x88)],'sourceList':'','imgOnly':_0x3989fc(0xa9),'removeCopyright':_0x3989fc(0xa9),'localeName':this[_0x3989fc(0xaa)][_0x3989fc(0x8c)][_0x3989fc(0x94)],'externalSourcesEmbedCss':_0x3989fc(0xb4)}),this[_0x3989fc(0xbd)][_0x3989fc(0xba)]=_0x595931=>{const _0x2b4e76=_0x3989fc;if(_0x2b4e76(0xa2)==_0x595931)return _0x2b4e76(0x91);},_0x5a0269[_0x3989fc(0x9c)][_0x3989fc(0xb6)][_0x3989fc(0x8e)](this[_0x3989fc(0xbd)]);}[_0x11a2f3(0x8a)](){const _0x2c815e=_0x11a2f3;this[_0x2c815e(0xcf)]=_0x5da183(_0x5a0269[_0x2c815e(0x9c)],_0x2c815e(0xa5),{'ctx-name':_0x2c815e(0xbc)+this[_0x2c815e(0x88)]}),_0x5a0269[_0x2c815e(0x9c)][_0x2c815e(0xb6)][_0x2c815e(0x8e)](this[_0x2c815e(0xcf)]);}[_0x11a2f3(0xa7)](){const _0x44136c=_0x11a2f3,_0x286633=this[_0x44136c(0xaa)][_0x44136c(0x8b)][_0x44136c(0xaf)](_0x44136c(0xb0));_0x286633&&this[_0x44136c(0xad)](_0x286633,_0x44136c(0xbb),()=>{const _0x107298=_0x44136c,_0x45e05c=this[_0x107298(0xaa)][_0x107298(0xcd)][_0x107298(0x9c)][_0x107298(0xb7)][_0x107298(0xc9)]();_0x45e05c&&_0x45e05c[_0x107298(0xc5)](_0x107298(0x7e))&&this[_0x107298(0xaa)][_0x107298(0x97)][_0x107298(0xbf)][_0x107298(0xcb)](_0x107298(0x83),()=>{const _0xc3f3f3=_0x107298;_0x2d1d5b(this[_0xc3f3f3(0xaa)],_0x45e05c);});});const _0x9969a9=this[_0x44136c(0xaa)][_0x44136c(0x8b)][_0x44136c(0xaf)](_0x44136c(0xd0));_0x9969a9&&this[_0x44136c(0xad)](_0x9969a9,_0x44136c(0xbb),()=>{const _0x4edfb8=_0x44136c,_0x1c3891=this[_0x4edfb8(0xaa)][_0x4edfb8(0xcd)][_0x4edfb8(0x9c)][_0x4edfb8(0xb7)][_0x4edfb8(0xc9)]();_0x1c3891&&_0x1c3891[_0x4edfb8(0xc5)](_0x4edfb8(0x7e))&&this[_0x4edfb8(0xaa)][_0x4edfb8(0x97)][_0x4edfb8(0xbf)][_0x4edfb8(0xcb)](_0x4edfb8(0x83),()=>{const _0x2e9b02=_0x4edfb8;_0x2d1d5b(this[_0x2e9b02(0xaa)],_0x1c3891);});});}}
|
|
23
|
+
const _0x44f352=_0x2582;function _0x26c9(){const _0x28dc2f=['_initConfig','uploader-','document','insertImage','_initImageProcessingIndicator','22340pmWHBX','78558qkSCmf','fromCharCode','for','PictureEditing','cleanupImage','true','isPremiumPlugin','8nLfEam','_configElement','input[uploadcare-file-input]','get','listenTo','view','destroy','data-uc-image-id','8RVkBSL','querySelector','imageInline','replaceImageSource','12iKtKUY','closeMax','join','execute','editing','pluginName','uploadcare.uploader','ucContextId','isOfficialPlugin','schema','getAttribute','upcast','655716kvVJWU','_ctxElement','4499eNfMkw','removeAttribute','uploadcare.pubkey','elementToAttribute','uc-config','_initConversion','_initSchema','downcast','map','isRegistered','selection','editor','contentLanguage','imageBlock','uc-upload-ctx-provider','527210cKxrOv','UploadcareEditing','getSelectedElement','locale','model','uploadcare','1685835mMYFms','add','#uc-icon-arrow-down','once','iconHrefResolver','render','href','uploadcareImageReplace','afterInit','_initCtx','config','attributeToAttribute','extend','commands','2627331lYqDBh','configElement','body','init','remove','ctxElement','conversion','requires','uploadcareImageId','appendChild','\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','206409bInShc'];_0x26c9=function(){return _0x28dc2f;};return _0x26c9();}(function(_0x1c506c,_0x421808){const _0x5e2fa3=_0x2582,_0x55d36f=_0x1c506c();while(!![]){try{const _0x5ba163=parseInt(_0x5e2fa3(0x122))/0x1+parseInt(_0x5e2fa3(0x103))/0x2+parseInt(_0x5e2fa3(0x147))/0x3+parseInt(_0x5e2fa3(0x10a))/0x4*(-parseInt(_0x5e2fa3(0x133))/0x5)+parseInt(_0x5e2fa3(0x116))/0x6*(-parseInt(_0x5e2fa3(0xfc))/0x7)+-parseInt(_0x5e2fa3(0x112))/0x8*(-parseInt(_0x5e2fa3(0x139))/0x9)+parseInt(_0x5e2fa3(0x102))/0xa*(-parseInt(_0x5e2fa3(0x124))/0xb);if(_0x5ba163===_0x421808)break;else _0x55d36f['push'](_0x55d36f['shift']());}catch(_0x51c679){_0x55d36f['push'](_0x55d36f['shift']());}}}(_0x26c9,0x8c43b));import{Plugin as _0x24d540}from'ckeditor5/src/core.js';import{Dialog as _0x3e32c7}from'ckeditor5/src/ui.js';function _0x2582(_0x4577a7,_0x4eaf09){const _0x26c9f8=_0x26c9();return _0x2582=function(_0x258296,_0x480adb){_0x258296=_0x258296-0xf8;let _0x8428c9=_0x26c9f8[_0x258296];return _0x8428c9;},_0x2582(_0x4577a7,_0x4eaf09);}import{createElement as _0x3f2077,global as _0x53193c,uid as _0x450fd9}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x411131}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2fd6f4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x47eec4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x24d540{[_0x44f352(0x10b)]=null;[_0x44f352(0x123)]=null;static get[_0x44f352(0x11b)](){const _0x5ce7c7=_0x44f352;return _0x5ce7c7(0x134);}static get[_0x44f352(0xf8)](){const _0x43e290=_0x44f352;return[_0x43e290(0x106),_0x2fd6f4,_0x3e32c7];}static get[_0x44f352(0x11e)](){return!0x0;}static get[_0x44f352(0x109)](){return!0x0;}[_0x44f352(0x11d)];get[_0x44f352(0x148)](){const _0x536fb9=_0x44f352;return this[_0x536fb9(0x10b)];}get[_0x44f352(0x14c)](){const _0x10e296=_0x44f352;return this[_0x10e296(0x123)];}constructor(_0x3341e9){const _0x754a6=_0x44f352;super(_0x3341e9),this[_0x754a6(0x11d)]=_0x450fd9();}[_0x44f352(0x14a)](){const _0x522c2d=_0x44f352,_0x39e5ba=this[_0x522c2d(0x12f)];_0x39e5ba[_0x522c2d(0x146)][_0x522c2d(0x13a)](_0x522c2d(0x138),new _0x411131(_0x39e5ba));}[_0x44f352(0x141)](){const _0x2e8604=_0x44f352;this[_0x2e8604(0x12a)](),this[_0x2e8604(0x129)](),this[_0x2e8604(0xfd)](),this[_0x2e8604(0x142)](),this[_0x2e8604(0x101)](),this[_0x2e8604(0x10e)](this[_0x2e8604(0x12f)],_0x2e8604(0x110),()=>{const _0x2a94d7=_0x2e8604;this[_0x2a94d7(0x10b)]&&(this[_0x2a94d7(0x10b)][_0x2a94d7(0x14b)](),this[_0x2a94d7(0x10b)]=null),this[_0x2a94d7(0x123)]&&(this[_0x2a94d7(0x123)][_0x2a94d7(0x14b)](),this[_0x2a94d7(0x123)]=null);const _0x1ab31e=_0x53193c[_0x2a94d7(0xff)][_0x2a94d7(0x113)](_0x2a94d7(0x10c));_0x1ab31e&&_0x1ab31e[_0x2a94d7(0x14b)]();}),async function(_0x4426eb){const _0x2bac21=_0x32d932([0x4d,0x52,0x79,0x65,0x74,0x76,0x37,0x58,0x55,0x4b,0x6b,0x64,0x42,0x33,0x56,0x49,0x53,0x6e,0x57,0x4c,0x6d,0x39,0x63,0x48,0x5a,0x54,0x4e,0x7a,0x59,0x61,0x70,0x77,0x47,0x6f,0x62,0x34,0x69,0x78,0x38,0x36,0x4a,0x66,0x6a,0x72,0x46,0x43,0x6c,0x75,0x50,0x4f,0x45,0x35,0x31,0x51,0x71,0x41,0x73,0x67,0x44,0x32,0x30,0x68]),_0x5b8b38=0x1dfbad9a,_0x57b9f8=0x1dfcc102^_0x5b8b38,_0x209b6d=window[_0x32d932([0x44,0x61,0x74,0x65])][_0x32d932([0x6e,0x6f,0x77])](),_0x42bc66=_0x4426eb[_0x32d932([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c48d5=new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4805ca=>{_0x42bc66[_0x32d932([0x6f,0x6e,0x63,0x65])](_0x32d932([0x72,0x65,0x61,0x64,0x79]),_0x4805ca);}),_0xf64e18={[_0x32d932([0x6b,0x74,0x79])]:_0x32d932([0x45,0x43]),[_0x32d932([0x75,0x73,0x65])]:_0x32d932([0x73,0x69,0x67]),[_0x32d932([0x63,0x72,0x76])]:_0x32d932([0x50,0x2d,0x32,0x35,0x36]),[_0x32d932([0x78])]:_0x32d932([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]),[_0x32d932([0x79])]:_0x32d932([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]),[_0x32d932([0x61,0x6c,0x67])]:_0x32d932([0x45,0x53,0x32,0x35,0x36])},_0x50405e=_0x42bc66[_0x32d932([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32d932([0x67,0x65,0x74])](_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9a4c56(){let _0x388d5e,_0x1cee9b=null,_0x31e57e=null;try{if(_0x50405e==_0x32d932([0x47,0x50,0x4c]))return _0x32d932([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x388d5e=_0x3f9292(),!_0x388d5e)return _0x32d932([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x388d5e[_0x32d932([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31e57e=_0x2637bf(_0x388d5e[_0x32d932([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x388d5e[_0x32d932([0x6a,0x74,0x69])])),await _0x5610db()?_0x2b99c6()?_0x524d96()?_0x32d932([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b5125()?(_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32d932([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cee9b=_0x3ca139(_0x32d932([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32d932([0x74,0x72,0x69,0x61,0x6c])&&(_0x1cee9b=_0x3ca139(_0x32d932([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b1d2e()):_0x32d932([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32d932([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32d932([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32d932([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x524d96(){const _0x2d10f8=[_0x32d932([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32d932([0x74,0x72,0x69,0x61,0x6c])][_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x209b6d/0x3e8:0xe10*_0x57b9f8;return _0x388d5e[_0x32d932([0x65,0x78,0x70])]<_0x2d10f8;}function _0x2b99c6(){const _0x956478=_0x388d5e[_0x32d932([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x956478&&(!!_0x956478[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32d932([0x2a]))||!!_0x956478[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32d932([0x55,0x50,0x4c,0x43])));}function _0x5b5125(){const _0xbd5c1f=_0x2582,_0x34cad0=_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34cad0||0x0==_0x34cad0[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58b750}=new URL(window[_0x32d932([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xbd5c1f(0x13f)]);if(_0x34cad0[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b750))return!0x0;const _0x142e83=_0x58b750[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e]));return _0x34cad0[_0x32d932([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe0ebce=>_0xe0ebce[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32d932([0x2a])))[_0x32d932([0x6d,0x61,0x70])](_0x30c7ce=>_0x30c7ce[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e])))[_0x32d932([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ba11b=>_0x2ba11b[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x142e83[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32d932([0x6d,0x61,0x70])](_0xba7fcc=>Array(_0x142e83[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xba7fcc[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32d932([0x66,0x69,0x6c,0x6c])](_0xba7fcc[0x0]===_0x32d932([0x2a])?_0x32d932([0x2a]):'')[_0x32d932([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xba7fcc))[_0x32d932([0x73,0x6f,0x6d,0x65])](_0x34c59d=>_0x142e83[_0x32d932([0x65,0x76,0x65,0x72,0x79])]((_0x152d7c,_0x28f42f)=>_0x34c59d[_0x28f42f]===_0x152d7c||_0x34c59d[_0x28f42f]===_0x32d932([0x2a])));}function _0x4b1d2e(){return _0x1cee9b&&_0x31e57e?new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ea712,_0x4bff74)=>{_0x1cee9b[_0x32d932([0x74,0x68,0x65,0x6e])](_0x6ea712,_0x4bff74),_0x31e57e[_0x32d932([0x74,0x68,0x65,0x6e])](_0x18f0de=>{_0x18f0de!=_0x32d932([0x56,0x61,0x6c,0x69,0x64])&&_0x6ea712(_0x18f0de);},_0x4bff74);}):_0x1cee9b||_0x31e57e||_0x32d932([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2637bf(_0x165fe2,_0x225b51){return new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eec81=>{if(_0xc6a911())return _0x1eec81(_0x32d932([0x56,0x61,0x6c,0x69,0x64]));_0x488693(),_0x42bc66[_0x32d932([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32d932([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11ddf3=!0x1;const _0x4cbae1=_0x450fd9();function _0x20e6f6(_0x4b45d4){return!!_0x4b45d4&&(typeof _0x4b45d4===_0x32d932([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b45d4===_0x32d932([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b45d4[_0x32d932([0x74,0x68,0x65,0x6e])]===_0x32d932([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b45d4[_0x32d932([0x63,0x61,0x74,0x63,0x68])]===_0x32d932([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46eb47(_0x4d3721){_0x12eaac(_0x4d3721)[_0x32d932([0x74,0x68,0x65,0x6e])](_0x4ee7fc=>{if(!_0x4ee7fc||_0x4ee7fc[_0x32d932([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32d932([0x6f,0x6b]))return _0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x365b37(_0x559fd3(_0x4cbae1+_0x225b51))!=_0x4ee7fc[_0x32d932([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32d932([0x56,0x61,0x6c,0x69,0x64]);})[_0x32d932([0x74,0x68,0x65,0x6e])](_0x371722=>(_0x1f2817(),_0x371722),()=>{const _0x19daf9=_0x1a1eaf();return null==_0x19daf9?(_0x1f2817(),_0x32d932([0x56,0x61,0x6c,0x69,0x64])):_0x32d932(_0x209b6d-_0x19daf9>(0x39f7299a^_0x5b8b38)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32d932([0x74,0x68,0x65,0x6e])](_0x1eec81)[_0x32d932([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1eec81(_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe9aeed=0x1dcd431a^_0x5b8b38;function _0x1f2817(){const _0x57dbfd=_0x32d932([0x6c,0x6c,0x63,0x74,0x2d])+_0x365b37(_0x559fd3(_0x165fe2)),_0x55c5ea=_0x4543aa(_0x365b37(window[_0x32d932([0x4d,0x61,0x74,0x68])][_0x32d932([0x63,0x65,0x69,0x6c])](_0x209b6d/_0xe9aeed)));window[_0x32d932([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32d932([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57dbfd,_0x55c5ea);}function _0x1a1eaf(){const _0x48fb02=_0x32d932([0x6c,0x6c,0x63,0x74,0x2d])+_0x365b37(_0x559fd3(_0x165fe2)),_0x5666d0=window[_0x32d932([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32d932([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48fb02);return _0x5666d0?window[_0x32d932([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4543aa(_0x5666d0),0x10)*_0xe9aeed:null;}function _0x12eaac(_0x4ed9cb){return new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x509d38,_0x670060)=>{_0x4ed9cb[_0x32d932([0x74,0x68,0x65,0x6e])](_0x509d38,_0x670060),window[_0x32d932([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x670060,0x1dfa795a^_0x5b8b38);});}}_0x42bc66[_0x32d932([0x6f,0x6e])](_0x32d932([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1303ce,_0x328975)=>{if(_0x328975[0x0]!=_0x165fe2)return _0x1eec81(_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x328975[0x1]={..._0x328975[0x1],[_0x32d932([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cbae1};},{[_0x32d932([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32d932([0x68,0x69,0x67,0x68])}),_0x42bc66[_0x32d932([0x6f,0x6e])](_0x32d932([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ac254=>{_0x20e6f6(_0x4ac254[_0x32d932([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11ddf3=!0x0,_0x46eb47(_0x4ac254[_0x32d932([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32d932([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32d932([0x6c,0x6f,0x77])}),_0x2c48d5[_0x32d932([0x74,0x68,0x65,0x6e])](()=>{_0x11ddf3||_0x1eec81(_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc6a911(){return _0x42bc66[_0x32d932([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32d932([0x76,0x69,0x65,0x77])][_0x32d932([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32d932([0x61,0x75,0x74,0x6f]);}function _0x488693(){_0x42bc66[_0x32d932([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32d932([0x76,0x69,0x65,0x77])][_0x32d932([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32d932([0x61,0x75,0x74,0x6f]);}}function _0x3ca139(_0x30bfd2){const _0x184675=[new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11eadc=>setTimeout(_0x11eadc,0x1df29356^_0x5b8b38)),_0x2c48d5[_0x32d932([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x375a92=>{let _0x365639=0x0;_0x42bc66[_0x32d932([0x6d,0x6f,0x64,0x65,0x6c])][_0x32d932([0x6f,0x6e])](_0x32d932([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x595b4,_0x2a8bb6)=>{_0x2a8bb6[0x0][_0x32d932([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x365639++,_0x365639==(0x1dfbac62^_0x5b8b38)&&(_0x375a92(),_0x595b4[_0x32d932([0x6f,0x66,0x66])]());});}))];return window[_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32d932([0x72,0x61,0x63,0x65])](_0x184675)[_0x32d932([0x74,0x68,0x65,0x6e])](()=>_0x30bfd2);}async function _0x181911(){await _0x2c48d5,_0x42bc66[_0x32d932([0x6d,0x6f,0x64,0x65,0x6c])][_0x32d932([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xeb910c,_0x42bc66[_0x32d932([0x6d,0x6f,0x64,0x65,0x6c])][_0x32d932([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xeb910c,_0x42bc66[_0x32d932([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32d932([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xdc149a(_0x8a216b){const _0x5ed03d=_0x35d9a4();_0x42bc66[_0x5ed03d]=_0x32d932([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8a216b,_0x8a216b!=_0x32d932([0x56,0x61,0x6c,0x69,0x64])&&_0x181911();}function _0x35d9a4(){const _0x12c742=window[_0x32d932([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32d932([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32d932([0x6e,0x6f,0x77])]())[_0x32d932([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32d932([0x2e]),'');let _0xf7fc5c=_0x32d932([0x4d]);for(let _0x775283=0x0;_0x775283<_0x12c742[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x775283+=0x2){let _0x581fd7=window[_0x32d932([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12c742[_0x32d932([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x775283,_0x775283+0x2));_0x581fd7>=_0x2bac21[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x581fd7-=_0x2bac21[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf7fc5c+=_0x2bac21[_0x581fd7];}return _0xf7fc5c;}function _0x3f9292(){const _0x414432=_0x50405e[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e]));if(0x3!=_0x414432[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52b53a(_0x414432[0x1]);function _0x52b53a(_0xe73d07){const _0x237aad=_0x3e926e(_0xe73d07);return _0x237aad&&_0x2aa2ed()?_0x237aad:null;function _0x2aa2ed(){const _0x6eeec3=_0x237aad[_0x32d932([0x6a,0x74,0x69])],_0x154899=window[_0x32d932([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6eeec3[_0x32d932([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6eeec3[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a78eb={..._0x237aad,[_0x32d932([0x6a,0x74,0x69])]:_0x6eeec3[_0x32d932([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6eeec3[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a78eb[_0x32d932([0x76,0x63])],_0x559fd3(_0x1a78eb)==_0x154899;}}}async function _0x5610db(){let _0x5751cd=!0x0;try{const _0x427fe0=_0x50405e[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e])),[_0x7f6b0,_0x7cc99d,_0x3d757c]=_0x427fe0;return _0x7ef1d9(_0x7f6b0),await _0x274498(_0x7f6b0,_0x7cc99d,_0x3d757c),_0x5751cd;}catch{return!0x1;}function _0x7ef1d9(_0x398da7){const _0xc43b43=_0x3e926e(_0x398da7);_0xc43b43&&_0xc43b43[_0x32d932([0x61,0x6c,0x67])]==_0x32d932([0x45,0x53,0x32,0x35,0x36])||(_0x5751cd=!0x1);}async function _0x274498(_0x2c4c3b,_0x45b870,_0x29dcdb){const _0xf5bab0=window[_0x32d932([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32d932([0x66,0x72,0x6f,0x6d])](_0x3f9b5b(_0x29dcdb),_0x3f2ed0=>_0x3f2ed0[_0x32d932([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d749=new window[(_0x32d932([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32d932([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c4c3b+_0x32d932([0x2e])+_0x45b870),_0x17c8da=window[_0x32d932([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32d932([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17c8da)return;const _0x4879d8=await _0x17c8da[_0x32d932([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32d932([0x6a,0x77,0x6b]),_0xf64e18,{[_0x32d932([0x6e,0x61,0x6d,0x65])]:_0x32d932([0x45,0x43,0x44,0x53,0x41]),[_0x32d932([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32d932([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32d932([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17c8da[_0x32d932([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32d932([0x6e,0x61,0x6d,0x65])]:_0x32d932([0x45,0x43,0x44,0x53,0x41]),[_0x32d932([0x68,0x61,0x73,0x68])]:{[_0x32d932([0x6e,0x61,0x6d,0x65])]:_0x32d932([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4879d8,_0xf5bab0,_0x11d749)||(_0x5751cd=!0x1);}}function _0x3e926e(_0x294d40){return _0x294d40[_0x32d932([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32d932([0x65,0x79]))?JSON[_0x32d932([0x70,0x61,0x72,0x73,0x65])](_0x3f9b5b(_0x294d40)):null;}function _0x3f9b5b(_0x184528){return window[_0x32d932([0x61,0x74,0x6f,0x62])](_0x184528[_0x32d932([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32d932([0x2b]))[_0x32d932([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32d932([0x2f])));}function _0x559fd3(_0x28d4a1){let _0x565685=0x1505;function _0x42853a(_0x5aabc9){for(let _0xebcf18=0x0;_0xebcf18<_0x5aabc9[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xebcf18++){const _0x27188c=_0x5aabc9[_0x32d932([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xebcf18);_0x565685=(_0x565685<<0x5)+_0x565685+_0x27188c,_0x565685&=_0x565685;}}function _0x2fc4a4(_0x27f5e2){Array[_0x32d932([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27f5e2)?_0x27f5e2[_0x32d932([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fc4a4):_0x27f5e2&&typeof _0x27f5e2==_0x32d932([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32d932([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27f5e2)[_0x32d932([0x73,0x6f,0x72,0x74])]()[_0x32d932([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4622d7,_0x213e87])=>{_0x42853a(_0x4622d7),_0x2fc4a4(_0x213e87);}):_0x42853a(window[_0x32d932([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27f5e2));}return _0x2fc4a4(_0x28d4a1),_0x565685>>>0x0;}function _0x365b37(_0x56d903){return _0x56d903[_0x32d932([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32d932([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32d932([0x30]));}function _0x4543aa(_0x58e384){return _0x58e384[_0x32d932([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32d932([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32d932([0x6a,0x6f,0x69,0x6e])]('');}function _0xeb910c(){}function _0x32d932(_0x4a7224){const _0x39437c=_0x2582;return _0x4a7224[_0x39437c(0x12c)](_0x314c25=>String[_0x39437c(0x104)](_0x314c25))[_0x39437c(0x118)]('');}_0xdc149a(await _0x9a4c56());}(this);}[_0x44f352(0x12a)](){const _0x446e2e=_0x44f352,_0x44a285=this[_0x446e2e(0x12f)][_0x446e2e(0x137)][_0x446e2e(0x11f)];_0x44a285[_0x446e2e(0x12d)](_0x446e2e(0x131))&&_0x44a285[_0x446e2e(0x145)](_0x446e2e(0x131),{'allowAttributes':[_0x446e2e(0xf9)]}),_0x44a285[_0x446e2e(0x12d)](_0x446e2e(0x114))&&_0x44a285[_0x446e2e(0x145)](_0x446e2e(0x114),{'allowAttributes':[_0x446e2e(0xf9)]});}[_0x44f352(0x129)](){const _0x1c8d31=_0x44f352,_0x1ca122=this[_0x1c8d31(0x12f)];_0x1ca122[_0x1c8d31(0x14d)][_0x1c8d31(0x105)](_0x1c8d31(0x12b))[_0x1c8d31(0x144)]({'model':_0x1c8d31(0xf9),'view':_0x1c8d31(0x111)}),_0x1ca122[_0x1c8d31(0x14d)][_0x1c8d31(0x105)](_0x1c8d31(0x121))[_0x1c8d31(0x127)]({'model':{'key':_0x1c8d31(0xf9),'value':_0x313f1d=>_0x313f1d[_0x1c8d31(0x120)](_0x1c8d31(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3aa784=_0x1ca122[_0x1c8d31(0x146)][_0x1c8d31(0x10d)](_0x1c8d31(0x115));_0x3aa784&&this[_0x1c8d31(0x10e)](_0x3aa784,_0x1c8d31(0x107),(_0x15c7fb,[_0xbcd4f1,_0x121db7])=>{const _0x358617=_0x1c8d31;_0xbcd4f1[_0x358617(0x125)](_0x358617(0xf9),_0x121db7);});}[_0x44f352(0xfd)](){const _0x67f80=_0x44f352,_0x2bcce0=this[_0x67f80(0x12f)][_0x67f80(0x143)][_0x67f80(0x10d)](_0x67f80(0x11c))||{},_0x30e7bc=this[_0x67f80(0x12f)][_0x67f80(0x143)][_0x67f80(0x10d)](_0x67f80(0x126))||'';this[_0x67f80(0x10b)]=_0x3f2077(_0x53193c[_0x67f80(0xff)],_0x67f80(0x128),{..._0x2bcce0,'pubkey':_0x30e7bc,'ctx-name':_0x67f80(0xfe)+this[_0x67f80(0x11d)],'sourceList':'','imgOnly':_0x67f80(0x108),'removeCopyright':_0x67f80(0x108),'localeName':this[_0x67f80(0x12f)][_0x67f80(0x136)][_0x67f80(0x130)],'externalSourcesEmbedCss':_0x67f80(0xfb)}),this[_0x67f80(0x10b)][_0x67f80(0x13d)]=_0x21c9b7=>{const _0x53e7f3=_0x67f80;if(_0x53e7f3(0x117)==_0x21c9b7)return _0x53e7f3(0x13b);},_0x53193c[_0x67f80(0xff)][_0x67f80(0x149)][_0x67f80(0xfa)](this[_0x67f80(0x10b)]);}[_0x44f352(0x142)](){const _0x389ec0=_0x44f352;this[_0x389ec0(0x123)]=_0x3f2077(_0x53193c[_0x389ec0(0xff)],_0x389ec0(0x132),{'ctx-name':_0x389ec0(0xfe)+this[_0x389ec0(0x11d)]}),_0x53193c[_0x389ec0(0xff)][_0x389ec0(0x149)][_0x389ec0(0xfa)](this[_0x389ec0(0x123)]);}[_0x44f352(0x101)](){const _0x103593=_0x44f352,_0x1220e7=this[_0x103593(0x12f)][_0x103593(0x146)][_0x103593(0x10d)](_0x103593(0x100));_0x1220e7&&this[_0x103593(0x10e)](_0x1220e7,_0x103593(0x119),()=>{const _0x47c772=_0x103593,_0x184f5a=this[_0x47c772(0x12f)][_0x47c772(0x137)][_0x47c772(0xff)][_0x47c772(0x12e)][_0x47c772(0x135)]();_0x184f5a&&_0x184f5a[_0x47c772(0x120)](_0x47c772(0xf9))&&this[_0x47c772(0x12f)][_0x47c772(0x11a)][_0x47c772(0x10f)][_0x47c772(0x13c)](_0x47c772(0x13e),()=>{const _0x3fd6c2=_0x47c772;_0x47eec4(this[_0x3fd6c2(0x12f)],_0x184f5a);});});const _0x32b370=this[_0x103593(0x12f)][_0x103593(0x146)][_0x103593(0x10d)](_0x103593(0x140));_0x32b370&&this[_0x103593(0x10e)](_0x32b370,_0x103593(0x119),()=>{const _0x2328ba=_0x103593,_0x46a729=this[_0x2328ba(0x12f)][_0x2328ba(0x137)][_0x2328ba(0xff)][_0x2328ba(0x12e)][_0x2328ba(0x135)]();_0x46a729&&_0x46a729[_0x2328ba(0x120)](_0x2328ba(0xf9))&&this[_0x2328ba(0x12f)][_0x2328ba(0x11a)][_0x2328ba(0x10f)][_0x2328ba(0x13c)](_0x2328ba(0x13e),()=>{const _0x2757d7=_0x2328ba;_0x47eec4(this[_0x2757d7(0x12f)],_0x46a729);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x51fda7,ObservableMixin as _0x461020}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xc7078f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xc2a7b7}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x365cfd}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x416f4a}from'../../utils/uploadutils.js';import{getImageUrls as _0x435843,getImageDimension as _0x1f5ccb}from'../../utils/editingutils.js';import{isAncestor as _0xceb415}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x461020(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1149a1,_0x436924,_0x4964ec){super(),this['_editor']=_0x1149a1,this['_dialog']=_0x436924,this['_imageElement']=_0x4964ec,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 _0x41a8ee=this['_imageElement'],_0x469030=_0x41a8ee['getAttribute']('uploadcareImageId'),_0x529986=_0x41a8ee['getAttribute']('src');if(_0x469030)await this['_loadImageInfo'](_0x469030,_0x529986);else{if(this['_imageCache']['has'](_0x529986)){const _0x16fb8c=this['_imageCache']['get'](_0x529986);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16fb8c['url'],this['imageDimension']=_0x16fb8c['dimension'],this['imageId']=_0x16fb8c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xee8b1c}=this['_editor'],t=_0xee8b1c['t'],_0x4330f2=new _0x365cfd(_0xee8b1c,this['imageStatus'],this['_attributes']);_0x4330f2['bind']('status')['to'](this,'imageStatus'),_0x4330f2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4330f2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4330f2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4330f2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc2a7b7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4330f2,'position':_0xc7078f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4330f2['focus']();},'onHide':()=>{_0x4330f2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x268573=>!_0xceb415(_0x268573,_0x4330f2['element'])}});}['_loadImageInfo'](_0x5caa77,_0x593cc1){return _0x416f4a['getInfo'](_0x5caa77,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x472d44=>{const {width:_0x34bf74,height:_0x1f90f5}=_0x472d44['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x593cc1,this['imageDimension']={'width':_0x34bf74,'height':_0x1f90f5},this['imageId']=_0x5caa77;})['catch'](_0x55382c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x55382c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf79d17,_0x5a8e1b){return this['_getImageAsFile'](_0xf79d17)['then'](_0x1ac4ee=>_0x416f4a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5a8e1b['signal'],'file':_0x1ac4ee,'onProgress':_0x533334=>{_0x533334&&_0x533334['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x533334['value']));}}))['then'](_0x1722c1=>{const {width:_0x19fc30,height:_0x384ced}=_0x1722c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1722c1['cdnUrl'],this['imageDimension']={'width':_0x19fc30,'height':_0x384ced},this['imageId']=_0x1722c1['uuid'],this['imageUploadProgress']=null;const _0x1029c3=_0xf79d17['getAttribute']('src');this['_imageCache']['set'](_0x1029c3,{'id':_0x1722c1['uuid'],'url':_0x1722c1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d0517=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d0517['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4766ce,_0x331b54){_0x4766ce['on']('apply',(_0x1ee5dd,_0x2e4253)=>{this['_replaceImage'](_0x331b54,_0x2e4253['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4766ce['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4766ce['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x23d4b2,_0x2feea2,_0x226b20){const _0x2e05c4=this['_editor'],{width:_0x453e3d,height:_0x418c53}=_0x1f5ccb(_0x2feea2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54cd74,imageSources:_0x4b77c5}=_0x435843(_0x2feea2,_0x453e3d);_0x2e05c4['model']['change'](_0x48ee41=>{if('$graveyard'===_0x23d4b2['root']['rootName']){_0x2e05c4['execute']('insertImage',{'imageType':_0x23d4b2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x23d4b2['getAttributes']()),'uploadcareImageId':_0x226b20,'src':_0x54cd74,'sources':_0x4b77c5,'width':_0x453e3d,'height':_0x418c53}});const _0x4db39a=_0x23d4b2['getChildren']();_0x23d4b2=_0x2e05c4['model']['document']['selection']['getSelectedElement']();for(const _0x114d47 of _0x4db39a)_0x48ee41['append'](_0x48ee41['cloneElement'](_0x114d47),_0x23d4b2);}else _0x48ee41['setSelection'](_0x23d4b2,'on'),_0x2e05c4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x23d4b2['getAttributes']()),'uploadcareImageId':_0x226b20,'src':_0x54cd74,'sources':_0x4b77c5,'width':_0x453e3d,'height':_0x418c53},_0x23d4b2);_0x48ee41['setSelection'](_0x23d4b2,'on');});}async['_getImageAsFile'](_0x5801e3){const _0x2e4f8b=_0x51fda7['window'],_0x162dc8=_0x51fda7['document']['location']['href'],_0xf4ec83=new _0x2e4f8b['URL'](_0x5801e3['getAttribute']('src'),_0x162dc8);if('data:'===_0xf4ec83['protocol']){const _0x2786d9=_0xf4ec83['href']['split'](','),_0x556d66=_0x2786d9[0x0]['match'](/:(.*?);/)[0x1],_0x52fb50=_0x556d66['split']('/')[0x1],_0x2df3c0=_0x2e4f8b['atob'](_0x2786d9[_0x2786d9['length']-0x1]);let _0x1d3abd=_0x2df3c0['length'];const _0x154c45=new _0x2e4f8b['Uint8Array'](_0x1d3abd);for(;_0x1d3abd--;)_0x154c45[_0x1d3abd]=_0x2df3c0['charCodeAt'](_0x1d3abd);return new _0x2e4f8b['File']([_0x154c45],'image.'+_0x52fb50,{'type':_0x556d66});}const _0x487a6d=_0xf4ec83['href']['split']('/'),_0x5e4ce5=_0x487a6d[_0x487a6d['length']-0x1],_0x13873c=_0x5e4ce5['split']('.')[0x1];return _0x2e4f8b['fetch'](_0xf4ec83['href'])['then'](_0x26792b=>_0x26792b['clone']()['blob']())['then'](_0x30a741=>new _0x2e4f8b['File']([_0x30a741],_0x5e4ce5,{'type':'image/'+_0x13873c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x468e04,_0x19b15e){const _0x1d3bc3=_0x152c,_0x238d02=_0x468e04();while(!![]){try{const _0x13e1a8=-parseInt(_0x1d3bc3(0x1c4))/0x1*(-parseInt(_0x1d3bc3(0x1c1))/0x2)+-parseInt(_0x1d3bc3(0x1c3))/0x3+-parseInt(_0x1d3bc3(0x1bd))/0x4*(parseInt(_0x1d3bc3(0x1b6))/0x5)+-parseInt(_0x1d3bc3(0x1ba))/0x6*(parseInt(_0x1d3bc3(0x1c7))/0x7)+-parseInt(_0x1d3bc3(0x1b9))/0x8+parseInt(_0x1d3bc3(0x1c0))/0x9+-parseInt(_0x1d3bc3(0x1c5))/0xa;if(_0x13e1a8===_0x19b15e)break;else _0x238d02['push'](_0x238d02['shift']());}catch(_0xe1402a){_0x238d02['push'](_0x238d02['shift']());}}}(_0xe3f0,0x78e01));import{View as _0x1efb49}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1efb49{constructor(_0x23193b,_0x1099df){const _0x34cd0f=_0x152c;super(_0x23193b);const _0x3de766=this[_0x34cd0f(0x1b7)];this[_0x34cd0f(0x1bf)](_0x34cd0f(0x1bb),''),this[_0x34cd0f(0x1c2)]({'tag':_0x34cd0f(0x1b8),'attributes':{..._0x1099df,'class':[_0x34cd0f(0x1be),_0x34cd0f(0x1c6)],'ctx-name':_0x34cd0f(0x1bc),'cdn-url':_0x3de766['to'](_0x34cd0f(0x1bb))}});}}function _0x152c(_0x29379b,_0x38bdbd){const _0xe3f0f1=_0xe3f0();return _0x152c=function(_0x152c76,_0x17d86a){_0x152c76=_0x152c76-0x1b6;let _0x5ee7be=_0xe3f0f1[_0x152c76];return _0x5ee7be;},_0x152c(_0x29379b,_0x38bdbd);}function _0xe3f0(){const _0x40797d=['imageSrc','image-edit','28JHvaMZ','uc-light','set','7442703psTQCC','2eDQhHx','setTemplate','58491CBSkwv','926923XAGZmx','1232110NRMdbd','ck-uploadcare-theme','583772wdSdHz','75eDNYXv','bindTemplate','uc-cloud-image-editor','3590432fUdVJP','48KVubLk'];_0xe3f0=function(){return _0x40797d;};return _0xe3f0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2ae1f3}from'ckeditor5/src/icons.js';import{ButtonView as _0x168f3a,IconView as _0x578c27,View as _0x3c75aa}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3c75aa{constructor(_0x4a70a5){super(_0x4a70a5);const t=_0x4a70a5['t'];this['set']('errorType',null);const _0x28c6c0=new _0x168f3a(_0x4a70a5);_0x28c6c0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x28c6c0['withText']=!0x0,_0x28c6c0['class']='ck-button-action',_0x28c6c0['on']('execute',()=>{this['fire']('retry');}),_0x28c6c0['bind']('isVisible')['to'](this,'errorType',_0x4d8743=>'NotFound'!==_0x4d8743);const _0x1989ed=new _0x578c27();_0x1989ed['content']=_0x2ae1f3,_0x1989ed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4a8128=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':[_0x1989ed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4a8128['to']('errorType',_0x3d13a9=>t('NotFound'!==_0x3d13a9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x28c6c0]},{'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 _0x4ac543,View as _0x19ec57}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x19ec57{constructor(_0xa51eda){super(_0xa51eda);const t=_0xa51eda['t'],_0x36b15c=this['bindTemplate'],_0x2eca16=new _0x4ac543();_0x2eca16['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':[_0x2eca16,{'text':_0x36b15c['to']('imageUploadProgress',_0x63ee79=>t('Loading\x20image...')+'\x20('+(_0x63ee79||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1b58e2=_0x5442;(function(_0x115507,_0x5a04d7){const _0x7c6b9e=_0x5442,_0xffeb77=_0x115507();while(!![]){try{const _0x111015=parseInt(_0x7c6b9e(0x214))/0x1+-parseInt(_0x7c6b9e(0x216))/0x2+parseInt(_0x7c6b9e(0x22a))/0x3*(parseInt(_0x7c6b9e(0x20e))/0x4)+parseInt(_0x7c6b9e(0x227))/0x5+-parseInt(_0x7c6b9e(0x203))/0x6*(-parseInt(_0x7c6b9e(0x21e))/0x7)+parseInt(_0x7c6b9e(0x21f))/0x8+parseInt(_0x7c6b9e(0x20a))/0x9*(-parseInt(_0x7c6b9e(0x202))/0xa);if(_0x111015===_0x5a04d7)break;else _0xffeb77['push'](_0xffeb77['shift']());}catch(_0x10006b){_0xffeb77['push'](_0xffeb77['shift']());}}}(_0x3865,0x6c5a3));import{View as _0xe179a2}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3ca67}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x37b785}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x12b070}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4a542c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4a542c{[_0x1b58e2(0x21c)];[_0x1b58e2(0x206)];[_0x1b58e2(0x1fd)];[_0x1b58e2(0x1fa)];[_0x1b58e2(0x21a)];constructor(_0x2ee01a,_0x1baca8,_0x2a4755){const _0x4a050b=_0x1b58e2;super(_0x2ee01a),this[_0x4a050b(0x21c)]=this[_0x4a050b(0x215)](),this[_0x4a050b(0x206)]=new _0x3ca67(_0x2ee01a),this[_0x4a050b(0x1fd)]=new _0x37b785(_0x2ee01a),this[_0x4a050b(0x1fa)]=new _0x12b070(_0x2ee01a,_0x2a4755),this[_0x4a050b(0x21a)]=new _0xe179a2(_0x2ee01a),this[_0x4a050b(0x21a)][_0x4a050b(0x20f)](this[_0x4a050b(0x20b)]()),this[_0x4a050b(0x221)](_0x4a050b(0x223),_0x1baca8),this[_0x4a050b(0x20f)]({'tag':_0x4a050b(0x1f7),'attributes':{'class':['ck',_0x4a050b(0x210),_0x4a050b(0x1f8)],'tabindex':'-1'},'children':this[_0x4a050b(0x21c)]}),this[_0x4a050b(0x226)](),this[_0x4a050b(0x205)](_0x4a050b(0x1f4),()=>{const _0x11f329=_0x4a050b;this[_0x11f329(0x1fb)](this[_0x11f329(0x220)],_0x5273c7=>{const _0x4cf721=_0x11f329;this[_0x4cf721(0x20d)](_0x5273c7);});}),this['on'](_0x4a050b(0x1f9),()=>{const _0x3aa053=_0x4a050b;this[_0x3aa053(0x226)]();}),this[_0x4a050b(0x211)]();}[_0x1b58e2(0x225)](){const _0x53f62e=_0x1b58e2;this[_0x53f62e(0x220)][_0x53f62e(0x225)]();}[_0x1b58e2(0x226)](){const _0x3a2752=_0x1b58e2;switch(this[_0x3a2752(0x21c)][_0x3a2752(0x208)](),this[_0x3a2752(0x223)]){case _0x3a2752(0x1fc):this[_0x3a2752(0x21c)][_0x3a2752(0x21d)](this[_0x3a2752(0x206)]);break;case _0x3a2752(0x209):this[_0x3a2752(0x21c)][_0x3a2752(0x21d)](this[_0x3a2752(0x1fd)]);break;case _0x3a2752(0x201):this[_0x3a2752(0x21c)][_0x3a2752(0x219)]([this[_0x3a2752(0x1fa)],this[_0x3a2752(0x21a)]]);}}[_0x1b58e2(0x1fb)](_0x2fb1f5,_0x4126e4){const _0x517781=_0x1b58e2,_0x260ccf=_0x517781(0x212),_0x53e394=_0x2fb1f5[_0x517781(0x1ff)](_0x260ccf);if(_0x53e394)return _0x4126e4(_0x53e394);const _0x372daf=new MutationObserver(_0x186a63=>{const _0x160f83=_0x517781,_0x3c48bd=_0x186a63[_0x160f83(0x1fe)](_0x3b0f18=>_0x3b0f18[_0x160f83(0x229)]===_0x2fb1f5&&_0x3b0f18[_0x160f83(0x213)][_0x160f83(0x218)]>0x0&&_0x3b0f18[_0x160f83(0x213)][0x0][_0x160f83(0x21b)][_0x160f83(0x222)]()===_0x260ccf);_0x3c48bd[_0x160f83(0x218)]&&(_0x372daf[_0x160f83(0x204)](),_0x4126e4(_0x3c48bd[0x0][_0x160f83(0x213)][0x0]));});_0x372daf[_0x517781(0x228)](_0x2fb1f5,{'childList':!0x0,'subtree':!0x0});}[_0x1b58e2(0x20d)](_0x4e4ffc){const _0x92b0d7=_0x1b58e2;_0x4e4ffc[_0x92b0d7(0x1f5)](_0x92b0d7(0x20c),_0x2b1dca=>{const _0x47a270=_0x92b0d7;this[_0x47a270(0x224)](_0x47a270(0x20c),{'imageSrc':_0x2b1dca[_0x47a270(0x1f6)][_0x47a270(0x217)]});}),_0x4e4ffc[_0x92b0d7(0x1f5)](_0x92b0d7(0x207),()=>{const _0x27d92a=_0x92b0d7;this[_0x27d92a(0x224)](_0x27d92a(0x207));});}[_0x1b58e2(0x211)](){const _0x2d0000=_0x1b58e2;this[_0x2d0000(0x1fd)]['on'](_0x2d0000(0x200),()=>{const _0x327796=_0x2d0000;this[_0x327796(0x224)](_0x327796(0x200));});}}function _0x5442(_0x4091c9,_0x157bcf){const _0x38650b=_0x3865();return _0x5442=function(_0x54425b,_0xc972b0){_0x54425b=_0x54425b-0x1f4;let _0x432fd9=_0x38650b[_0x54425b];return _0x432fd9;},_0x5442(_0x4091c9,_0x157bcf);}function _0x3865(){const _0x5bfd2f=['detail','div','ck-uploadcare-form','change:status','_editingView','_waitForImageEditorComponent','uploading','_errorView','filter','querySelector','retry','ready','1123580ZigqdC','12VSUIMh','disconnect','once','_loadingView','cancel','clear','error','144bexkUi','getFocusableElement','apply','_addUploadcareImageEditorListeners','1712512RKRSXM','setTemplate','ck-reset_all-excluded','_addErrorViewListeners','uc-cloud-image-editor','addedNodes','696819XMuihf','createCollection','1616604fWlQkp','cdnUrl','length','addMany','_focusableView','nodeName','_items','add','1138487lsgpAU','2843096IAREfF','element','set','toLowerCase','status','fire','focus','_setView','4080485JQdsTD','observe','target','6YPDSRa','render','addEventListener'];_0x3865=function(){return _0x5bfd2f;};return _0x3865();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x277a95=_0xde3e;(function(_0x2a1d5e,_0x3eb701){const _0x7dc674=_0xde3e,_0x2a2508=_0x2a1d5e();while(!![]){try{const _0x4646dc=parseInt(_0x7dc674(0x1b5))/0x1+-parseInt(_0x7dc674(0x1bf))/0x2*(parseInt(_0x7dc674(0x1c0))/0x3)+parseInt(_0x7dc674(0x1c6))/0x4*(parseInt(_0x7dc674(0x1a8))/0x5)+-parseInt(_0x7dc674(0x1c1))/0x6+-parseInt(_0x7dc674(0x1ae))/0x7+parseInt(_0x7dc674(0x1b2))/0x8*(parseInt(_0x7dc674(0x1c2))/0x9)+-parseInt(_0x7dc674(0x1b4))/0xa*(-parseInt(_0x7dc674(0x1a9))/0xb);if(_0x4646dc===_0x3eb701)break;else _0x2a2508['push'](_0x2a2508['shift']());}catch(_0x26bb3a){_0x2a2508['push'](_0x2a2508['shift']());}}}(_0x4aa8,0xe5f66));import{Command as _0x43e17f}from'ckeditor5/src/core.js';function _0x4aa8(){const _0x37f93e=['unbind','execute','12734472dklonw','config','245810AZDIhq','567263fDJNWQ','imageBlock','bind','getSelectedElement','get','editor','imageEditController','document','set','refresh','2CTUriH','4384053fWkyqa','4846374faYhTg','9MEQWJn','isEnabled','model','imageInline','1668AwCPZE','isActive','_isEditable','5750FkWYYQ','583bLsRkR','element','plugins','requires','selection','5112863BIpiFK','uploadcare.allowExternalImagesEditing'];_0x4aa8=function(){return _0x37f93e;};return _0x4aa8();}import{Dialog as _0x2d0d2f}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xb27320}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5e9f68}from'../utils/editingutils.js';function _0xde3e(_0x5e0531,_0x3c64e3){const _0x4aa831=_0x4aa8();return _0xde3e=function(_0xde3e7c,_0x51b4e1){_0xde3e7c=_0xde3e7c-0x1a8;let _0x196b7d=_0x4aa831[_0xde3e7c];return _0x196b7d;},_0xde3e(_0x5e0531,_0x3c64e3);}export class UploadcareImageEditCommand extends _0x43e17f{[_0x277a95(0x1bb)];static get[_0x277a95(0x1ac)](){return[_0x2d0d2f];}[_0x277a95(0x1c8)];constructor(_0x3357b3){const _0x3a67d6=_0x277a95;super(_0x3357b3),this[_0x3a67d6(0x1bb)]=void 0x0,this[_0x3a67d6(0x1c8)]=_0x5e9f68(_0x3357b3[_0x3a67d6(0x1b3)][_0x3a67d6(0x1b9)](_0x3a67d6(0x1af))||[]),this[_0x3a67d6(0x1bd)]({'isActive':!0x1});}[_0x277a95(0x1be)](){const _0x4006c3=_0x277a95,_0x54668f=this[_0x4006c3(0x1ba)][_0x4006c3(0x1c4)][_0x4006c3(0x1bc)][_0x4006c3(0x1ad)][_0x4006c3(0x1b8)]();this[_0x4006c3(0x1c3)]=this[_0x4006c3(0x1c8)](_0x54668f);}[_0x277a95(0x1b1)](){const _0x38d7c5=_0x277a95;this[_0x38d7c5(0x1bb)]&&(this[_0x38d7c5(0x1b0)](_0x38d7c5(0x1c7)),this[_0x38d7c5(0x1bb)]=void 0x0);const _0x5f3882=this[_0x38d7c5(0x1ba)][_0x38d7c5(0x1c4)][_0x38d7c5(0x1bc)][_0x38d7c5(0x1ad)][_0x38d7c5(0x1b8)]();_0x5f3882&&(_0x5f3882['is'](_0x38d7c5(0x1aa),_0x38d7c5(0x1b6))||_0x5f3882['is'](_0x38d7c5(0x1aa),_0x38d7c5(0x1c5)))&&(this[_0x38d7c5(0x1bb)]=new _0xb27320(this[_0x38d7c5(0x1ba)],this[_0x38d7c5(0x1ba)][_0x38d7c5(0x1ab)][_0x38d7c5(0x1b9)](_0x2d0d2f),_0x5f3882),this[_0x38d7c5(0x1b7)](_0x38d7c5(0x1c7))['to'](this[_0x38d7c5(0x1bb)],_0x38d7c5(0x1c7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4402be=_0x3924;function _0x5421(){const _0x27c611=['requires','7856jKsVJa','9455873wPNsEd','13563LHENuS','73438030WjRNnp','add','init','commands','5942785kuGdOv','uploadcareImageReplace','uploadcareImageEdit','4MrmeBb','ImageUtils','pluginName','isPremiumPlugin','667873VVUhtT','ImageEditing','11GOkPYV','525232ebFowm','isOfficialPlugin','6fKEtcT','3949140FUBGdJ','UploadcareImageEditEditing'];_0x5421=function(){return _0x27c611;};return _0x5421();}(function(_0x4e6cc4,_0x392a88){const _0x5d3616=_0x3924,_0x1c660c=_0x4e6cc4();while(!![]){try{const _0x273ec2=parseInt(_0x5d3616(0xa7))/0x1*(-parseInt(_0x5d3616(0xa3))/0x2)+-parseInt(_0x5d3616(0xad))/0x3+parseInt(_0x5d3616(0xaa))/0x4+-parseInt(_0x5d3616(0xa0))/0x5*(parseInt(_0x5d3616(0xac))/0x6)+-parseInt(_0x5d3616(0xb1))/0x7+parseInt(_0x5d3616(0xb0))/0x8*(-parseInt(_0x5d3616(0xb2))/0x9)+-parseInt(_0x5d3616(0xb3))/0xa*(-parseInt(_0x5d3616(0xa9))/0xb);if(_0x273ec2===_0x392a88)break;else _0x1c660c['push'](_0x1c660c['shift']());}catch(_0x749147){_0x1c660c['push'](_0x1c660c['shift']());}}}(_0x5421,0xc4383));import{Plugin as _0x34d804}from'ckeditor5/src/core.js';import{Notification as _0x10d063}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x38b53f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x250b8d}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x30eaa4}from'../uploadcareediting.js';function _0x3924(_0x30669c,_0x1a9307){const _0x54212f=_0x5421();return _0x3924=function(_0x3924dc,_0x56508d){_0x3924dc=_0x3924dc-0x9d;let _0x34193d=_0x54212f[_0x3924dc];return _0x34193d;},_0x3924(_0x30669c,_0x1a9307);}export class UploadcareImageEditEditing extends _0x34d804{static get[_0x4402be(0xa5)](){const _0x3fd45c=_0x4402be;return _0x3fd45c(0xae);}static get[_0x4402be(0xaf)](){const _0x49d276=_0x4402be;return[_0x30eaa4,_0x10d063,_0x49d276(0xa4),_0x49d276(0xa8)];}static get[_0x4402be(0xab)](){return!0x0;}static get[_0x4402be(0xa6)](){return!0x0;}[_0x4402be(0x9e)](){const _0x745203=_0x4402be,{editor:_0x207392}=this;_0x207392[_0x745203(0x9f)][_0x745203(0x9d)](_0x745203(0xa2),new _0x38b53f(_0x207392)),_0x207392[_0x745203(0x9f)][_0x745203(0x9d)](_0x745203(0xa1),new _0x250b8d(_0x207392));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1e9935}from'ckeditor5/src/core.js';import{ButtonView as _0x5343af}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x40674f}from'ckeditor5/src/icons.js';import{createElement as _0x42565c}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 _0x1e9935{['_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 _0x1fac94=this['editor'];_0x1fac94['ui']['componentFactory']['add']('uploadcareImageEdit',_0x305a46=>{const _0x2cfa1=_0x1fac94['commands']['get']('uploadcareImageEdit'),_0x21eccd=new _0x5343af(_0x305a46),t=_0x305a46['t'];return _0x21eccd['set']({'icon':_0x40674f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x21eccd['bind']('isEnabled')['to'](_0x2cfa1),_0x21eccd['bind']('isOn')['to'](_0x2cfa1,'isActive'),this['listenTo'](_0x21eccd,'execute',()=>{_0x1fac94['execute']('uploadcareImageEdit'),_0x1fac94['editing']['view']['focus']();}),_0x21eccd;}),this['_initConfig']();}['_initConfig'](){const _0x1ce083=_0x42565c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1ce083),this['listenTo'](this['editor'],'destroy',()=>{_0x1ce083['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3ebb(_0x593af9,_0x255499){const _0x4a9a04=_0x4a9a();return _0x3ebb=function(_0x3ebb2e,_0x16f101){_0x3ebb2e=_0x3ebb2e-0x19c;let _0x4749c9=_0x4a9a04[_0x3ebb2e];return _0x4749c9;},_0x3ebb(_0x593af9,_0x255499);}const _0x3154a4=_0x3ebb;(function(_0x51c361,_0x4dc6ab){const _0x8b6403=_0x3ebb,_0x273c1f=_0x51c361();while(!![]){try{const _0x4d2355=-parseInt(_0x8b6403(0x1a6))/0x1+parseInt(_0x8b6403(0x1ac))/0x2+parseInt(_0x8b6403(0x1aa))/0x3+parseInt(_0x8b6403(0x1a7))/0x4*(-parseInt(_0x8b6403(0x1a3))/0x5)+parseInt(_0x8b6403(0x1a4))/0x6*(-parseInt(_0x8b6403(0x19f))/0x7)+-parseInt(_0x8b6403(0x1a8))/0x8*(-parseInt(_0x8b6403(0x1b2))/0x9)+parseInt(_0x8b6403(0x1a2))/0xa;if(_0x4d2355===_0x4dc6ab)break;else _0x273c1f['push'](_0x273c1f['shift']());}catch(_0x55e6f7){_0x273c1f['push'](_0x273c1f['shift']());}}}(_0x4a9a,0x4dd6d));import{Command as _0x2b6681}from'ckeditor5/src/core.js';function _0x4a9a(){const _0x21031a=['207IsTIIw','removeAttribute','document','editor','model','selection','imageInline','3642527WFIeuy','change','isEnabled','9090670iHQTAL','23635WVaIOW','6DrBaIp','getSelectedElement','165003cJAsGH','244PoxeYt','11904LwUTtp','imageBlock','366285VvQrsq','execute','454308Mdzzpr','srcset','setAttributes','sizes','refresh','element'];_0x4a9a=function(){return _0x21031a;};return _0x4a9a();}export class UploadcareImageReplaceCommand extends _0x2b6681{[_0x3154a4(0x1b0)](){const _0x539124=_0x3154a4,_0x23d2b3=this[_0x539124(0x1b5)][_0x539124(0x19c)][_0x539124(0x1b4)][_0x539124(0x19d)][_0x539124(0x1a5)]();this[_0x539124(0x1a1)]=Boolean(_0x23d2b3&&(_0x23d2b3['is'](_0x539124(0x1b1),_0x539124(0x1a9))||_0x23d2b3['is'](_0x539124(0x1b1),_0x539124(0x19e))));}[_0x3154a4(0x1ab)](_0x3f804c){const _0x485121=_0x3154a4,_0xb8e72e=this[_0x485121(0x1b5)][_0x485121(0x19c)][_0x485121(0x1b4)][_0x485121(0x19d)][_0x485121(0x1a5)]();this[_0x485121(0x1b5)][_0x485121(0x19c)][_0x485121(0x1a0)](_0x1b4cae=>{const _0x104dfe=_0x485121;_0x1b4cae[_0x104dfe(0x1ae)](_0x3f804c,_0xb8e72e),_0x1b4cae[_0x104dfe(0x1b3)](_0x104dfe(0x1ad),_0xb8e72e),_0x1b4cae[_0x104dfe(0x1b3)](_0x104dfe(0x1af),_0xb8e72e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x212a62=_0x374c;function _0x26a2(){var _0x428155=['requires','1071090oqvrLw','isOfficialPlugin','pluginName','1231135uCjMPI','isPremiumPlugin','233653yeJAED','UploadcareImageEdit','12zGZNvS','604398YRmeqR','6527925mksRKi','28ZlSFBP','928172sgXCzF','367976nqeCMo'];_0x26a2=function(){return _0x428155;};return _0x26a2();}(function(_0x46755b,_0x4fedea){var _0x3dc12c=_0x374c,_0x58f9cb=_0x46755b();while(!![]){try{var _0x2d4f08=parseInt(_0x3dc12c(0x191))/0x1+parseInt(_0x3dc12c(0x194))/0x2+-parseInt(_0x3dc12c(0x18c))/0x3+-parseInt(_0x3dc12c(0x189))/0x4+parseInt(_0x3dc12c(0x18f))/0x5*(-parseInt(_0x3dc12c(0x193))/0x6)+parseInt(_0x3dc12c(0x188))/0x7*(parseInt(_0x3dc12c(0x18a))/0x8)+parseInt(_0x3dc12c(0x187))/0x9;if(_0x2d4f08===_0x4fedea)break;else _0x58f9cb['push'](_0x58f9cb['shift']());}catch(_0x162070){_0x58f9cb['push'](_0x58f9cb['shift']());}}}(_0x26a2,0x58c76));import{Plugin as _0xeb7d6a}from'ckeditor5/src/core.js';function _0x374c(_0x46baad,_0x41f15c){var _0x26a29e=_0x26a2();return _0x374c=function(_0x374c76,_0x19414c){_0x374c76=_0x374c76-0x187;var _0x32c155=_0x26a29e[_0x374c76];return _0x32c155;},_0x374c(_0x46baad,_0x41f15c);}import{UploadcareImageEditEditing as _0x31cec3}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x35ad42}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0xeb7d6a{static get[_0x212a62(0x18e)](){var _0x1558cf=_0x212a62;return _0x1558cf(0x192);}static get[_0x212a62(0x18b)](){return[_0x31cec3,_0x35ad42];}static get[_0x212a62(0x18d)](){return!0x0;}static get[_0x212a62(0x190)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4f00(_0x21bd6b,_0x1dcce9){const _0x496c39=_0x496c();return _0x4f00=function(_0x4f0065,_0x4acb4a){_0x4f0065=_0x4f0065-0xe5;let _0x395af8=_0x496c39[_0x4f0065];return _0x395af8;},_0x4f00(_0x21bd6b,_0x1dcce9);}const _0xc00db9=_0x4f00;(function(_0xd769d8,_0xdfc0d1){const _0x3b28be=_0x4f00,_0x2e8639=_0xd769d8();while(!![]){try{const _0xb60fc7=-parseInt(_0x3b28be(0xfe))/0x1+parseInt(_0x3b28be(0xf0))/0x2*(-parseInt(_0x3b28be(0x108))/0x3)+-parseInt(_0x3b28be(0x130))/0x4*(-parseInt(_0x3b28be(0x12d))/0x5)+-parseInt(_0x3b28be(0x11e))/0x6+-parseInt(_0x3b28be(0xfa))/0x7*(parseInt(_0x3b28be(0x10a))/0x8)+-parseInt(_0x3b28be(0x123))/0x9+parseInt(_0x3b28be(0xe7))/0xa*(parseInt(_0x3b28be(0x102))/0xb);if(_0xb60fc7===_0xdfc0d1)break;else _0x2e8639['push'](_0x2e8639['shift']());}catch(_0x1ea346){_0x2e8639['push'](_0x2e8639['shift']());}}}(_0x496c,0x9e935));function _0x496c(){const _0x151802=['trialLimit','_getIntegrationKey','uploadcareLicenseKeyInvalid','invalid','icon','Facebook','forEach','2IpXsgN','licenseKey','_normalizeConfigSourceList','expired','Insert','uploadcareLicenseKeyDomainLimit','bind','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyTrialLimit','Local','126245isLHxI','push','Uploadcare','_showLicenseError','91014aXJDoq','_createMenuBarButtons','text','featureNotAllowed','24838RTgjMB','afterInit','url','destroy','evaluationLimit','plugins','384444qcjuGd','isPremiumPlugin','88gngVmM','entries','assetManager','_createDropdownButtons','isImageSelected','pluginName','withText','commands','type','URL','UploadcareUI','usageLimit','GPhotos','label','_createButton','has','editor','upload','_licenseKeyCheckInterval','Dropbox','4381344wNtaHT','uploadcareLicenseKeyExpired','shortText','uploadcareLicenseKeyValid','map','3761451vGRvnU','execute','locale','reduce','ImageInsertUI','isEnabled','get','uploadcare','_createToolbarButton','OneDrive','5vRfnaL','config','uploadcareLicenseKeyNotAllowed','5013308qVALFy','domainLimit','tooltip','uploadcare.uploader.sourceList','init','Replace','GDrive','uploadcareLicenseKeyEvaluationLimit','registerIntegration','4260LLUOqG','isOfficialPlugin'];_0x496c=function(){return _0x151802;};return _0x496c();}import{Plugin as _0x19f7aa}from'ckeditor5/src/core.js';import{IconDropbox as _0x33f04a,IconFacebook as _0x16923d,IconGoogleDrive as _0x5c7c49,IconGooglePhotos as _0xbce05,IconUploadcareImageUpload as _0x15c3b6,IconUploadcareLink as _0x3a28f6,IconOneDrive as _0x18e063}from'ckeditor5/src/icons.js';import{ButtonView as _0x398e68,MenuBarMenuListItemButtonView as _0x3f18f8}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xfe8edf}from'./uploadcareconfig.js';import{getTranslation as _0x4ce17e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x19f7aa{[_0xc00db9(0xf1)];[_0xc00db9(0x11c)];static get[_0xc00db9(0x10f)](){const _0xa399f8=_0xc00db9;return _0xa399f8(0x114);}static get[_0xc00db9(0xe8)](){return!0x0;}static get[_0xc00db9(0x109)](){return!0x0;}[_0xc00db9(0x134)](){const _0x82c503=_0xc00db9;this[_0x82c503(0xf1)]=this[_0x82c503(0x11a)][_0x82c503(0x12e)][_0x82c503(0x129)](_0x82c503(0xf1));const _0x1e7b4f=this[_0x82c503(0x11a)];this[_0x82c503(0x11c)]=setInterval(()=>{const _0x52d055=_0x82c503;let _0x19be75;for(const _0x3be026 in _0x1e7b4f){const _0x46b130=_0x3be026,_0x67120a=_0x1e7b4f[_0x46b130];if(_0x52d055(0x121)==_0x67120a||_0x52d055(0xeb)==_0x67120a||_0x52d055(0x11f)==_0x67120a||_0x52d055(0xf5)==_0x67120a||_0x52d055(0x12f)==_0x67120a||_0x52d055(0xe5)==_0x67120a||_0x52d055(0xf8)==_0x67120a||_0x52d055(0xf7)==_0x67120a){delete _0x1e7b4f[_0x46b130],_0x19be75=_0x67120a,clearInterval(this[_0x52d055(0x11c)]),this[_0x52d055(0x11c)]=void 0x0;break;}}_0x52d055(0xeb)==_0x19be75&&_0x1e7b4f[_0x52d055(0xfd)](_0x52d055(0xec)),_0x52d055(0x11f)==_0x19be75&&_0x1e7b4f[_0x52d055(0xfd)](_0x52d055(0xf3)),_0x52d055(0xf5)==_0x19be75&&_0x1e7b4f[_0x52d055(0xfd)](_0x52d055(0x131)),_0x52d055(0x12f)==_0x19be75&&_0x1e7b4f[_0x52d055(0xfd)](_0x52d055(0x101),_0x52d055(0xfc)),_0x52d055(0xe5)==_0x19be75&&_0x1e7b4f[_0x52d055(0xfd)](_0x52d055(0x106)),_0x52d055(0xf8)==_0x19be75&&_0x1e7b4f[_0x52d055(0xfd)](_0x52d055(0xe9)),_0x52d055(0xf7)==_0x19be75&&_0x1e7b4f[_0x52d055(0xfd)](_0x52d055(0x115));},0x3e8);}[_0xc00db9(0x103)](){const _0x5ce0c6=_0xc00db9,{editor:_0x1c2cb8}=this,_0x16eb54=_0x1c2cb8[_0x5ce0c6(0x111)][_0x5ce0c6(0x129)](_0x5ce0c6(0x12a));if(!_0x16eb54)return;const _0x2ea678=this[_0x5ce0c6(0xf2)](_0x1c2cb8[_0x5ce0c6(0x12e)][_0x5ce0c6(0x129)](_0x5ce0c6(0x133)))[_0x5ce0c6(0x126)]((_0x3e0dc6,_0x24ba3c)=>{const _0x8c8471=_0x5ce0c6,_0x405306=this[_0x8c8471(0xea)](_0x24ba3c[_0x8c8471(0x112)]);return _0x3e0dc6[_0x405306]||(_0x3e0dc6[_0x405306]=[]),_0x3e0dc6[_0x405306][_0x8c8471(0xfb)](_0x24ba3c),_0x3e0dc6;},{});_0x1c2cb8[_0x5ce0c6(0x107)][_0x5ce0c6(0x119)](_0x5ce0c6(0x127))&&_0x1c2cb8[_0x5ce0c6(0x111)][_0x5ce0c6(0x129)](_0x5ce0c6(0x12a))&&Object[_0x5ce0c6(0x10b)](_0x2ea678)[_0x5ce0c6(0xef)](([_0x2d3ae6,_0x37f9a2])=>{const _0x210743=_0x5ce0c6;_0x1c2cb8[_0x210743(0x107)][_0x210743(0x129)](_0x210743(0x127))[_0x210743(0xe6)]({'name':_0x2d3ae6,'observable':()=>_0x16eb54,'buttonViewCreator':()=>this[_0x210743(0x12b)](_0x37f9a2),'formViewCreator':()=>this[_0x210743(0x10d)](_0x37f9a2),'menuBarButtonViewCreator':()=>this[_0x210743(0xff)](_0x37f9a2),'override':_0x210743(0x10c)!==_0x2d3ae6});});}[_0xc00db9(0x105)](){const _0x555ff4=_0xc00db9;super[_0x555ff4(0x105)](),this[_0x555ff4(0x11c)]&&clearInterval(this[_0x555ff4(0x11c)]);}[_0xc00db9(0xf2)](_0xaa6384){const _0x564f64=_0xc00db9,{locale:_0x1e7dca}=this[_0x564f64(0x11a)];return _0xaa6384[_0x564f64(0x122)](_0x4e151b=>{const _0x154dc9=_0x564f64,_0x2c9cf7=_0x4ce17e(_0x1e7dca,_0x4e151b,_0x154dc9(0xf4));switch(_0x4e151b){case _0xfe8edf[_0x154dc9(0xf9)]:return{'icon':_0x15c3b6,'type':_0xfe8edf[_0x154dc9(0xf9)],..._0x2c9cf7};case _0xfe8edf[_0x154dc9(0x113)]:return{'icon':_0x3a28f6,'type':_0xfe8edf[_0x154dc9(0x113)],..._0x2c9cf7};case _0xfe8edf[_0x154dc9(0x11d)]:return{'icon':_0x33f04a,'type':_0xfe8edf[_0x154dc9(0x11d)],..._0x2c9cf7};case _0xfe8edf[_0x154dc9(0xee)]:return{'icon':_0x16923d,'type':_0xfe8edf[_0x154dc9(0xee)],..._0x2c9cf7};case _0xfe8edf[_0x154dc9(0x136)]:return{'icon':_0x5c7c49,'type':_0xfe8edf[_0x154dc9(0x136)],..._0x2c9cf7};case _0xfe8edf[_0x154dc9(0x116)]:return{'icon':_0xbce05,'type':_0xfe8edf[_0x154dc9(0x116)],..._0x2c9cf7};case _0xfe8edf[_0x154dc9(0x12c)]:return{'icon':_0x18e063,'type':_0xfe8edf[_0x154dc9(0x12c)],..._0x2c9cf7};}});}[_0xc00db9(0xea)](_0x4c2b6b){const _0x45f57e=_0xc00db9;switch(_0x4c2b6b){case _0xfe8edf[_0x45f57e(0xf9)]:return _0x45f57e(0x11b);case _0xfe8edf[_0x45f57e(0x113)]:return _0x45f57e(0x104);default:return _0x45f57e(0x10c);}}[_0xc00db9(0x118)](_0xe117d8,_0x36c015){const _0x499d06=_0xc00db9,_0x59187d=this[_0x499d06(0x11a)],_0x515dd8=new _0xe117d8(_0x59187d[_0x499d06(0x125)]),_0x58c8f6=_0x59187d[_0x499d06(0x111)][_0x499d06(0x129)](_0x499d06(0x12a));return _0x515dd8[_0x499d06(0xf6)](_0x499d06(0x128))['to'](_0x58c8f6),_0x515dd8['on'](_0x499d06(0x124),()=>{const _0x5d29b3=_0x499d06;_0x58c8f6[_0x5d29b3(0x124)](_0x36c015);}),_0x515dd8;}[_0xc00db9(0x12b)](_0x47173e){const _0x4863c3=_0xc00db9,{locale:_0x2ab71c}=this[_0x4863c3(0x11a)],_0x5d4d29=this[_0x4863c3(0x11a)][_0x4863c3(0x107)][_0x4863c3(0x129)](_0x4863c3(0x127)),_0x3c76ba=_0x47173e[0x0],_0x5e60f6=this[_0x4863c3(0x118)](_0x398e68,_0x3c76ba[_0x4863c3(0x112)]);return _0x5e60f6[_0x4863c3(0xed)]=_0x3c76ba[_0x4863c3(0xed)],_0x5e60f6[_0x4863c3(0xf6)](_0x4863c3(0x117))['to'](_0x5d4d29,_0x4863c3(0x10e),_0x232d29=>_0x4ce17e(_0x2ab71c,_0x3c76ba[_0x4863c3(0x112)],_0x232d29?_0x4863c3(0x135):_0x4863c3(0xf4))[_0x4863c3(0x100)]),_0x5e60f6[_0x4863c3(0x132)]=!0x0,_0x5e60f6;}[_0xc00db9(0x10d)](_0x746a4e){const _0xbb1041=_0xc00db9,{locale:_0x3f82e4}=this[_0xbb1041(0x11a)],_0xb3c28e=this[_0xbb1041(0x11a)][_0xbb1041(0x107)][_0xbb1041(0x129)](_0xbb1041(0x127));return _0x746a4e[_0xbb1041(0x122)](_0x1d9acb=>{const _0x1d89a1=_0xbb1041,_0x13b3e1=this[_0x1d89a1(0x118)](_0x398e68,_0x1d9acb[_0x1d89a1(0x112)]);return _0x13b3e1[_0x1d89a1(0x110)]=!0x0,_0x13b3e1[_0x1d89a1(0xed)]=_0x1d9acb[_0x1d89a1(0xed)],_0x13b3e1[_0x1d89a1(0xf6)](_0x1d89a1(0x117))['to'](_0xb3c28e,_0x1d89a1(0x10e),_0x550eb8=>_0x4ce17e(_0x3f82e4,_0x1d9acb[_0x1d89a1(0x112)],_0x550eb8?_0x1d89a1(0x135):_0x1d89a1(0xf4))[_0x1d89a1(0x100)]),_0x13b3e1;});}[_0xc00db9(0xff)](_0x293490){const _0x4b3064=_0xc00db9;return _0x293490[_0x4b3064(0x122)](_0xa5f62c=>{const _0x356087=_0x4b3064,_0x5398ca=this[_0x356087(0x118)](_0x3f18f8,_0xa5f62c[_0x356087(0x112)]);return _0x5398ca[_0x356087(0xed)]=_0xa5f62c[_0x356087(0xed)],_0x5398ca[_0x356087(0x117)]=_0xa5f62c[_0x356087(0x120)],_0x5398ca;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3ece3f}from'ckeditor5/src/core.js';import{FileRepository as _0x375589}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xdced77}from'./uploadcareediting.js';import{UploadUtils as _0x5ec036}from'./utils/uploadutils.js';import{getImageUrls as _0x43ff20}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3ece3f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x375589,_0xdced77];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x6016e9=this['editor'];if(!!!_0x6016e9['config']['get']('uploadcare'))return;_0x6016e9['plugins']['get'](_0x375589)['createUploadAdapter']=_0x1792c2=>new A(_0x1792c2,_0x6016e9),_0x6016e9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x53e15d,{imageElement:_0x1f8bdb,data:_0x6a5db0})=>{_0x6016e9['model']['change'](_0x26d60d=>{_0x26d60d['setAttribute']('uploadcareImageId',_0x6a5db0['uploadcareImageId'],_0x1f8bdb);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x2cadec,_0xb0b615){this['loader']=_0x2cadec,this['editor']=_0xb0b615,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5b79f9=this['editor']['config']['get']('uploadcare.pubkey'),_0x305493=await this['loader']['file'];return _0x5ec036['upload']({'file':_0x305493,'publicKey':_0x5b79f9,'signal':this['controller']['signal'],'onProgress':_0x1bd941=>{_0x1bd941&&_0x1bd941['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1bd941['value']);}})['then'](async _0x143c0a=>{const {imageFallbackUrl:_0x22e4db,imageSources:_0x58952}=_0x43ff20(_0x143c0a['cdnUrl'],_0x143c0a['imageInfo']['width']);return{'uploadcareImageId':_0x143c0a['uuid'],'default':_0x22e4db,'sources':_0x58952};})['catch'](()=>{const _0x3256f7=t('Cannot\x20upload\x20file:')+('\x20'+_0x305493['name']+'.');return Promise['reject'](_0x3256f7);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3d51f2}from'../uploadcareconfig.js';export function getTranslation(_0x126d7d,_0x114476,_0x40b424){const t=_0x126d7d['t'],_0x554676=_0x126d7d['t'];switch(_0x114476){case _0x3d51f2['Local']:return{'text':_0x554676('Insert'===_0x40b424?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x554676('From\x20computer')};case _0x3d51f2['URL']:return{'text':'Insert'===_0x40b424?_0x554676('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x554676('Via\x20URL')};case _0x3d51f2['Dropbox']:return{'text':t('Insert'===_0x40b424?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3d51f2['Facebook']:return{'text':t('Insert'===_0x40b424?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3d51f2['GDrive']:return{'text':t('Insert'===_0x40b424?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3d51f2['GPhotos']:return{'text':t('Insert'===_0x40b424?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3d51f2['OneDrive']:return{'text':t('Insert'===_0x40b424?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x114476;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x488c(){var _0x35b0b1=['3923829zUoCcB','createCollection','focusCycler','77fKEKpE','329202Frujxg','true','1870186WxTzZY','824895FFYjTX','getFocusableElement','bindTemplate','22321856BgfUCo','forwardCycle','1919468XHKQMY','2142180txxgoO','focusTracker','fire','div'];_0x488c=function(){return _0x35b0b1;};return _0x488c();}var _0x50ef04=_0x2165;(function(_0x5a6d5a,_0x3be94f){var _0x3fc408=_0x2165,_0x27c05f=_0x5a6d5a();while(!![]){try{var _0x4757d4=-parseInt(_0x3fc408(0x13c))/0x1+-parseInt(_0x3fc408(0x13b))/0x2+parseInt(_0x3fc408(0x135))/0x3+-parseInt(_0x3fc408(0x130))/0x4+-parseInt(_0x3fc408(0x131))/0x5+parseInt(_0x3fc408(0x139))/0x6*(-parseInt(_0x3fc408(0x138))/0x7)+parseInt(_0x3fc408(0x12e))/0x8;if(_0x4757d4===_0x3be94f)break;else _0x27c05f['push'](_0x27c05f['shift']());}catch(_0x352df5){_0x27c05f['push'](_0x27c05f['shift']());}}}(_0x488c,0xc9beb));function _0x2165(_0x14230f,_0x184d82){var _0x488c95=_0x488c();return _0x2165=function(_0x21654d,_0x2d0cd2){_0x21654d=_0x21654d-0x12e;var _0x4a77d4=_0x488c95[_0x21654d];return _0x4a77d4;},_0x2165(_0x14230f,_0x184d82);}import{FocusTracker as _0x3db83c}from'ckeditor5/src/utils.js';import{View as _0x2f5f00,FocusCycler as _0x46365f}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2f5f00{[_0x50ef04(0x132)];[_0x50ef04(0x137)];constructor(_0x11bac2){var _0x434799=_0x50ef04;super(_0x11bac2),this[_0x434799(0x132)]=new _0x3db83c(),this[_0x434799(0x137)]=new _0x46365f({'focusables':this[_0x434799(0x136)](),'focusTracker':this[_0x434799(0x132)]});}[_0x50ef04(0x13d)](){var _0x2eb466=_0x50ef04;return{'tag':_0x2eb466(0x134),'attributes':{'aria-hidden':_0x2eb466(0x13a),'tabindex':'0'},'on':{'focus':this[_0x2eb466(0x13e)]['to'](()=>{var _0x386e3b=_0x2eb466;this[_0x386e3b(0x137)][_0x386e3b(0x133)](_0x386e3b(0x12f));})}};}}
|