@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.0 → 45.0.0-alpha.2
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 _0x4bb3df=_0x672a;(function(_0x190d8f,_0x5e5f63){const _0x2fb6d9=_0x672a,_0x1864d4=_0x190d8f();while(!![]){try{const _0x5268d8=-parseInt(_0x2fb6d9(0x17e))/0x1*(-parseInt(_0x2fb6d9(0x1ae))/0x2)+parseInt(_0x2fb6d9(0x1bc))/0x3*(parseInt(_0x2fb6d9(0x199))/0x4)+-parseInt(_0x2fb6d9(0x18b))/0x5+-parseInt(_0x2fb6d9(0x1a4))/0x6*(parseInt(_0x2fb6d9(0x1cb))/0x7)+parseInt(_0x2fb6d9(0x1cf))/0x8+parseInt(_0x2fb6d9(0x198))/0x9*(-parseInt(_0x2fb6d9(0x18f))/0xa)+parseInt(_0x2fb6d9(0x18a))/0xb*(parseInt(_0x2fb6d9(0x18e))/0xc);if(_0x5268d8===_0x5e5f63)break;else _0x1864d4['push'](_0x1864d4['shift']());}catch(_0x2987b3){_0x1864d4['push'](_0x1864d4['shift']());}}}(_0x5e6a,0xc19c1));import{Plugin as _0x485687}from'ckeditor5/src/core.js';import{Dialog as _0x571aab}from'ckeditor5/src/ui.js';import{createElement as _0x2387d2,global as _0x57c9cb,uid as _0x2cfc5d}from'ckeditor5/src/utils.js';import _0x248e8e from'./uploadcarecommand.js';function _0x5e6a(){const _0x1f83ef=['querySelector','_configElement','execute','init','href','9TfMARq','20RwjRkl','#uc-icon-arrow-down','commands','pluginName','config','UploadcareEditing','imageBlock','add','getSelectedElement','for','join','6aEcBQf','isRegistered','map','input[uploadcare-file-input]','afterInit','isOfficialPlugin','editing','isPremiumPlugin','configElement','removeAttribute','114QumCsl','downcast','uc-upload-ctx-provider','uploadcare','remove','insertImage','getAttribute','fromCharCode','model','uploadcareImageReplace','listenTo','attributeToAttribute','_initCtx','PictureEditing','463383RBsOGF','uploadcare.pubkey','selection','upcast','requires','elementToAttribute','contentLanguage','get','uc-config','extend','imageInline','closeMax','ctxElement','cleanupImage','destroy','2320297BQfpHj','schema','true','_initSchema','11179792rNgPVT','data-uc-image-id','document','editor','_ctxElement','6563abUPCI','body','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','appendChild','_initImageProcessingIndicator','uploader','_initConversion','_initConfig','uploadcare.uploader','render','uploadcareImageId','locale','203731YOQVPk','6730905tdtrHV','view','conversion','408PYVPhh','7029070teVrdn','replaceImageSource','once','iconHrefResolver'];_0x5e6a=function(){return _0x1f83ef;};return _0x5e6a();}import _0x2d3ae5 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x35eca9}from'./utils/editingutils.js';function _0x672a(_0x2f326e,_0x2b65ca){const _0x5e6aed=_0x5e6a();return _0x672a=function(_0x672ac6,_0x95e8e6){_0x672ac6=_0x672ac6-0x17d;let _0x441dad=_0x5e6aed[_0x672ac6];return _0x441dad;},_0x672a(_0x2f326e,_0x2b65ca);}export default class i extends _0x485687{[_0x4bb3df(0x194)]=null;[_0x4bb3df(0x17d)]=null;static get[_0x4bb3df(0x19c)](){const _0x35b2a1=_0x4bb3df;return _0x35b2a1(0x19e);}static get[_0x4bb3df(0x1c0)](){const _0x2fe810=_0x4bb3df;return[_0x2fe810(0x1bb),_0x2d3ae5,_0x571aab];}static get[_0x4bb3df(0x1a9)](){return!0x0;}static get[_0x4bb3df(0x1ab)](){return!0x0;}get[_0x4bb3df(0x1ac)](){const _0x435b52=_0x4bb3df;return this[_0x435b52(0x194)];}get[_0x4bb3df(0x1c8)](){const _0x205a5b=_0x4bb3df;return this[_0x205a5b(0x17d)];}[_0x4bb3df(0x196)](){const _0x35a6f6=_0x4bb3df,_0x38aa1e=this[_0x35a6f6(0x1d2)];_0x38aa1e[_0x35a6f6(0x19b)][_0x35a6f6(0x1a0)](_0x35a6f6(0x1b1),new _0x248e8e(_0x38aa1e));}[_0x4bb3df(0x1a8)](){const _0x1e1c6f=_0x4bb3df;this[_0x1e1c6f(0x1ce)](),this[_0x1e1c6f(0x184)](),this[_0x1e1c6f(0x185)](),this[_0x1e1c6f(0x1ba)](),this[_0x1e1c6f(0x182)](),this[_0x1e1c6f(0x1b8)](this[_0x1e1c6f(0x1d2)],_0x1e1c6f(0x1ca),()=>{const _0x328b53=_0x1e1c6f;this[_0x328b53(0x194)]&&(this[_0x328b53(0x194)][_0x328b53(0x1b2)](),this[_0x328b53(0x194)]=null),this[_0x328b53(0x17d)]&&(this[_0x328b53(0x17d)][_0x328b53(0x1b2)](),this[_0x328b53(0x17d)]=null);const _0x57317a=_0x57c9cb[_0x328b53(0x1d1)][_0x328b53(0x193)](_0x328b53(0x1a7));_0x57317a&&_0x57317a[_0x328b53(0x1b2)]();}),async function(_0x4104c1){const _0x4ae7cc=_0x557ce1([0x55,0x50,0x56,0x6e,0x69,0x63,0x38,0x79,0x4a,0x74,0x32,0x53,0x75,0x30,0x64,0x68,0x47,0x51,0x34,0x4b,0x62,0x41,0x46,0x58,0x6f,0x37,0x31,0x54,0x6b,0x72,0x36,0x6c,0x35,0x67,0x78,0x39,0x33,0x4d,0x4c,0x45,0x71,0x6d,0x52,0x61,0x5a,0x7a,0x4f,0x76,0x70,0x48,0x4e,0x6a,0x42,0x65,0x49,0x77,0x44,0x66,0x43,0x59,0x57,0x73]),_0x1b5ae0=0x130b9005,_0x957199=0x130cf33d^_0x1b5ae0,_0x492d98=window[_0x557ce1([0x44,0x61,0x74,0x65])][_0x557ce1([0x6e,0x6f,0x77])](),_0x57a89e=_0x4104c1[_0x557ce1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4327d3=new window[(_0x557ce1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x319a15=>{_0x57a89e[_0x557ce1([0x6f,0x6e,0x63,0x65])](_0x557ce1([0x72,0x65,0x61,0x64,0x79]),_0x319a15);}),_0x1becc6={[_0x557ce1([0x6b,0x74,0x79])]:_0x557ce1([0x45,0x43]),[_0x557ce1([0x75,0x73,0x65])]:_0x557ce1([0x73,0x69,0x67]),[_0x557ce1([0x63,0x72,0x76])]:_0x557ce1([0x50,0x2d,0x32,0x35,0x36]),[_0x557ce1([0x78])]:_0x557ce1([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]),[_0x557ce1([0x79])]:_0x557ce1([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]),[_0x557ce1([0x61,0x6c,0x67])]:_0x557ce1([0x45,0x53,0x32,0x35,0x36])},_0x419c34=_0x57a89e[_0x557ce1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x557ce1([0x67,0x65,0x74])](_0x557ce1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x366bf1(){let _0x2c3da8,_0x37c99c=null,_0x5a7e31=null;try{if(_0x419c34==_0x557ce1([0x47,0x50,0x4c]))return _0x557ce1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c3da8=_0x509cdb(),!_0x2c3da8)return _0x557ce1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c3da8[_0x557ce1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a7e31=_0x44c2ed(_0x2c3da8[_0x557ce1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c3da8[_0x557ce1([0x6a,0x74,0x69])])),await _0x5c196a()?_0x5ae4f7()?_0x2638f6()?_0x557ce1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4133e6()?(_0x2c3da8[_0x557ce1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x557ce1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37c99c=_0x195858(_0x557ce1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c3da8[_0x557ce1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x557ce1([0x74,0x72,0x69,0x61,0x6c])&&(_0x37c99c=_0x195858(_0x557ce1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a6d84()):_0x557ce1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x557ce1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x557ce1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x127ecc){return _0x557ce1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2638f6(){const _0xe3b2d6=[_0x557ce1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x557ce1([0x74,0x72,0x69,0x61,0x6c])][_0x557ce1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3da8[_0x557ce1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x492d98/0x3e8:0xe10*_0x957199;return _0x2c3da8[_0x557ce1([0x65,0x78,0x70])]<_0xe3b2d6;}function _0x5ae4f7(){const _0x12cf9e=_0x2c3da8[_0x557ce1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12cf9e&&(!!_0x12cf9e[_0x557ce1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x557ce1([0x2a]))||!!_0x12cf9e[_0x557ce1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x557ce1([0x55,0x50,0x4c,0x43])));}function _0x4133e6(){const _0x3b52f5=_0x672a,_0x2c1111=_0x2c3da8[_0x557ce1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c1111||0x0==_0x2c1111[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b075b}=new URL(window[_0x557ce1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3b52f5(0x197)]);if(_0x2c1111[_0x557ce1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b075b))return!0x0;const _0x44138a=_0x2b075b[_0x557ce1([0x73,0x70,0x6c,0x69,0x74])](_0x557ce1([0x2e]));return _0x2c1111[_0x557ce1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c073d=>_0x1c073d[_0x557ce1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x557ce1([0x2a])))[_0x557ce1([0x6d,0x61,0x70])](_0x2fdd6d=>_0x2fdd6d[_0x557ce1([0x73,0x70,0x6c,0x69,0x74])](_0x557ce1([0x2e])))[_0x557ce1([0x73,0x6f,0x6d,0x65])](_0x5b2ef1=>_0x44138a[_0x557ce1([0x65,0x76,0x65,0x72,0x79])]((_0x406159,_0x4a5868)=>_0x5b2ef1[_0x4a5868]===_0x406159||_0x5b2ef1[_0x4a5868]===_0x557ce1([0x2a])));}function _0x3a6d84(){return _0x37c99c&&_0x5a7e31?new window[(_0x557ce1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd29a7f,_0x5ad0d4)=>{_0x37c99c[_0x557ce1([0x74,0x68,0x65,0x6e])](_0xd29a7f,_0x5ad0d4),_0x5a7e31[_0x557ce1([0x74,0x68,0x65,0x6e])](_0x4da967=>{_0x4da967!=_0x557ce1([0x56,0x61,0x6c,0x69,0x64])&&_0xd29a7f(_0x4da967);},_0x5ad0d4);}):_0x37c99c||_0x5a7e31||_0x557ce1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44c2ed(_0x21e639,_0x362d98){return new window[(_0x557ce1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x594eaa=>{if(_0xaecaa1())return _0x594eaa(_0x557ce1([0x56,0x61,0x6c,0x69,0x64]));_0x428196(),_0x57a89e[_0x557ce1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x557ce1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29b863=!0x1;const _0x49df4a=_0x2cfc5d();function _0x3016f4(_0x5c37ec){return!!_0x5c37ec&&(typeof _0x5c37ec===_0x557ce1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c37ec===_0x557ce1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c37ec[_0x557ce1([0x74,0x68,0x65,0x6e])]===_0x557ce1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c37ec[_0x557ce1([0x63,0x61,0x74,0x63,0x68])]===_0x557ce1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57ea32(_0x1c0bcc){_0x30bf38(_0x1c0bcc)[_0x557ce1([0x74,0x68,0x65,0x6e])](_0x430013=>{if(!_0x430013||_0x430013[_0x557ce1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x557ce1([0x6f,0x6b]))return _0x557ce1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a96c6(_0x5ede6d(_0x49df4a+_0x362d98))!=_0x430013[_0x557ce1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x557ce1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x557ce1([0x56,0x61,0x6c,0x69,0x64]);})[_0x557ce1([0x74,0x68,0x65,0x6e])](_0x5f303b=>(_0x347910(),_0x5f303b),()=>{const _0x4c9836=_0x4f132f();return null==_0x4c9836?(_0x347910(),_0x557ce1([0x56,0x61,0x6c,0x69,0x64])):_0x557ce1(_0x492d98-_0x4c9836>(0x37071405^_0x1b5ae0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x557ce1([0x74,0x68,0x65,0x6e])](_0x594eaa)[_0x557ce1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x594eaa(_0x557ce1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3facf8=0x133d7e85^_0x1b5ae0;function _0x347910(){const _0x1a5688=_0x557ce1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a96c6(_0x5ede6d(_0x21e639)),_0x432b3e=_0x2ea8c2(_0x1a96c6(window[_0x557ce1([0x4d,0x61,0x74,0x68])][_0x557ce1([0x63,0x65,0x69,0x6c])](_0x492d98/_0x3facf8)));window[_0x557ce1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x557ce1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a5688,_0x432b3e);}function _0x4f132f(){const _0x4b82a6=_0x557ce1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a96c6(_0x5ede6d(_0x21e639)),_0xfdc2cc=window[_0x557ce1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x557ce1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b82a6);return _0xfdc2cc?window[_0x557ce1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ea8c2(_0xfdc2cc),0x10)*_0x3facf8:null;}function _0x30bf38(_0x3a94b0){return new window[(_0x557ce1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8844ee,_0x50a0f8)=>{_0x3a94b0[_0x557ce1([0x74,0x68,0x65,0x6e])](_0x8844ee,_0x50a0f8),window[_0x557ce1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50a0f8,0x130a44c5^_0x1b5ae0);});}}_0x57a89e[_0x557ce1([0x6f,0x6e])](_0x557ce1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34295f,_0x4eed22)=>{if(_0x4eed22[0x0]!=_0x21e639)return _0x594eaa(_0x557ce1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4eed22[0x1]={..._0x4eed22[0x1],[_0x557ce1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49df4a};},{[_0x557ce1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x557ce1([0x68,0x69,0x67,0x68])}),_0x57a89e[_0x557ce1([0x6f,0x6e])](_0x557ce1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x253982=>{_0x3016f4(_0x253982[_0x557ce1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29b863=!0x0,_0x57ea32(_0x253982[_0x557ce1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x557ce1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x557ce1([0x6c,0x6f,0x77])}),_0x4327d3[_0x557ce1([0x74,0x68,0x65,0x6e])](()=>{_0x29b863||_0x594eaa(_0x557ce1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xaecaa1(){return _0x57a89e[_0x557ce1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x557ce1([0x76,0x69,0x65,0x77])][_0x557ce1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x557ce1([0x61,0x75,0x74,0x6f]);}function _0x428196(){_0x57a89e[_0x557ce1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x557ce1([0x76,0x69,0x65,0x77])][_0x557ce1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x557ce1([0x61,0x75,0x74,0x6f]);}}function _0x195858(_0x720cf3){const _0x448d12=[new window[(_0x557ce1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x431987=>setTimeout(_0x431987,0x1302aec9^_0x1b5ae0)),_0x4327d3[_0x557ce1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x557ce1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344f77=>{let _0x45cd7a=0x0;_0x57a89e[_0x557ce1([0x6d,0x6f,0x64,0x65,0x6c])][_0x557ce1([0x6f,0x6e])](_0x557ce1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e62b2,_0x24f2d4)=>{_0x24f2d4[0x0][_0x557ce1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x45cd7a++,_0x45cd7a==(0x130b91fd^_0x1b5ae0)&&(_0x344f77(),_0x2e62b2[_0x557ce1([0x6f,0x66,0x66])]());});}))];return window[_0x557ce1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x557ce1([0x72,0x61,0x63,0x65])](_0x448d12)[_0x557ce1([0x74,0x68,0x65,0x6e])](()=>_0x720cf3);}async function _0x85ebe0(){await _0x4327d3,_0x57a89e[_0x557ce1([0x6d,0x6f,0x64,0x65,0x6c])][_0x557ce1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bba1d,_0x57a89e[_0x557ce1([0x6d,0x6f,0x64,0x65,0x6c])][_0x557ce1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bba1d,_0x57a89e[_0x557ce1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x557ce1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b629f(_0x4c837c){const _0x34d321=_0x3bbc06();_0x57a89e[_0x34d321]=_0x557ce1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c837c,_0x4c837c!=_0x557ce1([0x56,0x61,0x6c,0x69,0x64])&&_0x85ebe0();}function _0x3bbc06(){const _0x16f1b5=window[_0x557ce1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x557ce1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x557ce1([0x6e,0x6f,0x77])]())[_0x557ce1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x557ce1([0x2e]),'');let _0xe7e465=_0x557ce1([0x55]);for(let _0x556b25=0x0;_0x556b25<_0x16f1b5[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556b25+=0x2){let _0x238421=window[_0x557ce1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16f1b5[_0x557ce1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x556b25,_0x556b25+0x2));_0x238421>=_0x4ae7cc[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x238421-=_0x4ae7cc[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe7e465+=_0x4ae7cc[_0x238421];}return _0xe7e465;}function _0x509cdb(){const _0x12f182=_0x419c34[_0x557ce1([0x73,0x70,0x6c,0x69,0x74])](_0x557ce1([0x2e]));if(0x3!=_0x12f182[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2779a6(_0x12f182[0x1]);function _0x2779a6(_0x56a580){const _0x573697=_0x23b742(_0x56a580);return _0x573697&&_0x49c557()?_0x573697:null;function _0x49c557(){const _0x2500dd=_0x573697[_0x557ce1([0x6a,0x74,0x69])],_0x5a9ba0=window[_0x557ce1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2500dd[_0x557ce1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2500dd[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2682ff={..._0x573697,[_0x557ce1([0x6a,0x74,0x69])]:_0x2500dd[_0x557ce1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2500dd[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2682ff[_0x557ce1([0x76,0x63])],_0x5ede6d(_0x2682ff)==_0x5a9ba0;}}}async function _0x5c196a(){let _0x1cb9e4=!0x0;try{const _0x38e6ad=_0x419c34[_0x557ce1([0x73,0x70,0x6c,0x69,0x74])](_0x557ce1([0x2e])),[_0x18c0c4,_0x459d12,_0x32052f]=_0x38e6ad;return _0xa9e2bc(_0x18c0c4),await _0x48f3b4(_0x18c0c4,_0x459d12,_0x32052f),_0x1cb9e4;}catch(_0x29d4c9){return!0x1;}function _0xa9e2bc(_0x1b7942){const _0x21e5e9=_0x23b742(_0x1b7942);_0x21e5e9&&_0x21e5e9[_0x557ce1([0x61,0x6c,0x67])]==_0x557ce1([0x45,0x53,0x32,0x35,0x36])||(_0x1cb9e4=!0x1);}async function _0x48f3b4(_0x40b006,_0x2cb86e,_0x227b13){const _0x2200e1=window[_0x557ce1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x557ce1([0x66,0x72,0x6f,0x6d])](_0x32f708(_0x227b13),_0x51a91f=>_0x51a91f[_0x557ce1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56db7e=new window[(_0x557ce1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x557ce1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40b006+_0x557ce1([0x2e])+_0x2cb86e),_0x10e6a4=window[_0x557ce1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x557ce1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10e6a4)return;const _0x51ab0a=await _0x10e6a4[_0x557ce1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x557ce1([0x6a,0x77,0x6b]),_0x1becc6,{[_0x557ce1([0x6e,0x61,0x6d,0x65])]:_0x557ce1([0x45,0x43,0x44,0x53,0x41]),[_0x557ce1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x557ce1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x557ce1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10e6a4[_0x557ce1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x557ce1([0x6e,0x61,0x6d,0x65])]:_0x557ce1([0x45,0x43,0x44,0x53,0x41]),[_0x557ce1([0x68,0x61,0x73,0x68])]:{[_0x557ce1([0x6e,0x61,0x6d,0x65])]:_0x557ce1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51ab0a,_0x2200e1,_0x56db7e)||(_0x1cb9e4=!0x1);}}function _0x23b742(_0x4b8b93){return _0x4b8b93[_0x557ce1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x557ce1([0x65,0x79]))?JSON[_0x557ce1([0x70,0x61,0x72,0x73,0x65])](_0x32f708(_0x4b8b93)):null;}function _0x32f708(_0x2a05bd){return window[_0x557ce1([0x61,0x74,0x6f,0x62])](_0x2a05bd[_0x557ce1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x557ce1([0x2b]))[_0x557ce1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x557ce1([0x2f])));}function _0x5ede6d(_0x433c66){let _0x1c65bf=0x1505;function _0x702c9b(_0x5dc3e1){for(let _0x11e774=0x0;_0x11e774<_0x5dc3e1[_0x557ce1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11e774++){const _0x422057=_0x5dc3e1[_0x557ce1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11e774);_0x1c65bf=(_0x1c65bf<<0x5)+_0x1c65bf+_0x422057,_0x1c65bf&=_0x1c65bf;}}function _0x44271c(_0x1caac8){Array[_0x557ce1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1caac8)?_0x1caac8[_0x557ce1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44271c):_0x1caac8&&typeof _0x1caac8==_0x557ce1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x557ce1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1caac8)[_0x557ce1([0x73,0x6f,0x72,0x74])]()[_0x557ce1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x247a11,_0x870c62])=>{_0x702c9b(_0x247a11),_0x44271c(_0x870c62);}):_0x702c9b(window[_0x557ce1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1caac8));}return _0x44271c(_0x433c66),_0x1c65bf>>>0x0;}function _0x1a96c6(_0x1111b5){return _0x1111b5[_0x557ce1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x557ce1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x557ce1([0x30]));}function _0x2ea8c2(_0x144ef3){return _0x144ef3[_0x557ce1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x557ce1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x557ce1([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bba1d(){}function _0x557ce1(_0x2bf107){const _0x4d7cae=_0x672a;return _0x2bf107[_0x4d7cae(0x1a6)](_0x4492eb=>String[_0x4d7cae(0x1b5)](_0x4492eb))[_0x4d7cae(0x1a3)]('');}_0x4b629f(await _0x366bf1());}(this);}[_0x4bb3df(0x1ce)](){const _0xa17742=_0x4bb3df,_0x55a629=this[_0xa17742(0x1d2)][_0xa17742(0x1b6)][_0xa17742(0x1cc)];_0x55a629[_0xa17742(0x1a5)](_0xa17742(0x19f))&&_0x55a629[_0xa17742(0x1c5)](_0xa17742(0x19f),{'allowAttributes':[_0xa17742(0x188)]}),_0x55a629[_0xa17742(0x1a5)](_0xa17742(0x1c6))&&_0x55a629[_0xa17742(0x1c5)](_0xa17742(0x1c6),{'allowAttributes':[_0xa17742(0x188)]});}[_0x4bb3df(0x184)](){const _0x304fb8=_0x4bb3df,_0x2a59ed=this[_0x304fb8(0x1d2)];_0x2a59ed[_0x304fb8(0x18d)][_0x304fb8(0x1a2)](_0x304fb8(0x1af))[_0x304fb8(0x1b9)]({'model':_0x304fb8(0x188),'view':_0x304fb8(0x1d0)}),_0x2a59ed[_0x304fb8(0x18d)][_0x304fb8(0x1a2)](_0x304fb8(0x1bf))[_0x304fb8(0x1c1)]({'model':{'key':_0x304fb8(0x188),'value':_0x1a9e94=>_0x1a9e94[_0x304fb8(0x1b4)](_0x304fb8(0x1d0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2bbfa3=_0x2a59ed[_0x304fb8(0x19b)][_0x304fb8(0x1c3)](_0x304fb8(0x190));_0x2bbfa3&&this[_0x304fb8(0x1b8)](_0x2bbfa3,_0x304fb8(0x1c9),(_0x17688c,[_0x8d2fc0,_0x279759])=>{const _0x55e2d2=_0x304fb8;_0x8d2fc0[_0x55e2d2(0x1ad)](_0x55e2d2(0x188),_0x279759);});}[_0x4bb3df(0x185)](){const _0x5b6e7a=_0x4bb3df,_0x5b6c3=this[_0x5b6e7a(0x1d2)][_0x5b6e7a(0x19d)][_0x5b6e7a(0x1c3)](_0x5b6e7a(0x186))||{},_0x42e0a0=this[_0x5b6e7a(0x1d2)][_0x5b6e7a(0x19d)][_0x5b6e7a(0x1c3)](_0x5b6e7a(0x1bd))||'';this[_0x5b6e7a(0x194)]=_0x2387d2(_0x57c9cb[_0x5b6e7a(0x1d1)],_0x5b6e7a(0x1c4),{..._0x5b6c3,'pubkey':_0x42e0a0,'ctx-name':_0x5b6e7a(0x183),'sourceList':'','imgOnly':_0x5b6e7a(0x1cd),'removeCopyright':_0x5b6e7a(0x1cd),'localeName':this[_0x5b6e7a(0x1d2)][_0x5b6e7a(0x189)][_0x5b6e7a(0x1c2)],'externalSourcesEmbedCss':_0x5b6e7a(0x180)}),this[_0x5b6e7a(0x194)][_0x5b6e7a(0x192)]=_0x5ea1dd=>{const _0xd09279=_0x5b6e7a;if(_0xd09279(0x1c7)==_0x5ea1dd)return _0xd09279(0x19a);},_0x57c9cb[_0x5b6e7a(0x1d1)][_0x5b6e7a(0x17f)][_0x5b6e7a(0x181)](this[_0x5b6e7a(0x194)]);}[_0x4bb3df(0x1ba)](){const _0x7cdab4=_0x4bb3df;this[_0x7cdab4(0x17d)]=_0x2387d2(_0x57c9cb[_0x7cdab4(0x1d1)],_0x7cdab4(0x1b0),{'ctx-name':_0x7cdab4(0x183)}),_0x57c9cb[_0x7cdab4(0x1d1)][_0x7cdab4(0x17f)][_0x7cdab4(0x181)](this[_0x7cdab4(0x17d)]);}[_0x4bb3df(0x182)](){const _0x326568=_0x4bb3df,_0x31e506=this[_0x326568(0x1d2)][_0x326568(0x19b)][_0x326568(0x1c3)](_0x326568(0x1b3));_0x31e506&&this[_0x326568(0x1b8)](_0x31e506,_0x326568(0x195),()=>{const _0x37985c=_0x326568,_0x434175=this[_0x37985c(0x1d2)][_0x37985c(0x1b6)][_0x37985c(0x1d1)][_0x37985c(0x1be)][_0x37985c(0x1a1)]();_0x434175&&_0x434175[_0x37985c(0x1b4)](_0x37985c(0x188))&&this[_0x37985c(0x1d2)][_0x37985c(0x1aa)][_0x37985c(0x18c)][_0x37985c(0x191)](_0x37985c(0x187),()=>{const _0x33c231=_0x37985c;_0x35eca9(this[_0x33c231(0x1d2)],_0x434175);});});const _0x820574=this[_0x326568(0x1d2)][_0x326568(0x19b)][_0x326568(0x1c3)](_0x326568(0x1b7));_0x820574&&this[_0x326568(0x1b8)](_0x820574,_0x326568(0x195),()=>{const _0x20bbde=_0x326568,_0x35a69f=this[_0x20bbde(0x1d2)][_0x20bbde(0x1b6)][_0x20bbde(0x1d1)][_0x20bbde(0x1be)][_0x20bbde(0x1a1)]();_0x35a69f&&_0x35a69f[_0x20bbde(0x1b4)](_0x20bbde(0x188))&&this[_0x20bbde(0x1d2)][_0x20bbde(0x1aa)][_0x20bbde(0x18c)][_0x20bbde(0x191)](_0x20bbde(0x187),()=>{const _0x12a403=_0x20bbde;_0x35eca9(this[_0x12a403(0x1d2)],_0x35a69f);});});}}
|
|
23
|
+
const _0x4f9bb5=_0x331e;(function(_0xec59e9,_0x5ae11f){const _0xc714ae=_0x331e,_0x574558=_0xec59e9();while(!![]){try{const _0x42f895=parseInt(_0xc714ae(0x199))/0x1*(parseInt(_0xc714ae(0x1ba))/0x2)+-parseInt(_0xc714ae(0x1af))/0x3+-parseInt(_0xc714ae(0x187))/0x4+parseInt(_0xc714ae(0x1b2))/0x5*(parseInt(_0xc714ae(0x1a6))/0x6)+parseInt(_0xc714ae(0x1b5))/0x7*(-parseInt(_0xc714ae(0x1c9))/0x8)+-parseInt(_0xc714ae(0x18c))/0x9*(-parseInt(_0xc714ae(0x180))/0xa)+-parseInt(_0xc714ae(0x1c7))/0xb*(-parseInt(_0xc714ae(0x186))/0xc);if(_0x42f895===_0x5ae11f)break;else _0x574558['push'](_0x574558['shift']());}catch(_0x12d268){_0x574558['push'](_0x574558['shift']());}}}(_0x2dc8,0xe584e));import{Plugin as _0x5838bc}from'ckeditor5/src/core.js';function _0x331e(_0x12e287,_0x36301e){const _0x2dc89c=_0x2dc8();return _0x331e=function(_0x331e42,_0x2a6664){_0x331e42=_0x331e42-0x177;let _0x572ce0=_0x2dc89c[_0x331e42];return _0x572ce0;},_0x331e(_0x12e287,_0x36301e);}import{Dialog as _0x8fc631}from'ckeditor5/src/ui.js';function _0x2dc8(){const _0x3e4c1e=['insertImage','uploadcareImageReplace','once','142219UCWHFW','pluginName','34568yMUvZp','_initConfig','replaceImageSource','imageInline','imageBlock','editor','fromCharCode','UploadcareEditing','_initSchema','commands','config','extend','listenTo','3808260nvBvBp','true','uc-upload-ctx-provider','removeAttribute','view','for','2076GPQZEt','4968436LHYCgN','iconHrefResolver','body','map','ctxElement','27kACIev','uploadcare','appendChild','requires','_ctxElement','isOfficialPlugin','selection','_initCtx','destroy','getSelectedElement','elementToAttribute','document','remove','1GigVBu','downcast','afterInit','uploadcare.uploader','conversion','get','upcast','contentLanguage','\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','execute','configElement','href','render','654nDesxk','_configElement','input[uploadcare-file-input]','cleanupImage','model','getAttribute','init','isRegistered','data-uc-image-id','2259162QuPWzU','_initImageProcessingIndicator','attributeToAttribute','27235BNvVSi','schema','uploader','2590ZRdDzS','locale','closeMax','querySelector','add','1122250QSWMwa','uc-config','#uc-icon-arrow-down','uploadcareImageId','editing','join','_initConversion','PictureEditing','uploadcare.pubkey','isPremiumPlugin'];_0x2dc8=function(){return _0x3e4c1e;};return _0x2dc8();}import{createElement as _0x39433c,global as _0x5d3558,uid as _0x3b39dd}from'ckeditor5/src/utils.js';import _0x5192e1 from'./uploadcarecommand.js';import _0x3e72a9 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2dca9a}from'./utils/editingutils.js';export default class i extends _0x5838bc{[_0x4f9bb5(0x1a7)]=null;[_0x4f9bb5(0x190)]=null;static get[_0x4f9bb5(0x1c8)](){const _0x584750=_0x4f9bb5;return _0x584750(0x17a);}static get[_0x4f9bb5(0x18f)](){const _0x435186=_0x4f9bb5;return[_0x435186(0x1c1),_0x3e72a9,_0x8fc631];}static get[_0x4f9bb5(0x191)](){return!0x0;}static get[_0x4f9bb5(0x1c3)](){return!0x0;}get[_0x4f9bb5(0x1a3)](){const _0x22f7c7=_0x4f9bb5;return this[_0x22f7c7(0x1a7)];}get[_0x4f9bb5(0x18b)](){const _0x43b623=_0x4f9bb5;return this[_0x43b623(0x190)];}[_0x4f9bb5(0x1ac)](){const _0xeaedcd=_0x4f9bb5,_0x2b6a6c=this[_0xeaedcd(0x178)];_0x2b6a6c[_0xeaedcd(0x17c)][_0xeaedcd(0x1b9)](_0xeaedcd(0x18d),new _0x5192e1(_0x2b6a6c));}[_0x4f9bb5(0x19b)](){const _0x5e121f=_0x4f9bb5;this[_0x5e121f(0x17b)](),this[_0x5e121f(0x1c0)](),this[_0x5e121f(0x1ca)](),this[_0x5e121f(0x193)](),this[_0x5e121f(0x1b0)](),this[_0x5e121f(0x17f)](this[_0x5e121f(0x178)],_0x5e121f(0x194),()=>{const _0x275fd7=_0x5e121f;this[_0x275fd7(0x1a7)]&&(this[_0x275fd7(0x1a7)][_0x275fd7(0x198)](),this[_0x275fd7(0x1a7)]=null),this[_0x275fd7(0x190)]&&(this[_0x275fd7(0x190)][_0x275fd7(0x198)](),this[_0x275fd7(0x190)]=null);const _0x20cc32=_0x5d3558[_0x275fd7(0x197)][_0x275fd7(0x1b8)](_0x275fd7(0x1a8));_0x20cc32&&_0x20cc32[_0x275fd7(0x198)]();}),async function(_0x485302){const _0x51f1b5=_0x4d890a([0x35,0x39,0x38,0x68,0x5a,0x73,0x56,0x76,0x7a,0x6b,0x63,0x62,0x48,0x44,0x55,0x71,0x47,0x6d,0x4a,0x4e,0x45,0x42,0x72,0x66,0x58,0x32,0x67,0x65,0x75,0x57,0x64,0x77,0x78,0x30,0x54,0x34,0x33,0x46,0x51,0x31,0x4c,0x43,0x59,0x4d,0x50,0x6e,0x53,0x79,0x4f,0x36,0x49,0x74,0x4b,0x37,0x6f,0x69,0x6c,0x52,0x6a,0x41,0x70,0x61]),_0x58a4fb=0x2ad0fb91,_0x46292b=0x2ad798f9^_0x58a4fb,_0xb8455c=window[_0x4d890a([0x44,0x61,0x74,0x65])][_0x4d890a([0x6e,0x6f,0x77])](),_0x15e7d7=_0x485302[_0x4d890a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46e710=new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486ed0=>{_0x15e7d7[_0x4d890a([0x6f,0x6e,0x63,0x65])](_0x4d890a([0x72,0x65,0x61,0x64,0x79]),_0x486ed0);}),_0x21e2c3={[_0x4d890a([0x6b,0x74,0x79])]:_0x4d890a([0x45,0x43]),[_0x4d890a([0x75,0x73,0x65])]:_0x4d890a([0x73,0x69,0x67]),[_0x4d890a([0x63,0x72,0x76])]:_0x4d890a([0x50,0x2d,0x32,0x35,0x36]),[_0x4d890a([0x78])]:_0x4d890a([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]),[_0x4d890a([0x79])]:_0x4d890a([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]),[_0x4d890a([0x61,0x6c,0x67])]:_0x4d890a([0x45,0x53,0x32,0x35,0x36])},_0x1f23ac=_0x15e7d7[_0x4d890a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d890a([0x67,0x65,0x74])](_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2862f9(){let _0x162b63,_0x30ae8a=null,_0x396c42=null;try{if(_0x1f23ac==_0x4d890a([0x47,0x50,0x4c]))return _0x4d890a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x162b63=_0x5e0de1(),!_0x162b63)return _0x4d890a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x162b63[_0x4d890a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x396c42=_0x5c5eed(_0x162b63[_0x4d890a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x162b63[_0x4d890a([0x6a,0x74,0x69])])),await _0x168f77()?_0x44ee17()?_0x4d957d()?_0x4d890a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x335ac7()?(_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d890a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30ae8a=_0x3a8621(_0x4d890a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d890a([0x74,0x72,0x69,0x61,0x6c])&&(_0x30ae8a=_0x3a8621(_0x4d890a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5785e9()):_0x4d890a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d890a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d890a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54fdb3){return _0x4d890a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d957d(){const _0x16bf68=[_0x4d890a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d890a([0x74,0x72,0x69,0x61,0x6c])][_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb8455c/0x3e8:0xe10*_0x46292b;return _0x162b63[_0x4d890a([0x65,0x78,0x70])]<_0x16bf68;}function _0x44ee17(){const _0x56adb8=_0x162b63[_0x4d890a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56adb8&&(!!_0x56adb8[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d890a([0x2a]))||!!_0x56adb8[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d890a([0x55,0x50,0x4c,0x43])));}function _0x335ac7(){const _0x4ebb57=_0x331e,_0xca08e9=_0x162b63[_0x4d890a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xca08e9||0x0==_0xca08e9[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x535da2}=new URL(window[_0x4d890a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ebb57(0x1a4)]);if(_0xca08e9[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535da2))return!0x0;const _0x41048f=_0x535da2[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e]));return _0xca08e9[_0x4d890a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e2c31=>_0x4e2c31[_0x4d890a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d890a([0x2a])))[_0x4d890a([0x6d,0x61,0x70])](_0x3c8d3a=>_0x3c8d3a[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e])))[_0x4d890a([0x73,0x6f,0x6d,0x65])](_0x328763=>_0x41048f[_0x4d890a([0x65,0x76,0x65,0x72,0x79])]((_0x18a34f,_0x1b4e69)=>_0x328763[_0x1b4e69]===_0x18a34f||_0x328763[_0x1b4e69]===_0x4d890a([0x2a])));}function _0x5785e9(){return _0x30ae8a&&_0x396c42?new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa30732,_0x314bac)=>{_0x30ae8a[_0x4d890a([0x74,0x68,0x65,0x6e])](_0xa30732,_0x314bac),_0x396c42[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x360609=>{_0x360609!=_0x4d890a([0x56,0x61,0x6c,0x69,0x64])&&_0xa30732(_0x360609);},_0x314bac);}):_0x30ae8a||_0x396c42||_0x4d890a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c5eed(_0x5e1917,_0x459e9b){return new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf699e0=>{if(_0x2d11ff())return _0xf699e0(_0x4d890a([0x56,0x61,0x6c,0x69,0x64]));_0x955f75(),_0x15e7d7[_0x4d890a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d890a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11fd60=!0x1;const _0x5601dd=_0x3b39dd();function _0xd98a50(_0x364237){return!!_0x364237&&(typeof _0x364237===_0x4d890a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x364237===_0x4d890a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x364237[_0x4d890a([0x74,0x68,0x65,0x6e])]===_0x4d890a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x364237[_0x4d890a([0x63,0x61,0x74,0x63,0x68])]===_0x4d890a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x929366(_0x3b38ad){_0x363408(_0x3b38ad)[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x52de94=>{if(!_0x52de94||_0x52de94[_0x4d890a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d890a([0x6f,0x6b]))return _0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x158e4f(_0x17567b(_0x5601dd+_0x459e9b))!=_0x52de94[_0x4d890a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d890a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x1a64de=>(_0x1ebdf7(),_0x1a64de),()=>{const _0x65edb5=_0x461fe2();return null==_0x65edb5?(_0x1ebdf7(),_0x4d890a([0x56,0x61,0x6c,0x69,0x64])):_0x4d890a(_0xb8455c-_0x65edb5>(0xedc7f91^_0x58a4fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d890a([0x74,0x68,0x65,0x6e])](_0xf699e0)[_0x4d890a([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf699e0(_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16b6f0=0x2ae61511^_0x58a4fb;function _0x1ebdf7(){const _0x30b792=_0x4d890a([0x6c,0x6c,0x63,0x74,0x2d])+_0x158e4f(_0x17567b(_0x5e1917)),_0x2e39a6=_0x427a3b(_0x158e4f(window[_0x4d890a([0x4d,0x61,0x74,0x68])][_0x4d890a([0x63,0x65,0x69,0x6c])](_0xb8455c/_0x16b6f0)));window[_0x4d890a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d890a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b792,_0x2e39a6);}function _0x461fe2(){const _0x2819cc=_0x4d890a([0x6c,0x6c,0x63,0x74,0x2d])+_0x158e4f(_0x17567b(_0x5e1917)),_0x28daf4=window[_0x4d890a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d890a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2819cc);return _0x28daf4?window[_0x4d890a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x427a3b(_0x28daf4),0x10)*_0x16b6f0:null;}function _0x363408(_0x421513){return new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5473e1,_0x1b9da5)=>{_0x421513[_0x4d890a([0x74,0x68,0x65,0x6e])](_0x5473e1,_0x1b9da5),window[_0x4d890a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b9da5,0x2ad12f51^_0x58a4fb);});}}_0x15e7d7[_0x4d890a([0x6f,0x6e])](_0x4d890a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fd8a9,_0x3d3b61)=>{if(_0x3d3b61[0x0]!=_0x5e1917)return _0xf699e0(_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d3b61[0x1]={..._0x3d3b61[0x1],[_0x4d890a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5601dd};},{[_0x4d890a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d890a([0x68,0x69,0x67,0x68])}),_0x15e7d7[_0x4d890a([0x6f,0x6e])](_0x4d890a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3898a7=>{_0xd98a50(_0x3898a7[_0x4d890a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11fd60=!0x0,_0x929366(_0x3898a7[_0x4d890a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d890a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d890a([0x6c,0x6f,0x77])}),_0x46e710[_0x4d890a([0x74,0x68,0x65,0x6e])](()=>{_0x11fd60||_0xf699e0(_0x4d890a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d11ff(){return _0x15e7d7[_0x4d890a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d890a([0x76,0x69,0x65,0x77])][_0x4d890a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d890a([0x61,0x75,0x74,0x6f]);}function _0x955f75(){_0x15e7d7[_0x4d890a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d890a([0x76,0x69,0x65,0x77])][_0x4d890a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d890a([0x61,0x75,0x74,0x6f]);}}function _0x3a8621(_0x3dcaf0){const _0x550d34=[new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f694c=>setTimeout(_0x4f694c,0x2ad9c55d^_0x58a4fb)),_0x46e710[_0x4d890a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0827=>{let _0x5ed74f=0x0;_0x15e7d7[_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d890a([0x6f,0x6e])](_0x4d890a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xdb5876,_0x2c754b)=>{_0x2c754b[0x0][_0x4d890a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ed74f++,_0x5ed74f==(0x2ad0fa69^_0x58a4fb)&&(_0x1c0827(),_0xdb5876[_0x4d890a([0x6f,0x66,0x66])]());});}))];return window[_0x4d890a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d890a([0x72,0x61,0x63,0x65])](_0x550d34)[_0x4d890a([0x74,0x68,0x65,0x6e])](()=>_0x3dcaf0);}async function _0x28a2c0(){await _0x46e710,_0x15e7d7[_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d890a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51a6eb,_0x15e7d7[_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d890a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51a6eb,_0x15e7d7[_0x4d890a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d890a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ac5f2(_0x3e743b){const _0xfda2c4=_0x1daebd();_0x15e7d7[_0xfda2c4]=_0x4d890a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e743b,_0x3e743b!=_0x4d890a([0x56,0x61,0x6c,0x69,0x64])&&_0x28a2c0();}function _0x1daebd(){const _0x1918ff=window[_0x4d890a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d890a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d890a([0x6e,0x6f,0x77])]())[_0x4d890a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d890a([0x2e]),'');let _0x1d5917=_0x4d890a([0x68]);for(let _0x3e3197=0x0;_0x3e3197<_0x1918ff[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e3197+=0x2){let _0x46cd5a=window[_0x4d890a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1918ff[_0x4d890a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3197,_0x3e3197+0x2));_0x46cd5a>=_0x51f1b5[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46cd5a-=_0x51f1b5[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d5917+=_0x51f1b5[_0x46cd5a];}return _0x1d5917;}function _0x5e0de1(){const _0x3a8e8f=_0x1f23ac[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e]));if(0x3!=_0x3a8e8f[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x361cc4(_0x3a8e8f[0x1]);function _0x361cc4(_0x41da8a){const _0x3f6805=_0x3a5f2e(_0x41da8a);return _0x3f6805&&_0x117cbe()?_0x3f6805:null;function _0x117cbe(){const _0x4075e6=_0x3f6805[_0x4d890a([0x6a,0x74,0x69])],_0x2e1923=window[_0x4d890a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4075e6[_0x4d890a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4075e6[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ec7b5={..._0x3f6805,[_0x4d890a([0x6a,0x74,0x69])]:_0x4075e6[_0x4d890a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4075e6[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ec7b5[_0x4d890a([0x76,0x63])],_0x17567b(_0x4ec7b5)==_0x2e1923;}}}async function _0x168f77(){let _0x167128=!0x0;try{const _0x18f0ff=_0x1f23ac[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])](_0x4d890a([0x2e])),[_0x294e43,_0x3766df,_0x25d188]=_0x18f0ff;return _0x47b691(_0x294e43),await _0x4d37dd(_0x294e43,_0x3766df,_0x25d188),_0x167128;}catch(_0x5819ab){return!0x1;}function _0x47b691(_0x1238ec){const _0x2c4724=_0x3a5f2e(_0x1238ec);_0x2c4724&&_0x2c4724[_0x4d890a([0x61,0x6c,0x67])]==_0x4d890a([0x45,0x53,0x32,0x35,0x36])||(_0x167128=!0x1);}async function _0x4d37dd(_0x4ab28f,_0x3cb494,_0x2ce802){const _0x594e12=window[_0x4d890a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d890a([0x66,0x72,0x6f,0x6d])](_0x42d9d5(_0x2ce802),_0x10f147=>_0x10f147[_0x4d890a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35fc0a=new window[(_0x4d890a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d890a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ab28f+_0x4d890a([0x2e])+_0x3cb494),_0x4aa9ad=window[_0x4d890a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d890a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4aa9ad)return;const _0x5de96a=await _0x4aa9ad[_0x4d890a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d890a([0x6a,0x77,0x6b]),_0x21e2c3,{[_0x4d890a([0x6e,0x61,0x6d,0x65])]:_0x4d890a([0x45,0x43,0x44,0x53,0x41]),[_0x4d890a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d890a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d890a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4aa9ad[_0x4d890a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d890a([0x6e,0x61,0x6d,0x65])]:_0x4d890a([0x45,0x43,0x44,0x53,0x41]),[_0x4d890a([0x68,0x61,0x73,0x68])]:{[_0x4d890a([0x6e,0x61,0x6d,0x65])]:_0x4d890a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5de96a,_0x594e12,_0x35fc0a)||(_0x167128=!0x1);}}function _0x3a5f2e(_0x38b416){return _0x38b416[_0x4d890a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d890a([0x65,0x79]))?JSON[_0x4d890a([0x70,0x61,0x72,0x73,0x65])](_0x42d9d5(_0x38b416)):null;}function _0x42d9d5(_0x2f291e){return window[_0x4d890a([0x61,0x74,0x6f,0x62])](_0x2f291e[_0x4d890a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d890a([0x2b]))[_0x4d890a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d890a([0x2f])));}function _0x17567b(_0x4b69e6){let _0x15f1fc=0x1505;function _0x53ec3c(_0x3c46b8){for(let _0xabe1ed=0x0;_0xabe1ed<_0x3c46b8[_0x4d890a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xabe1ed++){const _0x53b714=_0x3c46b8[_0x4d890a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xabe1ed);_0x15f1fc=(_0x15f1fc<<0x5)+_0x15f1fc+_0x53b714,_0x15f1fc&=_0x15f1fc;}}function _0x2ee597(_0x5aed51){Array[_0x4d890a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5aed51)?_0x5aed51[_0x4d890a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ee597):_0x5aed51&&typeof _0x5aed51==_0x4d890a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d890a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5aed51)[_0x4d890a([0x73,0x6f,0x72,0x74])]()[_0x4d890a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x384f6b,_0x2610ce])=>{_0x53ec3c(_0x384f6b),_0x2ee597(_0x2610ce);}):_0x53ec3c(window[_0x4d890a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5aed51));}return _0x2ee597(_0x4b69e6),_0x15f1fc>>>0x0;}function _0x158e4f(_0x549247){return _0x549247[_0x4d890a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d890a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d890a([0x30]));}function _0x427a3b(_0x3b522c){return _0x3b522c[_0x4d890a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d890a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d890a([0x6a,0x6f,0x69,0x6e])]('');}function _0x51a6eb(){}function _0x4d890a(_0xcabf33){const _0x3431ea=_0x331e;return _0xcabf33[_0x3431ea(0x18a)](_0x29c1fa=>String[_0x3431ea(0x179)](_0x29c1fa))[_0x3431ea(0x1bf)]('');}_0x2ac5f2(await _0x2862f9());}(this);}[_0x4f9bb5(0x17b)](){const _0x475281=_0x4f9bb5,_0x386587=this[_0x475281(0x178)][_0x475281(0x1aa)][_0x475281(0x1b3)];_0x386587[_0x475281(0x1ad)](_0x475281(0x177))&&_0x386587[_0x475281(0x17e)](_0x475281(0x177),{'allowAttributes':[_0x475281(0x1bd)]}),_0x386587[_0x475281(0x1ad)](_0x475281(0x1cc))&&_0x386587[_0x475281(0x17e)](_0x475281(0x1cc),{'allowAttributes':[_0x475281(0x1bd)]});}[_0x4f9bb5(0x1c0)](){const _0x16969a=_0x4f9bb5,_0x29472e=this[_0x16969a(0x178)];_0x29472e[_0x16969a(0x19d)][_0x16969a(0x185)](_0x16969a(0x19a))[_0x16969a(0x1b1)]({'model':_0x16969a(0x1bd),'view':_0x16969a(0x1ae)}),_0x29472e[_0x16969a(0x19d)][_0x16969a(0x185)](_0x16969a(0x19f))[_0x16969a(0x196)]({'model':{'key':_0x16969a(0x1bd),'value':_0xa6e14e=>_0xa6e14e[_0x16969a(0x1ab)](_0x16969a(0x1ae))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4527e1=_0x29472e[_0x16969a(0x17c)][_0x16969a(0x19e)](_0x16969a(0x1cb));_0x4527e1&&this[_0x16969a(0x17f)](_0x4527e1,_0x16969a(0x1a9),(_0x1fcb00,[_0x1d0b0d,_0x1729e2])=>{const _0x4fec06=_0x16969a;_0x1d0b0d[_0x4fec06(0x183)](_0x4fec06(0x1bd),_0x1729e2);});}[_0x4f9bb5(0x1ca)](){const _0x4ff3b9=_0x4f9bb5,_0x89c09c=this[_0x4ff3b9(0x178)][_0x4ff3b9(0x17d)][_0x4ff3b9(0x19e)](_0x4ff3b9(0x19c))||{},_0x2e2915=this[_0x4ff3b9(0x178)][_0x4ff3b9(0x17d)][_0x4ff3b9(0x19e)](_0x4ff3b9(0x1c2))||'';this[_0x4ff3b9(0x1a7)]=_0x39433c(_0x5d3558[_0x4ff3b9(0x197)],_0x4ff3b9(0x1bb),{..._0x89c09c,'pubkey':_0x2e2915,'ctx-name':_0x4ff3b9(0x1b4),'sourceList':'','imgOnly':_0x4ff3b9(0x181),'removeCopyright':_0x4ff3b9(0x181),'localeName':this[_0x4ff3b9(0x178)][_0x4ff3b9(0x1b6)][_0x4ff3b9(0x1a0)],'externalSourcesEmbedCss':_0x4ff3b9(0x1a1)}),this[_0x4ff3b9(0x1a7)][_0x4ff3b9(0x188)]=_0x572895=>{const _0x644355=_0x4ff3b9;if(_0x644355(0x1b7)==_0x572895)return _0x644355(0x1bc);},_0x5d3558[_0x4ff3b9(0x197)][_0x4ff3b9(0x189)][_0x4ff3b9(0x18e)](this[_0x4ff3b9(0x1a7)]);}[_0x4f9bb5(0x193)](){const _0x181722=_0x4f9bb5;this[_0x181722(0x190)]=_0x39433c(_0x5d3558[_0x181722(0x197)],_0x181722(0x182),{'ctx-name':_0x181722(0x1b4)}),_0x5d3558[_0x181722(0x197)][_0x181722(0x189)][_0x181722(0x18e)](this[_0x181722(0x190)]);}[_0x4f9bb5(0x1b0)](){const _0x3921e9=_0x4f9bb5,_0x46b77b=this[_0x3921e9(0x178)][_0x3921e9(0x17c)][_0x3921e9(0x19e)](_0x3921e9(0x1c4));_0x46b77b&&this[_0x3921e9(0x17f)](_0x46b77b,_0x3921e9(0x1a2),()=>{const _0x2c6f2e=_0x3921e9,_0xb60068=this[_0x2c6f2e(0x178)][_0x2c6f2e(0x1aa)][_0x2c6f2e(0x197)][_0x2c6f2e(0x192)][_0x2c6f2e(0x195)]();_0xb60068&&_0xb60068[_0x2c6f2e(0x1ab)](_0x2c6f2e(0x1bd))&&this[_0x2c6f2e(0x178)][_0x2c6f2e(0x1be)][_0x2c6f2e(0x184)][_0x2c6f2e(0x1c6)](_0x2c6f2e(0x1a5),()=>{const _0x171a1f=_0x2c6f2e;_0x2dca9a(this[_0x171a1f(0x178)],_0xb60068);});});const _0x2df471=this[_0x3921e9(0x178)][_0x3921e9(0x17c)][_0x3921e9(0x19e)](_0x3921e9(0x1c5));_0x2df471&&this[_0x3921e9(0x17f)](_0x2df471,_0x3921e9(0x1a2),()=>{const _0x2af1fc=_0x3921e9,_0x529b8c=this[_0x2af1fc(0x178)][_0x2af1fc(0x1aa)][_0x2af1fc(0x197)][_0x2af1fc(0x192)][_0x2af1fc(0x195)]();_0x529b8c&&_0x529b8c[_0x2af1fc(0x1ab)](_0x2af1fc(0x1bd))&&this[_0x2af1fc(0x178)][_0x2af1fc(0x1be)][_0x2af1fc(0x184)][_0x2af1fc(0x1c6)](_0x2af1fc(0x1a5),()=>{const _0x5419af=_0x2af1fc;_0x2dca9a(this[_0x5419af(0x178)],_0x529b8c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4607b5,ObservableMixin as _0x259f70}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xc6a76a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x278529}from'ckeditor5/src/icons.js';import _0x57525c from'./uploadcareimageeditformview.js';import _0x137119 from'../../utils/uploadutils.js';import{getImageUrls as _0x2f3692,getImageDimension as _0x17cadd}from'../../utils/editingutils.js';import{isAncestor as _0x4f0f53}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x259f70(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x44a3c4,_0x5e85df,_0x55e373){super(),this['_editor']=_0x44a3c4,this['_dialog']=_0x5e85df,this['_imageElement']=_0x55e373,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 _0x452e74=this['_imageElement'],_0x548008=_0x452e74['getAttribute']('uploadcareImageId'),_0x135744=_0x452e74['getAttribute']('src');if(_0x548008)await this['_loadImageInfo'](_0x548008,_0x135744);else{if(this['_imageCache']['has'](_0x135744)){const _0x221e57=this['_imageCache']['get'](_0x135744);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x221e57['url'],this['imageDimension']=_0x221e57['dimension'],this['imageId']=_0x221e57['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5f4cfe}=this['_editor'],t=_0x5f4cfe['t'],_0x5d6509=new _0x57525c(_0x5f4cfe,this['imageStatus'],this['_attributes']);_0x5d6509['bind']('status')['to'](this,'imageStatus'),_0x5d6509['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5d6509['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5d6509['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5d6509,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x278529,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5d6509,'position':_0xc6a76a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5d6509['focus']();},'onHide':()=>{_0x5d6509['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2b9e37=>!_0x4f0f53(_0x2b9e37,_0x5d6509['element'])}});}['_loadImageInfo'](_0x24e91c,_0xcf1a89){return _0x137119['getInfo'](_0x24e91c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x558319=>{const {width:_0x1bcd26,height:_0x2d14c0}=_0x558319['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xcf1a89,this['imageDimension']={'width':_0x1bcd26,'height':_0x2d14c0},this['imageId']=_0x24e91c;})['catch'](_0x41ad88=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x41ad88['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x478298,_0x57858e){return this['_getImageAsFile'](_0x478298)['then'](_0x3372e6=>_0x137119['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x57858e['signal'],'file':_0x3372e6,'onProgress':_0x40e9fb=>{_0x40e9fb&&_0x40e9fb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x40e9fb['value']));}}))['then'](_0x5a9e19=>{const {width:_0xd3b9dd,height:_0x2ceab8}=_0x5a9e19['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a9e19['cdnUrl'],this['imageDimension']={'width':_0xd3b9dd,'height':_0x2ceab8},this['imageId']=_0x5a9e19['uuid'],this['imageUploadProgress']=null;const _0x3d7d4f=_0x478298['getAttribute']('src');this['_imageCache']['set'](_0x3d7d4f,{'id':_0x5a9e19['uuid'],'url':_0x5a9e19['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ba8a5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ba8a5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x49a053,_0x3f318f){_0x49a053['on']('apply',(_0x467ac5,_0xc8f1c4)=>{this['_replaceImage'](_0x3f318f,_0xc8f1c4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x49a053['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x49a053['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x13058d,_0xb20d8d,_0x5bdeab){const _0x484722=this['_editor'],{width:_0x3f37f8,height:_0x55fc87}=_0x17cadd(_0xb20d8d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x44aa34,imageSources:_0x580574}=_0x2f3692(_0xb20d8d,_0x3f37f8);_0x484722['model']['change'](_0x2bf34b=>{if('$graveyard'===_0x13058d['root']['rootName']){_0x484722['execute']('insertImage',{'imageType':_0x13058d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x13058d['getAttributes']()),'uploadcareImageId':_0x5bdeab,'src':_0x44aa34,'sources':_0x580574,'width':_0x3f37f8,'height':_0x55fc87}});const _0x3b2d8a=_0x13058d['getChildren']();_0x13058d=_0x484722['model']['document']['selection']['getSelectedElement']();for(const _0x419501 of _0x3b2d8a)_0x2bf34b['append'](_0x2bf34b['cloneElement'](_0x419501),_0x13058d);}else _0x2bf34b['setSelection'](_0x13058d,'on'),_0x484722['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x13058d['getAttributes']()),'uploadcareImageId':_0x5bdeab,'src':_0x44aa34,'sources':_0x580574,'width':_0x3f37f8,'height':_0x55fc87},_0x13058d);_0x2bf34b['setSelection'](_0x13058d,'on');});}async['_getImageAsFile'](_0x23360c){const _0x3b7dfa=_0x4607b5['window'],_0x28261b=_0x4607b5['document']['location']['href'],_0x507450=new _0x3b7dfa['URL'](_0x23360c['getAttribute']('src'),_0x28261b);if('data:'===_0x507450['protocol']){const _0x443891=_0x507450['href']['split'](','),_0x1e3491=_0x443891[0x0]['match'](/:(.*?);/)[0x1],_0x5b31dd=_0x1e3491['split']('/')[0x1],_0x10d25f=_0x3b7dfa['atob'](_0x443891[_0x443891['length']-0x1]);let _0xa93848=_0x10d25f['length'];const _0xf8a2cd=new _0x3b7dfa['Uint8Array'](_0xa93848);for(;_0xa93848--;)_0xf8a2cd[_0xa93848]=_0x10d25f['charCodeAt'](_0xa93848);return new _0x3b7dfa['File']([_0xf8a2cd],'image.'+_0x5b31dd,{'type':_0x1e3491});}const _0x44e6c6=_0x507450['href']['split']('/'),_0x3c4e2a=_0x44e6c6[_0x44e6c6['length']-0x1],_0x37581b=_0x3c4e2a['split']('.')[0x1];return _0x3b7dfa['fetch'](_0x507450['href'])['then'](_0x356dad=>_0x356dad['clone']()['blob']())['then'](_0x52120b=>new _0x3b7dfa['File']([_0x52120b],_0x3c4e2a,{'type':'image/'+_0x37581b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x31258e,_0x3daf75){const _0x32bc0d=_0x4cab,_0xa2f6c4=_0x31258e();while(!![]){try{const _0x26c4f5=-parseInt(_0x32bc0d(0x1e9))/0x1*(parseInt(_0x32bc0d(0x1e0))/0x2)+parseInt(_0x32bc0d(0x1d7))/0x3*(parseInt(_0x32bc0d(0x1e8))/0x4)+-parseInt(_0x32bc0d(0x1d9))/0x5+parseInt(_0x32bc0d(0x1db))/0x6+-parseInt(_0x32bc0d(0x1e2))/0x7*(-parseInt(_0x32bc0d(0x1e4))/0x8)+parseInt(_0x32bc0d(0x1e5))/0x9*(-parseInt(_0x32bc0d(0x1e1))/0xa)+parseInt(_0x32bc0d(0x1e7))/0xb*(parseInt(_0x32bc0d(0x1d8))/0xc);if(_0x26c4f5===_0x3daf75)break;else _0xa2f6c4['push'](_0xa2f6c4['shift']());}catch(_0xf072f){_0xa2f6c4['push'](_0xa2f6c4['shift']());}}}(_0x4c10,0x6b5b4));function _0x4c10(){const _0x9f3308=['18251hLvYic','set','9ATlbYr','5791620kQhABN','2812475lMXMnj','ck-uploadcare-theme','1659744ibagih','image-edit','bindTemplate','imageSrc','uc-light','94WtkMiv','3890vdCzmQ','7zqFYMm','setTemplate','6575864QCvJpI','10917RmyATV','uc-cloud-image-editor','11NqBWRA','1000852ftmytR'];_0x4c10=function(){return _0x9f3308;};return _0x4c10();}import{View as _0x302440}from'ckeditor5/src/ui.js';function _0x4cab(_0x371fe1,_0x2ca242){const _0x4c10e3=_0x4c10();return _0x4cab=function(_0x4cabfd,_0x159633){_0x4cabfd=_0x4cabfd-0x1d6;let _0x2a06ef=_0x4c10e3[_0x4cabfd];return _0x2a06ef;},_0x4cab(_0x371fe1,_0x2ca242);}export default class tt extends _0x302440{constructor(_0x923bbe,_0x274400){const _0x1c3894=_0x4cab;super(_0x923bbe);const _0x328f87=this[_0x1c3894(0x1dd)];this[_0x1c3894(0x1d6)](_0x1c3894(0x1de),''),this[_0x1c3894(0x1e3)]({'tag':_0x1c3894(0x1e6),'attributes':{..._0x274400,'class':[_0x1c3894(0x1df),_0x1c3894(0x1da)],'ctx-name':_0x1c3894(0x1dc),'cdn-url':_0x328f87['to'](_0x1c3894(0x1de))}});}}
|
|
@@ -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 _0x1d5fdb,IconView as at,View as _0x5d0ed1}from'ckeditor5/src/ui.js';export default class rt extends _0x5d0ed1{constructor(_0xc512d9){super(_0xc512d9);const t=_0xc512d9['t'];this['set']('errorType',null);const _0x4b1537=new _0x1d5fdb(_0xc512d9);_0x4b1537['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4b1537['withText']=!0x0,_0x4b1537['class']='ck-button-action',_0x4b1537['on']('execute',()=>{this['fire']('retry');}),_0x4b1537['bind']('isVisible')['to'](this,'errorType',_0x162051=>'NotFound'!==_0x162051);const _0x165f37=new at();_0x165f37['content']=et,_0x165f37['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47cbb6=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':[_0x165f37,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47cbb6['to']('errorType',_0x3d2663=>t('NotFound'!==_0x3d2663?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4b1537]},{'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 _0x10f9fb,View as _0x3e8504}from'ckeditor5/src/ui.js';export default class ta extends _0x3e8504{constructor(_0x4f4a9c){super(_0x4f4a9c);const t=_0x4f4a9c['t'],_0x1947ff=this['bindTemplate'],_0x487ec8=new _0x10f9fb();_0x487ec8['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':[_0x487ec8,{'text':_0x1947ff['to']('imageUploadProgress',_0x5bd759=>t('Loading\x20image...')+'\x20('+(_0x5bd759||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
|
-
|
|
23
|
+
function _0x568a(){const _0x28068b=['237129ghMdhM','12NflarR','change:status','render','disconnect','2LieauR','cancel','883432fUjCJf','add','querySelector','ready','clear','uc-cloud-image-editor','_loadingView','element','_editingView','filter','div','ck-reset_all-excluded','68545rYApLP','7qgceXs','apply','269470IBaIWp','_items','_errorView','observe','addedNodes','detail','2014308BFwQJn','_setView','_addErrorViewListeners','cdnUrl','retry','_waitForImageEditorComponent','addEventListener','length','ck-uploadcare-form','target','createCollection','once','_focusableView','uploading','status','focus','toLowerCase','set','fire','nodeName','_addUploadcareImageEditorListeners','error','getFocusableElement','addMany','24359005pAAouZ','setTemplate','207TWrBQJ','684857geGMaV'];_0x568a=function(){return _0x28068b;};return _0x568a();}const _0x38daa4=_0x5293;(function(_0x2a679c,_0x31091b){const _0x409974=_0x5293,_0x314657=_0x2a679c();while(!![]){try{const _0x201a49=-parseInt(_0x409974(0xdc))/0x1+-parseInt(_0x409974(0xe2))/0x2*(-parseInt(_0x409974(0xdd))/0x3)+-parseInt(_0x409974(0xc1))/0x4+-parseInt(_0x409974(0xb8))/0x5*(parseInt(_0x409974(0xde))/0x6)+parseInt(_0x409974(0xb9))/0x7*(-parseInt(_0x409974(0xe4))/0x8)+-parseInt(_0x409974(0xdb))/0x9*(parseInt(_0x409974(0xbb))/0xa)+parseInt(_0x409974(0xd9))/0xb;if(_0x201a49===_0x31091b)break;else _0x314657['push'](_0x314657['shift']());}catch(_0x22cf69){_0x314657['push'](_0x314657['shift']());}}}(_0x568a,0x54d2c));function _0x5293(_0x4b5946,_0x4250ee){const _0x568ad0=_0x568a();return _0x5293=function(_0x52934e,_0x1fcf37){_0x52934e=_0x52934e-0xad;let _0x3caf6e=_0x568ad0[_0x52934e];return _0x3caf6e;},_0x5293(_0x4b5946,_0x4250ee);}import{View as _0x5eb3db}from'ckeditor5/src/ui.js';import _0x28339c from'./uploadcareimageeditformloadingview.js';import _0x28eb4c from'./uploadcareimageeditformerrorview.js';import _0x41c005 from'./uploadcareimageeditformeditingview.js';import _0x59efa5 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x59efa5{[_0x38daa4(0xbc)];[_0x38daa4(0xb2)];[_0x38daa4(0xbd)];[_0x38daa4(0xb4)];[_0x38daa4(0xcd)];constructor(_0x5e42de,_0x1a77bf,_0x3ce7ca){const _0x2d22a8=_0x38daa4;super(_0x5e42de),this[_0x2d22a8(0xbc)]=this[_0x2d22a8(0xcb)](),this[_0x2d22a8(0xb2)]=new _0x28339c(_0x5e42de),this[_0x2d22a8(0xbd)]=new _0x28eb4c(_0x5e42de),this[_0x2d22a8(0xb4)]=new _0x41c005(_0x5e42de,_0x3ce7ca),this[_0x2d22a8(0xcd)]=new _0x5eb3db(_0x5e42de),this[_0x2d22a8(0xcd)][_0x2d22a8(0xda)](this[_0x2d22a8(0xd7)]()),this[_0x2d22a8(0xd2)](_0x2d22a8(0xcf),_0x1a77bf),this[_0x2d22a8(0xda)]({'tag':_0x2d22a8(0xb6),'attributes':{'class':['ck',_0x2d22a8(0xb7),_0x2d22a8(0xc9)],'tabindex':'-1'},'children':this[_0x2d22a8(0xbc)]}),this[_0x2d22a8(0xc2)](),this[_0x2d22a8(0xcc)](_0x2d22a8(0xe0),()=>{const _0x50d3e8=_0x2d22a8;this[_0x50d3e8(0xc6)](this[_0x50d3e8(0xb3)],_0x4ebdd6=>{const _0x1f1a31=_0x50d3e8;this[_0x1f1a31(0xd5)](_0x4ebdd6);});}),this['on'](_0x2d22a8(0xdf),()=>{const _0x2ec677=_0x2d22a8;this[_0x2ec677(0xc2)]();}),this[_0x2d22a8(0xc3)]();}[_0x38daa4(0xd0)](){const _0x51f799=_0x38daa4;this[_0x51f799(0xb3)][_0x51f799(0xd0)]();}[_0x38daa4(0xc2)](){const _0x2bf1b3=_0x38daa4;switch(this[_0x2bf1b3(0xbc)][_0x2bf1b3(0xb0)](),this[_0x2bf1b3(0xcf)]){case _0x2bf1b3(0xce):this[_0x2bf1b3(0xbc)][_0x2bf1b3(0xad)](this[_0x2bf1b3(0xb2)]);break;case _0x2bf1b3(0xd6):this[_0x2bf1b3(0xbc)][_0x2bf1b3(0xad)](this[_0x2bf1b3(0xbd)]);break;case _0x2bf1b3(0xaf):this[_0x2bf1b3(0xbc)][_0x2bf1b3(0xd8)]([this[_0x2bf1b3(0xb4)],this[_0x2bf1b3(0xcd)]]);}}[_0x38daa4(0xc6)](_0xd0a876,_0xef3a64){const _0x385254=_0x38daa4,_0x4762ea=_0x385254(0xb1),_0x3e0773=_0xd0a876[_0x385254(0xae)](_0x4762ea);if(_0x3e0773)return _0xef3a64(_0x3e0773);const _0x358662=new MutationObserver(_0x271f48=>{const _0x1de030=_0x385254,_0x370784=_0x271f48[_0x1de030(0xb5)](_0x590386=>_0x590386[_0x1de030(0xca)]===_0xd0a876&&_0x590386[_0x1de030(0xbf)][_0x1de030(0xc8)]>0x0&&_0x590386[_0x1de030(0xbf)][0x0][_0x1de030(0xd4)][_0x1de030(0xd1)]()===_0x4762ea);_0x370784[_0x1de030(0xc8)]&&(_0x358662[_0x1de030(0xe1)](),_0xef3a64(_0x370784[0x0][_0x1de030(0xbf)][0x0]));});_0x358662[_0x385254(0xbe)](_0xd0a876,{'childList':!0x0,'subtree':!0x0});}[_0x38daa4(0xd5)](_0x3164d1){const _0x2b6cf4=_0x38daa4;_0x3164d1[_0x2b6cf4(0xc7)](_0x2b6cf4(0xba),_0x2df9c5=>{const _0x54a4c9=_0x2b6cf4;this[_0x54a4c9(0xd3)](_0x54a4c9(0xba),{'imageSrc':_0x2df9c5[_0x54a4c9(0xc0)][_0x54a4c9(0xc4)]});}),_0x3164d1[_0x2b6cf4(0xc7)](_0x2b6cf4(0xe3),()=>{const _0x5c37b3=_0x2b6cf4;this[_0x5c37b3(0xd3)](_0x5c37b3(0xe3));});}[_0x38daa4(0xc3)](){const _0x23d476=_0x38daa4;this[_0x23d476(0xbd)]['on'](_0x23d476(0xc5),()=>{const _0x50cbf3=_0x23d476;this[_0x50cbf3(0xd3)](_0x50cbf3(0xc5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2623b1=_0x3397;(function(_0x93e784,_0x2b3e67){const _0x28b9bf=_0x3397,_0x57690a=_0x93e784();while(!![]){try{const _0x505b0d=-parseInt(_0x28b9bf(0x1c7))/0x1*(-parseInt(_0x28b9bf(0x1c9))/0x2)+parseInt(_0x28b9bf(0x1df))/0x3+-parseInt(_0x28b9bf(0x1cd))/0x4+-parseInt(_0x28b9bf(0x1db))/0x5+-parseInt(_0x28b9bf(0x1d6))/0x6+parseInt(_0x28b9bf(0x1d7))/0x7*(-parseInt(_0x28b9bf(0x1dd))/0x8)+parseInt(_0x28b9bf(0x1e4))/0x9;if(_0x505b0d===_0x2b3e67)break;else _0x57690a['push'](_0x57690a['shift']());}catch(_0x29ba1d){_0x57690a['push'](_0x57690a['shift']());}}}(_0x3ef3,0xd124d));import{Command as _0x2a18b8}from'ckeditor5/src/core.js';import{Dialog as _0x250edb}from'ckeditor5/src/ui.js';import _0x22b016 from'./ui/uploadcareimageeditcontroller.js';function _0x3397(_0x165ed1,_0x129fcd){const _0x3ef3c7=_0x3ef3();return _0x3397=function(_0x339756,_0x15024f){_0x339756=_0x339756-0x1c6;let _0x36b1d8=_0x3ef3c7[_0x339756];return _0x36b1d8;},_0x3397(_0x165ed1,_0x129fcd);}import{createEditabilityChecker as _0x1ed8e0}from'../utils/editingutils.js';function _0x3ef3(){const _0x156a99=['selection','2717040nRqzbQ','element','296PqMeuz','get','3415533uwhopm','isActive','imageBlock','uploadcare.allowExternalImagesEditing','getSelectedElement','26778402lEoVNM','model','1NRexiU','config','94538oMfOqb','editor','document','requires','3042792uTdPsT','imageEditController','unbind','_isEditable','refresh','imageInline','execute','set','isEnabled','5085096WywzVb','218113IUnArk','plugins','bind'];_0x3ef3=function(){return _0x156a99;};return _0x3ef3();}export default class J extends _0x2a18b8{[_0x2623b1(0x1ce)];static get[_0x2623b1(0x1cc)](){return[_0x250edb];}[_0x2623b1(0x1d0)];constructor(_0x146628){const _0x457c93=_0x2623b1;super(_0x146628),this[_0x457c93(0x1ce)]=void 0x0,this[_0x457c93(0x1d0)]=_0x1ed8e0(_0x146628[_0x457c93(0x1c8)][_0x457c93(0x1de)](_0x457c93(0x1e2))||[]),this[_0x457c93(0x1d4)]({'isActive':!0x1});}[_0x2623b1(0x1d1)](){const _0x19667b=_0x2623b1,_0xfb3b71=this[_0x19667b(0x1ca)][_0x19667b(0x1c6)][_0x19667b(0x1cb)][_0x19667b(0x1da)][_0x19667b(0x1e3)]();this[_0x19667b(0x1d5)]=this[_0x19667b(0x1d0)](_0xfb3b71);}[_0x2623b1(0x1d3)](){const _0x4e94cd=_0x2623b1;this[_0x4e94cd(0x1ce)]&&(this[_0x4e94cd(0x1cf)](_0x4e94cd(0x1e0)),this[_0x4e94cd(0x1ce)]=void 0x0);const _0x10429e=this[_0x4e94cd(0x1ca)][_0x4e94cd(0x1c6)][_0x4e94cd(0x1cb)][_0x4e94cd(0x1da)][_0x4e94cd(0x1e3)]();_0x10429e&&(_0x10429e['is'](_0x4e94cd(0x1dc),_0x4e94cd(0x1e1))||_0x10429e['is'](_0x4e94cd(0x1dc),_0x4e94cd(0x1d2)))&&(this[_0x4e94cd(0x1ce)]=new _0x22b016(this[_0x4e94cd(0x1ca)],this[_0x4e94cd(0x1ca)][_0x4e94cd(0x1d8)][_0x4e94cd(0x1de)](_0x250edb),_0x10429e),this[_0x4e94cd(0x1d9)](_0x4e94cd(0x1e0))['to'](this[_0x4e94cd(0x1ce)],_0x4e94cd(0x1e0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x282dc5=_0x173b;(function(_0x58b706,_0x232e14){const _0x21c1ad=_0x173b,_0xf59186=_0x58b706();while(!![]){try{const _0x445c1f=parseInt(_0x21c1ad(0x7e))/0x1+-parseInt(_0x21c1ad(0x88))/0x2+parseInt(_0x21c1ad(0x8d))/0x3+parseInt(_0x21c1ad(0x91))/0x4+-parseInt(_0x21c1ad(0x87))/0x5*(parseInt(_0x21c1ad(0x82))/0x6)+parseInt(_0x21c1ad(0x7d))/0x7*(parseInt(_0x21c1ad(0x86))/0x8)+parseInt(_0x21c1ad(0x83))/0x9*(-parseInt(_0x21c1ad(0x89))/0xa);if(_0x445c1f===_0x232e14)break;else _0xf59186['push'](_0xf59186['shift']());}catch(_0x1757b5){_0xf59186['push'](_0xf59186['shift']());}}}(_0x390f,0xec0c8));import{Plugin as _0x30afe7}from'ckeditor5/src/core.js';function _0x390f(){const _0x4072ea=['uploadcareImageReplace','init','3934448pTEvfM','UploadcareImageEditEditing','7UqbWWd','312182BpoyUK','requires','uploadcareImageEdit','pluginName','6ikexGV','4799835RcwIqN','commands','add','8289496TJBXSZ','476485UriLvn','2786638JkoXeH','10fjrzOJ','isOfficialPlugin','isPremiumPlugin','ImageUtils','1970418kRLxxA','ImageEditing'];_0x390f=function(){return _0x4072ea;};return _0x390f();}function _0x173b(_0x2393e7,_0x10004c){const _0x390f76=_0x390f();return _0x173b=function(_0x173b77,_0x31a19a){_0x173b77=_0x173b77-0x7c;let _0x54befd=_0x390f76[_0x173b77];return _0x54befd;},_0x173b(_0x2393e7,_0x10004c);}import{Notification as _0xdefa8c}from'ckeditor5/src/ui.js';import _0x3acf29 from'./uploadcareimageeditcommand.js';import _0x4fea19 from'./uploadcareimagereplacecommand.js';import _0x18c18f from'../uploadcareediting.js';export default class g extends _0x30afe7{static get[_0x282dc5(0x81)](){const _0x59f3b5=_0x282dc5;return _0x59f3b5(0x7c);}static get[_0x282dc5(0x7f)](){const _0x3479e1=_0x282dc5;return[_0x18c18f,_0xdefa8c,_0x3479e1(0x8c),_0x3479e1(0x8e)];}static get[_0x282dc5(0x8a)](){return!0x0;}static get[_0x282dc5(0x8b)](){return!0x0;}[_0x282dc5(0x90)](){const _0x9e3e8c=_0x282dc5,{editor:_0x5d2a26}=this;_0x5d2a26[_0x9e3e8c(0x84)][_0x9e3e8c(0x85)](_0x9e3e8c(0x80),new _0x3acf29(_0x5d2a26)),_0x5d2a26[_0x9e3e8c(0x84)][_0x9e3e8c(0x85)](_0x9e3e8c(0x8f),new _0x4fea19(_0x5d2a26));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1cfa91}from'ckeditor5/src/core.js';import{ButtonView as _0x2a9cc6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1e42c4}from'ckeditor5/src/icons.js';import{createElement as _0x8c8454}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 _0x1cfa91{['_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 _0x260350=this['editor'];_0x260350['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f4b21=>{const _0x2623b5=_0x260350['commands']['get']('uploadcareImageEdit'),_0x543040=new _0x2a9cc6(_0x2f4b21),t=_0x2f4b21['t'];return _0x543040['set']({'icon':_0x1e42c4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x543040['bind']('isEnabled')['to'](_0x2623b5),_0x543040['bind']('isOn')['to'](_0x2623b5,'isActive'),this['listenTo'](_0x543040,'execute',()=>{_0x260350['execute']('uploadcareImageEdit'),_0x260350['editing']['view']['focus']();}),_0x543040;}),this['_initConfig']();}['_initConfig'](){const _0x48c075=_0x8c8454(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x48c075),this['listenTo'](this['editor'],'destroy',()=>{_0x48c075['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x440403=_0x45f2;function _0x45f2(_0xa47dd2,_0x315977){const _0x16094d=_0x1609();return _0x45f2=function(_0x45f2c3,_0x2c2ffb){_0x45f2c3=_0x45f2c3-0x1d6;let _0x5d3a6e=_0x16094d[_0x45f2c3];return _0x5d3a6e;},_0x45f2(_0xa47dd2,_0x315977);}(function(_0x2700e9,_0x4ce234){const _0x208897=_0x45f2,_0x13b3cd=_0x2700e9();while(!![]){try{const _0x44b124=parseInt(_0x208897(0x1e4))/0x1*(-parseInt(_0x208897(0x1e6))/0x2)+-parseInt(_0x208897(0x1e7))/0x3+parseInt(_0x208897(0x1d9))/0x4+parseInt(_0x208897(0x1db))/0x5*(parseInt(_0x208897(0x1df))/0x6)+parseInt(_0x208897(0x1ed))/0x7*(parseInt(_0x208897(0x1dc))/0x8)+-parseInt(_0x208897(0x1e3))/0x9+parseInt(_0x208897(0x1da))/0xa;if(_0x44b124===_0x4ce234)break;else _0x13b3cd['push'](_0x13b3cd['shift']());}catch(_0x529752){_0x13b3cd['push'](_0x13b3cd['shift']());}}}(_0x1609,0xcce36));function _0x1609(){const _0xd54927=['1420344lQUnCs','35350610myCBLa','90pZLYPP','508280aorqPU','getSelectedElement','editor','54498RBMImv','model','execute','srcset','10417068SKLdKM','1446545APGqKi','setAttributes','2eygMLj','2784291kqrAnz','imageBlock','isEnabled','sizes','imageInline','element','35oDYmnK','document','change','refresh','selection','removeAttribute'];_0x1609=function(){return _0xd54927;};return _0x1609();}import{Command as _0x548668}from'ckeditor5/src/core.js';export default class O extends _0x548668{[_0x440403(0x1d6)](){const _0xc9d490=_0x440403,_0x51339c=this[_0xc9d490(0x1de)][_0xc9d490(0x1e0)][_0xc9d490(0x1ee)][_0xc9d490(0x1d7)][_0xc9d490(0x1dd)]();this[_0xc9d490(0x1e9)]=Boolean(_0x51339c&&(_0x51339c['is'](_0xc9d490(0x1ec),_0xc9d490(0x1e8))||_0x51339c['is'](_0xc9d490(0x1ec),_0xc9d490(0x1eb))));}[_0x440403(0x1e1)](_0x582a21){const _0x414e3d=_0x440403,_0x1b6e2a=this[_0x414e3d(0x1de)][_0x414e3d(0x1e0)][_0x414e3d(0x1ee)][_0x414e3d(0x1d7)][_0x414e3d(0x1dd)]();this[_0x414e3d(0x1de)][_0x414e3d(0x1e0)][_0x414e3d(0x1ef)](_0x37cd85=>{const _0x55fc11=_0x414e3d;_0x37cd85[_0x55fc11(0x1e5)](_0x582a21,_0x1b6e2a),_0x37cd85[_0x55fc11(0x1d8)](_0x55fc11(0x1e2),_0x1b6e2a),_0x37cd85[_0x55fc11(0x1d8)](_0x55fc11(0x1ea),_0x1b6e2a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x40a2ff=_0x284f;(function(_0x3b2895,_0x5a5724){var _0xb09020=_0x284f,_0x4c8e3b=_0x3b2895();while(!![]){try{var _0x4688d4=-parseInt(_0xb09020(0xeb))/0x1+parseInt(_0xb09020(0xec))/0x2*(-parseInt(_0xb09020(0xe6))/0x3)+parseInt(_0xb09020(0xf0))/0x4+parseInt(_0xb09020(0xf2))/0x5*(parseInt(_0xb09020(0xf3))/0x6)+parseInt(_0xb09020(0xe3))/0x7*(-parseInt(_0xb09020(0xe7))/0x8)+parseInt(_0xb09020(0xe5))/0x9*(-parseInt(_0xb09020(0xed))/0xa)+parseInt(_0xb09020(0xee))/0xb*(parseInt(_0xb09020(0xe9))/0xc);if(_0x4688d4===_0x5a5724)break;else _0x4c8e3b['push'](_0x4c8e3b['shift']());}catch(_0x541be0){_0x4c8e3b['push'](_0x4c8e3b['shift']());}}}(_0x5029,0x61dbd));import{Plugin as _0x19fb8f}from'ckeditor5/src/core.js';import _0x57d136 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x58749d from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x5029(){var _0x41a539=['3924vfabZz','isPremiumPlugin','61571YYloau','37920uNNRuV','20XkCsqu','2123KxFFAo','isOfficialPlugin','2053368RBSgGl','pluginName','1601165dcFnrn','12aKmpcG','343fdzXfG','UploadcareImageEdit','2712114rgSjKI','24gRyZFq','24uUCzSI','requires'];_0x5029=function(){return _0x41a539;};return _0x5029();}function _0x284f(_0x7a05fb,_0x23e001){var _0x5029e3=_0x5029();return _0x284f=function(_0x284f2b,_0x53c18f){_0x284f2b=_0x284f2b-0xe3;var _0x349d32=_0x5029e3[_0x284f2b];return _0x349d32;},_0x284f(_0x7a05fb,_0x23e001);}export default class P extends _0x19fb8f{static get[_0x40a2ff(0xf1)](){var _0x285ca8=_0x40a2ff;return _0x285ca8(0xe4);}static get[_0x40a2ff(0xe8)](){return[_0x57d136,_0x58749d];}static get[_0x40a2ff(0xef)](){return!0x0;}static get[_0x40a2ff(0xea)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e6c87=_0x35ca;(function(_0x172900,_0x3d2549){const _0xb539e8=_0x35ca,_0x4d4dc6=_0x172900();while(!![]){try{const _0x1ef0ad=-parseInt(_0xb539e8(0x111))/0x1+-parseInt(_0xb539e8(0x13a))/0x2*(-parseInt(_0xb539e8(0x10e))/0x3)+-parseInt(_0xb539e8(0x12a))/0x4*(-parseInt(_0xb539e8(0x118))/0x5)+parseInt(_0xb539e8(0x123))/0x6*(-parseInt(_0xb539e8(0x126))/0x7)+-parseInt(_0xb539e8(0x130))/0x8*(-parseInt(_0xb539e8(0x11f))/0x9)+parseInt(_0xb539e8(0x13b))/0xa*(-parseInt(_0xb539e8(0x128))/0xb)+parseInt(_0xb539e8(0x12c))/0xc;if(_0x1ef0ad===_0x3d2549)break;else _0x4d4dc6['push'](_0x4d4dc6['shift']());}catch(_0x53971f){_0x4d4dc6['push'](_0x4d4dc6['shift']());}}}(_0x5309,0x5868a));import{Plugin as _0x54264a}from'ckeditor5/src/core.js';import{IconDropbox as _0x30b001,IconFacebook as _0x52005e,IconGoogleDrive as _0x5b4247,IconGooglePhotos as _0x3cf3bd,IconUploadcareImageUpload as _0x1413d0,IconUploadcareLink as _0x3603af,IconOneDrive as _0x227c96}from'ckeditor5/src/icons.js';import{ButtonView as _0x1fd22a,MenuBarMenuListItemButtonView as _0x4d064e}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x539684}from'./uploadcareconfig.js';import{getTranslation as _0x1ff342}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x35ca(_0x2a4ec0,_0x37a7c5){const _0x530913=_0x5309();return _0x35ca=function(_0x35cafc,_0x44cec8){_0x35cafc=_0x35cafc-0x10b;let _0x5ee34d=_0x530913[_0x35cafc];return _0x5ee34d;},_0x35ca(_0x2a4ec0,_0x37a7c5);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x54264a{[_0x3e6c87(0x116)];[_0x3e6c87(0x13c)];static get[_0x3e6c87(0x13e)](){const _0x291fe3=_0x3e6c87;return _0x291fe3(0x112);}static get[_0x3e6c87(0x10d)](){return!0x0;}static get[_0x3e6c87(0x13d)](){return!0x0;}[_0x3e6c87(0x151)](){const _0x16d432=_0x3e6c87;this[_0x16d432(0x116)]=this[_0x16d432(0x159)][_0x16d432(0x144)][_0x16d432(0x15d)](_0x16d432(0x116));const _0x488c17=this[_0x16d432(0x159)];this[_0x16d432(0x13c)]=setInterval(()=>{const _0x3f0b40=_0x16d432;let _0x5a1dff;for(const _0x329157 in _0x488c17){const _0x5d2a45=_0x329157,_0x4c660f=_0x488c17[_0x5d2a45];if(_0x3f0b40(0x129)==_0x4c660f||_0x3f0b40(0x154)==_0x4c660f||_0x3f0b40(0x140)==_0x4c660f||_0x3f0b40(0x155)==_0x4c660f||_0x3f0b40(0x15a)==_0x4c660f||_0x3f0b40(0x10b)==_0x4c660f||_0x3f0b40(0x114)==_0x4c660f||_0x3f0b40(0x14c)==_0x4c660f){delete _0x488c17[_0x5d2a45],_0x5a1dff=_0x4c660f,clearInterval(this[_0x3f0b40(0x13c)]),this[_0x3f0b40(0x13c)]=void 0x0;break;}}_0x3f0b40(0x154)==_0x5a1dff&&_0x488c17[_0x3f0b40(0x11e)](_0x3f0b40(0x158)),_0x3f0b40(0x140)==_0x5a1dff&&_0x488c17[_0x3f0b40(0x11e)](_0x3f0b40(0x11b)),_0x3f0b40(0x155)==_0x5a1dff&&_0x488c17[_0x3f0b40(0x11e)](_0x3f0b40(0x131)),_0x3f0b40(0x15a)==_0x5a1dff&&_0x488c17[_0x3f0b40(0x11e)](_0x3f0b40(0x133),_0x3f0b40(0x142)),_0x3f0b40(0x10b)==_0x5a1dff&&_0x488c17[_0x3f0b40(0x11e)](_0x3f0b40(0x110)),_0x3f0b40(0x114)==_0x5a1dff&&_0x488c17[_0x3f0b40(0x11e)](_0x3f0b40(0x145)),_0x3f0b40(0x14c)==_0x5a1dff&&_0x488c17[_0x3f0b40(0x11e)](_0x3f0b40(0x134));},0x3e8);}[_0x3e6c87(0x139)](){const _0x24532b=_0x3e6c87,{editor:_0x107e66}=this,_0x10db04=_0x107e66[_0x24532b(0x11a)][_0x24532b(0x15d)](_0x24532b(0x149));if(!_0x10db04)return;const _0x59ffe9=this[_0x24532b(0x157)](_0x107e66[_0x24532b(0x144)][_0x24532b(0x15d)](_0x24532b(0x135)))[_0x24532b(0x12f)]((_0x23172d,_0x2890ad)=>{const _0x7df762=_0x24532b,_0x1d75bb=this[_0x7df762(0x12d)](_0x2890ad[_0x7df762(0x141)]);return _0x23172d[_0x1d75bb]||(_0x23172d[_0x1d75bb]=[]),_0x23172d[_0x1d75bb][_0x7df762(0x146)](_0x2890ad),_0x23172d;},{});_0x107e66[_0x24532b(0x124)][_0x24532b(0x14d)](_0x24532b(0x10f))&&_0x107e66[_0x24532b(0x11a)][_0x24532b(0x15d)](_0x24532b(0x149))&&Object[_0x24532b(0x143)](_0x59ffe9)[_0x24532b(0x125)](([_0x25e04d,_0x17075e])=>{const _0x5b0211=_0x24532b;_0x107e66[_0x5b0211(0x124)][_0x5b0211(0x15d)](_0x5b0211(0x10f))[_0x5b0211(0x152)]({'name':_0x25e04d,'observable':()=>_0x10db04,'buttonViewCreator':()=>this[_0x5b0211(0x117)](_0x17075e),'formViewCreator':()=>this[_0x5b0211(0x119)](_0x17075e),'menuBarButtonViewCreator':()=>this[_0x5b0211(0x115)](_0x17075e),'override':_0x5b0211(0x138)!==_0x25e04d});});}[_0x3e6c87(0x121)](){const _0x39ceb1=_0x3e6c87;super[_0x39ceb1(0x121)](),this[_0x39ceb1(0x13c)]&&clearInterval(this[_0x39ceb1(0x13c)]);}[_0x3e6c87(0x157)](_0x2b0872){const _0xf61675=_0x3e6c87,{locale:_0x23a73c}=this[_0xf61675(0x159)];return _0x2b0872[_0xf61675(0x137)](_0x407a02=>{const _0x4fcffa=_0xf61675,_0x46b12a=_0x1ff342(_0x23a73c,_0x407a02,_0x4fcffa(0x127));switch(_0x407a02){case _0x539684[_0x4fcffa(0x136)]:return{'icon':_0x1413d0,'type':_0x539684[_0x4fcffa(0x136)],..._0x46b12a};case _0x539684[_0x4fcffa(0x11d)]:return{'icon':_0x3603af,'type':_0x539684[_0x4fcffa(0x11d)],..._0x46b12a};case _0x539684[_0x4fcffa(0x113)]:return{'icon':_0x30b001,'type':_0x539684[_0x4fcffa(0x113)],..._0x46b12a};case _0x539684[_0x4fcffa(0x10c)]:return{'icon':_0x52005e,'type':_0x539684[_0x4fcffa(0x10c)],..._0x46b12a};case _0x539684[_0x4fcffa(0x14b)]:return{'icon':_0x5b4247,'type':_0x539684[_0x4fcffa(0x14b)],..._0x46b12a};case _0x539684[_0x4fcffa(0x12b)]:return{'icon':_0x3cf3bd,'type':_0x539684[_0x4fcffa(0x12b)],..._0x46b12a};case _0x539684[_0x4fcffa(0x14e)]:return{'icon':_0x227c96,'type':_0x539684[_0x4fcffa(0x14e)],..._0x46b12a};}});}[_0x3e6c87(0x12d)](_0x1137d5){const _0x2f932f=_0x3e6c87;switch(_0x1137d5){case _0x539684[_0x2f932f(0x136)]:return _0x2f932f(0x153);case _0x539684[_0x2f932f(0x11d)]:return _0x2f932f(0x14f);default:return _0x2f932f(0x138);}}[_0x3e6c87(0x156)](_0x1c8aea,_0x2ee042){const _0x3bd0f5=_0x3e6c87,_0x56f2f3=this[_0x3bd0f5(0x159)],_0x55a7f7=new _0x1c8aea(_0x56f2f3[_0x3bd0f5(0x13f)]),_0x59a0ce=_0x56f2f3[_0x3bd0f5(0x11a)][_0x3bd0f5(0x15d)](_0x3bd0f5(0x149));return _0x55a7f7[_0x3bd0f5(0x120)](_0x3bd0f5(0x122))['to'](_0x59a0ce),_0x55a7f7['on'](_0x3bd0f5(0x15c),()=>{const _0x2bc1ae=_0x3bd0f5;_0x59a0ce[_0x2bc1ae(0x15c)](_0x2ee042);}),_0x55a7f7;}[_0x3e6c87(0x117)](_0x39ec28){const _0x51ad68=_0x3e6c87,{locale:_0x56d7a1}=this[_0x51ad68(0x159)],_0x432595=this[_0x51ad68(0x159)][_0x51ad68(0x124)][_0x51ad68(0x15d)](_0x51ad68(0x10f)),_0x241666=_0x39ec28[0x0],_0x49507a=this[_0x51ad68(0x156)](_0x1fd22a,_0x241666[_0x51ad68(0x141)]);return _0x49507a[_0x51ad68(0x12e)]=_0x241666[_0x51ad68(0x12e)],_0x49507a[_0x51ad68(0x120)](_0x51ad68(0x148))['to'](_0x432595,_0x51ad68(0x147),_0x559091=>_0x1ff342(_0x56d7a1,_0x241666[_0x51ad68(0x141)],_0x559091?_0x51ad68(0x132):_0x51ad68(0x127))[_0x51ad68(0x14a)]),_0x49507a[_0x51ad68(0x150)]=!0x0,_0x49507a;}[_0x3e6c87(0x119)](_0x5e58b1){const _0x102e46=_0x3e6c87,{locale:_0x594ca8}=this[_0x102e46(0x159)],_0x1f50ea=this[_0x102e46(0x159)][_0x102e46(0x124)][_0x102e46(0x15d)](_0x102e46(0x10f));return _0x5e58b1[_0x102e46(0x137)](_0x255554=>{const _0x43e8e9=_0x102e46,_0x38b8ad=this[_0x43e8e9(0x156)](_0x1fd22a,_0x255554[_0x43e8e9(0x141)]);return _0x38b8ad[_0x43e8e9(0x15b)]=!0x0,_0x38b8ad[_0x43e8e9(0x12e)]=_0x255554[_0x43e8e9(0x12e)],_0x38b8ad[_0x43e8e9(0x120)](_0x43e8e9(0x148))['to'](_0x1f50ea,_0x43e8e9(0x147),_0x1a1aea=>_0x1ff342(_0x594ca8,_0x255554[_0x43e8e9(0x141)],_0x1a1aea?_0x43e8e9(0x132):_0x43e8e9(0x127))[_0x43e8e9(0x14a)]),_0x38b8ad;});}[_0x3e6c87(0x115)](_0x2d9bb0){const _0xd4d2c5=_0x3e6c87;return _0x2d9bb0[_0xd4d2c5(0x137)](_0x4eb4e2=>{const _0x30a450=_0xd4d2c5,_0x2ec1f9=this[_0x30a450(0x156)](_0x4d064e,_0x4eb4e2[_0x30a450(0x141)]);return _0x2ec1f9[_0x30a450(0x12e)]=_0x4eb4e2[_0x30a450(0x12e)],_0x2ec1f9[_0x30a450(0x148)]=_0x4eb4e2[_0x30a450(0x11c)],_0x2ec1f9;});}}function _0x5309(){const _0x1b47f3=['2798FYSsXx','40gXdWVb','_licenseKeyCheckInterval','isPremiumPlugin','pluginName','locale','uploadcareLicenseKeyExpired','type','Uploadcare','entries','config','trialLimit','push','isImageSelected','label','uploadcare','text','GDrive','uploadcareLicenseKeyUsageLimit','has','OneDrive','url','tooltip','init','registerIntegration','upload','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyDomainLimit','_createButton','_normalizeConfigSourceList','invalid','editor','uploadcareLicenseKeyNotAllowed','withText','execute','get','uploadcareLicenseKeyEvaluationLimit','Facebook','isOfficialPlugin','753VcdaBT','ImageInsertUI','evaluationLimit','413647ndvEZn','UploadcareUI','Dropbox','uploadcareLicenseKeyTrialLimit','_createMenuBarButtons','licenseKey','_createToolbarButton','9640QPELrz','_createDropdownButtons','commands','expired','shortText','URL','_showLicenseError','108hiaVME','bind','destroy','isEnabled','846MGUHlC','plugins','forEach','21553mICxIT','Insert','1169608WquaWc','uploadcareLicenseKeyValid','504TVmzBo','GPhotos','9644820BVAIzM','_getIntegrationKey','icon','reduce','158272DcpMAM','domainLimit','Replace','featureNotAllowed','usageLimit','uploadcare.uploader.sourceList','Local','map','assetManager','afterInit'];_0x5309=function(){return _0x1b47f3;};return _0x5309();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x23f7ed}from'ckeditor5/src/core.js';import{FileRepository as _0x52d946}from'ckeditor5/src/upload.js';import _0x3ad651 from'./uploadcareediting.js';import _0x4e1e18 from'./utils/uploadutils.js';import{getImageUrls as _0x288f5f}from'./utils/editingutils.js';export default class p extends _0x23f7ed{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x52d946,_0x3ad651];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x581165=this['editor'];if(!!!_0x581165['config']['get']('uploadcare'))return;_0x581165['plugins']['get'](_0x52d946)['createUploadAdapter']=_0x2b55c1=>new x(_0x2b55c1,_0x581165),_0x581165['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2d768c,{imageElement:_0x53009f,data:_0x259fa9})=>{_0x581165['model']['change'](_0x24e942=>{_0x24e942['setAttribute']('uploadcareImageId',_0x259fa9['uploadcareImageId'],_0x53009f);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x31169d,_0x2e3336){this['loader']=_0x31169d,this['editor']=_0x2e3336,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x85a4=this['editor']['config']['get']('uploadcare.pubkey'),_0x2b79cb=await this['loader']['file'];return _0x4e1e18['upload']({'file':_0x2b79cb,'publicKey':_0x85a4,'signal':this['controller']['signal'],'onProgress':_0x3a2b8a=>{_0x3a2b8a&&_0x3a2b8a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a2b8a['value']);}})['then'](async _0x3e1dbf=>{const {imageFallbackUrl:_0x19a7c6,imageSources:_0x446ef1}=_0x288f5f(_0x3e1dbf['cdnUrl'],_0x3e1dbf['imageInfo']['width']);return{'uploadcareImageId':_0x3e1dbf['uuid'],'default':_0x19a7c6,'sources':_0x446ef1};})['catch'](()=>{const _0x23ad63=t('Cannot\x20upload\x20file:')+('\x20'+_0x2b79cb['name']+'.');return Promise['reject'](_0x23ad63);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x32348a}from'../uploadcareconfig.js';export function getTranslation(_0x5ca99b,_0x128f2a,_0x2dfd95){const t=_0x5ca99b['t'],_0x47a83e=_0x5ca99b['t'];switch(_0x128f2a){case _0x32348a['Local']:return{'text':_0x47a83e('Insert'===_0x2dfd95?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x47a83e('From\x20computer')};case _0x32348a['URL']:return{'text':'Insert'===_0x2dfd95?_0x47a83e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x47a83e('Via\x20URL')};case _0x32348a['Dropbox']:return{'text':t('Insert'===_0x2dfd95?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x32348a['Facebook']:return{'text':t('Insert'===_0x2dfd95?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x32348a['GDrive']:return{'text':t('Insert'===_0x2dfd95?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x32348a['GPhotos']:return{'text':t('Insert'===_0x2dfd95?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x32348a['OneDrive']:return{'text':t('Insert'===_0x2dfd95?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x128f2a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x181597=_0x32bb;function _0x57ba(){var _0x2055ee=['true','fire','focusTracker','10770557didXMo','57mBNbzW','bindTemplate','313464wIazSO','15526wNBpUe','focusCycler','7634raoWoK','createCollection','forwardCycle','8rxvAFw','22590kSSZqX','8956557TcPfrm','53600352CgPGqR','295JzozMq','div','getFocusableElement','138606KZUzMZ','174hBwunf'];_0x57ba=function(){return _0x2055ee;};return _0x57ba();}(function(_0x1e89a8,_0x31cd9f){var _0x351cb7=_0x32bb,_0x48622c=_0x1e89a8();while(!![]){try{var _0x3f817c=-parseInt(_0x351cb7(0xb3))/0x1*(-parseInt(_0x351cb7(0xbb))/0x2)+parseInt(_0x351cb7(0xb8))/0x3*(-parseInt(_0x351cb7(0xba))/0x4)+-parseInt(_0x351cb7(0xaf))/0x5*(parseInt(_0x351cb7(0xb2))/0x6)+-parseInt(_0x351cb7(0xb7))/0x7+-parseInt(_0x351cb7(0xab))/0x8*(-parseInt(_0x351cb7(0xad))/0x9)+parseInt(_0x351cb7(0xac))/0xa*(-parseInt(_0x351cb7(0xa8))/0xb)+parseInt(_0x351cb7(0xae))/0xc;if(_0x3f817c===_0x31cd9f)break;else _0x48622c['push'](_0x48622c['shift']());}catch(_0x3a7e35){_0x48622c['push'](_0x48622c['shift']());}}}(_0x57ba,0xd0931));import{FocusTracker as _0x106e70}from'ckeditor5/src/utils.js';function _0x32bb(_0x96565e,_0x578aa4){var _0x57ba96=_0x57ba();return _0x32bb=function(_0x32bb73,_0x4c019e){_0x32bb73=_0x32bb73-0xa7;var _0x21979d=_0x57ba96[_0x32bb73];return _0x21979d;},_0x32bb(_0x96565e,_0x578aa4);}import{View as _0x5e73b7,FocusCycler as _0x1652a5}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x5e73b7{[_0x181597(0xb6)];[_0x181597(0xa7)];constructor(_0x443b93){var _0x4d0c56=_0x181597;super(_0x443b93),this[_0x4d0c56(0xb6)]=new _0x106e70(),this[_0x4d0c56(0xa7)]=new _0x1652a5({'focusables':this[_0x4d0c56(0xa9)](),'focusTracker':this[_0x4d0c56(0xb6)]});}[_0x181597(0xb1)](){var _0x1332fd=_0x181597;return{'tag':_0x1332fd(0xb0),'attributes':{'aria-hidden':_0x1332fd(0xb4),'tabindex':'0'},'on':{'focus':this[_0x1332fd(0xb9)]['to'](()=>{var _0x2f8acd=_0x1332fd;this[_0x2f8acd(0xa7)][_0x2f8acd(0xb5)](_0x2f8acd(0xaa));})}};}}
|