@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251210.0 → 0.0.0-nightly-next-20251211.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 _0x320815=_0x48e9;(function(_0x2bfc3c,_0x21e659){const _0x599388=_0x48e9,_0x16f880=_0x2bfc3c();while(!![]){try{const _0x111177=-parseInt(_0x599388(0x1ea))/0x1*(-parseInt(_0x599388(0x1e8))/0x2)+-parseInt(_0x599388(0x22a))/0x3*(-parseInt(_0x599388(0x21d))/0x4)+parseInt(_0x599388(0x1f6))/0x5*(parseInt(_0x599388(0x226))/0x6)+-parseInt(_0x599388(0x20d))/0x7*(parseInt(_0x599388(0x1dd))/0x8)+-parseInt(_0x599388(0x1f2))/0x9*(parseInt(_0x599388(0x1fc))/0xa)+-parseInt(_0x599388(0x1f7))/0xb+parseInt(_0x599388(0x203))/0xc*(parseInt(_0x599388(0x22c))/0xd);if(_0x111177===_0x21e659)break;else _0x16f880['push'](_0x16f880['shift']());}catch(_0x780a6e){_0x16f880['push'](_0x16f880['shift']());}}}(_0x57d8,0xbd7a9));import{Plugin as _0x40cb84}from'ckeditor5/src/core.js';import{Dialog as _0x3f84c4}from'ckeditor5/src/ui.js';function _0x57d8(){const _0x222d68=['2218nVwgZN','uploadcareImageId','1094kbXVNV','_initImageProcessingIndicator','_initConfig','map','insertImage','ctxElement','conversion','editing','12682863avddQU','uc-config','removeAttribute','uploader-','272585GOpVIy','8097804qYZDOa','once','render','get','selection','10ccCtzz','closeMax','document','uc-upload-ctx-provider','attributeToAttribute','body','pluginName','12lmCdgW','uploadcare.pubkey','input[uploadcare-file-input]','downcast','join','uploadcare.uploader','extend','#uc-icon-arrow-down','getAttribute','isOfficialPlugin','9758ooNXqq','schema','isRegistered','imageBlock','uploadcareImageReplace','data-uc-image-id','upcast','requires','_ctxElement','elementToAttribute','commands','querySelector','href','iconHrefResolver','PictureEditing','execute','4fxwnQg','config','_initCtx','contentLanguage','\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','UploadcareEditing','cleanupImage','editor','init','6KSxpGs','model','_configElement','listenTo','3014643XhGtTy','uploadcare','19326138SNMLrp','ucContextId','getSelectedElement','destroy','afterInit','_initConversion','view','locale','imageInline','4808brNFpL','isPremiumPlugin','add','true','_initSchema','appendChild','for','configElement','replaceImageSource','fromCharCode','remove'];_0x57d8=function(){return _0x222d68;};return _0x57d8();}function _0x48e9(_0x5bc6ac,_0x201027){const _0x57d861=_0x57d8();return _0x48e9=function(_0x48e94f,_0x1945d0){_0x48e94f=_0x48e94f-0x1d9;let _0x1062c6=_0x57d861[_0x48e94f];return _0x1062c6;},_0x48e9(_0x5bc6ac,_0x201027);}import{createElement as _0x2511e8,global as _0x47e095,uid as _0x1daf60}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5c5f2d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3dea15}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2953c9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x40cb84{[_0x320815(0x228)]=null;[_0x320815(0x215)]=null;static get[_0x320815(0x202)](){const _0xb54334=_0x320815;return _0xb54334(0x222);}static get[_0x320815(0x214)](){const _0x3caf07=_0x320815;return[_0x3caf07(0x21b),_0x3dea15,_0x3f84c4];}static get[_0x320815(0x20c)](){return!0x0;}static get[_0x320815(0x1de)](){return!0x0;}[_0x320815(0x22d)];get[_0x320815(0x1e4)](){const _0x154a98=_0x320815;return this[_0x154a98(0x228)];}get[_0x320815(0x1ef)](){const _0x4b3047=_0x320815;return this[_0x4b3047(0x215)];}constructor(_0x57d922){const _0x12745e=_0x320815;super(_0x57d922),this[_0x12745e(0x22d)]=_0x1daf60();}[_0x320815(0x225)](){const _0x1e7ae1=_0x320815,_0x1187e1=this[_0x1e7ae1(0x224)];_0x1187e1[_0x1e7ae1(0x217)][_0x1e7ae1(0x1df)](_0x1e7ae1(0x22b),new _0x5c5f2d(_0x1187e1));}[_0x320815(0x230)](){const _0x43adc3=_0x320815;this[_0x43adc3(0x1e1)](),this[_0x43adc3(0x1d9)](),this[_0x43adc3(0x1ec)](),this[_0x43adc3(0x21f)](),this[_0x43adc3(0x1eb)](),this[_0x43adc3(0x229)](this[_0x43adc3(0x224)],_0x43adc3(0x22f),()=>{const _0x380452=_0x43adc3;this[_0x380452(0x228)]&&(this[_0x380452(0x228)][_0x380452(0x1e7)](),this[_0x380452(0x228)]=null),this[_0x380452(0x215)]&&(this[_0x380452(0x215)][_0x380452(0x1e7)](),this[_0x380452(0x215)]=null);const _0x49b3ad=_0x47e095[_0x380452(0x1fe)][_0x380452(0x218)](_0x380452(0x205));_0x49b3ad&&_0x49b3ad[_0x380452(0x1e7)]();}),async function(_0xc8982c){const _0x939957=_0x3a2b8b([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]),_0x291df0=0x535f8c3a,_0x28affe=0x5358f7ba^_0x291df0,_0x197bde=window[_0x3a2b8b([0x44,0x61,0x74,0x65])][_0x3a2b8b([0x6e,0x6f,0x77])](),_0x1c7894=_0xc8982c[_0x3a2b8b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37cfc8=new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x283b52=>{_0x1c7894[_0x3a2b8b([0x6f,0x6e,0x63,0x65])](_0x3a2b8b([0x72,0x65,0x61,0x64,0x79]),_0x283b52);}),_0x408bbe={[_0x3a2b8b([0x6b,0x74,0x79])]:_0x3a2b8b([0x45,0x43]),[_0x3a2b8b([0x75,0x73,0x65])]:_0x3a2b8b([0x73,0x69,0x67]),[_0x3a2b8b([0x63,0x72,0x76])]:_0x3a2b8b([0x50,0x2d,0x32,0x35,0x36]),[_0x3a2b8b([0x78])]:_0x3a2b8b([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]),[_0x3a2b8b([0x79])]:_0x3a2b8b([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]),[_0x3a2b8b([0x61,0x6c,0x67])]:_0x3a2b8b([0x45,0x53,0x32,0x35,0x36])},_0x47706a=_0x1c7894[_0x3a2b8b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a2b8b([0x67,0x65,0x74])](_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39ec71(){let _0x32cbfc,_0x49e5d2=null,_0x27b457=null;try{if(_0x47706a==_0x3a2b8b([0x47,0x50,0x4c]))return _0x3a2b8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32cbfc=_0x487188(),!_0x32cbfc)return _0x3a2b8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32cbfc[_0x3a2b8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27b457=_0x5a2ac2(_0x32cbfc[_0x3a2b8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32cbfc[_0x3a2b8b([0x6a,0x74,0x69])])),await _0x57d689()?_0x4f798b()?_0x402a9a()?_0x3a2b8b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34ac22()?(_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a2b8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49e5d2=_0x1571d9(_0x3a2b8b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a2b8b([0x74,0x72,0x69,0x61,0x6c])&&(_0x49e5d2=_0x1571d9(_0x3a2b8b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ea9b6()):_0x3a2b8b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a2b8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a2b8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a2b8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x402a9a(){const _0x5e6c12=[_0x3a2b8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a2b8b([0x74,0x72,0x69,0x61,0x6c])][_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x197bde/0x3e8:0xe10*_0x28affe;return _0x32cbfc[_0x3a2b8b([0x65,0x78,0x70])]<_0x5e6c12;}function _0x4f798b(){const _0x2f316f=_0x32cbfc[_0x3a2b8b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f316f&&(!!_0x2f316f[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a2b8b([0x2a]))||!!_0x2f316f[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a2b8b([0x55,0x50,0x4c,0x43])));}function _0x34ac22(){const _0x212692=_0x48e9,_0xb65bb0=_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb65bb0||0x0==_0xb65bb0[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x476c8f}=new URL(window[_0x3a2b8b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x212692(0x219)]);if(_0xb65bb0[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476c8f))return!0x0;const _0x1ef04e=_0x476c8f[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e]));return _0xb65bb0[_0x3a2b8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x368adc=>_0x368adc[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a2b8b([0x2a])))[_0x3a2b8b([0x6d,0x61,0x70])](_0x29d6dd=>_0x29d6dd[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e])))[_0x3a2b8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57a067=>_0x57a067[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ef04e[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a2b8b([0x6d,0x61,0x70])](_0x44b8da=>Array(_0x1ef04e[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44b8da[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a2b8b([0x66,0x69,0x6c,0x6c])](_0x44b8da[0x0]===_0x3a2b8b([0x2a])?_0x3a2b8b([0x2a]):'')[_0x3a2b8b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44b8da))[_0x3a2b8b([0x73,0x6f,0x6d,0x65])](_0x19fa07=>_0x1ef04e[_0x3a2b8b([0x65,0x76,0x65,0x72,0x79])]((_0x5adf07,_0x11ce0b)=>_0x19fa07[_0x11ce0b]===_0x5adf07||_0x19fa07[_0x11ce0b]===_0x3a2b8b([0x2a])));}function _0x4ea9b6(){return _0x49e5d2&&_0x27b457?new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4487fb,_0x249a6)=>{_0x49e5d2[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x4487fb,_0x249a6),_0x27b457[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x41c5c3=>{_0x41c5c3!=_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64])&&_0x4487fb(_0x41c5c3);},_0x249a6);}):_0x49e5d2||_0x27b457||_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a2ac2(_0x2d9e7d,_0x2629a4){return new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51fb46=>{if(_0x2c5426())return _0x51fb46(_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64]));_0x5ed627(),_0x1c7894[_0x3a2b8b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a2b8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x286dd7=!0x1;const _0x23a8c5=_0x1daf60();function _0xc8f71f(_0x37d462){return!!_0x37d462&&(typeof _0x37d462===_0x3a2b8b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37d462===_0x3a2b8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37d462[_0x3a2b8b([0x74,0x68,0x65,0x6e])]===_0x3a2b8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37d462[_0x3a2b8b([0x63,0x61,0x74,0x63,0x68])]===_0x3a2b8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f8cc(_0x158291){_0x1fbb77(_0x158291)[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x2e492f=>{if(!_0x2e492f||_0x2e492f[_0x3a2b8b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a2b8b([0x6f,0x6b]))return _0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x465f8e(_0x5d605c(_0x23a8c5+_0x2629a4))!=_0x2e492f[_0x3a2b8b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x5a463f=>(_0x41c5d1(),_0x5a463f),()=>{const _0x3b277c=_0x432174();return null==_0x3b277c?(_0x41c5d1(),_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64])):_0x3a2b8b(_0x197bde-_0x3b277c>(0x7753083a^_0x291df0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x51fb46)[_0x3a2b8b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51fb46(_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x741e8a=0x536962ba^_0x291df0;function _0x41c5d1(){const _0x92f0e2=_0x3a2b8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x465f8e(_0x5d605c(_0x2d9e7d)),_0xa331e4=_0x33ceb4(_0x465f8e(window[_0x3a2b8b([0x4d,0x61,0x74,0x68])][_0x3a2b8b([0x63,0x65,0x69,0x6c])](_0x197bde/_0x741e8a)));window[_0x3a2b8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a2b8b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x92f0e2,_0xa331e4);}function _0x432174(){const _0x24a194=_0x3a2b8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x465f8e(_0x5d605c(_0x2d9e7d)),_0x4245ca=window[_0x3a2b8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a2b8b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24a194);return _0x4245ca?window[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33ceb4(_0x4245ca),0x10)*_0x741e8a:null;}function _0x1fbb77(_0x3723db){return new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x512833,_0x1d2a7d)=>{_0x3723db[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x512833,_0x1d2a7d),window[_0x3a2b8b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d2a7d,0x535e58fa^_0x291df0);});}}_0x1c7894[_0x3a2b8b([0x6f,0x6e])](_0x3a2b8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2392c0,_0x19c373)=>{if(_0x19c373[0x0]!=_0x2d9e7d)return _0x51fb46(_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x19c373[0x1]={..._0x19c373[0x1],[_0x3a2b8b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23a8c5};},{[_0x3a2b8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a2b8b([0x68,0x69,0x67,0x68])}),_0x1c7894[_0x3a2b8b([0x6f,0x6e])](_0x3a2b8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fc5a1=>{_0xc8f71f(_0x1fc5a1[_0x3a2b8b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x286dd7=!0x0,_0x2f8cc(_0x1fc5a1[_0x3a2b8b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a2b8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a2b8b([0x6c,0x6f,0x77])}),_0x37cfc8[_0x3a2b8b([0x74,0x68,0x65,0x6e])](()=>{_0x286dd7||_0x51fb46(_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c5426(){return _0x1c7894[_0x3a2b8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a2b8b([0x76,0x69,0x65,0x77])][_0x3a2b8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a2b8b([0x61,0x75,0x74,0x6f]);}function _0x5ed627(){_0x1c7894[_0x3a2b8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a2b8b([0x76,0x69,0x65,0x77])][_0x3a2b8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a2b8b([0x61,0x75,0x74,0x6f]);}}function _0x1571d9(_0x57865d){const _0x37c82e=[new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x87a9f7=>setTimeout(_0x87a9f7,0x5356b2f6^_0x291df0)),_0x37cfc8[_0x3a2b8b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d197a=>{let _0x55b687=0x0;_0x1c7894[_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a2b8b([0x6f,0x6e])](_0x3a2b8b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56f278,_0x10ff33)=>{_0x10ff33[0x0][_0x3a2b8b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55b687++,_0x55b687==(0x535f8dc2^_0x291df0)&&(_0x1d197a(),_0x56f278[_0x3a2b8b([0x6f,0x66,0x66])]());});}))];return window[_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a2b8b([0x72,0x61,0x63,0x65])](_0x37c82e)[_0x3a2b8b([0x74,0x68,0x65,0x6e])](()=>_0x57865d);}async function _0x3d44ee(){await _0x37cfc8,_0x1c7894[_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a2b8b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4b1b,_0x1c7894[_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a2b8b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4b1b,_0x1c7894[_0x3a2b8b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fc870(_0x3c49c5){const _0x180383=_0x52942f();_0x1c7894[_0x180383]=_0x3a2b8b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c49c5,_0x3c49c5!=_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64])&&_0x3d44ee();}function _0x52942f(){const _0x4bbe43=window[_0x3a2b8b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a2b8b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a2b8b([0x6e,0x6f,0x77])]())[_0x3a2b8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a2b8b([0x2e]),'');let _0xa175a8=_0x3a2b8b([0x68]);for(let _0x53773f=0x0;_0x53773f<_0x4bbe43[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53773f+=0x2){let _0x2d1cc7=window[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bbe43[_0x3a2b8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53773f,_0x53773f+0x2));_0x2d1cc7>=_0x939957[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d1cc7-=_0x939957[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa175a8+=_0x939957[_0x2d1cc7];}return _0xa175a8;}function _0x487188(){const _0x1d805f=_0x47706a[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e]));if(0x3!=_0x1d805f[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a5835(_0x1d805f[0x1]);function _0x1a5835(_0x4db995){const _0x5552c8=_0x495124(_0x4db995);return _0x5552c8&&_0x561759()?_0x5552c8:null;function _0x561759(){const _0x2f6482=_0x5552c8[_0x3a2b8b([0x6a,0x74,0x69])],_0xf03a4d=window[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6482[_0x3a2b8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f6482[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38ac7e={..._0x5552c8,[_0x3a2b8b([0x6a,0x74,0x69])]:_0x2f6482[_0x3a2b8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f6482[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38ac7e[_0x3a2b8b([0x76,0x63])],_0x5d605c(_0x38ac7e)==_0xf03a4d;}}}async function _0x57d689(){let _0x1b1fca=!0x0;try{const _0x3fce17=_0x47706a[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e])),[_0x59ea34,_0x7b8fe3,_0x4e9801]=_0x3fce17;return _0x46a659(_0x59ea34),await _0x44cfb4(_0x59ea34,_0x7b8fe3,_0x4e9801),_0x1b1fca;}catch{return!0x1;}function _0x46a659(_0x2650b7){const _0x591e1f=_0x495124(_0x2650b7);_0x591e1f&&_0x591e1f[_0x3a2b8b([0x61,0x6c,0x67])]==_0x3a2b8b([0x45,0x53,0x32,0x35,0x36])||(_0x1b1fca=!0x1);}async function _0x44cfb4(_0x2c553c,_0x3d2357,_0x1da2a3){const _0x1962a6=window[_0x3a2b8b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a2b8b([0x66,0x72,0x6f,0x6d])](_0x559240(_0x1da2a3),_0x4be471=>_0x4be471[_0x3a2b8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5456c7=new window[(_0x3a2b8b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a2b8b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c553c+_0x3a2b8b([0x2e])+_0x3d2357),_0x179c20=window[_0x3a2b8b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a2b8b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x179c20)return;const _0x39640a=await _0x179c20[_0x3a2b8b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a2b8b([0x6a,0x77,0x6b]),_0x408bbe,{[_0x3a2b8b([0x6e,0x61,0x6d,0x65])]:_0x3a2b8b([0x45,0x43,0x44,0x53,0x41]),[_0x3a2b8b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a2b8b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a2b8b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x179c20[_0x3a2b8b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a2b8b([0x6e,0x61,0x6d,0x65])]:_0x3a2b8b([0x45,0x43,0x44,0x53,0x41]),[_0x3a2b8b([0x68,0x61,0x73,0x68])]:{[_0x3a2b8b([0x6e,0x61,0x6d,0x65])]:_0x3a2b8b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39640a,_0x1962a6,_0x5456c7)||(_0x1b1fca=!0x1);}}function _0x495124(_0x2f9434){return _0x2f9434[_0x3a2b8b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a2b8b([0x65,0x79]))?JSON[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65])](_0x559240(_0x2f9434)):null;}function _0x559240(_0x41b665){return window[_0x3a2b8b([0x61,0x74,0x6f,0x62])](_0x41b665[_0x3a2b8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a2b8b([0x2b]))[_0x3a2b8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a2b8b([0x2f])));}function _0x5d605c(_0x5a6618){let _0x5e44fd=0x1505;function _0x3d14f7(_0xb6dce9){for(let _0x534250=0x0;_0x534250<_0xb6dce9[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x534250++){const _0x22fab8=_0xb6dce9[_0x3a2b8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x534250);_0x5e44fd=(_0x5e44fd<<0x5)+_0x5e44fd+_0x22fab8,_0x5e44fd&=_0x5e44fd;}}function _0x44f2e7(_0x2485cd){Array[_0x3a2b8b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2485cd)?_0x2485cd[_0x3a2b8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44f2e7):_0x2485cd&&typeof _0x2485cd==_0x3a2b8b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a2b8b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2485cd)[_0x3a2b8b([0x73,0x6f,0x72,0x74])]()[_0x3a2b8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x561f11,_0xec12dc])=>{_0x3d14f7(_0x561f11),_0x44f2e7(_0xec12dc);}):_0x3d14f7(window[_0x3a2b8b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2485cd));}return _0x44f2e7(_0x5a6618),_0x5e44fd>>>0x0;}function _0x465f8e(_0x502380){return _0x502380[_0x3a2b8b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a2b8b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a2b8b([0x30]));}function _0x33ceb4(_0x36465e){return _0x36465e[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a2b8b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a2b8b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b4b1b(){}function _0x3a2b8b(_0x20cbef){const _0xa1117f=_0x48e9;return _0x20cbef[_0xa1117f(0x1ed)](_0x436446=>String[_0xa1117f(0x1e6)](_0x436446))[_0xa1117f(0x207)]('');}_0x2fc870(await _0x39ec71());}(this);}[_0x320815(0x1e1)](){const _0x43c61b=_0x320815,_0x18a32d=this[_0x43c61b(0x224)][_0x43c61b(0x227)][_0x43c61b(0x20e)];_0x18a32d[_0x43c61b(0x20f)](_0x43c61b(0x210))&&_0x18a32d[_0x43c61b(0x209)](_0x43c61b(0x210),{'allowAttributes':[_0x43c61b(0x1e9)]}),_0x18a32d[_0x43c61b(0x20f)](_0x43c61b(0x1dc))&&_0x18a32d[_0x43c61b(0x209)](_0x43c61b(0x1dc),{'allowAttributes':[_0x43c61b(0x1e9)]});}[_0x320815(0x1d9)](){const _0x340f1b=_0x320815,_0x33b3b9=this[_0x340f1b(0x224)];_0x33b3b9[_0x340f1b(0x1f0)][_0x340f1b(0x1e3)](_0x340f1b(0x206))[_0x340f1b(0x200)]({'model':_0x340f1b(0x1e9),'view':_0x340f1b(0x212)}),_0x33b3b9[_0x340f1b(0x1f0)][_0x340f1b(0x1e3)](_0x340f1b(0x213))[_0x340f1b(0x216)]({'model':{'key':_0x340f1b(0x1e9),'value':_0x255ee0=>_0x255ee0[_0x340f1b(0x20b)](_0x340f1b(0x212))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xcec35e=_0x33b3b9[_0x340f1b(0x217)][_0x340f1b(0x1fa)](_0x340f1b(0x1e5));_0xcec35e&&this[_0x340f1b(0x229)](_0xcec35e,_0x340f1b(0x223),(_0x4722b3,[_0x501c16,_0x1201f3])=>{const _0x3e49c9=_0x340f1b;_0x501c16[_0x3e49c9(0x1f4)](_0x3e49c9(0x1e9),_0x1201f3);});}[_0x320815(0x1ec)](){const _0x506ba1=_0x320815,_0x455905=this[_0x506ba1(0x224)][_0x506ba1(0x21e)][_0x506ba1(0x1fa)](_0x506ba1(0x208))||{},_0x7a2cf3=this[_0x506ba1(0x224)][_0x506ba1(0x21e)][_0x506ba1(0x1fa)](_0x506ba1(0x204))||'';this[_0x506ba1(0x228)]=_0x2511e8(_0x47e095[_0x506ba1(0x1fe)],_0x506ba1(0x1f3),{..._0x455905,'pubkey':_0x7a2cf3,'ctx-name':_0x506ba1(0x1f5)+this[_0x506ba1(0x22d)],'sourceList':'','imgOnly':_0x506ba1(0x1e0),'removeCopyright':_0x506ba1(0x1e0),'localeName':this[_0x506ba1(0x224)][_0x506ba1(0x1db)][_0x506ba1(0x220)],'externalSourcesEmbedCss':_0x506ba1(0x221)}),this[_0x506ba1(0x228)][_0x506ba1(0x21a)]=_0x40bbd1=>{const _0x24a204=_0x506ba1;if(_0x24a204(0x1fd)==_0x40bbd1)return _0x24a204(0x20a);},_0x47e095[_0x506ba1(0x1fe)][_0x506ba1(0x201)][_0x506ba1(0x1e2)](this[_0x506ba1(0x228)]);}[_0x320815(0x21f)](){const _0x5f4494=_0x320815;this[_0x5f4494(0x215)]=_0x2511e8(_0x47e095[_0x5f4494(0x1fe)],_0x5f4494(0x1ff),{'ctx-name':_0x5f4494(0x1f5)+this[_0x5f4494(0x22d)]}),_0x47e095[_0x5f4494(0x1fe)][_0x5f4494(0x201)][_0x5f4494(0x1e2)](this[_0x5f4494(0x215)]);}[_0x320815(0x1eb)](){const _0x389819=_0x320815,_0x28d3b6=this[_0x389819(0x224)][_0x389819(0x217)][_0x389819(0x1fa)](_0x389819(0x1ee));_0x28d3b6&&this[_0x389819(0x229)](_0x28d3b6,_0x389819(0x21c),()=>{const _0x1f7bdd=_0x389819,_0x5d686e=this[_0x1f7bdd(0x224)][_0x1f7bdd(0x227)][_0x1f7bdd(0x1fe)][_0x1f7bdd(0x1fb)][_0x1f7bdd(0x22e)]();_0x5d686e&&_0x5d686e[_0x1f7bdd(0x20b)](_0x1f7bdd(0x1e9))&&this[_0x1f7bdd(0x224)][_0x1f7bdd(0x1f1)][_0x1f7bdd(0x1da)][_0x1f7bdd(0x1f8)](_0x1f7bdd(0x1f9),()=>{const _0x1b74d9=_0x1f7bdd;_0x2953c9(this[_0x1b74d9(0x224)],_0x5d686e);});});const _0x2cc497=this[_0x389819(0x224)][_0x389819(0x217)][_0x389819(0x1fa)](_0x389819(0x211));_0x2cc497&&this[_0x389819(0x229)](_0x2cc497,_0x389819(0x21c),()=>{const _0x3f4553=_0x389819,_0x5d0949=this[_0x3f4553(0x224)][_0x3f4553(0x227)][_0x3f4553(0x1fe)][_0x3f4553(0x1fb)][_0x3f4553(0x22e)]();_0x5d0949&&_0x5d0949[_0x3f4553(0x20b)](_0x3f4553(0x1e9))&&this[_0x3f4553(0x224)][_0x3f4553(0x1f1)][_0x3f4553(0x1da)][_0x3f4553(0x1f8)](_0x3f4553(0x1f9),()=>{const _0x531dfa=_0x3f4553;_0x2953c9(this[_0x531dfa(0x224)],_0x5d0949);});});}}
|
|
23
|
+
const _0x5d8cdd=_0x45bf;(function(_0x4585a5,_0x6e6f86){const _0x1a26cc=_0x45bf,_0x3e8ec1=_0x4585a5();while(!![]){try{const _0x2bec8d=parseInt(_0x1a26cc(0x10d))/0x1+-parseInt(_0x1a26cc(0x14e))/0x2*(-parseInt(_0x1a26cc(0x142))/0x3)+parseInt(_0x1a26cc(0x13d))/0x4*(-parseInt(_0x1a26cc(0x114))/0x5)+parseInt(_0x1a26cc(0x113))/0x6+-parseInt(_0x1a26cc(0x104))/0x7+-parseInt(_0x1a26cc(0x14a))/0x8*(parseInt(_0x1a26cc(0x131))/0x9)+parseInt(_0x1a26cc(0x129))/0xa;if(_0x2bec8d===_0x6e6f86)break;else _0x3e8ec1['push'](_0x3e8ec1['shift']());}catch(_0x3d2250){_0x3e8ec1['push'](_0x3e8ec1['shift']());}}}(_0x3529,0x69b45));import{Plugin as _0x202de9}from'ckeditor5/src/core.js';import{Dialog as _0x12a3d4}from'ckeditor5/src/ui.js';import{createElement as _0x3483b2,global as _0x2aade6,uid as _0x3a2f93}from'ckeditor5/src/utils.js';function _0x3529(){const _0x4fdb8d=['11215690RcmrPf','upcast','for','true','href','uc-config','ucContextId','getAttribute','5499vwZSqJ','pluginName','input[uploadcare-file-input]','once','execute','attributeToAttribute','requires','schema','extend','listenTo','ctxElement','contentLanguage','32iIvGdh','uploadcare.pubkey','destroy','uploadcare','config','885894hTSKoG','imageBlock','isRegistered','view','conversion','init','appendChild','editing','8968lwSjgi','model','PictureEditing','_initCtx','4QJsIuY','downcast','configElement','closeMax','get','removeAttribute','querySelector','insertImage','_ctxElement','isOfficialPlugin','add','750162svLSYh','#uc-icon-arrow-down','\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','_initConfig','uc-upload-ctx-provider','UploadcareEditing','document','replaceImageSource','fromCharCode','233722urYLrO','imageInline','locale','editor','map','cleanupImage','691962QuBvaj','522595RtRHqG','data-uc-image-id','_initConversion','body','uploadcareImageReplace','iconHrefResolver','render','_initSchema','_configElement','elementToAttribute','uploadcareImageId','commands','remove','getSelectedElement','_initImageProcessingIndicator','uploadcare.uploader','isPremiumPlugin','uploader-','afterInit','join','selection'];_0x3529=function(){return _0x4fdb8d;};return _0x3529();}import{UploadcareCommand as _0x56fe5f}from'./uploadcarecommand.js';function _0x45bf(_0xadd012,_0x3f5ed8){const _0x35294c=_0x3529();return _0x45bf=function(_0x45bfe6,_0x1a3103){_0x45bfe6=_0x45bfe6-0x104;let _0x448138=_0x35294c[_0x45bfe6];return _0x448138;},_0x45bf(_0xadd012,_0x3f5ed8);}import{UploadcareUploadAdapter as _0xa5eec1}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x21a646}from'./utils/editingutils.js';export class UploadcareEditing extends _0x202de9{[_0x5d8cdd(0x11c)]=null;[_0x5d8cdd(0x156)]=null;static get[_0x5d8cdd(0x132)](){const _0x45afd4=_0x5d8cdd;return _0x45afd4(0x109);}static get[_0x5d8cdd(0x137)](){const _0x18eb79=_0x5d8cdd;return[_0x18eb79(0x14c),_0xa5eec1,_0x12a3d4];}static get[_0x5d8cdd(0x157)](){return!0x0;}static get[_0x5d8cdd(0x124)](){return!0x0;}[_0x5d8cdd(0x12f)];get[_0x5d8cdd(0x150)](){const _0x1bb9c7=_0x5d8cdd;return this[_0x1bb9c7(0x11c)];}get[_0x5d8cdd(0x13b)](){const _0x3f993f=_0x5d8cdd;return this[_0x3f993f(0x156)];}constructor(_0x176e0a){const _0x519c68=_0x5d8cdd;super(_0x176e0a),this[_0x519c68(0x12f)]=_0x3a2f93();}[_0x5d8cdd(0x147)](){const _0x3c0319=_0x5d8cdd,_0x44be63=this[_0x3c0319(0x110)];_0x44be63[_0x3c0319(0x11f)][_0x3c0319(0x158)](_0x3c0319(0x140),new _0x56fe5f(_0x44be63));}[_0x5d8cdd(0x126)](){const _0x43b7a4=_0x5d8cdd;this[_0x43b7a4(0x11b)](),this[_0x43b7a4(0x116)](),this[_0x43b7a4(0x107)](),this[_0x43b7a4(0x14d)](),this[_0x43b7a4(0x122)](),this[_0x43b7a4(0x13a)](this[_0x43b7a4(0x110)],_0x43b7a4(0x13f),()=>{const _0x14abf0=_0x43b7a4;this[_0x14abf0(0x11c)]&&(this[_0x14abf0(0x11c)][_0x14abf0(0x120)](),this[_0x14abf0(0x11c)]=null),this[_0x14abf0(0x156)]&&(this[_0x14abf0(0x156)][_0x14abf0(0x120)](),this[_0x14abf0(0x156)]=null);const _0x1c6601=_0x2aade6[_0x14abf0(0x10a)][_0x14abf0(0x154)](_0x14abf0(0x133));_0x1c6601&&_0x1c6601[_0x14abf0(0x120)]();}),async function(_0x288b3c){const _0x546fa1=_0x225474([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]),_0x9414fc=0x535f8c3a,_0x39238d=0x5358f7a2^_0x9414fc,_0x47f28d=window[_0x225474([0x44,0x61,0x74,0x65])][_0x225474([0x6e,0x6f,0x77])](),_0x3f06fa=_0x288b3c[_0x225474([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43e555=new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a3c4=>{_0x3f06fa[_0x225474([0x6f,0x6e,0x63,0x65])](_0x225474([0x72,0x65,0x61,0x64,0x79]),_0x15a3c4);}),_0x29da5f={[_0x225474([0x6b,0x74,0x79])]:_0x225474([0x45,0x43]),[_0x225474([0x75,0x73,0x65])]:_0x225474([0x73,0x69,0x67]),[_0x225474([0x63,0x72,0x76])]:_0x225474([0x50,0x2d,0x32,0x35,0x36]),[_0x225474([0x78])]:_0x225474([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]),[_0x225474([0x79])]:_0x225474([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]),[_0x225474([0x61,0x6c,0x67])]:_0x225474([0x45,0x53,0x32,0x35,0x36])},_0x45c545=_0x3f06fa[_0x225474([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x225474([0x67,0x65,0x74])](_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fc574(){let _0x3859bd,_0x5e443a=null,_0x3481f1=null;try{if(_0x45c545==_0x225474([0x47,0x50,0x4c]))return _0x225474([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3859bd=_0x2dfb9a(),!_0x3859bd)return _0x225474([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3859bd[_0x225474([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3481f1=_0xd23426(_0x3859bd[_0x225474([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3859bd[_0x225474([0x6a,0x74,0x69])])),await _0x3b2a6c()?_0x375747()?_0x1c3be1()?_0x225474([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1fb5ee()?(_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225474([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e443a=_0x59ddab(_0x225474([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225474([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e443a=_0x59ddab(_0x225474([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31a45d()):_0x225474([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x225474([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x225474([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x225474([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c3be1(){const _0x1deb5e=[_0x225474([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x225474([0x74,0x72,0x69,0x61,0x6c])][_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47f28d/0x3e8:0xe10*_0x39238d;return _0x3859bd[_0x225474([0x65,0x78,0x70])]<_0x1deb5e;}function _0x375747(){const _0x26b1a5=_0x3859bd[_0x225474([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26b1a5&&(!!_0x26b1a5[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225474([0x2a]))||!!_0x26b1a5[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225474([0x55,0x50,0x4c,0x43])));}function _0x1fb5ee(){const _0x4d9605=_0x45bf,_0x11b000=_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11b000||0x0==_0x11b000[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14b0c0}=new URL(window[_0x225474([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d9605(0x12d)]);if(_0x11b000[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b0c0))return!0x0;const _0xa50a29=_0x14b0c0[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e]));return _0x11b000[_0x225474([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f351a=>_0x3f351a[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225474([0x2a])))[_0x225474([0x6d,0x61,0x70])](_0x22ebcb=>_0x22ebcb[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e])))[_0x225474([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x427812=>_0x427812[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa50a29[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225474([0x6d,0x61,0x70])](_0x4f7512=>Array(_0xa50a29[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f7512[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225474([0x66,0x69,0x6c,0x6c])](_0x4f7512[0x0]===_0x225474([0x2a])?_0x225474([0x2a]):'')[_0x225474([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f7512))[_0x225474([0x73,0x6f,0x6d,0x65])](_0x1f8e1f=>_0xa50a29[_0x225474([0x65,0x76,0x65,0x72,0x79])]((_0x20a73e,_0x675428)=>_0x1f8e1f[_0x675428]===_0x20a73e||_0x1f8e1f[_0x675428]===_0x225474([0x2a])));}function _0x31a45d(){return _0x5e443a&&_0x3481f1?new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5de59f,_0x53fd33)=>{_0x5e443a[_0x225474([0x74,0x68,0x65,0x6e])](_0x5de59f,_0x53fd33),_0x3481f1[_0x225474([0x74,0x68,0x65,0x6e])](_0x1e5516=>{_0x1e5516!=_0x225474([0x56,0x61,0x6c,0x69,0x64])&&_0x5de59f(_0x1e5516);},_0x53fd33);}):_0x5e443a||_0x3481f1||_0x225474([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd23426(_0x390584,_0x11c685){return new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d92af=>{if(_0x36f09f())return _0x1d92af(_0x225474([0x56,0x61,0x6c,0x69,0x64]));_0x428bef(),_0x3f06fa[_0x225474([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x225474([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fa67d=!0x1;const _0x5d47ae=_0x3a2f93();function _0x3d056e(_0x135fe2){return!!_0x135fe2&&(typeof _0x135fe2===_0x225474([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x135fe2===_0x225474([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x135fe2[_0x225474([0x74,0x68,0x65,0x6e])]===_0x225474([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x135fe2[_0x225474([0x63,0x61,0x74,0x63,0x68])]===_0x225474([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x561ed5(_0x2b9408){_0x30577d(_0x2b9408)[_0x225474([0x74,0x68,0x65,0x6e])](_0x167679=>{if(!_0x167679||_0x167679[_0x225474([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x225474([0x6f,0x6b]))return _0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x61ee4c(_0x15e39d(_0x5d47ae+_0x11c685))!=_0x167679[_0x225474([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x225474([0x56,0x61,0x6c,0x69,0x64]);})[_0x225474([0x74,0x68,0x65,0x6e])](_0x25c642=>(_0x2c36d7(),_0x25c642),()=>{const _0x51913b=_0xd565e1();return null==_0x51913b?(_0x2c36d7(),_0x225474([0x56,0x61,0x6c,0x69,0x64])):_0x225474(_0x47f28d-_0x51913b>(0x7753083a^_0x9414fc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x225474([0x74,0x68,0x65,0x6e])](_0x1d92af)[_0x225474([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d92af(_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57ed85=0x536962ba^_0x9414fc;function _0x2c36d7(){const _0x4e6de6=_0x225474([0x6c,0x6c,0x63,0x74,0x2d])+_0x61ee4c(_0x15e39d(_0x390584)),_0x366d44=_0xd3efca(_0x61ee4c(window[_0x225474([0x4d,0x61,0x74,0x68])][_0x225474([0x63,0x65,0x69,0x6c])](_0x47f28d/_0x57ed85)));window[_0x225474([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225474([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e6de6,_0x366d44);}function _0xd565e1(){const _0x2648ee=_0x225474([0x6c,0x6c,0x63,0x74,0x2d])+_0x61ee4c(_0x15e39d(_0x390584)),_0x39c0a5=window[_0x225474([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225474([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2648ee);return _0x39c0a5?window[_0x225474([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3efca(_0x39c0a5),0x10)*_0x57ed85:null;}function _0x30577d(_0x1bd712){return new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5767f6,_0x51d6d2)=>{_0x1bd712[_0x225474([0x74,0x68,0x65,0x6e])](_0x5767f6,_0x51d6d2),window[_0x225474([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51d6d2,0x535e58fa^_0x9414fc);});}}_0x3f06fa[_0x225474([0x6f,0x6e])](_0x225474([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x424d29,_0x12b100)=>{if(_0x12b100[0x0]!=_0x390584)return _0x1d92af(_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12b100[0x1]={..._0x12b100[0x1],[_0x225474([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d47ae};},{[_0x225474([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225474([0x68,0x69,0x67,0x68])}),_0x3f06fa[_0x225474([0x6f,0x6e])](_0x225474([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3218a7=>{_0x3d056e(_0x3218a7[_0x225474([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fa67d=!0x0,_0x561ed5(_0x3218a7[_0x225474([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x225474([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225474([0x6c,0x6f,0x77])}),_0x43e555[_0x225474([0x74,0x68,0x65,0x6e])](()=>{_0x2fa67d||_0x1d92af(_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36f09f(){return _0x3f06fa[_0x225474([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225474([0x76,0x69,0x65,0x77])][_0x225474([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x225474([0x61,0x75,0x74,0x6f]);}function _0x428bef(){_0x3f06fa[_0x225474([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225474([0x76,0x69,0x65,0x77])][_0x225474([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x225474([0x61,0x75,0x74,0x6f]);}}function _0x59ddab(_0x4947fd){const _0x10fb6e=[new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a098=>setTimeout(_0x32a098,0x5356b2f6^_0x9414fc)),_0x43e555[_0x225474([0x74,0x68,0x65,0x6e])](()=>new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c8fb0=>{let _0x5d3d0e=0x0;_0x3f06fa[_0x225474([0x6d,0x6f,0x64,0x65,0x6c])][_0x225474([0x6f,0x6e])](_0x225474([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14ad7a,_0x2a8858)=>{_0x2a8858[0x0][_0x225474([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d3d0e++,_0x5d3d0e==(0x535f8dc2^_0x9414fc)&&(_0x5c8fb0(),_0x14ad7a[_0x225474([0x6f,0x66,0x66])]());});}))];return window[_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x225474([0x72,0x61,0x63,0x65])](_0x10fb6e)[_0x225474([0x74,0x68,0x65,0x6e])](()=>_0x4947fd);}async function _0x44e885(){await _0x43e555,_0x3f06fa[_0x225474([0x6d,0x6f,0x64,0x65,0x6c])][_0x225474([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc4fe,_0x3f06fa[_0x225474([0x6d,0x6f,0x64,0x65,0x6c])][_0x225474([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc4fe,_0x3f06fa[_0x225474([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x225474([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10ec5e(_0x187229){const _0x506bc3=_0x45e072();_0x3f06fa[_0x506bc3]=_0x225474([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x187229,_0x187229!=_0x225474([0x56,0x61,0x6c,0x69,0x64])&&_0x44e885();}function _0x45e072(){const _0x22bd4c=window[_0x225474([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x225474([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x225474([0x6e,0x6f,0x77])]())[_0x225474([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x225474([0x2e]),'');let _0x310067=_0x225474([0x68]);for(let _0x20d6d1=0x0;_0x20d6d1<_0x22bd4c[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20d6d1+=0x2){let _0xe18712=window[_0x225474([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22bd4c[_0x225474([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20d6d1,_0x20d6d1+0x2));_0xe18712>=_0x546fa1[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe18712-=_0x546fa1[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x310067+=_0x546fa1[_0xe18712];}return _0x310067;}function _0x2dfb9a(){const _0x453820=_0x45c545[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e]));if(0x3!=_0x453820[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f945f(_0x453820[0x1]);function _0x4f945f(_0x25bf0c){const _0xc6f13e=_0x5509d0(_0x25bf0c);return _0xc6f13e&&_0x55bdf8()?_0xc6f13e:null;function _0x55bdf8(){const _0x158da9=_0xc6f13e[_0x225474([0x6a,0x74,0x69])],_0x588fb2=window[_0x225474([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x158da9[_0x225474([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158da9[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a3b75={..._0xc6f13e,[_0x225474([0x6a,0x74,0x69])]:_0x158da9[_0x225474([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x158da9[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a3b75[_0x225474([0x76,0x63])],_0x15e39d(_0x3a3b75)==_0x588fb2;}}}async function _0x3b2a6c(){let _0x2e13a6=!0x0;try{const _0x4e9df3=_0x45c545[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e])),[_0x3001d1,_0x354a07,_0x283b72]=_0x4e9df3;return _0x4c3b23(_0x3001d1),await _0x10b953(_0x3001d1,_0x354a07,_0x283b72),_0x2e13a6;}catch{return!0x1;}function _0x4c3b23(_0x110ff2){const _0x5c98f=_0x5509d0(_0x110ff2);_0x5c98f&&_0x5c98f[_0x225474([0x61,0x6c,0x67])]==_0x225474([0x45,0x53,0x32,0x35,0x36])||(_0x2e13a6=!0x1);}async function _0x10b953(_0x4ee860,_0x5d5a5a,_0x298993){const _0x3c1f88=window[_0x225474([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x225474([0x66,0x72,0x6f,0x6d])](_0x24791b(_0x298993),_0x537d77=>_0x537d77[_0x225474([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x541f0c=new window[(_0x225474([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x225474([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ee860+_0x225474([0x2e])+_0x5d5a5a),_0x592ad0=window[_0x225474([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x225474([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x592ad0)return;const _0x38698f=await _0x592ad0[_0x225474([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x225474([0x6a,0x77,0x6b]),_0x29da5f,{[_0x225474([0x6e,0x61,0x6d,0x65])]:_0x225474([0x45,0x43,0x44,0x53,0x41]),[_0x225474([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x225474([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x225474([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x592ad0[_0x225474([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x225474([0x6e,0x61,0x6d,0x65])]:_0x225474([0x45,0x43,0x44,0x53,0x41]),[_0x225474([0x68,0x61,0x73,0x68])]:{[_0x225474([0x6e,0x61,0x6d,0x65])]:_0x225474([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38698f,_0x3c1f88,_0x541f0c)||(_0x2e13a6=!0x1);}}function _0x5509d0(_0x4de641){return _0x4de641[_0x225474([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x225474([0x65,0x79]))?JSON[_0x225474([0x70,0x61,0x72,0x73,0x65])](_0x24791b(_0x4de641)):null;}function _0x24791b(_0x1a0ae5){return window[_0x225474([0x61,0x74,0x6f,0x62])](_0x1a0ae5[_0x225474([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x225474([0x2b]))[_0x225474([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x225474([0x2f])));}function _0x15e39d(_0x31834a){let _0x2df6cc=0x1505;function _0x4481fa(_0x359b5c){for(let _0x1d8564=0x0;_0x1d8564<_0x359b5c[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d8564++){const _0x5a6ec9=_0x359b5c[_0x225474([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d8564);_0x2df6cc=(_0x2df6cc<<0x5)+_0x2df6cc+_0x5a6ec9,_0x2df6cc&=_0x2df6cc;}}function _0x544878(_0x34ad65){Array[_0x225474([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34ad65)?_0x34ad65[_0x225474([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x544878):_0x34ad65&&typeof _0x34ad65==_0x225474([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x225474([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34ad65)[_0x225474([0x73,0x6f,0x72,0x74])]()[_0x225474([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d5d49,_0x153944])=>{_0x4481fa(_0x5d5d49),_0x544878(_0x153944);}):_0x4481fa(window[_0x225474([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34ad65));}return _0x544878(_0x31834a),_0x2df6cc>>>0x0;}function _0x61ee4c(_0x1f8d5a){return _0x1f8d5a[_0x225474([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x225474([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x225474([0x30]));}function _0xd3efca(_0x4fbb03){return _0x4fbb03[_0x225474([0x73,0x70,0x6c,0x69,0x74])]('')[_0x225474([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x225474([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cc4fe(){}function _0x225474(_0x1713a1){const _0x4a974c=_0x45bf;return _0x1713a1[_0x4a974c(0x111)](_0x220858=>String[_0x4a974c(0x10c)](_0x220858))[_0x4a974c(0x127)]('');}_0x10ec5e(await _0x1fc574());}(this);}[_0x5d8cdd(0x11b)](){const _0xb120f2=_0x5d8cdd,_0x584cbb=this[_0xb120f2(0x110)][_0xb120f2(0x14b)][_0xb120f2(0x138)];_0x584cbb[_0xb120f2(0x144)](_0xb120f2(0x143))&&_0x584cbb[_0xb120f2(0x139)](_0xb120f2(0x143),{'allowAttributes':[_0xb120f2(0x11e)]}),_0x584cbb[_0xb120f2(0x144)](_0xb120f2(0x10e))&&_0x584cbb[_0xb120f2(0x139)](_0xb120f2(0x10e),{'allowAttributes':[_0xb120f2(0x11e)]});}[_0x5d8cdd(0x116)](){const _0x35d199=_0x5d8cdd,_0x4a6183=this[_0x35d199(0x110)];_0x4a6183[_0x35d199(0x146)][_0x35d199(0x12b)](_0x35d199(0x14f))[_0x35d199(0x136)]({'model':_0x35d199(0x11e),'view':_0x35d199(0x115)}),_0x4a6183[_0x35d199(0x146)][_0x35d199(0x12b)](_0x35d199(0x12a))[_0x35d199(0x11d)]({'model':{'key':_0x35d199(0x11e),'value':_0x2c0aa1=>_0x2c0aa1[_0x35d199(0x130)](_0x35d199(0x115))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x26c0bf=_0x4a6183[_0x35d199(0x11f)][_0x35d199(0x152)](_0x35d199(0x10b));_0x26c0bf&&this[_0x35d199(0x13a)](_0x26c0bf,_0x35d199(0x112),(_0x2b6901,[_0x3789af,_0x501c06])=>{const _0x4d1250=_0x35d199;_0x3789af[_0x4d1250(0x153)](_0x4d1250(0x11e),_0x501c06);});}[_0x5d8cdd(0x107)](){const _0x24e706=_0x5d8cdd,_0x44835c=this[_0x24e706(0x110)][_0x24e706(0x141)][_0x24e706(0x152)](_0x24e706(0x123))||{},_0x15480d=this[_0x24e706(0x110)][_0x24e706(0x141)][_0x24e706(0x152)](_0x24e706(0x13e))||'';this[_0x24e706(0x11c)]=_0x3483b2(_0x2aade6[_0x24e706(0x10a)],_0x24e706(0x12e),{..._0x44835c,'pubkey':_0x15480d,'ctx-name':_0x24e706(0x125)+this[_0x24e706(0x12f)],'sourceList':'','imgOnly':_0x24e706(0x12c),'removeCopyright':_0x24e706(0x12c),'localeName':this[_0x24e706(0x110)][_0x24e706(0x10f)][_0x24e706(0x13c)],'externalSourcesEmbedCss':_0x24e706(0x106)}),this[_0x24e706(0x11c)][_0x24e706(0x119)]=_0x36cf58=>{const _0x54d551=_0x24e706;if(_0x54d551(0x151)==_0x36cf58)return _0x54d551(0x105);},_0x2aade6[_0x24e706(0x10a)][_0x24e706(0x117)][_0x24e706(0x148)](this[_0x24e706(0x11c)]);}[_0x5d8cdd(0x14d)](){const _0x4623e2=_0x5d8cdd;this[_0x4623e2(0x156)]=_0x3483b2(_0x2aade6[_0x4623e2(0x10a)],_0x4623e2(0x108),{'ctx-name':_0x4623e2(0x125)+this[_0x4623e2(0x12f)]}),_0x2aade6[_0x4623e2(0x10a)][_0x4623e2(0x117)][_0x4623e2(0x148)](this[_0x4623e2(0x156)]);}[_0x5d8cdd(0x122)](){const _0x53b7b6=_0x5d8cdd,_0x310f89=this[_0x53b7b6(0x110)][_0x53b7b6(0x11f)][_0x53b7b6(0x152)](_0x53b7b6(0x155));_0x310f89&&this[_0x53b7b6(0x13a)](_0x310f89,_0x53b7b6(0x135),()=>{const _0x29d645=_0x53b7b6,_0x3c4291=this[_0x29d645(0x110)][_0x29d645(0x14b)][_0x29d645(0x10a)][_0x29d645(0x128)][_0x29d645(0x121)]();_0x3c4291&&_0x3c4291[_0x29d645(0x130)](_0x29d645(0x11e))&&this[_0x29d645(0x110)][_0x29d645(0x149)][_0x29d645(0x145)][_0x29d645(0x134)](_0x29d645(0x11a),()=>{const _0x4a2078=_0x29d645;_0x21a646(this[_0x4a2078(0x110)],_0x3c4291);});});const _0x5e0ad0=this[_0x53b7b6(0x110)][_0x53b7b6(0x11f)][_0x53b7b6(0x152)](_0x53b7b6(0x118));_0x5e0ad0&&this[_0x53b7b6(0x13a)](_0x5e0ad0,_0x53b7b6(0x135),()=>{const _0x4993cf=_0x53b7b6,_0x1ed0b2=this[_0x4993cf(0x110)][_0x4993cf(0x14b)][_0x4993cf(0x10a)][_0x4993cf(0x128)][_0x4993cf(0x121)]();_0x1ed0b2&&_0x1ed0b2[_0x4993cf(0x130)](_0x4993cf(0x11e))&&this[_0x4993cf(0x110)][_0x4993cf(0x149)][_0x4993cf(0x145)][_0x4993cf(0x134)](_0x4993cf(0x11a),()=>{const _0x3944f6=_0x4993cf;_0x21a646(this[_0x3944f6(0x110)],_0x1ed0b2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4667e8,ObservableMixin as _0x4499fc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4937a3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x408636}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x7f642e}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x12768b}from'../../utils/uploadutils.js';import{getImageUrls as _0x4f20cb,getImageDimension as _0x2c139c}from'../../utils/editingutils.js';import{isAncestor as _0x4e10bf}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4499fc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4dd60b,_0x7e362c,_0x1ba5f3){super(),this['_editor']=_0x4dd60b,this['_dialog']=_0x7e362c,this['_imageElement']=_0x1ba5f3,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 _0x160bd4=this['_imageElement'],_0xa385f9=_0x160bd4['getAttribute']('uploadcareImageId'),_0x323bb9=_0x160bd4['getAttribute']('src');if(_0xa385f9)await this['_loadImageInfo'](_0xa385f9,_0x323bb9);else{if(this['_imageCache']['has'](_0x323bb9)){const _0x33647f=this['_imageCache']['get'](_0x323bb9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33647f['url'],this['imageDimension']=_0x33647f['dimension'],this['imageId']=_0x33647f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f7add}=this['_editor'],t=_0x2f7add['t'],_0x593d73=new _0x7f642e(_0x2f7add,this['imageStatus'],this['_attributes']);_0x593d73['bind']('status')['to'](this,'imageStatus'),_0x593d73['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x593d73['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x593d73['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x593d73,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x408636,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x593d73,'position':_0x4937a3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x593d73['focus']();},'onHide':()=>{_0x593d73['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ca6e2=>!_0x4e10bf(_0x4ca6e2,_0x593d73['element'])}});}['_loadImageInfo'](_0x2b0143,_0x5f21e9){return _0x12768b['getInfo'](_0x2b0143,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x33a2e6=>{const {width:_0x37b614,height:_0x15950d}=_0x33a2e6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f21e9,this['imageDimension']={'width':_0x37b614,'height':_0x15950d},this['imageId']=_0x2b0143;})['catch'](_0x48ab5b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x48ab5b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x333c76,_0x17c735){return this['_getImageAsFile'](_0x333c76)['then'](_0x337cb0=>_0x12768b['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':_0x17c735['signal'],'file':_0x337cb0,'onProgress':_0x9da948=>{_0x9da948&&_0x9da948['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x9da948['value']));}}))['then'](_0x484e10=>{const {width:_0x44b887,height:_0x3a38cc}=_0x484e10['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x484e10['cdnUrl'],this['imageDimension']={'width':_0x44b887,'height':_0x3a38cc},this['imageId']=_0x484e10['uuid'],this['imageUploadProgress']=null;const _0x2e26c1=_0x333c76['getAttribute']('src');this['_imageCache']['set'](_0x2e26c1,{'id':_0x484e10['uuid'],'url':_0x484e10['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4a912c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a912c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1ff5f8,_0x399bc3){_0x1ff5f8['on']('apply',(_0x472105,_0x4e125d)=>{this['_replaceImage'](_0x399bc3,_0x4e125d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1ff5f8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1ff5f8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ffc7f,_0x591e1e,_0x351e41){const _0xbd9df4=this['_editor'],{width:_0xf15073,height:_0x19ee98}=_0x2c139c(_0x591e1e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4df50a,imageSources:_0x2bfa05}=_0x4f20cb(_0x591e1e,_0xf15073);_0xbd9df4['model']['change'](_0x3a3e15=>{if('$graveyard'===_0x4ffc7f['root']['rootName']){_0xbd9df4['execute']('insertImage',{'imageType':_0x4ffc7f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ffc7f['getAttributes']()),'uploadcareImageId':_0x351e41,'src':_0x4df50a,'sources':_0x2bfa05,'width':_0xf15073,'height':_0x19ee98}});const _0x4457d5=_0x4ffc7f['getChildren']();_0x4ffc7f=_0xbd9df4['model']['document']['selection']['getSelectedElement']();for(const _0x45ffa3 of _0x4457d5)_0x3a3e15['append'](_0x3a3e15['cloneElement'](_0x45ffa3),_0x4ffc7f);}else _0x3a3e15['setSelection'](_0x4ffc7f,'on'),_0xbd9df4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ffc7f['getAttributes']()),'uploadcareImageId':_0x351e41,'src':_0x4df50a,'sources':_0x2bfa05,'width':_0xf15073,'height':_0x19ee98},_0x4ffc7f);_0x3a3e15['setSelection'](_0x4ffc7f,'on');});}async['_getImageAsFile'](_0x28b7dd){const _0x8b09e2=_0x4667e8['window'],_0x17918b=_0x4667e8['document']['location']['href'],_0x5e4865=new _0x8b09e2['URL'](_0x28b7dd['getAttribute']('src'),_0x17918b);if('data:'===_0x5e4865['protocol']){const _0x3e644c=_0x5e4865['href']['split'](','),_0x11f045=_0x3e644c[0x0]['match'](/:(.*?);/)[0x1],_0x6057b5=_0x11f045['split']('/')[0x1],_0x48d738=_0x8b09e2['atob'](_0x3e644c[_0x3e644c['length']-0x1]);let _0x5eff2a=_0x48d738['length'];const _0x362051=new _0x8b09e2['Uint8Array'](_0x5eff2a);for(;_0x5eff2a--;)_0x362051[_0x5eff2a]=_0x48d738['charCodeAt'](_0x5eff2a);return new _0x8b09e2['File']([_0x362051],'image.'+_0x6057b5,{'type':_0x11f045});}const _0x374c8d=_0x5e4865['href']['split']('/'),_0x202251=_0x374c8d[_0x374c8d['length']-0x1],_0x404a8a=_0x202251['split']('.')[0x1];return _0x8b09e2['fetch'](_0x5e4865['href'])['then'](_0x26db5a=>_0x26db5a['clone']()['blob']())['then'](_0x19fbc5=>new _0x8b09e2['File']([_0x19fbc5],_0x202251,{'type':'image/'+_0x404a8a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2c42(){const _0x1aab52=['279dTSBZE','3254845fFhVEW','uc-cloud-image-editor','ck-uploadcare-theme','2519588JZqDYe','143400oMfCRi','setTemplate','bindTemplate','imageSrc','13056OQJRPD','28262jOyLTS','4263AmDkGV','uc-light','set','105290pKaFsa','138CYfWbE','2574ClTiHJ','image-edit','222quyOSB'];_0x2c42=function(){return _0x1aab52;};return _0x2c42();}(function(_0x103762,_0x28a49e){const _0x2b03c4=_0xfa75,_0x152286=_0x103762();while(!![]){try{const _0x15dd59=parseInt(_0x2b03c4(0xd0))/0x1+-parseInt(_0x2b03c4(0xd8))/0x2*(-parseInt(_0x2b03c4(0xd6))/0x3)+-parseInt(_0x2b03c4(0xdd))/0x4+-parseInt(_0x2b03c4(0xde))/0x5*(-parseInt(_0x2b03c4(0xd5))/0x6)+parseInt(_0x2b03c4(0xd1))/0x7*(parseInt(_0x2b03c4(0xcf))/0x8)+parseInt(_0x2b03c4(0xd9))/0x9*(-parseInt(_0x2b03c4(0xd4))/0xa)+-parseInt(_0x2b03c4(0xda))/0xb;if(_0x15dd59===_0x28a49e)break;else _0x152286['push'](_0x152286['shift']());}catch(_0x5aabdf){_0x152286['push'](_0x152286['shift']());}}}(_0x2c42,0x80225));import{View as _0x93f1db}from'ckeditor5/src/ui.js';function _0xfa75(_0x160c4f,_0x42908b){const _0x2c42ec=_0x2c42();return _0xfa75=function(_0xfa7582,_0x58fb62){_0xfa7582=_0xfa7582-0xcc;let _0x3183c4=_0x2c42ec[_0xfa7582];return _0x3183c4;},_0xfa75(_0x160c4f,_0x42908b);}export class UploadcareImageEditFormEditingView extends _0x93f1db{constructor(_0x30d84e,_0x648b58){const _0x9f6e72=_0xfa75;super(_0x30d84e);const _0x552bd5=this[_0x9f6e72(0xcd)];this[_0x9f6e72(0xd3)](_0x9f6e72(0xce),''),this[_0x9f6e72(0xcc)]({'tag':_0x9f6e72(0xdb),'attributes':{..._0x648b58,'class':[_0x9f6e72(0xd2),_0x9f6e72(0xdc)],'ctx-name':_0x9f6e72(0xd7),'cdn-url':_0x552bd5['to'](_0x9f6e72(0xce))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4e82bf}from'ckeditor5/src/icons.js';import{ButtonView as _0x32cfef,IconView as _0x5f4a8a,View as _0x15bc14}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x15bc14{constructor(_0x214c79){super(_0x214c79);const t=_0x214c79['t'];this['set']('errorType',null);const _0x466cc4=new _0x32cfef(_0x214c79);_0x466cc4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x466cc4['withText']=!0x0,_0x466cc4['class']='ck-button-action',_0x466cc4['on']('execute',()=>{this['fire']('retry');}),_0x466cc4['bind']('isVisible')['to'](this,'errorType',_0x314327=>'NotFound'!==_0x314327);const _0x2838c3=new _0x5f4a8a();_0x2838c3['content']=_0x4e82bf,_0x2838c3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1882ed=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':[_0x2838c3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1882ed['to']('errorType',_0x352de1=>t('NotFound'!==_0x352de1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x466cc4]},{'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 _0x330b80,View as _0x4ac0fd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4ac0fd{constructor(_0x43f2dc){super(_0x43f2dc);const t=_0x43f2dc['t'],_0x5f176a=this['bindTemplate'],_0x28bad6=new _0x330b80();_0x28bad6['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':[_0x28bad6,{'text':_0x5f176a['to']('imageUploadProgress',_0x55eb6f=>t('Loading\x20image...')+'\x20('+(_0x55eb6f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2f1c3a=_0x9b7f;(function(_0x1cfd1b,_0x42d120){const _0x47abc4=_0x9b7f,_0x5bde6d=_0x1cfd1b();while(!![]){try{const _0x68bc07=parseInt(_0x47abc4(0x1f6))/0x1*(-parseInt(_0x47abc4(0x210))/0x2)+parseInt(_0x47abc4(0x1e4))/0x3+-parseInt(_0x47abc4(0x212))/0x4*(-parseInt(_0x47abc4(0x1ea))/0x5)+parseInt(_0x47abc4(0x208))/0x6*(parseInt(_0x47abc4(0x20d))/0x7)+-parseInt(_0x47abc4(0x20a))/0x8+parseInt(_0x47abc4(0x1e9))/0x9*(parseInt(_0x47abc4(0x1e8))/0xa)+-parseInt(_0x47abc4(0x1f3))/0xb*(parseInt(_0x47abc4(0x20e))/0xc);if(_0x68bc07===_0x42d120)break;else _0x5bde6d['push'](_0x5bde6d['shift']());}catch(_0x2fe6b4){_0x5bde6d['push'](_0x5bde6d['shift']());}}}(_0x260b,0x28727));import{View as _0x556993}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x57a673}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x11450a}from'./uploadcareimageeditformerrorview.js';function _0x9b7f(_0x3b130f,_0x162e1d){const _0x260b08=_0x260b();return _0x9b7f=function(_0x9b7f2d,_0x30a45d){_0x9b7f2d=_0x9b7f2d-0x1de;let _0x5c6c8e=_0x260b08[_0x9b7f2d];return _0x5c6c8e;},_0x9b7f(_0x3b130f,_0x162e1d);}import{UploadcareImageEditFormEditingView as _0x41f4a4}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x203bb9}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x260b(){const _0x5a583c=['ready','change:status','observe','_editingView','disconnect','_loadingView','toLowerCase','createCollection','getFocusableElement','1969128BoptIP','filter','762128VULnrq','_waitForImageEditorComponent','length','7itBcLc','36NNkOBZ','_addUploadcareImageEditorListeners','2syYWNi','render','4rEKjeJ','apply','_items','div','error','uploading','ck-reset_all-excluded','setTemplate','add','status','target','382728oYZgfs','cdnUrl','retry','addEventListener','30HhsjRB','272601qwiBOD','2525ZFyDER','detail','set','_setView','_addErrorViewListeners','querySelector','clear','addedNodes','element','581537pGAVif','addMany','_focusableView','127598ReydSf','cancel','nodeName','uc-cloud-image-editor','focus','once','_errorView','ck-uploadcare-form','fire'];_0x260b=function(){return _0x5a583c;};return _0x260b();}export class UploadcareImageEditFormView extends _0x203bb9{[_0x2f1c3a(0x214)];[_0x2f1c3a(0x204)];[_0x2f1c3a(0x1fc)];[_0x2f1c3a(0x202)];[_0x2f1c3a(0x1f5)];constructor(_0x266dfc,_0x1f4e5f,_0x622c9b){const _0x939ebe=_0x2f1c3a;super(_0x266dfc),this[_0x939ebe(0x214)]=this[_0x939ebe(0x206)](),this[_0x939ebe(0x204)]=new _0x57a673(_0x266dfc),this[_0x939ebe(0x1fc)]=new _0x11450a(_0x266dfc),this[_0x939ebe(0x202)]=new _0x41f4a4(_0x266dfc,_0x622c9b),this[_0x939ebe(0x1f5)]=new _0x556993(_0x266dfc),this[_0x939ebe(0x1f5)][_0x939ebe(0x1e0)](this[_0x939ebe(0x207)]()),this[_0x939ebe(0x1ec)](_0x939ebe(0x1e2),_0x1f4e5f),this[_0x939ebe(0x1e0)]({'tag':_0x939ebe(0x215),'attributes':{'class':['ck',_0x939ebe(0x1df),_0x939ebe(0x1fd)],'tabindex':'-1'},'children':this[_0x939ebe(0x214)]}),this[_0x939ebe(0x1ed)](),this[_0x939ebe(0x1fb)](_0x939ebe(0x211),()=>{const _0x499bb1=_0x939ebe;this[_0x499bb1(0x20b)](this[_0x499bb1(0x1f2)],_0x2746af=>{const _0x5c8c28=_0x499bb1;this[_0x5c8c28(0x20f)](_0x2746af);});}),this['on'](_0x939ebe(0x200),()=>{const _0x540a15=_0x939ebe;this[_0x540a15(0x1ed)]();}),this[_0x939ebe(0x1ee)]();}[_0x2f1c3a(0x1fa)](){const _0x1171fc=_0x2f1c3a;this[_0x1171fc(0x1f2)][_0x1171fc(0x1fa)]();}[_0x2f1c3a(0x1ed)](){const _0x444e3b=_0x2f1c3a;switch(this[_0x444e3b(0x214)][_0x444e3b(0x1f0)](),this[_0x444e3b(0x1e2)]){case _0x444e3b(0x1de):this[_0x444e3b(0x214)][_0x444e3b(0x1e1)](this[_0x444e3b(0x204)]);break;case _0x444e3b(0x216):this[_0x444e3b(0x214)][_0x444e3b(0x1e1)](this[_0x444e3b(0x1fc)]);break;case _0x444e3b(0x1ff):this[_0x444e3b(0x214)][_0x444e3b(0x1f4)]([this[_0x444e3b(0x202)],this[_0x444e3b(0x1f5)]]);}}[_0x2f1c3a(0x20b)](_0x502138,_0x144423){const _0x365142=_0x2f1c3a,_0x5491e6=_0x365142(0x1f9),_0x56341a=_0x502138[_0x365142(0x1ef)](_0x5491e6);if(_0x56341a)return _0x144423(_0x56341a);const _0x159d62=new MutationObserver(_0x15ab1e=>{const _0x38f467=_0x365142,_0x1926f4=_0x15ab1e[_0x38f467(0x209)](_0x57dcac=>_0x57dcac[_0x38f467(0x1e3)]===_0x502138&&_0x57dcac[_0x38f467(0x1f1)][_0x38f467(0x20c)]>0x0&&_0x57dcac[_0x38f467(0x1f1)][0x0][_0x38f467(0x1f8)][_0x38f467(0x205)]()===_0x5491e6);_0x1926f4[_0x38f467(0x20c)]&&(_0x159d62[_0x38f467(0x203)](),_0x144423(_0x1926f4[0x0][_0x38f467(0x1f1)][0x0]));});_0x159d62[_0x365142(0x201)](_0x502138,{'childList':!0x0,'subtree':!0x0});}[_0x2f1c3a(0x20f)](_0x1c2bd2){const _0x327c14=_0x2f1c3a;_0x1c2bd2[_0x327c14(0x1e7)](_0x327c14(0x213),_0x587de4=>{const _0x16d0e5=_0x327c14;this[_0x16d0e5(0x1fe)](_0x16d0e5(0x213),{'imageSrc':_0x587de4[_0x16d0e5(0x1eb)][_0x16d0e5(0x1e5)]});}),_0x1c2bd2[_0x327c14(0x1e7)](_0x327c14(0x1f7),()=>{const _0x26f4f9=_0x327c14;this[_0x26f4f9(0x1fe)](_0x26f4f9(0x1f7));});}[_0x2f1c3a(0x1ee)](){const _0x530bec=_0x2f1c3a;this[_0x530bec(0x1fc)]['on'](_0x530bec(0x1e6),()=>{const _0xf3b4db=_0x530bec;this[_0xf3b4db(0x1fe)](_0xf3b4db(0x1e6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57c5a7=_0xf3e8;function _0xf3e8(_0x230f43,_0x5246cb){const _0x1df9a7=_0x1df9();return _0xf3e8=function(_0xf3e881,_0x2ae6b0){_0xf3e881=_0xf3e881-0x1c8;let _0x4c48a0=_0x1df9a7[_0xf3e881];return _0x4c48a0;},_0xf3e8(_0x230f43,_0x5246cb);}(function(_0x1969db,_0x5000e8){const _0x24ab1e=_0xf3e8,_0x21ab13=_0x1969db();while(!![]){try{const _0x453514=-parseInt(_0x24ab1e(0x1d0))/0x1+-parseInt(_0x24ab1e(0x1e4))/0x2*(-parseInt(_0x24ab1e(0x1ce))/0x3)+parseInt(_0x24ab1e(0x1e3))/0x4+-parseInt(_0x24ab1e(0x1e5))/0x5*(parseInt(_0x24ab1e(0x1d1))/0x6)+-parseInt(_0x24ab1e(0x1cd))/0x7+-parseInt(_0x24ab1e(0x1d3))/0x8*(parseInt(_0x24ab1e(0x1d8))/0x9)+parseInt(_0x24ab1e(0x1dc))/0xa;if(_0x453514===_0x5000e8)break;else _0x21ab13['push'](_0x21ab13['shift']());}catch(_0x1ab589){_0x21ab13['push'](_0x21ab13['shift']());}}}(_0x1df9,0xc7382));import{Command as _0x46a86d}from'ckeditor5/src/core.js';import{Dialog as _0x2b7d54}from'ckeditor5/src/ui.js';function _0x1df9(){const _0xae00f9=['selection','requires','imageEditController','imageBlock','document','6397612sQRhOT','199308JBjQeE','15nRikpW','element','unbind','uploadcare.allowExternalImagesEditing','plugins','getSelectedElement','config','set','5878852aqXemh','33oOfCTA','isActive','313666vuAhtb','1355982jSjgbq','imageInline','8JILMBo','refresh','execute','isEnabled','editor','8503083zPmqxb','_isEditable','bind','get','8966850ugBNse','model'];_0x1df9=function(){return _0xae00f9;};return _0x1df9();}import{UploadcareImageEditController as _0x2962d6}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5b384d}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x46a86d{[_0x57c5a7(0x1e0)];static get[_0x57c5a7(0x1df)](){return[_0x2b7d54];}[_0x57c5a7(0x1d9)];constructor(_0x57983a){const _0x423790=_0x57c5a7;super(_0x57983a),this[_0x423790(0x1e0)]=void 0x0,this[_0x423790(0x1d9)]=_0x5b384d(_0x57983a[_0x423790(0x1cb)][_0x423790(0x1db)](_0x423790(0x1c8))||[]),this[_0x423790(0x1cc)]({'isActive':!0x1});}[_0x57c5a7(0x1d4)](){const _0x500e1a=_0x57c5a7,_0x29e4af=this[_0x500e1a(0x1d7)][_0x500e1a(0x1dd)][_0x500e1a(0x1e2)][_0x500e1a(0x1de)][_0x500e1a(0x1ca)]();this[_0x500e1a(0x1d6)]=this[_0x500e1a(0x1d9)](_0x29e4af);}[_0x57c5a7(0x1d5)](){const _0x457ede=_0x57c5a7;this[_0x457ede(0x1e0)]&&(this[_0x457ede(0x1e7)](_0x457ede(0x1cf)),this[_0x457ede(0x1e0)]=void 0x0);const _0x59dbdd=this[_0x457ede(0x1d7)][_0x457ede(0x1dd)][_0x457ede(0x1e2)][_0x457ede(0x1de)][_0x457ede(0x1ca)]();_0x59dbdd&&(_0x59dbdd['is'](_0x457ede(0x1e6),_0x457ede(0x1e1))||_0x59dbdd['is'](_0x457ede(0x1e6),_0x457ede(0x1d2)))&&(this[_0x457ede(0x1e0)]=new _0x2962d6(this[_0x457ede(0x1d7)],this[_0x457ede(0x1d7)][_0x457ede(0x1c9)][_0x457ede(0x1db)](_0x2b7d54),_0x59dbdd),this[_0x457ede(0x1da)](_0x457ede(0x1cf))['to'](this[_0x457ede(0x1e0)],_0x457ede(0x1cf)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc75b97=_0x2df2;(function(_0x56403e,_0x3c8d02){const _0x175a3e=_0x2df2,_0x1f66f7=_0x56403e();while(!![]){try{const _0x197d5b=parseInt(_0x175a3e(0x1d9))/0x1*(parseInt(_0x175a3e(0x1cb))/0x2)+-parseInt(_0x175a3e(0x1d0))/0x3*(-parseInt(_0x175a3e(0x1cd))/0x4)+parseInt(_0x175a3e(0x1cc))/0x5*(-parseInt(_0x175a3e(0x1ca))/0x6)+-parseInt(_0x175a3e(0x1db))/0x7+parseInt(_0x175a3e(0x1d6))/0x8*(-parseInt(_0x175a3e(0x1d8))/0x9)+parseInt(_0x175a3e(0x1d4))/0xa+-parseInt(_0x175a3e(0x1ce))/0xb;if(_0x197d5b===_0x3c8d02)break;else _0x1f66f7['push'](_0x1f66f7['shift']());}catch(_0x1cd0d8){_0x1f66f7['push'](_0x1f66f7['shift']());}}}(_0x2191,0xec5b7));import{Plugin as _0x2e8a98}from'ckeditor5/src/core.js';function _0x2191(){const _0x50085a=['requires','init','16760010lvrkpb','pluginName','23928YZbjAz','isOfficialPlugin','3537kHyIge','6WsNtca','ImageEditing','7931448NJdtJk','UploadcareImageEditEditing','add','ImageUtils','commands','uploadcareImageEdit','92298voXFAw','419674gsoJZD','105NUDcSt','40aeDEgh','366454HMstVB','uploadcareImageReplace','209394UWxBnM','isPremiumPlugin'];_0x2191=function(){return _0x50085a;};return _0x2191();}import{Notification as _0x5c2993}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x336df2}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x219ea7}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3fea2b}from'../uploadcareediting.js';function _0x2df2(_0x36ec1c,_0x4e6a2c){const _0x2191bf=_0x2191();return _0x2df2=function(_0x2df2bb,_0xda65f7){_0x2df2bb=_0x2df2bb-0x1c6;let _0x4503a3=_0x2191bf[_0x2df2bb];return _0x4503a3;},_0x2df2(_0x36ec1c,_0x4e6a2c);}export class UploadcareImageEditEditing extends _0x2e8a98{static get[_0xc75b97(0x1d5)](){const _0x33592e=_0xc75b97;return _0x33592e(0x1dc);}static get[_0xc75b97(0x1d2)](){const _0x357427=_0xc75b97;return[_0x3fea2b,_0x5c2993,_0x357427(0x1c7),_0x357427(0x1da)];}static get[_0xc75b97(0x1d7)](){return!0x0;}static get[_0xc75b97(0x1d1)](){return!0x0;}[_0xc75b97(0x1d3)](){const _0x193647=_0xc75b97,{editor:_0x1b4875}=this;_0x1b4875[_0x193647(0x1c8)][_0x193647(0x1c6)](_0x193647(0x1c9),new _0x336df2(_0x1b4875)),_0x1b4875[_0x193647(0x1c8)][_0x193647(0x1c6)](_0x193647(0x1cf),new _0x219ea7(_0x1b4875));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2a2ff5}from'ckeditor5/src/core.js';import{ButtonView as _0x5d0ba6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x567c7c}from'ckeditor5/src/icons.js';import{createElement as _0x52f8ab}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 _0x2a2ff5{['_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 _0x1dd0a6=this['editor'];_0x1dd0a6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5043e6=>{const _0x1d119a=_0x1dd0a6['commands']['get']('uploadcareImageEdit'),_0x1dbb08=new _0x5d0ba6(_0x5043e6),t=_0x5043e6['t'];return _0x1dbb08['set']({'icon':_0x567c7c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1dbb08['bind']('isEnabled')['to'](_0x1d119a),_0x1dbb08['bind']('isOn')['to'](_0x1d119a,'isActive'),this['listenTo'](_0x1dbb08,'execute',()=>{_0x1dd0a6['execute']('uploadcareImageEdit'),_0x1dd0a6['editing']['view']['focus']();}),_0x1dbb08;}),this['_initConfig']();}['_initConfig'](){const _0x4dbe2b=_0x52f8ab(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4dbe2b),this['listenTo'](this['editor'],'destroy',()=>{_0x4dbe2b['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4a275b=_0x2c07;function _0x4b33(){const _0x37a6c9=['1982760KgnLTy','2150919lyDObf','change','imageBlock','524034znwoej','removeAttribute','refresh','editor','126ztnIdg','21487480npelqM','execute','selection','element','getSelectedElement','8669kANLcW','srcset','996954MNByYX','8knSqKZ','sizes','95TvMOPm','setAttributes','imageInline','model','4729184aGFOIe','isEnabled','document'];_0x4b33=function(){return _0x37a6c9;};return _0x4b33();}(function(_0x4acff4,_0x40d979){const _0x143a4a=_0x2c07,_0x2c358f=_0x4acff4();while(!![]){try{const _0x446534=-parseInt(_0x143a4a(0x192))/0x1*(-parseInt(_0x143a4a(0x18c))/0x2)+parseInt(_0x143a4a(0x184))/0x3+-parseInt(_0x143a4a(0x181))/0x4+parseInt(_0x143a4a(0x17d))/0x5*(-parseInt(_0x143a4a(0x188))/0x6)+parseInt(_0x143a4a(0x194))/0x7+parseInt(_0x143a4a(0x195))/0x8*(parseInt(_0x143a4a(0x185))/0x9)+parseInt(_0x143a4a(0x18d))/0xa;if(_0x446534===_0x40d979)break;else _0x2c358f['push'](_0x2c358f['shift']());}catch(_0xefca0b){_0x2c358f['push'](_0x2c358f['shift']());}}}(_0x4b33,0xdaa03));function _0x2c07(_0x584b40,_0x386f33){const _0x4b33a7=_0x4b33();return _0x2c07=function(_0x2c075c,_0x12638b){_0x2c075c=_0x2c075c-0x17c;let _0x361812=_0x4b33a7[_0x2c075c];return _0x361812;},_0x2c07(_0x584b40,_0x386f33);}import{Command as _0x59d646}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x59d646{[_0x4a275b(0x18a)](){const _0x29d353=_0x4a275b,_0x44d34d=this[_0x29d353(0x18b)][_0x29d353(0x180)][_0x29d353(0x183)][_0x29d353(0x18f)][_0x29d353(0x191)]();this[_0x29d353(0x182)]=Boolean(_0x44d34d&&(_0x44d34d['is'](_0x29d353(0x190),_0x29d353(0x187))||_0x44d34d['is'](_0x29d353(0x190),_0x29d353(0x17f))));}[_0x4a275b(0x18e)](_0x19fd0f){const _0x93f1f7=_0x4a275b,_0x5e5f43=this[_0x93f1f7(0x18b)][_0x93f1f7(0x180)][_0x93f1f7(0x183)][_0x93f1f7(0x18f)][_0x93f1f7(0x191)]();this[_0x93f1f7(0x18b)][_0x93f1f7(0x180)][_0x93f1f7(0x186)](_0x8eae0e=>{const _0x379c07=_0x93f1f7;_0x8eae0e[_0x379c07(0x17e)](_0x19fd0f,_0x5e5f43),_0x8eae0e[_0x379c07(0x189)](_0x379c07(0x193),_0x5e5f43),_0x8eae0e[_0x379c07(0x189)](_0x379c07(0x17c),_0x5e5f43);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x472497=_0x5b32;(function(_0x11b97d,_0x4e096d){var _0x453d6d=_0x5b32,_0x32c513=_0x11b97d();while(!![]){try{var _0x584743=parseInt(_0x453d6d(0xb4))/0x1+-parseInt(_0x453d6d(0xac))/0x2*(parseInt(_0x453d6d(0xaa))/0x3)+-parseInt(_0x453d6d(0xa9))/0x4*(-parseInt(_0x453d6d(0xa8))/0x5)+parseInt(_0x453d6d(0xb5))/0x6+-parseInt(_0x453d6d(0xb0))/0x7*(parseInt(_0x453d6d(0xad))/0x8)+parseInt(_0x453d6d(0xb3))/0x9+parseInt(_0x453d6d(0xaf))/0xa;if(_0x584743===_0x4e096d)break;else _0x32c513['push'](_0x32c513['shift']());}catch(_0x526824){_0x32c513['push'](_0x32c513['shift']());}}}(_0x6914,0x42143));import{Plugin as _0x360cd4}from'ckeditor5/src/core.js';function _0x5b32(_0x5dbb53,_0x2399b3){var _0x69147c=_0x6914();return _0x5b32=function(_0x5b324a,_0x57e124){_0x5b324a=_0x5b324a-0xa8;var _0xf93a62=_0x69147c[_0x5b324a];return _0xf93a62;},_0x5b32(_0x5dbb53,_0x2399b3);}import{UploadcareImageEditEditing as _0x676994}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x6914(){var _0x5984eb=['47204qIFmIV','3xGuTFT','isPremiumPlugin','884790IoVTyr','1075424IOcciS','requires','227020CfDZLh','14JmwSta','isOfficialPlugin','pluginName','3090339jXbnyX','291951aotgQP','598002rWtPmA','UploadcareImageEdit','95mCxnEA'];_0x6914=function(){return _0x5984eb;};return _0x6914();}import{UploadcareImageEditUI as _0x5afd69}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x360cd4{static get[_0x472497(0xb2)](){var _0x44dfdb=_0x472497;return _0x44dfdb(0xb6);}static get[_0x472497(0xae)](){return[_0x676994,_0x5afd69];}static get[_0x472497(0xb1)](){return!0x0;}static get[_0x472497(0xab)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d387b=_0x527f;(function(_0x4e6ded,_0x1e71b3){const _0x25045f=_0x527f,_0x2b6502=_0x4e6ded();while(!![]){try{const _0x27bb62=-parseInt(_0x25045f(0x1c0))/0x1+-parseInt(_0x25045f(0x1db))/0x2+parseInt(_0x25045f(0x206))/0x3+parseInt(_0x25045f(0x1e9))/0x4*(parseInt(_0x25045f(0x1dc))/0x5)+parseInt(_0x25045f(0x1cd))/0x6*(parseInt(_0x25045f(0x1e8))/0x7)+-parseInt(_0x25045f(0x200))/0x8+-parseInt(_0x25045f(0x1cc))/0x9*(parseInt(_0x25045f(0x205))/0xa);if(_0x27bb62===_0x1e71b3)break;else _0x2b6502['push'](_0x2b6502['shift']());}catch(_0x26b33b){_0x2b6502['push'](_0x2b6502['shift']());}}}(_0xbb95,0x30013));import{Plugin as _0x5a4047}from'ckeditor5/src/core.js';import{IconDropbox as _0x3d0089,IconFacebook as _0x3111bc,IconGoogleDrive as _0x3479be,IconGooglePhotos as _0x37c97d,IconUploadcareImageUpload as _0x4da4fc,IconUploadcareLink as _0x4af7c1,IconOneDrive as _0x36f5ef}from'ckeditor5/src/icons.js';function _0x527f(_0x51626f,_0x18daca){const _0xbb955b=_0xbb95();return _0x527f=function(_0x527ff7,_0x51bf4b){_0x527ff7=_0x527ff7-0x1be;let _0x5642c8=_0xbb955b[_0x527ff7];return _0x5642c8;},_0x527f(_0x51626f,_0x18daca);}import{ButtonView as _0x572f97,MenuBarMenuListItemButtonView as _0x3a9385}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2f94cb}from'./uploadcareconfig.js';import{getTranslation as _0x1a6a89}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x5a4047{[_0x4d387b(0x1be)];[_0x4d387b(0x1d4)];static get[_0x4d387b(0x1f4)](){const _0x3ee285=_0x4d387b;return _0x3ee285(0x1ef);}static get[_0x4d387b(0x1e2)](){return!0x0;}static get[_0x4d387b(0x1fa)](){return!0x0;}[_0x4d387b(0x1df)](){const _0x24a2fd=_0x4d387b;this[_0x24a2fd(0x1be)]=this[_0x24a2fd(0x20b)][_0x24a2fd(0x1f9)][_0x24a2fd(0x1f3)](_0x24a2fd(0x1be));const _0x6ee80b=this[_0x24a2fd(0x20b)];this[_0x24a2fd(0x1d4)]=setInterval(()=>{const _0x31b6d6=_0x24a2fd;let _0x5076c1;for(const _0x4103d8 in _0x6ee80b){const _0x486642=_0x4103d8,_0x4d0c51=_0x6ee80b[_0x486642];if(_0x31b6d6(0x1c7)==_0x4d0c51||_0x31b6d6(0x1de)==_0x4d0c51||_0x31b6d6(0x1d9)==_0x4d0c51||_0x31b6d6(0x202)==_0x4d0c51||_0x31b6d6(0x1e5)==_0x4d0c51||_0x31b6d6(0x1e0)==_0x4d0c51||_0x31b6d6(0x1ec)==_0x4d0c51||_0x31b6d6(0x1f2)==_0x4d0c51){delete _0x6ee80b[_0x486642],_0x5076c1=_0x4d0c51,clearInterval(this[_0x31b6d6(0x1d4)]),this[_0x31b6d6(0x1d4)]=void 0x0;break;}}_0x31b6d6(0x1de)==_0x5076c1&&_0x6ee80b[_0x31b6d6(0x1fb)](_0x31b6d6(0x201)),_0x31b6d6(0x1d9)==_0x5076c1&&_0x6ee80b[_0x31b6d6(0x1fb)](_0x31b6d6(0x1e6)),_0x31b6d6(0x202)==_0x5076c1&&_0x6ee80b[_0x31b6d6(0x1fb)](_0x31b6d6(0x204)),_0x31b6d6(0x1e5)==_0x5076c1&&_0x6ee80b[_0x31b6d6(0x1fb)](_0x31b6d6(0x1f6),_0x31b6d6(0x1d1)),_0x31b6d6(0x1e0)==_0x5076c1&&_0x6ee80b[_0x31b6d6(0x1fb)](_0x31b6d6(0x1fe)),_0x31b6d6(0x1ec)==_0x5076c1&&_0x6ee80b[_0x31b6d6(0x1fb)](_0x31b6d6(0x1c6)),_0x31b6d6(0x1f2)==_0x5076c1&&_0x6ee80b[_0x31b6d6(0x1fb)](_0x31b6d6(0x1cb));},0x3e8);}[_0x4d387b(0x1d6)](){const _0x36916d=_0x4d387b,{editor:_0x5f685}=this,_0x44a687=_0x5f685[_0x36916d(0x1ff)][_0x36916d(0x1f3)](_0x36916d(0x1f0));if(!_0x44a687)return;const _0x193d93=this[_0x36916d(0x1fd)](_0x5f685[_0x36916d(0x1f9)][_0x36916d(0x1f3)](_0x36916d(0x1ca)))[_0x36916d(0x1d5)]((_0x5e27d7,_0x158a85)=>{const _0x3b0a47=_0x36916d,_0x2f97ac=this[_0x3b0a47(0x1f5)](_0x158a85[_0x3b0a47(0x1bf)]);return _0x5e27d7[_0x2f97ac]||(_0x5e27d7[_0x2f97ac]=[]),_0x5e27d7[_0x2f97ac][_0x3b0a47(0x1e3)](_0x158a85),_0x5e27d7;},{});_0x5f685[_0x36916d(0x1e1)][_0x36916d(0x209)](_0x36916d(0x1c2))&&_0x5f685[_0x36916d(0x1ff)][_0x36916d(0x1f3)](_0x36916d(0x1f0))&&Object[_0x36916d(0x207)](_0x193d93)[_0x36916d(0x1f8)](([_0x5da9c1,_0x675b3])=>{const _0x2780a9=_0x36916d;_0x5f685[_0x2780a9(0x1e1)][_0x2780a9(0x1f3)](_0x2780a9(0x1c2))[_0x2780a9(0x1eb)]({'name':_0x5da9c1,'observable':()=>_0x44a687,'buttonViewCreator':()=>this[_0x2780a9(0x1da)](_0x675b3),'formViewCreator':()=>this[_0x2780a9(0x20d)](_0x675b3),'menuBarButtonViewCreator':()=>this[_0x2780a9(0x1c3)](_0x675b3),'override':_0x2780a9(0x20c)!==_0x5da9c1});});}[_0x4d387b(0x1ea)](){const _0x2bf80e=_0x4d387b;super[_0x2bf80e(0x1ea)](),this[_0x2bf80e(0x1d4)]&&clearInterval(this[_0x2bf80e(0x1d4)]);}[_0x4d387b(0x1fd)](_0x26c4eb){const _0x29134f=_0x4d387b,{locale:_0x4589c4}=this[_0x29134f(0x20b)];return _0x26c4eb[_0x29134f(0x1c5)](_0x84f357=>{const _0x10dfaa=_0x29134f,_0x336a15=_0x1a6a89(_0x4589c4,_0x84f357,_0x10dfaa(0x1d8));switch(_0x84f357){case _0x2f94cb[_0x10dfaa(0x1ed)]:return{'icon':_0x4da4fc,'type':_0x2f94cb[_0x10dfaa(0x1ed)],..._0x336a15};case _0x2f94cb[_0x10dfaa(0x1ce)]:return{'icon':_0x4af7c1,'type':_0x2f94cb[_0x10dfaa(0x1ce)],..._0x336a15};case _0x2f94cb[_0x10dfaa(0x1d7)]:return{'icon':_0x3d0089,'type':_0x2f94cb[_0x10dfaa(0x1d7)],..._0x336a15};case _0x2f94cb[_0x10dfaa(0x1c8)]:return{'icon':_0x3111bc,'type':_0x2f94cb[_0x10dfaa(0x1c8)],..._0x336a15};case _0x2f94cb[_0x10dfaa(0x1cf)]:return{'icon':_0x3479be,'type':_0x2f94cb[_0x10dfaa(0x1cf)],..._0x336a15};case _0x2f94cb[_0x10dfaa(0x1c4)]:return{'icon':_0x37c97d,'type':_0x2f94cb[_0x10dfaa(0x1c4)],..._0x336a15};case _0x2f94cb[_0x10dfaa(0x20e)]:return{'icon':_0x36f5ef,'type':_0x2f94cb[_0x10dfaa(0x20e)],..._0x336a15};}});}[_0x4d387b(0x1f5)](_0x2b3a0f){const _0x225be4=_0x4d387b;switch(_0x2b3a0f){case _0x2f94cb[_0x225be4(0x1ed)]:return _0x225be4(0x208);case _0x2f94cb[_0x225be4(0x1ce)]:return _0x225be4(0x1e4);default:return _0x225be4(0x20c);}}[_0x4d387b(0x1dd)](_0x13c7b4,_0x4a118c){const _0xd8335a=_0x4d387b,_0x174ad7=this[_0xd8335a(0x20b)],_0x342608=new _0x13c7b4(_0x174ad7[_0xd8335a(0x1d2)]),_0xf80067=_0x174ad7[_0xd8335a(0x1ff)][_0xd8335a(0x1f3)](_0xd8335a(0x1f0));return _0x342608[_0xd8335a(0x1f1)](_0xd8335a(0x1d0))['to'](_0xf80067),_0x342608['on'](_0xd8335a(0x20a),()=>{const _0x3af2e2=_0xd8335a;_0xf80067[_0x3af2e2(0x20a)](_0x4a118c);}),_0x342608;}[_0x4d387b(0x1da)](_0x12dd85){const _0x3e7833=_0x4d387b,{locale:_0x47c75a}=this[_0x3e7833(0x20b)],_0x403b3c=this[_0x3e7833(0x20b)][_0x3e7833(0x1e1)][_0x3e7833(0x1f3)](_0x3e7833(0x1c2)),_0x570372=_0x12dd85[0x0],_0x214ebf=this[_0x3e7833(0x1dd)](_0x572f97,_0x570372[_0x3e7833(0x1bf)]);return _0x214ebf[_0x3e7833(0x1c9)]=_0x570372[_0x3e7833(0x1c9)],_0x214ebf[_0x3e7833(0x1f1)](_0x3e7833(0x1fc))['to'](_0x403b3c,_0x3e7833(0x1c1),_0x5996b0=>_0x1a6a89(_0x47c75a,_0x570372[_0x3e7833(0x1bf)],_0x5996b0?_0x3e7833(0x1d3):_0x3e7833(0x1d8))[_0x3e7833(0x203)]),_0x214ebf[_0x3e7833(0x1e7)]=!0x0,_0x214ebf;}[_0x4d387b(0x20d)](_0x240873){const _0x136481=_0x4d387b,{locale:_0x421722}=this[_0x136481(0x20b)],_0x39c87f=this[_0x136481(0x20b)][_0x136481(0x1e1)][_0x136481(0x1f3)](_0x136481(0x1c2));return _0x240873[_0x136481(0x1c5)](_0x1d7760=>{const _0x273cf1=_0x136481,_0x356605=this[_0x273cf1(0x1dd)](_0x572f97,_0x1d7760[_0x273cf1(0x1bf)]);return _0x356605[_0x273cf1(0x1ee)]=!0x0,_0x356605[_0x273cf1(0x1c9)]=_0x1d7760[_0x273cf1(0x1c9)],_0x356605[_0x273cf1(0x1f1)](_0x273cf1(0x1fc))['to'](_0x39c87f,_0x273cf1(0x1c1),_0x6258f7=>_0x1a6a89(_0x421722,_0x1d7760[_0x273cf1(0x1bf)],_0x6258f7?_0x273cf1(0x1d3):_0x273cf1(0x1d8))[_0x273cf1(0x203)]),_0x356605;});}[_0x4d387b(0x1c3)](_0x19c100){const _0x4fb10b=_0x4d387b;return _0x19c100[_0x4fb10b(0x1c5)](_0x19a65a=>{const _0x4c1418=_0x4fb10b,_0x2716ce=this[_0x4c1418(0x1dd)](_0x3a9385,_0x19a65a[_0x4c1418(0x1bf)]);return _0x2716ce[_0x4c1418(0x1c9)]=_0x19a65a[_0x4c1418(0x1c9)],_0x2716ce[_0x4c1418(0x1fc)]=_0x19a65a[_0x4c1418(0x1f7)],_0x2716ce;});}}function _0xbb95(){const _0x30fdf9=['config','isPremiumPlugin','_showLicenseError','label','_normalizeConfigSourceList','evaluationLimit','commands','2928648VJimBd','invalid','uploadcareLicenseKeyDomainLimit','text','domainLimit','35750WJgCxa','619482Jguhel','entries','upload','has','execute','editor','assetManager','_createDropdownButtons','OneDrive','licenseKey','type','77387QrEczJ','isImageSelected','ImageInsertUI','_createMenuBarButtons','GPhotos','map','trialLimit','uploadcareLicenseKeyValid','Facebook','icon','uploadcare.uploader.sourceList','usageLimit','171uicpie','21948CBOZPf','URL','GDrive','isEnabled','Uploadcare','locale','Replace','_licenseKeyCheckInterval','reduce','afterInit','Dropbox','Insert','uploadcareLicenseKeyExpired','_createToolbarButton','356610KgBqsN','5hoVzAA','_createButton','uploadcareLicenseKeyInvalid','init','uploadcareLicenseKeyEvaluationLimit','plugins','isOfficialPlugin','push','url','uploadcareLicenseKeyNotAllowed','expired','tooltip','651jvLxST','1358548yAypTP','destroy','registerIntegration','uploadcareLicenseKeyTrialLimit','Local','withText','UploadcareUI','uploadcare','bind','uploadcareLicenseKeyUsageLimit','get','pluginName','_getIntegrationKey','featureNotAllowed','shortText','forEach'];_0xbb95=function(){return _0x30fdf9;};return _0xbb95();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x50d857}from'ckeditor5/src/core.js';import{FileRepository as _0x8f18a8}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x51ccb4}from'./uploadcareediting.js';import{UploadUtils as _0xd05f3c}from'./utils/uploadutils.js';import{getImageUrls as _0x5249f8}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x50d857{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x8f18a8,_0x51ccb4];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2194af=this['editor'];if(!!!_0x2194af['config']['get']('uploadcare'))return;_0x2194af['plugins']['get'](_0x8f18a8)['createUploadAdapter']=_0x27c084=>new k(_0x27c084,_0x2194af),_0x2194af['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x589967,{imageElement:_0x54e70f,data:_0x588312})=>{_0x2194af['model']['change'](_0x196d72=>{_0x196d72['setAttribute']('uploadcareImageId',_0x588312['uploadcareImageId'],_0x54e70f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5635e7,_0x17a5f2){this['loader']=_0x5635e7,this['editor']=_0x17a5f2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x86d41a=await this['loader']['file'];return _0xd05f3c['upload']({'file':_0x86d41a,'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':_0x4fd9ce=>{_0x4fd9ce&&_0x4fd9ce['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4fd9ce['value']);}})['then'](async _0x595fd3=>{const {imageFallbackUrl:_0x38eb4f,imageSources:_0x5f49f7}=_0x5249f8(_0x595fd3['cdnUrl'],_0x595fd3['imageInfo']['width']);return{'uploadcareImageId':_0x595fd3['uuid'],'default':_0x38eb4f,'sources':_0x5f49f7};})['catch'](()=>{const _0x1877e8=t('Cannot\x20upload\x20file:')+('\x20'+_0x86d41a['name']+'.');return Promise['reject'](_0x1877e8);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x26609d}from'../uploadcareconfig.js';export function getTranslation(_0x2c0240,_0x204e5a,_0x375f41){const t=_0x2c0240['t'],_0x506007=_0x2c0240['t'];switch(_0x204e5a){case _0x26609d['Local']:return{'text':_0x506007('Insert'===_0x375f41?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x506007('From\x20computer')};case _0x26609d['URL']:return{'text':'Insert'===_0x375f41?_0x506007('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x506007('Via\x20URL')};case _0x26609d['Dropbox']:return{'text':t('Insert'===_0x375f41?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x26609d['Facebook']:return{'text':t('Insert'===_0x375f41?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x26609d['GDrive']:return{'text':t('Insert'===_0x375f41?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x26609d['GPhotos']:return{'text':t('Insert'===_0x375f41?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x26609d['OneDrive']:return{'text':t('Insert'===_0x375f41?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x204e5a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x451c56=_0x4a29;(function(_0x56f1ba,_0x3d7989){var _0x364b46=_0x4a29,_0x5c7c99=_0x56f1ba();while(!![]){try{var _0x50e705=-parseInt(_0x364b46(0x1b2))/0x1+-parseInt(_0x364b46(0x1a6))/0x2*(parseInt(_0x364b46(0x1a2))/0x3)+parseInt(_0x364b46(0x1a4))/0x4+parseInt(_0x364b46(0x1af))/0x5*(parseInt(_0x364b46(0x1b5))/0x6)+-parseInt(_0x364b46(0x1b3))/0x7*(-parseInt(_0x364b46(0x1ae))/0x8)+-parseInt(_0x364b46(0x1ab))/0x9*(parseInt(_0x364b46(0x1a8))/0xa)+-parseInt(_0x364b46(0x1b4))/0xb;if(_0x50e705===_0x3d7989)break;else _0x5c7c99['push'](_0x5c7c99['shift']());}catch(_0x613b07){_0x5c7c99['push'](_0x5c7c99['shift']());}}}(_0x5b8e,0xb880d));function _0x4a29(_0x51819f,_0xd5f90f){var _0x5b8e4e=_0x5b8e();return _0x4a29=function(_0x4a2910,_0x207006){_0x4a2910=_0x4a2910-0x1a2;var _0x154e32=_0x5b8e4e[_0x4a2910];return _0x154e32;},_0x4a29(_0x51819f,_0xd5f90f);}function _0x5b8e(){var _0x1ff9c4=['2421ejBylP','true','getFocusableElement','104ffTJTI','5QKQgvQ','div','focusTracker','36817uVKqrr','769328zqGLeb','18565613MvpImg','5853396EMNhBi','70095eavzWb','bindTemplate','3300736MvSnnd','focusCycler','56aQsCke','fire','3530azGKFC','forwardCycle','createCollection'];_0x5b8e=function(){return _0x1ff9c4;};return _0x5b8e();}import{FocusTracker as _0x177a09}from'ckeditor5/src/utils.js';import{View as _0x2255a3,FocusCycler as _0x1eb842}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2255a3{[_0x451c56(0x1b1)];[_0x451c56(0x1a5)];constructor(_0x197b6c){var _0x3d65b7=_0x451c56;super(_0x197b6c),this[_0x3d65b7(0x1b1)]=new _0x177a09(),this[_0x3d65b7(0x1a5)]=new _0x1eb842({'focusables':this[_0x3d65b7(0x1aa)](),'focusTracker':this[_0x3d65b7(0x1b1)]});}[_0x451c56(0x1ad)](){var _0x1ec33e=_0x451c56;return{'tag':_0x1ec33e(0x1b0),'attributes':{'aria-hidden':_0x1ec33e(0x1ac),'tabindex':'0'},'on':{'focus':this[_0x1ec33e(0x1a3)]['to'](()=>{var _0x24a4f2=_0x1ec33e;this[_0x24a4f2(0x1a5)][_0x24a4f2(0x1a7)](_0x24a4f2(0x1a9));})}};}}
|