@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251222.0 → 0.0.0-nightly-next-20251222.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
|
+
const _0x3c7a47=_0x1f7d;(function(_0xc75369,_0x1c5ad4){const _0x4f738e=_0x1f7d,_0x469931=_0xc75369();while(!![]){try{const _0x23c834=-parseInt(_0x4f738e(0x215))/0x1*(-parseInt(_0x4f738e(0x1e5))/0x2)+parseInt(_0x4f738e(0x1fd))/0x3*(parseInt(_0x4f738e(0x1cc))/0x4)+-parseInt(_0x4f738e(0x1c7))/0x5+-parseInt(_0x4f738e(0x1f6))/0x6*(parseInt(_0x4f738e(0x207))/0x7)+-parseInt(_0x4f738e(0x211))/0x8*(-parseInt(_0x4f738e(0x1ed))/0x9)+parseInt(_0x4f738e(0x1e1))/0xa+-parseInt(_0x4f738e(0x1d8))/0xb*(parseInt(_0x4f738e(0x214))/0xc);if(_0x23c834===_0x1c5ad4)break;else _0x469931['push'](_0x469931['shift']());}catch(_0x356e5d){_0x469931['push'](_0x469931['shift']());}}}(_0x2332,0x1e708));import{Plugin as _0x3a158b}from'ckeditor5/src/core.js';import{Dialog as _0x21b0b4}from'ckeditor5/src/ui.js';import{createElement as _0x1401c7,global as _0x1ea4af,uid as _0x3603b1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4debd7}from'./uploadcarecommand.js';function _0x1f7d(_0x1e6a33,_0x4c11f4){const _0x233216=_0x2332();return _0x1f7d=function(_0x1f7d76,_0x254295){_0x1f7d76=_0x1f7d76-0x1c0;let _0x4d2bfd=_0x233216[_0x1f7d76];return _0x4d2bfd;},_0x1f7d(_0x1e6a33,_0x4c11f4);}import{UploadcareUploadAdapter as _0x21087d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4ae3b9}from'./utils/editingutils.js';function _0x2332(){const _0x22946e=['_initSchema','selection','pluginName','execute','398300ypEpNo','appendChild','closeMax','uploadcare.uploader','225218DbToTo','removeAttribute','view','href','uploadcareImageId','map','uploadcare','schema','699066EsADqo','attributeToAttribute','\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','imageBlock','insertImage','ctxElement','listenTo','querySelector','_initConfig','6UkOJiq','destroy','uploader-','UploadcareEditing','uploadcare.pubkey','requires','iconHrefResolver','1842uWaJjx','imageInline','body','#uc-icon-arrow-down','extend','upcast','get','elementToAttribute','init','fromCharCode','389249UkbAjs','_initCtx','locale','ucContextId','conversion','replaceImageSource','_initImageProcessingIndicator','commands','uploadcareImageReplace','afterInit','16PWAHgi','_configElement','editor','636IDPVzP','1SlClbA','editing','render','add','input[uploadcare-file-input]','config','isRegistered','getSelectedElement','downcast','836390kzMVCi','cleanupImage','isPremiumPlugin','true','document','1132QcfDKh','join','remove','_initConversion','getAttribute','once','configElement','uc-upload-ctx-provider','contentLanguage','model','_ctxElement','data-uc-image-id','27808silFAH','uc-config','for','PictureEditing','isOfficialPlugin'];_0x2332=function(){return _0x22946e;};return _0x2332();}export class UploadcareEditing extends _0x3a158b{[_0x3c7a47(0x212)]=null;[_0x3c7a47(0x1d6)]=null;static get[_0x3c7a47(0x1df)](){const _0x19888f=_0x3c7a47;return _0x19888f(0x1f9);}static get[_0x3c7a47(0x1fb)](){const _0xa56afd=_0x3c7a47;return[_0xa56afd(0x1db),_0x21087d,_0x21b0b4];}static get[_0x3c7a47(0x1dc)](){return!0x0;}static get[_0x3c7a47(0x1c9)](){return!0x0;}[_0x3c7a47(0x20a)];get[_0x3c7a47(0x1d2)](){const _0x364665=_0x3c7a47;return this[_0x364665(0x212)];}get[_0x3c7a47(0x1f2)](){const _0x522c06=_0x3c7a47;return this[_0x522c06(0x1d6)];}constructor(_0x2f1e94){const _0x3b8fa2=_0x3c7a47;super(_0x2f1e94),this[_0x3b8fa2(0x20a)]=_0x3603b1();}[_0x3c7a47(0x205)](){const _0x10f23a=_0x3c7a47,_0x5d8373=this[_0x10f23a(0x213)];_0x5d8373[_0x10f23a(0x20e)][_0x10f23a(0x1c1)](_0x10f23a(0x1eb),new _0x4debd7(_0x5d8373));}[_0x3c7a47(0x210)](){const _0x7b9ec6=_0x3c7a47;this[_0x7b9ec6(0x1dd)](),this[_0x7b9ec6(0x1cf)](),this[_0x7b9ec6(0x1f5)](),this[_0x7b9ec6(0x208)](),this[_0x7b9ec6(0x20d)](),this[_0x7b9ec6(0x1f3)](this[_0x7b9ec6(0x213)],_0x7b9ec6(0x1f7),()=>{const _0x573ca4=_0x7b9ec6;this[_0x573ca4(0x212)]&&(this[_0x573ca4(0x212)][_0x573ca4(0x1ce)](),this[_0x573ca4(0x212)]=null),this[_0x573ca4(0x1d6)]&&(this[_0x573ca4(0x1d6)][_0x573ca4(0x1ce)](),this[_0x573ca4(0x1d6)]=null);const _0x5fa236=_0x1ea4af[_0x573ca4(0x1cb)][_0x573ca4(0x1f4)](_0x573ca4(0x1c2));_0x5fa236&&_0x5fa236[_0x573ca4(0x1ce)]();}),async function(_0x10c98b){const _0x40b759=_0xbae936([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]),_0x2eb189=0x535f8c3a,_0x13b1af=0x5358f09a^_0x2eb189,_0x5ba34c=window[_0xbae936([0x44,0x61,0x74,0x65])][_0xbae936([0x6e,0x6f,0x77])](),_0x3b354b=_0x10c98b[_0xbae936([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a9928=new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349284=>{_0x3b354b[_0xbae936([0x6f,0x6e,0x63,0x65])](_0xbae936([0x72,0x65,0x61,0x64,0x79]),_0x349284);}),_0x5d1ab5={[_0xbae936([0x6b,0x74,0x79])]:_0xbae936([0x45,0x43]),[_0xbae936([0x75,0x73,0x65])]:_0xbae936([0x73,0x69,0x67]),[_0xbae936([0x63,0x72,0x76])]:_0xbae936([0x50,0x2d,0x32,0x35,0x36]),[_0xbae936([0x78])]:_0xbae936([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]),[_0xbae936([0x79])]:_0xbae936([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]),[_0xbae936([0x61,0x6c,0x67])]:_0xbae936([0x45,0x53,0x32,0x35,0x36])},_0x5325d0=_0x3b354b[_0xbae936([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbae936([0x67,0x65,0x74])](_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x302cbd(){let _0x312f0f,_0x4c5e2b=null,_0x251b8d=null;try{if(_0x5325d0==_0xbae936([0x47,0x50,0x4c]))return _0xbae936([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x312f0f=_0x34a464(),!_0x312f0f)return _0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x312f0f[_0xbae936([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x251b8d=_0xfb2e04(_0x312f0f[_0xbae936([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x312f0f[_0xbae936([0x6a,0x74,0x69])])),await _0x4d5270()?_0x3dafc2()?_0x187475()?_0xbae936([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19d085()?(_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbae936([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c5e2b=_0x12393b(_0xbae936([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbae936([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c5e2b=_0x12393b(_0xbae936([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x276d1c()):_0xbae936([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbae936([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x187475(){const _0x124986=[_0xbae936([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbae936([0x74,0x72,0x69,0x61,0x6c])][_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ba34c/0x3e8:0xe10*_0x13b1af;return _0x312f0f[_0xbae936([0x65,0x78,0x70])]<_0x124986;}function _0x3dafc2(){const _0x378d5f=_0x312f0f[_0xbae936([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x378d5f&&(!!_0x378d5f[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x2a]))||!!_0x378d5f[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x55,0x50,0x4c,0x43])));}function _0x19d085(){const _0x393b40=_0x1f7d,_0x1378b3=_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1378b3||0x0==_0x1378b3[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16bf2b}=new URL(window[_0xbae936([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x393b40(0x1e8)]);if(_0x1378b3[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bf2b))return!0x0;const _0x2d4528=_0x16bf2b[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e]));return _0x1378b3[_0xbae936([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2050f6=>_0x2050f6[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x2a])))[_0xbae936([0x6d,0x61,0x70])](_0xd3bbf8=>_0xd3bbf8[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e])))[_0xbae936([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x456507=>_0x456507[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d4528[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbae936([0x6d,0x61,0x70])](_0x3cd8c5=>Array(_0x2d4528[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cd8c5[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbae936([0x66,0x69,0x6c,0x6c])](_0x3cd8c5[0x0]===_0xbae936([0x2a])?_0xbae936([0x2a]):'')[_0xbae936([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cd8c5))[_0xbae936([0x73,0x6f,0x6d,0x65])](_0xadb6a2=>_0x2d4528[_0xbae936([0x65,0x76,0x65,0x72,0x79])]((_0xe9de32,_0x301e3d)=>_0xadb6a2[_0x301e3d]===_0xe9de32||_0xadb6a2[_0x301e3d]===_0xbae936([0x2a])));}function _0x276d1c(){return _0x4c5e2b&&_0x251b8d?new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52d3f3,_0x2ebaee)=>{_0x4c5e2b[_0xbae936([0x74,0x68,0x65,0x6e])](_0x52d3f3,_0x2ebaee),_0x251b8d[_0xbae936([0x74,0x68,0x65,0x6e])](_0x4e8dd8=>{_0x4e8dd8!=_0xbae936([0x56,0x61,0x6c,0x69,0x64])&&_0x52d3f3(_0x4e8dd8);},_0x2ebaee);}):_0x4c5e2b||_0x251b8d||_0xbae936([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfb2e04(_0x26a73a,_0x1c7b61){return new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc5cc27=>{if(_0x297cbf())return _0xc5cc27(_0xbae936([0x56,0x61,0x6c,0x69,0x64]));_0x5ccdfe(),_0x3b354b[_0xbae936([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a2993=!0x1;const _0x51590c=_0x3603b1();function _0x1270eb(_0x1d9cc6){return!!_0x1d9cc6&&(typeof _0x1d9cc6===_0xbae936([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d9cc6===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d9cc6[_0xbae936([0x74,0x68,0x65,0x6e])]===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d9cc6[_0xbae936([0x63,0x61,0x74,0x63,0x68])]===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12d3f7(_0x42ffb0){_0xf5847(_0x42ffb0)[_0xbae936([0x74,0x68,0x65,0x6e])](_0x2c0906=>{if(!_0x2c0906||_0x2c0906[_0xbae936([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbae936([0x6f,0x6b]))return _0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38b02f(_0x19ddfa(_0x51590c+_0x1c7b61))!=_0x2c0906[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbae936([0x56,0x61,0x6c,0x69,0x64]);})[_0xbae936([0x74,0x68,0x65,0x6e])](_0x3ed853=>(_0x46e820(),_0x3ed853),()=>{const _0x52be57=_0x2174cb();return null==_0x52be57?(_0x46e820(),_0xbae936([0x56,0x61,0x6c,0x69,0x64])):_0xbae936(_0x5ba34c-_0x52be57>(0x7753083a^_0x2eb189)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbae936([0x74,0x68,0x65,0x6e])](_0xc5cc27)[_0xbae936([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5dee5c=0x536962ba^_0x2eb189;function _0x46e820(){const _0x52ecb1=_0xbae936([0x6c,0x6c,0x63,0x74,0x2d])+_0x38b02f(_0x19ddfa(_0x26a73a)),_0x5461b1=_0x2d5a79(_0x38b02f(window[_0xbae936([0x4d,0x61,0x74,0x68])][_0xbae936([0x63,0x65,0x69,0x6c])](_0x5ba34c/_0x5dee5c)));window[_0xbae936([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbae936([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52ecb1,_0x5461b1);}function _0x2174cb(){const _0x30afcd=_0xbae936([0x6c,0x6c,0x63,0x74,0x2d])+_0x38b02f(_0x19ddfa(_0x26a73a)),_0x442607=window[_0xbae936([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbae936([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30afcd);return _0x442607?window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5a79(_0x442607),0x10)*_0x5dee5c:null;}function _0xf5847(_0x3addad){return new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x115c18,_0xc5b37f)=>{_0x3addad[_0xbae936([0x74,0x68,0x65,0x6e])](_0x115c18,_0xc5b37f),window[_0xbae936([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc5b37f,0x535e58fa^_0x2eb189);});}}_0x3b354b[_0xbae936([0x6f,0x6e])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xef881e,_0x47417c)=>{if(_0x47417c[0x0]!=_0x26a73a)return _0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47417c[0x1]={..._0x47417c[0x1],[_0xbae936([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51590c};},{[_0xbae936([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbae936([0x68,0x69,0x67,0x68])}),_0x3b354b[_0xbae936([0x6f,0x6e])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c07d1=>{_0x1270eb(_0x5c07d1[_0xbae936([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a2993=!0x0,_0x12d3f7(_0x5c07d1[_0xbae936([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbae936([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbae936([0x6c,0x6f,0x77])}),_0x2a9928[_0xbae936([0x74,0x68,0x65,0x6e])](()=>{_0x4a2993||_0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x297cbf(){return _0x3b354b[_0xbae936([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbae936([0x76,0x69,0x65,0x77])][_0xbae936([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbae936([0x61,0x75,0x74,0x6f]);}function _0x5ccdfe(){_0x3b354b[_0xbae936([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbae936([0x76,0x69,0x65,0x77])][_0xbae936([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbae936([0x61,0x75,0x74,0x6f]);}}function _0x12393b(_0x210b61){const _0x2c0c56=[new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af363=>setTimeout(_0x5af363,0x5356b2f6^_0x2eb189)),_0x2a9928[_0xbae936([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2527f0=>{let _0x2bcb11=0x0;_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x6f,0x6e])](_0xbae936([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4edf51,_0x4cb7e4)=>{_0x4cb7e4[0x0][_0xbae936([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bcb11++,_0x2bcb11==(0x535f89d2^_0x2eb189)&&(_0x2527f0(),_0x4edf51[_0xbae936([0x6f,0x66,0x66])]());});}))];return window[_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbae936([0x72,0x61,0x63,0x65])](_0x2c0c56)[_0xbae936([0x74,0x68,0x65,0x6e])](()=>_0x210b61);}async function _0x4be7a8(){await _0x2a9928,_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54b03b,_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54b03b,_0x3b354b[_0xbae936([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbae936([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b3507(_0x15f049){const _0x16b6c8=_0x34b6b1();_0x3b354b[_0x16b6c8]=_0xbae936([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15f049,_0x15f049!=_0xbae936([0x56,0x61,0x6c,0x69,0x64])&&_0x4be7a8();}function _0x34b6b1(){const _0x2f6a60=window[_0xbae936([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbae936([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbae936([0x6e,0x6f,0x77])]())[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbae936([0x2e]),'');let _0x4b68dc=_0xbae936([0x68]);for(let _0x29cf61=0x0;_0x29cf61<_0x2f6a60[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29cf61+=0x2){let _0x24526a=window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6a60[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29cf61,_0x29cf61+0x2));_0x24526a>=_0x40b759[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24526a-=_0x40b759[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b68dc+=_0x40b759[_0x24526a];}return _0x4b68dc;}function _0x34a464(){const _0x208f35=_0x5325d0[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e]));if(0x3!=_0x208f35[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d59e2(_0x208f35[0x1]);function _0x3d59e2(_0x3d4197){const _0x507d64=_0x1d2af6(_0x3d4197);return _0x507d64&&_0x19f1df()?_0x507d64:null;function _0x19f1df(){const _0x1a78af=_0x507d64[_0xbae936([0x6a,0x74,0x69])],_0x4429bf=window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a78af[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a78af[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10124f={..._0x507d64,[_0xbae936([0x6a,0x74,0x69])]:_0x1a78af[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a78af[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10124f[_0xbae936([0x76,0x63])],_0x19ddfa(_0x10124f)==_0x4429bf;}}}async function _0x4d5270(){let _0x3f6077=!0x0;try{const _0x1a5d87=_0x5325d0[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e])),[_0x15fd0a,_0xd4af4b,_0x2ae952]=_0x1a5d87;return _0x3f7489(_0x15fd0a),await _0x30b3bc(_0x15fd0a,_0xd4af4b,_0x2ae952),_0x3f6077;}catch{return!0x1;}function _0x3f7489(_0x200b8c){const _0x338e12=_0x1d2af6(_0x200b8c);_0x338e12&&_0x338e12[_0xbae936([0x61,0x6c,0x67])]==_0xbae936([0x45,0x53,0x32,0x35,0x36])||(_0x3f6077=!0x1);}async function _0x30b3bc(_0x12bb50,_0x225ec9,_0x59c0e2){const _0x4e2681=window[_0xbae936([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbae936([0x66,0x72,0x6f,0x6d])](_0x13e996(_0x59c0e2),_0x1a24f2=>_0x1a24f2[_0xbae936([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x200db3=new window[(_0xbae936([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbae936([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12bb50+_0xbae936([0x2e])+_0x225ec9),_0x311aaf=window[_0xbae936([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbae936([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x311aaf)return;const _0x509646=await _0x311aaf[_0xbae936([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbae936([0x6a,0x77,0x6b]),_0x5d1ab5,{[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x45,0x43,0x44,0x53,0x41]),[_0xbae936([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbae936([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x311aaf[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x45,0x43,0x44,0x53,0x41]),[_0xbae936([0x68,0x61,0x73,0x68])]:{[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x509646,_0x4e2681,_0x200db3)||(_0x3f6077=!0x1);}}function _0x1d2af6(_0x16f234){return _0x16f234[_0xbae936([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbae936([0x65,0x79]))?JSON[_0xbae936([0x70,0x61,0x72,0x73,0x65])](_0x13e996(_0x16f234)):null;}function _0x13e996(_0xae13c4){return window[_0xbae936([0x61,0x74,0x6f,0x62])](_0xae13c4[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbae936([0x2b]))[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbae936([0x2f])));}function _0x19ddfa(_0x805831){let _0x1c40ab=0x1505;function _0x3252e8(_0x403a5c){for(let _0x481d26=0x0;_0x481d26<_0x403a5c[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x481d26++){const _0x27a529=_0x403a5c[_0xbae936([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x481d26);_0x1c40ab=(_0x1c40ab<<0x5)+_0x1c40ab+_0x27a529,_0x1c40ab&=_0x1c40ab;}}function _0x7e24c2(_0x16d608){Array[_0xbae936([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16d608)?_0x16d608[_0xbae936([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7e24c2):_0x16d608&&typeof _0x16d608==_0xbae936([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbae936([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16d608)[_0xbae936([0x73,0x6f,0x72,0x74])]()[_0xbae936([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ec297,_0x18913e])=>{_0x3252e8(_0x2ec297),_0x7e24c2(_0x18913e);}):_0x3252e8(window[_0xbae936([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16d608));}return _0x7e24c2(_0x805831),_0x1c40ab>>>0x0;}function _0x38b02f(_0x27fe8b){return _0x27fe8b[_0xbae936([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbae936([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbae936([0x30]));}function _0x2d5a79(_0x42499b){return _0x42499b[_0xbae936([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbae936([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbae936([0x6a,0x6f,0x69,0x6e])]('');}function _0x54b03b(){}function _0xbae936(_0x266ae0){const _0x30ad81=_0x1f7d;return _0x266ae0[_0x30ad81(0x1ea)](_0x2aed03=>String[_0x30ad81(0x206)](_0x2aed03))[_0x30ad81(0x1cd)]('');}_0x1b3507(await _0x302cbd());}(this);}[_0x3c7a47(0x1dd)](){const _0x3d1c95=_0x3c7a47,_0xf1447e=this[_0x3d1c95(0x213)][_0x3d1c95(0x1d5)][_0x3d1c95(0x1ec)];_0xf1447e[_0x3d1c95(0x1c4)](_0x3d1c95(0x1f0))&&_0xf1447e[_0x3d1c95(0x201)](_0x3d1c95(0x1f0),{'allowAttributes':[_0x3d1c95(0x1e9)]}),_0xf1447e[_0x3d1c95(0x1c4)](_0x3d1c95(0x1fe))&&_0xf1447e[_0x3d1c95(0x201)](_0x3d1c95(0x1fe),{'allowAttributes':[_0x3d1c95(0x1e9)]});}[_0x3c7a47(0x1cf)](){const _0xee9c8b=_0x3c7a47,_0xe9b8e=this[_0xee9c8b(0x213)];_0xe9b8e[_0xee9c8b(0x20b)][_0xee9c8b(0x1da)](_0xee9c8b(0x1c6))[_0xee9c8b(0x1ee)]({'model':_0xee9c8b(0x1e9),'view':_0xee9c8b(0x1d7)}),_0xe9b8e[_0xee9c8b(0x20b)][_0xee9c8b(0x1da)](_0xee9c8b(0x202))[_0xee9c8b(0x204)]({'model':{'key':_0xee9c8b(0x1e9),'value':_0x27b17b=>_0x27b17b[_0xee9c8b(0x1d0)](_0xee9c8b(0x1d7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57fcf5=_0xe9b8e[_0xee9c8b(0x20e)][_0xee9c8b(0x203)](_0xee9c8b(0x20c));_0x57fcf5&&this[_0xee9c8b(0x1f3)](_0x57fcf5,_0xee9c8b(0x1c8),(_0x55cef7,[_0x2cf027,_0x699847])=>{const _0x15989e=_0xee9c8b;_0x2cf027[_0x15989e(0x1e6)](_0x15989e(0x1e9),_0x699847);});}[_0x3c7a47(0x1f5)](){const _0x1b6f45=_0x3c7a47,_0x3ac4da=this[_0x1b6f45(0x213)][_0x1b6f45(0x1c3)][_0x1b6f45(0x203)](_0x1b6f45(0x1e4))||{},_0x3b01c8=this[_0x1b6f45(0x213)][_0x1b6f45(0x1c3)][_0x1b6f45(0x203)](_0x1b6f45(0x1fa))||'';this[_0x1b6f45(0x212)]=_0x1401c7(_0x1ea4af[_0x1b6f45(0x1cb)],_0x1b6f45(0x1d9),{..._0x3ac4da,'pubkey':_0x3b01c8,'ctx-name':_0x1b6f45(0x1f8)+this[_0x1b6f45(0x20a)],'sourceList':'','imgOnly':_0x1b6f45(0x1ca),'removeCopyright':_0x1b6f45(0x1ca),'localeName':this[_0x1b6f45(0x213)][_0x1b6f45(0x209)][_0x1b6f45(0x1d4)],'externalSourcesEmbedCss':_0x1b6f45(0x1ef)}),this[_0x1b6f45(0x212)][_0x1b6f45(0x1fc)]=_0x1d2e9a=>{const _0x155bb4=_0x1b6f45;if(_0x155bb4(0x1e3)==_0x1d2e9a)return _0x155bb4(0x200);},_0x1ea4af[_0x1b6f45(0x1cb)][_0x1b6f45(0x1ff)][_0x1b6f45(0x1e2)](this[_0x1b6f45(0x212)]);}[_0x3c7a47(0x208)](){const _0x4e9390=_0x3c7a47;this[_0x4e9390(0x1d6)]=_0x1401c7(_0x1ea4af[_0x4e9390(0x1cb)],_0x4e9390(0x1d3),{'ctx-name':_0x4e9390(0x1f8)+this[_0x4e9390(0x20a)]}),_0x1ea4af[_0x4e9390(0x1cb)][_0x4e9390(0x1ff)][_0x4e9390(0x1e2)](this[_0x4e9390(0x1d6)]);}[_0x3c7a47(0x20d)](){const _0x205ccb=_0x3c7a47,_0x36ed0c=this[_0x205ccb(0x213)][_0x205ccb(0x20e)][_0x205ccb(0x203)](_0x205ccb(0x1f1));_0x36ed0c&&this[_0x205ccb(0x1f3)](_0x36ed0c,_0x205ccb(0x1e0),()=>{const _0x28e03e=_0x205ccb,_0x1905c9=this[_0x28e03e(0x213)][_0x28e03e(0x1d5)][_0x28e03e(0x1cb)][_0x28e03e(0x1de)][_0x28e03e(0x1c5)]();_0x1905c9&&_0x1905c9[_0x28e03e(0x1d0)](_0x28e03e(0x1e9))&&this[_0x28e03e(0x213)][_0x28e03e(0x216)][_0x28e03e(0x1e7)][_0x28e03e(0x1d1)](_0x28e03e(0x1c0),()=>{const _0x206e77=_0x28e03e;_0x4ae3b9(this[_0x206e77(0x213)],_0x1905c9);});});const _0x28a696=this[_0x205ccb(0x213)][_0x205ccb(0x20e)][_0x205ccb(0x203)](_0x205ccb(0x20f));_0x28a696&&this[_0x205ccb(0x1f3)](_0x28a696,_0x205ccb(0x1e0),()=>{const _0x22d137=_0x205ccb,_0x32b251=this[_0x22d137(0x213)][_0x22d137(0x1d5)][_0x22d137(0x1cb)][_0x22d137(0x1de)][_0x22d137(0x1c5)]();_0x32b251&&_0x32b251[_0x22d137(0x1d0)](_0x22d137(0x1e9))&&this[_0x22d137(0x213)][_0x22d137(0x216)][_0x22d137(0x1e7)][_0x22d137(0x1d1)](_0x22d137(0x1c0),()=>{const _0x47485e=_0x22d137;_0x4ae3b9(this[_0x47485e(0x213)],_0x32b251);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x46f999,ObservableMixin as _0x5dc735}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3ccd3d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2977cd}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x135c3d}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x23cd8f}from'../../utils/uploadutils.js';import{getImageUrls as _0x40519d,getImageDimension as _0xfd7424}from'../../utils/editingutils.js';import{isAncestor as _0x36a002}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5dc735(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x45c843,_0x1d3b65,_0x17a17c){super(),this['_editor']=_0x45c843,this['_dialog']=_0x1d3b65,this['_imageElement']=_0x17a17c,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 _0x49940e=this['_imageElement'],_0x55d8df=_0x49940e['getAttribute']('uploadcareImageId'),_0x5b8c51=_0x49940e['getAttribute']('src');if(_0x55d8df)await this['_loadImageInfo'](_0x55d8df,_0x5b8c51);else{if(this['_imageCache']['has'](_0x5b8c51)){const _0x48eb33=this['_imageCache']['get'](_0x5b8c51);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48eb33['url'],this['imageDimension']=_0x48eb33['dimension'],this['imageId']=_0x48eb33['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x172a8e}=this['_editor'],t=_0x172a8e['t'],_0xb23c45=new _0x135c3d(_0x172a8e,this['imageStatus'],this['_attributes']);_0xb23c45['bind']('status')['to'](this,'imageStatus'),_0xb23c45['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb23c45['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb23c45['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb23c45,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2977cd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb23c45,'position':_0x3ccd3d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb23c45['focus']();},'onHide':()=>{_0xb23c45['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d128c=>!_0x36a002(_0x2d128c,_0xb23c45['element'])}});}['_loadImageInfo'](_0x3ea099,_0x4bb1dd){return _0x23cd8f['getInfo'](_0x3ea099,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x298aac=>{const {width:_0x1a0c41,height:_0xf0be5f}=_0x298aac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bb1dd,this['imageDimension']={'width':_0x1a0c41,'height':_0xf0be5f},this['imageId']=_0x3ea099;})['catch'](_0x3ea163=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ea163['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x345f9f,_0x3b086e){return this['_getImageAsFile'](_0x345f9f)['then'](_0x338589=>_0x23cd8f['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':_0x3b086e['signal'],'file':_0x338589,'onProgress':_0x287c3e=>{_0x287c3e&&_0x287c3e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x287c3e['value']));}}))['then'](_0xe33b3c=>{const {width:_0xfa45d2,height:_0xed0784}=_0xe33b3c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe33b3c['cdnUrl'],this['imageDimension']={'width':_0xfa45d2,'height':_0xed0784},this['imageId']=_0xe33b3c['uuid'],this['imageUploadProgress']=null;const _0x141ffa=_0x345f9f['getAttribute']('src');this['_imageCache']['set'](_0x141ffa,{'id':_0xe33b3c['uuid'],'url':_0xe33b3c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x37b683=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x37b683['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x561f9a,_0x29b5bf){_0x561f9a['on']('apply',(_0x37422f,_0x55be67)=>{this['_replaceImage'](_0x29b5bf,_0x55be67['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x561f9a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x561f9a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3cf744,_0x11a99c,_0x17ee30){const _0x1e05bf=this['_editor'],{width:_0x2af2a8,height:_0x5788f5}=_0xfd7424(_0x11a99c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2965bb,imageSources:_0x2dc0f6}=_0x40519d(_0x11a99c,_0x2af2a8);_0x1e05bf['model']['change'](_0x41ed1f=>{if('$graveyard'===_0x3cf744['root']['rootName']){_0x1e05bf['execute']('insertImage',{'imageType':_0x3cf744['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3cf744['getAttributes']()),'uploadcareImageId':_0x17ee30,'src':_0x2965bb,'sources':_0x2dc0f6,'width':_0x2af2a8,'height':_0x5788f5}});const _0xf4abde=_0x3cf744['getChildren']();_0x3cf744=_0x1e05bf['model']['document']['selection']['getSelectedElement']();for(const _0x2d8e20 of _0xf4abde)_0x41ed1f['append'](_0x41ed1f['cloneElement'](_0x2d8e20),_0x3cf744);}else _0x41ed1f['setSelection'](_0x3cf744,'on'),_0x1e05bf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3cf744['getAttributes']()),'uploadcareImageId':_0x17ee30,'src':_0x2965bb,'sources':_0x2dc0f6,'width':_0x2af2a8,'height':_0x5788f5},_0x3cf744);_0x41ed1f['setSelection'](_0x3cf744,'on');});}async['_getImageAsFile'](_0x90de10){const _0x1a0757=_0x46f999['window'],_0x585ce1=_0x46f999['document']['location']['href'],_0x1d2235=new _0x1a0757['URL'](_0x90de10['getAttribute']('src'),_0x585ce1);if('data:'===_0x1d2235['protocol']){const _0x42ebdc=_0x1d2235['href']['split'](','),_0x5c941b=_0x42ebdc[0x0]['match'](/:(.*?);/)[0x1],_0x51e846=_0x5c941b['split']('/')[0x1],_0xb0f0c9=_0x1a0757['atob'](_0x42ebdc[_0x42ebdc['length']-0x1]);let _0x28d484=_0xb0f0c9['length'];const _0x556502=new _0x1a0757['Uint8Array'](_0x28d484);for(;_0x28d484--;)_0x556502[_0x28d484]=_0xb0f0c9['charCodeAt'](_0x28d484);return new _0x1a0757['File']([_0x556502],'image.'+_0x51e846,{'type':_0x5c941b});}const _0x2079e2=_0x1d2235['href']['split']('/'),_0x50d197=_0x2079e2[_0x2079e2['length']-0x1],_0x2fec90=_0x50d197['split']('.')[0x1];return _0x1a0757['fetch'](_0x1d2235['href'])['then'](_0x3277e5=>_0x3277e5['clone']()['blob']())['then'](_0x53a3ac=>new _0x1a0757['File']([_0x53a3ac],_0x50d197,{'type':'image/'+_0x2fec90}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3e7e(){const _0x5e5f3b=['setTemplate','8036064TppUTm','1479wcbZoJ','uc-light','bindTemplate','4152CPHPVu','5052ggPDxU','set','264730iBBaSV','image-edit','2808666jrtQQZ','imageSrc','uc-cloud-image-editor','2980044iorAgg','ck-uploadcare-theme','3220180ApRYNn'];_0x3e7e=function(){return _0x5e5f3b;};return _0x3e7e();}function _0x5ec8(_0x418893,_0x38943a){const _0x3e7e89=_0x3e7e();return _0x5ec8=function(_0x5ec8c9,_0x554ddd){_0x5ec8c9=_0x5ec8c9-0x143;let _0x382977=_0x3e7e89[_0x5ec8c9];return _0x382977;},_0x5ec8(_0x418893,_0x38943a);}(function(_0x1e390f,_0x25b71b){const _0x5bf029=_0x5ec8,_0x311e19=_0x1e390f();while(!![]){try{const _0x16fb5a=parseInt(_0x5bf029(0x149))/0x1+parseInt(_0x5bf029(0x147))/0x2+-parseInt(_0x5bf029(0x143))/0x3*(-parseInt(_0x5bf029(0x146))/0x4)+parseInt(_0x5bf029(0x150))/0x5+-parseInt(_0x5bf029(0x14e))/0x6+parseInt(_0x5bf029(0x14b))/0x7+-parseInt(_0x5bf029(0x152))/0x8;if(_0x16fb5a===_0x25b71b)break;else _0x311e19['push'](_0x311e19['shift']());}catch(_0x2e46b7){_0x311e19['push'](_0x311e19['shift']());}}}(_0x3e7e,0x4ee0a));import{View as _0x524713}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x524713{constructor(_0x24911c,_0x5f2cca){const _0x261bf5=_0x5ec8;super(_0x24911c);const _0x51d779=this[_0x261bf5(0x145)];this[_0x261bf5(0x148)](_0x261bf5(0x14c),''),this[_0x261bf5(0x151)]({'tag':_0x261bf5(0x14d),'attributes':{..._0x5f2cca,'class':[_0x261bf5(0x144),_0x261bf5(0x14f)],'ctx-name':_0x261bf5(0x14a),'cdn-url':_0x51d779['to'](_0x261bf5(0x14c))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x345645}from'ckeditor5/src/icons.js';import{ButtonView as _0x1e3690,IconView as _0x165a4c,View as _0x11b34c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x11b34c{constructor(_0x38eccd){super(_0x38eccd);const t=_0x38eccd['t'];this['set']('errorType',null);const _0x465310=new _0x1e3690(_0x38eccd);_0x465310['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x465310['withText']=!0x0,_0x465310['class']='ck-button-action',_0x465310['on']('execute',()=>{this['fire']('retry');}),_0x465310['bind']('isVisible')['to'](this,'errorType',_0x446ba6=>'NotFound'!==_0x446ba6);const _0x23de4d=new _0x165a4c();_0x23de4d['content']=_0x345645,_0x23de4d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f3045=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':[_0x23de4d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f3045['to']('errorType',_0x51c80c=>t('NotFound'!==_0x51c80c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x465310]},{'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 _0x316457,View as _0x107f3b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x107f3b{constructor(_0x31e3d8){super(_0x31e3d8);const t=_0x31e3d8['t'],_0x304fe5=this['bindTemplate'],_0x36fbe6=new _0x316457();_0x36fbe6['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':[_0x36fbe6,{'text':_0x304fe5['to']('imageUploadProgress',_0x186041=>t('Loading\x20image...')+'\x20('+(_0x186041||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 _0x59b0c1=_0x3784;(function(_0xadef96,_0x5f34b2){const _0x4baf02=_0x3784,_0x23222a=_0xadef96();while(!![]){try{const _0x41f29e=-parseInt(_0x4baf02(0xec))/0x1+-parseInt(_0x4baf02(0xd7))/0x2*(-parseInt(_0x4baf02(0xfa))/0x3)+-parseInt(_0x4baf02(0xfc))/0x4+-parseInt(_0x4baf02(0x10b))/0x5+-parseInt(_0x4baf02(0x101))/0x6+parseInt(_0x4baf02(0xf6))/0x7*(-parseInt(_0x4baf02(0xea))/0x8)+parseInt(_0x4baf02(0xee))/0x9;if(_0x41f29e===_0x5f34b2)break;else _0x23222a['push'](_0x23222a['shift']());}catch(_0x2a4776){_0x23222a['push'](_0x23222a['shift']());}}}(_0x30ad,0xec357));import{View as _0x25204d}from'ckeditor5/src/ui.js';function _0x3784(_0x777c91,_0x1325a9){const _0x30ad58=_0x30ad();return _0x3784=function(_0x37843e,_0x2cb718){_0x37843e=_0x37843e-0xd6;let _0x26b5b4=_0x30ad58[_0x37843e];return _0x26b5b4;},_0x3784(_0x777c91,_0x1325a9);}import{UploadcareImageEditFormLoadingView as _0x3c8890}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2ea1b1}from'./uploadcareimageeditformerrorview.js';function _0x30ad(){const _0x178c8c=['24ZgMvss','ck-uploadcare-form','1397048PhPJXp','_addErrorViewListeners','47059659mmIlKd','addMany','add','toLowerCase','_addUploadcareImageEditorListeners','nodeName','observe','length','4305973ZsSbko','_setView','element','render','9SEeiHg','set','105432kjkrcH','filter','addEventListener','error','_waitForImageEditorComponent','2778432BfwVHC','div','target','_items','fire','setTemplate','disconnect','detail','addedNodes','_loadingView','7720870kZfNZQ','clear','676486gbwlmx','createCollection','getFocusableElement','_focusableView','status','cdnUrl','focus','retry','change:status','querySelector','uploading','_errorView','apply','uc-cloud-image-editor','once','ready','_editingView','ck-reset_all-excluded','cancel'];_0x30ad=function(){return _0x178c8c;};return _0x30ad();}import{UploadcareImageEditFormEditingView as _0x5b5f10}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x539423}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x539423{[_0x59b0c1(0x104)];[_0x59b0c1(0x10a)];[_0x59b0c1(0xe2)];[_0x59b0c1(0xe7)];[_0x59b0c1(0xda)];constructor(_0x4ed0aa,_0xfa195f,_0x2e7cff){const _0x4ba8f4=_0x59b0c1;super(_0x4ed0aa),this[_0x4ba8f4(0x104)]=this[_0x4ba8f4(0xd8)](),this[_0x4ba8f4(0x10a)]=new _0x3c8890(_0x4ed0aa),this[_0x4ba8f4(0xe2)]=new _0x2ea1b1(_0x4ed0aa),this[_0x4ba8f4(0xe7)]=new _0x5b5f10(_0x4ed0aa,_0x2e7cff),this[_0x4ba8f4(0xda)]=new _0x25204d(_0x4ed0aa),this[_0x4ba8f4(0xda)][_0x4ba8f4(0x106)](this[_0x4ba8f4(0xd9)]()),this[_0x4ba8f4(0xfb)](_0x4ba8f4(0xdb),_0xfa195f),this[_0x4ba8f4(0x106)]({'tag':_0x4ba8f4(0x102),'attributes':{'class':['ck',_0x4ba8f4(0xe8),_0x4ba8f4(0xeb)],'tabindex':'-1'},'children':this[_0x4ba8f4(0x104)]}),this[_0x4ba8f4(0xf7)](),this[_0x4ba8f4(0xe5)](_0x4ba8f4(0xf9),()=>{const _0xf817df=_0x4ba8f4;this[_0xf817df(0x100)](this[_0xf817df(0xf8)],_0x5865be=>{const _0x345671=_0xf817df;this[_0x345671(0xf2)](_0x5865be);});}),this['on'](_0x4ba8f4(0xdf),()=>{const _0x4c4d68=_0x4ba8f4;this[_0x4c4d68(0xf7)]();}),this[_0x4ba8f4(0xed)]();}[_0x59b0c1(0xdd)](){const _0x4d6fdc=_0x59b0c1;this[_0x4d6fdc(0xf8)][_0x4d6fdc(0xdd)]();}[_0x59b0c1(0xf7)](){const _0x47ca2c=_0x59b0c1;switch(this[_0x47ca2c(0x104)][_0x47ca2c(0xd6)](),this[_0x47ca2c(0xdb)]){case _0x47ca2c(0xe1):this[_0x47ca2c(0x104)][_0x47ca2c(0xf0)](this[_0x47ca2c(0x10a)]);break;case _0x47ca2c(0xff):this[_0x47ca2c(0x104)][_0x47ca2c(0xf0)](this[_0x47ca2c(0xe2)]);break;case _0x47ca2c(0xe6):this[_0x47ca2c(0x104)][_0x47ca2c(0xef)]([this[_0x47ca2c(0xe7)],this[_0x47ca2c(0xda)]]);}}[_0x59b0c1(0x100)](_0x2aaec7,_0x1368ad){const _0x9dfaff=_0x59b0c1,_0x91b6ae=_0x9dfaff(0xe4),_0xee1583=_0x2aaec7[_0x9dfaff(0xe0)](_0x91b6ae);if(_0xee1583)return _0x1368ad(_0xee1583);const _0x40aae1=new MutationObserver(_0x48cf6c=>{const _0x497e51=_0x9dfaff,_0xec1e14=_0x48cf6c[_0x497e51(0xfd)](_0x2d8939=>_0x2d8939[_0x497e51(0x103)]===_0x2aaec7&&_0x2d8939[_0x497e51(0x109)][_0x497e51(0xf5)]>0x0&&_0x2d8939[_0x497e51(0x109)][0x0][_0x497e51(0xf3)][_0x497e51(0xf1)]()===_0x91b6ae);_0xec1e14[_0x497e51(0xf5)]&&(_0x40aae1[_0x497e51(0x107)](),_0x1368ad(_0xec1e14[0x0][_0x497e51(0x109)][0x0]));});_0x40aae1[_0x9dfaff(0xf4)](_0x2aaec7,{'childList':!0x0,'subtree':!0x0});}[_0x59b0c1(0xf2)](_0x38eca0){const _0x356f9f=_0x59b0c1;_0x38eca0[_0x356f9f(0xfe)](_0x356f9f(0xe3),_0x1ce6a9=>{const _0x2fdf6f=_0x356f9f;this[_0x2fdf6f(0x105)](_0x2fdf6f(0xe3),{'imageSrc':_0x1ce6a9[_0x2fdf6f(0x108)][_0x2fdf6f(0xdc)]});}),_0x38eca0[_0x356f9f(0xfe)](_0x356f9f(0xe9),()=>{const _0x8fe514=_0x356f9f;this[_0x8fe514(0x105)](_0x8fe514(0xe9));});}[_0x59b0c1(0xed)](){const _0x6b62c=_0x59b0c1;this[_0x6b62c(0xe2)]['on'](_0x6b62c(0xde),()=>{const _0x3a9ca8=_0x6b62c;this[_0x3a9ca8(0x105)](_0x3a9ca8(0xde));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1d37(){const _0x5467f8=['uploadcare.allowExternalImagesEditing','imageInline','1905546SxDPvx','model','3iDlPzz','isActive','set','getSelectedElement','13343274RWGwlg','503546YMbKPF','11064vgFkfF','unbind','imageBlock','518sVPvzQ','1900252XudeYE','editor','_isEditable','plugins','document','element','5409350ulSpsR','620730XfFFCf','isEnabled','get','requires','refresh','bind','imageEditController','selection','execute','config'];_0x1d37=function(){return _0x5467f8;};return _0x1d37();}const _0x2db552=_0x2b29;(function(_0x479afc,_0x542135){const _0x4a5345=_0x2b29,_0x1f94b0=_0x479afc();while(!![]){try{const _0x4b4766=-parseInt(_0x4a5345(0x198))/0x1+parseInt(_0x4a5345(0x191))/0x2*(parseInt(_0x4a5345(0x193))/0x3)+-parseInt(_0x4a5345(0x17e))/0x4+-parseInt(_0x4a5345(0x184))/0x5+parseInt(_0x4a5345(0x185))/0x6+-parseInt(_0x4a5345(0x17d))/0x7*(-parseInt(_0x4a5345(0x17a))/0x8)+parseInt(_0x4a5345(0x197))/0x9;if(_0x4b4766===_0x542135)break;else _0x1f94b0['push'](_0x1f94b0['shift']());}catch(_0x58c0e1){_0x1f94b0['push'](_0x1f94b0['shift']());}}}(_0x1d37,0x8dc45));import{Command as _0x4a3b90}from'ckeditor5/src/core.js';import{Dialog as _0x431a54}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4f42c6}from'./ui/uploadcareimageeditcontroller.js';function _0x2b29(_0x3b8918,_0x4fa77f){const _0x1d3741=_0x1d37();return _0x2b29=function(_0x2b2936,_0x3c7069){_0x2b2936=_0x2b2936-0x17a;let _0x1cf656=_0x1d3741[_0x2b2936];return _0x1cf656;},_0x2b29(_0x3b8918,_0x4fa77f);}import{createEditabilityChecker as _0x18661e}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4a3b90{[_0x2db552(0x18b)];static get[_0x2db552(0x188)](){return[_0x431a54];}[_0x2db552(0x180)];constructor(_0x3d3c7f){const _0x438268=_0x2db552;super(_0x3d3c7f),this[_0x438268(0x18b)]=void 0x0,this[_0x438268(0x180)]=_0x18661e(_0x3d3c7f[_0x438268(0x18e)][_0x438268(0x187)](_0x438268(0x18f))||[]),this[_0x438268(0x195)]({'isActive':!0x1});}[_0x2db552(0x189)](){const _0xa9a36b=_0x2db552,_0x7ee020=this[_0xa9a36b(0x17f)][_0xa9a36b(0x192)][_0xa9a36b(0x182)][_0xa9a36b(0x18c)][_0xa9a36b(0x196)]();this[_0xa9a36b(0x186)]=this[_0xa9a36b(0x180)](_0x7ee020);}[_0x2db552(0x18d)](){const _0x3a2c1f=_0x2db552;this[_0x3a2c1f(0x18b)]&&(this[_0x3a2c1f(0x17b)](_0x3a2c1f(0x194)),this[_0x3a2c1f(0x18b)]=void 0x0);const _0x2b5b48=this[_0x3a2c1f(0x17f)][_0x3a2c1f(0x192)][_0x3a2c1f(0x182)][_0x3a2c1f(0x18c)][_0x3a2c1f(0x196)]();_0x2b5b48&&(_0x2b5b48['is'](_0x3a2c1f(0x183),_0x3a2c1f(0x17c))||_0x2b5b48['is'](_0x3a2c1f(0x183),_0x3a2c1f(0x190)))&&(this[_0x3a2c1f(0x18b)]=new _0x4f42c6(this[_0x3a2c1f(0x17f)],this[_0x3a2c1f(0x17f)][_0x3a2c1f(0x181)][_0x3a2c1f(0x187)](_0x431a54),_0x2b5b48),this[_0x3a2c1f(0x18a)](_0x3a2c1f(0x194))['to'](this[_0x3a2c1f(0x18b)],_0x3a2c1f(0x194)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x48a7(_0x5d7f76,_0x73e2a9){const _0x493ced=_0x493c();return _0x48a7=function(_0x48a7c3,_0x1eba7a){_0x48a7c3=_0x48a7c3-0x1a9;let _0x4c7e12=_0x493ced[_0x48a7c3];return _0x4c7e12;},_0x48a7(_0x5d7f76,_0x73e2a9);}const _0x187f54=_0x48a7;(function(_0x27cbb1,_0x349ab2){const _0x100f83=_0x48a7,_0x3b0058=_0x27cbb1();while(!![]){try{const _0x2c20ef=parseInt(_0x100f83(0x1ae))/0x1+parseInt(_0x100f83(0x1b2))/0x2*(parseInt(_0x100f83(0x1ac))/0x3)+-parseInt(_0x100f83(0x1b0))/0x4*(parseInt(_0x100f83(0x1aa))/0x5)+-parseInt(_0x100f83(0x1b1))/0x6*(-parseInt(_0x100f83(0x1b8))/0x7)+parseInt(_0x100f83(0x1ba))/0x8+parseInt(_0x100f83(0x1bf))/0x9*(parseInt(_0x100f83(0x1bc))/0xa)+-parseInt(_0x100f83(0x1ad))/0xb;if(_0x2c20ef===_0x349ab2)break;else _0x3b0058['push'](_0x3b0058['shift']());}catch(_0x3a5607){_0x3b0058['push'](_0x3b0058['shift']());}}}(_0x493c,0x623c2));import{Plugin as _0x4c8f0d}from'ckeditor5/src/core.js';import{Notification as _0xfed473}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1fdd04}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3ffa78}from'./uploadcareimagereplacecommand.js';function _0x493c(){const _0xa42f47=['20979CYPOiS','isOfficialPlugin','1128645VekDxu','uploadcareImageEdit','33zWtQZx','12209087izvHtv','422320qOhHjD','pluginName','4lMYlso','53058nSndKK','117146ATpfOo','commands','uploadcareImageReplace','isPremiumPlugin','UploadcareImageEditEditing','requires','77oGGtKN','ImageUtils','136088uIOJZb','init','2390sHBjlP','ImageEditing','add'];_0x493c=function(){return _0xa42f47;};return _0x493c();}import{UploadcareEditing as _0x3f9352}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4c8f0d{static get[_0x187f54(0x1af)](){const _0x13b89f=_0x187f54;return _0x13b89f(0x1b6);}static get[_0x187f54(0x1b7)](){const _0x35e0e9=_0x187f54;return[_0x3f9352,_0xfed473,_0x35e0e9(0x1b9),_0x35e0e9(0x1bd)];}static get[_0x187f54(0x1a9)](){return!0x0;}static get[_0x187f54(0x1b5)](){return!0x0;}[_0x187f54(0x1bb)](){const _0x4a93ac=_0x187f54,{editor:_0x21d848}=this;_0x21d848[_0x4a93ac(0x1b3)][_0x4a93ac(0x1be)](_0x4a93ac(0x1ab),new _0x1fdd04(_0x21d848)),_0x21d848[_0x4a93ac(0x1b3)][_0x4a93ac(0x1be)](_0x4a93ac(0x1b4),new _0x3ffa78(_0x21d848));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1ac247}from'ckeditor5/src/core.js';import{ButtonView as _0xc3083f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x39377a}from'ckeditor5/src/icons.js';import{createElement as _0x34f1fc}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 _0x1ac247{['_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 _0x4316ac=this['editor'];_0x4316ac['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1e7f96=>{const _0x1e7ae4=_0x4316ac['commands']['get']('uploadcareImageEdit'),_0x175284=new _0xc3083f(_0x1e7f96),t=_0x1e7f96['t'];return _0x175284['set']({'icon':_0x39377a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x175284['bind']('isEnabled')['to'](_0x1e7ae4),_0x175284['bind']('isOn')['to'](_0x1e7ae4,'isActive'),this['listenTo'](_0x175284,'execute',()=>{_0x4316ac['execute']('uploadcareImageEdit'),_0x4316ac['editing']['view']['focus']();}),_0x175284;}),this['_initConfig']();}['_initConfig'](){const _0x942086=_0x34f1fc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x942086),this['listenTo'](this['editor'],'destroy',()=>{_0x942086['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e5c3e=_0x2c59;(function(_0x3e1792,_0x2a644d){const _0x351a36=_0x2c59,_0x1fe1ca=_0x3e1792();while(!![]){try{const _0x3c3822=parseInt(_0x351a36(0x1e5))/0x1*(parseInt(_0x351a36(0x1ee))/0x2)+-parseInt(_0x351a36(0x1f2))/0x3+parseInt(_0x351a36(0x1e9))/0x4*(-parseInt(_0x351a36(0x1e6))/0x5)+-parseInt(_0x351a36(0x1f0))/0x6+-parseInt(_0x351a36(0x1ec))/0x7+parseInt(_0x351a36(0x1ed))/0x8+-parseInt(_0x351a36(0x1fc))/0x9*(-parseInt(_0x351a36(0x1f3))/0xa);if(_0x3c3822===_0x2a644d)break;else _0x1fe1ca['push'](_0x1fe1ca['shift']());}catch(_0x5d62e2){_0x1fe1ca['push'](_0x1fe1ca['shift']());}}}(_0x4806,0xaab01));function _0x2c59(_0x5bee6f,_0x140298){const _0x4806b1=_0x4806();return _0x2c59=function(_0x2c595e,_0x4b413f){_0x2c595e=_0x2c595e-0x1e4;let _0x3d1219=_0x4806b1[_0x2c595e];return _0x3d1219;},_0x2c59(_0x5bee6f,_0x140298);}import{Command as _0x3a7101}from'ckeditor5/src/core.js';function _0x4806(){const _0x15b384=['2815326ZCnFOH','element','2565006VKpgnh','4064140zNgnOp','imageInline','model','isEnabled','imageBlock','srcset','change','setAttributes','document','18aOHckN','execute','removeAttribute','3SROOql','10HvywLz','editor','sizes','10408cyqYbp','selection','getSelectedElement','7999593gdSGAz','7761200BRODZo','925590yQpBMV','refresh'];_0x4806=function(){return _0x15b384;};return _0x4806();}export class UploadcareImageReplaceCommand extends _0x3a7101{[_0x5e5c3e(0x1ef)](){const _0x1a12af=_0x5e5c3e,_0x1c09a8=this[_0x1a12af(0x1e7)][_0x1a12af(0x1f5)][_0x1a12af(0x1fb)][_0x1a12af(0x1ea)][_0x1a12af(0x1eb)]();this[_0x1a12af(0x1f6)]=Boolean(_0x1c09a8&&(_0x1c09a8['is'](_0x1a12af(0x1f1),_0x1a12af(0x1f7))||_0x1c09a8['is'](_0x1a12af(0x1f1),_0x1a12af(0x1f4))));}[_0x5e5c3e(0x1fd)](_0x4fff56){const _0x5b77c6=_0x5e5c3e,_0x25d28d=this[_0x5b77c6(0x1e7)][_0x5b77c6(0x1f5)][_0x5b77c6(0x1fb)][_0x5b77c6(0x1ea)][_0x5b77c6(0x1eb)]();this[_0x5b77c6(0x1e7)][_0x5b77c6(0x1f5)][_0x5b77c6(0x1f9)](_0x3921e7=>{const _0x547e3a=_0x5b77c6;_0x3921e7[_0x547e3a(0x1fa)](_0x4fff56,_0x25d28d),_0x3921e7[_0x547e3a(0x1e4)](_0x547e3a(0x1f8),_0x25d28d),_0x3921e7[_0x547e3a(0x1e4)](_0x547e3a(0x1e8),_0x25d28d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x19d777=_0x1c0f;(function(_0x2971ee,_0x138864){var _0x2d887d=_0x1c0f,_0x51cc0d=_0x2971ee();while(!![]){try{var _0x51b44f=parseInt(_0x2d887d(0x104))/0x1+-parseInt(_0x2d887d(0x10b))/0x2+-parseInt(_0x2d887d(0x10e))/0x3*(-parseInt(_0x2d887d(0x107))/0x4)+-parseInt(_0x2d887d(0x105))/0x5*(parseInt(_0x2d887d(0x109))/0x6)+-parseInt(_0x2d887d(0x106))/0x7+parseInt(_0x2d887d(0x112))/0x8*(-parseInt(_0x2d887d(0x113))/0x9)+-parseInt(_0x2d887d(0x10d))/0xa*(-parseInt(_0x2d887d(0x10c))/0xb);if(_0x51b44f===_0x138864)break;else _0x51cc0d['push'](_0x51cc0d['shift']());}catch(_0x4235b2){_0x51cc0d['push'](_0x51cc0d['shift']());}}}(_0x3034,0x37587));import{Plugin as _0x1f5ff0}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xdc7197}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x1c0f(_0x2e55b7,_0x2e46bb){var _0x30343a=_0x3034();return _0x1c0f=function(_0x1c0f70,_0x5790bc){_0x1c0f70=_0x1c0f70-0x104;var _0x3390b7=_0x30343a[_0x1c0f70];return _0x3390b7;},_0x1c0f(_0x2e55b7,_0x2e46bb);}function _0x3034(){var _0x1777fc=['348879ZGXIsy','requires','isPremiumPlugin','pluginName','184oagaTL','97533vdmZKt','66147JgSCbK','1110305cODnSX','2407167qVqJOY','4rbklRw','UploadcareImageEdit','12fJvqxw','isOfficialPlugin','668472gQlReW','576785BiMknL','270UzMfDI'];_0x3034=function(){return _0x1777fc;};return _0x3034();}import{UploadcareImageEditUI as _0x58037e}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x1f5ff0{static get[_0x19d777(0x111)](){var _0x381021=_0x19d777;return _0x381021(0x108);}static get[_0x19d777(0x10f)](){return[_0xdc7197,_0x58037e];}static get[_0x19d777(0x10a)](){return!0x0;}static get[_0x19d777(0x110)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49eacc=_0x4c1a;function _0x4a78(){const _0x44bb05=['_createDropdownButtons','afterInit','expired','map','uploadcareLicenseKeyInvalid','_createMenuBarButtons','UploadcareUI','2606752sipzSV','has','658430hdCcyO','assetManager','get','uploadcareLicenseKeyEvaluationLimit','OneDrive','URL','isOfficialPlugin','tooltip','entries','shortText','225QjBvsl','ImageInsertUI','473689LCesiD','type','uploadcareLicenseKeyNotAllowed','_licenseKeyCheckInterval','Dropbox','init','35txAAGk','Local','uploadcareLicenseKeyExpired','16NRFuwT','licenseKey','label','editor','_showLicenseError','plugins','_getIntegrationKey','execute','uploadcareLicenseKeyUsageLimit','GPhotos','reduce','uploadcareLicenseKeyDomainLimit','domainLimit','forEach','isImageSelected','pluginName','push','GDrive','usageLimit','_createButton','isPremiumPlugin','uploadcare','locale','_normalizeConfigSourceList','Insert','evaluationLimit','Uploadcare','upload','bind','132402XsRiMy','uploadcareLicenseKeyTrialLimit','3236821Yvwwjc','isEnabled','trialLimit','Facebook','uploadcareLicenseKeyValid','commands','featureNotAllowed','registerIntegration','destroy','719778AqdohE','281746JBmjMA','invalid','_createToolbarButton','text','withText','config','icon','Replace','uploadcare.uploader.sourceList','url'];_0x4a78=function(){return _0x44bb05;};return _0x4a78();}(function(_0x35fb1b,_0xd843b6){const _0x1649cf=_0x4c1a,_0x14bd5b=_0x35fb1b();while(!![]){try{const _0x365d76=parseInt(_0x1649cf(0xdb))/0x1+-parseInt(_0x1649cf(0xbc))/0x2+parseInt(_0x1649cf(0xbb))/0x3+-parseInt(_0x1649cf(0xcd))/0x4+parseInt(_0x1649cf(0xe1))/0x5*(-parseInt(_0x1649cf(0xb0))/0x6)+-parseInt(_0x1649cf(0xb2))/0x7*(parseInt(_0x1649cf(0xe4))/0x8)+parseInt(_0x1649cf(0xd9))/0x9*(parseInt(_0x1649cf(0xcf))/0xa);if(_0x365d76===_0xd843b6)break;else _0x14bd5b['push'](_0x14bd5b['shift']());}catch(_0x2045a5){_0x14bd5b['push'](_0x14bd5b['shift']());}}}(_0x4a78,0x771ae));import{Plugin as _0x35711a}from'ckeditor5/src/core.js';function _0x4c1a(_0x248178,_0x2decf2){const _0x4a7800=_0x4a78();return _0x4c1a=function(_0x4c1ac2,_0x3b7d51){_0x4c1ac2=_0x4c1ac2-0x96;let _0x168635=_0x4a7800[_0x4c1ac2];return _0x168635;},_0x4c1a(_0x248178,_0x2decf2);}import{IconDropbox as _0x340411,IconFacebook as _0x1cf1ea,IconGoogleDrive as _0x8b7c97,IconGooglePhotos as _0xfa9032,IconUploadcareImageUpload as _0xbfda09,IconUploadcareLink as _0x6f5932,IconOneDrive as _0x30d37b}from'ckeditor5/src/icons.js';import{ButtonView as _0x20fbc6,MenuBarMenuListItemButtonView as _0x3b5c81}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3d523c}from'./uploadcareconfig.js';import{getTranslation as _0xfe7fa6}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 _0x35711a{[_0x49eacc(0xe5)];[_0x49eacc(0xde)];static get[_0x49eacc(0xa2)](){const _0x2919f5=_0x49eacc;return _0x2919f5(0xcc);}static get[_0x49eacc(0xd5)](){return!0x0;}static get[_0x49eacc(0xa7)](){return!0x0;}[_0x49eacc(0xe0)](){const _0x490492=_0x49eacc;this[_0x490492(0xe5)]=this[_0x490492(0x96)][_0x490492(0xc1)][_0x490492(0xd1)](_0x490492(0xe5));const _0x5b5eb6=this[_0x490492(0x96)];this[_0x490492(0xde)]=setInterval(()=>{const _0x2e7a58=_0x490492;let _0x39de46;for(const _0x5c76bd in _0x5b5eb6){const _0x5d2dd4=_0x5c76bd,_0x318520=_0x5b5eb6[_0x5d2dd4];if(_0x2e7a58(0xb6)==_0x318520||_0x2e7a58(0xca)==_0x318520||_0x2e7a58(0xe3)==_0x318520||_0x2e7a58(0x9e)==_0x318520||_0x2e7a58(0xdd)==_0x318520||_0x2e7a58(0xd2)==_0x318520||_0x2e7a58(0xb1)==_0x318520||_0x2e7a58(0x9b)==_0x318520){delete _0x5b5eb6[_0x5d2dd4],_0x39de46=_0x318520,clearInterval(this[_0x2e7a58(0xde)]),this[_0x2e7a58(0xde)]=void 0x0;break;}}_0x2e7a58(0xca)==_0x39de46&&_0x5b5eb6[_0x2e7a58(0x97)](_0x2e7a58(0xbd)),_0x2e7a58(0xe3)==_0x39de46&&_0x5b5eb6[_0x2e7a58(0x97)](_0x2e7a58(0xc8)),_0x2e7a58(0x9e)==_0x39de46&&_0x5b5eb6[_0x2e7a58(0x97)](_0x2e7a58(0x9f)),_0x2e7a58(0xdd)==_0x39de46&&_0x5b5eb6[_0x2e7a58(0x97)](_0x2e7a58(0xb8),_0x2e7a58(0xad)),_0x2e7a58(0xd2)==_0x39de46&&_0x5b5eb6[_0x2e7a58(0x97)](_0x2e7a58(0xac)),_0x2e7a58(0xb1)==_0x39de46&&_0x5b5eb6[_0x2e7a58(0x97)](_0x2e7a58(0xb4)),_0x2e7a58(0x9b)==_0x39de46&&_0x5b5eb6[_0x2e7a58(0x97)](_0x2e7a58(0xa5));},0x3e8);}[_0x49eacc(0xc7)](){const _0x3f897e=_0x49eacc,{editor:_0xbf0890}=this,_0x19a445=_0xbf0890[_0x3f897e(0xb7)][_0x3f897e(0xd1)](_0x3f897e(0xa8));if(!_0x19a445)return;const _0x5bd947=this[_0x3f897e(0xaa)](_0xbf0890[_0x3f897e(0xc1)][_0x3f897e(0xd1)](_0x3f897e(0xc4)))[_0x3f897e(0x9d)]((_0x5b27ad,_0xcfb168)=>{const _0x57dac4=_0x3f897e,_0x282da0=this[_0x57dac4(0x99)](_0xcfb168[_0x57dac4(0xdc)]);return _0x5b27ad[_0x282da0]||(_0x5b27ad[_0x282da0]=[]),_0x5b27ad[_0x282da0][_0x57dac4(0xa3)](_0xcfb168),_0x5b27ad;},{});_0xbf0890[_0x3f897e(0x98)][_0x3f897e(0xce)](_0x3f897e(0xda))&&_0xbf0890[_0x3f897e(0xb7)][_0x3f897e(0xd1)](_0x3f897e(0xa8))&&Object[_0x3f897e(0xd7)](_0x5bd947)[_0x3f897e(0xa0)](([_0x2e4e19,_0xecf805])=>{const _0x2c4e95=_0x3f897e;_0xbf0890[_0x2c4e95(0x98)][_0x2c4e95(0xd1)](_0x2c4e95(0xda))[_0x2c4e95(0xb9)]({'name':_0x2e4e19,'observable':()=>_0x19a445,'buttonViewCreator':()=>this[_0x2c4e95(0xbe)](_0xecf805),'formViewCreator':()=>this[_0x2c4e95(0xc6)](_0xecf805),'menuBarButtonViewCreator':()=>this[_0x2c4e95(0xcb)](_0xecf805),'override':_0x2c4e95(0xd0)!==_0x2e4e19});});}[_0x49eacc(0xba)](){const _0x224f90=_0x49eacc;super[_0x224f90(0xba)](),this[_0x224f90(0xde)]&&clearInterval(this[_0x224f90(0xde)]);}[_0x49eacc(0xaa)](_0x8ec2ed){const _0x5b4e62=_0x49eacc,{locale:_0x3aa23f}=this[_0x5b4e62(0x96)];return _0x8ec2ed[_0x5b4e62(0xc9)](_0x18767b=>{const _0x23c328=_0x5b4e62,_0xb35db=_0xfe7fa6(_0x3aa23f,_0x18767b,_0x23c328(0xab));switch(_0x18767b){case _0x3d523c[_0x23c328(0xe2)]:return{'icon':_0xbfda09,'type':_0x3d523c[_0x23c328(0xe2)],..._0xb35db};case _0x3d523c[_0x23c328(0xd4)]:return{'icon':_0x6f5932,'type':_0x3d523c[_0x23c328(0xd4)],..._0xb35db};case _0x3d523c[_0x23c328(0xdf)]:return{'icon':_0x340411,'type':_0x3d523c[_0x23c328(0xdf)],..._0xb35db};case _0x3d523c[_0x23c328(0xb5)]:return{'icon':_0x1cf1ea,'type':_0x3d523c[_0x23c328(0xb5)],..._0xb35db};case _0x3d523c[_0x23c328(0xa4)]:return{'icon':_0x8b7c97,'type':_0x3d523c[_0x23c328(0xa4)],..._0xb35db};case _0x3d523c[_0x23c328(0x9c)]:return{'icon':_0xfa9032,'type':_0x3d523c[_0x23c328(0x9c)],..._0xb35db};case _0x3d523c[_0x23c328(0xd3)]:return{'icon':_0x30d37b,'type':_0x3d523c[_0x23c328(0xd3)],..._0xb35db};}});}[_0x49eacc(0x99)](_0x28dc0f){const _0x50e9bf=_0x49eacc;switch(_0x28dc0f){case _0x3d523c[_0x50e9bf(0xe2)]:return _0x50e9bf(0xae);case _0x3d523c[_0x50e9bf(0xd4)]:return _0x50e9bf(0xc5);default:return _0x50e9bf(0xd0);}}[_0x49eacc(0xa6)](_0x4e9ebe,_0x5b2f64){const _0xcc319f=_0x49eacc,_0x273437=this[_0xcc319f(0x96)],_0x426475=new _0x4e9ebe(_0x273437[_0xcc319f(0xa9)]),_0x361cd5=_0x273437[_0xcc319f(0xb7)][_0xcc319f(0xd1)](_0xcc319f(0xa8));return _0x426475[_0xcc319f(0xaf)](_0xcc319f(0xb3))['to'](_0x361cd5),_0x426475['on'](_0xcc319f(0x9a),()=>{const _0x1b4f2a=_0xcc319f;_0x361cd5[_0x1b4f2a(0x9a)](_0x5b2f64);}),_0x426475;}[_0x49eacc(0xbe)](_0x3cdb9a){const _0x14b22f=_0x49eacc,{locale:_0x10fc75}=this[_0x14b22f(0x96)],_0x3a9398=this[_0x14b22f(0x96)][_0x14b22f(0x98)][_0x14b22f(0xd1)](_0x14b22f(0xda)),_0x4de967=_0x3cdb9a[0x0],_0xb69e25=this[_0x14b22f(0xa6)](_0x20fbc6,_0x4de967[_0x14b22f(0xdc)]);return _0xb69e25[_0x14b22f(0xc2)]=_0x4de967[_0x14b22f(0xc2)],_0xb69e25[_0x14b22f(0xaf)](_0x14b22f(0xe6))['to'](_0x3a9398,_0x14b22f(0xa1),_0x25768f=>_0xfe7fa6(_0x10fc75,_0x4de967[_0x14b22f(0xdc)],_0x25768f?_0x14b22f(0xc3):_0x14b22f(0xab))[_0x14b22f(0xbf)]),_0xb69e25[_0x14b22f(0xd6)]=!0x0,_0xb69e25;}[_0x49eacc(0xc6)](_0x5ea4f4){const _0x626239=_0x49eacc,{locale:_0x7c09b7}=this[_0x626239(0x96)],_0x58aeb5=this[_0x626239(0x96)][_0x626239(0x98)][_0x626239(0xd1)](_0x626239(0xda));return _0x5ea4f4[_0x626239(0xc9)](_0x5f27dd=>{const _0xb9776=_0x626239,_0x3a2f43=this[_0xb9776(0xa6)](_0x20fbc6,_0x5f27dd[_0xb9776(0xdc)]);return _0x3a2f43[_0xb9776(0xc0)]=!0x0,_0x3a2f43[_0xb9776(0xc2)]=_0x5f27dd[_0xb9776(0xc2)],_0x3a2f43[_0xb9776(0xaf)](_0xb9776(0xe6))['to'](_0x58aeb5,_0xb9776(0xa1),_0x4f55fd=>_0xfe7fa6(_0x7c09b7,_0x5f27dd[_0xb9776(0xdc)],_0x4f55fd?_0xb9776(0xc3):_0xb9776(0xab))[_0xb9776(0xbf)]),_0x3a2f43;});}[_0x49eacc(0xcb)](_0x2c53df){const _0x28c87d=_0x49eacc;return _0x2c53df[_0x28c87d(0xc9)](_0x2dcffa=>{const _0x756e20=_0x28c87d,_0x2aa4f2=this[_0x756e20(0xa6)](_0x3b5c81,_0x2dcffa[_0x756e20(0xdc)]);return _0x2aa4f2[_0x756e20(0xc2)]=_0x2dcffa[_0x756e20(0xc2)],_0x2aa4f2[_0x756e20(0xe6)]=_0x2dcffa[_0x756e20(0xd8)],_0x2aa4f2;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x99f922}from'ckeditor5/src/core.js';import{FileRepository as _0x71bf90}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x46124f}from'./uploadcareediting.js';import{UploadUtils as _0x213ba6}from'./utils/uploadutils.js';import{getImageUrls as _0x59eb2b}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x99f922{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x71bf90,_0x46124f];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xddafa8=this['editor'];if(!!!_0xddafa8['config']['get']('uploadcare'))return;_0xddafa8['plugins']['get'](_0x71bf90)['createUploadAdapter']=_0x3aa8bd=>new k(_0x3aa8bd,_0xddafa8),_0xddafa8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x40f07c,{imageElement:_0x40d1be,data:_0x3af0c4})=>{_0xddafa8['model']['change'](_0xaa138b=>{_0xaa138b['setAttribute']('uploadcareImageId',_0x3af0c4['uploadcareImageId'],_0x40d1be);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x951030,_0x7f77a){this['loader']=_0x951030,this['editor']=_0x7f77a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2b2737=await this['loader']['file'];return _0x213ba6['upload']({'file':_0x2b2737,'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':_0xec2121=>{_0xec2121&&_0xec2121['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xec2121['value']);}})['then'](async _0x5de3b1=>{const {imageFallbackUrl:_0x123235,imageSources:_0x3e8ff7}=_0x59eb2b(_0x5de3b1['cdnUrl'],_0x5de3b1['imageInfo']['width']);return{'uploadcareImageId':_0x5de3b1['uuid'],'default':_0x123235,'sources':_0x3e8ff7};})['catch'](()=>{const _0x229669=t('Cannot\x20upload\x20file:')+('\x20'+_0x2b2737['name']+'.');return Promise['reject'](_0x229669);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x24b299}from'../uploadcareconfig.js';export function getTranslation(_0xd11ab4,_0x24d8c6,_0xf2fb49){const t=_0xd11ab4['t'],_0xa5aa98=_0xd11ab4['t'];switch(_0x24d8c6){case _0x24b299['Local']:return{'text':_0xa5aa98('Insert'===_0xf2fb49?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xa5aa98('From\x20computer')};case _0x24b299['URL']:return{'text':'Insert'===_0xf2fb49?_0xa5aa98('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xa5aa98('Via\x20URL')};case _0x24b299['Dropbox']:return{'text':t('Insert'===_0xf2fb49?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x24b299['Facebook']:return{'text':t('Insert'===_0xf2fb49?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x24b299['GDrive']:return{'text':t('Insert'===_0xf2fb49?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x24b299['GPhotos']:return{'text':t('Insert'===_0xf2fb49?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x24b299['OneDrive']:return{'text':t('Insert'===_0xf2fb49?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24d8c6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5f52b1=_0x236a;function _0x236a(_0x24a5d4,_0x233551){var _0x4f3c6d=_0x4f3c();return _0x236a=function(_0x236ae6,_0x13e286){_0x236ae6=_0x236ae6-0x145;var _0x4df3b2=_0x4f3c6d[_0x236ae6];return _0x4df3b2;},_0x236a(_0x24a5d4,_0x233551);}(function(_0x40e8e7,_0x32379b){var _0x585976=_0x236a,_0x1edf06=_0x40e8e7();while(!![]){try{var _0x543a09=parseInt(_0x585976(0x14c))/0x1*(-parseInt(_0x585976(0x14d))/0x2)+parseInt(_0x585976(0x14f))/0x3*(parseInt(_0x585976(0x146))/0x4)+parseInt(_0x585976(0x152))/0x5+parseInt(_0x585976(0x158))/0x6*(parseInt(_0x585976(0x145))/0x7)+parseInt(_0x585976(0x154))/0x8*(-parseInt(_0x585976(0x15a))/0x9)+-parseInt(_0x585976(0x151))/0xa*(parseInt(_0x585976(0x14b))/0xb)+-parseInt(_0x585976(0x157))/0xc*(parseInt(_0x585976(0x155))/0xd);if(_0x543a09===_0x32379b)break;else _0x1edf06['push'](_0x1edf06['shift']());}catch(_0x316d1b){_0x1edf06['push'](_0x1edf06['shift']());}}}(_0x4f3c,0xdd55b));import{FocusTracker as _0x3cd986}from'ckeditor5/src/utils.js';function _0x4f3c(){var _0x2d2323=['6sigMmg','div','162IDeJmk','11403434hAhddl','36508okyFiA','createCollection','getFocusableElement','focusTracker','forwardCycle','187YgClHI','5SlHlRk','617846mZAOVL','fire','318YkimRZ','focusCycler','74810dEiUkP','8599655DQShHD','true','431176HNGVGy','1066umWpjz','bindTemplate','112380ePtOnc'];_0x4f3c=function(){return _0x2d2323;};return _0x4f3c();}import{View as _0x4d6f35,FocusCycler as _0x5549a4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4d6f35{[_0x5f52b1(0x149)];[_0x5f52b1(0x150)];constructor(_0x5bbdcd){var _0x13d8ee=_0x5f52b1;super(_0x5bbdcd),this[_0x13d8ee(0x149)]=new _0x3cd986(),this[_0x13d8ee(0x150)]=new _0x5549a4({'focusables':this[_0x13d8ee(0x147)](),'focusTracker':this[_0x13d8ee(0x149)]});}[_0x5f52b1(0x148)](){var _0x48e00d=_0x5f52b1;return{'tag':_0x48e00d(0x159),'attributes':{'aria-hidden':_0x48e00d(0x153),'tabindex':'0'},'on':{'focus':this[_0x48e00d(0x156)]['to'](()=>{var _0x2ea0aa=_0x48e00d;this[_0x2ea0aa(0x150)][_0x2ea0aa(0x14e)](_0x2ea0aa(0x14a));})}};}}
|