@ckeditor/ckeditor5-uploadcare 47.7.0-alpha.2 → 47.7.0-alpha.4
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 _0x333856=_0x1529;(function(_0x378477,_0x264c2f){const _0x35b970=_0x1529,_0x5a3bcb=_0x378477();while(!![]){try{const _0x592a58=-parseInt(_0x35b970(0x85))/0x1+parseInt(_0x35b970(0x8a))/0x2+parseInt(_0x35b970(0xc3))/0x3*(-parseInt(_0x35b970(0x99))/0x4)+-parseInt(_0x35b970(0x9b))/0x5+-parseInt(_0x35b970(0xd4))/0x6+-parseInt(_0x35b970(0x83))/0x7*(-parseInt(_0x35b970(0x89))/0x8)+parseInt(_0x35b970(0xc4))/0x9*(parseInt(_0x35b970(0xb1))/0xa);if(_0x592a58===_0x264c2f)break;else _0x5a3bcb['push'](_0x5a3bcb['shift']());}catch(_0x1bf2cb){_0x5a3bcb['push'](_0x5a3bcb['shift']());}}}(_0x593b,0x54061));import{Plugin as _0x5efb59}from'ckeditor5/src/core.js';function _0x593b(){const _0x4bb6bf=['1394616ImgYMM','113982cLyUxp','_initConversion','input[uploadcare-file-input]','uploadcare','insertImage','elementToAttribute','configElement','_initImageProcessingIndicator','fromCharCode','editing','uploadcare.uploader','getAttribute','isRegistered','for','_configElement','4tMHvXq','_initSchema','533830wfYxul','model','execute','PictureEditing','contentLanguage','extend','editor','schema','true','add','map','isPremiumPlugin','init','\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','appendChild','destroy','cleanupImage','getSelectedElement','_ctxElement','uploadcareImageReplace','remove','uploader-','7326010KbRxIf','ctxElement','upcast','config','_initConfig','listenTo','ucContextId','once','get','uc-config','requires','uploadcareImageId','uploadcare.pubkey','afterInit','data-uc-image-id','join','#uc-icon-arrow-down','removeAttribute','820905LOAVkS','9GlEvbt','commands','isOfficialPlugin','imageInline','uc-upload-ctx-provider','body','imageBlock','locale','downcast','selection','render','querySelector','document','pluginName','closeMax','replaceImageSource','2089914sqPrVP','conversion','iconHrefResolver','UploadcareEditing','14MhjjLC','href','65365WmzZuO','_initCtx','view','attributeToAttribute'];_0x593b=function(){return _0x4bb6bf;};return _0x593b();}import{Dialog as _0x2bac8e}from'ckeditor5/src/ui.js';import{createElement as _0x41fd7f,global as _0x456893,uid as _0x182fbe}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3a10c7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x184f77}from'./uploadcareuploadadapter.js';function _0x1529(_0x3f4562,_0x3cb0dc){const _0x593bce=_0x593b();return _0x1529=function(_0x152992,_0x52e547){_0x152992=_0x152992-0x83;let _0xb7ad2=_0x593bce[_0x152992];return _0xb7ad2;},_0x1529(_0x3f4562,_0x3cb0dc);}import{showImageProcessingIndicator as _0x2d5c12}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5efb59{[_0x333856(0x98)]=null;[_0x333856(0xad)]=null;static get[_0x333856(0xd1)](){const _0x2fafbe=_0x333856;return _0x2fafbe(0xd7);}static get[_0x333856(0xbb)](){const _0x3c411d=_0x333856;return[_0x3c411d(0x9e),_0x184f77,_0x2bac8e];}static get[_0x333856(0xc6)](){return!0x0;}static get[_0x333856(0xa6)](){return!0x0;}[_0x333856(0xb7)];get[_0x333856(0x90)](){const _0x543101=_0x333856;return this[_0x543101(0x98)];}get[_0x333856(0xb2)](){const _0x467260=_0x333856;return this[_0x467260(0xad)];}constructor(_0x1c45e9){const _0x523480=_0x333856;super(_0x1c45e9),this[_0x523480(0xb7)]=_0x182fbe();}[_0x333856(0xa7)](){const _0x4ea539=_0x333856,_0x4558d6=this[_0x4ea539(0xa1)];_0x4558d6[_0x4ea539(0xc5)][_0x4ea539(0xa4)](_0x4ea539(0x8d),new _0x3a10c7(_0x4558d6));}[_0x333856(0xbe)](){const _0xb908a2=_0x333856;this[_0xb908a2(0x9a)](),this[_0xb908a2(0x8b)](),this[_0xb908a2(0xb5)](),this[_0xb908a2(0x86)](),this[_0xb908a2(0x91)](),this[_0xb908a2(0xb6)](this[_0xb908a2(0xa1)],_0xb908a2(0xaa),()=>{const _0x4b2bda=_0xb908a2;this[_0x4b2bda(0x98)]&&(this[_0x4b2bda(0x98)][_0x4b2bda(0xaf)](),this[_0x4b2bda(0x98)]=null),this[_0x4b2bda(0xad)]&&(this[_0x4b2bda(0xad)][_0x4b2bda(0xaf)](),this[_0x4b2bda(0xad)]=null);const _0x57f17c=_0x456893[_0x4b2bda(0xd0)][_0x4b2bda(0xcf)](_0x4b2bda(0x8c));_0x57f17c&&_0x57f17c[_0x4b2bda(0xaf)]();}),async function(_0x53bb69){const _0x1ec18a=_0x15ef4d([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]),_0x28f4a8=0x535f8c3a,_0x22846e=0x53580b1a^_0x28f4a8,_0x3919cd=window[_0x15ef4d([0x44,0x61,0x74,0x65])][_0x15ef4d([0x6e,0x6f,0x77])](),_0x23f38a=_0x53bb69[_0x15ef4d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x393255=new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221ea5=>{_0x23f38a[_0x15ef4d([0x6f,0x6e,0x63,0x65])](_0x15ef4d([0x72,0x65,0x61,0x64,0x79]),_0x221ea5);}),_0x2e4756={[_0x15ef4d([0x6b,0x74,0x79])]:_0x15ef4d([0x45,0x43]),[_0x15ef4d([0x75,0x73,0x65])]:_0x15ef4d([0x73,0x69,0x67]),[_0x15ef4d([0x63,0x72,0x76])]:_0x15ef4d([0x50,0x2d,0x32,0x35,0x36]),[_0x15ef4d([0x78])]:_0x15ef4d([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]),[_0x15ef4d([0x79])]:_0x15ef4d([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]),[_0x15ef4d([0x61,0x6c,0x67])]:_0x15ef4d([0x45,0x53,0x32,0x35,0x36])},_0x4987d0=_0x23f38a[_0x15ef4d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15ef4d([0x67,0x65,0x74])](_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c1125(){let _0x382be0,_0x6c625=null,_0x33bc07=null;try{if(_0x4987d0==_0x15ef4d([0x47,0x50,0x4c]))return _0x15ef4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x382be0=_0x375a0f(),!_0x382be0)return _0x15ef4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x382be0[_0x15ef4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33bc07=_0x182e34(_0x382be0[_0x15ef4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x382be0[_0x15ef4d([0x6a,0x74,0x69])])),await _0x5b9991()?_0x27981f()?_0x1694a9()?_0x15ef4d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24325f()?(_0x382be0[_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15ef4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6c625=_0x3a87d5(_0x15ef4d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x511468()):_0x15ef4d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15ef4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15ef4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15ef4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1694a9(){const _0x5a9856=[_0x15ef4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15ef4d([0x74,0x72,0x69,0x61,0x6c])][_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x382be0[_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3919cd/0x3e8:0xe10*_0x22846e;return _0x382be0[_0x15ef4d([0x65,0x78,0x70])]<_0x5a9856;}function _0x27981f(){const _0x137d76=_0x382be0[_0x15ef4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x137d76&&(!!_0x137d76[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ef4d([0x2a]))||!!_0x137d76[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ef4d([0x55,0x50,0x4c,0x43])));}function _0x24325f(){const _0x292233=_0x1529,_0x254f7d=_0x382be0[_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x254f7d||0x0==_0x254f7d[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x115666}=new URL(window[_0x15ef4d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x292233(0x84)]);if(_0x254f7d[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115666))return!0x0;const _0x4ab29d=_0x115666[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e]));return _0x254f7d[_0x15ef4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53d082=>_0x53d082[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ef4d([0x2a])))[_0x15ef4d([0x6d,0x61,0x70])](_0x3c18a6=>_0x3c18a6[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e])))[_0x15ef4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x537135=>_0x537135[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ab29d[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15ef4d([0x6d,0x61,0x70])](_0x5a49ce=>Array(_0x4ab29d[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a49ce[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15ef4d([0x66,0x69,0x6c,0x6c])](_0x5a49ce[0x0]===_0x15ef4d([0x2a])?_0x15ef4d([0x2a]):'')[_0x15ef4d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a49ce))[_0x15ef4d([0x73,0x6f,0x6d,0x65])](_0x373e41=>_0x4ab29d[_0x15ef4d([0x65,0x76,0x65,0x72,0x79])]((_0x4db9a1,_0xeb8114)=>_0x373e41[_0xeb8114]===_0x4db9a1||_0x373e41[_0xeb8114]===_0x15ef4d([0x2a])));}function _0x511468(){return _0x6c625&&_0x33bc07?new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb7ef6c,_0x5f58fb)=>{_0x6c625[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0xb7ef6c,_0x5f58fb),_0x33bc07[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0xf44fcd=>{_0xf44fcd!=_0x15ef4d([0x56,0x61,0x6c,0x69,0x64])&&_0xb7ef6c(_0xf44fcd);},_0x5f58fb);}):_0x6c625||_0x33bc07||_0x15ef4d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x182e34(_0xd6e6d6,_0x27281e){return new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5503a3=>{if(_0x261a70())return _0x5503a3(_0x15ef4d([0x56,0x61,0x6c,0x69,0x64]));_0x3602f9(),_0x23f38a[_0x15ef4d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15ef4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d030d=!0x1;const _0x190dfe=_0x182fbe();function _0x280779(_0x3e22ec){return!!_0x3e22ec&&(typeof _0x3e22ec===_0x15ef4d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e22ec===_0x15ef4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e22ec[_0x15ef4d([0x74,0x68,0x65,0x6e])]===_0x15ef4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e22ec[_0x15ef4d([0x63,0x61,0x74,0x63,0x68])]===_0x15ef4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf1c34(_0x43cd02){_0x1c41b4(_0x43cd02)[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x3d2922=>{if(!_0x3d2922||_0x3d2922[_0x15ef4d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15ef4d([0x6f,0x6b]))return _0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x446927(_0x1b776f(_0x190dfe+_0x27281e))!=_0x3d2922[_0x15ef4d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15ef4d([0x56,0x61,0x6c,0x69,0x64]);})[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x3db842=>(_0x2accff(),_0x3db842),()=>{const _0x45469d=_0x3727ae();return null==_0x45469d?(_0x2accff(),_0x15ef4d([0x56,0x61,0x6c,0x69,0x64])):_0x15ef4d(_0x3919cd-_0x45469d>(0x7753083a^_0x28f4a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x5503a3)[_0x15ef4d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5503a3(_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x548b22=0x536962ba^_0x28f4a8;function _0x2accff(){const _0x29146c=_0x15ef4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446927(_0x1b776f(_0xd6e6d6)),_0x4b4f48=_0x308d0b(_0x446927(window[_0x15ef4d([0x4d,0x61,0x74,0x68])][_0x15ef4d([0x63,0x65,0x69,0x6c])](_0x3919cd/_0x548b22)));window[_0x15ef4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15ef4d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29146c,_0x4b4f48);}function _0x3727ae(){const _0xbe5745=_0x15ef4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446927(_0x1b776f(_0xd6e6d6)),_0x552e7c=window[_0x15ef4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15ef4d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbe5745);return _0x552e7c?window[_0x15ef4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x308d0b(_0x552e7c),0x10)*_0x548b22:null;}function _0x1c41b4(_0x51d252){return new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d299c,_0x14379c)=>{_0x51d252[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x2d299c,_0x14379c),window[_0x15ef4d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14379c,0x535e58fa^_0x28f4a8);});}}_0x23f38a[_0x15ef4d([0x6f,0x6e])](_0x15ef4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f3ddc,_0x2e5a18)=>{if(_0x2e5a18[0x0]!=_0xd6e6d6)return _0x5503a3(_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e5a18[0x1]={..._0x2e5a18[0x1],[_0x15ef4d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x190dfe};},{[_0x15ef4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15ef4d([0x68,0x69,0x67,0x68])}),_0x23f38a[_0x15ef4d([0x6f,0x6e])](_0x15ef4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5158a4=>{_0x280779(_0x5158a4[_0x15ef4d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d030d=!0x0,_0xf1c34(_0x5158a4[_0x15ef4d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15ef4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15ef4d([0x6c,0x6f,0x77])}),_0x393255[_0x15ef4d([0x74,0x68,0x65,0x6e])](()=>{_0x1d030d||_0x5503a3(_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x261a70(){return _0x23f38a[_0x15ef4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15ef4d([0x76,0x69,0x65,0x77])][_0x15ef4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15ef4d([0x61,0x75,0x74,0x6f]);}function _0x3602f9(){_0x23f38a[_0x15ef4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15ef4d([0x76,0x69,0x65,0x77])][_0x15ef4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15ef4d([0x61,0x75,0x74,0x6f]);}}function _0x3a87d5(_0x599379){const _0x5ccb18=[new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18aef0=>setTimeout(_0x18aef0,0x5356b2f6^_0x28f4a8)),_0x393255[_0x15ef4d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18d23d=>{let _0x49d93c=0x0;_0x23f38a[_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ef4d([0x6f,0x6e])](_0x15ef4d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fafbe,_0x353559)=>{_0x353559[0x0][_0x15ef4d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49d93c++,_0x49d93c==(0x535f89d2^_0x28f4a8)&&(_0x18d23d(),_0x1fafbe[_0x15ef4d([0x6f,0x66,0x66])]());});}))];return window[_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15ef4d([0x72,0x61,0x63,0x65])](_0x5ccb18)[_0x15ef4d([0x74,0x68,0x65,0x6e])](()=>_0x599379);}async function _0x35d348(){await _0x393255,_0x23f38a[_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ef4d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46c4d1,_0x23f38a[_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ef4d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46c4d1,_0x23f38a[_0x15ef4d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f019b(_0x4e73f4){const _0x502e9b=_0x1f18be();_0x23f38a[_0x502e9b]=_0x15ef4d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e73f4,_0x4e73f4!=_0x15ef4d([0x56,0x61,0x6c,0x69,0x64])&&_0x35d348();}function _0x1f18be(){const _0x8fc29b=window[_0x15ef4d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15ef4d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15ef4d([0x6e,0x6f,0x77])]())[_0x15ef4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15ef4d([0x2e]),'');let _0x91f0dd=_0x15ef4d([0x68]);for(let _0x2673de=0x0;_0x2673de<_0x8fc29b[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2673de+=0x2){let _0x1797d9=window[_0x15ef4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8fc29b[_0x15ef4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2673de,_0x2673de+0x2));_0x1797d9>=_0x1ec18a[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1797d9-=_0x1ec18a[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x91f0dd+=_0x1ec18a[_0x1797d9];}return _0x91f0dd;}function _0x375a0f(){const _0x38a26e=_0x4987d0[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e]));if(0x3!=_0x38a26e[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c2f2c(_0x38a26e[0x1]);function _0x1c2f2c(_0x4124ab){const _0x39ad1d=_0x507d1f(_0x4124ab);return _0x39ad1d&&_0x47cd47()?_0x39ad1d:null;function _0x47cd47(){const _0x5733e8=_0x39ad1d[_0x15ef4d([0x6a,0x74,0x69])],_0x10006a=window[_0x15ef4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5733e8[_0x15ef4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5733e8[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1561e0={..._0x39ad1d,[_0x15ef4d([0x6a,0x74,0x69])]:_0x5733e8[_0x15ef4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5733e8[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1561e0[_0x15ef4d([0x76,0x63])],_0x1b776f(_0x1561e0)==_0x10006a;}}}async function _0x5b9991(){let _0x120955=!0x0;try{const _0x5f2226=_0x4987d0[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e])),[_0x5a6999,_0x48538,_0x1dee68]=_0x5f2226;return _0x398d58(_0x5a6999),await _0x36004e(_0x5a6999,_0x48538,_0x1dee68),_0x120955;}catch{return!0x1;}function _0x398d58(_0x2aaf71){const _0x3afcf4=_0x507d1f(_0x2aaf71);_0x3afcf4&&_0x3afcf4[_0x15ef4d([0x61,0x6c,0x67])]==_0x15ef4d([0x45,0x53,0x32,0x35,0x36])||(_0x120955=!0x1);}async function _0x36004e(_0x541b80,_0x3766fe,_0x36bfd9){const _0x231faa=window[_0x15ef4d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15ef4d([0x66,0x72,0x6f,0x6d])](_0x9977b(_0x36bfd9),_0x4dd01d=>_0x4dd01d[_0x15ef4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e45b4=new window[(_0x15ef4d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15ef4d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x541b80+_0x15ef4d([0x2e])+_0x3766fe),_0x41e59a=window[_0x15ef4d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15ef4d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41e59a)return;const _0x24dac5=await _0x41e59a[_0x15ef4d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15ef4d([0x6a,0x77,0x6b]),_0x2e4756,{[_0x15ef4d([0x6e,0x61,0x6d,0x65])]:_0x15ef4d([0x45,0x43,0x44,0x53,0x41]),[_0x15ef4d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15ef4d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15ef4d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41e59a[_0x15ef4d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15ef4d([0x6e,0x61,0x6d,0x65])]:_0x15ef4d([0x45,0x43,0x44,0x53,0x41]),[_0x15ef4d([0x68,0x61,0x73,0x68])]:{[_0x15ef4d([0x6e,0x61,0x6d,0x65])]:_0x15ef4d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24dac5,_0x231faa,_0x3e45b4)||(_0x120955=!0x1);}}function _0x507d1f(_0x55abd6){return _0x55abd6[_0x15ef4d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15ef4d([0x65,0x79]))?JSON[_0x15ef4d([0x70,0x61,0x72,0x73,0x65])](_0x9977b(_0x55abd6)):null;}function _0x9977b(_0x27abd5){return window[_0x15ef4d([0x61,0x74,0x6f,0x62])](_0x27abd5[_0x15ef4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15ef4d([0x2b]))[_0x15ef4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15ef4d([0x2f])));}function _0x1b776f(_0x2da56f){let _0x10bd2e=0x1505;function _0x1c4ac7(_0x41dbbc){for(let _0x465798=0x0;_0x465798<_0x41dbbc[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x465798++){const _0x2dfe0e=_0x41dbbc[_0x15ef4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x465798);_0x10bd2e=(_0x10bd2e<<0x5)+_0x10bd2e+_0x2dfe0e,_0x10bd2e&=_0x10bd2e;}}function _0x2f58f8(_0x4b87a1){Array[_0x15ef4d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b87a1)?_0x4b87a1[_0x15ef4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f58f8):_0x4b87a1&&typeof _0x4b87a1==_0x15ef4d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15ef4d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b87a1)[_0x15ef4d([0x73,0x6f,0x72,0x74])]()[_0x15ef4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x296330,_0x2db1be])=>{_0x1c4ac7(_0x296330),_0x2f58f8(_0x2db1be);}):_0x1c4ac7(window[_0x15ef4d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b87a1));}return _0x2f58f8(_0x2da56f),_0x10bd2e>>>0x0;}function _0x446927(_0x4fbd23){return _0x4fbd23[_0x15ef4d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15ef4d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15ef4d([0x30]));}function _0x308d0b(_0x536bec){return _0x536bec[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15ef4d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15ef4d([0x6a,0x6f,0x69,0x6e])]('');}function _0x46c4d1(){}function _0x15ef4d(_0x266cec){const _0x3ce435=_0x1529;return _0x266cec[_0x3ce435(0xa5)](_0x69fe3=>String[_0x3ce435(0x92)](_0x69fe3))[_0x3ce435(0xc0)]('');}_0x2f019b(await _0x2c1125());}(this);}[_0x333856(0x9a)](){const _0x1fcabf=_0x333856,_0x48fe2f=this[_0x1fcabf(0xa1)][_0x1fcabf(0x9c)][_0x1fcabf(0xa2)];_0x48fe2f[_0x1fcabf(0x96)](_0x1fcabf(0xca))&&_0x48fe2f[_0x1fcabf(0xa0)](_0x1fcabf(0xca),{'allowAttributes':[_0x1fcabf(0xbc)]}),_0x48fe2f[_0x1fcabf(0x96)](_0x1fcabf(0xc7))&&_0x48fe2f[_0x1fcabf(0xa0)](_0x1fcabf(0xc7),{'allowAttributes':[_0x1fcabf(0xbc)]});}[_0x333856(0x8b)](){const _0x209f58=_0x333856,_0x243681=this[_0x209f58(0xa1)];_0x243681[_0x209f58(0xd5)][_0x209f58(0x97)](_0x209f58(0xcc))[_0x209f58(0x88)]({'model':_0x209f58(0xbc),'view':_0x209f58(0xbf)}),_0x243681[_0x209f58(0xd5)][_0x209f58(0x97)](_0x209f58(0xb3))[_0x209f58(0x8f)]({'model':{'key':_0x209f58(0xbc),'value':_0x3aa35f=>_0x3aa35f[_0x209f58(0x95)](_0x209f58(0xbf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x25e590=_0x243681[_0x209f58(0xc5)][_0x209f58(0xb9)](_0x209f58(0xd3));_0x25e590&&this[_0x209f58(0xb6)](_0x25e590,_0x209f58(0xab),(_0x1f39d0,[_0x436d42,_0x4cbaf2])=>{const _0x56f8b6=_0x209f58;_0x436d42[_0x56f8b6(0xc2)](_0x56f8b6(0xbc),_0x4cbaf2);});}[_0x333856(0xb5)](){const _0x520fce=_0x333856,_0x5e4d07=this[_0x520fce(0xa1)][_0x520fce(0xb4)][_0x520fce(0xb9)](_0x520fce(0x94))||{},_0x21bcb3=this[_0x520fce(0xa1)][_0x520fce(0xb4)][_0x520fce(0xb9)](_0x520fce(0xbd))||'';this[_0x520fce(0x98)]=_0x41fd7f(_0x456893[_0x520fce(0xd0)],_0x520fce(0xba),{..._0x5e4d07,'pubkey':_0x21bcb3,'ctx-name':_0x520fce(0xb0)+this[_0x520fce(0xb7)],'sourceList':'','imgOnly':_0x520fce(0xa3),'removeCopyright':_0x520fce(0xa3),'localeName':this[_0x520fce(0xa1)][_0x520fce(0xcb)][_0x520fce(0x9f)],'externalSourcesEmbedCss':_0x520fce(0xa8)}),this[_0x520fce(0x98)][_0x520fce(0xd6)]=_0x2025c0=>{const _0xb15984=_0x520fce;if(_0xb15984(0xd2)==_0x2025c0)return _0xb15984(0xc1);},_0x456893[_0x520fce(0xd0)][_0x520fce(0xc9)][_0x520fce(0xa9)](this[_0x520fce(0x98)]);}[_0x333856(0x86)](){const _0x1e1e93=_0x333856;this[_0x1e1e93(0xad)]=_0x41fd7f(_0x456893[_0x1e1e93(0xd0)],_0x1e1e93(0xc8),{'ctx-name':_0x1e1e93(0xb0)+this[_0x1e1e93(0xb7)]}),_0x456893[_0x1e1e93(0xd0)][_0x1e1e93(0xc9)][_0x1e1e93(0xa9)](this[_0x1e1e93(0xad)]);}[_0x333856(0x91)](){const _0x3df458=_0x333856,_0x59cfdb=this[_0x3df458(0xa1)][_0x3df458(0xc5)][_0x3df458(0xb9)](_0x3df458(0x8e));_0x59cfdb&&this[_0x3df458(0xb6)](_0x59cfdb,_0x3df458(0x9d),()=>{const _0x2ef4ef=_0x3df458,_0x2d7e85=this[_0x2ef4ef(0xa1)][_0x2ef4ef(0x9c)][_0x2ef4ef(0xd0)][_0x2ef4ef(0xcd)][_0x2ef4ef(0xac)]();_0x2d7e85&&_0x2d7e85[_0x2ef4ef(0x95)](_0x2ef4ef(0xbc))&&this[_0x2ef4ef(0xa1)][_0x2ef4ef(0x93)][_0x2ef4ef(0x87)][_0x2ef4ef(0xb8)](_0x2ef4ef(0xce),()=>{const _0x2858be=_0x2ef4ef;_0x2d5c12(this[_0x2858be(0xa1)],_0x2d7e85);});});const _0x5518f7=this[_0x3df458(0xa1)][_0x3df458(0xc5)][_0x3df458(0xb9)](_0x3df458(0xae));_0x5518f7&&this[_0x3df458(0xb6)](_0x5518f7,_0x3df458(0x9d),()=>{const _0xe20ce3=_0x3df458,_0x156c97=this[_0xe20ce3(0xa1)][_0xe20ce3(0x9c)][_0xe20ce3(0xd0)][_0xe20ce3(0xcd)][_0xe20ce3(0xac)]();_0x156c97&&_0x156c97[_0xe20ce3(0x95)](_0xe20ce3(0xbc))&&this[_0xe20ce3(0xa1)][_0xe20ce3(0x93)][_0xe20ce3(0x87)][_0xe20ce3(0xb8)](_0xe20ce3(0xce),()=>{const _0x1512d8=_0xe20ce3;_0x2d5c12(this[_0x1512d8(0xa1)],_0x156c97);});});}}
|
|
23
|
+
const _0x139a22=_0x58fd;(function(_0xc79359,_0x133702){const _0x28f1f1=_0x58fd,_0x2d7405=_0xc79359();while(!![]){try{const _0x501bc2=parseInt(_0x28f1f1(0xf4))/0x1+parseInt(_0x28f1f1(0xf2))/0x2*(-parseInt(_0x28f1f1(0xdb))/0x3)+-parseInt(_0x28f1f1(0x108))/0x4*(-parseInt(_0x28f1f1(0x103))/0x5)+parseInt(_0x28f1f1(0xda))/0x6+parseInt(_0x28f1f1(0x123))/0x7+-parseInt(_0x28f1f1(0xdd))/0x8+parseInt(_0x28f1f1(0x129))/0x9*(-parseInt(_0x28f1f1(0x120))/0xa);if(_0x501bc2===_0x133702)break;else _0x2d7405['push'](_0x2d7405['shift']());}catch(_0x115ecc){_0x2d7405['push'](_0x2d7405['shift']());}}}(_0x39c9,0xe2bdc));import{Plugin as _0x3f1d30}from'ckeditor5/src/core.js';import{Dialog as _0x8f9d93}from'ckeditor5/src/ui.js';import{createElement as _0x1fe38e,global as _0x2810fe,uid as _0x59bb61}from'ckeditor5/src/utils.js';function _0x58fd(_0x220410,_0x54e026){const _0x39c956=_0x39c9();return _0x58fd=function(_0x58fd12,_0xbaa7c7){_0x58fd12=_0x58fd12-0xd5;let _0xcb9e9e=_0x39c956[_0x58fd12];return _0xcb9e9e;},_0x58fd(_0x220410,_0x54e026);}import{UploadcareCommand as _0x20be4d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x362b5b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5d2e95}from'./utils/editingutils.js';function _0x39c9(){const _0x241b7a=['appendChild','add','imageBlock','locale','_ctxElement','body','getSelectedElement','uploadcare.uploader','once','elementToAttribute','attributeToAttribute','render','_configElement','configElement','isRegistered','editor','contentLanguage','807770nyGsRY','true','join','12267115scgouC','replaceImageSource','#uc-icon-arrow-down','imageInline','cleanupImage','getAttribute','207BMPESA','_initConfig','uc-upload-ctx-provider','get','data-uc-image-id','pluginName','1548480jtyhfr','380634ZMNjeK','_initImageProcessingIndicator','13836504ibtEfo','ctxElement','ucContextId','href','map','uploader-','uploadcareImageId','remove','\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','upcast','removeAttribute','isOfficialPlugin','execute','destroy','fromCharCode','uploadcare','_initConversion','init','_initSchema','uploadcareImageReplace','schema','10glBjxH','closeMax','1471736QFkKPM','selection','document','model','input[uploadcare-file-input]','for','PictureEditing','isPremiumPlugin','querySelector','listenTo','requires','config','insertImage','iconHrefResolver','uploadcare.pubkey','475KsYEEM','downcast','afterInit','view','commands','70244UAvCUZ','UploadcareEditing','editing','extend','conversion','_initCtx','uc-config'];_0x39c9=function(){return _0x241b7a;};return _0x39c9();}export class UploadcareEditing extends _0x3f1d30{[_0x139a22(0x11b)]=null;[_0x139a22(0x113)]=null;static get[_0x139a22(0xd9)](){const _0x5d3c9a=_0x139a22;return _0x5d3c9a(0x109);}static get[_0x139a22(0xfe)](){const _0x451ae1=_0x139a22;return[_0x451ae1(0xfa),_0x362b5b,_0x8f9d93];}static get[_0x139a22(0xe8)](){return!0x0;}static get[_0x139a22(0xfb)](){return!0x0;}[_0x139a22(0xdf)];get[_0x139a22(0x11c)](){const _0x302254=_0x139a22;return this[_0x302254(0x11b)];}get[_0x139a22(0xde)](){const _0x2c24eb=_0x139a22;return this[_0x2c24eb(0x113)];}constructor(_0x7bfa3f){const _0x4c5bda=_0x139a22;super(_0x7bfa3f),this[_0x4c5bda(0xdf)]=_0x59bb61();}[_0x139a22(0xee)](){const _0x3c6402=_0x139a22,_0x3502f8=this[_0x3c6402(0x11e)];_0x3502f8[_0x3c6402(0x107)][_0x3c6402(0x110)](_0x3c6402(0xec),new _0x20be4d(_0x3502f8));}[_0x139a22(0x105)](){const _0x317bdf=_0x139a22;this[_0x317bdf(0xef)](),this[_0x317bdf(0xed)](),this[_0x317bdf(0xd5)](),this[_0x317bdf(0x10d)](),this[_0x317bdf(0xdc)](),this[_0x317bdf(0xfd)](this[_0x317bdf(0x11e)],_0x317bdf(0xea),()=>{const _0x1262a7=_0x317bdf;this[_0x1262a7(0x11b)]&&(this[_0x1262a7(0x11b)][_0x1262a7(0xe4)](),this[_0x1262a7(0x11b)]=null),this[_0x1262a7(0x113)]&&(this[_0x1262a7(0x113)][_0x1262a7(0xe4)](),this[_0x1262a7(0x113)]=null);const _0x3fc3e1=_0x2810fe[_0x1262a7(0xf6)][_0x1262a7(0xfc)](_0x1262a7(0xf8));_0x3fc3e1&&_0x3fc3e1[_0x1262a7(0xe4)]();}),async function(_0x316800){const _0x5df77b=_0x1038d4([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]),_0x2b5e6f=0x535f8c3a,_0x4eb968=0x53580b6a^_0x2b5e6f,_0xbccd8b=window[_0x1038d4([0x44,0x61,0x74,0x65])][_0x1038d4([0x6e,0x6f,0x77])](),_0x4e73fb=_0x316800[_0x1038d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x203805=new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x303367=>{_0x4e73fb[_0x1038d4([0x6f,0x6e,0x63,0x65])](_0x1038d4([0x72,0x65,0x61,0x64,0x79]),_0x303367);}),_0x4d340a={[_0x1038d4([0x6b,0x74,0x79])]:_0x1038d4([0x45,0x43]),[_0x1038d4([0x75,0x73,0x65])]:_0x1038d4([0x73,0x69,0x67]),[_0x1038d4([0x63,0x72,0x76])]:_0x1038d4([0x50,0x2d,0x32,0x35,0x36]),[_0x1038d4([0x78])]:_0x1038d4([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]),[_0x1038d4([0x79])]:_0x1038d4([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]),[_0x1038d4([0x61,0x6c,0x67])]:_0x1038d4([0x45,0x53,0x32,0x35,0x36])},_0x22c953=_0x4e73fb[_0x1038d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1038d4([0x67,0x65,0x74])](_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cc565(){let _0x49c268,_0x58c023=null,_0x7e9108=null;try{if(_0x22c953==_0x1038d4([0x47,0x50,0x4c]))return _0x1038d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49c268=_0x29318e(),!_0x49c268)return _0x1038d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49c268[_0x1038d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7e9108=_0x252b77(_0x49c268[_0x1038d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49c268[_0x1038d4([0x6a,0x74,0x69])])),await _0x346568()?_0x323abc()?_0xf04ab8()?_0x1038d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x195069()?(_0x49c268[_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1038d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58c023=_0x3118fe(_0x1038d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57e6f1()):_0x1038d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1038d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1038d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1038d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf04ab8(){const _0x5e9c20=[_0x1038d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1038d4([0x74,0x72,0x69,0x61,0x6c])][_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c268[_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbccd8b/0x3e8:0xe10*_0x4eb968;return _0x49c268[_0x1038d4([0x65,0x78,0x70])]<_0x5e9c20;}function _0x323abc(){const _0x3fbf69=_0x49c268[_0x1038d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3fbf69&&(!!_0x3fbf69[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1038d4([0x2a]))||!!_0x3fbf69[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1038d4([0x55,0x50,0x4c,0x43])));}function _0x195069(){const _0x46519d=_0x58fd,_0x5a754c=_0x49c268[_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a754c||0x0==_0x5a754c[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x554994}=new URL(window[_0x1038d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x46519d(0xe0)]);if(_0x5a754c[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554994))return!0x0;const _0xe8feaa=_0x554994[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e]));return _0x5a754c[_0x1038d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e25dd=>_0x3e25dd[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1038d4([0x2a])))[_0x1038d4([0x6d,0x61,0x70])](_0x3e7ef6=>_0x3e7ef6[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e])))[_0x1038d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cab05=>_0x4cab05[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe8feaa[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1038d4([0x6d,0x61,0x70])](_0x1e61d9=>Array(_0xe8feaa[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e61d9[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1038d4([0x66,0x69,0x6c,0x6c])](_0x1e61d9[0x0]===_0x1038d4([0x2a])?_0x1038d4([0x2a]):'')[_0x1038d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e61d9))[_0x1038d4([0x73,0x6f,0x6d,0x65])](_0x2f4dfc=>_0xe8feaa[_0x1038d4([0x65,0x76,0x65,0x72,0x79])]((_0x1c5eb3,_0x43c8bb)=>_0x2f4dfc[_0x43c8bb]===_0x1c5eb3||_0x2f4dfc[_0x43c8bb]===_0x1038d4([0x2a])));}function _0x57e6f1(){return _0x58c023&&_0x7e9108?new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x225f33,_0x38aca5)=>{_0x58c023[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x225f33,_0x38aca5),_0x7e9108[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x36143d=>{_0x36143d!=_0x1038d4([0x56,0x61,0x6c,0x69,0x64])&&_0x225f33(_0x36143d);},_0x38aca5);}):_0x58c023||_0x7e9108||_0x1038d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x252b77(_0x55c386,_0x946ce2){return new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c845d=>{if(_0x54ca56())return _0x1c845d(_0x1038d4([0x56,0x61,0x6c,0x69,0x64]));_0x404e7d(),_0x4e73fb[_0x1038d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1038d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5942c2=!0x1;const _0x3ee98f=_0x59bb61();function _0x535d60(_0x44fc04){return!!_0x44fc04&&(typeof _0x44fc04===_0x1038d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x44fc04===_0x1038d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x44fc04[_0x1038d4([0x74,0x68,0x65,0x6e])]===_0x1038d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x44fc04[_0x1038d4([0x63,0x61,0x74,0x63,0x68])]===_0x1038d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f8e15(_0x54ee47){_0x24c531(_0x54ee47)[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x93b7db=>{if(!_0x93b7db||_0x93b7db[_0x1038d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1038d4([0x6f,0x6b]))return _0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x361f96(_0x6e1ff(_0x3ee98f+_0x946ce2))!=_0x93b7db[_0x1038d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1038d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x9b63e1=>(_0x32f972(),_0x9b63e1),()=>{const _0x28a23d=_0x11b43d();return null==_0x28a23d?(_0x32f972(),_0x1038d4([0x56,0x61,0x6c,0x69,0x64])):_0x1038d4(_0xbccd8b-_0x28a23d>(0x7753083a^_0x2b5e6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x1c845d)[_0x1038d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c845d(_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fbada=0x536962ba^_0x2b5e6f;function _0x32f972(){const _0x35f5ac=_0x1038d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x361f96(_0x6e1ff(_0x55c386)),_0x2704ea=_0x464c99(_0x361f96(window[_0x1038d4([0x4d,0x61,0x74,0x68])][_0x1038d4([0x63,0x65,0x69,0x6c])](_0xbccd8b/_0x4fbada)));window[_0x1038d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1038d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35f5ac,_0x2704ea);}function _0x11b43d(){const _0x125f8c=_0x1038d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x361f96(_0x6e1ff(_0x55c386)),_0x38a6c2=window[_0x1038d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1038d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x125f8c);return _0x38a6c2?window[_0x1038d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464c99(_0x38a6c2),0x10)*_0x4fbada:null;}function _0x24c531(_0x4bb8b6){return new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a50a6,_0x3e5729)=>{_0x4bb8b6[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x1a50a6,_0x3e5729),window[_0x1038d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e5729,0x535e58fa^_0x2b5e6f);});}}_0x4e73fb[_0x1038d4([0x6f,0x6e])](_0x1038d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e76b3,_0x5863a7)=>{if(_0x5863a7[0x0]!=_0x55c386)return _0x1c845d(_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5863a7[0x1]={..._0x5863a7[0x1],[_0x1038d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ee98f};},{[_0x1038d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1038d4([0x68,0x69,0x67,0x68])}),_0x4e73fb[_0x1038d4([0x6f,0x6e])](_0x1038d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57d5ea=>{_0x535d60(_0x57d5ea[_0x1038d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5942c2=!0x0,_0x1f8e15(_0x57d5ea[_0x1038d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1038d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1038d4([0x6c,0x6f,0x77])}),_0x203805[_0x1038d4([0x74,0x68,0x65,0x6e])](()=>{_0x5942c2||_0x1c845d(_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54ca56(){return _0x4e73fb[_0x1038d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1038d4([0x76,0x69,0x65,0x77])][_0x1038d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1038d4([0x61,0x75,0x74,0x6f]);}function _0x404e7d(){_0x4e73fb[_0x1038d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1038d4([0x76,0x69,0x65,0x77])][_0x1038d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1038d4([0x61,0x75,0x74,0x6f]);}}function _0x3118fe(_0x5e57dc){const _0x3e3e4b=[new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f481a=>setTimeout(_0x4f481a,0x5356b2f6^_0x2b5e6f)),_0x203805[_0x1038d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410891=>{let _0x21d157=0x0;_0x4e73fb[_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1038d4([0x6f,0x6e])](_0x1038d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x227f76,_0x84aa3)=>{_0x84aa3[0x0][_0x1038d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21d157++,_0x21d157==(0x535f89d2^_0x2b5e6f)&&(_0x410891(),_0x227f76[_0x1038d4([0x6f,0x66,0x66])]());});}))];return window[_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1038d4([0x72,0x61,0x63,0x65])](_0x3e3e4b)[_0x1038d4([0x74,0x68,0x65,0x6e])](()=>_0x5e57dc);}async function _0x17a239(){await _0x203805,_0x4e73fb[_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1038d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e7fe0,_0x4e73fb[_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1038d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e7fe0,_0x4e73fb[_0x1038d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3dd4b1(_0x304f19){const _0x3d74bb=_0x3ec1c5();_0x4e73fb[_0x3d74bb]=_0x1038d4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x304f19,_0x304f19!=_0x1038d4([0x56,0x61,0x6c,0x69,0x64])&&_0x17a239();}function _0x3ec1c5(){const _0x3a2ff8=window[_0x1038d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1038d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1038d4([0x6e,0x6f,0x77])]())[_0x1038d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1038d4([0x2e]),'');let _0xfb3d3e=_0x1038d4([0x68]);for(let _0x328c9a=0x0;_0x328c9a<_0x3a2ff8[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x328c9a+=0x2){let _0x3fdceb=window[_0x1038d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a2ff8[_0x1038d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x328c9a,_0x328c9a+0x2));_0x3fdceb>=_0x5df77b[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fdceb-=_0x5df77b[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfb3d3e+=_0x5df77b[_0x3fdceb];}return _0xfb3d3e;}function _0x29318e(){const _0x5e61d3=_0x22c953[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e]));if(0x3!=_0x5e61d3[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b4372(_0x5e61d3[0x1]);function _0x5b4372(_0x3ce34a){const _0x49d52e=_0x1ce6a7(_0x3ce34a);return _0x49d52e&&_0x5b3665()?_0x49d52e:null;function _0x5b3665(){const _0x3c89d1=_0x49d52e[_0x1038d4([0x6a,0x74,0x69])],_0x32b201=window[_0x1038d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c89d1[_0x1038d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c89d1[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x570dcb={..._0x49d52e,[_0x1038d4([0x6a,0x74,0x69])]:_0x3c89d1[_0x1038d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c89d1[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x570dcb[_0x1038d4([0x76,0x63])],_0x6e1ff(_0x570dcb)==_0x32b201;}}}async function _0x346568(){let _0x10e40c=!0x0;try{const _0x257e52=_0x22c953[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e])),[_0x1cf249,_0xe5ed15,_0x335007]=_0x257e52;return _0x2ab0cd(_0x1cf249),await _0x43536e(_0x1cf249,_0xe5ed15,_0x335007),_0x10e40c;}catch{return!0x1;}function _0x2ab0cd(_0x48c56a){const _0x2e2c1e=_0x1ce6a7(_0x48c56a);_0x2e2c1e&&_0x2e2c1e[_0x1038d4([0x61,0x6c,0x67])]==_0x1038d4([0x45,0x53,0x32,0x35,0x36])||(_0x10e40c=!0x1);}async function _0x43536e(_0x5a9bb0,_0x1facb6,_0x5a0d91){const _0xad14e=window[_0x1038d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1038d4([0x66,0x72,0x6f,0x6d])](_0x18279d(_0x5a0d91),_0xaadf41=>_0xaadf41[_0x1038d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e5bef=new window[(_0x1038d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1038d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a9bb0+_0x1038d4([0x2e])+_0x1facb6),_0x1f4823=window[_0x1038d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1038d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f4823)return;const _0x389ce2=await _0x1f4823[_0x1038d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1038d4([0x6a,0x77,0x6b]),_0x4d340a,{[_0x1038d4([0x6e,0x61,0x6d,0x65])]:_0x1038d4([0x45,0x43,0x44,0x53,0x41]),[_0x1038d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1038d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1038d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f4823[_0x1038d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1038d4([0x6e,0x61,0x6d,0x65])]:_0x1038d4([0x45,0x43,0x44,0x53,0x41]),[_0x1038d4([0x68,0x61,0x73,0x68])]:{[_0x1038d4([0x6e,0x61,0x6d,0x65])]:_0x1038d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x389ce2,_0xad14e,_0x3e5bef)||(_0x10e40c=!0x1);}}function _0x1ce6a7(_0x157a8e){return _0x157a8e[_0x1038d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1038d4([0x65,0x79]))?JSON[_0x1038d4([0x70,0x61,0x72,0x73,0x65])](_0x18279d(_0x157a8e)):null;}function _0x18279d(_0x41e7f6){return window[_0x1038d4([0x61,0x74,0x6f,0x62])](_0x41e7f6[_0x1038d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1038d4([0x2b]))[_0x1038d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1038d4([0x2f])));}function _0x6e1ff(_0x442fa7){let _0x5adbeb=0x1505;function _0x1b1aef(_0x455c80){for(let _0x1d3f60=0x0;_0x1d3f60<_0x455c80[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d3f60++){const _0x518f58=_0x455c80[_0x1038d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d3f60);_0x5adbeb=(_0x5adbeb<<0x5)+_0x5adbeb+_0x518f58,_0x5adbeb&=_0x5adbeb;}}function _0x44c039(_0x28062d){Array[_0x1038d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28062d)?_0x28062d[_0x1038d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44c039):_0x28062d&&typeof _0x28062d==_0x1038d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1038d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28062d)[_0x1038d4([0x73,0x6f,0x72,0x74])]()[_0x1038d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x170d38,_0x5b2bd6])=>{_0x1b1aef(_0x170d38),_0x44c039(_0x5b2bd6);}):_0x1b1aef(window[_0x1038d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28062d));}return _0x44c039(_0x442fa7),_0x5adbeb>>>0x0;}function _0x361f96(_0x1e0c38){return _0x1e0c38[_0x1038d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1038d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1038d4([0x30]));}function _0x464c99(_0xd9d635){return _0xd9d635[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1038d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1038d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e7fe0(){}function _0x1038d4(_0x464a68){const _0x499fc1=_0x58fd;return _0x464a68[_0x499fc1(0xe1)](_0x44d444=>String[_0x499fc1(0xeb)](_0x44d444))[_0x499fc1(0x122)]('');}_0x3dd4b1(await _0x5cc565());}(this);}[_0x139a22(0xef)](){const _0x11c1c2=_0x139a22,_0x2bd0be=this[_0x11c1c2(0x11e)][_0x11c1c2(0xf7)][_0x11c1c2(0xf1)];_0x2bd0be[_0x11c1c2(0x11d)](_0x11c1c2(0x111))&&_0x2bd0be[_0x11c1c2(0x10b)](_0x11c1c2(0x111),{'allowAttributes':[_0x11c1c2(0xe3)]}),_0x2bd0be[_0x11c1c2(0x11d)](_0x11c1c2(0x126))&&_0x2bd0be[_0x11c1c2(0x10b)](_0x11c1c2(0x126),{'allowAttributes':[_0x11c1c2(0xe3)]});}[_0x139a22(0xed)](){const _0x45c1fa=_0x139a22,_0x387f50=this[_0x45c1fa(0x11e)];_0x387f50[_0x45c1fa(0x10c)][_0x45c1fa(0xf9)](_0x45c1fa(0x104))[_0x45c1fa(0x119)]({'model':_0x45c1fa(0xe3),'view':_0x45c1fa(0xd8)}),_0x387f50[_0x45c1fa(0x10c)][_0x45c1fa(0xf9)](_0x45c1fa(0xe6))[_0x45c1fa(0x118)]({'model':{'key':_0x45c1fa(0xe3),'value':_0x22a667=>_0x22a667[_0x45c1fa(0x128)](_0x45c1fa(0xd8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f5b64=_0x387f50[_0x45c1fa(0x107)][_0x45c1fa(0xd7)](_0x45c1fa(0x124));_0x3f5b64&&this[_0x45c1fa(0xfd)](_0x3f5b64,_0x45c1fa(0x127),(_0x2bb125,[_0x1d27cf,_0x4ff5b7])=>{const _0x3c7dc=_0x45c1fa;_0x1d27cf[_0x3c7dc(0xe7)](_0x3c7dc(0xe3),_0x4ff5b7);});}[_0x139a22(0xd5)](){const _0x11e752=_0x139a22,_0x2d849c=this[_0x11e752(0x11e)][_0x11e752(0xff)][_0x11e752(0xd7)](_0x11e752(0x116))||{},_0x17d5b0=this[_0x11e752(0x11e)][_0x11e752(0xff)][_0x11e752(0xd7)](_0x11e752(0x102))||'';this[_0x11e752(0x11b)]=_0x1fe38e(_0x2810fe[_0x11e752(0xf6)],_0x11e752(0x10e),{..._0x2d849c,'pubkey':_0x17d5b0,'ctx-name':_0x11e752(0xe2)+this[_0x11e752(0xdf)],'sourceList':'','imgOnly':_0x11e752(0x121),'removeCopyright':_0x11e752(0x121),'localeName':this[_0x11e752(0x11e)][_0x11e752(0x112)][_0x11e752(0x11f)],'externalSourcesEmbedCss':_0x11e752(0xe5)}),this[_0x11e752(0x11b)][_0x11e752(0x101)]=_0x51aa16=>{const _0x14ebfb=_0x11e752;if(_0x14ebfb(0xf3)==_0x51aa16)return _0x14ebfb(0x125);},_0x2810fe[_0x11e752(0xf6)][_0x11e752(0x114)][_0x11e752(0x10f)](this[_0x11e752(0x11b)]);}[_0x139a22(0x10d)](){const _0x2c168d=_0x139a22;this[_0x2c168d(0x113)]=_0x1fe38e(_0x2810fe[_0x2c168d(0xf6)],_0x2c168d(0xd6),{'ctx-name':_0x2c168d(0xe2)+this[_0x2c168d(0xdf)]}),_0x2810fe[_0x2c168d(0xf6)][_0x2c168d(0x114)][_0x2c168d(0x10f)](this[_0x2c168d(0x113)]);}[_0x139a22(0xdc)](){const _0x4d615b=_0x139a22,_0x53be72=this[_0x4d615b(0x11e)][_0x4d615b(0x107)][_0x4d615b(0xd7)](_0x4d615b(0x100));_0x53be72&&this[_0x4d615b(0xfd)](_0x53be72,_0x4d615b(0xe9),()=>{const _0x36102f=_0x4d615b,_0x11d8c6=this[_0x36102f(0x11e)][_0x36102f(0xf7)][_0x36102f(0xf6)][_0x36102f(0xf5)][_0x36102f(0x115)]();_0x11d8c6&&_0x11d8c6[_0x36102f(0x128)](_0x36102f(0xe3))&&this[_0x36102f(0x11e)][_0x36102f(0x10a)][_0x36102f(0x106)][_0x36102f(0x117)](_0x36102f(0x11a),()=>{const _0x5b1746=_0x36102f;_0x5d2e95(this[_0x5b1746(0x11e)],_0x11d8c6);});});const _0x5f145a=this[_0x4d615b(0x11e)][_0x4d615b(0x107)][_0x4d615b(0xd7)](_0x4d615b(0xf0));_0x5f145a&&this[_0x4d615b(0xfd)](_0x5f145a,_0x4d615b(0xe9),()=>{const _0x3a847c=_0x4d615b,_0x72b6d0=this[_0x3a847c(0x11e)][_0x3a847c(0xf7)][_0x3a847c(0xf6)][_0x3a847c(0xf5)][_0x3a847c(0x115)]();_0x72b6d0&&_0x72b6d0[_0x3a847c(0x128)](_0x3a847c(0xe3))&&this[_0x3a847c(0x11e)][_0x3a847c(0x10a)][_0x3a847c(0x106)][_0x3a847c(0x117)](_0x3a847c(0x11a),()=>{const _0xb45308=_0x3a847c;_0x5d2e95(this[_0xb45308(0x11e)],_0x72b6d0);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x361008,ObservableMixin as _0x38e58a}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x42644a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x322a7a}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5841b4}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x205402}from'../../utils/uploadutils.js';import{getImageUrls as _0x126b05,getImageDimension as _0x5140de}from'../../utils/editingutils.js';import{isAncestor as _0x55864d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x38e58a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x309461,_0x5d9b5a,_0x2cfcc1){super(),this['_editor']=_0x309461,this['_dialog']=_0x5d9b5a,this['_imageElement']=_0x2cfcc1,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 _0x912841=this['_imageElement'],_0x3e91ff=_0x912841['getAttribute']('uploadcareImageId'),_0x5408c5=_0x912841['getAttribute']('src');if(_0x3e91ff)await this['_loadImageInfo'](_0x3e91ff,_0x5408c5);else{if(this['_imageCache']['has'](_0x5408c5)){const _0xa5f57f=this['_imageCache']['get'](_0x5408c5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa5f57f['url'],this['imageDimension']=_0xa5f57f['dimension'],this['imageId']=_0xa5f57f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x35395c}=this['_editor'],t=_0x35395c['t'],_0x2ee81e=new _0x5841b4(_0x35395c,this['imageStatus'],this['_attributes']);_0x2ee81e['bind']('status')['to'](this,'imageStatus'),_0x2ee81e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2ee81e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2ee81e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2ee81e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x322a7a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2ee81e,'position':_0x42644a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2ee81e['focus']();},'onHide':()=>{_0x2ee81e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x47f7e8=>!_0x55864d(_0x47f7e8,_0x2ee81e['element'])}});}['_loadImageInfo'](_0x37f385,_0x479b74){return _0x205402['getInfo'](_0x37f385,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2554b6=>{const {width:_0x20f8d6,height:_0x1aeb55}=_0x2554b6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x479b74,this['imageDimension']={'width':_0x20f8d6,'height':_0x1aeb55},this['imageId']=_0x37f385;})['catch'](_0x5c7e85=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c7e85['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4bb481,_0x7b0f20){return this['_getImageAsFile'](_0x4bb481)['then'](_0x1044ed=>_0x205402['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':_0x7b0f20['signal'],'file':_0x1044ed,'onProgress':_0x5a1a98=>{_0x5a1a98&&_0x5a1a98['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5a1a98['value']));}}))['then'](_0x1fef29=>{const {width:_0x9f4c96,height:_0x5e6374}=_0x1fef29['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fef29['cdnUrl'],this['imageDimension']={'width':_0x9f4c96,'height':_0x5e6374},this['imageId']=_0x1fef29['uuid'],this['imageUploadProgress']=null;const _0x3847d9=_0x4bb481['getAttribute']('src');this['_imageCache']['set'](_0x3847d9,{'id':_0x1fef29['uuid'],'url':_0x1fef29['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x36df0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36df0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4fe79d,_0x4090f7){_0x4fe79d['on']('apply',(_0x1caf4f,_0x3b8ea6)=>{this['_replaceImage'](_0x4090f7,_0x3b8ea6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4fe79d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4fe79d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x7d0a0d,_0x51c0f1,_0x51488d){const _0xa50168=this['_editor'],{width:_0x13263c,height:_0x2c91ee}=_0x5140de(_0x51c0f1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x504e8c,imageSources:_0x2e906e}=_0x126b05(_0x51c0f1,_0x13263c);_0xa50168['model']['change'](_0x24b6a9=>{if('$graveyard'===_0x7d0a0d['root']['rootName']){_0xa50168['execute']('insertImage',{'imageType':_0x7d0a0d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x7d0a0d['getAttributes']()),'uploadcareImageId':_0x51488d,'src':_0x504e8c,'sources':_0x2e906e,'width':_0x13263c,'height':_0x2c91ee}});const _0x354601=_0x7d0a0d['getChildren']();_0x7d0a0d=_0xa50168['model']['document']['selection']['getSelectedElement']();for(const _0x5828cf of _0x354601)_0x24b6a9['append'](_0x24b6a9['cloneElement'](_0x5828cf),_0x7d0a0d);}else _0x24b6a9['setSelection'](_0x7d0a0d,'on'),_0xa50168['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x7d0a0d['getAttributes']()),'uploadcareImageId':_0x51488d,'src':_0x504e8c,'sources':_0x2e906e,'width':_0x13263c,'height':_0x2c91ee},_0x7d0a0d);_0x24b6a9['setSelection'](_0x7d0a0d,'on');});}async['_getImageAsFile'](_0x11c710){const _0x388099=_0x361008['window'],_0x4df7e1=_0x361008['document']['location']['href'],_0x5980ed=new _0x388099['URL'](_0x11c710['getAttribute']('src'),_0x4df7e1);if('data:'===_0x5980ed['protocol']){const _0x15d224=_0x5980ed['href']['split'](','),_0x963f7e=_0x15d224[0x0]['match'](/:(.*?);/)[0x1],_0x2ac6a9=_0x963f7e['split']('/')[0x1],_0x36576a=_0x388099['atob'](_0x15d224[_0x15d224['length']-0x1]);let _0x3d38dd=_0x36576a['length'];const _0x91069b=new _0x388099['Uint8Array'](_0x3d38dd);for(;_0x3d38dd--;)_0x91069b[_0x3d38dd]=_0x36576a['charCodeAt'](_0x3d38dd);return new _0x388099['File']([_0x91069b],'image.'+_0x2ac6a9,{'type':_0x963f7e});}const _0x21527f=_0x5980ed['href']['split']('/'),_0x41b4c8=_0x21527f[_0x21527f['length']-0x1],_0xbbeefa=_0x41b4c8['split']('.')[0x1];return _0x388099['fetch'](_0x5980ed['href'])['then'](_0x2d4442=>_0x2d4442['clone']()['blob']())['then'](_0x514350=>new _0x388099['File']([_0x514350],_0x41b4c8,{'type':'image/'+_0xbbeefa}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3137(){const _0x4c578c=['47312OtGozY','7EdxdaT','imageSrc','2207690CQbEkN','bindTemplate','3636HXuPDa','268lHbhdr','21thHqWE','image-edit','2345130iZuZJT','set','uc-cloud-image-editor','ck-uploadcare-theme','uc-light','3632224LVgKhI','1176370CEbfoK','11BjCYwy','125262wpnxMK','setTemplate'];_0x3137=function(){return _0x4c578c;};return _0x3137();}(function(_0x681beb,_0x20d802){const _0x5096c2=_0x24a4,_0x8d25d3=_0x681beb();while(!![]){try{const _0x4382ee=-parseInt(_0x5096c2(0x130))/0x1*(-parseInt(_0x5096c2(0x131))/0x2)+parseInt(_0x5096c2(0x132))/0x3*(-parseInt(_0x5096c2(0x12b))/0x4)+-parseInt(_0x5096c2(0x12e))/0x5+-parseInt(_0x5096c2(0x129))/0x6*(parseInt(_0x5096c2(0x12c))/0x7)+parseInt(_0x5096c2(0x126))/0x8+-parseInt(_0x5096c2(0x134))/0x9+parseInt(_0x5096c2(0x127))/0xa*(parseInt(_0x5096c2(0x128))/0xb);if(_0x4382ee===_0x20d802)break;else _0x8d25d3['push'](_0x8d25d3['shift']());}catch(_0x1ebddd){_0x8d25d3['push'](_0x8d25d3['shift']());}}}(_0x3137,0x3dcb4));function _0x24a4(_0x31dd3e,_0xa0435d){const _0x3137f6=_0x3137();return _0x24a4=function(_0x24a4d0,_0x349b32){_0x24a4d0=_0x24a4d0-0x126;let _0x3c7380=_0x3137f6[_0x24a4d0];return _0x3c7380;},_0x24a4(_0x31dd3e,_0xa0435d);}import{View as _0xcfde30}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xcfde30{constructor(_0x112fb8,_0x260c8f){const _0x4a6edb=_0x24a4;super(_0x112fb8);const _0x315fbc=this[_0x4a6edb(0x12f)];this[_0x4a6edb(0x135)](_0x4a6edb(0x12d),''),this[_0x4a6edb(0x12a)]({'tag':_0x4a6edb(0x136),'attributes':{..._0x260c8f,'class':[_0x4a6edb(0x138),_0x4a6edb(0x137)],'ctx-name':_0x4a6edb(0x133),'cdn-url':_0x315fbc['to'](_0x4a6edb(0x12d))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4e1625}from'ckeditor5/src/icons.js';import{ButtonView as _0x5a8f27,IconView as _0x3a9e70,View as _0x588961}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x588961{constructor(_0x432110){super(_0x432110);const t=_0x432110['t'];this['set']('errorType',null);const _0x19926c=new _0x5a8f27(_0x432110);_0x19926c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x19926c['withText']=!0x0,_0x19926c['class']='ck-button-action',_0x19926c['on']('execute',()=>{this['fire']('retry');}),_0x19926c['bind']('isVisible')['to'](this,'errorType',_0x4db51e=>'NotFound'!==_0x4db51e);const _0x209248=new _0x3a9e70();_0x209248['content']=_0x4e1625,_0x209248['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5cbdd6=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':[_0x209248,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5cbdd6['to']('errorType',_0x323313=>t('NotFound'!==_0x323313?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x19926c]},{'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 _0x5c4c3a,View as _0x49fec4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x49fec4{constructor(_0x2aeb08){super(_0x2aeb08);const t=_0x2aeb08['t'],_0x4f3e21=this['bindTemplate'],_0x58b3e6=new _0x5c4c3a();_0x58b3e6['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':[_0x58b3e6,{'text':_0x4f3e21['to']('imageUploadProgress',_0x3b1c77=>t('Loading\x20image...')+'\x20('+(_0x3b1c77||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbd67a0=_0x4f93;(function(_0x177622,_0x3bbd52){const _0x3fbea8=_0x4f93,_0xf87666=_0x177622();while(!![]){try{const _0x44b6cc=parseInt(_0x3fbea8(0x118))/0x1+-parseInt(_0x3fbea8(0x117))/0x2*(-parseInt(_0x3fbea8(0x130))/0x3)+-parseInt(_0x3fbea8(0x12d))/0x4+parseInt(_0x3fbea8(0x146))/0x5+-parseInt(_0x3fbea8(0x13c))/0x6*(-parseInt(_0x3fbea8(0x12e))/0x7)+parseInt(_0x3fbea8(0x12b))/0x8+parseInt(_0x3fbea8(0x119))/0x9*(-parseInt(_0x3fbea8(0x143))/0xa);if(_0x44b6cc===_0x3bbd52)break;else _0xf87666['push'](_0xf87666['shift']());}catch(_0xf5ec9b){_0xf87666['push'](_0xf87666['shift']());}}}(_0xe752,0x54fa2));import{View as _0x3cdbfd}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x369f23}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3eb06e}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x421890}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3b7d7c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4f93(_0x29410d,_0x329f9f){const _0xe75256=_0xe752();return _0x4f93=function(_0x4f9365,_0x3632bd){_0x4f9365=_0x4f9365-0x113;let _0x2bac70=_0xe75256[_0x4f9365];return _0x2bac70;},_0x4f93(_0x29410d,_0x329f9f);}export class UploadcareImageEditFormView extends _0x3b7d7c{[_0xbd67a0(0x134)];[_0xbd67a0(0x11b)];[_0xbd67a0(0x147)];[_0xbd67a0(0x11e)];[_0xbd67a0(0x13f)];constructor(_0x11a785,_0x6abd29,_0x58286f){const _0x9c32ec=_0xbd67a0;super(_0x11a785),this[_0x9c32ec(0x134)]=this[_0x9c32ec(0x135)](),this[_0x9c32ec(0x11b)]=new _0x369f23(_0x11a785),this[_0x9c32ec(0x147)]=new _0x3eb06e(_0x11a785),this[_0x9c32ec(0x11e)]=new _0x421890(_0x11a785,_0x58286f),this[_0x9c32ec(0x13f)]=new _0x3cdbfd(_0x11a785),this[_0x9c32ec(0x13f)][_0x9c32ec(0x127)](this[_0x9c32ec(0x124)]()),this[_0x9c32ec(0x137)](_0x9c32ec(0x148),_0x6abd29),this[_0x9c32ec(0x127)]({'tag':_0x9c32ec(0x11d),'attributes':{'class':['ck',_0x9c32ec(0x13b),_0x9c32ec(0x13a)],'tabindex':'-1'},'children':this[_0x9c32ec(0x134)]}),this[_0x9c32ec(0x129)](),this[_0x9c32ec(0x13e)](_0x9c32ec(0x141),()=>{const _0x59a450=_0x9c32ec;this[_0x59a450(0x125)](this[_0x59a450(0x139)],_0x2722c8=>{const _0x1d1529=_0x59a450;this[_0x1d1529(0x116)](_0x2722c8);});}),this['on'](_0x9c32ec(0x12a),()=>{const _0x57876c=_0x9c32ec;this[_0x57876c(0x129)]();}),this[_0x9c32ec(0x131)]();}[_0xbd67a0(0x136)](){const _0x24e265=_0xbd67a0;this[_0x24e265(0x139)][_0x24e265(0x136)]();}[_0xbd67a0(0x129)](){const _0x1fb741=_0xbd67a0;switch(this[_0x1fb741(0x134)][_0x1fb741(0x12c)](),this[_0x1fb741(0x148)]){case _0x1fb741(0x144):this[_0x1fb741(0x134)][_0x1fb741(0x114)](this[_0x1fb741(0x11b)]);break;case _0x1fb741(0x142):this[_0x1fb741(0x134)][_0x1fb741(0x114)](this[_0x1fb741(0x147)]);break;case _0x1fb741(0x11f):this[_0x1fb741(0x134)][_0x1fb741(0x149)]([this[_0x1fb741(0x11e)],this[_0x1fb741(0x13f)]]);}}[_0xbd67a0(0x125)](_0x5530d4,_0x47af83){const _0x4f127c=_0xbd67a0,_0x20d5f2=_0x4f127c(0x113),_0x324c49=_0x5530d4[_0x4f127c(0x133)](_0x20d5f2);if(_0x324c49)return _0x47af83(_0x324c49);const _0x14d44d=new MutationObserver(_0x37672f=>{const _0x27dfdb=_0x4f127c,_0x18d68b=_0x37672f[_0x27dfdb(0x126)](_0x3c9d1d=>_0x3c9d1d[_0x27dfdb(0x11a)]===_0x5530d4&&_0x3c9d1d[_0x27dfdb(0x115)][_0x27dfdb(0x12f)]>0x0&&_0x3c9d1d[_0x27dfdb(0x115)][0x0][_0x27dfdb(0x11c)][_0x27dfdb(0x121)]()===_0x20d5f2);_0x18d68b[_0x27dfdb(0x12f)]&&(_0x14d44d[_0x27dfdb(0x128)](),_0x47af83(_0x18d68b[0x0][_0x27dfdb(0x115)][0x0]));});_0x14d44d[_0x4f127c(0x123)](_0x5530d4,{'childList':!0x0,'subtree':!0x0});}[_0xbd67a0(0x116)](_0x20a6b4){const _0x192a10=_0xbd67a0;_0x20a6b4[_0x192a10(0x120)](_0x192a10(0x145),_0x447919=>{const _0x519092=_0x192a10;this[_0x519092(0x132)](_0x519092(0x145),{'imageSrc':_0x447919[_0x519092(0x13d)][_0x519092(0x140)]});}),_0x20a6b4[_0x192a10(0x120)](_0x192a10(0x122),()=>{const _0xf39c31=_0x192a10;this[_0xf39c31(0x132)](_0xf39c31(0x122));});}[_0xbd67a0(0x131)](){const _0x326ca5=_0xbd67a0;this[_0x326ca5(0x147)]['on'](_0x326ca5(0x138),()=>{const _0x4ade19=_0x326ca5;this[_0x4ade19(0x132)](_0x4ade19(0x138));});}}function _0xe752(){const _0x36a91b=['48727yFJKig','length','60TAVMxo','_addErrorViewListeners','fire','querySelector','_items','createCollection','focus','set','retry','element','ck-uploadcare-form','ck-reset_all-excluded','84uuAfdh','detail','once','_focusableView','cdnUrl','render','error','7690iaPWyl','uploading','apply','1237330LKNpsY','_errorView','status','addMany','uc-cloud-image-editor','add','addedNodes','_addUploadcareImageEditorListeners','27856VlTCQi','364644XCJDlB','8469wXUfCA','target','_loadingView','nodeName','div','_editingView','ready','addEventListener','toLowerCase','cancel','observe','getFocusableElement','_waitForImageEditorComponent','filter','setTemplate','disconnect','_setView','change:status','5340264WiBwug','clear','2335848MwhEFl'];_0xe752=function(){return _0x36a91b;};return _0xe752();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3f0b(){const _0x4873d7=['600360BLwMqJ','_isEditable','120692YBGtOR','document','18XIkcly','275541OxnzWV','2236YgfqNw','unbind','getSelectedElement','300sdmDFP','refresh','imageBlock','217YKltlk','set','selection','get','plugins','bind','editor','3370NSenIa','9654nHNvuF','execute','model','isActive','imageEditController','72OdQRom','8503vjcgeV','17983008TdZlbq','config','imageInline','uploadcare.allowExternalImagesEditing','requires','element','isEnabled'];_0x3f0b=function(){return _0x4873d7;};return _0x3f0b();}const _0x30dc75=_0x876d;(function(_0x173b15,_0x3ec937){const _0x430f57=_0x876d,_0x57ae06=_0x173b15();while(!![]){try{const _0x50647e=parseInt(_0x430f57(0x9d))/0x1*(-parseInt(_0x430f57(0x9c))/0x2)+-parseInt(_0x430f57(0x88))/0x3+parseInt(_0x430f57(0x89))/0x4*(-parseInt(_0x430f57(0x96))/0x5)+parseInt(_0x430f57(0x97))/0x6*(-parseInt(_0x430f57(0x8f))/0x7)+-parseInt(_0x430f57(0xa5))/0x8*(parseInt(_0x430f57(0x87))/0x9)+parseInt(_0x430f57(0x8c))/0xa*(-parseInt(_0x430f57(0xa7))/0xb)+parseInt(_0x430f57(0x9e))/0xc;if(_0x50647e===_0x3ec937)break;else _0x57ae06['push'](_0x57ae06['shift']());}catch(_0x409d33){_0x57ae06['push'](_0x57ae06['shift']());}}}(_0x3f0b,0x2f8ae));import{Command as _0x13f122}from'ckeditor5/src/core.js';import{Dialog as _0x37a981}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3e6c25}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x47fe7f}from'../utils/editingutils.js';function _0x876d(_0x14e583,_0x2c5078){const _0x3f0bbc=_0x3f0b();return _0x876d=function(_0x876d93,_0x40da3d){_0x876d93=_0x876d93-0x87;let _0xb8ba9a=_0x3f0bbc[_0x876d93];return _0xb8ba9a;},_0x876d(_0x14e583,_0x2c5078);}export class UploadcareImageEditCommand extends _0x13f122{[_0x30dc75(0x9b)];static get[_0x30dc75(0xa2)](){return[_0x37a981];}[_0x30dc75(0xa6)];constructor(_0x355da4){const _0x3a57c8=_0x30dc75;super(_0x355da4),this[_0x3a57c8(0x9b)]=void 0x0,this[_0x3a57c8(0xa6)]=_0x47fe7f(_0x355da4[_0x3a57c8(0x9f)][_0x3a57c8(0x92)](_0x3a57c8(0xa1))||[]),this[_0x3a57c8(0x90)]({'isActive':!0x1});}[_0x30dc75(0x8d)](){const _0x4e3f6e=_0x30dc75,_0x286fa6=this[_0x4e3f6e(0x95)][_0x4e3f6e(0x99)][_0x4e3f6e(0xa8)][_0x4e3f6e(0x91)][_0x4e3f6e(0x8b)]();this[_0x4e3f6e(0xa4)]=this[_0x4e3f6e(0xa6)](_0x286fa6);}[_0x30dc75(0x98)](){const _0x4c77b0=_0x30dc75;this[_0x4c77b0(0x9b)]&&(this[_0x4c77b0(0x8a)](_0x4c77b0(0x9a)),this[_0x4c77b0(0x9b)]=void 0x0);const _0x28bd6b=this[_0x4c77b0(0x95)][_0x4c77b0(0x99)][_0x4c77b0(0xa8)][_0x4c77b0(0x91)][_0x4c77b0(0x8b)]();_0x28bd6b&&(_0x28bd6b['is'](_0x4c77b0(0xa3),_0x4c77b0(0x8e))||_0x28bd6b['is'](_0x4c77b0(0xa3),_0x4c77b0(0xa0)))&&(this[_0x4c77b0(0x9b)]=new _0x3e6c25(this[_0x4c77b0(0x95)],this[_0x4c77b0(0x95)][_0x4c77b0(0x93)][_0x4c77b0(0x92)](_0x37a981),_0x28bd6b),this[_0x4c77b0(0x94)](_0x4c77b0(0x9a))['to'](this[_0x4c77b0(0x9b)],_0x4c77b0(0x9a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x170c4b=_0x29fe;(function(_0x53edf1,_0x30cbb7){const _0x440e48=_0x29fe,_0x54509c=_0x53edf1();while(!![]){try{const _0x1a0667=parseInt(_0x440e48(0x9d))/0x1*(-parseInt(_0x440e48(0x8e))/0x2)+-parseInt(_0x440e48(0x98))/0x3*(parseInt(_0x440e48(0x94))/0x4)+parseInt(_0x440e48(0x95))/0x5*(parseInt(_0x440e48(0x8b))/0x6)+-parseInt(_0x440e48(0x8f))/0x7*(parseInt(_0x440e48(0x99))/0x8)+parseInt(_0x440e48(0x9a))/0x9+-parseInt(_0x440e48(0x9e))/0xa+-parseInt(_0x440e48(0x9f))/0xb;if(_0x1a0667===_0x30cbb7)break;else _0x54509c['push'](_0x54509c['shift']());}catch(_0x3d2a78){_0x54509c['push'](_0x54509c['shift']());}}}(_0x4dd9,0x31b3a));function _0x4dd9(){const _0x4fb76e=['52166pAPRcy','21xezCVf','pluginName','isPremiumPlugin','init','add','4RsCWmp','1869470VdOKhx','uploadcareImageReplace','uploadcareImageEdit','333075nydmia','354824IhDfVl','3226635wGiFCT','commands','requires','3fzcalb','186560AiKJhD','2066262lyCfUk','ImageEditing','isOfficialPlugin','6AynnPM','ImageUtils','UploadcareImageEditEditing'];_0x4dd9=function(){return _0x4fb76e;};return _0x4dd9();}import{Plugin as _0x4f5e28}from'ckeditor5/src/core.js';import{Notification as _0x3fa8cc}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1d7406}from'./uploadcareimageeditcommand.js';function _0x29fe(_0x587cdb,_0x4961d5){const _0x4dd9d5=_0x4dd9();return _0x29fe=function(_0x29fee2,_0x12b7c6){_0x29fee2=_0x29fee2-0x89;let _0x353d85=_0x4dd9d5[_0x29fee2];return _0x353d85;},_0x29fe(_0x587cdb,_0x4961d5);}import{UploadcareImageReplaceCommand as _0x2a074c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1d8c53}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4f5e28{static get[_0x170c4b(0x90)](){const _0xf08fae=_0x170c4b;return _0xf08fae(0x8d);}static get[_0x170c4b(0x9c)](){const _0x25568a=_0x170c4b;return[_0x1d8c53,_0x3fa8cc,_0x25568a(0x8c),_0x25568a(0x89)];}static get[_0x170c4b(0x8a)](){return!0x0;}static get[_0x170c4b(0x91)](){return!0x0;}[_0x170c4b(0x92)](){const _0x350269=_0x170c4b,{editor:_0x4879c3}=this;_0x4879c3[_0x350269(0x9b)][_0x350269(0x93)](_0x350269(0x97),new _0x1d7406(_0x4879c3)),_0x4879c3[_0x350269(0x9b)][_0x350269(0x93)](_0x350269(0x96),new _0x2a074c(_0x4879c3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3fae4d}from'ckeditor5/src/core.js';import{ButtonView as _0xa775f3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x191260}from'ckeditor5/src/icons.js';import{createElement as _0x4fc856}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 _0x3fae4d{['_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 _0x39a755=this['editor'];_0x39a755['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39ae46=>{const _0x4ed4e4=_0x39a755['commands']['get']('uploadcareImageEdit'),_0x26f89f=new _0xa775f3(_0x39ae46),t=_0x39ae46['t'];return _0x26f89f['set']({'icon':_0x191260,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26f89f['bind']('isEnabled')['to'](_0x4ed4e4),_0x26f89f['bind']('isOn')['to'](_0x4ed4e4,'isActive'),this['listenTo'](_0x26f89f,'execute',()=>{_0x39a755['execute']('uploadcareImageEdit'),_0x39a755['editing']['view']['focus']();}),_0x26f89f;}),this['_initConfig']();}['_initConfig'](){const _0x1c2fef=_0x4fc856(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1c2fef),this['listenTo'](this['editor'],'destroy',()=>{_0x1c2fef['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4d394b=_0x4704;(function(_0xf33b8f,_0x154392){const _0x1b69ed=_0x4704,_0x136c7b=_0xf33b8f();while(!![]){try{const _0x397e9c=-parseInt(_0x1b69ed(0x19b))/0x1+parseInt(_0x1b69ed(0x1a9))/0x2*(parseInt(_0x1b69ed(0x1ad))/0x3)+parseInt(_0x1b69ed(0x1b2))/0x4*(parseInt(_0x1b69ed(0x19c))/0x5)+parseInt(_0x1b69ed(0x1a4))/0x6+parseInt(_0x1b69ed(0x1a7))/0x7+-parseInt(_0x1b69ed(0x19f))/0x8+-parseInt(_0x1b69ed(0x1a0))/0x9*(parseInt(_0x1b69ed(0x19e))/0xa);if(_0x397e9c===_0x154392)break;else _0x136c7b['push'](_0x136c7b['shift']());}catch(_0x2e5e5d){_0x136c7b['push'](_0x136c7b['shift']());}}}(_0x1f22,0x309c9));function _0x1f22(){const _0x2f2c1d=['removeAttribute','55180qXGMDV','10344cVabus','540pOkVOI','isEnabled','refresh','imageInline','767724FeWXJe','change','srcset','1698585DbjsEd','imageBlock','67274sbaGag','selection','sizes','editor','9luGHND','document','getSelectedElement','setAttributes','execute','164uDWxbI','element','model','146961CZvWGE','25235ufWSht'];_0x1f22=function(){return _0x2f2c1d;};return _0x1f22();}function _0x4704(_0x35fc99,_0x439012){const _0x1f2282=_0x1f22();return _0x4704=function(_0x4704c6,_0x413e93){_0x4704c6=_0x4704c6-0x19b;let _0x408772=_0x1f2282[_0x4704c6];return _0x408772;},_0x4704(_0x35fc99,_0x439012);}import{Command as _0x35d488}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x35d488{[_0x4d394b(0x1a2)](){const _0xa627ce=_0x4d394b,_0x15f28e=this[_0xa627ce(0x1ac)][_0xa627ce(0x1b4)][_0xa627ce(0x1ae)][_0xa627ce(0x1aa)][_0xa627ce(0x1af)]();this[_0xa627ce(0x1a1)]=Boolean(_0x15f28e&&(_0x15f28e['is'](_0xa627ce(0x1b3),_0xa627ce(0x1a8))||_0x15f28e['is'](_0xa627ce(0x1b3),_0xa627ce(0x1a3))));}[_0x4d394b(0x1b1)](_0x194633){const _0x36e32d=_0x4d394b,_0x2b1344=this[_0x36e32d(0x1ac)][_0x36e32d(0x1b4)][_0x36e32d(0x1ae)][_0x36e32d(0x1aa)][_0x36e32d(0x1af)]();this[_0x36e32d(0x1ac)][_0x36e32d(0x1b4)][_0x36e32d(0x1a5)](_0x586f6a=>{const _0x278244=_0x36e32d;_0x586f6a[_0x278244(0x1b0)](_0x194633,_0x2b1344),_0x586f6a[_0x278244(0x19d)](_0x278244(0x1a6),_0x2b1344),_0x586f6a[_0x278244(0x19d)](_0x278244(0x1ab),_0x2b1344);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16428f=_0x4c6f;(function(_0x10e3e8,_0x39b938){var _0x5cb92e=_0x4c6f,_0x91841=_0x10e3e8();while(!![]){try{var _0x38b5f2=parseInt(_0x5cb92e(0x144))/0x1+-parseInt(_0x5cb92e(0x142))/0x2+-parseInt(_0x5cb92e(0x146))/0x3+-parseInt(_0x5cb92e(0x148))/0x4*(-parseInt(_0x5cb92e(0x13e))/0x5)+-parseInt(_0x5cb92e(0x13d))/0x6+-parseInt(_0x5cb92e(0x141))/0x7*(-parseInt(_0x5cb92e(0x13b))/0x8)+-parseInt(_0x5cb92e(0x13f))/0x9*(-parseInt(_0x5cb92e(0x13a))/0xa);if(_0x38b5f2===_0x39b938)break;else _0x91841['push'](_0x91841['shift']());}catch(_0x38e263){_0x91841['push'](_0x91841['shift']());}}}(_0x42d7,0x927df));import{Plugin as _0x9c8fef}from'ckeditor5/src/core.js';function _0x42d7(){var _0x42e3b6=['877640EtSYsC','isOfficialPlugin','2781600jkCvFu','1351555NcRKwY','15013395VmWqwx','pluginName','7BpaxyP','1239622rXSFlo','isPremiumPlugin','212128cSxDKq','requires','1730571vuzfEf','UploadcareImageEdit','4BSEjJy','10WvIaMI'];_0x42d7=function(){return _0x42e3b6;};return _0x42d7();}import{UploadcareImageEditEditing as _0x1217c3}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4c6f(_0x2d432e,_0x3622e4){var _0x42d7ac=_0x42d7();return _0x4c6f=function(_0x4c6ff3,_0x3daea8){_0x4c6ff3=_0x4c6ff3-0x13a;var _0x28c67e=_0x42d7ac[_0x4c6ff3];return _0x28c67e;},_0x4c6f(_0x2d432e,_0x3622e4);}import{UploadcareImageEditUI as _0x4c5ccb}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x9c8fef{static get[_0x16428f(0x140)](){var _0x2e0f9f=_0x16428f;return _0x2e0f9f(0x147);}static get[_0x16428f(0x145)](){return[_0x1217c3,_0x4c5ccb];}static get[_0x16428f(0x13c)](){return!0x0;}static get[_0x16428f(0x143)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xbe1e54=_0xbfba;(function(_0x3e5fa8,_0x38e794){const _0x13df45=_0xbfba,_0x45011e=_0x3e5fa8();while(!![]){try{const _0x4922a1=parseInt(_0x13df45(0x1bb))/0x1+parseInt(_0x13df45(0x1ac))/0x2+-parseInt(_0x13df45(0x1a6))/0x3+parseInt(_0x13df45(0x1e1))/0x4*(-parseInt(_0x13df45(0x1e2))/0x5)+parseInt(_0x13df45(0x1b5))/0x6+-parseInt(_0x13df45(0x1a7))/0x7+parseInt(_0x13df45(0x1bc))/0x8*(parseInt(_0x13df45(0x1e3))/0x9);if(_0x4922a1===_0x38e794)break;else _0x45011e['push'](_0x45011e['shift']());}catch(_0x238b4d){_0x45011e['push'](_0x45011e['shift']());}}}(_0x5416,0xed676));import{Plugin as _0x2467db}from'ckeditor5/src/core.js';function _0x5416(){const _0x4f337c=['registerIntegration','Local','editor','text','uploadcare.uploader.sourceList','Facebook','isOfficialPlugin','map','evaluationLimit','Uploadcare','isImageSelected','forEach','Insert','Replace','push','config','2470164AMdPpi','15LdAmEj','46881YBoxLv','get','reduce','expired','shortText','_normalizeConfigSourceList','assetManager','has','destroy','uploadcareLicenseKeyDomainLimit','_showLicenseError','_createDropdownButtons','uploadcareLicenseKeyExpired','_licenseKeyCheckInterval','pluginName','ImageInsertUI','init','5595921rPrqiX','3606764BwFlyM','locale','uploadcareLicenseKeyValid','upload','OneDrive','28500zsOQIr','_createButton','UploadcareUI','uploadcareLicenseKeyNotAllowed','execute','plugins','label','_createToolbarButton','featureNotAllowed','1072164jHzojz','bind','licenseKey','uploadcare','icon','tooltip','1413225PJhjTt','5528jJBEmP','invalid','type','domainLimit','uploadcareLicenseKeyInvalid','usageLimit','uploadcareLicenseKeyEvaluationLimit','GPhotos','Dropbox','isPremiumPlugin','uploadcareLicenseKeyUsageLimit','url','afterInit','URL','_getIntegrationKey','commands','_createMenuBarButtons','GDrive','isEnabled','entries','withText'];_0x5416=function(){return _0x4f337c;};return _0x5416();}function _0xbfba(_0x2a1369,_0x37ee29){const _0x541605=_0x5416();return _0xbfba=function(_0xbfba7d,_0x4501c8){_0xbfba7d=_0xbfba7d-0x1a6;let _0x36f339=_0x541605[_0xbfba7d];return _0x36f339;},_0xbfba(_0x2a1369,_0x37ee29);}import{IconDropbox as _0x1ef78e,IconFacebook as _0x1ad5e7,IconGoogleDrive as _0x52f502,IconGooglePhotos as _0x2cb608,IconUploadcareImageUpload as _0x37dbd5,IconUploadcareLink as _0x4c8b51,IconOneDrive as _0x2f3774}from'ckeditor5/src/icons.js';import{ButtonView as _0x178d47,MenuBarMenuListItemButtonView as _0x26eed5}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x51582c}from'./uploadcareconfig.js';import{getTranslation as _0x1a8ce2}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 _0x2467db{[_0xbe1e54(0x1b7)];[_0xbe1e54(0x1f0)];static get[_0xbe1e54(0x1f1)](){const _0x1b510e=_0xbe1e54;return _0x1b510e(0x1ae);}static get[_0xbe1e54(0x1d7)](){return!0x0;}static get[_0xbe1e54(0x1c5)](){return!0x0;}[_0xbe1e54(0x1f3)](){const _0x2dc3aa=_0xbe1e54;this[_0x2dc3aa(0x1b7)]=this[_0x2dc3aa(0x1d3)][_0x2dc3aa(0x1e0)][_0x2dc3aa(0x1e4)](_0x2dc3aa(0x1b7));const _0x125fc0=this[_0x2dc3aa(0x1d3)];this[_0x2dc3aa(0x1f0)]=setInterval(()=>{const _0x2976ca=_0x2dc3aa;let _0x378d40;for(const _0x13151e in _0x125fc0){const _0x59dfe3=_0x13151e,_0x626540=_0x125fc0[_0x59dfe3];if(_0x2976ca(0x1a9)==_0x626540||_0x2976ca(0x1c0)==_0x626540||_0x2976ca(0x1ef)==_0x626540||_0x2976ca(0x1ec)==_0x626540||_0x2976ca(0x1af)==_0x626540||_0x2976ca(0x1c2)==_0x626540||_0x2976ca(0x1c6)==_0x626540){delete _0x125fc0[_0x59dfe3],_0x378d40=_0x626540,clearInterval(this[_0x2976ca(0x1f0)]),this[_0x2976ca(0x1f0)]=void 0x0;break;}}_0x2976ca(0x1c0)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1bd)),_0x2976ca(0x1ef)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1e6)),_0x2976ca(0x1ec)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1bf)),_0x2976ca(0x1af)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1b4),_0x2976ca(0x1da)),_0x2976ca(0x1c2)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1d9)),_0x2976ca(0x1c6)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1c1));},0x3e8);}[_0xbe1e54(0x1c8)](){const _0xfa816e=_0xbe1e54,{editor:_0x22a20b}=this,_0xeb4662=_0x22a20b[_0xfa816e(0x1cb)][_0xfa816e(0x1e4)](_0xfa816e(0x1b8));if(!_0xeb4662)return;const _0x41904e=this[_0xfa816e(0x1e8)](_0x22a20b[_0xfa816e(0x1e0)][_0xfa816e(0x1e4)](_0xfa816e(0x1d5)))[_0xfa816e(0x1e5)]((_0x5b5235,_0x2ac61d)=>{const _0x52dd72=_0xfa816e,_0x2fca84=this[_0x52dd72(0x1ca)](_0x2ac61d[_0x52dd72(0x1be)]);return _0x5b5235[_0x2fca84]||(_0x5b5235[_0x2fca84]=[]),_0x5b5235[_0x2fca84][_0x52dd72(0x1df)](_0x2ac61d),_0x5b5235;},{});_0x22a20b[_0xfa816e(0x1b1)][_0xfa816e(0x1ea)](_0xfa816e(0x1f2))&&_0x22a20b[_0xfa816e(0x1cb)][_0xfa816e(0x1e4)](_0xfa816e(0x1b8))&&Object[_0xfa816e(0x1cf)](_0x41904e)[_0xfa816e(0x1dc)](([_0x4a5314,_0x43d2f2])=>{const _0x11e633=_0xfa816e;_0x22a20b[_0x11e633(0x1b1)][_0x11e633(0x1e4)](_0x11e633(0x1f2))[_0x11e633(0x1d1)]({'name':_0x4a5314,'observable':()=>_0xeb4662,'buttonViewCreator':()=>this[_0x11e633(0x1b3)](_0x43d2f2),'formViewCreator':()=>this[_0x11e633(0x1ee)](_0x43d2f2),'menuBarButtonViewCreator':()=>this[_0x11e633(0x1cc)](_0x43d2f2),'override':_0x11e633(0x1e9)!==_0x4a5314});});}[_0xbe1e54(0x1eb)](){const _0x27aa82=_0xbe1e54;super[_0x27aa82(0x1eb)](),this[_0x27aa82(0x1f0)]&&clearInterval(this[_0x27aa82(0x1f0)]);}[_0xbe1e54(0x1e8)](_0xb14922){const _0x38d654=_0xbe1e54,{locale:_0x1cfa50}=this[_0x38d654(0x1d3)];return _0xb14922[_0x38d654(0x1d8)](_0x573a8c=>{const _0xde861e=_0x38d654,_0x8d4208=_0x1a8ce2(_0x1cfa50,_0x573a8c,_0xde861e(0x1dd));switch(_0x573a8c){case _0x51582c[_0xde861e(0x1d2)]:return{'icon':_0x37dbd5,'type':_0x51582c[_0xde861e(0x1d2)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c9)]:return{'icon':_0x4c8b51,'type':_0x51582c[_0xde861e(0x1c9)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c4)]:return{'icon':_0x1ef78e,'type':_0x51582c[_0xde861e(0x1c4)],..._0x8d4208};case _0x51582c[_0xde861e(0x1d6)]:return{'icon':_0x1ad5e7,'type':_0x51582c[_0xde861e(0x1d6)],..._0x8d4208};case _0x51582c[_0xde861e(0x1cd)]:return{'icon':_0x52f502,'type':_0x51582c[_0xde861e(0x1cd)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c3)]:return{'icon':_0x2cb608,'type':_0x51582c[_0xde861e(0x1c3)],..._0x8d4208};case _0x51582c[_0xde861e(0x1ab)]:return{'icon':_0x2f3774,'type':_0x51582c[_0xde861e(0x1ab)],..._0x8d4208};}});}[_0xbe1e54(0x1ca)](_0x7d7864){const _0x5b954d=_0xbe1e54;switch(_0x7d7864){case _0x51582c[_0x5b954d(0x1d2)]:return _0x5b954d(0x1aa);case _0x51582c[_0x5b954d(0x1c9)]:return _0x5b954d(0x1c7);default:return _0x5b954d(0x1e9);}}[_0xbe1e54(0x1ad)](_0x48dc5a,_0x17f274){const _0x5a8ffb=_0xbe1e54,_0x5525b7=this[_0x5a8ffb(0x1d3)],_0x33c6dc=new _0x48dc5a(_0x5525b7[_0x5a8ffb(0x1a8)]),_0x423da1=_0x5525b7[_0x5a8ffb(0x1cb)][_0x5a8ffb(0x1e4)](_0x5a8ffb(0x1b8));return _0x33c6dc[_0x5a8ffb(0x1b6)](_0x5a8ffb(0x1ce))['to'](_0x423da1),_0x33c6dc['on'](_0x5a8ffb(0x1b0),()=>{const _0x2df557=_0x5a8ffb;_0x423da1[_0x2df557(0x1b0)](_0x17f274);}),_0x33c6dc;}[_0xbe1e54(0x1b3)](_0x4da92f){const _0x388bb6=_0xbe1e54,{locale:_0x4d5889}=this[_0x388bb6(0x1d3)],_0x388779=this[_0x388bb6(0x1d3)][_0x388bb6(0x1b1)][_0x388bb6(0x1e4)](_0x388bb6(0x1f2)),_0x265a6c=_0x4da92f[0x0],_0x3485f1=this[_0x388bb6(0x1ad)](_0x178d47,_0x265a6c[_0x388bb6(0x1be)]);return _0x3485f1[_0x388bb6(0x1b9)]=_0x265a6c[_0x388bb6(0x1b9)],_0x3485f1[_0x388bb6(0x1b6)](_0x388bb6(0x1b2))['to'](_0x388779,_0x388bb6(0x1db),_0x25ab5f=>_0x1a8ce2(_0x4d5889,_0x265a6c[_0x388bb6(0x1be)],_0x25ab5f?_0x388bb6(0x1de):_0x388bb6(0x1dd))[_0x388bb6(0x1d4)]),_0x3485f1[_0x388bb6(0x1ba)]=!0x0,_0x3485f1;}[_0xbe1e54(0x1ee)](_0x593491){const _0x2bd8b3=_0xbe1e54,{locale:_0x1fdb14}=this[_0x2bd8b3(0x1d3)],_0x4a76ad=this[_0x2bd8b3(0x1d3)][_0x2bd8b3(0x1b1)][_0x2bd8b3(0x1e4)](_0x2bd8b3(0x1f2));return _0x593491[_0x2bd8b3(0x1d8)](_0x43cd72=>{const _0x12487d=_0x2bd8b3,_0x189cdc=this[_0x12487d(0x1ad)](_0x178d47,_0x43cd72[_0x12487d(0x1be)]);return _0x189cdc[_0x12487d(0x1d0)]=!0x0,_0x189cdc[_0x12487d(0x1b9)]=_0x43cd72[_0x12487d(0x1b9)],_0x189cdc[_0x12487d(0x1b6)](_0x12487d(0x1b2))['to'](_0x4a76ad,_0x12487d(0x1db),_0x520777=>_0x1a8ce2(_0x1fdb14,_0x43cd72[_0x12487d(0x1be)],_0x520777?_0x12487d(0x1de):_0x12487d(0x1dd))[_0x12487d(0x1d4)]),_0x189cdc;});}[_0xbe1e54(0x1cc)](_0x1f6353){const _0x458692=_0xbe1e54;return _0x1f6353[_0x458692(0x1d8)](_0x5867cf=>{const _0x3427ee=_0x458692,_0x4d6ecf=this[_0x3427ee(0x1ad)](_0x26eed5,_0x5867cf[_0x3427ee(0x1be)]);return _0x4d6ecf[_0x3427ee(0x1b9)]=_0x5867cf[_0x3427ee(0x1b9)],_0x4d6ecf[_0x3427ee(0x1b2)]=_0x5867cf[_0x3427ee(0x1e7)],_0x4d6ecf;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x294856}from'ckeditor5/src/core.js';import{FileRepository as _0x265663}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x43f551}from'./uploadcareediting.js';import{UploadUtils as _0x2d4f49}from'./utils/uploadutils.js';import{getImageUrls as _0x2f837f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x294856{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x265663,_0x43f551];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x478227=this['editor'];if(!!!_0x478227['config']['get']('uploadcare'))return;_0x478227['plugins']['get'](_0x265663)['createUploadAdapter']=_0x36b288=>new k(_0x36b288,_0x478227),_0x478227['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2026e5,{imageElement:_0x2c08b3,data:_0x4e4498})=>{_0x478227['model']['change'](_0x2a78a9=>{_0x2a78a9['setAttribute']('uploadcareImageId',_0x4e4498['uploadcareImageId'],_0x2c08b3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x329101,_0x3aeaf2){this['loader']=_0x329101,this['editor']=_0x3aeaf2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3316b4=await this['loader']['file'];return _0x2d4f49['upload']({'file':_0x3316b4,'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':_0x1740a4=>{_0x1740a4&&_0x1740a4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1740a4['value']);}})['then'](async _0x368e79=>{const {imageFallbackUrl:_0x36cb2d,imageSources:_0x4b4daa}=_0x2f837f(_0x368e79['cdnUrl'],_0x368e79['imageInfo']['width']);return{'uploadcareImageId':_0x368e79['uuid'],'default':_0x36cb2d,'sources':_0x4b4daa};})['catch'](()=>{const _0x45af7f=t('Cannot\x20upload\x20file:')+('\x20'+_0x3316b4['name']+'.');return Promise['reject'](_0x45af7f);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x347171}from'../uploadcareconfig.js';export function getTranslation(_0x30b418,_0x2787fb,_0x824224){const t=_0x30b418['t'],_0x1531b3=_0x30b418['t'];switch(_0x2787fb){case _0x347171['Local']:return{'text':_0x1531b3('Insert'===_0x824224?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1531b3('From\x20computer')};case _0x347171['URL']:return{'text':'Insert'===_0x824224?_0x1531b3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1531b3('Via\x20URL')};case _0x347171['Dropbox']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x347171['Facebook']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x347171['GDrive']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x347171['GPhotos']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x347171['OneDrive']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2787fb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x20ba(_0x496d0b,_0x775486){var _0x1f293c=_0x1f29();return _0x20ba=function(_0x20ba53,_0x42a552){_0x20ba53=_0x20ba53-0x1af;var _0x1af18c=_0x1f293c[_0x20ba53];return _0x1af18c;},_0x20ba(_0x496d0b,_0x775486);}var _0x2ae6f6=_0x20ba;(function(_0x5936eb,_0x2d4d8){var _0x3635c7=_0x20ba,_0xe8d56e=_0x5936eb();while(!![]){try{var _0x4f4a62=-parseInt(_0x3635c7(0x1b2))/0x1*(parseInt(_0x3635c7(0x1bb))/0x2)+-parseInt(_0x3635c7(0x1af))/0x3+parseInt(_0x3635c7(0x1b4))/0x4*(parseInt(_0x3635c7(0x1bd))/0x5)+parseInt(_0x3635c7(0x1ba))/0x6*(-parseInt(_0x3635c7(0x1b8))/0x7)+-parseInt(_0x3635c7(0x1b6))/0x8+parseInt(_0x3635c7(0x1bf))/0x9+parseInt(_0x3635c7(0x1b9))/0xa;if(_0x4f4a62===_0x2d4d8)break;else _0xe8d56e['push'](_0xe8d56e['shift']());}catch(_0xeab61c){_0xe8d56e['push'](_0xe8d56e['shift']());}}}(_0x1f29,0x676b9));import{FocusTracker as _0x4dc858}from'ckeditor5/src/utils.js';import{View as _0x1276b1,FocusCycler as _0x598b1f}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x1f29(){var _0x24f760=['fire','5357565lnQEbO','div','focusTracker','2041875ZzhIxi','forwardCycle','createCollection','314zXCpdv','getFocusableElement','2112416mpgpWx','bindTemplate','4921664kejuoo','focusCycler','147HXiIfT','15563370QUGfdN','117636WMagsQ','3494HDKNTu','true','5YNqqGp'];_0x1f29=function(){return _0x24f760;};return _0x1f29();}export class DialogFocusManagerView extends _0x1276b1{[_0x2ae6f6(0x1c1)];[_0x2ae6f6(0x1b7)];constructor(_0x439aa4){var _0x5e95c7=_0x2ae6f6;super(_0x439aa4),this[_0x5e95c7(0x1c1)]=new _0x4dc858(),this[_0x5e95c7(0x1b7)]=new _0x598b1f({'focusables':this[_0x5e95c7(0x1b1)](),'focusTracker':this[_0x5e95c7(0x1c1)]});}[_0x2ae6f6(0x1b3)](){var _0x16c3e4=_0x2ae6f6;return{'tag':_0x16c3e4(0x1c0),'attributes':{'aria-hidden':_0x16c3e4(0x1bc),'tabindex':'0'},'on':{'focus':this[_0x16c3e4(0x1b5)]['to'](()=>{var _0x58a117=_0x16c3e4;this[_0x58a117(0x1b7)][_0x58a117(0x1be)](_0x58a117(0x1b0));})}};}}
|