@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250301.0 → 0.0.0-nightly-20250302.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 +8 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +6 -2
- 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 +4 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
- package/theme/icons/dropbox.svg +11 -0
- package/theme/icons/error.svg +1 -0
- package/theme/icons/facebook.svg +11 -0
- package/theme/icons/google-drive.svg +11 -0
- package/theme/icons/google-photos.svg +11 -0
- package/theme/icons/image-upload.svg +11 -0
- package/theme/icons/link.svg +11 -0
- package/theme/icons/local.svg +11 -0
- package/theme/icons/onedrive.svg +11 -0
- package/theme/icons/uploadcare-image-edit.svg +11 -0
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x261c66=_0x5f0c;(function(_0x596fac,_0x5baa3f){const _0x4d0e36=_0x5f0c,_0x34ad6b=_0x596fac();while(!![]){try{const _0x6aaa05=parseInt(_0x4d0e36(0xba))/0x1+-parseInt(_0x4d0e36(0xa0))/0x2*(-parseInt(_0x4d0e36(0xb7))/0x3)+parseInt(_0x4d0e36(0xb6))/0x4+parseInt(_0x4d0e36(0xd1))/0x5*(parseInt(_0x4d0e36(0xdf))/0x6)+parseInt(_0x4d0e36(0xc8))/0x7*(-parseInt(_0x4d0e36(0x9d))/0x8)+-parseInt(_0x4d0e36(0xb5))/0x9+-parseInt(_0x4d0e36(0x9e))/0xa;if(_0x6aaa05===_0x5baa3f)break;else _0x34ad6b['push'](_0x34ad6b['shift']());}catch(_0x59d7e4){_0x34ad6b['push'](_0x34ad6b['shift']());}}}(_0x5af5,0x80892));import{Plugin as _0x5b465b}from'ckeditor5/src/core.js';function _0x5f0c(_0x4d10a1,_0x3e5ca4){const _0x5af59e=_0x5af5();return _0x5f0c=function(_0x5f0c3f,_0xbf658e){_0x5f0c3f=_0x5f0c3f-0x99;let _0x8e11cd=_0x5af59e[_0x5f0c3f];return _0x8e11cd;},_0x5f0c(_0x4d10a1,_0x3e5ca4);}import{Dialog as _0x442587}from'ckeditor5/src/ui.js';import{createElement as _0x2382ba,global as _0x338911,uid as _0x147986}from'ckeditor5/src/utils.js';import _0x430010 from'./uploadcarecommand.js';function _0x5af5(){const _0x17b18b=['view','closeMax','\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','map','pluginName','data-uc-image-id','imageBlock','163280zEfvmd','9082270hwwhko','editor','32556gMjkjy','appendChild','listenTo','fromCharCode','true','replaceImageSource','configElement','schema','execute','attributeToAttribute','conversion','uploader','_initCtx','cleanupImage','removeAttribute','add','render','model','_ctxElement','_configElement','_initSchema','7932663lYfHTZ','2471140wEJmVh','123YAWDjW','destroy','elementToAttribute','1034109VPkWfv','_initImageProcessingIndicator','config','join','_initConfig','iconHrefResolver','#uc-icon-arrow-down','isRegistered','ctxElement','extend','uc-upload-ctx-provider','remove','UploadcareEditing','afterInit','343GDpqUy','querySelector','for','document','locale','uploadcare.pubkey','editing','commands','uploadcareImageId','2690WTzMul','uploadcareImageReplace','insertImage','PictureEditing','getSelectedElement','input[uploadcare-file-input]','href','uploadcare','init','uc-config','body','get','selection','imageInline','11118hLwBEq','contentLanguage','uploadcare.uploader','getAttribute','upcast','once','isOfficialPlugin','requires','downcast','_initConversion','isPremiumPlugin'];_0x5af5=function(){return _0x17b18b;};return _0x5af5();}import _0x22904b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5f5081}from'./utils/editingutils.js';export default class i extends _0x5b465b{[_0x261c66(0xb3)]=null;[_0x261c66(0xb2)]=null;static get[_0x261c66(0x9a)](){const _0x26e091=_0x261c66;return _0x26e091(0xc6);}static get[_0x261c66(0xe6)](){const _0x30e78b=_0x261c66;return[_0x30e78b(0xd4),_0x22904b,_0x442587];}static get[_0x261c66(0xe5)](){return!0x0;}static get[_0x261c66(0xe9)](){return!0x0;}get[_0x261c66(0xa6)](){const _0x568512=_0x261c66;return this[_0x568512(0xb3)];}get[_0x261c66(0xc2)](){const _0x5c9c27=_0x261c66;return this[_0x5c9c27(0xb2)];}[_0x261c66(0xd9)](){const _0x3cc510=_0x261c66,_0x1993b5=this[_0x3cc510(0x9f)];_0x1993b5[_0x3cc510(0xcf)][_0x3cc510(0xaf)](_0x3cc510(0xd8),new _0x430010(_0x1993b5));}[_0x261c66(0xc7)](){const _0x20f67f=_0x261c66;this[_0x20f67f(0xb4)](),this[_0x20f67f(0xe8)](),this[_0x20f67f(0xbe)](),this[_0x20f67f(0xac)](),this[_0x20f67f(0xbb)](),this[_0x20f67f(0xa2)](this[_0x20f67f(0x9f)],_0x20f67f(0xb8),()=>{const _0x1cd079=_0x20f67f;this[_0x1cd079(0xb3)]&&(this[_0x1cd079(0xb3)][_0x1cd079(0xc5)](),this[_0x1cd079(0xb3)]=null),this[_0x1cd079(0xb2)]&&(this[_0x1cd079(0xb2)][_0x1cd079(0xc5)](),this[_0x1cd079(0xb2)]=null);const _0x3498f3=_0x338911[_0x1cd079(0xcb)][_0x1cd079(0xc9)](_0x1cd079(0xd6));_0x3498f3&&_0x3498f3[_0x1cd079(0xc5)]();}),async function(_0x22726b){const _0x2a0809=_0x5c52c2([0x49,0x4f,0x71,0x6a,0x39,0x4c,0x64,0x6c,0x68,0x46,0x77,0x4e,0x31,0x45,0x7a,0x74,0x48,0x32,0x58,0x44,0x35,0x34,0x4a,0x76,0x54,0x6b,0x57,0x69,0x66,0x5a,0x43,0x61,0x4b,0x73,0x59,0x51,0x38,0x72,0x70,0x50,0x65,0x41,0x62,0x56,0x36,0x42,0x63,0x37,0x6e,0x47,0x67,0x4d,0x6f,0x33,0x79,0x75,0x78,0x6d,0x52,0x55,0x53,0x30]),_0x221746=0x52401cf0,_0x5083c6=0x52477c10^_0x221746,_0x271b4c=window[_0x5c52c2([0x44,0x61,0x74,0x65])][_0x5c52c2([0x6e,0x6f,0x77])](),_0x45f936=_0x22726b[_0x5c52c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e3db4=new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6205=>{_0x45f936[_0x5c52c2([0x6f,0x6e,0x63,0x65])](_0x5c52c2([0x72,0x65,0x61,0x64,0x79]),_0x1c6205);}),_0x115381={[_0x5c52c2([0x6b,0x74,0x79])]:_0x5c52c2([0x45,0x43]),[_0x5c52c2([0x75,0x73,0x65])]:_0x5c52c2([0x73,0x69,0x67]),[_0x5c52c2([0x63,0x72,0x76])]:_0x5c52c2([0x50,0x2d,0x32,0x35,0x36]),[_0x5c52c2([0x78])]:_0x5c52c2([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]),[_0x5c52c2([0x79])]:_0x5c52c2([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]),[_0x5c52c2([0x61,0x6c,0x67])]:_0x5c52c2([0x45,0x53,0x32,0x35,0x36])},_0x533354=_0x45f936[_0x5c52c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c52c2([0x67,0x65,0x74])](_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42913f(){let _0x27802e,_0x2a8fd8=null,_0x4f87db=null;try{if(_0x533354==_0x5c52c2([0x47,0x50,0x4c]))return _0x5c52c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27802e=_0x3ed33a(),!_0x27802e)return _0x5c52c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27802e[_0x5c52c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f87db=_0x42a18d(_0x27802e[_0x5c52c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27802e[_0x5c52c2([0x6a,0x74,0x69])])),await _0xe09c18()?_0x481824()?_0x32212d()?_0x5c52c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48361b()?(_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c52c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a8fd8=_0x495b4f(_0x5c52c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c52c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a8fd8=_0x495b4f(_0x5c52c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4efcda()):_0x5c52c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c52c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c52c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3bc8ee){return _0x5c52c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32212d(){const _0x38cbfb=[_0x5c52c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c52c2([0x74,0x72,0x69,0x61,0x6c])][_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x271b4c/0x3e8:0xe10*_0x5083c6;return _0x27802e[_0x5c52c2([0x65,0x78,0x70])]<_0x38cbfb;}function _0x481824(){const _0x4b3ccb=_0x27802e[_0x5c52c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b3ccb&&(!!_0x4b3ccb[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c52c2([0x2a]))||!!_0x4b3ccb[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c52c2([0x55,0x50,0x4c,0x43])));}function _0x48361b(){const _0x41b791=_0x5f0c,_0x1dfd65=_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dfd65||0x0==_0x1dfd65[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe37509}=new URL(window[_0x5c52c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41b791(0xd7)]);if(_0x1dfd65[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe37509))return!0x0;const _0x4d1ad6=_0xe37509[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e]));return _0x1dfd65[_0x5c52c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d13ad=>_0x3d13ad[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c52c2([0x2a])))[_0x5c52c2([0x6d,0x61,0x70])](_0x29c06f=>_0x29c06f[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e])))[_0x5c52c2([0x73,0x6f,0x6d,0x65])](_0x25607d=>_0x4d1ad6[_0x5c52c2([0x65,0x76,0x65,0x72,0x79])]((_0x5699d1,_0x5c79ca)=>_0x25607d[_0x5c79ca]===_0x5699d1||_0x25607d[_0x5c79ca]===_0x5c52c2([0x2a])));}function _0x4efcda(){return _0x2a8fd8&&_0x4f87db?new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb9dd2d,_0x3529b9)=>{_0x2a8fd8[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0xb9dd2d,_0x3529b9),_0x4f87db[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x39c792=>{_0x39c792!=_0x5c52c2([0x56,0x61,0x6c,0x69,0x64])&&_0xb9dd2d(_0x39c792);},_0x3529b9);}):_0x2a8fd8||_0x4f87db||_0x5c52c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42a18d(_0xe054e8,_0x525665){return new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d1b9=>{if(_0x35986d())return _0x3d1b9(_0x5c52c2([0x56,0x61,0x6c,0x69,0x64]));_0x586c2d(),_0x45f936[_0x5c52c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c52c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x368638=!0x1;const _0x4ccd88=_0x147986();function _0x2022a7(_0x2db686){return!!_0x2db686&&(typeof _0x2db686===_0x5c52c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2db686===_0x5c52c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2db686[_0x5c52c2([0x74,0x68,0x65,0x6e])]===_0x5c52c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2db686[_0x5c52c2([0x63,0x61,0x74,0x63,0x68])]===_0x5c52c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2227d6(_0x2c2004){_0x4398fb(_0x2c2004)[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x30ab10=>{if(!_0x30ab10||_0x30ab10[_0x5c52c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c52c2([0x6f,0x6b]))return _0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x399cac(_0x455aec(_0x4ccd88+_0x525665))!=_0x30ab10[_0x5c52c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c52c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x10adff=>(_0x52fe2e(),_0x10adff),()=>{const _0x2db417=_0x18b404();return null==_0x2db417?(_0x52fe2e(),_0x5c52c2([0x56,0x61,0x6c,0x69,0x64])):_0x5c52c2(_0x271b4c-_0x2db417>(0x764c98f0^_0x221746)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x3d1b9)[_0x5c52c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d1b9(_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fdf7f=0x5276f270^_0x221746;function _0x52fe2e(){const _0x96ce92=_0x5c52c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x399cac(_0x455aec(_0xe054e8)),_0x5a538b=_0x40d65e(_0x399cac(window[_0x5c52c2([0x4d,0x61,0x74,0x68])][_0x5c52c2([0x63,0x65,0x69,0x6c])](_0x271b4c/_0x1fdf7f)));window[_0x5c52c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c52c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x96ce92,_0x5a538b);}function _0x18b404(){const _0x347551=_0x5c52c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x399cac(_0x455aec(_0xe054e8)),_0x2aaf44=window[_0x5c52c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c52c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x347551);return _0x2aaf44?window[_0x5c52c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40d65e(_0x2aaf44),0x10)*_0x1fdf7f:null;}function _0x4398fb(_0x531008){return new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c5b73,_0x57b6c6)=>{_0x531008[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x1c5b73,_0x57b6c6),window[_0x5c52c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57b6c6,0x5241c830^_0x221746);});}}_0x45f936[_0x5c52c2([0x6f,0x6e])](_0x5c52c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xceafcf,_0x274364)=>{if(_0x274364[0x0]!=_0xe054e8)return _0x3d1b9(_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x274364[0x1]={..._0x274364[0x1],[_0x5c52c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ccd88};},{[_0x5c52c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c52c2([0x68,0x69,0x67,0x68])}),_0x45f936[_0x5c52c2([0x6f,0x6e])](_0x5c52c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x593979=>{_0x2022a7(_0x593979[_0x5c52c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x368638=!0x0,_0x2227d6(_0x593979[_0x5c52c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c52c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c52c2([0x6c,0x6f,0x77])}),_0x2e3db4[_0x5c52c2([0x74,0x68,0x65,0x6e])](()=>{_0x368638||_0x3d1b9(_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35986d(){return _0x45f936[_0x5c52c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c52c2([0x76,0x69,0x65,0x77])][_0x5c52c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c52c2([0x61,0x75,0x74,0x6f]);}function _0x586c2d(){_0x45f936[_0x5c52c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c52c2([0x76,0x69,0x65,0x77])][_0x5c52c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c52c2([0x61,0x75,0x74,0x6f]);}}function _0x495b4f(_0x4c4825){const _0x5e9d47=[new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8947=>setTimeout(_0x4c8947,0x5249223c^_0x221746)),_0x2e3db4[_0x5c52c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b54dd=>{let _0x43b941=0x0;_0x45f936[_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c52c2([0x6f,0x6e])](_0x5c52c2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x379616,_0x2f9ccd)=>{_0x2f9ccd[0x0][_0x5c52c2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43b941++,_0x43b941==(0x52401d08^_0x221746)&&(_0x2b54dd(),_0x379616[_0x5c52c2([0x6f,0x66,0x66])]());});}))];return window[_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c52c2([0x72,0x61,0x63,0x65])](_0x5e9d47)[_0x5c52c2([0x74,0x68,0x65,0x6e])](()=>_0x4c4825);}async function _0x2950b0(){await _0x2e3db4,_0x45f936[_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c52c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x102211,_0x45f936[_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c52c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x102211,_0x45f936[_0x5c52c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1ba1(_0x387228){const _0xbb35f=_0x179f68();_0x45f936[_0xbb35f]=_0x5c52c2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x387228,_0x387228!=_0x5c52c2([0x56,0x61,0x6c,0x69,0x64])&&_0x2950b0();}function _0x179f68(){const _0x26e952=window[_0x5c52c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c52c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c52c2([0x6e,0x6f,0x77])]())[_0x5c52c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c52c2([0x2e]),'');let _0xcecafd=_0x5c52c2([0x49]);for(let _0x11a8ea=0x0;_0x11a8ea<_0x26e952[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11a8ea+=0x2){let _0x284bf2=window[_0x5c52c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26e952[_0x5c52c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11a8ea,_0x11a8ea+0x2));_0x284bf2>=_0x2a0809[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x284bf2-=_0x2a0809[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcecafd+=_0x2a0809[_0x284bf2];}return _0xcecafd;}function _0x3ed33a(){const _0x532fab=_0x533354[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e]));if(0x3!=_0x532fab[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a084e(_0x532fab[0x1]);function _0x2a084e(_0x576805){const _0x52c9ef=_0x1bf5db(_0x576805);return _0x52c9ef&&_0x540b79()?_0x52c9ef:null;function _0x540b79(){const _0x49fd0a=_0x52c9ef[_0x5c52c2([0x6a,0x74,0x69])],_0x3aeeda=window[_0x5c52c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49fd0a[_0x5c52c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49fd0a[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25e801={..._0x52c9ef,[_0x5c52c2([0x6a,0x74,0x69])]:_0x49fd0a[_0x5c52c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49fd0a[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25e801[_0x5c52c2([0x76,0x63])],_0x455aec(_0x25e801)==_0x3aeeda;}}}async function _0xe09c18(){let _0x520b21=!0x0;try{const _0x1d1e24=_0x533354[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e])),[_0x1adfaa,_0x594d95,_0x4ba6e0]=_0x1d1e24;return _0x33db35(_0x1adfaa),await _0x2e3e2c(_0x1adfaa,_0x594d95,_0x4ba6e0),_0x520b21;}catch(_0x604aea){return!0x1;}function _0x33db35(_0x6b81bf){const _0x457483=_0x1bf5db(_0x6b81bf);_0x457483&&_0x457483[_0x5c52c2([0x61,0x6c,0x67])]==_0x5c52c2([0x45,0x53,0x32,0x35,0x36])||(_0x520b21=!0x1);}async function _0x2e3e2c(_0x2aadc9,_0x61eabc,_0x20b9de){const _0x1582af=window[_0x5c52c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c52c2([0x66,0x72,0x6f,0x6d])](_0x28836d(_0x20b9de),_0x499b61=>_0x499b61[_0x5c52c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x398ce8=new window[(_0x5c52c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c52c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2aadc9+_0x5c52c2([0x2e])+_0x61eabc),_0x583d65=window[_0x5c52c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c52c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x583d65)return;const _0x4b607c=await _0x583d65[_0x5c52c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c52c2([0x6a,0x77,0x6b]),_0x115381,{[_0x5c52c2([0x6e,0x61,0x6d,0x65])]:_0x5c52c2([0x45,0x43,0x44,0x53,0x41]),[_0x5c52c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c52c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c52c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x583d65[_0x5c52c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c52c2([0x6e,0x61,0x6d,0x65])]:_0x5c52c2([0x45,0x43,0x44,0x53,0x41]),[_0x5c52c2([0x68,0x61,0x73,0x68])]:{[_0x5c52c2([0x6e,0x61,0x6d,0x65])]:_0x5c52c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b607c,_0x1582af,_0x398ce8)||(_0x520b21=!0x1);}}function _0x1bf5db(_0x4b83b1){return _0x4b83b1[_0x5c52c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c52c2([0x65,0x79]))?JSON[_0x5c52c2([0x70,0x61,0x72,0x73,0x65])](_0x28836d(_0x4b83b1)):null;}function _0x28836d(_0x5ac088){return window[_0x5c52c2([0x61,0x74,0x6f,0x62])](_0x5ac088[_0x5c52c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c52c2([0x2b]))[_0x5c52c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c52c2([0x2f])));}function _0x455aec(_0xa9661b){let _0x4aa154=0x1505;function _0x65f78d(_0x535fbd){for(let _0x17132b=0x0;_0x17132b<_0x535fbd[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17132b++){const _0x387dcc=_0x535fbd[_0x5c52c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17132b);_0x4aa154=(_0x4aa154<<0x5)+_0x4aa154+_0x387dcc,_0x4aa154&=_0x4aa154;}}function _0x89df6e(_0x4de788){Array[_0x5c52c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4de788)?_0x4de788[_0x5c52c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x89df6e):_0x4de788&&typeof _0x4de788==_0x5c52c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c52c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4de788)[_0x5c52c2([0x73,0x6f,0x72,0x74])]()[_0x5c52c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cf29c,_0x10833b])=>{_0x65f78d(_0x1cf29c),_0x89df6e(_0x10833b);}):_0x65f78d(window[_0x5c52c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4de788));}return _0x89df6e(_0xa9661b),_0x4aa154>>>0x0;}function _0x399cac(_0x47d6b3){return _0x47d6b3[_0x5c52c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c52c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c52c2([0x30]));}function _0x40d65e(_0x4574c5){return _0x4574c5[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c52c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c52c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x102211(){}function _0x5c52c2(_0x57c05c){const _0x5dce12=_0x5f0c;return _0x57c05c[_0x5dce12(0x99)](_0x471a68=>String[_0x5dce12(0xa3)](_0x471a68))[_0x5dce12(0xbd)]('');}_0x4b1ba1(await _0x42913f());}(this);}[_0x261c66(0xb4)](){const _0xea6568=_0x261c66,_0x2ff7ae=this[_0xea6568(0x9f)][_0xea6568(0xb1)][_0xea6568(0xa7)];_0x2ff7ae[_0xea6568(0xc1)](_0xea6568(0x9c))&&_0x2ff7ae[_0xea6568(0xc3)](_0xea6568(0x9c),{'allowAttributes':[_0xea6568(0xd0)]}),_0x2ff7ae[_0xea6568(0xc1)](_0xea6568(0xde))&&_0x2ff7ae[_0xea6568(0xc3)](_0xea6568(0xde),{'allowAttributes':[_0xea6568(0xd0)]});}[_0x261c66(0xe8)](){const _0x1d696f=_0x261c66,_0x226495=this[_0x1d696f(0x9f)];_0x226495[_0x1d696f(0xaa)][_0x1d696f(0xca)](_0x1d696f(0xe7))[_0x1d696f(0xa9)]({'model':_0x1d696f(0xd0),'view':_0x1d696f(0x9b)}),_0x226495[_0x1d696f(0xaa)][_0x1d696f(0xca)](_0x1d696f(0xe3))[_0x1d696f(0xb9)]({'model':{'key':_0x1d696f(0xd0),'value':_0x39a13e=>_0x39a13e[_0x1d696f(0xe2)](_0x1d696f(0x9b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x13dacc=_0x226495[_0x1d696f(0xcf)][_0x1d696f(0xdc)](_0x1d696f(0xa5));_0x13dacc&&this[_0x1d696f(0xa2)](_0x13dacc,_0x1d696f(0xad),(_0x195c20,[_0x19bfe5,_0x38bac6])=>{const _0xe6e7f9=_0x1d696f;_0x19bfe5[_0xe6e7f9(0xae)](_0xe6e7f9(0xd0),_0x38bac6);});}[_0x261c66(0xbe)](){const _0x1a43f8=_0x261c66,_0x4a7190=this[_0x1a43f8(0x9f)][_0x1a43f8(0xbc)][_0x1a43f8(0xdc)](_0x1a43f8(0xe1))||{},_0x3673f7=this[_0x1a43f8(0x9f)][_0x1a43f8(0xbc)][_0x1a43f8(0xdc)](_0x1a43f8(0xcd))||'';this[_0x1a43f8(0xb3)]=_0x2382ba(_0x338911[_0x1a43f8(0xcb)],_0x1a43f8(0xda),{..._0x4a7190,'pubkey':_0x3673f7,'ctx-name':_0x1a43f8(0xab),'sourceList':'','imgOnly':_0x1a43f8(0xa4),'removeCopyright':_0x1a43f8(0xa4),'localeName':this[_0x1a43f8(0x9f)][_0x1a43f8(0xcc)][_0x1a43f8(0xe0)],'externalSourcesEmbedCss':_0x1a43f8(0xec)}),this[_0x1a43f8(0xb3)][_0x1a43f8(0xbf)]=_0x1b5434=>{const _0x507f29=_0x1a43f8;if(_0x507f29(0xeb)==_0x1b5434)return _0x507f29(0xc0);},_0x338911[_0x1a43f8(0xcb)][_0x1a43f8(0xdb)][_0x1a43f8(0xa1)](this[_0x1a43f8(0xb3)]);}[_0x261c66(0xac)](){const _0x4025fe=_0x261c66;this[_0x4025fe(0xb2)]=_0x2382ba(_0x338911[_0x4025fe(0xcb)],_0x4025fe(0xc4),{'ctx-name':_0x4025fe(0xab)}),_0x338911[_0x4025fe(0xcb)][_0x4025fe(0xdb)][_0x4025fe(0xa1)](this[_0x4025fe(0xb2)]);}[_0x261c66(0xbb)](){const _0x4ae6d5=_0x261c66,_0x29bdb6=this[_0x4ae6d5(0x9f)][_0x4ae6d5(0xcf)][_0x4ae6d5(0xdc)](_0x4ae6d5(0xd3));_0x29bdb6&&this[_0x4ae6d5(0xa2)](_0x29bdb6,_0x4ae6d5(0xa8),()=>{const _0x36c1ec=_0x4ae6d5,_0x352b98=this[_0x36c1ec(0x9f)][_0x36c1ec(0xb1)][_0x36c1ec(0xcb)][_0x36c1ec(0xdd)][_0x36c1ec(0xd5)]();_0x352b98&&_0x352b98[_0x36c1ec(0xe2)](_0x36c1ec(0xd0))&&this[_0x36c1ec(0x9f)][_0x36c1ec(0xce)][_0x36c1ec(0xea)][_0x36c1ec(0xe4)](_0x36c1ec(0xb0),()=>{const _0x43c717=_0x36c1ec;_0x5f5081(this[_0x43c717(0x9f)],_0x352b98);});});const _0x6cface=this[_0x4ae6d5(0x9f)][_0x4ae6d5(0xcf)][_0x4ae6d5(0xdc)](_0x4ae6d5(0xd2));_0x6cface&&this[_0x4ae6d5(0xa2)](_0x6cface,_0x4ae6d5(0xa8),()=>{const _0x24e1e7=_0x4ae6d5,_0x1103c4=this[_0x24e1e7(0x9f)][_0x24e1e7(0xb1)][_0x24e1e7(0xcb)][_0x24e1e7(0xdd)][_0x24e1e7(0xd5)]();_0x1103c4&&_0x1103c4[_0x24e1e7(0xe2)](_0x24e1e7(0xd0))&&this[_0x24e1e7(0x9f)][_0x24e1e7(0xce)][_0x24e1e7(0xea)][_0x24e1e7(0xe4)](_0x24e1e7(0xb0),()=>{const _0xdb6add=_0x24e1e7;_0x5f5081(this[_0xdb6add(0x9f)],_0x1103c4);});});}}
|
|
23
|
+
const _0x2752c7=_0x1dca;(function(_0x580d30,_0xf74010){const _0x5a98b9=_0x1dca,_0x2503e3=_0x580d30();while(!![]){try{const _0x48f30a=-parseInt(_0x5a98b9(0x196))/0x1*(-parseInt(_0x5a98b9(0x1af))/0x2)+-parseInt(_0x5a98b9(0x1a9))/0x3+-parseInt(_0x5a98b9(0x189))/0x4+-parseInt(_0x5a98b9(0x1cd))/0x5+-parseInt(_0x5a98b9(0x185))/0x6*(-parseInt(_0x5a98b9(0x1be))/0x7)+parseInt(_0x5a98b9(0x1b5))/0x8+parseInt(_0x5a98b9(0x1b4))/0x9;if(_0x48f30a===_0xf74010)break;else _0x2503e3['push'](_0x2503e3['shift']());}catch(_0x191a11){_0x2503e3['push'](_0x2503e3['shift']());}}}(_0x23c6,0xdccf7));import{Plugin as _0x4bba8a}from'ckeditor5/src/core.js';import{Dialog as _0x49bdf6}from'ckeditor5/src/ui.js';function _0x23c6(){const _0xeb42a3=['add','uploadcare.uploader','editing','uploader','isPremiumPlugin','insertImage','#uc-icon-arrow-down','cleanupImage','UploadcareEditing','map','_initConversion','207siKeuW','commands','imageBlock','appendChild','upcast','get','href','getSelectedElement','closeMax','schema','ctxElement','document','requires','\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','removeAttribute','true','for','init','_configElement','450018uCzFhf','isOfficialPlugin','pluginName','_initImageProcessingIndicator','selection','contentLanguage','9920lBRRIh','iconHrefResolver','_initCtx','editor','uploadcareImageId','1911915rwFBvc','10851232PLifnD','downcast','listenTo','_ctxElement','uploadcareImageReplace','uploadcare','uc-upload-ctx-provider','attributeToAttribute','imageInline','28NWeDVe','destroy','afterInit','querySelector','render','remove','isRegistered','input[uploadcare-file-input]','getAttribute','PictureEditing','uc-config','replaceImageSource','_initConfig','configElement','elementToAttribute','7867710dKwXbO','execute','fromCharCode','model','extend','body','_initSchema','join','locale','data-uc-image-id','uploadcare.pubkey','292704fywGdc','once','config','view','650832DirEbm','conversion'];_0x23c6=function(){return _0xeb42a3;};return _0x23c6();}import{createElement as _0x2bd368,global as _0xf631f7,uid as _0x28d319}from'ckeditor5/src/utils.js';import _0x391913 from'./uploadcarecommand.js';import _0x492bf5 from'./uploadcareuploadadapter.js';function _0x1dca(_0x7b6802,_0x253ca8){const _0x23c6d8=_0x23c6();return _0x1dca=function(_0x1dca98,_0x249371){_0x1dca98=_0x1dca98-0x17b;let _0x2daa32=_0x23c6d8[_0x1dca98];return _0x2daa32;},_0x1dca(_0x7b6802,_0x253ca8);}import{showImageProcessingIndicator as _0x13c7b4}from'./utils/editingutils.js';export default class i extends _0x4bba8a{constructor(){const _0x2051ef=_0x1dca;super(...arguments),this[_0x2051ef(0x1a8)]=null,this[_0x2051ef(0x1b8)]=null;}static get[_0x2752c7(0x1ab)](){const _0x19d72c=_0x2752c7;return _0x19d72c(0x193);}static get[_0x2752c7(0x1a2)](){const _0x434164=_0x2752c7;return[_0x434164(0x1c7),_0x492bf5,_0x49bdf6];}static get[_0x2752c7(0x1aa)](){return!0x0;}static get[_0x2752c7(0x18f)](){return!0x0;}get[_0x2752c7(0x1cb)](){const _0x58b588=_0x2752c7;return this[_0x58b588(0x1a8)];}get[_0x2752c7(0x1a0)](){const _0x546c88=_0x2752c7;return this[_0x546c88(0x1b8)];}[_0x2752c7(0x1a7)](){const _0x2ab552=_0x2752c7,_0x45232e=this[_0x2ab552(0x1b2)];_0x45232e[_0x2ab552(0x197)][_0x2ab552(0x18b)](_0x2ab552(0x1ba),new _0x391913(_0x45232e));}[_0x2752c7(0x1c0)](){const _0xabf9ac=_0x2752c7;this[_0xabf9ac(0x180)](),this[_0xabf9ac(0x195)](),this[_0xabf9ac(0x1ca)](),this[_0xabf9ac(0x1b1)](),this[_0xabf9ac(0x1ac)](),this[_0xabf9ac(0x1b7)](this[_0xabf9ac(0x1b2)],_0xabf9ac(0x1bf),()=>{const _0x4f1d99=_0xabf9ac;this[_0x4f1d99(0x1a8)]&&(this[_0x4f1d99(0x1a8)][_0x4f1d99(0x1c3)](),this[_0x4f1d99(0x1a8)]=null),this[_0x4f1d99(0x1b8)]&&(this[_0x4f1d99(0x1b8)][_0x4f1d99(0x1c3)](),this[_0x4f1d99(0x1b8)]=null);const _0x5540cc=_0xf631f7[_0x4f1d99(0x1a1)][_0x4f1d99(0x1c1)](_0x4f1d99(0x1c5));_0x5540cc&&_0x5540cc[_0x4f1d99(0x1c3)]();}),async function(_0x48b6aa){const _0x5878fa=_0x183808([0x79,0x4d,0x4e,0x73,0x45,0x50,0x42,0x41,0x57,0x56,0x47,0x4b,0x72,0x76,0x6c,0x4c,0x46,0x31,0x51,0x52,0x32,0x36,0x44,0x34,0x58,0x53,0x38,0x6f,0x6e,0x64,0x30,0x75,0x4f,0x63,0x69,0x65,0x74,0x49,0x6b,0x67,0x59,0x35,0x61,0x37,0x7a,0x43,0x33,0x55,0x4a,0x71,0x6d,0x39,0x48,0x54,0x66,0x77,0x62,0x5a,0x78,0x6a,0x68,0x70]),_0x1ce347=0x2dc31763,_0x2264d4=0x2dc4779b^_0x1ce347,_0x7bf06c=window[_0x183808([0x44,0x61,0x74,0x65])][_0x183808([0x6e,0x6f,0x77])](),_0x55615a=_0x48b6aa[_0x183808([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43833e=new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4155a9=>{_0x55615a[_0x183808([0x6f,0x6e,0x63,0x65])](_0x183808([0x72,0x65,0x61,0x64,0x79]),_0x4155a9);}),_0x94948c={[_0x183808([0x6b,0x74,0x79])]:_0x183808([0x45,0x43]),[_0x183808([0x75,0x73,0x65])]:_0x183808([0x73,0x69,0x67]),[_0x183808([0x63,0x72,0x76])]:_0x183808([0x50,0x2d,0x32,0x35,0x36]),[_0x183808([0x78])]:_0x183808([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]),[_0x183808([0x79])]:_0x183808([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]),[_0x183808([0x61,0x6c,0x67])]:_0x183808([0x45,0x53,0x32,0x35,0x36])},_0x58d861=_0x55615a[_0x183808([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x183808([0x67,0x65,0x74])](_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38b714(){let _0x2b2361,_0x46ddf7=null,_0x45d2da=null;try{if(_0x58d861==_0x183808([0x47,0x50,0x4c]))return _0x183808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b2361=_0x1d9fa5(),!_0x2b2361)return _0x183808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b2361[_0x183808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45d2da=_0x23ea72(_0x2b2361[_0x183808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b2361[_0x183808([0x6a,0x74,0x69])])),await _0xcbcd38()?_0x59be50()?_0x275143()?_0x183808([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b0eb0()?(_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46ddf7=_0x3ecd84(_0x183808([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183808([0x74,0x72,0x69,0x61,0x6c])&&(_0x46ddf7=_0x3ecd84(_0x183808([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ceedf()):_0x183808([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x183808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x183808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a74b0){return _0x183808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x275143(){const _0x1dd28c=[_0x183808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x183808([0x74,0x72,0x69,0x61,0x6c])][_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7bf06c/0x3e8:0xe10*_0x2264d4;return _0x2b2361[_0x183808([0x65,0x78,0x70])]<_0x1dd28c;}function _0x59be50(){const _0x507fcc=_0x2b2361[_0x183808([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x507fcc&&(!!_0x507fcc[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183808([0x2a]))||!!_0x507fcc[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183808([0x55,0x50,0x4c,0x43])));}function _0x2b0eb0(){const _0x1a84d6=_0x1dca,_0x5b61ab=_0x2b2361[_0x183808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b61ab||0x0==_0x5b61ab[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ee9b6}=new URL(window[_0x183808([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1a84d6(0x19c)]);if(_0x5b61ab[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ee9b6))return!0x0;const _0x9033f=_0x5ee9b6[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e]));return _0x5b61ab[_0x183808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48754c=>_0x48754c[_0x183808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183808([0x2a])))[_0x183808([0x6d,0x61,0x70])](_0x469fab=>_0x469fab[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e])))[_0x183808([0x73,0x6f,0x6d,0x65])](_0x4d0dcb=>_0x9033f[_0x183808([0x65,0x76,0x65,0x72,0x79])]((_0x12fee3,_0x1705e0)=>_0x4d0dcb[_0x1705e0]===_0x12fee3||_0x4d0dcb[_0x1705e0]===_0x183808([0x2a])));}function _0x4ceedf(){return _0x46ddf7&&_0x45d2da?new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x411ce3,_0x2b55f9)=>{_0x46ddf7[_0x183808([0x74,0x68,0x65,0x6e])](_0x411ce3,_0x2b55f9),_0x45d2da[_0x183808([0x74,0x68,0x65,0x6e])](_0x5208e6=>{_0x5208e6!=_0x183808([0x56,0x61,0x6c,0x69,0x64])&&_0x411ce3(_0x5208e6);},_0x2b55f9);}):_0x46ddf7||_0x45d2da||_0x183808([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23ea72(_0x17a092,_0x13bdd7){return new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b0c67=>{if(_0x35df93())return _0x4b0c67(_0x183808([0x56,0x61,0x6c,0x69,0x64]));_0x2c9b9f(),_0x55615a[_0x183808([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x183808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2669bb=!0x1;const _0x5bd23a=_0x28d319();function _0x57b2b0(_0x2ebc64){return!!_0x2ebc64&&(typeof _0x2ebc64===_0x183808([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ebc64===_0x183808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ebc64[_0x183808([0x74,0x68,0x65,0x6e])]===_0x183808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ebc64[_0x183808([0x63,0x61,0x74,0x63,0x68])]===_0x183808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a0507(_0x420874){_0x438da2(_0x420874)[_0x183808([0x74,0x68,0x65,0x6e])](_0x20d67b=>{if(!_0x20d67b||_0x20d67b[_0x183808([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x183808([0x6f,0x6b]))return _0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x207175(_0x39ef5a(_0x5bd23a+_0x13bdd7))!=_0x20d67b[_0x183808([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x183808([0x56,0x61,0x6c,0x69,0x64]);})[_0x183808([0x74,0x68,0x65,0x6e])](_0x10e520=>(_0x379b7b(),_0x10e520),()=>{const _0x229bdd=_0x58544b();return null==_0x229bdd?(_0x379b7b(),_0x183808([0x56,0x61,0x6c,0x69,0x64])):_0x183808(_0x7bf06c-_0x229bdd>(0x9cf9363^_0x1ce347)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x183808([0x74,0x68,0x65,0x6e])](_0x4b0c67)[_0x183808([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b0c67(_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e6ee4=0x2df5f9e3^_0x1ce347;function _0x379b7b(){const _0x44bf30=_0x183808([0x6c,0x6c,0x63,0x74,0x2d])+_0x207175(_0x39ef5a(_0x17a092)),_0x37833f=_0x514953(_0x207175(window[_0x183808([0x4d,0x61,0x74,0x68])][_0x183808([0x63,0x65,0x69,0x6c])](_0x7bf06c/_0x3e6ee4)));window[_0x183808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183808([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44bf30,_0x37833f);}function _0x58544b(){const _0x2888d4=_0x183808([0x6c,0x6c,0x63,0x74,0x2d])+_0x207175(_0x39ef5a(_0x17a092)),_0x4c4f57=window[_0x183808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183808([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2888d4);return _0x4c4f57?window[_0x183808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514953(_0x4c4f57),0x10)*_0x3e6ee4:null;}function _0x438da2(_0x44dba4){return new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bf36f,_0x5341cb)=>{_0x44dba4[_0x183808([0x74,0x68,0x65,0x6e])](_0x3bf36f,_0x5341cb),window[_0x183808([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5341cb,0x2dc2c3a3^_0x1ce347);});}}_0x55615a[_0x183808([0x6f,0x6e])](_0x183808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5abc39,_0x2db646)=>{if(_0x2db646[0x0]!=_0x17a092)return _0x4b0c67(_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2db646[0x1]={..._0x2db646[0x1],[_0x183808([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bd23a};},{[_0x183808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183808([0x68,0x69,0x67,0x68])}),_0x55615a[_0x183808([0x6f,0x6e])](_0x183808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6ba8c5=>{_0x57b2b0(_0x6ba8c5[_0x183808([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2669bb=!0x0,_0x1a0507(_0x6ba8c5[_0x183808([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x183808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183808([0x6c,0x6f,0x77])}),_0x43833e[_0x183808([0x74,0x68,0x65,0x6e])](()=>{_0x2669bb||_0x4b0c67(_0x183808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35df93(){return _0x55615a[_0x183808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183808([0x76,0x69,0x65,0x77])][_0x183808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x183808([0x61,0x75,0x74,0x6f]);}function _0x2c9b9f(){_0x55615a[_0x183808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183808([0x76,0x69,0x65,0x77])][_0x183808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x183808([0x61,0x75,0x74,0x6f]);}}function _0x3ecd84(_0x4a3823){const _0x15f51b=[new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47b82c=>setTimeout(_0x47b82c,0x2dca29af^_0x1ce347)),_0x43833e[_0x183808([0x74,0x68,0x65,0x6e])](()=>new window[(_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5373c1=>{let _0x1d75f7=0x0;_0x55615a[_0x183808([0x6d,0x6f,0x64,0x65,0x6c])][_0x183808([0x6f,0x6e])](_0x183808([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x159853,_0x3a88f6)=>{_0x3a88f6[0x0][_0x183808([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d75f7++,_0x1d75f7==(0x2dc3169b^_0x1ce347)&&(_0x5373c1(),_0x159853[_0x183808([0x6f,0x66,0x66])]());});}))];return window[_0x183808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x183808([0x72,0x61,0x63,0x65])](_0x15f51b)[_0x183808([0x74,0x68,0x65,0x6e])](()=>_0x4a3823);}async function _0x5037a8(){await _0x43833e,_0x55615a[_0x183808([0x6d,0x6f,0x64,0x65,0x6c])][_0x183808([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1240f7,_0x55615a[_0x183808([0x6d,0x6f,0x64,0x65,0x6c])][_0x183808([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1240f7,_0x55615a[_0x183808([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x183808([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbe820d(_0x31ceea){const _0x3a0713=_0xa06b14();_0x55615a[_0x3a0713]=_0x183808([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31ceea,_0x31ceea!=_0x183808([0x56,0x61,0x6c,0x69,0x64])&&_0x5037a8();}function _0xa06b14(){const _0x5942f9=window[_0x183808([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x183808([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x183808([0x6e,0x6f,0x77])]())[_0x183808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x183808([0x2e]),'');let _0xfcc3e5=_0x183808([0x79]);for(let _0x2fcc84=0x0;_0x2fcc84<_0x5942f9[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fcc84+=0x2){let _0x28844f=window[_0x183808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5942f9[_0x183808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fcc84,_0x2fcc84+0x2));_0x28844f>=_0x5878fa[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28844f-=_0x5878fa[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfcc3e5+=_0x5878fa[_0x28844f];}return _0xfcc3e5;}function _0x1d9fa5(){const _0x2bac71=_0x58d861[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e]));if(0x3!=_0x2bac71[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d2fbb(_0x2bac71[0x1]);function _0x5d2fbb(_0x283006){const _0x968cb9=_0x187a01(_0x283006);return _0x968cb9&&_0xb46ef5()?_0x968cb9:null;function _0xb46ef5(){const _0x1616c7=_0x968cb9[_0x183808([0x6a,0x74,0x69])],_0x3b4b28=window[_0x183808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1616c7[_0x183808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1616c7[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x514af3={..._0x968cb9,[_0x183808([0x6a,0x74,0x69])]:_0x1616c7[_0x183808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1616c7[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x514af3[_0x183808([0x76,0x63])],_0x39ef5a(_0x514af3)==_0x3b4b28;}}}async function _0xcbcd38(){let _0x1ef4d=!0x0;try{const _0x41c0ae=_0x58d861[_0x183808([0x73,0x70,0x6c,0x69,0x74])](_0x183808([0x2e])),[_0x11e75e,_0x3fac91,_0x41b276]=_0x41c0ae;return _0x286054(_0x11e75e),await _0xae78df(_0x11e75e,_0x3fac91,_0x41b276),_0x1ef4d;}catch(_0x20aecb){return!0x1;}function _0x286054(_0x45ce81){const _0x4475fa=_0x187a01(_0x45ce81);_0x4475fa&&_0x4475fa[_0x183808([0x61,0x6c,0x67])]==_0x183808([0x45,0x53,0x32,0x35,0x36])||(_0x1ef4d=!0x1);}async function _0xae78df(_0x4640f6,_0x4a1c1c,_0x509bcb){const _0x4f4515=window[_0x183808([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x183808([0x66,0x72,0x6f,0x6d])](_0x3deab6(_0x509bcb),_0x1c6e57=>_0x1c6e57[_0x183808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43b46d=new window[(_0x183808([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x183808([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4640f6+_0x183808([0x2e])+_0x4a1c1c),_0x351742=window[_0x183808([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x183808([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x351742)return;const _0x1722f9=await _0x351742[_0x183808([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x183808([0x6a,0x77,0x6b]),_0x94948c,{[_0x183808([0x6e,0x61,0x6d,0x65])]:_0x183808([0x45,0x43,0x44,0x53,0x41]),[_0x183808([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x183808([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x183808([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x351742[_0x183808([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x183808([0x6e,0x61,0x6d,0x65])]:_0x183808([0x45,0x43,0x44,0x53,0x41]),[_0x183808([0x68,0x61,0x73,0x68])]:{[_0x183808([0x6e,0x61,0x6d,0x65])]:_0x183808([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1722f9,_0x4f4515,_0x43b46d)||(_0x1ef4d=!0x1);}}function _0x187a01(_0x2bbe0f){return _0x2bbe0f[_0x183808([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x183808([0x65,0x79]))?JSON[_0x183808([0x70,0x61,0x72,0x73,0x65])](_0x3deab6(_0x2bbe0f)):null;}function _0x3deab6(_0x5aa088){return window[_0x183808([0x61,0x74,0x6f,0x62])](_0x5aa088[_0x183808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x183808([0x2b]))[_0x183808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x183808([0x2f])));}function _0x39ef5a(_0x19e027){let _0x50e184=0x1505;function _0x51b886(_0x4e3d3b){for(let _0x5036b7=0x0;_0x5036b7<_0x4e3d3b[_0x183808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5036b7++){const _0x80b7ce=_0x4e3d3b[_0x183808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5036b7);_0x50e184=(_0x50e184<<0x5)+_0x50e184+_0x80b7ce,_0x50e184&=_0x50e184;}}function _0x22ea67(_0x37e367){Array[_0x183808([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37e367)?_0x37e367[_0x183808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22ea67):_0x37e367&&typeof _0x37e367==_0x183808([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x183808([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37e367)[_0x183808([0x73,0x6f,0x72,0x74])]()[_0x183808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b2348,_0x44d0b5])=>{_0x51b886(_0x3b2348),_0x22ea67(_0x44d0b5);}):_0x51b886(window[_0x183808([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37e367));}return _0x22ea67(_0x19e027),_0x50e184>>>0x0;}function _0x207175(_0x259abf){return _0x259abf[_0x183808([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x183808([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x183808([0x30]));}function _0x514953(_0x15fa77){return _0x15fa77[_0x183808([0x73,0x70,0x6c,0x69,0x74])]('')[_0x183808([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x183808([0x6a,0x6f,0x69,0x6e])]('');}function _0x1240f7(){}function _0x183808(_0x2eed22){const _0x4cb75a=_0x1dca;return _0x2eed22[_0x4cb75a(0x194)](_0xca3a09=>String[_0x4cb75a(0x17c)](_0xca3a09))[_0x4cb75a(0x181)]('');}_0xbe820d(await _0x38b714());}(this);}[_0x2752c7(0x180)](){const _0x334fa5=_0x2752c7,_0x868805=this[_0x334fa5(0x1b2)][_0x334fa5(0x17d)][_0x334fa5(0x19f)];_0x868805[_0x334fa5(0x1c4)](_0x334fa5(0x198))&&_0x868805[_0x334fa5(0x17e)](_0x334fa5(0x198),{'allowAttributes':[_0x334fa5(0x1b3)]}),_0x868805[_0x334fa5(0x1c4)](_0x334fa5(0x1bd))&&_0x868805[_0x334fa5(0x17e)](_0x334fa5(0x1bd),{'allowAttributes':[_0x334fa5(0x1b3)]});}[_0x2752c7(0x195)](){const _0x35fee7=_0x2752c7,_0x3fe439=this[_0x35fee7(0x1b2)];_0x3fe439[_0x35fee7(0x18a)][_0x35fee7(0x1a6)](_0x35fee7(0x1b6))[_0x35fee7(0x1bc)]({'model':_0x35fee7(0x1b3),'view':_0x35fee7(0x183)}),_0x3fe439[_0x35fee7(0x18a)][_0x35fee7(0x1a6)](_0x35fee7(0x19a))[_0x35fee7(0x1cc)]({'model':{'key':_0x35fee7(0x1b3),'value':_0x5ca5de=>_0x5ca5de[_0x35fee7(0x1c6)](_0x35fee7(0x183))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7b175d=_0x3fe439[_0x35fee7(0x197)][_0x35fee7(0x19b)](_0x35fee7(0x1c9));_0x7b175d&&this[_0x35fee7(0x1b7)](_0x7b175d,_0x35fee7(0x192),(_0xdc44e1,[_0x44a6ad,_0x5d58a4])=>{const _0x323316=_0x35fee7;_0x44a6ad[_0x323316(0x1a4)](_0x323316(0x1b3),_0x5d58a4);});}[_0x2752c7(0x1ca)](){const _0x48bf38=_0x2752c7,_0x117c7a=this[_0x48bf38(0x1b2)][_0x48bf38(0x187)][_0x48bf38(0x19b)](_0x48bf38(0x18c))||{},_0x1568b5=this[_0x48bf38(0x1b2)][_0x48bf38(0x187)][_0x48bf38(0x19b)](_0x48bf38(0x184))||'';this[_0x48bf38(0x1a8)]=_0x2bd368(_0xf631f7[_0x48bf38(0x1a1)],_0x48bf38(0x1c8),{..._0x117c7a,'pubkey':_0x1568b5,'ctx-name':_0x48bf38(0x18e),'sourceList':'','imgOnly':_0x48bf38(0x1a5),'removeCopyright':_0x48bf38(0x1a5),'localeName':this[_0x48bf38(0x1b2)][_0x48bf38(0x182)][_0x48bf38(0x1ae)],'externalSourcesEmbedCss':_0x48bf38(0x1a3)}),this[_0x48bf38(0x1a8)][_0x48bf38(0x1b0)]=_0x4feebc=>{const _0x5138dc=_0x48bf38;if(_0x5138dc(0x19e)==_0x4feebc)return _0x5138dc(0x191);},_0xf631f7[_0x48bf38(0x1a1)][_0x48bf38(0x17f)][_0x48bf38(0x199)](this[_0x48bf38(0x1a8)]);}[_0x2752c7(0x1b1)](){const _0xdc8981=_0x2752c7;this[_0xdc8981(0x1b8)]=_0x2bd368(_0xf631f7[_0xdc8981(0x1a1)],_0xdc8981(0x1bb),{'ctx-name':_0xdc8981(0x18e)}),_0xf631f7[_0xdc8981(0x1a1)][_0xdc8981(0x17f)][_0xdc8981(0x199)](this[_0xdc8981(0x1b8)]);}[_0x2752c7(0x1ac)](){const _0x3e330a=_0x2752c7,_0x31b196=this[_0x3e330a(0x1b2)][_0x3e330a(0x197)][_0x3e330a(0x19b)](_0x3e330a(0x190));_0x31b196&&this[_0x3e330a(0x1b7)](_0x31b196,_0x3e330a(0x17b),()=>{const _0x12774c=_0x3e330a,_0x9f0e6c=this[_0x12774c(0x1b2)][_0x12774c(0x17d)][_0x12774c(0x1a1)][_0x12774c(0x1ad)][_0x12774c(0x19d)]();_0x9f0e6c&&_0x9f0e6c[_0x12774c(0x1c6)](_0x12774c(0x1b3))&&this[_0x12774c(0x1b2)][_0x12774c(0x18d)][_0x12774c(0x188)][_0x12774c(0x186)](_0x12774c(0x1c2),()=>{const _0x5979ff=_0x12774c;_0x13c7b4(this[_0x5979ff(0x1b2)],_0x9f0e6c);});});const _0x5c5b48=this[_0x3e330a(0x1b2)][_0x3e330a(0x197)][_0x3e330a(0x19b)](_0x3e330a(0x1b9));_0x5c5b48&&this[_0x3e330a(0x1b7)](_0x5c5b48,_0x3e330a(0x17b),()=>{const _0xcc341a=_0x3e330a,_0x251357=this[_0xcc341a(0x1b2)][_0xcc341a(0x17d)][_0xcc341a(0x1a1)][_0xcc341a(0x1ad)][_0xcc341a(0x19d)]();_0x251357&&_0x251357[_0xcc341a(0x1c6)](_0xcc341a(0x1b3))&&this[_0xcc341a(0x1b2)][_0xcc341a(0x18d)][_0xcc341a(0x188)][_0xcc341a(0x186)](_0xcc341a(0x1c2),()=>{const _0x28b41a=_0xcc341a;_0x13c7b4(this[_0x28b41a(0x1b2)],_0x251357);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x51d21a,ObservableMixin as _0x7490f2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4c5688}from'ckeditor5/src/ui.js';import _0x26d18b from'./uploadcareimageeditformview.js';import _0x26a553 from'../../utils/uploadutils.js';import _0x56783a from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x1e21da,getImageDimension as _0x3ec5f9}from'../../utils/editingutils.js';import{isAncestor as _0x2200e0}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x7490f2(){constructor(_0x10fcba,_0x98b843,_0x2aa844){super(),this['_editor']=_0x10fcba,this['_dialog']=_0x98b843,this['_imageElement']=_0x2aa844,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 _0x410c0b=this['_imageElement'],_0x1620f6=_0x410c0b['getAttribute']('uploadcareImageId'),_0x4516e1=_0x410c0b['getAttribute']('src');if(_0x1620f6)await this['_loadImageInfo'](_0x1620f6,_0x4516e1);else{if(this['_imageCache']['has'](_0x4516e1)){const _0x4424c0=this['_imageCache']['get'](_0x4516e1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4424c0['url'],this['imageDimension']=_0x4424c0['dimension'],this['imageId']=_0x4424c0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x18c2aa}=this['_editor'],t=_0x18c2aa['t'],_0x2904f5=new _0x26d18b(_0x18c2aa,this['imageStatus'],this['_attributes']);_0x2904f5['bind']('status')['to'](this,'imageStatus'),_0x2904f5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2904f5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2904f5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2904f5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x56783a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2904f5,'position':_0x4c5688['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2904f5['focus']();},'onHide':()=>{_0x2904f5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11fb1e=>!_0x2200e0(_0x11fb1e,_0x2904f5['element'])}});}['_loadImageInfo'](_0x7bd6a,_0x551604){return _0x26a553['getInfo'](_0x7bd6a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x45392a=>{const {width:_0x14fe94,height:_0xd0268b}=_0x45392a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x551604,this['imageDimension']={'width':_0x14fe94,'height':_0xd0268b},this['imageId']=_0x7bd6a;})['catch'](_0x490f5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x490f5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34399d,_0x5c145d){return this['_getImageAsFile'](_0x34399d)['then'](_0x4c5f6a=>_0x26a553['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5c145d['signal'],'file':_0x4c5f6a,'onProgress':_0x31547d=>{_0x31547d&&_0x31547d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31547d['value']));}}))['then'](_0x167a4c=>{const {width:_0x281b61,height:_0x37e8b3}=_0x167a4c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x167a4c['cdnUrl'],this['imageDimension']={'width':_0x281b61,'height':_0x37e8b3},this['imageId']=_0x167a4c['uuid'],this['imageUploadProgress']=null;const _0x1314fd=_0x34399d['getAttribute']('src');this['_imageCache']['set'](_0x1314fd,{'id':_0x167a4c['uuid'],'url':_0x167a4c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x119d33=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x119d33['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x38c994,_0x57e546){_0x38c994['on']('apply',(_0xf073d,_0x157a47)=>{this['_replaceImage'](_0x57e546,_0x157a47['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x38c994['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x38c994['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x312680,_0x178ebf,_0x563e64){const _0x3c6f27=this['_editor'],{width:_0x1249b,height:_0x37ab01}=_0x3ec5f9(_0x178ebf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x40664f,imageSources:_0xbdffe3}=_0x1e21da(_0x178ebf,_0x1249b);_0x3c6f27['model']['change'](_0xb6606e=>{if('$graveyard'===_0x312680['root']['rootName']){_0x3c6f27['execute']('insertImage',{'imageType':_0x312680['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x312680['getAttributes']()),'uploadcareImageId':_0x563e64,'src':_0x40664f,'sources':_0xbdffe3,'width':_0x1249b,'height':_0x37ab01}});const _0x319dce=_0x312680['getChildren']();_0x312680=_0x3c6f27['model']['document']['selection']['getSelectedElement']();for(const _0x500583 of _0x319dce)_0xb6606e['append'](_0xb6606e['cloneElement'](_0x500583),_0x312680);}else _0xb6606e['setSelection'](_0x312680,'on'),_0x3c6f27['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x312680['getAttributes']()),'uploadcareImageId':_0x563e64,'src':_0x40664f,'sources':_0xbdffe3,'width':_0x1249b,'height':_0x37ab01},_0x312680);_0xb6606e['setSelection'](_0x312680,'on');});}async['_getImageAsFile'](_0x57349d){const _0x3f9a40=_0x51d21a['window'],_0x46eabd=_0x51d21a['document']['location']['href'],_0x524e09=new _0x3f9a40['URL'](_0x57349d['getAttribute']('src'),_0x46eabd);if('data:'===_0x524e09['protocol']){const _0x395200=_0x524e09['href']['split'](','),_0x5c0688=_0x395200[0x0]['match'](/:(.*?);/)[0x1],_0x4c837e=_0x5c0688['split']('/')[0x1],_0x4e483c=_0x3f9a40['atob'](_0x395200[_0x395200['length']-0x1]);let _0x1f448d=_0x4e483c['length'];const _0x3c002d=new _0x3f9a40['Uint8Array'](_0x1f448d);for(;_0x1f448d--;)_0x3c002d[_0x1f448d]=_0x4e483c['charCodeAt'](_0x1f448d);return new _0x3f9a40['File']([_0x3c002d],'image.'+_0x4c837e,{'type':_0x5c0688});}const _0x2576ba=_0x524e09['href']['split']('/'),_0x5b26ed=_0x2576ba[_0x2576ba['length']-0x1],_0x54de59=_0x5b26ed['split']('.')[0x1];return _0x3f9a40['fetch'](_0x524e09['href'])['then'](_0x5e1ee1=>_0x5e1ee1['clone']()['blob']())['then'](_0x2d1992=>new _0x3f9a40['File']([_0x2d1992],_0x5b26ed,{'type':'image/'+_0x54de59}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x40461b,_0x1e0bfa){const _0x196996=_0x27dd,_0x17b58b=_0x40461b();while(!![]){try{const _0x2d74c6=parseInt(_0x196996(0x185))/0x1*(-parseInt(_0x196996(0x186))/0x2)+parseInt(_0x196996(0x188))/0x3*(parseInt(_0x196996(0x182))/0x4)+parseInt(_0x196996(0x18e))/0x5*(-parseInt(_0x196996(0x191))/0x6)+-parseInt(_0x196996(0x18d))/0x7+-parseInt(_0x196996(0x18f))/0x8*(-parseInt(_0x196996(0x184))/0x9)+parseInt(_0x196996(0x190))/0xa+parseInt(_0x196996(0x193))/0xb;if(_0x2d74c6===_0x1e0bfa)break;else _0x17b58b['push'](_0x17b58b['shift']());}catch(_0xaef5f){_0x17b58b['push'](_0x17b58b['shift']());}}}(_0x5a3c,0xbe8cb));import{View as _0x391f09}from'ckeditor5/src/ui.js';export default class tt extends _0x391f09{constructor(_0x2c421c,_0x3b906e){const _0x25483f=_0x27dd;super(_0x2c421c);const _0x50da0c=this[_0x25483f(0x18a)];this[_0x25483f(0x181)](_0x25483f(0x189),''),this[_0x25483f(0x187)]({'tag':_0x25483f(0x192),'attributes':{..._0x3b906e,'class':[_0x25483f(0x18b),_0x25483f(0x18c)],'ctx-name':_0x25483f(0x183),'cdn-url':_0x50da0c['to'](_0x25483f(0x189))}});}}function _0x27dd(_0x3dce3f,_0x4243da){const _0x5a3c4f=_0x5a3c();return _0x27dd=function(_0x27ddc3,_0x1f34b8){_0x27ddc3=_0x27ddc3-0x181;let _0x2c1c53=_0x5a3c4f[_0x27ddc3];return _0x2c1c53;},_0x27dd(_0x3dce3f,_0x4243da);}function _0x5a3c(){const _0x282538=['7368YeWAff','554500YsJhIS','8563770LMqugt','uc-cloud-image-editor','28350003LxgCtC','set','16tuxbIx','image-edit','13707KLDwYp','16968ePtKtn','160iitNsT','setTemplate','448059FtGsSM','imageSrc','bindTemplate','uc-light','ck-uploadcare-theme','7473144RrWNkl','5teWJSJ'];_0x5a3c=function(){return _0x282538;};return _0x5a3c();}
|
|
@@ -2,8 +2,11 @@
|
|
|
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';
|
|
5
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
10
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
8
11
|
/**
|
|
9
12
|
* 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{
|
|
23
|
+
import{ButtonView as _0x3be392,IconView as et,View as _0x5086f7}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x5086f7{constructor(_0x76c0cc){super(_0x76c0cc);const t=_0x76c0cc['t'];this['set']('errorType',null);const _0x150d98=new _0x3be392(_0x76c0cc);_0x150d98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x150d98['withText']=!0x0,_0x150d98['class']='ck-button-action',_0x150d98['on']('execute',()=>{this['fire']('retry');}),_0x150d98['bind']('isVisible')['to'](this,'errorType',_0xd8b394=>'NotFound'!==_0xd8b394);const _0x545e42=new et();_0x545e42['content']=at,_0x545e42['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31d72d=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':[_0x545e42,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31d72d['to']('errorType',_0x306163=>t('NotFound'!==_0x306163?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x150d98]},{'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 _0x5640e6,View as _0x31fe42}from'ckeditor5/src/ui.js';export default class ta extends _0x31fe42{constructor(_0x474c54){super(_0x474c54);const t=_0x474c54['t'],_0x342029=this['bindTemplate'],_0x3cf365=new _0x5640e6();_0x3cf365['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':[_0x3cf365,{'text':_0x342029['to']('imageUploadProgress',_0x3fe904=>t('Loading\x20image...')+'\x20('+(_0x3fe904||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x59e5(_0x2094c7,_0x17f3db){const _0x45b609=_0x45b6();return _0x59e5=function(_0x59e519,_0x1f69f9){_0x59e519=_0x59e519-0xd7;let _0x1994f7=_0x45b609[_0x59e519];return _0x1994f7;},_0x59e5(_0x2094c7,_0x17f3db);}const _0x3ae4e0=_0x59e5;(function(_0x25baab,_0x2adf1f){const _0x4523df=_0x59e5,_0x3086e1=_0x25baab();while(!![]){try{const _0xa50a89=-parseInt(_0x4523df(0x101))/0x1+-parseInt(_0x4523df(0x108))/0x2*(-parseInt(_0x4523df(0x109))/0x3)+-parseInt(_0x4523df(0x107))/0x4+parseInt(_0x4523df(0x10d))/0x5+-parseInt(_0x4523df(0xf4))/0x6+parseInt(_0x4523df(0xe0))/0x7*(parseInt(_0x4523df(0xe2))/0x8)+-parseInt(_0x4523df(0xef))/0x9*(-parseInt(_0x4523df(0xda))/0xa);if(_0xa50a89===_0x2adf1f)break;else _0x3086e1['push'](_0x3086e1['shift']());}catch(_0x1368a4){_0x3086e1['push'](_0x3086e1['shift']());}}}(_0x45b6,0x1e7e8));import{View as _0x286b7f}from'ckeditor5/src/ui.js';function _0x45b6(){const _0x1698db=['filter','_waitForImageEditorComponent','observe','disconnect','ck-reset_all-excluded','detail','_editingView','apply','focus','_errorView','getFocusableElement','error','2188179GObRcg','_addErrorViewListeners','element','toLowerCase','status','955194lfFxva','createCollection','querySelector','once','cancel','change:status','_items','uploading','retry','_addUploadcareImageEditorListeners','addEventListener','cdnUrl','clear','178424luJglb','target','fire','ck-uploadcare-form','div','ready','462888FjWiIK','333746oSFXGq','3YEAPpM','addedNodes','addMany','_setView','920fUnwGa','_loadingView','render','nodeName','10gatdPz','length','_focusableView','setTemplate','add','set','7pBoeZK','uc-cloud-image-editor','1344488GFriTs'];_0x45b6=function(){return _0x1698db;};return _0x45b6();}import _0x5ab519 from'./uploadcareimageeditformloadingview.js';import _0x235a59 from'./uploadcareimageeditformerrorview.js';import _0x2c1a91 from'./uploadcareimageeditformeditingview.js';import _0x36f25a from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x36f25a{constructor(_0x10839c,_0x372797,_0x1a4ec6){const _0x516748=_0x59e5;super(_0x10839c),this[_0x516748(0xfa)]=this[_0x516748(0xf5)](),this[_0x516748(0xd7)]=new _0x5ab519(_0x10839c),this[_0x516748(0xec)]=new _0x235a59(_0x10839c),this[_0x516748(0xe9)]=new _0x2c1a91(_0x10839c,_0x1a4ec6),this[_0x516748(0xdc)]=new _0x286b7f(_0x10839c),this[_0x516748(0xdc)][_0x516748(0xdd)](this[_0x516748(0xed)]()),this[_0x516748(0xdf)](_0x516748(0xf3),_0x372797),this[_0x516748(0xdd)]({'tag':_0x516748(0x105),'attributes':{'class':['ck',_0x516748(0xe7),_0x516748(0x104)],'tabindex':'-1'},'children':this[_0x516748(0xfa)]}),this[_0x516748(0x10c)](),this[_0x516748(0xf7)](_0x516748(0xd8),()=>{const _0x2cb962=_0x516748;this[_0x2cb962(0xe4)](this[_0x2cb962(0xf1)],_0x302670=>{const _0x5bde3c=_0x2cb962;this[_0x5bde3c(0xfd)](_0x302670);});}),this['on'](_0x516748(0xf9),()=>{const _0x12cbf2=_0x516748;this[_0x12cbf2(0x10c)]();}),this[_0x516748(0xf0)]();}[_0x3ae4e0(0xeb)](){const _0x26ec88=_0x3ae4e0;this[_0x26ec88(0xf1)][_0x26ec88(0xeb)]();}[_0x3ae4e0(0x10c)](){const _0x301bdc=_0x3ae4e0;switch(this[_0x301bdc(0xfa)][_0x301bdc(0x100)](),this[_0x301bdc(0xf3)]){case _0x301bdc(0xfb):this[_0x301bdc(0xfa)][_0x301bdc(0xde)](this[_0x301bdc(0xd7)]);break;case _0x301bdc(0xee):this[_0x301bdc(0xfa)][_0x301bdc(0xde)](this[_0x301bdc(0xec)]);break;case _0x301bdc(0x106):this[_0x301bdc(0xfa)][_0x301bdc(0x10b)]([this[_0x301bdc(0xe9)],this[_0x301bdc(0xdc)]]);}}[_0x3ae4e0(0xe4)](_0xec1c72,_0x58505b){const _0x5c57fe=_0x3ae4e0,_0x7f59dc=_0x5c57fe(0xe1),_0x507ef6=_0xec1c72[_0x5c57fe(0xf6)](_0x7f59dc);if(_0x507ef6)return _0x58505b(_0x507ef6);const _0x246eee=new MutationObserver(_0xc6f41d=>{const _0x2a3cf1=_0x5c57fe,_0x4dae30=_0xc6f41d[_0x2a3cf1(0xe3)](_0x59bbf5=>_0x59bbf5[_0x2a3cf1(0x102)]===_0xec1c72&&_0x59bbf5[_0x2a3cf1(0x10a)][_0x2a3cf1(0xdb)]>0x0&&_0x59bbf5[_0x2a3cf1(0x10a)][0x0][_0x2a3cf1(0xd9)][_0x2a3cf1(0xf2)]()===_0x7f59dc);_0x4dae30[_0x2a3cf1(0xdb)]&&(_0x246eee[_0x2a3cf1(0xe6)](),_0x58505b(_0x4dae30[0x0][_0x2a3cf1(0x10a)][0x0]));});_0x246eee[_0x5c57fe(0xe5)](_0xec1c72,{'childList':!0x0,'subtree':!0x0});}[_0x3ae4e0(0xfd)](_0x5c2a73){const _0x301e79=_0x3ae4e0;_0x5c2a73[_0x301e79(0xfe)](_0x301e79(0xea),_0x50c10f=>{const _0x56fe67=_0x301e79;this[_0x56fe67(0x103)](_0x56fe67(0xea),{'imageSrc':_0x50c10f[_0x56fe67(0xe8)][_0x56fe67(0xff)]});}),_0x5c2a73[_0x301e79(0xfe)](_0x301e79(0xf8),()=>{const _0x398f74=_0x301e79;this[_0x398f74(0x103)](_0x398f74(0xf8));});}[_0x3ae4e0(0xf0)](){const _0x41bfb8=_0x3ae4e0;this[_0x41bfb8(0xec)]['on'](_0x41bfb8(0xfc),()=>{const _0x29869d=_0x41bfb8;this[_0x29869d(0x103)](_0x29869d(0xfc));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa452ae=_0x285f;(function(_0x5b27c9,_0x50c067){const _0x268384=_0x285f,_0x3a1d0f=_0x5b27c9();while(!![]){try{const _0x117397=-parseInt(_0x268384(0x1e0))/0x1*(parseInt(_0x268384(0x1e2))/0x2)+-parseInt(_0x268384(0x1e4))/0x3*(parseInt(_0x268384(0x1f2))/0x4)+-parseInt(_0x268384(0x1eb))/0x5*(parseInt(_0x268384(0x1dd))/0x6)+-parseInt(_0x268384(0x1fa))/0x7+-parseInt(_0x268384(0x1ef))/0x8*(-parseInt(_0x268384(0x1e3))/0x9)+parseInt(_0x268384(0x1f9))/0xa*(parseInt(_0x268384(0x1ed))/0xb)+parseInt(_0x268384(0x1e9))/0xc;if(_0x117397===_0x50c067)break;else _0x3a1d0f['push'](_0x3a1d0f['shift']());}catch(_0x4d23e0){_0x3a1d0f['push'](_0x3a1d0f['shift']());}}}(_0x599e,0xbdf99));import{Command as _0xc316f2}from'ckeditor5/src/core.js';import{Dialog as _0x478ade}from'ckeditor5/src/ui.js';function _0x599e(){const _0x426178=['_isEditable','isActive','11850gJjbUw','getSelectedElement','element','304576MnPNDT','imageEditController','4JxiqDj','45rHdEBt','77397WZSmNp','bind','get','plugins','model','28599372UHwFMO','uploadcare.allowExternalImagesEditing','1165xPdRXO','config','11zzqvzo','set','1392296dneFub','document','imageBlock','140JpSVYV','refresh','execute','unbind','requires','imageInline','editor','9904360BqEuIi','10454311PzIaAs','isEnabled','selection'];_0x599e=function(){return _0x426178;};return _0x599e();}import _0x1a0e23 from'./ui/uploadcareimageeditcontroller.js';function _0x285f(_0x47900b,_0x2c9198){const _0x599edd=_0x599e();return _0x285f=function(_0x285ffb,_0x56c0e4){_0x285ffb=_0x285ffb-0x1dd;let _0x46d634=_0x599edd[_0x285ffb];return _0x46d634;},_0x285f(_0x47900b,_0x2c9198);}import{createEditabilityChecker as _0x14e996}from'../utils/editingutils.js';export default class V extends _0xc316f2{static get[_0xa452ae(0x1f6)](){return[_0x478ade];}constructor(_0x49d349){const _0x55b7a4=_0xa452ae;super(_0x49d349),this[_0x55b7a4(0x1e1)]=void 0x0,this[_0x55b7a4(0x1fd)]=_0x14e996(_0x49d349[_0x55b7a4(0x1ec)][_0x55b7a4(0x1e6)](_0x55b7a4(0x1ea))||[]),this[_0x55b7a4(0x1ee)]({'isActive':!0x1});}[_0xa452ae(0x1f3)](){const _0x49429c=_0xa452ae,_0x13539e=this[_0x49429c(0x1f8)][_0x49429c(0x1e8)][_0x49429c(0x1f0)][_0x49429c(0x1fc)][_0x49429c(0x1de)]();this[_0x49429c(0x1fb)]=this[_0x49429c(0x1fd)](_0x13539e);}[_0xa452ae(0x1f4)](){const _0x1f03f5=_0xa452ae;this[_0x1f03f5(0x1e1)]&&(this[_0x1f03f5(0x1f5)](_0x1f03f5(0x1fe)),this[_0x1f03f5(0x1e1)]=void 0x0);const _0x2e99d4=this[_0x1f03f5(0x1f8)][_0x1f03f5(0x1e8)][_0x1f03f5(0x1f0)][_0x1f03f5(0x1fc)][_0x1f03f5(0x1de)]();_0x2e99d4&&(_0x2e99d4['is'](_0x1f03f5(0x1df),_0x1f03f5(0x1f1))||_0x2e99d4['is'](_0x1f03f5(0x1df),_0x1f03f5(0x1f7)))&&(this[_0x1f03f5(0x1e1)]=new _0x1a0e23(this[_0x1f03f5(0x1f8)],this[_0x1f03f5(0x1f8)][_0x1f03f5(0x1e7)][_0x1f03f5(0x1e6)](_0x478ade),_0x2e99d4),this[_0x1f03f5(0x1e5)](_0x1f03f5(0x1fe))['to'](this[_0x1f03f5(0x1e1)],_0x1f03f5(0x1fe)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24e817=_0x2b5d;(function(_0x20089f,_0x2b3a85){const _0x49814b=_0x2b5d,_0x37d2ea=_0x20089f();while(!![]){try{const _0x44be4f=parseInt(_0x49814b(0x1d1))/0x1*(parseInt(_0x49814b(0x1cb))/0x2)+parseInt(_0x49814b(0x1d6))/0x3*(-parseInt(_0x49814b(0x1c4))/0x4)+-parseInt(_0x49814b(0x1d3))/0x5+-parseInt(_0x49814b(0x1ca))/0x6+parseInt(_0x49814b(0x1d2))/0x7+parseInt(_0x49814b(0x1cf))/0x8*(parseInt(_0x49814b(0x1cd))/0x9)+parseInt(_0x49814b(0x1d0))/0xa;if(_0x44be4f===_0x2b3a85)break;else _0x37d2ea['push'](_0x37d2ea['shift']());}catch(_0x4347c4){_0x37d2ea['push'](_0x37d2ea['shift']());}}}(_0x31a4,0x70656));function _0x2b5d(_0x4feae4,_0x2e781f){const _0x31a497=_0x31a4();return _0x2b5d=function(_0x2b5d0a,_0x295d97){_0x2b5d0a=_0x2b5d0a-0x1c1;let _0x46138e=_0x31a497[_0x2b5d0a];return _0x46138e;},_0x2b5d(_0x4feae4,_0x2e781f);}import{Plugin as _0x342eb3}from'ckeditor5/src/core.js';import{Notification as _0x16e69a}from'ckeditor5/src/ui.js';import _0x2dd23f from'./uploadcareimageeditcommand.js';import _0xffd3ca from'./uploadcareimagereplacecommand.js';function _0x31a4(){const _0x3b540a=['196888fnWDyZ','12831960zYcgXC','2cDqANI','6162387BIxvKi','4190125ENjDWS','add','ImageUtils','35031iuzqQI','commands','uploadcareImageReplace','requires','148mozRJG','UploadcareImageEditEditing','init','isPremiumPlugin','ImageEditing','isOfficialPlugin','5034216mFYAYZ','332114joIMqQ','uploadcareImageEdit','27GwEqIT','pluginName'];_0x31a4=function(){return _0x3b540a;};return _0x31a4();}import _0x14f1c3 from'../uploadcareediting.js';export default class m extends _0x342eb3{static get[_0x24e817(0x1ce)](){const _0x907ec1=_0x24e817;return _0x907ec1(0x1c5);}static get[_0x24e817(0x1c3)](){const _0x59d8d0=_0x24e817;return[_0x14f1c3,_0x16e69a,_0x59d8d0(0x1d5),_0x59d8d0(0x1c8)];}static get[_0x24e817(0x1c9)](){return!0x0;}static get[_0x24e817(0x1c7)](){return!0x0;}[_0x24e817(0x1c6)](){const _0x29e6bb=_0x24e817,{editor:_0x2d0e6e}=this;_0x2d0e6e[_0x29e6bb(0x1c1)][_0x29e6bb(0x1d4)](_0x29e6bb(0x1cc),new _0x2dd23f(_0x2d0e6e)),_0x2d0e6e[_0x29e6bb(0x1c1)][_0x29e6bb(0x1d4)](_0x29e6bb(0x1c2),new _0xffd3ca(_0x2d0e6e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x546880}from'ckeditor5/src/core.js';import{ButtonView as _0x3a9f1c}from'ckeditor5/src/ui.js';import{createElement as _0xb0df8}from'ckeditor5/src/utils.js';import _0x48ac9d from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x546880{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x13a2bc=this['editor'];_0x13a2bc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x330b08=>{const _0x21da10=_0x13a2bc['commands']['get']('uploadcareImageEdit'),_0x3a1a93=new _0x3a9f1c(_0x330b08),t=_0x330b08['t'];return _0x3a1a93['set']({'icon':_0x48ac9d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a1a93['bind']('isEnabled')['to'](_0x21da10),_0x3a1a93['bind']('isOn')['to'](_0x21da10,'isActive'),this['listenTo'](_0x3a1a93,'execute',()=>{_0x13a2bc['execute']('uploadcareImageEdit'),_0x13a2bc['editing']['view']['focus']();}),_0x3a1a93;}),this['_initConfig']();}['_initConfig'](){const _0x4eaca6=_0xb0df8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4eaca6),this['listenTo'](this['editor'],'destroy',()=>{_0x4eaca6['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x219d(){const _0x5061ea=['change','removeAttribute','isEnabled','execute','document','2mFSJXj','refresh','430355tgBWYh','8zBHHIQ','4824519HYYMIM','630240jqCUSa','editor','srcset','imageBlock','2754920totPPG','model','700902hTidvj','5146464YTlNOH','10809945wEAuir','element','selection','imageInline','sizes','setAttributes','getSelectedElement'];_0x219d=function(){return _0x5061ea;};return _0x219d();}const _0x1393e2=_0xdfd2;(function(_0x1e7673,_0x3cd46d){const _0x2074db=_0xdfd2,_0x514962=_0x1e7673();while(!![]){try{const _0x49ec42=parseInt(_0x2074db(0x17a))/0x1+-parseInt(_0x2074db(0x178))/0x2*(-parseInt(_0x2074db(0x16a))/0x3)+parseInt(_0x2074db(0x17b))/0x4*(-parseInt(_0x2074db(0x168))/0x5)+-parseInt(_0x2074db(0x164))/0x6+-parseInt(_0x2074db(0x163))/0x7+parseInt(_0x2074db(0x16b))/0x8+parseInt(_0x2074db(0x16c))/0x9;if(_0x49ec42===_0x3cd46d)break;else _0x514962['push'](_0x514962['shift']());}catch(_0x3aef75){_0x514962['push'](_0x514962['shift']());}}}(_0x219d,0x95751));import{Command as _0x4afb00}from'ckeditor5/src/core.js';function _0xdfd2(_0x454b70,_0x399198){const _0x219d15=_0x219d();return _0xdfd2=function(_0xdfd270,_0x5b2517){_0xdfd270=_0xdfd270-0x163;let _0x4efb63=_0x219d15[_0xdfd270];return _0x4efb63;},_0xdfd2(_0x454b70,_0x399198);}export default class X extends _0x4afb00{[_0x1393e2(0x179)](){const _0x8edd6f=_0x1393e2,_0x4749d9=this[_0x8edd6f(0x165)][_0x8edd6f(0x169)][_0x8edd6f(0x177)][_0x8edd6f(0x16e)][_0x8edd6f(0x172)]();this[_0x8edd6f(0x175)]=Boolean(_0x4749d9&&(_0x4749d9['is'](_0x8edd6f(0x16d),_0x8edd6f(0x167))||_0x4749d9['is'](_0x8edd6f(0x16d),_0x8edd6f(0x16f))));}[_0x1393e2(0x176)](_0x1e1a49){const _0x40910d=_0x1393e2,_0x1faab0=this[_0x40910d(0x165)][_0x40910d(0x169)][_0x40910d(0x177)][_0x40910d(0x16e)][_0x40910d(0x172)]();this[_0x40910d(0x165)][_0x40910d(0x169)][_0x40910d(0x173)](_0x361e9d=>{const _0x5513e4=_0x40910d;_0x361e9d[_0x5513e4(0x171)](_0x1e1a49,_0x1faab0),_0x361e9d[_0x5513e4(0x174)](_0x5513e4(0x166),_0x1faab0),_0x361e9d[_0x5513e4(0x174)](_0x5513e4(0x170),_0x1faab0);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11dbcf=_0x2270;(function(_0x3da842,_0x1587eb){var _0x52159b=_0x2270,_0xef036b=_0x3da842();while(!![]){try{var _0x2428e8=-parseInt(_0x52159b(0x125))/0x1*(parseInt(_0x52159b(0x12c))/0x2)+-parseInt(_0x52159b(0x12f))/0x3*(parseInt(_0x52159b(0x130))/0x4)+-parseInt(_0x52159b(0x124))/0x5+-parseInt(_0x52159b(0x132))/0x6*(parseInt(_0x52159b(0x12b))/0x7)+parseInt(_0x52159b(0x12d))/0x8+-parseInt(_0x52159b(0x12e))/0x9*(parseInt(_0x52159b(0x131))/0xa)+parseInt(_0x52159b(0x129))/0xb;if(_0x2428e8===_0x1587eb)break;else _0xef036b['push'](_0xef036b['shift']());}catch(_0x29b873){_0xef036b['push'](_0xef036b['shift']());}}}(_0x3152,0x1bc9c));function _0x2270(_0x450453,_0xd81604){var _0x3152b0=_0x3152();return _0x2270=function(_0x227091,_0x15ba15){_0x227091=_0x227091-0x124;var _0x4dbd57=_0x3152b0[_0x227091];return _0x4dbd57;},_0x2270(_0x450453,_0xd81604);}import{Plugin as _0x305547}from'ckeditor5/src/core.js';function _0x3152(){var _0x22149f=['4QKiTzw','1510fRBPDW','586614nFLVsX','UploadcareImageEdit','676580NMJoFc','5578zwdLHB','pluginName','isOfficialPlugin','requires','6495599NZuDVK','isPremiumPlugin','7htFEwt','8BzVmxQ','194864NLlMlE','6237fArzvn','423021BbhEOO'];_0x3152=function(){return _0x22149f;};return _0x3152();}import _0x5d5430 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1a2dce from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x305547{static get[_0x11dbcf(0x126)](){var _0x3bdf38=_0x11dbcf;return _0x3bdf38(0x133);}static get[_0x11dbcf(0x128)](){return[_0x5d5430,_0x1a2dce];}static get[_0x11dbcf(0x127)](){return!0x0;}static get[_0x11dbcf(0x12a)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22ce0f=_0x46d8;(function(_0x5c73e6,_0x4b928c){const _0x9798ae=_0x46d8,_0x39ddf4=_0x5c73e6();while(!![]){try{const _0xb40c29=-parseInt(_0x9798ae(0xe2))/0x1+-parseInt(_0x9798ae(0xfb))/0x2*(-parseInt(_0x9798ae(0xe9))/0x3)+-parseInt(_0x9798ae(0xfe))/0x4*(parseInt(_0x9798ae(0xb0))/0x5)+parseInt(_0x9798ae(0xfd))/0x6*(parseInt(_0x9798ae(0xed))/0x7)+parseInt(_0x9798ae(0xf8))/0x8+-parseInt(_0x9798ae(0xbb))/0x9*(-parseInt(_0x9798ae(0xc0))/0xa)+parseInt(_0x9798ae(0xd2))/0xb*(parseInt(_0x9798ae(0xd3))/0xc);if(_0xb40c29===_0x4b928c)break;else _0x39ddf4['push'](_0x39ddf4['shift']());}catch(_0x1a6dc2){_0x39ddf4['push'](_0x39ddf4['shift']());}}}(_0x4fc8,0x56bba));function _0x4fc8(){const _0x305f6e=['uploadcareLicenseKeyNotAllowed','121194WNthqG','12xqjiMm','entries','plugins','licenseKey','isOfficialPlugin','assetManager','807685PqyrBs','Local','uploadcareLicenseKeyExpired','_licenseKeyCheckInterval','GPhotos','imageUpload','commands','uploadcareLicenseKeyDomainLimit','trialLimit','_createButton','init','45DEYzdR','uploadcare.uploader.sourceList','map','usageLimit','uploadcareLicenseKeyValid','802000DjiQhl','isEnabled','featureNotAllowed','get','Insert','execute','editor','url','_createMenuBarButtons','OneDrive','shortText','isImageSelected','config','Replace','_getIntegrationKey','bind','destroy','forEach','15224mnPhVP','1596ahlhYH','afterInit','Facebook','expired','uploadcareLicenseKeyTrialLimit','evaluationLimit','text','uploadcareLicenseKeyUsageLimit','Dropbox','type','tooltip','locale','pluginName','icon','isPremiumPlugin','292719IfUsrh','_showLicenseError','uploadcareLicenseKeyEvaluationLimit','domainLimit','URL','uploadcare','uploadcareLicenseKeyInvalid','32007hfqQxg','upload','Uploadcare','push','49YNBTcv','registerIntegration','UploadcareUI','withText','reduce','_createToolbarButton','_createDropdownButtons','_normalizeConfigSourceList','has','label','ImageInsertUI','432368uJOSAt','GDrive','invalid','66tKKbbt'];_0x4fc8=function(){return _0x305f6e;};return _0x4fc8();}import{Plugin as _0x30e2bd,icons as _0xe9dd75}from'ckeditor5/src/core.js';function _0x46d8(_0x3f10f2,_0x5412e5){const _0x4fc8a7=_0x4fc8();return _0x46d8=function(_0x46d834,_0x1dc8ff){_0x46d834=_0x46d834-0xaf;let _0x5de060=_0x4fc8a7[_0x46d834];return _0x5de060;},_0x46d8(_0x3f10f2,_0x5412e5);}import{ButtonView as _0x491a0c,MenuBarMenuListItemButtonView as _0x438cca}from'ckeditor5/src/ui.js';import _0x49efb0 from'../theme/icons/dropbox.svg';import _0x1309a3 from'../theme/icons/facebook.svg';import _0x5aae18 from'../theme/icons/google-drive.svg';import _0x1d1870 from'../theme/icons/google-photos.svg';import _0x2c910b from'../theme/icons/link.svg';import _0x407ff5 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x114512}from'./uploadcareconfig.js';import{getTranslation as _0x48c71e}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 _0x30e2bd{static get[_0x22ce0f(0xdf)](){const _0x2d9a6e=_0x22ce0f;return _0x2d9a6e(0xef);}static get[_0x22ce0f(0x102)](){return!0x0;}static get[_0x22ce0f(0xe1)](){return!0x0;}[_0x22ce0f(0xba)](){const _0x349966=_0x22ce0f;this[_0x349966(0x101)]=this[_0x349966(0xc6)][_0x349966(0xcc)][_0x349966(0xc3)](_0x349966(0x101));const _0x594c4f=this[_0x349966(0xc6)];this[_0x349966(0xb3)]=setInterval(()=>{const _0x5e06bb=_0x349966;let _0x372730;for(const _0x43d0cf in _0x594c4f){const _0x3e494c=_0x43d0cf,_0xadffac=_0x594c4f[_0x3e494c];if(_0x5e06bb(0xbf)==_0xadffac||_0x5e06bb(0xe8)==_0xadffac||_0x5e06bb(0xb2)==_0xadffac||_0x5e06bb(0xb7)==_0xadffac||_0x5e06bb(0xfc)==_0xadffac||_0x5e06bb(0xe4)==_0xadffac||_0x5e06bb(0xd7)==_0xadffac||_0x5e06bb(0xda)==_0xadffac){delete _0x594c4f[_0x3e494c],_0x372730=_0xadffac,clearInterval(this[_0x5e06bb(0xb3)]),this[_0x5e06bb(0xb3)]=void 0x0;break;}}_0x5e06bb(0xe8)==_0x372730&&_0x594c4f[_0x5e06bb(0xe3)](_0x5e06bb(0xfa)),_0x5e06bb(0xb2)==_0x372730&&_0x594c4f[_0x5e06bb(0xe3)](_0x5e06bb(0xd6)),_0x5e06bb(0xb7)==_0x372730&&_0x594c4f[_0x5e06bb(0xe3)](_0x5e06bb(0xe5)),_0x5e06bb(0xfc)==_0x372730&&_0x594c4f[_0x5e06bb(0xe3)](_0x5e06bb(0xc2),_0x5e06bb(0xeb)),_0x5e06bb(0xe4)==_0x372730&&_0x594c4f[_0x5e06bb(0xe3)](_0x5e06bb(0xd8)),_0x5e06bb(0xd7)==_0x372730&&_0x594c4f[_0x5e06bb(0xe3)](_0x5e06bb(0xb8)),_0x5e06bb(0xda)==_0x372730&&_0x594c4f[_0x5e06bb(0xe3)](_0x5e06bb(0xbe));},0x3e8);}[_0x22ce0f(0xd4)](){const _0x3848a3=_0x22ce0f,{editor:_0xa3427c}=this,_0x441eb4=_0xa3427c[_0x3848a3(0xb6)][_0x3848a3(0xc3)](_0x3848a3(0xe7));if(!_0x441eb4)return;const _0x31d686=this[_0x3848a3(0xf4)](_0xa3427c[_0x3848a3(0xcc)][_0x3848a3(0xc3)](_0x3848a3(0xbc)))[_0x3848a3(0xf1)]((_0x297a00,_0x5c14ac)=>{const _0x3058a9=_0x3848a3,_0x7df493=this[_0x3058a9(0xce)](_0x5c14ac[_0x3058a9(0xdc)]);return _0x297a00[_0x7df493]||(_0x297a00[_0x7df493]=[]),_0x297a00[_0x7df493][_0x3058a9(0xec)](_0x5c14ac),_0x297a00;},{});_0xa3427c[_0x3848a3(0x100)][_0x3848a3(0xf5)](_0x3848a3(0xf7))&&_0xa3427c[_0x3848a3(0xb6)][_0x3848a3(0xc3)](_0x3848a3(0xe7))&&Object[_0x3848a3(0xff)](_0x31d686)[_0x3848a3(0xd1)](([_0x1b6f17,_0xc2cfd])=>{const _0x168fde=_0x3848a3;_0xa3427c[_0x168fde(0x100)][_0x168fde(0xc3)](_0x168fde(0xf7))[_0x168fde(0xee)]({'name':_0x1b6f17,'observable':()=>_0x441eb4,'buttonViewCreator':()=>this[_0x168fde(0xf2)](_0xc2cfd),'formViewCreator':()=>this[_0x168fde(0xf3)](_0xc2cfd),'menuBarButtonViewCreator':()=>this[_0x168fde(0xc8)](_0xc2cfd),'override':_0x168fde(0xaf)!==_0x1b6f17});});}[_0x22ce0f(0xd0)](){const _0x3d3666=_0x22ce0f;super[_0x3d3666(0xd0)](),this[_0x3d3666(0xb3)]&&clearInterval(this[_0x3d3666(0xb3)]);}[_0x22ce0f(0xf4)](_0x4e2b91){const _0x355b09=_0x22ce0f,{locale:_0x420e31}=this[_0x355b09(0xc6)];return _0x4e2b91[_0x355b09(0xbd)](_0x44cb8b=>{const _0xeeb03b=_0x355b09,_0x2d9b9b=_0x48c71e(_0x420e31,_0x44cb8b,_0xeeb03b(0xc4));switch(_0x44cb8b){case _0x114512[_0xeeb03b(0xb1)]:return{'icon':_0xe9dd75[_0xeeb03b(0xb5)],'type':_0x114512[_0xeeb03b(0xb1)],..._0x2d9b9b};case _0x114512[_0xeeb03b(0xe6)]:return{'icon':_0x2c910b,'type':_0x114512[_0xeeb03b(0xe6)],..._0x2d9b9b};case _0x114512[_0xeeb03b(0xdb)]:return{'icon':_0x49efb0,'type':_0x114512[_0xeeb03b(0xdb)],..._0x2d9b9b};case _0x114512[_0xeeb03b(0xd5)]:return{'icon':_0x1309a3,'type':_0x114512[_0xeeb03b(0xd5)],..._0x2d9b9b};case _0x114512[_0xeeb03b(0xf9)]:return{'icon':_0x5aae18,'type':_0x114512[_0xeeb03b(0xf9)],..._0x2d9b9b};case _0x114512[_0xeeb03b(0xb4)]:return{'icon':_0x1d1870,'type':_0x114512[_0xeeb03b(0xb4)],..._0x2d9b9b};case _0x114512[_0xeeb03b(0xc9)]:return{'icon':_0x407ff5,'type':_0x114512[_0xeeb03b(0xc9)],..._0x2d9b9b};}});}[_0x22ce0f(0xce)](_0x2bc204){const _0x2a9d98=_0x22ce0f;switch(_0x2bc204){case _0x114512[_0x2a9d98(0xb1)]:return _0x2a9d98(0xea);case _0x114512[_0x2a9d98(0xe6)]:return _0x2a9d98(0xc7);default:return _0x2a9d98(0xaf);}}[_0x22ce0f(0xb9)](_0x6b4f20,_0x4d37cf){const _0x36b8ad=_0x22ce0f,_0x50d223=this[_0x36b8ad(0xc6)],_0x57897c=new _0x6b4f20(_0x50d223[_0x36b8ad(0xde)]),_0x43c1c7=_0x50d223[_0x36b8ad(0xb6)][_0x36b8ad(0xc3)](_0x36b8ad(0xe7));return _0x57897c[_0x36b8ad(0xcf)](_0x36b8ad(0xc1))['to'](_0x43c1c7),_0x57897c['on'](_0x36b8ad(0xc5),()=>{const _0x6e05c2=_0x36b8ad;_0x43c1c7[_0x6e05c2(0xc5)](_0x4d37cf);}),_0x57897c;}[_0x22ce0f(0xf2)](_0x335849){const _0x51f1d5=_0x22ce0f,{locale:_0x44ec25}=this[_0x51f1d5(0xc6)],_0x4d3f3d=this[_0x51f1d5(0xc6)][_0x51f1d5(0x100)][_0x51f1d5(0xc3)](_0x51f1d5(0xf7)),_0x2e7f39=_0x335849[0x0],_0xc55b2a=this[_0x51f1d5(0xb9)](_0x491a0c,_0x2e7f39[_0x51f1d5(0xdc)]);return _0xc55b2a[_0x51f1d5(0xe0)]=_0x2e7f39[_0x51f1d5(0xe0)],_0xc55b2a[_0x51f1d5(0xcf)](_0x51f1d5(0xf6))['to'](_0x4d3f3d,_0x51f1d5(0xcb),_0x7d0cb1=>_0x48c71e(_0x44ec25,_0x2e7f39[_0x51f1d5(0xdc)],_0x7d0cb1?_0x51f1d5(0xcd):_0x51f1d5(0xc4))[_0x51f1d5(0xd9)]),_0xc55b2a[_0x51f1d5(0xdd)]=!0x0,_0xc55b2a;}[_0x22ce0f(0xf3)](_0x5dabab){const _0x5ea069=_0x22ce0f,{locale:_0x2157f9}=this[_0x5ea069(0xc6)],_0x3516f4=this[_0x5ea069(0xc6)][_0x5ea069(0x100)][_0x5ea069(0xc3)](_0x5ea069(0xf7));return _0x5dabab[_0x5ea069(0xbd)](_0x25fbee=>{const _0x571860=_0x5ea069,_0x5d44c4=this[_0x571860(0xb9)](_0x491a0c,_0x25fbee[_0x571860(0xdc)]);return _0x5d44c4[_0x571860(0xf0)]=!0x0,_0x5d44c4[_0x571860(0xe0)]=_0x25fbee[_0x571860(0xe0)],_0x5d44c4[_0x571860(0xcf)](_0x571860(0xf6))['to'](_0x3516f4,_0x571860(0xcb),_0x66ccd8=>_0x48c71e(_0x2157f9,_0x25fbee[_0x571860(0xdc)],_0x66ccd8?_0x571860(0xcd):_0x571860(0xc4))[_0x571860(0xd9)]),_0x5d44c4;});}[_0x22ce0f(0xc8)](_0x2b5db0){const _0x40d6be=_0x22ce0f;return _0x2b5db0[_0x40d6be(0xbd)](_0x755070=>{const _0x29e95c=_0x40d6be,_0x587aa8=this[_0x29e95c(0xb9)](_0x438cca,_0x755070[_0x29e95c(0xdc)]);return _0x587aa8[_0x29e95c(0xe0)]=_0x755070[_0x29e95c(0xe0)],_0x587aa8[_0x29e95c(0xf6)]=_0x755070[_0x29e95c(0xca)],_0x587aa8;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1a4337}from'ckeditor5/src/core.js';import{FileRepository as _0x562144}from'ckeditor5/src/upload.js';import _0x5c4924 from'./uploadcareediting.js';import _0x330c3e from'./utils/uploadutils.js';import{getImageUrls as _0x419bc8}from'./utils/editingutils.js';export default class f extends _0x1a4337{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x562144,_0x5c4924];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x177d09=this['editor'];if(!!!_0x177d09['config']['get']('uploadcare'))return;_0x177d09['plugins']['get'](_0x562144)['createUploadAdapter']=_0x1ef094=>new E(_0x1ef094,_0x177d09),_0x177d09['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xac91b2,{imageElement:_0x46dde3,data:_0x504893})=>{_0x177d09['model']['change'](_0x153dbc=>{_0x153dbc['setAttribute']('uploadcareImageId',_0x504893['uploadcareImageId'],_0x46dde3);});});}}class E{constructor(_0x35852c,_0x52544f){this['loader']=_0x35852c,this['editor']=_0x52544f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x592c6d=this['editor']['config']['get']('uploadcare.pubkey'),_0x131d29=await this['loader']['file'];return _0x330c3e['upload']({'file':_0x131d29,'publicKey':_0x592c6d,'signal':this['controller']['signal'],'onProgress':_0x1d09fc=>{_0x1d09fc&&_0x1d09fc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d09fc['value']);}})['then'](async _0x10b05b=>{const {imageFallbackUrl:_0xeebcae,imageSources:_0x4958db}=_0x419bc8(_0x10b05b['cdnUrl'],_0x10b05b['imageInfo']['width']);return{'uploadcareImageId':_0x10b05b['uuid'],'default':_0xeebcae,'sources':_0x4958db};})['catch'](()=>{const _0x4aa35b=t('Cannot\x20upload\x20file:')+('\x20'+_0x131d29['name']+'.');return Promise['reject'](_0x4aa35b);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x809548}from'../uploadcareconfig.js';export function getTranslation(_0x5c727e,_0x27d6ed,_0x8b2eb0){const t=_0x5c727e['t'],_0x258e02=_0x5c727e['t'];switch(_0x27d6ed){case _0x809548['Local']:return{'text':_0x258e02('Insert'===_0x8b2eb0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x258e02('From\x20computer')};case _0x809548['URL']:return{'text':'Insert'===_0x8b2eb0?_0x258e02('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x258e02('Via\x20URL')};case _0x809548['Dropbox']:return{'text':t('Insert'===_0x8b2eb0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x809548['Facebook']:return{'text':t('Insert'===_0x8b2eb0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x809548['GDrive']:return{'text':t('Insert'===_0x8b2eb0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x809548['GPhotos']:return{'text':t('Insert'===_0x8b2eb0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x809548['OneDrive']:return{'text':t('Insert'===_0x8b2eb0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x27d6ed;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xd4c027=_0x275b;(function(_0x48db83,_0x3d1fd4){var _0x376aa0=_0x275b,_0x236513=_0x48db83();while(!![]){try{var _0x2fcec6=-parseInt(_0x376aa0(0x16e))/0x1+parseInt(_0x376aa0(0x169))/0x2*(-parseInt(_0x376aa0(0x165))/0x3)+-parseInt(_0x376aa0(0x16b))/0x4*(parseInt(_0x376aa0(0x166))/0x5)+-parseInt(_0x376aa0(0x161))/0x6*(parseInt(_0x376aa0(0x168))/0x7)+-parseInt(_0x376aa0(0x171))/0x8*(-parseInt(_0x376aa0(0x163))/0x9)+parseInt(_0x376aa0(0x167))/0xa+parseInt(_0x376aa0(0x164))/0xb;if(_0x2fcec6===_0x3d1fd4)break;else _0x236513['push'](_0x236513['shift']());}catch(_0x553fbf){_0x236513['push'](_0x236513['shift']());}}}(_0x4ffc,0x9abde));import{FocusTracker as _0x4c2918}from'ckeditor5/src/utils.js';import{View as _0x5d6994,FocusCycler as _0x342c74}from'ckeditor5/src/ui.js';function _0x275b(_0x148d95,_0x6a97e3){var _0x4ffc20=_0x4ffc();return _0x275b=function(_0x275bfe,_0xff1151){_0x275bfe=_0x275bfe-0x160;var _0x5b8297=_0x4ffc20[_0x275bfe];return _0x5b8297;},_0x275b(_0x148d95,_0x6a97e3);}import'../../theme/uploadcare-form.css';export default class q extends _0x5d6994{constructor(_0x2a9bf3){var _0x1f0b38=_0x275b;super(_0x2a9bf3),this[_0x1f0b38(0x16d)]=new _0x4c2918(),this[_0x1f0b38(0x160)]=new _0x342c74({'focusables':this[_0x1f0b38(0x162)](),'focusTracker':this[_0x1f0b38(0x16d)]});}[_0xd4c027(0x170)](){var _0x498e04=_0xd4c027;return{'tag':_0x498e04(0x173),'attributes':{'aria-hidden':_0x498e04(0x16a),'tabindex':'0'},'on':{'focus':this[_0x498e04(0x172)]['to'](()=>{var _0x19b7b4=_0x498e04;this[_0x19b7b4(0x160)][_0x19b7b4(0x16c)](_0x19b7b4(0x16f));})}};}}function _0x4ffc(){var _0x153198=['23360876JlWXVM','113121obKwGD','2475rKDKjy','12325450nWUrGL','396431JaXqvG','60qsEwsP','true','820DCbZkt','fire','focusTracker','1254500yiQACX','forwardCycle','getFocusableElement','23504xxLmba','bindTemplate','div','focusCycler','132NgcXhQ','createCollection','3096rEleFz'];_0x4ffc=function(){return _0x153198;};return _0x4ffc();}
|