@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260114.0 → 0.0.0-nightly-20260115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5173ba=_0x1a46;(function(_0x4f9337,_0x18dd07){const _0x3b55cd=_0x1a46,_0xa8c5be=_0x4f9337();while(!![]){try{const _0x4aeb70=parseInt(_0x3b55cd(0xea))/0x1*(-parseInt(_0x3b55cd(0x11c))/0x2)+parseInt(_0x3b55cd(0x124))/0x3*(-parseInt(_0x3b55cd(0xdc))/0x4)+parseInt(_0x3b55cd(0xe5))/0x5*(parseInt(_0x3b55cd(0xe7))/0x6)+-parseInt(_0x3b55cd(0x122))/0x7*(parseInt(_0x3b55cd(0x105))/0x8)+-parseInt(_0x3b55cd(0xe8))/0x9*(-parseInt(_0x3b55cd(0xf0))/0xa)+parseInt(_0x3b55cd(0x10b))/0xb*(-parseInt(_0x3b55cd(0x120))/0xc)+parseInt(_0x3b55cd(0xf2))/0xd;if(_0x4aeb70===_0x18dd07)break;else _0xa8c5be['push'](_0xa8c5be['shift']());}catch(_0x14c68c){_0xa8c5be['push'](_0xa8c5be['shift']());}}}(_0x499e,0xaf9a4));import{Plugin as _0x237e45}from'ckeditor5/src/core.js';import{Dialog as _0x1e0705}from'ckeditor5/src/ui.js';function _0x499e(){const _0x5c6b01=['cleanupImage','config','afterInit','once','editor','closeMax','_initConversion','appendChild','destroy','_initCtx','querySelector','schema','20EKLMYr','replaceImageSource','_initConfig','uploadcareImageReplace','data-uc-image-id','pluginName','document','true','conversion','303245VHCBCP','remove','6PxBtHF','6732522EWjuKN','isPremiumPlugin','49373RJUGLA','href','downcast','view','_ctxElement','body','10tGtGzx','imageBlock','39824070qYcIRj','_initSchema','UploadcareEditing','_initImageProcessingIndicator','requires','uc-upload-ctx-provider','model','uploader-','uc-config','configElement','_configElement','join','iconHrefResolver','getAttribute','fromCharCode','selection','attributeToAttribute','getSelectedElement','init','376NuGqrF','editing','upcast','get','commands','imageInline','11OrTMKf','execute','uploadcare.uploader','removeAttribute','elementToAttribute','ctxElement','listenTo','render','isRegistered','locale','uploadcare.pubkey','add','#uc-icon-arrow-down','extend','insertImage','contentLanguage','isOfficialPlugin','34BPDbVs','ucContextId','for','PictureEditing','12322416CQxNXv','uploadcareImageId','151025NAcUKZ','map','163557Lnshxc','\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','input[uploadcare-file-input]','uploadcare'];_0x499e=function(){return _0x5c6b01;};return _0x499e();}import{createElement as _0x4c4bcd,global as _0x1c212c,uid as _0x5a0cf7}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5473bc}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3abd48}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xbd921a}from'./utils/editingutils.js';function _0x1a46(_0x80a0fd,_0xa0cd1c){const _0x499ed0=_0x499e();return _0x1a46=function(_0x1a4662,_0x58877c){_0x1a4662=_0x1a4662-0xd8;let _0x59dfee=_0x499ed0[_0x1a4662];return _0x59dfee;},_0x1a46(_0x80a0fd,_0xa0cd1c);}export class UploadcareEditing extends _0x237e45{[_0x5173ba(0xfc)]=null;[_0x5173ba(0xee)]=null;static get[_0x5173ba(0xe1)](){const _0x540660=_0x5173ba;return _0x540660(0xf4);}static get[_0x5173ba(0xf6)](){const _0x1a7b07=_0x5173ba;return[_0x1a7b07(0x11f),_0x3abd48,_0x1e0705];}static get[_0x5173ba(0x11b)](){return!0x0;}static get[_0x5173ba(0xe9)](){return!0x0;}[_0x5173ba(0x11d)];get[_0x5173ba(0xfb)](){const _0x282fd5=_0x5173ba;return this[_0x282fd5(0xfc)];}get[_0x5173ba(0x110)](){const _0x457cf9=_0x5173ba;return this[_0x457cf9(0xee)];}constructor(_0x4f8738){const _0x15f482=_0x5173ba;super(_0x4f8738),this[_0x15f482(0x11d)]=_0x5a0cf7();}[_0x5173ba(0x104)](){const _0x3f737f=_0x5173ba,_0x3ecaf0=this[_0x3f737f(0x12c)];_0x3ecaf0[_0x3f737f(0x109)][_0x3f737f(0x116)](_0x3f737f(0x127),new _0x5473bc(_0x3ecaf0));}[_0x5173ba(0x12a)](){const _0xb19731=_0x5173ba;this[_0xb19731(0xf3)](),this[_0xb19731(0x12e)](),this[_0xb19731(0xde)](),this[_0xb19731(0xd9)](),this[_0xb19731(0xf5)](),this[_0xb19731(0x111)](this[_0xb19731(0x12c)],_0xb19731(0xd8),()=>{const _0x16c0ea=_0xb19731;this[_0x16c0ea(0xfc)]&&(this[_0x16c0ea(0xfc)][_0x16c0ea(0xe6)](),this[_0x16c0ea(0xfc)]=null),this[_0x16c0ea(0xee)]&&(this[_0x16c0ea(0xee)][_0x16c0ea(0xe6)](),this[_0x16c0ea(0xee)]=null);const _0x3ce249=_0x1c212c[_0x16c0ea(0xe2)][_0x16c0ea(0xda)](_0x16c0ea(0x126));_0x3ce249&&_0x3ce249[_0x16c0ea(0xe6)]();}),async function(_0x3a9d7b){const _0x17a2c0=_0x4756ba([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]),_0x267b4f=0x535f8c3a,_0x441ba8=0x5358f2f2^_0x267b4f,_0x1bef25=window[_0x4756ba([0x44,0x61,0x74,0x65])][_0x4756ba([0x6e,0x6f,0x77])](),_0x467158=_0x3a9d7b[_0x4756ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ff1ff=new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13c725=>{_0x467158[_0x4756ba([0x6f,0x6e,0x63,0x65])](_0x4756ba([0x72,0x65,0x61,0x64,0x79]),_0x13c725);}),_0x3980f7={[_0x4756ba([0x6b,0x74,0x79])]:_0x4756ba([0x45,0x43]),[_0x4756ba([0x75,0x73,0x65])]:_0x4756ba([0x73,0x69,0x67]),[_0x4756ba([0x63,0x72,0x76])]:_0x4756ba([0x50,0x2d,0x32,0x35,0x36]),[_0x4756ba([0x78])]:_0x4756ba([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]),[_0x4756ba([0x79])]:_0x4756ba([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]),[_0x4756ba([0x61,0x6c,0x67])]:_0x4756ba([0x45,0x53,0x32,0x35,0x36])},_0x4d17b6=_0x467158[_0x4756ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4756ba([0x67,0x65,0x74])](_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x410738(){let _0x21c69c,_0x1cb197=null,_0x475c7b=null;try{if(_0x4d17b6==_0x4756ba([0x47,0x50,0x4c]))return _0x4756ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21c69c=_0x302d73(),!_0x21c69c)return _0x4756ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21c69c[_0x4756ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x475c7b=_0x11dce4(_0x21c69c[_0x4756ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21c69c[_0x4756ba([0x6a,0x74,0x69])])),await _0xf0436c()?_0xa5410c()?_0x4bad4e()?_0x4756ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x30d600()?(_0x21c69c[_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4756ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cb197=_0x53ccbb(_0x4756ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x132e12()):_0x4756ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4756ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4756ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4756ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bad4e(){const _0x2e5189=[_0x4756ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4756ba([0x74,0x72,0x69,0x61,0x6c])][_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c69c[_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bef25/0x3e8:0xe10*_0x441ba8;return _0x21c69c[_0x4756ba([0x65,0x78,0x70])]<_0x2e5189;}function _0xa5410c(){const _0x2bd441=_0x21c69c[_0x4756ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bd441&&(!!_0x2bd441[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4756ba([0x2a]))||!!_0x2bd441[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4756ba([0x55,0x50,0x4c,0x43])));}function _0x30d600(){const _0x146344=_0x1a46,_0x516c6a=_0x21c69c[_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x516c6a||0x0==_0x516c6a[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x293adb}=new URL(window[_0x4756ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x146344(0xeb)]);if(_0x516c6a[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293adb))return!0x0;const _0x22892c=_0x293adb[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e]));return _0x516c6a[_0x4756ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ae74e=>_0x3ae74e[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4756ba([0x2a])))[_0x4756ba([0x6d,0x61,0x70])](_0x20bca0=>_0x20bca0[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e])))[_0x4756ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a42a9=>_0x1a42a9[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22892c[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4756ba([0x6d,0x61,0x70])](_0x835f1d=>Array(_0x22892c[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x835f1d[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4756ba([0x66,0x69,0x6c,0x6c])](_0x835f1d[0x0]===_0x4756ba([0x2a])?_0x4756ba([0x2a]):'')[_0x4756ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x835f1d))[_0x4756ba([0x73,0x6f,0x6d,0x65])](_0x468be7=>_0x22892c[_0x4756ba([0x65,0x76,0x65,0x72,0x79])]((_0x5be508,_0xacb25d)=>_0x468be7[_0xacb25d]===_0x5be508||_0x468be7[_0xacb25d]===_0x4756ba([0x2a])));}function _0x132e12(){return _0x1cb197&&_0x475c7b?new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57b8a1,_0x225945)=>{_0x1cb197[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x57b8a1,_0x225945),_0x475c7b[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x346ba5=>{_0x346ba5!=_0x4756ba([0x56,0x61,0x6c,0x69,0x64])&&_0x57b8a1(_0x346ba5);},_0x225945);}):_0x1cb197||_0x475c7b||_0x4756ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11dce4(_0x488fed,_0x57753e){return new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d6b1=>{if(_0x4dd0b1())return _0x33d6b1(_0x4756ba([0x56,0x61,0x6c,0x69,0x64]));_0x3a4b74(),_0x467158[_0x4756ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4756ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2dca9b=!0x1;const _0x46b6df=_0x5a0cf7();function _0x481c9a(_0x30c8d2){return!!_0x30c8d2&&(typeof _0x30c8d2===_0x4756ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30c8d2===_0x4756ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30c8d2[_0x4756ba([0x74,0x68,0x65,0x6e])]===_0x4756ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30c8d2[_0x4756ba([0x63,0x61,0x74,0x63,0x68])]===_0x4756ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e0754(_0x2c9cc3){_0x4268e3(_0x2c9cc3)[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x5e20b0=>{if(!_0x5e20b0||_0x5e20b0[_0x4756ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4756ba([0x6f,0x6b]))return _0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe1b053(_0x4cf369(_0x46b6df+_0x57753e))!=_0x5e20b0[_0x4756ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4756ba([0x56,0x61,0x6c,0x69,0x64]);})[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x1a48ac=>(_0x41685f(),_0x1a48ac),()=>{const _0x495a78=_0xebe92e();return null==_0x495a78?(_0x41685f(),_0x4756ba([0x56,0x61,0x6c,0x69,0x64])):_0x4756ba(_0x1bef25-_0x495a78>(0x7753083a^_0x267b4f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x33d6b1)[_0x4756ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33d6b1(_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a63b2=0x536962ba^_0x267b4f;function _0x41685f(){const _0x5ae139=_0x4756ba([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1b053(_0x4cf369(_0x488fed)),_0x1b14b7=_0xcb2ff1(_0xe1b053(window[_0x4756ba([0x4d,0x61,0x74,0x68])][_0x4756ba([0x63,0x65,0x69,0x6c])](_0x1bef25/_0x2a63b2)));window[_0x4756ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4756ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ae139,_0x1b14b7);}function _0xebe92e(){const _0x30666c=_0x4756ba([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1b053(_0x4cf369(_0x488fed)),_0xc5d0f0=window[_0x4756ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4756ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30666c);return _0xc5d0f0?window[_0x4756ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcb2ff1(_0xc5d0f0),0x10)*_0x2a63b2:null;}function _0x4268e3(_0x526592){return new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x213f31,_0x121478)=>{_0x526592[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x213f31,_0x121478),window[_0x4756ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x121478,0x535e58fa^_0x267b4f);});}}_0x467158[_0x4756ba([0x6f,0x6e])](_0x4756ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f3d8d,_0x17ad2c)=>{if(_0x17ad2c[0x0]!=_0x488fed)return _0x33d6b1(_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17ad2c[0x1]={..._0x17ad2c[0x1],[_0x4756ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46b6df};},{[_0x4756ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4756ba([0x68,0x69,0x67,0x68])}),_0x467158[_0x4756ba([0x6f,0x6e])](_0x4756ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37640f=>{_0x481c9a(_0x37640f[_0x4756ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2dca9b=!0x0,_0x4e0754(_0x37640f[_0x4756ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4756ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4756ba([0x6c,0x6f,0x77])}),_0x3ff1ff[_0x4756ba([0x74,0x68,0x65,0x6e])](()=>{_0x2dca9b||_0x33d6b1(_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dd0b1(){return _0x467158[_0x4756ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4756ba([0x76,0x69,0x65,0x77])][_0x4756ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4756ba([0x61,0x75,0x74,0x6f]);}function _0x3a4b74(){_0x467158[_0x4756ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4756ba([0x76,0x69,0x65,0x77])][_0x4756ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4756ba([0x61,0x75,0x74,0x6f]);}}function _0x53ccbb(_0x5e4b19){const _0x5dc291=[new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30fc4d=>setTimeout(_0x30fc4d,0x5356b2f6^_0x267b4f)),_0x3ff1ff[_0x4756ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x695aa4=>{let _0x1d0ec0=0x0;_0x467158[_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4756ba([0x6f,0x6e])](_0x4756ba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4350a9,_0x235064)=>{_0x235064[0x0][_0x4756ba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d0ec0++,_0x1d0ec0==(0x535f89d2^_0x267b4f)&&(_0x695aa4(),_0x4350a9[_0x4756ba([0x6f,0x66,0x66])]());});}))];return window[_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4756ba([0x72,0x61,0x63,0x65])](_0x5dc291)[_0x4756ba([0x74,0x68,0x65,0x6e])](()=>_0x5e4b19);}async function _0x48951f(){await _0x3ff1ff,_0x467158[_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4756ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5703,_0x467158[_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4756ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5703,_0x467158[_0x4756ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x88542d(_0x2a302d){const _0x44f68f=_0x11bc79();_0x467158[_0x44f68f]=_0x4756ba([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a302d,_0x2a302d!=_0x4756ba([0x56,0x61,0x6c,0x69,0x64])&&_0x48951f();}function _0x11bc79(){const _0x5e51de=window[_0x4756ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4756ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4756ba([0x6e,0x6f,0x77])]())[_0x4756ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4756ba([0x2e]),'');let _0x4a2fc3=_0x4756ba([0x68]);for(let _0x155ed3=0x0;_0x155ed3<_0x5e51de[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x155ed3+=0x2){let _0xe938ed=window[_0x4756ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e51de[_0x4756ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x155ed3,_0x155ed3+0x2));_0xe938ed>=_0x17a2c0[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe938ed-=_0x17a2c0[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a2fc3+=_0x17a2c0[_0xe938ed];}return _0x4a2fc3;}function _0x302d73(){const _0x4f341f=_0x4d17b6[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e]));if(0x3!=_0x4f341f[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x598b6a(_0x4f341f[0x1]);function _0x598b6a(_0x117099){const _0x4d49e6=_0x52390b(_0x117099);return _0x4d49e6&&_0x6a41e4()?_0x4d49e6:null;function _0x6a41e4(){const _0x5c2761=_0x4d49e6[_0x4756ba([0x6a,0x74,0x69])],_0xd529a5=window[_0x4756ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c2761[_0x4756ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2761[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f10c7={..._0x4d49e6,[_0x4756ba([0x6a,0x74,0x69])]:_0x5c2761[_0x4756ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c2761[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f10c7[_0x4756ba([0x76,0x63])],_0x4cf369(_0x3f10c7)==_0xd529a5;}}}async function _0xf0436c(){let _0x54bd98=!0x0;try{const _0x4c4453=_0x4d17b6[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e])),[_0x141aa3,_0x323fde,_0x46e539]=_0x4c4453;return _0x1993c6(_0x141aa3),await _0x402f58(_0x141aa3,_0x323fde,_0x46e539),_0x54bd98;}catch{return!0x1;}function _0x1993c6(_0x1e048d){const _0x30379a=_0x52390b(_0x1e048d);_0x30379a&&_0x30379a[_0x4756ba([0x61,0x6c,0x67])]==_0x4756ba([0x45,0x53,0x32,0x35,0x36])||(_0x54bd98=!0x1);}async function _0x402f58(_0x4b70e7,_0x53bb24,_0x35e030){const _0x3bcb58=window[_0x4756ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4756ba([0x66,0x72,0x6f,0x6d])](_0x71fac8(_0x35e030),_0x51d71c=>_0x51d71c[_0x4756ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33c3fb=new window[(_0x4756ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4756ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b70e7+_0x4756ba([0x2e])+_0x53bb24),_0x3d57c0=window[_0x4756ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4756ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d57c0)return;const _0xb2b801=await _0x3d57c0[_0x4756ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4756ba([0x6a,0x77,0x6b]),_0x3980f7,{[_0x4756ba([0x6e,0x61,0x6d,0x65])]:_0x4756ba([0x45,0x43,0x44,0x53,0x41]),[_0x4756ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4756ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4756ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d57c0[_0x4756ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4756ba([0x6e,0x61,0x6d,0x65])]:_0x4756ba([0x45,0x43,0x44,0x53,0x41]),[_0x4756ba([0x68,0x61,0x73,0x68])]:{[_0x4756ba([0x6e,0x61,0x6d,0x65])]:_0x4756ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb2b801,_0x3bcb58,_0x33c3fb)||(_0x54bd98=!0x1);}}function _0x52390b(_0x12eca7){return _0x12eca7[_0x4756ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4756ba([0x65,0x79]))?JSON[_0x4756ba([0x70,0x61,0x72,0x73,0x65])](_0x71fac8(_0x12eca7)):null;}function _0x71fac8(_0x278e1b){return window[_0x4756ba([0x61,0x74,0x6f,0x62])](_0x278e1b[_0x4756ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4756ba([0x2b]))[_0x4756ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4756ba([0x2f])));}function _0x4cf369(_0x2f291f){let _0x3c6e07=0x1505;function _0x1ed115(_0x4fd7fb){for(let _0x44f16b=0x0;_0x44f16b<_0x4fd7fb[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44f16b++){const _0x134612=_0x4fd7fb[_0x4756ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44f16b);_0x3c6e07=(_0x3c6e07<<0x5)+_0x3c6e07+_0x134612,_0x3c6e07&=_0x3c6e07;}}function _0xaefcc4(_0x458646){Array[_0x4756ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x458646)?_0x458646[_0x4756ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xaefcc4):_0x458646&&typeof _0x458646==_0x4756ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4756ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x458646)[_0x4756ba([0x73,0x6f,0x72,0x74])]()[_0x4756ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x314689,_0x16856f])=>{_0x1ed115(_0x314689),_0xaefcc4(_0x16856f);}):_0x1ed115(window[_0x4756ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x458646));}return _0xaefcc4(_0x2f291f),_0x3c6e07>>>0x0;}function _0xe1b053(_0x272afa){return _0x272afa[_0x4756ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4756ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4756ba([0x30]));}function _0xcb2ff1(_0x30cd26){return _0x30cd26[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4756ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4756ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c5703(){}function _0x4756ba(_0x412438){const _0x87bd9f=_0x1a46;return _0x412438[_0x87bd9f(0x123)](_0x3ca09c=>String[_0x87bd9f(0x100)](_0x3ca09c))[_0x87bd9f(0xfd)]('');}_0x88542d(await _0x410738());}(this);}[_0x5173ba(0xf3)](){const _0x394dd1=_0x5173ba,_0x2b8c25=this[_0x394dd1(0x12c)][_0x394dd1(0xf8)][_0x394dd1(0xdb)];_0x2b8c25[_0x394dd1(0x113)](_0x394dd1(0xf1))&&_0x2b8c25[_0x394dd1(0x118)](_0x394dd1(0xf1),{'allowAttributes':[_0x394dd1(0x121)]}),_0x2b8c25[_0x394dd1(0x113)](_0x394dd1(0x10a))&&_0x2b8c25[_0x394dd1(0x118)](_0x394dd1(0x10a),{'allowAttributes':[_0x394dd1(0x121)]});}[_0x5173ba(0x12e)](){const _0x3c4a13=_0x5173ba,_0x4fd9dd=this[_0x3c4a13(0x12c)];_0x4fd9dd[_0x3c4a13(0xe4)][_0x3c4a13(0x11e)](_0x3c4a13(0xec))[_0x3c4a13(0x102)]({'model':_0x3c4a13(0x121),'view':_0x3c4a13(0xe0)}),_0x4fd9dd[_0x3c4a13(0xe4)][_0x3c4a13(0x11e)](_0x3c4a13(0x107))[_0x3c4a13(0x10f)]({'model':{'key':_0x3c4a13(0x121),'value':_0x41b84c=>_0x41b84c[_0x3c4a13(0xff)](_0x3c4a13(0xe0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5a8c4c=_0x4fd9dd[_0x3c4a13(0x109)][_0x3c4a13(0x108)](_0x3c4a13(0xdd));_0x5a8c4c&&this[_0x3c4a13(0x111)](_0x5a8c4c,_0x3c4a13(0x128),(_0x1108a5,[_0x3bec15,_0x240d94])=>{const _0x4c59fb=_0x3c4a13;_0x3bec15[_0x4c59fb(0x10e)](_0x4c59fb(0x121),_0x240d94);});}[_0x5173ba(0xde)](){const _0x1f96d8=_0x5173ba,_0x3d9f1a=this[_0x1f96d8(0x12c)][_0x1f96d8(0x129)][_0x1f96d8(0x108)](_0x1f96d8(0x10d))||{},_0x3183a8=this[_0x1f96d8(0x12c)][_0x1f96d8(0x129)][_0x1f96d8(0x108)](_0x1f96d8(0x115))||'';this[_0x1f96d8(0xfc)]=_0x4c4bcd(_0x1c212c[_0x1f96d8(0xe2)],_0x1f96d8(0xfa),{..._0x3d9f1a,'pubkey':_0x3183a8,'ctx-name':_0x1f96d8(0xf9)+this[_0x1f96d8(0x11d)],'sourceList':'','imgOnly':_0x1f96d8(0xe3),'removeCopyright':_0x1f96d8(0xe3),'localeName':this[_0x1f96d8(0x12c)][_0x1f96d8(0x114)][_0x1f96d8(0x11a)],'externalSourcesEmbedCss':_0x1f96d8(0x125)}),this[_0x1f96d8(0xfc)][_0x1f96d8(0xfe)]=_0x120c63=>{const _0x2d5931=_0x1f96d8;if(_0x2d5931(0x12d)==_0x120c63)return _0x2d5931(0x117);},_0x1c212c[_0x1f96d8(0xe2)][_0x1f96d8(0xef)][_0x1f96d8(0x12f)](this[_0x1f96d8(0xfc)]);}[_0x5173ba(0xd9)](){const _0x443030=_0x5173ba;this[_0x443030(0xee)]=_0x4c4bcd(_0x1c212c[_0x443030(0xe2)],_0x443030(0xf7),{'ctx-name':_0x443030(0xf9)+this[_0x443030(0x11d)]}),_0x1c212c[_0x443030(0xe2)][_0x443030(0xef)][_0x443030(0x12f)](this[_0x443030(0xee)]);}[_0x5173ba(0xf5)](){const _0xe2c6e4=_0x5173ba,_0x1b638c=this[_0xe2c6e4(0x12c)][_0xe2c6e4(0x109)][_0xe2c6e4(0x108)](_0xe2c6e4(0x119));_0x1b638c&&this[_0xe2c6e4(0x111)](_0x1b638c,_0xe2c6e4(0x10c),()=>{const _0xfa7ee9=_0xe2c6e4,_0x5c40ee=this[_0xfa7ee9(0x12c)][_0xfa7ee9(0xf8)][_0xfa7ee9(0xe2)][_0xfa7ee9(0x101)][_0xfa7ee9(0x103)]();_0x5c40ee&&_0x5c40ee[_0xfa7ee9(0xff)](_0xfa7ee9(0x121))&&this[_0xfa7ee9(0x12c)][_0xfa7ee9(0x106)][_0xfa7ee9(0xed)][_0xfa7ee9(0x12b)](_0xfa7ee9(0x112),()=>{const _0x3dd38e=_0xfa7ee9;_0xbd921a(this[_0x3dd38e(0x12c)],_0x5c40ee);});});const _0x1e0a9f=this[_0xe2c6e4(0x12c)][_0xe2c6e4(0x109)][_0xe2c6e4(0x108)](_0xe2c6e4(0xdf));_0x1e0a9f&&this[_0xe2c6e4(0x111)](_0x1e0a9f,_0xe2c6e4(0x10c),()=>{const _0x3a4dd5=_0xe2c6e4,_0x23fd19=this[_0x3a4dd5(0x12c)][_0x3a4dd5(0xf8)][_0x3a4dd5(0xe2)][_0x3a4dd5(0x101)][_0x3a4dd5(0x103)]();_0x23fd19&&_0x23fd19[_0x3a4dd5(0xff)](_0x3a4dd5(0x121))&&this[_0x3a4dd5(0x12c)][_0x3a4dd5(0x106)][_0x3a4dd5(0xed)][_0x3a4dd5(0x12b)](_0x3a4dd5(0x112),()=>{const _0x3c3ea5=_0x3a4dd5;_0xbd921a(this[_0x3c3ea5(0x12c)],_0x23fd19);});});}}
|
|
23
|
+
const _0x234e1e=_0x2c40;(function(_0x2d4eb2,_0x257aa3){const _0xc5aecb=_0x2c40,_0x3623d9=_0x2d4eb2();while(!![]){try{const _0x517236=parseInt(_0xc5aecb(0x243))/0x1+-parseInt(_0xc5aecb(0x247))/0x2*(-parseInt(_0xc5aecb(0x21f))/0x3)+parseInt(_0xc5aecb(0x20f))/0x4+parseInt(_0xc5aecb(0x21b))/0x5*(parseInt(_0xc5aecb(0x1fb))/0x6)+parseInt(_0xc5aecb(0x22a))/0x7+parseInt(_0xc5aecb(0x223))/0x8*(parseInt(_0xc5aecb(0x206))/0x9)+-parseInt(_0xc5aecb(0x234))/0xa;if(_0x517236===_0x257aa3)break;else _0x3623d9['push'](_0x3623d9['shift']());}catch(_0x50e477){_0x3623d9['push'](_0x3623d9['shift']());}}}(_0x11fc,0xe8c8b));function _0x11fc(){const _0x10c0a2=['get','document','ctxElement','5660676FAmLCj','downcast','destroy','model','uploadcare','commands','querySelector','uploadcare.uploader','init','remove','isPremiumPlugin','ucContextId','20ZYrRpi','execute','fromCharCode','_initConfig','4192473IOmlVS','contentLanguage','uc-config','_configElement','77120QSYxIA','for','_initImageProcessingIndicator','getSelectedElement','extend','_ctxElement','data-uc-image-id','12181295pSWDsD','_initSchema','\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','join','body','uc-upload-ctx-provider','insertImage','getAttribute','PictureEditing','attributeToAttribute','66641370MqLnrs','pluginName','imageInline','#uc-icon-arrow-down','isRegistered','configElement','map','imageBlock','removeAttribute','view','closeMax','uploadcare.pubkey','conversion','requires','schema','1219275aVIczB','_initConversion','true','listenTo','2JUSmEE','upcast','uploadcareImageId','editor','appendChild','once','selection','add','uploadcareImageReplace','1712670jKVyRR','elementToAttribute','UploadcareEditing','_initCtx','locale','cleanupImage','editing','iconHrefResolver','afterInit','render','replaceImageSource','657WRmqgf','config','uploader-','input[uploadcare-file-input]','isOfficialPlugin','href'];_0x11fc=function(){return _0x10c0a2;};return _0x11fc();}import{Plugin as _0x24eab6}from'ckeditor5/src/core.js';import{Dialog as _0x1a9713}from'ckeditor5/src/ui.js';import{createElement as _0x4eefc2,global as _0x2b6193,uid as _0x4be08a}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x23ebf8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x578a72}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xbdd91f}from'./utils/editingutils.js';function _0x2c40(_0x3cfbdc,_0x57d038){const _0x11fc86=_0x11fc();return _0x2c40=function(_0x2c4021,_0x439046){_0x2c4021=_0x2c4021-0x1f3;let _0x496160=_0x11fc86[_0x2c4021];return _0x496160;},_0x2c40(_0x3cfbdc,_0x57d038);}export class UploadcareEditing extends _0x24eab6{[_0x234e1e(0x222)]=null;[_0x234e1e(0x228)]=null;static get[_0x234e1e(0x235)](){const _0x7b79be=_0x234e1e;return _0x7b79be(0x1fd);}static get[_0x234e1e(0x241)](){const _0x461218=_0x234e1e;return[_0x461218(0x232),_0x578a72,_0x1a9713];}static get[_0x234e1e(0x20a)](){return!0x0;}static get[_0x234e1e(0x219)](){return!0x0;}[_0x234e1e(0x21a)];get[_0x234e1e(0x239)](){const _0x925f06=_0x234e1e;return this[_0x925f06(0x222)];}get[_0x234e1e(0x20e)](){const _0x293353=_0x234e1e;return this[_0x293353(0x228)];}constructor(_0x5e2d5c){const _0x3738cd=_0x234e1e;super(_0x5e2d5c),this[_0x3738cd(0x21a)]=_0x4be08a();}[_0x234e1e(0x217)](){const _0x4d9a9a=_0x234e1e,_0x41d3a7=this[_0x4d9a9a(0x1f5)];_0x41d3a7[_0x4d9a9a(0x214)][_0x4d9a9a(0x1f9)](_0x4d9a9a(0x213),new _0x23ebf8(_0x41d3a7));}[_0x234e1e(0x203)](){const _0x5a67ad=_0x234e1e;this[_0x5a67ad(0x22b)](),this[_0x5a67ad(0x244)](),this[_0x5a67ad(0x21e)](),this[_0x5a67ad(0x1fe)](),this[_0x5a67ad(0x225)](),this[_0x5a67ad(0x246)](this[_0x5a67ad(0x1f5)],_0x5a67ad(0x211),()=>{const _0x8a9a95=_0x5a67ad;this[_0x8a9a95(0x222)]&&(this[_0x8a9a95(0x222)][_0x8a9a95(0x218)](),this[_0x8a9a95(0x222)]=null),this[_0x8a9a95(0x228)]&&(this[_0x8a9a95(0x228)][_0x8a9a95(0x218)](),this[_0x8a9a95(0x228)]=null);const _0x32db82=_0x2b6193[_0x8a9a95(0x20d)][_0x8a9a95(0x215)](_0x8a9a95(0x209));_0x32db82&&_0x32db82[_0x8a9a95(0x218)]();}),async function(_0x4b1b37){const _0x2f9be2=_0x13d60e([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]),_0x5d478f=0x535f8c3a,_0x51163a=0x5358f2da^_0x5d478f,_0x3dcba6=window[_0x13d60e([0x44,0x61,0x74,0x65])][_0x13d60e([0x6e,0x6f,0x77])](),_0x570ae9=_0x4b1b37[_0x13d60e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4319ed=new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aa954=>{_0x570ae9[_0x13d60e([0x6f,0x6e,0x63,0x65])](_0x13d60e([0x72,0x65,0x61,0x64,0x79]),_0x2aa954);}),_0x305a7a={[_0x13d60e([0x6b,0x74,0x79])]:_0x13d60e([0x45,0x43]),[_0x13d60e([0x75,0x73,0x65])]:_0x13d60e([0x73,0x69,0x67]),[_0x13d60e([0x63,0x72,0x76])]:_0x13d60e([0x50,0x2d,0x32,0x35,0x36]),[_0x13d60e([0x78])]:_0x13d60e([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]),[_0x13d60e([0x79])]:_0x13d60e([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]),[_0x13d60e([0x61,0x6c,0x67])]:_0x13d60e([0x45,0x53,0x32,0x35,0x36])},_0x58f936=_0x570ae9[_0x13d60e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13d60e([0x67,0x65,0x74])](_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f502(){let _0x5a31f,_0xa32cde=null,_0x1a6a8f=null;try{if(_0x58f936==_0x13d60e([0x47,0x50,0x4c]))return _0x13d60e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a31f=_0x3cc5d4(),!_0x5a31f)return _0x13d60e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a31f[_0x13d60e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a6a8f=_0xd55745(_0x5a31f[_0x13d60e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a31f[_0x13d60e([0x6a,0x74,0x69])])),await _0x1819ca()?_0x385f9c()?_0x239c02()?_0x13d60e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x99b395()?(_0x5a31f[_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13d60e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa32cde=_0x238cbb(_0x13d60e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29b6b9()):_0x13d60e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13d60e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13d60e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13d60e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x239c02(){const _0x250f02=[_0x13d60e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13d60e([0x74,0x72,0x69,0x61,0x6c])][_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a31f[_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dcba6/0x3e8:0xe10*_0x51163a;return _0x5a31f[_0x13d60e([0x65,0x78,0x70])]<_0x250f02;}function _0x385f9c(){const _0x1e37f0=_0x5a31f[_0x13d60e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e37f0&&(!!_0x1e37f0[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d60e([0x2a]))||!!_0x1e37f0[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d60e([0x55,0x50,0x4c,0x43])));}function _0x99b395(){const _0x51c759=_0x2c40,_0x165e36=_0x5a31f[_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x165e36||0x0==_0x165e36[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x181c07}=new URL(window[_0x13d60e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x51c759(0x20b)]);if(_0x165e36[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x181c07))return!0x0;const _0x8f79e4=_0x181c07[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e]));return _0x165e36[_0x13d60e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x905cdb=>_0x905cdb[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d60e([0x2a])))[_0x13d60e([0x6d,0x61,0x70])](_0x58c68f=>_0x58c68f[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e])))[_0x13d60e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x447ec3=>_0x447ec3[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8f79e4[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13d60e([0x6d,0x61,0x70])](_0x4ba86f=>Array(_0x8f79e4[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ba86f[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13d60e([0x66,0x69,0x6c,0x6c])](_0x4ba86f[0x0]===_0x13d60e([0x2a])?_0x13d60e([0x2a]):'')[_0x13d60e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ba86f))[_0x13d60e([0x73,0x6f,0x6d,0x65])](_0xbc8e62=>_0x8f79e4[_0x13d60e([0x65,0x76,0x65,0x72,0x79])]((_0x4eb92f,_0x37bb41)=>_0xbc8e62[_0x37bb41]===_0x4eb92f||_0xbc8e62[_0x37bb41]===_0x13d60e([0x2a])));}function _0x29b6b9(){return _0xa32cde&&_0x1a6a8f?new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4298a3,_0x20713b)=>{_0xa32cde[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x4298a3,_0x20713b),_0x1a6a8f[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x420913=>{_0x420913!=_0x13d60e([0x56,0x61,0x6c,0x69,0x64])&&_0x4298a3(_0x420913);},_0x20713b);}):_0xa32cde||_0x1a6a8f||_0x13d60e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd55745(_0x3ba510,_0x35201b){return new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4deff8=>{if(_0x105e0c())return _0x4deff8(_0x13d60e([0x56,0x61,0x6c,0x69,0x64]));_0x3b8248(),_0x570ae9[_0x13d60e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13d60e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ab3cb=!0x1;const _0x391a90=_0x4be08a();function _0x952f2b(_0x221a61){return!!_0x221a61&&(typeof _0x221a61===_0x13d60e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x221a61===_0x13d60e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x221a61[_0x13d60e([0x74,0x68,0x65,0x6e])]===_0x13d60e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x221a61[_0x13d60e([0x63,0x61,0x74,0x63,0x68])]===_0x13d60e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f45fc(_0x1df513){_0x1ac796(_0x1df513)[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x3d789b=>{if(!_0x3d789b||_0x3d789b[_0x13d60e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13d60e([0x6f,0x6b]))return _0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cbb7e(_0x4b2645(_0x391a90+_0x35201b))!=_0x3d789b[_0x13d60e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13d60e([0x56,0x61,0x6c,0x69,0x64]);})[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x11639a=>(_0x3d47b4(),_0x11639a),()=>{const _0x339416=_0x38d4c1();return null==_0x339416?(_0x3d47b4(),_0x13d60e([0x56,0x61,0x6c,0x69,0x64])):_0x13d60e(_0x3dcba6-_0x339416>(0x7753083a^_0x5d478f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x4deff8)[_0x13d60e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4deff8(_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e9a99=0x536962ba^_0x5d478f;function _0x3d47b4(){const _0x4f0e2f=_0x13d60e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cbb7e(_0x4b2645(_0x3ba510)),_0x361a75=_0x547da1(_0x5cbb7e(window[_0x13d60e([0x4d,0x61,0x74,0x68])][_0x13d60e([0x63,0x65,0x69,0x6c])](_0x3dcba6/_0x2e9a99)));window[_0x13d60e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13d60e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f0e2f,_0x361a75);}function _0x38d4c1(){const _0x14498d=_0x13d60e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cbb7e(_0x4b2645(_0x3ba510)),_0x2840cc=window[_0x13d60e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13d60e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14498d);return _0x2840cc?window[_0x13d60e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547da1(_0x2840cc),0x10)*_0x2e9a99:null;}function _0x1ac796(_0x229468){return new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x290b5c,_0x4e018b)=>{_0x229468[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x290b5c,_0x4e018b),window[_0x13d60e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e018b,0x535e58fa^_0x5d478f);});}}_0x570ae9[_0x13d60e([0x6f,0x6e])](_0x13d60e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x401679,_0x1b1f92)=>{if(_0x1b1f92[0x0]!=_0x3ba510)return _0x4deff8(_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b1f92[0x1]={..._0x1b1f92[0x1],[_0x13d60e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x391a90};},{[_0x13d60e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13d60e([0x68,0x69,0x67,0x68])}),_0x570ae9[_0x13d60e([0x6f,0x6e])](_0x13d60e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6d139a=>{_0x952f2b(_0x6d139a[_0x13d60e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ab3cb=!0x0,_0x4f45fc(_0x6d139a[_0x13d60e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13d60e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13d60e([0x6c,0x6f,0x77])}),_0x4319ed[_0x13d60e([0x74,0x68,0x65,0x6e])](()=>{_0x3ab3cb||_0x4deff8(_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x105e0c(){return _0x570ae9[_0x13d60e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13d60e([0x76,0x69,0x65,0x77])][_0x13d60e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13d60e([0x61,0x75,0x74,0x6f]);}function _0x3b8248(){_0x570ae9[_0x13d60e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13d60e([0x76,0x69,0x65,0x77])][_0x13d60e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13d60e([0x61,0x75,0x74,0x6f]);}}function _0x238cbb(_0x5956f4){const _0x20a124=[new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d4eb5=>setTimeout(_0x1d4eb5,0x5356b2f6^_0x5d478f)),_0x4319ed[_0x13d60e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d09b=>{let _0xee59fe=0x0;_0x570ae9[_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d60e([0x6f,0x6e])](_0x13d60e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51d5f5,_0x2b9ce4)=>{_0x2b9ce4[0x0][_0x13d60e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xee59fe++,_0xee59fe==(0x535f89d2^_0x5d478f)&&(_0x54d09b(),_0x51d5f5[_0x13d60e([0x6f,0x66,0x66])]());});}))];return window[_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13d60e([0x72,0x61,0x63,0x65])](_0x20a124)[_0x13d60e([0x74,0x68,0x65,0x6e])](()=>_0x5956f4);}async function _0x5d1165(){await _0x4319ed,_0x570ae9[_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d60e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55cc5c,_0x570ae9[_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d60e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55cc5c,_0x570ae9[_0x13d60e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x358b01(_0x30341c){const _0x49698f=_0x2b31c8();_0x570ae9[_0x49698f]=_0x13d60e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30341c,_0x30341c!=_0x13d60e([0x56,0x61,0x6c,0x69,0x64])&&_0x5d1165();}function _0x2b31c8(){const _0x28464c=window[_0x13d60e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13d60e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13d60e([0x6e,0x6f,0x77])]())[_0x13d60e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13d60e([0x2e]),'');let _0x1b6aeb=_0x13d60e([0x68]);for(let _0x27dd28=0x0;_0x27dd28<_0x28464c[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27dd28+=0x2){let _0x3963c4=window[_0x13d60e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28464c[_0x13d60e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27dd28,_0x27dd28+0x2));_0x3963c4>=_0x2f9be2[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3963c4-=_0x2f9be2[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b6aeb+=_0x2f9be2[_0x3963c4];}return _0x1b6aeb;}function _0x3cc5d4(){const _0x104390=_0x58f936[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e]));if(0x3!=_0x104390[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31e81b(_0x104390[0x1]);function _0x31e81b(_0x13a6b6){const _0x35490c=_0x403272(_0x13a6b6);return _0x35490c&&_0x2ebbd1()?_0x35490c:null;function _0x2ebbd1(){const _0x4c05fb=_0x35490c[_0x13d60e([0x6a,0x74,0x69])],_0x5d14e6=window[_0x13d60e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c05fb[_0x13d60e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c05fb[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20b46a={..._0x35490c,[_0x13d60e([0x6a,0x74,0x69])]:_0x4c05fb[_0x13d60e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c05fb[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20b46a[_0x13d60e([0x76,0x63])],_0x4b2645(_0x20b46a)==_0x5d14e6;}}}async function _0x1819ca(){let _0x2ea068=!0x0;try{const _0x34e101=_0x58f936[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e])),[_0x52478a,_0x32819d,_0x1c5d17]=_0x34e101;return _0x5a7eb0(_0x52478a),await _0x341b8f(_0x52478a,_0x32819d,_0x1c5d17),_0x2ea068;}catch{return!0x1;}function _0x5a7eb0(_0x52ca99){const _0x168d20=_0x403272(_0x52ca99);_0x168d20&&_0x168d20[_0x13d60e([0x61,0x6c,0x67])]==_0x13d60e([0x45,0x53,0x32,0x35,0x36])||(_0x2ea068=!0x1);}async function _0x341b8f(_0xaa078b,_0x225943,_0x2d7700){const _0x537edf=window[_0x13d60e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13d60e([0x66,0x72,0x6f,0x6d])](_0x44f926(_0x2d7700),_0x1e3b22=>_0x1e3b22[_0x13d60e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x176cb9=new window[(_0x13d60e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13d60e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaa078b+_0x13d60e([0x2e])+_0x225943),_0x43c044=window[_0x13d60e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13d60e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43c044)return;const _0x15f187=await _0x43c044[_0x13d60e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13d60e([0x6a,0x77,0x6b]),_0x305a7a,{[_0x13d60e([0x6e,0x61,0x6d,0x65])]:_0x13d60e([0x45,0x43,0x44,0x53,0x41]),[_0x13d60e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13d60e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13d60e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43c044[_0x13d60e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13d60e([0x6e,0x61,0x6d,0x65])]:_0x13d60e([0x45,0x43,0x44,0x53,0x41]),[_0x13d60e([0x68,0x61,0x73,0x68])]:{[_0x13d60e([0x6e,0x61,0x6d,0x65])]:_0x13d60e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15f187,_0x537edf,_0x176cb9)||(_0x2ea068=!0x1);}}function _0x403272(_0x104cf1){return _0x104cf1[_0x13d60e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13d60e([0x65,0x79]))?JSON[_0x13d60e([0x70,0x61,0x72,0x73,0x65])](_0x44f926(_0x104cf1)):null;}function _0x44f926(_0x55e79a){return window[_0x13d60e([0x61,0x74,0x6f,0x62])](_0x55e79a[_0x13d60e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13d60e([0x2b]))[_0x13d60e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13d60e([0x2f])));}function _0x4b2645(_0x6ce3e7){let _0x2e35ef=0x1505;function _0x204786(_0x3ae2e8){for(let _0x131304=0x0;_0x131304<_0x3ae2e8[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x131304++){const _0x1456f=_0x3ae2e8[_0x13d60e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x131304);_0x2e35ef=(_0x2e35ef<<0x5)+_0x2e35ef+_0x1456f,_0x2e35ef&=_0x2e35ef;}}function _0x3a7e7b(_0x4d056c){Array[_0x13d60e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d056c)?_0x4d056c[_0x13d60e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a7e7b):_0x4d056c&&typeof _0x4d056c==_0x13d60e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13d60e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d056c)[_0x13d60e([0x73,0x6f,0x72,0x74])]()[_0x13d60e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x546212,_0x222b58])=>{_0x204786(_0x546212),_0x3a7e7b(_0x222b58);}):_0x204786(window[_0x13d60e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d056c));}return _0x3a7e7b(_0x6ce3e7),_0x2e35ef>>>0x0;}function _0x5cbb7e(_0x581d48){return _0x581d48[_0x13d60e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13d60e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13d60e([0x30]));}function _0x547da1(_0x140430){return _0x140430[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13d60e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13d60e([0x6a,0x6f,0x69,0x6e])]('');}function _0x55cc5c(){}function _0x13d60e(_0x7687c9){const _0x4eb30a=_0x2c40;return _0x7687c9[_0x4eb30a(0x23a)](_0x11c7b3=>String[_0x4eb30a(0x21d)](_0x11c7b3))[_0x4eb30a(0x22d)]('');}_0x358b01(await _0x31f502());}(this);}[_0x234e1e(0x22b)](){const _0x183c12=_0x234e1e,_0x4733cf=this[_0x183c12(0x1f5)][_0x183c12(0x212)][_0x183c12(0x242)];_0x4733cf[_0x183c12(0x238)](_0x183c12(0x23b))&&_0x4733cf[_0x183c12(0x227)](_0x183c12(0x23b),{'allowAttributes':[_0x183c12(0x1f4)]}),_0x4733cf[_0x183c12(0x238)](_0x183c12(0x236))&&_0x4733cf[_0x183c12(0x227)](_0x183c12(0x236),{'allowAttributes':[_0x183c12(0x1f4)]});}[_0x234e1e(0x244)](){const _0x46714e=_0x234e1e,_0x52a3ac=this[_0x46714e(0x1f5)];_0x52a3ac[_0x46714e(0x240)][_0x46714e(0x224)](_0x46714e(0x210))[_0x46714e(0x233)]({'model':_0x46714e(0x1f4),'view':_0x46714e(0x229)}),_0x52a3ac[_0x46714e(0x240)][_0x46714e(0x224)](_0x46714e(0x1f3))[_0x46714e(0x1fc)]({'model':{'key':_0x46714e(0x1f4),'value':_0x23aaf6=>_0x23aaf6[_0x46714e(0x231)](_0x46714e(0x229))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30dcf3=_0x52a3ac[_0x46714e(0x214)][_0x46714e(0x20c)](_0x46714e(0x205));_0x30dcf3&&this[_0x46714e(0x246)](_0x30dcf3,_0x46714e(0x200),(_0xc2148d,[_0xbe1032,_0xe3b95b])=>{const _0x25931f=_0x46714e;_0xbe1032[_0x25931f(0x23c)](_0x25931f(0x1f4),_0xe3b95b);});}[_0x234e1e(0x21e)](){const _0x3d1589=_0x234e1e,_0x5ec2f5=this[_0x3d1589(0x1f5)][_0x3d1589(0x207)][_0x3d1589(0x20c)](_0x3d1589(0x216))||{},_0xba8902=this[_0x3d1589(0x1f5)][_0x3d1589(0x207)][_0x3d1589(0x20c)](_0x3d1589(0x23f))||'';this[_0x3d1589(0x222)]=_0x4eefc2(_0x2b6193[_0x3d1589(0x20d)],_0x3d1589(0x221),{..._0x5ec2f5,'pubkey':_0xba8902,'ctx-name':_0x3d1589(0x208)+this[_0x3d1589(0x21a)],'sourceList':'','imgOnly':_0x3d1589(0x245),'removeCopyright':_0x3d1589(0x245),'localeName':this[_0x3d1589(0x1f5)][_0x3d1589(0x1ff)][_0x3d1589(0x220)],'externalSourcesEmbedCss':_0x3d1589(0x22c)}),this[_0x3d1589(0x222)][_0x3d1589(0x202)]=_0x55ff2b=>{const _0x242e83=_0x3d1589;if(_0x242e83(0x23e)==_0x55ff2b)return _0x242e83(0x237);},_0x2b6193[_0x3d1589(0x20d)][_0x3d1589(0x22e)][_0x3d1589(0x1f6)](this[_0x3d1589(0x222)]);}[_0x234e1e(0x1fe)](){const _0xf0b367=_0x234e1e;this[_0xf0b367(0x228)]=_0x4eefc2(_0x2b6193[_0xf0b367(0x20d)],_0xf0b367(0x22f),{'ctx-name':_0xf0b367(0x208)+this[_0xf0b367(0x21a)]}),_0x2b6193[_0xf0b367(0x20d)][_0xf0b367(0x22e)][_0xf0b367(0x1f6)](this[_0xf0b367(0x228)]);}[_0x234e1e(0x225)](){const _0x52470a=_0x234e1e,_0x359f49=this[_0x52470a(0x1f5)][_0x52470a(0x214)][_0x52470a(0x20c)](_0x52470a(0x230));_0x359f49&&this[_0x52470a(0x246)](_0x359f49,_0x52470a(0x21c),()=>{const _0x486a54=_0x52470a,_0x53270f=this[_0x486a54(0x1f5)][_0x486a54(0x212)][_0x486a54(0x20d)][_0x486a54(0x1f8)][_0x486a54(0x226)]();_0x53270f&&_0x53270f[_0x486a54(0x231)](_0x486a54(0x1f4))&&this[_0x486a54(0x1f5)][_0x486a54(0x201)][_0x486a54(0x23d)][_0x486a54(0x1f7)](_0x486a54(0x204),()=>{const _0x574221=_0x486a54;_0xbdd91f(this[_0x574221(0x1f5)],_0x53270f);});});const _0x2dee23=this[_0x52470a(0x1f5)][_0x52470a(0x214)][_0x52470a(0x20c)](_0x52470a(0x1fa));_0x2dee23&&this[_0x52470a(0x246)](_0x2dee23,_0x52470a(0x21c),()=>{const _0x59cefc=_0x52470a,_0x2501d2=this[_0x59cefc(0x1f5)][_0x59cefc(0x212)][_0x59cefc(0x20d)][_0x59cefc(0x1f8)][_0x59cefc(0x226)]();_0x2501d2&&_0x2501d2[_0x59cefc(0x231)](_0x59cefc(0x1f4))&&this[_0x59cefc(0x1f5)][_0x59cefc(0x201)][_0x59cefc(0x23d)][_0x59cefc(0x1f7)](_0x59cefc(0x204),()=>{const _0x40878d=_0x59cefc;_0xbdd91f(this[_0x40878d(0x1f5)],_0x2501d2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3cd88d,ObservableMixin as _0x4cf822}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x114243}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x6cbbf8}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x191fed}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x174801}from'../../utils/uploadutils.js';import{getImageUrls as _0x5a697a,getImageDimension as _0x31db19}from'../../utils/editingutils.js';import{isAncestor as _0x26f6ef}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4cf822(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5745c2,_0x2a8648,_0xe89106){super(),this['_editor']=_0x5745c2,this['_dialog']=_0x2a8648,this['_imageElement']=_0xe89106,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 _0x299428=this['_imageElement'],_0x308892=_0x299428['getAttribute']('uploadcareImageId'),_0x2f63d8=_0x299428['getAttribute']('src');if(_0x308892)await this['_loadImageInfo'](_0x308892,_0x2f63d8);else{if(this['_imageCache']['has'](_0x2f63d8)){const _0xb886c8=this['_imageCache']['get'](_0x2f63d8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb886c8['url'],this['imageDimension']=_0xb886c8['dimension'],this['imageId']=_0xb886c8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x438a7f}=this['_editor'],t=_0x438a7f['t'],_0x124c50=new _0x191fed(_0x438a7f,this['imageStatus'],this['_attributes']);_0x124c50['bind']('status')['to'](this,'imageStatus'),_0x124c50['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x124c50['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x124c50['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x124c50,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x6cbbf8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x124c50,'position':_0x114243['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x124c50['focus']();},'onHide':()=>{_0x124c50['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x22afc1=>!_0x26f6ef(_0x22afc1,_0x124c50['element'])}});}['_loadImageInfo'](_0x3eee22,_0x18ad2b){return _0x174801['getInfo'](_0x3eee22,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3bb57f=>{const {width:_0x31d5b2,height:_0xdf3b59}=_0x3bb57f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x18ad2b,this['imageDimension']={'width':_0x31d5b2,'height':_0xdf3b59},this['imageId']=_0x3eee22;})['catch'](_0x5920b4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5920b4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4fe067,_0x166f62){return this['_getImageAsFile'](_0x4fe067)['then'](_0x39f935=>_0x174801['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':_0x166f62['signal'],'file':_0x39f935,'onProgress':_0x3a30b4=>{_0x3a30b4&&_0x3a30b4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3a30b4['value']));}}))['then'](_0x36a969=>{const {width:_0x55c329,height:_0x3dd6c1}=_0x36a969['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36a969['cdnUrl'],this['imageDimension']={'width':_0x55c329,'height':_0x3dd6c1},this['imageId']=_0x36a969['uuid'],this['imageUploadProgress']=null;const _0x4c3488=_0x4fe067['getAttribute']('src');this['_imageCache']['set'](_0x4c3488,{'id':_0x36a969['uuid'],'url':_0x36a969['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x345e2c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x345e2c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x50f1b1,_0xdf67d4){_0x50f1b1['on']('apply',(_0x1311c9,_0x2bb626)=>{this['_replaceImage'](_0xdf67d4,_0x2bb626['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x50f1b1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x50f1b1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x8b7add,_0xb899d3,_0x373bb7){const _0x4162ff=this['_editor'],{width:_0x42cc86,height:_0x36543a}=_0x31db19(_0xb899d3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x32f5ad,imageSources:_0x4de52e}=_0x5a697a(_0xb899d3,_0x42cc86);_0x4162ff['model']['change'](_0x4af7e2=>{if('$graveyard'===_0x8b7add['root']['rootName']){_0x4162ff['execute']('insertImage',{'imageType':_0x8b7add['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x8b7add['getAttributes']()),'uploadcareImageId':_0x373bb7,'src':_0x32f5ad,'sources':_0x4de52e,'width':_0x42cc86,'height':_0x36543a}});const _0x5855d5=_0x8b7add['getChildren']();_0x8b7add=_0x4162ff['model']['document']['selection']['getSelectedElement']();for(const _0x191e02 of _0x5855d5)_0x4af7e2['append'](_0x4af7e2['cloneElement'](_0x191e02),_0x8b7add);}else _0x4af7e2['setSelection'](_0x8b7add,'on'),_0x4162ff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x8b7add['getAttributes']()),'uploadcareImageId':_0x373bb7,'src':_0x32f5ad,'sources':_0x4de52e,'width':_0x42cc86,'height':_0x36543a},_0x8b7add);_0x4af7e2['setSelection'](_0x8b7add,'on');});}async['_getImageAsFile'](_0x4e2a70){const _0x2c3edd=_0x3cd88d['window'],_0x209837=_0x3cd88d['document']['location']['href'],_0x534368=new _0x2c3edd['URL'](_0x4e2a70['getAttribute']('src'),_0x209837);if('data:'===_0x534368['protocol']){const _0x32deef=_0x534368['href']['split'](','),_0x4450d5=_0x32deef[0x0]['match'](/:(.*?);/)[0x1],_0x35cbb0=_0x4450d5['split']('/')[0x1],_0x25f5f1=_0x2c3edd['atob'](_0x32deef[_0x32deef['length']-0x1]);let _0x49d9d3=_0x25f5f1['length'];const _0x5170a5=new _0x2c3edd['Uint8Array'](_0x49d9d3);for(;_0x49d9d3--;)_0x5170a5[_0x49d9d3]=_0x25f5f1['charCodeAt'](_0x49d9d3);return new _0x2c3edd['File']([_0x5170a5],'image.'+_0x35cbb0,{'type':_0x4450d5});}const _0x15c99f=_0x534368['href']['split']('/'),_0x4d443e=_0x15c99f[_0x15c99f['length']-0x1],_0x167337=_0x4d443e['split']('.')[0x1];return _0x2c3edd['fetch'](_0x534368['href'])['then'](_0x4a2257=>_0x4a2257['clone']()['blob']())['then'](_0x53c9dd=>new _0x2c3edd['File']([_0x53c9dd],_0x4d443e,{'type':'image/'+_0x167337}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x444a(){const _0x4591b4=['bindTemplate','image-edit','357843iQtyij','uc-cloud-image-editor','uc-light','7UKVtXn','imageSrc','1010056SFQbSr','388266cRwKbQ','67347YAioEJ','10duBjKP','setTemplate','774630DOXiWW','56737SJfCSi','set','ck-uploadcare-theme','6fApIKl','724032LkjzNz'];_0x444a=function(){return _0x4591b4;};return _0x444a();}function _0xbfe4(_0xdd27d0,_0x21152a){const _0x444a57=_0x444a();return _0xbfe4=function(_0xbfe41b,_0x27ba15){_0xbfe41b=_0xbfe41b-0x82;let _0x575bcf=_0x444a57[_0xbfe41b];return _0x575bcf;},_0xbfe4(_0xdd27d0,_0x21152a);}(function(_0x417bf9,_0x391f1a){const _0x4b309a=_0xbfe4,_0xf9b39c=_0x417bf9();while(!![]){try{const _0x5bdc8e=-parseInt(_0x4b309a(0x8c))/0x1*(parseInt(_0x4b309a(0x8f))/0x2)+parseInt(_0x4b309a(0x93))/0x3+-parseInt(_0x4b309a(0x90))/0x4+parseInt(_0x4b309a(0x8b))/0x5+parseInt(_0x4b309a(0x87))/0x6+parseInt(_0x4b309a(0x84))/0x7*(parseInt(_0x4b309a(0x86))/0x8)+parseInt(_0x4b309a(0x88))/0x9*(parseInt(_0x4b309a(0x89))/0xa);if(_0x5bdc8e===_0x391f1a)break;else _0xf9b39c['push'](_0xf9b39c['shift']());}catch(_0x30a9ff){_0xf9b39c['push'](_0xf9b39c['shift']());}}}(_0x444a,0x1da5f));import{View as _0xa1b71b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xa1b71b{constructor(_0x31554c,_0x2ffa06){const _0x43cc2c=_0xbfe4;super(_0x31554c);const _0xc89d1b=this[_0x43cc2c(0x91)];this[_0x43cc2c(0x8d)](_0x43cc2c(0x85),''),this[_0x43cc2c(0x8a)]({'tag':_0x43cc2c(0x82),'attributes':{..._0x2ffa06,'class':[_0x43cc2c(0x83),_0x43cc2c(0x8e)],'ctx-name':_0x43cc2c(0x92),'cdn-url':_0xc89d1b['to'](_0x43cc2c(0x85))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x3e5c7f}from'ckeditor5/src/icons.js';import{ButtonView as _0x1acefc,IconView as _0x392797,View as _0x45dfe0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x45dfe0{constructor(_0x565e4d){super(_0x565e4d);const t=_0x565e4d['t'];this['set']('errorType',null);const _0x4c2517=new _0x1acefc(_0x565e4d);_0x4c2517['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4c2517['withText']=!0x0,_0x4c2517['class']='ck-button-action',_0x4c2517['on']('execute',()=>{this['fire']('retry');}),_0x4c2517['bind']('isVisible')['to'](this,'errorType',_0x45e9e1=>'NotFound'!==_0x45e9e1);const _0x21f0c6=new _0x392797();_0x21f0c6['content']=_0x3e5c7f,_0x21f0c6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d4332=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':[_0x21f0c6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d4332['to']('errorType',_0x39fbac=>t('NotFound'!==_0x39fbac?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4c2517]},{'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 _0xcaab1f,View as _0x5ead6e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5ead6e{constructor(_0x36d853){super(_0x36d853);const t=_0x36d853['t'],_0x1d245d=this['bindTemplate'],_0x7e9176=new _0xcaab1f();_0x7e9176['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':[_0x7e9176,{'text':_0x1d245d['to']('imageUploadProgress',_0x4d1b4f=>t('Loading\x20image...')+'\x20('+(_0x4d1b4f||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 _0x3b4cf0=_0x2a52;(function(_0x5c4620,_0x2c35ef){const _0x3384ac=_0x2a52,_0x1dc6dd=_0x5c4620();while(!![]){try{const _0x2604ee=parseInt(_0x3384ac(0x8f))/0x1+-parseInt(_0x3384ac(0x7a))/0x2+-parseInt(_0x3384ac(0x9e))/0x3*(-parseInt(_0x3384ac(0x9c))/0x4)+parseInt(_0x3384ac(0xa4))/0x5+parseInt(_0x3384ac(0x72))/0x6*(parseInt(_0x3384ac(0x8d))/0x7)+-parseInt(_0x3384ac(0x7b))/0x8+parseInt(_0x3384ac(0x79))/0x9*(-parseInt(_0x3384ac(0x9f))/0xa);if(_0x2604ee===_0x2c35ef)break;else _0x1dc6dd['push'](_0x1dc6dd['shift']());}catch(_0x3485a6){_0x1dc6dd['push'](_0x1dc6dd['shift']());}}}(_0xb8f0,0xb934f));function _0x2a52(_0x3816ab,_0x389396){const _0xb8f068=_0xb8f0();return _0x2a52=function(_0x2a52a8,_0x5c285b){_0x2a52a8=_0x2a52a8-0x6e;let _0x40da97=_0xb8f068[_0x2a52a8];return _0x40da97;},_0x2a52(_0x3816ab,_0x389396);}import{View as _0x3f7322}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3b8b25}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x190fc7}from'./uploadcareimageeditformerrorview.js';function _0xb8f0(){const _0x10ff2b=['focus','4669060zBBeEj','_waitForImageEditorComponent','addEventListener','getFocusableElement','retry','3396FdzWIR','change:status','_items','render','disconnect','clear','createCollection','12784185sFjQLf','1106366ajtLjt','5818504iJdsPJ','nodeName','set','filter','uc-cloud-image-editor','ck-reset_all-excluded','error','toLowerCase','target','length','detail','apply','cancel','div','_setView','element','fire','ready','5152JhJOAx','add','758217WiAVjj','querySelector','ck-uploadcare-form','once','observe','uploading','_editingView','status','_loadingView','addedNodes','setTemplate','addMany','_addErrorViewListeners','4bnzURn','_addUploadcareImageEditorListeners','4052889vZOOXB','10qANPJO','_errorView','_focusableView','cdnUrl'];_0xb8f0=function(){return _0x10ff2b;};return _0xb8f0();}import{UploadcareImageEditFormEditingView as _0x1f3d67}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x375c1c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x375c1c{[_0x3b4cf0(0x74)];[_0x3b4cf0(0x97)];[_0x3b4cf0(0xa0)];[_0x3b4cf0(0x95)];[_0x3b4cf0(0xa1)];constructor(_0x249d02,_0x2f1403,_0x3983ce){const _0x55e136=_0x3b4cf0;super(_0x249d02),this[_0x55e136(0x74)]=this[_0x55e136(0x78)](),this[_0x55e136(0x97)]=new _0x3b8b25(_0x249d02),this[_0x55e136(0xa0)]=new _0x190fc7(_0x249d02),this[_0x55e136(0x95)]=new _0x1f3d67(_0x249d02,_0x3983ce),this[_0x55e136(0xa1)]=new _0x3f7322(_0x249d02),this[_0x55e136(0xa1)][_0x55e136(0x99)](this[_0x55e136(0x70)]()),this[_0x55e136(0x7d)](_0x55e136(0x96),_0x2f1403),this[_0x55e136(0x99)]({'tag':_0x55e136(0x88),'attributes':{'class':['ck',_0x55e136(0x80),_0x55e136(0x91)],'tabindex':'-1'},'children':this[_0x55e136(0x74)]}),this[_0x55e136(0x89)](),this[_0x55e136(0x92)](_0x55e136(0x75),()=>{const _0x2b4ee6=_0x55e136;this[_0x2b4ee6(0x6e)](this[_0x2b4ee6(0x8a)],_0x42880b=>{const _0x4b1552=_0x2b4ee6;this[_0x4b1552(0x9d)](_0x42880b);});}),this['on'](_0x55e136(0x73),()=>{const _0x166e2f=_0x55e136;this[_0x166e2f(0x89)]();}),this[_0x55e136(0x9b)]();}[_0x3b4cf0(0xa3)](){const _0xf00800=_0x3b4cf0;this[_0xf00800(0x8a)][_0xf00800(0xa3)]();}[_0x3b4cf0(0x89)](){const _0x5be6ed=_0x3b4cf0;switch(this[_0x5be6ed(0x74)][_0x5be6ed(0x77)](),this[_0x5be6ed(0x96)]){case _0x5be6ed(0x94):this[_0x5be6ed(0x74)][_0x5be6ed(0x8e)](this[_0x5be6ed(0x97)]);break;case _0x5be6ed(0x81):this[_0x5be6ed(0x74)][_0x5be6ed(0x8e)](this[_0x5be6ed(0xa0)]);break;case _0x5be6ed(0x8c):this[_0x5be6ed(0x74)][_0x5be6ed(0x9a)]([this[_0x5be6ed(0x95)],this[_0x5be6ed(0xa1)]]);}}[_0x3b4cf0(0x6e)](_0x519063,_0x54bbff){const _0x2c0d05=_0x3b4cf0,_0x51f432=_0x2c0d05(0x7f),_0x444b3b=_0x519063[_0x2c0d05(0x90)](_0x51f432);if(_0x444b3b)return _0x54bbff(_0x444b3b);const _0x40564c=new MutationObserver(_0x2a4555=>{const _0x36b823=_0x2c0d05,_0x1b2a8d=_0x2a4555[_0x36b823(0x7e)](_0x42b0f7=>_0x42b0f7[_0x36b823(0x83)]===_0x519063&&_0x42b0f7[_0x36b823(0x98)][_0x36b823(0x84)]>0x0&&_0x42b0f7[_0x36b823(0x98)][0x0][_0x36b823(0x7c)][_0x36b823(0x82)]()===_0x51f432);_0x1b2a8d[_0x36b823(0x84)]&&(_0x40564c[_0x36b823(0x76)](),_0x54bbff(_0x1b2a8d[0x0][_0x36b823(0x98)][0x0]));});_0x40564c[_0x2c0d05(0x93)](_0x519063,{'childList':!0x0,'subtree':!0x0});}[_0x3b4cf0(0x9d)](_0x5d2885){const _0x5743ac=_0x3b4cf0;_0x5d2885[_0x5743ac(0x6f)](_0x5743ac(0x86),_0x599bf4=>{const _0x114312=_0x5743ac;this[_0x114312(0x8b)](_0x114312(0x86),{'imageSrc':_0x599bf4[_0x114312(0x85)][_0x114312(0xa2)]});}),_0x5d2885[_0x5743ac(0x6f)](_0x5743ac(0x87),()=>{const _0x1ef606=_0x5743ac;this[_0x1ef606(0x8b)](_0x1ef606(0x87));});}[_0x3b4cf0(0x9b)](){const _0x5dd48a=_0x3b4cf0;this[_0x5dd48a(0xa0)]['on'](_0x5dd48a(0x71),()=>{const _0x55645e=_0x5dd48a;this[_0x55645e(0x8b)](_0x55645e(0x71));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54e7c8=_0x4581;function _0x4581(_0x438d46,_0x24fae0){const _0x5825f9=_0x5825();return _0x4581=function(_0x45810d,_0x17e190){_0x45810d=_0x45810d-0xf7;let _0x45f01b=_0x5825f9[_0x45810d];return _0x45f01b;},_0x4581(_0x438d46,_0x24fae0);}(function(_0x397027,_0x86fd86){const _0x29bb27=_0x4581,_0x28abea=_0x397027();while(!![]){try{const _0x42cabf=parseInt(_0x29bb27(0xff))/0x1+parseInt(_0x29bb27(0xf8))/0x2*(parseInt(_0x29bb27(0xf9))/0x3)+parseInt(_0x29bb27(0x101))/0x4*(-parseInt(_0x29bb27(0x10e))/0x5)+parseInt(_0x29bb27(0x111))/0x6+-parseInt(_0x29bb27(0xfb))/0x7+-parseInt(_0x29bb27(0x109))/0x8+-parseInt(_0x29bb27(0x108))/0x9;if(_0x42cabf===_0x86fd86)break;else _0x28abea['push'](_0x28abea['shift']());}catch(_0x593fe1){_0x28abea['push'](_0x28abea['shift']());}}}(_0x5825,0xc2bb7));import{Command as _0x300cf2}from'ckeditor5/src/core.js';import{Dialog as _0x542c7e}from'ckeditor5/src/ui.js';function _0x5825(){const _0xa9f26c=['1257972qNuawF','imageEditController','4vWdUyz','isActive','document','plugins','uploadcare.allowExternalImagesEditing','get','imageBlock','9267948eCKaaJ','1652080bluvzk','requires','set','execute','imageInline','4197355yCccQZ','getSelectedElement','bind','1803012FmVFWh','model','refresh','isEnabled','unbind','selection','70VAhmkC','128859csOeZT','config','1319171RyXTKm','element','editor','_isEditable'];_0x5825=function(){return _0xa9f26c;};return _0x5825();}import{UploadcareImageEditController as _0x5801a2}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5d650e}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x300cf2{[_0x54e7c8(0x100)];static get[_0x54e7c8(0x10a)](){return[_0x542c7e];}[_0x54e7c8(0xfe)];constructor(_0xbb1d6e){const _0x55e595=_0x54e7c8;super(_0xbb1d6e),this[_0x55e595(0x100)]=void 0x0,this[_0x55e595(0xfe)]=_0x5d650e(_0xbb1d6e[_0x55e595(0xfa)][_0x55e595(0x106)](_0x55e595(0x105))||[]),this[_0x55e595(0x10b)]({'isActive':!0x1});}[_0x54e7c8(0x113)](){const _0x4ebc45=_0x54e7c8,_0x55267e=this[_0x4ebc45(0xfd)][_0x4ebc45(0x112)][_0x4ebc45(0x103)][_0x4ebc45(0xf7)][_0x4ebc45(0x10f)]();this[_0x4ebc45(0x114)]=this[_0x4ebc45(0xfe)](_0x55267e);}[_0x54e7c8(0x10c)](){const _0x3aa9a3=_0x54e7c8;this[_0x3aa9a3(0x100)]&&(this[_0x3aa9a3(0x115)](_0x3aa9a3(0x102)),this[_0x3aa9a3(0x100)]=void 0x0);const _0x5542a9=this[_0x3aa9a3(0xfd)][_0x3aa9a3(0x112)][_0x3aa9a3(0x103)][_0x3aa9a3(0xf7)][_0x3aa9a3(0x10f)]();_0x5542a9&&(_0x5542a9['is'](_0x3aa9a3(0xfc),_0x3aa9a3(0x107))||_0x5542a9['is'](_0x3aa9a3(0xfc),_0x3aa9a3(0x10d)))&&(this[_0x3aa9a3(0x100)]=new _0x5801a2(this[_0x3aa9a3(0xfd)],this[_0x3aa9a3(0xfd)][_0x3aa9a3(0x104)][_0x3aa9a3(0x106)](_0x542c7e),_0x5542a9),this[_0x3aa9a3(0x110)](_0x3aa9a3(0x102))['to'](this[_0x3aa9a3(0x100)],_0x3aa9a3(0x102)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3091c5=_0x43a6;(function(_0x53b4b2,_0x28876b){const _0x3c66c9=_0x43a6,_0x1bd7e8=_0x53b4b2();while(!![]){try{const _0x50a6f8=-parseInt(_0x3c66c9(0xd1))/0x1+parseInt(_0x3c66c9(0xc7))/0x2*(parseInt(_0x3c66c9(0xc4))/0x3)+-parseInt(_0x3c66c9(0xd7))/0x4*(-parseInt(_0x3c66c9(0xc8))/0x5)+-parseInt(_0x3c66c9(0xcb))/0x6*(parseInt(_0x3c66c9(0xcd))/0x7)+parseInt(_0x3c66c9(0xd3))/0x8*(-parseInt(_0x3c66c9(0xd9))/0x9)+parseInt(_0x3c66c9(0xc6))/0xa+parseInt(_0x3c66c9(0xc9))/0xb;if(_0x50a6f8===_0x28876b)break;else _0x1bd7e8['push'](_0x1bd7e8['shift']());}catch(_0x50b932){_0x1bd7e8['push'](_0x1bd7e8['shift']());}}}(_0x5042,0xac8c1));import{Plugin as _0x545588}from'ckeditor5/src/core.js';import{Notification as _0x8e33dc}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3e470b}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5eefcb}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x11f9bd}from'../uploadcareediting.js';function _0x43a6(_0x4df8cf,_0x20e8a0){const _0x5042f6=_0x5042();return _0x43a6=function(_0x43a69f,_0x4d957e){_0x43a69f=_0x43a69f-0xc4;let _0x2d9733=_0x5042f6[_0x43a69f];return _0x2d9733;},_0x43a6(_0x4df8cf,_0x20e8a0);}function _0x5042(){const _0x1371dd=['pluginName','1637800AeogBM','1418vVbbqW','345drODZr','16857544QhZsjn','isPremiumPlugin','41376yWrYZh','uploadcareImageReplace','413ySzoUn','uploadcareImageEdit','UploadcareImageEditEditing','requires','1093897gIYlRR','ImageEditing','5386376nzmfny','commands','ImageUtils','isOfficialPlugin','13880ytyLmg','add','9qGNDDG','init','3999ZCMVYp'];_0x5042=function(){return _0x1371dd;};return _0x5042();}export class UploadcareImageEditEditing extends _0x545588{static get[_0x3091c5(0xc5)](){const _0x43fba8=_0x3091c5;return _0x43fba8(0xcf);}static get[_0x3091c5(0xd0)](){const _0x5e29e7=_0x3091c5;return[_0x11f9bd,_0x8e33dc,_0x5e29e7(0xd5),_0x5e29e7(0xd2)];}static get[_0x3091c5(0xd6)](){return!0x0;}static get[_0x3091c5(0xca)](){return!0x0;}[_0x3091c5(0xda)](){const _0x104c8d=_0x3091c5,{editor:_0x346b4f}=this;_0x346b4f[_0x104c8d(0xd4)][_0x104c8d(0xd8)](_0x104c8d(0xce),new _0x3e470b(_0x346b4f)),_0x346b4f[_0x104c8d(0xd4)][_0x104c8d(0xd8)](_0x104c8d(0xcc),new _0x5eefcb(_0x346b4f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x478bed}from'ckeditor5/src/core.js';import{ButtonView as _0x207470}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x50d699}from'ckeditor5/src/icons.js';import{createElement as _0x26a572}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 _0x478bed{['_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 _0x1d9f34=this['editor'];_0x1d9f34['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b2c10=>{const _0xb28065=_0x1d9f34['commands']['get']('uploadcareImageEdit'),_0x357dee=new _0x207470(_0x5b2c10),t=_0x5b2c10['t'];return _0x357dee['set']({'icon':_0x50d699,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x357dee['bind']('isEnabled')['to'](_0xb28065),_0x357dee['bind']('isOn')['to'](_0xb28065,'isActive'),this['listenTo'](_0x357dee,'execute',()=>{_0x1d9f34['execute']('uploadcareImageEdit'),_0x1d9f34['editing']['view']['focus']();}),_0x357dee;}),this['_initConfig']();}['_initConfig'](){const _0x4782d1=_0x26a572(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4782d1),this['listenTo'](this['editor'],'destroy',()=>{_0x4782d1['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32e2d4=_0x1081;function _0x1081(_0x303b8d,_0x51db80){const _0x2d544f=_0x2d54();return _0x1081=function(_0x108172,_0x35439a){_0x108172=_0x108172-0x1c9;let _0x25bd3d=_0x2d544f[_0x108172];return _0x25bd3d;},_0x1081(_0x303b8d,_0x51db80);}(function(_0x376597,_0x47378d){const _0xb499b=_0x1081,_0x1874d0=_0x376597();while(!![]){try{const _0x2dc91f=-parseInt(_0xb499b(0x1cc))/0x1+-parseInt(_0xb499b(0x1e0))/0x2+-parseInt(_0xb499b(0x1df))/0x3+-parseInt(_0xb499b(0x1cb))/0x4*(parseInt(_0xb499b(0x1e2))/0x5)+parseInt(_0xb499b(0x1d7))/0x6*(parseInt(_0xb499b(0x1ca))/0x7)+-parseInt(_0xb499b(0x1d4))/0x8+-parseInt(_0xb499b(0x1d3))/0x9*(-parseInt(_0xb499b(0x1dc))/0xa);if(_0x2dc91f===_0x47378d)break;else _0x1874d0['push'](_0x1874d0['shift']());}catch(_0x48cf11){_0x1874d0['push'](_0x1874d0['shift']());}}}(_0x2d54,0x6aefe));import{Command as _0x33a62f}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x33a62f{[_0x32e2d4(0x1dd)](){const _0x358906=_0x32e2d4,_0x3e0551=this[_0x358906(0x1d0)][_0x358906(0x1cd)][_0x358906(0x1d8)][_0x358906(0x1d5)][_0x358906(0x1da)]();this[_0x358906(0x1db)]=Boolean(_0x3e0551&&(_0x3e0551['is'](_0x358906(0x1de),_0x358906(0x1c9))||_0x3e0551['is'](_0x358906(0x1de),_0x358906(0x1e1))));}[_0x32e2d4(0x1d6)](_0x1ed915){const _0x36d7c0=_0x32e2d4,_0x2e4923=this[_0x36d7c0(0x1d0)][_0x36d7c0(0x1cd)][_0x36d7c0(0x1d8)][_0x36d7c0(0x1d5)][_0x36d7c0(0x1da)]();this[_0x36d7c0(0x1d0)][_0x36d7c0(0x1cd)][_0x36d7c0(0x1d1)](_0x466c41=>{const _0x2cade7=_0x36d7c0;_0x466c41[_0x2cade7(0x1ce)](_0x1ed915,_0x2e4923),_0x466c41[_0x2cade7(0x1cf)](_0x2cade7(0x1d9),_0x2e4923),_0x466c41[_0x2cade7(0x1cf)](_0x2cade7(0x1d2),_0x2e4923);});}}function _0x2d54(){const _0x4f1730=['2856168tvYyFO','selection','execute','2814uXkRNP','document','srcset','getSelectedElement','isEnabled','540BnkCHH','refresh','element','1841595hYRlkD','537474sAamtc','imageInline','5sBLIUo','imageBlock','1169wPDEbk','2603112ExTBDz','326032LKqNLO','model','setAttributes','removeAttribute','editor','change','sizes','429354EXdkjk'];_0x2d54=function(){return _0x4f1730;};return _0x2d54();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1d214f=_0xeb7d;(function(_0x49f9fe,_0x2a32a4){var _0x42f9a2=_0xeb7d,_0x5bc635=_0x49f9fe();while(!![]){try{var _0x2b277f=parseInt(_0x42f9a2(0x123))/0x1*(-parseInt(_0x42f9a2(0x11d))/0x2)+parseInt(_0x42f9a2(0x122))/0x3+-parseInt(_0x42f9a2(0x125))/0x4+-parseInt(_0x42f9a2(0x11e))/0x5*(parseInt(_0x42f9a2(0x11a))/0x6)+parseInt(_0x42f9a2(0x120))/0x7+-parseInt(_0x42f9a2(0x119))/0x8+parseInt(_0x42f9a2(0x11f))/0x9;if(_0x2b277f===_0x2a32a4)break;else _0x5bc635['push'](_0x5bc635['shift']());}catch(_0x29f1da){_0x5bc635['push'](_0x5bc635['shift']());}}}(_0x2488,0x9388b));function _0x2488(){var _0x5142da=['2480004aoCHYD','148AWCNLS','isOfficialPlugin','4390336bvuTQL','isPremiumPlugin','9591384BtmNvb','3522WfLnGM','UploadcareImageEdit','requires','15656OYLjIq','3715PotGYo','24239439qnolVv','6828864TfhKzf','pluginName'];_0x2488=function(){return _0x5142da;};return _0x2488();}import{Plugin as _0x471266}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xea6794}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0xeb7d(_0x1547c6,_0x566127){var _0x24882c=_0x2488();return _0xeb7d=function(_0xeb7d63,_0x141191){_0xeb7d63=_0xeb7d63-0x119;var _0x4f6b58=_0x24882c[_0xeb7d63];return _0x4f6b58;},_0xeb7d(_0x1547c6,_0x566127);}import{UploadcareImageEditUI as _0x5f6aae}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x471266{static get[_0x1d214f(0x121)](){var _0x109d73=_0x1d214f;return _0x109d73(0x11b);}static get[_0x1d214f(0x11c)](){return[_0xea6794,_0x5f6aae];}static get[_0x1d214f(0x124)](){return!0x0;}static get[_0x1d214f(0x126)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4798b4=_0x3917;(function(_0x5e0247,_0x55f40e){const _0x3b56d8=_0x3917,_0x506d24=_0x5e0247();while(!![]){try{const _0x3a05f6=parseInt(_0x3b56d8(0xe9))/0x1*(-parseInt(_0x3b56d8(0xb2))/0x2)+parseInt(_0x3b56d8(0xd5))/0x3+-parseInt(_0x3b56d8(0xbb))/0x4+-parseInt(_0x3b56d8(0xb6))/0x5*(parseInt(_0x3b56d8(0xba))/0x6)+-parseInt(_0x3b56d8(0xb3))/0x7*(parseInt(_0x3b56d8(0xaf))/0x8)+parseInt(_0x3b56d8(0xc1))/0x9*(-parseInt(_0x3b56d8(0xdd))/0xa)+parseInt(_0x3b56d8(0xdb))/0xb*(parseInt(_0x3b56d8(0xd6))/0xc);if(_0x3a05f6===_0x55f40e)break;else _0x506d24['push'](_0x506d24['shift']());}catch(_0x4074bf){_0x506d24['push'](_0x506d24['shift']());}}}(_0x4ba3,0xbfdb9));import{Plugin as _0x4851f6}from'ckeditor5/src/core.js';import{IconDropbox as _0x50a2b3,IconFacebook as _0x519b19,IconGoogleDrive as _0x81303c,IconGooglePhotos as _0x45f99b,IconUploadcareImageUpload as _0x526276,IconUploadcareLink as _0x18a202,IconOneDrive as _0x2596d2}from'ckeditor5/src/icons.js';function _0x3917(_0x17022d,_0x3bb6a1){const _0x4ba323=_0x4ba3();return _0x3917=function(_0x391782,_0x5a4c06){_0x391782=_0x391782-0xa7;let _0x15593d=_0x4ba323[_0x391782];return _0x15593d;},_0x3917(_0x17022d,_0x3bb6a1);}import{ButtonView as _0x2ef1da,MenuBarMenuListItemButtonView as _0xb5a093}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x465f63}from'./uploadcareconfig.js';import{getTranslation as _0x4c2cec}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x4ba3(){const _0x1c5e41=['afterInit','registerIntegration','get','has','GDrive','uploadcareLicenseKeyExpired','licenseKey','isPremiumPlugin','destroy','_createDropdownButtons','uploadcareLicenseKeyNotAllowed','_getIntegrationKey','2609448XlVxgX','12rIDkIq','execute','icon','usageLimit','withText','53359438wwsqtm','domainLimit','10zPjVVk','invalid','_normalizeConfigSourceList','type','isImageSelected','init','isOfficialPlugin','Local','url','uploadcareLicenseKeyValid','reduce','text','52449KhCyXG','isEnabled','_createButton','_createToolbarButton','forEach','locale','map','expired','ImageInsertUI','uploadcareLicenseKeyEvaluationLimit','_createMenuBarButtons','Facebook','commands','uploadcareLicenseKeyInvalid','shortText','URL','pluginName','GPhotos','editor','featureNotAllowed','upload','label','uploadcare','53848UStfgp','config','uploadcareLicenseKeyUsageLimit','20ughZDG','938feHuDA','tooltip','evaluationLimit','4204945vOmROF','_showLicenseError','UploadcareUI','Dropbox','6mfEToF','5448620Wowzww','uploadcare.uploader.sourceList','bind','Insert','assetManager','plugins','11747133cSHEMW','push','uploadcareLicenseKeyDomainLimit','OneDrive','Replace','entries','_licenseKeyCheckInterval','Uploadcare'];_0x4ba3=function(){return _0x1c5e41;};return _0x4ba3();}export class UploadcareUI extends _0x4851f6{[_0x4798b4(0xcf)];[_0x4798b4(0xc7)];static get[_0x4798b4(0xa8)](){const _0x2cd490=_0x4798b4;return _0x2cd490(0xb8);}static get[_0x4798b4(0xe3)](){return!0x0;}static get[_0x4798b4(0xd0)](){return!0x0;}[_0x4798b4(0xe2)](){const _0x4e16fc=_0x4798b4;this[_0x4e16fc(0xcf)]=this[_0x4e16fc(0xaa)][_0x4e16fc(0xb0)][_0x4e16fc(0xcb)](_0x4e16fc(0xcf));const _0x456fb8=this[_0x4e16fc(0xaa)];this[_0x4e16fc(0xc7)]=setInterval(()=>{const _0x533305=_0x4e16fc;let _0x58742c;for(const _0x3fb2f9 in _0x456fb8){const _0x1837cc=_0x3fb2f9,_0x15900a=_0x456fb8[_0x1837cc];if(_0x533305(0xe6)==_0x15900a||_0x533305(0xf6)==_0x15900a||_0x533305(0xce)==_0x15900a||_0x533305(0xc3)==_0x15900a||_0x533305(0xd3)==_0x15900a||_0x533305(0xf2)==_0x15900a||_0x533305(0xb1)==_0x15900a){delete _0x456fb8[_0x1837cc],_0x58742c=_0x15900a,clearInterval(this[_0x533305(0xc7)]),this[_0x533305(0xc7)]=void 0x0;break;}}_0x533305(0xf6)==_0x58742c&&_0x456fb8[_0x533305(0xb7)](_0x533305(0xde)),_0x533305(0xce)==_0x58742c&&_0x456fb8[_0x533305(0xb7)](_0x533305(0xf0)),_0x533305(0xc3)==_0x58742c&&_0x456fb8[_0x533305(0xb7)](_0x533305(0xdc)),_0x533305(0xd3)==_0x58742c&&_0x456fb8[_0x533305(0xb7)](_0x533305(0xab),_0x533305(0xc8)),_0x533305(0xf2)==_0x58742c&&_0x456fb8[_0x533305(0xb7)](_0x533305(0xb5)),_0x533305(0xb1)==_0x58742c&&_0x456fb8[_0x533305(0xb7)](_0x533305(0xd9));},0x3e8);}[_0x4798b4(0xc9)](){const _0x34fa9f=_0x4798b4,{editor:_0x162b86}=this,_0x2aff54=_0x162b86[_0x34fa9f(0xf5)][_0x34fa9f(0xcb)](_0x34fa9f(0xae));if(!_0x2aff54)return;const _0x58abde=this[_0x34fa9f(0xdf)](_0x162b86[_0x34fa9f(0xb0)][_0x34fa9f(0xcb)](_0x34fa9f(0xbc)))[_0x34fa9f(0xe7)]((_0x44ad3b,_0x29073e)=>{const _0x4e1a1b=_0x34fa9f,_0x4fe8a1=this[_0x4e1a1b(0xd4)](_0x29073e[_0x4e1a1b(0xe0)]);return _0x44ad3b[_0x4fe8a1]||(_0x44ad3b[_0x4fe8a1]=[]),_0x44ad3b[_0x4fe8a1][_0x4e1a1b(0xc2)](_0x29073e),_0x44ad3b;},{});_0x162b86[_0x34fa9f(0xc0)][_0x34fa9f(0xcc)](_0x34fa9f(0xf1))&&_0x162b86[_0x34fa9f(0xf5)][_0x34fa9f(0xcb)](_0x34fa9f(0xae))&&Object[_0x34fa9f(0xc6)](_0x58abde)[_0x34fa9f(0xed)](([_0x5a00ac,_0x17165c])=>{const _0x1d3f37=_0x34fa9f;_0x162b86[_0x1d3f37(0xc0)][_0x1d3f37(0xcb)](_0x1d3f37(0xf1))[_0x1d3f37(0xca)]({'name':_0x5a00ac,'observable':()=>_0x2aff54,'buttonViewCreator':()=>this[_0x1d3f37(0xec)](_0x17165c),'formViewCreator':()=>this[_0x1d3f37(0xd2)](_0x17165c),'menuBarButtonViewCreator':()=>this[_0x1d3f37(0xf3)](_0x17165c),'override':_0x1d3f37(0xbf)!==_0x5a00ac});});}[_0x4798b4(0xd1)](){const _0x54485b=_0x4798b4;super[_0x54485b(0xd1)](),this[_0x54485b(0xc7)]&&clearInterval(this[_0x54485b(0xc7)]);}[_0x4798b4(0xdf)](_0x230b3f){const _0x366be3=_0x4798b4,{locale:_0x37e1cc}=this[_0x366be3(0xaa)];return _0x230b3f[_0x366be3(0xef)](_0x46671f=>{const _0x256178=_0x366be3,_0x2f0d7f=_0x4c2cec(_0x37e1cc,_0x46671f,_0x256178(0xbe));switch(_0x46671f){case _0x465f63[_0x256178(0xe4)]:return{'icon':_0x526276,'type':_0x465f63[_0x256178(0xe4)],..._0x2f0d7f};case _0x465f63[_0x256178(0xa7)]:return{'icon':_0x18a202,'type':_0x465f63[_0x256178(0xa7)],..._0x2f0d7f};case _0x465f63[_0x256178(0xb9)]:return{'icon':_0x50a2b3,'type':_0x465f63[_0x256178(0xb9)],..._0x2f0d7f};case _0x465f63[_0x256178(0xf4)]:return{'icon':_0x519b19,'type':_0x465f63[_0x256178(0xf4)],..._0x2f0d7f};case _0x465f63[_0x256178(0xcd)]:return{'icon':_0x81303c,'type':_0x465f63[_0x256178(0xcd)],..._0x2f0d7f};case _0x465f63[_0x256178(0xa9)]:return{'icon':_0x45f99b,'type':_0x465f63[_0x256178(0xa9)],..._0x2f0d7f};case _0x465f63[_0x256178(0xc4)]:return{'icon':_0x2596d2,'type':_0x465f63[_0x256178(0xc4)],..._0x2f0d7f};}});}[_0x4798b4(0xd4)](_0x1f29c0){const _0x3a54df=_0x4798b4;switch(_0x1f29c0){case _0x465f63[_0x3a54df(0xe4)]:return _0x3a54df(0xac);case _0x465f63[_0x3a54df(0xa7)]:return _0x3a54df(0xe5);default:return _0x3a54df(0xbf);}}[_0x4798b4(0xeb)](_0x59741c,_0x3c3d4a){const _0xd1f9e5=_0x4798b4,_0x505845=this[_0xd1f9e5(0xaa)],_0x23add6=new _0x59741c(_0x505845[_0xd1f9e5(0xee)]),_0xbb6159=_0x505845[_0xd1f9e5(0xf5)][_0xd1f9e5(0xcb)](_0xd1f9e5(0xae));return _0x23add6[_0xd1f9e5(0xbd)](_0xd1f9e5(0xea))['to'](_0xbb6159),_0x23add6['on'](_0xd1f9e5(0xd7),()=>{const _0x12633c=_0xd1f9e5;_0xbb6159[_0x12633c(0xd7)](_0x3c3d4a);}),_0x23add6;}[_0x4798b4(0xec)](_0x10c3e6){const _0xeb266b=_0x4798b4,{locale:_0x59dc8d}=this[_0xeb266b(0xaa)],_0x248a33=this[_0xeb266b(0xaa)][_0xeb266b(0xc0)][_0xeb266b(0xcb)](_0xeb266b(0xf1)),_0x593b82=_0x10c3e6[0x0],_0x1f4a86=this[_0xeb266b(0xeb)](_0x2ef1da,_0x593b82[_0xeb266b(0xe0)]);return _0x1f4a86[_0xeb266b(0xd8)]=_0x593b82[_0xeb266b(0xd8)],_0x1f4a86[_0xeb266b(0xbd)](_0xeb266b(0xad))['to'](_0x248a33,_0xeb266b(0xe1),_0x153c84=>_0x4c2cec(_0x59dc8d,_0x593b82[_0xeb266b(0xe0)],_0x153c84?_0xeb266b(0xc5):_0xeb266b(0xbe))[_0xeb266b(0xe8)]),_0x1f4a86[_0xeb266b(0xb4)]=!0x0,_0x1f4a86;}[_0x4798b4(0xd2)](_0x52b30e){const _0x3b4ee1=_0x4798b4,{locale:_0x485bc0}=this[_0x3b4ee1(0xaa)],_0x25ed1e=this[_0x3b4ee1(0xaa)][_0x3b4ee1(0xc0)][_0x3b4ee1(0xcb)](_0x3b4ee1(0xf1));return _0x52b30e[_0x3b4ee1(0xef)](_0x89e0dd=>{const _0x3e95e9=_0x3b4ee1,_0x125ae0=this[_0x3e95e9(0xeb)](_0x2ef1da,_0x89e0dd[_0x3e95e9(0xe0)]);return _0x125ae0[_0x3e95e9(0xda)]=!0x0,_0x125ae0[_0x3e95e9(0xd8)]=_0x89e0dd[_0x3e95e9(0xd8)],_0x125ae0[_0x3e95e9(0xbd)](_0x3e95e9(0xad))['to'](_0x25ed1e,_0x3e95e9(0xe1),_0x3d6ce2=>_0x4c2cec(_0x485bc0,_0x89e0dd[_0x3e95e9(0xe0)],_0x3d6ce2?_0x3e95e9(0xc5):_0x3e95e9(0xbe))[_0x3e95e9(0xe8)]),_0x125ae0;});}[_0x4798b4(0xf3)](_0x204d24){const _0x520e6a=_0x4798b4;return _0x204d24[_0x520e6a(0xef)](_0x4fec28=>{const _0x78ec41=_0x520e6a,_0x22ae2c=this[_0x78ec41(0xeb)](_0xb5a093,_0x4fec28[_0x78ec41(0xe0)]);return _0x22ae2c[_0x78ec41(0xd8)]=_0x4fec28[_0x78ec41(0xd8)],_0x22ae2c[_0x78ec41(0xad)]=_0x4fec28[_0x78ec41(0xf7)],_0x22ae2c;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3db835}from'ckeditor5/src/core.js';import{FileRepository as _0x4c8afa}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x448426}from'./uploadcareediting.js';import{UploadUtils as _0x1d1e10}from'./utils/uploadutils.js';import{getImageUrls as _0x190068}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3db835{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4c8afa,_0x448426];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3fddea=this['editor'];if(!!!_0x3fddea['config']['get']('uploadcare'))return;_0x3fddea['plugins']['get'](_0x4c8afa)['createUploadAdapter']=_0x577192=>new k(_0x577192,_0x3fddea),_0x3fddea['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x27bfd8,{imageElement:_0x2f6f47,data:_0x50b454})=>{_0x3fddea['model']['change'](_0x55811e=>{_0x55811e['setAttribute']('uploadcareImageId',_0x50b454['uploadcareImageId'],_0x2f6f47);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2845a3,_0x56658e){this['loader']=_0x2845a3,this['editor']=_0x56658e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xddb825=await this['loader']['file'];return _0x1d1e10['upload']({'file':_0xddb825,'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':_0x45926c=>{_0x45926c&&_0x45926c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x45926c['value']);}})['then'](async _0x369f4a=>{const {imageFallbackUrl:_0x4785aa,imageSources:_0xe6bebb}=_0x190068(_0x369f4a['cdnUrl'],_0x369f4a['imageInfo']['width']);return{'uploadcareImageId':_0x369f4a['uuid'],'default':_0x4785aa,'sources':_0xe6bebb};})['catch'](()=>{const _0x1c2340=t('Cannot\x20upload\x20file:')+('\x20'+_0xddb825['name']+'.');return Promise['reject'](_0x1c2340);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x51407b}from'../uploadcareconfig.js';export function getTranslation(_0x493dff,_0x5b2102,_0x3fe4ef){const t=_0x493dff['t'],_0x37c8b4=_0x493dff['t'];switch(_0x5b2102){case _0x51407b['Local']:return{'text':_0x37c8b4('Insert'===_0x3fe4ef?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x37c8b4('From\x20computer')};case _0x51407b['URL']:return{'text':'Insert'===_0x3fe4ef?_0x37c8b4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x37c8b4('Via\x20URL')};case _0x51407b['Dropbox']:return{'text':t('Insert'===_0x3fe4ef?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x51407b['Facebook']:return{'text':t('Insert'===_0x3fe4ef?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x51407b['GDrive']:return{'text':t('Insert'===_0x3fe4ef?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x51407b['GPhotos']:return{'text':t('Insert'===_0x3fe4ef?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x51407b['OneDrive']:return{'text':t('Insert'===_0x3fe4ef?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b2102;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x47bf0a=_0x507a;function _0x3a61(){var _0x70b51c=['createCollection','focusTracker','getFocusableElement','forwardCycle','true','496611BKHhmX','880VRysau','div','7244028tQHWns','733987kmtiNs','12590TBQrgp','26983746ZYIhSO','396674WpoIMo','8jrOJwN','bindTemplate','fire','8643691fdRYIX','focusCycler'];_0x3a61=function(){return _0x70b51c;};return _0x3a61();}function _0x507a(_0x50b9ea,_0xaf0110){var _0x3a61fb=_0x3a61();return _0x507a=function(_0x507a26,_0x1a87cb){_0x507a26=_0x507a26-0x1ba;var _0x4d40fa=_0x3a61fb[_0x507a26];return _0x4d40fa;},_0x507a(_0x50b9ea,_0xaf0110);}(function(_0xee23c9,_0x569973){var _0x143dd4=_0x507a,_0x375723=_0xee23c9();while(!![]){try{var _0x264905=parseInt(_0x143dd4(0x1c0))/0x1+-parseInt(_0x143dd4(0x1c3))/0x2+parseInt(_0x143dd4(0x1bc))/0x3+-parseInt(_0x143dd4(0x1bd))/0x4*(parseInt(_0x143dd4(0x1c1))/0x5)+-parseInt(_0x143dd4(0x1bf))/0x6+-parseInt(_0x143dd4(0x1c7))/0x7*(parseInt(_0x143dd4(0x1c4))/0x8)+parseInt(_0x143dd4(0x1c2))/0x9;if(_0x264905===_0x569973)break;else _0x375723['push'](_0x375723['shift']());}catch(_0x2babef){_0x375723['push'](_0x375723['shift']());}}}(_0x3a61,0xabb26));import{FocusTracker as _0x227511}from'ckeditor5/src/utils.js';import{View as _0x1c01f1,FocusCycler as _0x502087}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1c01f1{[_0x47bf0a(0x1ca)];[_0x47bf0a(0x1c8)];constructor(_0x34d228){var _0x18c36b=_0x47bf0a;super(_0x34d228),this[_0x18c36b(0x1ca)]=new _0x227511(),this[_0x18c36b(0x1c8)]=new _0x502087({'focusables':this[_0x18c36b(0x1c9)](),'focusTracker':this[_0x18c36b(0x1ca)]});}[_0x47bf0a(0x1cb)](){var _0x489270=_0x47bf0a;return{'tag':_0x489270(0x1be),'attributes':{'aria-hidden':_0x489270(0x1bb),'tabindex':'0'},'on':{'focus':this[_0x489270(0x1c5)]['to'](()=>{var _0x448516=_0x489270;this[_0x448516(0x1c8)][_0x448516(0x1c6)](_0x448516(0x1ba));})}};}}
|