@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251222.0 → 0.0.0-nightly-20251223.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2bcc45=_0x5039;function _0x5039(_0x4fa908,_0x76ac4d){const _0xf0a149=_0xf0a1();return _0x5039=function(_0x50395b,_0x50d547){_0x50395b=_0x50395b-0xd8;let _0x1347e4=_0xf0a149[_0x50395b];return _0x1347e4;},_0x5039(_0x4fa908,_0x76ac4d);}(function(_0x3069c4,_0x51396a){const _0xf2aaa0=_0x5039,_0xf7799b=_0x3069c4();while(!![]){try{const _0x388711=parseInt(_0xf2aaa0(0x110))/0x1+parseInt(_0xf2aaa0(0xfd))/0x2+-parseInt(_0xf2aaa0(0x128))/0x3+-parseInt(_0xf2aaa0(0x10f))/0x4+parseInt(_0xf2aaa0(0x129))/0x5+-parseInt(_0xf2aaa0(0x123))/0x6+-parseInt(_0xf2aaa0(0x11a))/0x7*(parseInt(_0xf2aaa0(0xee))/0x8);if(_0x388711===_0x51396a)break;else _0xf7799b['push'](_0xf7799b['shift']());}catch(_0x5c5205){_0xf7799b['push'](_0xf7799b['shift']());}}}(_0xf0a1,0xbf7f2));function _0xf0a1(){const _0x204a13=['schema','_ctxElement','ctxElement','uploadcare.pubkey','16YGvLtY','uploadcare','imageInline','getSelectedElement','map','_initImageProcessingIndicator','PictureEditing','closeMax','get','model','body','data-uc-image-id','downcast','UploadcareEditing','locale','1053950isZnSm','extend','uc-upload-ctx-provider','config','_initConfig','execute','render','destroy','insertImage','isPremiumPlugin','isOfficialPlugin','removeAttribute','\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','querySelector','listenTo','conversion','requires','appendChild','5658396NrTxka','1467409VyDjXP','_initCtx','true','pluginName','add','upcast','elementToAttribute','selection','fromCharCode','getAttribute','1167663FgksqU','_initConversion','uploadcareImageReplace','for','uploadcareImageId','cleanupImage','view','isRegistered','afterInit','726726xObrSh','editor','editing','iconHrefResolver','ucContextId','1906158bXhybC','6473550VFNrdE','document','uploader-','attributeToAttribute','_configElement','init','imageBlock','replaceImageSource','commands','uc-config','contentLanguage','input[uploadcare-file-input]','_initSchema','join','remove','href','once','uploadcare.uploader','configElement','#uc-icon-arrow-down'];_0xf0a1=function(){return _0x204a13;};return _0xf0a1();}import{Plugin as _0x5d35e8}from'ckeditor5/src/core.js';import{Dialog as _0x4a8adb}from'ckeditor5/src/ui.js';import{createElement as _0x1fe90e,global as _0x116a7d,uid as _0x5bb9b8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x140935}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x41f79a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3516d4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5d35e8{[_0x2bcc45(0xda)]=null;[_0x2bcc45(0xeb)]=null;static get[_0x2bcc45(0x113)](){const _0x1b0768=_0x2bcc45;return _0x1b0768(0xfb);}static get[_0x2bcc45(0x10d)](){const _0x2e859a=_0x2bcc45;return[_0x2e859a(0xf4),_0x41f79a,_0x4a8adb];}static get[_0x2bcc45(0x107)](){return!0x0;}static get[_0x2bcc45(0x106)](){return!0x0;}[_0x2bcc45(0x127)];get[_0x2bcc45(0xe8)](){const _0x22a7c2=_0x2bcc45;return this[_0x22a7c2(0xda)];}get[_0x2bcc45(0xec)](){const _0x33a797=_0x2bcc45;return this[_0x33a797(0xeb)];}constructor(_0x497dca){const _0x5631a9=_0x2bcc45;super(_0x497dca),this[_0x5631a9(0x127)]=_0x5bb9b8();}[_0x2bcc45(0xdb)](){const _0x40d4f4=_0x2bcc45,_0x196b07=this[_0x40d4f4(0x124)];_0x196b07[_0x40d4f4(0xde)][_0x40d4f4(0x114)](_0x40d4f4(0xef),new _0x140935(_0x196b07));}[_0x2bcc45(0x122)](){const _0x3abadd=_0x2bcc45;this[_0x3abadd(0xe2)](),this[_0x3abadd(0x11b)](),this[_0x3abadd(0x101)](),this[_0x3abadd(0x111)](),this[_0x3abadd(0xf3)](),this[_0x3abadd(0x10b)](this[_0x3abadd(0x124)],_0x3abadd(0x104),()=>{const _0x4368f1=_0x3abadd;this[_0x4368f1(0xda)]&&(this[_0x4368f1(0xda)][_0x4368f1(0xe4)](),this[_0x4368f1(0xda)]=null),this[_0x4368f1(0xeb)]&&(this[_0x4368f1(0xeb)][_0x4368f1(0xe4)](),this[_0x4368f1(0xeb)]=null);const _0x2aeb91=_0x116a7d[_0x4368f1(0x12a)][_0x4368f1(0x10a)](_0x4368f1(0xe1));_0x2aeb91&&_0x2aeb91[_0x4368f1(0xe4)]();}),async function(_0x2574c7){const _0x5a704a=_0x1e94cd([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]),_0x2973ba=0x535f8c3a,_0x31e6f2=0x5358f09a^_0x2973ba,_0x239106=window[_0x1e94cd([0x44,0x61,0x74,0x65])][_0x1e94cd([0x6e,0x6f,0x77])](),_0x15a5c7=_0x2574c7[_0x1e94cd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1be300=new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40edd3=>{_0x15a5c7[_0x1e94cd([0x6f,0x6e,0x63,0x65])](_0x1e94cd([0x72,0x65,0x61,0x64,0x79]),_0x40edd3);}),_0x4d17f0={[_0x1e94cd([0x6b,0x74,0x79])]:_0x1e94cd([0x45,0x43]),[_0x1e94cd([0x75,0x73,0x65])]:_0x1e94cd([0x73,0x69,0x67]),[_0x1e94cd([0x63,0x72,0x76])]:_0x1e94cd([0x50,0x2d,0x32,0x35,0x36]),[_0x1e94cd([0x78])]:_0x1e94cd([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]),[_0x1e94cd([0x79])]:_0x1e94cd([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]),[_0x1e94cd([0x61,0x6c,0x67])]:_0x1e94cd([0x45,0x53,0x32,0x35,0x36])},_0x2f7e0c=_0x15a5c7[_0x1e94cd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e94cd([0x67,0x65,0x74])](_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b3264(){let _0x554017,_0x934aa7=null,_0x21ec00=null;try{if(_0x2f7e0c==_0x1e94cd([0x47,0x50,0x4c]))return _0x1e94cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x554017=_0x494666(),!_0x554017)return _0x1e94cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x554017[_0x1e94cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21ec00=_0x319c50(_0x554017[_0x1e94cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x554017[_0x1e94cd([0x6a,0x74,0x69])])),await _0x3e8836()?_0x472fd1()?_0x289d63()?_0x1e94cd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bf480()?(_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e94cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x934aa7=_0x3daa64(_0x1e94cd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e94cd([0x74,0x72,0x69,0x61,0x6c])&&(_0x934aa7=_0x3daa64(_0x1e94cd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a5f0d()):_0x1e94cd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e94cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e94cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e94cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x289d63(){const _0x2daddd=[_0x1e94cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e94cd([0x74,0x72,0x69,0x61,0x6c])][_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x239106/0x3e8:0xe10*_0x31e6f2;return _0x554017[_0x1e94cd([0x65,0x78,0x70])]<_0x2daddd;}function _0x472fd1(){const _0x20b425=_0x554017[_0x1e94cd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20b425&&(!!_0x20b425[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94cd([0x2a]))||!!_0x20b425[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94cd([0x55,0x50,0x4c,0x43])));}function _0x3bf480(){const _0x2a97c4=_0x5039,_0x27ab77=_0x554017[_0x1e94cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27ab77||0x0==_0x27ab77[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1bea02}=new URL(window[_0x1e94cd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2a97c4(0xe5)]);if(_0x27ab77[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bea02))return!0x0;const _0x10843e=_0x1bea02[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e]));return _0x27ab77[_0x1e94cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x145ae3=>_0x145ae3[_0x1e94cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e94cd([0x2a])))[_0x1e94cd([0x6d,0x61,0x70])](_0x498cdc=>_0x498cdc[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e])))[_0x1e94cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb1a25d=>_0xb1a25d[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10843e[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e94cd([0x6d,0x61,0x70])](_0x10bb88=>Array(_0x10843e[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10bb88[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e94cd([0x66,0x69,0x6c,0x6c])](_0x10bb88[0x0]===_0x1e94cd([0x2a])?_0x1e94cd([0x2a]):'')[_0x1e94cd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10bb88))[_0x1e94cd([0x73,0x6f,0x6d,0x65])](_0x4c09f0=>_0x10843e[_0x1e94cd([0x65,0x76,0x65,0x72,0x79])]((_0x45a6a6,_0x335a20)=>_0x4c09f0[_0x335a20]===_0x45a6a6||_0x4c09f0[_0x335a20]===_0x1e94cd([0x2a])));}function _0x2a5f0d(){return _0x934aa7&&_0x21ec00?new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36e0b6,_0x4b7df6)=>{_0x934aa7[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x36e0b6,_0x4b7df6),_0x21ec00[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x2f483d=>{_0x2f483d!=_0x1e94cd([0x56,0x61,0x6c,0x69,0x64])&&_0x36e0b6(_0x2f483d);},_0x4b7df6);}):_0x934aa7||_0x21ec00||_0x1e94cd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x319c50(_0x2859cc,_0x12c2e7){return new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b0664=>{if(_0x29bfcd())return _0x5b0664(_0x1e94cd([0x56,0x61,0x6c,0x69,0x64]));_0x58e367(),_0x15a5c7[_0x1e94cd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e94cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34486d=!0x1;const _0x554afe=_0x5bb9b8();function _0x4765b0(_0x5d5d45){return!!_0x5d5d45&&(typeof _0x5d5d45===_0x1e94cd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d5d45===_0x1e94cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d5d45[_0x1e94cd([0x74,0x68,0x65,0x6e])]===_0x1e94cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d5d45[_0x1e94cd([0x63,0x61,0x74,0x63,0x68])]===_0x1e94cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45a6a0(_0x422c59){_0xdfce53(_0x422c59)[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x36f13f=>{if(!_0x36f13f||_0x36f13f[_0x1e94cd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e94cd([0x6f,0x6b]))return _0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e804c(_0x38acd1(_0x554afe+_0x12c2e7))!=_0x36f13f[_0x1e94cd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e94cd([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x22a27b=>(_0x28ffe2(),_0x22a27b),()=>{const _0x3d3740=_0x396597();return null==_0x3d3740?(_0x28ffe2(),_0x1e94cd([0x56,0x61,0x6c,0x69,0x64])):_0x1e94cd(_0x239106-_0x3d3740>(0x7753083a^_0x2973ba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x5b0664)[_0x1e94cd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b0664(_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b65d8=0x536962ba^_0x2973ba;function _0x28ffe2(){const _0x527a4b=_0x1e94cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e804c(_0x38acd1(_0x2859cc)),_0x41841c=_0x130389(_0x4e804c(window[_0x1e94cd([0x4d,0x61,0x74,0x68])][_0x1e94cd([0x63,0x65,0x69,0x6c])](_0x239106/_0x5b65d8)));window[_0x1e94cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e94cd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x527a4b,_0x41841c);}function _0x396597(){const _0x1160a1=_0x1e94cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e804c(_0x38acd1(_0x2859cc)),_0x25c104=window[_0x1e94cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e94cd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1160a1);return _0x25c104?window[_0x1e94cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x130389(_0x25c104),0x10)*_0x5b65d8:null;}function _0xdfce53(_0x28dac8){return new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ff585,_0x4fd6f8)=>{_0x28dac8[_0x1e94cd([0x74,0x68,0x65,0x6e])](_0x4ff585,_0x4fd6f8),window[_0x1e94cd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fd6f8,0x535e58fa^_0x2973ba);});}}_0x15a5c7[_0x1e94cd([0x6f,0x6e])](_0x1e94cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34a434,_0x2f181e)=>{if(_0x2f181e[0x0]!=_0x2859cc)return _0x5b0664(_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f181e[0x1]={..._0x2f181e[0x1],[_0x1e94cd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x554afe};},{[_0x1e94cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e94cd([0x68,0x69,0x67,0x68])}),_0x15a5c7[_0x1e94cd([0x6f,0x6e])](_0x1e94cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x333b81=>{_0x4765b0(_0x333b81[_0x1e94cd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34486d=!0x0,_0x45a6a0(_0x333b81[_0x1e94cd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e94cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e94cd([0x6c,0x6f,0x77])}),_0x1be300[_0x1e94cd([0x74,0x68,0x65,0x6e])](()=>{_0x34486d||_0x5b0664(_0x1e94cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29bfcd(){return _0x15a5c7[_0x1e94cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e94cd([0x76,0x69,0x65,0x77])][_0x1e94cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e94cd([0x61,0x75,0x74,0x6f]);}function _0x58e367(){_0x15a5c7[_0x1e94cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e94cd([0x76,0x69,0x65,0x77])][_0x1e94cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e94cd([0x61,0x75,0x74,0x6f]);}}function _0x3daa64(_0x1d2ad9){const _0x3a1afa=[new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x121618=>setTimeout(_0x121618,0x5356b2f6^_0x2973ba)),_0x1be300[_0x1e94cd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x368530=>{let _0x5f798=0x0;_0x15a5c7[_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e94cd([0x6f,0x6e])](_0x1e94cd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e44a6,_0x38a6c3)=>{_0x38a6c3[0x0][_0x1e94cd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f798++,_0x5f798==(0x535f89d2^_0x2973ba)&&(_0x368530(),_0x3e44a6[_0x1e94cd([0x6f,0x66,0x66])]());});}))];return window[_0x1e94cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e94cd([0x72,0x61,0x63,0x65])](_0x3a1afa)[_0x1e94cd([0x74,0x68,0x65,0x6e])](()=>_0x1d2ad9);}async function _0x3b15e8(){await _0x1be300,_0x15a5c7[_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e94cd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3549,_0x15a5c7[_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e94cd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3549,_0x15a5c7[_0x1e94cd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e94cd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29fc1a(_0x55cbad){const _0xcce737=_0x4a8c26();_0x15a5c7[_0xcce737]=_0x1e94cd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55cbad,_0x55cbad!=_0x1e94cd([0x56,0x61,0x6c,0x69,0x64])&&_0x3b15e8();}function _0x4a8c26(){const _0x511e6c=window[_0x1e94cd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e94cd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e94cd([0x6e,0x6f,0x77])]())[_0x1e94cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e94cd([0x2e]),'');let _0x2dad56=_0x1e94cd([0x68]);for(let _0x2a8ed1=0x0;_0x2a8ed1<_0x511e6c[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a8ed1+=0x2){let _0xcabb3d=window[_0x1e94cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x511e6c[_0x1e94cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a8ed1,_0x2a8ed1+0x2));_0xcabb3d>=_0x5a704a[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcabb3d-=_0x5a704a[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dad56+=_0x5a704a[_0xcabb3d];}return _0x2dad56;}function _0x494666(){const _0x507fa9=_0x2f7e0c[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e]));if(0x3!=_0x507fa9[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x224bb8(_0x507fa9[0x1]);function _0x224bb8(_0x233e56){const _0x222e58=_0x43830f(_0x233e56);return _0x222e58&&_0x39d883()?_0x222e58:null;function _0x39d883(){const _0x5774cc=_0x222e58[_0x1e94cd([0x6a,0x74,0x69])],_0x5b7576=window[_0x1e94cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5774cc[_0x1e94cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5774cc[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c92c2={..._0x222e58,[_0x1e94cd([0x6a,0x74,0x69])]:_0x5774cc[_0x1e94cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5774cc[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c92c2[_0x1e94cd([0x76,0x63])],_0x38acd1(_0x2c92c2)==_0x5b7576;}}}async function _0x3e8836(){let _0x174000=!0x0;try{const _0x3dbc87=_0x2f7e0c[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])](_0x1e94cd([0x2e])),[_0x4cbd9c,_0x5c65ec,_0x4e839b]=_0x3dbc87;return _0x2e041e(_0x4cbd9c),await _0x1657c7(_0x4cbd9c,_0x5c65ec,_0x4e839b),_0x174000;}catch{return!0x1;}function _0x2e041e(_0x21ab4b){const _0x2843f2=_0x43830f(_0x21ab4b);_0x2843f2&&_0x2843f2[_0x1e94cd([0x61,0x6c,0x67])]==_0x1e94cd([0x45,0x53,0x32,0x35,0x36])||(_0x174000=!0x1);}async function _0x1657c7(_0x17087e,_0x5bd80b,_0x29e596){const _0x4b88f2=window[_0x1e94cd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e94cd([0x66,0x72,0x6f,0x6d])](_0x5536ff(_0x29e596),_0x47bc7f=>_0x47bc7f[_0x1e94cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b631a=new window[(_0x1e94cd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e94cd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17087e+_0x1e94cd([0x2e])+_0x5bd80b),_0x1c5205=window[_0x1e94cd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e94cd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c5205)return;const _0x5998b5=await _0x1c5205[_0x1e94cd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e94cd([0x6a,0x77,0x6b]),_0x4d17f0,{[_0x1e94cd([0x6e,0x61,0x6d,0x65])]:_0x1e94cd([0x45,0x43,0x44,0x53,0x41]),[_0x1e94cd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e94cd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e94cd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c5205[_0x1e94cd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e94cd([0x6e,0x61,0x6d,0x65])]:_0x1e94cd([0x45,0x43,0x44,0x53,0x41]),[_0x1e94cd([0x68,0x61,0x73,0x68])]:{[_0x1e94cd([0x6e,0x61,0x6d,0x65])]:_0x1e94cd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5998b5,_0x4b88f2,_0x1b631a)||(_0x174000=!0x1);}}function _0x43830f(_0x35e16f){return _0x35e16f[_0x1e94cd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e94cd([0x65,0x79]))?JSON[_0x1e94cd([0x70,0x61,0x72,0x73,0x65])](_0x5536ff(_0x35e16f)):null;}function _0x5536ff(_0xf35a46){return window[_0x1e94cd([0x61,0x74,0x6f,0x62])](_0xf35a46[_0x1e94cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e94cd([0x2b]))[_0x1e94cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e94cd([0x2f])));}function _0x38acd1(_0x882126){let _0x1a11e0=0x1505;function _0x4a1edb(_0x55a260){for(let _0x40bb01=0x0;_0x40bb01<_0x55a260[_0x1e94cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40bb01++){const _0x1287d9=_0x55a260[_0x1e94cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40bb01);_0x1a11e0=(_0x1a11e0<<0x5)+_0x1a11e0+_0x1287d9,_0x1a11e0&=_0x1a11e0;}}function _0x1bdf8d(_0x45dbe4){Array[_0x1e94cd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45dbe4)?_0x45dbe4[_0x1e94cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bdf8d):_0x45dbe4&&typeof _0x45dbe4==_0x1e94cd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e94cd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45dbe4)[_0x1e94cd([0x73,0x6f,0x72,0x74])]()[_0x1e94cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33be51,_0x3dc552])=>{_0x4a1edb(_0x33be51),_0x1bdf8d(_0x3dc552);}):_0x4a1edb(window[_0x1e94cd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45dbe4));}return _0x1bdf8d(_0x882126),_0x1a11e0>>>0x0;}function _0x4e804c(_0x2f4d46){return _0x2f4d46[_0x1e94cd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e94cd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e94cd([0x30]));}function _0x130389(_0x5ca04e){return _0x5ca04e[_0x1e94cd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e94cd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e94cd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3549(){}function _0x1e94cd(_0x2e0d8e){const _0x550028=_0x5039;return _0x2e0d8e[_0x550028(0xf2)](_0x218425=>String[_0x550028(0x118)](_0x218425))[_0x550028(0xe3)]('');}_0x29fc1a(await _0x1b3264());}(this);}[_0x2bcc45(0xe2)](){const _0x524005=_0x2bcc45,_0x3f3fc3=this[_0x524005(0x124)][_0x524005(0xf7)][_0x524005(0xea)];_0x3f3fc3[_0x524005(0x121)](_0x524005(0xdc))&&_0x3f3fc3[_0x524005(0xfe)](_0x524005(0xdc),{'allowAttributes':[_0x524005(0x11e)]}),_0x3f3fc3[_0x524005(0x121)](_0x524005(0xf0))&&_0x3f3fc3[_0x524005(0xfe)](_0x524005(0xf0),{'allowAttributes':[_0x524005(0x11e)]});}[_0x2bcc45(0x11b)](){const _0x4f1697=_0x2bcc45,_0x3d3646=this[_0x4f1697(0x124)];_0x3d3646[_0x4f1697(0x10c)][_0x4f1697(0x11d)](_0x4f1697(0xfa))[_0x4f1697(0xd9)]({'model':_0x4f1697(0x11e),'view':_0x4f1697(0xf9)}),_0x3d3646[_0x4f1697(0x10c)][_0x4f1697(0x11d)](_0x4f1697(0x115))[_0x4f1697(0x116)]({'model':{'key':_0x4f1697(0x11e),'value':_0x54a46a=>_0x54a46a[_0x4f1697(0x119)](_0x4f1697(0xf9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x162850=_0x3d3646[_0x4f1697(0xde)][_0x4f1697(0xf6)](_0x4f1697(0xdd));_0x162850&&this[_0x4f1697(0x10b)](_0x162850,_0x4f1697(0x11f),(_0x19925c,[_0x158001,_0x5ab30e])=>{const _0x20ead2=_0x4f1697;_0x158001[_0x20ead2(0x108)](_0x20ead2(0x11e),_0x5ab30e);});}[_0x2bcc45(0x101)](){const _0x179d04=_0x2bcc45,_0x167224=this[_0x179d04(0x124)][_0x179d04(0x100)][_0x179d04(0xf6)](_0x179d04(0xe7))||{},_0x1b34ed=this[_0x179d04(0x124)][_0x179d04(0x100)][_0x179d04(0xf6)](_0x179d04(0xed))||'';this[_0x179d04(0xda)]=_0x1fe90e(_0x116a7d[_0x179d04(0x12a)],_0x179d04(0xdf),{..._0x167224,'pubkey':_0x1b34ed,'ctx-name':_0x179d04(0xd8)+this[_0x179d04(0x127)],'sourceList':'','imgOnly':_0x179d04(0x112),'removeCopyright':_0x179d04(0x112),'localeName':this[_0x179d04(0x124)][_0x179d04(0xfc)][_0x179d04(0xe0)],'externalSourcesEmbedCss':_0x179d04(0x109)}),this[_0x179d04(0xda)][_0x179d04(0x126)]=_0x216028=>{const _0x676cdf=_0x179d04;if(_0x676cdf(0xf5)==_0x216028)return _0x676cdf(0xe9);},_0x116a7d[_0x179d04(0x12a)][_0x179d04(0xf8)][_0x179d04(0x10e)](this[_0x179d04(0xda)]);}[_0x2bcc45(0x111)](){const _0x3d2e9d=_0x2bcc45;this[_0x3d2e9d(0xeb)]=_0x1fe90e(_0x116a7d[_0x3d2e9d(0x12a)],_0x3d2e9d(0xff),{'ctx-name':_0x3d2e9d(0xd8)+this[_0x3d2e9d(0x127)]}),_0x116a7d[_0x3d2e9d(0x12a)][_0x3d2e9d(0xf8)][_0x3d2e9d(0x10e)](this[_0x3d2e9d(0xeb)]);}[_0x2bcc45(0xf3)](){const _0x176f0d=_0x2bcc45,_0x2aa396=this[_0x176f0d(0x124)][_0x176f0d(0xde)][_0x176f0d(0xf6)](_0x176f0d(0x105));_0x2aa396&&this[_0x176f0d(0x10b)](_0x2aa396,_0x176f0d(0x102),()=>{const _0xd612e=_0x176f0d,_0x5598bc=this[_0xd612e(0x124)][_0xd612e(0xf7)][_0xd612e(0x12a)][_0xd612e(0x117)][_0xd612e(0xf1)]();_0x5598bc&&_0x5598bc[_0xd612e(0x119)](_0xd612e(0x11e))&&this[_0xd612e(0x124)][_0xd612e(0x125)][_0xd612e(0x120)][_0xd612e(0xe6)](_0xd612e(0x103),()=>{const _0x4dd6f0=_0xd612e;_0x3516d4(this[_0x4dd6f0(0x124)],_0x5598bc);});});const _0x4c58e5=this[_0x176f0d(0x124)][_0x176f0d(0xde)][_0x176f0d(0xf6)](_0x176f0d(0x11c));_0x4c58e5&&this[_0x176f0d(0x10b)](_0x4c58e5,_0x176f0d(0x102),()=>{const _0x286f5d=_0x176f0d,_0x47969c=this[_0x286f5d(0x124)][_0x286f5d(0xf7)][_0x286f5d(0x12a)][_0x286f5d(0x117)][_0x286f5d(0xf1)]();_0x47969c&&_0x47969c[_0x286f5d(0x119)](_0x286f5d(0x11e))&&this[_0x286f5d(0x124)][_0x286f5d(0x125)][_0x286f5d(0x120)][_0x286f5d(0xe6)](_0x286f5d(0x103),()=>{const _0x4c0d01=_0x286f5d;_0x3516d4(this[_0x4c0d01(0x124)],_0x47969c);});});}}
|
|
23
|
+
function _0xde6d(_0x1ad735,_0x3853c7){const _0x36ffbd=_0x36ff();return _0xde6d=function(_0xde6d0c,_0x5d8341){_0xde6d0c=_0xde6d0c-0x194;let _0x1cc6c8=_0x36ffbd[_0xde6d0c];return _0x1cc6c8;},_0xde6d(_0x1ad735,_0x3853c7);}const _0x1a16f7=_0xde6d;(function(_0x315e09,_0x3a46db){const _0x5397bf=_0xde6d,_0x34cb5b=_0x315e09();while(!![]){try{const _0x2a20c9=-parseInt(_0x5397bf(0x1e4))/0x1+parseInt(_0x5397bf(0x19a))/0x2+parseInt(_0x5397bf(0x1e6))/0x3*(-parseInt(_0x5397bf(0x1c2))/0x4)+parseInt(_0x5397bf(0x1bd))/0x5+-parseInt(_0x5397bf(0x1b2))/0x6+parseInt(_0x5397bf(0x1e5))/0x7*(parseInt(_0x5397bf(0x1c4))/0x8)+-parseInt(_0x5397bf(0x1af))/0x9;if(_0x2a20c9===_0x3a46db)break;else _0x34cb5b['push'](_0x34cb5b['shift']());}catch(_0x18700f){_0x34cb5b['push'](_0x34cb5b['shift']());}}}(_0x36ff,0x595d3));import{Plugin as _0x5a3a20}from'ckeditor5/src/core.js';function _0x36ff(){const _0x1a15ff=['downcast','schema','init','uploadcareImageId','removeAttribute','imageBlock','imageInline','config','PictureEditing','closeMax','uploadcare.uploader','iconHrefResolver','isOfficialPlugin','_initCtx','pluginName','462231vFzMMR','_initConfig','once','2611896YTQogt','_initImageProcessingIndicator','editing','contentLanguage','_initSchema','fromCharCode','isPremiumPlugin','ucContextId','model','configElement','insertImage','934690HVpYGq','elementToAttribute','input[uploadcare-file-input]','data-uc-image-id','_ctxElement','316OqhyxR','href','616PjrGJz','uploadcare','#uc-icon-arrow-down','for','locale','appendChild','uc-config','UploadcareEditing','attributeToAttribute','_initConversion','\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','getAttribute','uploadcareImageReplace','body','render','selection','map','afterInit','listenTo','get','uc-upload-ctx-provider','join','remove','uploadcare.pubkey','true','view','editor','_configElement','destroy','getSelectedElement','uploader-','replaceImageSource','297952rfjBmb','63427uWCsNJ','6861lqyKVf','execute','conversion','document','commands','isRegistered','extend','ctxElement','893400cZKZrL','cleanupImage','add','querySelector','upcast','requires'];_0x36ff=function(){return _0x1a15ff;};return _0x36ff();}import{Dialog as _0x405091}from'ckeditor5/src/ui.js';import{createElement as _0x34fa3a,global as _0x4b76bf,uid as _0x2f277c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x267272}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x10a945}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2f7e9c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5a3a20{[_0x1a16f7(0x1df)]=null;[_0x1a16f7(0x1c1)]=null;static get[_0x1a16f7(0x1ae)](){const _0x55415a=_0x1a16f7;return _0x55415a(0x1cb);}static get[_0x1a16f7(0x19f)](){const _0x29e6ce=_0x1a16f7;return[_0x29e6ce(0x1a8),_0x10a945,_0x405091];}static get[_0x1a16f7(0x1ac)](){return!0x0;}static get[_0x1a16f7(0x1b8)](){return!0x0;}[_0x1a16f7(0x1b9)];get[_0x1a16f7(0x1bb)](){const _0x478699=_0x1a16f7;return this[_0x478699(0x1df)];}get[_0x1a16f7(0x199)](){const _0x3b7328=_0x1a16f7;return this[_0x3b7328(0x1c1)];}constructor(_0x3d2800){const _0x51e5bc=_0x1a16f7;super(_0x3d2800),this[_0x51e5bc(0x1b9)]=_0x2f277c();}[_0x1a16f7(0x1a2)](){const _0x2a0d5a=_0x1a16f7,_0x1ce99f=this[_0x2a0d5a(0x1de)];_0x1ce99f[_0x2a0d5a(0x196)][_0x2a0d5a(0x19c)](_0x2a0d5a(0x1c5),new _0x267272(_0x1ce99f));}[_0x1a16f7(0x1d5)](){const _0x29e45b=_0x1a16f7;this[_0x29e45b(0x1b6)](),this[_0x29e45b(0x1cd)](),this[_0x29e45b(0x1b0)](),this[_0x29e45b(0x1ad)](),this[_0x29e45b(0x1b3)](),this[_0x29e45b(0x1d6)](this[_0x29e45b(0x1de)],_0x29e45b(0x1e0),()=>{const _0x34c3b6=_0x29e45b;this[_0x34c3b6(0x1df)]&&(this[_0x34c3b6(0x1df)][_0x34c3b6(0x1da)](),this[_0x34c3b6(0x1df)]=null),this[_0x34c3b6(0x1c1)]&&(this[_0x34c3b6(0x1c1)][_0x34c3b6(0x1da)](),this[_0x34c3b6(0x1c1)]=null);const _0xbdb77e=_0x4b76bf[_0x34c3b6(0x195)][_0x34c3b6(0x19d)](_0x34c3b6(0x1bf));_0xbdb77e&&_0xbdb77e[_0x34c3b6(0x1da)]();}),async function(_0x5cc76a){const _0xebb60f=_0x2bf38d([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]),_0x551284=0x535f8c3a,_0x2c0595=0x5358f082^_0x551284,_0x555f49=window[_0x2bf38d([0x44,0x61,0x74,0x65])][_0x2bf38d([0x6e,0x6f,0x77])](),_0x1d3549=_0x5cc76a[_0x2bf38d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55cd93=new window[(_0x2bf38d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37c2a6=>{_0x1d3549[_0x2bf38d([0x6f,0x6e,0x63,0x65])](_0x2bf38d([0x72,0x65,0x61,0x64,0x79]),_0x37c2a6);}),_0x1f37c1={[_0x2bf38d([0x6b,0x74,0x79])]:_0x2bf38d([0x45,0x43]),[_0x2bf38d([0x75,0x73,0x65])]:_0x2bf38d([0x73,0x69,0x67]),[_0x2bf38d([0x63,0x72,0x76])]:_0x2bf38d([0x50,0x2d,0x32,0x35,0x36]),[_0x2bf38d([0x78])]:_0x2bf38d([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]),[_0x2bf38d([0x79])]:_0x2bf38d([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]),[_0x2bf38d([0x61,0x6c,0x67])]:_0x2bf38d([0x45,0x53,0x32,0x35,0x36])},_0x1e80b7=_0x1d3549[_0x2bf38d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bf38d([0x67,0x65,0x74])](_0x2bf38d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38de04(){let _0x5dfe06,_0x3f9f55=null,_0x9b2363=null;try{if(_0x1e80b7==_0x2bf38d([0x47,0x50,0x4c]))return _0x2bf38d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5dfe06=_0x1c70ee(),!_0x5dfe06)return _0x2bf38d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5dfe06[_0x2bf38d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9b2363=_0x68599d(_0x5dfe06[_0x2bf38d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5dfe06[_0x2bf38d([0x6a,0x74,0x69])])),await _0x29a0cc()?_0x339ea2()?_0x4558b7()?_0x2bf38d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13e236()?(_0x5dfe06[_0x2bf38d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf38d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f9f55=_0x1dd852(_0x2bf38d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5dfe06[_0x2bf38d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bf38d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f9f55=_0x1dd852(_0x2bf38d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x348985()):_0x2bf38d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf38d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bf38d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2bf38d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4558b7(){const _0x3b97e5=[_0x2bf38d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bf38d([0x74,0x72,0x69,0x61,0x6c])][_0x2bf38d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dfe06[_0x2bf38d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x555f49/0x3e8:0xe10*_0x2c0595;return _0x5dfe06[_0x2bf38d([0x65,0x78,0x70])]<_0x3b97e5;}function _0x339ea2(){const _0xa29afa=_0x5dfe06[_0x2bf38d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa29afa&&(!!_0xa29afa[_0x2bf38d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf38d([0x2a]))||!!_0xa29afa[_0x2bf38d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf38d([0x55,0x50,0x4c,0x43])));}function _0x13e236(){const _0x3a910d=_0xde6d,_0x3245a4=_0x5dfe06[_0x2bf38d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3245a4||0x0==_0x3245a4[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21cf8f}=new URL(window[_0x2bf38d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a910d(0x1c3)]);if(_0x3245a4[_0x2bf38d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21cf8f))return!0x0;const _0x3c9cf8=_0x21cf8f[_0x2bf38d([0x73,0x70,0x6c,0x69,0x74])](_0x2bf38d([0x2e]));return _0x3245a4[_0x2bf38d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cfa0d=>_0x4cfa0d[_0x2bf38d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf38d([0x2a])))[_0x2bf38d([0x6d,0x61,0x70])](_0x1b16a9=>_0x1b16a9[_0x2bf38d([0x73,0x70,0x6c,0x69,0x74])](_0x2bf38d([0x2e])))[_0x2bf38d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x515cc5=>_0x515cc5[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c9cf8[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bf38d([0x6d,0x61,0x70])](_0x5c71f2=>Array(_0x3c9cf8[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c71f2[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bf38d([0x66,0x69,0x6c,0x6c])](_0x5c71f2[0x0]===_0x2bf38d([0x2a])?_0x2bf38d([0x2a]):'')[_0x2bf38d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c71f2))[_0x2bf38d([0x73,0x6f,0x6d,0x65])](_0x5c0bf2=>_0x3c9cf8[_0x2bf38d([0x65,0x76,0x65,0x72,0x79])]((_0x26b5a9,_0x191288)=>_0x5c0bf2[_0x191288]===_0x26b5a9||_0x5c0bf2[_0x191288]===_0x2bf38d([0x2a])));}function _0x348985(){return _0x3f9f55&&_0x9b2363?new window[(_0x2bf38d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e70a4,_0x2562d5)=>{_0x3f9f55[_0x2bf38d([0x74,0x68,0x65,0x6e])](_0x2e70a4,_0x2562d5),_0x9b2363[_0x2bf38d([0x74,0x68,0x65,0x6e])](_0xd0877e=>{_0xd0877e!=_0x2bf38d([0x56,0x61,0x6c,0x69,0x64])&&_0x2e70a4(_0xd0877e);},_0x2562d5);}):_0x3f9f55||_0x9b2363||_0x2bf38d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x68599d(_0x2ed4bc,_0x46aa27){return new window[(_0x2bf38d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x201db8=>{if(_0x5ab12f())return _0x201db8(_0x2bf38d([0x56,0x61,0x6c,0x69,0x64]));_0x599f38(),_0x1d3549[_0x2bf38d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bf38d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28812f=!0x1;const _0x4ee9cb=_0x2f277c();function _0x20b051(_0xe1e9eb){return!!_0xe1e9eb&&(typeof _0xe1e9eb===_0x2bf38d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe1e9eb===_0x2bf38d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe1e9eb[_0x2bf38d([0x74,0x68,0x65,0x6e])]===_0x2bf38d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe1e9eb[_0x2bf38d([0x63,0x61,0x74,0x63,0x68])]===_0x2bf38d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5916d7(_0x35b25e){_0x35383e(_0x35b25e)[_0x2bf38d([0x74,0x68,0x65,0x6e])](_0x443ed3=>{if(!_0x443ed3||_0x443ed3[_0x2bf38d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bf38d([0x6f,0x6b]))return _0x2bf38d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43997d(_0x19efba(_0x4ee9cb+_0x46aa27))!=_0x443ed3[_0x2bf38d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bf38d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bf38d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf38d([0x74,0x68,0x65,0x6e])](_0x2e707a=>(_0x6ff172(),_0x2e707a),()=>{const _0x60c232=_0x4f96fe();return null==_0x60c232?(_0x6ff172(),_0x2bf38d([0x56,0x61,0x6c,0x69,0x64])):_0x2bf38d(_0x555f49-_0x60c232>(0x7753083a^_0x551284)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bf38d([0x74,0x68,0x65,0x6e])](_0x201db8)[_0x2bf38d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x201db8(_0x2bf38d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ee0d1=0x536962ba^_0x551284;function _0x6ff172(){const _0x5d0a9f=_0x2bf38d([0x6c,0x6c,0x63,0x74,0x2d])+_0x43997d(_0x19efba(_0x2ed4bc)),_0x1ad4d9=_0x333b4b(_0x43997d(window[_0x2bf38d([0x4d,0x61,0x74,0x68])][_0x2bf38d([0x63,0x65,0x69,0x6c])](_0x555f49/_0x3ee0d1)));window[_0x2bf38d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf38d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d0a9f,_0x1ad4d9);}function _0x4f96fe(){const _0x18d726=_0x2bf38d([0x6c,0x6c,0x63,0x74,0x2d])+_0x43997d(_0x19efba(_0x2ed4bc)),_0x2a98ce=window[_0x2bf38d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bf38d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18d726);return _0x2a98ce?window[_0x2bf38d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x333b4b(_0x2a98ce),0x10)*_0x3ee0d1:null;}function _0x35383e(_0x375a63){return new window[(_0x2bf38d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2897c9,_0x219b0c)=>{_0x375a63[_0x2bf38d([0x74,0x68,0x65,0x6e])](_0x2897c9,_0x219b0c),window[_0x2bf38d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x219b0c,0x535e58fa^_0x551284);});}}_0x1d3549[_0x2bf38d([0x6f,0x6e])](_0x2bf38d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x357e27,_0x49b8c9)=>{if(_0x49b8c9[0x0]!=_0x2ed4bc)return _0x201db8(_0x2bf38d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49b8c9[0x1]={..._0x49b8c9[0x1],[_0x2bf38d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ee9cb};},{[_0x2bf38d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf38d([0x68,0x69,0x67,0x68])}),_0x1d3549[_0x2bf38d([0x6f,0x6e])](_0x2bf38d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x312943=>{_0x20b051(_0x312943[_0x2bf38d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28812f=!0x0,_0x5916d7(_0x312943[_0x2bf38d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bf38d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bf38d([0x6c,0x6f,0x77])}),_0x55cd93[_0x2bf38d([0x74,0x68,0x65,0x6e])](()=>{_0x28812f||_0x201db8(_0x2bf38d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ab12f(){return _0x1d3549[_0x2bf38d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf38d([0x76,0x69,0x65,0x77])][_0x2bf38d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bf38d([0x61,0x75,0x74,0x6f]);}function _0x599f38(){_0x1d3549[_0x2bf38d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf38d([0x76,0x69,0x65,0x77])][_0x2bf38d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bf38d([0x61,0x75,0x74,0x6f]);}}function _0x1dd852(_0x6ace6e){const _0x4229af=[new window[(_0x2bf38d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51e975=>setTimeout(_0x51e975,0x5356b2f6^_0x551284)),_0x55cd93[_0x2bf38d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bf38d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5499=>{let _0x1f7d6d=0x0;_0x1d3549[_0x2bf38d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf38d([0x6f,0x6e])](_0x2bf38d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a1e97,_0x4007e4)=>{_0x4007e4[0x0][_0x2bf38d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f7d6d++,_0x1f7d6d==(0x535f89d2^_0x551284)&&(_0x2b5499(),_0x1a1e97[_0x2bf38d([0x6f,0x66,0x66])]());});}))];return window[_0x2bf38d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bf38d([0x72,0x61,0x63,0x65])](_0x4229af)[_0x2bf38d([0x74,0x68,0x65,0x6e])](()=>_0x6ace6e);}async function _0x356b57(){await _0x55cd93,_0x1d3549[_0x2bf38d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf38d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d55d7,_0x1d3549[_0x2bf38d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bf38d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d55d7,_0x1d3549[_0x2bf38d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bf38d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f5436(_0x1bf96e){const _0xfeeca9=_0x27c71c();_0x1d3549[_0xfeeca9]=_0x2bf38d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf96e,_0x1bf96e!=_0x2bf38d([0x56,0x61,0x6c,0x69,0x64])&&_0x356b57();}function _0x27c71c(){const _0x354161=window[_0x2bf38d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bf38d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bf38d([0x6e,0x6f,0x77])]())[_0x2bf38d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bf38d([0x2e]),'');let _0x18364b=_0x2bf38d([0x68]);for(let _0x587fa3=0x0;_0x587fa3<_0x354161[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x587fa3+=0x2){let _0x1a4539=window[_0x2bf38d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x354161[_0x2bf38d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x587fa3,_0x587fa3+0x2));_0x1a4539>=_0xebb60f[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a4539-=_0xebb60f[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18364b+=_0xebb60f[_0x1a4539];}return _0x18364b;}function _0x1c70ee(){const _0x21f32b=_0x1e80b7[_0x2bf38d([0x73,0x70,0x6c,0x69,0x74])](_0x2bf38d([0x2e]));if(0x3!=_0x21f32b[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5071b4(_0x21f32b[0x1]);function _0x5071b4(_0x4424f9){const _0x4ce16c=_0x3dbcca(_0x4424f9);return _0x4ce16c&&_0x295c0f()?_0x4ce16c:null;function _0x295c0f(){const _0x41af28=_0x4ce16c[_0x2bf38d([0x6a,0x74,0x69])],_0x14691d=window[_0x2bf38d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41af28[_0x2bf38d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41af28[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2805ca={..._0x4ce16c,[_0x2bf38d([0x6a,0x74,0x69])]:_0x41af28[_0x2bf38d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41af28[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2805ca[_0x2bf38d([0x76,0x63])],_0x19efba(_0x2805ca)==_0x14691d;}}}async function _0x29a0cc(){let _0x262a2d=!0x0;try{const _0x292dee=_0x1e80b7[_0x2bf38d([0x73,0x70,0x6c,0x69,0x74])](_0x2bf38d([0x2e])),[_0x4608e2,_0x4495d8,_0x2533c7]=_0x292dee;return _0x2d6750(_0x4608e2),await _0x4abd25(_0x4608e2,_0x4495d8,_0x2533c7),_0x262a2d;}catch{return!0x1;}function _0x2d6750(_0x1babb1){const _0x49476d=_0x3dbcca(_0x1babb1);_0x49476d&&_0x49476d[_0x2bf38d([0x61,0x6c,0x67])]==_0x2bf38d([0x45,0x53,0x32,0x35,0x36])||(_0x262a2d=!0x1);}async function _0x4abd25(_0x43aa16,_0x572473,_0x27116a){const _0x5cae31=window[_0x2bf38d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bf38d([0x66,0x72,0x6f,0x6d])](_0x18d0bc(_0x27116a),_0x53884a=>_0x53884a[_0x2bf38d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b13a=new window[(_0x2bf38d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bf38d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43aa16+_0x2bf38d([0x2e])+_0x572473),_0xf4007=window[_0x2bf38d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bf38d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf4007)return;const _0x166298=await _0xf4007[_0x2bf38d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bf38d([0x6a,0x77,0x6b]),_0x1f37c1,{[_0x2bf38d([0x6e,0x61,0x6d,0x65])]:_0x2bf38d([0x45,0x43,0x44,0x53,0x41]),[_0x2bf38d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bf38d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bf38d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf4007[_0x2bf38d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bf38d([0x6e,0x61,0x6d,0x65])]:_0x2bf38d([0x45,0x43,0x44,0x53,0x41]),[_0x2bf38d([0x68,0x61,0x73,0x68])]:{[_0x2bf38d([0x6e,0x61,0x6d,0x65])]:_0x2bf38d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x166298,_0x5cae31,_0x18b13a)||(_0x262a2d=!0x1);}}function _0x3dbcca(_0x4711af){return _0x4711af[_0x2bf38d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bf38d([0x65,0x79]))?JSON[_0x2bf38d([0x70,0x61,0x72,0x73,0x65])](_0x18d0bc(_0x4711af)):null;}function _0x18d0bc(_0x32f100){return window[_0x2bf38d([0x61,0x74,0x6f,0x62])](_0x32f100[_0x2bf38d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bf38d([0x2b]))[_0x2bf38d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bf38d([0x2f])));}function _0x19efba(_0x17e7da){let _0x3d76af=0x1505;function _0x15ece6(_0x329edc){for(let _0x45af63=0x0;_0x45af63<_0x329edc[_0x2bf38d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45af63++){const _0x4b5464=_0x329edc[_0x2bf38d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45af63);_0x3d76af=(_0x3d76af<<0x5)+_0x3d76af+_0x4b5464,_0x3d76af&=_0x3d76af;}}function _0x5264bb(_0x4cb954){Array[_0x2bf38d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cb954)?_0x4cb954[_0x2bf38d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5264bb):_0x4cb954&&typeof _0x4cb954==_0x2bf38d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bf38d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cb954)[_0x2bf38d([0x73,0x6f,0x72,0x74])]()[_0x2bf38d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x567b80,_0x1ab6d5])=>{_0x15ece6(_0x567b80),_0x5264bb(_0x1ab6d5);}):_0x15ece6(window[_0x2bf38d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cb954));}return _0x5264bb(_0x17e7da),_0x3d76af>>>0x0;}function _0x43997d(_0x33ea0a){return _0x33ea0a[_0x2bf38d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bf38d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bf38d([0x30]));}function _0x333b4b(_0x430dc2){return _0x430dc2[_0x2bf38d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bf38d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bf38d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d55d7(){}function _0x2bf38d(_0x3b4b2c){const _0x22d58a=_0xde6d;return _0x3b4b2c[_0x22d58a(0x1d4)](_0x24961f=>String[_0x22d58a(0x1b7)](_0x24961f))[_0x22d58a(0x1d9)]('');}_0x5f5436(await _0x38de04());}(this);}[_0x1a16f7(0x1b6)](){const _0x424bf9=_0x1a16f7,_0x503579=this[_0x424bf9(0x1de)][_0x424bf9(0x1ba)][_0x424bf9(0x1a1)];_0x503579[_0x424bf9(0x197)](_0x424bf9(0x1a5))&&_0x503579[_0x424bf9(0x198)](_0x424bf9(0x1a5),{'allowAttributes':[_0x424bf9(0x1a3)]}),_0x503579[_0x424bf9(0x197)](_0x424bf9(0x1a6))&&_0x503579[_0x424bf9(0x198)](_0x424bf9(0x1a6),{'allowAttributes':[_0x424bf9(0x1a3)]});}[_0x1a16f7(0x1cd)](){const _0x3b3ce9=_0x1a16f7,_0x31be06=this[_0x3b3ce9(0x1de)];_0x31be06[_0x3b3ce9(0x194)][_0x3b3ce9(0x1c7)](_0x3b3ce9(0x1a0))[_0x3b3ce9(0x1cc)]({'model':_0x3b3ce9(0x1a3),'view':_0x3b3ce9(0x1c0)}),_0x31be06[_0x3b3ce9(0x194)][_0x3b3ce9(0x1c7)](_0x3b3ce9(0x19e))[_0x3b3ce9(0x1be)]({'model':{'key':_0x3b3ce9(0x1a3),'value':_0x40fed4=>_0x40fed4[_0x3b3ce9(0x1cf)](_0x3b3ce9(0x1c0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3b3ab5=_0x31be06[_0x3b3ce9(0x196)][_0x3b3ce9(0x1d7)](_0x3b3ce9(0x1e3));_0x3b3ab5&&this[_0x3b3ce9(0x1d6)](_0x3b3ab5,_0x3b3ce9(0x19b),(_0xaf397a,[_0x592caf,_0x57cda4])=>{const _0x3fea79=_0x3b3ce9;_0x592caf[_0x3fea79(0x1a4)](_0x3fea79(0x1a3),_0x57cda4);});}[_0x1a16f7(0x1b0)](){const _0x2134e4=_0x1a16f7,_0x2c6e0b=this[_0x2134e4(0x1de)][_0x2134e4(0x1a7)][_0x2134e4(0x1d7)](_0x2134e4(0x1aa))||{},_0x29bfd8=this[_0x2134e4(0x1de)][_0x2134e4(0x1a7)][_0x2134e4(0x1d7)](_0x2134e4(0x1db))||'';this[_0x2134e4(0x1df)]=_0x34fa3a(_0x4b76bf[_0x2134e4(0x195)],_0x2134e4(0x1ca),{..._0x2c6e0b,'pubkey':_0x29bfd8,'ctx-name':_0x2134e4(0x1e2)+this[_0x2134e4(0x1b9)],'sourceList':'','imgOnly':_0x2134e4(0x1dc),'removeCopyright':_0x2134e4(0x1dc),'localeName':this[_0x2134e4(0x1de)][_0x2134e4(0x1c8)][_0x2134e4(0x1b5)],'externalSourcesEmbedCss':_0x2134e4(0x1ce)}),this[_0x2134e4(0x1df)][_0x2134e4(0x1ab)]=_0x5d4838=>{const _0xd87702=_0x2134e4;if(_0xd87702(0x1a9)==_0x5d4838)return _0xd87702(0x1c6);},_0x4b76bf[_0x2134e4(0x195)][_0x2134e4(0x1d1)][_0x2134e4(0x1c9)](this[_0x2134e4(0x1df)]);}[_0x1a16f7(0x1ad)](){const _0x5694d3=_0x1a16f7;this[_0x5694d3(0x1c1)]=_0x34fa3a(_0x4b76bf[_0x5694d3(0x195)],_0x5694d3(0x1d8),{'ctx-name':_0x5694d3(0x1e2)+this[_0x5694d3(0x1b9)]}),_0x4b76bf[_0x5694d3(0x195)][_0x5694d3(0x1d1)][_0x5694d3(0x1c9)](this[_0x5694d3(0x1c1)]);}[_0x1a16f7(0x1b3)](){const _0xf1348b=_0x1a16f7,_0x40a00c=this[_0xf1348b(0x1de)][_0xf1348b(0x196)][_0xf1348b(0x1d7)](_0xf1348b(0x1bc));_0x40a00c&&this[_0xf1348b(0x1d6)](_0x40a00c,_0xf1348b(0x1e7),()=>{const _0x3d0c0e=_0xf1348b,_0x10ba0d=this[_0x3d0c0e(0x1de)][_0x3d0c0e(0x1ba)][_0x3d0c0e(0x195)][_0x3d0c0e(0x1d3)][_0x3d0c0e(0x1e1)]();_0x10ba0d&&_0x10ba0d[_0x3d0c0e(0x1cf)](_0x3d0c0e(0x1a3))&&this[_0x3d0c0e(0x1de)][_0x3d0c0e(0x1b4)][_0x3d0c0e(0x1dd)][_0x3d0c0e(0x1b1)](_0x3d0c0e(0x1d2),()=>{const _0x322114=_0x3d0c0e;_0x2f7e9c(this[_0x322114(0x1de)],_0x10ba0d);});});const _0x23eeaa=this[_0xf1348b(0x1de)][_0xf1348b(0x196)][_0xf1348b(0x1d7)](_0xf1348b(0x1d0));_0x23eeaa&&this[_0xf1348b(0x1d6)](_0x23eeaa,_0xf1348b(0x1e7),()=>{const _0x5322c2=_0xf1348b,_0x866230=this[_0x5322c2(0x1de)][_0x5322c2(0x1ba)][_0x5322c2(0x195)][_0x5322c2(0x1d3)][_0x5322c2(0x1e1)]();_0x866230&&_0x866230[_0x5322c2(0x1cf)](_0x5322c2(0x1a3))&&this[_0x5322c2(0x1de)][_0x5322c2(0x1b4)][_0x5322c2(0x1dd)][_0x5322c2(0x1b1)](_0x5322c2(0x1d2),()=>{const _0x3c90e6=_0x5322c2;_0x2f7e9c(this[_0x3c90e6(0x1de)],_0x866230);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4e32a0,ObservableMixin as _0x14e997}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3ed6cb}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5adb83}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2146f7}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x229f32}from'../../utils/uploadutils.js';import{getImageUrls as _0x5c24fe,getImageDimension as _0x31a29d}from'../../utils/editingutils.js';import{isAncestor as _0x409cc7}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x14e997(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x316c34,_0x521fcd,_0x415864){super(),this['_editor']=_0x316c34,this['_dialog']=_0x521fcd,this['_imageElement']=_0x415864,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 _0x3f9457=this['_imageElement'],_0x4d876c=_0x3f9457['getAttribute']('uploadcareImageId'),_0x7a16df=_0x3f9457['getAttribute']('src');if(_0x4d876c)await this['_loadImageInfo'](_0x4d876c,_0x7a16df);else{if(this['_imageCache']['has'](_0x7a16df)){const _0x51bad2=this['_imageCache']['get'](_0x7a16df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51bad2['url'],this['imageDimension']=_0x51bad2['dimension'],this['imageId']=_0x51bad2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x43cf74}=this['_editor'],t=_0x43cf74['t'],_0x1d91ec=new _0x2146f7(_0x43cf74,this['imageStatus'],this['_attributes']);_0x1d91ec['bind']('status')['to'](this,'imageStatus'),_0x1d91ec['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1d91ec['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1d91ec['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1d91ec,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5adb83,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1d91ec,'position':_0x3ed6cb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1d91ec['focus']();},'onHide':()=>{_0x1d91ec['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x473133=>!_0x409cc7(_0x473133,_0x1d91ec['element'])}});}['_loadImageInfo'](_0x5ec1f5,_0x54ded9){return _0x229f32['getInfo'](_0x5ec1f5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1cfae5=>{const {width:_0x54a9b3,height:_0x140c96}=_0x1cfae5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54ded9,this['imageDimension']={'width':_0x54a9b3,'height':_0x140c96},this['imageId']=_0x5ec1f5;})['catch'](_0x27a5d2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x27a5d2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a3ce6,_0x54ffb3){return this['_getImageAsFile'](_0x4a3ce6)['then'](_0x1e9866=>_0x229f32['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':_0x54ffb3['signal'],'file':_0x1e9866,'onProgress':_0x43bf89=>{_0x43bf89&&_0x43bf89['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x43bf89['value']));}}))['then'](_0xa31bc1=>{const {width:_0x2140b1,height:_0x3ae5ff}=_0xa31bc1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa31bc1['cdnUrl'],this['imageDimension']={'width':_0x2140b1,'height':_0x3ae5ff},this['imageId']=_0xa31bc1['uuid'],this['imageUploadProgress']=null;const _0xf7f0b3=_0x4a3ce6['getAttribute']('src');this['_imageCache']['set'](_0xf7f0b3,{'id':_0xa31bc1['uuid'],'url':_0xa31bc1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x40f99e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40f99e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x217838,_0x529b47){_0x217838['on']('apply',(_0x2432eb,_0x3229ec)=>{this['_replaceImage'](_0x529b47,_0x3229ec['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x217838['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x217838['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x482efa,_0x179adc,_0x4db9b2){const _0x3ab285=this['_editor'],{width:_0x4034ec,height:_0x13ec5e}=_0x31a29d(_0x179adc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d4a5c,imageSources:_0x340bb5}=_0x5c24fe(_0x179adc,_0x4034ec);_0x3ab285['model']['change'](_0x5b51bc=>{if('$graveyard'===_0x482efa['root']['rootName']){_0x3ab285['execute']('insertImage',{'imageType':_0x482efa['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x482efa['getAttributes']()),'uploadcareImageId':_0x4db9b2,'src':_0x4d4a5c,'sources':_0x340bb5,'width':_0x4034ec,'height':_0x13ec5e}});const _0x37fb7d=_0x482efa['getChildren']();_0x482efa=_0x3ab285['model']['document']['selection']['getSelectedElement']();for(const _0x7064c1 of _0x37fb7d)_0x5b51bc['append'](_0x5b51bc['cloneElement'](_0x7064c1),_0x482efa);}else _0x5b51bc['setSelection'](_0x482efa,'on'),_0x3ab285['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x482efa['getAttributes']()),'uploadcareImageId':_0x4db9b2,'src':_0x4d4a5c,'sources':_0x340bb5,'width':_0x4034ec,'height':_0x13ec5e},_0x482efa);_0x5b51bc['setSelection'](_0x482efa,'on');});}async['_getImageAsFile'](_0x16a879){const _0x1508bc=_0x4e32a0['window'],_0x134e4f=_0x4e32a0['document']['location']['href'],_0x2ef2ca=new _0x1508bc['URL'](_0x16a879['getAttribute']('src'),_0x134e4f);if('data:'===_0x2ef2ca['protocol']){const _0x1d7ba3=_0x2ef2ca['href']['split'](','),_0x3c2fb8=_0x1d7ba3[0x0]['match'](/:(.*?);/)[0x1],_0x612ed7=_0x3c2fb8['split']('/')[0x1],_0x536f74=_0x1508bc['atob'](_0x1d7ba3[_0x1d7ba3['length']-0x1]);let _0x3a75a5=_0x536f74['length'];const _0x316bbb=new _0x1508bc['Uint8Array'](_0x3a75a5);for(;_0x3a75a5--;)_0x316bbb[_0x3a75a5]=_0x536f74['charCodeAt'](_0x3a75a5);return new _0x1508bc['File']([_0x316bbb],'image.'+_0x612ed7,{'type':_0x3c2fb8});}const _0x14ffa8=_0x2ef2ca['href']['split']('/'),_0x44848c=_0x14ffa8[_0x14ffa8['length']-0x1],_0x57be50=_0x44848c['split']('.')[0x1];return _0x1508bc['fetch'](_0x2ef2ca['href'])['then'](_0x3a4d83=>_0x3a4d83['clone']()['blob']())['then'](_0x13bb3d=>new _0x1508bc['File']([_0x13bb3d],_0x44848c,{'type':'image/'+_0x57be50}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xd10096,_0x16a65e){const _0x28f6b7=_0x5c70,_0x4015a8=_0xd10096();while(!![]){try{const _0x5a3cdf=-parseInt(_0x28f6b7(0xcb))/0x1+-parseInt(_0x28f6b7(0xc2))/0x2*(parseInt(_0x28f6b7(0xd2))/0x3)+-parseInt(_0x28f6b7(0xcf))/0x4+-parseInt(_0x28f6b7(0xcd))/0x5*(-parseInt(_0x28f6b7(0xca))/0x6)+-parseInt(_0x28f6b7(0xd3))/0x7+parseInt(_0x28f6b7(0xc3))/0x8*(parseInt(_0x28f6b7(0xcc))/0x9)+parseInt(_0x28f6b7(0xc9))/0xa*(parseInt(_0x28f6b7(0xc4))/0xb);if(_0x5a3cdf===_0x16a65e)break;else _0x4015a8['push'](_0x4015a8['shift']());}catch(_0x1addff){_0x4015a8['push'](_0x4015a8['shift']());}}}(_0x272e,0xc7320));import{View as _0x384372}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x384372{constructor(_0x4ab639,_0x11bee2){const _0x33f5fc=_0x5c70;super(_0x4ab639);const _0x2ceb7e=this[_0x33f5fc(0xd0)];this[_0x33f5fc(0xc7)](_0x33f5fc(0xc1),''),this[_0x33f5fc(0xc8)]({'tag':_0x33f5fc(0xc6),'attributes':{..._0x11bee2,'class':[_0x33f5fc(0xce),_0x33f5fc(0xd1)],'ctx-name':_0x33f5fc(0xc5),'cdn-url':_0x2ceb7e['to'](_0x33f5fc(0xc1))}});}}function _0x5c70(_0x2de93a,_0x301a99){const _0x272efb=_0x272e();return _0x5c70=function(_0x5c7064,_0x55753a){_0x5c7064=_0x5c7064-0xc1;let _0x2d48eb=_0x272efb[_0x5c7064];return _0x2d48eb;},_0x5c70(_0x2de93a,_0x301a99);}function _0x272e(){const _0x44c7e5=['7920UGQcIZ','3483592SHzsbB','imageSrc','94ZFbsLT','8djzayC','4939jGPGEs','image-edit','uc-cloud-image-editor','set','setTemplate','32650MaCOvI','273486KHqPtD','1405034sxYnhj','13347054zLQuEz','5DngUza','uc-light','607592yIJICY','bindTemplate','ck-uploadcare-theme'];_0x272e=function(){return _0x44c7e5;};return _0x272e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2974ca}from'ckeditor5/src/icons.js';import{ButtonView as _0x35a29f,IconView as _0x4f1177,View as _0x5caddd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5caddd{constructor(_0x380b9f){super(_0x380b9f);const t=_0x380b9f['t'];this['set']('errorType',null);const _0x264e45=new _0x35a29f(_0x380b9f);_0x264e45['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x264e45['withText']=!0x0,_0x264e45['class']='ck-button-action',_0x264e45['on']('execute',()=>{this['fire']('retry');}),_0x264e45['bind']('isVisible')['to'](this,'errorType',_0x4cb83b=>'NotFound'!==_0x4cb83b);const _0x3aacbc=new _0x4f1177();_0x3aacbc['content']=_0x2974ca,_0x3aacbc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x449fbc=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':[_0x3aacbc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x449fbc['to']('errorType',_0x517ab4=>t('NotFound'!==_0x517ab4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x264e45]},{'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 _0x538aeb,View as _0x113581}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x113581{constructor(_0x4c92d2){super(_0x4c92d2);const t=_0x4c92d2['t'],_0x4f95e1=this['bindTemplate'],_0x2e6c55=new _0x538aeb();_0x2e6c55['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':[_0x2e6c55,{'text':_0x4f95e1['to']('imageUploadProgress',_0x2126fc=>t('Loading\x20image...')+'\x20('+(_0x2126fc||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 _0x2634d0=_0x2d78;(function(_0x3d0c01,_0x427316){const _0x1b06ca=_0x2d78,_0x5b8508=_0x3d0c01();while(!![]){try{const _0x5c58df=-parseInt(_0x1b06ca(0x1a4))/0x1*(-parseInt(_0x1b06ca(0x19b))/0x2)+-parseInt(_0x1b06ca(0x18d))/0x3+parseInt(_0x1b06ca(0x1b1))/0x4+parseInt(_0x1b06ca(0x18b))/0x5+-parseInt(_0x1b06ca(0x1af))/0x6*(-parseInt(_0x1b06ca(0x19d))/0x7)+-parseInt(_0x1b06ca(0x1a0))/0x8+-parseInt(_0x1b06ca(0x1b0))/0x9*(parseInt(_0x1b06ca(0x19a))/0xa);if(_0x5c58df===_0x427316)break;else _0x5b8508['push'](_0x5b8508['shift']());}catch(_0x264409){_0x5b8508['push'](_0x5b8508['shift']());}}}(_0xc058,0xaa4ec));import{View as _0x2d8b7a}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1200c3}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0xae7d1e}from'./uploadcareimageeditformerrorview.js';function _0x2d78(_0x3ec5cc,_0x5c648c){const _0xc058ee=_0xc058();return _0x2d78=function(_0x2d7837,_0x4a1474){_0x2d7837=_0x2d7837-0x18b;let _0x554464=_0xc058ee[_0x2d7837];return _0x554464;},_0x2d78(_0x3ec5cc,_0x5c648c);}import{UploadcareImageEditFormEditingView as _0x21b6db}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xda6cd5}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0xc058(){const _0x51016b=['target','_addUploadcareImageEditorListeners','observe','status','cdnUrl','cancel','5979180UaWwJp','disconnect','3948906ohqJjS','retry','_items','focus','uploading','element','ck-reset_all-excluded','_addErrorViewListeners','_loadingView','filter','createCollection','error','set','230VqgPmW','696400sSQkiP','addedNodes','156135amqDQd','clear','div','9511192WykVbU','_errorView','setTemplate','nodeName','4tTACEI','change:status','ready','_editingView','detail','addEventListener','addMany','apply','uc-cloud-image-editor','_focusableView','render','138tCUzap','323685QbsSHB','3713300ArVwZx','getFocusableElement','toLowerCase','querySelector','_setView','length','ck-uploadcare-form','_waitForImageEditorComponent','fire','add','once'];_0xc058=function(){return _0x51016b;};return _0xc058();}export class UploadcareImageEditFormView extends _0xda6cd5{[_0x2634d0(0x18f)];[_0x2634d0(0x195)];[_0x2634d0(0x1a1)];[_0x2634d0(0x1a7)];[_0x2634d0(0x1ad)];constructor(_0x4a0f5b,_0x2ae404,_0x17b480){const _0x37a0de=_0x2634d0;super(_0x4a0f5b),this[_0x37a0de(0x18f)]=this[_0x37a0de(0x197)](),this[_0x37a0de(0x195)]=new _0x1200c3(_0x4a0f5b),this[_0x37a0de(0x1a1)]=new _0xae7d1e(_0x4a0f5b),this[_0x37a0de(0x1a7)]=new _0x21b6db(_0x4a0f5b,_0x17b480),this[_0x37a0de(0x1ad)]=new _0x2d8b7a(_0x4a0f5b),this[_0x37a0de(0x1ad)][_0x37a0de(0x1a2)](this[_0x37a0de(0x1b2)]()),this[_0x37a0de(0x199)](_0x37a0de(0x1bf),_0x2ae404),this[_0x37a0de(0x1a2)]({'tag':_0x37a0de(0x19f),'attributes':{'class':['ck',_0x37a0de(0x193),_0x37a0de(0x1b7)],'tabindex':'-1'},'children':this[_0x37a0de(0x18f)]}),this[_0x37a0de(0x1b5)](),this[_0x37a0de(0x1bb)](_0x37a0de(0x1ae),()=>{const _0x2d5c85=_0x37a0de;this[_0x2d5c85(0x1b8)](this[_0x2d5c85(0x192)],_0xf8ded1=>{const _0x217d66=_0x2d5c85;this[_0x217d66(0x1bd)](_0xf8ded1);});}),this['on'](_0x37a0de(0x1a5),()=>{const _0x5de96f=_0x37a0de;this[_0x5de96f(0x1b5)]();}),this[_0x37a0de(0x194)]();}[_0x2634d0(0x190)](){const _0x234cdf=_0x2634d0;this[_0x234cdf(0x192)][_0x234cdf(0x190)]();}[_0x2634d0(0x1b5)](){const _0x513a6b=_0x2634d0;switch(this[_0x513a6b(0x18f)][_0x513a6b(0x19e)](),this[_0x513a6b(0x1bf)]){case _0x513a6b(0x191):this[_0x513a6b(0x18f)][_0x513a6b(0x1ba)](this[_0x513a6b(0x195)]);break;case _0x513a6b(0x198):this[_0x513a6b(0x18f)][_0x513a6b(0x1ba)](this[_0x513a6b(0x1a1)]);break;case _0x513a6b(0x1a6):this[_0x513a6b(0x18f)][_0x513a6b(0x1aa)]([this[_0x513a6b(0x1a7)],this[_0x513a6b(0x1ad)]]);}}[_0x2634d0(0x1b8)](_0x19a6ab,_0x40d29e){const _0x2f0820=_0x2634d0,_0x422c3a=_0x2f0820(0x1ac),_0x2462ec=_0x19a6ab[_0x2f0820(0x1b4)](_0x422c3a);if(_0x2462ec)return _0x40d29e(_0x2462ec);const _0x587a35=new MutationObserver(_0x203452=>{const _0x1e8e9d=_0x2f0820,_0x2cdb88=_0x203452[_0x1e8e9d(0x196)](_0x2a268d=>_0x2a268d[_0x1e8e9d(0x1bc)]===_0x19a6ab&&_0x2a268d[_0x1e8e9d(0x19c)][_0x1e8e9d(0x1b6)]>0x0&&_0x2a268d[_0x1e8e9d(0x19c)][0x0][_0x1e8e9d(0x1a3)][_0x1e8e9d(0x1b3)]()===_0x422c3a);_0x2cdb88[_0x1e8e9d(0x1b6)]&&(_0x587a35[_0x1e8e9d(0x18c)](),_0x40d29e(_0x2cdb88[0x0][_0x1e8e9d(0x19c)][0x0]));});_0x587a35[_0x2f0820(0x1be)](_0x19a6ab,{'childList':!0x0,'subtree':!0x0});}[_0x2634d0(0x1bd)](_0x3788bf){const _0x51cb33=_0x2634d0;_0x3788bf[_0x51cb33(0x1a9)](_0x51cb33(0x1ab),_0x4ed6f6=>{const _0xae8435=_0x51cb33;this[_0xae8435(0x1b9)](_0xae8435(0x1ab),{'imageSrc':_0x4ed6f6[_0xae8435(0x1a8)][_0xae8435(0x1c0)]});}),_0x3788bf[_0x51cb33(0x1a9)](_0x51cb33(0x1c1),()=>{const _0x1a7cf3=_0x51cb33;this[_0x1a7cf3(0x1b9)](_0x1a7cf3(0x1c1));});}[_0x2634d0(0x194)](){const _0x1ec281=_0x2634d0;this[_0x1ec281(0x1a1)]['on'](_0x1ec281(0x18e),()=>{const _0x4989e6=_0x1ec281;this[_0x4989e6(0x1b9)](_0x4989e6(0x18e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc6e2aa=_0x26eb;function _0x5470(){const _0x4549d2=['document','imageEditController','plugins','imageBlock','135339WFEsoG','selection','element','7889490vYRtdT','execute','editor','getSelectedElement','model','_isEditable','bind','1578162YVxhtV','5249344dAcWlm','uploadcare.allowExternalImagesEditing','10Yhswco','refresh','3RaErgj','config','isEnabled','unbind','set','get','imageInline','isActive','3164376zMjBbd','1624SqbQvq','23674kFbfqe','requires','18462280FkLFiV'];_0x5470=function(){return _0x4549d2;};return _0x5470();}(function(_0x5b767a,_0x3c52f0){const _0x56933b=_0x26eb,_0x301f7d=_0x5b767a();while(!![]){try{const _0x23f7ca=-parseInt(_0x56933b(0x1bd))/0x1+parseInt(_0x56933b(0x1a7))/0x2+parseInt(_0x56933b(0x1ac))/0x3*(-parseInt(_0x56933b(0x1a8))/0x4)+-parseInt(_0x56933b(0x1aa))/0x5*(-parseInt(_0x56933b(0x1b4))/0x6)+parseInt(_0x56933b(0x1b6))/0x7*(-parseInt(_0x56933b(0x1b5))/0x8)+-parseInt(_0x56933b(0x1a0))/0x9+parseInt(_0x56933b(0x1b8))/0xa;if(_0x23f7ca===_0x3c52f0)break;else _0x301f7d['push'](_0x301f7d['shift']());}catch(_0xdb725f){_0x301f7d['push'](_0x301f7d['shift']());}}}(_0x5470,0xa5d66));import{Command as _0x2181c4}from'ckeditor5/src/core.js';import{Dialog as _0x5b3e0f}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3c752f}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3bc177}from'../utils/editingutils.js';function _0x26eb(_0x4d6ff6,_0x7bdda3){const _0x54705a=_0x5470();return _0x26eb=function(_0x26ebb7,_0x529837){_0x26ebb7=_0x26ebb7-0x1a0;let _0x4505bd=_0x54705a[_0x26ebb7];return _0x4505bd;},_0x26eb(_0x4d6ff6,_0x7bdda3);}export class UploadcareImageEditCommand extends _0x2181c4{[_0xc6e2aa(0x1ba)];static get[_0xc6e2aa(0x1b7)](){return[_0x5b3e0f];}[_0xc6e2aa(0x1a5)];constructor(_0x1f73a7){const _0x42eb1d=_0xc6e2aa;super(_0x1f73a7),this[_0x42eb1d(0x1ba)]=void 0x0,this[_0x42eb1d(0x1a5)]=_0x3bc177(_0x1f73a7[_0x42eb1d(0x1ad)][_0x42eb1d(0x1b1)](_0x42eb1d(0x1a9))||[]),this[_0x42eb1d(0x1b0)]({'isActive':!0x1});}[_0xc6e2aa(0x1ab)](){const _0x5a149b=_0xc6e2aa,_0x8ecf4a=this[_0x5a149b(0x1a2)][_0x5a149b(0x1a4)][_0x5a149b(0x1b9)][_0x5a149b(0x1be)][_0x5a149b(0x1a3)]();this[_0x5a149b(0x1ae)]=this[_0x5a149b(0x1a5)](_0x8ecf4a);}[_0xc6e2aa(0x1a1)](){const _0x15ae9=_0xc6e2aa;this[_0x15ae9(0x1ba)]&&(this[_0x15ae9(0x1af)](_0x15ae9(0x1b3)),this[_0x15ae9(0x1ba)]=void 0x0);const _0x3ae54a=this[_0x15ae9(0x1a2)][_0x15ae9(0x1a4)][_0x15ae9(0x1b9)][_0x15ae9(0x1be)][_0x15ae9(0x1a3)]();_0x3ae54a&&(_0x3ae54a['is'](_0x15ae9(0x1bf),_0x15ae9(0x1bc))||_0x3ae54a['is'](_0x15ae9(0x1bf),_0x15ae9(0x1b2)))&&(this[_0x15ae9(0x1ba)]=new _0x3c752f(this[_0x15ae9(0x1a2)],this[_0x15ae9(0x1a2)][_0x15ae9(0x1bb)][_0x15ae9(0x1b1)](_0x5b3e0f),_0x3ae54a),this[_0x15ae9(0x1a6)](_0x15ae9(0x1b3))['to'](this[_0x15ae9(0x1ba)],_0x15ae9(0x1b3)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x462a(){const _0x41d060=['commands','9320UVkvBn','2049285AtmNqE','isPremiumPlugin','pluginName','2345190ebHkUh','init','6189808OvLUST','5994405IuKEzp','ImageUtils','isOfficialPlugin','4comxXh','add','5VBdhxo','138aksXdK','685570ZyYegP','5601925FfWYxs','uploadcareImageReplace','uploadcareImageEdit','UploadcareImageEditEditing','requires','ImageEditing'];_0x462a=function(){return _0x41d060;};return _0x462a();}const _0x24ded2=_0x3dcb;(function(_0x4ad395,_0x1fb649){const _0x169122=_0x3dcb,_0x52d4e3=_0x4ad395();while(!![]){try{const _0x2ba86a=parseInt(_0x169122(0x1ee))/0x1*(parseInt(_0x169122(0x1e5))/0x2)+-parseInt(_0x169122(0x1ef))/0x3*(parseInt(_0x169122(0x1f8))/0x4)+-parseInt(_0x169122(0x1e4))/0x5*(parseInt(_0x169122(0x1f2))/0x6)+parseInt(_0x169122(0x1e7))/0x7+parseInt(_0x169122(0x1f4))/0x8+-parseInt(_0x169122(0x1f5))/0x9+-parseInt(_0x169122(0x1e6))/0xa;if(_0x2ba86a===_0x1fb649)break;else _0x52d4e3['push'](_0x52d4e3['shift']());}catch(_0x20a358){_0x52d4e3['push'](_0x52d4e3['shift']());}}}(_0x462a,0x63bc7));import{Plugin as _0x376977}from'ckeditor5/src/core.js';import{Notification as _0x14b38a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4d43d7}from'./uploadcareimageeditcommand.js';function _0x3dcb(_0x2b85de,_0x4f03c3){const _0x462ab9=_0x462a();return _0x3dcb=function(_0x3dcb79,_0xa13c52){_0x3dcb79=_0x3dcb79-0x1e3;let _0x499c2a=_0x462ab9[_0x3dcb79];return _0x499c2a;},_0x3dcb(_0x2b85de,_0x4f03c3);}import{UploadcareImageReplaceCommand as _0x363978}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x298d09}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x376977{static get[_0x24ded2(0x1f1)](){const _0x5c0e0b=_0x24ded2;return _0x5c0e0b(0x1ea);}static get[_0x24ded2(0x1eb)](){const _0x12467c=_0x24ded2;return[_0x298d09,_0x14b38a,_0x12467c(0x1f6),_0x12467c(0x1ec)];}static get[_0x24ded2(0x1f7)](){return!0x0;}static get[_0x24ded2(0x1f0)](){return!0x0;}[_0x24ded2(0x1f3)](){const _0x2a3ee3=_0x24ded2,{editor:_0x20d866}=this;_0x20d866[_0x2a3ee3(0x1ed)][_0x2a3ee3(0x1e3)](_0x2a3ee3(0x1e9),new _0x4d43d7(_0x20d866)),_0x20d866[_0x2a3ee3(0x1ed)][_0x2a3ee3(0x1e3)](_0x2a3ee3(0x1e8),new _0x363978(_0x20d866));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x56054b}from'ckeditor5/src/core.js';import{ButtonView as _0x4fc3be}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x35f719}from'ckeditor5/src/icons.js';import{createElement as _0x156f83}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 _0x56054b{['_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 _0x2292e5=this['editor'];_0x2292e5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x392366=>{const _0x89e0eb=_0x2292e5['commands']['get']('uploadcareImageEdit'),_0x2cff9a=new _0x4fc3be(_0x392366),t=_0x392366['t'];return _0x2cff9a['set']({'icon':_0x35f719,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2cff9a['bind']('isEnabled')['to'](_0x89e0eb),_0x2cff9a['bind']('isOn')['to'](_0x89e0eb,'isActive'),this['listenTo'](_0x2cff9a,'execute',()=>{_0x2292e5['execute']('uploadcareImageEdit'),_0x2292e5['editing']['view']['focus']();}),_0x2cff9a;}),this['_initConfig']();}['_initConfig'](){const _0x5a4dea=_0x156f83(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5a4dea),this['listenTo'](this['editor'],'destroy',()=>{_0x5a4dea['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3e48(){const _0x275ba0=['removeAttribute','element','srcset','imageInline','20YhwiRx','sizes','model','editor','document','4058615iOyPgX','30443nUbgJH','selection','change','1269sGnwdb','1031450uopZAq','907635lOBHdL','imageBlock','isEnabled','2238VJVCSK','getSelectedElement','132bqTpPq','79128uOQGbw','374940UlXJmZ','26493JbCuIi','setAttributes','refresh','execute'];_0x3e48=function(){return _0x275ba0;};return _0x3e48();}const _0x3eadb9=_0x24a0;(function(_0x4f92cb,_0x47cdff){const _0x173691=_0x24a0,_0x8c0a5e=_0x4f92cb();while(!![]){try{const _0x769e76=parseInt(_0x173691(0x15d))/0x1*(parseInt(_0x173691(0x15a))/0x2)+-parseInt(_0x173691(0x15c))/0x3*(parseInt(_0x173691(0x14a))/0x4)+-parseInt(_0x173691(0x155))/0x5+parseInt(_0x173691(0x158))/0x6*(-parseInt(_0x173691(0x150))/0x7)+-parseInt(_0x173691(0x15b))/0x8*(-parseInt(_0x173691(0x153))/0x9)+-parseInt(_0x173691(0x154))/0xa+parseInt(_0x173691(0x14f))/0xb;if(_0x769e76===_0x47cdff)break;else _0x8c0a5e['push'](_0x8c0a5e['shift']());}catch(_0xaea990){_0x8c0a5e['push'](_0x8c0a5e['shift']());}}}(_0x3e48,0xef5a1));function _0x24a0(_0x462b0b,_0x31f1d1){const _0x3e483a=_0x3e48();return _0x24a0=function(_0x24a099,_0x1426e4){_0x24a099=_0x24a099-0x144;let _0x5b796a=_0x3e483a[_0x24a099];return _0x5b796a;},_0x24a0(_0x462b0b,_0x31f1d1);}import{Command as _0x3c3105}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x3c3105{[_0x3eadb9(0x144)](){const _0x48828e=_0x3eadb9,_0x58ae33=this[_0x48828e(0x14d)][_0x48828e(0x14c)][_0x48828e(0x14e)][_0x48828e(0x151)][_0x48828e(0x159)]();this[_0x48828e(0x157)]=Boolean(_0x58ae33&&(_0x58ae33['is'](_0x48828e(0x147),_0x48828e(0x156))||_0x58ae33['is'](_0x48828e(0x147),_0x48828e(0x149))));}[_0x3eadb9(0x145)](_0xcdeda5){const _0xeca2a3=_0x3eadb9,_0x498b13=this[_0xeca2a3(0x14d)][_0xeca2a3(0x14c)][_0xeca2a3(0x14e)][_0xeca2a3(0x151)][_0xeca2a3(0x159)]();this[_0xeca2a3(0x14d)][_0xeca2a3(0x14c)][_0xeca2a3(0x152)](_0x52e06e=>{const _0x36f877=_0xeca2a3;_0x52e06e[_0x36f877(0x15e)](_0xcdeda5,_0x498b13),_0x52e06e[_0x36f877(0x146)](_0x36f877(0x148),_0x498b13),_0x52e06e[_0x36f877(0x146)](_0x36f877(0x14b),_0x498b13);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x327f(_0x475e55,_0x16d4a8){var _0x1595a0=_0x1595();return _0x327f=function(_0x327fa0,_0x3c7ec7){_0x327fa0=_0x327fa0-0x163;var _0xdf9c48=_0x1595a0[_0x327fa0];return _0xdf9c48;},_0x327f(_0x475e55,_0x16d4a8);}var _0x35226a=_0x327f;(function(_0x32a1d1,_0x2eb66a){var _0x41df3f=_0x327f,_0x4a89e1=_0x32a1d1();while(!![]){try{var _0x103e12=-parseInt(_0x41df3f(0x166))/0x1*(parseInt(_0x41df3f(0x16d))/0x2)+parseInt(_0x41df3f(0x165))/0x3+-parseInt(_0x41df3f(0x170))/0x4+-parseInt(_0x41df3f(0x16f))/0x5+-parseInt(_0x41df3f(0x16a))/0x6+-parseInt(_0x41df3f(0x169))/0x7*(parseInt(_0x41df3f(0x167))/0x8)+parseInt(_0x41df3f(0x16b))/0x9;if(_0x103e12===_0x2eb66a)break;else _0x4a89e1['push'](_0x4a89e1['shift']());}catch(_0x18dcab){_0x4a89e1['push'](_0x4a89e1['shift']());}}}(_0x1595,0x75481));import{Plugin as _0x5d77e1}from'ckeditor5/src/core.js';function _0x1595(){var _0x593dc7=['1107848WmvSAj','UploadcareImageEdit','isPremiumPlugin','1332174HlKThL','854647VJaVwp','8lbNWKw','isOfficialPlugin','6191794gvcuhS','5155824fVsnjy','33765894vhyyev','pluginName','2GvvGWa','requires','4199920DZvrNp'];_0x1595=function(){return _0x593dc7;};return _0x1595();}import{UploadcareImageEditEditing as _0x27ffdf}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5ee4a0}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5d77e1{static get[_0x35226a(0x16c)](){var _0x28d696=_0x35226a;return _0x28d696(0x163);}static get[_0x35226a(0x16e)](){return[_0x27ffdf,_0x5ee4a0];}static get[_0x35226a(0x168)](){return!0x0;}static get[_0x35226a(0x164)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c9fce=_0x26b5;function _0x5202(){const _0x195f54=['afterInit','map','url','config','1090IGtMMW','tooltip','text','15956YilJmn','reduce','featureNotAllowed','Insert','OneDrive','592062vVfyRu','_createDropdownButtons','licenseKey','forEach','commands','isEnabled','isOfficialPlugin','assetManager','_showLicenseError','_normalizeConfigSourceList','uploadcare.uploader.sourceList','Dropbox','GDrive','icon','has','execute','8dMElwd','plugins','init','Local','Facebook','editor','URL','219huBtUm','uploadcareLicenseKeyInvalid','_getIntegrationKey','isImageSelected','usageLimit','_createButton','isPremiumPlugin','ImageInsertUI','trialLimit','label','uploadcareLicenseKeyDomainLimit','Uploadcare','withText','invalid','_licenseKeyCheckInterval','entries','uploadcareLicenseKeyEvaluationLimit','GPhotos','pluginName','316842CERNah','uploadcareLicenseKeyUsageLimit','domainLimit','uploadcare','Replace','evaluationLimit','bind','2gkrDxn','get','shortText','42823vtyMdQ','uploadcareLicenseKeyExpired','_createMenuBarButtons','uploadcareLicenseKeyValid','2723540BbWJKQ','UploadcareUI','4734345biTTSr','destroy','locale','push','uploadcareLicenseKeyTrialLimit','registerIntegration','uploadcareLicenseKeyNotAllowed','upload','expired','7125273cQrrVh','type','_createToolbarButton'];_0x5202=function(){return _0x195f54;};return _0x5202();}(function(_0x1318d7,_0x2aead5){const _0x4e8b2f=_0x26b5,_0x5b5044=_0x1318d7();while(!![]){try{const _0x56a896=-parseInt(_0x4e8b2f(0x1f3))/0x1*(-parseInt(_0x4e8b2f(0x1ec))/0x2)+parseInt(_0x4e8b2f(0x1d9))/0x3*(-parseInt(_0x4e8b2f(0x1bd))/0x4)+-parseInt(_0x4e8b2f(0x1fa))/0x5+parseInt(_0x4e8b2f(0x1c2))/0x6+parseInt(_0x4e8b2f(0x1fc))/0x7+parseInt(_0x4e8b2f(0x1d2))/0x8*(parseInt(_0x4e8b2f(0x205))/0x9)+-parseInt(_0x4e8b2f(0x1ba))/0xa*(parseInt(_0x4e8b2f(0x1f6))/0xb);if(_0x56a896===_0x2aead5)break;else _0x5b5044['push'](_0x5b5044['shift']());}catch(_0x3e2315){_0x5b5044['push'](_0x5b5044['shift']());}}}(_0x5202,0x982cd));import{Plugin as _0x2d987f}from'ckeditor5/src/core.js';import{IconDropbox as _0x30f132,IconFacebook as _0x40f856,IconGoogleDrive as _0x5c8eae,IconGooglePhotos as _0x4775fa,IconUploadcareImageUpload as _0x1e10c1,IconUploadcareLink as _0x475cf0,IconOneDrive as _0x196c09}from'ckeditor5/src/icons.js';import{ButtonView as _0x5aa93e,MenuBarMenuListItemButtonView as _0x4aa9e2}from'ckeditor5/src/ui.js';function _0x26b5(_0x67abab,_0x32d02c){const _0x5202dc=_0x5202();return _0x26b5=function(_0x26b569,_0x1ca9e7){_0x26b569=_0x26b569-0x1ba;let _0x589201=_0x5202dc[_0x26b569];return _0x589201;},_0x26b5(_0x67abab,_0x32d02c);}import{UploadcareSource as _0x1908f9}from'./uploadcareconfig.js';import{getTranslation as _0x56754b}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2d987f{[_0x5c9fce(0x1c4)];[_0x5c9fce(0x1e7)];static get[_0x5c9fce(0x1eb)](){const _0x97c7b6=_0x5c9fce;return _0x97c7b6(0x1fb);}static get[_0x5c9fce(0x1c8)](){return!0x0;}static get[_0x5c9fce(0x1df)](){return!0x0;}[_0x5c9fce(0x1d4)](){const _0x2cb9af=_0x5c9fce;this[_0x2cb9af(0x1c4)]=this[_0x2cb9af(0x1d7)][_0x2cb9af(0x20b)][_0x2cb9af(0x1f4)](_0x2cb9af(0x1c4));const _0x12f009=this[_0x2cb9af(0x1d7)];this[_0x2cb9af(0x1e7)]=setInterval(()=>{const _0x54f8da=_0x2cb9af;let _0x7d887c;for(const _0x6924e0 in _0x12f009){const _0x46d7c6=_0x6924e0,_0x5f2378=_0x12f009[_0x46d7c6];if(_0x54f8da(0x1f9)==_0x5f2378||_0x54f8da(0x1da)==_0x5f2378||_0x54f8da(0x1f7)==_0x5f2378||_0x54f8da(0x1e3)==_0x5f2378||_0x54f8da(0x202)==_0x5f2378||_0x54f8da(0x1e9)==_0x5f2378||_0x54f8da(0x200)==_0x5f2378||_0x54f8da(0x1ed)==_0x5f2378){delete _0x12f009[_0x46d7c6],_0x7d887c=_0x5f2378,clearInterval(this[_0x54f8da(0x1e7)]),this[_0x54f8da(0x1e7)]=void 0x0;break;}}_0x54f8da(0x1da)==_0x7d887c&&_0x12f009[_0x54f8da(0x1ca)](_0x54f8da(0x1e6)),_0x54f8da(0x1f7)==_0x7d887c&&_0x12f009[_0x54f8da(0x1ca)](_0x54f8da(0x204)),_0x54f8da(0x1e3)==_0x7d887c&&_0x12f009[_0x54f8da(0x1ca)](_0x54f8da(0x1ee)),_0x54f8da(0x202)==_0x7d887c&&_0x12f009[_0x54f8da(0x1ca)](_0x54f8da(0x1bf),_0x54f8da(0x1e4)),_0x54f8da(0x1e9)==_0x7d887c&&_0x12f009[_0x54f8da(0x1ca)](_0x54f8da(0x1f1)),_0x54f8da(0x200)==_0x7d887c&&_0x12f009[_0x54f8da(0x1ca)](_0x54f8da(0x1e1)),_0x54f8da(0x1ed)==_0x7d887c&&_0x12f009[_0x54f8da(0x1ca)](_0x54f8da(0x1dd));},0x3e8);}[_0x5c9fce(0x208)](){const _0x397607=_0x5c9fce,{editor:_0x2cce59}=this,_0x31c6be=_0x2cce59[_0x397607(0x1c6)][_0x397607(0x1f4)](_0x397607(0x1ef));if(!_0x31c6be)return;const _0x4ac934=this[_0x397607(0x1cb)](_0x2cce59[_0x397607(0x20b)][_0x397607(0x1f4)](_0x397607(0x1cc)))[_0x397607(0x1be)]((_0x3d5fb4,_0x3ef9c4)=>{const _0x289943=_0x397607,_0x2a685e=this[_0x289943(0x1db)](_0x3ef9c4[_0x289943(0x206)]);return _0x3d5fb4[_0x2a685e]||(_0x3d5fb4[_0x2a685e]=[]),_0x3d5fb4[_0x2a685e][_0x289943(0x1ff)](_0x3ef9c4),_0x3d5fb4;},{});_0x2cce59[_0x397607(0x1d3)][_0x397607(0x1d0)](_0x397607(0x1e0))&&_0x2cce59[_0x397607(0x1c6)][_0x397607(0x1f4)](_0x397607(0x1ef))&&Object[_0x397607(0x1e8)](_0x4ac934)[_0x397607(0x1c5)](([_0x542d73,_0xe6a325])=>{const _0xaf7dc6=_0x397607;_0x2cce59[_0xaf7dc6(0x1d3)][_0xaf7dc6(0x1f4)](_0xaf7dc6(0x1e0))[_0xaf7dc6(0x201)]({'name':_0x542d73,'observable':()=>_0x31c6be,'buttonViewCreator':()=>this[_0xaf7dc6(0x207)](_0xe6a325),'formViewCreator':()=>this[_0xaf7dc6(0x1c3)](_0xe6a325),'menuBarButtonViewCreator':()=>this[_0xaf7dc6(0x1f8)](_0xe6a325),'override':_0xaf7dc6(0x1c9)!==_0x542d73});});}[_0x5c9fce(0x1fd)](){const _0x133bfe=_0x5c9fce;super[_0x133bfe(0x1fd)](),this[_0x133bfe(0x1e7)]&&clearInterval(this[_0x133bfe(0x1e7)]);}[_0x5c9fce(0x1cb)](_0x316ccd){const _0x364a0e=_0x5c9fce,{locale:_0x58c8a2}=this[_0x364a0e(0x1d7)];return _0x316ccd[_0x364a0e(0x209)](_0x389967=>{const _0x187df8=_0x364a0e,_0x54e90e=_0x56754b(_0x58c8a2,_0x389967,_0x187df8(0x1c0));switch(_0x389967){case _0x1908f9[_0x187df8(0x1d5)]:return{'icon':_0x1e10c1,'type':_0x1908f9[_0x187df8(0x1d5)],..._0x54e90e};case _0x1908f9[_0x187df8(0x1d8)]:return{'icon':_0x475cf0,'type':_0x1908f9[_0x187df8(0x1d8)],..._0x54e90e};case _0x1908f9[_0x187df8(0x1cd)]:return{'icon':_0x30f132,'type':_0x1908f9[_0x187df8(0x1cd)],..._0x54e90e};case _0x1908f9[_0x187df8(0x1d6)]:return{'icon':_0x40f856,'type':_0x1908f9[_0x187df8(0x1d6)],..._0x54e90e};case _0x1908f9[_0x187df8(0x1ce)]:return{'icon':_0x5c8eae,'type':_0x1908f9[_0x187df8(0x1ce)],..._0x54e90e};case _0x1908f9[_0x187df8(0x1ea)]:return{'icon':_0x4775fa,'type':_0x1908f9[_0x187df8(0x1ea)],..._0x54e90e};case _0x1908f9[_0x187df8(0x1c1)]:return{'icon':_0x196c09,'type':_0x1908f9[_0x187df8(0x1c1)],..._0x54e90e};}});}[_0x5c9fce(0x1db)](_0x2d15a4){const _0x167d02=_0x5c9fce;switch(_0x2d15a4){case _0x1908f9[_0x167d02(0x1d5)]:return _0x167d02(0x203);case _0x1908f9[_0x167d02(0x1d8)]:return _0x167d02(0x20a);default:return _0x167d02(0x1c9);}}[_0x5c9fce(0x1de)](_0x25c3d9,_0x10346f){const _0x492e7a=_0x5c9fce,_0x55f778=this[_0x492e7a(0x1d7)],_0x3bd319=new _0x25c3d9(_0x55f778[_0x492e7a(0x1fe)]),_0x5b8d8b=_0x55f778[_0x492e7a(0x1c6)][_0x492e7a(0x1f4)](_0x492e7a(0x1ef));return _0x3bd319[_0x492e7a(0x1f2)](_0x492e7a(0x1c7))['to'](_0x5b8d8b),_0x3bd319['on'](_0x492e7a(0x1d1),()=>{const _0x5cd0dc=_0x492e7a;_0x5b8d8b[_0x5cd0dc(0x1d1)](_0x10346f);}),_0x3bd319;}[_0x5c9fce(0x207)](_0x54f471){const _0x15a36a=_0x5c9fce,{locale:_0x18c375}=this[_0x15a36a(0x1d7)],_0x521b53=this[_0x15a36a(0x1d7)][_0x15a36a(0x1d3)][_0x15a36a(0x1f4)](_0x15a36a(0x1e0)),_0x404caa=_0x54f471[0x0],_0x547f3e=this[_0x15a36a(0x1de)](_0x5aa93e,_0x404caa[_0x15a36a(0x206)]);return _0x547f3e[_0x15a36a(0x1cf)]=_0x404caa[_0x15a36a(0x1cf)],_0x547f3e[_0x15a36a(0x1f2)](_0x15a36a(0x1e2))['to'](_0x521b53,_0x15a36a(0x1dc),_0x2abab1=>_0x56754b(_0x18c375,_0x404caa[_0x15a36a(0x206)],_0x2abab1?_0x15a36a(0x1f0):_0x15a36a(0x1c0))[_0x15a36a(0x1bc)]),_0x547f3e[_0x15a36a(0x1bb)]=!0x0,_0x547f3e;}[_0x5c9fce(0x1c3)](_0x1d140a){const _0x141b77=_0x5c9fce,{locale:_0x465618}=this[_0x141b77(0x1d7)],_0x437b57=this[_0x141b77(0x1d7)][_0x141b77(0x1d3)][_0x141b77(0x1f4)](_0x141b77(0x1e0));return _0x1d140a[_0x141b77(0x209)](_0x2bc5b0=>{const _0x174356=_0x141b77,_0x23ce1c=this[_0x174356(0x1de)](_0x5aa93e,_0x2bc5b0[_0x174356(0x206)]);return _0x23ce1c[_0x174356(0x1e5)]=!0x0,_0x23ce1c[_0x174356(0x1cf)]=_0x2bc5b0[_0x174356(0x1cf)],_0x23ce1c[_0x174356(0x1f2)](_0x174356(0x1e2))['to'](_0x437b57,_0x174356(0x1dc),_0x4411d1=>_0x56754b(_0x465618,_0x2bc5b0[_0x174356(0x206)],_0x4411d1?_0x174356(0x1f0):_0x174356(0x1c0))[_0x174356(0x1bc)]),_0x23ce1c;});}[_0x5c9fce(0x1f8)](_0x3079ea){const _0xc3bf0a=_0x5c9fce;return _0x3079ea[_0xc3bf0a(0x209)](_0x9e6176=>{const _0x1b76e2=_0xc3bf0a,_0x1ce0d8=this[_0x1b76e2(0x1de)](_0x4aa9e2,_0x9e6176[_0x1b76e2(0x206)]);return _0x1ce0d8[_0x1b76e2(0x1cf)]=_0x9e6176[_0x1b76e2(0x1cf)],_0x1ce0d8[_0x1b76e2(0x1e2)]=_0x9e6176[_0x1b76e2(0x1f5)],_0x1ce0d8;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2ab6a9}from'ckeditor5/src/core.js';import{FileRepository as _0x1463b9}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2f1b2e}from'./uploadcareediting.js';import{UploadUtils as _0x4475b1}from'./utils/uploadutils.js';import{getImageUrls as _0x27ba6a}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2ab6a9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1463b9,_0x2f1b2e];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3299ec=this['editor'];if(!!!_0x3299ec['config']['get']('uploadcare'))return;_0x3299ec['plugins']['get'](_0x1463b9)['createUploadAdapter']=_0x151128=>new k(_0x151128,_0x3299ec),_0x3299ec['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc93809,{imageElement:_0x2f31fe,data:_0x5cac9b})=>{_0x3299ec['model']['change'](_0x29ae3c=>{_0x29ae3c['setAttribute']('uploadcareImageId',_0x5cac9b['uploadcareImageId'],_0x2f31fe);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x39a3f4,_0x500f94){this['loader']=_0x39a3f4,this['editor']=_0x500f94,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x557ceb=await this['loader']['file'];return _0x4475b1['upload']({'file':_0x557ceb,'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':_0x304baf=>{_0x304baf&&_0x304baf['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x304baf['value']);}})['then'](async _0x1dc29b=>{const {imageFallbackUrl:_0x3805a9,imageSources:_0x36ac27}=_0x27ba6a(_0x1dc29b['cdnUrl'],_0x1dc29b['imageInfo']['width']);return{'uploadcareImageId':_0x1dc29b['uuid'],'default':_0x3805a9,'sources':_0x36ac27};})['catch'](()=>{const _0x51be0e=t('Cannot\x20upload\x20file:')+('\x20'+_0x557ceb['name']+'.');return Promise['reject'](_0x51be0e);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x169bab}from'../uploadcareconfig.js';export function getTranslation(_0xe39bb2,_0x5e7b85,_0x5aa5eb){const t=_0xe39bb2['t'],_0x3d72aa=_0xe39bb2['t'];switch(_0x5e7b85){case _0x169bab['Local']:return{'text':_0x3d72aa('Insert'===_0x5aa5eb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d72aa('From\x20computer')};case _0x169bab['URL']:return{'text':'Insert'===_0x5aa5eb?_0x3d72aa('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d72aa('Via\x20URL')};case _0x169bab['Dropbox']:return{'text':t('Insert'===_0x5aa5eb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x169bab['Facebook']:return{'text':t('Insert'===_0x5aa5eb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x169bab['GDrive']:return{'text':t('Insert'===_0x5aa5eb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x169bab['GPhotos']:return{'text':t('Insert'===_0x5aa5eb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x169bab['OneDrive']:return{'text':t('Insert'===_0x5aa5eb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5e7b85;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4568(){var _0xbeb149=['658122IZmEio','184jgjUzk','createCollection','fire','1098kaLWtu','focusTracker','897yOGaVj','197829QXSDRe','681276tVjPzt','bindTemplate','73423fkvWUx','focusCycler','forwardCycle','5760UyvQCo','1652795uvNsgt','div','getFocusableElement','true'];_0x4568=function(){return _0xbeb149;};return _0x4568();}var _0x1182dd=_0x57a4;(function(_0x4b22be,_0x1ea11d){var _0xa0d3c5=_0x57a4,_0x4be88d=_0x4b22be();while(!![]){try{var _0x25a896=-parseInt(_0xa0d3c5(0xdf))/0x1+parseInt(_0xa0d3c5(0xe8))/0x2*(-parseInt(_0xa0d3c5(0xea))/0x3)+parseInt(_0xa0d3c5(0xda))/0x4+parseInt(_0xa0d3c5(0xe0))/0x5+parseInt(_0xa0d3c5(0xe4))/0x6+-parseInt(_0xa0d3c5(0xdc))/0x7*(parseInt(_0xa0d3c5(0xe5))/0x8)+-parseInt(_0xa0d3c5(0xd9))/0x9;if(_0x25a896===_0x1ea11d)break;else _0x4be88d['push'](_0x4be88d['shift']());}catch(_0x130d06){_0x4be88d['push'](_0x4be88d['shift']());}}}(_0x4568,0x2b512));import{FocusTracker as _0xe904d9}from'ckeditor5/src/utils.js';import{View as _0x36a07f,FocusCycler as _0x24536d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x57a4(_0x2931fa,_0x4b3c02){var _0x456802=_0x4568();return _0x57a4=function(_0x57a407,_0x30ef31){_0x57a407=_0x57a407-0xd9;var _0x3e8297=_0x456802[_0x57a407];return _0x3e8297;},_0x57a4(_0x2931fa,_0x4b3c02);}export class DialogFocusManagerView extends _0x36a07f{[_0x1182dd(0xe9)];[_0x1182dd(0xdd)];constructor(_0x4b4e20){var _0x370ba9=_0x1182dd;super(_0x4b4e20),this[_0x370ba9(0xe9)]=new _0xe904d9(),this[_0x370ba9(0xdd)]=new _0x24536d({'focusables':this[_0x370ba9(0xe6)](),'focusTracker':this[_0x370ba9(0xe9)]});}[_0x1182dd(0xe2)](){var _0xbd347f=_0x1182dd;return{'tag':_0xbd347f(0xe1),'attributes':{'aria-hidden':_0xbd347f(0xe3),'tabindex':'0'},'on':{'focus':this[_0xbd347f(0xdb)]['to'](()=>{var _0x35132c=_0xbd347f;this[_0x35132c(0xdd)][_0x35132c(0xe7)](_0x35132c(0xde));})}};}}
|