@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.10 → 45.2.1-alpha.3
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 _0x298bcf=_0x4f11;(function(_0xc42da,_0x434119){const _0x576279=_0x4f11,_0x2d267c=_0xc42da();while(!![]){try{const _0x575571=-parseInt(_0x576279(0xed))/0x1+parseInt(_0x576279(0x10b))/0x2+-parseInt(_0x576279(0x127))/0x3*(parseInt(_0x576279(0x120))/0x4)+parseInt(_0x576279(0xfd))/0x5+-parseInt(_0x576279(0x11b))/0x6+parseInt(_0x576279(0x105))/0x7+parseInt(_0x576279(0x138))/0x8*(parseInt(_0x576279(0x123))/0x9);if(_0x575571===_0x434119)break;else _0x2d267c['push'](_0x2d267c['shift']());}catch(_0x2dddd0){_0x2d267c['push'](_0x2d267c['shift']());}}}(_0x567e,0x96d5c));import{Plugin as _0x5664d7}from'ckeditor5/src/core.js';import{Dialog as _0x49bc84}from'ckeditor5/src/ui.js';import{createElement as _0x36d69d,global as _0x2591b5,uid as _0x2b1405}from'ckeditor5/src/utils.js';import _0x195367 from'./uploadcarecommand.js';import _0x5aaeb3 from'./uploadcareuploadadapter.js';function _0x567e(){const _0x3017ce=['UploadcareEditing','_ctxElement','iconHrefResolver','uploadcare.uploader','cleanupImage','requires','href','data-uc-image-id','model','#uc-icon-arrow-down','uc-config','map','2702810kyTwJz','ctxElement','extend','pluginName','view','locale','isOfficialPlugin','replaceImageSource','5191991MRnWnz','isRegistered','body','remove','closeMax','once','1461048XCueCc','downcast','isPremiumPlugin','conversion','commands','config','destroy','imageBlock','_initSchema','afterInit','configElement','uploadcareImageReplace','upcast','uploadcare.pubkey','add','selection','4685970sikSTQ','_initConversion','_initImageProcessingIndicator','insertImage','editing','196wlNSGf','getAttribute','true','12501BtRTLz','fromCharCode','removeAttribute','document','56226BKVjfQ','join','uploader','uc-upload-ctx-provider','_configElement','get','elementToAttribute','_initConfig','execute','listenTo','querySelector','PictureEditing','schema','init','attributeToAttribute','appendChild','_initCtx','5256Fryimk','for','imageInline','\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','getSelectedElement','uploadcare','contentLanguage','input[uploadcare-file-input]','608199cAhajJ','render','editor','uploadcareImageId'];_0x567e=function(){return _0x3017ce;};return _0x567e();}import{showImageProcessingIndicator as _0x586e5d}from'./utils/editingutils.js';function _0x4f11(_0x17d1c0,_0x2cb78d){const _0x567e21=_0x567e();return _0x4f11=function(_0x4f1185,_0x511a5a){_0x4f1185=_0x4f1185-0xe6;let _0x5edb98=_0x567e21[_0x4f1185];return _0x5edb98;},_0x4f11(_0x17d1c0,_0x2cb78d);}export default class i extends _0x5664d7{[_0x298bcf(0x12b)]=null;[_0x298bcf(0xf2)]=null;static get[_0x298bcf(0x100)](){const _0x4da4f8=_0x298bcf;return _0x4da4f8(0xf1);}static get[_0x298bcf(0xf6)](){const _0xf3c973=_0x298bcf;return[_0xf3c973(0x132),_0x5aaeb3,_0x49bc84];}static get[_0x298bcf(0x103)](){return!0x0;}static get[_0x298bcf(0x10d)](){return!0x0;}get[_0x298bcf(0x115)](){const _0x1d1778=_0x298bcf;return this[_0x1d1778(0x12b)];}get[_0x298bcf(0xfe)](){const _0x3e99d1=_0x298bcf;return this[_0x3e99d1(0xf2)];}[_0x298bcf(0x134)](){const _0x54bd41=_0x298bcf,_0x3bd57c=this[_0x54bd41(0xef)];_0x3bd57c[_0x54bd41(0x10f)][_0x54bd41(0x119)](_0x54bd41(0xea),new _0x195367(_0x3bd57c));}[_0x298bcf(0x114)](){const _0x5d021f=_0x298bcf;this[_0x5d021f(0x113)](),this[_0x5d021f(0x11c)](),this[_0x5d021f(0x12e)](),this[_0x5d021f(0x137)](),this[_0x5d021f(0x11d)](),this[_0x5d021f(0x130)](this[_0x5d021f(0xef)],_0x5d021f(0x111),()=>{const _0x40900b=_0x5d021f;this[_0x40900b(0x12b)]&&(this[_0x40900b(0x12b)][_0x40900b(0x108)](),this[_0x40900b(0x12b)]=null),this[_0x40900b(0xf2)]&&(this[_0x40900b(0xf2)][_0x40900b(0x108)](),this[_0x40900b(0xf2)]=null);const _0x31d8f6=_0x2591b5[_0x40900b(0x126)][_0x40900b(0x131)](_0x40900b(0xec));_0x31d8f6&&_0x31d8f6[_0x40900b(0x108)]();}),async function(_0x451a49){const _0x1dee47=_0x58162b([0x61,0x6b,0x73,0x45,0x44,0x38,0x67,0x41,0x6c,0x37,0x33,0x31,0x5a,0x71,0x48,0x51,0x4d,0x76,0x43,0x4f,0x4c,0x35,0x77,0x65,0x70,0x34,0x54,0x63,0x75,0x57,0x59,0x46,0x58,0x55,0x72,0x6a,0x68,0x6e,0x74,0x53,0x4e,0x7a,0x36,0x62,0x4a,0x69,0x56,0x49,0x30,0x50,0x6f,0x42,0x32,0x78,0x47,0x52,0x4b,0x39,0x6d,0x64,0x79,0x66]),_0x7dc2e=0x34dc2b6c,_0x3356df=0x34db40c4^_0x7dc2e,_0x484065=window[_0x58162b([0x44,0x61,0x74,0x65])][_0x58162b([0x6e,0x6f,0x77])](),_0x3b7ccf=_0x451a49[_0x58162b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23a848=new window[(_0x58162b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22e31d=>{_0x3b7ccf[_0x58162b([0x6f,0x6e,0x63,0x65])](_0x58162b([0x72,0x65,0x61,0x64,0x79]),_0x22e31d);}),_0x127d3c={[_0x58162b([0x6b,0x74,0x79])]:_0x58162b([0x45,0x43]),[_0x58162b([0x75,0x73,0x65])]:_0x58162b([0x73,0x69,0x67]),[_0x58162b([0x63,0x72,0x76])]:_0x58162b([0x50,0x2d,0x32,0x35,0x36]),[_0x58162b([0x78])]:_0x58162b([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]),[_0x58162b([0x79])]:_0x58162b([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]),[_0x58162b([0x61,0x6c,0x67])]:_0x58162b([0x45,0x53,0x32,0x35,0x36])},_0x9a8ce=_0x3b7ccf[_0x58162b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58162b([0x67,0x65,0x74])](_0x58162b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8388f5(){let _0x1285d7,_0x223c59=null,_0x13e2d2=null;try{if(_0x9a8ce==_0x58162b([0x47,0x50,0x4c]))return _0x58162b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1285d7=_0xaf3212(),!_0x1285d7)return _0x58162b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1285d7[_0x58162b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13e2d2=_0x2f66b4(_0x1285d7[_0x58162b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1285d7[_0x58162b([0x6a,0x74,0x69])])),await _0x25b76f()?_0x58c2be()?_0x5289a1()?_0x58162b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x211453()?(_0x1285d7[_0x58162b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58162b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x223c59=_0x102d7e(_0x58162b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1285d7[_0x58162b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58162b([0x74,0x72,0x69,0x61,0x6c])&&(_0x223c59=_0x102d7e(_0x58162b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e0236()):_0x58162b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58162b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58162b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58162b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5289a1(){const _0x5f19ea=[_0x58162b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58162b([0x74,0x72,0x69,0x61,0x6c])][_0x58162b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1285d7[_0x58162b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x484065/0x3e8:0xe10*_0x3356df;return _0x1285d7[_0x58162b([0x65,0x78,0x70])]<_0x5f19ea;}function _0x58c2be(){const _0x200a68=_0x1285d7[_0x58162b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x200a68&&(!!_0x200a68[_0x58162b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58162b([0x2a]))||!!_0x200a68[_0x58162b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58162b([0x55,0x50,0x4c,0x43])));}function _0x211453(){const _0x53824c=_0x4f11,_0x362151=_0x1285d7[_0x58162b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x362151||0x0==_0x362151[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3aaf21}=new URL(window[_0x58162b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x53824c(0xf7)]);if(_0x362151[_0x58162b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aaf21))return!0x0;const _0x123847=_0x3aaf21[_0x58162b([0x73,0x70,0x6c,0x69,0x74])](_0x58162b([0x2e]));return _0x362151[_0x58162b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x563934=>_0x563934[_0x58162b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58162b([0x2a])))[_0x58162b([0x6d,0x61,0x70])](_0x432bfd=>_0x432bfd[_0x58162b([0x73,0x70,0x6c,0x69,0x74])](_0x58162b([0x2e])))[_0x58162b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa37b64=>_0xa37b64[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x123847[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58162b([0x6d,0x61,0x70])](_0x53b9fd=>Array(_0x123847[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53b9fd[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58162b([0x66,0x69,0x6c,0x6c])](_0x53b9fd[0x0]===_0x58162b([0x2a])?_0x58162b([0x2a]):'')[_0x58162b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53b9fd))[_0x58162b([0x73,0x6f,0x6d,0x65])](_0x5c0bc3=>_0x123847[_0x58162b([0x65,0x76,0x65,0x72,0x79])]((_0x1f9e6d,_0x2c5791)=>_0x5c0bc3[_0x2c5791]===_0x1f9e6d||_0x5c0bc3[_0x2c5791]===_0x58162b([0x2a])));}function _0x1e0236(){return _0x223c59&&_0x13e2d2?new window[(_0x58162b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc07c82,_0x18dd73)=>{_0x223c59[_0x58162b([0x74,0x68,0x65,0x6e])](_0xc07c82,_0x18dd73),_0x13e2d2[_0x58162b([0x74,0x68,0x65,0x6e])](_0x18d8d6=>{_0x18d8d6!=_0x58162b([0x56,0x61,0x6c,0x69,0x64])&&_0xc07c82(_0x18d8d6);},_0x18dd73);}):_0x223c59||_0x13e2d2||_0x58162b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f66b4(_0x57e6b6,_0x4fd8a9){return new window[(_0x58162b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfeba83=>{if(_0x2068e8())return _0xfeba83(_0x58162b([0x56,0x61,0x6c,0x69,0x64]));_0x4d6808(),_0x3b7ccf[_0x58162b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58162b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cedf5=!0x1;const _0x4de79e=_0x2b1405();function _0xbb7d22(_0x97aa36){return!!_0x97aa36&&(typeof _0x97aa36===_0x58162b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x97aa36===_0x58162b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x97aa36[_0x58162b([0x74,0x68,0x65,0x6e])]===_0x58162b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x97aa36[_0x58162b([0x63,0x61,0x74,0x63,0x68])]===_0x58162b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c9984(_0x393bcc){_0x272204(_0x393bcc)[_0x58162b([0x74,0x68,0x65,0x6e])](_0xf4c91f=>{if(!_0xf4c91f||_0xf4c91f[_0x58162b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58162b([0x6f,0x6b]))return _0x58162b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a4243(_0x594fe6(_0x4de79e+_0x4fd8a9))!=_0xf4c91f[_0x58162b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58162b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58162b([0x56,0x61,0x6c,0x69,0x64]);})[_0x58162b([0x74,0x68,0x65,0x6e])](_0x5ecac3=>(_0x494eca(),_0x5ecac3),()=>{const _0x2d7b87=_0x2c0539();return null==_0x2d7b87?(_0x494eca(),_0x58162b([0x56,0x61,0x6c,0x69,0x64])):_0x58162b(_0x484065-_0x2d7b87>(0x10d0af6c^_0x7dc2e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58162b([0x74,0x68,0x65,0x6e])](_0xfeba83)[_0x58162b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfeba83(_0x58162b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf1083b=0x34eac5ec^_0x7dc2e;function _0x494eca(){const _0x244aa3=_0x58162b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a4243(_0x594fe6(_0x57e6b6)),_0x896a6a=_0x15e611(_0x2a4243(window[_0x58162b([0x4d,0x61,0x74,0x68])][_0x58162b([0x63,0x65,0x69,0x6c])](_0x484065/_0xf1083b)));window[_0x58162b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58162b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x244aa3,_0x896a6a);}function _0x2c0539(){const _0x3cd468=_0x58162b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a4243(_0x594fe6(_0x57e6b6)),_0x270219=window[_0x58162b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58162b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cd468);return _0x270219?window[_0x58162b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e611(_0x270219),0x10)*_0xf1083b:null;}function _0x272204(_0x447f75){return new window[(_0x58162b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x571196,_0x15e6f6)=>{_0x447f75[_0x58162b([0x74,0x68,0x65,0x6e])](_0x571196,_0x15e6f6),window[_0x58162b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15e6f6,0x34ddffac^_0x7dc2e);});}}_0x3b7ccf[_0x58162b([0x6f,0x6e])](_0x58162b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f61f0,_0x1ef8dc)=>{if(_0x1ef8dc[0x0]!=_0x57e6b6)return _0xfeba83(_0x58162b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ef8dc[0x1]={..._0x1ef8dc[0x1],[_0x58162b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4de79e};},{[_0x58162b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58162b([0x68,0x69,0x67,0x68])}),_0x3b7ccf[_0x58162b([0x6f,0x6e])](_0x58162b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x212904=>{_0xbb7d22(_0x212904[_0x58162b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cedf5=!0x0,_0x1c9984(_0x212904[_0x58162b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58162b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58162b([0x6c,0x6f,0x77])}),_0x23a848[_0x58162b([0x74,0x68,0x65,0x6e])](()=>{_0x4cedf5||_0xfeba83(_0x58162b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2068e8(){return _0x3b7ccf[_0x58162b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58162b([0x76,0x69,0x65,0x77])][_0x58162b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58162b([0x61,0x75,0x74,0x6f]);}function _0x4d6808(){_0x3b7ccf[_0x58162b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58162b([0x76,0x69,0x65,0x77])][_0x58162b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58162b([0x61,0x75,0x74,0x6f]);}}function _0x102d7e(_0x5bd0e7){const _0x1bd52e=[new window[(_0x58162b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9a0eca=>setTimeout(_0x9a0eca,0x34d515a0^_0x7dc2e)),_0x23a848[_0x58162b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58162b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591b2a=>{let _0x13ecf2=0x0;_0x3b7ccf[_0x58162b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58162b([0x6f,0x6e])](_0x58162b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ac474,_0x3ef3bb)=>{_0x3ef3bb[0x0][_0x58162b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13ecf2++,_0x13ecf2==(0x34dc2a94^_0x7dc2e)&&(_0x591b2a(),_0x2ac474[_0x58162b([0x6f,0x66,0x66])]());});}))];return window[_0x58162b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58162b([0x72,0x61,0x63,0x65])](_0x1bd52e)[_0x58162b([0x74,0x68,0x65,0x6e])](()=>_0x5bd0e7);}async function _0x444da6(){await _0x23a848,_0x3b7ccf[_0x58162b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58162b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a0338,_0x3b7ccf[_0x58162b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58162b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a0338,_0x3b7ccf[_0x58162b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58162b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f5bd6(_0x3c120f){const _0x291b6c=_0x4ff997();_0x3b7ccf[_0x291b6c]=_0x58162b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c120f,_0x3c120f!=_0x58162b([0x56,0x61,0x6c,0x69,0x64])&&_0x444da6();}function _0x4ff997(){const _0x25be9c=window[_0x58162b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58162b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58162b([0x6e,0x6f,0x77])]())[_0x58162b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58162b([0x2e]),'');let _0x4f17fb=_0x58162b([0x61]);for(let _0x4c807c=0x0;_0x4c807c<_0x25be9c[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c807c+=0x2){let _0x2062a0=window[_0x58162b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25be9c[_0x58162b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c807c,_0x4c807c+0x2));_0x2062a0>=_0x1dee47[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2062a0-=_0x1dee47[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f17fb+=_0x1dee47[_0x2062a0];}return _0x4f17fb;}function _0xaf3212(){const _0x22986c=_0x9a8ce[_0x58162b([0x73,0x70,0x6c,0x69,0x74])](_0x58162b([0x2e]));if(0x3!=_0x22986c[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x574c61(_0x22986c[0x1]);function _0x574c61(_0xc8275a){const _0x59edc7=_0x130cb9(_0xc8275a);return _0x59edc7&&_0x3e90cd()?_0x59edc7:null;function _0x3e90cd(){const _0x38095e=_0x59edc7[_0x58162b([0x6a,0x74,0x69])],_0x1f945b=window[_0x58162b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38095e[_0x58162b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38095e[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43e6bc={..._0x59edc7,[_0x58162b([0x6a,0x74,0x69])]:_0x38095e[_0x58162b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38095e[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43e6bc[_0x58162b([0x76,0x63])],_0x594fe6(_0x43e6bc)==_0x1f945b;}}}async function _0x25b76f(){let _0x164374=!0x0;try{const _0x41787d=_0x9a8ce[_0x58162b([0x73,0x70,0x6c,0x69,0x74])](_0x58162b([0x2e])),[_0x39193e,_0xc4fc6c,_0xd6bf87]=_0x41787d;return _0x1593a3(_0x39193e),await _0x3108bd(_0x39193e,_0xc4fc6c,_0xd6bf87),_0x164374;}catch{return!0x1;}function _0x1593a3(_0x4b69b2){const _0x45dbb2=_0x130cb9(_0x4b69b2);_0x45dbb2&&_0x45dbb2[_0x58162b([0x61,0x6c,0x67])]==_0x58162b([0x45,0x53,0x32,0x35,0x36])||(_0x164374=!0x1);}async function _0x3108bd(_0x19f154,_0x24a9ca,_0x489c73){const _0x17b6b6=window[_0x58162b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58162b([0x66,0x72,0x6f,0x6d])](_0x5e4927(_0x489c73),_0xb56abc=>_0xb56abc[_0x58162b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3463be=new window[(_0x58162b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58162b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19f154+_0x58162b([0x2e])+_0x24a9ca),_0x98ad2f=window[_0x58162b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58162b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x98ad2f)return;const _0x4ccff7=await _0x98ad2f[_0x58162b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58162b([0x6a,0x77,0x6b]),_0x127d3c,{[_0x58162b([0x6e,0x61,0x6d,0x65])]:_0x58162b([0x45,0x43,0x44,0x53,0x41]),[_0x58162b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58162b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58162b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x98ad2f[_0x58162b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58162b([0x6e,0x61,0x6d,0x65])]:_0x58162b([0x45,0x43,0x44,0x53,0x41]),[_0x58162b([0x68,0x61,0x73,0x68])]:{[_0x58162b([0x6e,0x61,0x6d,0x65])]:_0x58162b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ccff7,_0x17b6b6,_0x3463be)||(_0x164374=!0x1);}}function _0x130cb9(_0x1a4197){return _0x1a4197[_0x58162b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58162b([0x65,0x79]))?JSON[_0x58162b([0x70,0x61,0x72,0x73,0x65])](_0x5e4927(_0x1a4197)):null;}function _0x5e4927(_0x41157f){return window[_0x58162b([0x61,0x74,0x6f,0x62])](_0x41157f[_0x58162b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58162b([0x2b]))[_0x58162b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58162b([0x2f])));}function _0x594fe6(_0x41e308){let _0x353998=0x1505;function _0x358195(_0x56ca73){for(let _0x3fc078=0x0;_0x3fc078<_0x56ca73[_0x58162b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fc078++){const _0x1c9188=_0x56ca73[_0x58162b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fc078);_0x353998=(_0x353998<<0x5)+_0x353998+_0x1c9188,_0x353998&=_0x353998;}}function _0x22d6c0(_0x19c757){Array[_0x58162b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19c757)?_0x19c757[_0x58162b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22d6c0):_0x19c757&&typeof _0x19c757==_0x58162b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58162b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19c757)[_0x58162b([0x73,0x6f,0x72,0x74])]()[_0x58162b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fc0fb,_0x5afb18])=>{_0x358195(_0x4fc0fb),_0x22d6c0(_0x5afb18);}):_0x358195(window[_0x58162b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19c757));}return _0x22d6c0(_0x41e308),_0x353998>>>0x0;}function _0x2a4243(_0x5a9474){return _0x5a9474[_0x58162b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58162b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58162b([0x30]));}function _0x15e611(_0x41c4c0){return _0x41c4c0[_0x58162b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58162b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58162b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a0338(){}function _0x58162b(_0x4a1813){const _0x2bcc79=_0x4f11;return _0x4a1813[_0x2bcc79(0xfc)](_0x44420d=>String[_0x2bcc79(0x124)](_0x44420d))[_0x2bcc79(0x128)]('');}_0x4f5bd6(await _0x8388f5());}(this);}[_0x298bcf(0x113)](){const _0x53c96c=_0x298bcf,_0x2655d9=this[_0x53c96c(0xef)][_0x53c96c(0xf9)][_0x53c96c(0x133)];_0x2655d9[_0x53c96c(0x106)](_0x53c96c(0x112))&&_0x2655d9[_0x53c96c(0xff)](_0x53c96c(0x112),{'allowAttributes':[_0x53c96c(0xf0)]}),_0x2655d9[_0x53c96c(0x106)](_0x53c96c(0xe7))&&_0x2655d9[_0x53c96c(0xff)](_0x53c96c(0xe7),{'allowAttributes':[_0x53c96c(0xf0)]});}[_0x298bcf(0x11c)](){const _0x2a16a0=_0x298bcf,_0x27ae98=this[_0x2a16a0(0xef)];_0x27ae98[_0x2a16a0(0x10e)][_0x2a16a0(0xe6)](_0x2a16a0(0x10c))[_0x2a16a0(0x135)]({'model':_0x2a16a0(0xf0),'view':_0x2a16a0(0xf8)}),_0x27ae98[_0x2a16a0(0x10e)][_0x2a16a0(0xe6)](_0x2a16a0(0x117))[_0x2a16a0(0x12d)]({'model':{'key':_0x2a16a0(0xf0),'value':_0x192b8d=>_0x192b8d[_0x2a16a0(0x121)](_0x2a16a0(0xf8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4eab4f=_0x27ae98[_0x2a16a0(0x10f)][_0x2a16a0(0x12c)](_0x2a16a0(0x104));_0x4eab4f&&this[_0x2a16a0(0x130)](_0x4eab4f,_0x2a16a0(0xf5),(_0x1073b0,[_0x896887,_0x402768])=>{const _0xbbc9c7=_0x2a16a0;_0x896887[_0xbbc9c7(0x125)](_0xbbc9c7(0xf0),_0x402768);});}[_0x298bcf(0x12e)](){const _0x270706=_0x298bcf,_0x1b7f0a=this[_0x270706(0xef)][_0x270706(0x110)][_0x270706(0x12c)](_0x270706(0xf4))||{},_0xf5758f=this[_0x270706(0xef)][_0x270706(0x110)][_0x270706(0x12c)](_0x270706(0x118))||'';this[_0x270706(0x12b)]=_0x36d69d(_0x2591b5[_0x270706(0x126)],_0x270706(0xfb),{..._0x1b7f0a,'pubkey':_0xf5758f,'ctx-name':_0x270706(0x129),'sourceList':'','imgOnly':_0x270706(0x122),'removeCopyright':_0x270706(0x122),'localeName':this[_0x270706(0xef)][_0x270706(0x102)][_0x270706(0xeb)],'externalSourcesEmbedCss':_0x270706(0xe8)}),this[_0x270706(0x12b)][_0x270706(0xf3)]=_0x2d4dd1=>{const _0x3a29d2=_0x270706;if(_0x3a29d2(0x109)==_0x2d4dd1)return _0x3a29d2(0xfa);},_0x2591b5[_0x270706(0x126)][_0x270706(0x107)][_0x270706(0x136)](this[_0x270706(0x12b)]);}[_0x298bcf(0x137)](){const _0x5b0eba=_0x298bcf;this[_0x5b0eba(0xf2)]=_0x36d69d(_0x2591b5[_0x5b0eba(0x126)],_0x5b0eba(0x12a),{'ctx-name':_0x5b0eba(0x129)}),_0x2591b5[_0x5b0eba(0x126)][_0x5b0eba(0x107)][_0x5b0eba(0x136)](this[_0x5b0eba(0xf2)]);}[_0x298bcf(0x11d)](){const _0x441d52=_0x298bcf,_0x27bd81=this[_0x441d52(0xef)][_0x441d52(0x10f)][_0x441d52(0x12c)](_0x441d52(0x11e));_0x27bd81&&this[_0x441d52(0x130)](_0x27bd81,_0x441d52(0x12f),()=>{const _0x1e98cc=_0x441d52,_0x4d2688=this[_0x1e98cc(0xef)][_0x1e98cc(0xf9)][_0x1e98cc(0x126)][_0x1e98cc(0x11a)][_0x1e98cc(0xe9)]();_0x4d2688&&_0x4d2688[_0x1e98cc(0x121)](_0x1e98cc(0xf0))&&this[_0x1e98cc(0xef)][_0x1e98cc(0x11f)][_0x1e98cc(0x101)][_0x1e98cc(0x10a)](_0x1e98cc(0xee),()=>{const _0x144be1=_0x1e98cc;_0x586e5d(this[_0x144be1(0xef)],_0x4d2688);});});const _0x550e3a=this[_0x441d52(0xef)][_0x441d52(0x10f)][_0x441d52(0x12c)](_0x441d52(0x116));_0x550e3a&&this[_0x441d52(0x130)](_0x550e3a,_0x441d52(0x12f),()=>{const _0x3c0f53=_0x441d52,_0x487c5e=this[_0x3c0f53(0xef)][_0x3c0f53(0xf9)][_0x3c0f53(0x126)][_0x3c0f53(0x11a)][_0x3c0f53(0xe9)]();_0x487c5e&&_0x487c5e[_0x3c0f53(0x121)](_0x3c0f53(0xf0))&&this[_0x3c0f53(0xef)][_0x3c0f53(0x11f)][_0x3c0f53(0x101)][_0x3c0f53(0x10a)](_0x3c0f53(0xee),()=>{const _0x1f6059=_0x3c0f53;_0x586e5d(this[_0x1f6059(0xef)],_0x487c5e);});});}}
|
|
23
|
+
const _0x31e4a1=_0x4cd3;(function(_0xb1022c,_0x56c2ba){const _0x3c1e1c=_0x4cd3,_0x5735bb=_0xb1022c();while(!![]){try{const _0x305cd5=-parseInt(_0x3c1e1c(0xd3))/0x1*(-parseInt(_0x3c1e1c(0xd5))/0x2)+parseInt(_0x3c1e1c(0xfc))/0x3*(-parseInt(_0x3c1e1c(0x125))/0x4)+parseInt(_0x3c1e1c(0x11c))/0x5+-parseInt(_0x3c1e1c(0x126))/0x6*(parseInt(_0x3c1e1c(0x11f))/0x7)+parseInt(_0x3c1e1c(0xd9))/0x8+parseInt(_0x3c1e1c(0xff))/0x9*(-parseInt(_0x3c1e1c(0xf0))/0xa)+parseInt(_0x3c1e1c(0x10f))/0xb;if(_0x305cd5===_0x56c2ba)break;else _0x5735bb['push'](_0x5735bb['shift']());}catch(_0x39ced6){_0x5735bb['push'](_0x5735bb['shift']());}}}(_0x3d11,0x423d5));import{Plugin as _0x389235}from'ckeditor5/src/core.js';import{Dialog as _0x2f1691}from'ckeditor5/src/ui.js';import{createElement as _0x7a2c,global as _0x5b7fa8,uid as _0x19abac}from'ckeditor5/src/utils.js';import _0x16ec65 from'./uploadcarecommand.js';import _0x4629e3 from'./uploadcareuploadadapter.js';function _0x4cd3(_0x3d0786,_0x2e3acc){const _0x3d1184=_0x3d11();return _0x4cd3=function(_0x4cd3d9,_0x42d952){_0x4cd3d9=_0x4cd3d9-0xd2;let _0x29f190=_0x3d1184[_0x4cd3d9];return _0x29f190;},_0x4cd3(_0x3d0786,_0x2e3acc);}import{showImageProcessingIndicator as _0x51c788}from'./utils/editingutils.js';export default class i extends _0x389235{[_0x31e4a1(0x10c)]=null;[_0x31e4a1(0xdb)]=null;static get[_0x31e4a1(0x117)](){const _0x28d3d5=_0x31e4a1;return _0x28d3d5(0xea);}static get[_0x31e4a1(0x10a)](){const _0x404346=_0x31e4a1;return[_0x404346(0xd2),_0x4629e3,_0x2f1691];}static get[_0x31e4a1(0x11e)](){return!0x0;}static get[_0x31e4a1(0xf2)](){return!0x0;}get[_0x31e4a1(0x119)](){const _0x412472=_0x31e4a1;return this[_0x412472(0x10c)];}get[_0x31e4a1(0xda)](){const _0xfcb510=_0x31e4a1;return this[_0xfcb510(0xdb)];}[_0x31e4a1(0x10d)](){const _0x305c51=_0x31e4a1,_0x1a3874=this[_0x305c51(0xdf)];_0x1a3874[_0x305c51(0x120)][_0x305c51(0xf8)](_0x305c51(0xf3),new _0x16ec65(_0x1a3874));}[_0x31e4a1(0x105)](){const _0x91e752=_0x31e4a1;this[_0x91e752(0x11d)](),this[_0x91e752(0xf9)](),this[_0x91e752(0xd7)](),this[_0x91e752(0x111)](),this[_0x91e752(0xfd)](),this[_0x91e752(0x102)](this[_0x91e752(0xdf)],_0x91e752(0xf1),()=>{const _0x3bf1fd=_0x91e752;this[_0x3bf1fd(0x10c)]&&(this[_0x3bf1fd(0x10c)][_0x3bf1fd(0x113)](),this[_0x3bf1fd(0x10c)]=null),this[_0x3bf1fd(0xdb)]&&(this[_0x3bf1fd(0xdb)][_0x3bf1fd(0x113)](),this[_0x3bf1fd(0xdb)]=null);const _0x325cb4=_0x5b7fa8[_0x3bf1fd(0x106)][_0x3bf1fd(0x123)](_0x3bf1fd(0xf7));_0x325cb4&&_0x325cb4[_0x3bf1fd(0x113)]();}),async function(_0x4001a9){const _0x40299d=_0x546aa7([0x62,0x35,0x74,0x42,0x5a,0x46,0x41,0x53,0x68,0x50,0x63,0x73,0x52,0x56,0x79,0x69,0x36,0x45,0x48,0x49,0x47,0x33,0x4c,0x70,0x39,0x54,0x75,0x76,0x43,0x30,0x57,0x72,0x64,0x31,0x44,0x6b,0x67,0x51,0x4e,0x77,0x59,0x65,0x7a,0x4b,0x71,0x6c,0x6a,0x37,0x58,0x4a,0x38,0x4f,0x32,0x4d,0x66,0x6d,0x34,0x6e,0x6f,0x61,0x78,0x55]),_0x25c095=0xc508695,_0x3a214b=0xc57ec7d^_0x25c095,_0x14676d=window[_0x546aa7([0x44,0x61,0x74,0x65])][_0x546aa7([0x6e,0x6f,0x77])](),_0x417b88=_0x4001a9[_0x546aa7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f88ae=new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d24b4=>{_0x417b88[_0x546aa7([0x6f,0x6e,0x63,0x65])](_0x546aa7([0x72,0x65,0x61,0x64,0x79]),_0x1d24b4);}),_0x464787={[_0x546aa7([0x6b,0x74,0x79])]:_0x546aa7([0x45,0x43]),[_0x546aa7([0x75,0x73,0x65])]:_0x546aa7([0x73,0x69,0x67]),[_0x546aa7([0x63,0x72,0x76])]:_0x546aa7([0x50,0x2d,0x32,0x35,0x36]),[_0x546aa7([0x78])]:_0x546aa7([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]),[_0x546aa7([0x79])]:_0x546aa7([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]),[_0x546aa7([0x61,0x6c,0x67])]:_0x546aa7([0x45,0x53,0x32,0x35,0x36])},_0x501afd=_0x417b88[_0x546aa7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x546aa7([0x67,0x65,0x74])](_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d406f(){let _0x149a70,_0x176d70=null,_0x2f15db=null;try{if(_0x501afd==_0x546aa7([0x47,0x50,0x4c]))return _0x546aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x149a70=_0x445c9d(),!_0x149a70)return _0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x149a70[_0x546aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f15db=_0x275735(_0x149a70[_0x546aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x149a70[_0x546aa7([0x6a,0x74,0x69])])),await _0x323ed4()?_0x2c4a6f()?_0x1dced2()?_0x546aa7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x124947()?(_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x546aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x176d70=_0x5a3022(_0x546aa7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x546aa7([0x74,0x72,0x69,0x61,0x6c])&&(_0x176d70=_0x5a3022(_0x546aa7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe777cb()):_0x546aa7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x546aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dced2(){const _0x38f3a9=[_0x546aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x546aa7([0x74,0x72,0x69,0x61,0x6c])][_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14676d/0x3e8:0xe10*_0x3a214b;return _0x149a70[_0x546aa7([0x65,0x78,0x70])]<_0x38f3a9;}function _0x2c4a6f(){const _0x5ad5c0=_0x149a70[_0x546aa7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ad5c0&&(!!_0x5ad5c0[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x2a]))||!!_0x5ad5c0[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x55,0x50,0x4c,0x43])));}function _0x124947(){const _0xe5408=_0x4cd3,_0xcf3ee2=_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xcf3ee2||0x0==_0xcf3ee2[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ae582}=new URL(window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xe5408(0xe6)]);if(_0xcf3ee2[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae582))return!0x0;const _0x5371ff=_0x2ae582[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e]));return _0xcf3ee2[_0x546aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46a6c5=>_0x46a6c5[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x2a])))[_0x546aa7([0x6d,0x61,0x70])](_0x4aedb5=>_0x4aedb5[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e])))[_0x546aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e4f10=>_0x2e4f10[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5371ff[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x546aa7([0x6d,0x61,0x70])](_0x73c660=>Array(_0x5371ff[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x73c660[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x546aa7([0x66,0x69,0x6c,0x6c])](_0x73c660[0x0]===_0x546aa7([0x2a])?_0x546aa7([0x2a]):'')[_0x546aa7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x73c660))[_0x546aa7([0x73,0x6f,0x6d,0x65])](_0x9aae62=>_0x5371ff[_0x546aa7([0x65,0x76,0x65,0x72,0x79])]((_0x4fb91e,_0x4676f9)=>_0x9aae62[_0x4676f9]===_0x4fb91e||_0x9aae62[_0x4676f9]===_0x546aa7([0x2a])));}function _0xe777cb(){return _0x176d70&&_0x2f15db?new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x226387,_0x30654b)=>{_0x176d70[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x226387,_0x30654b),_0x2f15db[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x267ccf=>{_0x267ccf!=_0x546aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x226387(_0x267ccf);},_0x30654b);}):_0x176d70||_0x2f15db||_0x546aa7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x275735(_0x5b75e3,_0x291af8){return new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b2e03=>{if(_0xa17ede())return _0x1b2e03(_0x546aa7([0x56,0x61,0x6c,0x69,0x64]));_0x19f223(),_0x417b88[_0x546aa7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cf502=!0x1;const _0x53d8d1=_0x19abac();function _0x86222d(_0x46899a){return!!_0x46899a&&(typeof _0x46899a===_0x546aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46899a===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46899a[_0x546aa7([0x74,0x68,0x65,0x6e])]===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46899a[_0x546aa7([0x63,0x61,0x74,0x63,0x68])]===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f67c9(_0x47c0c5){_0x4fd02a(_0x47c0c5)[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x317de7=>{if(!_0x317de7||_0x317de7[_0x546aa7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x546aa7([0x6f,0x6b]))return _0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59a191(_0x59fe0b(_0x53d8d1+_0x291af8))!=_0x317de7[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x546aa7([0x56,0x61,0x6c,0x69,0x64]);})[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x2cf3d7=>(_0x43f632(),_0x2cf3d7),()=>{const _0x224f59=_0x218e2a();return null==_0x224f59?(_0x43f632(),_0x546aa7([0x56,0x61,0x6c,0x69,0x64])):_0x546aa7(_0x14676d-_0x224f59>(0x285c0295^_0x25c095)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x1b2e03)[_0x546aa7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e41cc=0xc666815^_0x25c095;function _0x43f632(){const _0x7eb3b9=_0x546aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x59a191(_0x59fe0b(_0x5b75e3)),_0x1b876a=_0x4b462a(_0x59a191(window[_0x546aa7([0x4d,0x61,0x74,0x68])][_0x546aa7([0x63,0x65,0x69,0x6c])](_0x14676d/_0x2e41cc)));window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x546aa7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7eb3b9,_0x1b876a);}function _0x218e2a(){const _0x108cdb=_0x546aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x59a191(_0x59fe0b(_0x5b75e3)),_0xee375f=window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x546aa7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x108cdb);return _0xee375f?window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b462a(_0xee375f),0x10)*_0x2e41cc:null;}function _0x4fd02a(_0x675c72){return new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4420e0,_0x109352)=>{_0x675c72[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x4420e0,_0x109352),window[_0x546aa7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x109352,0xc515255^_0x25c095);});}}_0x417b88[_0x546aa7([0x6f,0x6e])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5fdb3a,_0x369d8d)=>{if(_0x369d8d[0x0]!=_0x5b75e3)return _0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x369d8d[0x1]={..._0x369d8d[0x1],[_0x546aa7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53d8d1};},{[_0x546aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x546aa7([0x68,0x69,0x67,0x68])}),_0x417b88[_0x546aa7([0x6f,0x6e])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bda2b=>{_0x86222d(_0x4bda2b[_0x546aa7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cf502=!0x0,_0x1f67c9(_0x4bda2b[_0x546aa7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x546aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x546aa7([0x6c,0x6f,0x77])}),_0x2f88ae[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>{_0x3cf502||_0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa17ede(){return _0x417b88[_0x546aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x546aa7([0x76,0x69,0x65,0x77])][_0x546aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x546aa7([0x61,0x75,0x74,0x6f]);}function _0x19f223(){_0x417b88[_0x546aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x546aa7([0x76,0x69,0x65,0x77])][_0x546aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x546aa7([0x61,0x75,0x74,0x6f]);}}function _0x5a3022(_0x2481f8){const _0x49d176=[new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8b60=>setTimeout(_0x4a8b60,0xc59b859^_0x25c095)),_0x2f88ae[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20321b=>{let _0x47805b=0x0;_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x6f,0x6e])](_0x546aa7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5962a6,_0xaa437e)=>{_0xaa437e[0x0][_0x546aa7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47805b++,_0x47805b==(0xc50876d^_0x25c095)&&(_0x20321b(),_0x5962a6[_0x546aa7([0x6f,0x66,0x66])]());});}))];return window[_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x546aa7([0x72,0x61,0x63,0x65])](_0x49d176)[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>_0x2481f8);}async function _0x8f3aa1(){await _0x2f88ae,_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f5fd6,_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f5fd6,_0x417b88[_0x546aa7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x513a6a(_0x4acb12){const _0x3585a6=_0x426a19();_0x417b88[_0x3585a6]=_0x546aa7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4acb12,_0x4acb12!=_0x546aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x8f3aa1();}function _0x426a19(){const _0x547c7b=window[_0x546aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x546aa7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x546aa7([0x6e,0x6f,0x77])]())[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x546aa7([0x2e]),'');let _0xd57be5=_0x546aa7([0x62]);for(let _0x1160a5=0x0;_0x1160a5<_0x547c7b[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1160a5+=0x2){let _0x5b06c2=window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547c7b[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1160a5,_0x1160a5+0x2));_0x5b06c2>=_0x40299d[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b06c2-=_0x40299d[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd57be5+=_0x40299d[_0x5b06c2];}return _0xd57be5;}function _0x445c9d(){const _0x38c311=_0x501afd[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e]));if(0x3!=_0x38c311[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d4070(_0x38c311[0x1]);function _0x5d4070(_0x3cdf9e){const _0x41abd4=_0x23be7a(_0x3cdf9e);return _0x41abd4&&_0x591719()?_0x41abd4:null;function _0x591719(){const _0x1087fa=_0x41abd4[_0x546aa7([0x6a,0x74,0x69])],_0x171eb8=window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1087fa[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1087fa[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57688b={..._0x41abd4,[_0x546aa7([0x6a,0x74,0x69])]:_0x1087fa[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1087fa[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57688b[_0x546aa7([0x76,0x63])],_0x59fe0b(_0x57688b)==_0x171eb8;}}}async function _0x323ed4(){let _0x58755a=!0x0;try{const _0x2094da=_0x501afd[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e])),[_0x5e8d5f,_0x324371,_0x4be1ca]=_0x2094da;return _0x312b40(_0x5e8d5f),await _0x339669(_0x5e8d5f,_0x324371,_0x4be1ca),_0x58755a;}catch{return!0x1;}function _0x312b40(_0x163e4b){const _0x139c42=_0x23be7a(_0x163e4b);_0x139c42&&_0x139c42[_0x546aa7([0x61,0x6c,0x67])]==_0x546aa7([0x45,0x53,0x32,0x35,0x36])||(_0x58755a=!0x1);}async function _0x339669(_0x17eaf8,_0x44012a,_0x150ec0){const _0x170a4c=window[_0x546aa7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x546aa7([0x66,0x72,0x6f,0x6d])](_0x3f2d11(_0x150ec0),_0x187184=>_0x187184[_0x546aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32b255=new window[(_0x546aa7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x546aa7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17eaf8+_0x546aa7([0x2e])+_0x44012a),_0x2c7c06=window[_0x546aa7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x546aa7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c7c06)return;const _0x168985=await _0x2c7c06[_0x546aa7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x546aa7([0x6a,0x77,0x6b]),_0x464787,{[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x45,0x43,0x44,0x53,0x41]),[_0x546aa7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x546aa7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c7c06[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x45,0x43,0x44,0x53,0x41]),[_0x546aa7([0x68,0x61,0x73,0x68])]:{[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x168985,_0x170a4c,_0x32b255)||(_0x58755a=!0x1);}}function _0x23be7a(_0x5845d4){return _0x5845d4[_0x546aa7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x546aa7([0x65,0x79]))?JSON[_0x546aa7([0x70,0x61,0x72,0x73,0x65])](_0x3f2d11(_0x5845d4)):null;}function _0x3f2d11(_0x5a24df){return window[_0x546aa7([0x61,0x74,0x6f,0x62])](_0x5a24df[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x546aa7([0x2b]))[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x546aa7([0x2f])));}function _0x59fe0b(_0x24216c){let _0x1e16bd=0x1505;function _0x4f33cd(_0x48cb04){for(let _0x134961=0x0;_0x134961<_0x48cb04[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x134961++){const _0x554477=_0x48cb04[_0x546aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x134961);_0x1e16bd=(_0x1e16bd<<0x5)+_0x1e16bd+_0x554477,_0x1e16bd&=_0x1e16bd;}}function _0x1f7707(_0x183133){Array[_0x546aa7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x183133)?_0x183133[_0x546aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f7707):_0x183133&&typeof _0x183133==_0x546aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x546aa7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x183133)[_0x546aa7([0x73,0x6f,0x72,0x74])]()[_0x546aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59ef02,_0x3ab707])=>{_0x4f33cd(_0x59ef02),_0x1f7707(_0x3ab707);}):_0x4f33cd(window[_0x546aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x183133));}return _0x1f7707(_0x24216c),_0x1e16bd>>>0x0;}function _0x59a191(_0x12dc49){return _0x12dc49[_0x546aa7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x546aa7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x546aa7([0x30]));}function _0x4b462a(_0x32ea7e){return _0x32ea7e[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x546aa7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x546aa7([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f5fd6(){}function _0x546aa7(_0x35c305){const _0x55cd2c=_0x4cd3;return _0x35c305[_0x55cd2c(0xe4)](_0x42a562=>String[_0x55cd2c(0xe5)](_0x42a562))[_0x55cd2c(0xe7)]('');}_0x513a6a(await _0x3d406f());}(this);}[_0x31e4a1(0x11d)](){const _0x223304=_0x31e4a1,_0x4357d4=this[_0x223304(0xdf)][_0x223304(0x112)][_0x223304(0x11a)];_0x4357d4[_0x223304(0x124)](_0x223304(0xd6))&&_0x4357d4[_0x223304(0x122)](_0x223304(0xd6),{'allowAttributes':[_0x223304(0x11b)]}),_0x4357d4[_0x223304(0x124)](_0x223304(0xe9))&&_0x4357d4[_0x223304(0x122)](_0x223304(0xe9),{'allowAttributes':[_0x223304(0x11b)]});}[_0x31e4a1(0xf9)](){const _0x820933=_0x31e4a1,_0x2fe376=this[_0x820933(0xdf)];_0x2fe376[_0x820933(0x104)][_0x820933(0xe8)](_0x820933(0x10e))[_0x820933(0xfb)]({'model':_0x820933(0x11b),'view':_0x820933(0xed)}),_0x2fe376[_0x820933(0x104)][_0x820933(0xe8)](_0x820933(0x118))[_0x820933(0x121)]({'model':{'key':_0x820933(0x11b),'value':_0x8f40b3=>_0x8f40b3[_0x820933(0x108)](_0x820933(0xed))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f7e39=_0x2fe376[_0x820933(0x120)][_0x820933(0xfa)](_0x820933(0x109));_0x4f7e39&&this[_0x820933(0x102)](_0x4f7e39,_0x820933(0xdd),(_0x56c39a,[_0x1145ac,_0x573ccb])=>{const _0x15d329=_0x820933;_0x1145ac[_0x15d329(0xec)](_0x15d329(0x11b),_0x573ccb);});}[_0x31e4a1(0xd7)](){const _0xcdac17=_0x31e4a1,_0x24638e=this[_0xcdac17(0xdf)][_0xcdac17(0xd8)][_0xcdac17(0xfa)](_0xcdac17(0xf5))||{},_0x486a19=this[_0xcdac17(0xdf)][_0xcdac17(0xd8)][_0xcdac17(0xfa)](_0xcdac17(0xd4))||'';this[_0xcdac17(0x10c)]=_0x7a2c(_0x5b7fa8[_0xcdac17(0x106)],_0xcdac17(0xeb),{..._0x24638e,'pubkey':_0x486a19,'ctx-name':_0xcdac17(0xe1),'sourceList':'','imgOnly':_0xcdac17(0x115),'removeCopyright':_0xcdac17(0x115),'localeName':this[_0xcdac17(0xdf)][_0xcdac17(0xe0)][_0xcdac17(0xfe)],'externalSourcesEmbedCss':_0xcdac17(0x107)}),this[_0xcdac17(0x10c)][_0xcdac17(0x103)]=_0x35703=>{const _0x578327=_0xcdac17;if(_0x578327(0xde)==_0x35703)return _0x578327(0x116);},_0x5b7fa8[_0xcdac17(0x106)][_0xcdac17(0xee)][_0xcdac17(0xf6)](this[_0xcdac17(0x10c)]);}[_0x31e4a1(0x111)](){const _0x2157ba=_0x31e4a1;this[_0x2157ba(0xdb)]=_0x7a2c(_0x5b7fa8[_0x2157ba(0x106)],_0x2157ba(0xf4),{'ctx-name':_0x2157ba(0xe1)}),_0x5b7fa8[_0x2157ba(0x106)][_0x2157ba(0xee)][_0x2157ba(0xf6)](this[_0x2157ba(0xdb)]);}[_0x31e4a1(0xfd)](){const _0x17dba3=_0x31e4a1,_0x5ee70b=this[_0x17dba3(0xdf)][_0x17dba3(0x120)][_0x17dba3(0xfa)](_0x17dba3(0xef));_0x5ee70b&&this[_0x17dba3(0x102)](_0x5ee70b,_0x17dba3(0x101),()=>{const _0x549f6a=_0x17dba3,_0x4eb389=this[_0x549f6a(0xdf)][_0x549f6a(0x112)][_0x549f6a(0x106)][_0x549f6a(0x114)][_0x549f6a(0xe2)]();_0x4eb389&&_0x4eb389[_0x549f6a(0x108)](_0x549f6a(0x11b))&&this[_0x549f6a(0xdf)][_0x549f6a(0x100)][_0x549f6a(0x110)][_0x549f6a(0x10b)](_0x549f6a(0xdc),()=>{const _0x37a510=_0x549f6a;_0x51c788(this[_0x37a510(0xdf)],_0x4eb389);});});const _0xa29605=this[_0x17dba3(0xdf)][_0x17dba3(0x120)][_0x17dba3(0xfa)](_0x17dba3(0xe3));_0xa29605&&this[_0x17dba3(0x102)](_0xa29605,_0x17dba3(0x101),()=>{const _0x3e8af9=_0x17dba3,_0x392de2=this[_0x3e8af9(0xdf)][_0x3e8af9(0x112)][_0x3e8af9(0x106)][_0x3e8af9(0x114)][_0x3e8af9(0xe2)]();_0x392de2&&_0x392de2[_0x3e8af9(0x108)](_0x3e8af9(0x11b))&&this[_0x3e8af9(0xdf)][_0x3e8af9(0x100)][_0x3e8af9(0x110)][_0x3e8af9(0x10b)](_0x3e8af9(0xdc),()=>{const _0x49d8fd=_0x3e8af9;_0x51c788(this[_0x49d8fd(0xdf)],_0x392de2);});});}}function _0x3d11(){const _0x2b5dd3=['attributeToAttribute','6RezvdQ','_initImageProcessingIndicator','contentLanguage','4122GXUlBb','editing','execute','listenTo','iconHrefResolver','conversion','afterInit','document','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','getAttribute','replaceImageSource','requires','once','_configElement','init','downcast','5672909Pfuydj','view','_initCtx','model','remove','selection','true','#uc-icon-arrow-down','pluginName','upcast','configElement','schema','uploadcareImageId','2087320HJfzvw','_initSchema','isOfficialPlugin','960281qkHgBD','commands','elementToAttribute','extend','querySelector','isRegistered','428468FvZnNF','12DXIjct','PictureEditing','29MDkalB','uploadcare.pubkey','16462zIFIMd','imageBlock','_initConfig','config','152104LASCot','ctxElement','_ctxElement','render','cleanupImage','closeMax','editor','locale','uploader','getSelectedElement','uploadcareImageReplace','map','fromCharCode','href','join','for','imageInline','UploadcareEditing','uc-config','removeAttribute','data-uc-image-id','body','insertImage','9410VuafsY','destroy','isPremiumPlugin','uploadcare','uc-upload-ctx-provider','uploadcare.uploader','appendChild','input[uploadcare-file-input]','add','_initConversion','get'];_0x3d11=function(){return _0x2b5dd3;};return _0x3d11();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5316ba,ObservableMixin as _0x196fdd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4db1d0}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2a413d}from'ckeditor5/src/icons.js';import _0x2c0d75 from'./uploadcareimageeditformview.js';import _0x48d6ba from'../../utils/uploadutils.js';import{getImageUrls as _0x955207,getImageDimension as _0x158f5f}from'../../utils/editingutils.js';import{isAncestor as _0x48a095}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x196fdd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3cc429,_0x5102f7,_0x594704){super(),this['_editor']=_0x3cc429,this['_dialog']=_0x5102f7,this['_imageElement']=_0x594704,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 _0x38ecd2=this['_imageElement'],_0x308790=_0x38ecd2['getAttribute']('uploadcareImageId'),_0x2df07d=_0x38ecd2['getAttribute']('src');if(_0x308790)await this['_loadImageInfo'](_0x308790,_0x2df07d);else{if(this['_imageCache']['has'](_0x2df07d)){const _0x8f9b6e=this['_imageCache']['get'](_0x2df07d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8f9b6e['url'],this['imageDimension']=_0x8f9b6e['dimension'],this['imageId']=_0x8f9b6e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4bdca4}=this['_editor'],t=_0x4bdca4['t'],_0x2cda6a=new _0x2c0d75(_0x4bdca4,this['imageStatus'],this['_attributes']);_0x2cda6a['bind']('status')['to'](this,'imageStatus'),_0x2cda6a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2cda6a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2cda6a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2cda6a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2a413d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2cda6a,'position':_0x4db1d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2cda6a['focus']();},'onHide':()=>{_0x2cda6a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b6b31=>!_0x48a095(_0x4b6b31,_0x2cda6a['element'])}});}['_loadImageInfo'](_0x183d4c,_0x3f86b3){return _0x48d6ba['getInfo'](_0x183d4c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x12adb5=>{const {width:_0x40440b,height:_0x21a59a}=_0x12adb5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f86b3,this['imageDimension']={'width':_0x40440b,'height':_0x21a59a},this['imageId']=_0x183d4c;})['catch'](_0x111806=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x111806['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5454cc,_0x1f167b){return this['_getImageAsFile'](_0x5454cc)['then'](_0x3bdb87=>_0x48d6ba['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1f167b['signal'],'file':_0x3bdb87,'onProgress':_0x245670=>{_0x245670&&_0x245670['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x245670['value']));}}))['then'](_0x11a96a=>{const {width:_0x2116c6,height:_0xde2e81}=_0x11a96a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x11a96a['cdnUrl'],this['imageDimension']={'width':_0x2116c6,'height':_0xde2e81},this['imageId']=_0x11a96a['uuid'],this['imageUploadProgress']=null;const _0x1f3f32=_0x5454cc['getAttribute']('src');this['_imageCache']['set'](_0x1f3f32,{'id':_0x11a96a['uuid'],'url':_0x11a96a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3ffea2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ffea2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2ae8f8,_0x5cc5d8){_0x2ae8f8['on']('apply',(_0x1cffb5,_0x2c3bcf)=>{this['_replaceImage'](_0x5cc5d8,_0x2c3bcf['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2ae8f8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2ae8f8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x473a49,_0x475d01,_0x34be6f){const _0x4d7e4d=this['_editor'],{width:_0x44c9a8,height:_0x437723}=_0x158f5f(_0x475d01,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5bd994,imageSources:_0x1813e5}=_0x955207(_0x475d01,_0x44c9a8);_0x4d7e4d['model']['change'](_0x50b69f=>{if('$graveyard'===_0x473a49['root']['rootName']){_0x4d7e4d['execute']('insertImage',{'imageType':_0x473a49['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x473a49['getAttributes']()),'uploadcareImageId':_0x34be6f,'src':_0x5bd994,'sources':_0x1813e5,'width':_0x44c9a8,'height':_0x437723}});const _0x12a241=_0x473a49['getChildren']();_0x473a49=_0x4d7e4d['model']['document']['selection']['getSelectedElement']();for(const _0x3fc563 of _0x12a241)_0x50b69f['append'](_0x50b69f['cloneElement'](_0x3fc563),_0x473a49);}else _0x50b69f['setSelection'](_0x473a49,'on'),_0x4d7e4d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x473a49['getAttributes']()),'uploadcareImageId':_0x34be6f,'src':_0x5bd994,'sources':_0x1813e5,'width':_0x44c9a8,'height':_0x437723},_0x473a49);_0x50b69f['setSelection'](_0x473a49,'on');});}async['_getImageAsFile'](_0x1654a3){const _0xf6b41e=_0x5316ba['window'],_0x5c843f=_0x5316ba['document']['location']['href'],_0x248d47=new _0xf6b41e['URL'](_0x1654a3['getAttribute']('src'),_0x5c843f);if('data:'===_0x248d47['protocol']){const _0x4020e3=_0x248d47['href']['split'](','),_0x50fb52=_0x4020e3[0x0]['match'](/:(.*?);/)[0x1],_0x4cca57=_0x50fb52['split']('/')[0x1],_0x4c98d5=_0xf6b41e['atob'](_0x4020e3[_0x4020e3['length']-0x1]);let _0x118cc4=_0x4c98d5['length'];const _0x20d685=new _0xf6b41e['Uint8Array'](_0x118cc4);for(;_0x118cc4--;)_0x20d685[_0x118cc4]=_0x4c98d5['charCodeAt'](_0x118cc4);return new _0xf6b41e['File']([_0x20d685],'image.'+_0x4cca57,{'type':_0x50fb52});}const _0xbcea00=_0x248d47['href']['split']('/'),_0x426c5f=_0xbcea00[_0xbcea00['length']-0x1],_0x47a46a=_0x426c5f['split']('.')[0x1];return _0xf6b41e['fetch'](_0x248d47['href'])['then'](_0x2501de=>_0x2501de['clone']()['blob']())['then'](_0xb55ffd=>new _0xf6b41e['File']([_0xb55ffd],_0x426c5f,{'type':'image/'+_0x47a46a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1cd1(_0x4497dd,_0x23938c){const _0x145020=_0x1450();return _0x1cd1=function(_0x1cd1d1,_0xe98630){_0x1cd1d1=_0x1cd1d1-0x1b6;let _0x34366e=_0x145020[_0x1cd1d1];return _0x34366e;},_0x1cd1(_0x4497dd,_0x23938c);}(function(_0x38e925,_0x305d51){const _0x2cf797=_0x1cd1,_0x2d4024=_0x38e925();while(!![]){try{const _0x5423b6=-parseInt(_0x2cf797(0x1c1))/0x1*(-parseInt(_0x2cf797(0x1c9))/0x2)+-parseInt(_0x2cf797(0x1c3))/0x3*(parseInt(_0x2cf797(0x1bd))/0x4)+parseInt(_0x2cf797(0x1c7))/0x5+parseInt(_0x2cf797(0x1be))/0x6*(-parseInt(_0x2cf797(0x1b9))/0x7)+parseInt(_0x2cf797(0x1c0))/0x8*(parseInt(_0x2cf797(0x1ba))/0x9)+-parseInt(_0x2cf797(0x1b6))/0xa*(-parseInt(_0x2cf797(0x1c8))/0xb)+-parseInt(_0x2cf797(0x1c2))/0xc*(parseInt(_0x2cf797(0x1c6))/0xd);if(_0x5423b6===_0x305d51)break;else _0x2d4024['push'](_0x2d4024['shift']());}catch(_0x192a6b){_0x2d4024['push'](_0x2d4024['shift']());}}}(_0x1450,0x8995d));import{View as _0x350a57}from'ckeditor5/src/ui.js';export default class tt extends _0x350a57{constructor(_0x5f0477,_0xebb260){const _0x38bc2e=_0x1cd1;super(_0x5f0477);const _0x387dd6=this[_0x38bc2e(0x1b7)];this[_0x38bc2e(0x1bb)](_0x38bc2e(0x1ca),''),this[_0x38bc2e(0x1bc)]({'tag':_0x38bc2e(0x1bf),'attributes':{..._0xebb260,'class':[_0x38bc2e(0x1c4),_0x38bc2e(0x1c5)],'ctx-name':_0x38bc2e(0x1b8),'cdn-url':_0x387dd6['to'](_0x38bc2e(0x1ca))}});}}function _0x1450(){const _0xc2cf09=['image-edit','2065QrrFRg','102483mkWiBH','set','setTemplate','4kdbkzf','8730aLlkJh','uc-cloud-image-editor','8bILqaH','2cFXkWt','1367292iGMQom','1371711PqHIdy','uc-light','ck-uploadcare-theme','13NSMTlE','1304755XBeEXi','9526AiQJAR','759890BTSuEP','imageSrc','6140EBhWvH','bindTemplate'];_0x1450=function(){return _0xc2cf09;};return _0x1450();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x468bc4,IconView as at,View as _0x55f1be}from'ckeditor5/src/ui.js';export default class rt extends _0x55f1be{constructor(_0x2c8953){super(_0x2c8953);const t=_0x2c8953['t'];this['set']('errorType',null);const _0x2302e1=new _0x468bc4(_0x2c8953);_0x2302e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2302e1['withText']=!0x0,_0x2302e1['class']='ck-button-action',_0x2302e1['on']('execute',()=>{this['fire']('retry');}),_0x2302e1['bind']('isVisible')['to'](this,'errorType',_0x415d1e=>'NotFound'!==_0x415d1e);const _0x1706b3=new at();_0x1706b3['content']=et,_0x1706b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x432767=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':[_0x1706b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x432767['to']('errorType',_0xa0ddc3=>t('NotFound'!==_0xa0ddc3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2302e1]},{'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 _0x3a9982,View as _0x35781f}from'ckeditor5/src/ui.js';export default class ta extends _0x35781f{constructor(_0x503446){super(_0x503446);const t=_0x503446['t'],_0x3d1c2e=this['bindTemplate'],_0x93a23a=new _0x3a9982();_0x93a23a['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':[_0x93a23a,{'text':_0x3d1c2e['to']('imageUploadProgress',_0x5bc939=>t('Loading\x20image...')+'\x20('+(_0x5bc939||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 _0xccfd8e=_0x44d8;(function(_0x3806f5,_0x360d48){const _0x1897d7=_0x44d8,_0x4625c0=_0x3806f5();while(!![]){try{const _0x44e9aa=parseInt(_0x1897d7(0x13f))/0x1*(parseInt(_0x1897d7(0x148))/0x2)+-parseInt(_0x1897d7(0x145))/0x3*(-parseInt(_0x1897d7(0x146))/0x4)+parseInt(_0x1897d7(0x143))/0x5*(-parseInt(_0x1897d7(0x127))/0x6)+-parseInt(_0x1897d7(0x135))/0x7+-parseInt(_0x1897d7(0x155))/0x8+parseInt(_0x1897d7(0x12c))/0x9+parseInt(_0x1897d7(0x14c))/0xa*(parseInt(_0x1897d7(0x144))/0xb);if(_0x44e9aa===_0x360d48)break;else _0x4625c0['push'](_0x4625c0['shift']());}catch(_0x3849db){_0x4625c0['push'](_0x4625c0['shift']());}}}(_0x5a16,0xcb28f));import{View as _0x232eed}from'ckeditor5/src/ui.js';import _0x2046ce from'./uploadcareimageeditformloadingview.js';import _0x30031d from'./uploadcareimageeditformerrorview.js';import _0x19c148 from'./uploadcareimageeditformeditingview.js';function _0x44d8(_0x21b123,_0x46b108){const _0x5a1670=_0x5a16();return _0x44d8=function(_0x44d8a4,_0x193ac0){_0x44d8a4=_0x44d8a4-0x124;let _0x49e939=_0x5a1670[_0x44d8a4];return _0x49e939;},_0x44d8(_0x21b123,_0x46b108);}function _0x5a16(){const _0x414019=['cancel','6dbSQNn','_errorView','_addErrorViewListeners','once','86590BcYxAy','detail','fire','apply','_loadingView','nodeName','focus','_focusableView','ck-uploadcare-form','11253264dobItU','cdnUrl','_editingView','_setView','ck-reset_all-excluded','createCollection','error','filter','disconnect','uc-cloud-image-editor','76446UpVVhg','addEventListener','div','_addUploadcareImageEditorListeners','element','3401217RSyqGO','_waitForImageEditorComponent','querySelector','toLowerCase','change:status','add','uploading','clear','retry','11231528lOEkCz','render','ready','addMany','target','addedNodes','observe','setTemplate','length','set','309003FCwfHy','status','getFocusableElement','_items','570IUwpUk','4444KoIdga','47673kqvCDM','124ZHNgiw'];_0x5a16=function(){return _0x414019;};return _0x5a16();}import _0x531fbb from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x531fbb{[_0xccfd8e(0x142)];[_0xccfd8e(0x150)];[_0xccfd8e(0x149)];[_0xccfd8e(0x157)];[_0xccfd8e(0x153)];constructor(_0xe8f8e1,_0x236321,_0x1742e8){const _0x25d091=_0xccfd8e;super(_0xe8f8e1),this[_0x25d091(0x142)]=this[_0x25d091(0x15a)](),this[_0x25d091(0x150)]=new _0x2046ce(_0xe8f8e1),this[_0x25d091(0x149)]=new _0x30031d(_0xe8f8e1),this[_0x25d091(0x157)]=new _0x19c148(_0xe8f8e1,_0x1742e8),this[_0x25d091(0x153)]=new _0x232eed(_0xe8f8e1),this[_0x25d091(0x153)][_0x25d091(0x13c)](this[_0x25d091(0x141)]()),this[_0x25d091(0x13e)](_0x25d091(0x140),_0x236321),this[_0x25d091(0x13c)]({'tag':_0x25d091(0x129),'attributes':{'class':['ck',_0x25d091(0x159),_0x25d091(0x154)],'tabindex':'-1'},'children':this[_0x25d091(0x142)]}),this[_0x25d091(0x158)](),this[_0x25d091(0x14b)](_0x25d091(0x136),()=>{const _0xb1515b=_0x25d091;this[_0xb1515b(0x12d)](this[_0xb1515b(0x12b)],_0x44ce11=>{const _0x483acb=_0xb1515b;this[_0x483acb(0x12a)](_0x44ce11);});}),this['on'](_0x25d091(0x130),()=>{const _0x2ef776=_0x25d091;this[_0x2ef776(0x158)]();}),this[_0x25d091(0x14a)]();}[_0xccfd8e(0x152)](){const _0x2e9095=_0xccfd8e;this[_0x2e9095(0x12b)][_0x2e9095(0x152)]();}[_0xccfd8e(0x158)](){const _0x1a3239=_0xccfd8e;switch(this[_0x1a3239(0x142)][_0x1a3239(0x133)](),this[_0x1a3239(0x140)]){case _0x1a3239(0x132):this[_0x1a3239(0x142)][_0x1a3239(0x131)](this[_0x1a3239(0x150)]);break;case _0x1a3239(0x15b):this[_0x1a3239(0x142)][_0x1a3239(0x131)](this[_0x1a3239(0x149)]);break;case _0x1a3239(0x137):this[_0x1a3239(0x142)][_0x1a3239(0x138)]([this[_0x1a3239(0x157)],this[_0x1a3239(0x153)]]);}}[_0xccfd8e(0x12d)](_0x5f0eae,_0x59e44c){const _0x5990b6=_0xccfd8e,_0x4603ce=_0x5990b6(0x126),_0x1fb55b=_0x5f0eae[_0x5990b6(0x12e)](_0x4603ce);if(_0x1fb55b)return _0x59e44c(_0x1fb55b);const _0x3d6030=new MutationObserver(_0x26f90c=>{const _0x27e4aa=_0x5990b6,_0x4dd48c=_0x26f90c[_0x27e4aa(0x124)](_0xbf07f4=>_0xbf07f4[_0x27e4aa(0x139)]===_0x5f0eae&&_0xbf07f4[_0x27e4aa(0x13a)][_0x27e4aa(0x13d)]>0x0&&_0xbf07f4[_0x27e4aa(0x13a)][0x0][_0x27e4aa(0x151)][_0x27e4aa(0x12f)]()===_0x4603ce);_0x4dd48c[_0x27e4aa(0x13d)]&&(_0x3d6030[_0x27e4aa(0x125)](),_0x59e44c(_0x4dd48c[0x0][_0x27e4aa(0x13a)][0x0]));});_0x3d6030[_0x5990b6(0x13b)](_0x5f0eae,{'childList':!0x0,'subtree':!0x0});}[_0xccfd8e(0x12a)](_0x407383){const _0xd00687=_0xccfd8e;_0x407383[_0xd00687(0x128)](_0xd00687(0x14f),_0x5bf4be=>{const _0x51edce=_0xd00687;this[_0x51edce(0x14e)](_0x51edce(0x14f),{'imageSrc':_0x5bf4be[_0x51edce(0x14d)][_0x51edce(0x156)]});}),_0x407383[_0xd00687(0x128)](_0xd00687(0x147),()=>{const _0x573518=_0xd00687;this[_0x573518(0x14e)](_0x573518(0x147));});}[_0xccfd8e(0x14a)](){const _0x2ca911=_0xccfd8e;this[_0x2ca911(0x149)]['on'](_0x2ca911(0x134),()=>{const _0x391fac=_0x2ca911;this[_0x391fac(0x14e)](_0x391fac(0x134));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15929c=_0x41a0;(function(_0x22568d,_0x51d4d9){const _0x1bb43d=_0x41a0,_0x57ba69=_0x22568d();while(!![]){try{const _0x18f2a5=-parseInt(_0x1bb43d(0x91))/0x1+parseInt(_0x1bb43d(0x8f))/0x2*(-parseInt(_0x1bb43d(0x8c))/0x3)+-parseInt(_0x1bb43d(0x96))/0x4+-parseInt(_0x1bb43d(0x8a))/0x5+parseInt(_0x1bb43d(0x95))/0x6*(-parseInt(_0x1bb43d(0x93))/0x7)+parseInt(_0x1bb43d(0x80))/0x8+-parseInt(_0x1bb43d(0x89))/0x9*(-parseInt(_0x1bb43d(0x98))/0xa);if(_0x18f2a5===_0x51d4d9)break;else _0x57ba69['push'](_0x57ba69['shift']());}catch(_0x464641){_0x57ba69['push'](_0x57ba69['shift']());}}}(_0x11dc,0x20b71));import{Command as _0x450f3d}from'ckeditor5/src/core.js';function _0x11dc(){const _0x31df17=['bind','3166TLBZPz','get','75173kdYyQM','imageBlock','1043ESSEFw','selection','9498IDjGHm','756352cZAKMA','imageEditController','122390iAXBHl','model','uploadcare.allowExternalImagesEditing','refresh','execute','isActive','element','set','1886768SgimPe','unbind','requires','document','plugins','getSelectedElement','imageInline','_isEditable','config','441eicVTj','207725qOuKoq','isEnabled','303hmGjnc','editor'];_0x11dc=function(){return _0x31df17;};return _0x11dc();}import{Dialog as _0x158fa9}from'ckeditor5/src/ui.js';function _0x41a0(_0x4c6577,_0x1882d2){const _0x11dc74=_0x11dc();return _0x41a0=function(_0x41a055,_0x2227a5){_0x41a055=_0x41a055-0x7f;let _0x11a0c8=_0x11dc74[_0x41a055];return _0x11a0c8;},_0x41a0(_0x4c6577,_0x1882d2);}import _0x3f8adb from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x117b93}from'../utils/editingutils.js';export default class J extends _0x450f3d{[_0x15929c(0x97)];static get[_0x15929c(0x82)](){return[_0x158fa9];}[_0x15929c(0x87)];constructor(_0x5e3e82){const _0x551d01=_0x15929c;super(_0x5e3e82),this[_0x551d01(0x97)]=void 0x0,this[_0x551d01(0x87)]=_0x117b93(_0x5e3e82[_0x551d01(0x88)][_0x551d01(0x90)](_0x551d01(0x9a))||[]),this[_0x551d01(0x7f)]({'isActive':!0x1});}[_0x15929c(0x9b)](){const _0x3d5bc9=_0x15929c,_0x3acff6=this[_0x3d5bc9(0x8d)][_0x3d5bc9(0x99)][_0x3d5bc9(0x83)][_0x3d5bc9(0x94)][_0x3d5bc9(0x85)]();this[_0x3d5bc9(0x8b)]=this[_0x3d5bc9(0x87)](_0x3acff6);}[_0x15929c(0x9c)](){const _0x2a09e1=_0x15929c;this[_0x2a09e1(0x97)]&&(this[_0x2a09e1(0x81)](_0x2a09e1(0x9d)),this[_0x2a09e1(0x97)]=void 0x0);const _0x15a4a6=this[_0x2a09e1(0x8d)][_0x2a09e1(0x99)][_0x2a09e1(0x83)][_0x2a09e1(0x94)][_0x2a09e1(0x85)]();_0x15a4a6&&(_0x15a4a6['is'](_0x2a09e1(0x9e),_0x2a09e1(0x92))||_0x15a4a6['is'](_0x2a09e1(0x9e),_0x2a09e1(0x86)))&&(this[_0x2a09e1(0x97)]=new _0x3f8adb(this[_0x2a09e1(0x8d)],this[_0x2a09e1(0x8d)][_0x2a09e1(0x84)][_0x2a09e1(0x90)](_0x158fa9),_0x15a4a6),this[_0x2a09e1(0x8e)](_0x2a09e1(0x9d))['to'](this[_0x2a09e1(0x97)],_0x2a09e1(0x9d)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11bb84=_0x4e68;function _0x4e68(_0x266d79,_0x66bd92){const _0x1d1338=_0x1d13();return _0x4e68=function(_0x4e6865,_0x42cb51){_0x4e6865=_0x4e6865-0xbb;let _0x45788d=_0x1d1338[_0x4e6865];return _0x45788d;},_0x4e68(_0x266d79,_0x66bd92);}(function(_0x4e6a5f,_0x5270fc){const _0x4a0d3f=_0x4e68,_0x1c867b=_0x4e6a5f();while(!![]){try{const _0x4878f9=parseInt(_0x4a0d3f(0xc8))/0x1*(parseInt(_0x4a0d3f(0xc7))/0x2)+-parseInt(_0x4a0d3f(0xca))/0x3*(-parseInt(_0x4a0d3f(0xc5))/0x4)+parseInt(_0x4a0d3f(0xbb))/0x5+parseInt(_0x4a0d3f(0xbd))/0x6+parseInt(_0x4a0d3f(0xc6))/0x7+-parseInt(_0x4a0d3f(0xc3))/0x8+-parseInt(_0x4a0d3f(0xbf))/0x9;if(_0x4878f9===_0x5270fc)break;else _0x1c867b['push'](_0x1c867b['shift']());}catch(_0xa085d2){_0x1c867b['push'](_0x1c867b['shift']());}}}(_0x1d13,0x64baa));import{Plugin as _0xc75b99}from'ckeditor5/src/core.js';import{Notification as _0x52c8ff}from'ckeditor5/src/ui.js';import _0x1ca542 from'./uploadcareimageeditcommand.js';import _0x18a0ce from'./uploadcareimagereplacecommand.js';function _0x1d13(){const _0x12cbf1=['ImageEditing','add','1879016ytRwvb','UploadcareImageEditEditing','1204748LaeonI','4926362OubCNa','3910VhmjLW','183NCrQGw','ImageUtils','6feMeqx','init','uploadcareImageReplace','requires','uploadcareImageEdit','commands','1852380CMClem','pluginName','4394052OSzchs','isOfficialPlugin','19073340RjXyFn','isPremiumPlugin'];_0x1d13=function(){return _0x12cbf1;};return _0x1d13();}import _0x2d3c02 from'../uploadcareediting.js';export default class g extends _0xc75b99{static get[_0x11bb84(0xbc)](){const _0x442d75=_0x11bb84;return _0x442d75(0xc4);}static get[_0x11bb84(0xcd)](){const _0x582d66=_0x11bb84;return[_0x2d3c02,_0x52c8ff,_0x582d66(0xc9),_0x582d66(0xc1)];}static get[_0x11bb84(0xbe)](){return!0x0;}static get[_0x11bb84(0xc0)](){return!0x0;}[_0x11bb84(0xcb)](){const _0x146b46=_0x11bb84,{editor:_0x16e5a4}=this;_0x16e5a4[_0x146b46(0xcf)][_0x146b46(0xc2)](_0x146b46(0xce),new _0x1ca542(_0x16e5a4)),_0x16e5a4[_0x146b46(0xcf)][_0x146b46(0xc2)](_0x146b46(0xcc),new _0x18a0ce(_0x16e5a4));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x50df97}from'ckeditor5/src/core.js';import{ButtonView as _0x32ee2e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x59701f}from'ckeditor5/src/icons.js';import{createElement as _0x49b308}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x50df97{['_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 _0x3f92ba=this['editor'];_0x3f92ba['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b99db=>{const _0x5ca49c=_0x3f92ba['commands']['get']('uploadcareImageEdit'),_0x5398bd=new _0x32ee2e(_0x5b99db),t=_0x5b99db['t'];return _0x5398bd['set']({'icon':_0x59701f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5398bd['bind']('isEnabled')['to'](_0x5ca49c),_0x5398bd['bind']('isOn')['to'](_0x5ca49c,'isActive'),this['listenTo'](_0x5398bd,'execute',()=>{_0x3f92ba['execute']('uploadcareImageEdit'),_0x3f92ba['editing']['view']['focus']();}),_0x5398bd;}),this['_initConfig']();}['_initConfig'](){const _0x4c84e2=_0x49b308(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c84e2),this['listenTo'](this['editor'],'destroy',()=>{_0x4c84e2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x39a4cd=_0x360d;function _0xf6c3(){const _0x4a0aca=['imageInline','document','sizes','setAttributes','637893wlfXpX','element','1129818xrudZi','refresh','editor','isEnabled','3656532ljOrtE','selection','srcset','model','change','imageBlock','97694jEhhbp','execute','10iNxZho','77avASot','9zclypE','getSelectedElement','removeAttribute','132JsUDoA','10hOGUOg','31408nsBzjo','2187GPNoIh','52opiBKu','103466CXPhcj'];_0xf6c3=function(){return _0x4a0aca;};return _0xf6c3();}(function(_0x553f77,_0x47f832){const _0x1fc566=_0x360d,_0x597892=_0x553f77();while(!![]){try{const _0x489b9f=-parseInt(_0x1fc566(0x106))/0x1*(parseInt(_0x1fc566(0x102))/0x2)+-parseInt(_0x1fc566(0x10c))/0x3*(parseInt(_0x1fc566(0x109))/0x4)+-parseInt(_0x1fc566(0x10a))/0x5*(parseInt(_0x1fc566(0x115))/0x6)+parseInt(_0x1fc566(0x105))/0x7*(-parseInt(_0x1fc566(0x10b))/0x8)+parseInt(_0x1fc566(0x113))/0x9*(parseInt(_0x1fc566(0x104))/0xa)+parseInt(_0x1fc566(0x10e))/0xb+parseInt(_0x1fc566(0x119))/0xc*(parseInt(_0x1fc566(0x10d))/0xd);if(_0x489b9f===_0x47f832)break;else _0x597892['push'](_0x597892['shift']());}catch(_0x14643e){_0x597892['push'](_0x597892['shift']());}}}(_0xf6c3,0x657a7));import{Command as _0x487f18}from'ckeditor5/src/core.js';function _0x360d(_0x4bfa3f,_0x6e78cb){const _0xf6c398=_0xf6c3();return _0x360d=function(_0x360da6,_0x475ca2){_0x360da6=_0x360da6-0xff;let _0x4566ce=_0xf6c398[_0x360da6];return _0x4566ce;},_0x360d(_0x4bfa3f,_0x6e78cb);}export default class O extends _0x487f18{[_0x39a4cd(0x116)](){const _0x75847c=_0x39a4cd,_0x15bfe6=this[_0x75847c(0x117)][_0x75847c(0xff)][_0x75847c(0x110)][_0x75847c(0x11a)][_0x75847c(0x107)]();this[_0x75847c(0x118)]=Boolean(_0x15bfe6&&(_0x15bfe6['is'](_0x75847c(0x114),_0x75847c(0x101))||_0x15bfe6['is'](_0x75847c(0x114),_0x75847c(0x10f))));}[_0x39a4cd(0x103)](_0x40e15d){const _0x3b754a=_0x39a4cd,_0x37a9e4=this[_0x3b754a(0x117)][_0x3b754a(0xff)][_0x3b754a(0x110)][_0x3b754a(0x11a)][_0x3b754a(0x107)]();this[_0x3b754a(0x117)][_0x3b754a(0xff)][_0x3b754a(0x100)](_0x3699a5=>{const _0x2b7058=_0x3b754a;_0x3699a5[_0x2b7058(0x112)](_0x40e15d,_0x37a9e4),_0x3699a5[_0x2b7058(0x108)](_0x2b7058(0x11b),_0x37a9e4),_0x3699a5[_0x2b7058(0x108)](_0x2b7058(0x111),_0x37a9e4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2d17be=_0x4cae;(function(_0x3a31d6,_0x29450c){var _0x42f5f8=_0x4cae,_0x4eeae0=_0x3a31d6();while(!![]){try{var _0x3cf28a=parseInt(_0x42f5f8(0x100))/0x1+parseInt(_0x42f5f8(0xfc))/0x2*(-parseInt(_0x42f5f8(0xf4))/0x3)+parseInt(_0x42f5f8(0xfa))/0x4+-parseInt(_0x42f5f8(0xf8))/0x5+-parseInt(_0x42f5f8(0xfd))/0x6+-parseInt(_0x42f5f8(0xf9))/0x7*(-parseInt(_0x42f5f8(0xf6))/0x8)+-parseInt(_0x42f5f8(0xf5))/0x9*(-parseInt(_0x42f5f8(0xf2))/0xa);if(_0x3cf28a===_0x29450c)break;else _0x4eeae0['push'](_0x4eeae0['shift']());}catch(_0x3a9215){_0x4eeae0['push'](_0x4eeae0['shift']());}}}(_0x596a,0x57005));import{Plugin as _0x18ab8e}from'ckeditor5/src/core.js';function _0x596a(){var _0x43a2a1=['requires','UploadcareImageEdit','1971wzDhyY','420nSbMvO','isPremiumPlugin','42JezLIG','79047pMUpwV','8936BMZxsK','isOfficialPlugin','36790tGtvMR','1421YQFVnu','1867004puOByw','pluginName','37784aYoSdy','2616936nKPZUU'];_0x596a=function(){return _0x43a2a1;};return _0x596a();}import _0x219422 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1fc3cb from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x4cae(_0x82df12,_0x3fc428){var _0x596a79=_0x596a();return _0x4cae=function(_0x4cae42,_0x4ba9b5){_0x4cae42=_0x4cae42-0xf2;var _0x51ff13=_0x596a79[_0x4cae42];return _0x51ff13;},_0x4cae(_0x82df12,_0x3fc428);}export default class P extends _0x18ab8e{static get[_0x2d17be(0xfb)](){var _0x338ab4=_0x2d17be;return _0x338ab4(0xff);}static get[_0x2d17be(0xfe)](){return[_0x219422,_0x1fc3cb];}static get[_0x2d17be(0xf7)](){return!0x0;}static get[_0x2d17be(0xf3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x532345=_0x3e32;(function(_0x24d94c,_0xa30c6b){const _0x21d1ea=_0x3e32,_0x34ddb0=_0x24d94c();while(!![]){try{const _0x62af97=parseInt(_0x21d1ea(0x11a))/0x1*(-parseInt(_0x21d1ea(0x107))/0x2)+parseInt(_0x21d1ea(0x136))/0x3+parseInt(_0x21d1ea(0x145))/0x4+-parseInt(_0x21d1ea(0x135))/0x5+parseInt(_0x21d1ea(0x14b))/0x6*(-parseInt(_0x21d1ea(0x14e))/0x7)+-parseInt(_0x21d1ea(0x13d))/0x8+parseInt(_0x21d1ea(0x103))/0x9;if(_0x62af97===_0xa30c6b)break;else _0x34ddb0['push'](_0x34ddb0['shift']());}catch(_0x3bb8bc){_0x34ddb0['push'](_0x34ddb0['shift']());}}}(_0x5979,0x7c365));import{Plugin as _0x2e5209}from'ckeditor5/src/core.js';function _0x3e32(_0x1b9a3f,_0x1ec823){const _0x597951=_0x5979();return _0x3e32=function(_0x3e3284,_0x3ddfcd){_0x3e3284=_0x3e3284-0x103;let _0x489ee0=_0x597951[_0x3e3284];return _0x489ee0;},_0x3e32(_0x1b9a3f,_0x1ec823);}import{IconDropbox as _0x2f830a,IconFacebook as _0x50bd36,IconGoogleDrive as _0x1802f6,IconGooglePhotos as _0x16e5e6,IconUploadcareImageUpload as _0x26d78c,IconUploadcareLink as _0x279d2e,IconOneDrive as _0xf53ce0}from'ckeditor5/src/icons.js';function _0x5979(){const _0x346b3d=['invalid','map','evaluationLimit','commands','uploadcareLicenseKeyExpired','uploadcareLicenseKeyDomainLimit','Facebook','registerIntegration','editor','shortText','forEach','_licenseKeyCheckInterval','3870665BplWyU','1817508WZZhFv','_createButton','withText','_getIntegrationKey','licenseKey','uploadcareLicenseKeyValid','text','3407640sSdtLY','reduce','usageLimit','uploadcare','bind','expired','featureNotAllowed','OneDrive','3579268aqgdny','label','_showLicenseError','Local','uploadcareLicenseKeyEvaluationLimit','assetManager','6wIdbBe','_normalizeConfigSourceList','Uploadcare','5690881Fsszkp','_createToolbarButton','_createMenuBarButtons','isPremiumPlugin','config','12092319onvpZP','ImageInsertUI','init','execute','62VtIsqS','URL','get','destroy','Replace','entries','icon','locale','afterInit','type','isOfficialPlugin','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyTrialLimit','GDrive','Dropbox','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyUsageLimit','domainLimit','_createDropdownButtons','10400tEJvrQ','GPhotos','isEnabled','push','pluginName','isImageSelected','trialLimit','url','uploadcare.uploader.sourceList','has','upload','Insert','UploadcareUI','tooltip','plugins'];_0x5979=function(){return _0x346b3d;};return _0x5979();}import{ButtonView as _0x502eb8,MenuBarMenuListItemButtonView as _0x55b180}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x42623c}from'./uploadcareconfig.js';import{getTranslation as _0x3d0329}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 default class e extends _0x2e5209{[_0x532345(0x13a)];[_0x532345(0x134)];static get[_0x532345(0x11e)](){const _0x5e096a=_0x532345;return _0x5e096a(0x126);}static get[_0x532345(0x111)](){return!0x0;}static get[_0x532345(0x151)](){return!0x0;}[_0x532345(0x105)](){const _0x59cbde=_0x532345;this[_0x59cbde(0x13a)]=this[_0x59cbde(0x131)][_0x59cbde(0x152)][_0x59cbde(0x109)](_0x59cbde(0x13a));const _0x155411=this[_0x59cbde(0x131)];this[_0x59cbde(0x134)]=setInterval(()=>{const _0x163e72=_0x59cbde;let _0x43fb13;for(const _0x4e0efa in _0x155411){const _0x1e9a25=_0x4e0efa,_0x55d162=_0x155411[_0x1e9a25];if(_0x163e72(0x13b)==_0x55d162||_0x163e72(0x112)==_0x55d162||_0x163e72(0x12d)==_0x55d162||_0x163e72(0x12e)==_0x55d162||_0x163e72(0x116)==_0x55d162||_0x163e72(0x149)==_0x55d162||_0x163e72(0x113)==_0x55d162||_0x163e72(0x117)==_0x55d162){delete _0x155411[_0x1e9a25],_0x43fb13=_0x55d162,clearInterval(this[_0x163e72(0x134)]),this[_0x163e72(0x134)]=void 0x0;break;}}_0x163e72(0x112)==_0x43fb13&&_0x155411[_0x163e72(0x147)](_0x163e72(0x129)),_0x163e72(0x12d)==_0x43fb13&&_0x155411[_0x163e72(0x147)](_0x163e72(0x142)),_0x163e72(0x12e)==_0x43fb13&&_0x155411[_0x163e72(0x147)](_0x163e72(0x118)),_0x163e72(0x116)==_0x43fb13&&_0x155411[_0x163e72(0x147)](_0x163e72(0x143),_0x163e72(0x14d)),_0x163e72(0x149)==_0x43fb13&&_0x155411[_0x163e72(0x147)](_0x163e72(0x12b)),_0x163e72(0x113)==_0x43fb13&&_0x155411[_0x163e72(0x147)](_0x163e72(0x120)),_0x163e72(0x117)==_0x43fb13&&_0x155411[_0x163e72(0x147)](_0x163e72(0x13f));},0x3e8);}[_0x532345(0x10f)](){const _0x5d8c61=_0x532345,{editor:_0x5e74f4}=this,_0x3d740a=_0x5e74f4[_0x5d8c61(0x12c)][_0x5d8c61(0x109)](_0x5d8c61(0x140));if(!_0x3d740a)return;const _0x1f4c91=this[_0x5d8c61(0x14c)](_0x5e74f4[_0x5d8c61(0x152)][_0x5d8c61(0x109)](_0x5d8c61(0x122)))[_0x5d8c61(0x13e)]((_0x570fdd,_0x250859)=>{const _0x325527=_0x5d8c61,_0x3710b2=this[_0x325527(0x139)](_0x250859[_0x325527(0x110)]);return _0x570fdd[_0x3710b2]||(_0x570fdd[_0x3710b2]=[]),_0x570fdd[_0x3710b2][_0x325527(0x11d)](_0x250859),_0x570fdd;},{});_0x5e74f4[_0x5d8c61(0x128)][_0x5d8c61(0x123)](_0x5d8c61(0x104))&&_0x5e74f4[_0x5d8c61(0x12c)][_0x5d8c61(0x109)](_0x5d8c61(0x140))&&Object[_0x5d8c61(0x10c)](_0x1f4c91)[_0x5d8c61(0x133)](([_0xf5c6d3,_0x56cf3e])=>{const _0x425e1f=_0x5d8c61;_0x5e74f4[_0x425e1f(0x128)][_0x425e1f(0x109)](_0x425e1f(0x104))[_0x425e1f(0x130)]({'name':_0xf5c6d3,'observable':()=>_0x3d740a,'buttonViewCreator':()=>this[_0x425e1f(0x14f)](_0x56cf3e),'formViewCreator':()=>this[_0x425e1f(0x119)](_0x56cf3e),'menuBarButtonViewCreator':()=>this[_0x425e1f(0x150)](_0x56cf3e),'override':_0x425e1f(0x14a)!==_0xf5c6d3});});}[_0x532345(0x10a)](){const _0x2cd15a=_0x532345;super[_0x2cd15a(0x10a)](),this[_0x2cd15a(0x134)]&&clearInterval(this[_0x2cd15a(0x134)]);}[_0x532345(0x14c)](_0x596001){const _0x2ff363=_0x532345,{locale:_0x372203}=this[_0x2ff363(0x131)];return _0x596001[_0x2ff363(0x12a)](_0x3dd13e=>{const _0x597d67=_0x2ff363,_0x3deeca=_0x3d0329(_0x372203,_0x3dd13e,_0x597d67(0x125));switch(_0x3dd13e){case _0x42623c[_0x597d67(0x148)]:return{'icon':_0x26d78c,'type':_0x42623c[_0x597d67(0x148)],..._0x3deeca};case _0x42623c[_0x597d67(0x108)]:return{'icon':_0x279d2e,'type':_0x42623c[_0x597d67(0x108)],..._0x3deeca};case _0x42623c[_0x597d67(0x115)]:return{'icon':_0x2f830a,'type':_0x42623c[_0x597d67(0x115)],..._0x3deeca};case _0x42623c[_0x597d67(0x12f)]:return{'icon':_0x50bd36,'type':_0x42623c[_0x597d67(0x12f)],..._0x3deeca};case _0x42623c[_0x597d67(0x114)]:return{'icon':_0x1802f6,'type':_0x42623c[_0x597d67(0x114)],..._0x3deeca};case _0x42623c[_0x597d67(0x11b)]:return{'icon':_0x16e5e6,'type':_0x42623c[_0x597d67(0x11b)],..._0x3deeca};case _0x42623c[_0x597d67(0x144)]:return{'icon':_0xf53ce0,'type':_0x42623c[_0x597d67(0x144)],..._0x3deeca};}});}[_0x532345(0x139)](_0x30c1ab){const _0x3dadcf=_0x532345;switch(_0x30c1ab){case _0x42623c[_0x3dadcf(0x148)]:return _0x3dadcf(0x124);case _0x42623c[_0x3dadcf(0x108)]:return _0x3dadcf(0x121);default:return _0x3dadcf(0x14a);}}[_0x532345(0x137)](_0x2089e6,_0x1e6696){const _0x54f704=_0x532345,_0x321c8a=this[_0x54f704(0x131)],_0x108eec=new _0x2089e6(_0x321c8a[_0x54f704(0x10e)]),_0x430212=_0x321c8a[_0x54f704(0x12c)][_0x54f704(0x109)](_0x54f704(0x140));return _0x108eec[_0x54f704(0x141)](_0x54f704(0x11c))['to'](_0x430212),_0x108eec['on'](_0x54f704(0x106),()=>{const _0x2fbc17=_0x54f704;_0x430212[_0x2fbc17(0x106)](_0x1e6696);}),_0x108eec;}[_0x532345(0x14f)](_0x1bae31){const _0x4ba677=_0x532345,{locale:_0x42f78d}=this[_0x4ba677(0x131)],_0x22e385=this[_0x4ba677(0x131)][_0x4ba677(0x128)][_0x4ba677(0x109)](_0x4ba677(0x104)),_0xb472e5=_0x1bae31[0x0],_0x3ece3e=this[_0x4ba677(0x137)](_0x502eb8,_0xb472e5[_0x4ba677(0x110)]);return _0x3ece3e[_0x4ba677(0x10d)]=_0xb472e5[_0x4ba677(0x10d)],_0x3ece3e[_0x4ba677(0x141)](_0x4ba677(0x146))['to'](_0x22e385,_0x4ba677(0x11f),_0x354cf1=>_0x3d0329(_0x42f78d,_0xb472e5[_0x4ba677(0x110)],_0x354cf1?_0x4ba677(0x10b):_0x4ba677(0x125))[_0x4ba677(0x13c)]),_0x3ece3e[_0x4ba677(0x127)]=!0x0,_0x3ece3e;}[_0x532345(0x119)](_0x31d1b7){const _0x5a5a5e=_0x532345,{locale:_0x34f491}=this[_0x5a5a5e(0x131)],_0x7ba8be=this[_0x5a5a5e(0x131)][_0x5a5a5e(0x128)][_0x5a5a5e(0x109)](_0x5a5a5e(0x104));return _0x31d1b7[_0x5a5a5e(0x12a)](_0x3f52cb=>{const _0x422dbd=_0x5a5a5e,_0x11ffcc=this[_0x422dbd(0x137)](_0x502eb8,_0x3f52cb[_0x422dbd(0x110)]);return _0x11ffcc[_0x422dbd(0x138)]=!0x0,_0x11ffcc[_0x422dbd(0x10d)]=_0x3f52cb[_0x422dbd(0x10d)],_0x11ffcc[_0x422dbd(0x141)](_0x422dbd(0x146))['to'](_0x7ba8be,_0x422dbd(0x11f),_0x59a505=>_0x3d0329(_0x34f491,_0x3f52cb[_0x422dbd(0x110)],_0x59a505?_0x422dbd(0x10b):_0x422dbd(0x125))[_0x422dbd(0x13c)]),_0x11ffcc;});}[_0x532345(0x150)](_0x2efa3d){const _0x2fa0e3=_0x532345;return _0x2efa3d[_0x2fa0e3(0x12a)](_0x2d4163=>{const _0x2552a4=_0x2fa0e3,_0xf25c46=this[_0x2552a4(0x137)](_0x55b180,_0x2d4163[_0x2552a4(0x110)]);return _0xf25c46[_0x2552a4(0x10d)]=_0x2d4163[_0x2552a4(0x10d)],_0xf25c46[_0x2552a4(0x146)]=_0x2d4163[_0x2552a4(0x132)],_0xf25c46;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x80885}from'ckeditor5/src/core.js';import{FileRepository as _0x2fd905}from'ckeditor5/src/upload.js';import _0x544d09 from'./uploadcareediting.js';import _0x5104df from'./utils/uploadutils.js';import{getImageUrls as _0x24787f}from'./utils/editingutils.js';export default class p extends _0x80885{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2fd905,_0x544d09];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x160e58=this['editor'];if(!!!_0x160e58['config']['get']('uploadcare'))return;_0x160e58['plugins']['get'](_0x2fd905)['createUploadAdapter']=_0x3a729f=>new x(_0x3a729f,_0x160e58),_0x160e58['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x41e196,{imageElement:_0x42841d,data:_0x189d6c})=>{_0x160e58['model']['change'](_0x1d3012=>{_0x1d3012['setAttribute']('uploadcareImageId',_0x189d6c['uploadcareImageId'],_0x42841d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x86810e,_0x4c00f5){this['loader']=_0x86810e,this['editor']=_0x4c00f5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xfeb7ce=this['editor']['config']['get']('uploadcare.pubkey'),_0x3155f8=await this['loader']['file'];return _0x5104df['upload']({'file':_0x3155f8,'publicKey':_0xfeb7ce,'signal':this['controller']['signal'],'onProgress':_0x2dfac6=>{_0x2dfac6&&_0x2dfac6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2dfac6['value']);}})['then'](async _0x38a8c0=>{const {imageFallbackUrl:_0x2ff2e6,imageSources:_0x5922d5}=_0x24787f(_0x38a8c0['cdnUrl'],_0x38a8c0['imageInfo']['width']);return{'uploadcareImageId':_0x38a8c0['uuid'],'default':_0x2ff2e6,'sources':_0x5922d5};})['catch'](()=>{const _0x3c99c2=t('Cannot\x20upload\x20file:')+('\x20'+_0x3155f8['name']+'.');return Promise['reject'](_0x3c99c2);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x297574}from'../uploadcareconfig.js';export function getTranslation(_0x340302,_0x644335,_0x477514){const t=_0x340302['t'],_0x4608ea=_0x340302['t'];switch(_0x644335){case _0x297574['Local']:return{'text':_0x4608ea('Insert'===_0x477514?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4608ea('From\x20computer')};case _0x297574['URL']:return{'text':'Insert'===_0x477514?_0x4608ea('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4608ea('Via\x20URL')};case _0x297574['Dropbox']:return{'text':t('Insert'===_0x477514?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x297574['Facebook']:return{'text':t('Insert'===_0x477514?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x297574['GDrive']:return{'text':t('Insert'===_0x477514?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x297574['GPhotos']:return{'text':t('Insert'===_0x477514?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x297574['OneDrive']:return{'text':t('Insert'===_0x477514?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x644335;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x17cd23=_0x4127;(function(_0x326d83,_0x309f09){var _0x8c1f4f=_0x4127,_0x35f80e=_0x326d83();while(!![]){try{var _0x185d2a=-parseInt(_0x8c1f4f(0x1f3))/0x1*(parseInt(_0x8c1f4f(0x1f4))/0x2)+parseInt(_0x8c1f4f(0x1e8))/0x3*(-parseInt(_0x8c1f4f(0x1e7))/0x4)+-parseInt(_0x8c1f4f(0x1eb))/0x5+-parseInt(_0x8c1f4f(0x1ec))/0x6*(parseInt(_0x8c1f4f(0x1ea))/0x7)+-parseInt(_0x8c1f4f(0x1e2))/0x8*(-parseInt(_0x8c1f4f(0x1f2))/0x9)+parseInt(_0x8c1f4f(0x1ee))/0xa+parseInt(_0x8c1f4f(0x1e6))/0xb;if(_0x185d2a===_0x309f09)break;else _0x35f80e['push'](_0x35f80e['shift']());}catch(_0x2b9a56){_0x35f80e['push'](_0x35f80e['shift']());}}}(_0x114d,0x832db));import{FocusTracker as _0x2d27ca}from'ckeditor5/src/utils.js';function _0x4127(_0x833564,_0x5974bb){var _0x114d47=_0x114d();return _0x4127=function(_0x4127b3,_0x3c314d){_0x4127b3=_0x4127b3-0x1e1;var _0x269bcf=_0x114d47[_0x4127b3];return _0x269bcf;},_0x4127(_0x833564,_0x5974bb);}import{View as _0x23b28f,FocusCycler as _0x2d5e95}from'ckeditor5/src/ui.js';function _0x114d(){var _0x59bbbf=['226uLVXRp','focusTracker','24NjbRvA','bindTemplate','div','getFocusableElement','33931502fCDioj','704TVEZYq','14088APIJeK','createCollection','2930277tJpidw','5256105TPVhRP','6boFKAA','forwardCycle','1932130WzLbwe','fire','true','focusCycler','1622961WWGEBt','8719AYHdHM'];_0x114d=function(){return _0x59bbbf;};return _0x114d();}import'../../theme/uploadcare-form.css';export default class q extends _0x23b28f{[_0x17cd23(0x1e1)];[_0x17cd23(0x1f1)];constructor(_0x3ea4e1){var _0x3a611c=_0x17cd23;super(_0x3ea4e1),this[_0x3a611c(0x1e1)]=new _0x2d27ca(),this[_0x3a611c(0x1f1)]=new _0x2d5e95({'focusables':this[_0x3a611c(0x1e9)](),'focusTracker':this[_0x3a611c(0x1e1)]});}[_0x17cd23(0x1e5)](){var _0x39868f=_0x17cd23;return{'tag':_0x39868f(0x1e4),'attributes':{'aria-hidden':_0x39868f(0x1f0),'tabindex':'0'},'on':{'focus':this[_0x39868f(0x1e3)]['to'](()=>{var _0x194d00=_0x39868f;this[_0x194d00(0x1f1)][_0x194d00(0x1ef)](_0x194d00(0x1ed));})}};}}
|