@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251228.0 → 0.0.0-nightly-next-20251228.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2805cf=_0x12e0;(function(_0x368549,_0x3ba0be){const _0x82a97c=_0x12e0,_0x32646a=_0x368549();while(!![]){try{const _0x3606dd=parseInt(_0x82a97c(0x132))/0x1+parseInt(_0x82a97c(0x124))/0x2+parseInt(_0x82a97c(0x139))/0x3+-parseInt(_0x82a97c(0x11e))/0x4*(parseInt(_0x82a97c(0x14c))/0x5)+-parseInt(_0x82a97c(0x136))/0x6*(-parseInt(_0x82a97c(0x105))/0x7)+parseInt(_0x82a97c(0x10f))/0x8+parseInt(_0x82a97c(0x143))/0x9*(-parseInt(_0x82a97c(0x131))/0xa);if(_0x3606dd===_0x3ba0be)break;else _0x32646a['push'](_0x32646a['shift']());}catch(_0x4617b5){_0x32646a['push'](_0x32646a['shift']());}}}(_0x8a30,0xd05ea));import{Plugin as _0x33ed41}from'ckeditor5/src/core.js';import{Dialog as _0x5b5c1a}from'ckeditor5/src/ui.js';import{createElement as _0x338c62,global as _0x13f9f9,uid as _0x1c5130}from'ckeditor5/src/utils.js';function _0x8a30(){const _0x16c2df=['for','529418ZGXuQA','view','contentLanguage','_initCtx','uploader-','get','uc-upload-ctx-provider','getAttribute','downcast','_ctxElement','ucContextId','_initConversion','execute','6564830MTYZHH','1059195sLkYJh','\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','listenTo','_configElement','232734GkOwIC','config','getSelectedElement','4842045aOkIeV','imageBlock','commands','replaceImageSource','editing','UploadcareEditing','uploadcareImageId','ctxElement','_initImageProcessingIndicator','locale','45CcReTD','upcast','uc-config','iconHrefResolver','uploadcare.uploader','insertImage','requires','document','map','5lIXBAg','PictureEditing','isRegistered','join','uploadcareImageReplace','extend','selection','editor','uploadcare.pubkey','model','_initConfig','attributeToAttribute','imageInline','configElement','301qieJfp','remove','href','#uc-icon-arrow-down','afterInit','data-uc-image-id','cleanupImage','conversion','elementToAttribute','true','430600sVWWbu','removeAttribute','fromCharCode','destroy','closeMax','add','querySelector','input[uploadcare-file-input]','pluginName','_initSchema','render','isOfficialPlugin','schema','appendChild','once','2095096taNGnE','body','init','uploadcare','isPremiumPlugin'];_0x8a30=function(){return _0x16c2df;};return _0x8a30();}function _0x12e0(_0x59a504,_0x3a2bef){const _0x8a3031=_0x8a30();return _0x12e0=function(_0x12e071,_0x51b13d){_0x12e071=_0x12e071-0xfa;let _0x1380bd=_0x8a3031[_0x12e071];return _0x1380bd;},_0x12e0(_0x59a504,_0x3a2bef);}import{UploadcareCommand as _0x1406f2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5f1d6d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5d855f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x33ed41{[_0x2805cf(0x135)]=null;[_0x2805cf(0x12d)]=null;static get[_0x2805cf(0x117)](){const _0x27e8b4=_0x2805cf;return _0x27e8b4(0x13e);}static get[_0x2805cf(0x149)](){const _0x2db780=_0x2805cf;return[_0x2db780(0x14d),_0x5f1d6d,_0x5b5c1a];}static get[_0x2805cf(0x11a)](){return!0x0;}static get[_0x2805cf(0x122)](){return!0x0;}[_0x2805cf(0x12e)];get[_0x2805cf(0x104)](){const _0x3c8510=_0x2805cf;return this[_0x3c8510(0x135)];}get[_0x2805cf(0x140)](){const _0xc79bd7=_0x2805cf;return this[_0xc79bd7(0x12d)];}constructor(_0x36fdee){const _0x199ed8=_0x2805cf;super(_0x36fdee),this[_0x199ed8(0x12e)]=_0x1c5130();}[_0x2805cf(0x120)](){const _0x4404aa=_0x2805cf,_0xb0fb10=this[_0x4404aa(0xfe)];_0xb0fb10[_0x4404aa(0x13b)][_0x4404aa(0x114)](_0x4404aa(0x121),new _0x1406f2(_0xb0fb10));}[_0x2805cf(0x109)](){const _0xf84d45=_0x2805cf;this[_0xf84d45(0x118)](),this[_0xf84d45(0x12f)](),this[_0xf84d45(0x101)](),this[_0xf84d45(0x127)](),this[_0xf84d45(0x141)](),this[_0xf84d45(0x134)](this[_0xf84d45(0xfe)],_0xf84d45(0x112),()=>{const _0x277a5b=_0xf84d45;this[_0x277a5b(0x135)]&&(this[_0x277a5b(0x135)][_0x277a5b(0x106)](),this[_0x277a5b(0x135)]=null),this[_0x277a5b(0x12d)]&&(this[_0x277a5b(0x12d)][_0x277a5b(0x106)](),this[_0x277a5b(0x12d)]=null);const _0x3b6107=_0x13f9f9[_0x277a5b(0x14a)][_0x277a5b(0x115)](_0x277a5b(0x116));_0x3b6107&&_0x3b6107[_0x277a5b(0x106)]();}),async function(_0x1f02f7){const _0xece4cb=_0xb6f152([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1368aa=0x535f8c3a,_0x10c681=0x5358f10a^_0x1368aa,_0x5f0c60=window[_0xb6f152([0x44,0x61,0x74,0x65])][_0xb6f152([0x6e,0x6f,0x77])](),_0x4f197f=_0x1f02f7[_0xb6f152([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e9665=new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x903610=>{_0x4f197f[_0xb6f152([0x6f,0x6e,0x63,0x65])](_0xb6f152([0x72,0x65,0x61,0x64,0x79]),_0x903610);}),_0x35c6f1={[_0xb6f152([0x6b,0x74,0x79])]:_0xb6f152([0x45,0x43]),[_0xb6f152([0x75,0x73,0x65])]:_0xb6f152([0x73,0x69,0x67]),[_0xb6f152([0x63,0x72,0x76])]:_0xb6f152([0x50,0x2d,0x32,0x35,0x36]),[_0xb6f152([0x78])]:_0xb6f152([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]),[_0xb6f152([0x79])]:_0xb6f152([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]),[_0xb6f152([0x61,0x6c,0x67])]:_0xb6f152([0x45,0x53,0x32,0x35,0x36])},_0x53d055=_0x4f197f[_0xb6f152([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb6f152([0x67,0x65,0x74])](_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ce7e0(){let _0x43b50d,_0x965daa=null,_0x4d739b=null;try{if(_0x53d055==_0xb6f152([0x47,0x50,0x4c]))return _0xb6f152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43b50d=_0xe8846b(),!_0x43b50d)return _0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43b50d[_0xb6f152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d739b=_0x1f0b08(_0x43b50d[_0xb6f152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43b50d[_0xb6f152([0x6a,0x74,0x69])])),await _0x55e0d5()?_0x570696()?_0x5bd3ff()?_0xb6f152([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ad732()?(_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6f152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x965daa=_0xb3ad80(_0xb6f152([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6f152([0x74,0x72,0x69,0x61,0x6c])&&(_0x965daa=_0xb3ad80(_0xb6f152([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xaaacc9()):_0xb6f152([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb6f152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bd3ff(){const _0x22e845=[_0xb6f152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb6f152([0x74,0x72,0x69,0x61,0x6c])][_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f0c60/0x3e8:0xe10*_0x10c681;return _0x43b50d[_0xb6f152([0x65,0x78,0x70])]<_0x22e845;}function _0x570696(){const _0x410330=_0x43b50d[_0xb6f152([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x410330&&(!!_0x410330[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x2a]))||!!_0x410330[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x55,0x50,0x4c,0x43])));}function _0x2ad732(){const _0x2bbd35=_0x12e0,_0x5a6135=_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a6135||0x0==_0x5a6135[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x349a0f}=new URL(window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2bbd35(0x107)]);if(_0x5a6135[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349a0f))return!0x0;const _0x6ece4c=_0x349a0f[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e]));return _0x5a6135[_0xb6f152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34e8b0=>_0x34e8b0[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x2a])))[_0xb6f152([0x6d,0x61,0x70])](_0x4a743f=>_0x4a743f[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e])))[_0xb6f152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1452c8=>_0x1452c8[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6ece4c[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6f152([0x6d,0x61,0x70])](_0x2f40ce=>Array(_0x6ece4c[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f40ce[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6f152([0x66,0x69,0x6c,0x6c])](_0x2f40ce[0x0]===_0xb6f152([0x2a])?_0xb6f152([0x2a]):'')[_0xb6f152([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f40ce))[_0xb6f152([0x73,0x6f,0x6d,0x65])](_0x225ecb=>_0x6ece4c[_0xb6f152([0x65,0x76,0x65,0x72,0x79])]((_0x18bb3e,_0x59300e)=>_0x225ecb[_0x59300e]===_0x18bb3e||_0x225ecb[_0x59300e]===_0xb6f152([0x2a])));}function _0xaaacc9(){return _0x965daa&&_0x4d739b?new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26d1f1,_0xc216d4)=>{_0x965daa[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x26d1f1,_0xc216d4),_0x4d739b[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x301b1d=>{_0x301b1d!=_0xb6f152([0x56,0x61,0x6c,0x69,0x64])&&_0x26d1f1(_0x301b1d);},_0xc216d4);}):_0x965daa||_0x4d739b||_0xb6f152([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f0b08(_0x3c9a52,_0x198669){return new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa80402=>{if(_0x13802a())return _0xa80402(_0xb6f152([0x56,0x61,0x6c,0x69,0x64]));_0x117415(),_0x4f197f[_0xb6f152([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28f3dc=!0x1;const _0x1045d4=_0x1c5130();function _0x467425(_0x58a9d6){return!!_0x58a9d6&&(typeof _0x58a9d6===_0xb6f152([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58a9d6===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58a9d6[_0xb6f152([0x74,0x68,0x65,0x6e])]===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58a9d6[_0xb6f152([0x63,0x61,0x74,0x63,0x68])]===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x293e4f(_0x51f6d6){_0x5118cf(_0x51f6d6)[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x7bb183=>{if(!_0x7bb183||_0x7bb183[_0xb6f152([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb6f152([0x6f,0x6b]))return _0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4903e1(_0x436336(_0x1045d4+_0x198669))!=_0x7bb183[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb6f152([0x56,0x61,0x6c,0x69,0x64]);})[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x53c5b8=>(_0x2dc761(),_0x53c5b8),()=>{const _0x21630e=_0x57150d();return null==_0x21630e?(_0x2dc761(),_0xb6f152([0x56,0x61,0x6c,0x69,0x64])):_0xb6f152(_0x5f0c60-_0x21630e>(0x7753083a^_0x1368aa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb6f152([0x74,0x68,0x65,0x6e])](_0xa80402)[_0xb6f152([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x465a14=0x536962ba^_0x1368aa;function _0x2dc761(){const _0x3c2a92=_0xb6f152([0x6c,0x6c,0x63,0x74,0x2d])+_0x4903e1(_0x436336(_0x3c9a52)),_0x3af862=_0xd3d17c(_0x4903e1(window[_0xb6f152([0x4d,0x61,0x74,0x68])][_0xb6f152([0x63,0x65,0x69,0x6c])](_0x5f0c60/_0x465a14)));window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6f152([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c2a92,_0x3af862);}function _0x57150d(){const _0x4cfe82=_0xb6f152([0x6c,0x6c,0x63,0x74,0x2d])+_0x4903e1(_0x436336(_0x3c9a52)),_0x22fcb7=window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6f152([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cfe82);return _0x22fcb7?window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3d17c(_0x22fcb7),0x10)*_0x465a14:null;}function _0x5118cf(_0x10377c){return new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x161d22,_0x42ab31)=>{_0x10377c[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x161d22,_0x42ab31),window[_0xb6f152([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42ab31,0x535e58fa^_0x1368aa);});}}_0x4f197f[_0xb6f152([0x6f,0x6e])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x78e9ce,_0x3a2660)=>{if(_0x3a2660[0x0]!=_0x3c9a52)return _0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a2660[0x1]={..._0x3a2660[0x1],[_0xb6f152([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1045d4};},{[_0xb6f152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6f152([0x68,0x69,0x67,0x68])}),_0x4f197f[_0xb6f152([0x6f,0x6e])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf553a7=>{_0x467425(_0xf553a7[_0xb6f152([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28f3dc=!0x0,_0x293e4f(_0xf553a7[_0xb6f152([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb6f152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6f152([0x6c,0x6f,0x77])}),_0x1e9665[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>{_0x28f3dc||_0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13802a(){return _0x4f197f[_0xb6f152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6f152([0x76,0x69,0x65,0x77])][_0xb6f152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb6f152([0x61,0x75,0x74,0x6f]);}function _0x117415(){_0x4f197f[_0xb6f152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6f152([0x76,0x69,0x65,0x77])][_0xb6f152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb6f152([0x61,0x75,0x74,0x6f]);}}function _0xb3ad80(_0x61b25b){const _0x3773df=[new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598b16=>setTimeout(_0x598b16,0x5356b2f6^_0x1368aa)),_0x1e9665[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f8cd=>{let _0x317375=0x0;_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x6f,0x6e])](_0xb6f152([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19ec5,_0x1895fc)=>{_0x1895fc[0x0][_0xb6f152([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x317375++,_0x317375==(0x535f89d2^_0x1368aa)&&(_0x42f8cd(),_0x19ec5[_0xb6f152([0x6f,0x66,0x66])]());});}))];return window[_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb6f152([0x72,0x61,0x63,0x65])](_0x3773df)[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>_0x61b25b);}async function _0xb8cdcd(){await _0x1e9665,_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x179ff0,_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x179ff0,_0x4f197f[_0xb6f152([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x240fff(_0x2c9206){const _0x4a2fbd=_0x32be60();_0x4f197f[_0x4a2fbd]=_0xb6f152([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c9206,_0x2c9206!=_0xb6f152([0x56,0x61,0x6c,0x69,0x64])&&_0xb8cdcd();}function _0x32be60(){const _0x1b5275=window[_0xb6f152([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb6f152([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb6f152([0x6e,0x6f,0x77])]())[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb6f152([0x2e]),'');let _0x2943f3=_0xb6f152([0x68]);for(let _0x3d7e07=0x0;_0x3d7e07<_0x1b5275[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d7e07+=0x2){let _0x2570f7=window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b5275[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d7e07,_0x3d7e07+0x2));_0x2570f7>=_0xece4cb[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2570f7-=_0xece4cb[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2943f3+=_0xece4cb[_0x2570f7];}return _0x2943f3;}function _0xe8846b(){const _0x50732b=_0x53d055[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e]));if(0x3!=_0x50732b[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48b833(_0x50732b[0x1]);function _0x48b833(_0x3e6bf5){const _0x568335=_0x486bd8(_0x3e6bf5);return _0x568335&&_0x100413()?_0x568335:null;function _0x100413(){const _0x8fe65=_0x568335[_0xb6f152([0x6a,0x74,0x69])],_0x2bd140=window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8fe65[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8fe65[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b8d70={..._0x568335,[_0xb6f152([0x6a,0x74,0x69])]:_0x8fe65[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8fe65[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b8d70[_0xb6f152([0x76,0x63])],_0x436336(_0x1b8d70)==_0x2bd140;}}}async function _0x55e0d5(){let _0x199cb4=!0x0;try{const _0x19f5d8=_0x53d055[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e])),[_0x9a4ab,_0xa831d5,_0x9d44c1]=_0x19f5d8;return _0x3b187a(_0x9a4ab),await _0x2a1074(_0x9a4ab,_0xa831d5,_0x9d44c1),_0x199cb4;}catch{return!0x1;}function _0x3b187a(_0x44511f){const _0x321538=_0x486bd8(_0x44511f);_0x321538&&_0x321538[_0xb6f152([0x61,0x6c,0x67])]==_0xb6f152([0x45,0x53,0x32,0x35,0x36])||(_0x199cb4=!0x1);}async function _0x2a1074(_0x26ad8f,_0x1aaaed,_0x24620b){const _0x2274ab=window[_0xb6f152([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb6f152([0x66,0x72,0x6f,0x6d])](_0x1313d7(_0x24620b),_0x580a14=>_0x580a14[_0xb6f152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13f12a=new window[(_0xb6f152([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb6f152([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26ad8f+_0xb6f152([0x2e])+_0x1aaaed),_0x279f90=window[_0xb6f152([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb6f152([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x279f90)return;const _0x3e5b8a=await _0x279f90[_0xb6f152([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb6f152([0x6a,0x77,0x6b]),_0x35c6f1,{[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x45,0x43,0x44,0x53,0x41]),[_0xb6f152([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb6f152([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x279f90[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x45,0x43,0x44,0x53,0x41]),[_0xb6f152([0x68,0x61,0x73,0x68])]:{[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e5b8a,_0x2274ab,_0x13f12a)||(_0x199cb4=!0x1);}}function _0x486bd8(_0x5b378a){return _0x5b378a[_0xb6f152([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb6f152([0x65,0x79]))?JSON[_0xb6f152([0x70,0x61,0x72,0x73,0x65])](_0x1313d7(_0x5b378a)):null;}function _0x1313d7(_0x34abfe){return window[_0xb6f152([0x61,0x74,0x6f,0x62])](_0x34abfe[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb6f152([0x2b]))[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb6f152([0x2f])));}function _0x436336(_0x3e3ad2){let _0x35de09=0x1505;function _0x521a32(_0x5dd978){for(let _0x436006=0x0;_0x436006<_0x5dd978[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x436006++){const _0x24bbe5=_0x5dd978[_0xb6f152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x436006);_0x35de09=(_0x35de09<<0x5)+_0x35de09+_0x24bbe5,_0x35de09&=_0x35de09;}}function _0x7a6beb(_0x5d3d36){Array[_0xb6f152([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d3d36)?_0x5d3d36[_0xb6f152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7a6beb):_0x5d3d36&&typeof _0x5d3d36==_0xb6f152([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb6f152([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d3d36)[_0xb6f152([0x73,0x6f,0x72,0x74])]()[_0xb6f152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf4cc59,_0x579e58])=>{_0x521a32(_0xf4cc59),_0x7a6beb(_0x579e58);}):_0x521a32(window[_0xb6f152([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d3d36));}return _0x7a6beb(_0x3e3ad2),_0x35de09>>>0x0;}function _0x4903e1(_0x2d71aa){return _0x2d71aa[_0xb6f152([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb6f152([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb6f152([0x30]));}function _0xd3d17c(_0xecae98){return _0xecae98[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb6f152([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb6f152([0x6a,0x6f,0x69,0x6e])]('');}function _0x179ff0(){}function _0xb6f152(_0x16b9f3){const _0x5dacf8=_0x12e0;return _0x16b9f3[_0x5dacf8(0x14b)](_0x38e9a7=>String[_0x5dacf8(0x111)](_0x38e9a7))[_0x5dacf8(0xfa)]('');}_0x240fff(await _0x1ce7e0());}(this);}[_0x2805cf(0x118)](){const _0x3b6803=_0x2805cf,_0x2c4154=this[_0x3b6803(0xfe)][_0x3b6803(0x100)][_0x3b6803(0x11b)];_0x2c4154[_0x3b6803(0x14e)](_0x3b6803(0x13a))&&_0x2c4154[_0x3b6803(0xfc)](_0x3b6803(0x13a),{'allowAttributes':[_0x3b6803(0x13f)]}),_0x2c4154[_0x3b6803(0x14e)](_0x3b6803(0x103))&&_0x2c4154[_0x3b6803(0xfc)](_0x3b6803(0x103),{'allowAttributes':[_0x3b6803(0x13f)]});}[_0x2805cf(0x12f)](){const _0x53f06f=_0x2805cf,_0x25329d=this[_0x53f06f(0xfe)];_0x25329d[_0x53f06f(0x10c)][_0x53f06f(0x123)](_0x53f06f(0x12c))[_0x53f06f(0x102)]({'model':_0x53f06f(0x13f),'view':_0x53f06f(0x10a)}),_0x25329d[_0x53f06f(0x10c)][_0x53f06f(0x123)](_0x53f06f(0x144))[_0x53f06f(0x10d)]({'model':{'key':_0x53f06f(0x13f),'value':_0x2f894e=>_0x2f894e[_0x53f06f(0x12b)](_0x53f06f(0x10a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1fab51=_0x25329d[_0x53f06f(0x13b)][_0x53f06f(0x129)](_0x53f06f(0x13c));_0x1fab51&&this[_0x53f06f(0x134)](_0x1fab51,_0x53f06f(0x10b),(_0x372207,[_0x54711f,_0x5be622])=>{const _0x10711f=_0x53f06f;_0x54711f[_0x10711f(0x110)](_0x10711f(0x13f),_0x5be622);});}[_0x2805cf(0x101)](){const _0xcf7d97=_0x2805cf,_0x212fd4=this[_0xcf7d97(0xfe)][_0xcf7d97(0x137)][_0xcf7d97(0x129)](_0xcf7d97(0x147))||{},_0x420087=this[_0xcf7d97(0xfe)][_0xcf7d97(0x137)][_0xcf7d97(0x129)](_0xcf7d97(0xff))||'';this[_0xcf7d97(0x135)]=_0x338c62(_0x13f9f9[_0xcf7d97(0x14a)],_0xcf7d97(0x145),{..._0x212fd4,'pubkey':_0x420087,'ctx-name':_0xcf7d97(0x128)+this[_0xcf7d97(0x12e)],'sourceList':'','imgOnly':_0xcf7d97(0x10e),'removeCopyright':_0xcf7d97(0x10e),'localeName':this[_0xcf7d97(0xfe)][_0xcf7d97(0x142)][_0xcf7d97(0x126)],'externalSourcesEmbedCss':_0xcf7d97(0x133)}),this[_0xcf7d97(0x135)][_0xcf7d97(0x146)]=_0x528f9c=>{const _0x4c72a0=_0xcf7d97;if(_0x4c72a0(0x113)==_0x528f9c)return _0x4c72a0(0x108);},_0x13f9f9[_0xcf7d97(0x14a)][_0xcf7d97(0x11f)][_0xcf7d97(0x11c)](this[_0xcf7d97(0x135)]);}[_0x2805cf(0x127)](){const _0x54af42=_0x2805cf;this[_0x54af42(0x12d)]=_0x338c62(_0x13f9f9[_0x54af42(0x14a)],_0x54af42(0x12a),{'ctx-name':_0x54af42(0x128)+this[_0x54af42(0x12e)]}),_0x13f9f9[_0x54af42(0x14a)][_0x54af42(0x11f)][_0x54af42(0x11c)](this[_0x54af42(0x12d)]);}[_0x2805cf(0x141)](){const _0x19f456=_0x2805cf,_0x4e2ff5=this[_0x19f456(0xfe)][_0x19f456(0x13b)][_0x19f456(0x129)](_0x19f456(0x148));_0x4e2ff5&&this[_0x19f456(0x134)](_0x4e2ff5,_0x19f456(0x130),()=>{const _0xf2606d=_0x19f456,_0x53252e=this[_0xf2606d(0xfe)][_0xf2606d(0x100)][_0xf2606d(0x14a)][_0xf2606d(0xfd)][_0xf2606d(0x138)]();_0x53252e&&_0x53252e[_0xf2606d(0x12b)](_0xf2606d(0x13f))&&this[_0xf2606d(0xfe)][_0xf2606d(0x13d)][_0xf2606d(0x125)][_0xf2606d(0x11d)](_0xf2606d(0x119),()=>{const _0x565125=_0xf2606d;_0x5d855f(this[_0x565125(0xfe)],_0x53252e);});});const _0x25e846=this[_0x19f456(0xfe)][_0x19f456(0x13b)][_0x19f456(0x129)](_0x19f456(0xfb));_0x25e846&&this[_0x19f456(0x134)](_0x25e846,_0x19f456(0x130),()=>{const _0x58bf85=_0x19f456,_0x28bc6e=this[_0x58bf85(0xfe)][_0x58bf85(0x100)][_0x58bf85(0x14a)][_0x58bf85(0xfd)][_0x58bf85(0x138)]();_0x28bc6e&&_0x28bc6e[_0x58bf85(0x12b)](_0x58bf85(0x13f))&&this[_0x58bf85(0xfe)][_0x58bf85(0x13d)][_0x58bf85(0x125)][_0x58bf85(0x11d)](_0x58bf85(0x119),()=>{const _0x29b6ec=_0x58bf85;_0x5d855f(this[_0x29b6ec(0xfe)],_0x28bc6e);});});}}
|
|
23
|
+
function _0x3968(_0x5b2d9f,_0x202626){const _0x4462b0=_0x4462();return _0x3968=function(_0x396806,_0x591969){_0x396806=_0x396806-0x144;let _0x37629a=_0x4462b0[_0x396806];return _0x37629a;},_0x3968(_0x5b2d9f,_0x202626);}const _0x424bd4=_0x3968;(function(_0x479e46,_0x1ac4b0){const _0x87b374=_0x3968,_0x390fd7=_0x479e46();while(!![]){try{const _0x2fee8e=parseInt(_0x87b374(0x172))/0x1*(-parseInt(_0x87b374(0x18c))/0x2)+-parseInt(_0x87b374(0x186))/0x3+parseInt(_0x87b374(0x194))/0x4+parseInt(_0x87b374(0x16d))/0x5*(parseInt(_0x87b374(0x150))/0x6)+-parseInt(_0x87b374(0x167))/0x7*(parseInt(_0x87b374(0x148))/0x8)+-parseInt(_0x87b374(0x191))/0x9*(parseInt(_0x87b374(0x179))/0xa)+parseInt(_0x87b374(0x171))/0xb*(parseInt(_0x87b374(0x181))/0xc);if(_0x2fee8e===_0x1ac4b0)break;else _0x390fd7['push'](_0x390fd7['shift']());}catch(_0x9ed126){_0x390fd7['push'](_0x390fd7['shift']());}}}(_0x4462,0xd8c63));import{Plugin as _0x1fffe1}from'ckeditor5/src/core.js';import{Dialog as _0x41140f}from'ckeditor5/src/ui.js';function _0x4462(){const _0x536aee=['ucContextId','\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','editor','_initConversion','cleanupImage','552czyqRJ','editing','replaceImageSource','for','listenTo','uploadcare.pubkey','iconHrefResolver','appendChild','6xLYxad','view','downcast','contentLanguage','locale','#uc-icon-arrow-down','_initConfig','elementToAttribute','execute','uploadcare.uploader','requires','PictureEditing','schema','uploadcare','commands','_initCtx','configElement','remove','render','body','selection','model','get','64351RqZOBX','uc-config','join','init','_initSchema','_initImageProcessingIndicator','709685ldDIqK','attributeToAttribute','isOfficialPlugin','insertImage','267608rkmqJb','698gVjsjT','true','uploadcareImageReplace','extend','closeMax','href','pluginName','10ENyNVs','_configElement','getSelectedElement','add','imageBlock','config','destroy','input[uploadcare-file-input]','948RPDgWb','document','imageInline','fromCharCode','isPremiumPlugin','2705907oybUfN','data-uc-image-id','map','ctxElement','once','conversion','202rSeVFz','upcast','_ctxElement','querySelector','uc-upload-ctx-provider','4560687nInWiF','isRegistered','removeAttribute','3750340wfPkxj','UploadcareEditing','uploader-','getAttribute','uploadcareImageId','afterInit'];_0x4462=function(){return _0x536aee;};return _0x4462();}import{createElement as _0x585d44,global as _0x111d08,uid as _0xced960}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d5b87}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x153956}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1b1d2e}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1fffe1{[_0x424bd4(0x17a)]=null;[_0x424bd4(0x18e)]=null;static get[_0x424bd4(0x178)](){const _0x46cde3=_0x424bd4;return _0x46cde3(0x195);}static get[_0x424bd4(0x15a)](){const _0x44809a=_0x424bd4;return[_0x44809a(0x15b),_0x153956,_0x41140f];}static get[_0x424bd4(0x16f)](){return!0x0;}static get[_0x424bd4(0x185)](){return!0x0;}[_0x424bd4(0x19a)];get[_0x424bd4(0x160)](){const _0x59a4ad=_0x424bd4;return this[_0x59a4ad(0x17a)];}get[_0x424bd4(0x189)](){const _0x13db18=_0x424bd4;return this[_0x13db18(0x18e)];}constructor(_0x508102){const _0x55e136=_0x424bd4;super(_0x508102),this[_0x55e136(0x19a)]=_0xced960();}[_0x424bd4(0x16a)](){const _0x2bd39a=_0x424bd4,_0x57ad35=this[_0x2bd39a(0x145)];_0x57ad35[_0x2bd39a(0x15e)][_0x2bd39a(0x17c)](_0x2bd39a(0x15d),new _0x3d5b87(_0x57ad35));}[_0x424bd4(0x199)](){const _0x56301b=_0x424bd4;this[_0x56301b(0x16b)](),this[_0x56301b(0x146)](),this[_0x56301b(0x156)](),this[_0x56301b(0x15f)](),this[_0x56301b(0x16c)](),this[_0x56301b(0x14c)](this[_0x56301b(0x145)],_0x56301b(0x17f),()=>{const _0x37ba39=_0x56301b;this[_0x37ba39(0x17a)]&&(this[_0x37ba39(0x17a)][_0x37ba39(0x161)](),this[_0x37ba39(0x17a)]=null),this[_0x37ba39(0x18e)]&&(this[_0x37ba39(0x18e)][_0x37ba39(0x161)](),this[_0x37ba39(0x18e)]=null);const _0x3e082=_0x111d08[_0x37ba39(0x182)][_0x37ba39(0x18f)](_0x37ba39(0x180));_0x3e082&&_0x3e082[_0x37ba39(0x161)]();}),async function(_0x3ed9d4){const _0x4f6898=_0x12f031([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5cf8a8=0x535f8c3a,_0x5b390e=0x5358f10a^_0x5cf8a8,_0x44beca=window[_0x12f031([0x44,0x61,0x74,0x65])][_0x12f031([0x6e,0x6f,0x77])](),_0x2b6c1a=_0x3ed9d4[_0x12f031([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25c3a=new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x560e23=>{_0x2b6c1a[_0x12f031([0x6f,0x6e,0x63,0x65])](_0x12f031([0x72,0x65,0x61,0x64,0x79]),_0x560e23);}),_0xed4470={[_0x12f031([0x6b,0x74,0x79])]:_0x12f031([0x45,0x43]),[_0x12f031([0x75,0x73,0x65])]:_0x12f031([0x73,0x69,0x67]),[_0x12f031([0x63,0x72,0x76])]:_0x12f031([0x50,0x2d,0x32,0x35,0x36]),[_0x12f031([0x78])]:_0x12f031([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]),[_0x12f031([0x79])]:_0x12f031([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]),[_0x12f031([0x61,0x6c,0x67])]:_0x12f031([0x45,0x53,0x32,0x35,0x36])},_0x2308b8=_0x2b6c1a[_0x12f031([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12f031([0x67,0x65,0x74])](_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2aad51(){let _0xc991ef,_0x38c366=null,_0x198b78=null;try{if(_0x2308b8==_0x12f031([0x47,0x50,0x4c]))return _0x12f031([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc991ef=_0x84bd6(),!_0xc991ef)return _0x12f031([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc991ef[_0x12f031([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x198b78=_0x1459da(_0xc991ef[_0x12f031([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc991ef[_0x12f031([0x6a,0x74,0x69])])),await _0x55014a()?_0x267f2a()?_0x5ef3fd()?_0x12f031([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4454af()?(_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f031([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38c366=_0x102d5a(_0x12f031([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f031([0x74,0x72,0x69,0x61,0x6c])&&(_0x38c366=_0x102d5a(_0x12f031([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c6372()):_0x12f031([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12f031([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12f031([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x12f031([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ef3fd(){const _0x23f8ed=[_0x12f031([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12f031([0x74,0x72,0x69,0x61,0x6c])][_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44beca/0x3e8:0xe10*_0x5b390e;return _0xc991ef[_0x12f031([0x65,0x78,0x70])]<_0x23f8ed;}function _0x267f2a(){const _0x5b6bf0=_0xc991ef[_0x12f031([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b6bf0&&(!!_0x5b6bf0[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f031([0x2a]))||!!_0x5b6bf0[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f031([0x55,0x50,0x4c,0x43])));}function _0x4454af(){const _0x12535f=_0x3968,_0x24f16d=_0xc991ef[_0x12f031([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24f16d||0x0==_0x24f16d[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c94dd}=new URL(window[_0x12f031([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x12535f(0x177)]);if(_0x24f16d[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c94dd))return!0x0;const _0x6c5e4b=_0x1c94dd[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e]));return _0x24f16d[_0x12f031([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x581303=>_0x581303[_0x12f031([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f031([0x2a])))[_0x12f031([0x6d,0x61,0x70])](_0x2ce82e=>_0x2ce82e[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e])))[_0x12f031([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3abbaa=>_0x3abbaa[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6c5e4b[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12f031([0x6d,0x61,0x70])](_0x11be87=>Array(_0x6c5e4b[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11be87[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12f031([0x66,0x69,0x6c,0x6c])](_0x11be87[0x0]===_0x12f031([0x2a])?_0x12f031([0x2a]):'')[_0x12f031([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11be87))[_0x12f031([0x73,0x6f,0x6d,0x65])](_0x299cff=>_0x6c5e4b[_0x12f031([0x65,0x76,0x65,0x72,0x79])]((_0x3ba0bb,_0x5bda0f)=>_0x299cff[_0x5bda0f]===_0x3ba0bb||_0x299cff[_0x5bda0f]===_0x12f031([0x2a])));}function _0x1c6372(){return _0x38c366&&_0x198b78?new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbcdfa8,_0x262e28)=>{_0x38c366[_0x12f031([0x74,0x68,0x65,0x6e])](_0xbcdfa8,_0x262e28),_0x198b78[_0x12f031([0x74,0x68,0x65,0x6e])](_0x3c3c1c=>{_0x3c3c1c!=_0x12f031([0x56,0x61,0x6c,0x69,0x64])&&_0xbcdfa8(_0x3c3c1c);},_0x262e28);}):_0x38c366||_0x198b78||_0x12f031([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1459da(_0x107f74,_0x511217){return new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x293863=>{if(_0x5b9a5d())return _0x293863(_0x12f031([0x56,0x61,0x6c,0x69,0x64]));_0x2f1fe7(),_0x2b6c1a[_0x12f031([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12f031([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d7c96=!0x1;const _0x5a29c8=_0xced960();function _0x11afa8(_0x28d012){return!!_0x28d012&&(typeof _0x28d012===_0x12f031([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28d012===_0x12f031([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28d012[_0x12f031([0x74,0x68,0x65,0x6e])]===_0x12f031([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28d012[_0x12f031([0x63,0x61,0x74,0x63,0x68])]===_0x12f031([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11c867(_0x408d7f){_0x305b7e(_0x408d7f)[_0x12f031([0x74,0x68,0x65,0x6e])](_0x2bffab=>{if(!_0x2bffab||_0x2bffab[_0x12f031([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12f031([0x6f,0x6b]))return _0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x404787(_0xcae94b(_0x5a29c8+_0x511217))!=_0x2bffab[_0x12f031([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12f031([0x56,0x61,0x6c,0x69,0x64]);})[_0x12f031([0x74,0x68,0x65,0x6e])](_0x60ea66=>(_0x8c49a(),_0x60ea66),()=>{const _0x163f37=_0x300806();return null==_0x163f37?(_0x8c49a(),_0x12f031([0x56,0x61,0x6c,0x69,0x64])):_0x12f031(_0x44beca-_0x163f37>(0x7753083a^_0x5cf8a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12f031([0x74,0x68,0x65,0x6e])](_0x293863)[_0x12f031([0x63,0x61,0x74,0x63,0x68])](()=>{_0x293863(_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c7c92=0x536962ba^_0x5cf8a8;function _0x8c49a(){const _0xef16f9=_0x12f031([0x6c,0x6c,0x63,0x74,0x2d])+_0x404787(_0xcae94b(_0x107f74)),_0x333a03=_0x40fb3f(_0x404787(window[_0x12f031([0x4d,0x61,0x74,0x68])][_0x12f031([0x63,0x65,0x69,0x6c])](_0x44beca/_0x3c7c92)));window[_0x12f031([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f031([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef16f9,_0x333a03);}function _0x300806(){const _0xfa5558=_0x12f031([0x6c,0x6c,0x63,0x74,0x2d])+_0x404787(_0xcae94b(_0x107f74)),_0x2b4bc4=window[_0x12f031([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f031([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa5558);return _0x2b4bc4?window[_0x12f031([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40fb3f(_0x2b4bc4),0x10)*_0x3c7c92:null;}function _0x305b7e(_0x8533c){return new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2328c1,_0x3810f4)=>{_0x8533c[_0x12f031([0x74,0x68,0x65,0x6e])](_0x2328c1,_0x3810f4),window[_0x12f031([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3810f4,0x535e58fa^_0x5cf8a8);});}}_0x2b6c1a[_0x12f031([0x6f,0x6e])](_0x12f031([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x363c30,_0x10bf85)=>{if(_0x10bf85[0x0]!=_0x107f74)return _0x293863(_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10bf85[0x1]={..._0x10bf85[0x1],[_0x12f031([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a29c8};},{[_0x12f031([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f031([0x68,0x69,0x67,0x68])}),_0x2b6c1a[_0x12f031([0x6f,0x6e])](_0x12f031([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x285651=>{_0x11afa8(_0x285651[_0x12f031([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d7c96=!0x0,_0x11c867(_0x285651[_0x12f031([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12f031([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f031([0x6c,0x6f,0x77])}),_0x25c3a[_0x12f031([0x74,0x68,0x65,0x6e])](()=>{_0x3d7c96||_0x293863(_0x12f031([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b9a5d(){return _0x2b6c1a[_0x12f031([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f031([0x76,0x69,0x65,0x77])][_0x12f031([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12f031([0x61,0x75,0x74,0x6f]);}function _0x2f1fe7(){_0x2b6c1a[_0x12f031([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f031([0x76,0x69,0x65,0x77])][_0x12f031([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12f031([0x61,0x75,0x74,0x6f]);}}function _0x102d5a(_0x14af23){const _0x20e56c=[new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39e8ae=>setTimeout(_0x39e8ae,0x5356b2f6^_0x5cf8a8)),_0x25c3a[_0x12f031([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4190f1=>{let _0x50ddb1=0x0;_0x2b6c1a[_0x12f031([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f031([0x6f,0x6e])](_0x12f031([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40adf5,_0x117662)=>{_0x117662[0x0][_0x12f031([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50ddb1++,_0x50ddb1==(0x535f89d2^_0x5cf8a8)&&(_0x4190f1(),_0x40adf5[_0x12f031([0x6f,0x66,0x66])]());});}))];return window[_0x12f031([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12f031([0x72,0x61,0x63,0x65])](_0x20e56c)[_0x12f031([0x74,0x68,0x65,0x6e])](()=>_0x14af23);}async function _0x2864b4(){await _0x25c3a,_0x2b6c1a[_0x12f031([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f031([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35ad57,_0x2b6c1a[_0x12f031([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f031([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35ad57,_0x2b6c1a[_0x12f031([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12f031([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a4ead(_0x17f18d){const _0x3383fe=_0x2e8507();_0x2b6c1a[_0x3383fe]=_0x12f031([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x17f18d,_0x17f18d!=_0x12f031([0x56,0x61,0x6c,0x69,0x64])&&_0x2864b4();}function _0x2e8507(){const _0x298816=window[_0x12f031([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12f031([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12f031([0x6e,0x6f,0x77])]())[_0x12f031([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12f031([0x2e]),'');let _0x1752f5=_0x12f031([0x68]);for(let _0x1fbf2e=0x0;_0x1fbf2e<_0x298816[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fbf2e+=0x2){let _0x1aef60=window[_0x12f031([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x298816[_0x12f031([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fbf2e,_0x1fbf2e+0x2));_0x1aef60>=_0x4f6898[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aef60-=_0x4f6898[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1752f5+=_0x4f6898[_0x1aef60];}return _0x1752f5;}function _0x84bd6(){const _0x2f2a63=_0x2308b8[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e]));if(0x3!=_0x2f2a63[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x415e01(_0x2f2a63[0x1]);function _0x415e01(_0x5ed990){const _0x256cf7=_0x661e11(_0x5ed990);return _0x256cf7&&_0x38c188()?_0x256cf7:null;function _0x38c188(){const _0x33df1c=_0x256cf7[_0x12f031([0x6a,0x74,0x69])],_0x78b1f1=window[_0x12f031([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33df1c[_0x12f031([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33df1c[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e3bdb={..._0x256cf7,[_0x12f031([0x6a,0x74,0x69])]:_0x33df1c[_0x12f031([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33df1c[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e3bdb[_0x12f031([0x76,0x63])],_0xcae94b(_0x3e3bdb)==_0x78b1f1;}}}async function _0x55014a(){let _0x521c5e=!0x0;try{const _0x1a02fb=_0x2308b8[_0x12f031([0x73,0x70,0x6c,0x69,0x74])](_0x12f031([0x2e])),[_0x116c61,_0x42bdc3,_0x5a714b]=_0x1a02fb;return _0x2a3341(_0x116c61),await _0x4f20e4(_0x116c61,_0x42bdc3,_0x5a714b),_0x521c5e;}catch{return!0x1;}function _0x2a3341(_0x18410a){const _0x13e543=_0x661e11(_0x18410a);_0x13e543&&_0x13e543[_0x12f031([0x61,0x6c,0x67])]==_0x12f031([0x45,0x53,0x32,0x35,0x36])||(_0x521c5e=!0x1);}async function _0x4f20e4(_0x1a2ec3,_0x2d2958,_0x37c5ad){const _0x25a06c=window[_0x12f031([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12f031([0x66,0x72,0x6f,0x6d])](_0x3c1106(_0x37c5ad),_0x260c7a=>_0x260c7a[_0x12f031([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x532260=new window[(_0x12f031([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12f031([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a2ec3+_0x12f031([0x2e])+_0x2d2958),_0x1a74d3=window[_0x12f031([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12f031([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a74d3)return;const _0x4dfa3d=await _0x1a74d3[_0x12f031([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12f031([0x6a,0x77,0x6b]),_0xed4470,{[_0x12f031([0x6e,0x61,0x6d,0x65])]:_0x12f031([0x45,0x43,0x44,0x53,0x41]),[_0x12f031([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12f031([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12f031([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a74d3[_0x12f031([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12f031([0x6e,0x61,0x6d,0x65])]:_0x12f031([0x45,0x43,0x44,0x53,0x41]),[_0x12f031([0x68,0x61,0x73,0x68])]:{[_0x12f031([0x6e,0x61,0x6d,0x65])]:_0x12f031([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4dfa3d,_0x25a06c,_0x532260)||(_0x521c5e=!0x1);}}function _0x661e11(_0x2bb2cf){return _0x2bb2cf[_0x12f031([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12f031([0x65,0x79]))?JSON[_0x12f031([0x70,0x61,0x72,0x73,0x65])](_0x3c1106(_0x2bb2cf)):null;}function _0x3c1106(_0x40d5b6){return window[_0x12f031([0x61,0x74,0x6f,0x62])](_0x40d5b6[_0x12f031([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12f031([0x2b]))[_0x12f031([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12f031([0x2f])));}function _0xcae94b(_0x4402d4){let _0x20fa35=0x1505;function _0x5da082(_0x422338){for(let _0x26930c=0x0;_0x26930c<_0x422338[_0x12f031([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26930c++){const _0x351721=_0x422338[_0x12f031([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26930c);_0x20fa35=(_0x20fa35<<0x5)+_0x20fa35+_0x351721,_0x20fa35&=_0x20fa35;}}function _0x2aae71(_0x435794){Array[_0x12f031([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x435794)?_0x435794[_0x12f031([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2aae71):_0x435794&&typeof _0x435794==_0x12f031([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12f031([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x435794)[_0x12f031([0x73,0x6f,0x72,0x74])]()[_0x12f031([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f2e5f,_0x44280c])=>{_0x5da082(_0x3f2e5f),_0x2aae71(_0x44280c);}):_0x5da082(window[_0x12f031([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x435794));}return _0x2aae71(_0x4402d4),_0x20fa35>>>0x0;}function _0x404787(_0x2734d1){return _0x2734d1[_0x12f031([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12f031([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12f031([0x30]));}function _0x40fb3f(_0x435777){return _0x435777[_0x12f031([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12f031([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12f031([0x6a,0x6f,0x69,0x6e])]('');}function _0x35ad57(){}function _0x12f031(_0x57edc5){const _0x133df4=_0x3968;return _0x57edc5[_0x133df4(0x188)](_0x17fd7c=>String[_0x133df4(0x184)](_0x17fd7c))[_0x133df4(0x169)]('');}_0x3a4ead(await _0x2aad51());}(this);}[_0x424bd4(0x16b)](){const _0x2ff523=_0x424bd4,_0x2719a6=this[_0x2ff523(0x145)][_0x2ff523(0x165)][_0x2ff523(0x15c)];_0x2719a6[_0x2ff523(0x192)](_0x2ff523(0x17d))&&_0x2719a6[_0x2ff523(0x175)](_0x2ff523(0x17d),{'allowAttributes':[_0x2ff523(0x198)]}),_0x2719a6[_0x2ff523(0x192)](_0x2ff523(0x183))&&_0x2719a6[_0x2ff523(0x175)](_0x2ff523(0x183),{'allowAttributes':[_0x2ff523(0x198)]});}[_0x424bd4(0x146)](){const _0x1b0396=_0x424bd4,_0x5eb5a9=this[_0x1b0396(0x145)];_0x5eb5a9[_0x1b0396(0x18b)][_0x1b0396(0x14b)](_0x1b0396(0x152))[_0x1b0396(0x16e)]({'model':_0x1b0396(0x198),'view':_0x1b0396(0x187)}),_0x5eb5a9[_0x1b0396(0x18b)][_0x1b0396(0x14b)](_0x1b0396(0x18d))[_0x1b0396(0x157)]({'model':{'key':_0x1b0396(0x198),'value':_0x5c642f=>_0x5c642f[_0x1b0396(0x197)](_0x1b0396(0x187))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1ac762=_0x5eb5a9[_0x1b0396(0x15e)][_0x1b0396(0x166)](_0x1b0396(0x14a));_0x1ac762&&this[_0x1b0396(0x14c)](_0x1ac762,_0x1b0396(0x147),(_0x4891d6,[_0x2d89ad,_0x1358a7])=>{const _0x135ee7=_0x1b0396;_0x2d89ad[_0x135ee7(0x193)](_0x135ee7(0x198),_0x1358a7);});}[_0x424bd4(0x156)](){const _0x3c4d2b=_0x424bd4,_0x55761c=this[_0x3c4d2b(0x145)][_0x3c4d2b(0x17e)][_0x3c4d2b(0x166)](_0x3c4d2b(0x159))||{},_0x294b0f=this[_0x3c4d2b(0x145)][_0x3c4d2b(0x17e)][_0x3c4d2b(0x166)](_0x3c4d2b(0x14d))||'';this[_0x3c4d2b(0x17a)]=_0x585d44(_0x111d08[_0x3c4d2b(0x182)],_0x3c4d2b(0x168),{..._0x55761c,'pubkey':_0x294b0f,'ctx-name':_0x3c4d2b(0x196)+this[_0x3c4d2b(0x19a)],'sourceList':'','imgOnly':_0x3c4d2b(0x173),'removeCopyright':_0x3c4d2b(0x173),'localeName':this[_0x3c4d2b(0x145)][_0x3c4d2b(0x154)][_0x3c4d2b(0x153)],'externalSourcesEmbedCss':_0x3c4d2b(0x144)}),this[_0x3c4d2b(0x17a)][_0x3c4d2b(0x14e)]=_0x36d3a5=>{const _0x4db411=_0x3c4d2b;if(_0x4db411(0x176)==_0x36d3a5)return _0x4db411(0x155);},_0x111d08[_0x3c4d2b(0x182)][_0x3c4d2b(0x163)][_0x3c4d2b(0x14f)](this[_0x3c4d2b(0x17a)]);}[_0x424bd4(0x15f)](){const _0x4d5bf2=_0x424bd4;this[_0x4d5bf2(0x18e)]=_0x585d44(_0x111d08[_0x4d5bf2(0x182)],_0x4d5bf2(0x190),{'ctx-name':_0x4d5bf2(0x196)+this[_0x4d5bf2(0x19a)]}),_0x111d08[_0x4d5bf2(0x182)][_0x4d5bf2(0x163)][_0x4d5bf2(0x14f)](this[_0x4d5bf2(0x18e)]);}[_0x424bd4(0x16c)](){const _0xad0ff9=_0x424bd4,_0x376d3c=this[_0xad0ff9(0x145)][_0xad0ff9(0x15e)][_0xad0ff9(0x166)](_0xad0ff9(0x170));_0x376d3c&&this[_0xad0ff9(0x14c)](_0x376d3c,_0xad0ff9(0x158),()=>{const _0x5ac723=_0xad0ff9,_0x2ae259=this[_0x5ac723(0x145)][_0x5ac723(0x165)][_0x5ac723(0x182)][_0x5ac723(0x164)][_0x5ac723(0x17b)]();_0x2ae259&&_0x2ae259[_0x5ac723(0x197)](_0x5ac723(0x198))&&this[_0x5ac723(0x145)][_0x5ac723(0x149)][_0x5ac723(0x151)][_0x5ac723(0x18a)](_0x5ac723(0x162),()=>{const _0x46fc01=_0x5ac723;_0x1b1d2e(this[_0x46fc01(0x145)],_0x2ae259);});});const _0x10e2d7=this[_0xad0ff9(0x145)][_0xad0ff9(0x15e)][_0xad0ff9(0x166)](_0xad0ff9(0x174));_0x10e2d7&&this[_0xad0ff9(0x14c)](_0x10e2d7,_0xad0ff9(0x158),()=>{const _0x35a92e=_0xad0ff9,_0x514f1e=this[_0x35a92e(0x145)][_0x35a92e(0x165)][_0x35a92e(0x182)][_0x35a92e(0x164)][_0x35a92e(0x17b)]();_0x514f1e&&_0x514f1e[_0x35a92e(0x197)](_0x35a92e(0x198))&&this[_0x35a92e(0x145)][_0x35a92e(0x149)][_0x35a92e(0x151)][_0x35a92e(0x18a)](_0x35a92e(0x162),()=>{const _0x2869f4=_0x35a92e;_0x1b1d2e(this[_0x2869f4(0x145)],_0x514f1e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x44ae7a,ObservableMixin as _0x545daa}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4f7b14}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x9c82f5}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4116fa}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x23f619}from'../../utils/uploadutils.js';import{getImageUrls as _0x3da9db,getImageDimension as _0x3d0b40}from'../../utils/editingutils.js';import{isAncestor as _0x359310}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x545daa(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x35dbc5,_0x273156,_0x5405a2){super(),this['_editor']=_0x35dbc5,this['_dialog']=_0x273156,this['_imageElement']=_0x5405a2,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 _0x27a99d=this['_imageElement'],_0x50d857=_0x27a99d['getAttribute']('uploadcareImageId'),_0x13909f=_0x27a99d['getAttribute']('src');if(_0x50d857)await this['_loadImageInfo'](_0x50d857,_0x13909f);else{if(this['_imageCache']['has'](_0x13909f)){const _0x1f1f27=this['_imageCache']['get'](_0x13909f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f1f27['url'],this['imageDimension']=_0x1f1f27['dimension'],this['imageId']=_0x1f1f27['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x15f25a}=this['_editor'],t=_0x15f25a['t'],_0xe6cdb8=new _0x4116fa(_0x15f25a,this['imageStatus'],this['_attributes']);_0xe6cdb8['bind']('status')['to'](this,'imageStatus'),_0xe6cdb8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe6cdb8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe6cdb8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe6cdb8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x9c82f5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe6cdb8,'position':_0x4f7b14['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe6cdb8['focus']();},'onHide':()=>{_0xe6cdb8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x20ccec=>!_0x359310(_0x20ccec,_0xe6cdb8['element'])}});}['_loadImageInfo'](_0x381163,_0x2d3cbc){return _0x23f619['getInfo'](_0x381163,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xb7bf33=>{const {width:_0xde07e0,height:_0x14c713}=_0xb7bf33['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d3cbc,this['imageDimension']={'width':_0xde07e0,'height':_0x14c713},this['imageId']=_0x381163;})['catch'](_0x38ad06=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38ad06['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x590ec6,_0x112c24){return this['_getImageAsFile'](_0x590ec6)['then'](_0x15f739=>_0x23f619['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x112c24['signal'],'file':_0x15f739,'onProgress':_0x574b25=>{_0x574b25&&_0x574b25['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x574b25['value']));}}))['then'](_0x3e62af=>{const {width:_0x1bc53e,height:_0x465ca3}=_0x3e62af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e62af['cdnUrl'],this['imageDimension']={'width':_0x1bc53e,'height':_0x465ca3},this['imageId']=_0x3e62af['uuid'],this['imageUploadProgress']=null;const _0xd6d230=_0x590ec6['getAttribute']('src');this['_imageCache']['set'](_0xd6d230,{'id':_0x3e62af['uuid'],'url':_0x3e62af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x85a320=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x85a320['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28172c,_0x20b012){_0x28172c['on']('apply',(_0xffbeb1,_0x27cf95)=>{this['_replaceImage'](_0x20b012,_0x27cf95['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28172c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28172c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5eec5a,_0xa94fdf,_0x1afbf3){const _0x14370c=this['_editor'],{width:_0x5d2857,height:_0x5747df}=_0x3d0b40(_0xa94fdf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x44dfdf,imageSources:_0x10dcac}=_0x3da9db(_0xa94fdf,_0x5d2857);_0x14370c['model']['change'](_0x21ace0=>{if('$graveyard'===_0x5eec5a['root']['rootName']){_0x14370c['execute']('insertImage',{'imageType':_0x5eec5a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5eec5a['getAttributes']()),'uploadcareImageId':_0x1afbf3,'src':_0x44dfdf,'sources':_0x10dcac,'width':_0x5d2857,'height':_0x5747df}});const _0x42a6a4=_0x5eec5a['getChildren']();_0x5eec5a=_0x14370c['model']['document']['selection']['getSelectedElement']();for(const _0x11fbc9 of _0x42a6a4)_0x21ace0['append'](_0x21ace0['cloneElement'](_0x11fbc9),_0x5eec5a);}else _0x21ace0['setSelection'](_0x5eec5a,'on'),_0x14370c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5eec5a['getAttributes']()),'uploadcareImageId':_0x1afbf3,'src':_0x44dfdf,'sources':_0x10dcac,'width':_0x5d2857,'height':_0x5747df},_0x5eec5a);_0x21ace0['setSelection'](_0x5eec5a,'on');});}async['_getImageAsFile'](_0x3e473d){const _0x293dbc=_0x44ae7a['window'],_0x16490b=_0x44ae7a['document']['location']['href'],_0xd1091e=new _0x293dbc['URL'](_0x3e473d['getAttribute']('src'),_0x16490b);if('data:'===_0xd1091e['protocol']){const _0x4ef9e1=_0xd1091e['href']['split'](','),_0x370d78=_0x4ef9e1[0x0]['match'](/:(.*?);/)[0x1],_0x578a67=_0x370d78['split']('/')[0x1],_0x250459=_0x293dbc['atob'](_0x4ef9e1[_0x4ef9e1['length']-0x1]);let _0x4592c8=_0x250459['length'];const _0x278621=new _0x293dbc['Uint8Array'](_0x4592c8);for(;_0x4592c8--;)_0x278621[_0x4592c8]=_0x250459['charCodeAt'](_0x4592c8);return new _0x293dbc['File']([_0x278621],'image.'+_0x578a67,{'type':_0x370d78});}const _0x2b3291=_0xd1091e['href']['split']('/'),_0x48dfd3=_0x2b3291[_0x2b3291['length']-0x1],_0x350ce6=_0x48dfd3['split']('.')[0x1];return _0x293dbc['fetch'](_0xd1091e['href'])['then'](_0x542dee=>_0x542dee['clone']()['blob']())['then'](_0x3422ac=>new _0x293dbc['File']([_0x3422ac],_0x48dfd3,{'type':'image/'+_0x350ce6}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xe0af57,_0x4431a6){const _0x565045=_0x24c6,_0x51026e=_0xe0af57();while(!![]){try{const _0x5f0d1f=-parseInt(_0x565045(0x1d9))/0x1*(parseInt(_0x565045(0x1df))/0x2)+parseInt(_0x565045(0x1ea))/0x3*(-parseInt(_0x565045(0x1e5))/0x4)+-parseInt(_0x565045(0x1e8))/0x5+-parseInt(_0x565045(0x1e1))/0x6+-parseInt(_0x565045(0x1e7))/0x7*(parseInt(_0x565045(0x1de))/0x8)+parseInt(_0x565045(0x1e4))/0x9+parseInt(_0x565045(0x1dc))/0xa*(parseInt(_0x565045(0x1e9))/0xb);if(_0x5f0d1f===_0x4431a6)break;else _0x51026e['push'](_0x51026e['shift']());}catch(_0x2ac619){_0x51026e['push'](_0x51026e['shift']());}}}(_0x23f1,0xcdbda));import{View as _0x45f8e4}from'ckeditor5/src/ui.js';function _0x24c6(_0x423f46,_0x24c105){const _0x23f1c8=_0x23f1();return _0x24c6=function(_0x24c64d,_0xc002b6){_0x24c64d=_0x24c64d-0x1d8;let _0x32506d=_0x23f1c8[_0x24c64d];return _0x32506d;},_0x24c6(_0x423f46,_0x24c105);}function _0x23f1(){const _0x2e9e6a=['2407650bnEUNu','uc-cloud-image-editor','98168nkliTm','17462BZSaiv','imageSrc','4640154AKwTMG','setTemplate','set','5241402nNjETa','10776FLSOrV','ck-uploadcare-theme','497IWlUre','4897450IlBSYN','165wnUciG','411lursyG','image-edit','41PrRsxL','bindTemplate','uc-light'];_0x23f1=function(){return _0x2e9e6a;};return _0x23f1();}export class UploadcareImageEditFormEditingView extends _0x45f8e4{constructor(_0x120a00,_0x4b7923){const _0x41673d=_0x24c6;super(_0x120a00);const _0x9c2875=this[_0x41673d(0x1da)];this[_0x41673d(0x1e3)](_0x41673d(0x1e0),''),this[_0x41673d(0x1e2)]({'tag':_0x41673d(0x1dd),'attributes':{..._0x4b7923,'class':[_0x41673d(0x1db),_0x41673d(0x1e6)],'ctx-name':_0x41673d(0x1d8),'cdn-url':_0x9c2875['to'](_0x41673d(0x1e0))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2e910c}from'ckeditor5/src/icons.js';import{ButtonView as _0x14903d,IconView as _0x3ac606,View as _0x505401}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x505401{constructor(_0x5b1f9a){super(_0x5b1f9a);const t=_0x5b1f9a['t'];this['set']('errorType',null);const _0x209db7=new _0x14903d(_0x5b1f9a);_0x209db7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x209db7['withText']=!0x0,_0x209db7['class']='ck-button-action',_0x209db7['on']('execute',()=>{this['fire']('retry');}),_0x209db7['bind']('isVisible')['to'](this,'errorType',_0x330219=>'NotFound'!==_0x330219);const _0x55441c=new _0x3ac606();_0x55441c['content']=_0x2e910c,_0x55441c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xd31131=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':[_0x55441c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xd31131['to']('errorType',_0x4f25a8=>t('NotFound'!==_0x4f25a8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x209db7]},{'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 _0x28b1ee,View as _0x18c7a7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x18c7a7{constructor(_0xe671c2){super(_0xe671c2);const t=_0xe671c2['t'],_0x5764a8=this['bindTemplate'],_0x4734f7=new _0x28b1ee();_0x4734f7['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':[_0x4734f7,{'text':_0x5764a8['to']('imageUploadProgress',_0xaa8851=>t('Loading\x20image...')+'\x20('+(_0xaa8851||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x47c48c=_0x5695;(function(_0x6e3198,_0x11f351){const _0x52ace8=_0x5695,_0x3f5a75=_0x6e3198();while(!![]){try{const _0x37eae6=parseInt(_0x52ace8(0xf6))/0x1*(parseInt(_0x52ace8(0xfa))/0x2)+parseInt(_0x52ace8(0xe2))/0x3*(-parseInt(_0x52ace8(0xe5))/0x4)+parseInt(_0x52ace8(0xec))/0x5+parseInt(_0x52ace8(0xe3))/0x6+-parseInt(_0x52ace8(0xe4))/0x7*(parseInt(_0x52ace8(0x102))/0x8)+-parseInt(_0x52ace8(0x106))/0x9*(-parseInt(_0x52ace8(0xeb))/0xa)+-parseInt(_0x52ace8(0x115))/0xb*(parseInt(_0x52ace8(0x114))/0xc);if(_0x37eae6===_0x11f351)break;else _0x3f5a75['push'](_0x3f5a75['shift']());}catch(_0x3b18e2){_0x3f5a75['push'](_0x3f5a75['shift']());}}}(_0x3530,0x22f14));import{View as _0x2235a5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x52ca0e}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3efc05}from'./uploadcareimageeditformerrorview.js';function _0x5695(_0x87dda6,_0x7e243b){const _0x35304d=_0x3530();return _0x5695=function(_0x5695ad,_0x4a9b43){_0x5695ad=_0x5695ad-0xe1;let _0x22540a=_0x35304d[_0x5695ad];return _0x22540a;},_0x5695(_0x87dda6,_0x7e243b);}function _0x3530(){const _0x32f3fe=['1458264pffGRP','11ExUnqt','setTemplate','toLowerCase','focus','addEventListener','_focusableView','279987rOnvNZ','1676304BSuzZa','42LynzaP','8GZZCuy','_waitForImageEditorComponent','retry','_addErrorViewListeners','length','detail','1046410maTSoy','628070ZNulax','cdnUrl','nodeName','_editingView','_addUploadcareImageEditorListeners','ready','add','disconnect','change:status','cancel','3CGdURd','div','createCollection','uc-cloud-image-editor','70974dREUaS','_loadingView','_items','set','clear','ck-uploadcare-form','observe','querySelector','219728LNPJGt','element','getFocusableElement','filter','9bgkkkv','addMany','ck-reset_all-excluded','addedNodes','error','apply','target','fire','_setView','once','render','status','_errorView','uploading'];_0x3530=function(){return _0x32f3fe;};return _0x3530();}import{UploadcareImageEditFormEditingView as _0x565749}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x200d01}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x200d01{[_0x47c48c(0xfc)];[_0x47c48c(0xfb)];[_0x47c48c(0x112)];[_0x47c48c(0xef)];[_0x47c48c(0xe1)];constructor(_0x4f5185,_0x3a71e9,_0x4df1f7){const _0x48717d=_0x47c48c;super(_0x4f5185),this[_0x48717d(0xfc)]=this[_0x48717d(0xf8)](),this[_0x48717d(0xfb)]=new _0x52ca0e(_0x4f5185),this[_0x48717d(0x112)]=new _0x3efc05(_0x4f5185),this[_0x48717d(0xef)]=new _0x565749(_0x4f5185,_0x4df1f7),this[_0x48717d(0xe1)]=new _0x2235a5(_0x4f5185),this[_0x48717d(0xe1)][_0x48717d(0x116)](this[_0x48717d(0x104)]()),this[_0x48717d(0xfd)](_0x48717d(0x111),_0x3a71e9),this[_0x48717d(0x116)]({'tag':_0x48717d(0xf7),'attributes':{'class':['ck',_0x48717d(0x108),_0x48717d(0xff)],'tabindex':'-1'},'children':this[_0x48717d(0xfc)]}),this[_0x48717d(0x10e)](),this[_0x48717d(0x10f)](_0x48717d(0x110),()=>{const _0x30f23d=_0x48717d;this[_0x30f23d(0xe6)](this[_0x30f23d(0x103)],_0x6c256e=>{const _0x3558ed=_0x30f23d;this[_0x3558ed(0xf0)](_0x6c256e);});}),this['on'](_0x48717d(0xf4),()=>{const _0x574d06=_0x48717d;this[_0x574d06(0x10e)]();}),this[_0x48717d(0xe8)]();}[_0x47c48c(0x118)](){const _0x33df98=_0x47c48c;this[_0x33df98(0x103)][_0x33df98(0x118)]();}[_0x47c48c(0x10e)](){const _0x2e94f6=_0x47c48c;switch(this[_0x2e94f6(0xfc)][_0x2e94f6(0xfe)](),this[_0x2e94f6(0x111)]){case _0x2e94f6(0x113):this[_0x2e94f6(0xfc)][_0x2e94f6(0xf2)](this[_0x2e94f6(0xfb)]);break;case _0x2e94f6(0x10a):this[_0x2e94f6(0xfc)][_0x2e94f6(0xf2)](this[_0x2e94f6(0x112)]);break;case _0x2e94f6(0xf1):this[_0x2e94f6(0xfc)][_0x2e94f6(0x107)]([this[_0x2e94f6(0xef)],this[_0x2e94f6(0xe1)]]);}}[_0x47c48c(0xe6)](_0x1b72aa,_0x4418d6){const _0x553351=_0x47c48c,_0x4bfd51=_0x553351(0xf9),_0x4b0b7c=_0x1b72aa[_0x553351(0x101)](_0x4bfd51);if(_0x4b0b7c)return _0x4418d6(_0x4b0b7c);const _0x5ed17e=new MutationObserver(_0x5acffd=>{const _0x4eabb4=_0x553351,_0x35106d=_0x5acffd[_0x4eabb4(0x105)](_0x48d888=>_0x48d888[_0x4eabb4(0x10c)]===_0x1b72aa&&_0x48d888[_0x4eabb4(0x109)][_0x4eabb4(0xe9)]>0x0&&_0x48d888[_0x4eabb4(0x109)][0x0][_0x4eabb4(0xee)][_0x4eabb4(0x117)]()===_0x4bfd51);_0x35106d[_0x4eabb4(0xe9)]&&(_0x5ed17e[_0x4eabb4(0xf3)](),_0x4418d6(_0x35106d[0x0][_0x4eabb4(0x109)][0x0]));});_0x5ed17e[_0x553351(0x100)](_0x1b72aa,{'childList':!0x0,'subtree':!0x0});}[_0x47c48c(0xf0)](_0x3182bf){const _0x378e4d=_0x47c48c;_0x3182bf[_0x378e4d(0x119)](_0x378e4d(0x10b),_0x4649e6=>{const _0x421704=_0x378e4d;this[_0x421704(0x10d)](_0x421704(0x10b),{'imageSrc':_0x4649e6[_0x421704(0xea)][_0x421704(0xed)]});}),_0x3182bf[_0x378e4d(0x119)](_0x378e4d(0xf5),()=>{const _0x904e73=_0x378e4d;this[_0x904e73(0x10d)](_0x904e73(0xf5));});}[_0x47c48c(0xe8)](){const _0x3547f9=_0x47c48c;this[_0x3547f9(0x112)]['on'](_0x3547f9(0xe7),()=>{const _0x1bd5c2=_0x3547f9;this[_0x1bd5c2(0x10d)](_0x1bd5c2(0xe7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e1648=_0x2b75;(function(_0x5a1541,_0x3b2264){const _0x53fa82=_0x2b75,_0x12aa5a=_0x5a1541();while(!![]){try{const _0x31f95f=parseInt(_0x53fa82(0x14a))/0x1*(-parseInt(_0x53fa82(0x14c))/0x2)+parseInt(_0x53fa82(0x166))/0x3*(parseInt(_0x53fa82(0x15d))/0x4)+parseInt(_0x53fa82(0x150))/0x5*(parseInt(_0x53fa82(0x169))/0x6)+parseInt(_0x53fa82(0x152))/0x7*(-parseInt(_0x53fa82(0x162))/0x8)+-parseInt(_0x53fa82(0x165))/0x9+-parseInt(_0x53fa82(0x161))/0xa+parseInt(_0x53fa82(0x160))/0xb*(parseInt(_0x53fa82(0x157))/0xc);if(_0x31f95f===_0x3b2264)break;else _0x12aa5a['push'](_0x12aa5a['shift']());}catch(_0x53dabd){_0x12aa5a['push'](_0x12aa5a['shift']());}}}(_0x3617,0x2dbae));import{Command as _0x3c4286}from'ckeditor5/src/core.js';function _0x2b75(_0x573355,_0x4cf50a){const _0x361755=_0x3617();return _0x2b75=function(_0x2b7588,_0x17620d){_0x2b7588=_0x2b7588-0x14a;let _0x5ef7a6=_0x361755[_0x2b7588];return _0x5ef7a6;},_0x2b75(_0x573355,_0x4cf50a);}import{Dialog as _0x341a43}from'ckeditor5/src/ui.js';function _0x3617(){const _0x25398c=['editor','16049UNwrNo','1120960kCehDd','8uuIjHT','plugins','model','1097730bvxdod','9087LACEla','execute','refresh','129588yyqWaG','isActive','document','1FJCvLA','requires','555670HNaaIQ','_isEditable','set','config','40OgrPyt','imageInline','1221353zHYbmc','selection','isEnabled','uploadcare.allowExternalImagesEditing','element','3996YncxtK','unbind','get','imageBlock','bind','imageEditController','284CiJnkh','getSelectedElement'];_0x3617=function(){return _0x25398c;};return _0x3617();}import{UploadcareImageEditController as _0x36ea1e}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2e1cc0}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3c4286{[_0x4e1648(0x15c)];static get[_0x4e1648(0x14b)](){return[_0x341a43];}[_0x4e1648(0x14d)];constructor(_0xe7a162){const _0x2d9f9e=_0x4e1648;super(_0xe7a162),this[_0x2d9f9e(0x15c)]=void 0x0,this[_0x2d9f9e(0x14d)]=_0x2e1cc0(_0xe7a162[_0x2d9f9e(0x14f)][_0x2d9f9e(0x159)](_0x2d9f9e(0x155))||[]),this[_0x2d9f9e(0x14e)]({'isActive':!0x1});}[_0x4e1648(0x168)](){const _0x5b2299=_0x4e1648,_0x3238c4=this[_0x5b2299(0x15f)][_0x5b2299(0x164)][_0x5b2299(0x16b)][_0x5b2299(0x153)][_0x5b2299(0x15e)]();this[_0x5b2299(0x154)]=this[_0x5b2299(0x14d)](_0x3238c4);}[_0x4e1648(0x167)](){const _0x32cad5=_0x4e1648;this[_0x32cad5(0x15c)]&&(this[_0x32cad5(0x158)](_0x32cad5(0x16a)),this[_0x32cad5(0x15c)]=void 0x0);const _0x594015=this[_0x32cad5(0x15f)][_0x32cad5(0x164)][_0x32cad5(0x16b)][_0x32cad5(0x153)][_0x32cad5(0x15e)]();_0x594015&&(_0x594015['is'](_0x32cad5(0x156),_0x32cad5(0x15a))||_0x594015['is'](_0x32cad5(0x156),_0x32cad5(0x151)))&&(this[_0x32cad5(0x15c)]=new _0x36ea1e(this[_0x32cad5(0x15f)],this[_0x32cad5(0x15f)][_0x32cad5(0x163)][_0x32cad5(0x159)](_0x341a43),_0x594015),this[_0x32cad5(0x15b)](_0x32cad5(0x16a))['to'](this[_0x32cad5(0x15c)],_0x32cad5(0x16a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x593bf2=_0x3754;(function(_0x41ddd4,_0x20e3bd){const _0x491cce=_0x3754,_0x2093e8=_0x41ddd4();while(!![]){try{const _0x13db49=-parseInt(_0x491cce(0x17d))/0x1*(-parseInt(_0x491cce(0x17a))/0x2)+parseInt(_0x491cce(0x16d))/0x3+-parseInt(_0x491cce(0x179))/0x4*(parseInt(_0x491cce(0x181))/0x5)+parseInt(_0x491cce(0x171))/0x6+-parseInt(_0x491cce(0x176))/0x7+parseInt(_0x491cce(0x173))/0x8+parseInt(_0x491cce(0x17f))/0x9;if(_0x13db49===_0x20e3bd)break;else _0x2093e8['push'](_0x2093e8['shift']());}catch(_0x1daefb){_0x2093e8['push'](_0x2093e8['shift']());}}}(_0x17c3,0x659f7));import{Plugin as _0x56e64e}from'ckeditor5/src/core.js';function _0x3754(_0x4b8fc1,_0x926e9a){const _0x17c34c=_0x17c3();return _0x3754=function(_0x3754a1,_0x2027ca){_0x3754a1=_0x3754a1-0x16d;let _0x5f4cad=_0x17c34c[_0x3754a1];return _0x5f4cad;},_0x3754(_0x4b8fc1,_0x926e9a);}import{Notification as _0x440d7a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xf1ae5}from'./uploadcareimageeditcommand.js';function _0x17c3(){const _0x5a48b8=['isOfficialPlugin','1358520egRgbu','705189KGJhcc','ImageUtils','add','uploadcareImageReplace','235566PryqKy','pluginName','2133128aFnpbG','ImageEditing','UploadcareImageEditEditing','4020863sumDeb','isPremiumPlugin','commands','12BPgQOO','1596390NOWhUn','init','uploadcareImageEdit','1SMCSHC','requires','4199472FaAvyY'];_0x17c3=function(){return _0x5a48b8;};return _0x17c3();}import{UploadcareImageReplaceCommand as _0x3878c0}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x18e343}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x56e64e{static get[_0x593bf2(0x172)](){const _0x49e412=_0x593bf2;return _0x49e412(0x175);}static get[_0x593bf2(0x17e)](){const _0x190b0e=_0x593bf2;return[_0x18e343,_0x440d7a,_0x190b0e(0x16e),_0x190b0e(0x174)];}static get[_0x593bf2(0x180)](){return!0x0;}static get[_0x593bf2(0x177)](){return!0x0;}[_0x593bf2(0x17b)](){const _0x434ff2=_0x593bf2,{editor:_0x41b1de}=this;_0x41b1de[_0x434ff2(0x178)][_0x434ff2(0x16f)](_0x434ff2(0x17c),new _0xf1ae5(_0x41b1de)),_0x41b1de[_0x434ff2(0x178)][_0x434ff2(0x16f)](_0x434ff2(0x170),new _0x3878c0(_0x41b1de));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5a416b}from'ckeditor5/src/core.js';import{ButtonView as _0x578fcb}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x28eaac}from'ckeditor5/src/icons.js';import{createElement as _0x30b9fb}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x5a416b{['_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 _0x2834f6=this['editor'];_0x2834f6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x41eb69=>{const _0x21ae20=_0x2834f6['commands']['get']('uploadcareImageEdit'),_0x5242c6=new _0x578fcb(_0x41eb69),t=_0x41eb69['t'];return _0x5242c6['set']({'icon':_0x28eaac,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5242c6['bind']('isEnabled')['to'](_0x21ae20),_0x5242c6['bind']('isOn')['to'](_0x21ae20,'isActive'),this['listenTo'](_0x5242c6,'execute',()=>{_0x2834f6['execute']('uploadcareImageEdit'),_0x2834f6['editing']['view']['focus']();}),_0x5242c6;}),this['_initConfig']();}['_initConfig'](){const _0x1f5e19=_0x30b9fb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f5e19),this['listenTo'](this['editor'],'destroy',()=>{_0x1f5e19['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5193(){const _0x45a428=['505445InpLHS','sizes','12kJbtOF','setAttributes','72ZdrqId','168550FcwqYG','refresh','1287eEJhuu','10pbkjGN','document','getSelectedElement','447zNWuIJ','imageInline','change','41952oZkFuy','element','editor','execute','isEnabled','1604NnGMjX','selection','imageBlock','1548963TwTDXj','825812ZerzNf','146517nyLnnh','model','srcset','removeAttribute'];_0x5193=function(){return _0x45a428;};return _0x5193();}const _0x20e1e3=_0x52d1;(function(_0x30b34a,_0x37d02d){const _0x4ac436=_0x52d1,_0x2c2766=_0x30b34a();while(!![]){try{const _0x39556d=-parseInt(_0x4ac436(0xc5))/0x1+parseInt(_0x4ac436(0xb7))/0x2*(-parseInt(_0x4ac436(0xaf))/0x3)+parseInt(_0x4ac436(0xbb))/0x4+parseInt(_0x4ac436(0xc0))/0x5*(-parseInt(_0x4ac436(0xc2))/0x6)+parseInt(_0x4ac436(0xbc))/0x7*(parseInt(_0x4ac436(0xc4))/0x8)+-parseInt(_0x4ac436(0xba))/0x9*(parseInt(_0x4ac436(0xac))/0xa)+-parseInt(_0x4ac436(0xab))/0xb*(-parseInt(_0x4ac436(0xb2))/0xc);if(_0x39556d===_0x37d02d)break;else _0x2c2766['push'](_0x2c2766['shift']());}catch(_0x12197e){_0x2c2766['push'](_0x2c2766['shift']());}}}(_0x5193,0x228db));function _0x52d1(_0x5c510b,_0x263abe){const _0x519371=_0x5193();return _0x52d1=function(_0x52d1f4,_0x75295b){_0x52d1f4=_0x52d1f4-0xaa;let _0xe9315b=_0x519371[_0x52d1f4];return _0xe9315b;},_0x52d1(_0x5c510b,_0x263abe);}import{Command as _0x550ea7}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x550ea7{[_0x20e1e3(0xaa)](){const _0x359c1f=_0x20e1e3,_0xa12b7d=this[_0x359c1f(0xb4)][_0x359c1f(0xbd)][_0x359c1f(0xad)][_0x359c1f(0xb8)][_0x359c1f(0xae)]();this[_0x359c1f(0xb6)]=Boolean(_0xa12b7d&&(_0xa12b7d['is'](_0x359c1f(0xb3),_0x359c1f(0xb9))||_0xa12b7d['is'](_0x359c1f(0xb3),_0x359c1f(0xb0))));}[_0x20e1e3(0xb5)](_0x16535b){const _0x13e241=_0x20e1e3,_0x40bd26=this[_0x13e241(0xb4)][_0x13e241(0xbd)][_0x13e241(0xad)][_0x13e241(0xb8)][_0x13e241(0xae)]();this[_0x13e241(0xb4)][_0x13e241(0xbd)][_0x13e241(0xb1)](_0x22f3c4=>{const _0x4c86cc=_0x13e241;_0x22f3c4[_0x4c86cc(0xc3)](_0x16535b,_0x40bd26),_0x22f3c4[_0x4c86cc(0xbf)](_0x4c86cc(0xbe),_0x40bd26),_0x22f3c4[_0x4c86cc(0xbf)](_0x4c86cc(0xc1),_0x40bd26);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb8c817=_0x4eca;(function(_0x9cc149,_0x2ed3ad){var _0x16b97c=_0x4eca,_0x5953e0=_0x9cc149();while(!![]){try{var _0x4c7467=-parseInt(_0x16b97c(0x1a0))/0x1*(-parseInt(_0x16b97c(0x1a8))/0x2)+-parseInt(_0x16b97c(0x1ad))/0x3+-parseInt(_0x16b97c(0x1a6))/0x4+-parseInt(_0x16b97c(0x1ac))/0x5+-parseInt(_0x16b97c(0x1a2))/0x6*(-parseInt(_0x16b97c(0x1a7))/0x7)+parseInt(_0x16b97c(0x1a5))/0x8*(-parseInt(_0x16b97c(0x1a1))/0x9)+parseInt(_0x16b97c(0x1aa))/0xa;if(_0x4c7467===_0x2ed3ad)break;else _0x5953e0['push'](_0x5953e0['shift']());}catch(_0x2535e6){_0x5953e0['push'](_0x5953e0['shift']());}}}(_0x2598,0xd42a4));import{Plugin as _0x5b6276}from'ckeditor5/src/core.js';function _0x2598(){var _0x14ace6=['2298345lbBTsX','517410nvCRCY','isOfficialPlugin','6XSEMYF','669591KhCmuz','12gutwpi','isPremiumPlugin','pluginName','104wVKMwg','2848964GXQCQU','4848872EkKYrg','264606wkKtKp','UploadcareImageEdit','10013850mJcKdd','requires'];_0x2598=function(){return _0x14ace6;};return _0x2598();}function _0x4eca(_0x47c146,_0x32e0b8){var _0x25981c=_0x2598();return _0x4eca=function(_0x4eca4a,_0x2815fc){_0x4eca4a=_0x4eca4a-0x19f;var _0x248dcc=_0x25981c[_0x4eca4a];return _0x248dcc;},_0x4eca(_0x47c146,_0x32e0b8);}import{UploadcareImageEditEditing as _0x16cb33}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5d7cef}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5b6276{static get[_0xb8c817(0x1a4)](){var _0x13d6b7=_0xb8c817;return _0x13d6b7(0x1a9);}static get[_0xb8c817(0x1ab)](){return[_0x16cb33,_0x5d7cef];}static get[_0xb8c817(0x19f)](){return!0x0;}static get[_0xb8c817(0x1a3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x414b(){const _0x5d03be=['Dropbox','uploadcareLicenseKeyDomainLimit','get','config','entries','icon','_normalizeConfigSourceList','plugins','forEach','expired','Uploadcare','trialLimit','GDrive','_createDropdownButtons','usageLimit','565548pHwANJ','_getIntegrationKey','destroy','evaluationLimit','tooltip','208AXNLth','uploadcareLicenseKeyExpired','OneDrive','isEnabled','label','Replace','push','uploadcareLicenseKeyUsageLimit','type','upload','_createToolbarButton','execute','editor','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyValid','_licenseKeyCheckInterval','map','_createMenuBarButtons','uploadcare','commands','uploadcareLicenseKeyInvalid','text','159934xlSILm','featureNotAllowed','isImageSelected','afterInit','assetManager','2373178UjGTxo','Facebook','285472wFWlzt','locale','_createButton','_showLicenseError','bind','url','UploadcareUI','GPhotos','uploadcareLicenseKeyNotAllowed','isPremiumPlugin','shortText','invalid','registerIntegration','has','Local','uploadcare.uploader.sourceList','4314860VvaWWB','licenseKey','11113109WZpfGj','init','614304QfsKvm','isOfficialPlugin','domainLimit','Insert','withText','ImageInsertUI','3OFSWOh','URL','pluginName','reduce'];_0x414b=function(){return _0x5d03be;};return _0x414b();}const _0x5afe31=_0x5bfe;(function(_0x2c80c4,_0x2eae07){const _0x56d8c1=_0x5bfe,_0x33fa14=_0x2c80c4();while(!![]){try{const _0x33e9bd=-parseInt(_0x56d8c1(0xa4))/0x1+-parseInt(_0x56d8c1(0xa9))/0x2*(parseInt(_0x56d8c1(0xc5))/0x3)+-parseInt(_0x56d8c1(0xab))/0x4+-parseInt(_0x56d8c1(0xbb))/0x5+-parseInt(_0x56d8c1(0xd8))/0x6+parseInt(_0x56d8c1(0xbd))/0x7+-parseInt(_0x56d8c1(0xdd))/0x8*(-parseInt(_0x56d8c1(0xbf))/0x9);if(_0x33e9bd===_0x2eae07)break;else _0x33fa14['push'](_0x33fa14['shift']());}catch(_0x188e77){_0x33fa14['push'](_0x33fa14['shift']());}}}(_0x414b,0xf0ff2));import{Plugin as _0x219c66}from'ckeditor5/src/core.js';function _0x5bfe(_0x1e5c1,_0x3750f7){const _0x414b8c=_0x414b();return _0x5bfe=function(_0x5bfebe,_0x185efd){_0x5bfebe=_0x5bfebe-0x97;let _0xd949e8=_0x414b8c[_0x5bfebe];return _0xd949e8;},_0x5bfe(_0x1e5c1,_0x3750f7);}import{IconDropbox as _0x4b57c9,IconFacebook as _0x252a04,IconGoogleDrive as _0x21b44f,IconGooglePhotos as _0x390954,IconUploadcareImageUpload as _0x2a8c62,IconUploadcareLink as _0x52a45f,IconOneDrive as _0x4c9427}from'ckeditor5/src/icons.js';import{ButtonView as _0x42dc0,MenuBarMenuListItemButtonView as _0x5b4d2d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x51e24e}from'./uploadcareconfig.js';import{getTranslation as _0x25ab4d}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 class UploadcareUI extends _0x219c66{[_0x5afe31(0xbc)];[_0x5afe31(0x9d)];static get[_0x5afe31(0xc7)](){const _0x315aec=_0x5afe31;return _0x315aec(0xb1);}static get[_0x5afe31(0xc0)](){return!0x0;}static get[_0x5afe31(0xb4)](){return!0x0;}[_0x5afe31(0xbe)](){const _0x421b2b=_0x5afe31;this[_0x421b2b(0xbc)]=this[_0x421b2b(0x99)][_0x421b2b(0xcc)][_0x421b2b(0xcb)](_0x421b2b(0xbc));const _0x2b2f48=this[_0x421b2b(0x99)];this[_0x421b2b(0x9d)]=setInterval(()=>{const _0x29dcac=_0x421b2b;let _0x1e01bb;for(const _0x4940cd in _0x2b2f48){const _0x403c19=_0x4940cd,_0x389adf=_0x2b2f48[_0x403c19];if(_0x29dcac(0x9c)==_0x389adf||_0x29dcac(0xa2)==_0x389adf||_0x29dcac(0xde)==_0x389adf||_0x29dcac(0xca)==_0x389adf||_0x29dcac(0xb3)==_0x389adf||_0x29dcac(0x9a)==_0x389adf||_0x29dcac(0x9b)==_0x389adf||_0x29dcac(0xe4)==_0x389adf){delete _0x2b2f48[_0x403c19],_0x1e01bb=_0x389adf,clearInterval(this[_0x29dcac(0x9d)]),this[_0x29dcac(0x9d)]=void 0x0;break;}}_0x29dcac(0xa2)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xb6)),_0x29dcac(0xde)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xd2)),_0x29dcac(0xca)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xc1)),_0x29dcac(0xb3)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xa5),_0x29dcac(0xd3)),_0x29dcac(0x9a)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xdb)),_0x29dcac(0x9b)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xd4)),_0x29dcac(0xe4)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xd7));},0x3e8);}[_0x5afe31(0xa7)](){const _0x1cd47d=_0x5afe31,{editor:_0x38f2a1}=this,_0x4ed972=_0x38f2a1[_0x1cd47d(0xa1)][_0x1cd47d(0xcb)](_0x1cd47d(0xa0));if(!_0x4ed972)return;const _0x2a00a4=this[_0x1cd47d(0xcf)](_0x38f2a1[_0x1cd47d(0xcc)][_0x1cd47d(0xcb)](_0x1cd47d(0xba)))[_0x1cd47d(0xc8)]((_0x3f8190,_0x279296)=>{const _0x3256b6=_0x1cd47d,_0x169eb3=this[_0x3256b6(0xd9)](_0x279296[_0x3256b6(0xe5)]);return _0x3f8190[_0x169eb3]||(_0x3f8190[_0x169eb3]=[]),_0x3f8190[_0x169eb3][_0x3256b6(0xe3)](_0x279296),_0x3f8190;},{});_0x38f2a1[_0x1cd47d(0xd0)][_0x1cd47d(0xb8)](_0x1cd47d(0xc4))&&_0x38f2a1[_0x1cd47d(0xa1)][_0x1cd47d(0xcb)](_0x1cd47d(0xa0))&&Object[_0x1cd47d(0xcd)](_0x2a00a4)[_0x1cd47d(0xd1)](([_0x3767fe,_0x262829])=>{const _0x35e4f5=_0x1cd47d;_0x38f2a1[_0x35e4f5(0xd0)][_0x35e4f5(0xcb)](_0x35e4f5(0xc4))[_0x35e4f5(0xb7)]({'name':_0x3767fe,'observable':()=>_0x4ed972,'buttonViewCreator':()=>this[_0x35e4f5(0x97)](_0x262829),'formViewCreator':()=>this[_0x35e4f5(0xd6)](_0x262829),'menuBarButtonViewCreator':()=>this[_0x35e4f5(0x9f)](_0x262829),'override':_0x35e4f5(0xa8)!==_0x3767fe});});}[_0x5afe31(0xda)](){const _0x1a6755=_0x5afe31;super[_0x1a6755(0xda)](),this[_0x1a6755(0x9d)]&&clearInterval(this[_0x1a6755(0x9d)]);}[_0x5afe31(0xcf)](_0x1018ac){const _0x3320b9=_0x5afe31,{locale:_0x579f19}=this[_0x3320b9(0x99)];return _0x1018ac[_0x3320b9(0x9e)](_0x315266=>{const _0x36e152=_0x3320b9,_0x12343c=_0x25ab4d(_0x579f19,_0x315266,_0x36e152(0xc2));switch(_0x315266){case _0x51e24e[_0x36e152(0xb9)]:return{'icon':_0x2a8c62,'type':_0x51e24e[_0x36e152(0xb9)],..._0x12343c};case _0x51e24e[_0x36e152(0xc6)]:return{'icon':_0x52a45f,'type':_0x51e24e[_0x36e152(0xc6)],..._0x12343c};case _0x51e24e[_0x36e152(0xc9)]:return{'icon':_0x4b57c9,'type':_0x51e24e[_0x36e152(0xc9)],..._0x12343c};case _0x51e24e[_0x36e152(0xaa)]:return{'icon':_0x252a04,'type':_0x51e24e[_0x36e152(0xaa)],..._0x12343c};case _0x51e24e[_0x36e152(0xd5)]:return{'icon':_0x21b44f,'type':_0x51e24e[_0x36e152(0xd5)],..._0x12343c};case _0x51e24e[_0x36e152(0xb2)]:return{'icon':_0x390954,'type':_0x51e24e[_0x36e152(0xb2)],..._0x12343c};case _0x51e24e[_0x36e152(0xdf)]:return{'icon':_0x4c9427,'type':_0x51e24e[_0x36e152(0xdf)],..._0x12343c};}});}[_0x5afe31(0xd9)](_0x4ffa9a){const _0x1e3e57=_0x5afe31;switch(_0x4ffa9a){case _0x51e24e[_0x1e3e57(0xb9)]:return _0x1e3e57(0xe6);case _0x51e24e[_0x1e3e57(0xc6)]:return _0x1e3e57(0xb0);default:return _0x1e3e57(0xa8);}}[_0x5afe31(0xad)](_0x1196f7,_0x3a2f54){const _0x418dad=_0x5afe31,_0x3dd4ff=this[_0x418dad(0x99)],_0x2ab713=new _0x1196f7(_0x3dd4ff[_0x418dad(0xac)]),_0x171e25=_0x3dd4ff[_0x418dad(0xa1)][_0x418dad(0xcb)](_0x418dad(0xa0));return _0x2ab713[_0x418dad(0xaf)](_0x418dad(0xe0))['to'](_0x171e25),_0x2ab713['on'](_0x418dad(0x98),()=>{const _0x2ff9e1=_0x418dad;_0x171e25[_0x2ff9e1(0x98)](_0x3a2f54);}),_0x2ab713;}[_0x5afe31(0x97)](_0x40ee8c){const _0x584fb2=_0x5afe31,{locale:_0x2f5b05}=this[_0x584fb2(0x99)],_0x5e8f80=this[_0x584fb2(0x99)][_0x584fb2(0xd0)][_0x584fb2(0xcb)](_0x584fb2(0xc4)),_0x55b0f8=_0x40ee8c[0x0],_0xe5aa3c=this[_0x584fb2(0xad)](_0x42dc0,_0x55b0f8[_0x584fb2(0xe5)]);return _0xe5aa3c[_0x584fb2(0xce)]=_0x55b0f8[_0x584fb2(0xce)],_0xe5aa3c[_0x584fb2(0xaf)](_0x584fb2(0xe1))['to'](_0x5e8f80,_0x584fb2(0xa6),_0x5c8311=>_0x25ab4d(_0x2f5b05,_0x55b0f8[_0x584fb2(0xe5)],_0x5c8311?_0x584fb2(0xe2):_0x584fb2(0xc2))[_0x584fb2(0xa3)]),_0xe5aa3c[_0x584fb2(0xdc)]=!0x0,_0xe5aa3c;}[_0x5afe31(0xd6)](_0x9b689){const _0x4a640c=_0x5afe31,{locale:_0x19c23e}=this[_0x4a640c(0x99)],_0xaf7cbe=this[_0x4a640c(0x99)][_0x4a640c(0xd0)][_0x4a640c(0xcb)](_0x4a640c(0xc4));return _0x9b689[_0x4a640c(0x9e)](_0x49c0ef=>{const _0x471df2=_0x4a640c,_0x2125cb=this[_0x471df2(0xad)](_0x42dc0,_0x49c0ef[_0x471df2(0xe5)]);return _0x2125cb[_0x471df2(0xc3)]=!0x0,_0x2125cb[_0x471df2(0xce)]=_0x49c0ef[_0x471df2(0xce)],_0x2125cb[_0x471df2(0xaf)](_0x471df2(0xe1))['to'](_0xaf7cbe,_0x471df2(0xa6),_0x3e9240=>_0x25ab4d(_0x19c23e,_0x49c0ef[_0x471df2(0xe5)],_0x3e9240?_0x471df2(0xe2):_0x471df2(0xc2))[_0x471df2(0xa3)]),_0x2125cb;});}[_0x5afe31(0x9f)](_0x29a206){const _0x21bd0c=_0x5afe31;return _0x29a206[_0x21bd0c(0x9e)](_0x37c397=>{const _0x382fc1=_0x21bd0c,_0x6df63d=this[_0x382fc1(0xad)](_0x5b4d2d,_0x37c397[_0x382fc1(0xe5)]);return _0x6df63d[_0x382fc1(0xce)]=_0x37c397[_0x382fc1(0xce)],_0x6df63d[_0x382fc1(0xe1)]=_0x37c397[_0x382fc1(0xb5)],_0x6df63d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5deabd}from'ckeditor5/src/core.js';import{FileRepository as _0x3e4222}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x165b94}from'./uploadcareediting.js';import{UploadUtils as _0x462ec1}from'./utils/uploadutils.js';import{getImageUrls as _0x1e581f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5deabd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e4222,_0x165b94];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xf5d33=this['editor'];if(!!!_0xf5d33['config']['get']('uploadcare'))return;_0xf5d33['plugins']['get'](_0x3e4222)['createUploadAdapter']=_0x3d96f8=>new k(_0x3d96f8,_0xf5d33),_0xf5d33['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x47e062,{imageElement:_0x114a0e,data:_0x284e5a})=>{_0xf5d33['model']['change'](_0x2e5465=>{_0x2e5465['setAttribute']('uploadcareImageId',_0x284e5a['uploadcareImageId'],_0x114a0e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5d6127,_0x2e853d){this['loader']=_0x5d6127,this['editor']=_0x2e853d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x369526=await this['loader']['file'];return _0x462ec1['upload']({'file':_0x369526,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3f3ea7=>{_0x3f3ea7&&_0x3f3ea7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3f3ea7['value']);}})['then'](async _0x1d1686=>{const {imageFallbackUrl:_0x30de31,imageSources:_0x29ee7b}=_0x1e581f(_0x1d1686['cdnUrl'],_0x1d1686['imageInfo']['width']);return{'uploadcareImageId':_0x1d1686['uuid'],'default':_0x30de31,'sources':_0x29ee7b};})['catch'](()=>{const _0x203a2d=t('Cannot\x20upload\x20file:')+('\x20'+_0x369526['name']+'.');return Promise['reject'](_0x203a2d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x38dff8}from'../uploadcareconfig.js';export function getTranslation(_0x266870,_0x587255,_0x1e0acc){const t=_0x266870['t'],_0x14e34e=_0x266870['t'];switch(_0x587255){case _0x38dff8['Local']:return{'text':_0x14e34e('Insert'===_0x1e0acc?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x14e34e('From\x20computer')};case _0x38dff8['URL']:return{'text':'Insert'===_0x1e0acc?_0x14e34e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x14e34e('Via\x20URL')};case _0x38dff8['Dropbox']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x38dff8['Facebook']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x38dff8['GDrive']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x38dff8['GPhotos']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x38dff8['OneDrive']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x587255;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x25de(_0x2b8a7c,_0x5d2018){var _0x463763=_0x4637();return _0x25de=function(_0x25de57,_0x5005aa){_0x25de57=_0x25de57-0x98;var _0xd0a565=_0x463763[_0x25de57];return _0xd0a565;},_0x25de(_0x2b8a7c,_0x5d2018);}var _0x567e94=_0x25de;(function(_0x5472ae,_0x494af6){var _0x6d516a=_0x25de,_0x449c40=_0x5472ae();while(!![]){try{var _0x8c87f5=parseInt(_0x6d516a(0xab))/0x1*(parseInt(_0x6d516a(0xa5))/0x2)+-parseInt(_0x6d516a(0xa6))/0x3+parseInt(_0x6d516a(0xa8))/0x4*(-parseInt(_0x6d516a(0x9c))/0x5)+-parseInt(_0x6d516a(0xa9))/0x6*(-parseInt(_0x6d516a(0x9d))/0x7)+parseInt(_0x6d516a(0xa2))/0x8+parseInt(_0x6d516a(0x98))/0x9*(parseInt(_0x6d516a(0xaa))/0xa)+-parseInt(_0x6d516a(0xa0))/0xb;if(_0x8c87f5===_0x494af6)break;else _0x449c40['push'](_0x449c40['shift']());}catch(_0x26a357){_0x449c40['push'](_0x449c40['shift']());}}}(_0x4637,0x2d78d));import{FocusTracker as _0x1f5383}from'ckeditor5/src/utils.js';import{View as _0x252859,FocusCycler as _0x41132f}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x4637(){var _0x1e6cae=['true','createCollection','1451285fsUuwU','746599UojWll','bindTemplate','div','4610804eljDuR','focusTracker','2014336DXvWHC','getFocusableElement','focusCycler','639978ZbJIPD','64053ypiQKo','fire','4supPFW','12fpvxid','16700VvzzoS','1DoAScm','711uHzZma','forwardCycle'];_0x4637=function(){return _0x1e6cae;};return _0x4637();}export class DialogFocusManagerView extends _0x252859{[_0x567e94(0xa1)];[_0x567e94(0xa4)];constructor(_0x257a7a){var _0x131a45=_0x567e94;super(_0x257a7a),this[_0x131a45(0xa1)]=new _0x1f5383(),this[_0x131a45(0xa4)]=new _0x41132f({'focusables':this[_0x131a45(0x9b)](),'focusTracker':this[_0x131a45(0xa1)]});}[_0x567e94(0xa3)](){var _0x485a14=_0x567e94;return{'tag':_0x485a14(0x9f),'attributes':{'aria-hidden':_0x485a14(0x9a),'tabindex':'0'},'on':{'focus':this[_0x485a14(0x9e)]['to'](()=>{var _0xe24f0b=_0x485a14;this[_0xe24f0b(0xa4)][_0xe24f0b(0xa7)](_0xe24f0b(0x99));})}};}}
|