@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250213.0 → 0.0.0-nightly-20250214.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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 +8 -8
- 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 _0x338e6d=_0x24cf;(function(_0x3f1695,_0x42f976){const _0x16c35e=_0x24cf,_0x3b82b2=_0x3f1695();while(!![]){try{const _0x45a4d6=parseInt(_0x16c35e(0x167))/0x1*(parseInt(_0x16c35e(0x180))/0x2)+-parseInt(_0x16c35e(0x14d))/0x3+parseInt(_0x16c35e(0x14a))/0x4+-parseInt(_0x16c35e(0x14c))/0x5*(-parseInt(_0x16c35e(0x168))/0x6)+parseInt(_0x16c35e(0x13f))/0x7+-parseInt(_0x16c35e(0x16d))/0x8+-parseInt(_0x16c35e(0x156))/0x9;if(_0x45a4d6===_0x42f976)break;else _0x3b82b2['push'](_0x3b82b2['shift']());}catch(_0x1fbf1e){_0x3b82b2['push'](_0x3b82b2['shift']());}}}(_0x4e0c,0x99cd8));import{Plugin as _0x1d9151}from'ckeditor5/src/core.js';function _0x24cf(_0x417538,_0x26d187){const _0x4e0cd3=_0x4e0c();return _0x24cf=function(_0x24cf3a,_0x5ed8b6){_0x24cf3a=_0x24cf3a-0x13b;let _0x298abf=_0x4e0cd3[_0x24cf3a];return _0x298abf;},_0x24cf(_0x417538,_0x26d187);}function _0x4e0c(){const _0xbe473a=['upcast','contentLanguage','closeMax','join','34567WiRMAY','1513872NoVKNf','querySelector','conversion','_configElement','uploader','4698872VYpqAD','input[uploadcare-file-input]','execute','init','#uc-icon-arrow-down','uploadcare','editor','schema','extend','commands','for','body','destroy','uc-upload-ctx-provider','uploadcareImageReplace','listenTo','afterInit','pluginName','once','18esoCdh','getAttribute','PictureEditing','imageBlock','\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','locale','fromCharCode','render','uploadcareImageId','insertImage','model','_ctxElement','isPremiumPlugin','add','map','remove','true','getSelectedElement','4779894UoLaFZ','document','editing','uploadcare.uploader','appendChild','removeAttribute','ctxElement','isOfficialPlugin','isRegistered','_initCtx','configElement','604548ZqDwvB','imageInline','10GwUEBT','16632MyWykt','cleanupImage','uc-config','selection','attributeToAttribute','href','replaceImageSource','data-uc-image-id','_initConfig','3841443tmdGAG','downcast','elementToAttribute','config','_initImageProcessingIndicator','view','requires','iconHrefResolver','get','UploadcareEditing','_initConversion','_initSchema','uploadcare.pubkey'];_0x4e0c=function(){return _0xbe473a;};return _0x4e0c();}import{Dialog as _0x48b035}from'ckeditor5/src/ui.js';import{createElement as _0xf1a7f0,global as _0x8cca55,uid as _0x463996}from'ckeditor5/src/utils.js';import _0xa679e6 from'./uploadcarecommand.js';import _0x2d7f09 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1705e2}from'./utils/editingutils.js';export default class i extends _0x1d9151{constructor(){const _0x247208=_0x24cf;super(...arguments),this[_0x247208(0x16b)]=null,this[_0x247208(0x18b)]=null;}static get[_0x338e6d(0x17e)](){const _0x3f0eb8=_0x338e6d;return _0x3f0eb8(0x15f);}static get[_0x338e6d(0x15c)](){const _0x2a5b1b=_0x338e6d;return[_0x2a5b1b(0x182),_0x2d7f09,_0x48b035];}static get[_0x338e6d(0x146)](){return!0x0;}static get[_0x338e6d(0x18c)](){return!0x0;}get[_0x338e6d(0x149)](){const _0x257817=_0x338e6d;return this[_0x257817(0x16b)];}get[_0x338e6d(0x145)](){const _0x4eab42=_0x338e6d;return this[_0x4eab42(0x18b)];}[_0x338e6d(0x170)](){const _0xe2fdd4=_0x338e6d,_0x31a855=this[_0xe2fdd4(0x173)];_0x31a855[_0xe2fdd4(0x176)][_0xe2fdd4(0x18d)](_0xe2fdd4(0x172),new _0xa679e6(_0x31a855));}[_0x338e6d(0x17d)](){const _0x5d01cf=_0x338e6d;this[_0x5d01cf(0x161)](),this[_0x5d01cf(0x160)](),this[_0x5d01cf(0x155)](),this[_0x5d01cf(0x148)](),this[_0x5d01cf(0x15a)](),this[_0x5d01cf(0x17c)](this[_0x5d01cf(0x173)],_0x5d01cf(0x179),()=>{const _0x13de9d=_0x5d01cf;this[_0x13de9d(0x16b)]&&(this[_0x13de9d(0x16b)][_0x13de9d(0x13c)](),this[_0x13de9d(0x16b)]=null),this[_0x13de9d(0x18b)]&&(this[_0x13de9d(0x18b)][_0x13de9d(0x13c)](),this[_0x13de9d(0x18b)]=null);const _0x966687=_0x8cca55[_0x13de9d(0x140)][_0x13de9d(0x169)](_0x13de9d(0x16e));_0x966687&&_0x966687[_0x13de9d(0x13c)]();}),async function(_0x3257f4){const _0x56294f=_0x408d0f([0x6e,0x4c,0x37,0x43,0x68,0x51,0x7a,0x52,0x62,0x66,0x39,0x79,0x4f,0x47,0x5a,0x31,0x58,0x57,0x53,0x34,0x44,0x50,0x59,0x36,0x45,0x32,0x4e,0x4a,0x73,0x6b,0x70,0x61,0x71,0x63,0x42,0x30,0x46,0x77,0x56,0x64,0x75,0x67,0x4d,0x74,0x55,0x6d,0x6c,0x38,0x6a,0x69,0x33,0x6f,0x48,0x72,0x65,0x41,0x35,0x76,0x54,0x49,0x4b,0x78]),_0x40aea0=0x157bf8a2,_0x52496c=0x157ca7c2^_0x40aea0,_0x2338a0=window[_0x408d0f([0x44,0x61,0x74,0x65])][_0x408d0f([0x6e,0x6f,0x77])](),_0x51819a=_0x3257f4[_0x408d0f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x485264=new window[(_0x408d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cfed2=>{_0x51819a[_0x408d0f([0x6f,0x6e,0x63,0x65])](_0x408d0f([0x72,0x65,0x61,0x64,0x79]),_0x4cfed2);}),_0x4221fd={[_0x408d0f([0x6b,0x74,0x79])]:_0x408d0f([0x45,0x43]),[_0x408d0f([0x75,0x73,0x65])]:_0x408d0f([0x73,0x69,0x67]),[_0x408d0f([0x63,0x72,0x76])]:_0x408d0f([0x50,0x2d,0x32,0x35,0x36]),[_0x408d0f([0x78])]:_0x408d0f([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]),[_0x408d0f([0x79])]:_0x408d0f([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]),[_0x408d0f([0x61,0x6c,0x67])]:_0x408d0f([0x45,0x53,0x32,0x35,0x36])},_0x563f09=_0x51819a[_0x408d0f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x408d0f([0x67,0x65,0x74])](_0x408d0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x373101(){let _0xf0535f,_0x5e4f1d=null,_0x5e9db8=null;try{if(_0x563f09==_0x408d0f([0x47,0x50,0x4c]))return _0x408d0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf0535f=_0x178e39(),!_0xf0535f)return _0x408d0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf0535f[_0x408d0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e9db8=_0x3020e2(_0xf0535f[_0x408d0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf0535f[_0x408d0f([0x6a,0x74,0x69])])),await _0x3d1ea5()?_0x2a0610()?_0x33ac37()?_0x408d0f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f425c()?(_0xf0535f[_0x408d0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x408d0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e4f1d=_0x31caca(_0x408d0f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf0535f[_0x408d0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x408d0f([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e4f1d=_0x31caca(_0x408d0f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x558291()):_0x408d0f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x408d0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x408d0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x597075){return _0x408d0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33ac37(){const _0x4eaa00=[_0x408d0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x408d0f([0x74,0x72,0x69,0x61,0x6c])][_0x408d0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0535f[_0x408d0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2338a0/0x3e8:0xe10*_0x52496c;return _0xf0535f[_0x408d0f([0x65,0x78,0x70])]<_0x4eaa00;}function _0x2a0610(){const _0x40163b=_0xf0535f[_0x408d0f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40163b&&(!!_0x40163b[_0x408d0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408d0f([0x2a]))||!!_0x40163b[_0x408d0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408d0f([0x55,0x50,0x4c,0x43])));}function _0x1f425c(){const _0x3c8cb6=_0x24cf,_0x382ee2=_0xf0535f[_0x408d0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x382ee2||0x0==_0x382ee2[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x530f30}=new URL(window[_0x408d0f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3c8cb6(0x152)]);if(_0x382ee2[_0x408d0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530f30))return!0x0;const _0x38c967=_0x530f30[_0x408d0f([0x73,0x70,0x6c,0x69,0x74])](_0x408d0f([0x2e]));return _0x382ee2[_0x408d0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf90fbc=>_0xf90fbc[_0x408d0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408d0f([0x2a])))[_0x408d0f([0x6d,0x61,0x70])](_0x5bf8f2=>_0x5bf8f2[_0x408d0f([0x73,0x70,0x6c,0x69,0x74])](_0x408d0f([0x2e])))[_0x408d0f([0x73,0x6f,0x6d,0x65])](_0x17f4d9=>_0x38c967[_0x408d0f([0x65,0x76,0x65,0x72,0x79])]((_0x53df04,_0x2cb6a7)=>_0x17f4d9[_0x2cb6a7]===_0x53df04||_0x17f4d9[_0x2cb6a7]===_0x408d0f([0x2a])));}function _0x558291(){return _0x5e4f1d&&_0x5e9db8?new window[(_0x408d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x593302,_0xde6ef1)=>{_0x5e4f1d[_0x408d0f([0x74,0x68,0x65,0x6e])](_0x593302,_0xde6ef1),_0x5e9db8[_0x408d0f([0x74,0x68,0x65,0x6e])](_0x418c22=>{_0x418c22!=_0x408d0f([0x56,0x61,0x6c,0x69,0x64])&&_0x593302(_0x418c22);},_0xde6ef1);}):_0x5e4f1d||_0x5e9db8||_0x408d0f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3020e2(_0x44d56d,_0x5e05d3){return new window[(_0x408d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b1a0=>{if(_0x3e518b())return _0x21b1a0(_0x408d0f([0x56,0x61,0x6c,0x69,0x64]));_0x584731(),_0x51819a[_0x408d0f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x408d0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fe94f=!0x1;const _0x5b154e=_0x463996();function _0x2edda5(_0x3a2026){return!!_0x3a2026&&(typeof _0x3a2026===_0x408d0f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a2026===_0x408d0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a2026[_0x408d0f([0x74,0x68,0x65,0x6e])]===_0x408d0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a2026[_0x408d0f([0x63,0x61,0x74,0x63,0x68])]===_0x408d0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4437fa(_0x358fc2){_0x421e34(_0x358fc2)[_0x408d0f([0x74,0x68,0x65,0x6e])](_0x2f8eca=>{if(!_0x2f8eca||_0x2f8eca[_0x408d0f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x408d0f([0x6f,0x6b]))return _0x408d0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x106128(_0x505ac6(_0x5b154e+_0x5e05d3))!=_0x2f8eca[_0x408d0f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x408d0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x408d0f([0x56,0x61,0x6c,0x69,0x64]);})[_0x408d0f([0x74,0x68,0x65,0x6e])](_0x164119=>(_0x295868(),_0x164119),()=>{const _0x8814ad=_0x3e760d();return null==_0x8814ad?(_0x295868(),_0x408d0f([0x56,0x61,0x6c,0x69,0x64])):_0x408d0f(_0x2338a0-_0x8814ad>(0x31777ca2^_0x40aea0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x408d0f([0x74,0x68,0x65,0x6e])](_0x21b1a0)[_0x408d0f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21b1a0(_0x408d0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e5fd8=0x154d1622^_0x40aea0;function _0x295868(){const _0x343c14=_0x408d0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x106128(_0x505ac6(_0x44d56d)),_0x1fb881=_0x4f6b80(_0x106128(window[_0x408d0f([0x4d,0x61,0x74,0x68])][_0x408d0f([0x63,0x65,0x69,0x6c])](_0x2338a0/_0x5e5fd8)));window[_0x408d0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x408d0f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x343c14,_0x1fb881);}function _0x3e760d(){const _0x53334d=_0x408d0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x106128(_0x505ac6(_0x44d56d)),_0x7a1d8f=window[_0x408d0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x408d0f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53334d);return _0x7a1d8f?window[_0x408d0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f6b80(_0x7a1d8f),0x10)*_0x5e5fd8:null;}function _0x421e34(_0xa0fe91){return new window[(_0x408d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22fb6b,_0x47fb14)=>{_0xa0fe91[_0x408d0f([0x74,0x68,0x65,0x6e])](_0x22fb6b,_0x47fb14),window[_0x408d0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47fb14,0x157a2c62^_0x40aea0);});}}_0x51819a[_0x408d0f([0x6f,0x6e])](_0x408d0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b3083,_0x60b49)=>{if(_0x60b49[0x0]!=_0x44d56d)return _0x21b1a0(_0x408d0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x60b49[0x1]={..._0x60b49[0x1],[_0x408d0f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b154e};},{[_0x408d0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x408d0f([0x68,0x69,0x67,0x68])}),_0x51819a[_0x408d0f([0x6f,0x6e])](_0x408d0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5877b6=>{_0x2edda5(_0x5877b6[_0x408d0f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fe94f=!0x0,_0x4437fa(_0x5877b6[_0x408d0f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x408d0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x408d0f([0x6c,0x6f,0x77])}),_0x485264[_0x408d0f([0x74,0x68,0x65,0x6e])](()=>{_0x2fe94f||_0x21b1a0(_0x408d0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e518b(){return _0x51819a[_0x408d0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x408d0f([0x76,0x69,0x65,0x77])][_0x408d0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x408d0f([0x61,0x75,0x74,0x6f]);}function _0x584731(){_0x51819a[_0x408d0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x408d0f([0x76,0x69,0x65,0x77])][_0x408d0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x408d0f([0x61,0x75,0x74,0x6f]);}}function _0x31caca(_0x379a7d){const _0x5633f4=[new window[(_0x408d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1be2=>setTimeout(_0x2a1be2,0x1572c66e^_0x40aea0)),_0x485264[_0x408d0f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x408d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x521458=>{let _0xd3090a=0x0;_0x51819a[_0x408d0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x408d0f([0x6f,0x6e])](_0x408d0f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a0d01,_0xd3a929)=>{_0xd3a929[0x0][_0x408d0f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd3090a++,_0xd3090a==(0x157bf95a^_0x40aea0)&&(_0x521458(),_0x5a0d01[_0x408d0f([0x6f,0x66,0x66])]());});}))];return window[_0x408d0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x408d0f([0x72,0x61,0x63,0x65])](_0x5633f4)[_0x408d0f([0x74,0x68,0x65,0x6e])](()=>_0x379a7d);}async function _0x48e8cc(){await _0x485264,_0x51819a[_0x408d0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x408d0f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d27f6,_0x51819a[_0x408d0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x408d0f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d27f6,_0x51819a[_0x408d0f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x408d0f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21437a(_0x506ca6){const _0x4a7f3f=_0x13444b();_0x51819a[_0x4a7f3f]=_0x408d0f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x506ca6,_0x506ca6!=_0x408d0f([0x56,0x61,0x6c,0x69,0x64])&&_0x48e8cc();}function _0x13444b(){const _0x555731=window[_0x408d0f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x408d0f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x408d0f([0x6e,0x6f,0x77])]())[_0x408d0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x408d0f([0x2e]),'');let _0x5248fc=_0x408d0f([0x6e]);for(let _0x3d1ebe=0x0;_0x3d1ebe<_0x555731[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d1ebe+=0x2){let _0x4cc471=window[_0x408d0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x555731[_0x408d0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d1ebe,_0x3d1ebe+0x2));_0x4cc471>=_0x56294f[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cc471-=_0x56294f[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5248fc+=_0x56294f[_0x4cc471];}return _0x5248fc;}function _0x178e39(){const _0x56aac9=_0x563f09[_0x408d0f([0x73,0x70,0x6c,0x69,0x74])](_0x408d0f([0x2e]));if(0x3!=_0x56aac9[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46eaa9(_0x56aac9[0x1]);function _0x46eaa9(_0x370b43){const _0x1b0029=_0x2c48c0(_0x370b43);return _0x1b0029&&_0x5c028b()?_0x1b0029:null;function _0x5c028b(){const _0x41a537=_0x1b0029[_0x408d0f([0x6a,0x74,0x69])],_0x4a2b44=window[_0x408d0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41a537[_0x408d0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41a537[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x205500={..._0x1b0029,[_0x408d0f([0x6a,0x74,0x69])]:_0x41a537[_0x408d0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41a537[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x205500[_0x408d0f([0x76,0x63])],_0x505ac6(_0x205500)==_0x4a2b44;}}}async function _0x3d1ea5(){let _0x2ce65e=!0x0;try{const _0x59ea84=_0x563f09[_0x408d0f([0x73,0x70,0x6c,0x69,0x74])](_0x408d0f([0x2e])),[_0x3c5680,_0x425aab,_0x403d6b]=_0x59ea84;return _0x1936e4(_0x3c5680),await _0x312dbe(_0x3c5680,_0x425aab,_0x403d6b),_0x2ce65e;}catch(_0x37f40d){return!0x1;}function _0x1936e4(_0xb37c4c){const _0x2f4906=_0x2c48c0(_0xb37c4c);_0x2f4906&&_0x2f4906[_0x408d0f([0x61,0x6c,0x67])]==_0x408d0f([0x45,0x53,0x32,0x35,0x36])||(_0x2ce65e=!0x1);}async function _0x312dbe(_0x1904b7,_0x2c8e4a,_0x41fb84){const _0x321f9b=window[_0x408d0f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x408d0f([0x66,0x72,0x6f,0x6d])](_0x39024b(_0x41fb84),_0x34f0b8=>_0x34f0b8[_0x408d0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a23be=new window[(_0x408d0f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x408d0f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1904b7+_0x408d0f([0x2e])+_0x2c8e4a),_0x4dff64=window[_0x408d0f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x408d0f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4dff64)return;const _0x1fafaf=await _0x4dff64[_0x408d0f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x408d0f([0x6a,0x77,0x6b]),_0x4221fd,{[_0x408d0f([0x6e,0x61,0x6d,0x65])]:_0x408d0f([0x45,0x43,0x44,0x53,0x41]),[_0x408d0f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x408d0f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x408d0f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4dff64[_0x408d0f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x408d0f([0x6e,0x61,0x6d,0x65])]:_0x408d0f([0x45,0x43,0x44,0x53,0x41]),[_0x408d0f([0x68,0x61,0x73,0x68])]:{[_0x408d0f([0x6e,0x61,0x6d,0x65])]:_0x408d0f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fafaf,_0x321f9b,_0x4a23be)||(_0x2ce65e=!0x1);}}function _0x2c48c0(_0x1ec743){return _0x1ec743[_0x408d0f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x408d0f([0x65,0x79]))?JSON[_0x408d0f([0x70,0x61,0x72,0x73,0x65])](_0x39024b(_0x1ec743)):null;}function _0x39024b(_0x3ad563){return window[_0x408d0f([0x61,0x74,0x6f,0x62])](_0x3ad563[_0x408d0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x408d0f([0x2b]))[_0x408d0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x408d0f([0x2f])));}function _0x505ac6(_0x457fd6){let _0x12e3b8=0x1505;function _0x35af0f(_0x394152){for(let _0x2075bc=0x0;_0x2075bc<_0x394152[_0x408d0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2075bc++){const _0x44042e=_0x394152[_0x408d0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2075bc);_0x12e3b8=(_0x12e3b8<<0x5)+_0x12e3b8+_0x44042e,_0x12e3b8&=_0x12e3b8;}}function _0x4656b7(_0x4d5997){Array[_0x408d0f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d5997)?_0x4d5997[_0x408d0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4656b7):_0x4d5997&&typeof _0x4d5997==_0x408d0f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x408d0f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d5997)[_0x408d0f([0x73,0x6f,0x72,0x74])]()[_0x408d0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a5352,_0x10b9a6])=>{_0x35af0f(_0x3a5352),_0x4656b7(_0x10b9a6);}):_0x35af0f(window[_0x408d0f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d5997));}return _0x4656b7(_0x457fd6),_0x12e3b8>>>0x0;}function _0x106128(_0x4951ca){return _0x4951ca[_0x408d0f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x408d0f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x408d0f([0x30]));}function _0x4f6b80(_0x314087){return _0x314087[_0x408d0f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x408d0f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x408d0f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d27f6(){}function _0x408d0f(_0x2b6d9c){const _0x47d378=_0x24cf;return _0x2b6d9c[_0x47d378(0x13b)](_0xa1d565=>String[_0x47d378(0x186)](_0xa1d565))[_0x47d378(0x166)]('');}_0x21437a(await _0x373101());}(this);}[_0x338e6d(0x161)](){const _0x437871=_0x338e6d,_0x45b6c0=this[_0x437871(0x173)][_0x437871(0x18a)][_0x437871(0x174)];_0x45b6c0[_0x437871(0x147)](_0x437871(0x183))&&_0x45b6c0[_0x437871(0x175)](_0x437871(0x183),{'allowAttributes':[_0x437871(0x188)]}),_0x45b6c0[_0x437871(0x147)](_0x437871(0x14b))&&_0x45b6c0[_0x437871(0x175)](_0x437871(0x14b),{'allowAttributes':[_0x437871(0x188)]});}[_0x338e6d(0x160)](){const _0x2070a0=_0x338e6d,_0x5b78ef=this[_0x2070a0(0x173)];_0x5b78ef[_0x2070a0(0x16a)][_0x2070a0(0x177)](_0x2070a0(0x157))[_0x2070a0(0x151)]({'model':_0x2070a0(0x188),'view':_0x2070a0(0x154)}),_0x5b78ef[_0x2070a0(0x16a)][_0x2070a0(0x177)](_0x2070a0(0x163))[_0x2070a0(0x158)]({'model':{'key':_0x2070a0(0x188),'value':_0x1ae4f0=>_0x1ae4f0[_0x2070a0(0x181)](_0x2070a0(0x154))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3fb79f=_0x5b78ef[_0x2070a0(0x176)][_0x2070a0(0x15e)](_0x2070a0(0x153));_0x3fb79f&&this[_0x2070a0(0x17c)](_0x3fb79f,_0x2070a0(0x14e),(_0x1d7575,[_0x1fe66f,_0x27e45c])=>{const _0x566c66=_0x2070a0;_0x1fe66f[_0x566c66(0x144)](_0x566c66(0x188),_0x27e45c);});}[_0x338e6d(0x155)](){const _0x1f187a=_0x338e6d,_0xe87494=this[_0x1f187a(0x173)][_0x1f187a(0x159)][_0x1f187a(0x15e)](_0x1f187a(0x142))||{},_0x2e6440=this[_0x1f187a(0x173)][_0x1f187a(0x159)][_0x1f187a(0x15e)](_0x1f187a(0x162))||'';this[_0x1f187a(0x16b)]=_0xf1a7f0(_0x8cca55[_0x1f187a(0x140)],_0x1f187a(0x14f),{..._0xe87494,'pubkey':_0x2e6440,'ctx-name':_0x1f187a(0x16c),'sourceList':'','imgOnly':_0x1f187a(0x13d),'removeCopyright':_0x1f187a(0x13d),'localeName':this[_0x1f187a(0x173)][_0x1f187a(0x185)][_0x1f187a(0x164)],'externalSourcesEmbedCss':_0x1f187a(0x184)}),this[_0x1f187a(0x16b)][_0x1f187a(0x15d)]=_0x5b1316=>{const _0x5d265b=_0x1f187a;if(_0x5d265b(0x165)==_0x5b1316)return _0x5d265b(0x171);},_0x8cca55[_0x1f187a(0x140)][_0x1f187a(0x178)][_0x1f187a(0x143)](this[_0x1f187a(0x16b)]);}[_0x338e6d(0x148)](){const _0x242704=_0x338e6d;this[_0x242704(0x18b)]=_0xf1a7f0(_0x8cca55[_0x242704(0x140)],_0x242704(0x17a),{'ctx-name':_0x242704(0x16c)}),_0x8cca55[_0x242704(0x140)][_0x242704(0x178)][_0x242704(0x143)](this[_0x242704(0x18b)]);}[_0x338e6d(0x15a)](){const _0x192535=_0x338e6d,_0x513f87=this[_0x192535(0x173)][_0x192535(0x176)][_0x192535(0x15e)](_0x192535(0x189));_0x513f87&&this[_0x192535(0x17c)](_0x513f87,_0x192535(0x16f),()=>{const _0x298a48=_0x192535,_0xb212be=this[_0x298a48(0x173)][_0x298a48(0x18a)][_0x298a48(0x140)][_0x298a48(0x150)][_0x298a48(0x13e)]();_0xb212be&&_0xb212be[_0x298a48(0x181)](_0x298a48(0x188))&&this[_0x298a48(0x173)][_0x298a48(0x141)][_0x298a48(0x15b)][_0x298a48(0x17f)](_0x298a48(0x187),()=>{const _0x57d8db=_0x298a48;_0x1705e2(this[_0x57d8db(0x173)],_0xb212be);});});const _0x205f2d=this[_0x192535(0x173)][_0x192535(0x176)][_0x192535(0x15e)](_0x192535(0x17b));_0x205f2d&&this[_0x192535(0x17c)](_0x205f2d,_0x192535(0x16f),()=>{const _0x13cd3c=_0x192535,_0x1adfdc=this[_0x13cd3c(0x173)][_0x13cd3c(0x18a)][_0x13cd3c(0x140)][_0x13cd3c(0x150)][_0x13cd3c(0x13e)]();_0x1adfdc&&_0x1adfdc[_0x13cd3c(0x181)](_0x13cd3c(0x188))&&this[_0x13cd3c(0x173)][_0x13cd3c(0x141)][_0x13cd3c(0x15b)][_0x13cd3c(0x17f)](_0x13cd3c(0x187),()=>{const _0x2304dc=_0x13cd3c;_0x1705e2(this[_0x2304dc(0x173)],_0x1adfdc);});});}}
|
|
23
|
+
const _0xaf017e=_0x1144;function _0x1144(_0x4b0da2,_0x4fd8b2){const _0x923e36=_0x923e();return _0x1144=function(_0x11445c,_0x1d16da){_0x11445c=_0x11445c-0x11d;let _0x54b7c6=_0x923e36[_0x11445c];return _0x54b7c6;},_0x1144(_0x4b0da2,_0x4fd8b2);}function _0x923e(){const _0x211a25=['input[uploadcare-file-input]','once','appendChild','#uc-icon-arrow-down','attributeToAttribute','removeAttribute','uploadcareImageReplace','render','1227624PDauIy','contentLanguage','4pIMpkX','1971165KgHWgQ','add','true','closeMax','join','document','ctxElement','isPremiumPlugin','getSelectedElement','requires','listenTo','_initImageProcessingIndicator','pluginName','extend','uploadcareImageId','isRegistered','replaceImageSource','84uUJuAx','uploadcare.pubkey','downcast','uploadcare.uploader','insertImage','6403959XdFpyc','\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','42iihlvc','_initConversion','1548236ChdCug','_initCtx','locale','_configElement','getAttribute','configElement','uc-config','selection','fromCharCode','cleanupImage','iconHrefResolver','querySelector','schema','_ctxElement','uploadcare','body','editing','upcast','for','imageInline','imageBlock','elementToAttribute','uploader','commands','config','get','afterInit','execute','conversion','19754090dAFbkY','261810bkTAZa','data-uc-image-id','remove','5968476RCeVkw','view','_initConfig','PictureEditing','_initSchema','model','href','init','UploadcareEditing','destroy','uc-upload-ctx-provider','isOfficialPlugin','map','editor'];_0x923e=function(){return _0x211a25;};return _0x923e();}(function(_0xe47fef,_0x1889dd){const _0x48d754=_0x1144,_0x197528=_0xe47fef();while(!![]){try{const _0x194015=-parseInt(_0x48d754(0x16f))/0x1+-parseInt(_0x48d754(0x154))/0x2*(parseInt(_0x48d754(0x155))/0x3)+parseInt(_0x48d754(0x166))/0x4*(parseInt(_0x48d754(0x139))/0x5)+parseInt(_0x48d754(0x13c))/0x6+-parseInt(_0x48d754(0x16d))/0x7*(parseInt(_0x48d754(0x152))/0x8)+parseInt(_0x48d754(0x16b))/0x9+parseInt(_0x48d754(0x138))/0xa;if(_0x194015===_0x1889dd)break;else _0x197528['push'](_0x197528['shift']());}catch(_0x35c155){_0x197528['push'](_0x197528['shift']());}}}(_0x923e,0xf3b64));import{Plugin as _0x27cb38}from'ckeditor5/src/core.js';import{Dialog as _0x3840ed}from'ckeditor5/src/ui.js';import{createElement as _0x3b00be,global as _0x306955,uid as _0x124f31}from'ckeditor5/src/utils.js';import _0x22e66d from'./uploadcarecommand.js';import _0x4c15c2 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4e5589}from'./utils/editingutils.js';export default class i extends _0x27cb38{constructor(){const _0x257a71=_0x1144;super(...arguments),this[_0x257a71(0x11e)]=null,this[_0x257a71(0x128)]=null;}static get[_0xaf017e(0x161)](){const _0x31d0ee=_0xaf017e;return _0x31d0ee(0x144);}static get[_0xaf017e(0x15e)](){const _0x252884=_0xaf017e;return[_0x252884(0x13f),_0x4c15c2,_0x3840ed];}static get[_0xaf017e(0x147)](){return!0x0;}static get[_0xaf017e(0x15c)](){return!0x0;}get[_0xaf017e(0x120)](){const _0x2f4609=_0xaf017e;return this[_0x2f4609(0x11e)];}get[_0xaf017e(0x15b)](){const _0x243e7e=_0xaf017e;return this[_0x243e7e(0x128)];}[_0xaf017e(0x143)](){const _0x238ecd=_0xaf017e,_0x1c1b36=this[_0x238ecd(0x149)];_0x1c1b36[_0x238ecd(0x132)][_0x238ecd(0x156)](_0x238ecd(0x129),new _0x22e66d(_0x1c1b36));}[_0xaf017e(0x135)](){const _0x366e97=_0xaf017e;this[_0x366e97(0x140)](),this[_0x366e97(0x16e)](),this[_0x366e97(0x13e)](),this[_0x366e97(0x170)](),this[_0x366e97(0x160)](),this[_0x366e97(0x15f)](this[_0x366e97(0x149)],_0x366e97(0x145),()=>{const _0x2ee0e1=_0x366e97;this[_0x2ee0e1(0x11e)]&&(this[_0x2ee0e1(0x11e)][_0x2ee0e1(0x13b)](),this[_0x2ee0e1(0x11e)]=null),this[_0x2ee0e1(0x128)]&&(this[_0x2ee0e1(0x128)][_0x2ee0e1(0x13b)](),this[_0x2ee0e1(0x128)]=null);const _0x108b6c=_0x306955[_0x2ee0e1(0x15a)][_0x2ee0e1(0x126)](_0x2ee0e1(0x14a));_0x108b6c&&_0x108b6c[_0x2ee0e1(0x13b)]();}),async function(_0x3513f5){const _0x28b24a=_0x5aa01a([0x52,0x45,0x39,0x79,0x43,0x71,0x4c,0x78,0x65,0x44,0x5a,0x30,0x38,0x77,0x41,0x6c,0x58,0x6e,0x49,0x42,0x47,0x37,0x4a,0x6a,0x57,0x6d,0x69,0x36,0x46,0x72,0x50,0x63,0x4d,0x32,0x48,0x31,0x67,0x76,0x56,0x33,0x70,0x6b,0x35,0x51,0x7a,0x75,0x73,0x74,0x68,0x6f,0x4b,0x53,0x54,0x59,0x62,0x34,0x55,0x4f,0x61,0x66,0x64,0x4e]),_0x4b50f0=0x418441e1,_0x16a453=0x41831e99^_0x4b50f0,_0x40e9c5=window[_0x5aa01a([0x44,0x61,0x74,0x65])][_0x5aa01a([0x6e,0x6f,0x77])](),_0x5f4e9b=_0x3513f5[_0x5aa01a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11fa75=new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa140e6=>{_0x5f4e9b[_0x5aa01a([0x6f,0x6e,0x63,0x65])](_0x5aa01a([0x72,0x65,0x61,0x64,0x79]),_0xa140e6);}),_0x1a6df9={[_0x5aa01a([0x6b,0x74,0x79])]:_0x5aa01a([0x45,0x43]),[_0x5aa01a([0x75,0x73,0x65])]:_0x5aa01a([0x73,0x69,0x67]),[_0x5aa01a([0x63,0x72,0x76])]:_0x5aa01a([0x50,0x2d,0x32,0x35,0x36]),[_0x5aa01a([0x78])]:_0x5aa01a([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]),[_0x5aa01a([0x79])]:_0x5aa01a([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]),[_0x5aa01a([0x61,0x6c,0x67])]:_0x5aa01a([0x45,0x53,0x32,0x35,0x36])},_0x3bae3d=_0x5f4e9b[_0x5aa01a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5aa01a([0x67,0x65,0x74])](_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5dcd3b(){let _0x7004ab,_0x119590=null,_0x4916ed=null;try{if(_0x3bae3d==_0x5aa01a([0x47,0x50,0x4c]))return _0x5aa01a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7004ab=_0x49c485(),!_0x7004ab)return _0x5aa01a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7004ab[_0x5aa01a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4916ed=_0x58786d(_0x7004ab[_0x5aa01a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7004ab[_0x5aa01a([0x6a,0x74,0x69])])),await _0x48fd5a()?_0x54aa51()?_0x328a60()?_0x5aa01a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1bd616()?(_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa01a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x119590=_0x38137a(_0x5aa01a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa01a([0x74,0x72,0x69,0x61,0x6c])&&(_0x119590=_0x38137a(_0x5aa01a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b051f()):_0x5aa01a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa01a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5aa01a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa4a573){return _0x5aa01a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x328a60(){const _0x46faca=[_0x5aa01a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5aa01a([0x74,0x72,0x69,0x61,0x6c])][_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40e9c5/0x3e8:0xe10*_0x16a453;return _0x7004ab[_0x5aa01a([0x65,0x78,0x70])]<_0x46faca;}function _0x54aa51(){const _0x5b80fe=_0x7004ab[_0x5aa01a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b80fe&&(!!_0x5b80fe[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa01a([0x2a]))||!!_0x5b80fe[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa01a([0x55,0x50,0x4c,0x43])));}function _0x1bd616(){const _0x7f66c0=_0x1144,_0x26915b=_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26915b||0x0==_0x26915b[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e700c}=new URL(window[_0x5aa01a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x7f66c0(0x142)]);if(_0x26915b[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e700c))return!0x0;const _0x2786a9=_0x2e700c[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e]));return _0x26915b[_0x5aa01a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ee16f=>_0x4ee16f[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa01a([0x2a])))[_0x5aa01a([0x6d,0x61,0x70])](_0x1756ec=>_0x1756ec[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e])))[_0x5aa01a([0x73,0x6f,0x6d,0x65])](_0x58316e=>_0x2786a9[_0x5aa01a([0x65,0x76,0x65,0x72,0x79])]((_0x2e443f,_0x389baa)=>_0x58316e[_0x389baa]===_0x2e443f||_0x58316e[_0x389baa]===_0x5aa01a([0x2a])));}function _0x3b051f(){return _0x119590&&_0x4916ed?new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51c734,_0x117378)=>{_0x119590[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x51c734,_0x117378),_0x4916ed[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x519c18=>{_0x519c18!=_0x5aa01a([0x56,0x61,0x6c,0x69,0x64])&&_0x51c734(_0x519c18);},_0x117378);}):_0x119590||_0x4916ed||_0x5aa01a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58786d(_0x355eea,_0x394dc1){return new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308be3=>{if(_0x5ec94c())return _0x308be3(_0x5aa01a([0x56,0x61,0x6c,0x69,0x64]));_0x3b1d43(),_0x5f4e9b[_0x5aa01a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5aa01a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3172ad=!0x1;const _0x3fa10f=_0x124f31();function _0x14c95b(_0xa5ac6){return!!_0xa5ac6&&(typeof _0xa5ac6===_0x5aa01a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa5ac6===_0x5aa01a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa5ac6[_0x5aa01a([0x74,0x68,0x65,0x6e])]===_0x5aa01a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa5ac6[_0x5aa01a([0x63,0x61,0x74,0x63,0x68])]===_0x5aa01a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a5026(_0x4f8538){_0x29e993(_0x4f8538)[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x5d6e69=>{if(!_0x5d6e69||_0x5d6e69[_0x5aa01a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5aa01a([0x6f,0x6b]))return _0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52d288(_0x5e3488(_0x3fa10f+_0x394dc1))!=_0x5d6e69[_0x5aa01a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa01a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x4932f3=>(_0x3ee3c4(),_0x4932f3),()=>{const _0x4275e2=_0x4b2f20();return null==_0x4275e2?(_0x3ee3c4(),_0x5aa01a([0x56,0x61,0x6c,0x69,0x64])):_0x5aa01a(_0x40e9c5-_0x4275e2>(0x6588c5e1^_0x4b50f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x308be3)[_0x5aa01a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x308be3(_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xde2f3d=0x41b2af61^_0x4b50f0;function _0x3ee3c4(){const _0x218c66=_0x5aa01a([0x6c,0x6c,0x63,0x74,0x2d])+_0x52d288(_0x5e3488(_0x355eea)),_0x93cdda=_0x2544e1(_0x52d288(window[_0x5aa01a([0x4d,0x61,0x74,0x68])][_0x5aa01a([0x63,0x65,0x69,0x6c])](_0x40e9c5/_0xde2f3d)));window[_0x5aa01a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa01a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x218c66,_0x93cdda);}function _0x4b2f20(){const _0x5550d6=_0x5aa01a([0x6c,0x6c,0x63,0x74,0x2d])+_0x52d288(_0x5e3488(_0x355eea)),_0x420aca=window[_0x5aa01a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa01a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5550d6);return _0x420aca?window[_0x5aa01a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2544e1(_0x420aca),0x10)*_0xde2f3d:null;}function _0x29e993(_0x79a90b){return new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x119275,_0x28d608)=>{_0x79a90b[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x119275,_0x28d608),window[_0x5aa01a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28d608,0x41859521^_0x4b50f0);});}}_0x5f4e9b[_0x5aa01a([0x6f,0x6e])](_0x5aa01a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14f515,_0x48b52c)=>{if(_0x48b52c[0x0]!=_0x355eea)return _0x308be3(_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48b52c[0x1]={..._0x48b52c[0x1],[_0x5aa01a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa10f};},{[_0x5aa01a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa01a([0x68,0x69,0x67,0x68])}),_0x5f4e9b[_0x5aa01a([0x6f,0x6e])](_0x5aa01a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41c259=>{_0x14c95b(_0x41c259[_0x5aa01a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3172ad=!0x0,_0x5a5026(_0x41c259[_0x5aa01a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5aa01a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa01a([0x6c,0x6f,0x77])}),_0x11fa75[_0x5aa01a([0x74,0x68,0x65,0x6e])](()=>{_0x3172ad||_0x308be3(_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ec94c(){return _0x5f4e9b[_0x5aa01a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa01a([0x76,0x69,0x65,0x77])][_0x5aa01a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5aa01a([0x61,0x75,0x74,0x6f]);}function _0x3b1d43(){_0x5f4e9b[_0x5aa01a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa01a([0x76,0x69,0x65,0x77])][_0x5aa01a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5aa01a([0x61,0x75,0x74,0x6f]);}}function _0x38137a(_0x251109){const _0x526045=[new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44115a=>setTimeout(_0x44115a,0x418d7f2d^_0x4b50f0)),_0x11fa75[_0x5aa01a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c32f3=>{let _0x334c3c=0x0;_0x5f4e9b[_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa01a([0x6f,0x6e])](_0x5aa01a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x543eaa,_0x57b11a)=>{_0x57b11a[0x0][_0x5aa01a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x334c3c++,_0x334c3c==(0x41844019^_0x4b50f0)&&(_0x3c32f3(),_0x543eaa[_0x5aa01a([0x6f,0x66,0x66])]());});}))];return window[_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5aa01a([0x72,0x61,0x63,0x65])](_0x526045)[_0x5aa01a([0x74,0x68,0x65,0x6e])](()=>_0x251109);}async function _0x2a66d3(){await _0x11fa75,_0x5f4e9b[_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa01a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18637f,_0x5f4e9b[_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa01a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18637f,_0x5f4e9b[_0x5aa01a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfd36b9(_0x569427){const _0x54bb13=_0x7ebd88();_0x5f4e9b[_0x54bb13]=_0x5aa01a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x569427,_0x569427!=_0x5aa01a([0x56,0x61,0x6c,0x69,0x64])&&_0x2a66d3();}function _0x7ebd88(){const _0x5bd010=window[_0x5aa01a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5aa01a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5aa01a([0x6e,0x6f,0x77])]())[_0x5aa01a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5aa01a([0x2e]),'');let _0x4a20d3=_0x5aa01a([0x52]);for(let _0x36e12e=0x0;_0x36e12e<_0x5bd010[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36e12e+=0x2){let _0x4c5a32=window[_0x5aa01a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bd010[_0x5aa01a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36e12e,_0x36e12e+0x2));_0x4c5a32>=_0x28b24a[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c5a32-=_0x28b24a[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a20d3+=_0x28b24a[_0x4c5a32];}return _0x4a20d3;}function _0x49c485(){const _0x5f4ed8=_0x3bae3d[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e]));if(0x3!=_0x5f4ed8[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1aba9e(_0x5f4ed8[0x1]);function _0x1aba9e(_0x1b15dc){const _0x21b432=_0x38c78f(_0x1b15dc);return _0x21b432&&_0x2a9cf4()?_0x21b432:null;function _0x2a9cf4(){const _0x40bd80=_0x21b432[_0x5aa01a([0x6a,0x74,0x69])],_0x16bb17=window[_0x5aa01a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40bd80[_0x5aa01a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40bd80[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21f3a5={..._0x21b432,[_0x5aa01a([0x6a,0x74,0x69])]:_0x40bd80[_0x5aa01a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40bd80[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21f3a5[_0x5aa01a([0x76,0x63])],_0x5e3488(_0x21f3a5)==_0x16bb17;}}}async function _0x48fd5a(){let _0x433f16=!0x0;try{const _0x560fe5=_0x3bae3d[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e])),[_0x4dd5c9,_0x3e8ab7,_0x1037fd]=_0x560fe5;return _0x1d2bfe(_0x4dd5c9),await _0x367f4d(_0x4dd5c9,_0x3e8ab7,_0x1037fd),_0x433f16;}catch(_0xd550ab){return!0x1;}function _0x1d2bfe(_0x37e7cd){const _0x5ecb75=_0x38c78f(_0x37e7cd);_0x5ecb75&&_0x5ecb75[_0x5aa01a([0x61,0x6c,0x67])]==_0x5aa01a([0x45,0x53,0x32,0x35,0x36])||(_0x433f16=!0x1);}async function _0x367f4d(_0x5e74ea,_0x3dca64,_0x9f789d){const _0xa58174=window[_0x5aa01a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5aa01a([0x66,0x72,0x6f,0x6d])](_0xac66e9(_0x9f789d),_0x71804b=>_0x71804b[_0x5aa01a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4378b0=new window[(_0x5aa01a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5aa01a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e74ea+_0x5aa01a([0x2e])+_0x3dca64),_0x2c920d=window[_0x5aa01a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5aa01a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c920d)return;const _0x71b51f=await _0x2c920d[_0x5aa01a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5aa01a([0x6a,0x77,0x6b]),_0x1a6df9,{[_0x5aa01a([0x6e,0x61,0x6d,0x65])]:_0x5aa01a([0x45,0x43,0x44,0x53,0x41]),[_0x5aa01a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5aa01a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5aa01a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c920d[_0x5aa01a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5aa01a([0x6e,0x61,0x6d,0x65])]:_0x5aa01a([0x45,0x43,0x44,0x53,0x41]),[_0x5aa01a([0x68,0x61,0x73,0x68])]:{[_0x5aa01a([0x6e,0x61,0x6d,0x65])]:_0x5aa01a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x71b51f,_0xa58174,_0x4378b0)||(_0x433f16=!0x1);}}function _0x38c78f(_0x5191f6){return _0x5191f6[_0x5aa01a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5aa01a([0x65,0x79]))?JSON[_0x5aa01a([0x70,0x61,0x72,0x73,0x65])](_0xac66e9(_0x5191f6)):null;}function _0xac66e9(_0x59c0c2){return window[_0x5aa01a([0x61,0x74,0x6f,0x62])](_0x59c0c2[_0x5aa01a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5aa01a([0x2b]))[_0x5aa01a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5aa01a([0x2f])));}function _0x5e3488(_0x21faaa){let _0x319386=0x1505;function _0x58247d(_0x409705){for(let _0x2e1fb7=0x0;_0x2e1fb7<_0x409705[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e1fb7++){const _0x210096=_0x409705[_0x5aa01a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e1fb7);_0x319386=(_0x319386<<0x5)+_0x319386+_0x210096,_0x319386&=_0x319386;}}function _0x5da8fe(_0x2b81ca){Array[_0x5aa01a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b81ca)?_0x2b81ca[_0x5aa01a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5da8fe):_0x2b81ca&&typeof _0x2b81ca==_0x5aa01a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5aa01a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b81ca)[_0x5aa01a([0x73,0x6f,0x72,0x74])]()[_0x5aa01a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x238de0,_0x3d43c2])=>{_0x58247d(_0x238de0),_0x5da8fe(_0x3d43c2);}):_0x58247d(window[_0x5aa01a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b81ca));}return _0x5da8fe(_0x21faaa),_0x319386>>>0x0;}function _0x52d288(_0x16eee1){return _0x16eee1[_0x5aa01a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5aa01a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5aa01a([0x30]));}function _0x2544e1(_0xb3e259){return _0xb3e259[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5aa01a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5aa01a([0x6a,0x6f,0x69,0x6e])]('');}function _0x18637f(){}function _0x5aa01a(_0x58cc8d){const _0x4894fd=_0x1144;return _0x58cc8d[_0x4894fd(0x148)](_0x250652=>String[_0x4894fd(0x123)](_0x250652))[_0x4894fd(0x159)]('');}_0xfd36b9(await _0x5dcd3b());}(this);}[_0xaf017e(0x140)](){const _0x5133f7=_0xaf017e,_0x34c76a=this[_0x5133f7(0x149)][_0x5133f7(0x141)][_0x5133f7(0x127)];_0x34c76a[_0x5133f7(0x164)](_0x5133f7(0x12f))&&_0x34c76a[_0x5133f7(0x162)](_0x5133f7(0x12f),{'allowAttributes':[_0x5133f7(0x163)]}),_0x34c76a[_0x5133f7(0x164)](_0x5133f7(0x12e))&&_0x34c76a[_0x5133f7(0x162)](_0x5133f7(0x12e),{'allowAttributes':[_0x5133f7(0x163)]});}[_0xaf017e(0x16e)](){const _0x4c9eae=_0xaf017e,_0x78efe9=this[_0x4c9eae(0x149)];_0x78efe9[_0x4c9eae(0x137)][_0x4c9eae(0x12d)](_0x4c9eae(0x168))[_0x4c9eae(0x14e)]({'model':_0x4c9eae(0x163),'view':_0x4c9eae(0x13a)}),_0x78efe9[_0x4c9eae(0x137)][_0x4c9eae(0x12d)](_0x4c9eae(0x12c))[_0x4c9eae(0x130)]({'model':{'key':_0x4c9eae(0x163),'value':_0x2823cc=>_0x2823cc[_0x4c9eae(0x11f)](_0x4c9eae(0x13a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xb53a19=_0x78efe9[_0x4c9eae(0x132)][_0x4c9eae(0x134)](_0x4c9eae(0x165));_0xb53a19&&this[_0x4c9eae(0x15f)](_0xb53a19,_0x4c9eae(0x124),(_0x4b6b52,[_0x5a3ce0,_0x496ac1])=>{const _0x34d760=_0x4c9eae;_0x5a3ce0[_0x34d760(0x14f)](_0x34d760(0x163),_0x496ac1);});}[_0xaf017e(0x13e)](){const _0x347575=_0xaf017e,_0x40121f=this[_0x347575(0x149)][_0x347575(0x133)][_0x347575(0x134)](_0x347575(0x169))||{},_0x4f6432=this[_0x347575(0x149)][_0x347575(0x133)][_0x347575(0x134)](_0x347575(0x167))||'';this[_0x347575(0x11e)]=_0x3b00be(_0x306955[_0x347575(0x15a)],_0x347575(0x121),{..._0x40121f,'pubkey':_0x4f6432,'ctx-name':_0x347575(0x131),'sourceList':'','imgOnly':_0x347575(0x157),'removeCopyright':_0x347575(0x157),'localeName':this[_0x347575(0x149)][_0x347575(0x11d)][_0x347575(0x153)],'externalSourcesEmbedCss':_0x347575(0x16c)}),this[_0x347575(0x11e)][_0x347575(0x125)]=_0xe8f6ee=>{const _0x5e7c21=_0x347575;if(_0x5e7c21(0x158)==_0xe8f6ee)return _0x5e7c21(0x14d);},_0x306955[_0x347575(0x15a)][_0x347575(0x12a)][_0x347575(0x14c)](this[_0x347575(0x11e)]);}[_0xaf017e(0x170)](){const _0x5a5df8=_0xaf017e;this[_0x5a5df8(0x128)]=_0x3b00be(_0x306955[_0x5a5df8(0x15a)],_0x5a5df8(0x146),{'ctx-name':_0x5a5df8(0x131)}),_0x306955[_0x5a5df8(0x15a)][_0x5a5df8(0x12a)][_0x5a5df8(0x14c)](this[_0x5a5df8(0x128)]);}[_0xaf017e(0x160)](){const _0x33111f=_0xaf017e,_0x34544b=this[_0x33111f(0x149)][_0x33111f(0x132)][_0x33111f(0x134)](_0x33111f(0x16a));_0x34544b&&this[_0x33111f(0x15f)](_0x34544b,_0x33111f(0x136),()=>{const _0x2a0ff0=_0x33111f,_0x350652=this[_0x2a0ff0(0x149)][_0x2a0ff0(0x141)][_0x2a0ff0(0x15a)][_0x2a0ff0(0x122)][_0x2a0ff0(0x15d)]();_0x350652&&_0x350652[_0x2a0ff0(0x11f)](_0x2a0ff0(0x163))&&this[_0x2a0ff0(0x149)][_0x2a0ff0(0x12b)][_0x2a0ff0(0x13d)][_0x2a0ff0(0x14b)](_0x2a0ff0(0x151),()=>{const _0x368f2b=_0x2a0ff0;_0x4e5589(this[_0x368f2b(0x149)],_0x350652);});});const _0x4c2b18=this[_0x33111f(0x149)][_0x33111f(0x132)][_0x33111f(0x134)](_0x33111f(0x150));_0x4c2b18&&this[_0x33111f(0x15f)](_0x4c2b18,_0x33111f(0x136),()=>{const _0x3078ef=_0x33111f,_0xd250c2=this[_0x3078ef(0x149)][_0x3078ef(0x141)][_0x3078ef(0x15a)][_0x3078ef(0x122)][_0x3078ef(0x15d)]();_0xd250c2&&_0xd250c2[_0x3078ef(0x11f)](_0x3078ef(0x163))&&this[_0x3078ef(0x149)][_0x3078ef(0x12b)][_0x3078ef(0x13d)][_0x3078ef(0x14b)](_0x3078ef(0x151),()=>{const _0x2be975=_0x3078ef;_0x4e5589(this[_0x2be975(0x149)],_0xd250c2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3f289d,ObservableMixin as _0x28d3b9}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5892b3}from'ckeditor5/src/ui.js';import _0x2bf3d0 from'./uploadcareimageeditformview.js';import _0x30a3d2 from'../../utils/uploadutils.js';import _0xe4c306 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x1bf605,getImageDimension as _0x56ffdc}from'../../utils/editingutils.js';import{isAncestor as _0x371ef5}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28d3b9(){constructor(_0x1700ba,_0x62b3bf,_0x437655){super(),this['_editor']=_0x1700ba,this['_dialog']=_0x62b3bf,this['_imageElement']=_0x437655,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 _0x132783=this['_imageElement'],_0x11963a=_0x132783['getAttribute']('uploadcareImageId'),_0x44962a=_0x132783['getAttribute']('src');if(_0x11963a)await this['_loadImageInfo'](_0x11963a,_0x44962a);else{if(this['_imageCache']['has'](_0x44962a)){const _0x3786df=this['_imageCache']['get'](_0x44962a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3786df['url'],this['imageDimension']=_0x3786df['dimension'],this['imageId']=_0x3786df['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x58336f}=this['_editor'],t=_0x58336f['t'],_0x5471e8=new _0x2bf3d0(_0x58336f,this['imageStatus'],this['_attributes']);_0x5471e8['bind']('status')['to'](this,'imageStatus'),_0x5471e8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5471e8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5471e8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5471e8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xe4c306,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5471e8,'position':_0x5892b3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5471e8['focus']();},'onHide':()=>{_0x5471e8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2418cc=>!_0x371ef5(_0x2418cc,_0x5471e8['element'])}});}['_loadImageInfo'](_0x2ec87a,_0x4a6bb9){return _0x30a3d2['getInfo'](_0x2ec87a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x172496=>{const {width:_0x5d05d4,height:_0x579814}=_0x172496['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a6bb9,this['imageDimension']={'width':_0x5d05d4,'height':_0x579814},this['imageId']=_0x2ec87a;})['catch'](_0x215f77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x215f77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5aa678,_0x5bc41f){return this['_getImageAsFile'](_0x5aa678)['then'](_0x59b3ef=>_0x30a3d2['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5bc41f['signal'],'file':_0x59b3ef,'onProgress':_0x35ef27=>{_0x35ef27&&_0x35ef27['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x35ef27['value']));}}))['then'](_0x449833=>{const {width:_0x16810e,height:_0x2db071}=_0x449833['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x449833['cdnUrl'],this['imageDimension']={'width':_0x16810e,'height':_0x2db071},this['imageId']=_0x449833['uuid'],this['imageUploadProgress']=null;const _0x2f98a3=_0x5aa678['getAttribute']('src');this['_imageCache']['set'](_0x2f98a3,{'id':_0x449833['uuid'],'url':_0x449833['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x24cd48=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24cd48['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2764ba,_0x56edbd){_0x2764ba['on']('apply',(_0x3d42dc,_0x5b6659)=>{this['_replaceImage'](_0x56edbd,_0x5b6659['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2764ba['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2764ba['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x42dec3,_0x2e3cca,_0x6dcd3b){const _0x156e41=this['_editor'],{width:_0x55e025,height:_0x1ccee1}=_0x56ffdc(_0x2e3cca,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x508d95,imageSources:_0x30ae40}=_0x1bf605(_0x2e3cca,_0x55e025);_0x156e41['model']['change'](_0x22634e=>{if('$graveyard'===_0x42dec3['root']['rootName']){_0x156e41['execute']('insertImage',{'imageType':_0x42dec3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x42dec3['getAttributes']()),'uploadcareImageId':_0x6dcd3b,'src':_0x508d95,'sources':_0x30ae40,'width':_0x55e025,'height':_0x1ccee1}});const _0x1231af=_0x42dec3['getChildren']();_0x42dec3=_0x156e41['model']['document']['selection']['getSelectedElement']();for(const _0x52403a of _0x1231af)_0x22634e['append'](_0x22634e['cloneElement'](_0x52403a),_0x42dec3);}else _0x22634e['setSelection'](_0x42dec3,'on'),_0x156e41['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x42dec3['getAttributes']()),'uploadcareImageId':_0x6dcd3b,'src':_0x508d95,'sources':_0x30ae40,'width':_0x55e025,'height':_0x1ccee1},_0x42dec3);_0x22634e['setSelection'](_0x42dec3,'on');});}async['_getImageAsFile'](_0x214ebb){const _0x156e51=_0x3f289d['window'],_0x1bc18b=_0x3f289d['document']['location']['href'],_0x2f48a4=new _0x156e51['URL'](_0x214ebb['getAttribute']('src'),_0x1bc18b);if('data:'===_0x2f48a4['protocol']){const _0x1b8be0=_0x2f48a4['href']['split'](','),_0x3965fe=_0x1b8be0[0x0]['match'](/:(.*?);/)[0x1],_0x232b04=_0x3965fe['split']('/')[0x1],_0x5f084c=_0x156e51['atob'](_0x1b8be0[_0x1b8be0['length']-0x1]);let _0x144f71=_0x5f084c['length'];const _0x4bd7a0=new _0x156e51['Uint8Array'](_0x144f71);for(;_0x144f71--;)_0x4bd7a0[_0x144f71]=_0x5f084c['charCodeAt'](_0x144f71);return new _0x156e51['File']([_0x4bd7a0],'image.'+_0x232b04,{'type':_0x3965fe});}const _0x4a426d=_0x2f48a4['href']['split']('/'),_0x1c158f=_0x4a426d[_0x4a426d['length']-0x1],_0x10ec7b=_0x1c158f['split']('.')[0x1];return _0x156e51['fetch'](_0x2f48a4['href'])['then'](_0x4394fa=>_0x4394fa['clone']()['blob']())['then'](_0x8da5ff=>new _0x156e51['File']([_0x8da5ff],_0x1c158f,{'type':'image/'+_0x10ec7b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x23b958,_0x181cf6){const _0x3ea4f8=_0x56d9,_0x490136=_0x23b958();while(!![]){try{const _0x241fb3=parseInt(_0x3ea4f8(0xfc))/0x1*(-parseInt(_0x3ea4f8(0xf9))/0x2)+parseInt(_0x3ea4f8(0xf0))/0x3+-parseInt(_0x3ea4f8(0xec))/0x4*(-parseInt(_0x3ea4f8(0xed))/0x5)+parseInt(_0x3ea4f8(0xfa))/0x6*(-parseInt(_0x3ea4f8(0xef))/0x7)+-parseInt(_0x3ea4f8(0xe9))/0x8*(-parseInt(_0x3ea4f8(0xf3))/0x9)+-parseInt(_0x3ea4f8(0xf2))/0xa+-parseInt(_0x3ea4f8(0xea))/0xb*(-parseInt(_0x3ea4f8(0xfb))/0xc);if(_0x241fb3===_0x181cf6)break;else _0x490136['push'](_0x490136['shift']());}catch(_0x247d99){_0x490136['push'](_0x490136['shift']());}}}(_0x1cbd,0x1a50d));function _0x56d9(_0x5a23ac,_0x53cbf1){const _0x1cbd39=_0x1cbd();return _0x56d9=function(_0x56d94f,_0x19022c){_0x56d94f=_0x56d94f-0xe9;let _0x173cc6=_0x1cbd39[_0x56d94f];return _0x173cc6;},_0x56d9(_0x5a23ac,_0x53cbf1);}function _0x1cbd(){const _0x550da7=['image-edit','222NQVSLh','24XVfFrK','519756gGWhpo','571WiwMKl','1096dDLLIs','11IDBxjb','uc-cloud-image-editor','6940HBvHYL','275wtzKcz','set','286818mOxTiy','646419iZnuXb','uc-light','1640910aCyBLx','9522GwZbaf','ck-uploadcare-theme','imageSrc','bindTemplate','setTemplate'];_0x1cbd=function(){return _0x550da7;};return _0x1cbd();}import{View as _0xe96ee9}from'ckeditor5/src/ui.js';export default class tt extends _0xe96ee9{constructor(_0x1247b4,_0x1e97d8){const _0x2d0097=_0x56d9;super(_0x1247b4);const _0x29db71=this[_0x2d0097(0xf6)];this[_0x2d0097(0xee)](_0x2d0097(0xf5),''),this[_0x2d0097(0xf7)]({'tag':_0x2d0097(0xeb),'attributes':{..._0x1e97d8,'class':[_0x2d0097(0xf1),_0x2d0097(0xf4)],'ctx-name':_0x2d0097(0xf8),'cdn-url':_0x29db71['to'](_0x2d0097(0xf5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2b4c8b,IconView as et,View as _0x156254}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x156254{constructor(_0x5acb6d){super(_0x5acb6d);const t=_0x5acb6d['t'];this['set']('errorType',null);const _0x4bcff7=new _0x2b4c8b(_0x5acb6d);_0x4bcff7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4bcff7['withText']=!0x0,_0x4bcff7['class']='ck-button-action',_0x4bcff7['on']('execute',()=>{this['fire']('retry');}),_0x4bcff7['bind']('isVisible')['to'](this,'errorType',_0x1f2b3a=>'NotFound'!==_0x1f2b3a);const _0x5a71e1=new et();_0x5a71e1['content']=at,_0x5a71e1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1faa07=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':[_0x5a71e1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1faa07['to']('errorType',_0x166f4a=>t('NotFound'!==_0x166f4a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4bcff7]},{'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 _0x2759a2,View as _0x49a21c}from'ckeditor5/src/ui.js';export default class ta extends _0x49a21c{constructor(_0x87f534){super(_0x87f534);const t=_0x87f534['t'],_0x3c7613=this['bindTemplate'],_0x131ae5=new _0x2759a2();_0x131ae5['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':[_0x131ae5,{'text':_0x3c7613['to']('imageUploadProgress',_0x37e32a=>t('Loading\x20image...')+'\x20('+(_0x37e32a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36d90e=_0x2fcd;(function(_0x53c598,_0x3499e8){const _0x3b8574=_0x2fcd,_0x50f64d=_0x53c598();while(!![]){try{const _0xbb3470=parseInt(_0x3b8574(0xc4))/0x1*(parseInt(_0x3b8574(0xd6))/0x2)+-parseInt(_0x3b8574(0xd2))/0x3*(-parseInt(_0x3b8574(0xe0))/0x4)+parseInt(_0x3b8574(0xd7))/0x5*(parseInt(_0x3b8574(0xde))/0x6)+parseInt(_0x3b8574(0xcb))/0x7+-parseInt(_0x3b8574(0xaf))/0x8+-parseInt(_0x3b8574(0xb8))/0x9+parseInt(_0x3b8574(0xad))/0xa*(parseInt(_0x3b8574(0xc3))/0xb);if(_0xbb3470===_0x3499e8)break;else _0x50f64d['push'](_0x50f64d['shift']());}catch(_0x30458f){_0x50f64d['push'](_0x50f64d['shift']());}}}(_0x1ce1,0x4cd4f));import{View as _0x46bf73}from'ckeditor5/src/ui.js';import _0x482b4c from'./uploadcareimageeditformloadingview.js';import _0x249746 from'./uploadcareimageeditformerrorview.js';import _0x1f20b3 from'./uploadcareimageeditformeditingview.js';import _0x474b7d from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2fcd(_0x1df7c9,_0x5894e4){const _0x1ce103=_0x1ce1();return _0x2fcd=function(_0x2fcd0d,_0x508209){_0x2fcd0d=_0x2fcd0d-0xad;let _0x26af86=_0x1ce103[_0x2fcd0d];return _0x26af86;},_0x2fcd(_0x1df7c9,_0x5894e4);}export default class Z extends _0x474b7d{constructor(_0x4fd605,_0x731c21,_0x291167){const _0x5adad0=_0x2fcd;super(_0x4fd605),this[_0x5adad0(0xb3)]=this[_0x5adad0(0xae)](),this[_0x5adad0(0xc5)]=new _0x482b4c(_0x4fd605),this[_0x5adad0(0xd9)]=new _0x249746(_0x4fd605),this[_0x5adad0(0xc6)]=new _0x1f20b3(_0x4fd605,_0x291167),this[_0x5adad0(0xe4)]=new _0x46bf73(_0x4fd605),this[_0x5adad0(0xe4)][_0x5adad0(0xc2)](this[_0x5adad0(0xbe)]()),this[_0x5adad0(0xd5)](_0x5adad0(0xcc),_0x731c21),this[_0x5adad0(0xc2)]({'tag':_0x5adad0(0xba),'attributes':{'class':['ck',_0x5adad0(0xbf),_0x5adad0(0xe3)],'tabindex':'-1'},'children':this[_0x5adad0(0xb3)]}),this[_0x5adad0(0xe1)](),this[_0x5adad0(0xb4)](_0x5adad0(0xda),()=>{const _0x5d2a45=_0x5adad0;this[_0x5d2a45(0xc0)](this[_0x5d2a45(0xb7)],_0x4312b2=>{const _0x2b2469=_0x5d2a45;this[_0x2b2469(0xb9)](_0x4312b2);});}),this['on'](_0x5adad0(0xb1),()=>{const _0x43d251=_0x5adad0;this[_0x43d251(0xe1)]();}),this[_0x5adad0(0xdb)]();}[_0x36d90e(0xd1)](){const _0x539317=_0x36d90e;this[_0x539317(0xb7)][_0x539317(0xd1)]();}[_0x36d90e(0xe1)](){const _0xa07f8f=_0x36d90e;switch(this[_0xa07f8f(0xb3)][_0xa07f8f(0xd3)](),this[_0xa07f8f(0xcc)]){case _0xa07f8f(0xc9):this[_0xa07f8f(0xb3)][_0xa07f8f(0xcf)](this[_0xa07f8f(0xc5)]);break;case _0xa07f8f(0xbd):this[_0xa07f8f(0xb3)][_0xa07f8f(0xcf)](this[_0xa07f8f(0xd9)]);break;case _0xa07f8f(0xb2):this[_0xa07f8f(0xb3)][_0xa07f8f(0xc8)]([this[_0xa07f8f(0xc6)],this[_0xa07f8f(0xe4)]]);}}[_0x36d90e(0xc0)](_0x82ef65,_0x4fba64){const _0x31296d=_0x36d90e,_0x3f8866=_0x31296d(0xc1),_0x2f9342=_0x82ef65[_0x31296d(0xb6)](_0x3f8866);if(_0x2f9342)return _0x4fba64(_0x2f9342);const _0x50908a=new MutationObserver(_0x553f37=>{const _0x2ec182=_0x31296d,_0x16c9f7=_0x553f37[_0x2ec182(0xb5)](_0x1b1d0d=>_0x1b1d0d[_0x2ec182(0xd4)]===_0x82ef65&&_0x1b1d0d[_0x2ec182(0xce)][_0x2ec182(0xcd)]>0x0&&_0x1b1d0d[_0x2ec182(0xce)][0x0][_0x2ec182(0xdc)][_0x2ec182(0xdd)]()===_0x3f8866);_0x16c9f7[_0x2ec182(0xcd)]&&(_0x50908a[_0x2ec182(0xdf)](),_0x4fba64(_0x16c9f7[0x0][_0x2ec182(0xce)][0x0]));});_0x50908a[_0x31296d(0xd0)](_0x82ef65,{'childList':!0x0,'subtree':!0x0});}[_0x36d90e(0xb9)](_0x1e1b55){const _0xc59257=_0x36d90e;_0x1e1b55[_0xc59257(0xd8)](_0xc59257(0xc7),_0x47bdb4=>{const _0x20d57b=_0xc59257;this[_0x20d57b(0xb0)](_0x20d57b(0xc7),{'imageSrc':_0x47bdb4[_0x20d57b(0xca)][_0x20d57b(0xe2)]});}),_0x1e1b55[_0xc59257(0xd8)](_0xc59257(0xbc),()=>{const _0x1800b2=_0xc59257;this[_0x1800b2(0xb0)](_0x1800b2(0xbc));});}[_0x36d90e(0xdb)](){const _0x3e3947=_0x36d90e;this[_0x3e3947(0xd9)]['on'](_0x3e3947(0xbb),()=>{const _0xc17e26=_0x3e3947;this[_0xc17e26(0xb0)](_0xc17e26(0xbb));});}}function _0x1ce1(){const _0x5435d9=['addEventListener','_errorView','render','_addErrorViewListeners','nodeName','toLowerCase','126cTbkUw','disconnect','1834932IcccmV','_setView','cdnUrl','ck-uploadcare-form','_focusableView','10RIWwCt','createCollection','4719416AIdIVU','fire','change:status','ready','_items','once','filter','querySelector','element','549990ReDtSY','_addUploadcareImageEditorListeners','div','retry','cancel','error','getFocusableElement','ck-reset_all-excluded','_waitForImageEditorComponent','uc-cloud-image-editor','setTemplate','893574eoqOoI','1JtIGYp','_loadingView','_editingView','apply','addMany','uploading','detail','2009469jfRvyh','status','length','addedNodes','add','observe','focus','3UxsnnI','clear','target','set','220670HtOXxW','6755bYogKP'];_0x1ce1=function(){return _0x5435d9;};return _0x1ce1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x59e5(_0x59af50,_0x39f4db){const _0xbea459=_0xbea4();return _0x59e5=function(_0x59e5d2,_0xf80768){_0x59e5d2=_0x59e5d2-0x109;let _0x4a2841=_0xbea459[_0x59e5d2];return _0x4a2841;},_0x59e5(_0x59af50,_0x39f4db);}const _0x92bf06=_0x59e5;(function(_0x23165d,_0x31e8af){const _0x1284a8=_0x59e5,_0x22e4aa=_0x23165d();while(!![]){try{const _0x526dda=parseInt(_0x1284a8(0x116))/0x1*(-parseInt(_0x1284a8(0x111))/0x2)+-parseInt(_0x1284a8(0x126))/0x3+-parseInt(_0x1284a8(0x119))/0x4+-parseInt(_0x1284a8(0x109))/0x5+parseInt(_0x1284a8(0x118))/0x6*(parseInt(_0x1284a8(0x11f))/0x7)+-parseInt(_0x1284a8(0x120))/0x8+parseInt(_0x1284a8(0x10e))/0x9;if(_0x526dda===_0x31e8af)break;else _0x22e4aa['push'](_0x22e4aa['shift']());}catch(_0x94bfd8){_0x22e4aa['push'](_0x22e4aa['shift']());}}}(_0xbea4,0xdbfc9));import{Command as _0x6ea7a6}from'ckeditor5/src/core.js';import{Dialog as _0x2f9666}from'ckeditor5/src/ui.js';import _0x3bc191 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x20b443}from'../utils/editingutils.js';function _0xbea4(){const _0x5e9431=['10032234OnkVgX','1977532hFKSoV','isActive','isEnabled','document','bind','getSelectedElement','7kCRPUO','9146816DyzdmF','uploadcare.allowExternalImagesEditing','imageInline','plugins','imageEditController','model','3868584TBYDuW','editor','717530grkGEb','refresh','execute','requires','selection','24796395wagcxB','config','element','910720tIqByj','imageBlock','get','unbind','set','1aghvsf','_isEditable'];_0xbea4=function(){return _0x5e9431;};return _0xbea4();}export default class J extends _0x6ea7a6{static get[_0x92bf06(0x10c)](){return[_0x2f9666];}constructor(_0x459a85){const _0x403f24=_0x92bf06;super(_0x459a85),this[_0x403f24(0x124)]=void 0x0,this[_0x403f24(0x117)]=_0x20b443(_0x459a85[_0x403f24(0x10f)][_0x403f24(0x113)](_0x403f24(0x121))||[]),this[_0x403f24(0x115)]({'isActive':!0x1});}[_0x92bf06(0x10a)](){const _0x2c1e0c=_0x92bf06,_0x4a5bd6=this[_0x2c1e0c(0x127)][_0x2c1e0c(0x125)][_0x2c1e0c(0x11c)][_0x2c1e0c(0x10d)][_0x2c1e0c(0x11e)]();this[_0x2c1e0c(0x11b)]=this[_0x2c1e0c(0x117)](_0x4a5bd6);}[_0x92bf06(0x10b)](){const _0x1ee259=_0x92bf06;this[_0x1ee259(0x124)]&&(this[_0x1ee259(0x114)](_0x1ee259(0x11a)),this[_0x1ee259(0x124)]=void 0x0);const _0x3b0f1f=this[_0x1ee259(0x127)][_0x1ee259(0x125)][_0x1ee259(0x11c)][_0x1ee259(0x10d)][_0x1ee259(0x11e)]();_0x3b0f1f&&(_0x3b0f1f['is'](_0x1ee259(0x110),_0x1ee259(0x112))||_0x3b0f1f['is'](_0x1ee259(0x110),_0x1ee259(0x122)))&&(this[_0x1ee259(0x124)]=new _0x3bc191(this[_0x1ee259(0x127)],this[_0x1ee259(0x127)][_0x1ee259(0x123)][_0x1ee259(0x113)](_0x2f9666),_0x3b0f1f),this[_0x1ee259(0x11d)](_0x1ee259(0x11a))['to'](this[_0x1ee259(0x124)],_0x1ee259(0x11a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x267d(){const _0x39bde5=['276dkTnDG','ImageUtils','requires','isPremiumPlugin','12530203UyQFrJ','58128370JwWfVf','8LddJNA','11DhyTtE','uploadcareImageEdit','pluginName','add','13135428CIRkQd','481167OcmUDR','init','5JiNyBq','1637332ulhUpF','uploadcareImageReplace','ImageEditing','commands','isOfficialPlugin','27848elPYah','UploadcareImageEditEditing','2644188IClFur'];_0x267d=function(){return _0x39bde5;};return _0x267d();}function _0x715a(_0x55f942,_0x145c14){const _0x267da2=_0x267d();return _0x715a=function(_0x715a2,_0x277146){_0x715a2=_0x715a2-0x1ef;let _0x1e6c3c=_0x267da2[_0x715a2];return _0x1e6c3c;},_0x715a(_0x55f942,_0x145c14);}const _0x128dae=_0x715a;(function(_0x2973ba,_0x130e7c){const _0x365621=_0x715a,_0x5520fe=_0x2973ba();while(!![]){try{const _0x404695=parseInt(_0x365621(0x205))/0x1+parseInt(_0x365621(0x1f6))/0x2*(-parseInt(_0x365621(0x1f9))/0x3)+parseInt(_0x365621(0x1f1))/0x4*(-parseInt(_0x365621(0x1f0))/0x5)+-parseInt(_0x365621(0x1f8))/0x6+parseInt(_0x365621(0x1fd))/0x7*(-parseInt(_0x365621(0x1ff))/0x8)+-parseInt(_0x365621(0x204))/0x9+parseInt(_0x365621(0x1fe))/0xa*(parseInt(_0x365621(0x200))/0xb);if(_0x404695===_0x130e7c)break;else _0x5520fe['push'](_0x5520fe['shift']());}catch(_0x9c1815){_0x5520fe['push'](_0x5520fe['shift']());}}}(_0x267d,0xdf024));import{Plugin as _0x5b82f0}from'ckeditor5/src/core.js';import{Notification as _0x3c1d4a}from'ckeditor5/src/ui.js';import _0x2e9c91 from'./uploadcareimageeditcommand.js';import _0x6b9b01 from'./uploadcareimagereplacecommand.js';import _0x387600 from'../uploadcareediting.js';export default class m extends _0x5b82f0{static get[_0x128dae(0x202)](){const _0x4f39ce=_0x128dae;return _0x4f39ce(0x1f7);}static get[_0x128dae(0x1fb)](){const _0x574143=_0x128dae;return[_0x387600,_0x3c1d4a,_0x574143(0x1fa),_0x574143(0x1f3)];}static get[_0x128dae(0x1f5)](){return!0x0;}static get[_0x128dae(0x1fc)](){return!0x0;}[_0x128dae(0x1ef)](){const _0x2200f2=_0x128dae,{editor:_0x4727b8}=this;_0x4727b8[_0x2200f2(0x1f4)][_0x2200f2(0x203)](_0x2200f2(0x201),new _0x2e9c91(_0x4727b8)),_0x4727b8[_0x2200f2(0x1f4)][_0x2200f2(0x203)](_0x2200f2(0x1f2),new _0x6b9b01(_0x4727b8));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4aff9c}from'ckeditor5/src/core.js';import{ButtonView as _0x4343af}from'ckeditor5/src/ui.js';import{createElement as _0xaed0ec}from'ckeditor5/src/utils.js';import _0x40298d from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x4aff9c{constructor(){super(...arguments),this['_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 _0x2b0453=this['editor'];_0x2b0453['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c7c47=>{const _0x2f3ed1=_0x2b0453['commands']['get']('uploadcareImageEdit'),_0x54dc1f=new _0x4343af(_0x3c7c47),t=_0x3c7c47['t'];return _0x54dc1f['set']({'icon':_0x40298d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x54dc1f['bind']('isEnabled')['to'](_0x2f3ed1),_0x54dc1f['bind']('isOn')['to'](_0x2f3ed1,'isActive'),this['listenTo'](_0x54dc1f,'execute',()=>{_0x2b0453['execute']('uploadcareImageEdit'),_0x2b0453['editing']['view']['focus']();}),_0x54dc1f;}),this['_initConfig']();}['_initConfig'](){const _0x360d1a=_0xaed0ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x360d1a),this['listenTo'](this['editor'],'destroy',()=>{_0x360d1a['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x50f225=_0x52fe;function _0x52fe(_0x26f5a6,_0x13b849){const _0x1a341b=_0x1a34();return _0x52fe=function(_0x52fec9,_0x4ca530){_0x52fec9=_0x52fec9-0x1db;let _0x4eeb9d=_0x1a341b[_0x52fec9];return _0x4eeb9d;},_0x52fe(_0x26f5a6,_0x13b849);}(function(_0xa260ae,_0x95788f){const _0x3961b4=_0x52fe,_0x68e821=_0xa260ae();while(!![]){try{const _0x407234=-parseInt(_0x3961b4(0x1e4))/0x1+parseInt(_0x3961b4(0x1e9))/0x2+parseInt(_0x3961b4(0x1e8))/0x3*(parseInt(_0x3961b4(0x1ec))/0x4)+parseInt(_0x3961b4(0x1ee))/0x5+parseInt(_0x3961b4(0x1e0))/0x6+parseInt(_0x3961b4(0x1e2))/0x7*(-parseInt(_0x3961b4(0x1e1))/0x8)+-parseInt(_0x3961b4(0x1dd))/0x9;if(_0x407234===_0x95788f)break;else _0x68e821['push'](_0x68e821['shift']());}catch(_0x54cb9b){_0x68e821['push'](_0x68e821['shift']());}}}(_0x1a34,0x90c57));import{Command as _0x2b2952}from'ckeditor5/src/core.js';function _0x1a34(){const _0x3fb7fe=['3493693iiMIeF','editor','1025417iUDJvm','removeAttribute','isEnabled','srcset','121665JnUpeZ','2204498MJeAMR','document','setAttributes','24QsnAaw','imageBlock','4670520GbHCef','sizes','getSelectedElement','element','model','change','imageInline','selection','9972738JeEBjr','execute','refresh','5675388QiZGyv','8rnNoBC'];_0x1a34=function(){return _0x3fb7fe;};return _0x1a34();}export default class O extends _0x2b2952{[_0x50f225(0x1df)](){const _0x4e0516=_0x50f225,_0x295dc1=this[_0x4e0516(0x1e3)][_0x4e0516(0x1f2)][_0x4e0516(0x1ea)][_0x4e0516(0x1dc)][_0x4e0516(0x1f0)]();this[_0x4e0516(0x1e6)]=Boolean(_0x295dc1&&(_0x295dc1['is'](_0x4e0516(0x1f1),_0x4e0516(0x1ed))||_0x295dc1['is'](_0x4e0516(0x1f1),_0x4e0516(0x1db))));}[_0x50f225(0x1de)](_0x403130){const _0x29c6c1=_0x50f225,_0xd4d540=this[_0x29c6c1(0x1e3)][_0x29c6c1(0x1f2)][_0x29c6c1(0x1ea)][_0x29c6c1(0x1dc)][_0x29c6c1(0x1f0)]();this[_0x29c6c1(0x1e3)][_0x29c6c1(0x1f2)][_0x29c6c1(0x1f3)](_0x22252d=>{const _0x54027f=_0x29c6c1;_0x22252d[_0x54027f(0x1eb)](_0x403130,_0xd4d540),_0x22252d[_0x54027f(0x1e5)](_0x54027f(0x1e7),_0xd4d540),_0x22252d[_0x54027f(0x1e5)](_0x54027f(0x1ef),_0xd4d540);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3f502a=_0xf506;function _0xf506(_0x43c6d2,_0x15ba41){var _0xf05f82=_0xf05f();return _0xf506=function(_0xf50629,_0x2ab550){_0xf50629=_0xf50629-0x142;var _0x542b29=_0xf05f82[_0xf50629];return _0x542b29;},_0xf506(_0x43c6d2,_0x15ba41);}function _0xf05f(){var _0x4e9db5=['4768355bxqdyv','8qrdAQY','43837728nYXqJv','isPremiumPlugin','9TXzQiG','643334rDFcJz','pluginName','requires','12COFVZj','5048184RODNwL','41979jqdwyv','UploadcareImageEdit','8681950oCYveG','isOfficialPlugin','12030277jEFcZt','6jGtTKq'];_0xf05f=function(){return _0x4e9db5;};return _0xf05f();}(function(_0x4f6460,_0x15ca5c){var _0x531f17=_0xf506,_0x137646=_0x4f6460();while(!![]){try{var _0x50ba3d=-parseInt(_0x531f17(0x151))/0x1+-parseInt(_0x531f17(0x14c))/0x2*(parseInt(_0x531f17(0x14f))/0x3)+-parseInt(_0x531f17(0x148))/0x4*(parseInt(_0x531f17(0x147))/0x5)+parseInt(_0x531f17(0x146))/0x6*(parseInt(_0x531f17(0x145))/0x7)+-parseInt(_0x531f17(0x150))/0x8*(parseInt(_0x531f17(0x14b))/0x9)+-parseInt(_0x531f17(0x143))/0xa+parseInt(_0x531f17(0x149))/0xb;if(_0x50ba3d===_0x15ca5c)break;else _0x137646['push'](_0x137646['shift']());}catch(_0x225a41){_0x137646['push'](_0x137646['shift']());}}}(_0xf05f,0xec7cc));import{Plugin as _0x3babf2}from'ckeditor5/src/core.js';import _0x34883d from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x39a868 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x3babf2{static get[_0x3f502a(0x14d)](){var _0x2d7016=_0x3f502a;return _0x2d7016(0x142);}static get[_0x3f502a(0x14e)](){return[_0x34883d,_0x39a868];}static get[_0x3f502a(0x144)](){return!0x0;}static get[_0x3f502a(0x14a)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ca830=_0x4627;(function(_0x2d18fa,_0x3be09d){const _0x2e4b7b=_0x4627,_0x48e8ae=_0x2d18fa();while(!![]){try{const _0x25c9aa=parseInt(_0x2e4b7b(0x175))/0x1+-parseInt(_0x2e4b7b(0x162))/0x2+-parseInt(_0x2e4b7b(0x165))/0x3+parseInt(_0x2e4b7b(0x169))/0x4+-parseInt(_0x2e4b7b(0x18b))/0x5*(parseInt(_0x2e4b7b(0x158))/0x6)+parseInt(_0x2e4b7b(0x150))/0x7*(parseInt(_0x2e4b7b(0x16d))/0x8)+-parseInt(_0x2e4b7b(0x141))/0x9*(parseInt(_0x2e4b7b(0x164))/0xa);if(_0x25c9aa===_0x3be09d)break;else _0x48e8ae['push'](_0x48e8ae['shift']());}catch(_0x499e81){_0x48e8ae['push'](_0x48e8ae['shift']());}}}(_0xf11a,0xec28a));import{Plugin as _0x424594,icons as _0x295fe5}from'ckeditor5/src/core.js';import{ButtonView as _0x21fe9e,MenuBarMenuListItemButtonView as _0x4edd2a}from'ckeditor5/src/ui.js';import _0x414324 from'../theme/icons/dropbox.svg';import _0x6f3aec from'../theme/icons/facebook.svg';import _0x5448f0 from'../theme/icons/google-drive.svg';import _0x2d7eb0 from'../theme/icons/google-photos.svg';import _0x3929cd from'../theme/icons/link.svg';import _0x5234fb from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x577e1e}from'./uploadcareconfig.js';import{getTranslation as _0x1c184e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4627(_0x389988,_0x20ad57){const _0xf11a5b=_0xf11a();return _0x4627=function(_0x462730,_0x51fed0){_0x462730=_0x462730-0x13d;let _0x302469=_0xf11a5b[_0x462730];return _0x302469;},_0x4627(_0x389988,_0x20ad57);}function _0xf11a(){const _0x44cbc0=['destroy','_createToolbarButton','evaluationLimit','_normalizeConfigSourceList','featureNotAllowed','_createMenuBarButtons','upload','bind','icon','map','domainLimit','invalid','get','text','usageLimit','OneDrive','uploadcareLicenseKeyDomainLimit','_getIntegrationKey','plugins','url','pluginName','618960pMHgFi','trialLimit','Insert','isPremiumPlugin','Facebook','uploadcareLicenseKeyInvalid','_createDropdownButtons','UploadcareUI','9JqzteL','type','uploadcareLicenseKeyNotAllowed','tooltip','Dropbox','label','config','_showLicenseError','locale','URL','withText','commands','uploadcareLicenseKeyUsageLimit','entries','init','133SIPvHG','uploadcareLicenseKeyValid','expired','uploadcareLicenseKeyEvaluationLimit','uploadcare','uploadcareLicenseKeyTrialLimit','isOfficialPlugin','has','18aZqeib','Local','_licenseKeyCheckInterval','Replace','shortText','reduce','imageUpload','GDrive','forEach','_createButton','1885440SlEJFE','Uploadcare','17783790EYTcUm','3332733zECObw','push','registerIntegration','uploadcareLicenseKeyExpired','7264044OJOeip','uploadcare.uploader.sourceList','execute','isEnabled','786104eVstTq','editor','licenseKey','GPhotos','afterInit','ImageInsertUI','assetManager','isImageSelected','1487684jGGFok'];_0xf11a=function(){return _0x44cbc0;};return _0xf11a();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x424594{static get[_0x5ca830(0x18a)](){const _0x5dbe1e=_0x5ca830;return _0x5dbe1e(0x140);}static get[_0x5ca830(0x156)](){return!0x0;}static get[_0x5ca830(0x18e)](){return!0x0;}[_0x5ca830(0x14f)](){const _0x1d509a=_0x5ca830;this[_0x1d509a(0x16f)]=this[_0x1d509a(0x16e)][_0x1d509a(0x147)][_0x1d509a(0x182)](_0x1d509a(0x16f));const _0x3304ad=this[_0x1d509a(0x16e)];this[_0x1d509a(0x15a)]=setInterval(()=>{const _0xc20660=_0x1d509a;let _0x53fb89;for(const _0x1bbba0 in _0x3304ad){const _0x4aa909=_0x1bbba0,_0x4094dd=_0x3304ad[_0x4aa909];if(_0xc20660(0x151)==_0x4094dd||_0xc20660(0x13e)==_0x4094dd||_0xc20660(0x168)==_0x4094dd||_0xc20660(0x186)==_0x4094dd||_0xc20660(0x143)==_0x4094dd||_0xc20660(0x153)==_0x4094dd||_0xc20660(0x155)==_0x4094dd||_0xc20660(0x14d)==_0x4094dd){delete _0x3304ad[_0x4aa909],_0x53fb89=_0x4094dd,clearInterval(this[_0xc20660(0x15a)]),this[_0xc20660(0x15a)]=void 0x0;break;}}_0xc20660(0x13e)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x181)),_0xc20660(0x168)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x152)),_0xc20660(0x186)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x180)),_0xc20660(0x143)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x17a),_0xc20660(0x163)),_0xc20660(0x153)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x178)),_0xc20660(0x155)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x18c)),_0xc20660(0x14d)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x184));},0x3e8);}[_0x5ca830(0x171)](){const _0x53daf6=_0x5ca830,{editor:_0x276a0e}=this,_0x278552=_0x276a0e[_0x53daf6(0x14c)][_0x53daf6(0x182)](_0x53daf6(0x154));if(!_0x278552)return;const _0x1c3eaa=this[_0x53daf6(0x179)](_0x276a0e[_0x53daf6(0x147)][_0x53daf6(0x182)](_0x53daf6(0x16a)))[_0x53daf6(0x15d)]((_0x3a0569,_0x19a47)=>{const _0xba8a6a=_0x53daf6,_0x1983fe=this[_0xba8a6a(0x187)](_0x19a47[_0xba8a6a(0x142)]);return _0x3a0569[_0x1983fe]||(_0x3a0569[_0x1983fe]=[]),_0x3a0569[_0x1983fe][_0xba8a6a(0x166)](_0x19a47),_0x3a0569;},{});_0x276a0e[_0x53daf6(0x188)][_0x53daf6(0x157)](_0x53daf6(0x172))&&_0x276a0e[_0x53daf6(0x14c)][_0x53daf6(0x182)](_0x53daf6(0x154))&&Object[_0x53daf6(0x14e)](_0x1c3eaa)[_0x53daf6(0x160)](([_0x3e79bc,_0x40710c])=>{const _0x43a76d=_0x53daf6;_0x276a0e[_0x43a76d(0x188)][_0x43a76d(0x182)](_0x43a76d(0x172))[_0x43a76d(0x167)]({'name':_0x3e79bc,'observable':()=>_0x278552,'buttonViewCreator':()=>this[_0x43a76d(0x177)](_0x40710c),'formViewCreator':()=>this[_0x43a76d(0x13f)](_0x40710c),'menuBarButtonViewCreator':()=>this[_0x43a76d(0x17b)](_0x40710c),'override':_0x43a76d(0x173)!==_0x3e79bc});});}[_0x5ca830(0x176)](){const _0x57ca72=_0x5ca830;super[_0x57ca72(0x176)](),this[_0x57ca72(0x15a)]&&clearInterval(this[_0x57ca72(0x15a)]);}[_0x5ca830(0x179)](_0x2e2001){const _0x1a4fe6=_0x5ca830,{locale:_0x1c54a5}=this[_0x1a4fe6(0x16e)];return _0x2e2001[_0x1a4fe6(0x17f)](_0x2e98ca=>{const _0x59c648=_0x1a4fe6,_0x3d6bf5=_0x1c184e(_0x1c54a5,_0x2e98ca,_0x59c648(0x18d));switch(_0x2e98ca){case _0x577e1e[_0x59c648(0x159)]:return{'icon':_0x295fe5[_0x59c648(0x15e)],'type':_0x577e1e[_0x59c648(0x159)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x14a)]:return{'icon':_0x3929cd,'type':_0x577e1e[_0x59c648(0x14a)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x145)]:return{'icon':_0x414324,'type':_0x577e1e[_0x59c648(0x145)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x13d)]:return{'icon':_0x6f3aec,'type':_0x577e1e[_0x59c648(0x13d)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x15f)]:return{'icon':_0x5448f0,'type':_0x577e1e[_0x59c648(0x15f)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x170)]:return{'icon':_0x2d7eb0,'type':_0x577e1e[_0x59c648(0x170)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x185)]:return{'icon':_0x5234fb,'type':_0x577e1e[_0x59c648(0x185)],..._0x3d6bf5};}});}[_0x5ca830(0x187)](_0x3e0a04){const _0x3b7c7d=_0x5ca830;switch(_0x3e0a04){case _0x577e1e[_0x3b7c7d(0x159)]:return _0x3b7c7d(0x17c);case _0x577e1e[_0x3b7c7d(0x14a)]:return _0x3b7c7d(0x189);default:return _0x3b7c7d(0x173);}}[_0x5ca830(0x161)](_0x3cce26,_0x229640){const _0x35425d=_0x5ca830,_0x370b3a=this[_0x35425d(0x16e)],_0x396ad8=new _0x3cce26(_0x370b3a[_0x35425d(0x149)]),_0x9564d5=_0x370b3a[_0x35425d(0x14c)][_0x35425d(0x182)](_0x35425d(0x154));return _0x396ad8[_0x35425d(0x17d)](_0x35425d(0x16c))['to'](_0x9564d5),_0x396ad8['on'](_0x35425d(0x16b),()=>{const _0x350c85=_0x35425d;_0x9564d5[_0x350c85(0x16b)](_0x229640);}),_0x396ad8;}[_0x5ca830(0x177)](_0x2df247){const _0x3786c4=_0x5ca830,{locale:_0x277779}=this[_0x3786c4(0x16e)],_0x315ba7=this[_0x3786c4(0x16e)][_0x3786c4(0x188)][_0x3786c4(0x182)](_0x3786c4(0x172)),_0x496bf5=_0x2df247[0x0],_0x90592d=this[_0x3786c4(0x161)](_0x21fe9e,_0x496bf5[_0x3786c4(0x142)]);return _0x90592d[_0x3786c4(0x17e)]=_0x496bf5[_0x3786c4(0x17e)],_0x90592d[_0x3786c4(0x17d)](_0x3786c4(0x146))['to'](_0x315ba7,_0x3786c4(0x174),_0x4a5a8c=>_0x1c184e(_0x277779,_0x496bf5[_0x3786c4(0x142)],_0x4a5a8c?_0x3786c4(0x15b):_0x3786c4(0x18d))[_0x3786c4(0x183)]),_0x90592d[_0x3786c4(0x144)]=!0x0,_0x90592d;}[_0x5ca830(0x13f)](_0x44a451){const _0x54e0d3=_0x5ca830,{locale:_0x5ad8fb}=this[_0x54e0d3(0x16e)],_0x38eb06=this[_0x54e0d3(0x16e)][_0x54e0d3(0x188)][_0x54e0d3(0x182)](_0x54e0d3(0x172));return _0x44a451[_0x54e0d3(0x17f)](_0x5492f3=>{const _0x4dd74e=_0x54e0d3,_0x3159da=this[_0x4dd74e(0x161)](_0x21fe9e,_0x5492f3[_0x4dd74e(0x142)]);return _0x3159da[_0x4dd74e(0x14b)]=!0x0,_0x3159da[_0x4dd74e(0x17e)]=_0x5492f3[_0x4dd74e(0x17e)],_0x3159da[_0x4dd74e(0x17d)](_0x4dd74e(0x146))['to'](_0x38eb06,_0x4dd74e(0x174),_0x55b474=>_0x1c184e(_0x5ad8fb,_0x5492f3[_0x4dd74e(0x142)],_0x55b474?_0x4dd74e(0x15b):_0x4dd74e(0x18d))[_0x4dd74e(0x183)]),_0x3159da;});}[_0x5ca830(0x17b)](_0x2aa3ae){const _0x453e97=_0x5ca830;return _0x2aa3ae[_0x453e97(0x17f)](_0x468d4f=>{const _0x315a4b=_0x453e97,_0x3988ba=this[_0x315a4b(0x161)](_0x4edd2a,_0x468d4f[_0x315a4b(0x142)]);return _0x3988ba[_0x315a4b(0x17e)]=_0x468d4f[_0x315a4b(0x17e)],_0x3988ba[_0x315a4b(0x146)]=_0x468d4f[_0x315a4b(0x15c)],_0x3988ba;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x30b588}from'ckeditor5/src/core.js';import{FileRepository as _0xbed306}from'ckeditor5/src/upload.js';import _0x4e263f from'./uploadcareediting.js';import _0x10ab1b from'./utils/uploadutils.js';import{getImageUrls as _0x2fae43}from'./utils/editingutils.js';export default class f extends _0x30b588{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbed306,_0x4e263f];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x62a480=this['editor'];if(!!!_0x62a480['config']['get']('uploadcare'))return;_0x62a480['plugins']['get'](_0xbed306)['createUploadAdapter']=_0x566ea4=>new E(_0x566ea4,_0x62a480),_0x62a480['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3e7384,{imageElement:_0x5ed666,data:_0x5470e7})=>{_0x62a480['model']['change'](_0x36ce82=>{_0x36ce82['setAttribute']('uploadcareImageId',_0x5470e7['uploadcareImageId'],_0x5ed666);});});}}class E{constructor(_0x2b590c,_0x585fed){this['loader']=_0x2b590c,this['editor']=_0x585fed,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x328acc=this['editor']['config']['get']('uploadcare.pubkey'),_0x188c76=await this['loader']['file'];return _0x10ab1b['upload']({'file':_0x188c76,'publicKey':_0x328acc,'signal':this['controller']['signal'],'onProgress':_0x1b5453=>{_0x1b5453&&_0x1b5453['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b5453['value']);}})['then'](async _0x6a1d53=>{const {imageFallbackUrl:_0x1fa42f,imageSources:_0x38d1eb}=_0x2fae43(_0x6a1d53['cdnUrl'],_0x6a1d53['imageInfo']['width']);return{'uploadcareImageId':_0x6a1d53['uuid'],'default':_0x1fa42f,'sources':_0x38d1eb};})['catch'](()=>{const _0x4fc4a7=t('Cannot\x20upload\x20file:')+('\x20'+_0x188c76['name']+'.');return Promise['reject'](_0x4fc4a7);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1c8de5}from'../uploadcareconfig.js';export function getTranslation(_0x5f2a7a,_0x189b9c,_0x4970ca){const t=_0x5f2a7a['t'],_0xf50075=_0x5f2a7a['t'];switch(_0x189b9c){case _0x1c8de5['Local']:return{'text':_0xf50075('Insert'===_0x4970ca?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf50075('From\x20computer')};case _0x1c8de5['URL']:return{'text':'Insert'===_0x4970ca?_0xf50075('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf50075('Via\x20URL')};case _0x1c8de5['Dropbox']:return{'text':t('Insert'===_0x4970ca?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1c8de5['Facebook']:return{'text':t('Insert'===_0x4970ca?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1c8de5['GDrive']:return{'text':t('Insert'===_0x4970ca?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1c8de5['GPhotos']:return{'text':t('Insert'===_0x4970ca?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1c8de5['OneDrive']:return{'text':t('Insert'===_0x4970ca?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x189b9c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25effe=_0x571e;(function(_0x62e50d,_0x222a02){var _0x5a7946=_0x571e,_0x57d915=_0x62e50d();while(!![]){try{var _0x3e7c20=-parseInt(_0x5a7946(0xb8))/0x1+parseInt(_0x5a7946(0xab))/0x2*(-parseInt(_0x5a7946(0xbb))/0x3)+parseInt(_0x5a7946(0xb9))/0x4+-parseInt(_0x5a7946(0xae))/0x5*(parseInt(_0x5a7946(0xaf))/0x6)+parseInt(_0x5a7946(0xb3))/0x7*(parseInt(_0x5a7946(0xbd))/0x8)+parseInt(_0x5a7946(0xb0))/0x9*(-parseInt(_0x5a7946(0xac))/0xa)+parseInt(_0x5a7946(0xb5))/0xb;if(_0x3e7c20===_0x222a02)break;else _0x57d915['push'](_0x57d915['shift']());}catch(_0xa7c912){_0x57d915['push'](_0x57d915['shift']());}}}(_0x9ffb,0x228f7));function _0x571e(_0x5ae4db,_0x521e44){var _0x9ffbca=_0x9ffb();return _0x571e=function(_0x571e9f,_0x5b7f7e){_0x571e9f=_0x571e9f-0xaa;var _0x5b024a=_0x9ffbca[_0x571e9f];return _0x5b024a;},_0x571e(_0x5ae4db,_0x521e44);}import{FocusTracker as _0x16e034}from'ckeditor5/src/utils.js';import{View as _0x464374,FocusCycler as _0x3a84b1}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x464374{constructor(_0x52e280){var _0x43a162=_0x571e;super(_0x52e280),this[_0x43a162(0xb4)]=new _0x16e034(),this[_0x43a162(0xb1)]=new _0x3a84b1({'focusables':this[_0x43a162(0xb6)](),'focusTracker':this[_0x43a162(0xb4)]});}[_0x25effe(0xaa)](){var _0x11932c=_0x25effe;return{'tag':_0x11932c(0xba),'attributes':{'aria-hidden':_0x11932c(0xb7),'tabindex':'0'},'on':{'focus':this[_0x11932c(0xad)]['to'](()=>{var _0x295793=_0x11932c;this[_0x295793(0xb1)][_0x295793(0xb2)](_0x295793(0xbc));})}};}}function _0x9ffb(){var _0x411d56=['72UxClpX','focusCycler','fire','335146YzxhoB','focusTracker','6451005MisKPL','createCollection','true','177790iQCwcU','454940QBRUrx','div','295341spfaPh','forwardCycle','24VCXpSh','getFocusableElement','2AoqgTP','249520DxZfdu','bindTemplate','230hoXcET','29532OvFBGj'];_0x9ffb=function(){return _0x411d56;};return _0x9ffb();}
|