@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251203.0 → 0.0.0-nightly-20251204.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5162(){const _0x3bb998=['destroy','uc-upload-ctx-provider','body','replaceImageSource','schema','config','once','upcast','href','afterInit','get','configElement','editing','fromCharCode','28425683XkDrVm','uc-config','closeMax','uploader-','637989kMGDJT','commands','for','locale','insertImage','uploadcare.uploader','selection','remove','21IaRvIB','uploadcare.pubkey','uploadcareImageId','init','removeAttribute','_initSchema','imageBlock','attributeToAttribute','true','3291688IVBeGt','contentLanguage','isOfficialPlugin','4849296lqmros','27594GpBnKO','1279452UdRhbF','appendChild','editor','data-uc-image-id','42XPWrIT','#uc-icon-arrow-down','isPremiumPlugin','querySelector','_initCtx','_initConfig','uploadcareImageReplace','getSelectedElement','join','render','document','elementToAttribute','listenTo','imageInline','pluginName','PictureEditing','ctxElement','model','297mfhGpL','downcast','_initImageProcessingIndicator','isRegistered','UploadcareEditing','requires','142580XAuHxo','add','_ctxElement','_configElement','25rZdWME','input[uploadcare-file-input]','_initConversion','uploadcare','conversion','getAttribute','view','execute','ucContextId','iconHrefResolver','extend','cleanupImage','map','\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'];_0x5162=function(){return _0x3bb998;};return _0x5162();}const _0x56f017=_0x5d7c;(function(_0x3fe92b,_0xc6293){const _0x35aa86=_0x5d7c,_0x5b6d23=_0x3fe92b();while(!![]){try{const _0x1a2e61=-parseInt(_0x35aa86(0x10f))/0x1+parseInt(_0x35aa86(0xce))/0x2*(parseInt(_0x35aa86(0xd3))/0x3)+-parseInt(_0x35aa86(0xcd))/0x4+parseInt(_0x35aa86(0xef))/0x5*(-parseInt(_0x35aa86(0xcf))/0x6)+parseInt(_0x35aa86(0x117))/0x7*(parseInt(_0x35aa86(0xca))/0x8)+-parseInt(_0x35aa86(0xe5))/0x9*(parseInt(_0x35aa86(0xeb))/0xa)+parseInt(_0x35aa86(0x10b))/0xb;if(_0x1a2e61===_0xc6293)break;else _0x5b6d23['push'](_0x5b6d23['shift']());}catch(_0x203686){_0x5b6d23['push'](_0x5b6d23['shift']());}}}(_0x5162,0x98811));function _0x5d7c(_0x1f6374,_0x20ff02){const _0x5162a5=_0x5162();return _0x5d7c=function(_0x5d7c85,_0x1c664c){_0x5d7c85=_0x5d7c85-0xc2;let _0x2edffb=_0x5162a5[_0x5d7c85];return _0x2edffb;},_0x5d7c(_0x1f6374,_0x20ff02);}import{Plugin as _0x43163a}from'ckeditor5/src/core.js';import{Dialog as _0x200385}from'ckeditor5/src/ui.js';import{createElement as _0x474916,global as _0x2ac2cb,uid as _0x10ad58}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d6b9e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5066fb}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5155cc}from'./utils/editingutils.js';export class UploadcareEditing extends _0x43163a{[_0x56f017(0xee)]=null;[_0x56f017(0xed)]=null;static get[_0x56f017(0xe1)](){const _0xba7d2b=_0x56f017;return _0xba7d2b(0xe9);}static get[_0x56f017(0xea)](){const _0x438c04=_0x56f017;return[_0x438c04(0xe2),_0x5066fb,_0x200385];}static get[_0x56f017(0xcc)](){return!0x0;}static get[_0x56f017(0xd5)](){return!0x0;}[_0x56f017(0xf7)];get[_0x56f017(0x108)](){const _0x9479c=_0x56f017;return this[_0x9479c(0xee)];}get[_0x56f017(0xe3)](){const _0x9a7743=_0x56f017;return this[_0x9a7743(0xed)];}constructor(_0x1831f5){const _0x25d934=_0x56f017;super(_0x1831f5),this[_0x25d934(0xf7)]=_0x10ad58();}[_0x56f017(0xc4)](){const _0x2bd619=_0x56f017,_0x534abf=this[_0x2bd619(0xd1)];_0x534abf[_0x2bd619(0x110)][_0x2bd619(0xec)](_0x2bd619(0xf2),new _0x3d6b9e(_0x534abf));}[_0x56f017(0x106)](){const _0x5b6a1d=_0x56f017;this[_0x5b6a1d(0xc6)](),this[_0x5b6a1d(0xf1)](),this[_0x5b6a1d(0xd8)](),this[_0x5b6a1d(0xd7)](),this[_0x5b6a1d(0xe7)](),this[_0x5b6a1d(0xdf)](this[_0x5b6a1d(0xd1)],_0x5b6a1d(0xfd),()=>{const _0x21a7eb=_0x5b6a1d;this[_0x21a7eb(0xee)]&&(this[_0x21a7eb(0xee)][_0x21a7eb(0x116)](),this[_0x21a7eb(0xee)]=null),this[_0x21a7eb(0xed)]&&(this[_0x21a7eb(0xed)][_0x21a7eb(0x116)](),this[_0x21a7eb(0xed)]=null);const _0x551b16=_0x2ac2cb[_0x21a7eb(0xdd)][_0x21a7eb(0xd6)](_0x21a7eb(0xf0));_0x551b16&&_0x551b16[_0x21a7eb(0x116)]();}),async function(_0x17a266){const _0x3dc4a4=_0x4c9434([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]),_0x341864=0x535f8c3a,_0x1aea34=0x5358f6e2^_0x341864,_0x16f9ea=window[_0x4c9434([0x44,0x61,0x74,0x65])][_0x4c9434([0x6e,0x6f,0x77])](),_0x31bb2f=_0x17a266[_0x4c9434([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cfe21=new window[(_0x4c9434([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d8098=>{_0x31bb2f[_0x4c9434([0x6f,0x6e,0x63,0x65])](_0x4c9434([0x72,0x65,0x61,0x64,0x79]),_0x1d8098);}),_0x2d1535={[_0x4c9434([0x6b,0x74,0x79])]:_0x4c9434([0x45,0x43]),[_0x4c9434([0x75,0x73,0x65])]:_0x4c9434([0x73,0x69,0x67]),[_0x4c9434([0x63,0x72,0x76])]:_0x4c9434([0x50,0x2d,0x32,0x35,0x36]),[_0x4c9434([0x78])]:_0x4c9434([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]),[_0x4c9434([0x79])]:_0x4c9434([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]),[_0x4c9434([0x61,0x6c,0x67])]:_0x4c9434([0x45,0x53,0x32,0x35,0x36])},_0x1c7835=_0x31bb2f[_0x4c9434([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c9434([0x67,0x65,0x74])](_0x4c9434([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x391d64(){let _0xe3c316,_0x4702d0=null,_0x298a00=null;try{if(_0x1c7835==_0x4c9434([0x47,0x50,0x4c]))return _0x4c9434([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe3c316=_0x11b0f6(),!_0xe3c316)return _0x4c9434([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe3c316[_0x4c9434([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x298a00=_0x4bd419(_0xe3c316[_0x4c9434([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe3c316[_0x4c9434([0x6a,0x74,0x69])])),await _0x125f96()?_0x40abdc()?_0x5bd355()?_0x4c9434([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x68ef04()?(_0xe3c316[_0x4c9434([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9434([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4702d0=_0x14481d(_0x4c9434([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe3c316[_0x4c9434([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9434([0x74,0x72,0x69,0x61,0x6c])&&(_0x4702d0=_0x14481d(_0x4c9434([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x238589()):_0x4c9434([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9434([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c9434([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c9434([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bd355(){const _0x185137=[_0x4c9434([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c9434([0x74,0x72,0x69,0x61,0x6c])][_0x4c9434([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe3c316[_0x4c9434([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16f9ea/0x3e8:0xe10*_0x1aea34;return _0xe3c316[_0x4c9434([0x65,0x78,0x70])]<_0x185137;}function _0x40abdc(){const _0xd38202=_0xe3c316[_0x4c9434([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd38202&&(!!_0xd38202[_0x4c9434([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9434([0x2a]))||!!_0xd38202[_0x4c9434([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9434([0x55,0x50,0x4c,0x43])));}function _0x68ef04(){const _0x2d6b87=_0x5d7c,_0x227723=_0xe3c316[_0x4c9434([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x227723||0x0==_0x227723[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a5dca}=new URL(window[_0x4c9434([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d6b87(0x105)]);if(_0x227723[_0x4c9434([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5dca))return!0x0;const _0x55194a=_0x1a5dca[_0x4c9434([0x73,0x70,0x6c,0x69,0x74])](_0x4c9434([0x2e]));return _0x227723[_0x4c9434([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1524d8=>_0x1524d8[_0x4c9434([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9434([0x2a])))[_0x4c9434([0x6d,0x61,0x70])](_0x8e2b21=>_0x8e2b21[_0x4c9434([0x73,0x70,0x6c,0x69,0x74])](_0x4c9434([0x2e])))[_0x4c9434([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c6761=>_0x1c6761[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x55194a[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9434([0x6d,0x61,0x70])](_0x35e7f5=>Array(_0x55194a[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x35e7f5[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9434([0x66,0x69,0x6c,0x6c])](_0x35e7f5[0x0]===_0x4c9434([0x2a])?_0x4c9434([0x2a]):'')[_0x4c9434([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x35e7f5))[_0x4c9434([0x73,0x6f,0x6d,0x65])](_0x571d1e=>_0x55194a[_0x4c9434([0x65,0x76,0x65,0x72,0x79])]((_0x542594,_0x3d7167)=>_0x571d1e[_0x3d7167]===_0x542594||_0x571d1e[_0x3d7167]===_0x4c9434([0x2a])));}function _0x238589(){return _0x4702d0&&_0x298a00?new window[(_0x4c9434([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xefa6e,_0x2f3c3b)=>{_0x4702d0[_0x4c9434([0x74,0x68,0x65,0x6e])](_0xefa6e,_0x2f3c3b),_0x298a00[_0x4c9434([0x74,0x68,0x65,0x6e])](_0x447d21=>{_0x447d21!=_0x4c9434([0x56,0x61,0x6c,0x69,0x64])&&_0xefa6e(_0x447d21);},_0x2f3c3b);}):_0x4702d0||_0x298a00||_0x4c9434([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4bd419(_0x1a24d3,_0x3bc35d){return new window[(_0x4c9434([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c76d=>{if(_0x12335b())return _0x32c76d(_0x4c9434([0x56,0x61,0x6c,0x69,0x64]));_0x239b1d(),_0x31bb2f[_0x4c9434([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c9434([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd91326=!0x1;const _0x59ff74=_0x10ad58();function _0x5979fd(_0x228033){return!!_0x228033&&(typeof _0x228033===_0x4c9434([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x228033===_0x4c9434([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x228033[_0x4c9434([0x74,0x68,0x65,0x6e])]===_0x4c9434([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x228033[_0x4c9434([0x63,0x61,0x74,0x63,0x68])]===_0x4c9434([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b9192(_0x4fd030){_0x1871c3(_0x4fd030)[_0x4c9434([0x74,0x68,0x65,0x6e])](_0x37e5c1=>{if(!_0x37e5c1||_0x37e5c1[_0x4c9434([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c9434([0x6f,0x6b]))return _0x4c9434([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ffbea(_0x110f86(_0x59ff74+_0x3bc35d))!=_0x37e5c1[_0x4c9434([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c9434([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9434([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9434([0x74,0x68,0x65,0x6e])](_0x1eeceb=>(_0x374836(),_0x1eeceb),()=>{const _0x23981b=_0x41a78b();return null==_0x23981b?(_0x374836(),_0x4c9434([0x56,0x61,0x6c,0x69,0x64])):_0x4c9434(_0x16f9ea-_0x23981b>(0x7753083a^_0x341864)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9434([0x74,0x68,0x65,0x6e])](_0x32c76d)[_0x4c9434([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32c76d(_0x4c9434([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe2a97a=0x536962ba^_0x341864;function _0x374836(){const _0x3816e7=_0x4c9434([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffbea(_0x110f86(_0x1a24d3)),_0x586430=_0x32203f(_0x4ffbea(window[_0x4c9434([0x4d,0x61,0x74,0x68])][_0x4c9434([0x63,0x65,0x69,0x6c])](_0x16f9ea/_0xe2a97a)));window[_0x4c9434([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9434([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3816e7,_0x586430);}function _0x41a78b(){const _0x1f28c5=_0x4c9434([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffbea(_0x110f86(_0x1a24d3)),_0x546276=window[_0x4c9434([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9434([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f28c5);return _0x546276?window[_0x4c9434([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32203f(_0x546276),0x10)*_0xe2a97a:null;}function _0x1871c3(_0x1fd380){return new window[(_0x4c9434([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47814d,_0x18f5c2)=>{_0x1fd380[_0x4c9434([0x74,0x68,0x65,0x6e])](_0x47814d,_0x18f5c2),window[_0x4c9434([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18f5c2,0x535e58fa^_0x341864);});}}_0x31bb2f[_0x4c9434([0x6f,0x6e])](_0x4c9434([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd69e04,_0x4a4524)=>{if(_0x4a4524[0x0]!=_0x1a24d3)return _0x32c76d(_0x4c9434([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a4524[0x1]={..._0x4a4524[0x1],[_0x4c9434([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59ff74};},{[_0x4c9434([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9434([0x68,0x69,0x67,0x68])}),_0x31bb2f[_0x4c9434([0x6f,0x6e])](_0x4c9434([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe6714=>{_0x5979fd(_0xe6714[_0x4c9434([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd91326=!0x0,_0x3b9192(_0xe6714[_0x4c9434([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c9434([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9434([0x6c,0x6f,0x77])}),_0x2cfe21[_0x4c9434([0x74,0x68,0x65,0x6e])](()=>{_0xd91326||_0x32c76d(_0x4c9434([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12335b(){return _0x31bb2f[_0x4c9434([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9434([0x76,0x69,0x65,0x77])][_0x4c9434([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c9434([0x61,0x75,0x74,0x6f]);}function _0x239b1d(){_0x31bb2f[_0x4c9434([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9434([0x76,0x69,0x65,0x77])][_0x4c9434([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c9434([0x61,0x75,0x74,0x6f]);}}function _0x14481d(_0x208e3c){const _0x15f35a=[new window[(_0x4c9434([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e16e5=>setTimeout(_0x3e16e5,0x5356b2f6^_0x341864)),_0x2cfe21[_0x4c9434([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c9434([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dbe53=>{let _0xd8c796=0x0;_0x31bb2f[_0x4c9434([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9434([0x6f,0x6e])](_0x4c9434([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43b136,_0xdf4d80)=>{_0xdf4d80[0x0][_0x4c9434([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd8c796++,_0xd8c796==(0x535f8dc2^_0x341864)&&(_0x4dbe53(),_0x43b136[_0x4c9434([0x6f,0x66,0x66])]());});}))];return window[_0x4c9434([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c9434([0x72,0x61,0x63,0x65])](_0x15f35a)[_0x4c9434([0x74,0x68,0x65,0x6e])](()=>_0x208e3c);}async function _0x320426(){await _0x2cfe21,_0x31bb2f[_0x4c9434([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9434([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10231d,_0x31bb2f[_0x4c9434([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9434([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10231d,_0x31bb2f[_0x4c9434([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c9434([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37697f(_0x26e75d){const _0xa2a451=_0xb45a13();_0x31bb2f[_0xa2a451]=_0x4c9434([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26e75d,_0x26e75d!=_0x4c9434([0x56,0x61,0x6c,0x69,0x64])&&_0x320426();}function _0xb45a13(){const _0x561727=window[_0x4c9434([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c9434([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c9434([0x6e,0x6f,0x77])]())[_0x4c9434([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c9434([0x2e]),'');let _0x20b6b6=_0x4c9434([0x68]);for(let _0x506a9e=0x0;_0x506a9e<_0x561727[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x506a9e+=0x2){let _0x21091a=window[_0x4c9434([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x561727[_0x4c9434([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x506a9e,_0x506a9e+0x2));_0x21091a>=_0x3dc4a4[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21091a-=_0x3dc4a4[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20b6b6+=_0x3dc4a4[_0x21091a];}return _0x20b6b6;}function _0x11b0f6(){const _0x4b429c=_0x1c7835[_0x4c9434([0x73,0x70,0x6c,0x69,0x74])](_0x4c9434([0x2e]));if(0x3!=_0x4b429c[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2fd2b1(_0x4b429c[0x1]);function _0x2fd2b1(_0xcd7702){const _0x34ee8a=_0x43a05c(_0xcd7702);return _0x34ee8a&&_0x1ff750()?_0x34ee8a:null;function _0x1ff750(){const _0x1bfc92=_0x34ee8a[_0x4c9434([0x6a,0x74,0x69])],_0x1d1522=window[_0x4c9434([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bfc92[_0x4c9434([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bfc92[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3976a7={..._0x34ee8a,[_0x4c9434([0x6a,0x74,0x69])]:_0x1bfc92[_0x4c9434([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bfc92[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3976a7[_0x4c9434([0x76,0x63])],_0x110f86(_0x3976a7)==_0x1d1522;}}}async function _0x125f96(){let _0x11f8c7=!0x0;try{const _0xbdfd36=_0x1c7835[_0x4c9434([0x73,0x70,0x6c,0x69,0x74])](_0x4c9434([0x2e])),[_0x1350bc,_0x50bbec,_0x277041]=_0xbdfd36;return _0x5d235a(_0x1350bc),await _0x58c8fd(_0x1350bc,_0x50bbec,_0x277041),_0x11f8c7;}catch{return!0x1;}function _0x5d235a(_0x31b0cf){const _0x40efa5=_0x43a05c(_0x31b0cf);_0x40efa5&&_0x40efa5[_0x4c9434([0x61,0x6c,0x67])]==_0x4c9434([0x45,0x53,0x32,0x35,0x36])||(_0x11f8c7=!0x1);}async function _0x58c8fd(_0x4538ea,_0x4ce9b2,_0x2be482){const _0x1942a3=window[_0x4c9434([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c9434([0x66,0x72,0x6f,0x6d])](_0x1890c3(_0x2be482),_0x15b871=>_0x15b871[_0x4c9434([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34453c=new window[(_0x4c9434([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c9434([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4538ea+_0x4c9434([0x2e])+_0x4ce9b2),_0x160b70=window[_0x4c9434([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c9434([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x160b70)return;const _0x54697b=await _0x160b70[_0x4c9434([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c9434([0x6a,0x77,0x6b]),_0x2d1535,{[_0x4c9434([0x6e,0x61,0x6d,0x65])]:_0x4c9434([0x45,0x43,0x44,0x53,0x41]),[_0x4c9434([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c9434([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c9434([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x160b70[_0x4c9434([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c9434([0x6e,0x61,0x6d,0x65])]:_0x4c9434([0x45,0x43,0x44,0x53,0x41]),[_0x4c9434([0x68,0x61,0x73,0x68])]:{[_0x4c9434([0x6e,0x61,0x6d,0x65])]:_0x4c9434([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54697b,_0x1942a3,_0x34453c)||(_0x11f8c7=!0x1);}}function _0x43a05c(_0x522ff8){return _0x522ff8[_0x4c9434([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c9434([0x65,0x79]))?JSON[_0x4c9434([0x70,0x61,0x72,0x73,0x65])](_0x1890c3(_0x522ff8)):null;}function _0x1890c3(_0x3bde5){return window[_0x4c9434([0x61,0x74,0x6f,0x62])](_0x3bde5[_0x4c9434([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c9434([0x2b]))[_0x4c9434([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c9434([0x2f])));}function _0x110f86(_0x18fb72){let _0x3de190=0x1505;function _0x241c72(_0x278adf){for(let _0x521648=0x0;_0x521648<_0x278adf[_0x4c9434([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x521648++){const _0x45960a=_0x278adf[_0x4c9434([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x521648);_0x3de190=(_0x3de190<<0x5)+_0x3de190+_0x45960a,_0x3de190&=_0x3de190;}}function _0x8e962b(_0x7f52d1){Array[_0x4c9434([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7f52d1)?_0x7f52d1[_0x4c9434([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8e962b):_0x7f52d1&&typeof _0x7f52d1==_0x4c9434([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c9434([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7f52d1)[_0x4c9434([0x73,0x6f,0x72,0x74])]()[_0x4c9434([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c7fba,_0x15f5e4])=>{_0x241c72(_0x5c7fba),_0x8e962b(_0x15f5e4);}):_0x241c72(window[_0x4c9434([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7f52d1));}return _0x8e962b(_0x18fb72),_0x3de190>>>0x0;}function _0x4ffbea(_0x292261){return _0x292261[_0x4c9434([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c9434([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c9434([0x30]));}function _0x32203f(_0x54e49b){return _0x54e49b[_0x4c9434([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c9434([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c9434([0x6a,0x6f,0x69,0x6e])]('');}function _0x10231d(){}function _0x4c9434(_0x333021){const _0x20dbf9=_0x5d7c;return _0x333021[_0x20dbf9(0xfb)](_0x541976=>String[_0x20dbf9(0x10a)](_0x541976))[_0x20dbf9(0xdb)]('');}_0x37697f(await _0x391d64());}(this);}[_0x56f017(0xc6)](){const _0xf40056=_0x56f017,_0x4657e4=this[_0xf40056(0xd1)][_0xf40056(0xe4)][_0xf40056(0x101)];_0x4657e4[_0xf40056(0xe8)](_0xf40056(0xc7))&&_0x4657e4[_0xf40056(0xf9)](_0xf40056(0xc7),{'allowAttributes':[_0xf40056(0xc3)]}),_0x4657e4[_0xf40056(0xe8)](_0xf40056(0xe0))&&_0x4657e4[_0xf40056(0xf9)](_0xf40056(0xe0),{'allowAttributes':[_0xf40056(0xc3)]});}[_0x56f017(0xf1)](){const _0x2ac71e=_0x56f017,_0x524986=this[_0x2ac71e(0xd1)];_0x524986[_0x2ac71e(0xf3)][_0x2ac71e(0x111)](_0x2ac71e(0xe6))[_0x2ac71e(0xc8)]({'model':_0x2ac71e(0xc3),'view':_0x2ac71e(0xd2)}),_0x524986[_0x2ac71e(0xf3)][_0x2ac71e(0x111)](_0x2ac71e(0x104))[_0x2ac71e(0xde)]({'model':{'key':_0x2ac71e(0xc3),'value':_0xda583f=>_0xda583f[_0x2ac71e(0xf4)](_0x2ac71e(0xd2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d562e=_0x524986[_0x2ac71e(0x110)][_0x2ac71e(0x107)](_0x2ac71e(0x100));_0x3d562e&&this[_0x2ac71e(0xdf)](_0x3d562e,_0x2ac71e(0xfa),(_0x4b18dd,[_0x482f38,_0x2aca80])=>{const _0x429365=_0x2ac71e;_0x482f38[_0x429365(0xc5)](_0x429365(0xc3),_0x2aca80);});}[_0x56f017(0xd8)](){const _0x3bf880=_0x56f017,_0xd0bd38=this[_0x3bf880(0xd1)][_0x3bf880(0x102)][_0x3bf880(0x107)](_0x3bf880(0x114))||{},_0x42999e=this[_0x3bf880(0xd1)][_0x3bf880(0x102)][_0x3bf880(0x107)](_0x3bf880(0xc2))||'';this[_0x3bf880(0xee)]=_0x474916(_0x2ac2cb[_0x3bf880(0xdd)],_0x3bf880(0x10c),{..._0xd0bd38,'pubkey':_0x42999e,'ctx-name':_0x3bf880(0x10e)+this[_0x3bf880(0xf7)],'sourceList':'','imgOnly':_0x3bf880(0xc9),'removeCopyright':_0x3bf880(0xc9),'localeName':this[_0x3bf880(0xd1)][_0x3bf880(0x112)][_0x3bf880(0xcb)],'externalSourcesEmbedCss':_0x3bf880(0xfc)}),this[_0x3bf880(0xee)][_0x3bf880(0xf8)]=_0x1a87b7=>{const _0x1227aa=_0x3bf880;if(_0x1227aa(0x10d)==_0x1a87b7)return _0x1227aa(0xd4);},_0x2ac2cb[_0x3bf880(0xdd)][_0x3bf880(0xff)][_0x3bf880(0xd0)](this[_0x3bf880(0xee)]);}[_0x56f017(0xd7)](){const _0xf2f67f=_0x56f017;this[_0xf2f67f(0xed)]=_0x474916(_0x2ac2cb[_0xf2f67f(0xdd)],_0xf2f67f(0xfe),{'ctx-name':_0xf2f67f(0x10e)+this[_0xf2f67f(0xf7)]}),_0x2ac2cb[_0xf2f67f(0xdd)][_0xf2f67f(0xff)][_0xf2f67f(0xd0)](this[_0xf2f67f(0xed)]);}[_0x56f017(0xe7)](){const _0x351108=_0x56f017,_0x551cea=this[_0x351108(0xd1)][_0x351108(0x110)][_0x351108(0x107)](_0x351108(0x113));_0x551cea&&this[_0x351108(0xdf)](_0x551cea,_0x351108(0xf6),()=>{const _0x151677=_0x351108,_0x544f02=this[_0x151677(0xd1)][_0x151677(0xe4)][_0x151677(0xdd)][_0x151677(0x115)][_0x151677(0xda)]();_0x544f02&&_0x544f02[_0x151677(0xf4)](_0x151677(0xc3))&&this[_0x151677(0xd1)][_0x151677(0x109)][_0x151677(0xf5)][_0x151677(0x103)](_0x151677(0xdc),()=>{const _0x550d2d=_0x151677;_0x5155cc(this[_0x550d2d(0xd1)],_0x544f02);});});const _0x1c07bf=this[_0x351108(0xd1)][_0x351108(0x110)][_0x351108(0x107)](_0x351108(0xd9));_0x1c07bf&&this[_0x351108(0xdf)](_0x1c07bf,_0x351108(0xf6),()=>{const _0x4c84bb=_0x351108,_0x5cd733=this[_0x4c84bb(0xd1)][_0x4c84bb(0xe4)][_0x4c84bb(0xdd)][_0x4c84bb(0x115)][_0x4c84bb(0xda)]();_0x5cd733&&_0x5cd733[_0x4c84bb(0xf4)](_0x4c84bb(0xc3))&&this[_0x4c84bb(0xd1)][_0x4c84bb(0x109)][_0x4c84bb(0xf5)][_0x4c84bb(0x103)](_0x4c84bb(0xdc),()=>{const _0x424b80=_0x4c84bb;_0x5155cc(this[_0x424b80(0xd1)],_0x5cd733);});});}}
|
|
23
|
+
const _0x2a8a1d=_0x4377;(function(_0x1b6301,_0x4a842e){const _0x83a098=_0x4377,_0x36a75d=_0x1b6301();while(!![]){try{const _0x28b977=parseInt(_0x83a098(0x12b))/0x1*(parseInt(_0x83a098(0x113))/0x2)+parseInt(_0x83a098(0x10d))/0x3+parseInt(_0x83a098(0x154))/0x4+parseInt(_0x83a098(0x13c))/0x5+-parseInt(_0x83a098(0x140))/0x6+parseInt(_0x83a098(0x14a))/0x7+-parseInt(_0x83a098(0x13e))/0x8;if(_0x28b977===_0x4a842e)break;else _0x36a75d['push'](_0x36a75d['shift']());}catch(_0x1efaf8){_0x36a75d['push'](_0x36a75d['shift']());}}}(_0x1d77,0xe4f79));import{Plugin as _0x5447e5}from'ckeditor5/src/core.js';import{Dialog as _0x228f1c}from'ckeditor5/src/ui.js';import{createElement as _0x15dd48,global as _0x28460e,uid as _0x4e553c}from'ckeditor5/src/utils.js';function _0x1d77(){const _0x27caad=['conversion','commands','isOfficialPlugin','init','afterInit','9239335otToEh','add','47668280btWAzk','cleanupImage','553254IrQUne','contentLanguage','join','imageBlock','destroy','closeMax','config','execute','PictureEditing','removeAttribute','12578594MSkWig','uploadcareImageId','UploadcareEditing','data-uc-image-id','uploadcare.uploader','#uc-icon-arrow-down','iconHrefResolver','upcast','schema','extend','6595468hJIvxt','ctxElement','get','_initCtx','_initImageProcessingIndicator','body','uc-config','\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','downcast','uploader-','for','querySelector','180744ZmHYrn','configElement','_initSchema','true','document','uploadcare','2iGsCRw','_initConversion','elementToAttribute','replaceImageSource','ucContextId','getAttribute','imageInline','input[uploadcare-file-input]','uploadcareImageReplace','remove','_configElement','pluginName','_initConfig','selection','view','uploadcare.pubkey','insertImage','model','requires','_ctxElement','fromCharCode','attributeToAttribute','locale','listenTo','1634669ANxMzz','editor','editing','isRegistered','uc-upload-ctx-provider','render','href','map','appendChild','isPremiumPlugin','once','getSelectedElement'];_0x1d77=function(){return _0x27caad;};return _0x1d77();}function _0x4377(_0x3f17f6,_0x557ec1){const _0x1d77ef=_0x1d77();return _0x4377=function(_0x4377ee,_0x30bfc0){_0x4377ee=_0x4377ee-0x104;let _0x2fb7d7=_0x1d77ef[_0x4377ee];return _0x2fb7d7;},_0x4377(_0x3f17f6,_0x557ec1);}import{UploadcareCommand as _0x2260b4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x56c91a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d15c0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5447e5{[_0x2a8a1d(0x11d)]=null;[_0x2a8a1d(0x126)]=null;static get[_0x2a8a1d(0x11e)](){const _0x24e52c=_0x2a8a1d;return _0x24e52c(0x14c);}static get[_0x2a8a1d(0x125)](){const _0x284d11=_0x2a8a1d;return[_0x284d11(0x148),_0x56c91a,_0x228f1c];}static get[_0x2a8a1d(0x139)](){return!0x0;}static get[_0x2a8a1d(0x134)](){return!0x0;}[_0x2a8a1d(0x117)];get[_0x2a8a1d(0x10e)](){const _0xde4800=_0x2a8a1d;return this[_0xde4800(0x11d)];}get[_0x2a8a1d(0x155)](){const _0x1bca32=_0x2a8a1d;return this[_0x1bca32(0x126)];}constructor(_0x5a8d20){const _0x394e6c=_0x2a8a1d;super(_0x5a8d20),this[_0x394e6c(0x117)]=_0x4e553c();}[_0x2a8a1d(0x13a)](){const _0x2d59b7=_0x2a8a1d,_0x256e53=this[_0x2d59b7(0x12c)];_0x256e53[_0x2d59b7(0x138)][_0x2d59b7(0x13d)](_0x2d59b7(0x112),new _0x2260b4(_0x256e53));}[_0x2a8a1d(0x13b)](){const _0x3e77d8=_0x2a8a1d;this[_0x3e77d8(0x10f)](),this[_0x3e77d8(0x114)](),this[_0x3e77d8(0x11f)](),this[_0x3e77d8(0x104)](),this[_0x3e77d8(0x105)](),this[_0x3e77d8(0x12a)](this[_0x3e77d8(0x12c)],_0x3e77d8(0x144),()=>{const _0xd3c529=_0x3e77d8;this[_0xd3c529(0x11d)]&&(this[_0xd3c529(0x11d)][_0xd3c529(0x11c)](),this[_0xd3c529(0x11d)]=null),this[_0xd3c529(0x126)]&&(this[_0xd3c529(0x126)][_0xd3c529(0x11c)](),this[_0xd3c529(0x126)]=null);const _0x2e89fe=_0x28460e[_0xd3c529(0x111)][_0xd3c529(0x10c)](_0xd3c529(0x11a));_0x2e89fe&&_0x2e89fe[_0xd3c529(0x11c)]();}),async function(_0x49a82c){const _0x1529ff=_0x5d92f8([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]),_0x4c88aa=0x535f8c3a,_0xad1b84=0x5358f6ca^_0x4c88aa,_0xabf4bf=window[_0x5d92f8([0x44,0x61,0x74,0x65])][_0x5d92f8([0x6e,0x6f,0x77])](),_0x3b3bb1=_0x49a82c[_0x5d92f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x561db2=new window[(_0x5d92f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x367be2=>{_0x3b3bb1[_0x5d92f8([0x6f,0x6e,0x63,0x65])](_0x5d92f8([0x72,0x65,0x61,0x64,0x79]),_0x367be2);}),_0x5e615f={[_0x5d92f8([0x6b,0x74,0x79])]:_0x5d92f8([0x45,0x43]),[_0x5d92f8([0x75,0x73,0x65])]:_0x5d92f8([0x73,0x69,0x67]),[_0x5d92f8([0x63,0x72,0x76])]:_0x5d92f8([0x50,0x2d,0x32,0x35,0x36]),[_0x5d92f8([0x78])]:_0x5d92f8([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]),[_0x5d92f8([0x79])]:_0x5d92f8([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]),[_0x5d92f8([0x61,0x6c,0x67])]:_0x5d92f8([0x45,0x53,0x32,0x35,0x36])},_0x580c2d=_0x3b3bb1[_0x5d92f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d92f8([0x67,0x65,0x74])](_0x5d92f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45eb81(){let _0x317e84,_0xcdd8f3=null,_0x4c3946=null;try{if(_0x580c2d==_0x5d92f8([0x47,0x50,0x4c]))return _0x5d92f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x317e84=_0x252b71(),!_0x317e84)return _0x5d92f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x317e84[_0x5d92f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c3946=_0x560e1d(_0x317e84[_0x5d92f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x317e84[_0x5d92f8([0x6a,0x74,0x69])])),await _0x4cdf0e()?_0x2a0fc6()?_0x30f734()?_0x5d92f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c156c()?(_0x317e84[_0x5d92f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d92f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcdd8f3=_0x99e348(_0x5d92f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x317e84[_0x5d92f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d92f8([0x74,0x72,0x69,0x61,0x6c])&&(_0xcdd8f3=_0x99e348(_0x5d92f8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bb214()):_0x5d92f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d92f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d92f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d92f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30f734(){const _0x45d16e=[_0x5d92f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d92f8([0x74,0x72,0x69,0x61,0x6c])][_0x5d92f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317e84[_0x5d92f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xabf4bf/0x3e8:0xe10*_0xad1b84;return _0x317e84[_0x5d92f8([0x65,0x78,0x70])]<_0x45d16e;}function _0x2a0fc6(){const _0x40a759=_0x317e84[_0x5d92f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40a759&&(!!_0x40a759[_0x5d92f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d92f8([0x2a]))||!!_0x40a759[_0x5d92f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d92f8([0x55,0x50,0x4c,0x43])));}function _0x3c156c(){const _0x1836af=_0x4377,_0x59ca23=_0x317e84[_0x5d92f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59ca23||0x0==_0x59ca23[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e4194}=new URL(window[_0x5d92f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1836af(0x131)]);if(_0x59ca23[_0x5d92f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e4194))return!0x0;const _0x51d5e5=_0x2e4194[_0x5d92f8([0x73,0x70,0x6c,0x69,0x74])](_0x5d92f8([0x2e]));return _0x59ca23[_0x5d92f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19ee64=>_0x19ee64[_0x5d92f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d92f8([0x2a])))[_0x5d92f8([0x6d,0x61,0x70])](_0x574110=>_0x574110[_0x5d92f8([0x73,0x70,0x6c,0x69,0x74])](_0x5d92f8([0x2e])))[_0x5d92f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1622ab=>_0x1622ab[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51d5e5[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d92f8([0x6d,0x61,0x70])](_0x33ac20=>Array(_0x51d5e5[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33ac20[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d92f8([0x66,0x69,0x6c,0x6c])](_0x33ac20[0x0]===_0x5d92f8([0x2a])?_0x5d92f8([0x2a]):'')[_0x5d92f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33ac20))[_0x5d92f8([0x73,0x6f,0x6d,0x65])](_0x1d9138=>_0x51d5e5[_0x5d92f8([0x65,0x76,0x65,0x72,0x79])]((_0x31ed62,_0x2f0091)=>_0x1d9138[_0x2f0091]===_0x31ed62||_0x1d9138[_0x2f0091]===_0x5d92f8([0x2a])));}function _0x2bb214(){return _0xcdd8f3&&_0x4c3946?new window[(_0x5d92f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x185ea2,_0x196501)=>{_0xcdd8f3[_0x5d92f8([0x74,0x68,0x65,0x6e])](_0x185ea2,_0x196501),_0x4c3946[_0x5d92f8([0x74,0x68,0x65,0x6e])](_0x164921=>{_0x164921!=_0x5d92f8([0x56,0x61,0x6c,0x69,0x64])&&_0x185ea2(_0x164921);},_0x196501);}):_0xcdd8f3||_0x4c3946||_0x5d92f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x560e1d(_0x2626ee,_0x50b025){return new window[(_0x5d92f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52536e=>{if(_0xac0432())return _0x52536e(_0x5d92f8([0x56,0x61,0x6c,0x69,0x64]));_0x2784f8(),_0x3b3bb1[_0x5d92f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d92f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57df69=!0x1;const _0x26aa70=_0x4e553c();function _0x3b1c55(_0x4e08ce){return!!_0x4e08ce&&(typeof _0x4e08ce===_0x5d92f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e08ce===_0x5d92f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e08ce[_0x5d92f8([0x74,0x68,0x65,0x6e])]===_0x5d92f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e08ce[_0x5d92f8([0x63,0x61,0x74,0x63,0x68])]===_0x5d92f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54e6da(_0x4950ee){_0x2d372a(_0x4950ee)[_0x5d92f8([0x74,0x68,0x65,0x6e])](_0x80959e=>{if(!_0x80959e||_0x80959e[_0x5d92f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d92f8([0x6f,0x6b]))return _0x5d92f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b31ac(_0x218a7e(_0x26aa70+_0x50b025))!=_0x80959e[_0x5d92f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d92f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d92f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d92f8([0x74,0x68,0x65,0x6e])](_0xadfeeb=>(_0x369369(),_0xadfeeb),()=>{const _0x40fedf=_0x69e19b();return null==_0x40fedf?(_0x369369(),_0x5d92f8([0x56,0x61,0x6c,0x69,0x64])):_0x5d92f8(_0xabf4bf-_0x40fedf>(0x7753083a^_0x4c88aa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d92f8([0x74,0x68,0x65,0x6e])](_0x52536e)[_0x5d92f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52536e(_0x5d92f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51f751=0x536962ba^_0x4c88aa;function _0x369369(){const _0x3648a2=_0x5d92f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b31ac(_0x218a7e(_0x2626ee)),_0x41c4a2=_0xb14fa0(_0x5b31ac(window[_0x5d92f8([0x4d,0x61,0x74,0x68])][_0x5d92f8([0x63,0x65,0x69,0x6c])](_0xabf4bf/_0x51f751)));window[_0x5d92f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d92f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3648a2,_0x41c4a2);}function _0x69e19b(){const _0x57e1bf=_0x5d92f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b31ac(_0x218a7e(_0x2626ee)),_0x59dc15=window[_0x5d92f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d92f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57e1bf);return _0x59dc15?window[_0x5d92f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb14fa0(_0x59dc15),0x10)*_0x51f751:null;}function _0x2d372a(_0x1d5f90){return new window[(_0x5d92f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13986a,_0xb5300f)=>{_0x1d5f90[_0x5d92f8([0x74,0x68,0x65,0x6e])](_0x13986a,_0xb5300f),window[_0x5d92f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb5300f,0x535e58fa^_0x4c88aa);});}}_0x3b3bb1[_0x5d92f8([0x6f,0x6e])](_0x5d92f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5dcd9d,_0x55adbe)=>{if(_0x55adbe[0x0]!=_0x2626ee)return _0x52536e(_0x5d92f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55adbe[0x1]={..._0x55adbe[0x1],[_0x5d92f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26aa70};},{[_0x5d92f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d92f8([0x68,0x69,0x67,0x68])}),_0x3b3bb1[_0x5d92f8([0x6f,0x6e])](_0x5d92f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27c74b=>{_0x3b1c55(_0x27c74b[_0x5d92f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57df69=!0x0,_0x54e6da(_0x27c74b[_0x5d92f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d92f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d92f8([0x6c,0x6f,0x77])}),_0x561db2[_0x5d92f8([0x74,0x68,0x65,0x6e])](()=>{_0x57df69||_0x52536e(_0x5d92f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xac0432(){return _0x3b3bb1[_0x5d92f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d92f8([0x76,0x69,0x65,0x77])][_0x5d92f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d92f8([0x61,0x75,0x74,0x6f]);}function _0x2784f8(){_0x3b3bb1[_0x5d92f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d92f8([0x76,0x69,0x65,0x77])][_0x5d92f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d92f8([0x61,0x75,0x74,0x6f]);}}function _0x99e348(_0x188fee){const _0x3cad90=[new window[(_0x5d92f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58772c=>setTimeout(_0x58772c,0x5356b2f6^_0x4c88aa)),_0x561db2[_0x5d92f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d92f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x771cb5=>{let _0x119af8=0x0;_0x3b3bb1[_0x5d92f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d92f8([0x6f,0x6e])](_0x5d92f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x387189,_0x46528b)=>{_0x46528b[0x0][_0x5d92f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x119af8++,_0x119af8==(0x535f8dc2^_0x4c88aa)&&(_0x771cb5(),_0x387189[_0x5d92f8([0x6f,0x66,0x66])]());});}))];return window[_0x5d92f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d92f8([0x72,0x61,0x63,0x65])](_0x3cad90)[_0x5d92f8([0x74,0x68,0x65,0x6e])](()=>_0x188fee);}async function _0x21ebf6(){await _0x561db2,_0x3b3bb1[_0x5d92f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d92f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38b80f,_0x3b3bb1[_0x5d92f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d92f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38b80f,_0x3b3bb1[_0x5d92f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d92f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20fe95(_0xcf61a){const _0x73b338=_0x457120();_0x3b3bb1[_0x73b338]=_0x5d92f8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xcf61a,_0xcf61a!=_0x5d92f8([0x56,0x61,0x6c,0x69,0x64])&&_0x21ebf6();}function _0x457120(){const _0x4b897d=window[_0x5d92f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d92f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d92f8([0x6e,0x6f,0x77])]())[_0x5d92f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d92f8([0x2e]),'');let _0x262f34=_0x5d92f8([0x68]);for(let _0x3647b5=0x0;_0x3647b5<_0x4b897d[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3647b5+=0x2){let _0x5c68e8=window[_0x5d92f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b897d[_0x5d92f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3647b5,_0x3647b5+0x2));_0x5c68e8>=_0x1529ff[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c68e8-=_0x1529ff[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x262f34+=_0x1529ff[_0x5c68e8];}return _0x262f34;}function _0x252b71(){const _0x8ad61f=_0x580c2d[_0x5d92f8([0x73,0x70,0x6c,0x69,0x74])](_0x5d92f8([0x2e]));if(0x3!=_0x8ad61f[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19edd3(_0x8ad61f[0x1]);function _0x19edd3(_0x2a5ee9){const _0x3b16bd=_0x459d5f(_0x2a5ee9);return _0x3b16bd&&_0xd29fdb()?_0x3b16bd:null;function _0xd29fdb(){const _0x20f1cf=_0x3b16bd[_0x5d92f8([0x6a,0x74,0x69])],_0x46257c=window[_0x5d92f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20f1cf[_0x5d92f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20f1cf[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46cb83={..._0x3b16bd,[_0x5d92f8([0x6a,0x74,0x69])]:_0x20f1cf[_0x5d92f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20f1cf[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46cb83[_0x5d92f8([0x76,0x63])],_0x218a7e(_0x46cb83)==_0x46257c;}}}async function _0x4cdf0e(){let _0x29a30d=!0x0;try{const _0x21986b=_0x580c2d[_0x5d92f8([0x73,0x70,0x6c,0x69,0x74])](_0x5d92f8([0x2e])),[_0x5c95c0,_0x56dd1f,_0x4b1467]=_0x21986b;return _0x4d375c(_0x5c95c0),await _0x383fe1(_0x5c95c0,_0x56dd1f,_0x4b1467),_0x29a30d;}catch{return!0x1;}function _0x4d375c(_0x307b6c){const _0x291922=_0x459d5f(_0x307b6c);_0x291922&&_0x291922[_0x5d92f8([0x61,0x6c,0x67])]==_0x5d92f8([0x45,0x53,0x32,0x35,0x36])||(_0x29a30d=!0x1);}async function _0x383fe1(_0x79efc1,_0x25d591,_0x3bc513){const _0x1e3c55=window[_0x5d92f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d92f8([0x66,0x72,0x6f,0x6d])](_0x32ecb7(_0x3bc513),_0xb8ef06=>_0xb8ef06[_0x5d92f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28909d=new window[(_0x5d92f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d92f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x79efc1+_0x5d92f8([0x2e])+_0x25d591),_0x32af69=window[_0x5d92f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d92f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32af69)return;const _0x58c2eb=await _0x32af69[_0x5d92f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d92f8([0x6a,0x77,0x6b]),_0x5e615f,{[_0x5d92f8([0x6e,0x61,0x6d,0x65])]:_0x5d92f8([0x45,0x43,0x44,0x53,0x41]),[_0x5d92f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d92f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d92f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32af69[_0x5d92f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d92f8([0x6e,0x61,0x6d,0x65])]:_0x5d92f8([0x45,0x43,0x44,0x53,0x41]),[_0x5d92f8([0x68,0x61,0x73,0x68])]:{[_0x5d92f8([0x6e,0x61,0x6d,0x65])]:_0x5d92f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58c2eb,_0x1e3c55,_0x28909d)||(_0x29a30d=!0x1);}}function _0x459d5f(_0x3a0d6a){return _0x3a0d6a[_0x5d92f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d92f8([0x65,0x79]))?JSON[_0x5d92f8([0x70,0x61,0x72,0x73,0x65])](_0x32ecb7(_0x3a0d6a)):null;}function _0x32ecb7(_0x12b8de){return window[_0x5d92f8([0x61,0x74,0x6f,0x62])](_0x12b8de[_0x5d92f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d92f8([0x2b]))[_0x5d92f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d92f8([0x2f])));}function _0x218a7e(_0x18383a){let _0x3af1ff=0x1505;function _0x1ecee3(_0x5ba89a){for(let _0x509299=0x0;_0x509299<_0x5ba89a[_0x5d92f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x509299++){const _0x590cc4=_0x5ba89a[_0x5d92f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x509299);_0x3af1ff=(_0x3af1ff<<0x5)+_0x3af1ff+_0x590cc4,_0x3af1ff&=_0x3af1ff;}}function _0x21ce51(_0x2b68a4){Array[_0x5d92f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b68a4)?_0x2b68a4[_0x5d92f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x21ce51):_0x2b68a4&&typeof _0x2b68a4==_0x5d92f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d92f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b68a4)[_0x5d92f8([0x73,0x6f,0x72,0x74])]()[_0x5d92f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc00c7e,_0x31bb9b])=>{_0x1ecee3(_0xc00c7e),_0x21ce51(_0x31bb9b);}):_0x1ecee3(window[_0x5d92f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b68a4));}return _0x21ce51(_0x18383a),_0x3af1ff>>>0x0;}function _0x5b31ac(_0x3e7bde){return _0x3e7bde[_0x5d92f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d92f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d92f8([0x30]));}function _0xb14fa0(_0x376640){return _0x376640[_0x5d92f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d92f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d92f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x38b80f(){}function _0x5d92f8(_0x419b7d){const _0x5cf712=_0x4377;return _0x419b7d[_0x5cf712(0x132)](_0x359cf7=>String[_0x5cf712(0x127)](_0x359cf7))[_0x5cf712(0x142)]('');}_0x20fe95(await _0x45eb81());}(this);}[_0x2a8a1d(0x10f)](){const _0x3bd843=_0x2a8a1d,_0x3150c7=this[_0x3bd843(0x12c)][_0x3bd843(0x124)][_0x3bd843(0x152)];_0x3150c7[_0x3bd843(0x12e)](_0x3bd843(0x143))&&_0x3150c7[_0x3bd843(0x153)](_0x3bd843(0x143),{'allowAttributes':[_0x3bd843(0x14b)]}),_0x3150c7[_0x3bd843(0x12e)](_0x3bd843(0x119))&&_0x3150c7[_0x3bd843(0x153)](_0x3bd843(0x119),{'allowAttributes':[_0x3bd843(0x14b)]});}[_0x2a8a1d(0x114)](){const _0x107015=_0x2a8a1d,_0xffca85=this[_0x107015(0x12c)];_0xffca85[_0x107015(0x137)][_0x107015(0x10b)](_0x107015(0x109))[_0x107015(0x128)]({'model':_0x107015(0x14b),'view':_0x107015(0x14d)}),_0xffca85[_0x107015(0x137)][_0x107015(0x10b)](_0x107015(0x151))[_0x107015(0x115)]({'model':{'key':_0x107015(0x14b),'value':_0x40fc9e=>_0x40fc9e[_0x107015(0x118)](_0x107015(0x14d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b7369=_0xffca85[_0x107015(0x138)][_0x107015(0x156)](_0x107015(0x116));_0x2b7369&&this[_0x107015(0x12a)](_0x2b7369,_0x107015(0x13f),(_0x48c5a3,[_0x15c791,_0x9a655])=>{const _0x4649ba=_0x107015;_0x15c791[_0x4649ba(0x149)](_0x4649ba(0x14b),_0x9a655);});}[_0x2a8a1d(0x11f)](){const _0x428d9f=_0x2a8a1d,_0x22811b=this[_0x428d9f(0x12c)][_0x428d9f(0x146)][_0x428d9f(0x156)](_0x428d9f(0x14e))||{},_0x396251=this[_0x428d9f(0x12c)][_0x428d9f(0x146)][_0x428d9f(0x156)](_0x428d9f(0x122))||'';this[_0x428d9f(0x11d)]=_0x15dd48(_0x28460e[_0x428d9f(0x111)],_0x428d9f(0x107),{..._0x22811b,'pubkey':_0x396251,'ctx-name':_0x428d9f(0x10a)+this[_0x428d9f(0x117)],'sourceList':'','imgOnly':_0x428d9f(0x110),'removeCopyright':_0x428d9f(0x110),'localeName':this[_0x428d9f(0x12c)][_0x428d9f(0x129)][_0x428d9f(0x141)],'externalSourcesEmbedCss':_0x428d9f(0x108)}),this[_0x428d9f(0x11d)][_0x428d9f(0x150)]=_0x4a22bb=>{const _0x1eb0d1=_0x428d9f;if(_0x1eb0d1(0x145)==_0x4a22bb)return _0x1eb0d1(0x14f);},_0x28460e[_0x428d9f(0x111)][_0x428d9f(0x106)][_0x428d9f(0x133)](this[_0x428d9f(0x11d)]);}[_0x2a8a1d(0x104)](){const _0x51c519=_0x2a8a1d;this[_0x51c519(0x126)]=_0x15dd48(_0x28460e[_0x51c519(0x111)],_0x51c519(0x12f),{'ctx-name':_0x51c519(0x10a)+this[_0x51c519(0x117)]}),_0x28460e[_0x51c519(0x111)][_0x51c519(0x106)][_0x51c519(0x133)](this[_0x51c519(0x126)]);}[_0x2a8a1d(0x105)](){const _0x421078=_0x2a8a1d,_0x13b607=this[_0x421078(0x12c)][_0x421078(0x138)][_0x421078(0x156)](_0x421078(0x123));_0x13b607&&this[_0x421078(0x12a)](_0x13b607,_0x421078(0x147),()=>{const _0x1570d3=_0x421078,_0x194c4b=this[_0x1570d3(0x12c)][_0x1570d3(0x124)][_0x1570d3(0x111)][_0x1570d3(0x120)][_0x1570d3(0x136)]();_0x194c4b&&_0x194c4b[_0x1570d3(0x118)](_0x1570d3(0x14b))&&this[_0x1570d3(0x12c)][_0x1570d3(0x12d)][_0x1570d3(0x121)][_0x1570d3(0x135)](_0x1570d3(0x130),()=>{const _0x44557e=_0x1570d3;_0x4d15c0(this[_0x44557e(0x12c)],_0x194c4b);});});const _0x278050=this[_0x421078(0x12c)][_0x421078(0x138)][_0x421078(0x156)](_0x421078(0x11b));_0x278050&&this[_0x421078(0x12a)](_0x278050,_0x421078(0x147),()=>{const _0x12b96f=_0x421078,_0xb591c5=this[_0x12b96f(0x12c)][_0x12b96f(0x124)][_0x12b96f(0x111)][_0x12b96f(0x120)][_0x12b96f(0x136)]();_0xb591c5&&_0xb591c5[_0x12b96f(0x118)](_0x12b96f(0x14b))&&this[_0x12b96f(0x12c)][_0x12b96f(0x12d)][_0x12b96f(0x121)][_0x12b96f(0x135)](_0x12b96f(0x130),()=>{const _0x4911e4=_0x12b96f;_0x4d15c0(this[_0x4911e4(0x12c)],_0xb591c5);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xb45869,ObservableMixin as _0x1af081}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xc677f6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x10808b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3c96e7}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x40f9ee}from'../../utils/uploadutils.js';import{getImageUrls as _0x14c109,getImageDimension as _0xf42379}from'../../utils/editingutils.js';import{isAncestor as _0x27e8f0}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1af081(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3cf6fb,_0xd41994,_0x4a8a1c){super(),this['_editor']=_0x3cf6fb,this['_dialog']=_0xd41994,this['_imageElement']=_0x4a8a1c,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 _0x1d6d62=this['_imageElement'],_0x4fb0f7=_0x1d6d62['getAttribute']('uploadcareImageId'),_0xba4cd7=_0x1d6d62['getAttribute']('src');if(_0x4fb0f7)await this['_loadImageInfo'](_0x4fb0f7,_0xba4cd7);else{if(this['_imageCache']['has'](_0xba4cd7)){const _0x59936b=this['_imageCache']['get'](_0xba4cd7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59936b['url'],this['imageDimension']=_0x59936b['dimension'],this['imageId']=_0x59936b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x27fd24}=this['_editor'],t=_0x27fd24['t'],_0x199bfc=new _0x3c96e7(_0x27fd24,this['imageStatus'],this['_attributes']);_0x199bfc['bind']('status')['to'](this,'imageStatus'),_0x199bfc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x199bfc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x199bfc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x199bfc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10808b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x199bfc,'position':_0xc677f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x199bfc['focus']();},'onHide':()=>{_0x199bfc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5986ce=>!_0x27e8f0(_0x5986ce,_0x199bfc['element'])}});}['_loadImageInfo'](_0x5927f3,_0x3f93b0){return _0x40f9ee['getInfo'](_0x5927f3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x260875=>{const {width:_0x3d5178,height:_0xb7a62a}=_0x260875['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f93b0,this['imageDimension']={'width':_0x3d5178,'height':_0xb7a62a},this['imageId']=_0x5927f3;})['catch'](_0x499303=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x499303['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x30cb8d,_0x358e9f){return this['_getImageAsFile'](_0x30cb8d)['then'](_0x538c24=>_0x40f9ee['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':_0x358e9f['signal'],'file':_0x538c24,'onProgress':_0xe256f9=>{_0xe256f9&&_0xe256f9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe256f9['value']));}}))['then'](_0x34384c=>{const {width:_0x5e2641,height:_0x58ec03}=_0x34384c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34384c['cdnUrl'],this['imageDimension']={'width':_0x5e2641,'height':_0x58ec03},this['imageId']=_0x34384c['uuid'],this['imageUploadProgress']=null;const _0xf86cd4=_0x30cb8d['getAttribute']('src');this['_imageCache']['set'](_0xf86cd4,{'id':_0x34384c['uuid'],'url':_0x34384c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x369bc0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x369bc0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2806f5,_0x4ebda2){_0x2806f5['on']('apply',(_0x14d0eb,_0x505c1f)=>{this['_replaceImage'](_0x4ebda2,_0x505c1f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2806f5['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2806f5['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x433561,_0x57a001,_0x1a891a){const _0x171a1f=this['_editor'],{width:_0x1d4ba0,height:_0xde8cd1}=_0xf42379(_0x57a001,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2fd05d,imageSources:_0x375123}=_0x14c109(_0x57a001,_0x1d4ba0);_0x171a1f['model']['change'](_0x21b30c=>{if('$graveyard'===_0x433561['root']['rootName']){_0x171a1f['execute']('insertImage',{'imageType':_0x433561['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x433561['getAttributes']()),'uploadcareImageId':_0x1a891a,'src':_0x2fd05d,'sources':_0x375123,'width':_0x1d4ba0,'height':_0xde8cd1}});const _0x414504=_0x433561['getChildren']();_0x433561=_0x171a1f['model']['document']['selection']['getSelectedElement']();for(const _0x2bfeec of _0x414504)_0x21b30c['append'](_0x21b30c['cloneElement'](_0x2bfeec),_0x433561);}else _0x21b30c['setSelection'](_0x433561,'on'),_0x171a1f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x433561['getAttributes']()),'uploadcareImageId':_0x1a891a,'src':_0x2fd05d,'sources':_0x375123,'width':_0x1d4ba0,'height':_0xde8cd1},_0x433561);_0x21b30c['setSelection'](_0x433561,'on');});}async['_getImageAsFile'](_0x3a6cde){const _0xcebcc7=_0xb45869['window'],_0x1e74d3=_0xb45869['document']['location']['href'],_0x543b24=new _0xcebcc7['URL'](_0x3a6cde['getAttribute']('src'),_0x1e74d3);if('data:'===_0x543b24['protocol']){const _0x3915b3=_0x543b24['href']['split'](','),_0x37b513=_0x3915b3[0x0]['match'](/:(.*?);/)[0x1],_0x4b3589=_0x37b513['split']('/')[0x1],_0x175321=_0xcebcc7['atob'](_0x3915b3[_0x3915b3['length']-0x1]);let _0x4410a6=_0x175321['length'];const _0x17ae85=new _0xcebcc7['Uint8Array'](_0x4410a6);for(;_0x4410a6--;)_0x17ae85[_0x4410a6]=_0x175321['charCodeAt'](_0x4410a6);return new _0xcebcc7['File']([_0x17ae85],'image.'+_0x4b3589,{'type':_0x37b513});}const _0x3a6683=_0x543b24['href']['split']('/'),_0x20893d=_0x3a6683[_0x3a6683['length']-0x1],_0x442bac=_0x20893d['split']('.')[0x1];return _0xcebcc7['fetch'](_0x543b24['href'])['then'](_0x3fa35e=>_0x3fa35e['clone']()['blob']())['then'](_0x346b1c=>new _0xcebcc7['File']([_0x346b1c],_0x20893d,{'type':'image/'+_0x442bac}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x512505,_0x3cabf0){const _0x8e16ca=_0x534c,_0x4cb5f7=_0x512505();while(!![]){try{const _0x465d9a=parseInt(_0x8e16ca(0x1ac))/0x1+-parseInt(_0x8e16ca(0x1a8))/0x2+-parseInt(_0x8e16ca(0x1af))/0x3*(parseInt(_0x8e16ca(0x1a7))/0x4)+-parseInt(_0x8e16ca(0x1ae))/0x5+parseInt(_0x8e16ca(0x1b0))/0x6+-parseInt(_0x8e16ca(0x1a5))/0x7*(parseInt(_0x8e16ca(0x1a3))/0x8)+parseInt(_0x8e16ca(0x1ad))/0x9;if(_0x465d9a===_0x3cabf0)break;else _0x4cb5f7['push'](_0x4cb5f7['shift']());}catch(_0x198a43){_0x4cb5f7['push'](_0x4cb5f7['shift']());}}}(_0x5eec,0x7f7d7));function _0x5eec(){const _0x1bbe11=['bindTemplate','931qnVgxl','uc-cloud-image-editor','3340JyIMOR','1137218MhtJvg','set','imageSrc','uc-light','137109bSECed','24221493NUrCtn','4416990pIDTEf','831ZkIebC','1717020sWVMMk','image-edit','setTemplate','ck-uploadcare-theme','54680ptuKDS'];_0x5eec=function(){return _0x1bbe11;};return _0x5eec();}import{View as _0x3e5d74}from'ckeditor5/src/ui.js';function _0x534c(_0x48f1c6,_0x34ffe7){const _0x5eec5a=_0x5eec();return _0x534c=function(_0x534cd4,_0x2d087a){_0x534cd4=_0x534cd4-0x1a1;let _0x3d7387=_0x5eec5a[_0x534cd4];return _0x3d7387;},_0x534c(_0x48f1c6,_0x34ffe7);}export class UploadcareImageEditFormEditingView extends _0x3e5d74{constructor(_0x302dd9,_0x5c00e0){const _0x48223e=_0x534c;super(_0x302dd9);const _0x492be5=this[_0x48223e(0x1a4)];this[_0x48223e(0x1a9)](_0x48223e(0x1aa),''),this[_0x48223e(0x1a1)]({'tag':_0x48223e(0x1a6),'attributes':{..._0x5c00e0,'class':[_0x48223e(0x1ab),_0x48223e(0x1a2)],'ctx-name':_0x48223e(0x1b1),'cdn-url':_0x492be5['to'](_0x48223e(0x1aa))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0xf0c6e0}from'ckeditor5/src/icons.js';import{ButtonView as _0x180378,IconView as _0x6ca586,View as _0x5f4591}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5f4591{constructor(_0x2edac9){super(_0x2edac9);const t=_0x2edac9['t'];this['set']('errorType',null);const _0x320e98=new _0x180378(_0x2edac9);_0x320e98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x320e98['withText']=!0x0,_0x320e98['class']='ck-button-action',_0x320e98['on']('execute',()=>{this['fire']('retry');}),_0x320e98['bind']('isVisible')['to'](this,'errorType',_0x25e862=>'NotFound'!==_0x25e862);const _0x2bcc72=new _0x6ca586();_0x2bcc72['content']=_0xf0c6e0,_0x2bcc72['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1b9727=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':[_0x2bcc72,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1b9727['to']('errorType',_0x1117bc=>t('NotFound'!==_0x1117bc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x320e98]},{'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 _0x1a2bb6,View as _0x38f59c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x38f59c{constructor(_0x2afad4){super(_0x2afad4);const t=_0x2afad4['t'],_0x35739c=this['bindTemplate'],_0x4e4a4a=new _0x1a2bb6();_0x4e4a4a['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':[_0x4e4a4a,{'text':_0x35739c['to']('imageUploadProgress',_0x518b93=>t('Loading\x20image...')+'\x20('+(_0x518b93||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 _0x1fdb60=_0x3e61;function _0x3e61(_0x2fabcb,_0x5b6723){const _0x35506f=_0x3550();return _0x3e61=function(_0x3e610f,_0x1520e6){_0x3e610f=_0x3e610f-0x1b3;let _0x41f1c6=_0x35506f[_0x3e610f];return _0x41f1c6;},_0x3e61(_0x2fabcb,_0x5b6723);}(function(_0x14b1d6,_0x3c840f){const _0x49f0d6=_0x3e61,_0x5be39e=_0x14b1d6();while(!![]){try{const _0x444e49=-parseInt(_0x49f0d6(0x1d4))/0x1+parseInt(_0x49f0d6(0x1d3))/0x2*(-parseInt(_0x49f0d6(0x1c5))/0x3)+-parseInt(_0x49f0d6(0x1c7))/0x4*(-parseInt(_0x49f0d6(0x1eb))/0x5)+parseInt(_0x49f0d6(0x1ca))/0x6+parseInt(_0x49f0d6(0x1ea))/0x7*(-parseInt(_0x49f0d6(0x1df))/0x8)+-parseInt(_0x49f0d6(0x1d5))/0x9*(parseInt(_0x49f0d6(0x1b6))/0xa)+parseInt(_0x49f0d6(0x1e4))/0xb*(-parseInt(_0x49f0d6(0x1bc))/0xc);if(_0x444e49===_0x3c840f)break;else _0x5be39e['push'](_0x5be39e['shift']());}catch(_0x116904){_0x5be39e['push'](_0x5be39e['shift']());}}}(_0x3550,0x570b0));import{View as _0x2c1fff}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x293144}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1f2172}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1aedc3}from'./uploadcareimageeditformeditingview.js';function _0x3550(){const _0x12d468=['uc-cloud-image-editor','_addUploadcareImageEditorListeners','7023XCzLyc','clear','56CuPxYl','querySelector','change:status','2527320NHGHyl','focus','_setView','status','target','ck-reset_all-excluded','_waitForImageEditorComponent','once','retry','106cSlVCS','29160unRVpD','2061ASskVA','_loadingView','detail','render','cdnUrl','addMany','_editingView','filter','fire','div','160mMHMsG','apply','_errorView','getFocusableElement','_addErrorViewListeners','2376aYlRtv','element','error','add','nodeName','cancel','19705yJLIor','247580VDJUvk','addEventListener','_items','ready','3790VAraEh','_focusableView','set','disconnect','ck-uploadcare-form','length','25644tMCTaV','toLowerCase','addedNodes','createCollection','uploading','setTemplate','observe'];_0x3550=function(){return _0x12d468;};return _0x3550();}import{DialogFocusManagerView as _0x3e8a7f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3e8a7f{[_0x1fdb60(0x1b4)];[_0x1fdb60(0x1d6)];[_0x1fdb60(0x1e1)];[_0x1fdb60(0x1db)];[_0x1fdb60(0x1b7)];constructor(_0x375997,_0x4658a3,_0x1ff5f2){const _0x170f10=_0x1fdb60;super(_0x375997),this[_0x170f10(0x1b4)]=this[_0x170f10(0x1bf)](),this[_0x170f10(0x1d6)]=new _0x293144(_0x375997),this[_0x170f10(0x1e1)]=new _0x1f2172(_0x375997),this[_0x170f10(0x1db)]=new _0x1aedc3(_0x375997,_0x1ff5f2),this[_0x170f10(0x1b7)]=new _0x2c1fff(_0x375997),this[_0x170f10(0x1b7)][_0x170f10(0x1c1)](this[_0x170f10(0x1e2)]()),this[_0x170f10(0x1b8)](_0x170f10(0x1cd),_0x4658a3),this[_0x170f10(0x1c1)]({'tag':_0x170f10(0x1de),'attributes':{'class':['ck',_0x170f10(0x1cf),_0x170f10(0x1ba)],'tabindex':'-1'},'children':this[_0x170f10(0x1b4)]}),this[_0x170f10(0x1cc)](),this[_0x170f10(0x1d1)](_0x170f10(0x1d8),()=>{const _0x3c7d81=_0x170f10;this[_0x3c7d81(0x1d0)](this[_0x3c7d81(0x1e5)],_0x3f31be=>{const _0x4a8d77=_0x3c7d81;this[_0x4a8d77(0x1c4)](_0x3f31be);});}),this['on'](_0x170f10(0x1c9),()=>{const _0x572152=_0x170f10;this[_0x572152(0x1cc)]();}),this[_0x170f10(0x1e3)]();}[_0x1fdb60(0x1cb)](){const _0x393c4a=_0x1fdb60;this[_0x393c4a(0x1e5)][_0x393c4a(0x1cb)]();}[_0x1fdb60(0x1cc)](){const _0x339c49=_0x1fdb60;switch(this[_0x339c49(0x1b4)][_0x339c49(0x1c6)](),this[_0x339c49(0x1cd)]){case _0x339c49(0x1c0):this[_0x339c49(0x1b4)][_0x339c49(0x1e7)](this[_0x339c49(0x1d6)]);break;case _0x339c49(0x1e6):this[_0x339c49(0x1b4)][_0x339c49(0x1e7)](this[_0x339c49(0x1e1)]);break;case _0x339c49(0x1b5):this[_0x339c49(0x1b4)][_0x339c49(0x1da)]([this[_0x339c49(0x1db)],this[_0x339c49(0x1b7)]]);}}[_0x1fdb60(0x1d0)](_0x45b89c,_0x12a838){const _0x1c7312=_0x1fdb60,_0x13608a=_0x1c7312(0x1c3),_0x48492f=_0x45b89c[_0x1c7312(0x1c8)](_0x13608a);if(_0x48492f)return _0x12a838(_0x48492f);const _0x48cf7d=new MutationObserver(_0x1a4eb1=>{const _0x5b9f9b=_0x1c7312,_0x89d2ae=_0x1a4eb1[_0x5b9f9b(0x1dc)](_0x2779f1=>_0x2779f1[_0x5b9f9b(0x1ce)]===_0x45b89c&&_0x2779f1[_0x5b9f9b(0x1be)][_0x5b9f9b(0x1bb)]>0x0&&_0x2779f1[_0x5b9f9b(0x1be)][0x0][_0x5b9f9b(0x1e8)][_0x5b9f9b(0x1bd)]()===_0x13608a);_0x89d2ae[_0x5b9f9b(0x1bb)]&&(_0x48cf7d[_0x5b9f9b(0x1b9)](),_0x12a838(_0x89d2ae[0x0][_0x5b9f9b(0x1be)][0x0]));});_0x48cf7d[_0x1c7312(0x1c2)](_0x45b89c,{'childList':!0x0,'subtree':!0x0});}[_0x1fdb60(0x1c4)](_0x40ffc2){const _0x2439c8=_0x1fdb60;_0x40ffc2[_0x2439c8(0x1b3)](_0x2439c8(0x1e0),_0x890af9=>{const _0x3ff890=_0x2439c8;this[_0x3ff890(0x1dd)](_0x3ff890(0x1e0),{'imageSrc':_0x890af9[_0x3ff890(0x1d7)][_0x3ff890(0x1d9)]});}),_0x40ffc2[_0x2439c8(0x1b3)](_0x2439c8(0x1e9),()=>{const _0x11db7c=_0x2439c8;this[_0x11db7c(0x1dd)](_0x11db7c(0x1e9));});}[_0x1fdb60(0x1e3)](){const _0x555eb5=_0x1fdb60;this[_0x555eb5(0x1e1)]['on'](_0x555eb5(0x1d2),()=>{const _0x3870e5=_0x555eb5;this[_0x3870e5(0x1dd)](_0x3870e5(0x1d2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4df77c=_0x5925;(function(_0x4e2373,_0x14db2b){const _0x5a36b7=_0x5925,_0x33424d=_0x4e2373();while(!![]){try{const _0x1e623b=-parseInt(_0x5a36b7(0x17d))/0x1+-parseInt(_0x5a36b7(0x181))/0x2*(-parseInt(_0x5a36b7(0x18f))/0x3)+-parseInt(_0x5a36b7(0x173))/0x4+parseInt(_0x5a36b7(0x18b))/0x5+-parseInt(_0x5a36b7(0x174))/0x6*(-parseInt(_0x5a36b7(0x185))/0x7)+parseInt(_0x5a36b7(0x179))/0x8+parseInt(_0x5a36b7(0x186))/0x9*(parseInt(_0x5a36b7(0x171))/0xa);if(_0x1e623b===_0x14db2b)break;else _0x33424d['push'](_0x33424d['shift']());}catch(_0x539521){_0x33424d['push'](_0x33424d['shift']());}}}(_0x3640,0xf2969));import{Command as _0x7efd1e}from'ckeditor5/src/core.js';import{Dialog as _0x5cd037}from'ckeditor5/src/ui.js';function _0x5925(_0x3868c0,_0x21d2b4){const _0x3640d2=_0x3640();return _0x5925=function(_0x592552,_0x323fdc){_0x592552=_0x592552-0x171;let _0xa4dc87=_0x3640d2[_0x592552];return _0xa4dc87;},_0x5925(_0x3868c0,_0x21d2b4);}import{UploadcareImageEditController as _0x1efb2a}from'./ui/uploadcareimageeditcontroller.js';function _0x3640(){const _0xbaa9ca=['isEnabled','1795204DkUpFY','plugins','set','document','164726SApvcf','_isEditable','editor','isActive','178969TXlRXy','99OxGHMH','requires','refresh','element','get','8601035srHIFc','model','getSelectedElement','imageBlock','24HUxdDH','execute','396430DveceB','imageEditController','5982256eFlcOL','198rYZQXs','selection','imageInline','unbind','bind','5004112HhApxA','uploadcare.allowExternalImagesEditing','config'];_0x3640=function(){return _0xbaa9ca;};return _0x3640();}import{createEditabilityChecker as _0xe881c0}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x7efd1e{[_0x4df77c(0x172)];static get[_0x4df77c(0x187)](){return[_0x5cd037];}[_0x4df77c(0x182)];constructor(_0x1bd175){const _0x5c154a=_0x4df77c;super(_0x1bd175),this[_0x5c154a(0x172)]=void 0x0,this[_0x5c154a(0x182)]=_0xe881c0(_0x1bd175[_0x5c154a(0x17b)][_0x5c154a(0x18a)](_0x5c154a(0x17a))||[]),this[_0x5c154a(0x17f)]({'isActive':!0x1});}[_0x4df77c(0x188)](){const _0x30901c=_0x4df77c,_0x9837ce=this[_0x30901c(0x183)][_0x30901c(0x18c)][_0x30901c(0x180)][_0x30901c(0x175)][_0x30901c(0x18d)]();this[_0x30901c(0x17c)]=this[_0x30901c(0x182)](_0x9837ce);}[_0x4df77c(0x190)](){const _0x57f6ee=_0x4df77c;this[_0x57f6ee(0x172)]&&(this[_0x57f6ee(0x177)](_0x57f6ee(0x184)),this[_0x57f6ee(0x172)]=void 0x0);const _0x402807=this[_0x57f6ee(0x183)][_0x57f6ee(0x18c)][_0x57f6ee(0x180)][_0x57f6ee(0x175)][_0x57f6ee(0x18d)]();_0x402807&&(_0x402807['is'](_0x57f6ee(0x189),_0x57f6ee(0x18e))||_0x402807['is'](_0x57f6ee(0x189),_0x57f6ee(0x176)))&&(this[_0x57f6ee(0x172)]=new _0x1efb2a(this[_0x57f6ee(0x183)],this[_0x57f6ee(0x183)][_0x57f6ee(0x17e)][_0x57f6ee(0x18a)](_0x5cd037),_0x402807),this[_0x57f6ee(0x178)](_0x57f6ee(0x184))['to'](this[_0x57f6ee(0x172)],_0x57f6ee(0x184)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x413e91=_0x20c4;(function(_0x218f87,_0x4e3693){const _0x1b73dd=_0x20c4,_0x44b7a1=_0x218f87();while(!![]){try{const _0x9ef66a=-parseInt(_0x1b73dd(0xdf))/0x1*(-parseInt(_0x1b73dd(0xe9))/0x2)+parseInt(_0x1b73dd(0xeb))/0x3+-parseInt(_0x1b73dd(0xd6))/0x4*(parseInt(_0x1b73dd(0xe8))/0x5)+-parseInt(_0x1b73dd(0xe3))/0x6*(parseInt(_0x1b73dd(0xe5))/0x7)+-parseInt(_0x1b73dd(0xd7))/0x8+-parseInt(_0x1b73dd(0xd4))/0x9*(parseInt(_0x1b73dd(0xdb))/0xa)+-parseInt(_0x1b73dd(0xe1))/0xb*(-parseInt(_0x1b73dd(0xda))/0xc);if(_0x9ef66a===_0x4e3693)break;else _0x44b7a1['push'](_0x44b7a1['shift']());}catch(_0x5eec00){_0x44b7a1['push'](_0x44b7a1['shift']());}}}(_0x2027,0x6ac89));import{Plugin as _0x457e31}from'ckeditor5/src/core.js';function _0x20c4(_0xddc09e,_0x48be39){const _0x20270d=_0x2027();return _0x20c4=function(_0x20c494,_0x55c7db){_0x20c494=_0x20c494-0xd4;let _0x2b64d1=_0x20270d[_0x20c494];return _0x2b64d1;},_0x20c4(_0xddc09e,_0x48be39);}import{Notification as _0xebea27}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x30ba36}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5f4910}from'./uploadcareimagereplacecommand.js';function _0x2027(){const _0x1d7450=['39462yJqYLl','isPremiumPlugin','259yvZnWF','add','init','1360nctROx','18yNNTUV','uploadcareImageEdit','86130uHBuGO','6957KBOXQJ','UploadcareImageEditEditing','9212BpQtDk','1600648BEAshl','isOfficialPlugin','requires','18193572QmdSoe','7210lGxRrJ','ImageEditing','pluginName','commands','57747WmiTVC','ImageUtils','11wYGZWq','uploadcareImageReplace'];_0x2027=function(){return _0x1d7450;};return _0x2027();}import{UploadcareEditing as _0x2bb43f}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x457e31{static get[_0x413e91(0xdd)](){const _0x35ebdb=_0x413e91;return _0x35ebdb(0xd5);}static get[_0x413e91(0xd9)](){const _0x56cdf5=_0x413e91;return[_0x2bb43f,_0xebea27,_0x56cdf5(0xe0),_0x56cdf5(0xdc)];}static get[_0x413e91(0xd8)](){return!0x0;}static get[_0x413e91(0xe4)](){return!0x0;}[_0x413e91(0xe7)](){const _0x1baa00=_0x413e91,{editor:_0x2550ac}=this;_0x2550ac[_0x1baa00(0xde)][_0x1baa00(0xe6)](_0x1baa00(0xea),new _0x30ba36(_0x2550ac)),_0x2550ac[_0x1baa00(0xde)][_0x1baa00(0xe6)](_0x1baa00(0xe2),new _0x5f4910(_0x2550ac));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2c59c2}from'ckeditor5/src/core.js';import{ButtonView as _0x3431ef}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3b1581}from'ckeditor5/src/icons.js';import{createElement as _0x9ccb6e}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 _0x2c59c2{['_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 _0x458c9b=this['editor'];_0x458c9b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x941d36=>{const _0x4eac36=_0x458c9b['commands']['get']('uploadcareImageEdit'),_0x726557=new _0x3431ef(_0x941d36),t=_0x941d36['t'];return _0x726557['set']({'icon':_0x3b1581,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x726557['bind']('isEnabled')['to'](_0x4eac36),_0x726557['bind']('isOn')['to'](_0x4eac36,'isActive'),this['listenTo'](_0x726557,'execute',()=>{_0x458c9b['execute']('uploadcareImageEdit'),_0x458c9b['editing']['view']['focus']();}),_0x726557;}),this['_initConfig']();}['_initConfig'](){const _0x3e9b7b=_0x9ccb6e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3e9b7b),this['listenTo'](this['editor'],'destroy',()=>{_0x3e9b7b['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x55f1(){const _0x23341f=['model','128931qkTgaY','imageBlock','element','2659134DTwcyj','selection','sizes','4864PwCjUU','document','32315qgeduw','144HZwxtZ','4488393sqDKuW','imageInline','1010FqRRXM','execute','594wuMUvU','srcset','552999hklirO','isEnabled','setAttributes','63285LigXZh','getSelectedElement','change','removeAttribute','26NWKqjQ','refresh','editor'];_0x55f1=function(){return _0x23341f;};return _0x55f1();}const _0x298dd1=_0x4be4;function _0x4be4(_0x191a94,_0x43c6b9){const _0x55f1ac=_0x55f1();return _0x4be4=function(_0x4be4e9,_0x135bf3){_0x4be4e9=_0x4be4e9-0xaf;let _0x1f58a0=_0x55f1ac[_0x4be4e9];return _0x1f58a0;},_0x4be4(_0x191a94,_0x43c6b9);}(function(_0x379b65,_0x3c077e){const _0x3b8e26=_0x4be4,_0x5b0f11=_0x379b65();while(!![]){try{const _0x4e6fb3=-parseInt(_0x3b8e26(0xb4))/0x1*(parseInt(_0x3b8e26(0xc3))/0x2)+parseInt(_0x3b8e26(0xbc))/0x3+parseInt(_0x3b8e26(0xb5))/0x4*(-parseInt(_0x3b8e26(0xbf))/0x5)+parseInt(_0x3b8e26(0xaf))/0x6+-parseInt(_0x3b8e26(0xb6))/0x7+parseInt(_0x3b8e26(0xb2))/0x8*(parseInt(_0x3b8e26(0xba))/0x9)+parseInt(_0x3b8e26(0xb8))/0xa*(parseInt(_0x3b8e26(0xc7))/0xb);if(_0x4e6fb3===_0x3c077e)break;else _0x5b0f11['push'](_0x5b0f11['shift']());}catch(_0x49cd42){_0x5b0f11['push'](_0x5b0f11['shift']());}}}(_0x55f1,0x51abd));import{Command as _0x19930e}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x19930e{[_0x298dd1(0xc4)](){const _0x470e0f=_0x298dd1,_0x18fac9=this[_0x470e0f(0xc5)][_0x470e0f(0xc6)][_0x470e0f(0xb3)][_0x470e0f(0xb0)][_0x470e0f(0xc0)]();this[_0x470e0f(0xbd)]=Boolean(_0x18fac9&&(_0x18fac9['is'](_0x470e0f(0xc9),_0x470e0f(0xc8))||_0x18fac9['is'](_0x470e0f(0xc9),_0x470e0f(0xb7))));}[_0x298dd1(0xb9)](_0x3b2d8d){const _0x78ac56=_0x298dd1,_0x3a8e86=this[_0x78ac56(0xc5)][_0x78ac56(0xc6)][_0x78ac56(0xb3)][_0x78ac56(0xb0)][_0x78ac56(0xc0)]();this[_0x78ac56(0xc5)][_0x78ac56(0xc6)][_0x78ac56(0xc1)](_0x4eda76=>{const _0x29f757=_0x78ac56;_0x4eda76[_0x29f757(0xbe)](_0x3b2d8d,_0x3a8e86),_0x4eda76[_0x29f757(0xc2)](_0x29f757(0xbb),_0x3a8e86),_0x4eda76[_0x29f757(0xc2)](_0x29f757(0xb1),_0x3a8e86);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1318be=_0x3dbb;(function(_0xfaf5dc,_0xe2becb){var _0xa826bc=_0x3dbb,_0x24d413=_0xfaf5dc();while(!![]){try{var _0x3d2de4=parseInt(_0xa826bc(0x17a))/0x1*(parseInt(_0xa826bc(0x17b))/0x2)+-parseInt(_0xa826bc(0x172))/0x3*(parseInt(_0xa826bc(0x180))/0x4)+-parseInt(_0xa826bc(0x178))/0x5+-parseInt(_0xa826bc(0x17f))/0x6+-parseInt(_0xa826bc(0x174))/0x7*(-parseInt(_0xa826bc(0x173))/0x8)+parseInt(_0xa826bc(0x171))/0x9*(-parseInt(_0xa826bc(0x176))/0xa)+-parseInt(_0xa826bc(0x17d))/0xb*(-parseInt(_0xa826bc(0x181))/0xc);if(_0x3d2de4===_0xe2becb)break;else _0x24d413['push'](_0x24d413['shift']());}catch(_0x293c6c){_0x24d413['push'](_0x24d413['shift']());}}}(_0x5f10,0x340b1));import{Plugin as _0x3e7c31}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x805f7b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x585156}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x3dbb(_0x415701,_0x4722df){var _0x5f1045=_0x5f10();return _0x3dbb=function(_0x3dbb16,_0x1201d2){_0x3dbb16=_0x3dbb16-0x171;var _0x9707f0=_0x5f1045[_0x3dbb16];return _0x9707f0;},_0x3dbb(_0x415701,_0x4722df);}function _0x5f10(){var _0x53659f=['114549FohZYd','3656muhXOC','4823HQsQyZ','isOfficialPlugin','28020YLesKI','pluginName','596765SblNyf','requires','19049ZxXyjr','14tzbPDr','isPremiumPlugin','96294MUMDKY','UploadcareImageEdit','2269050wlfZBu','20riiekH','948rxEFDb','765xxTgag'];_0x5f10=function(){return _0x53659f;};return _0x5f10();}export class UploadcareImageEdit extends _0x3e7c31{static get[_0x1318be(0x177)](){var _0x19899f=_0x1318be;return _0x19899f(0x17e);}static get[_0x1318be(0x179)](){return[_0x805f7b,_0x585156];}static get[_0x1318be(0x175)](){return!0x0;}static get[_0x1318be(0x17c)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x171f79=_0x3e04;function _0x1ee5(){const _0x2ed8c2=['isEnabled','get','evaluationLimit','UploadcareUI','forEach','reduce','566560yefhap','trialLimit','withText','entries','824440TTDrkr','type','config','_createButton','ImageInsertUI','invalid','Replace','_createDropdownButtons','assetManager','URL','_createMenuBarButtons','Uploadcare','bind','afterInit','_showLicenseError','uploadcareLicenseKeyInvalid','isPremiumPlugin','isImageSelected','OneDrive','uploadcare','uploadcareLicenseKeyEvaluationLimit','map','uploadcareLicenseKeyDomainLimit','plugins','upload','editor','icon','featureNotAllowed','uploadcareLicenseKeyNotAllowed','locale','uploadcareLicenseKeyTrialLimit','Local','16PDAutH','14709tKwFxe','licenseKey','39599eDYdwW','expired','uploadcareLicenseKeyExpired','tooltip','commands','70yoWptZ','_normalizeConfigSourceList','uploadcare.uploader.sourceList','uploadcareLicenseKeyValid','Insert','init','_getIntegrationKey','Dropbox','domainLimit','11130zBUraI','GPhotos','url','372546KJBCzW','_licenseKeyCheckInterval','usageLimit','execute','text','uploadcareLicenseKeyUsageLimit','destroy','Facebook','_createToolbarButton','shortText','228684NEHMCk','isOfficialPlugin','has','label','pluginName','66ndHNWz','push','registerIntegration','GDrive'];_0x1ee5=function(){return _0x2ed8c2;};return _0x1ee5();}(function(_0xe3cd64,_0x3cd495){const _0x193d52=_0x3e04,_0x5a58f6=_0xe3cd64();while(!![]){try{const _0x42ecd9=-parseInt(_0x193d52(0xda))/0x1+parseInt(_0x193d52(0xe1))/0x2*(-parseInt(_0x193d52(0x99))/0x3)+parseInt(_0x193d52(0xa6))/0x4+parseInt(_0x193d52(0xb5))/0x5+-parseInt(_0x193d52(0xab))/0x6*(parseInt(_0x193d52(0xdc))/0x7)+parseInt(_0x193d52(0xd9))/0x8*(parseInt(_0x193d52(0x9c))/0x9)+parseInt(_0x193d52(0xb9))/0xa;if(_0x42ecd9===_0x3cd495)break;else _0x5a58f6['push'](_0x5a58f6['shift']());}catch(_0x4ff3ab){_0x5a58f6['push'](_0x5a58f6['shift']());}}}(_0x1ee5,0x1f7a1));import{Plugin as _0x29f21c}from'ckeditor5/src/core.js';import{IconDropbox as _0x2abdee,IconFacebook as _0x8654af,IconGoogleDrive as _0x38a77f,IconGooglePhotos as _0x5a9bd8,IconUploadcareImageUpload as _0x4c7f38,IconUploadcareLink as _0x2b6da0,IconOneDrive as _0x1967b6}from'ckeditor5/src/icons.js';import{ButtonView as _0x3d106a,MenuBarMenuListItemButtonView as _0x560b4b}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2582a4}from'./uploadcareconfig.js';import{getTranslation as _0x2ae1e7}from'./utils/common-translations.js';function _0x3e04(_0x4395c0,_0x27d08c){const _0x1ee591=_0x1ee5();return _0x3e04=function(_0x3e048e,_0x1abec6){_0x3e048e=_0x3e048e-0x93;let _0x3fbda2=_0x1ee591[_0x3e048e];return _0x3fbda2;},_0x3e04(_0x4395c0,_0x27d08c);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x29f21c{[_0x171f79(0xdb)];[_0x171f79(0x9d)];static get[_0x171f79(0xaa)](){const _0x593a1e=_0x171f79;return _0x593a1e(0xb2);}static get[_0x171f79(0xa7)](){return!0x0;}static get[_0x171f79(0xc9)](){return!0x0;}[_0x171f79(0x95)](){const _0x4f8063=_0x171f79;this[_0x4f8063(0xdb)]=this[_0x4f8063(0xd2)][_0x4f8063(0xbb)][_0x4f8063(0xb0)](_0x4f8063(0xdb));const _0x176fae=this[_0x4f8063(0xd2)];this[_0x4f8063(0x9d)]=setInterval(()=>{const _0x4dc574=_0x4f8063;let _0x54fc0c;for(const _0x5d2272 in _0x176fae){const _0x5103e4=_0x5d2272,_0xceb081=_0x176fae[_0x5103e4];if(_0x4dc574(0x93)==_0xceb081||_0x4dc574(0xc8)==_0xceb081||_0x4dc574(0xde)==_0xceb081||_0x4dc574(0xcf)==_0xceb081||_0x4dc574(0xd5)==_0xceb081||_0x4dc574(0xcd)==_0xceb081||_0x4dc574(0xd7)==_0xceb081||_0x4dc574(0xa1)==_0xceb081){delete _0x176fae[_0x5103e4],_0x54fc0c=_0xceb081,clearInterval(this[_0x4dc574(0x9d)]),this[_0x4dc574(0x9d)]=void 0x0;break;}}_0x4dc574(0xc8)==_0x54fc0c&&_0x176fae[_0x4dc574(0xc7)](_0x4dc574(0xbe)),_0x4dc574(0xde)==_0x54fc0c&&_0x176fae[_0x4dc574(0xc7)](_0x4dc574(0xdd)),_0x4dc574(0xcf)==_0x54fc0c&&_0x176fae[_0x4dc574(0xc7)](_0x4dc574(0x98)),_0x4dc574(0xd5)==_0x54fc0c&&_0x176fae[_0x4dc574(0xc7)](_0x4dc574(0xd4),_0x4dc574(0xc4)),_0x4dc574(0xcd)==_0x54fc0c&&_0x176fae[_0x4dc574(0xc7)](_0x4dc574(0xb1)),_0x4dc574(0xd7)==_0x54fc0c&&_0x176fae[_0x4dc574(0xc7)](_0x4dc574(0xb6)),_0x4dc574(0xa1)==_0x54fc0c&&_0x176fae[_0x4dc574(0xc7)](_0x4dc574(0x9e));},0x3e8);}[_0x171f79(0xc6)](){const _0xf2201f=_0x171f79,{editor:_0x49c57f}=this,_0x431de2=_0x49c57f[_0xf2201f(0xe0)][_0xf2201f(0xb0)](_0xf2201f(0xcc));if(!_0x431de2)return;const _0x178281=this[_0xf2201f(0xe2)](_0x49c57f[_0xf2201f(0xbb)][_0xf2201f(0xb0)](_0xf2201f(0xe3)))[_0xf2201f(0xb4)]((_0x33dcbf,_0x4cbfb4)=>{const _0x3ede14=_0xf2201f,_0x200a41=this[_0x3ede14(0x96)](_0x4cbfb4[_0x3ede14(0xba)]);return _0x33dcbf[_0x200a41]||(_0x33dcbf[_0x200a41]=[]),_0x33dcbf[_0x200a41][_0x3ede14(0xac)](_0x4cbfb4),_0x33dcbf;},{});_0x49c57f[_0xf2201f(0xd0)][_0xf2201f(0xa8)](_0xf2201f(0xbd))&&_0x49c57f[_0xf2201f(0xe0)][_0xf2201f(0xb0)](_0xf2201f(0xcc))&&Object[_0xf2201f(0xb8)](_0x178281)[_0xf2201f(0xb3)](([_0x316f1a,_0x3686c6])=>{const _0x5639c2=_0xf2201f;_0x49c57f[_0x5639c2(0xd0)][_0x5639c2(0xb0)](_0x5639c2(0xbd))[_0x5639c2(0xad)]({'name':_0x316f1a,'observable':()=>_0x431de2,'buttonViewCreator':()=>this[_0x5639c2(0xa4)](_0x3686c6),'formViewCreator':()=>this[_0x5639c2(0xc0)](_0x3686c6),'menuBarButtonViewCreator':()=>this[_0x5639c2(0xc3)](_0x3686c6),'override':_0x5639c2(0xc1)!==_0x316f1a});});}[_0x171f79(0xa2)](){const _0x6dc8a8=_0x171f79;super[_0x6dc8a8(0xa2)](),this[_0x6dc8a8(0x9d)]&&clearInterval(this[_0x6dc8a8(0x9d)]);}[_0x171f79(0xe2)](_0x5e2811){const _0x662ed6=_0x171f79,{locale:_0x5185a2}=this[_0x662ed6(0xd2)];return _0x5e2811[_0x662ed6(0xce)](_0x500873=>{const _0x59c8ec=_0x662ed6,_0x35ec36=_0x2ae1e7(_0x5185a2,_0x500873,_0x59c8ec(0x94));switch(_0x500873){case _0x2582a4[_0x59c8ec(0xd8)]:return{'icon':_0x4c7f38,'type':_0x2582a4[_0x59c8ec(0xd8)],..._0x35ec36};case _0x2582a4[_0x59c8ec(0xc2)]:return{'icon':_0x2b6da0,'type':_0x2582a4[_0x59c8ec(0xc2)],..._0x35ec36};case _0x2582a4[_0x59c8ec(0x97)]:return{'icon':_0x2abdee,'type':_0x2582a4[_0x59c8ec(0x97)],..._0x35ec36};case _0x2582a4[_0x59c8ec(0xa3)]:return{'icon':_0x8654af,'type':_0x2582a4[_0x59c8ec(0xa3)],..._0x35ec36};case _0x2582a4[_0x59c8ec(0xae)]:return{'icon':_0x38a77f,'type':_0x2582a4[_0x59c8ec(0xae)],..._0x35ec36};case _0x2582a4[_0x59c8ec(0x9a)]:return{'icon':_0x5a9bd8,'type':_0x2582a4[_0x59c8ec(0x9a)],..._0x35ec36};case _0x2582a4[_0x59c8ec(0xcb)]:return{'icon':_0x1967b6,'type':_0x2582a4[_0x59c8ec(0xcb)],..._0x35ec36};}});}[_0x171f79(0x96)](_0x2c07a3){const _0x4adc75=_0x171f79;switch(_0x2c07a3){case _0x2582a4[_0x4adc75(0xd8)]:return _0x4adc75(0xd1);case _0x2582a4[_0x4adc75(0xc2)]:return _0x4adc75(0x9b);default:return _0x4adc75(0xc1);}}[_0x171f79(0xbc)](_0x4a2bcb,_0x5a633f){const _0x33434e=_0x171f79,_0x1d8ca7=this[_0x33434e(0xd2)],_0x2d9672=new _0x4a2bcb(_0x1d8ca7[_0x33434e(0xd6)]),_0x2cb77d=_0x1d8ca7[_0x33434e(0xe0)][_0x33434e(0xb0)](_0x33434e(0xcc));return _0x2d9672[_0x33434e(0xc5)](_0x33434e(0xaf))['to'](_0x2cb77d),_0x2d9672['on'](_0x33434e(0x9f),()=>{const _0x4f895a=_0x33434e;_0x2cb77d[_0x4f895a(0x9f)](_0x5a633f);}),_0x2d9672;}[_0x171f79(0xa4)](_0x2b5523){const _0x24f466=_0x171f79,{locale:_0x576a6e}=this[_0x24f466(0xd2)],_0x5e805a=this[_0x24f466(0xd2)][_0x24f466(0xd0)][_0x24f466(0xb0)](_0x24f466(0xbd)),_0x3871fa=_0x2b5523[0x0],_0x39a207=this[_0x24f466(0xbc)](_0x3d106a,_0x3871fa[_0x24f466(0xba)]);return _0x39a207[_0x24f466(0xd3)]=_0x3871fa[_0x24f466(0xd3)],_0x39a207[_0x24f466(0xc5)](_0x24f466(0xa9))['to'](_0x5e805a,_0x24f466(0xca),_0x17e738=>_0x2ae1e7(_0x576a6e,_0x3871fa[_0x24f466(0xba)],_0x17e738?_0x24f466(0xbf):_0x24f466(0x94))[_0x24f466(0xa0)]),_0x39a207[_0x24f466(0xdf)]=!0x0,_0x39a207;}[_0x171f79(0xc0)](_0x59f016){const _0x5cae34=_0x171f79,{locale:_0x55f2cc}=this[_0x5cae34(0xd2)],_0x2a337c=this[_0x5cae34(0xd2)][_0x5cae34(0xd0)][_0x5cae34(0xb0)](_0x5cae34(0xbd));return _0x59f016[_0x5cae34(0xce)](_0x43b394=>{const _0x6741f1=_0x5cae34,_0x41fd47=this[_0x6741f1(0xbc)](_0x3d106a,_0x43b394[_0x6741f1(0xba)]);return _0x41fd47[_0x6741f1(0xb7)]=!0x0,_0x41fd47[_0x6741f1(0xd3)]=_0x43b394[_0x6741f1(0xd3)],_0x41fd47[_0x6741f1(0xc5)](_0x6741f1(0xa9))['to'](_0x2a337c,_0x6741f1(0xca),_0x50f141=>_0x2ae1e7(_0x55f2cc,_0x43b394[_0x6741f1(0xba)],_0x50f141?_0x6741f1(0xbf):_0x6741f1(0x94))[_0x6741f1(0xa0)]),_0x41fd47;});}[_0x171f79(0xc3)](_0x134f7a){const _0x292420=_0x171f79;return _0x134f7a[_0x292420(0xce)](_0x3977a5=>{const _0x520e98=_0x292420,_0x123340=this[_0x520e98(0xbc)](_0x560b4b,_0x3977a5[_0x520e98(0xba)]);return _0x123340[_0x520e98(0xd3)]=_0x3977a5[_0x520e98(0xd3)],_0x123340[_0x520e98(0xa9)]=_0x3977a5[_0x520e98(0xa5)],_0x123340;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x305131}from'ckeditor5/src/core.js';import{FileRepository as _0x5a1af4}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x261244}from'./uploadcareediting.js';import{UploadUtils as _0xc490}from'./utils/uploadutils.js';import{getImageUrls as _0x3f4bc4}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x305131{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5a1af4,_0x261244];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x644c58=this['editor'];if(!!!_0x644c58['config']['get']('uploadcare'))return;_0x644c58['plugins']['get'](_0x5a1af4)['createUploadAdapter']=_0x30d9c9=>new k(_0x30d9c9,_0x644c58),_0x644c58['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x323201,{imageElement:_0x48b514,data:_0x959613})=>{_0x644c58['model']['change'](_0x1f3158=>{_0x1f3158['setAttribute']('uploadcareImageId',_0x959613['uploadcareImageId'],_0x48b514);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2ac4e9,_0x48a2db){this['loader']=_0x2ac4e9,this['editor']=_0x48a2db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x10685d=await this['loader']['file'];return _0xc490['upload']({'file':_0x10685d,'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':_0x17aebe=>{_0x17aebe&&_0x17aebe['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x17aebe['value']);}})['then'](async _0x6c539c=>{const {imageFallbackUrl:_0x886c38,imageSources:_0x138006}=_0x3f4bc4(_0x6c539c['cdnUrl'],_0x6c539c['imageInfo']['width']);return{'uploadcareImageId':_0x6c539c['uuid'],'default':_0x886c38,'sources':_0x138006};})['catch'](()=>{const _0x369841=t('Cannot\x20upload\x20file:')+('\x20'+_0x10685d['name']+'.');return Promise['reject'](_0x369841);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x356c60}from'../uploadcareconfig.js';export function getTranslation(_0x1ef1a0,_0x2ebfaa,_0x427b83){const t=_0x1ef1a0['t'],_0x3354a6=_0x1ef1a0['t'];switch(_0x2ebfaa){case _0x356c60['Local']:return{'text':_0x3354a6('Insert'===_0x427b83?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3354a6('From\x20computer')};case _0x356c60['URL']:return{'text':'Insert'===_0x427b83?_0x3354a6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3354a6('Via\x20URL')};case _0x356c60['Dropbox']:return{'text':t('Insert'===_0x427b83?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x356c60['Facebook']:return{'text':t('Insert'===_0x427b83?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x356c60['GDrive']:return{'text':t('Insert'===_0x427b83?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x356c60['GPhotos']:return{'text':t('Insert'===_0x427b83?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x356c60['OneDrive']:return{'text':t('Insert'===_0x427b83?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2ebfaa;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2e2a(_0x2fbfbb,_0x594d00){var _0x368258=_0x3682();return _0x2e2a=function(_0x2e2abe,_0x59b71b){_0x2e2abe=_0x2e2abe-0xca;var _0x1497b7=_0x368258[_0x2e2abe];return _0x1497b7;},_0x2e2a(_0x2fbfbb,_0x594d00);}var _0x341e01=_0x2e2a;function _0x3682(){var _0x2a88ae=['359894mVyThW','6xmbUEd','div','focusCycler','createCollection','bindTemplate','focusTracker','9080810BHqufa','getFocusableElement','forwardCycle','998144SFqJGn','fire','2947923oKwnmj','true','3DpceJS','50GlpNZJ','12018928ukRQdq','4768078mBgYoz','1459709fBfsue'];_0x3682=function(){return _0x2a88ae;};return _0x3682();}(function(_0x478c71,_0x5dc26a){var _0x3fb3d8=_0x2e2a,_0x476b71=_0x478c71();while(!![]){try{var _0xc9c1e=-parseInt(_0x3fb3d8(0xd3))/0x1+parseInt(_0x3fb3d8(0xd4))/0x2*(-parseInt(_0x3fb3d8(0xcf))/0x3)+parseInt(_0x3fb3d8(0xcb))/0x4+parseInt(_0x3fb3d8(0xdb))/0x5*(parseInt(_0x3fb3d8(0xd5))/0x6)+parseInt(_0x3fb3d8(0xd2))/0x7+parseInt(_0x3fb3d8(0xd1))/0x8+-parseInt(_0x3fb3d8(0xcd))/0x9*(parseInt(_0x3fb3d8(0xd0))/0xa);if(_0xc9c1e===_0x5dc26a)break;else _0x476b71['push'](_0x476b71['shift']());}catch(_0x40f38b){_0x476b71['push'](_0x476b71['shift']());}}}(_0x3682,0xed433));import{FocusTracker as _0x105945}from'ckeditor5/src/utils.js';import{View as _0x1a4f5c,FocusCycler as _0xc2039}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1a4f5c{[_0x341e01(0xda)];[_0x341e01(0xd7)];constructor(_0x147574){var _0x2d2431=_0x341e01;super(_0x147574),this[_0x2d2431(0xda)]=new _0x105945(),this[_0x2d2431(0xd7)]=new _0xc2039({'focusables':this[_0x2d2431(0xd8)](),'focusTracker':this[_0x2d2431(0xda)]});}[_0x341e01(0xdc)](){var _0x3bd978=_0x341e01;return{'tag':_0x3bd978(0xd6),'attributes':{'aria-hidden':_0x3bd978(0xce),'tabindex':'0'},'on':{'focus':this[_0x3bd978(0xd9)]['to'](()=>{var _0x22b3d9=_0x3bd978;this[_0x22b3d9(0xd7)][_0x22b3d9(0xcc)](_0x22b3d9(0xca));})}};}}
|