@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251213.0 → 0.0.0-nightly-20251214.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
|
-
function _0x3252(_0x2461fe,_0x2926ac){const _0x2a992d=_0x2a99();return _0x3252=function(_0x325219,_0x56b529){_0x325219=_0x325219-0x11f;let _0x21ad65=_0x2a992d[_0x325219];return _0x21ad65;},_0x3252(_0x2461fe,_0x2926ac);}const _0x501edc=_0x3252;(function(_0x5214d8,_0x1b00ac){const _0x4d52d6=_0x3252,_0x118787=_0x5214d8();while(!![]){try{const _0x198367=parseInt(_0x4d52d6(0x131))/0x1+-parseInt(_0x4d52d6(0x170))/0x2+parseInt(_0x4d52d6(0x161))/0x3+parseInt(_0x4d52d6(0x15a))/0x4+parseInt(_0x4d52d6(0x128))/0x5+parseInt(_0x4d52d6(0x15d))/0x6*(parseInt(_0x4d52d6(0x12e))/0x7)+-parseInt(_0x4d52d6(0x155))/0x8;if(_0x198367===_0x1b00ac)break;else _0x118787['push'](_0x118787['shift']());}catch(_0x4e824b){_0x118787['push'](_0x118787['shift']());}}}(_0x2a99,0xde1f1));function _0x2a99(){const _0x5131fc=['execute','listenTo','get','cleanupImage','_configElement','isOfficialPlugin','view','body','305132JbrnBZ','ctxElement','imageBlock','_ctxElement','getSelectedElement','data-uc-image-id','selection','isRegistered','locale','getAttribute','pluginName','2264005OlPDbW','isPremiumPlugin','uploadcareImageId','replaceImageSource','UploadcareEditing','true','11076541kZMdGt','remove','_initImageProcessingIndicator','333894IbsXin','_initConfig','extend','imageInline','schema','for','insertImage','uploadcare.pubkey','map','editor','PictureEditing','querySelector','destroy','document','conversion','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','once','uploadcareImageReplace','uploader-','afterInit','uc-upload-ctx-provider','fromCharCode','commands','iconHrefResolver','_initConversion','_initCtx','render','init','add','appendChild','ucContextId','contentLanguage','uc-config','closeMax','uploadcare.uploader','configElement','17472648KEzapF','downcast','join','requires','href','1330900iTIqGi','uploadcare','upcast','6oQwxJn','#uc-icon-arrow-down','removeAttribute','editing','1634019tBsOLI','_initSchema','input[uploadcare-file-input]','elementToAttribute','model','attributeToAttribute','config'];_0x2a99=function(){return _0x5131fc;};return _0x2a99();}import{Plugin as _0x585841}from'ckeditor5/src/core.js';import{Dialog as _0x3dbd7f}from'ckeditor5/src/ui.js';import{createElement as _0x26676a,global as _0x3093d1,uid as _0x3ea4f8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4589b7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x251b39}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3abb08}from'./utils/editingutils.js';export class UploadcareEditing extends _0x585841{[_0x501edc(0x16c)]=null;[_0x501edc(0x120)]=null;static get[_0x501edc(0x127)](){const _0x2f191e=_0x501edc;return _0x2f191e(0x12c);}static get[_0x501edc(0x158)](){const _0x3a68e4=_0x501edc;return[_0x3a68e4(0x13b),_0x251b39,_0x3dbd7f];}static get[_0x501edc(0x16d)](){return!0x0;}static get[_0x501edc(0x129)](){return!0x0;}[_0x501edc(0x14f)];get[_0x501edc(0x154)](){const _0x18673b=_0x501edc;return this[_0x18673b(0x16c)];}get[_0x501edc(0x171)](){const _0x1a1b1f=_0x501edc;return this[_0x1a1b1f(0x120)];}constructor(_0x51b14d){const _0x169c14=_0x501edc;super(_0x51b14d),this[_0x169c14(0x14f)]=_0x3ea4f8();}[_0x501edc(0x14c)](){const _0x439b45=_0x501edc,_0x5cad7f=this[_0x439b45(0x13a)];_0x5cad7f[_0x439b45(0x147)][_0x439b45(0x14d)](_0x439b45(0x15b),new _0x4589b7(_0x5cad7f));}[_0x501edc(0x144)](){const _0xc9ca8d=_0x501edc;this[_0xc9ca8d(0x162)](),this[_0xc9ca8d(0x149)](),this[_0xc9ca8d(0x132)](),this[_0xc9ca8d(0x14a)](),this[_0xc9ca8d(0x130)](),this[_0xc9ca8d(0x169)](this[_0xc9ca8d(0x13a)],_0xc9ca8d(0x13d),()=>{const _0x172219=_0xc9ca8d;this[_0x172219(0x16c)]&&(this[_0x172219(0x16c)][_0x172219(0x12f)](),this[_0x172219(0x16c)]=null),this[_0x172219(0x120)]&&(this[_0x172219(0x120)][_0x172219(0x12f)](),this[_0x172219(0x120)]=null);const _0x51fb61=_0x3093d1[_0x172219(0x13e)][_0x172219(0x13c)](_0x172219(0x163));_0x51fb61&&_0x51fb61[_0x172219(0x12f)]();}),async function(_0x4095a5){const _0x374781=_0x2b1bb7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5e678e=0x535f8c3a,_0x215289=0x5358f7f2^_0x5e678e,_0x4a055c=window[_0x2b1bb7([0x44,0x61,0x74,0x65])][_0x2b1bb7([0x6e,0x6f,0x77])](),_0x3fd1cd=_0x4095a5[_0x2b1bb7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x536c8a=new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d69d=>{_0x3fd1cd[_0x2b1bb7([0x6f,0x6e,0x63,0x65])](_0x2b1bb7([0x72,0x65,0x61,0x64,0x79]),_0x51d69d);}),_0x5b0e78={[_0x2b1bb7([0x6b,0x74,0x79])]:_0x2b1bb7([0x45,0x43]),[_0x2b1bb7([0x75,0x73,0x65])]:_0x2b1bb7([0x73,0x69,0x67]),[_0x2b1bb7([0x63,0x72,0x76])]:_0x2b1bb7([0x50,0x2d,0x32,0x35,0x36]),[_0x2b1bb7([0x78])]:_0x2b1bb7([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]),[_0x2b1bb7([0x79])]:_0x2b1bb7([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]),[_0x2b1bb7([0x61,0x6c,0x67])]:_0x2b1bb7([0x45,0x53,0x32,0x35,0x36])},_0x5bb8e5=_0x3fd1cd[_0x2b1bb7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b1bb7([0x67,0x65,0x74])](_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x365a57(){let _0x26f341,_0x5edf13=null,_0xbe46d1=null;try{if(_0x5bb8e5==_0x2b1bb7([0x47,0x50,0x4c]))return _0x2b1bb7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26f341=_0x5195ae(),!_0x26f341)return _0x2b1bb7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26f341[_0x2b1bb7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbe46d1=_0x186347(_0x26f341[_0x2b1bb7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26f341[_0x2b1bb7([0x6a,0x74,0x69])])),await _0x1d0d98()?_0x5ddba3()?_0x383392()?_0x2b1bb7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x121c93()?(_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b1bb7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5edf13=_0x229cd3(_0x2b1bb7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b1bb7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5edf13=_0x229cd3(_0x2b1bb7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xea3a43()):_0x2b1bb7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b1bb7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b1bb7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b1bb7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x383392(){const _0x10abe1=[_0x2b1bb7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b1bb7([0x74,0x72,0x69,0x61,0x6c])][_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a055c/0x3e8:0xe10*_0x215289;return _0x26f341[_0x2b1bb7([0x65,0x78,0x70])]<_0x10abe1;}function _0x5ddba3(){const _0x537cb3=_0x26f341[_0x2b1bb7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x537cb3&&(!!_0x537cb3[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1bb7([0x2a]))||!!_0x537cb3[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1bb7([0x55,0x50,0x4c,0x43])));}function _0x121c93(){const _0x166321=_0x3252,_0x21d90b=_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21d90b||0x0==_0x21d90b[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a2d0d}=new URL(window[_0x2b1bb7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x166321(0x159)]);if(_0x21d90b[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2d0d))return!0x0;const _0x180161=_0x4a2d0d[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e]));return _0x21d90b[_0x2b1bb7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x159738=>_0x159738[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1bb7([0x2a])))[_0x2b1bb7([0x6d,0x61,0x70])](_0x4682bd=>_0x4682bd[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e])))[_0x2b1bb7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19dd3c=>_0x19dd3c[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x180161[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b1bb7([0x6d,0x61,0x70])](_0x2a40db=>Array(_0x180161[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a40db[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b1bb7([0x66,0x69,0x6c,0x6c])](_0x2a40db[0x0]===_0x2b1bb7([0x2a])?_0x2b1bb7([0x2a]):'')[_0x2b1bb7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a40db))[_0x2b1bb7([0x73,0x6f,0x6d,0x65])](_0x33e2b6=>_0x180161[_0x2b1bb7([0x65,0x76,0x65,0x72,0x79])]((_0x5461a9,_0x134ce3)=>_0x33e2b6[_0x134ce3]===_0x5461a9||_0x33e2b6[_0x134ce3]===_0x2b1bb7([0x2a])));}function _0xea3a43(){return _0x5edf13&&_0xbe46d1?new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e04e7,_0x5d0e97)=>{_0x5edf13[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x3e04e7,_0x5d0e97),_0xbe46d1[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x50aa6e=>{_0x50aa6e!=_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64])&&_0x3e04e7(_0x50aa6e);},_0x5d0e97);}):_0x5edf13||_0xbe46d1||_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x186347(_0x16db67,_0x223f3f){return new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e2bb9=>{if(_0x2551f0())return _0x4e2bb9(_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64]));_0x1dd7cc(),_0x3fd1cd[_0x2b1bb7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b1bb7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ae65e=!0x1;const _0x25ee7d=_0x3ea4f8();function _0x31a4e5(_0x5af295){return!!_0x5af295&&(typeof _0x5af295===_0x2b1bb7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5af295===_0x2b1bb7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5af295[_0x2b1bb7([0x74,0x68,0x65,0x6e])]===_0x2b1bb7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5af295[_0x2b1bb7([0x63,0x61,0x74,0x63,0x68])]===_0x2b1bb7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1eaca6(_0x3aa76e){_0x609dd4(_0x3aa76e)[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x30173d=>{if(!_0x30173d||_0x30173d[_0x2b1bb7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b1bb7([0x6f,0x6b]))return _0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2aebec(_0x2bfb85(_0x25ee7d+_0x223f3f))!=_0x30173d[_0x2b1bb7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x5a1074=>(_0x3f29fc(),_0x5a1074),()=>{const _0x4f14ac=_0x5c6890();return null==_0x4f14ac?(_0x3f29fc(),_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64])):_0x2b1bb7(_0x4a055c-_0x4f14ac>(0x7753083a^_0x5e678e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x4e2bb9)[_0x2b1bb7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e2bb9(_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x332492=0x536962ba^_0x5e678e;function _0x3f29fc(){const _0x1694b5=_0x2b1bb7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aebec(_0x2bfb85(_0x16db67)),_0x319dd4=_0x14aea9(_0x2aebec(window[_0x2b1bb7([0x4d,0x61,0x74,0x68])][_0x2b1bb7([0x63,0x65,0x69,0x6c])](_0x4a055c/_0x332492)));window[_0x2b1bb7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b1bb7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1694b5,_0x319dd4);}function _0x5c6890(){const _0x231d45=_0x2b1bb7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aebec(_0x2bfb85(_0x16db67)),_0x58c939=window[_0x2b1bb7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b1bb7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x231d45);return _0x58c939?window[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14aea9(_0x58c939),0x10)*_0x332492:null;}function _0x609dd4(_0x4a3833){return new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1eab1f,_0x19e377)=>{_0x4a3833[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x1eab1f,_0x19e377),window[_0x2b1bb7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19e377,0x535e58fa^_0x5e678e);});}}_0x3fd1cd[_0x2b1bb7([0x6f,0x6e])](_0x2b1bb7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd49614,_0x5595bc)=>{if(_0x5595bc[0x0]!=_0x16db67)return _0x4e2bb9(_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5595bc[0x1]={..._0x5595bc[0x1],[_0x2b1bb7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25ee7d};},{[_0x2b1bb7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b1bb7([0x68,0x69,0x67,0x68])}),_0x3fd1cd[_0x2b1bb7([0x6f,0x6e])](_0x2b1bb7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a322d=>{_0x31a4e5(_0x5a322d[_0x2b1bb7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ae65e=!0x0,_0x1eaca6(_0x5a322d[_0x2b1bb7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b1bb7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b1bb7([0x6c,0x6f,0x77])}),_0x536c8a[_0x2b1bb7([0x74,0x68,0x65,0x6e])](()=>{_0x3ae65e||_0x4e2bb9(_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2551f0(){return _0x3fd1cd[_0x2b1bb7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b1bb7([0x76,0x69,0x65,0x77])][_0x2b1bb7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b1bb7([0x61,0x75,0x74,0x6f]);}function _0x1dd7cc(){_0x3fd1cd[_0x2b1bb7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b1bb7([0x76,0x69,0x65,0x77])][_0x2b1bb7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b1bb7([0x61,0x75,0x74,0x6f]);}}function _0x229cd3(_0x2557b6){const _0x2148ac=[new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f682f=>setTimeout(_0x1f682f,0x5356b2f6^_0x5e678e)),_0x536c8a[_0x2b1bb7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ed39=>{let _0xb633fc=0x0;_0x3fd1cd[_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1bb7([0x6f,0x6e])](_0x2b1bb7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d21d9,_0x8a0090)=>{_0x8a0090[0x0][_0x2b1bb7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb633fc++,_0xb633fc==(0x535f8dc2^_0x5e678e)&&(_0x36ed39(),_0x1d21d9[_0x2b1bb7([0x6f,0x66,0x66])]());});}))];return window[_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b1bb7([0x72,0x61,0x63,0x65])](_0x2148ac)[_0x2b1bb7([0x74,0x68,0x65,0x6e])](()=>_0x2557b6);}async function _0x5de88e(){await _0x536c8a,_0x3fd1cd[_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1bb7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xca777b,_0x3fd1cd[_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1bb7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xca777b,_0x3fd1cd[_0x2b1bb7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2837dc(_0x3052d2){const _0x528960=_0x18c333();_0x3fd1cd[_0x528960]=_0x2b1bb7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3052d2,_0x3052d2!=_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64])&&_0x5de88e();}function _0x18c333(){const _0x22e9e7=window[_0x2b1bb7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b1bb7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b1bb7([0x6e,0x6f,0x77])]())[_0x2b1bb7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b1bb7([0x2e]),'');let _0x568451=_0x2b1bb7([0x68]);for(let _0x18381a=0x0;_0x18381a<_0x22e9e7[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18381a+=0x2){let _0x2ed009=window[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e9e7[_0x2b1bb7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18381a,_0x18381a+0x2));_0x2ed009>=_0x374781[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ed009-=_0x374781[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x568451+=_0x374781[_0x2ed009];}return _0x568451;}function _0x5195ae(){const _0x5eeab8=_0x5bb8e5[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e]));if(0x3!=_0x5eeab8[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16c811(_0x5eeab8[0x1]);function _0x16c811(_0x2d7f57){const _0xad305a=_0x271ac3(_0x2d7f57);return _0xad305a&&_0x225117()?_0xad305a:null;function _0x225117(){const _0x4b114c=_0xad305a[_0x2b1bb7([0x6a,0x74,0x69])],_0x379f66=window[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b114c[_0x2b1bb7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b114c[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x362641={..._0xad305a,[_0x2b1bb7([0x6a,0x74,0x69])]:_0x4b114c[_0x2b1bb7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b114c[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x362641[_0x2b1bb7([0x76,0x63])],_0x2bfb85(_0x362641)==_0x379f66;}}}async function _0x1d0d98(){let _0x3ea88a=!0x0;try{const _0xe9865a=_0x5bb8e5[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e])),[_0x128525,_0x264668,_0x325c73]=_0xe9865a;return _0x411e7d(_0x128525),await _0x4a033c(_0x128525,_0x264668,_0x325c73),_0x3ea88a;}catch{return!0x1;}function _0x411e7d(_0x28706d){const _0x138988=_0x271ac3(_0x28706d);_0x138988&&_0x138988[_0x2b1bb7([0x61,0x6c,0x67])]==_0x2b1bb7([0x45,0x53,0x32,0x35,0x36])||(_0x3ea88a=!0x1);}async function _0x4a033c(_0xaf7c3a,_0x304bc4,_0x1456cc){const _0x1279a9=window[_0x2b1bb7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b1bb7([0x66,0x72,0x6f,0x6d])](_0x15e44d(_0x1456cc),_0x4dc809=>_0x4dc809[_0x2b1bb7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xfc6326=new window[(_0x2b1bb7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b1bb7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaf7c3a+_0x2b1bb7([0x2e])+_0x304bc4),_0x48b6d2=window[_0x2b1bb7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b1bb7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48b6d2)return;const _0x44b602=await _0x48b6d2[_0x2b1bb7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b1bb7([0x6a,0x77,0x6b]),_0x5b0e78,{[_0x2b1bb7([0x6e,0x61,0x6d,0x65])]:_0x2b1bb7([0x45,0x43,0x44,0x53,0x41]),[_0x2b1bb7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b1bb7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b1bb7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48b6d2[_0x2b1bb7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b1bb7([0x6e,0x61,0x6d,0x65])]:_0x2b1bb7([0x45,0x43,0x44,0x53,0x41]),[_0x2b1bb7([0x68,0x61,0x73,0x68])]:{[_0x2b1bb7([0x6e,0x61,0x6d,0x65])]:_0x2b1bb7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44b602,_0x1279a9,_0xfc6326)||(_0x3ea88a=!0x1);}}function _0x271ac3(_0x4ae802){return _0x4ae802[_0x2b1bb7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b1bb7([0x65,0x79]))?JSON[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65])](_0x15e44d(_0x4ae802)):null;}function _0x15e44d(_0xb2fcee){return window[_0x2b1bb7([0x61,0x74,0x6f,0x62])](_0xb2fcee[_0x2b1bb7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b1bb7([0x2b]))[_0x2b1bb7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b1bb7([0x2f])));}function _0x2bfb85(_0x1760b8){let _0x3de271=0x1505;function _0x587d94(_0x4fda2d){for(let _0xfa071d=0x0;_0xfa071d<_0x4fda2d[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfa071d++){const _0x83dc3f=_0x4fda2d[_0x2b1bb7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfa071d);_0x3de271=(_0x3de271<<0x5)+_0x3de271+_0x83dc3f,_0x3de271&=_0x3de271;}}function _0x41918e(_0x50f51e){Array[_0x2b1bb7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50f51e)?_0x50f51e[_0x2b1bb7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41918e):_0x50f51e&&typeof _0x50f51e==_0x2b1bb7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b1bb7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50f51e)[_0x2b1bb7([0x73,0x6f,0x72,0x74])]()[_0x2b1bb7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e3cac,_0x130f1f])=>{_0x587d94(_0x4e3cac),_0x41918e(_0x130f1f);}):_0x587d94(window[_0x2b1bb7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50f51e));}return _0x41918e(_0x1760b8),_0x3de271>>>0x0;}function _0x2aebec(_0x271d46){return _0x271d46[_0x2b1bb7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b1bb7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b1bb7([0x30]));}function _0x14aea9(_0x36fa43){return _0x36fa43[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b1bb7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b1bb7([0x6a,0x6f,0x69,0x6e])]('');}function _0xca777b(){}function _0x2b1bb7(_0x46d448){const _0x1c7cf9=_0x3252;return _0x46d448[_0x1c7cf9(0x139)](_0x3131be=>String[_0x1c7cf9(0x146)](_0x3131be))[_0x1c7cf9(0x157)]('');}_0x2837dc(await _0x365a57());}(this);}[_0x501edc(0x162)](){const _0x50e6c5=_0x501edc,_0x156994=this[_0x50e6c5(0x13a)][_0x50e6c5(0x165)][_0x50e6c5(0x135)];_0x156994[_0x50e6c5(0x124)](_0x50e6c5(0x11f))&&_0x156994[_0x50e6c5(0x133)](_0x50e6c5(0x11f),{'allowAttributes':[_0x50e6c5(0x12a)]}),_0x156994[_0x50e6c5(0x124)](_0x50e6c5(0x134))&&_0x156994[_0x50e6c5(0x133)](_0x50e6c5(0x134),{'allowAttributes':[_0x50e6c5(0x12a)]});}[_0x501edc(0x149)](){const _0x1f7909=_0x501edc,_0x409090=this[_0x1f7909(0x13a)];_0x409090[_0x1f7909(0x13f)][_0x1f7909(0x136)](_0x1f7909(0x156))[_0x1f7909(0x166)]({'model':_0x1f7909(0x12a),'view':_0x1f7909(0x122)}),_0x409090[_0x1f7909(0x13f)][_0x1f7909(0x136)](_0x1f7909(0x15c))[_0x1f7909(0x164)]({'model':{'key':_0x1f7909(0x12a),'value':_0x3b6b4e=>_0x3b6b4e[_0x1f7909(0x126)](_0x1f7909(0x122))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54526b=_0x409090[_0x1f7909(0x147)][_0x1f7909(0x16a)](_0x1f7909(0x12b));_0x54526b&&this[_0x1f7909(0x169)](_0x54526b,_0x1f7909(0x16b),(_0x49cf83,[_0x7f8067,_0xc2abbf])=>{const _0x1a9864=_0x1f7909;_0x7f8067[_0x1a9864(0x15f)](_0x1a9864(0x12a),_0xc2abbf);});}[_0x501edc(0x132)](){const _0x29462f=_0x501edc,_0x592efe=this[_0x29462f(0x13a)][_0x29462f(0x167)][_0x29462f(0x16a)](_0x29462f(0x153))||{},_0x44524b=this[_0x29462f(0x13a)][_0x29462f(0x167)][_0x29462f(0x16a)](_0x29462f(0x138))||'';this[_0x29462f(0x16c)]=_0x26676a(_0x3093d1[_0x29462f(0x13e)],_0x29462f(0x151),{..._0x592efe,'pubkey':_0x44524b,'ctx-name':_0x29462f(0x143)+this[_0x29462f(0x14f)],'sourceList':'','imgOnly':_0x29462f(0x12d),'removeCopyright':_0x29462f(0x12d),'localeName':this[_0x29462f(0x13a)][_0x29462f(0x125)][_0x29462f(0x150)],'externalSourcesEmbedCss':_0x29462f(0x140)}),this[_0x29462f(0x16c)][_0x29462f(0x148)]=_0x138661=>{const _0x3b72c5=_0x29462f;if(_0x3b72c5(0x152)==_0x138661)return _0x3b72c5(0x15e);},_0x3093d1[_0x29462f(0x13e)][_0x29462f(0x16f)][_0x29462f(0x14e)](this[_0x29462f(0x16c)]);}[_0x501edc(0x14a)](){const _0xe7b813=_0x501edc;this[_0xe7b813(0x120)]=_0x26676a(_0x3093d1[_0xe7b813(0x13e)],_0xe7b813(0x145),{'ctx-name':_0xe7b813(0x143)+this[_0xe7b813(0x14f)]}),_0x3093d1[_0xe7b813(0x13e)][_0xe7b813(0x16f)][_0xe7b813(0x14e)](this[_0xe7b813(0x120)]);}[_0x501edc(0x130)](){const _0x57b7c0=_0x501edc,_0x3745f6=this[_0x57b7c0(0x13a)][_0x57b7c0(0x147)][_0x57b7c0(0x16a)](_0x57b7c0(0x137));_0x3745f6&&this[_0x57b7c0(0x169)](_0x3745f6,_0x57b7c0(0x168),()=>{const _0x26a8bc=_0x57b7c0,_0x30c80e=this[_0x26a8bc(0x13a)][_0x26a8bc(0x165)][_0x26a8bc(0x13e)][_0x26a8bc(0x123)][_0x26a8bc(0x121)]();_0x30c80e&&_0x30c80e[_0x26a8bc(0x126)](_0x26a8bc(0x12a))&&this[_0x26a8bc(0x13a)][_0x26a8bc(0x160)][_0x26a8bc(0x16e)][_0x26a8bc(0x141)](_0x26a8bc(0x14b),()=>{const _0x56acf3=_0x26a8bc;_0x3abb08(this[_0x56acf3(0x13a)],_0x30c80e);});});const _0x4c76d1=this[_0x57b7c0(0x13a)][_0x57b7c0(0x147)][_0x57b7c0(0x16a)](_0x57b7c0(0x142));_0x4c76d1&&this[_0x57b7c0(0x169)](_0x4c76d1,_0x57b7c0(0x168),()=>{const _0x5d17d6=_0x57b7c0,_0x3ed45c=this[_0x5d17d6(0x13a)][_0x5d17d6(0x165)][_0x5d17d6(0x13e)][_0x5d17d6(0x123)][_0x5d17d6(0x121)]();_0x3ed45c&&_0x3ed45c[_0x5d17d6(0x126)](_0x5d17d6(0x12a))&&this[_0x5d17d6(0x13a)][_0x5d17d6(0x160)][_0x5d17d6(0x16e)][_0x5d17d6(0x141)](_0x5d17d6(0x14b),()=>{const _0x28c479=_0x5d17d6;_0x3abb08(this[_0x28c479(0x13a)],_0x3ed45c);});});}}
|
|
23
|
+
function _0x37ee(){const _0x965b3a=['1342925ILzkBp','isOfficialPlugin','ctxElement','imageInline','_configElement','8kFPHJo','insertImage','get','join','cleanupImage','_initSchema','fromCharCode','uploadcare','downcast','removeAttribute','357179nNvLLY','model','data-uc-image-id','uploader-','uc-config','querySelector','isRegistered','getAttribute','body','execute','369PSenzi','uploadcare.pubkey','_initImageProcessingIndicator','getSelectedElement','locale','PictureEditing','_initConversion','4FOxSiQ','upcast','35uuSJIL','replaceImageSource','appendChild','_initCtx','map','conversion','421506GdqiVu','uc-upload-ctx-provider','imageBlock','11515537vAZNnu','schema','contentLanguage','12QdFywK','afterInit','isPremiumPlugin','listenTo','commands','uploadcareImageId','href','pluginName','remove','UploadcareEditing','uploadcareImageReplace','config','_ctxElement','view','ucContextId','render','selection','attributeToAttribute','configElement','input[uploadcare-file-input]','add','closeMax','editing','173010LEIFBc','_initConfig','elementToAttribute','once','true','document','iconHrefResolver','uploadcare.uploader','475515SWhToe','init','requires','extend','#uc-icon-arrow-down','editor','\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','for','1069800IlXxRa','destroy'];_0x37ee=function(){return _0x965b3a;};return _0x37ee();}const _0x113fc3=_0x2db8;(function(_0x3ad154,_0x2ce57f){const _0x15c82c=_0x2db8,_0x27591b=_0x3ad154();while(!![]){try{const _0x572ba7=-parseInt(_0x15c82c(0x178))/0x1*(-parseInt(_0x15c82c(0x132))/0x2)+parseInt(_0x15c82c(0x15f))/0x3+parseInt(_0x15c82c(0x16e))/0x4*(-parseInt(_0x15c82c(0x169))/0x5)+-parseInt(_0x15c82c(0x13a))/0x6*(parseInt(_0x15c82c(0x134))/0x7)+parseInt(_0x15c82c(0x167))/0x8+parseInt(_0x15c82c(0x12b))/0x9*(-parseInt(_0x15c82c(0x157))/0xa)+parseInt(_0x15c82c(0x13d))/0xb*(parseInt(_0x15c82c(0x140))/0xc);if(_0x572ba7===_0x2ce57f)break;else _0x27591b['push'](_0x27591b['shift']());}catch(_0x579d32){_0x27591b['push'](_0x27591b['shift']());}}}(_0x37ee,0x6f409));import{Plugin as _0x54054d}from'ckeditor5/src/core.js';function _0x2db8(_0x187711,_0x43929a){const _0x37ee6a=_0x37ee();return _0x2db8=function(_0x2db8dc,_0x50e540){_0x2db8dc=_0x2db8dc-0x12b;let _0x4813a3=_0x37ee6a[_0x2db8dc];return _0x4813a3;},_0x2db8(_0x187711,_0x43929a);}import{Dialog as _0x293c51}from'ckeditor5/src/ui.js';import{createElement as _0x525512,global as _0x234f2d,uid as _0x440e54}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5f3483}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x471b66}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1799d1}from'./utils/editingutils.js';export class UploadcareEditing extends _0x54054d{[_0x113fc3(0x16d)]=null;[_0x113fc3(0x14c)]=null;static get[_0x113fc3(0x147)](){const _0x385ac7=_0x113fc3;return _0x385ac7(0x149);}static get[_0x113fc3(0x161)](){const _0x32123f=_0x113fc3;return[_0x32123f(0x130),_0x471b66,_0x293c51];}static get[_0x113fc3(0x16a)](){return!0x0;}static get[_0x113fc3(0x142)](){return!0x0;}[_0x113fc3(0x14e)];get[_0x113fc3(0x152)](){const _0x4a3660=_0x113fc3;return this[_0x4a3660(0x16d)];}get[_0x113fc3(0x16b)](){const _0x287e08=_0x113fc3;return this[_0x287e08(0x14c)];}constructor(_0x45e416){const _0x2478f4=_0x113fc3;super(_0x45e416),this[_0x2478f4(0x14e)]=_0x440e54();}[_0x113fc3(0x160)](){const _0x455330=_0x113fc3,_0x219a25=this[_0x455330(0x164)];_0x219a25[_0x455330(0x144)][_0x455330(0x154)](_0x455330(0x175),new _0x5f3483(_0x219a25));}[_0x113fc3(0x141)](){const _0x499a97=_0x113fc3;this[_0x499a97(0x173)](),this[_0x499a97(0x131)](),this[_0x499a97(0x158)](),this[_0x499a97(0x137)](),this[_0x499a97(0x12d)](),this[_0x499a97(0x143)](this[_0x499a97(0x164)],_0x499a97(0x168),()=>{const _0x1a6e39=_0x499a97;this[_0x1a6e39(0x16d)]&&(this[_0x1a6e39(0x16d)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x16d)]=null),this[_0x1a6e39(0x14c)]&&(this[_0x1a6e39(0x14c)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x14c)]=null);const _0x5f273d=_0x234f2d[_0x1a6e39(0x15c)][_0x1a6e39(0x17d)](_0x1a6e39(0x153));_0x5f273d&&_0x5f273d[_0x1a6e39(0x148)]();}),async function(_0x409a81){const _0x5d860d=_0x48e9dc([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x36616f=0x535f8c3a,_0x551bd1=0x5358f7da^_0x36616f,_0x299259=window[_0x48e9dc([0x44,0x61,0x74,0x65])][_0x48e9dc([0x6e,0x6f,0x77])](),_0x2c2827=_0x409a81[_0x48e9dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34e131=new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b974c=>{_0x2c2827[_0x48e9dc([0x6f,0x6e,0x63,0x65])](_0x48e9dc([0x72,0x65,0x61,0x64,0x79]),_0x4b974c);}),_0x351024={[_0x48e9dc([0x6b,0x74,0x79])]:_0x48e9dc([0x45,0x43]),[_0x48e9dc([0x75,0x73,0x65])]:_0x48e9dc([0x73,0x69,0x67]),[_0x48e9dc([0x63,0x72,0x76])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36]),[_0x48e9dc([0x78])]:_0x48e9dc([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]),[_0x48e9dc([0x79])]:_0x48e9dc([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]),[_0x48e9dc([0x61,0x6c,0x67])]:_0x48e9dc([0x45,0x53,0x32,0x35,0x36])},_0x445e40=_0x2c2827[_0x48e9dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48e9dc([0x67,0x65,0x74])](_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x210f06(){let _0x5a0aae,_0x234780=null,_0x57f502=null;try{if(_0x445e40==_0x48e9dc([0x47,0x50,0x4c]))return _0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a0aae=_0x3e14dc(),!_0x5a0aae)return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f502=_0x2b51a0(_0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a0aae[_0x48e9dc([0x6a,0x74,0x69])])),await _0x52ee37()?_0x4d67ef()?_0x2e786b()?_0x48e9dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1117fc()?(_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x234780=_0x11afb6(_0x48e9dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x234780=_0x11afb6(_0x48e9dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1274aa()):_0x48e9dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e786b(){const _0x431440=[_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])][_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x299259/0x3e8:0xe10*_0x551bd1;return _0x5a0aae[_0x48e9dc([0x65,0x78,0x70])]<_0x431440;}function _0x4d67ef(){const _0x3e59a6=_0x5a0aae[_0x48e9dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e59a6&&(!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a]))||!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x55,0x50,0x4c,0x43])));}function _0x1117fc(){const _0x10e494=_0x2db8,_0x1c1e2b=_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c1e2b||0x0==_0x1c1e2b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56a24b}=new URL(window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x10e494(0x146)]);if(_0x1c1e2b[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a24b))return!0x0;const _0x175fa3=_0x56a24b[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));return _0x1c1e2b[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf632db=>_0xf632db[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a])))[_0x48e9dc([0x6d,0x61,0x70])](_0x4be230=>_0x4be230[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])))[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x598c74=>_0x598c74[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x6d,0x61,0x70])](_0x212c6d=>Array(_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x212c6d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x66,0x69,0x6c,0x6c])](_0x212c6d[0x0]===_0x48e9dc([0x2a])?_0x48e9dc([0x2a]):'')[_0x48e9dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x212c6d))[_0x48e9dc([0x73,0x6f,0x6d,0x65])](_0x1e6cb7=>_0x175fa3[_0x48e9dc([0x65,0x76,0x65,0x72,0x79])]((_0x2ce6f7,_0x492b01)=>_0x1e6cb7[_0x492b01]===_0x2ce6f7||_0x1e6cb7[_0x492b01]===_0x48e9dc([0x2a])));}function _0x1274aa(){return _0x234780&&_0x57f502?new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb09964,_0x242ac6)=>{_0x234780[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0xb09964,_0x242ac6),_0x57f502[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x2c931a=>{_0x2c931a!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0xb09964(_0x2c931a);},_0x242ac6);}):_0x234780||_0x57f502||_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b51a0(_0x33c674,_0x1256f6){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x603e5b=>{if(_0xeea858())return _0x603e5b(_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]));_0x5a28f5(),_0x2c2827[_0x48e9dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18ddbf=!0x1;const _0x163306=_0x440e54();function _0x3ce52d(_0x23f8e4){return!!_0x23f8e4&&(typeof _0x23f8e4===_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23f8e4===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23f8e4[_0x48e9dc([0x74,0x68,0x65,0x6e])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23f8e4[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc03dd3(_0x1ca2f9){_0x54286f(_0x1ca2f9)[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5a306b=>{if(!_0x5a306b||_0x5a306b[_0x48e9dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48e9dc([0x6f,0x6b]))return _0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x580385(_0x5bc4e2(_0x163306+_0x1256f6))!=_0x5a306b[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x3571ed=>(_0x54a2a6(),_0x3571ed),()=>{const _0x549765=_0x56f779();return null==_0x549765?(_0x54a2a6(),_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])):_0x48e9dc(_0x299259-_0x549765>(0x7753083a^_0x36616f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x603e5b)[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c22a5=0x536962ba^_0x36616f;function _0x54a2a6(){const _0x3904c9=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0xe6c30a=_0x438a92(_0x580385(window[_0x48e9dc([0x4d,0x61,0x74,0x68])][_0x48e9dc([0x63,0x65,0x69,0x6c])](_0x299259/_0x3c22a5)));window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3904c9,_0xe6c30a);}function _0x56f779(){const _0x50ed75=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0x50a413=window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50ed75);return _0x50a413?window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438a92(_0x50a413),0x10)*_0x3c22a5:null;}function _0x54286f(_0x1f3793){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c14d8,_0x53052e)=>{_0x1f3793[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5c14d8,_0x53052e),window[_0x48e9dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53052e,0x535e58fa^_0x36616f);});}}_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5162fe,_0x39238f)=>{if(_0x39238f[0x0]!=_0x33c674)return _0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39238f[0x1]={..._0x39238f[0x1],[_0x48e9dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x163306};},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x68,0x69,0x67,0x68])}),_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x340833=>{_0x3ce52d(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18ddbf=!0x0,_0xc03dd3(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x6c,0x6f,0x77])}),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>{_0x18ddbf||_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xeea858(){return _0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48e9dc([0x61,0x75,0x74,0x6f]);}function _0x5a28f5(){_0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48e9dc([0x61,0x75,0x74,0x6f]);}}function _0x11afb6(_0x32d8e7){const _0x3071c2=[new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62fd4f=>setTimeout(_0x62fd4f,0x5356b2f6^_0x36616f)),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1275f7=>{let _0x38b536=0x0;_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x173589,_0x529e6d)=>{_0x529e6d[0x0][_0x48e9dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38b536++,_0x38b536==(0x535f8dc2^_0x36616f)&&(_0x1275f7(),_0x173589[_0x48e9dc([0x6f,0x66,0x66])]());});}))];return window[_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48e9dc([0x72,0x61,0x63,0x65])](_0x3071c2)[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>_0x32d8e7);}async function _0x13724b(){await _0x34e131,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a8c1(_0x345c33){const _0x1e4e3f=_0x499ef9();_0x2c2827[_0x1e4e3f]=_0x48e9dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x345c33,_0x345c33!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0x13724b();}function _0x499ef9(){const _0x197382=window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48e9dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48e9dc([0x6e,0x6f,0x77])]())[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48e9dc([0x2e]),'');let _0x57c745=_0x48e9dc([0x68]);for(let _0x1d311a=0x0;_0x1d311a<_0x197382[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d311a+=0x2){let _0xe2131=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x197382[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d311a,_0x1d311a+0x2));_0xe2131>=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe2131-=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57c745+=_0x5d860d[_0xe2131];}return _0x57c745;}function _0x3e14dc(){const _0xba0d3b=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));if(0x3!=_0xba0d3b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1df5bf(_0xba0d3b[0x1]);function _0x1df5bf(_0xfa8b31){const _0x5e9fbd=_0x333a15(_0xfa8b31);return _0x5e9fbd&&_0x350661()?_0x5e9fbd:null;function _0x350661(){const _0x59485f=_0x5e9fbd[_0x48e9dc([0x6a,0x74,0x69])],_0x1a4572=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x413ca2={..._0x5e9fbd,[_0x48e9dc([0x6a,0x74,0x69])]:_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x413ca2[_0x48e9dc([0x76,0x63])],_0x5bc4e2(_0x413ca2)==_0x1a4572;}}}async function _0x52ee37(){let _0x110983=!0x0;try{const _0x538984=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])),[_0x2c701b,_0x1cb341,_0x360893]=_0x538984;return _0x2cbb70(_0x2c701b),await _0x1ee8b4(_0x2c701b,_0x1cb341,_0x360893),_0x110983;}catch{return!0x1;}function _0x2cbb70(_0x49bce5){const _0x799725=_0x333a15(_0x49bce5);_0x799725&&_0x799725[_0x48e9dc([0x61,0x6c,0x67])]==_0x48e9dc([0x45,0x53,0x32,0x35,0x36])||(_0x110983=!0x1);}async function _0x1ee8b4(_0x28415d,_0x491889,_0x219015){const _0x3b5d09=window[_0x48e9dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48e9dc([0x66,0x72,0x6f,0x6d])](_0x192b6d(_0x219015),_0x472457=>_0x472457[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37950c=new window[(_0x48e9dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48e9dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28415d+_0x48e9dc([0x2e])+_0x491889),_0x64a236=window[_0x48e9dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48e9dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x64a236)return;const _0x39c263=await _0x64a236[_0x48e9dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48e9dc([0x6a,0x77,0x6b]),_0x351024,{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x64a236[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x68,0x61,0x73,0x68])]:{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39c263,_0x3b5d09,_0x37950c)||(_0x110983=!0x1);}}function _0x333a15(_0x38dd34){return _0x38dd34[_0x48e9dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48e9dc([0x65,0x79]))?JSON[_0x48e9dc([0x70,0x61,0x72,0x73,0x65])](_0x192b6d(_0x38dd34)):null;}function _0x192b6d(_0x5b2a73){return window[_0x48e9dc([0x61,0x74,0x6f,0x62])](_0x5b2a73[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48e9dc([0x2b]))[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48e9dc([0x2f])));}function _0x5bc4e2(_0x370724){let _0x1d7fe9=0x1505;function _0x3aabf7(_0xd9bd82){for(let _0x5975c6=0x0;_0x5975c6<_0xd9bd82[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5975c6++){const _0x5494a9=_0xd9bd82[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5975c6);_0x1d7fe9=(_0x1d7fe9<<0x5)+_0x1d7fe9+_0x5494a9,_0x1d7fe9&=_0x1d7fe9;}}function _0x156c61(_0x496589){Array[_0x48e9dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x496589)?_0x496589[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x156c61):_0x496589&&typeof _0x496589==_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48e9dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x496589)[_0x48e9dc([0x73,0x6f,0x72,0x74])]()[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x154443,_0x2f1ba4])=>{_0x3aabf7(_0x154443),_0x156c61(_0x2f1ba4);}):_0x3aabf7(window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x496589));}return _0x156c61(_0x370724),_0x1d7fe9>>>0x0;}function _0x580385(_0x3903d3){return _0x3903d3[_0x48e9dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48e9dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48e9dc([0x30]));}function _0x438a92(_0x4f8292){return _0x4f8292[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48e9dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48e9dc([0x6a,0x6f,0x69,0x6e])]('');}function _0xf2461c(){}function _0x48e9dc(_0x137e68){const _0x416ef3=_0x2db8;return _0x137e68[_0x416ef3(0x138)](_0x2cd532=>String[_0x416ef3(0x174)](_0x2cd532))[_0x416ef3(0x171)]('');}_0x25a8c1(await _0x210f06());}(this);}[_0x113fc3(0x173)](){const _0x44ec1d=_0x113fc3,_0x434349=this[_0x44ec1d(0x164)][_0x44ec1d(0x179)][_0x44ec1d(0x13e)];_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x13c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x13c),{'allowAttributes':[_0x44ec1d(0x145)]}),_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x16c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x16c),{'allowAttributes':[_0x44ec1d(0x145)]});}[_0x113fc3(0x131)](){const _0x408ba2=_0x113fc3,_0x300448=this[_0x408ba2(0x164)];_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x176))[_0x408ba2(0x151)]({'model':_0x408ba2(0x145),'view':_0x408ba2(0x17a)}),_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x133))[_0x408ba2(0x159)]({'model':{'key':_0x408ba2(0x145),'value':_0x146735=>_0x146735[_0x408ba2(0x17f)](_0x408ba2(0x17a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b084f=_0x300448[_0x408ba2(0x144)][_0x408ba2(0x170)](_0x408ba2(0x135));_0x2b084f&&this[_0x408ba2(0x143)](_0x2b084f,_0x408ba2(0x172),(_0x44d8ba,[_0xca65ba,_0x5e0e74])=>{const _0x3ff5f9=_0x408ba2;_0xca65ba[_0x3ff5f9(0x177)](_0x3ff5f9(0x145),_0x5e0e74);});}[_0x113fc3(0x158)](){const _0x258b11=_0x113fc3,_0x1c021e=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x15e))||{},_0x2964b8=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x12c))||'';this[_0x258b11(0x16d)]=_0x525512(_0x234f2d[_0x258b11(0x15c)],_0x258b11(0x17c),{..._0x1c021e,'pubkey':_0x2964b8,'ctx-name':_0x258b11(0x17b)+this[_0x258b11(0x14e)],'sourceList':'','imgOnly':_0x258b11(0x15b),'removeCopyright':_0x258b11(0x15b),'localeName':this[_0x258b11(0x164)][_0x258b11(0x12f)][_0x258b11(0x13f)],'externalSourcesEmbedCss':_0x258b11(0x165)}),this[_0x258b11(0x16d)][_0x258b11(0x15d)]=_0x694b1a=>{const _0x522fd2=_0x258b11;if(_0x522fd2(0x155)==_0x694b1a)return _0x522fd2(0x163);},_0x234f2d[_0x258b11(0x15c)][_0x258b11(0x180)][_0x258b11(0x136)](this[_0x258b11(0x16d)]);}[_0x113fc3(0x137)](){const _0x257fd6=_0x113fc3;this[_0x257fd6(0x14c)]=_0x525512(_0x234f2d[_0x257fd6(0x15c)],_0x257fd6(0x13b),{'ctx-name':_0x257fd6(0x17b)+this[_0x257fd6(0x14e)]}),_0x234f2d[_0x257fd6(0x15c)][_0x257fd6(0x180)][_0x257fd6(0x136)](this[_0x257fd6(0x14c)]);}[_0x113fc3(0x12d)](){const _0x444c82=_0x113fc3,_0x2ec014=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x16f));_0x2ec014&&this[_0x444c82(0x143)](_0x2ec014,_0x444c82(0x181),()=>{const _0x284300=_0x444c82,_0x288ad5=this[_0x284300(0x164)][_0x284300(0x179)][_0x284300(0x15c)][_0x284300(0x150)][_0x284300(0x12e)]();_0x288ad5&&_0x288ad5[_0x284300(0x17f)](_0x284300(0x145))&&this[_0x284300(0x164)][_0x284300(0x156)][_0x284300(0x14d)][_0x284300(0x15a)](_0x284300(0x14f),()=>{const _0x45294f=_0x284300;_0x1799d1(this[_0x45294f(0x164)],_0x288ad5);});});const _0x28cbbb=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x14a));_0x28cbbb&&this[_0x444c82(0x143)](_0x28cbbb,_0x444c82(0x181),()=>{const _0x528b2a=_0x444c82,_0x44cd7f=this[_0x528b2a(0x164)][_0x528b2a(0x179)][_0x528b2a(0x15c)][_0x528b2a(0x150)][_0x528b2a(0x12e)]();_0x44cd7f&&_0x44cd7f[_0x528b2a(0x17f)](_0x528b2a(0x145))&&this[_0x528b2a(0x164)][_0x528b2a(0x156)][_0x528b2a(0x14d)][_0x528b2a(0x15a)](_0x528b2a(0x14f),()=>{const _0x15e85b=_0x528b2a;_0x1799d1(this[_0x15e85b(0x164)],_0x44cd7f);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5d6ac7,ObservableMixin as _0x263098}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1f8458}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3ece6b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1b9954}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x138138}from'../../utils/uploadutils.js';import{getImageUrls as _0x4bfe47,getImageDimension as _0x24a0c9}from'../../utils/editingutils.js';import{isAncestor as _0x2f42a5}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x263098(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x599c36,_0x43dd12,_0x5dd5af){super(),this['_editor']=_0x599c36,this['_dialog']=_0x43dd12,this['_imageElement']=_0x5dd5af,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 _0x53846c=this['_imageElement'],_0x53d382=_0x53846c['getAttribute']('uploadcareImageId'),_0x2dfcfa=_0x53846c['getAttribute']('src');if(_0x53d382)await this['_loadImageInfo'](_0x53d382,_0x2dfcfa);else{if(this['_imageCache']['has'](_0x2dfcfa)){const _0x5b6fb5=this['_imageCache']['get'](_0x2dfcfa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b6fb5['url'],this['imageDimension']=_0x5b6fb5['dimension'],this['imageId']=_0x5b6fb5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x8b5a4e}=this['_editor'],t=_0x8b5a4e['t'],_0x52a106=new _0x1b9954(_0x8b5a4e,this['imageStatus'],this['_attributes']);_0x52a106['bind']('status')['to'](this,'imageStatus'),_0x52a106['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52a106['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52a106['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52a106,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3ece6b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52a106,'position':_0x1f8458['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52a106['focus']();},'onHide':()=>{_0x52a106['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b949d=>!_0x2f42a5(_0x5b949d,_0x52a106['element'])}});}['_loadImageInfo'](_0x489448,_0x14dc22){return _0x138138['getInfo'](_0x489448,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x13e150=>{const {width:_0x25401e,height:_0x4ac188}=_0x13e150['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14dc22,this['imageDimension']={'width':_0x25401e,'height':_0x4ac188},this['imageId']=_0x489448;})['catch'](_0x505420=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x505420['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x12caf6,_0x10944d){return this['_getImageAsFile'](_0x12caf6)['then'](_0x28aaf5=>_0x138138['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x10944d['signal'],'file':_0x28aaf5,'onProgress':_0x44bad3=>{_0x44bad3&&_0x44bad3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44bad3['value']));}}))['then'](_0x10ca91=>{const {width:_0x53795f,height:_0x29e597}=_0x10ca91['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10ca91['cdnUrl'],this['imageDimension']={'width':_0x53795f,'height':_0x29e597},this['imageId']=_0x10ca91['uuid'],this['imageUploadProgress']=null;const _0x4262a1=_0x12caf6['getAttribute']('src');this['_imageCache']['set'](_0x4262a1,{'id':_0x10ca91['uuid'],'url':_0x10ca91['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26339f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26339f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x19d1a9,_0x46ef35){_0x19d1a9['on']('apply',(_0x370713,_0x41fd6d)=>{this['_replaceImage'](_0x46ef35,_0x41fd6d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x19d1a9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x19d1a9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e0d9c,_0x5b200b,_0x24de36){const _0x193363=this['_editor'],{width:_0x23fdb8,height:_0x257722}=_0x24a0c9(_0x5b200b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x144010,imageSources:_0x394d79}=_0x4bfe47(_0x5b200b,_0x23fdb8);_0x193363['model']['change'](_0x9cc528=>{if('$graveyard'===_0x1e0d9c['root']['rootName']){_0x193363['execute']('insertImage',{'imageType':_0x1e0d9c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e0d9c['getAttributes']()),'uploadcareImageId':_0x24de36,'src':_0x144010,'sources':_0x394d79,'width':_0x23fdb8,'height':_0x257722}});const _0x67f46d=_0x1e0d9c['getChildren']();_0x1e0d9c=_0x193363['model']['document']['selection']['getSelectedElement']();for(const _0x17fcc7 of _0x67f46d)_0x9cc528['append'](_0x9cc528['cloneElement'](_0x17fcc7),_0x1e0d9c);}else _0x9cc528['setSelection'](_0x1e0d9c,'on'),_0x193363['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e0d9c['getAttributes']()),'uploadcareImageId':_0x24de36,'src':_0x144010,'sources':_0x394d79,'width':_0x23fdb8,'height':_0x257722},_0x1e0d9c);_0x9cc528['setSelection'](_0x1e0d9c,'on');});}async['_getImageAsFile'](_0x12816a){const _0x52bb33=_0x5d6ac7['window'],_0x25565d=_0x5d6ac7['document']['location']['href'],_0x3484fa=new _0x52bb33['URL'](_0x12816a['getAttribute']('src'),_0x25565d);if('data:'===_0x3484fa['protocol']){const _0x42c727=_0x3484fa['href']['split'](','),_0x32a588=_0x42c727[0x0]['match'](/:(.*?);/)[0x1],_0x499203=_0x32a588['split']('/')[0x1],_0x1872c8=_0x52bb33['atob'](_0x42c727[_0x42c727['length']-0x1]);let _0x5e659a=_0x1872c8['length'];const _0xfc39aa=new _0x52bb33['Uint8Array'](_0x5e659a);for(;_0x5e659a--;)_0xfc39aa[_0x5e659a]=_0x1872c8['charCodeAt'](_0x5e659a);return new _0x52bb33['File']([_0xfc39aa],'image.'+_0x499203,{'type':_0x32a588});}const _0xb25486=_0x3484fa['href']['split']('/'),_0xdaa247=_0xb25486[_0xb25486['length']-0x1],_0x5d7a43=_0xdaa247['split']('.')[0x1];return _0x52bb33['fetch'](_0x3484fa['href'])['then'](_0x3b5310=>_0x3b5310['clone']()['blob']())['then'](_0x168a6d=>new _0x52bb33['File']([_0x168a6d],_0xdaa247,{'type':'image/'+_0x5d7a43}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x179d(){const _0x1193e1=['set','13822250sXHNnr','2031805pnzZOo','12iyOUcF','2811qMJgBb','33OHvIFH','1894452kcHRYM','2928MvvAKZ','setTemplate','6KvPQNl','uc-light','ck-uploadcare-theme','bindTemplate','imageSrc','image-edit','48537UQNZFS','5735172PUSbLF','240214ALeBed','7664eagssX','uc-cloud-image-editor'];_0x179d=function(){return _0x1193e1;};return _0x179d();}(function(_0x52936b,_0x4daa74){const _0x408286=_0x55b4,_0x391226=_0x52936b();while(!![]){try{const _0x42fe35=parseInt(_0x408286(0xeb))/0x1*(parseInt(_0x408286(0xf1))/0x2)+parseInt(_0x408286(0xf2))/0x3*(-parseInt(_0x408286(0xec))/0x4)+-parseInt(_0x408286(0xf0))/0x5*(parseInt(_0x408286(0xf7))/0x6)+-parseInt(_0x408286(0xf4))/0x7+parseInt(_0x408286(0xf5))/0x8*(parseInt(_0x408286(0xfd))/0x9)+-parseInt(_0x408286(0xef))/0xa+-parseInt(_0x408286(0xf3))/0xb*(-parseInt(_0x408286(0xfe))/0xc);if(_0x42fe35===_0x4daa74)break;else _0x391226['push'](_0x391226['shift']());}catch(_0x5db0a0){_0x391226['push'](_0x391226['shift']());}}}(_0x179d,0xf2c61));import{View as _0x5ed757}from'ckeditor5/src/ui.js';function _0x55b4(_0x355f47,_0x8668ef){const _0x179da2=_0x179d();return _0x55b4=function(_0x55b4d6,_0x51d795){_0x55b4d6=_0x55b4d6-0xeb;let _0x1dc24c=_0x179da2[_0x55b4d6];return _0x1dc24c;},_0x55b4(_0x355f47,_0x8668ef);}export class UploadcareImageEditFormEditingView extends _0x5ed757{constructor(_0x4bbf32,_0x42acff){const _0x5cace0=_0x55b4;super(_0x4bbf32);const _0x502d8e=this[_0x5cace0(0xfa)];this[_0x5cace0(0xee)](_0x5cace0(0xfb),''),this[_0x5cace0(0xf6)]({'tag':_0x5cace0(0xed),'attributes':{..._0x42acff,'class':[_0x5cace0(0xf8),_0x5cace0(0xf9)],'ctx-name':_0x5cace0(0xfc),'cdn-url':_0x502d8e['to'](_0x5cace0(0xfb))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4ded13}from'ckeditor5/src/icons.js';import{ButtonView as _0x1acda9,IconView as _0x3ab637,View as _0x43dfe0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x43dfe0{constructor(_0x2ef4c9){super(_0x2ef4c9);const t=_0x2ef4c9['t'];this['set']('errorType',null);const _0x1519f5=new _0x1acda9(_0x2ef4c9);_0x1519f5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1519f5['withText']=!0x0,_0x1519f5['class']='ck-button-action',_0x1519f5['on']('execute',()=>{this['fire']('retry');}),_0x1519f5['bind']('isVisible')['to'](this,'errorType',_0x3066a1=>'NotFound'!==_0x3066a1);const _0x218df7=new _0x3ab637();_0x218df7['content']=_0x4ded13,_0x218df7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5d60f2=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':[_0x218df7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5d60f2['to']('errorType',_0x1aad75=>t('NotFound'!==_0x1aad75?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1519f5]},{'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 _0x1eb541,View as _0x14bc03}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x14bc03{constructor(_0x4455dc){super(_0x4455dc);const t=_0x4455dc['t'],_0x3aaef1=this['bindTemplate'],_0x40b074=new _0x1eb541();_0x40b074['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':[_0x40b074,{'text':_0x3aaef1['to']('imageUploadProgress',_0x2e16a2=>t('Loading\x20image...')+'\x20('+(_0x2e16a2||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35dbf6=_0x40db;(function(_0x29564e,_0x1eae10){const _0x8fb0eb=_0x40db,_0x15245b=_0x29564e();while(!![]){try{const _0x374d66=-parseInt(_0x8fb0eb(0x1da))/0x1+parseInt(_0x8fb0eb(0x1e7))/0x2+parseInt(_0x8fb0eb(0x1db))/0x3*(-parseInt(_0x8fb0eb(0x1e1))/0x4)+-parseInt(_0x8fb0eb(0x206))/0x5*(parseInt(_0x8fb0eb(0x1ec))/0x6)+-parseInt(_0x8fb0eb(0x1f6))/0x7*(-parseInt(_0x8fb0eb(0x1df))/0x8)+-parseInt(_0x8fb0eb(0x1fd))/0x9+parseInt(_0x8fb0eb(0x1fe))/0xa;if(_0x374d66===_0x1eae10)break;else _0x15245b['push'](_0x15245b['shift']());}catch(_0x146044){_0x15245b['push'](_0x15245b['shift']());}}}(_0x2f6d,0x1cfa3));import{View as _0x124e5a}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x514f1e}from'./uploadcareimageeditformloadingview.js';function _0x2f6d(){const _0x324a2b=['_waitForImageEditorComponent','toLowerCase','disconnect','target','change:status','status','element','_errorView','_addUploadcareImageEditorListeners','clear','221703nCoRwi','15SADKUE','_editingView','render','_focusableView','1437032xCzKiy','addMany','38884xUgitS','add','div','_loadingView','filter','_addErrorViewListeners','343642MeqeBM','ck-uploadcare-form','observe','addEventListener','ck-reset_all-excluded','18gRMlvE','cancel','ready','apply','querySelector','getFocusableElement','length','nodeName','uc-cloud-image-editor','detail','7XiGlci','createCollection','once','error','focus','retry','fire','995571zyhlur','2254810IiNBiv','setTemplate','set','_setView','uploading','addedNodes','_items','cdnUrl','128855VsHGyT'];_0x2f6d=function(){return _0x324a2b;};return _0x2f6d();}import{UploadcareImageEditFormErrorView as _0x4acdb5}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x20e9ff}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1422c2}from'../../utils/dialogfocusmanagerview.js';function _0x40db(_0x230873,_0x510c0d){const _0x2f6d0d=_0x2f6d();return _0x40db=function(_0x40db8a,_0x1b8730){_0x40db8a=_0x40db8a-0x1d5;let _0x25f3cb=_0x2f6d0d[_0x40db8a];return _0x25f3cb;},_0x40db(_0x230873,_0x510c0d);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1422c2{[_0x35dbf6(0x204)];[_0x35dbf6(0x1e4)];[_0x35dbf6(0x1d7)];[_0x35dbf6(0x1dc)];[_0x35dbf6(0x1de)];constructor(_0x127d64,_0x5888f7,_0x492cbe){const _0x5f03e0=_0x35dbf6;super(_0x127d64),this[_0x5f03e0(0x204)]=this[_0x5f03e0(0x1f7)](),this[_0x5f03e0(0x1e4)]=new _0x514f1e(_0x127d64),this[_0x5f03e0(0x1d7)]=new _0x4acdb5(_0x127d64),this[_0x5f03e0(0x1dc)]=new _0x20e9ff(_0x127d64,_0x492cbe),this[_0x5f03e0(0x1de)]=new _0x124e5a(_0x127d64),this[_0x5f03e0(0x1de)][_0x5f03e0(0x1ff)](this[_0x5f03e0(0x1f1)]()),this[_0x5f03e0(0x200)](_0x5f03e0(0x1d5),_0x5888f7),this[_0x5f03e0(0x1ff)]({'tag':_0x5f03e0(0x1e3),'attributes':{'class':['ck',_0x5f03e0(0x1eb),_0x5f03e0(0x1e8)],'tabindex':'-1'},'children':this[_0x5f03e0(0x204)]}),this[_0x5f03e0(0x201)](),this[_0x5f03e0(0x1f8)](_0x5f03e0(0x1dd),()=>{const _0x41baa4=_0x5f03e0;this[_0x41baa4(0x207)](this[_0x41baa4(0x1d6)],_0x44f7c8=>{const _0x5d8315=_0x41baa4;this[_0x5d8315(0x1d8)](_0x44f7c8);});}),this['on'](_0x5f03e0(0x20b),()=>{const _0x2c492c=_0x5f03e0;this[_0x2c492c(0x201)]();}),this[_0x5f03e0(0x1e6)]();}[_0x35dbf6(0x1fa)](){const _0x191ea4=_0x35dbf6;this[_0x191ea4(0x1d6)][_0x191ea4(0x1fa)]();}[_0x35dbf6(0x201)](){const _0x4a704a=_0x35dbf6;switch(this[_0x4a704a(0x204)][_0x4a704a(0x1d9)](),this[_0x4a704a(0x1d5)]){case _0x4a704a(0x202):this[_0x4a704a(0x204)][_0x4a704a(0x1e2)](this[_0x4a704a(0x1e4)]);break;case _0x4a704a(0x1f9):this[_0x4a704a(0x204)][_0x4a704a(0x1e2)](this[_0x4a704a(0x1d7)]);break;case _0x4a704a(0x1ee):this[_0x4a704a(0x204)][_0x4a704a(0x1e0)]([this[_0x4a704a(0x1dc)],this[_0x4a704a(0x1de)]]);}}[_0x35dbf6(0x207)](_0x17bab6,_0x1f2eb6){const _0x2ff739=_0x35dbf6,_0x2adc3f=_0x2ff739(0x1f4),_0x200b98=_0x17bab6[_0x2ff739(0x1f0)](_0x2adc3f);if(_0x200b98)return _0x1f2eb6(_0x200b98);const _0x2e1c28=new MutationObserver(_0x5e24a6=>{const _0x3a8207=_0x2ff739,_0x583363=_0x5e24a6[_0x3a8207(0x1e5)](_0xfb263e=>_0xfb263e[_0x3a8207(0x20a)]===_0x17bab6&&_0xfb263e[_0x3a8207(0x203)][_0x3a8207(0x1f2)]>0x0&&_0xfb263e[_0x3a8207(0x203)][0x0][_0x3a8207(0x1f3)][_0x3a8207(0x208)]()===_0x2adc3f);_0x583363[_0x3a8207(0x1f2)]&&(_0x2e1c28[_0x3a8207(0x209)](),_0x1f2eb6(_0x583363[0x0][_0x3a8207(0x203)][0x0]));});_0x2e1c28[_0x2ff739(0x1e9)](_0x17bab6,{'childList':!0x0,'subtree':!0x0});}[_0x35dbf6(0x1d8)](_0x44859e){const _0x1fc77e=_0x35dbf6;_0x44859e[_0x1fc77e(0x1ea)](_0x1fc77e(0x1ef),_0x312e2a=>{const _0x1fcd83=_0x1fc77e;this[_0x1fcd83(0x1fc)](_0x1fcd83(0x1ef),{'imageSrc':_0x312e2a[_0x1fcd83(0x1f5)][_0x1fcd83(0x205)]});}),_0x44859e[_0x1fc77e(0x1ea)](_0x1fc77e(0x1ed),()=>{const _0x39b672=_0x1fc77e;this[_0x39b672(0x1fc)](_0x39b672(0x1ed));});}[_0x35dbf6(0x1e6)](){const _0x1d89c2=_0x35dbf6;this[_0x1d89c2(0x1d7)]['on'](_0x1d89c2(0x1fb),()=>{const _0x38ad22=_0x1d89c2;this[_0x38ad22(0x1fc)](_0x38ad22(0x1fb));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x882fb1=_0x1e22;(function(_0x117be6,_0x4537e6){const _0x2c6f74=_0x1e22,_0x186b3c=_0x117be6();while(!![]){try{const _0x3aa1ff=-parseInt(_0x2c6f74(0xac))/0x1*(parseInt(_0x2c6f74(0xbc))/0x2)+parseInt(_0x2c6f74(0xb1))/0x3*(parseInt(_0x2c6f74(0xb3))/0x4)+parseInt(_0x2c6f74(0xb5))/0x5*(parseInt(_0x2c6f74(0xc5))/0x6)+parseInt(_0x2c6f74(0xaa))/0x7*(parseInt(_0x2c6f74(0xb0))/0x8)+parseInt(_0x2c6f74(0xba))/0x9*(-parseInt(_0x2c6f74(0xc8))/0xa)+-parseInt(_0x2c6f74(0xbb))/0xb+parseInt(_0x2c6f74(0xc1))/0xc;if(_0x3aa1ff===_0x4537e6)break;else _0x186b3c['push'](_0x186b3c['shift']());}catch(_0x13db63){_0x186b3c['push'](_0x186b3c['shift']());}}}(_0x368a,0x48c38));import{Command as _0x3510b5}from'ckeditor5/src/core.js';function _0x368a(){const _0x1f6e21=['unbind','imageInline','config','6FHqlYS','uploadcare.allowExternalImagesEditing','selection','100eYlPrd','bind','plugins','refresh','2870203TNnFiN','get','267MBXqMA','document','getSelectedElement','editor','8TncXPk','3HindUz','imageEditController','411612kKIupu','execute','1387145UpsxWV','model','requires','element','isEnabled','175590toIOiQ','3794505EAzzLL','1732ttIxUM','set','imageBlock','_isEditable','isActive','3347472oqrJCM'];_0x368a=function(){return _0x1f6e21;};return _0x368a();}import{Dialog as _0x4ffa8a}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3292e8}from'./ui/uploadcareimageeditcontroller.js';function _0x1e22(_0x25fd1c,_0x356907){const _0x368ae8=_0x368a();return _0x1e22=function(_0x1e22e4,_0x285159){_0x1e22e4=_0x1e22e4-0xa8;let _0x25fa00=_0x368ae8[_0x1e22e4];return _0x25fa00;},_0x1e22(_0x25fd1c,_0x356907);}import{createEditabilityChecker as _0x121d78}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3510b5{[_0x882fb1(0xb2)];static get[_0x882fb1(0xb7)](){return[_0x4ffa8a];}[_0x882fb1(0xbf)];constructor(_0x2fc980){const _0x490c07=_0x882fb1;super(_0x2fc980),this[_0x490c07(0xb2)]=void 0x0,this[_0x490c07(0xbf)]=_0x121d78(_0x2fc980[_0x490c07(0xc4)][_0x490c07(0xab)](_0x490c07(0xc6))||[]),this[_0x490c07(0xbd)]({'isActive':!0x1});}[_0x882fb1(0xa9)](){const _0x4bbc88=_0x882fb1,_0x5a015a=this[_0x4bbc88(0xaf)][_0x4bbc88(0xb6)][_0x4bbc88(0xad)][_0x4bbc88(0xc7)][_0x4bbc88(0xae)]();this[_0x4bbc88(0xb9)]=this[_0x4bbc88(0xbf)](_0x5a015a);}[_0x882fb1(0xb4)](){const _0x5ab18e=_0x882fb1;this[_0x5ab18e(0xb2)]&&(this[_0x5ab18e(0xc2)](_0x5ab18e(0xc0)),this[_0x5ab18e(0xb2)]=void 0x0);const _0x1aff18=this[_0x5ab18e(0xaf)][_0x5ab18e(0xb6)][_0x5ab18e(0xad)][_0x5ab18e(0xc7)][_0x5ab18e(0xae)]();_0x1aff18&&(_0x1aff18['is'](_0x5ab18e(0xb8),_0x5ab18e(0xbe))||_0x1aff18['is'](_0x5ab18e(0xb8),_0x5ab18e(0xc3)))&&(this[_0x5ab18e(0xb2)]=new _0x3292e8(this[_0x5ab18e(0xaf)],this[_0x5ab18e(0xaf)][_0x5ab18e(0xa8)][_0x5ab18e(0xab)](_0x4ffa8a),_0x1aff18),this[_0x5ab18e(0xc9)](_0x5ab18e(0xc0))['to'](this[_0x5ab18e(0xb2)],_0x5ab18e(0xc0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x262b(_0xb373c3,_0x380cf6){const _0x50f64a=_0x50f6();return _0x262b=function(_0x262b87,_0x31c2b9){_0x262b87=_0x262b87-0xef;let _0x215d21=_0x50f64a[_0x262b87];return _0x215d21;},_0x262b(_0xb373c3,_0x380cf6);}const _0x554a0d=_0x262b;(function(_0x5698ed,_0x49d2c3){const _0x45dc3f=_0x262b,_0x305de8=_0x5698ed();while(!![]){try{const _0x134070=parseInt(_0x45dc3f(0xef))/0x1+parseInt(_0x45dc3f(0x101))/0x2*(-parseInt(_0x45dc3f(0xfa))/0x3)+parseInt(_0x45dc3f(0xf0))/0x4+parseInt(_0x45dc3f(0xfc))/0x5*(parseInt(_0x45dc3f(0xf4))/0x6)+parseInt(_0x45dc3f(0xf6))/0x7*(parseInt(_0x45dc3f(0x100))/0x8)+-parseInt(_0x45dc3f(0x102))/0x9+-parseInt(_0x45dc3f(0xf1))/0xa*(parseInt(_0x45dc3f(0xf2))/0xb);if(_0x134070===_0x49d2c3)break;else _0x305de8['push'](_0x305de8['shift']());}catch(_0x1ff4e5){_0x305de8['push'](_0x305de8['shift']());}}}(_0x50f6,0x4ae5d));import{Plugin as _0x5037ee}from'ckeditor5/src/core.js';function _0x50f6(){const _0x3c6343=['add','ImageUtils','42jlBhrR','uploadcareImageReplace','79510vSKnOe','UploadcareImageEditEditing','pluginName','init','27152mbOuxx','15146jwvRdt','4743405dnyxhs','commands','ImageEditing','uploadcareImageEdit','297140cQWZJp','311880fLdMht','1747300qaQnyt','22fMEBOg','isOfficialPlugin','222bwtOpY','isPremiumPlugin','672YQXvmY','requires'];_0x50f6=function(){return _0x3c6343;};return _0x50f6();}import{Notification as _0x18ca2f}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3db708}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2b6810}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4dada}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5037ee{static get[_0x554a0d(0xfe)](){const _0x30faa5=_0x554a0d;return _0x30faa5(0xfd);}static get[_0x554a0d(0xf7)](){const _0x5525a1=_0x554a0d;return[_0x4dada,_0x18ca2f,_0x5525a1(0xf9),_0x5525a1(0x104)];}static get[_0x554a0d(0xf3)](){return!0x0;}static get[_0x554a0d(0xf5)](){return!0x0;}[_0x554a0d(0xff)](){const _0x5b8066=_0x554a0d,{editor:_0x13f523}=this;_0x13f523[_0x5b8066(0x103)][_0x5b8066(0xf8)](_0x5b8066(0x105),new _0x3db708(_0x13f523)),_0x13f523[_0x5b8066(0x103)][_0x5b8066(0xf8)](_0x5b8066(0xfb),new _0x2b6810(_0x13f523));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x342f9b}from'ckeditor5/src/core.js';import{ButtonView as _0x50ff20}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x23c6c7}from'ckeditor5/src/icons.js';import{createElement as _0x4f4424}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 _0x342f9b{['_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 _0xab10c7=this['editor'];_0xab10c7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x581459=>{const _0x32d262=_0xab10c7['commands']['get']('uploadcareImageEdit'),_0xc6bc1=new _0x50ff20(_0x581459),t=_0x581459['t'];return _0xc6bc1['set']({'icon':_0x23c6c7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xc6bc1['bind']('isEnabled')['to'](_0x32d262),_0xc6bc1['bind']('isOn')['to'](_0x32d262,'isActive'),this['listenTo'](_0xc6bc1,'execute',()=>{_0xab10c7['execute']('uploadcareImageEdit'),_0xab10c7['editing']['view']['focus']();}),_0xc6bc1;}),this['_initConfig']();}['_initConfig'](){const _0x5623c9=_0x4f4424(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5623c9),this['listenTo'](this['editor'],'destroy',()=>{_0x5623c9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x384b83=_0x1c34;(function(_0x507ac4,_0x3af0e1){const _0x4b8de3=_0x1c34,_0x54c037=_0x507ac4();while(!![]){try{const _0x207f0b=parseInt(_0x4b8de3(0xfe))/0x1+parseInt(_0x4b8de3(0xeb))/0x2+parseInt(_0x4b8de3(0xed))/0x3*(parseInt(_0x4b8de3(0xf7))/0x4)+-parseInt(_0x4b8de3(0xef))/0x5*(parseInt(_0x4b8de3(0xf9))/0x6)+-parseInt(_0x4b8de3(0xf1))/0x7*(-parseInt(_0x4b8de3(0xf4))/0x8)+parseInt(_0x4b8de3(0xfc))/0x9+-parseInt(_0x4b8de3(0xf6))/0xa;if(_0x207f0b===_0x3af0e1)break;else _0x54c037['push'](_0x54c037['shift']());}catch(_0x1a7614){_0x54c037['push'](_0x54c037['shift']());}}}(_0x4f83,0xa9d99));import{Command as _0x3e6c8d}from'ckeditor5/src/core.js';function _0x1c34(_0x45ffe6,_0x3fae9a){const _0x4f832d=_0x4f83();return _0x1c34=function(_0x1c343e,_0x15f807){_0x1c343e=_0x1c343e-0xe5;let _0x344950=_0x4f832d[_0x1c343e];return _0x344950;},_0x1c34(_0x45ffe6,_0x3fae9a);}export class UploadcareImageReplaceCommand extends _0x3e6c8d{[_0x384b83(0xf2)](){const _0x2db15b=_0x384b83,_0x5265be=this[_0x2db15b(0xec)][_0x2db15b(0xe9)][_0x2db15b(0xfb)][_0x2db15b(0xe6)][_0x2db15b(0xfa)]();this[_0x2db15b(0xf0)]=Boolean(_0x5265be&&(_0x5265be['is'](_0x2db15b(0xe5),_0x2db15b(0xee))||_0x5265be['is'](_0x2db15b(0xe5),_0x2db15b(0xe7))));}[_0x384b83(0xe8)](_0x3635f1){const _0x2201aa=_0x384b83,_0x59d206=this[_0x2201aa(0xec)][_0x2201aa(0xe9)][_0x2201aa(0xfb)][_0x2201aa(0xe6)][_0x2201aa(0xfa)]();this[_0x2201aa(0xec)][_0x2201aa(0xe9)][_0x2201aa(0xf8)](_0x1b222a=>{const _0x46d130=_0x2201aa;_0x1b222a[_0x46d130(0xf3)](_0x3635f1,_0x59d206),_0x1b222a[_0x46d130(0xf5)](_0x46d130(0xfd),_0x59d206),_0x1b222a[_0x46d130(0xf5)](_0x46d130(0xea),_0x59d206);});}}function _0x4f83(){const _0x4f4d74=['imageBlock','6793470LCnlPv','isEnabled','14FCjWhx','refresh','setAttributes','5012600czkfVO','removeAttribute','32627650aEKncA','4974260goYUpX','change','6MOCIwA','getSelectedElement','document','9626949RgbYpx','srcset','583795OcnqUw','element','selection','imageInline','execute','model','sizes','2333986cxmNYY','editor','3urllaX'];_0x4f83=function(){return _0x4f4d74;};return _0x4f83();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5bc9be=_0x3b6a;(function(_0xce6c1,_0x334280){var _0x252bc5=_0x3b6a,_0x581682=_0xce6c1();while(!![]){try{var _0x39cae7=parseInt(_0x252bc5(0x15a))/0x1+parseInt(_0x252bc5(0x157))/0x2*(parseInt(_0x252bc5(0x155))/0x3)+-parseInt(_0x252bc5(0x163))/0x4+-parseInt(_0x252bc5(0x154))/0x5*(parseInt(_0x252bc5(0x15f))/0x6)+parseInt(_0x252bc5(0x15b))/0x7+parseInt(_0x252bc5(0x161))/0x8*(-parseInt(_0x252bc5(0x15e))/0x9)+parseInt(_0x252bc5(0x158))/0xa*(parseInt(_0x252bc5(0x162))/0xb);if(_0x39cae7===_0x334280)break;else _0x581682['push'](_0x581682['shift']());}catch(_0x49deae){_0x581682['push'](_0x581682['shift']());}}}(_0x3804,0x804cb));function _0x3804(){var _0xe2caee=['pluginName','UploadcareImageEdit','45882SXfFXK','113496EtFTvo','isOfficialPlugin','1016hlulYd','462thumRA','1587388BWthkM','200MhQEZm','3DbXPgX','isPremiumPlugin','1728230zlezDo','22210EdZUHB','requires','327760yFvOTQ','7289037ZDsrEE'];_0x3804=function(){return _0xe2caee;};return _0x3804();}function _0x3b6a(_0x2681fc,_0x41831f){var _0x3804ab=_0x3804();return _0x3b6a=function(_0x3b6a8d,_0x52c25d){_0x3b6a8d=_0x3b6a8d-0x154;var _0x2709b8=_0x3804ab[_0x3b6a8d];return _0x2709b8;},_0x3b6a(_0x2681fc,_0x41831f);}import{Plugin as _0x52d43c}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x547a15}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5041e4}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x52d43c{static get[_0x5bc9be(0x15c)](){var _0x411db0=_0x5bc9be;return _0x411db0(0x15d);}static get[_0x5bc9be(0x159)](){return[_0x547a15,_0x5041e4];}static get[_0x5bc9be(0x160)](){return!0x0;}static get[_0x5bc9be(0x156)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4eab3f=_0x1374;function _0x3131(){const _0xaac030=['1305639ZfGmaG','reduce','5416732hbtANM','uploadcareLicenseKeyUsageLimit','_createDropdownButtons','Facebook','isPremiumPlugin','expired','destroy','uploadcareLicenseKeyEvaluationLimit','isOfficialPlugin','shortText','locale','Uploadcare','isEnabled','644068nCDPRn','domainLimit','_createButton','execute','plugins','7218066qtfftx','Replace','GDrive','invalid','url','pluginName','_normalizeConfigSourceList','type','usageLimit','registerIntegration','_createToolbarButton','1YgSpSc','uploadcareLicenseKeyNotAllowed','config','Dropbox','evaluationLimit','commands','6886120MvSgoI','uploadcare.uploader.sourceList','URL','1336dbwPKW','_getIntegrationKey','uploadcareLicenseKeyInvalid','GPhotos','text','push','uploadcare','_licenseKeyCheckInterval','assetManager','withText','get','label','ImageInsertUI','licenseKey','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyExpired','tooltip','4044733WVlDyX','UploadcareUI','forEach','trialLimit','Insert','_showLicenseError','entries','has','bind','upload','_createMenuBarButtons','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyValid','icon','46026byUAnk','init','Local','featureNotAllowed','map','editor','afterInit','OneDrive','isImageSelected'];_0x3131=function(){return _0xaac030;};return _0x3131();}(function(_0x13ed0d,_0x3ff3d3){const _0x2b19a3=_0x1374,_0x124035=_0x13ed0d();while(!![]){try{const _0x2f2f66=-parseInt(_0x2b19a3(0x15d))/0x1*(parseInt(_0x2b19a3(0x14d))/0x2)+-parseInt(_0x2b19a3(0x13e))/0x3+parseInt(_0x2b19a3(0x140))/0x4+-parseInt(_0x2b19a3(0x163))/0x5+parseInt(_0x2b19a3(0x152))/0x6+-parseInt(_0x2b19a3(0x177))/0x7+-parseInt(_0x2b19a3(0x166))/0x8*(-parseInt(_0x2b19a3(0x185))/0x9);if(_0x2f2f66===_0x3ff3d3)break;else _0x124035['push'](_0x124035['shift']());}catch(_0x393237){_0x124035['push'](_0x124035['shift']());}}}(_0x3131,0xaaa3e));function _0x1374(_0x1d3cb8,_0x305658){const _0x31319a=_0x3131();return _0x1374=function(_0x1374a6,_0x158468){_0x1374a6=_0x1374a6-0x13b;let _0x444b6c=_0x31319a[_0x1374a6];return _0x444b6c;},_0x1374(_0x1d3cb8,_0x305658);}import{Plugin as _0x2893d9}from'ckeditor5/src/core.js';import{IconDropbox as _0x4b3771,IconFacebook as _0x404f44,IconGoogleDrive as _0x4d8dc7,IconGooglePhotos as _0x2757cb,IconUploadcareImageUpload as _0x5f4b07,IconUploadcareLink as _0x546697,IconOneDrive as _0x322c3b}from'ckeditor5/src/icons.js';import{ButtonView as _0x13d1d1,MenuBarMenuListItemButtonView as _0x2da244}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1d1de3}from'./uploadcareconfig.js';import{getTranslation as _0x33af9a}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 _0x2893d9{[_0x4eab3f(0x173)];[_0x4eab3f(0x16d)];static get[_0x4eab3f(0x157)](){const _0x4fde97=_0x4eab3f;return _0x4fde97(0x178);}static get[_0x4eab3f(0x148)](){return!0x0;}static get[_0x4eab3f(0x144)](){return!0x0;}[_0x4eab3f(0x186)](){const _0x5126d1=_0x4eab3f;this[_0x5126d1(0x173)]=this[_0x5126d1(0x18a)][_0x5126d1(0x15f)][_0x5126d1(0x170)](_0x5126d1(0x173));const _0x8755c9=this[_0x5126d1(0x18a)];this[_0x5126d1(0x16d)]=setInterval(()=>{const _0x1fc688=_0x5126d1;let _0x313fb6;for(const _0x4e8e7c in _0x8755c9){const _0x5acd89=_0x4e8e7c,_0x4230ac=_0x8755c9[_0x5acd89];if(_0x1fc688(0x183)==_0x4230ac||_0x1fc688(0x168)==_0x4230ac||_0x1fc688(0x175)==_0x4230ac||_0x1fc688(0x182)==_0x4230ac||_0x1fc688(0x15e)==_0x4230ac||_0x1fc688(0x147)==_0x4230ac||_0x1fc688(0x174)==_0x4230ac||_0x1fc688(0x141)==_0x4230ac){delete _0x8755c9[_0x5acd89],_0x313fb6=_0x4230ac,clearInterval(this[_0x1fc688(0x16d)]),this[_0x1fc688(0x16d)]=void 0x0;break;}}_0x1fc688(0x168)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x155)),_0x1fc688(0x175)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x145)),_0x1fc688(0x182)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x14e)),_0x1fc688(0x15e)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x188),_0x1fc688(0x14b)),_0x1fc688(0x147)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x161)),_0x1fc688(0x174)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x17a)),_0x1fc688(0x141)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x15a));},0x3e8);}[_0x4eab3f(0x13b)](){const _0x19ce54=_0x4eab3f,{editor:_0x2f969c}=this,_0x77ddc8=_0x2f969c[_0x19ce54(0x162)][_0x19ce54(0x170)](_0x19ce54(0x16c));if(!_0x77ddc8)return;const _0x42ad2e=this[_0x19ce54(0x158)](_0x2f969c[_0x19ce54(0x15f)][_0x19ce54(0x170)](_0x19ce54(0x164)))[_0x19ce54(0x13f)]((_0x1dcc36,_0x3c64de)=>{const _0x463033=_0x19ce54,_0x5c44ec=this[_0x463033(0x167)](_0x3c64de[_0x463033(0x159)]);return _0x1dcc36[_0x5c44ec]||(_0x1dcc36[_0x5c44ec]=[]),_0x1dcc36[_0x5c44ec][_0x463033(0x16b)](_0x3c64de),_0x1dcc36;},{});_0x2f969c[_0x19ce54(0x151)][_0x19ce54(0x17e)](_0x19ce54(0x172))&&_0x2f969c[_0x19ce54(0x162)][_0x19ce54(0x170)](_0x19ce54(0x16c))&&Object[_0x19ce54(0x17d)](_0x42ad2e)[_0x19ce54(0x179)](([_0x26da41,_0x43af39])=>{const _0x2bdff1=_0x19ce54;_0x2f969c[_0x2bdff1(0x151)][_0x2bdff1(0x170)](_0x2bdff1(0x172))[_0x2bdff1(0x15b)]({'name':_0x26da41,'observable':()=>_0x77ddc8,'buttonViewCreator':()=>this[_0x2bdff1(0x15c)](_0x43af39),'formViewCreator':()=>this[_0x2bdff1(0x142)](_0x43af39),'menuBarButtonViewCreator':()=>this[_0x2bdff1(0x181)](_0x43af39),'override':_0x2bdff1(0x16e)!==_0x26da41});});}[_0x4eab3f(0x146)](){const _0x2f0d95=_0x4eab3f;super[_0x2f0d95(0x146)](),this[_0x2f0d95(0x16d)]&&clearInterval(this[_0x2f0d95(0x16d)]);}[_0x4eab3f(0x158)](_0x16a525){const _0x563aad=_0x4eab3f,{locale:_0x3b67b9}=this[_0x563aad(0x18a)];return _0x16a525[_0x563aad(0x189)](_0x2e3607=>{const _0x24178f=_0x563aad,_0x125246=_0x33af9a(_0x3b67b9,_0x2e3607,_0x24178f(0x17b));switch(_0x2e3607){case _0x1d1de3[_0x24178f(0x187)]:return{'icon':_0x5f4b07,'type':_0x1d1de3[_0x24178f(0x187)],..._0x125246};case _0x1d1de3[_0x24178f(0x165)]:return{'icon':_0x546697,'type':_0x1d1de3[_0x24178f(0x165)],..._0x125246};case _0x1d1de3[_0x24178f(0x160)]:return{'icon':_0x4b3771,'type':_0x1d1de3[_0x24178f(0x160)],..._0x125246};case _0x1d1de3[_0x24178f(0x143)]:return{'icon':_0x404f44,'type':_0x1d1de3[_0x24178f(0x143)],..._0x125246};case _0x1d1de3[_0x24178f(0x154)]:return{'icon':_0x4d8dc7,'type':_0x1d1de3[_0x24178f(0x154)],..._0x125246};case _0x1d1de3[_0x24178f(0x169)]:return{'icon':_0x2757cb,'type':_0x1d1de3[_0x24178f(0x169)],..._0x125246};case _0x1d1de3[_0x24178f(0x13c)]:return{'icon':_0x322c3b,'type':_0x1d1de3[_0x24178f(0x13c)],..._0x125246};}});}[_0x4eab3f(0x167)](_0x1ded9e){const _0x609d24=_0x4eab3f;switch(_0x1ded9e){case _0x1d1de3[_0x609d24(0x187)]:return _0x609d24(0x180);case _0x1d1de3[_0x609d24(0x165)]:return _0x609d24(0x156);default:return _0x609d24(0x16e);}}[_0x4eab3f(0x14f)](_0x411ec3,_0x5d0061){const _0x5d3c08=_0x4eab3f,_0x5a98a0=this[_0x5d3c08(0x18a)],_0xfd2ff4=new _0x411ec3(_0x5a98a0[_0x5d3c08(0x14a)]),_0x1c06d7=_0x5a98a0[_0x5d3c08(0x162)][_0x5d3c08(0x170)](_0x5d3c08(0x16c));return _0xfd2ff4[_0x5d3c08(0x17f)](_0x5d3c08(0x14c))['to'](_0x1c06d7),_0xfd2ff4['on'](_0x5d3c08(0x150),()=>{const _0x194e4f=_0x5d3c08;_0x1c06d7[_0x194e4f(0x150)](_0x5d0061);}),_0xfd2ff4;}[_0x4eab3f(0x15c)](_0xa84666){const _0x422406=_0x4eab3f,{locale:_0x34be81}=this[_0x422406(0x18a)],_0x3ff150=this[_0x422406(0x18a)][_0x422406(0x151)][_0x422406(0x170)](_0x422406(0x172)),_0x381774=_0xa84666[0x0],_0x5238db=this[_0x422406(0x14f)](_0x13d1d1,_0x381774[_0x422406(0x159)]);return _0x5238db[_0x422406(0x184)]=_0x381774[_0x422406(0x184)],_0x5238db[_0x422406(0x17f)](_0x422406(0x171))['to'](_0x3ff150,_0x422406(0x13d),_0x3d20d5=>_0x33af9a(_0x34be81,_0x381774[_0x422406(0x159)],_0x3d20d5?_0x422406(0x153):_0x422406(0x17b))[_0x422406(0x16a)]),_0x5238db[_0x422406(0x176)]=!0x0,_0x5238db;}[_0x4eab3f(0x142)](_0x1dccd0){const _0x407c1e=_0x4eab3f,{locale:_0x57ff48}=this[_0x407c1e(0x18a)],_0x57d8e2=this[_0x407c1e(0x18a)][_0x407c1e(0x151)][_0x407c1e(0x170)](_0x407c1e(0x172));return _0x1dccd0[_0x407c1e(0x189)](_0x3ee623=>{const _0x1dfe32=_0x407c1e,_0x104bb5=this[_0x1dfe32(0x14f)](_0x13d1d1,_0x3ee623[_0x1dfe32(0x159)]);return _0x104bb5[_0x1dfe32(0x16f)]=!0x0,_0x104bb5[_0x1dfe32(0x184)]=_0x3ee623[_0x1dfe32(0x184)],_0x104bb5[_0x1dfe32(0x17f)](_0x1dfe32(0x171))['to'](_0x57d8e2,_0x1dfe32(0x13d),_0x53dff3=>_0x33af9a(_0x57ff48,_0x3ee623[_0x1dfe32(0x159)],_0x53dff3?_0x1dfe32(0x153):_0x1dfe32(0x17b))[_0x1dfe32(0x16a)]),_0x104bb5;});}[_0x4eab3f(0x181)](_0x31fc1f){const _0x2acec7=_0x4eab3f;return _0x31fc1f[_0x2acec7(0x189)](_0xcfd2e8=>{const _0x4dce2a=_0x2acec7,_0x4826ac=this[_0x4dce2a(0x14f)](_0x2da244,_0xcfd2e8[_0x4dce2a(0x159)]);return _0x4826ac[_0x4dce2a(0x184)]=_0xcfd2e8[_0x4dce2a(0x184)],_0x4826ac[_0x4dce2a(0x171)]=_0xcfd2e8[_0x4dce2a(0x149)],_0x4826ac;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x369d17}from'ckeditor5/src/core.js';import{FileRepository as _0x41dfc8}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x55cee4}from'./uploadcareediting.js';import{UploadUtils as _0x1391dc}from'./utils/uploadutils.js';import{getImageUrls as _0x44b70f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x369d17{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41dfc8,_0x55cee4];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5c4511=this['editor'];if(!!!_0x5c4511['config']['get']('uploadcare'))return;_0x5c4511['plugins']['get'](_0x41dfc8)['createUploadAdapter']=_0x4ba6f6=>new k(_0x4ba6f6,_0x5c4511),_0x5c4511['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5a19ef,{imageElement:_0x117efd,data:_0x18edfb})=>{_0x5c4511['model']['change'](_0x409675=>{_0x409675['setAttribute']('uploadcareImageId',_0x18edfb['uploadcareImageId'],_0x117efd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x483b1b,_0x1510b1){this['loader']=_0x483b1b,this['editor']=_0x1510b1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49fece=await this['loader']['file'];return _0x1391dc['upload']({'file':_0x49fece,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x51c53e=>{_0x51c53e&&_0x51c53e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x51c53e['value']);}})['then'](async _0x5df864=>{const {imageFallbackUrl:_0x11570a,imageSources:_0x280b0b}=_0x44b70f(_0x5df864['cdnUrl'],_0x5df864['imageInfo']['width']);return{'uploadcareImageId':_0x5df864['uuid'],'default':_0x11570a,'sources':_0x280b0b};})['catch'](()=>{const _0x901ea4=t('Cannot\x20upload\x20file:')+('\x20'+_0x49fece['name']+'.');return Promise['reject'](_0x901ea4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x313732}from'../uploadcareconfig.js';export function getTranslation(_0x311f7e,_0xb89242,_0x4d047b){const t=_0x311f7e['t'],_0x17d94d=_0x311f7e['t'];switch(_0xb89242){case _0x313732['Local']:return{'text':_0x17d94d('Insert'===_0x4d047b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17d94d('From\x20computer')};case _0x313732['URL']:return{'text':'Insert'===_0x4d047b?_0x17d94d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17d94d('Via\x20URL')};case _0x313732['Dropbox']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x313732['Facebook']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x313732['GDrive']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x313732['GPhotos']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x313732['OneDrive']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xb89242;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4a90(){var _0x3cdb14=['1gmMjYi','462344MUINXi','35nYdzdy','focusTracker','true','215162HFvMmZ','8148BoKwux','1322072yrSyAE','focusCycler','9FOYCHi','11272668xdQvlS','bindTemplate','545496NmIwGP','createCollection','forwardCycle','fire','div','370mdqhQW','getFocusableElement','319070TaUsiY'];_0x4a90=function(){return _0x3cdb14;};return _0x4a90();}var _0x18abfa=_0x543a;(function(_0xb5eb01,_0x1a0d75){var _0x1ed4ae=_0x543a,_0xe16b01=_0xb5eb01();while(!![]){try{var _0x10427f=parseInt(_0x1ed4ae(0x1aa))/0x1*(-parseInt(_0x1ed4ae(0x1af))/0x2)+-parseInt(_0x1ed4ae(0x1b6))/0x3+-parseInt(_0x1ed4ae(0x1b1))/0x4+parseInt(_0x1ed4ae(0x1a7))/0x5*(parseInt(_0x1ed4ae(0x1b0))/0x6)+parseInt(_0x1ed4ae(0x1ac))/0x7*(-parseInt(_0x1ed4ae(0x1ab))/0x8)+parseInt(_0x1ed4ae(0x1b3))/0x9*(-parseInt(_0x1ed4ae(0x1a9))/0xa)+parseInt(_0x1ed4ae(0x1b4))/0xb;if(_0x10427f===_0x1a0d75)break;else _0xe16b01['push'](_0xe16b01['shift']());}catch(_0x382468){_0xe16b01['push'](_0xe16b01['shift']());}}}(_0x4a90,0x2d09d));function _0x543a(_0x817026,_0x3c5f40){var _0x4a901a=_0x4a90();return _0x543a=function(_0x543ac1,_0x200965){_0x543ac1=_0x543ac1-0x1a4;var _0x39f324=_0x4a901a[_0x543ac1];return _0x39f324;},_0x543a(_0x817026,_0x3c5f40);}import{FocusTracker as _0x349d6a}from'ckeditor5/src/utils.js';import{View as _0x5b2986,FocusCycler as _0x37b4b0}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5b2986{[_0x18abfa(0x1ad)];[_0x18abfa(0x1b2)];constructor(_0x4c9abf){var _0x55a8de=_0x18abfa;super(_0x4c9abf),this[_0x55a8de(0x1ad)]=new _0x349d6a(),this[_0x55a8de(0x1b2)]=new _0x37b4b0({'focusables':this[_0x55a8de(0x1b7)](),'focusTracker':this[_0x55a8de(0x1ad)]});}[_0x18abfa(0x1a8)](){var _0x5af26e=_0x18abfa;return{'tag':_0x5af26e(0x1a6),'attributes':{'aria-hidden':_0x5af26e(0x1ae),'tabindex':'0'},'on':{'focus':this[_0x5af26e(0x1b5)]['to'](()=>{var _0x353045=_0x5af26e;this[_0x353045(0x1b2)][_0x353045(0x1a5)](_0x353045(0x1a4));})}};}}
|