@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250305.0 → 0.0.0-nightly-next-20250305.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/ckeditor5-metadata.json +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 +9 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -6
- 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.d.ts +1 -4
- 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/theme/icons/dropbox.svg +0 -11
- package/theme/icons/error.svg +0 -1
- package/theme/icons/facebook.svg +0 -11
- package/theme/icons/google-drive.svg +0 -11
- package/theme/icons/google-photos.svg +0 -11
- package/theme/icons/image-upload.svg +0 -11
- package/theme/icons/link.svg +0 -11
- package/theme/icons/local.svg +0 -11
- package/theme/icons/onedrive.svg +0 -11
- package/theme/icons/uploadcare-image-edit.svg +0 -11
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x55a53d=_0x9b0d;function _0x9b0d(_0x4ba678,_0x17288a){const _0xf1bf90=_0xf1bf();return _0x9b0d=function(_0x9b0d1a,_0x4c9649){_0x9b0d1a=_0x9b0d1a-0x134;let _0x448dc6=_0xf1bf90[_0x9b0d1a];return _0x448dc6;},_0x9b0d(_0x4ba678,_0x17288a);}(function(_0x458425,_0x1120a8){const _0x37b41a=_0x9b0d,_0x4e58f1=_0x458425();while(!![]){try{const _0x11d7df=parseInt(_0x37b41a(0x16f))/0x1+parseInt(_0x37b41a(0x16a))/0x2*(parseInt(_0x37b41a(0x174))/0x3)+-parseInt(_0x37b41a(0x169))/0x4*(-parseInt(_0x37b41a(0x15b))/0x5)+parseInt(_0x37b41a(0x156))/0x6+-parseInt(_0x37b41a(0x175))/0x7*(parseInt(_0x37b41a(0x149))/0x8)+-parseInt(_0x37b41a(0x13a))/0x9*(-parseInt(_0x37b41a(0x186))/0xa)+-parseInt(_0x37b41a(0x138))/0xb;if(_0x11d7df===_0x1120a8)break;else _0x4e58f1['push'](_0x4e58f1['shift']());}catch(_0x3d0c80){_0x4e58f1['push'](_0x4e58f1['shift']());}}}(_0xf1bf,0xf0107));import{Plugin as _0x3b1c79}from'ckeditor5/src/core.js';import{Dialog as _0x517218}from'ckeditor5/src/ui.js';import{createElement as _0x4deb1f,global as _0x4aeb5a,uid as _0x5dd7e5}from'ckeditor5/src/utils.js';function _0xf1bf(){const _0x1f2f5b=['uc-upload-ctx-provider','once','_initImageProcessingIndicator','editing','join','_initCtx','_initConfig','1566928lowQPx','conversion','body','iconHrefResolver','data-uc-image-id','fromCharCode','view','appendChild','configElement','config','extend','isPremiumPlugin','true','7833828ZqwSdd','commands','contentLanguage','_initSchema','isOfficialPlugin','1419745nsLMuY','init','removeAttribute','uploadcareImageReplace','schema','pluginName','uc-config','querySelector','isRegistered','document','input[uploadcare-file-input]','model','_ctxElement','getSelectedElement','4phoDSb','92afANCs','UploadcareEditing','locale','afterInit','\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','1783327OEGFWL','replaceImageSource','downcast','uploadcare','href','54741lZpBLn','49WluKoq','uploadcare.uploader','PictureEditing','#uc-icon-arrow-down','upcast','attributeToAttribute','_initConversion','get','uploadcareImageId','requires','getAttribute','render','closeMax','map','execute','destroy','editor','9950nyxclx','imageBlock','remove','_configElement','elementToAttribute','imageInline','uploadcare.pubkey','25635896AswsDf','ctxElement','4275pATgOR','insertImage','for','add','cleanupImage','listenTo','uploader','selection'];_0xf1bf=function(){return _0x1f2f5b;};return _0xf1bf();}import _0x284064 from'./uploadcarecommand.js';import _0x48ec12 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x379bdb}from'./utils/editingutils.js';export default class i extends _0x3b1c79{constructor(){const _0xbafcd2=_0x9b0d;super(...arguments),this[_0xbafcd2(0x134)]=null,this[_0xbafcd2(0x167)]=null;}static get[_0x55a53d(0x160)](){const _0x36c5e6=_0x55a53d;return _0x36c5e6(0x16b);}static get[_0x55a53d(0x17e)](){const _0x37513d=_0x55a53d;return[_0x37513d(0x177),_0x48ec12,_0x517218];}static get[_0x55a53d(0x15a)](){return!0x0;}static get[_0x55a53d(0x154)](){return!0x0;}get[_0x55a53d(0x151)](){const _0x4df480=_0x55a53d;return this[_0x4df480(0x134)];}get[_0x55a53d(0x139)](){const _0x482ec3=_0x55a53d;return this[_0x482ec3(0x167)];}[_0x55a53d(0x15c)](){const _0x8c0ecc=_0x55a53d,_0x420cfd=this[_0x8c0ecc(0x185)];_0x420cfd[_0x8c0ecc(0x157)][_0x8c0ecc(0x13d)](_0x8c0ecc(0x172),new _0x284064(_0x420cfd));}[_0x55a53d(0x16d)](){const _0x114eb2=_0x55a53d;this[_0x114eb2(0x159)](),this[_0x114eb2(0x17b)](),this[_0x114eb2(0x148)](),this[_0x114eb2(0x147)](),this[_0x114eb2(0x144)](),this[_0x114eb2(0x13f)](this[_0x114eb2(0x185)],_0x114eb2(0x184),()=>{const _0x38a7f4=_0x114eb2;this[_0x38a7f4(0x134)]&&(this[_0x38a7f4(0x134)][_0x38a7f4(0x188)](),this[_0x38a7f4(0x134)]=null),this[_0x38a7f4(0x167)]&&(this[_0x38a7f4(0x167)][_0x38a7f4(0x188)](),this[_0x38a7f4(0x167)]=null);const _0x17231b=_0x4aeb5a[_0x38a7f4(0x164)][_0x38a7f4(0x162)](_0x38a7f4(0x165));_0x17231b&&_0x17231b[_0x38a7f4(0x188)]();}),async function(_0xbcfc48){const _0x4bd5fc=_0x2da59c([0x47,0x59,0x38,0x32,0x58,0x66,0x37,0x75,0x78,0x64,0x4b,0x5a,0x69,0x70,0x43,0x30,0x77,0x41,0x49,0x57,0x67,0x74,0x39,0x44,0x7a,0x68,0x36,0x45,0x4e,0x53,0x6f,0x33,0x6a,0x62,0x6b,0x31,0x79,0x46,0x35,0x76,0x4a,0x6d,0x6c,0x51,0x4d,0x42,0x63,0x52,0x4f,0x73,0x50,0x71,0x54,0x4c,0x34,0x48,0x6e,0x61,0x65,0x56,0x72,0x55]),_0x779212=0x577e5f5b,_0x14122b=0x57793e1b^_0x779212,_0xf247a9=window[_0x2da59c([0x44,0x61,0x74,0x65])][_0x2da59c([0x6e,0x6f,0x77])](),_0x255fd8=_0xbcfc48[_0x2da59c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x451c3e=new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c42e6=>{_0x255fd8[_0x2da59c([0x6f,0x6e,0x63,0x65])](_0x2da59c([0x72,0x65,0x61,0x64,0x79]),_0x2c42e6);}),_0xd2f2dc={[_0x2da59c([0x6b,0x74,0x79])]:_0x2da59c([0x45,0x43]),[_0x2da59c([0x75,0x73,0x65])]:_0x2da59c([0x73,0x69,0x67]),[_0x2da59c([0x63,0x72,0x76])]:_0x2da59c([0x50,0x2d,0x32,0x35,0x36]),[_0x2da59c([0x78])]:_0x2da59c([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]),[_0x2da59c([0x79])]:_0x2da59c([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]),[_0x2da59c([0x61,0x6c,0x67])]:_0x2da59c([0x45,0x53,0x32,0x35,0x36])},_0x41402a=_0x255fd8[_0x2da59c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2da59c([0x67,0x65,0x74])](_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c1dcd(){let _0x3b819b,_0x414980=null,_0x4f692b=null;try{if(_0x41402a==_0x2da59c([0x47,0x50,0x4c]))return _0x2da59c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b819b=_0x16fb5f(),!_0x3b819b)return _0x2da59c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b819b[_0x2da59c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f692b=_0x3e4346(_0x3b819b[_0x2da59c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b819b[_0x2da59c([0x6a,0x74,0x69])])),await _0x560116()?_0x304c71()?_0x3492fe()?_0x2da59c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd08751()?(_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2da59c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x414980=_0x124e25(_0x2da59c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2da59c([0x74,0x72,0x69,0x61,0x6c])&&(_0x414980=_0x124e25(_0x2da59c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf08230()):_0x2da59c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2da59c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2da59c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34c721){return _0x2da59c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3492fe(){const _0x57925f=[_0x2da59c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2da59c([0x74,0x72,0x69,0x61,0x6c])][_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf247a9/0x3e8:0xe10*_0x14122b;return _0x3b819b[_0x2da59c([0x65,0x78,0x70])]<_0x57925f;}function _0x304c71(){const _0x3e9c85=_0x3b819b[_0x2da59c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e9c85&&(!!_0x3e9c85[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da59c([0x2a]))||!!_0x3e9c85[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da59c([0x55,0x50,0x4c,0x43])));}function _0xd08751(){const _0x68652a=_0x9b0d,_0x4ec500=_0x3b819b[_0x2da59c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ec500||0x0==_0x4ec500[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cc12a}=new URL(window[_0x2da59c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x68652a(0x173)]);if(_0x4ec500[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc12a))return!0x0;const _0x4cb1c8=_0x3cc12a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e]));return _0x4ec500[_0x2da59c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ce145=>_0x4ce145[_0x2da59c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2da59c([0x2a])))[_0x2da59c([0x6d,0x61,0x70])](_0x54a761=>_0x54a761[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e])))[_0x2da59c([0x73,0x6f,0x6d,0x65])](_0x23c249=>_0x4cb1c8[_0x2da59c([0x65,0x76,0x65,0x72,0x79])]((_0x113fcc,_0x39db99)=>_0x23c249[_0x39db99]===_0x113fcc||_0x23c249[_0x39db99]===_0x2da59c([0x2a])));}function _0xf08230(){return _0x414980&&_0x4f692b?new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfb3f56,_0x5ef395)=>{_0x414980[_0x2da59c([0x74,0x68,0x65,0x6e])](_0xfb3f56,_0x5ef395),_0x4f692b[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x1161dc=>{_0x1161dc!=_0x2da59c([0x56,0x61,0x6c,0x69,0x64])&&_0xfb3f56(_0x1161dc);},_0x5ef395);}):_0x414980||_0x4f692b||_0x2da59c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e4346(_0x32e56f,_0x59b734){return new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436592=>{if(_0x35dab6())return _0x436592(_0x2da59c([0x56,0x61,0x6c,0x69,0x64]));_0x434e96(),_0x255fd8[_0x2da59c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2da59c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42c908=!0x1;const _0x17ef3a=_0x5dd7e5();function _0x12775a(_0xcb69f5){return!!_0xcb69f5&&(typeof _0xcb69f5===_0x2da59c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcb69f5===_0x2da59c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcb69f5[_0x2da59c([0x74,0x68,0x65,0x6e])]===_0x2da59c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcb69f5[_0x2da59c([0x63,0x61,0x74,0x63,0x68])]===_0x2da59c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2df39b(_0x4659ca){_0x3cf6e2(_0x4659ca)[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x16b4e0=>{if(!_0x16b4e0||_0x16b4e0[_0x2da59c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2da59c([0x6f,0x6b]))return _0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a2288(_0x47359f(_0x17ef3a+_0x59b734))!=_0x16b4e0[_0x2da59c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2da59c([0x56,0x61,0x6c,0x69,0x64]);})[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x33d302=>(_0x217376(),_0x33d302),()=>{const _0x582c1c=_0xf3c5cd();return null==_0x582c1c?(_0x217376(),_0x2da59c([0x56,0x61,0x6c,0x69,0x64])):_0x2da59c(_0xf247a9-_0x582c1c>(0x7372db5b^_0x779212)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x436592)[_0x2da59c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x436592(_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c2f58=0x5748b1db^_0x779212;function _0x217376(){const _0x315088=_0x2da59c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2288(_0x47359f(_0x32e56f)),_0x459bbc=_0x4e70c4(_0x2a2288(window[_0x2da59c([0x4d,0x61,0x74,0x68])][_0x2da59c([0x63,0x65,0x69,0x6c])](_0xf247a9/_0x4c2f58)));window[_0x2da59c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2da59c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x315088,_0x459bbc);}function _0xf3c5cd(){const _0xfebbe7=_0x2da59c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2288(_0x47359f(_0x32e56f)),_0x286e54=window[_0x2da59c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2da59c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfebbe7);return _0x286e54?window[_0x2da59c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e70c4(_0x286e54),0x10)*_0x4c2f58:null;}function _0x3cf6e2(_0xd3d860){return new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a2905,_0x5669e2)=>{_0xd3d860[_0x2da59c([0x74,0x68,0x65,0x6e])](_0x3a2905,_0x5669e2),window[_0x2da59c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5669e2,0x577f8b9b^_0x779212);});}}_0x255fd8[_0x2da59c([0x6f,0x6e])](_0x2da59c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bffc3,_0x4f37cd)=>{if(_0x4f37cd[0x0]!=_0x32e56f)return _0x436592(_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f37cd[0x1]={..._0x4f37cd[0x1],[_0x2da59c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17ef3a};},{[_0x2da59c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2da59c([0x68,0x69,0x67,0x68])}),_0x255fd8[_0x2da59c([0x6f,0x6e])](_0x2da59c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32b471=>{_0x12775a(_0x32b471[_0x2da59c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42c908=!0x0,_0x2df39b(_0x32b471[_0x2da59c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2da59c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2da59c([0x6c,0x6f,0x77])}),_0x451c3e[_0x2da59c([0x74,0x68,0x65,0x6e])](()=>{_0x42c908||_0x436592(_0x2da59c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35dab6(){return _0x255fd8[_0x2da59c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2da59c([0x76,0x69,0x65,0x77])][_0x2da59c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2da59c([0x61,0x75,0x74,0x6f]);}function _0x434e96(){_0x255fd8[_0x2da59c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2da59c([0x76,0x69,0x65,0x77])][_0x2da59c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2da59c([0x61,0x75,0x74,0x6f]);}}function _0x124e25(_0x2cb2ee){const _0xf9469e=[new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55c6d9=>setTimeout(_0x55c6d9,0x57776197^_0x779212)),_0x451c3e[_0x2da59c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7fb5=>{let _0x43f28f=0x0;_0x255fd8[_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da59c([0x6f,0x6e])](_0x2da59c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xcceb16,_0x4b81a4)=>{_0x4b81a4[0x0][_0x2da59c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43f28f++,_0x43f28f==(0x577e5ea3^_0x779212)&&(_0x3b7fb5(),_0xcceb16[_0x2da59c([0x6f,0x66,0x66])]());});}))];return window[_0x2da59c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2da59c([0x72,0x61,0x63,0x65])](_0xf9469e)[_0x2da59c([0x74,0x68,0x65,0x6e])](()=>_0x2cb2ee);}async function _0x1ffe89(){await _0x451c3e,_0x255fd8[_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da59c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x510c1d,_0x255fd8[_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c])][_0x2da59c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x510c1d,_0x255fd8[_0x2da59c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2da59c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x176603(_0x2124e8){const _0x31410f=_0x4c66db();_0x255fd8[_0x31410f]=_0x2da59c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2124e8,_0x2124e8!=_0x2da59c([0x56,0x61,0x6c,0x69,0x64])&&_0x1ffe89();}function _0x4c66db(){const _0x284c25=window[_0x2da59c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2da59c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2da59c([0x6e,0x6f,0x77])]())[_0x2da59c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2da59c([0x2e]),'');let _0x25d115=_0x2da59c([0x47]);for(let _0x35b68f=0x0;_0x35b68f<_0x284c25[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35b68f+=0x2){let _0x6356ca=window[_0x2da59c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x284c25[_0x2da59c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35b68f,_0x35b68f+0x2));_0x6356ca>=_0x4bd5fc[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6356ca-=_0x4bd5fc[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25d115+=_0x4bd5fc[_0x6356ca];}return _0x25d115;}function _0x16fb5f(){const _0x431346=_0x41402a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e]));if(0x3!=_0x431346[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bf8b0(_0x431346[0x1]);function _0x4bf8b0(_0x1ea764){const _0xe37424=_0xd9252e(_0x1ea764);return _0xe37424&&_0x577bec()?_0xe37424:null;function _0x577bec(){const _0x17280d=_0xe37424[_0x2da59c([0x6a,0x74,0x69])],_0x52421a=window[_0x2da59c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17280d[_0x2da59c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17280d[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20bda1={..._0xe37424,[_0x2da59c([0x6a,0x74,0x69])]:_0x17280d[_0x2da59c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17280d[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20bda1[_0x2da59c([0x76,0x63])],_0x47359f(_0x20bda1)==_0x52421a;}}}async function _0x560116(){let _0x6bf989=!0x0;try{const _0x20d17e=_0x41402a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])](_0x2da59c([0x2e])),[_0x3a8e65,_0x25330c,_0x585871]=_0x20d17e;return _0x17b360(_0x3a8e65),await _0x123cb4(_0x3a8e65,_0x25330c,_0x585871),_0x6bf989;}catch(_0x27abfe){return!0x1;}function _0x17b360(_0x46aa3a){const _0x510686=_0xd9252e(_0x46aa3a);_0x510686&&_0x510686[_0x2da59c([0x61,0x6c,0x67])]==_0x2da59c([0x45,0x53,0x32,0x35,0x36])||(_0x6bf989=!0x1);}async function _0x123cb4(_0x3b8e08,_0xcdd444,_0x2a2d86){const _0x1f077e=window[_0x2da59c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2da59c([0x66,0x72,0x6f,0x6d])](_0x49006d(_0x2a2d86),_0x2e73b4=>_0x2e73b4[_0x2da59c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22b353=new window[(_0x2da59c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2da59c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b8e08+_0x2da59c([0x2e])+_0xcdd444),_0x5a900a=window[_0x2da59c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2da59c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a900a)return;const _0x534a38=await _0x5a900a[_0x2da59c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2da59c([0x6a,0x77,0x6b]),_0xd2f2dc,{[_0x2da59c([0x6e,0x61,0x6d,0x65])]:_0x2da59c([0x45,0x43,0x44,0x53,0x41]),[_0x2da59c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2da59c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2da59c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a900a[_0x2da59c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2da59c([0x6e,0x61,0x6d,0x65])]:_0x2da59c([0x45,0x43,0x44,0x53,0x41]),[_0x2da59c([0x68,0x61,0x73,0x68])]:{[_0x2da59c([0x6e,0x61,0x6d,0x65])]:_0x2da59c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x534a38,_0x1f077e,_0x22b353)||(_0x6bf989=!0x1);}}function _0xd9252e(_0x7f8b6b){return _0x7f8b6b[_0x2da59c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2da59c([0x65,0x79]))?JSON[_0x2da59c([0x70,0x61,0x72,0x73,0x65])](_0x49006d(_0x7f8b6b)):null;}function _0x49006d(_0x343966){return window[_0x2da59c([0x61,0x74,0x6f,0x62])](_0x343966[_0x2da59c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2da59c([0x2b]))[_0x2da59c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2da59c([0x2f])));}function _0x47359f(_0x29117a){let _0xeb7bdd=0x1505;function _0x228bb1(_0x4462f9){for(let _0x21b8e6=0x0;_0x21b8e6<_0x4462f9[_0x2da59c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21b8e6++){const _0x3730d2=_0x4462f9[_0x2da59c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21b8e6);_0xeb7bdd=(_0xeb7bdd<<0x5)+_0xeb7bdd+_0x3730d2,_0xeb7bdd&=_0xeb7bdd;}}function _0x4df80e(_0x397ca8){Array[_0x2da59c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x397ca8)?_0x397ca8[_0x2da59c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4df80e):_0x397ca8&&typeof _0x397ca8==_0x2da59c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2da59c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x397ca8)[_0x2da59c([0x73,0x6f,0x72,0x74])]()[_0x2da59c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f9627,_0x315468])=>{_0x228bb1(_0x3f9627),_0x4df80e(_0x315468);}):_0x228bb1(window[_0x2da59c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x397ca8));}return _0x4df80e(_0x29117a),_0xeb7bdd>>>0x0;}function _0x2a2288(_0x4eb73c){return _0x4eb73c[_0x2da59c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2da59c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2da59c([0x30]));}function _0x4e70c4(_0x494a7a){return _0x494a7a[_0x2da59c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2da59c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2da59c([0x6a,0x6f,0x69,0x6e])]('');}function _0x510c1d(){}function _0x2da59c(_0x366c4d){const _0x3c82c9=_0x9b0d;return _0x366c4d[_0x3c82c9(0x182)](_0xb4226c=>String[_0x3c82c9(0x14e)](_0xb4226c))[_0x3c82c9(0x146)]('');}_0x176603(await _0x3c1dcd());}(this);}[_0x55a53d(0x159)](){const _0x92dc9e=_0x55a53d,_0x3dec5e=this[_0x92dc9e(0x185)][_0x92dc9e(0x166)][_0x92dc9e(0x15f)];_0x3dec5e[_0x92dc9e(0x163)](_0x92dc9e(0x187))&&_0x3dec5e[_0x92dc9e(0x153)](_0x92dc9e(0x187),{'allowAttributes':[_0x92dc9e(0x17d)]}),_0x3dec5e[_0x92dc9e(0x163)](_0x92dc9e(0x136))&&_0x3dec5e[_0x92dc9e(0x153)](_0x92dc9e(0x136),{'allowAttributes':[_0x92dc9e(0x17d)]});}[_0x55a53d(0x17b)](){const _0x523cc8=_0x55a53d,_0xf78c94=this[_0x523cc8(0x185)];_0xf78c94[_0x523cc8(0x14a)][_0x523cc8(0x13c)](_0x523cc8(0x171))[_0x523cc8(0x17a)]({'model':_0x523cc8(0x17d),'view':_0x523cc8(0x14d)}),_0xf78c94[_0x523cc8(0x14a)][_0x523cc8(0x13c)](_0x523cc8(0x179))[_0x523cc8(0x135)]({'model':{'key':_0x523cc8(0x17d),'value':_0x2ba66b=>_0x2ba66b[_0x523cc8(0x17f)](_0x523cc8(0x14d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2206bf=_0xf78c94[_0x523cc8(0x157)][_0x523cc8(0x17c)](_0x523cc8(0x170));_0x2206bf&&this[_0x523cc8(0x13f)](_0x2206bf,_0x523cc8(0x13e),(_0x39f9a9,[_0x3a7961,_0x175f68])=>{const _0x31aec5=_0x523cc8;_0x3a7961[_0x31aec5(0x15d)](_0x31aec5(0x17d),_0x175f68);});}[_0x55a53d(0x148)](){const _0x5a4ee2=_0x55a53d,_0x314272=this[_0x5a4ee2(0x185)][_0x5a4ee2(0x152)][_0x5a4ee2(0x17c)](_0x5a4ee2(0x176))||{},_0x2f6e0b=this[_0x5a4ee2(0x185)][_0x5a4ee2(0x152)][_0x5a4ee2(0x17c)](_0x5a4ee2(0x137))||'';this[_0x5a4ee2(0x134)]=_0x4deb1f(_0x4aeb5a[_0x5a4ee2(0x164)],_0x5a4ee2(0x161),{..._0x314272,'pubkey':_0x2f6e0b,'ctx-name':_0x5a4ee2(0x140),'sourceList':'','imgOnly':_0x5a4ee2(0x155),'removeCopyright':_0x5a4ee2(0x155),'localeName':this[_0x5a4ee2(0x185)][_0x5a4ee2(0x16c)][_0x5a4ee2(0x158)],'externalSourcesEmbedCss':_0x5a4ee2(0x16e)}),this[_0x5a4ee2(0x134)][_0x5a4ee2(0x14c)]=_0x3c071b=>{const _0x5efff5=_0x5a4ee2;if(_0x5efff5(0x181)==_0x3c071b)return _0x5efff5(0x178);},_0x4aeb5a[_0x5a4ee2(0x164)][_0x5a4ee2(0x14b)][_0x5a4ee2(0x150)](this[_0x5a4ee2(0x134)]);}[_0x55a53d(0x147)](){const _0x55cdf5=_0x55a53d;this[_0x55cdf5(0x167)]=_0x4deb1f(_0x4aeb5a[_0x55cdf5(0x164)],_0x55cdf5(0x142),{'ctx-name':_0x55cdf5(0x140)}),_0x4aeb5a[_0x55cdf5(0x164)][_0x55cdf5(0x14b)][_0x55cdf5(0x150)](this[_0x55cdf5(0x167)]);}[_0x55a53d(0x144)](){const _0x26fa28=_0x55a53d,_0x23dfdc=this[_0x26fa28(0x185)][_0x26fa28(0x157)][_0x26fa28(0x17c)](_0x26fa28(0x13b));_0x23dfdc&&this[_0x26fa28(0x13f)](_0x23dfdc,_0x26fa28(0x183),()=>{const _0x4e94fd=_0x26fa28,_0x3572bc=this[_0x4e94fd(0x185)][_0x4e94fd(0x166)][_0x4e94fd(0x164)][_0x4e94fd(0x141)][_0x4e94fd(0x168)]();_0x3572bc&&_0x3572bc[_0x4e94fd(0x17f)](_0x4e94fd(0x17d))&&this[_0x4e94fd(0x185)][_0x4e94fd(0x145)][_0x4e94fd(0x14f)][_0x4e94fd(0x143)](_0x4e94fd(0x180),()=>{const _0x273ac7=_0x4e94fd;_0x379bdb(this[_0x273ac7(0x185)],_0x3572bc);});});const _0x16efb2=this[_0x26fa28(0x185)][_0x26fa28(0x157)][_0x26fa28(0x17c)](_0x26fa28(0x15e));_0x16efb2&&this[_0x26fa28(0x13f)](_0x16efb2,_0x26fa28(0x183),()=>{const _0x597dd7=_0x26fa28,_0xe4de10=this[_0x597dd7(0x185)][_0x597dd7(0x166)][_0x597dd7(0x164)][_0x597dd7(0x141)][_0x597dd7(0x168)]();_0xe4de10&&_0xe4de10[_0x597dd7(0x17f)](_0x597dd7(0x17d))&&this[_0x597dd7(0x185)][_0x597dd7(0x145)][_0x597dd7(0x14f)][_0x597dd7(0x143)](_0x597dd7(0x180),()=>{const _0x4ab5fb=_0x597dd7;_0x379bdb(this[_0x4ab5fb(0x185)],_0xe4de10);});});}}
|
|
23
|
+
const _0xeccd5=_0x3d39;(function(_0x5dccce,_0x33b859){const _0x598fdf=_0x3d39,_0x3c74bc=_0x5dccce();while(!![]){try{const _0x417a04=-parseInt(_0x598fdf(0x23f))/0x1*(-parseInt(_0x598fdf(0x244))/0x2)+parseInt(_0x598fdf(0x20e))/0x3*(parseInt(_0x598fdf(0x209))/0x4)+-parseInt(_0x598fdf(0x23e))/0x5*(parseInt(_0x598fdf(0x219))/0x6)+-parseInt(_0x598fdf(0x241))/0x7+parseInt(_0x598fdf(0x234))/0x8*(parseInt(_0x598fdf(0x222))/0x9)+parseInt(_0x598fdf(0x211))/0xa+-parseInt(_0x598fdf(0x221))/0xb;if(_0x417a04===_0x33b859)break;else _0x3c74bc['push'](_0x3c74bc['shift']());}catch(_0x328e30){_0x3c74bc['push'](_0x3c74bc['shift']());}}}(_0x4416,0xc3ab6));import{Plugin as _0x16fd0f}from'ckeditor5/src/core.js';function _0x3d39(_0x53d9f3,_0x279498){const _0x4416df=_0x4416();return _0x3d39=function(_0x3d395e,_0x1a9540){_0x3d395e=_0x3d395e-0x1f4;let _0x2c2bd1=_0x4416df[_0x3d395e];return _0x2c2bd1;},_0x3d39(_0x53d9f3,_0x279498);}import{Dialog as _0x1ab30b}from'ckeditor5/src/ui.js';import{createElement as _0x565d5e,global as _0x1de747,uid as _0x20b266}from'ckeditor5/src/utils.js';import _0x5b4a87 from'./uploadcarecommand.js';import _0x5324a0 from'./uploadcareuploadadapter.js';function _0x4416(){const _0x95fef0=['contentLanguage','3qqQMAm','closeMax','commands','15500420vAyUGx','\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','selection','uploadcareImageReplace','render','uc-upload-ctx-provider','join','once','150govKiO','schema','isRegistered','downcast','getSelectedElement','uploadcare','remove','_ctxElement','26003285IxBpHS','104841YoTGDW','locale','ctxElement','editor','href','requires','_initImageProcessingIndicator','uploadcare.pubkey','document','get','destroy','uploadcare.uploader','cleanupImage','init','configElement','imageInline','uc-config','extend','944nLrxeM','for','pluginName','editing','_initConversion','afterInit','querySelector','iconHrefResolver','isOfficialPlugin','map','304345whLAwL','1GvHcwK','_initSchema','256228DNJZMp','view','uploader','576446bdFvnH','isPremiumPlugin','config','elementToAttribute','insertImage','model','fromCharCode','UploadcareEditing','upcast','imageBlock','data-uc-image-id','_initConfig','true','conversion','PictureEditing','removeAttribute','body','#uc-icon-arrow-down','appendChild','uploadcareImageId','_configElement','input[uploadcare-file-input]','add','getAttribute','execute','listenTo','6043516KdPWLu','replaceImageSource','_initCtx','attributeToAttribute'];_0x4416=function(){return _0x95fef0;};return _0x4416();}import{showImageProcessingIndicator as _0x413b68}from'./utils/editingutils.js';export default class i extends _0x16fd0f{[_0xeccd5(0x203)]=null;[_0xeccd5(0x220)]=null;static get[_0xeccd5(0x236)](){const _0x2628f2=_0xeccd5;return _0x2628f2(0x1f6);}static get[_0xeccd5(0x227)](){const _0x6d8ced=_0xeccd5;return[_0x6d8ced(0x1fd),_0x5324a0,_0x1ab30b];}static get[_0xeccd5(0x23c)](){return!0x0;}static get[_0xeccd5(0x245)](){return!0x0;}get[_0xeccd5(0x230)](){const _0x4c4153=_0xeccd5;return this[_0x4c4153(0x203)];}get[_0xeccd5(0x224)](){const _0x421bf5=_0xeccd5;return this[_0x421bf5(0x220)];}[_0xeccd5(0x22f)](){const _0x257bbc=_0xeccd5,_0x4e50d7=this[_0x257bbc(0x225)];_0x4e50d7[_0x257bbc(0x210)][_0x257bbc(0x205)](_0x257bbc(0x21e),new _0x5b4a87(_0x4e50d7));}[_0xeccd5(0x239)](){const _0x2e644a=_0xeccd5;this[_0x2e644a(0x240)](),this[_0x2e644a(0x238)](),this[_0x2e644a(0x1fa)](),this[_0x2e644a(0x20b)](),this[_0x2e644a(0x228)](),this[_0x2e644a(0x208)](this[_0x2e644a(0x225)],_0x2e644a(0x22c),()=>{const _0x4d5425=_0x2e644a;this[_0x4d5425(0x203)]&&(this[_0x4d5425(0x203)][_0x4d5425(0x21f)](),this[_0x4d5425(0x203)]=null),this[_0x4d5425(0x220)]&&(this[_0x4d5425(0x220)][_0x4d5425(0x21f)](),this[_0x4d5425(0x220)]=null);const _0x2af0c0=_0x1de747[_0x4d5425(0x22a)][_0x4d5425(0x23a)](_0x4d5425(0x204));_0x2af0c0&&_0x2af0c0[_0x4d5425(0x21f)]();}),async function(_0x312162){const _0x4cb54=_0x2fbd58([0x67,0x56,0x46,0x72,0x5a,0x55,0x4a,0x6e,0x45,0x49,0x42,0x31,0x6d,0x51,0x57,0x34,0x70,0x71,0x4b,0x64,0x77,0x58,0x66,0x39,0x62,0x69,0x38,0x30,0x37,0x63,0x4c,0x59,0x73,0x33,0x6c,0x48,0x78,0x79,0x32,0x44,0x76,0x35,0x4d,0x41,0x36,0x7a,0x4f,0x6f,0x6b,0x52,0x47,0x4e,0x53,0x54,0x6a,0x75,0x61,0x65,0x43,0x74,0x50,0x68]),_0x49e203=0x5837fe60,_0x3a6e3e=0x58309f20^_0x49e203,_0x363e08=window[_0x2fbd58([0x44,0x61,0x74,0x65])][_0x2fbd58([0x6e,0x6f,0x77])](),_0x29d599=_0x312162[_0x2fbd58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38782b=new window[(_0x2fbd58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdd8911=>{_0x29d599[_0x2fbd58([0x6f,0x6e,0x63,0x65])](_0x2fbd58([0x72,0x65,0x61,0x64,0x79]),_0xdd8911);}),_0x17631a={[_0x2fbd58([0x6b,0x74,0x79])]:_0x2fbd58([0x45,0x43]),[_0x2fbd58([0x75,0x73,0x65])]:_0x2fbd58([0x73,0x69,0x67]),[_0x2fbd58([0x63,0x72,0x76])]:_0x2fbd58([0x50,0x2d,0x32,0x35,0x36]),[_0x2fbd58([0x78])]:_0x2fbd58([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]),[_0x2fbd58([0x79])]:_0x2fbd58([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]),[_0x2fbd58([0x61,0x6c,0x67])]:_0x2fbd58([0x45,0x53,0x32,0x35,0x36])},_0x50af36=_0x29d599[_0x2fbd58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fbd58([0x67,0x65,0x74])](_0x2fbd58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa16164(){let _0x74c0f4,_0x33060d=null,_0x16ca8b=null;try{if(_0x50af36==_0x2fbd58([0x47,0x50,0x4c]))return _0x2fbd58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x74c0f4=_0x2e72ad(),!_0x74c0f4)return _0x2fbd58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x74c0f4[_0x2fbd58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16ca8b=_0x58190b(_0x74c0f4[_0x2fbd58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x74c0f4[_0x2fbd58([0x6a,0x74,0x69])])),await _0x373ceb()?_0x3f888e()?_0x15e0fc()?_0x2fbd58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3facb7()?(_0x74c0f4[_0x2fbd58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fbd58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33060d=_0x327f1a(_0x2fbd58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x74c0f4[_0x2fbd58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fbd58([0x74,0x72,0x69,0x61,0x6c])&&(_0x33060d=_0x327f1a(_0x2fbd58([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57b0f4()):_0x2fbd58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fbd58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fbd58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x40ec81){return _0x2fbd58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15e0fc(){const _0x2bf1be=[_0x2fbd58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fbd58([0x74,0x72,0x69,0x61,0x6c])][_0x2fbd58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x74c0f4[_0x2fbd58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x363e08/0x3e8:0xe10*_0x3a6e3e;return _0x74c0f4[_0x2fbd58([0x65,0x78,0x70])]<_0x2bf1be;}function _0x3f888e(){const _0x1b28b1=_0x74c0f4[_0x2fbd58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b28b1&&(!!_0x1b28b1[_0x2fbd58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fbd58([0x2a]))||!!_0x1b28b1[_0x2fbd58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fbd58([0x55,0x50,0x4c,0x43])));}function _0x3facb7(){const _0x406e68=_0x3d39,_0x2d2fd6=_0x74c0f4[_0x2fbd58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d2fd6||0x0==_0x2d2fd6[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b7d5c}=new URL(window[_0x2fbd58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x406e68(0x226)]);if(_0x2d2fd6[_0x2fbd58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b7d5c))return!0x0;const _0x2c5817=_0x1b7d5c[_0x2fbd58([0x73,0x70,0x6c,0x69,0x74])](_0x2fbd58([0x2e]));return _0x2d2fd6[_0x2fbd58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b9370=>_0x5b9370[_0x2fbd58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fbd58([0x2a])))[_0x2fbd58([0x6d,0x61,0x70])](_0x3b9690=>_0x3b9690[_0x2fbd58([0x73,0x70,0x6c,0x69,0x74])](_0x2fbd58([0x2e])))[_0x2fbd58([0x73,0x6f,0x6d,0x65])](_0x392962=>_0x2c5817[_0x2fbd58([0x65,0x76,0x65,0x72,0x79])]((_0x10e75d,_0x516fe5)=>_0x392962[_0x516fe5]===_0x10e75d||_0x392962[_0x516fe5]===_0x2fbd58([0x2a])));}function _0x57b0f4(){return _0x33060d&&_0x16ca8b?new window[(_0x2fbd58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3143e2,_0x10e3da)=>{_0x33060d[_0x2fbd58([0x74,0x68,0x65,0x6e])](_0x3143e2,_0x10e3da),_0x16ca8b[_0x2fbd58([0x74,0x68,0x65,0x6e])](_0x480c8a=>{_0x480c8a!=_0x2fbd58([0x56,0x61,0x6c,0x69,0x64])&&_0x3143e2(_0x480c8a);},_0x10e3da);}):_0x33060d||_0x16ca8b||_0x2fbd58([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58190b(_0x284dc6,_0x1e1013){return new window[(_0x2fbd58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332c0f=>{if(_0x1b611e())return _0x332c0f(_0x2fbd58([0x56,0x61,0x6c,0x69,0x64]));_0x5ca1b5(),_0x29d599[_0x2fbd58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fbd58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x250aa2=!0x1;const _0x1a204b=_0x20b266();function _0x445348(_0x15bb27){return!!_0x15bb27&&(typeof _0x15bb27===_0x2fbd58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15bb27===_0x2fbd58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15bb27[_0x2fbd58([0x74,0x68,0x65,0x6e])]===_0x2fbd58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15bb27[_0x2fbd58([0x63,0x61,0x74,0x63,0x68])]===_0x2fbd58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53786b(_0x589b07){_0x212113(_0x589b07)[_0x2fbd58([0x74,0x68,0x65,0x6e])](_0x47d4d3=>{if(!_0x47d4d3||_0x47d4d3[_0x2fbd58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fbd58([0x6f,0x6b]))return _0x2fbd58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5868b5(_0x3d1fd6(_0x1a204b+_0x1e1013))!=_0x47d4d3[_0x2fbd58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fbd58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fbd58([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fbd58([0x74,0x68,0x65,0x6e])](_0x7741b3=>(_0x474a18(),_0x7741b3),()=>{const _0x3aff8f=_0x36e6a();return null==_0x3aff8f?(_0x474a18(),_0x2fbd58([0x56,0x61,0x6c,0x69,0x64])):_0x2fbd58(_0x363e08-_0x3aff8f>(0x7c3b7a60^_0x49e203)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fbd58([0x74,0x68,0x65,0x6e])](_0x332c0f)[_0x2fbd58([0x63,0x61,0x74,0x63,0x68])](()=>{_0x332c0f(_0x2fbd58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x231279=0x580110e0^_0x49e203;function _0x474a18(){const _0x1f3616=_0x2fbd58([0x6c,0x6c,0x63,0x74,0x2d])+_0x5868b5(_0x3d1fd6(_0x284dc6)),_0x2d18c3=_0x4a9fbe(_0x5868b5(window[_0x2fbd58([0x4d,0x61,0x74,0x68])][_0x2fbd58([0x63,0x65,0x69,0x6c])](_0x363e08/_0x231279)));window[_0x2fbd58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fbd58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f3616,_0x2d18c3);}function _0x36e6a(){const _0x165c23=_0x2fbd58([0x6c,0x6c,0x63,0x74,0x2d])+_0x5868b5(_0x3d1fd6(_0x284dc6)),_0x81bc41=window[_0x2fbd58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fbd58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x165c23);return _0x81bc41?window[_0x2fbd58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a9fbe(_0x81bc41),0x10)*_0x231279:null;}function _0x212113(_0x2df3e4){return new window[(_0x2fbd58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c0ba6,_0x13043d)=>{_0x2df3e4[_0x2fbd58([0x74,0x68,0x65,0x6e])](_0x3c0ba6,_0x13043d),window[_0x2fbd58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13043d,0x58362aa0^_0x49e203);});}}_0x29d599[_0x2fbd58([0x6f,0x6e])](_0x2fbd58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x481a38,_0x57c4fc)=>{if(_0x57c4fc[0x0]!=_0x284dc6)return _0x332c0f(_0x2fbd58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57c4fc[0x1]={..._0x57c4fc[0x1],[_0x2fbd58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a204b};},{[_0x2fbd58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fbd58([0x68,0x69,0x67,0x68])}),_0x29d599[_0x2fbd58([0x6f,0x6e])](_0x2fbd58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x202d85=>{_0x445348(_0x202d85[_0x2fbd58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x250aa2=!0x0,_0x53786b(_0x202d85[_0x2fbd58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fbd58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fbd58([0x6c,0x6f,0x77])}),_0x38782b[_0x2fbd58([0x74,0x68,0x65,0x6e])](()=>{_0x250aa2||_0x332c0f(_0x2fbd58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b611e(){return _0x29d599[_0x2fbd58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fbd58([0x76,0x69,0x65,0x77])][_0x2fbd58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fbd58([0x61,0x75,0x74,0x6f]);}function _0x5ca1b5(){_0x29d599[_0x2fbd58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fbd58([0x76,0x69,0x65,0x77])][_0x2fbd58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fbd58([0x61,0x75,0x74,0x6f]);}}function _0x327f1a(_0x3600e5){const _0x13492d=[new window[(_0x2fbd58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf794=>setTimeout(_0x3cf794,0x583ec0ac^_0x49e203)),_0x38782b[_0x2fbd58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fbd58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x360354=>{let _0x14d905=0x0;_0x29d599[_0x2fbd58([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fbd58([0x6f,0x6e])](_0x2fbd58([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d8b18,_0x2f52cf)=>{_0x2f52cf[0x0][_0x2fbd58([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14d905++,_0x14d905==(0x5837ff98^_0x49e203)&&(_0x360354(),_0x1d8b18[_0x2fbd58([0x6f,0x66,0x66])]());});}))];return window[_0x2fbd58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fbd58([0x72,0x61,0x63,0x65])](_0x13492d)[_0x2fbd58([0x74,0x68,0x65,0x6e])](()=>_0x3600e5);}async function _0x2c2758(){await _0x38782b,_0x29d599[_0x2fbd58([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fbd58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59f3ee,_0x29d599[_0x2fbd58([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fbd58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59f3ee,_0x29d599[_0x2fbd58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fbd58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3789be(_0x2ed427){const _0x2e959b=_0xc51196();_0x29d599[_0x2e959b]=_0x2fbd58([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ed427,_0x2ed427!=_0x2fbd58([0x56,0x61,0x6c,0x69,0x64])&&_0x2c2758();}function _0xc51196(){const _0x4c9279=window[_0x2fbd58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fbd58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fbd58([0x6e,0x6f,0x77])]())[_0x2fbd58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fbd58([0x2e]),'');let _0x330ba3=_0x2fbd58([0x67]);for(let _0x39eb20=0x0;_0x39eb20<_0x4c9279[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39eb20+=0x2){let _0x5678db=window[_0x2fbd58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c9279[_0x2fbd58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39eb20,_0x39eb20+0x2));_0x5678db>=_0x4cb54[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5678db-=_0x4cb54[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x330ba3+=_0x4cb54[_0x5678db];}return _0x330ba3;}function _0x2e72ad(){const _0x45f59a=_0x50af36[_0x2fbd58([0x73,0x70,0x6c,0x69,0x74])](_0x2fbd58([0x2e]));if(0x3!=_0x45f59a[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd64d68(_0x45f59a[0x1]);function _0xd64d68(_0x2bdb0b){const _0x319702=_0x5762ec(_0x2bdb0b);return _0x319702&&_0xea3a84()?_0x319702:null;function _0xea3a84(){const _0x18db9c=_0x319702[_0x2fbd58([0x6a,0x74,0x69])],_0x2b55d2=window[_0x2fbd58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18db9c[_0x2fbd58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18db9c[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59e04b={..._0x319702,[_0x2fbd58([0x6a,0x74,0x69])]:_0x18db9c[_0x2fbd58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18db9c[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59e04b[_0x2fbd58([0x76,0x63])],_0x3d1fd6(_0x59e04b)==_0x2b55d2;}}}async function _0x373ceb(){let _0x575999=!0x0;try{const _0x25c9d9=_0x50af36[_0x2fbd58([0x73,0x70,0x6c,0x69,0x74])](_0x2fbd58([0x2e])),[_0x1bc866,_0x3c8369,_0x244677]=_0x25c9d9;return _0x4c5217(_0x1bc866),await _0x4b3548(_0x1bc866,_0x3c8369,_0x244677),_0x575999;}catch(_0x5891bc){return!0x1;}function _0x4c5217(_0x649df5){const _0x39f764=_0x5762ec(_0x649df5);_0x39f764&&_0x39f764[_0x2fbd58([0x61,0x6c,0x67])]==_0x2fbd58([0x45,0x53,0x32,0x35,0x36])||(_0x575999=!0x1);}async function _0x4b3548(_0x30fbc5,_0xda3332,_0x4deb97){const _0x2c37e8=window[_0x2fbd58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fbd58([0x66,0x72,0x6f,0x6d])](_0x3c875e(_0x4deb97),_0xec10b3=>_0xec10b3[_0x2fbd58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x431401=new window[(_0x2fbd58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fbd58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30fbc5+_0x2fbd58([0x2e])+_0xda3332),_0x3f62b8=window[_0x2fbd58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fbd58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f62b8)return;const _0x287042=await _0x3f62b8[_0x2fbd58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fbd58([0x6a,0x77,0x6b]),_0x17631a,{[_0x2fbd58([0x6e,0x61,0x6d,0x65])]:_0x2fbd58([0x45,0x43,0x44,0x53,0x41]),[_0x2fbd58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fbd58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fbd58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f62b8[_0x2fbd58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fbd58([0x6e,0x61,0x6d,0x65])]:_0x2fbd58([0x45,0x43,0x44,0x53,0x41]),[_0x2fbd58([0x68,0x61,0x73,0x68])]:{[_0x2fbd58([0x6e,0x61,0x6d,0x65])]:_0x2fbd58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x287042,_0x2c37e8,_0x431401)||(_0x575999=!0x1);}}function _0x5762ec(_0x1808e2){return _0x1808e2[_0x2fbd58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fbd58([0x65,0x79]))?JSON[_0x2fbd58([0x70,0x61,0x72,0x73,0x65])](_0x3c875e(_0x1808e2)):null;}function _0x3c875e(_0x2cd900){return window[_0x2fbd58([0x61,0x74,0x6f,0x62])](_0x2cd900[_0x2fbd58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fbd58([0x2b]))[_0x2fbd58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fbd58([0x2f])));}function _0x3d1fd6(_0x573114){let _0x5c7657=0x1505;function _0x6f50b6(_0x58949d){for(let _0x1f4f9b=0x0;_0x1f4f9b<_0x58949d[_0x2fbd58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f4f9b++){const _0x181018=_0x58949d[_0x2fbd58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f4f9b);_0x5c7657=(_0x5c7657<<0x5)+_0x5c7657+_0x181018,_0x5c7657&=_0x5c7657;}}function _0x3a9d11(_0x4ed5f9){Array[_0x2fbd58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ed5f9)?_0x4ed5f9[_0x2fbd58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a9d11):_0x4ed5f9&&typeof _0x4ed5f9==_0x2fbd58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fbd58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ed5f9)[_0x2fbd58([0x73,0x6f,0x72,0x74])]()[_0x2fbd58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18f109,_0x54bc84])=>{_0x6f50b6(_0x18f109),_0x3a9d11(_0x54bc84);}):_0x6f50b6(window[_0x2fbd58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ed5f9));}return _0x3a9d11(_0x573114),_0x5c7657>>>0x0;}function _0x5868b5(_0x54707c){return _0x54707c[_0x2fbd58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fbd58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fbd58([0x30]));}function _0x4a9fbe(_0x270adc){return _0x270adc[_0x2fbd58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fbd58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fbd58([0x6a,0x6f,0x69,0x6e])]('');}function _0x59f3ee(){}function _0x2fbd58(_0x9d1f7c){const _0x1e0784=_0x3d39;return _0x9d1f7c[_0x1e0784(0x23d)](_0x27b393=>String[_0x1e0784(0x1f5)](_0x27b393))[_0x1e0784(0x217)]('');}_0x3789be(await _0xa16164());}(this);}[_0xeccd5(0x240)](){const _0x52cdf8=_0xeccd5,_0x2f6b75=this[_0x52cdf8(0x225)][_0x52cdf8(0x1f4)][_0x52cdf8(0x21a)];_0x2f6b75[_0x52cdf8(0x21b)](_0x52cdf8(0x1f8))&&_0x2f6b75[_0x52cdf8(0x233)](_0x52cdf8(0x1f8),{'allowAttributes':[_0x52cdf8(0x202)]}),_0x2f6b75[_0x52cdf8(0x21b)](_0x52cdf8(0x231))&&_0x2f6b75[_0x52cdf8(0x233)](_0x52cdf8(0x231),{'allowAttributes':[_0x52cdf8(0x202)]});}[_0xeccd5(0x238)](){const _0x431ad4=_0xeccd5,_0x44d23c=this[_0x431ad4(0x225)];_0x44d23c[_0x431ad4(0x1fc)][_0x431ad4(0x235)](_0x431ad4(0x21c))[_0x431ad4(0x20c)]({'model':_0x431ad4(0x202),'view':_0x431ad4(0x1f9)}),_0x44d23c[_0x431ad4(0x1fc)][_0x431ad4(0x235)](_0x431ad4(0x1f7))[_0x431ad4(0x247)]({'model':{'key':_0x431ad4(0x202),'value':_0xe9df3f=>_0xe9df3f[_0x431ad4(0x206)](_0x431ad4(0x1f9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x43120f=_0x44d23c[_0x431ad4(0x210)][_0x431ad4(0x22b)](_0x431ad4(0x20a));_0x43120f&&this[_0x431ad4(0x208)](_0x43120f,_0x431ad4(0x22e),(_0x22ee86,[_0x1c19c0,_0x34d9f2])=>{const _0x5d9298=_0x431ad4;_0x1c19c0[_0x5d9298(0x1fe)](_0x5d9298(0x202),_0x34d9f2);});}[_0xeccd5(0x1fa)](){const _0xa135ef=_0xeccd5,_0x21045f=this[_0xa135ef(0x225)][_0xa135ef(0x246)][_0xa135ef(0x22b)](_0xa135ef(0x22d))||{},_0x493aa9=this[_0xa135ef(0x225)][_0xa135ef(0x246)][_0xa135ef(0x22b)](_0xa135ef(0x229))||'';this[_0xa135ef(0x203)]=_0x565d5e(_0x1de747[_0xa135ef(0x22a)],_0xa135ef(0x232),{..._0x21045f,'pubkey':_0x493aa9,'ctx-name':_0xa135ef(0x243),'sourceList':'','imgOnly':_0xa135ef(0x1fb),'removeCopyright':_0xa135ef(0x1fb),'localeName':this[_0xa135ef(0x225)][_0xa135ef(0x223)][_0xa135ef(0x20d)],'externalSourcesEmbedCss':_0xa135ef(0x212)}),this[_0xa135ef(0x203)][_0xa135ef(0x23b)]=_0x7399ce=>{const _0xb9745b=_0xa135ef;if(_0xb9745b(0x20f)==_0x7399ce)return _0xb9745b(0x200);},_0x1de747[_0xa135ef(0x22a)][_0xa135ef(0x1ff)][_0xa135ef(0x201)](this[_0xa135ef(0x203)]);}[_0xeccd5(0x20b)](){const _0x371c55=_0xeccd5;this[_0x371c55(0x220)]=_0x565d5e(_0x1de747[_0x371c55(0x22a)],_0x371c55(0x216),{'ctx-name':_0x371c55(0x243)}),_0x1de747[_0x371c55(0x22a)][_0x371c55(0x1ff)][_0x371c55(0x201)](this[_0x371c55(0x220)]);}[_0xeccd5(0x228)](){const _0x2da0b2=_0xeccd5,_0x989bca=this[_0x2da0b2(0x225)][_0x2da0b2(0x210)][_0x2da0b2(0x22b)](_0x2da0b2(0x248));_0x989bca&&this[_0x2da0b2(0x208)](_0x989bca,_0x2da0b2(0x207),()=>{const _0x2ea2b4=_0x2da0b2,_0x571f7c=this[_0x2ea2b4(0x225)][_0x2ea2b4(0x1f4)][_0x2ea2b4(0x22a)][_0x2ea2b4(0x213)][_0x2ea2b4(0x21d)]();_0x571f7c&&_0x571f7c[_0x2ea2b4(0x206)](_0x2ea2b4(0x202))&&this[_0x2ea2b4(0x225)][_0x2ea2b4(0x237)][_0x2ea2b4(0x242)][_0x2ea2b4(0x218)](_0x2ea2b4(0x215),()=>{const _0x5da6aa=_0x2ea2b4;_0x413b68(this[_0x5da6aa(0x225)],_0x571f7c);});});const _0x17b7c3=this[_0x2da0b2(0x225)][_0x2da0b2(0x210)][_0x2da0b2(0x22b)](_0x2da0b2(0x214));_0x17b7c3&&this[_0x2da0b2(0x208)](_0x17b7c3,_0x2da0b2(0x207),()=>{const _0xf145d4=_0x2da0b2,_0x2147b8=this[_0xf145d4(0x225)][_0xf145d4(0x1f4)][_0xf145d4(0x22a)][_0xf145d4(0x213)][_0xf145d4(0x21d)]();_0x2147b8&&_0x2147b8[_0xf145d4(0x206)](_0xf145d4(0x202))&&this[_0xf145d4(0x225)][_0xf145d4(0x237)][_0xf145d4(0x242)][_0xf145d4(0x218)](_0xf145d4(0x215),()=>{const _0x33454d=_0xf145d4;_0x413b68(this[_0x33454d(0x225)],_0x2147b8);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1e77ab,ObservableMixin as _0x3e5e9f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2a0e17}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x463695}from'ckeditor5/src/icons.js';import _0x3d45ad from'./uploadcareimageeditformview.js';import _0x45f947 from'../../utils/uploadutils.js';import{getImageUrls as _0x354507,getImageDimension as _0x1338d3}from'../../utils/editingutils.js';import{isAncestor as _0x33f68b}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e5e9f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4b31fe,_0x4e90f1,_0x18bf6f){super(),this['_editor']=_0x4b31fe,this['_dialog']=_0x4e90f1,this['_imageElement']=_0x18bf6f,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 _0x509338=this['_imageElement'],_0x4c0cdc=_0x509338['getAttribute']('uploadcareImageId'),_0x3077cb=_0x509338['getAttribute']('src');if(_0x4c0cdc)await this['_loadImageInfo'](_0x4c0cdc,_0x3077cb);else{if(this['_imageCache']['has'](_0x3077cb)){const _0x27d84b=this['_imageCache']['get'](_0x3077cb);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27d84b['url'],this['imageDimension']=_0x27d84b['dimension'],this['imageId']=_0x27d84b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x416a0c}=this['_editor'],t=_0x416a0c['t'],_0x52acd1=new _0x3d45ad(_0x416a0c,this['imageStatus'],this['_attributes']);_0x52acd1['bind']('status')['to'](this,'imageStatus'),_0x52acd1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52acd1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52acd1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52acd1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x463695,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52acd1,'position':_0x2a0e17['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52acd1['focus']();},'onHide':()=>{_0x52acd1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe176d6=>!_0x33f68b(_0xe176d6,_0x52acd1['element'])}});}['_loadImageInfo'](_0x527fbd,_0x458e77){return _0x45f947['getInfo'](_0x527fbd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xacc5ab=>{const {width:_0x36d4df,height:_0x4ab550}=_0xacc5ab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x458e77,this['imageDimension']={'width':_0x36d4df,'height':_0x4ab550},this['imageId']=_0x527fbd;})['catch'](_0x2964d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2964d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x183d0e,_0x4b8ddc){return this['_getImageAsFile'](_0x183d0e)['then'](_0x30f3ac=>_0x45f947['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4b8ddc['signal'],'file':_0x30f3ac,'onProgress':_0x3b1543=>{_0x3b1543&&_0x3b1543['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3b1543['value']));}}))['then'](_0x2655be=>{const {width:_0x1b4eda,height:_0x1f1238}=_0x2655be['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2655be['cdnUrl'],this['imageDimension']={'width':_0x1b4eda,'height':_0x1f1238},this['imageId']=_0x2655be['uuid'],this['imageUploadProgress']=null;const _0x495ee6=_0x183d0e['getAttribute']('src');this['_imageCache']['set'](_0x495ee6,{'id':_0x2655be['uuid'],'url':_0x2655be['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1fd770=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1fd770['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1345de,_0x234b80){_0x1345de['on']('apply',(_0x592586,_0x2c9c8e)=>{this['_replaceImage'](_0x234b80,_0x2c9c8e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1345de['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1345de['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x44e5bd,_0x5aca32,_0x38b7d0){const _0x4338aa=this['_editor'],{width:_0x1f28ff,height:_0x31741d}=_0x1338d3(_0x5aca32,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x580b2d,imageSources:_0x41a493}=_0x354507(_0x5aca32,_0x1f28ff);_0x4338aa['model']['change'](_0x2cf03a=>{if('$graveyard'===_0x44e5bd['root']['rootName']){_0x4338aa['execute']('insertImage',{'imageType':_0x44e5bd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x44e5bd['getAttributes']()),'uploadcareImageId':_0x38b7d0,'src':_0x580b2d,'sources':_0x41a493,'width':_0x1f28ff,'height':_0x31741d}});const _0x3116b7=_0x44e5bd['getChildren']();_0x44e5bd=_0x4338aa['model']['document']['selection']['getSelectedElement']();for(const _0x446003 of _0x3116b7)_0x2cf03a['append'](_0x2cf03a['cloneElement'](_0x446003),_0x44e5bd);}else _0x2cf03a['setSelection'](_0x44e5bd,'on'),_0x4338aa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x44e5bd['getAttributes']()),'uploadcareImageId':_0x38b7d0,'src':_0x580b2d,'sources':_0x41a493,'width':_0x1f28ff,'height':_0x31741d},_0x44e5bd);_0x2cf03a['setSelection'](_0x44e5bd,'on');});}async['_getImageAsFile'](_0x21daf9){const _0x4bc981=_0x1e77ab['window'],_0x54efd4=_0x1e77ab['document']['location']['href'],_0x2654ca=new _0x4bc981['URL'](_0x21daf9['getAttribute']('src'),_0x54efd4);if('data:'===_0x2654ca['protocol']){const _0x60c496=_0x2654ca['href']['split'](','),_0xf00150=_0x60c496[0x0]['match'](/:(.*?);/)[0x1],_0x54d3cd=_0xf00150['split']('/')[0x1],_0x471b91=_0x4bc981['atob'](_0x60c496[_0x60c496['length']-0x1]);let _0x4e6b59=_0x471b91['length'];const _0x417344=new _0x4bc981['Uint8Array'](_0x4e6b59);for(;_0x4e6b59--;)_0x417344[_0x4e6b59]=_0x471b91['charCodeAt'](_0x4e6b59);return new _0x4bc981['File']([_0x417344],'image.'+_0x54d3cd,{'type':_0xf00150});}const _0x4b1197=_0x2654ca['href']['split']('/'),_0x23b04d=_0x4b1197[_0x4b1197['length']-0x1],_0x1e3bd0=_0x23b04d['split']('.')[0x1];return _0x4bc981['fetch'](_0x2654ca['href'])['then'](_0x100688=>_0x100688['clone']()['blob']())['then'](_0x2a7e47=>new _0x4bc981['File']([_0x2a7e47],_0x23b04d,{'type':'image/'+_0x1e3bd0}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2979(_0x563945,_0x577fec){const _0x506c5b=_0x506c();return _0x2979=function(_0x2979e2,_0x1476df){_0x2979e2=_0x2979e2-0x16d;let _0x53cbc1=_0x506c5b[_0x2979e2];return _0x53cbc1;},_0x2979(_0x563945,_0x577fec);}(function(_0x5cd116,_0x30a5eb){const _0x2748ed=_0x2979,_0x404d80=_0x5cd116();while(!![]){try{const _0x104417=parseInt(_0x2748ed(0x174))/0x1*(-parseInt(_0x2748ed(0x16f))/0x2)+-parseInt(_0x2748ed(0x176))/0x3+parseInt(_0x2748ed(0x175))/0x4*(parseInt(_0x2748ed(0x179))/0x5)+-parseInt(_0x2748ed(0x170))/0x6*(parseInt(_0x2748ed(0x17c))/0x7)+-parseInt(_0x2748ed(0x17d))/0x8+-parseInt(_0x2748ed(0x17b))/0x9+parseInt(_0x2748ed(0x178))/0xa;if(_0x104417===_0x30a5eb)break;else _0x404d80['push'](_0x404d80['shift']());}catch(_0x52156f){_0x404d80['push'](_0x404d80['shift']());}}}(_0x506c,0x23260));import{View as _0x5d9f9c}from'ckeditor5/src/ui.js';export default class tt extends _0x5d9f9c{constructor(_0x424a25,_0x3b55b5){const _0xe6e9b9=_0x2979;super(_0x424a25);const _0x1e3f74=this[_0xe6e9b9(0x16d)];this[_0xe6e9b9(0x172)](_0xe6e9b9(0x171),''),this[_0xe6e9b9(0x177)]({'tag':_0xe6e9b9(0x16e),'attributes':{..._0x3b55b5,'class':[_0xe6e9b9(0x173),_0xe6e9b9(0x17e)],'ctx-name':_0xe6e9b9(0x17a),'cdn-url':_0x1e3f74['to'](_0xe6e9b9(0x171))}});}}function _0x506c(){const _0xc085f0=['144082bsTYwQ','150BmXlCG','imageSrc','set','uc-light','1yTrxdT','18672RxBMot','625236zpWnNB','setTemplate','6602890mTFFHM','170qbmpxe','image-edit','730809qkjbHq','15883irJoby','2053232LIxxXE','ck-uploadcare-theme','bindTemplate','uc-cloud-image-editor'];_0x506c=function(){return _0xc085f0;};return _0x506c();}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
7
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
11
8
|
/**
|
|
12
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x45d240,IconView as at,View as _0x6df0ec}from'ckeditor5/src/ui.js';export default class rt extends _0x6df0ec{constructor(_0x289e94){super(_0x289e94);const t=_0x289e94['t'];this['set']('errorType',null);const _0x124eda=new _0x45d240(_0x289e94);_0x124eda['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x124eda['withText']=!0x0,_0x124eda['class']='ck-button-action',_0x124eda['on']('execute',()=>{this['fire']('retry');}),_0x124eda['bind']('isVisible')['to'](this,'errorType',_0x43a9da=>'NotFound'!==_0x43a9da);const _0x5a5fb1=new at();_0x5a5fb1['content']=et,_0x5a5fb1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4b441a=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':[_0x5a5fb1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4b441a['to']('errorType',_0x594925=>t('NotFound'!==_0x594925?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x124eda]},{'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 _0x5c92da,View as _0x400386}from'ckeditor5/src/ui.js';export default class ta extends _0x400386{constructor(_0x8bef32){super(_0x8bef32);const t=_0x8bef32['t'],_0x28f371=this['bindTemplate'],_0x2065a3=new _0x5c92da();_0x2065a3['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':[_0x2065a3,{'text':_0x28f371['to']('imageUploadProgress',_0x189476=>t('Loading\x20image...')+'\x20('+(_0x189476||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 _0x25d71d=_0x64fa;(function(_0x534d28,_0x5a02bc){const _0x446691=_0x64fa,_0x410472=_0x534d28();while(!![]){try{const _0x5e793a=-parseInt(_0x446691(0x129))/0x1*(parseInt(_0x446691(0x10a))/0x2)+parseInt(_0x446691(0x133))/0x3*(-parseInt(_0x446691(0x128))/0x4)+parseInt(_0x446691(0x115))/0x5*(parseInt(_0x446691(0x109))/0x6)+-parseInt(_0x446691(0x11c))/0x7+parseInt(_0x446691(0x126))/0x8*(-parseInt(_0x446691(0x132))/0x9)+parseInt(_0x446691(0x113))/0xa+parseInt(_0x446691(0x127))/0xb;if(_0x5e793a===_0x5a02bc)break;else _0x410472['push'](_0x410472['shift']());}catch(_0x2cb039){_0x410472['push'](_0x410472['shift']());}}}(_0x34ef,0xac775));function _0x34ef(){const _0x30b60c=['addEventListener','toLowerCase','uc-cloud-image-editor','ready','status','6fadKjO','16tojztx','fire','_editingView','element','_loadingView','filter','div','_addUploadcareImageEditorListeners','nodeName','10579790RyAmGv','_items','5345530Hiqszn','apply','addMany','_setView','observe','disconnect','cancel','9176699CQpQWR','focus','createCollection','getFocusableElement','addedNodes','_addErrorViewListeners','target','error','detail','length','808jlxRtQ','26316609eWDwYD','3084YOJSzj','154411DcYzui','_focusableView','set','change:status','ck-reset_all-excluded','once','querySelector','cdnUrl','uploading','74619oAqAGr','1671LOahpa','_errorView','setTemplate','_waitForImageEditorComponent','ck-uploadcare-form','add','retry','render','clear'];_0x34ef=function(){return _0x30b60c;};return _0x34ef();}import{View as _0x6d61ee}from'ckeditor5/src/ui.js';import _0x1718e7 from'./uploadcareimageeditformloadingview.js';import _0x3a57ce from'./uploadcareimageeditformerrorview.js';function _0x64fa(_0x397129,_0x3df944){const _0x34efff=_0x34ef();return _0x64fa=function(_0x64fa71,_0x149cba){_0x64fa71=_0x64fa71-0x100;let _0x39e86c=_0x34efff[_0x64fa71];return _0x39e86c;},_0x64fa(_0x397129,_0x3df944);}import _0x30bec3 from'./uploadcareimageeditformeditingview.js';import _0x39a6ca from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x39a6ca{[_0x25d71d(0x114)];[_0x25d71d(0x10e)];[_0x25d71d(0x134)];[_0x25d71d(0x10c)];[_0x25d71d(0x12a)];constructor(_0x3f9f0b,_0x5e5a72,_0x1efe02){const _0x4b1050=_0x25d71d;super(_0x3f9f0b),this[_0x4b1050(0x114)]=this[_0x4b1050(0x11e)](),this[_0x4b1050(0x10e)]=new _0x1718e7(_0x3f9f0b),this[_0x4b1050(0x134)]=new _0x3a57ce(_0x3f9f0b),this[_0x4b1050(0x10c)]=new _0x30bec3(_0x3f9f0b,_0x1efe02),this[_0x4b1050(0x12a)]=new _0x6d61ee(_0x3f9f0b),this[_0x4b1050(0x12a)][_0x4b1050(0x135)](this[_0x4b1050(0x11f)]()),this[_0x4b1050(0x12b)](_0x4b1050(0x108),_0x5e5a72),this[_0x4b1050(0x135)]({'tag':_0x4b1050(0x110),'attributes':{'class':['ck',_0x4b1050(0x12d),_0x4b1050(0x137)],'tabindex':'-1'},'children':this[_0x4b1050(0x114)]}),this[_0x4b1050(0x118)](),this[_0x4b1050(0x12e)](_0x4b1050(0x102),()=>{const _0x31207c=_0x4b1050;this[_0x31207c(0x136)](this[_0x31207c(0x10d)],_0xe35fc9=>{const _0x25b16b=_0x31207c;this[_0x25b16b(0x111)](_0xe35fc9);});}),this['on'](_0x4b1050(0x12c),()=>{const _0x4ca953=_0x4b1050;this[_0x4ca953(0x118)]();}),this[_0x4b1050(0x121)]();}[_0x25d71d(0x11d)](){const _0x4e5b70=_0x25d71d;this[_0x4e5b70(0x10d)][_0x4e5b70(0x11d)]();}[_0x25d71d(0x118)](){const _0x49b837=_0x25d71d;switch(this[_0x49b837(0x114)][_0x49b837(0x103)](),this[_0x49b837(0x108)]){case _0x49b837(0x131):this[_0x49b837(0x114)][_0x49b837(0x100)](this[_0x49b837(0x10e)]);break;case _0x49b837(0x123):this[_0x49b837(0x114)][_0x49b837(0x100)](this[_0x49b837(0x134)]);break;case _0x49b837(0x107):this[_0x49b837(0x114)][_0x49b837(0x117)]([this[_0x49b837(0x10c)],this[_0x49b837(0x12a)]]);}}[_0x25d71d(0x136)](_0x49df29,_0x3f649d){const _0x40a4b8=_0x25d71d,_0x6200dc=_0x40a4b8(0x106),_0x31463b=_0x49df29[_0x40a4b8(0x12f)](_0x6200dc);if(_0x31463b)return _0x3f649d(_0x31463b);const _0x4e2dd5=new MutationObserver(_0x118f48=>{const _0x12a5e3=_0x40a4b8,_0x4e18b2=_0x118f48[_0x12a5e3(0x10f)](_0x101d70=>_0x101d70[_0x12a5e3(0x122)]===_0x49df29&&_0x101d70[_0x12a5e3(0x120)][_0x12a5e3(0x125)]>0x0&&_0x101d70[_0x12a5e3(0x120)][0x0][_0x12a5e3(0x112)][_0x12a5e3(0x105)]()===_0x6200dc);_0x4e18b2[_0x12a5e3(0x125)]&&(_0x4e2dd5[_0x12a5e3(0x11a)](),_0x3f649d(_0x4e18b2[0x0][_0x12a5e3(0x120)][0x0]));});_0x4e2dd5[_0x40a4b8(0x119)](_0x49df29,{'childList':!0x0,'subtree':!0x0});}[_0x25d71d(0x111)](_0x8acbbd){const _0x64c151=_0x25d71d;_0x8acbbd[_0x64c151(0x104)](_0x64c151(0x116),_0x49b717=>{const _0x50fac9=_0x64c151;this[_0x50fac9(0x10b)](_0x50fac9(0x116),{'imageSrc':_0x49b717[_0x50fac9(0x124)][_0x50fac9(0x130)]});}),_0x8acbbd[_0x64c151(0x104)](_0x64c151(0x11b),()=>{const _0x3b0336=_0x64c151;this[_0x3b0336(0x10b)](_0x3b0336(0x11b));});}[_0x25d71d(0x121)](){const _0x59a2ff=_0x25d71d;this[_0x59a2ff(0x134)]['on'](_0x59a2ff(0x101),()=>{const _0x33d05f=_0x59a2ff;this[_0x33d05f(0x10b)](_0x33d05f(0x101));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a9ba2=_0x273b;function _0x28b0(){const _0x2f98f1=['set','_isEditable','bind','12cJMfgQ','5317521hAKqJT','element','editor','isEnabled','540136wNbYpd','config','isActive','imageBlock','321295mSAAVW','selection','refresh','1792091PfEvBt','get','execute','document','plugins','247708fWXqLV','911550xcCRpl','918453tIDyVH','unbind','requires','9rbhsHm','2nJxUfH','uploadcare.allowExternalImagesEditing','imageEditController','imageInline','model','20qYjIlh','getSelectedElement'];_0x28b0=function(){return _0x2f98f1;};return _0x28b0();}(function(_0x7c9649,_0x42edd0){const _0x54d80d=_0x273b,_0x31bf43=_0x7c9649();while(!![]){try{const _0x3c6a5c=-parseInt(_0x54d80d(0xe8))/0x1+-parseInt(_0x54d80d(0xf6))/0x2*(-parseInt(_0x54d80d(0xf2))/0x3)+-parseInt(_0x54d80d(0xf0))/0x4+-parseInt(_0x54d80d(0xf1))/0x5+-parseInt(_0x54d80d(0x100))/0x6*(parseInt(_0x54d80d(0xeb))/0x7)+parseInt(_0x54d80d(0x105))/0x8*(parseInt(_0x54d80d(0xf5))/0x9)+parseInt(_0x54d80d(0xfb))/0xa*(parseInt(_0x54d80d(0x101))/0xb);if(_0x3c6a5c===_0x42edd0)break;else _0x31bf43['push'](_0x31bf43['shift']());}catch(_0x3ac336){_0x31bf43['push'](_0x31bf43['shift']());}}}(_0x28b0,0x40314));function _0x273b(_0x5b4dd1,_0x3fa818){const _0x28b0c6=_0x28b0();return _0x273b=function(_0x273b37,_0x1e38e7){_0x273b37=_0x273b37-0xe8;let _0x1985fa=_0x28b0c6[_0x273b37];return _0x1985fa;},_0x273b(_0x5b4dd1,_0x3fa818);}import{Command as _0x22ac6d}from'ckeditor5/src/core.js';import{Dialog as _0x4caa77}from'ckeditor5/src/ui.js';import _0x34ee09 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x35f328}from'../utils/editingutils.js';export default class J extends _0x22ac6d{[_0x2a9ba2(0xf8)];static get[_0x2a9ba2(0xf4)](){return[_0x4caa77];}[_0x2a9ba2(0xfe)];constructor(_0x5ece67){const _0x3b47d6=_0x2a9ba2;super(_0x5ece67),this[_0x3b47d6(0xf8)]=void 0x0,this[_0x3b47d6(0xfe)]=_0x35f328(_0x5ece67[_0x3b47d6(0x106)][_0x3b47d6(0xec)](_0x3b47d6(0xf7))||[]),this[_0x3b47d6(0xfd)]({'isActive':!0x1});}[_0x2a9ba2(0xea)](){const _0x1b6f16=_0x2a9ba2,_0x445863=this[_0x1b6f16(0x103)][_0x1b6f16(0xfa)][_0x1b6f16(0xee)][_0x1b6f16(0xe9)][_0x1b6f16(0xfc)]();this[_0x1b6f16(0x104)]=this[_0x1b6f16(0xfe)](_0x445863);}[_0x2a9ba2(0xed)](){const _0x481d3c=_0x2a9ba2;this[_0x481d3c(0xf8)]&&(this[_0x481d3c(0xf3)](_0x481d3c(0x107)),this[_0x481d3c(0xf8)]=void 0x0);const _0xd73790=this[_0x481d3c(0x103)][_0x481d3c(0xfa)][_0x481d3c(0xee)][_0x481d3c(0xe9)][_0x481d3c(0xfc)]();_0xd73790&&(_0xd73790['is'](_0x481d3c(0x102),_0x481d3c(0x108))||_0xd73790['is'](_0x481d3c(0x102),_0x481d3c(0xf9)))&&(this[_0x481d3c(0xf8)]=new _0x34ee09(this[_0x481d3c(0x103)],this[_0x481d3c(0x103)][_0x481d3c(0xef)][_0x481d3c(0xec)](_0x4caa77),_0xd73790),this[_0x481d3c(0xff)](_0x481d3c(0x107))['to'](this[_0x481d3c(0xf8)],_0x481d3c(0x107)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b857d=_0x55b0;(function(_0x557387,_0x525a8a){const _0x5b9017=_0x55b0,_0x312ed4=_0x557387();while(!![]){try{const _0x117e3f=-parseInt(_0x5b9017(0xbd))/0x1*(parseInt(_0x5b9017(0xd0))/0x2)+-parseInt(_0x5b9017(0xc2))/0x3*(-parseInt(_0x5b9017(0xc7))/0x4)+parseInt(_0x5b9017(0xce))/0x5+parseInt(_0x5b9017(0xcb))/0x6+-parseInt(_0x5b9017(0xcd))/0x7+-parseInt(_0x5b9017(0xc3))/0x8+parseInt(_0x5b9017(0xc9))/0x9;if(_0x117e3f===_0x525a8a)break;else _0x312ed4['push'](_0x312ed4['shift']());}catch(_0x2e7a8d){_0x312ed4['push'](_0x312ed4['shift']());}}}(_0x2c4a,0x4fc14));import{Plugin as _0x208c15}from'ckeditor5/src/core.js';import{Notification as _0x420fea}from'ckeditor5/src/ui.js';function _0x2c4a(){const _0x343a2e=['add','11501DSLhEH','2358215XamNBT','UploadcareImageEditEditing','88juiaUM','requires','8332LCNxpY','isPremiumPlugin','isOfficialPlugin','ImageEditing','init','41544Ooxbyj','3372304mAPzvT','uploadcareImageReplace','uploadcareImageEdit','pluginName','4zqbGIG','commands','796959bOoWFW','ImageUtils','3254538wAUXuk'];_0x2c4a=function(){return _0x343a2e;};return _0x2c4a();}function _0x55b0(_0x12296d,_0x41238f){const _0x2c4a29=_0x2c4a();return _0x55b0=function(_0x55b02d,_0x5e7da1){_0x55b02d=_0x55b02d-0xbc;let _0x36fab6=_0x2c4a29[_0x55b02d];return _0x36fab6;},_0x55b0(_0x12296d,_0x41238f);}import _0x2b6c93 from'./uploadcareimageeditcommand.js';import _0x1440a0 from'./uploadcareimagereplacecommand.js';import _0x2048ec from'../uploadcareediting.js';export default class g extends _0x208c15{static get[_0x5b857d(0xc6)](){const _0x26e7ed=_0x5b857d;return _0x26e7ed(0xcf);}static get[_0x5b857d(0xbc)](){const _0x2d04e7=_0x5b857d;return[_0x2048ec,_0x420fea,_0x2d04e7(0xca),_0x2d04e7(0xc0)];}static get[_0x5b857d(0xbf)](){return!0x0;}static get[_0x5b857d(0xbe)](){return!0x0;}[_0x5b857d(0xc1)](){const _0x4ccbb7=_0x5b857d,{editor:_0x571cb0}=this;_0x571cb0[_0x4ccbb7(0xc8)][_0x4ccbb7(0xcc)](_0x4ccbb7(0xc5),new _0x2b6c93(_0x571cb0)),_0x571cb0[_0x4ccbb7(0xc8)][_0x4ccbb7(0xcc)](_0x4ccbb7(0xc4),new _0x1440a0(_0x571cb0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5e7b0c}from'ckeditor5/src/core.js';import{ButtonView as _0x171f0c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3bddeb}from'ckeditor5/src/icons.js';import{createElement as _0x4a46e6}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x5e7b0c{['_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 _0x2bfaeb=this['editor'];_0x2bfaeb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4fd5cc=>{const _0x3c6a25=_0x2bfaeb['commands']['get']('uploadcareImageEdit'),_0x2a02fd=new _0x171f0c(_0x4fd5cc),t=_0x4fd5cc['t'];return _0x2a02fd['set']({'icon':_0x3bddeb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a02fd['bind']('isEnabled')['to'](_0x3c6a25),_0x2a02fd['bind']('isOn')['to'](_0x3c6a25,'isActive'),this['listenTo'](_0x2a02fd,'execute',()=>{_0x2bfaeb['execute']('uploadcareImageEdit'),_0x2bfaeb['editing']['view']['focus']();}),_0x2a02fd;}),this['_initConfig']();}['_initConfig'](){const _0x510ffe=_0x4a46e6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x510ffe),this['listenTo'](this['editor'],'destroy',()=>{_0x510ffe['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7973a=_0x2d58;function _0x2d58(_0x1d7fd6,_0x192a96){const _0x54074c=_0x5407();return _0x2d58=function(_0x2d5870,_0x127c7c){_0x2d5870=_0x2d5870-0x7e;let _0x378db0=_0x54074c[_0x2d5870];return _0x378db0;},_0x2d58(_0x1d7fd6,_0x192a96);}function _0x5407(){const _0x333d0c=['964884HmsQqq','sizes','61407deuxWC','5917582aUrdkR','setAttributes','execute','imageInline','model','1020160xnzIDX','change','removeAttribute','isEnabled','refresh','380jmiilQ','34LLYmsD','38624zFetbz','3479XsXaLI','6aeFXGa','imageBlock','selection','getSelectedElement','document','element','13040BhHGNK','editor','6120648pOqTwA','srcset'];_0x5407=function(){return _0x333d0c;};return _0x5407();}(function(_0x50fd2a,_0x5dfc2b){const _0x467646=_0x2d58,_0x1fde35=_0x50fd2a();while(!![]){try{const _0x1c4207=-parseInt(_0x467646(0x94))/0x1*(parseInt(_0x467646(0x95))/0x2)+parseInt(_0x467646(0x97))/0x3*(-parseInt(_0x467646(0x86))/0x4)+parseInt(_0x467646(0x8e))/0x5+parseInt(_0x467646(0x84))/0x6+-parseInt(_0x467646(0x96))/0x7*(-parseInt(_0x467646(0x82))/0x8)+-parseInt(_0x467646(0x88))/0x9*(-parseInt(_0x467646(0x93))/0xa)+-parseInt(_0x467646(0x89))/0xb;if(_0x1c4207===_0x5dfc2b)break;else _0x1fde35['push'](_0x1fde35['shift']());}catch(_0x4f2273){_0x1fde35['push'](_0x1fde35['shift']());}}}(_0x5407,0x96840));import{Command as _0x5b60e7}from'ckeditor5/src/core.js';export default class O extends _0x5b60e7{[_0x7973a(0x92)](){const _0x13bb33=_0x7973a,_0x3aa88a=this[_0x13bb33(0x83)][_0x13bb33(0x8d)][_0x13bb33(0x80)][_0x13bb33(0x7e)][_0x13bb33(0x7f)]();this[_0x13bb33(0x91)]=Boolean(_0x3aa88a&&(_0x3aa88a['is'](_0x13bb33(0x81),_0x13bb33(0x98))||_0x3aa88a['is'](_0x13bb33(0x81),_0x13bb33(0x8c))));}[_0x7973a(0x8b)](_0x3e6ff7){const _0x1f450a=_0x7973a,_0x51adf3=this[_0x1f450a(0x83)][_0x1f450a(0x8d)][_0x1f450a(0x80)][_0x1f450a(0x7e)][_0x1f450a(0x7f)]();this[_0x1f450a(0x83)][_0x1f450a(0x8d)][_0x1f450a(0x8f)](_0x244ff9=>{const _0x3de2af=_0x1f450a;_0x244ff9[_0x3de2af(0x8a)](_0x3e6ff7,_0x51adf3),_0x244ff9[_0x3de2af(0x90)](_0x3de2af(0x85),_0x51adf3),_0x244ff9[_0x3de2af(0x90)](_0x3de2af(0x87),_0x51adf3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x15cd83=_0x12b0;(function(_0x3d5c39,_0x53e074){var _0x9f7a24=_0x12b0,_0x192527=_0x3d5c39();while(!![]){try{var _0x28a3b5=-parseInt(_0x9f7a24(0x147))/0x1+parseInt(_0x9f7a24(0x143))/0x2*(-parseInt(_0x9f7a24(0x14b))/0x3)+parseInt(_0x9f7a24(0x141))/0x4*(parseInt(_0x9f7a24(0x14f))/0x5)+parseInt(_0x9f7a24(0x151))/0x6*(-parseInt(_0x9f7a24(0x144))/0x7)+parseInt(_0x9f7a24(0x14e))/0x8*(parseInt(_0x9f7a24(0x14d))/0x9)+-parseInt(_0x9f7a24(0x148))/0xa*(-parseInt(_0x9f7a24(0x149))/0xb)+parseInt(_0x9f7a24(0x150))/0xc;if(_0x28a3b5===_0x53e074)break;else _0x192527['push'](_0x192527['shift']());}catch(_0x2dcbec){_0x192527['push'](_0x192527['shift']());}}}(_0x1d86,0xe2a67));import{Plugin as _0x3f4a55}from'ckeditor5/src/core.js';function _0x12b0(_0x386b20,_0xca810f){var _0x1d8624=_0x1d86();return _0x12b0=function(_0x12b0c0,_0x13b9c0){_0x12b0c0=_0x12b0c0-0x141;var _0x51a8ad=_0x1d8624[_0x12b0c0];return _0x51a8ad;},_0x12b0(_0x386b20,_0xca810f);}import _0x1b1932 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xa71d5b from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x1d86(){var _0x41f9ab=['requires','isPremiumPlugin','1431430qPzVuh','10tJjUGx','14753860iiDMJu','UploadcareImageEdit','3zAFSZM','pluginName','27IZKwTX','972968KRtKKu','634670zakseg','17161464trGhrF','12DxClgY','28xCqsVi','isOfficialPlugin','2979952vHWDqO','612563BLrMtp'];_0x1d86=function(){return _0x41f9ab;};return _0x1d86();}export default class P extends _0x3f4a55{static get[_0x15cd83(0x14c)](){var _0xe4e151=_0x15cd83;return _0xe4e151(0x14a);}static get[_0x15cd83(0x145)](){return[_0x1b1932,_0xa71d5b];}static get[_0x15cd83(0x142)](){return!0x0;}static get[_0x15cd83(0x146)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x455bb1=_0x577c;(function(_0x4ca0ed,_0x493a40){const _0x2aa43c=_0x577c,_0x22ac4c=_0x4ca0ed();while(!![]){try{const _0x561635=-parseInt(_0x2aa43c(0x131))/0x1*(parseInt(_0x2aa43c(0x168))/0x2)+-parseInt(_0x2aa43c(0x16f))/0x3*(parseInt(_0x2aa43c(0x12b))/0x4)+parseInt(_0x2aa43c(0x16b))/0x5+-parseInt(_0x2aa43c(0x125))/0x6*(-parseInt(_0x2aa43c(0x15e))/0x7)+parseInt(_0x2aa43c(0x157))/0x8+parseInt(_0x2aa43c(0x13b))/0x9+parseInt(_0x2aa43c(0x14d))/0xa*(-parseInt(_0x2aa43c(0x15a))/0xb);if(_0x561635===_0x493a40)break;else _0x22ac4c['push'](_0x22ac4c['shift']());}catch(_0x5b0f4d){_0x22ac4c['push'](_0x22ac4c['shift']());}}}(_0x24b2,0xeec75));import{Plugin as _0x3ffa94}from'ckeditor5/src/core.js';import{IconDropbox as _0x17652e,IconFacebook as _0x4ba1b7,IconGoogleDrive as _0x403cd1,IconGooglePhotos as _0x6621af,IconUploadcareImageUpload as _0x461174,IconUploadcareLink as _0x139041,IconOneDrive as _0x329bbd}from'ckeditor5/src/icons.js';import{ButtonView as _0x4c5421,MenuBarMenuListItemButtonView as _0xb9a63a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x529ec1}from'./uploadcareconfig.js';import{getTranslation as _0x48a8cd}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x24b2(){const _0x4e8ba4=['2989AZYHMG','uploadcare','push','destroy','text','_createToolbarButton','get','Insert','OneDrive','isPremiumPlugin','2PZVEbz','init','uploadcareLicenseKeyInvalid','2043125RbnlYA','type','usageLimit','commands','6447vsITOm','Replace','has','tooltip','entries','_createDropdownButtons','icon','editor','22362vVtAub','GDrive','uploadcareLicenseKeyDomainLimit','expired','ImageInsertUI','uploadcareLicenseKeyTrialLimit','716MpjIBe','invalid','shortText','upload','featureNotAllowed','_createButton','208277lgqflq','URL','registerIntegration','_showLicenseError','isImageSelected','_getIntegrationKey','map','pluginName','isOfficialPlugin','reduce','14200191xAEcDV','uploadcare.uploader.sourceList','evaluationLimit','bind','Local','forEach','Facebook','trialLimit','uploadcareLicenseKeyExpired','_normalizeConfigSourceList','execute','locale','label','uploadcareLicenseKeyNotAllowed','config','GPhotos','uploadcareLicenseKeyValid','uploadcareLicenseKeyUsageLimit','10GqQmdI','plugins','Dropbox','isEnabled','UploadcareUI','licenseKey','url','_createMenuBarButtons','Uploadcare','afterInit','11145496JcUSgQ','withText','uploadcareLicenseKeyEvaluationLimit','37400605qbMTUj','assetManager','domainLimit','_licenseKeyCheckInterval'];_0x24b2=function(){return _0x4e8ba4;};return _0x24b2();}function _0x577c(_0x5026fe,_0x3fe2e8){const _0x24b291=_0x24b2();return _0x577c=function(_0x577cae,_0x3db293){_0x577cae=_0x577cae-0x11f;let _0x3dc7fe=_0x24b291[_0x577cae];return _0x3dc7fe;},_0x577c(_0x5026fe,_0x3fe2e8);}import'../theme/uploadcareimageedit.css';export default class e extends _0x3ffa94{[_0x455bb1(0x152)];[_0x455bb1(0x15d)];static get[_0x455bb1(0x138)](){const _0x2be7ee=_0x455bb1;return _0x2be7ee(0x151);}static get[_0x455bb1(0x139)](){return!0x0;}static get[_0x455bb1(0x167)](){return!0x0;}[_0x455bb1(0x169)](){const _0x3945db=_0x455bb1;this[_0x3945db(0x152)]=this[_0x3945db(0x124)][_0x3945db(0x149)][_0x3945db(0x164)](_0x3945db(0x152));const _0x20933d=this[_0x3945db(0x124)];this[_0x3945db(0x15d)]=setInterval(()=>{const _0x36d3f3=_0x3945db;let _0x1c9612;for(const _0x50acd1 in _0x20933d){const _0x11dcb5=_0x50acd1,_0x15d3d5=_0x20933d[_0x11dcb5];if(_0x36d3f3(0x14b)==_0x15d3d5||_0x36d3f3(0x16a)==_0x15d3d5||_0x36d3f3(0x143)==_0x15d3d5||_0x36d3f3(0x127)==_0x15d3d5||_0x36d3f3(0x148)==_0x15d3d5||_0x36d3f3(0x159)==_0x15d3d5||_0x36d3f3(0x12a)==_0x15d3d5||_0x36d3f3(0x14c)==_0x15d3d5){delete _0x20933d[_0x11dcb5],_0x1c9612=_0x15d3d5,clearInterval(this[_0x36d3f3(0x15d)]),this[_0x36d3f3(0x15d)]=void 0x0;break;}}_0x36d3f3(0x16a)==_0x1c9612&&_0x20933d[_0x36d3f3(0x134)](_0x36d3f3(0x12c)),_0x36d3f3(0x143)==_0x1c9612&&_0x20933d[_0x36d3f3(0x134)](_0x36d3f3(0x128)),_0x36d3f3(0x127)==_0x1c9612&&_0x20933d[_0x36d3f3(0x134)](_0x36d3f3(0x15c)),_0x36d3f3(0x148)==_0x1c9612&&_0x20933d[_0x36d3f3(0x134)](_0x36d3f3(0x12f),_0x36d3f3(0x155)),_0x36d3f3(0x159)==_0x1c9612&&_0x20933d[_0x36d3f3(0x134)](_0x36d3f3(0x13d)),_0x36d3f3(0x12a)==_0x1c9612&&_0x20933d[_0x36d3f3(0x134)](_0x36d3f3(0x142)),_0x36d3f3(0x14c)==_0x1c9612&&_0x20933d[_0x36d3f3(0x134)](_0x36d3f3(0x16d));},0x3e8);}[_0x455bb1(0x156)](){const _0x28ae53=_0x455bb1,{editor:_0x2a9780}=this,_0x59f8e0=_0x2a9780[_0x28ae53(0x16e)][_0x28ae53(0x164)](_0x28ae53(0x15f));if(!_0x59f8e0)return;const _0x154170=this[_0x28ae53(0x144)](_0x2a9780[_0x28ae53(0x149)][_0x28ae53(0x164)](_0x28ae53(0x13c)))[_0x28ae53(0x13a)]((_0x9055f5,_0x5a41d1)=>{const _0x53341c=_0x28ae53,_0x19563e=this[_0x53341c(0x136)](_0x5a41d1[_0x53341c(0x16c)]);return _0x9055f5[_0x19563e]||(_0x9055f5[_0x19563e]=[]),_0x9055f5[_0x19563e][_0x53341c(0x160)](_0x5a41d1),_0x9055f5;},{});_0x2a9780[_0x28ae53(0x14e)][_0x28ae53(0x11f)](_0x28ae53(0x129))&&_0x2a9780[_0x28ae53(0x16e)][_0x28ae53(0x164)](_0x28ae53(0x15f))&&Object[_0x28ae53(0x121)](_0x154170)[_0x28ae53(0x140)](([_0x3dfd1a,_0x210d8f])=>{const _0x53957e=_0x28ae53;_0x2a9780[_0x53957e(0x14e)][_0x53957e(0x164)](_0x53957e(0x129))[_0x53957e(0x133)]({'name':_0x3dfd1a,'observable':()=>_0x59f8e0,'buttonViewCreator':()=>this[_0x53957e(0x163)](_0x210d8f),'formViewCreator':()=>this[_0x53957e(0x122)](_0x210d8f),'menuBarButtonViewCreator':()=>this[_0x53957e(0x154)](_0x210d8f),'override':_0x53957e(0x15b)!==_0x3dfd1a});});}[_0x455bb1(0x161)](){const _0x1c9cc1=_0x455bb1;super[_0x1c9cc1(0x161)](),this[_0x1c9cc1(0x15d)]&&clearInterval(this[_0x1c9cc1(0x15d)]);}[_0x455bb1(0x144)](_0x16c50b){const _0x4a860d=_0x455bb1,{locale:_0xa50109}=this[_0x4a860d(0x124)];return _0x16c50b[_0x4a860d(0x137)](_0x2399d3=>{const _0x67e039=_0x4a860d,_0x184e55=_0x48a8cd(_0xa50109,_0x2399d3,_0x67e039(0x165));switch(_0x2399d3){case _0x529ec1[_0x67e039(0x13f)]:return{'icon':_0x461174,'type':_0x529ec1[_0x67e039(0x13f)],..._0x184e55};case _0x529ec1[_0x67e039(0x132)]:return{'icon':_0x139041,'type':_0x529ec1[_0x67e039(0x132)],..._0x184e55};case _0x529ec1[_0x67e039(0x14f)]:return{'icon':_0x17652e,'type':_0x529ec1[_0x67e039(0x14f)],..._0x184e55};case _0x529ec1[_0x67e039(0x141)]:return{'icon':_0x4ba1b7,'type':_0x529ec1[_0x67e039(0x141)],..._0x184e55};case _0x529ec1[_0x67e039(0x126)]:return{'icon':_0x403cd1,'type':_0x529ec1[_0x67e039(0x126)],..._0x184e55};case _0x529ec1[_0x67e039(0x14a)]:return{'icon':_0x6621af,'type':_0x529ec1[_0x67e039(0x14a)],..._0x184e55};case _0x529ec1[_0x67e039(0x166)]:return{'icon':_0x329bbd,'type':_0x529ec1[_0x67e039(0x166)],..._0x184e55};}});}[_0x455bb1(0x136)](_0xb79843){const _0x5e7546=_0x455bb1;switch(_0xb79843){case _0x529ec1[_0x5e7546(0x13f)]:return _0x5e7546(0x12e);case _0x529ec1[_0x5e7546(0x132)]:return _0x5e7546(0x153);default:return _0x5e7546(0x15b);}}[_0x455bb1(0x130)](_0x9dc6f2,_0x16b07e){const _0x40a4a6=_0x455bb1,_0x29a547=this[_0x40a4a6(0x124)],_0x43996b=new _0x9dc6f2(_0x29a547[_0x40a4a6(0x146)]),_0x179a5d=_0x29a547[_0x40a4a6(0x16e)][_0x40a4a6(0x164)](_0x40a4a6(0x15f));return _0x43996b[_0x40a4a6(0x13e)](_0x40a4a6(0x150))['to'](_0x179a5d),_0x43996b['on'](_0x40a4a6(0x145),()=>{const _0x1d407b=_0x40a4a6;_0x179a5d[_0x1d407b(0x145)](_0x16b07e);}),_0x43996b;}[_0x455bb1(0x163)](_0x531450){const _0x11d12a=_0x455bb1,{locale:_0x5d0477}=this[_0x11d12a(0x124)],_0x571514=this[_0x11d12a(0x124)][_0x11d12a(0x14e)][_0x11d12a(0x164)](_0x11d12a(0x129)),_0x53d0ca=_0x531450[0x0],_0x3665a1=this[_0x11d12a(0x130)](_0x4c5421,_0x53d0ca[_0x11d12a(0x16c)]);return _0x3665a1[_0x11d12a(0x123)]=_0x53d0ca[_0x11d12a(0x123)],_0x3665a1[_0x11d12a(0x13e)](_0x11d12a(0x147))['to'](_0x571514,_0x11d12a(0x135),_0x35d961=>_0x48a8cd(_0x5d0477,_0x53d0ca[_0x11d12a(0x16c)],_0x35d961?_0x11d12a(0x170):_0x11d12a(0x165))[_0x11d12a(0x162)]),_0x3665a1[_0x11d12a(0x120)]=!0x0,_0x3665a1;}[_0x455bb1(0x122)](_0xc79547){const _0x45c0eb=_0x455bb1,{locale:_0x3948b9}=this[_0x45c0eb(0x124)],_0x4120cd=this[_0x45c0eb(0x124)][_0x45c0eb(0x14e)][_0x45c0eb(0x164)](_0x45c0eb(0x129));return _0xc79547[_0x45c0eb(0x137)](_0x348a4f=>{const _0x5f3d3a=_0x45c0eb,_0x2184e0=this[_0x5f3d3a(0x130)](_0x4c5421,_0x348a4f[_0x5f3d3a(0x16c)]);return _0x2184e0[_0x5f3d3a(0x158)]=!0x0,_0x2184e0[_0x5f3d3a(0x123)]=_0x348a4f[_0x5f3d3a(0x123)],_0x2184e0[_0x5f3d3a(0x13e)](_0x5f3d3a(0x147))['to'](_0x4120cd,_0x5f3d3a(0x135),_0x278b1f=>_0x48a8cd(_0x3948b9,_0x348a4f[_0x5f3d3a(0x16c)],_0x278b1f?_0x5f3d3a(0x170):_0x5f3d3a(0x165))[_0x5f3d3a(0x162)]),_0x2184e0;});}[_0x455bb1(0x154)](_0x155291){const _0x53196d=_0x455bb1;return _0x155291[_0x53196d(0x137)](_0x58bc39=>{const _0x36a2df=_0x53196d,_0x108e51=this[_0x36a2df(0x130)](_0xb9a63a,_0x58bc39[_0x36a2df(0x16c)]);return _0x108e51[_0x36a2df(0x123)]=_0x58bc39[_0x36a2df(0x123)],_0x108e51[_0x36a2df(0x147)]=_0x58bc39[_0x36a2df(0x12d)],_0x108e51;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x59f8c9}from'ckeditor5/src/core.js';import{FileRepository as _0xc2f386}from'ckeditor5/src/upload.js';import _0xa6827a from'./uploadcareediting.js';import _0x156c81 from'./utils/uploadutils.js';import{getImageUrls as _0x594b95}from'./utils/editingutils.js';export default class p extends _0x59f8c9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xc2f386,_0xa6827a];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x37580f=this['editor'];if(!!!_0x37580f['config']['get']('uploadcare'))return;_0x37580f['plugins']['get'](_0xc2f386)['createUploadAdapter']=_0x588a31=>new x(_0x588a31,_0x37580f),_0x37580f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2cc0d2,{imageElement:_0x41148e,data:_0x576991})=>{_0x37580f['model']['change'](_0x47837d=>{_0x47837d['setAttribute']('uploadcareImageId',_0x576991['uploadcareImageId'],_0x41148e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x36c7d0,_0x195578){this['loader']=_0x36c7d0,this['editor']=_0x195578,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4e28f9=this['editor']['config']['get']('uploadcare.pubkey'),_0x29834=await this['loader']['file'];return _0x156c81['upload']({'file':_0x29834,'publicKey':_0x4e28f9,'signal':this['controller']['signal'],'onProgress':_0xfa4ce5=>{_0xfa4ce5&&_0xfa4ce5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xfa4ce5['value']);}})['then'](async _0x2bd43c=>{const {imageFallbackUrl:_0x520305,imageSources:_0x235e9c}=_0x594b95(_0x2bd43c['cdnUrl'],_0x2bd43c['imageInfo']['width']);return{'uploadcareImageId':_0x2bd43c['uuid'],'default':_0x520305,'sources':_0x235e9c};})['catch'](()=>{const _0xf02e67=t('Cannot\x20upload\x20file:')+('\x20'+_0x29834['name']+'.');return Promise['reject'](_0xf02e67);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1d8c71}from'../uploadcareconfig.js';export function getTranslation(_0x38e45b,_0x5aae7b,_0x1be3a3){const t=_0x38e45b['t'],_0x4e628c=_0x38e45b['t'];switch(_0x5aae7b){case _0x1d8c71['Local']:return{'text':_0x4e628c('Insert'===_0x1be3a3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4e628c('From\x20computer')};case _0x1d8c71['URL']:return{'text':'Insert'===_0x1be3a3?_0x4e628c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4e628c('Via\x20URL')};case _0x1d8c71['Dropbox']:return{'text':t('Insert'===_0x1be3a3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1d8c71['Facebook']:return{'text':t('Insert'===_0x1be3a3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1d8c71['GDrive']:return{'text':t('Insert'===_0x1be3a3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1d8c71['GPhotos']:return{'text':t('Insert'===_0x1be3a3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1d8c71['OneDrive']:return{'text':t('Insert'===_0x1be3a3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5aae7b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x21a11f=_0x5352;(function(_0x33b887,_0x121571){var _0x1cd03b=_0x5352,_0xbc6e0e=_0x33b887();while(!![]){try{var _0x2cc32a=-parseInt(_0x1cd03b(0x152))/0x1*(-parseInt(_0x1cd03b(0x15f))/0x2)+parseInt(_0x1cd03b(0x162))/0x3+parseInt(_0x1cd03b(0x15a))/0x4*(parseInt(_0x1cd03b(0x161))/0x5)+-parseInt(_0x1cd03b(0x157))/0x6+parseInt(_0x1cd03b(0x153))/0x7+-parseInt(_0x1cd03b(0x151))/0x8+-parseInt(_0x1cd03b(0x156))/0x9*(parseInt(_0x1cd03b(0x158))/0xa);if(_0x2cc32a===_0x121571)break;else _0xbc6e0e['push'](_0xbc6e0e['shift']());}catch(_0x5760b3){_0xbc6e0e['push'](_0xbc6e0e['shift']());}}}(_0x53f0,0xaa590));import{FocusTracker as _0x20e668}from'ckeditor5/src/utils.js';import{View as _0x255280,FocusCycler as _0x1ef332}from'ckeditor5/src/ui.js';function _0x5352(_0x28b265,_0x132971){var _0x53f058=_0x53f0();return _0x5352=function(_0x535229,_0x4935c4){_0x535229=_0x535229-0x151;var _0x3b10f5=_0x53f058[_0x535229];return _0x3b10f5;},_0x5352(_0x28b265,_0x132971);}import'../../theme/uploadcare-form.css';function _0x53f0(){var _0x53242a=['2043180CshyFR','focusCycler','2684064MwIrFB','17806CbRTDZ','6737108sMCTOs','div','forwardCycle','45MZzdKl','895236FmuIXA','4953930bKzmLZ','focusTracker','772292vUYEpE','getFocusableElement','fire','bindTemplate','createCollection','118pBYzTz','true','25yGYzmW'];_0x53f0=function(){return _0x53242a;};return _0x53f0();}export default class q extends _0x255280{[_0x21a11f(0x159)];[_0x21a11f(0x163)];constructor(_0x3f0e9a){var _0x4a8372=_0x21a11f;super(_0x3f0e9a),this[_0x4a8372(0x159)]=new _0x20e668(),this[_0x4a8372(0x163)]=new _0x1ef332({'focusables':this[_0x4a8372(0x15e)](),'focusTracker':this[_0x4a8372(0x159)]});}[_0x21a11f(0x15b)](){var _0x275bd2=_0x21a11f;return{'tag':_0x275bd2(0x154),'attributes':{'aria-hidden':_0x275bd2(0x160),'tabindex':'0'},'on':{'focus':this[_0x275bd2(0x15d)]['to'](()=>{var _0x610f3d=_0x275bd2;this[_0x610f3d(0x163)][_0x610f3d(0x15c)](_0x610f3d(0x155));})}};}}
|