@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250224.0 → 0.0.0-nightly-next-20250224.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 _0x486fb1=_0x30a6;function _0x30a6(_0x45a094,_0x552bd6){const _0x3b1182=_0x3b11();return _0x30a6=function(_0x30a670,_0x4cea50){_0x30a670=_0x30a670-0x196;let _0x449a65=_0x3b1182[_0x30a670];return _0x449a65;},_0x30a6(_0x45a094,_0x552bd6);}(function(_0x41d9f7,_0x226b12){const _0x217120=_0x30a6,_0x525cca=_0x41d9f7();while(!![]){try{const _0x4cecec=parseInt(_0x217120(0x1d0))/0x1*(parseInt(_0x217120(0x1d9))/0x2)+parseInt(_0x217120(0x1cf))/0x3+parseInt(_0x217120(0x1e9))/0x4+parseInt(_0x217120(0x1b0))/0x5*(-parseInt(_0x217120(0x1c7))/0x6)+parseInt(_0x217120(0x19e))/0x7*(parseInt(_0x217120(0x1a5))/0x8)+parseInt(_0x217120(0x1ad))/0x9+parseInt(_0x217120(0x1d8))/0xa*(-parseInt(_0x217120(0x1c0))/0xb);if(_0x4cecec===_0x226b12)break;else _0x525cca['push'](_0x525cca['shift']());}catch(_0x3a0183){_0x525cca['push'](_0x525cca['shift']());}}}(_0x3b11,0x81791));function _0x3b11(){const _0x58c28b=['view','init','#uc-icon-arrow-down','190uoGmoe','68sBUIer','get','execute','map','_configElement','isRegistered','imageBlock','downcast','for','_initSchema','render','uploadcare','listenTo','upcast','isOfficialPlugin','isPremiumPlugin','22464VCqECj','ctxElement','uploadcareImageId','appendChild','elementToAttribute','requires','contentLanguage','getAttribute','config','PictureEditing','9968hleSkn','imageInline','pluginName','uploadcare.uploader','fromCharCode','remove','querySelector','88cPPzpP','removeAttribute','editing','configElement','afterInit','attributeToAttribute','_initConversion','UploadcareEditing','4346559EsEOHw','uploadcareImageReplace','conversion','115KTLQWr','replaceImageSource','uc-config','_initConfig','model','insertImage','getSelectedElement','extend','add','iconHrefResolver','uploadcare.pubkey','document','_ctxElement','_initImageProcessingIndicator','selection','once','339559XBinYI','true','_initCtx','schema','locale','destroy','editor','263964WWKZVj','join','data-uc-image-id','body','commands','uc-upload-ctx-provider','closeMax','href','1768815zJXJOO','30437NuXRhA','input[uploadcare-file-input]','\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','cleanupImage','uploader'];_0x3b11=function(){return _0x58c28b;};return _0x3b11();}import{Plugin as _0x341c4c}from'ckeditor5/src/core.js';import{Dialog as _0x3b9cdd}from'ckeditor5/src/ui.js';import{createElement as _0x465426,global as _0x1fd227,uid as _0x9ff662}from'ckeditor5/src/utils.js';import _0x17cd95 from'./uploadcarecommand.js';import _0x57a05d from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x14981e}from'./utils/editingutils.js';export default class i extends _0x341c4c{constructor(){const _0x1106b5=_0x30a6;super(...arguments),this[_0x1106b5(0x1dd)]=null,this[_0x1106b5(0x1bc)]=null;}static get[_0x486fb1(0x1a0)](){const _0x1ff8cb=_0x486fb1;return _0x1ff8cb(0x1ac);}static get[_0x486fb1(0x199)](){const _0x3d4f5f=_0x486fb1;return[_0x3d4f5f(0x19d),_0x57a05d,_0x3b9cdd];}static get[_0x486fb1(0x1e7)](){return!0x0;}static get[_0x486fb1(0x1e8)](){return!0x0;}get[_0x486fb1(0x1a8)](){const _0x563841=_0x486fb1;return this[_0x563841(0x1dd)];}get[_0x486fb1(0x1ea)](){const _0x2d1e61=_0x486fb1;return this[_0x2d1e61(0x1bc)];}[_0x486fb1(0x1d6)](){const _0x4c7e7e=_0x486fb1,_0x489138=this[_0x4c7e7e(0x1c6)];_0x489138[_0x4c7e7e(0x1cb)][_0x4c7e7e(0x1b8)](_0x4c7e7e(0x1e4),new _0x17cd95(_0x489138));}[_0x486fb1(0x1a9)](){const _0x3c2415=_0x486fb1;this[_0x3c2415(0x1e2)](),this[_0x3c2415(0x1ab)](),this[_0x3c2415(0x1b3)](),this[_0x3c2415(0x1c2)](),this[_0x3c2415(0x1bd)](),this[_0x3c2415(0x1e5)](this[_0x3c2415(0x1c6)],_0x3c2415(0x1c5),()=>{const _0x50021d=_0x3c2415;this[_0x50021d(0x1dd)]&&(this[_0x50021d(0x1dd)][_0x50021d(0x1a3)](),this[_0x50021d(0x1dd)]=null),this[_0x50021d(0x1bc)]&&(this[_0x50021d(0x1bc)][_0x50021d(0x1a3)](),this[_0x50021d(0x1bc)]=null);const _0x301566=_0x1fd227[_0x50021d(0x1bb)][_0x50021d(0x1a4)](_0x50021d(0x1d1));_0x301566&&_0x301566[_0x50021d(0x1a3)]();}),async function(_0x3827d2){const _0x4a7a96=_0x13dba7([0x79,0x39,0x6e,0x67,0x48,0x6b,0x51,0x52,0x53,0x76,0x58,0x30,0x43,0x54,0x44,0x65,0x59,0x57,0x63,0x77,0x4a,0x68,0x42,0x35,0x47,0x31,0x33,0x78,0x4d,0x4e,0x71,0x62,0x37,0x4c,0x49,0x74,0x45,0x4f,0x64,0x70,0x34,0x41,0x32,0x75,0x6a,0x7a,0x61,0x5a,0x50,0x36,0x6c,0x38,0x73,0x72,0x66,0x46,0x55,0x6d,0x6f,0x4b,0x69,0x56]),_0x564190=0x1bd03926,_0x20b5c9=0x1bd7594e^_0x564190,_0x3224b0=window[_0x13dba7([0x44,0x61,0x74,0x65])][_0x13dba7([0x6e,0x6f,0x77])](),_0x495f4a=_0x3827d2[_0x13dba7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e608d=new window[(_0x13dba7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25f29e=>{_0x495f4a[_0x13dba7([0x6f,0x6e,0x63,0x65])](_0x13dba7([0x72,0x65,0x61,0x64,0x79]),_0x25f29e);}),_0x3c535b={[_0x13dba7([0x6b,0x74,0x79])]:_0x13dba7([0x45,0x43]),[_0x13dba7([0x75,0x73,0x65])]:_0x13dba7([0x73,0x69,0x67]),[_0x13dba7([0x63,0x72,0x76])]:_0x13dba7([0x50,0x2d,0x32,0x35,0x36]),[_0x13dba7([0x78])]:_0x13dba7([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]),[_0x13dba7([0x79])]:_0x13dba7([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]),[_0x13dba7([0x61,0x6c,0x67])]:_0x13dba7([0x45,0x53,0x32,0x35,0x36])},_0xc96eb5=_0x495f4a[_0x13dba7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13dba7([0x67,0x65,0x74])](_0x13dba7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xef67d3(){let _0x325c84,_0x3c968d=null,_0x3bfbbe=null;try{if(_0xc96eb5==_0x13dba7([0x47,0x50,0x4c]))return _0x13dba7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x325c84=_0x5e259e(),!_0x325c84)return _0x13dba7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x325c84[_0x13dba7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3bfbbe=_0xdc6c61(_0x325c84[_0x13dba7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x325c84[_0x13dba7([0x6a,0x74,0x69])])),await _0x2eeb1f()?_0x11929e()?_0x2d796()?_0x13dba7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31e487()?(_0x325c84[_0x13dba7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13dba7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c968d=_0x53bb74(_0x13dba7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x325c84[_0x13dba7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13dba7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c968d=_0x53bb74(_0x13dba7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ecdbb()):_0x13dba7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13dba7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13dba7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x33e74f){return _0x13dba7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d796(){const _0x3355d8=[_0x13dba7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13dba7([0x74,0x72,0x69,0x61,0x6c])][_0x13dba7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x325c84[_0x13dba7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3224b0/0x3e8:0xe10*_0x20b5c9;return _0x325c84[_0x13dba7([0x65,0x78,0x70])]<_0x3355d8;}function _0x11929e(){const _0x2e2fcf=_0x325c84[_0x13dba7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e2fcf&&(!!_0x2e2fcf[_0x13dba7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13dba7([0x2a]))||!!_0x2e2fcf[_0x13dba7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13dba7([0x55,0x50,0x4c,0x43])));}function _0x31e487(){const _0x1dc355=_0x30a6,_0x2e4ca1=_0x325c84[_0x13dba7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e4ca1||0x0==_0x2e4ca1[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b076e}=new URL(window[_0x13dba7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1dc355(0x1ce)]);if(_0x2e4ca1[_0x13dba7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b076e))return!0x0;const _0xfa00ba=_0x1b076e[_0x13dba7([0x73,0x70,0x6c,0x69,0x74])](_0x13dba7([0x2e]));return _0x2e4ca1[_0x13dba7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bb9bb=>_0x2bb9bb[_0x13dba7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13dba7([0x2a])))[_0x13dba7([0x6d,0x61,0x70])](_0x4d28f0=>_0x4d28f0[_0x13dba7([0x73,0x70,0x6c,0x69,0x74])](_0x13dba7([0x2e])))[_0x13dba7([0x73,0x6f,0x6d,0x65])](_0x4f4e65=>_0xfa00ba[_0x13dba7([0x65,0x76,0x65,0x72,0x79])]((_0x8c24d0,_0x490825)=>_0x4f4e65[_0x490825]===_0x8c24d0||_0x4f4e65[_0x490825]===_0x13dba7([0x2a])));}function _0x5ecdbb(){return _0x3c968d&&_0x3bfbbe?new window[(_0x13dba7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e3aad,_0x599b72)=>{_0x3c968d[_0x13dba7([0x74,0x68,0x65,0x6e])](_0x2e3aad,_0x599b72),_0x3bfbbe[_0x13dba7([0x74,0x68,0x65,0x6e])](_0x311f82=>{_0x311f82!=_0x13dba7([0x56,0x61,0x6c,0x69,0x64])&&_0x2e3aad(_0x311f82);},_0x599b72);}):_0x3c968d||_0x3bfbbe||_0x13dba7([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdc6c61(_0x23f49a,_0x16f7ba){return new window[(_0x13dba7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b3a6d=>{if(_0x258606())return _0x2b3a6d(_0x13dba7([0x56,0x61,0x6c,0x69,0x64]));_0x196e8b(),_0x495f4a[_0x13dba7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13dba7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23dcdb=!0x1;const _0x2fd8f8=_0x9ff662();function _0x4e824d(_0x197424){return!!_0x197424&&(typeof _0x197424===_0x13dba7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x197424===_0x13dba7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x197424[_0x13dba7([0x74,0x68,0x65,0x6e])]===_0x13dba7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x197424[_0x13dba7([0x63,0x61,0x74,0x63,0x68])]===_0x13dba7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fa68a(_0x439373){_0x5b010a(_0x439373)[_0x13dba7([0x74,0x68,0x65,0x6e])](_0x2f6b3a=>{if(!_0x2f6b3a||_0x2f6b3a[_0x13dba7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13dba7([0x6f,0x6b]))return _0x13dba7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x401803(_0x417783(_0x2fd8f8+_0x16f7ba))!=_0x2f6b3a[_0x13dba7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13dba7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13dba7([0x56,0x61,0x6c,0x69,0x64]);})[_0x13dba7([0x74,0x68,0x65,0x6e])](_0xb0e078=>(_0x553f1e(),_0xb0e078),()=>{const _0x557bf6=_0x229e92();return null==_0x557bf6?(_0x553f1e(),_0x13dba7([0x56,0x61,0x6c,0x69,0x64])):_0x13dba7(_0x3224b0-_0x557bf6>(0x3fdcbd26^_0x564190)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13dba7([0x74,0x68,0x65,0x6e])](_0x2b3a6d)[_0x13dba7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b3a6d(_0x13dba7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56bc49=0x1be6d7a6^_0x564190;function _0x553f1e(){const _0x2f97e4=_0x13dba7([0x6c,0x6c,0x63,0x74,0x2d])+_0x401803(_0x417783(_0x23f49a)),_0x5893c6=_0x1b98dc(_0x401803(window[_0x13dba7([0x4d,0x61,0x74,0x68])][_0x13dba7([0x63,0x65,0x69,0x6c])](_0x3224b0/_0x56bc49)));window[_0x13dba7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13dba7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f97e4,_0x5893c6);}function _0x229e92(){const _0x4134d8=_0x13dba7([0x6c,0x6c,0x63,0x74,0x2d])+_0x401803(_0x417783(_0x23f49a)),_0x46d6af=window[_0x13dba7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13dba7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4134d8);return _0x46d6af?window[_0x13dba7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b98dc(_0x46d6af),0x10)*_0x56bc49:null;}function _0x5b010a(_0x327fd0){return new window[(_0x13dba7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ce4c1,_0x519bdb)=>{_0x327fd0[_0x13dba7([0x74,0x68,0x65,0x6e])](_0x1ce4c1,_0x519bdb),window[_0x13dba7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x519bdb,0x1bd1ede6^_0x564190);});}}_0x495f4a[_0x13dba7([0x6f,0x6e])](_0x13dba7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7a82dc,_0x125528)=>{if(_0x125528[0x0]!=_0x23f49a)return _0x2b3a6d(_0x13dba7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x125528[0x1]={..._0x125528[0x1],[_0x13dba7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fd8f8};},{[_0x13dba7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13dba7([0x68,0x69,0x67,0x68])}),_0x495f4a[_0x13dba7([0x6f,0x6e])](_0x13dba7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x81b34=>{_0x4e824d(_0x81b34[_0x13dba7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23dcdb=!0x0,_0x2fa68a(_0x81b34[_0x13dba7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13dba7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13dba7([0x6c,0x6f,0x77])}),_0x3e608d[_0x13dba7([0x74,0x68,0x65,0x6e])](()=>{_0x23dcdb||_0x2b3a6d(_0x13dba7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x258606(){return _0x495f4a[_0x13dba7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13dba7([0x76,0x69,0x65,0x77])][_0x13dba7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13dba7([0x61,0x75,0x74,0x6f]);}function _0x196e8b(){_0x495f4a[_0x13dba7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13dba7([0x76,0x69,0x65,0x77])][_0x13dba7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13dba7([0x61,0x75,0x74,0x6f]);}}function _0x53bb74(_0x2d1cd0){const _0x861158=[new window[(_0x13dba7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2697bc=>setTimeout(_0x2697bc,0x1bd907ea^_0x564190)),_0x3e608d[_0x13dba7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13dba7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3883e7=>{let _0x47d9c9=0x0;_0x495f4a[_0x13dba7([0x6d,0x6f,0x64,0x65,0x6c])][_0x13dba7([0x6f,0x6e])](_0x13dba7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26dd44,_0x29d4e6)=>{_0x29d4e6[0x0][_0x13dba7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47d9c9++,_0x47d9c9==(0x1bd038de^_0x564190)&&(_0x3883e7(),_0x26dd44[_0x13dba7([0x6f,0x66,0x66])]());});}))];return window[_0x13dba7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13dba7([0x72,0x61,0x63,0x65])](_0x861158)[_0x13dba7([0x74,0x68,0x65,0x6e])](()=>_0x2d1cd0);}async function _0x243da1(){await _0x3e608d,_0x495f4a[_0x13dba7([0x6d,0x6f,0x64,0x65,0x6c])][_0x13dba7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d9fa8,_0x495f4a[_0x13dba7([0x6d,0x6f,0x64,0x65,0x6c])][_0x13dba7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d9fa8,_0x495f4a[_0x13dba7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13dba7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x395c63(_0xda1905){const _0x53b50f=_0x312b30();_0x495f4a[_0x53b50f]=_0x13dba7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xda1905,_0xda1905!=_0x13dba7([0x56,0x61,0x6c,0x69,0x64])&&_0x243da1();}function _0x312b30(){const _0x400c32=window[_0x13dba7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13dba7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13dba7([0x6e,0x6f,0x77])]())[_0x13dba7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13dba7([0x2e]),'');let _0x5551bf=_0x13dba7([0x79]);for(let _0x2c6757=0x0;_0x2c6757<_0x400c32[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c6757+=0x2){let _0x316ce2=window[_0x13dba7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x400c32[_0x13dba7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c6757,_0x2c6757+0x2));_0x316ce2>=_0x4a7a96[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x316ce2-=_0x4a7a96[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5551bf+=_0x4a7a96[_0x316ce2];}return _0x5551bf;}function _0x5e259e(){const _0x537246=_0xc96eb5[_0x13dba7([0x73,0x70,0x6c,0x69,0x74])](_0x13dba7([0x2e]));if(0x3!=_0x537246[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x962601(_0x537246[0x1]);function _0x962601(_0x514fc7){const _0x3bb0c4=_0x4ecdb2(_0x514fc7);return _0x3bb0c4&&_0x923a11()?_0x3bb0c4:null;function _0x923a11(){const _0x40e975=_0x3bb0c4[_0x13dba7([0x6a,0x74,0x69])],_0x5ee111=window[_0x13dba7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40e975[_0x13dba7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e975[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c5500={..._0x3bb0c4,[_0x13dba7([0x6a,0x74,0x69])]:_0x40e975[_0x13dba7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40e975[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c5500[_0x13dba7([0x76,0x63])],_0x417783(_0x3c5500)==_0x5ee111;}}}async function _0x2eeb1f(){let _0x103b7c=!0x0;try{const _0x4cf11b=_0xc96eb5[_0x13dba7([0x73,0x70,0x6c,0x69,0x74])](_0x13dba7([0x2e])),[_0x5edd56,_0x2ddbe9,_0x1fbfbd]=_0x4cf11b;return _0x47215a(_0x5edd56),await _0x528037(_0x5edd56,_0x2ddbe9,_0x1fbfbd),_0x103b7c;}catch(_0x24b691){return!0x1;}function _0x47215a(_0x2c639c){const _0x56bf2f=_0x4ecdb2(_0x2c639c);_0x56bf2f&&_0x56bf2f[_0x13dba7([0x61,0x6c,0x67])]==_0x13dba7([0x45,0x53,0x32,0x35,0x36])||(_0x103b7c=!0x1);}async function _0x528037(_0x14c5e4,_0x543f2f,_0x55b154){const _0x464557=window[_0x13dba7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13dba7([0x66,0x72,0x6f,0x6d])](_0x3645bf(_0x55b154),_0x1ea077=>_0x1ea077[_0x13dba7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16a225=new window[(_0x13dba7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13dba7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14c5e4+_0x13dba7([0x2e])+_0x543f2f),_0x4fc3bc=window[_0x13dba7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13dba7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fc3bc)return;const _0x190f4e=await _0x4fc3bc[_0x13dba7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13dba7([0x6a,0x77,0x6b]),_0x3c535b,{[_0x13dba7([0x6e,0x61,0x6d,0x65])]:_0x13dba7([0x45,0x43,0x44,0x53,0x41]),[_0x13dba7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13dba7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13dba7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fc3bc[_0x13dba7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13dba7([0x6e,0x61,0x6d,0x65])]:_0x13dba7([0x45,0x43,0x44,0x53,0x41]),[_0x13dba7([0x68,0x61,0x73,0x68])]:{[_0x13dba7([0x6e,0x61,0x6d,0x65])]:_0x13dba7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x190f4e,_0x464557,_0x16a225)||(_0x103b7c=!0x1);}}function _0x4ecdb2(_0x2421a8){return _0x2421a8[_0x13dba7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13dba7([0x65,0x79]))?JSON[_0x13dba7([0x70,0x61,0x72,0x73,0x65])](_0x3645bf(_0x2421a8)):null;}function _0x3645bf(_0x2c3019){return window[_0x13dba7([0x61,0x74,0x6f,0x62])](_0x2c3019[_0x13dba7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13dba7([0x2b]))[_0x13dba7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13dba7([0x2f])));}function _0x417783(_0x2f2e65){let _0x20e7c2=0x1505;function _0x429087(_0x52dd5b){for(let _0x1d9bd2=0x0;_0x1d9bd2<_0x52dd5b[_0x13dba7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d9bd2++){const _0x1455d9=_0x52dd5b[_0x13dba7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d9bd2);_0x20e7c2=(_0x20e7c2<<0x5)+_0x20e7c2+_0x1455d9,_0x20e7c2&=_0x20e7c2;}}function _0xfae5cc(_0x4c0707){Array[_0x13dba7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c0707)?_0x4c0707[_0x13dba7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfae5cc):_0x4c0707&&typeof _0x4c0707==_0x13dba7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13dba7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c0707)[_0x13dba7([0x73,0x6f,0x72,0x74])]()[_0x13dba7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xda3f35,_0x14ef7a])=>{_0x429087(_0xda3f35),_0xfae5cc(_0x14ef7a);}):_0x429087(window[_0x13dba7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c0707));}return _0xfae5cc(_0x2f2e65),_0x20e7c2>>>0x0;}function _0x401803(_0x27c3ee){return _0x27c3ee[_0x13dba7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13dba7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13dba7([0x30]));}function _0x1b98dc(_0x575b7a){return _0x575b7a[_0x13dba7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13dba7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13dba7([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d9fa8(){}function _0x13dba7(_0x38daa4){const _0x11cfd5=_0x30a6;return _0x38daa4[_0x11cfd5(0x1dc)](_0x5ba340=>String[_0x11cfd5(0x1a2)](_0x5ba340))[_0x11cfd5(0x1c8)]('');}_0x395c63(await _0xef67d3());}(this);}[_0x486fb1(0x1e2)](){const _0x5ad822=_0x486fb1,_0x39e67d=this[_0x5ad822(0x1c6)][_0x5ad822(0x1b4)][_0x5ad822(0x1c3)];_0x39e67d[_0x5ad822(0x1de)](_0x5ad822(0x1df))&&_0x39e67d[_0x5ad822(0x1b7)](_0x5ad822(0x1df),{'allowAttributes':[_0x5ad822(0x196)]}),_0x39e67d[_0x5ad822(0x1de)](_0x5ad822(0x19f))&&_0x39e67d[_0x5ad822(0x1b7)](_0x5ad822(0x19f),{'allowAttributes':[_0x5ad822(0x196)]});}[_0x486fb1(0x1ab)](){const _0x893842=_0x486fb1,_0x23692a=this[_0x893842(0x1c6)];_0x23692a[_0x893842(0x1af)][_0x893842(0x1e1)](_0x893842(0x1e0))[_0x893842(0x1aa)]({'model':_0x893842(0x196),'view':_0x893842(0x1c9)}),_0x23692a[_0x893842(0x1af)][_0x893842(0x1e1)](_0x893842(0x1e6))[_0x893842(0x198)]({'model':{'key':_0x893842(0x196),'value':_0x3eb962=>_0x3eb962[_0x893842(0x19b)](_0x893842(0x1c9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x422563=_0x23692a[_0x893842(0x1cb)][_0x893842(0x1da)](_0x893842(0x1b1));_0x422563&&this[_0x893842(0x1e5)](_0x422563,_0x893842(0x1d3),(_0x32243e,[_0x28ead7,_0x50f9a9])=>{const _0x4ebe8e=_0x893842;_0x28ead7[_0x4ebe8e(0x1a6)](_0x4ebe8e(0x196),_0x50f9a9);});}[_0x486fb1(0x1b3)](){const _0x3b833b=_0x486fb1,_0x15b622=this[_0x3b833b(0x1c6)][_0x3b833b(0x19c)][_0x3b833b(0x1da)](_0x3b833b(0x1a1))||{},_0x3a6d99=this[_0x3b833b(0x1c6)][_0x3b833b(0x19c)][_0x3b833b(0x1da)](_0x3b833b(0x1ba))||'';this[_0x3b833b(0x1dd)]=_0x465426(_0x1fd227[_0x3b833b(0x1bb)],_0x3b833b(0x1b2),{..._0x15b622,'pubkey':_0x3a6d99,'ctx-name':_0x3b833b(0x1d4),'sourceList':'','imgOnly':_0x3b833b(0x1c1),'removeCopyright':_0x3b833b(0x1c1),'localeName':this[_0x3b833b(0x1c6)][_0x3b833b(0x1c4)][_0x3b833b(0x19a)],'externalSourcesEmbedCss':_0x3b833b(0x1d2)}),this[_0x3b833b(0x1dd)][_0x3b833b(0x1b9)]=_0x3e03d3=>{const _0x5c7142=_0x3b833b;if(_0x5c7142(0x1cd)==_0x3e03d3)return _0x5c7142(0x1d7);},_0x1fd227[_0x3b833b(0x1bb)][_0x3b833b(0x1ca)][_0x3b833b(0x197)](this[_0x3b833b(0x1dd)]);}[_0x486fb1(0x1c2)](){const _0x20088e=_0x486fb1;this[_0x20088e(0x1bc)]=_0x465426(_0x1fd227[_0x20088e(0x1bb)],_0x20088e(0x1cc),{'ctx-name':_0x20088e(0x1d4)}),_0x1fd227[_0x20088e(0x1bb)][_0x20088e(0x1ca)][_0x20088e(0x197)](this[_0x20088e(0x1bc)]);}[_0x486fb1(0x1bd)](){const _0xe023c=_0x486fb1,_0x4534f9=this[_0xe023c(0x1c6)][_0xe023c(0x1cb)][_0xe023c(0x1da)](_0xe023c(0x1b5));_0x4534f9&&this[_0xe023c(0x1e5)](_0x4534f9,_0xe023c(0x1db),()=>{const _0x17b554=_0xe023c,_0x152d9f=this[_0x17b554(0x1c6)][_0x17b554(0x1b4)][_0x17b554(0x1bb)][_0x17b554(0x1be)][_0x17b554(0x1b6)]();_0x152d9f&&_0x152d9f[_0x17b554(0x19b)](_0x17b554(0x196))&&this[_0x17b554(0x1c6)][_0x17b554(0x1a7)][_0x17b554(0x1d5)][_0x17b554(0x1bf)](_0x17b554(0x1e3),()=>{const _0x51c980=_0x17b554;_0x14981e(this[_0x51c980(0x1c6)],_0x152d9f);});});const _0x3d8487=this[_0xe023c(0x1c6)][_0xe023c(0x1cb)][_0xe023c(0x1da)](_0xe023c(0x1ae));_0x3d8487&&this[_0xe023c(0x1e5)](_0x3d8487,_0xe023c(0x1db),()=>{const _0x5bd02e=_0xe023c,_0x932876=this[_0x5bd02e(0x1c6)][_0x5bd02e(0x1b4)][_0x5bd02e(0x1bb)][_0x5bd02e(0x1be)][_0x5bd02e(0x1b6)]();_0x932876&&_0x932876[_0x5bd02e(0x19b)](_0x5bd02e(0x196))&&this[_0x5bd02e(0x1c6)][_0x5bd02e(0x1a7)][_0x5bd02e(0x1d5)][_0x5bd02e(0x1bf)](_0x5bd02e(0x1e3),()=>{const _0xbe306a=_0x5bd02e;_0x14981e(this[_0xbe306a(0x1c6)],_0x932876);});});}}
|
|
23
|
+
const _0x56cf66=_0x2520;(function(_0x125005,_0xdcef91){const _0x262f7e=_0x2520,_0xb66584=_0x125005();while(!![]){try{const _0x439f66=parseInt(_0x262f7e(0x12f))/0x1*(-parseInt(_0x262f7e(0x14a))/0x2)+-parseInt(_0x262f7e(0x16f))/0x3+-parseInt(_0x262f7e(0x133))/0x4+parseInt(_0x262f7e(0x12c))/0x5+parseInt(_0x262f7e(0x164))/0x6+-parseInt(_0x262f7e(0x125))/0x7*(parseInt(_0x262f7e(0x15b))/0x8)+parseInt(_0x262f7e(0x14b))/0x9;if(_0x439f66===_0xdcef91)break;else _0xb66584['push'](_0xb66584['shift']());}catch(_0x365780){_0xb66584['push'](_0xb66584['shift']());}}}(_0x1f56,0x43776));import{Plugin as _0x452a75}from'ckeditor5/src/core.js';function _0x2520(_0x4b8da2,_0x3c9bd6){const _0x1f56ca=_0x1f56();return _0x2520=function(_0x252066,_0x4f285c){_0x252066=_0x252066-0x11d;let _0x282399=_0x1f56ca[_0x252066];return _0x282399;},_0x2520(_0x4b8da2,_0x3c9bd6);}import{Dialog as _0x3b2687}from'ckeditor5/src/ui.js';import{createElement as _0x4840f9,global as _0x1ce684,uid as _0x3adf9d}from'ckeditor5/src/utils.js';import _0x5a9632 from'./uploadcarecommand.js';function _0x1f56(){const _0x260370=['_ctxElement','closeMax','input[uploadcare-file-input]','uploadcare.uploader','removeAttribute','true','162068QmVSqm','9558990tlFuuD','schema','commands','contentLanguage','#uc-icon-arrow-down','editing','uc-upload-ctx-provider','ctxElement','imageBlock','requires','uploadcareImageId','attributeToAttribute','afterInit','fromCharCode','pluginName','render','8wNkhWe','isOfficialPlugin','listenTo','imageInline','_initCtx','isPremiumPlugin','locale','getSelectedElement','cleanupImage','584268OilAiq','getAttribute','once','for','appendChild','conversion','uploadcare','PictureEditing','get','_initSchema','insertImage','1277352sGiCDP','upcast','uploadcare.pubkey','execute','document','extend','_initImageProcessingIndicator','uc-config','uploadcareImageReplace','441147BvloCe','_initConversion','replaceImageSource','model','add','_initConfig','querySelector','148065TJjVxg','join','elementToAttribute','2CCPcBX','map','view','isRegistered','1047544aennml','\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','configElement','downcast','destroy','data-uc-image-id','uploader','_configElement','selection','remove','href','body','init','UploadcareEditing','iconHrefResolver','editor','config'];_0x1f56=function(){return _0x260370;};return _0x1f56();}import _0x36ed48 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x19c6b1}from'./utils/editingutils.js';export default class i extends _0x452a75{[_0x56cf66(0x13a)]=null;[_0x56cf66(0x144)]=null;static get[_0x56cf66(0x159)](){const _0x3c8e5e=_0x56cf66;return _0x3c8e5e(0x140);}static get[_0x56cf66(0x154)](){const _0x4c590e=_0x56cf66;return[_0x4c590e(0x16b),_0x36ed48,_0x3b2687];}static get[_0x56cf66(0x15c)](){return!0x0;}static get[_0x56cf66(0x160)](){return!0x0;}get[_0x56cf66(0x135)](){const _0x46788f=_0x56cf66;return this[_0x46788f(0x13a)];}get[_0x56cf66(0x152)](){const _0x1dbcbf=_0x56cf66;return this[_0x1dbcbf(0x144)];}[_0x56cf66(0x13f)](){const _0x5852f3=_0x56cf66,_0x1bf461=this[_0x5852f3(0x142)];_0x1bf461[_0x5852f3(0x14d)][_0x5852f3(0x129)](_0x5852f3(0x16a),new _0x5a9632(_0x1bf461));}[_0x56cf66(0x157)](){const _0x57914c=_0x56cf66;this[_0x57914c(0x16d)](),this[_0x57914c(0x126)](),this[_0x57914c(0x12a)](),this[_0x57914c(0x15f)](),this[_0x57914c(0x122)](),this[_0x57914c(0x15d)](this[_0x57914c(0x142)],_0x57914c(0x137),()=>{const _0x4d36a0=_0x57914c;this[_0x4d36a0(0x13a)]&&(this[_0x4d36a0(0x13a)][_0x4d36a0(0x13c)](),this[_0x4d36a0(0x13a)]=null),this[_0x4d36a0(0x144)]&&(this[_0x4d36a0(0x144)][_0x4d36a0(0x13c)](),this[_0x4d36a0(0x144)]=null);const _0x15da63=_0x1ce684[_0x4d36a0(0x120)][_0x4d36a0(0x12b)](_0x4d36a0(0x146));_0x15da63&&_0x15da63[_0x4d36a0(0x13c)]();}),async function(_0x2dcc0c){const _0x2fb0cb=_0x3b1e28([0x34,0x4f,0x33,0x6a,0x65,0x47,0x4a,0x4c,0x61,0x56,0x4d,0x52,0x57,0x6b,0x6c,0x39,0x35,0x48,0x6d,0x4b,0x37,0x59,0x70,0x6f,0x63,0x78,0x49,0x30,0x54,0x58,0x32,0x73,0x68,0x31,0x44,0x41,0x4e,0x43,0x76,0x66,0x55,0x53,0x50,0x51,0x46,0x36,0x75,0x69,0x7a,0x79,0x6e,0x77,0x67,0x42,0x71,0x62,0x45,0x38,0x5a,0x64,0x74,0x72]),_0x4a2760=0x7a518d21,_0x2cab19=0x7a56ed49^_0x4a2760,_0xff4ba4=window[_0x3b1e28([0x44,0x61,0x74,0x65])][_0x3b1e28([0x6e,0x6f,0x77])](),_0x357c7d=_0x2dcc0c[_0x3b1e28([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b3cd8=new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102fbc=>{_0x357c7d[_0x3b1e28([0x6f,0x6e,0x63,0x65])](_0x3b1e28([0x72,0x65,0x61,0x64,0x79]),_0x102fbc);}),_0x4e0c8f={[_0x3b1e28([0x6b,0x74,0x79])]:_0x3b1e28([0x45,0x43]),[_0x3b1e28([0x75,0x73,0x65])]:_0x3b1e28([0x73,0x69,0x67]),[_0x3b1e28([0x63,0x72,0x76])]:_0x3b1e28([0x50,0x2d,0x32,0x35,0x36]),[_0x3b1e28([0x78])]:_0x3b1e28([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]),[_0x3b1e28([0x79])]:_0x3b1e28([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]),[_0x3b1e28([0x61,0x6c,0x67])]:_0x3b1e28([0x45,0x53,0x32,0x35,0x36])},_0x38a858=_0x357c7d[_0x3b1e28([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b1e28([0x67,0x65,0x74])](_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d87ef(){let _0x3463ae,_0x43bc15=null,_0x1164f3=null;try{if(_0x38a858==_0x3b1e28([0x47,0x50,0x4c]))return _0x3b1e28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3463ae=_0x374278(),!_0x3463ae)return _0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3463ae[_0x3b1e28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1164f3=_0x33cb09(_0x3463ae[_0x3b1e28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3463ae[_0x3b1e28([0x6a,0x74,0x69])])),await _0x30b819()?_0x25af70()?_0x5e5243()?_0x3b1e28([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x390b09()?(_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b1e28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43bc15=_0x341192(_0x3b1e28([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b1e28([0x74,0x72,0x69,0x61,0x6c])&&(_0x43bc15=_0x341192(_0x3b1e28([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x203a00()):_0x3b1e28([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b1e28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4dbf2b){return _0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e5243(){const _0x1c06e3=[_0x3b1e28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b1e28([0x74,0x72,0x69,0x61,0x6c])][_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xff4ba4/0x3e8:0xe10*_0x2cab19;return _0x3463ae[_0x3b1e28([0x65,0x78,0x70])]<_0x1c06e3;}function _0x25af70(){const _0xc132f9=_0x3463ae[_0x3b1e28([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc132f9&&(!!_0xc132f9[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x2a]))||!!_0xc132f9[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x55,0x50,0x4c,0x43])));}function _0x390b09(){const _0x4ac69e=_0x2520,_0x7c446=_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7c446||0x0==_0x7c446[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23c510}=new URL(window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ac69e(0x13d)]);if(_0x7c446[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c510))return!0x0;const _0x5d845c=_0x23c510[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e]));return _0x7c446[_0x3b1e28([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d5047=>_0x4d5047[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x2a])))[_0x3b1e28([0x6d,0x61,0x70])](_0x249845=>_0x249845[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e])))[_0x3b1e28([0x73,0x6f,0x6d,0x65])](_0x4ecf38=>_0x5d845c[_0x3b1e28([0x65,0x76,0x65,0x72,0x79])]((_0x5b5533,_0x5a71e0)=>_0x4ecf38[_0x5a71e0]===_0x5b5533||_0x4ecf38[_0x5a71e0]===_0x3b1e28([0x2a])));}function _0x203a00(){return _0x43bc15&&_0x1164f3?new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8eb3,_0x59dce6)=>{_0x43bc15[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x5e8eb3,_0x59dce6),_0x1164f3[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x4fe41e=>{_0x4fe41e!=_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])&&_0x5e8eb3(_0x4fe41e);},_0x59dce6);}):_0x43bc15||_0x1164f3||_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33cb09(_0x34af4f,_0x603bbf){return new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24d962=>{if(_0x375ca1())return _0x24d962(_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]));_0x2fa4e7(),_0x357c7d[_0x3b1e28([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f833e=!0x1;const _0x53b76d=_0x3adf9d();function _0x320ecf(_0x25ab94){return!!_0x25ab94&&(typeof _0x25ab94===_0x3b1e28([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25ab94===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25ab94[_0x3b1e28([0x74,0x68,0x65,0x6e])]===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25ab94[_0x3b1e28([0x63,0x61,0x74,0x63,0x68])]===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fe33b(_0x22840e){_0x3cd40c(_0x22840e)[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x7b30f3=>{if(!_0x7b30f3||_0x7b30f3[_0x3b1e28([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b1e28([0x6f,0x6b]))return _0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2130f(_0x13c3a8(_0x53b76d+_0x603bbf))!=_0x7b30f3[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x244ccc=>(_0x582259(),_0x244ccc),()=>{const _0x553540=_0x2e2bab();return null==_0x553540?(_0x582259(),_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])):_0x3b1e28(_0xff4ba4-_0x553540>(0x5e5d0921^_0x4a2760)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x24d962)[_0x3b1e28([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d3dee=0x7a6763a1^_0x4a2760;function _0x582259(){const _0x5da311=_0x3b1e28([0x6c,0x6c,0x63,0x74,0x2d])+_0x2130f(_0x13c3a8(_0x34af4f)),_0x4fdcdb=_0x35beaa(_0x2130f(window[_0x3b1e28([0x4d,0x61,0x74,0x68])][_0x3b1e28([0x63,0x65,0x69,0x6c])](_0xff4ba4/_0x2d3dee)));window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b1e28([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5da311,_0x4fdcdb);}function _0x2e2bab(){const _0x52220d=_0x3b1e28([0x6c,0x6c,0x63,0x74,0x2d])+_0x2130f(_0x13c3a8(_0x34af4f)),_0x47ca8c=window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b1e28([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52220d);return _0x47ca8c?window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35beaa(_0x47ca8c),0x10)*_0x2d3dee:null;}function _0x3cd40c(_0x33b01d){return new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xec4bcf,_0x3de029)=>{_0x33b01d[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0xec4bcf,_0x3de029),window[_0x3b1e28([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3de029,0x7a5059e1^_0x4a2760);});}}_0x357c7d[_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e786c,_0x3d5f57)=>{if(_0x3d5f57[0x0]!=_0x34af4f)return _0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d5f57[0x1]={..._0x3d5f57[0x1],[_0x3b1e28([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53b76d};},{[_0x3b1e28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b1e28([0x68,0x69,0x67,0x68])}),_0x357c7d[_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17f417=>{_0x320ecf(_0x17f417[_0x3b1e28([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f833e=!0x0,_0x2fe33b(_0x17f417[_0x3b1e28([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b1e28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b1e28([0x6c,0x6f,0x77])}),_0x5b3cd8[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>{_0x3f833e||_0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x375ca1(){return _0x357c7d[_0x3b1e28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b1e28([0x76,0x69,0x65,0x77])][_0x3b1e28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b1e28([0x61,0x75,0x74,0x6f]);}function _0x2fa4e7(){_0x357c7d[_0x3b1e28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b1e28([0x76,0x69,0x65,0x77])][_0x3b1e28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b1e28([0x61,0x75,0x74,0x6f]);}}function _0x341192(_0x38b8ff){const _0x47ee29=[new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4384=>setTimeout(_0x1f4384,0x7a58b3ed^_0x4a2760)),_0x5b3cd8[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523aaf=>{let _0x51b0da=0x0;_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bcaeb,_0x17ae68)=>{_0x17ae68[0x0][_0x3b1e28([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51b0da++,_0x51b0da==(0x7a518cd9^_0x4a2760)&&(_0x523aaf(),_0x3bcaeb[_0x3b1e28([0x6f,0x66,0x66])]());});}))];return window[_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b1e28([0x72,0x61,0x63,0x65])](_0x47ee29)[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>_0x38b8ff);}async function _0x3f4ec1(){await _0x5b3cd8,_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd869,_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd869,_0x357c7d[_0x3b1e28([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14ad2f(_0x298588){const _0x2e8281=_0x243508();_0x357c7d[_0x2e8281]=_0x3b1e28([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x298588,_0x298588!=_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])&&_0x3f4ec1();}function _0x243508(){const _0x543475=window[_0x3b1e28([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b1e28([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b1e28([0x6e,0x6f,0x77])]())[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b1e28([0x2e]),'');let _0x1e5078=_0x3b1e28([0x4f]);for(let _0x5b16dd=0x0;_0x5b16dd<_0x543475[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b16dd+=0x2){let _0x45e6ad=window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543475[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b16dd,_0x5b16dd+0x2));_0x45e6ad>=_0x2fb0cb[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45e6ad-=_0x2fb0cb[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e5078+=_0x2fb0cb[_0x45e6ad];}return _0x1e5078;}function _0x374278(){const _0xc2dcf1=_0x38a858[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e]));if(0x3!=_0xc2dcf1[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8ad042(_0xc2dcf1[0x1]);function _0x8ad042(_0x5e9aeb){const _0x55d0fa=_0xf65741(_0x5e9aeb);return _0x55d0fa&&_0x3e061c()?_0x55d0fa:null;function _0x3e061c(){const _0x497922=_0x55d0fa[_0x3b1e28([0x6a,0x74,0x69])],_0x3b9a38=window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497922[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x497922[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e3c8a={..._0x55d0fa,[_0x3b1e28([0x6a,0x74,0x69])]:_0x497922[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x497922[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e3c8a[_0x3b1e28([0x76,0x63])],_0x13c3a8(_0x2e3c8a)==_0x3b9a38;}}}async function _0x30b819(){let _0x408964=!0x0;try{const _0x5b4a41=_0x38a858[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e])),[_0x4aa57b,_0x41ef84,_0x4f5a3a]=_0x5b4a41;return _0x5faaa(_0x4aa57b),await _0x274132(_0x4aa57b,_0x41ef84,_0x4f5a3a),_0x408964;}catch(_0x15a5fe){return!0x1;}function _0x5faaa(_0x76119d){const _0x183424=_0xf65741(_0x76119d);_0x183424&&_0x183424[_0x3b1e28([0x61,0x6c,0x67])]==_0x3b1e28([0x45,0x53,0x32,0x35,0x36])||(_0x408964=!0x1);}async function _0x274132(_0x417a2d,_0x5a209e,_0x11f067){const _0x177717=window[_0x3b1e28([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b1e28([0x66,0x72,0x6f,0x6d])](_0x15da3c(_0x11f067),_0x1ab005=>_0x1ab005[_0x3b1e28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x189d10=new window[(_0x3b1e28([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b1e28([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x417a2d+_0x3b1e28([0x2e])+_0x5a209e),_0x3a7bc8=window[_0x3b1e28([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b1e28([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a7bc8)return;const _0x1b7a70=await _0x3a7bc8[_0x3b1e28([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b1e28([0x6a,0x77,0x6b]),_0x4e0c8f,{[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x45,0x43,0x44,0x53,0x41]),[_0x3b1e28([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b1e28([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a7bc8[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x45,0x43,0x44,0x53,0x41]),[_0x3b1e28([0x68,0x61,0x73,0x68])]:{[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b7a70,_0x177717,_0x189d10)||(_0x408964=!0x1);}}function _0xf65741(_0x2ac001){return _0x2ac001[_0x3b1e28([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b1e28([0x65,0x79]))?JSON[_0x3b1e28([0x70,0x61,0x72,0x73,0x65])](_0x15da3c(_0x2ac001)):null;}function _0x15da3c(_0x4ceafe){return window[_0x3b1e28([0x61,0x74,0x6f,0x62])](_0x4ceafe[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b1e28([0x2b]))[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b1e28([0x2f])));}function _0x13c3a8(_0x2cf3ea){let _0x25bcc7=0x1505;function _0x229d9c(_0x5ed81e){for(let _0x4c8fcd=0x0;_0x4c8fcd<_0x5ed81e[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c8fcd++){const _0x25161d=_0x5ed81e[_0x3b1e28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c8fcd);_0x25bcc7=(_0x25bcc7<<0x5)+_0x25bcc7+_0x25161d,_0x25bcc7&=_0x25bcc7;}}function _0x33b03b(_0x21ef6a){Array[_0x3b1e28([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21ef6a)?_0x21ef6a[_0x3b1e28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33b03b):_0x21ef6a&&typeof _0x21ef6a==_0x3b1e28([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b1e28([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21ef6a)[_0x3b1e28([0x73,0x6f,0x72,0x74])]()[_0x3b1e28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e8dc7,_0x4e4f32])=>{_0x229d9c(_0x1e8dc7),_0x33b03b(_0x4e4f32);}):_0x229d9c(window[_0x3b1e28([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21ef6a));}return _0x33b03b(_0x2cf3ea),_0x25bcc7>>>0x0;}function _0x2130f(_0x41219d){return _0x41219d[_0x3b1e28([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b1e28([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b1e28([0x30]));}function _0x35beaa(_0x3333c6){return _0x3333c6[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b1e28([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b1e28([0x6a,0x6f,0x69,0x6e])]('');}function _0x5cd869(){}function _0x3b1e28(_0x5dfc01){const _0x9c80ad=_0x2520;return _0x5dfc01[_0x9c80ad(0x130)](_0x55c866=>String[_0x9c80ad(0x158)](_0x55c866))[_0x9c80ad(0x12d)]('');}_0x14ad2f(await _0x5d87ef());}(this);}[_0x56cf66(0x16d)](){const _0x1c9e51=_0x56cf66,_0x4ef7d1=this[_0x1c9e51(0x142)][_0x1c9e51(0x128)][_0x1c9e51(0x14c)];_0x4ef7d1[_0x1c9e51(0x132)](_0x1c9e51(0x153))&&_0x4ef7d1[_0x1c9e51(0x121)](_0x1c9e51(0x153),{'allowAttributes':[_0x1c9e51(0x155)]}),_0x4ef7d1[_0x1c9e51(0x132)](_0x1c9e51(0x15e))&&_0x4ef7d1[_0x1c9e51(0x121)](_0x1c9e51(0x15e),{'allowAttributes':[_0x1c9e51(0x155)]});}[_0x56cf66(0x126)](){const _0x9bb09=_0x56cf66,_0x7f4561=this[_0x9bb09(0x142)];_0x7f4561[_0x9bb09(0x169)][_0x9bb09(0x167)](_0x9bb09(0x136))[_0x9bb09(0x156)]({'model':_0x9bb09(0x155),'view':_0x9bb09(0x138)}),_0x7f4561[_0x9bb09(0x169)][_0x9bb09(0x167)](_0x9bb09(0x11d))[_0x9bb09(0x12e)]({'model':{'key':_0x9bb09(0x155),'value':_0x21adc8=>_0x21adc8[_0x9bb09(0x165)](_0x9bb09(0x138))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x232c22=_0x7f4561[_0x9bb09(0x14d)][_0x9bb09(0x16c)](_0x9bb09(0x127));_0x232c22&&this[_0x9bb09(0x15d)](_0x232c22,_0x9bb09(0x163),(_0x5d8102,[_0x173a89,_0x4dd1b2])=>{const _0x2edd28=_0x9bb09;_0x173a89[_0x2edd28(0x148)](_0x2edd28(0x155),_0x4dd1b2);});}[_0x56cf66(0x12a)](){const _0x14c046=_0x56cf66,_0x4fb57f=this[_0x14c046(0x142)][_0x14c046(0x143)][_0x14c046(0x16c)](_0x14c046(0x147))||{},_0x1ea874=this[_0x14c046(0x142)][_0x14c046(0x143)][_0x14c046(0x16c)](_0x14c046(0x11e))||'';this[_0x14c046(0x13a)]=_0x4840f9(_0x1ce684[_0x14c046(0x120)],_0x14c046(0x123),{..._0x4fb57f,'pubkey':_0x1ea874,'ctx-name':_0x14c046(0x139),'sourceList':'','imgOnly':_0x14c046(0x149),'removeCopyright':_0x14c046(0x149),'localeName':this[_0x14c046(0x142)][_0x14c046(0x161)][_0x14c046(0x14e)],'externalSourcesEmbedCss':_0x14c046(0x134)}),this[_0x14c046(0x13a)][_0x14c046(0x141)]=_0x2a1618=>{const _0x319ef3=_0x14c046;if(_0x319ef3(0x145)==_0x2a1618)return _0x319ef3(0x14f);},_0x1ce684[_0x14c046(0x120)][_0x14c046(0x13e)][_0x14c046(0x168)](this[_0x14c046(0x13a)]);}[_0x56cf66(0x15f)](){const _0x2c741b=_0x56cf66;this[_0x2c741b(0x144)]=_0x4840f9(_0x1ce684[_0x2c741b(0x120)],_0x2c741b(0x151),{'ctx-name':_0x2c741b(0x139)}),_0x1ce684[_0x2c741b(0x120)][_0x2c741b(0x13e)][_0x2c741b(0x168)](this[_0x2c741b(0x144)]);}[_0x56cf66(0x122)](){const _0x522ce5=_0x56cf66,_0x449fb7=this[_0x522ce5(0x142)][_0x522ce5(0x14d)][_0x522ce5(0x16c)](_0x522ce5(0x16e));_0x449fb7&&this[_0x522ce5(0x15d)](_0x449fb7,_0x522ce5(0x11f),()=>{const _0xdea683=_0x522ce5,_0x1c1063=this[_0xdea683(0x142)][_0xdea683(0x128)][_0xdea683(0x120)][_0xdea683(0x13b)][_0xdea683(0x162)]();_0x1c1063&&_0x1c1063[_0xdea683(0x165)](_0xdea683(0x155))&&this[_0xdea683(0x142)][_0xdea683(0x150)][_0xdea683(0x131)][_0xdea683(0x166)](_0xdea683(0x15a),()=>{const _0x3c3fcb=_0xdea683;_0x19c6b1(this[_0x3c3fcb(0x142)],_0x1c1063);});});const _0x2fac61=this[_0x522ce5(0x142)][_0x522ce5(0x14d)][_0x522ce5(0x16c)](_0x522ce5(0x124));_0x2fac61&&this[_0x522ce5(0x15d)](_0x2fac61,_0x522ce5(0x11f),()=>{const _0x26de24=_0x522ce5,_0x5e2655=this[_0x26de24(0x142)][_0x26de24(0x128)][_0x26de24(0x120)][_0x26de24(0x13b)][_0x26de24(0x162)]();_0x5e2655&&_0x5e2655[_0x26de24(0x165)](_0x26de24(0x155))&&this[_0x26de24(0x142)][_0x26de24(0x150)][_0x26de24(0x131)][_0x26de24(0x166)](_0x26de24(0x15a),()=>{const _0x1e0bd8=_0x26de24;_0x19c6b1(this[_0x1e0bd8(0x142)],_0x5e2655);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x415acc,ObservableMixin as _0x876cfd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x52eda0}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x34f53d}from'ckeditor5/src/icons.js';import _0x29fe81 from'./uploadcareimageeditformview.js';import _0x4b67a4 from'../../utils/uploadutils.js';import{getImageUrls as _0xbfa909,getImageDimension as _0x44dfcb}from'../../utils/editingutils.js';import{isAncestor as _0x479206}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x876cfd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2bcc22,_0x2d82d2,_0x5145e8){super(),this['_editor']=_0x2bcc22,this['_dialog']=_0x2d82d2,this['_imageElement']=_0x5145e8,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 _0x2d5ed2=this['_imageElement'],_0x53fb49=_0x2d5ed2['getAttribute']('uploadcareImageId'),_0x528723=_0x2d5ed2['getAttribute']('src');if(_0x53fb49)await this['_loadImageInfo'](_0x53fb49,_0x528723);else{if(this['_imageCache']['has'](_0x528723)){const _0x5bd28b=this['_imageCache']['get'](_0x528723);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5bd28b['url'],this['imageDimension']=_0x5bd28b['dimension'],this['imageId']=_0x5bd28b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x340aec}=this['_editor'],t=_0x340aec['t'],_0x9322f=new _0x29fe81(_0x340aec,this['imageStatus'],this['_attributes']);_0x9322f['bind']('status')['to'](this,'imageStatus'),_0x9322f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x9322f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x9322f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x9322f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x34f53d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x9322f,'position':_0x52eda0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x9322f['focus']();},'onHide':()=>{_0x9322f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a8954=>!_0x479206(_0x5a8954,_0x9322f['element'])}});}['_loadImageInfo'](_0x4f6746,_0x2ebe18){return _0x4b67a4['getInfo'](_0x4f6746,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2999a4=>{const {width:_0x3b9d95,height:_0x63f50b}=_0x2999a4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ebe18,this['imageDimension']={'width':_0x3b9d95,'height':_0x63f50b},this['imageId']=_0x4f6746;})['catch'](_0x200098=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x200098['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x51e29d,_0x3cc2fc){return this['_getImageAsFile'](_0x51e29d)['then'](_0x47493b=>_0x4b67a4['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3cc2fc['signal'],'file':_0x47493b,'onProgress':_0x1eb159=>{_0x1eb159&&_0x1eb159['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1eb159['value']));}}))['then'](_0x2ee398=>{const {width:_0x5928ac,height:_0x270ec8}=_0x2ee398['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ee398['cdnUrl'],this['imageDimension']={'width':_0x5928ac,'height':_0x270ec8},this['imageId']=_0x2ee398['uuid'],this['imageUploadProgress']=null;const _0x3ca58b=_0x51e29d['getAttribute']('src');this['_imageCache']['set'](_0x3ca58b,{'id':_0x2ee398['uuid'],'url':_0x2ee398['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x258cf0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x258cf0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x403aed,_0x484cb6){_0x403aed['on']('apply',(_0x1fb300,_0x34734c)=>{this['_replaceImage'](_0x484cb6,_0x34734c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x403aed['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x403aed['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe2f38,_0x5f2b63,_0x32fe68){const _0x18dd06=this['_editor'],{width:_0x3eb38a,height:_0x13cec8}=_0x44dfcb(_0x5f2b63,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5cfa93,imageSources:_0x2a179c}=_0xbfa909(_0x5f2b63,_0x3eb38a);_0x18dd06['model']['change'](_0x2608f4=>{if('$graveyard'===_0xe2f38['root']['rootName']){_0x18dd06['execute']('insertImage',{'imageType':_0xe2f38['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe2f38['getAttributes']()),'uploadcareImageId':_0x32fe68,'src':_0x5cfa93,'sources':_0x2a179c,'width':_0x3eb38a,'height':_0x13cec8}});const _0x38daf8=_0xe2f38['getChildren']();_0xe2f38=_0x18dd06['model']['document']['selection']['getSelectedElement']();for(const _0x5c6a6d of _0x38daf8)_0x2608f4['append'](_0x2608f4['cloneElement'](_0x5c6a6d),_0xe2f38);}else _0x2608f4['setSelection'](_0xe2f38,'on'),_0x18dd06['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe2f38['getAttributes']()),'uploadcareImageId':_0x32fe68,'src':_0x5cfa93,'sources':_0x2a179c,'width':_0x3eb38a,'height':_0x13cec8},_0xe2f38);_0x2608f4['setSelection'](_0xe2f38,'on');});}async['_getImageAsFile'](_0x5ea29a){const _0x3b4da2=_0x415acc['window'],_0x40c619=_0x415acc['document']['location']['href'],_0xe795b2=new _0x3b4da2['URL'](_0x5ea29a['getAttribute']('src'),_0x40c619);if('data:'===_0xe795b2['protocol']){const _0x45b6af=_0xe795b2['href']['split'](','),_0x386873=_0x45b6af[0x0]['match'](/:(.*?);/)[0x1],_0x4aaa24=_0x386873['split']('/')[0x1],_0x14a5f6=_0x3b4da2['atob'](_0x45b6af[_0x45b6af['length']-0x1]);let _0x4bc22e=_0x14a5f6['length'];const _0x4aeda6=new _0x3b4da2['Uint8Array'](_0x4bc22e);for(;_0x4bc22e--;)_0x4aeda6[_0x4bc22e]=_0x14a5f6['charCodeAt'](_0x4bc22e);return new _0x3b4da2['File']([_0x4aeda6],'image.'+_0x4aaa24,{'type':_0x386873});}const _0x38e262=_0xe795b2['href']['split']('/'),_0xa57b3d=_0x38e262[_0x38e262['length']-0x1],_0x1790da=_0xa57b3d['split']('.')[0x1];return _0x3b4da2['fetch'](_0xe795b2['href'])['then'](_0x37a618=>_0x37a618['clone']()['blob']())['then'](_0x4ba1bc=>new _0x3b4da2['File']([_0x4ba1bc],_0xa57b3d,{'type':'image/'+_0x1790da}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x58c8(){const _0x11b7d7=['9bVCZcb','40319620AXZiDO','bindTemplate','18sTDuwt','39878UIZQhk','set','104700VvUeoT','1016204Dmuson','imageSrc','ck-uploadcare-theme','uc-light','128rjMKyZ','image-edit','22qydozS','setTemplate','uc-cloud-image-editor','8324520BUBCAC','3182850xYIASZ','2101150exDrRz'];_0x58c8=function(){return _0x11b7d7;};return _0x58c8();}(function(_0x431132,_0xcdb55e){const _0xd64a17=_0x3546,_0x57a174=_0x431132();while(!![]){try{const _0x2d0311=parseInt(_0xd64a17(0x17b))/0x1*(-parseInt(_0xd64a17(0x184))/0x2)+parseInt(_0xd64a17(0x17d))/0x3*(-parseInt(_0xd64a17(0x182))/0x4)+-parseInt(_0xd64a17(0x188))/0x5+parseInt(_0xd64a17(0x18d))/0x6*(parseInt(_0xd64a17(0x17e))/0x7)+parseInt(_0xd64a17(0x187))/0x8*(-parseInt(_0xd64a17(0x18a))/0x9)+-parseInt(_0xd64a17(0x189))/0xa+parseInt(_0xd64a17(0x18b))/0xb;if(_0x2d0311===_0xcdb55e)break;else _0x57a174['push'](_0x57a174['shift']());}catch(_0x435850){_0x57a174['push'](_0x57a174['shift']());}}}(_0x58c8,0xa0b34));function _0x3546(_0x343df9,_0x390085){const _0x58c8de=_0x58c8();return _0x3546=function(_0x35461e,_0x99de7c){_0x35461e=_0x35461e-0x17b;let _0x24536b=_0x58c8de[_0x35461e];return _0x24536b;},_0x3546(_0x343df9,_0x390085);}import{View as _0xed379e}from'ckeditor5/src/ui.js';export default class tt extends _0xed379e{constructor(_0x24854e,_0x1f1972){const _0x549e07=_0x3546;super(_0x24854e);const _0xdca19e=this[_0x549e07(0x18c)];this[_0x549e07(0x17c)](_0x549e07(0x17f),''),this[_0x549e07(0x185)]({'tag':_0x549e07(0x186),'attributes':{..._0x1f1972,'class':[_0x549e07(0x181),_0x549e07(0x180)],'ctx-name':_0x549e07(0x183),'cdn-url':_0xdca19e['to'](_0x549e07(0x17f))}});}}
|
|
@@ -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 _0x5ed2cb,IconView as at,View as _0x1250fa}from'ckeditor5/src/ui.js';export default class rt extends _0x1250fa{constructor(_0x1e710e){super(_0x1e710e);const t=_0x1e710e['t'];this['set']('errorType',null);const _0x43e1e7=new _0x5ed2cb(_0x1e710e);_0x43e1e7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43e1e7['withText']=!0x0,_0x43e1e7['class']='ck-button-action',_0x43e1e7['on']('execute',()=>{this['fire']('retry');}),_0x43e1e7['bind']('isVisible')['to'](this,'errorType',_0x3c269f=>'NotFound'!==_0x3c269f);const _0x338749=new at();_0x338749['content']=et,_0x338749['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x411ea9=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':[_0x338749,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x411ea9['to']('errorType',_0x29fb63=>t('NotFound'!==_0x29fb63?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43e1e7]},{'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 _0x27bb7b,View as _0x3bd677}from'ckeditor5/src/ui.js';export default class ta extends _0x3bd677{constructor(_0x3e6ed5){super(_0x3e6ed5);const t=_0x3e6ed5['t'],_0x18bdfe=this['bindTemplate'],_0x5ea8df=new _0x27bb7b();_0x5ea8df['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':[_0x5ea8df,{'text':_0x18bdfe['to']('imageUploadProgress',_0x481dcd=>t('Loading\x20image...')+'\x20('+(_0x481dcd||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5bd6(_0x11360d,_0xe128a9){const _0x40ee9f=_0x40ee();return _0x5bd6=function(_0x5bd66d,_0x51d970){_0x5bd66d=_0x5bd66d-0x16c;let _0x493110=_0x40ee9f[_0x5bd66d];return _0x493110;},_0x5bd6(_0x11360d,_0xe128a9);}const _0x1080f0=_0x5bd6;(function(_0x26b9e7,_0x404d71){const _0xe18859=_0x5bd6,_0x5ce690=_0x26b9e7();while(!![]){try{const _0x584fc7=-parseInt(_0xe18859(0x19c))/0x1+-parseInt(_0xe18859(0x187))/0x2+-parseInt(_0xe18859(0x191))/0x3*(parseInt(_0xe18859(0x184))/0x4)+parseInt(_0xe18859(0x19d))/0x5*(-parseInt(_0xe18859(0x175))/0x6)+parseInt(_0xe18859(0x19a))/0x7*(-parseInt(_0xe18859(0x18f))/0x8)+-parseInt(_0xe18859(0x17a))/0x9*(-parseInt(_0xe18859(0x197))/0xa)+parseInt(_0xe18859(0x18d))/0xb;if(_0x584fc7===_0x404d71)break;else _0x5ce690['push'](_0x5ce690['shift']());}catch(_0x409c09){_0x5ce690['push'](_0x5ce690['shift']());}}}(_0x40ee,0x1ac15));import{View as _0x23e477}from'ckeditor5/src/ui.js';import _0x1bf044 from'./uploadcareimageeditformloadingview.js';import _0x230276 from'./uploadcareimageeditformerrorview.js';import _0x2dfd68 from'./uploadcareimageeditformeditingview.js';function _0x40ee(){const _0x1f68bc=['ready','setTemplate','nodeName','detail','_waitForImageEditorComponent','filter','_loadingView','168GXRCfe','element','ck-reset_all-excluded','addEventListener','uc-cloud-image-editor','11709vJWVjb','set','status','once','_addUploadcareImageEditorListeners','render','fire','clear','_editingView','addedNodes','48dRiWeO','add','_errorView','418384uklAXb','focus','apply','observe','toLowerCase','target','7870016MllRQt','querySelector','16gaOBZX','div','50871wkvOSm','getFocusableElement','length','cdnUrl','ck-uploadcare-form','disconnect','1130EykTPs','change:status','_focusableView','744877SaOsVk','_addErrorViewListeners','126570ohEJrx','145IOLytP','retry','cancel','uploading','_items','error','createCollection','addMany','_setView'];_0x40ee=function(){return _0x1f68bc;};return _0x40ee();}import _0x3cb81e from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x3cb81e{[_0x1080f0(0x1a1)];[_0x1080f0(0x174)];[_0x1080f0(0x186)];[_0x1080f0(0x182)];[_0x1080f0(0x199)];constructor(_0x4f9730,_0xe07bbb,_0x40c783){const _0x5979c8=_0x1080f0;super(_0x4f9730),this[_0x5979c8(0x1a1)]=this[_0x5979c8(0x1a3)](),this[_0x5979c8(0x174)]=new _0x1bf044(_0x4f9730),this[_0x5979c8(0x186)]=new _0x230276(_0x4f9730),this[_0x5979c8(0x182)]=new _0x2dfd68(_0x4f9730,_0x40c783),this[_0x5979c8(0x199)]=new _0x23e477(_0x4f9730),this[_0x5979c8(0x199)][_0x5979c8(0x16f)](this[_0x5979c8(0x192)]()),this[_0x5979c8(0x17b)](_0x5979c8(0x17c),_0xe07bbb),this[_0x5979c8(0x16f)]({'tag':_0x5979c8(0x190),'attributes':{'class':['ck',_0x5979c8(0x177),_0x5979c8(0x195)],'tabindex':'-1'},'children':this[_0x5979c8(0x1a1)]}),this[_0x5979c8(0x16d)](),this[_0x5979c8(0x17d)](_0x5979c8(0x17f),()=>{const _0x13aede=_0x5979c8;this[_0x13aede(0x172)](this[_0x13aede(0x176)],_0x38a063=>{const _0x52880d=_0x13aede;this[_0x52880d(0x17e)](_0x38a063);});}),this['on'](_0x5979c8(0x198),()=>{const _0x4ee731=_0x5979c8;this[_0x4ee731(0x16d)]();}),this[_0x5979c8(0x19b)]();}[_0x1080f0(0x188)](){const _0x260e84=_0x1080f0;this[_0x260e84(0x176)][_0x260e84(0x188)]();}[_0x1080f0(0x16d)](){const _0x4fe2c0=_0x1080f0;switch(this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x181)](),this[_0x4fe2c0(0x17c)]){case _0x4fe2c0(0x1a0):this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x185)](this[_0x4fe2c0(0x174)]);break;case _0x4fe2c0(0x1a2):this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x185)](this[_0x4fe2c0(0x186)]);break;case _0x4fe2c0(0x16e):this[_0x4fe2c0(0x1a1)][_0x4fe2c0(0x16c)]([this[_0x4fe2c0(0x182)],this[_0x4fe2c0(0x199)]]);}}[_0x1080f0(0x172)](_0x30e002,_0x22e42b){const _0x1d9f88=_0x1080f0,_0xd7fc14=_0x1d9f88(0x179),_0x591016=_0x30e002[_0x1d9f88(0x18e)](_0xd7fc14);if(_0x591016)return _0x22e42b(_0x591016);const _0x52a9cb=new MutationObserver(_0x58e10e=>{const _0x352789=_0x1d9f88,_0x1a5e17=_0x58e10e[_0x352789(0x173)](_0x59813a=>_0x59813a[_0x352789(0x18c)]===_0x30e002&&_0x59813a[_0x352789(0x183)][_0x352789(0x193)]>0x0&&_0x59813a[_0x352789(0x183)][0x0][_0x352789(0x170)][_0x352789(0x18b)]()===_0xd7fc14);_0x1a5e17[_0x352789(0x193)]&&(_0x52a9cb[_0x352789(0x196)](),_0x22e42b(_0x1a5e17[0x0][_0x352789(0x183)][0x0]));});_0x52a9cb[_0x1d9f88(0x18a)](_0x30e002,{'childList':!0x0,'subtree':!0x0});}[_0x1080f0(0x17e)](_0x20ca74){const _0x38242f=_0x1080f0;_0x20ca74[_0x38242f(0x178)](_0x38242f(0x189),_0x45f4dc=>{const _0x3f6f85=_0x38242f;this[_0x3f6f85(0x180)](_0x3f6f85(0x189),{'imageSrc':_0x45f4dc[_0x3f6f85(0x171)][_0x3f6f85(0x194)]});}),_0x20ca74[_0x38242f(0x178)](_0x38242f(0x19f),()=>{const _0x559100=_0x38242f;this[_0x559100(0x180)](_0x559100(0x19f));});}[_0x1080f0(0x19b)](){const _0x2a6657=_0x1080f0;this[_0x2a6657(0x186)]['on'](_0x2a6657(0x19e),()=>{const _0x26e345=_0x2a6657;this[_0x26e345(0x180)](_0x26e345(0x19e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x517b8c=_0x200e;(function(_0x4b50f7,_0x4a2bab){const _0x1c7ac2=_0x200e,_0x3ed6da=_0x4b50f7();while(!![]){try{const _0x36bd18=-parseInt(_0x1c7ac2(0x18c))/0x1*(parseInt(_0x1c7ac2(0x191))/0x2)+-parseInt(_0x1c7ac2(0x189))/0x3*(-parseInt(_0x1c7ac2(0x177))/0x4)+parseInt(_0x1c7ac2(0x17e))/0x5+parseInt(_0x1c7ac2(0x18a))/0x6*(parseInt(_0x1c7ac2(0x193))/0x7)+parseInt(_0x1c7ac2(0x181))/0x8+parseInt(_0x1c7ac2(0x17a))/0x9+-parseInt(_0x1c7ac2(0x18d))/0xa*(parseInt(_0x1c7ac2(0x194))/0xb);if(_0x36bd18===_0x4a2bab)break;else _0x3ed6da['push'](_0x3ed6da['shift']());}catch(_0x5021d3){_0x3ed6da['push'](_0x3ed6da['shift']());}}}(_0x5d91,0xae8a2));import{Command as _0x35f2d7}from'ckeditor5/src/core.js';function _0x200e(_0x2ac5d6,_0x3a5770){const _0x5d912d=_0x5d91();return _0x200e=function(_0x200ee3,_0x40966e){_0x200ee3=_0x200ee3-0x175;let _0xfcf5b8=_0x5d912d[_0x200ee3];return _0xfcf5b8;},_0x200e(_0x2ac5d6,_0x3a5770);}import{Dialog as _0x3ca17c}from'ckeditor5/src/ui.js';import _0x2054d8 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x586fcd}from'../utils/editingutils.js';function _0x5d91(){const _0x19db26=['102OvNkcD','model','1zbzwPN','22336510ykXZqN','uploadcare.allowExternalImagesEditing','element','imageInline','1049762aJaJXt','selection','265937VdPGXv','11AazWRH','bind','imageEditController','config','32osIHeW','get','requires','5328441czusIO','imageBlock','document','unbind','3736330FyOupt','refresh','getSelectedElement','8353376YEcdxq','plugins','editor','execute','isActive','set','isEnabled','_isEditable','166542gIcUAg'];_0x5d91=function(){return _0x19db26;};return _0x5d91();}export default class V extends _0x35f2d7{[_0x517b8c(0x175)];static get[_0x517b8c(0x179)](){return[_0x3ca17c];}[_0x517b8c(0x188)];constructor(_0x5b4e10){const _0x1d1d69=_0x517b8c;super(_0x5b4e10),this[_0x1d1d69(0x175)]=void 0x0,this[_0x1d1d69(0x188)]=_0x586fcd(_0x5b4e10[_0x1d1d69(0x176)][_0x1d1d69(0x178)](_0x1d1d69(0x18e))||[]),this[_0x1d1d69(0x186)]({'isActive':!0x1});}[_0x517b8c(0x17f)](){const _0x74d419=_0x517b8c,_0xd4bdc7=this[_0x74d419(0x183)][_0x74d419(0x18b)][_0x74d419(0x17c)][_0x74d419(0x192)][_0x74d419(0x180)]();this[_0x74d419(0x187)]=this[_0x74d419(0x188)](_0xd4bdc7);}[_0x517b8c(0x184)](){const _0x5461f6=_0x517b8c;this[_0x5461f6(0x175)]&&(this[_0x5461f6(0x17d)](_0x5461f6(0x185)),this[_0x5461f6(0x175)]=void 0x0);const _0xc300e4=this[_0x5461f6(0x183)][_0x5461f6(0x18b)][_0x5461f6(0x17c)][_0x5461f6(0x192)][_0x5461f6(0x180)]();_0xc300e4&&(_0xc300e4['is'](_0x5461f6(0x18f),_0x5461f6(0x17b))||_0xc300e4['is'](_0x5461f6(0x18f),_0x5461f6(0x190)))&&(this[_0x5461f6(0x175)]=new _0x2054d8(this[_0x5461f6(0x183)],this[_0x5461f6(0x183)][_0x5461f6(0x182)][_0x5461f6(0x178)](_0x3ca17c),_0xc300e4),this[_0x5461f6(0x195)](_0x5461f6(0x185))['to'](this[_0x5461f6(0x175)],_0x5461f6(0x185)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x9b2fae=_0x4f6b;(function(_0x346432,_0x661e95){const _0x255b8c=_0x4f6b,_0x28d03e=_0x346432();while(!![]){try{const _0x39d4d0=-parseInt(_0x255b8c(0x1be))/0x1+parseInt(_0x255b8c(0x1c7))/0x2*(-parseInt(_0x255b8c(0x1bd))/0x3)+parseInt(_0x255b8c(0x1c4))/0x4+parseInt(_0x255b8c(0x1c3))/0x5*(-parseInt(_0x255b8c(0x1bf))/0x6)+parseInt(_0x255b8c(0x1c5))/0x7+parseInt(_0x255b8c(0x1ce))/0x8*(-parseInt(_0x255b8c(0x1ca))/0x9)+-parseInt(_0x255b8c(0x1cc))/0xa*(-parseInt(_0x255b8c(0x1c9))/0xb);if(_0x39d4d0===_0x661e95)break;else _0x28d03e['push'](_0x28d03e['shift']());}catch(_0x1dbffa){_0x28d03e['push'](_0x28d03e['shift']());}}}(_0xf531,0x444cd));import{Plugin as _0x36703a}from'ckeditor5/src/core.js';import{Notification as _0x204441}from'ckeditor5/src/ui.js';import _0xcb5cb0 from'./uploadcareimageeditcommand.js';function _0xf531(){const _0x31e6bb=['33TrUSUa','57258cpBWIZ','isPremiumPlugin','913370dGxLZH','init','24lTlFBe','UploadcareImageEditEditing','ImageUtils','add','ImageEditing','isOfficialPlugin','160233oYfKXZ','194513OllvNx','390jHXBLL','commands','uploadcareImageEdit','uploadcareImageReplace','5ihfyby','1673924GTDZmm','475888JuWyUi','requires','10oeTqOQ','pluginName'];_0xf531=function(){return _0x31e6bb;};return _0xf531();}import _0x4af827 from'./uploadcareimagereplacecommand.js';function _0x4f6b(_0x207227,_0x3d734e){const _0xf531f1=_0xf531();return _0x4f6b=function(_0x4f6b28,_0x27c1cd){_0x4f6b28=_0x4f6b28-0x1b9;let _0x550655=_0xf531f1[_0x4f6b28];return _0x550655;},_0x4f6b(_0x207227,_0x3d734e);}import _0x1a568f from'../uploadcareediting.js';export default class g extends _0x36703a{static get[_0x9b2fae(0x1c8)](){const _0x512188=_0x9b2fae;return _0x512188(0x1cf);}static get[_0x9b2fae(0x1c6)](){const _0x3fee2d=_0x9b2fae;return[_0x1a568f,_0x204441,_0x3fee2d(0x1b9),_0x3fee2d(0x1bb)];}static get[_0x9b2fae(0x1bc)](){return!0x0;}static get[_0x9b2fae(0x1cb)](){return!0x0;}[_0x9b2fae(0x1cd)](){const _0x4a74e2=_0x9b2fae,{editor:_0xf89f02}=this;_0xf89f02[_0x4a74e2(0x1c0)][_0x4a74e2(0x1ba)](_0x4a74e2(0x1c1),new _0xcb5cb0(_0xf89f02)),_0xf89f02[_0x4a74e2(0x1c0)][_0x4a74e2(0x1ba)](_0x4a74e2(0x1c2),new _0x4af827(_0xf89f02));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1ed35d}from'ckeditor5/src/core.js';import{ButtonView as _0x3cbdb2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2f5df6}from'ckeditor5/src/icons.js';import{createElement as _0x1692ce}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 _0x1ed35d{['_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 _0x546835=this['editor'];_0x546835['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1de95d=>{const _0x458de9=_0x546835['commands']['get']('uploadcareImageEdit'),_0x26f00e=new _0x3cbdb2(_0x1de95d),t=_0x1de95d['t'];return _0x26f00e['set']({'icon':_0x2f5df6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26f00e['bind']('isEnabled')['to'](_0x458de9),_0x26f00e['bind']('isOn')['to'](_0x458de9,'isActive'),this['listenTo'](_0x26f00e,'execute',()=>{_0x546835['execute']('uploadcareImageEdit'),_0x546835['editing']['view']['focus']();}),_0x26f00e;}),this['_initConfig']();}['_initConfig'](){const _0x1cc3d3=_0x1692ce(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1cc3d3),this['listenTo'](this['editor'],'destroy',()=>{_0x1cc3d3['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46f7cf=_0x2397;function _0x2397(_0x20d9fe,_0x7c07f3){const _0x12d5b6=_0x12d5();return _0x2397=function(_0x2397b5,_0x38afcc){_0x2397b5=_0x2397b5-0x174;let _0x3b0fff=_0x12d5b6[_0x2397b5];return _0x3b0fff;},_0x2397(_0x20d9fe,_0x7c07f3);}(function(_0x31fcaa,_0x556bd0){const _0x24a19b=_0x2397,_0x417f09=_0x31fcaa();while(!![]){try{const _0x51d3c3=parseInt(_0x24a19b(0x185))/0x1*(parseInt(_0x24a19b(0x17e))/0x2)+-parseInt(_0x24a19b(0x17b))/0x3*(-parseInt(_0x24a19b(0x186))/0x4)+parseInt(_0x24a19b(0x189))/0x5+parseInt(_0x24a19b(0x17d))/0x6*(parseInt(_0x24a19b(0x17c))/0x7)+parseInt(_0x24a19b(0x17f))/0x8+-parseInt(_0x24a19b(0x180))/0x9*(parseInt(_0x24a19b(0x18e))/0xa)+-parseInt(_0x24a19b(0x174))/0xb;if(_0x51d3c3===_0x556bd0)break;else _0x417f09['push'](_0x417f09['shift']());}catch(_0xf198e7){_0x417f09['push'](_0x417f09['shift']());}}}(_0x12d5,0x978a0));import{Command as _0x1a1ff1}from'ckeditor5/src/core.js';function _0x12d5(){const _0x29c9e9=['isEnabled','document','editor','sizes','43JcecIp','4WsmafG','imageInline','setAttributes','539880wYYPli','change','refresh','srcset','removeAttribute','9310sxGcpW','15146428rwSRyr','selection','element','execute','imageBlock','getSelectedElement','model','3563034WJcyzl','7aJPkxI','1916310sUdcsu','11602gBvIvs','1534584adPRZa','567rrLsJA'];_0x12d5=function(){return _0x29c9e9;};return _0x12d5();}export default class X extends _0x1a1ff1{[_0x46f7cf(0x18b)](){const _0x521433=_0x46f7cf,_0x2069b3=this[_0x521433(0x183)][_0x521433(0x17a)][_0x521433(0x182)][_0x521433(0x175)][_0x521433(0x179)]();this[_0x521433(0x181)]=Boolean(_0x2069b3&&(_0x2069b3['is'](_0x521433(0x176),_0x521433(0x178))||_0x2069b3['is'](_0x521433(0x176),_0x521433(0x187))));}[_0x46f7cf(0x177)](_0x5b8d1b){const _0x4c3b36=_0x46f7cf,_0x234315=this[_0x4c3b36(0x183)][_0x4c3b36(0x17a)][_0x4c3b36(0x182)][_0x4c3b36(0x175)][_0x4c3b36(0x179)]();this[_0x4c3b36(0x183)][_0x4c3b36(0x17a)][_0x4c3b36(0x18a)](_0xbcbd9c=>{const _0x5b1b61=_0x4c3b36;_0xbcbd9c[_0x5b1b61(0x188)](_0x5b8d1b,_0x234315),_0xbcbd9c[_0x5b1b61(0x18d)](_0x5b1b61(0x18c),_0x234315),_0xbcbd9c[_0x5b1b61(0x18d)](_0x5b1b61(0x184),_0x234315);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x337d42=_0x4815;(function(_0x4ec6aa,_0x25b8b5){var _0x392622=_0x4815,_0xdd2e0a=_0x4ec6aa();while(!![]){try{var _0x16074d=parseInt(_0x392622(0xff))/0x1*(-parseInt(_0x392622(0x10c))/0x2)+-parseInt(_0x392622(0x103))/0x3+-parseInt(_0x392622(0x101))/0x4*(-parseInt(_0x392622(0x10e))/0x5)+-parseInt(_0x392622(0x10a))/0x6*(parseInt(_0x392622(0x105))/0x7)+-parseInt(_0x392622(0x106))/0x8+-parseInt(_0x392622(0x104))/0x9+-parseInt(_0x392622(0x100))/0xa*(-parseInt(_0x392622(0x109))/0xb);if(_0x16074d===_0x25b8b5)break;else _0xdd2e0a['push'](_0xdd2e0a['shift']());}catch(_0x1a8446){_0xdd2e0a['push'](_0xdd2e0a['shift']());}}}(_0x2608,0xd3f34));import{Plugin as _0x1c8095}from'ckeditor5/src/core.js';function _0x2608(){var _0x574503=['2143578jcBBhV','pluginName','138PRHZCy','UploadcareImageEdit','620AbKXNk','24076MRVceJ','32030cnuKok','21544FmCGco','isPremiumPlugin','4049997aRymTH','15520950Tastbu','14ISLxuA','7042512zZDxCk','requires','isOfficialPlugin','22429kyvYvN'];_0x2608=function(){return _0x574503;};return _0x2608();}import _0x10be4b from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4815(_0x3eda48,_0x5f3e33){var _0x260863=_0x2608();return _0x4815=function(_0x481536,_0x6ecee8){_0x481536=_0x481536-0xff;var _0x423055=_0x260863[_0x481536];return _0x423055;},_0x4815(_0x3eda48,_0x5f3e33);}import _0x1d933a from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x1c8095{static get[_0x337d42(0x10b)](){var _0x35af2b=_0x337d42;return _0x35af2b(0x10d);}static get[_0x337d42(0x107)](){return[_0x10be4b,_0x1d933a];}static get[_0x337d42(0x108)](){return!0x0;}static get[_0x337d42(0x102)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4eac(){const _0x578ecd=['104gQPyPa','Replace','uploadcareLicenseKeyValid','Uploadcare','label','OneDrive','uploadcare.uploader.sourceList','uploadcareLicenseKeyDomainLimit','1086055nQhxWa','shortText','pluginName','entries','GDrive','URL','isPremiumPlugin','withText','execute','url','text','6565959PtLinK','invalid','expired','push','config','usageLimit','icon','forEach','GPhotos','commands','assetManager','isImageSelected','plugins','uploadcareLicenseKeyNotAllowed','_createButton','type','4826wkioNL','isOfficialPlugin','ImageInsertUI','_createToolbarButton','reduce','2628780hdLcvw','Facebook','627480CYLunF','_normalizeConfigSourceList','bind','has','evaluationLimit','uploadcareLicenseKeyInvalid','init','Local','uploadcareLicenseKeyEvaluationLimit','afterInit','uploadcare','registerIntegration','uploadcareLicenseKeyTrialLimit','_showLicenseError','isEnabled','uploadcareLicenseKeyUsageLimit','domainLimit','licenseKey','Insert','_getIntegrationKey','4YNYQcE','_createDropdownButtons','destroy','map','Dropbox','featureNotAllowed','trialLimit','UploadcareUI','196455guIXSs','locale','_licenseKeyCheckInterval','_createMenuBarButtons','uploadcareLicenseKeyExpired','upload','1943305IQrLyX','editor','tooltip','get'];_0x4eac=function(){return _0x578ecd;};return _0x4eac();}const _0x17427d=_0x3f01;(function(_0x2c383b,_0xa8c804){const _0x61b74a=_0x3f01,_0x25ade5=_0x2c383b();while(!![]){try{const _0x47b445=parseInt(_0x61b74a(0x182))/0x1*(-parseInt(_0x61b74a(0x1af))/0x2)+parseInt(_0x61b74a(0x1a5))/0x3+parseInt(_0x61b74a(0x19d))/0x4*(-parseInt(_0x61b74a(0x1b7))/0x5)+-parseInt(_0x61b74a(0x187))/0x6+parseInt(_0x61b74a(0x1ab))/0x7+parseInt(_0x61b74a(0x189))/0x8+parseInt(_0x61b74a(0x1c2))/0x9;if(_0x47b445===_0xa8c804)break;else _0x25ade5['push'](_0x25ade5['shift']());}catch(_0x2b45ec){_0x25ade5['push'](_0x25ade5['shift']());}}}(_0x4eac,0x3bc39));function _0x3f01(_0x11d7e5,_0x3f9767){const _0x4eac12=_0x4eac();return _0x3f01=function(_0x3f012f,_0x17258b){_0x3f012f=_0x3f012f-0x175;let _0x2d9f33=_0x4eac12[_0x3f012f];return _0x2d9f33;},_0x3f01(_0x11d7e5,_0x3f9767);}import{Plugin as _0x54c869}from'ckeditor5/src/core.js';import{IconDropbox as _0x41523f,IconFacebook as _0x5e4aae,IconGoogleDrive as _0x28c611,IconGooglePhotos as _0x74c5a7,IconUploadcareImageUpload as _0x1a2ddf,IconUploadcareLink as _0x48f96a,IconOneDrive as _0x53a513}from'ckeditor5/src/icons.js';import{ButtonView as _0x5e3ed1,MenuBarMenuListItemButtonView as _0x42938d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xe184a9}from'./uploadcareconfig.js';import{getTranslation as _0x108313}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x54c869{[_0x17427d(0x19a)];[_0x17427d(0x1a7)];static get[_0x17427d(0x1b9)](){const _0x6a608e=_0x17427d;return _0x6a608e(0x1a4);}static get[_0x17427d(0x183)](){return!0x0;}static get[_0x17427d(0x1bd)](){return!0x0;}[_0x17427d(0x18f)](){const _0x2ce17e=_0x17427d;this[_0x2ce17e(0x19a)]=this[_0x2ce17e(0x1ac)][_0x2ce17e(0x176)][_0x2ce17e(0x1ae)](_0x2ce17e(0x19a));const _0x38c0fa=this[_0x2ce17e(0x1ac)];this[_0x2ce17e(0x1a7)]=setInterval(()=>{const _0x4f30e4=_0x2ce17e;let _0x18c5f1;for(const _0xdcaf77 in _0x38c0fa){const _0x202311=_0xdcaf77,_0x36cb95=_0x38c0fa[_0x202311];if(_0x4f30e4(0x1b1)==_0x36cb95||_0x4f30e4(0x18e)==_0x36cb95||_0x4f30e4(0x1a9)==_0x36cb95||_0x4f30e4(0x1b6)==_0x36cb95||_0x4f30e4(0x17f)==_0x36cb95||_0x4f30e4(0x191)==_0x36cb95||_0x4f30e4(0x195)==_0x36cb95||_0x4f30e4(0x198)==_0x36cb95){delete _0x38c0fa[_0x202311],_0x18c5f1=_0x36cb95,clearInterval(this[_0x4f30e4(0x1a7)]),this[_0x4f30e4(0x1a7)]=void 0x0;break;}}_0x4f30e4(0x18e)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1c3)),_0x4f30e4(0x1a9)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1c4)),_0x4f30e4(0x1b6)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x199)),_0x4f30e4(0x17f)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1a2),_0x4f30e4(0x1b2)),_0x4f30e4(0x191)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x18d)),_0x4f30e4(0x195)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1a3)),_0x4f30e4(0x198)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x177));},0x3e8);}[_0x17427d(0x192)](){const _0xc5e101=_0x17427d,{editor:_0x4c59c7}=this,_0x5e7120=_0x4c59c7[_0xc5e101(0x17b)][_0xc5e101(0x1ae)](_0xc5e101(0x193));if(!_0x5e7120)return;const _0x32c9e4=this[_0xc5e101(0x18a)](_0x4c59c7[_0xc5e101(0x176)][_0xc5e101(0x1ae)](_0xc5e101(0x1b5)))[_0xc5e101(0x186)]((_0x2c9804,_0x138144)=>{const _0x43d116=_0xc5e101,_0x59ee54=this[_0x43d116(0x19c)](_0x138144[_0x43d116(0x181)]);return _0x2c9804[_0x59ee54]||(_0x2c9804[_0x59ee54]=[]),_0x2c9804[_0x59ee54][_0x43d116(0x175)](_0x138144),_0x2c9804;},{});_0x4c59c7[_0xc5e101(0x17e)][_0xc5e101(0x18c)](_0xc5e101(0x184))&&_0x4c59c7[_0xc5e101(0x17b)][_0xc5e101(0x1ae)](_0xc5e101(0x193))&&Object[_0xc5e101(0x1ba)](_0x32c9e4)[_0xc5e101(0x179)](([_0x4cf9c6,_0x4bcfdc])=>{const _0x36278c=_0xc5e101;_0x4c59c7[_0x36278c(0x17e)][_0x36278c(0x1ae)](_0x36278c(0x184))[_0x36278c(0x194)]({'name':_0x4cf9c6,'observable':()=>_0x5e7120,'buttonViewCreator':()=>this[_0x36278c(0x185)](_0x4bcfdc),'formViewCreator':()=>this[_0x36278c(0x19e)](_0x4bcfdc),'menuBarButtonViewCreator':()=>this[_0x36278c(0x1a8)](_0x4bcfdc),'override':_0x36278c(0x17c)!==_0x4cf9c6});});}[_0x17427d(0x19f)](){const _0x24ec85=_0x17427d;super[_0x24ec85(0x19f)](),this[_0x24ec85(0x1a7)]&&clearInterval(this[_0x24ec85(0x1a7)]);}[_0x17427d(0x18a)](_0x5da25f){const _0x204900=_0x17427d,{locale:_0xb8744b}=this[_0x204900(0x1ac)];return _0x5da25f[_0x204900(0x1a0)](_0x21ab13=>{const _0x1ecec1=_0x204900,_0x102357=_0x108313(_0xb8744b,_0x21ab13,_0x1ecec1(0x19b));switch(_0x21ab13){case _0xe184a9[_0x1ecec1(0x190)]:return{'icon':_0x1a2ddf,'type':_0xe184a9[_0x1ecec1(0x190)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1bc)]:return{'icon':_0x48f96a,'type':_0xe184a9[_0x1ecec1(0x1bc)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1a1)]:return{'icon':_0x41523f,'type':_0xe184a9[_0x1ecec1(0x1a1)],..._0x102357};case _0xe184a9[_0x1ecec1(0x188)]:return{'icon':_0x5e4aae,'type':_0xe184a9[_0x1ecec1(0x188)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1bb)]:return{'icon':_0x28c611,'type':_0xe184a9[_0x1ecec1(0x1bb)],..._0x102357};case _0xe184a9[_0x1ecec1(0x17a)]:return{'icon':_0x74c5a7,'type':_0xe184a9[_0x1ecec1(0x17a)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1b4)]:return{'icon':_0x53a513,'type':_0xe184a9[_0x1ecec1(0x1b4)],..._0x102357};}});}[_0x17427d(0x19c)](_0x32942f){const _0x34deb2=_0x17427d;switch(_0x32942f){case _0xe184a9[_0x34deb2(0x190)]:return _0x34deb2(0x1aa);case _0xe184a9[_0x34deb2(0x1bc)]:return _0x34deb2(0x1c0);default:return _0x34deb2(0x17c);}}[_0x17427d(0x180)](_0x519390,_0x2f6fd1){const _0x8c6b72=_0x17427d,_0x33a77e=this[_0x8c6b72(0x1ac)],_0x28f0c7=new _0x519390(_0x33a77e[_0x8c6b72(0x1a6)]),_0x288e58=_0x33a77e[_0x8c6b72(0x17b)][_0x8c6b72(0x1ae)](_0x8c6b72(0x193));return _0x28f0c7[_0x8c6b72(0x18b)](_0x8c6b72(0x197))['to'](_0x288e58),_0x28f0c7['on'](_0x8c6b72(0x1bf),()=>{const _0xa69b41=_0x8c6b72;_0x288e58[_0xa69b41(0x1bf)](_0x2f6fd1);}),_0x28f0c7;}[_0x17427d(0x185)](_0x402052){const _0x2df692=_0x17427d,{locale:_0x42deda}=this[_0x2df692(0x1ac)],_0x33ece8=this[_0x2df692(0x1ac)][_0x2df692(0x17e)][_0x2df692(0x1ae)](_0x2df692(0x184)),_0x3e7905=_0x402052[0x0],_0x43e33d=this[_0x2df692(0x180)](_0x5e3ed1,_0x3e7905[_0x2df692(0x181)]);return _0x43e33d[_0x2df692(0x178)]=_0x3e7905[_0x2df692(0x178)],_0x43e33d[_0x2df692(0x18b)](_0x2df692(0x1b3))['to'](_0x33ece8,_0x2df692(0x17d),_0x331b1d=>_0x108313(_0x42deda,_0x3e7905[_0x2df692(0x181)],_0x331b1d?_0x2df692(0x1b0):_0x2df692(0x19b))[_0x2df692(0x1c1)]),_0x43e33d[_0x2df692(0x1ad)]=!0x0,_0x43e33d;}[_0x17427d(0x19e)](_0x101c85){const _0x18be44=_0x17427d,{locale:_0x100a98}=this[_0x18be44(0x1ac)],_0x42543d=this[_0x18be44(0x1ac)][_0x18be44(0x17e)][_0x18be44(0x1ae)](_0x18be44(0x184));return _0x101c85[_0x18be44(0x1a0)](_0x59a509=>{const _0xce9a9d=_0x18be44,_0x1b5814=this[_0xce9a9d(0x180)](_0x5e3ed1,_0x59a509[_0xce9a9d(0x181)]);return _0x1b5814[_0xce9a9d(0x1be)]=!0x0,_0x1b5814[_0xce9a9d(0x178)]=_0x59a509[_0xce9a9d(0x178)],_0x1b5814[_0xce9a9d(0x18b)](_0xce9a9d(0x1b3))['to'](_0x42543d,_0xce9a9d(0x17d),_0x3a849a=>_0x108313(_0x100a98,_0x59a509[_0xce9a9d(0x181)],_0x3a849a?_0xce9a9d(0x1b0):_0xce9a9d(0x19b))[_0xce9a9d(0x1c1)]),_0x1b5814;});}[_0x17427d(0x1a8)](_0x296a5f){const _0x127b57=_0x17427d;return _0x296a5f[_0x127b57(0x1a0)](_0x1d17cb=>{const _0x1adf85=_0x127b57,_0x2f8c2f=this[_0x1adf85(0x180)](_0x42938d,_0x1d17cb[_0x1adf85(0x181)]);return _0x2f8c2f[_0x1adf85(0x178)]=_0x1d17cb[_0x1adf85(0x178)],_0x2f8c2f[_0x1adf85(0x1b3)]=_0x1d17cb[_0x1adf85(0x1b8)],_0x2f8c2f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1af3de}from'ckeditor5/src/core.js';import{FileRepository as _0x2e245a}from'ckeditor5/src/upload.js';import _0x443c3c from'./uploadcareediting.js';import _0x5e832a from'./utils/uploadutils.js';import{getImageUrls as _0x3d337f}from'./utils/editingutils.js';export default class p extends _0x1af3de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2e245a,_0x443c3c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x36a5bd=this['editor'];if(!!!_0x36a5bd['config']['get']('uploadcare'))return;_0x36a5bd['plugins']['get'](_0x2e245a)['createUploadAdapter']=_0x1801a0=>new x(_0x1801a0,_0x36a5bd),_0x36a5bd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x188962,{imageElement:_0x5afb68,data:_0x4772ef})=>{_0x36a5bd['model']['change'](_0x414207=>{_0x414207['setAttribute']('uploadcareImageId',_0x4772ef['uploadcareImageId'],_0x5afb68);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x25cf8e,_0x5f4e27){this['loader']=_0x25cf8e,this['editor']=_0x5f4e27,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x35fa24=this['editor']['config']['get']('uploadcare.pubkey'),_0x16f3bd=await this['loader']['file'];return _0x5e832a['upload']({'file':_0x16f3bd,'publicKey':_0x35fa24,'signal':this['controller']['signal'],'onProgress':_0xd6e34=>{_0xd6e34&&_0xd6e34['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xd6e34['value']);}})['then'](async _0x3f2be1=>{const {imageFallbackUrl:_0x42b34f,imageSources:_0x1a4288}=_0x3d337f(_0x3f2be1['cdnUrl'],_0x3f2be1['imageInfo']['width']);return{'uploadcareImageId':_0x3f2be1['uuid'],'default':_0x42b34f,'sources':_0x1a4288};})['catch'](()=>{const _0x30e532=t('Cannot\x20upload\x20file:')+('\x20'+_0x16f3bd['name']+'.');return Promise['reject'](_0x30e532);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x46edea}from'../uploadcareconfig.js';export function getTranslation(_0x4e72f1,_0x12225e,_0x317f90){const t=_0x4e72f1['t'],_0x50ce7a=_0x4e72f1['t'];switch(_0x12225e){case _0x46edea['Local']:return{'text':_0x50ce7a('Insert'===_0x317f90?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x50ce7a('From\x20computer')};case _0x46edea['URL']:return{'text':'Insert'===_0x317f90?_0x50ce7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x50ce7a('Via\x20URL')};case _0x46edea['Dropbox']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x46edea['Facebook']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x46edea['GDrive']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x46edea['GPhotos']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x46edea['OneDrive']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12225e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x37f74c=_0x3e12;(function(_0x345539,_0x3d29c6){var _0x5b1e13=_0x3e12,_0x3e54fa=_0x345539();while(!![]){try{var _0x33fdea=-parseInt(_0x5b1e13(0x1a3))/0x1*(parseInt(_0x5b1e13(0x1a6))/0x2)+parseInt(_0x5b1e13(0x1a4))/0x3*(-parseInt(_0x5b1e13(0x1b6))/0x4)+parseInt(_0x5b1e13(0x1a5))/0x5+-parseInt(_0x5b1e13(0x1b4))/0x6*(parseInt(_0x5b1e13(0x1ad))/0x7)+-parseInt(_0x5b1e13(0x1b5))/0x8*(parseInt(_0x5b1e13(0x1a8))/0x9)+-parseInt(_0x5b1e13(0x1b2))/0xa*(-parseInt(_0x5b1e13(0x1ae))/0xb)+parseInt(_0x5b1e13(0x1a7))/0xc;if(_0x33fdea===_0x3d29c6)break;else _0x3e54fa['push'](_0x3e54fa['shift']());}catch(_0x22edff){_0x3e54fa['push'](_0x3e54fa['shift']());}}}(_0x2aa7,0xc15d8));function _0x3e12(_0x88236a,_0xccd2b6){var _0x2aa771=_0x2aa7();return _0x3e12=function(_0x3e1295,_0x5803dd){_0x3e1295=_0x3e1295-0x1a2;var _0x17b574=_0x2aa771[_0x3e1295];return _0x17b574;},_0x3e12(_0x88236a,_0xccd2b6);}import{FocusTracker as _0x3234ff}from'ckeditor5/src/utils.js';import{View as _0x436624,FocusCycler as _0x1ce99b}from'ckeditor5/src/ui.js';function _0x2aa7(){var _0x407218=['12tRFOAO','4790792iTkYyo','391736aZVyYW','forwardCycle','142498XTMWNt','6UEtfWf','3654050YQaHOK','16CLmaHT','24420048CwXbnx','9qVjViY','getFocusableElement','div','fire','focusTracker','1255198sVidne','13893PnSQEu','true','focusCycler','createCollection','2530ewgruN','bindTemplate'];_0x2aa7=function(){return _0x407218;};return _0x2aa7();}import'../../theme/uploadcare-form.css';export default class q extends _0x436624{[_0x37f74c(0x1ac)];[_0x37f74c(0x1b0)];constructor(_0x3f6051){var _0x3fedb2=_0x37f74c;super(_0x3f6051),this[_0x3fedb2(0x1ac)]=new _0x3234ff(),this[_0x3fedb2(0x1b0)]=new _0x1ce99b({'focusables':this[_0x3fedb2(0x1b1)](),'focusTracker':this[_0x3fedb2(0x1ac)]});}[_0x37f74c(0x1a9)](){var _0x2e14df=_0x37f74c;return{'tag':_0x2e14df(0x1aa),'attributes':{'aria-hidden':_0x2e14df(0x1af),'tabindex':'0'},'on':{'focus':this[_0x2e14df(0x1b3)]['to'](()=>{var _0x14e947=_0x2e14df;this[_0x14e947(0x1b0)][_0x14e947(0x1ab)](_0x14e947(0x1a2));})}};}}
|