@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250825.0 → 0.0.0-nightly-20250827.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-editor.css +1 -1
- package/dist/index.css +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 +10 -10
- 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
|
-
function _0x4329(_0x114b52,_0x5be498){const _0x44ed88=_0x44ed();return _0x4329=function(_0x432975,_0x191804){_0x432975=_0x432975-0x184;let _0x3744df=_0x44ed88[_0x432975];return _0x3744df;},_0x4329(_0x114b52,_0x5be498);}const _0x266ee0=_0x4329;(function(_0x593d97,_0x33a001){const _0x1c2e60=_0x4329,_0x363f00=_0x593d97();while(!![]){try{const _0x58f651=-parseInt(_0x1c2e60(0x187))/0x1+parseInt(_0x1c2e60(0x1bc))/0x2*(parseInt(_0x1c2e60(0x184))/0x3)+parseInt(_0x1c2e60(0x193))/0x4*(parseInt(_0x1c2e60(0x1c1))/0x5)+-parseInt(_0x1c2e60(0x1ab))/0x6*(-parseInt(_0x1c2e60(0x1c7))/0x7)+-parseInt(_0x1c2e60(0x1c2))/0x8*(parseInt(_0x1c2e60(0x186))/0x9)+-parseInt(_0x1c2e60(0x1cc))/0xa+parseInt(_0x1c2e60(0x1a8))/0xb;if(_0x58f651===_0x33a001)break;else _0x363f00['push'](_0x363f00['shift']());}catch(_0x569fff){_0x363f00['push'](_0x363f00['shift']());}}}(_0x44ed,0xc5957));import{Plugin as _0x202095}from'ckeditor5/src/core.js';import{Dialog as _0x162fd0}from'ckeditor5/src/ui.js';import{createElement as _0x4580e8,global as _0x333496,uid as _0x12626e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2edd42}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2d127f}from'./uploadcareuploadadapter.js';function _0x44ed(){const _0x9dbc09=['ctxElement','execute','appendChild','uc-config','replaceImageSource','uploadcare.uploader','1093066dMzTCu','isOfficialPlugin','isPremiumPlugin','_ctxElement','selection','365JAterS','2928uWJRJa','isRegistered','#uc-icon-arrow-down','requires','config','259zZYUnU','ucContextId','imageBlock','removeAttribute','document','10869780wIopLI','_initConfig','map','view','get','add','join','listenTo','commands','once','init','iconHrefResolver','input[uploadcare-file-input]','uploadcare.pubkey','3AppPhV','extend','37404AtpMqf','748244EZwxUy','uploader-','render','imageInline','querySelector','cleanupImage','_initConversion','UploadcareEditing','elementToAttribute','afterInit','fromCharCode','data-uc-image-id','85456FNdRAp','remove','insertImage','contentLanguage','for','editor','locale','\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','model','body','PictureEditing','upcast','destroy','uploadcare','pluginName','uploadcareImageReplace','schema','configElement','_initImageProcessingIndicator','getSelectedElement','closeMax','18457285DnAArN','_configElement','uploadcareImageId','61878KyJPTc','_initCtx','editing','_initSchema','true','downcast','attributeToAttribute','href','getAttribute','uc-upload-ctx-provider','conversion'];_0x44ed=function(){return _0x9dbc09;};return _0x44ed();}import{showImageProcessingIndicator as _0x4677bf}from'./utils/editingutils.js';export class UploadcareEditing extends _0x202095{[_0x266ee0(0x1a9)]=null;[_0x266ee0(0x1bf)]=null;static get[_0x266ee0(0x1a1)](){const _0x56e46d=_0x266ee0;return _0x56e46d(0x18e);}static get[_0x266ee0(0x1c5)](){const _0x3e327c=_0x266ee0;return[_0x3e327c(0x19d),_0x2d127f,_0x162fd0];}static get[_0x266ee0(0x1bd)](){return!0x0;}static get[_0x266ee0(0x1be)](){return!0x0;}[_0x266ee0(0x1c8)];get[_0x266ee0(0x1a4)](){const _0x1402c4=_0x266ee0;return this[_0x1402c4(0x1a9)];}get[_0x266ee0(0x1b6)](){const _0x219aff=_0x266ee0;return this[_0x219aff(0x1bf)];}constructor(_0x2b624e){const _0x1a5f05=_0x266ee0;super(_0x2b624e),this[_0x1a5f05(0x1c8)]=_0x12626e();}[_0x266ee0(0x1d6)](){const _0x264bfd=_0x266ee0,_0xe275ff=this[_0x264bfd(0x198)];_0xe275ff[_0x264bfd(0x1d4)][_0x264bfd(0x1d1)](_0x264bfd(0x1a0),new _0x2edd42(_0xe275ff));}[_0x266ee0(0x190)](){const _0x2b0ea4=_0x266ee0;this[_0x2b0ea4(0x1ae)](),this[_0x2b0ea4(0x18d)](),this[_0x2b0ea4(0x1cd)](),this[_0x2b0ea4(0x1ac)](),this[_0x2b0ea4(0x1a5)](),this[_0x2b0ea4(0x1d3)](this[_0x2b0ea4(0x198)],_0x2b0ea4(0x19f),()=>{const _0x17dca9=_0x2b0ea4;this[_0x17dca9(0x1a9)]&&(this[_0x17dca9(0x1a9)][_0x17dca9(0x194)](),this[_0x17dca9(0x1a9)]=null),this[_0x17dca9(0x1bf)]&&(this[_0x17dca9(0x1bf)][_0x17dca9(0x194)](),this[_0x17dca9(0x1bf)]=null);const _0x3fcec7=_0x333496[_0x17dca9(0x1cb)][_0x17dca9(0x18b)](_0x17dca9(0x1d8));_0x3fcec7&&_0x3fcec7[_0x17dca9(0x194)]();}),async function(_0x1b5802){const _0x14eefa=_0x9eea5b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x45391a=0x3d8d0df,_0x40942e=0x3dfa1a7^_0x45391a,_0x31d089=window[_0x9eea5b([0x44,0x61,0x74,0x65])][_0x9eea5b([0x6e,0x6f,0x77])](),_0x315cf7=_0x1b5802[_0x9eea5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x388bb5=new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c1b11=>{_0x315cf7[_0x9eea5b([0x6f,0x6e,0x63,0x65])](_0x9eea5b([0x72,0x65,0x61,0x64,0x79]),_0x4c1b11);}),_0x208881={[_0x9eea5b([0x6b,0x74,0x79])]:_0x9eea5b([0x45,0x43]),[_0x9eea5b([0x75,0x73,0x65])]:_0x9eea5b([0x73,0x69,0x67]),[_0x9eea5b([0x63,0x72,0x76])]:_0x9eea5b([0x50,0x2d,0x32,0x35,0x36]),[_0x9eea5b([0x78])]:_0x9eea5b([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]),[_0x9eea5b([0x79])]:_0x9eea5b([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]),[_0x9eea5b([0x61,0x6c,0x67])]:_0x9eea5b([0x45,0x53,0x32,0x35,0x36])},_0x2af6f4=_0x315cf7[_0x9eea5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9eea5b([0x67,0x65,0x74])](_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e925f(){let _0x2dc88a,_0x307f66=null,_0x174657=null;try{if(_0x2af6f4==_0x9eea5b([0x47,0x50,0x4c]))return _0x9eea5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dc88a=_0x10c172(),!_0x2dc88a)return _0x9eea5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dc88a[_0x9eea5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x174657=_0x3e9c38(_0x2dc88a[_0x9eea5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dc88a[_0x9eea5b([0x6a,0x74,0x69])])),await _0x537000()?_0x275e63()?_0x520edd()?_0x9eea5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25f4bb()?(_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9eea5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x307f66=_0x242597(_0x9eea5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9eea5b([0x74,0x72,0x69,0x61,0x6c])&&(_0x307f66=_0x242597(_0x9eea5b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2458f2()):_0x9eea5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9eea5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9eea5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9eea5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x520edd(){const _0x53c010=[_0x9eea5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9eea5b([0x74,0x72,0x69,0x61,0x6c])][_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31d089/0x3e8:0xe10*_0x40942e;return _0x2dc88a[_0x9eea5b([0x65,0x78,0x70])]<_0x53c010;}function _0x275e63(){const _0x56f803=_0x2dc88a[_0x9eea5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56f803&&(!!_0x56f803[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9eea5b([0x2a]))||!!_0x56f803[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9eea5b([0x55,0x50,0x4c,0x43])));}function _0x25f4bb(){const _0x37c26e=_0x4329,_0x297bd4=_0x2dc88a[_0x9eea5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x297bd4||0x0==_0x297bd4[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25748a}=new URL(window[_0x9eea5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37c26e(0x1b2)]);if(_0x297bd4[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25748a))return!0x0;const _0x3f50af=_0x25748a[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e]));return _0x297bd4[_0x9eea5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29f484=>_0x29f484[_0x9eea5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9eea5b([0x2a])))[_0x9eea5b([0x6d,0x61,0x70])](_0x4384b8=>_0x4384b8[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e])))[_0x9eea5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x329bb9=>_0x329bb9[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f50af[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9eea5b([0x6d,0x61,0x70])](_0x42aae7=>Array(_0x3f50af[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42aae7[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9eea5b([0x66,0x69,0x6c,0x6c])](_0x42aae7[0x0]===_0x9eea5b([0x2a])?_0x9eea5b([0x2a]):'')[_0x9eea5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42aae7))[_0x9eea5b([0x73,0x6f,0x6d,0x65])](_0xa93200=>_0x3f50af[_0x9eea5b([0x65,0x76,0x65,0x72,0x79])]((_0x3d3a19,_0xa88f43)=>_0xa93200[_0xa88f43]===_0x3d3a19||_0xa93200[_0xa88f43]===_0x9eea5b([0x2a])));}function _0x2458f2(){return _0x307f66&&_0x174657?new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x562721,_0x4e3654)=>{_0x307f66[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x562721,_0x4e3654),_0x174657[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x2a733b=>{_0x2a733b!=_0x9eea5b([0x56,0x61,0x6c,0x69,0x64])&&_0x562721(_0x2a733b);},_0x4e3654);}):_0x307f66||_0x174657||_0x9eea5b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e9c38(_0x9aa2ba,_0x3c03db){return new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5238a4=>{if(_0x52471b())return _0x5238a4(_0x9eea5b([0x56,0x61,0x6c,0x69,0x64]));_0x55d93e(),_0x315cf7[_0x9eea5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9eea5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fa6ea=!0x1;const _0x41ebba=_0x12626e();function _0x2391ab(_0x5a2a94){return!!_0x5a2a94&&(typeof _0x5a2a94===_0x9eea5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a2a94===_0x9eea5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a2a94[_0x9eea5b([0x74,0x68,0x65,0x6e])]===_0x9eea5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a2a94[_0x9eea5b([0x63,0x61,0x74,0x63,0x68])]===_0x9eea5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a813a(_0x4e93ad){_0x25150c(_0x4e93ad)[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x2cc89f=>{if(!_0x2cc89f||_0x2cc89f[_0x9eea5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9eea5b([0x6f,0x6b]))return _0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x181bef(_0x14efdf(_0x41ebba+_0x3c03db))!=_0x2cc89f[_0x9eea5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9eea5b([0x56,0x61,0x6c,0x69,0x64]);})[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x339ff9=>(_0x2a8b6d(),_0x339ff9),()=>{const _0x1b104d=_0x218607();return null==_0x1b104d?(_0x2a8b6d(),_0x9eea5b([0x56,0x61,0x6c,0x69,0x64])):_0x9eea5b(_0x31d089-_0x1b104d>(0x27d454df^_0x45391a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x5238a4)[_0x9eea5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5238a4(_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44f428=0x3ee3e5f^_0x45391a;function _0x2a8b6d(){const _0x4ae5a7=_0x9eea5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x181bef(_0x14efdf(_0x9aa2ba)),_0x4e54ec=_0x33dd14(_0x181bef(window[_0x9eea5b([0x4d,0x61,0x74,0x68])][_0x9eea5b([0x63,0x65,0x69,0x6c])](_0x31d089/_0x44f428)));window[_0x9eea5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9eea5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ae5a7,_0x4e54ec);}function _0x218607(){const _0xc0c80=_0x9eea5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x181bef(_0x14efdf(_0x9aa2ba)),_0x474170=window[_0x9eea5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9eea5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc0c80);return _0x474170?window[_0x9eea5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33dd14(_0x474170),0x10)*_0x44f428:null;}function _0x25150c(_0x1465c1){return new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56313f,_0x3d4a1d)=>{_0x1465c1[_0x9eea5b([0x74,0x68,0x65,0x6e])](_0x56313f,_0x3d4a1d),window[_0x9eea5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d4a1d,0x3d9041f^_0x45391a);});}}_0x315cf7[_0x9eea5b([0x6f,0x6e])](_0x9eea5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49066a,_0x57768b)=>{if(_0x57768b[0x0]!=_0x9aa2ba)return _0x5238a4(_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57768b[0x1]={..._0x57768b[0x1],[_0x9eea5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41ebba};},{[_0x9eea5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9eea5b([0x68,0x69,0x67,0x68])}),_0x315cf7[_0x9eea5b([0x6f,0x6e])](_0x9eea5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x553900=>{_0x2391ab(_0x553900[_0x9eea5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fa6ea=!0x0,_0x2a813a(_0x553900[_0x9eea5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9eea5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9eea5b([0x6c,0x6f,0x77])}),_0x388bb5[_0x9eea5b([0x74,0x68,0x65,0x6e])](()=>{_0x2fa6ea||_0x5238a4(_0x9eea5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52471b(){return _0x315cf7[_0x9eea5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9eea5b([0x76,0x69,0x65,0x77])][_0x9eea5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9eea5b([0x61,0x75,0x74,0x6f]);}function _0x55d93e(){_0x315cf7[_0x9eea5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9eea5b([0x76,0x69,0x65,0x77])][_0x9eea5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9eea5b([0x61,0x75,0x74,0x6f]);}}function _0x242597(_0x24392d){const _0x577e45=[new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ef0c5=>setTimeout(_0x5ef0c5,0x3d1ee13^_0x45391a)),_0x388bb5[_0x9eea5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7820f8=>{let _0x38264d=0x0;_0x315cf7[_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x9eea5b([0x6f,0x6e])](_0x9eea5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f0100,_0x557173)=>{_0x557173[0x0][_0x9eea5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38264d++,_0x38264d==(0x3d8d127^_0x45391a)&&(_0x7820f8(),_0x1f0100[_0x9eea5b([0x6f,0x66,0x66])]());});}))];return window[_0x9eea5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9eea5b([0x72,0x61,0x63,0x65])](_0x577e45)[_0x9eea5b([0x74,0x68,0x65,0x6e])](()=>_0x24392d);}async function _0x305f8a(){await _0x388bb5,_0x315cf7[_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x9eea5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x124915,_0x315cf7[_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x9eea5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x124915,_0x315cf7[_0x9eea5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9eea5b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d3810(_0x531d6a){const _0x663e12=_0x414530();_0x315cf7[_0x663e12]=_0x9eea5b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531d6a,_0x531d6a!=_0x9eea5b([0x56,0x61,0x6c,0x69,0x64])&&_0x305f8a();}function _0x414530(){const _0x4f30c4=window[_0x9eea5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9eea5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9eea5b([0x6e,0x6f,0x77])]())[_0x9eea5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9eea5b([0x2e]),'');let _0x33d9de=_0x9eea5b([0x52]);for(let _0x3d2825=0x0;_0x3d2825<_0x4f30c4[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d2825+=0x2){let _0x491f7d=window[_0x9eea5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f30c4[_0x9eea5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d2825,_0x3d2825+0x2));_0x491f7d>=_0x14eefa[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x491f7d-=_0x14eefa[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33d9de+=_0x14eefa[_0x491f7d];}return _0x33d9de;}function _0x10c172(){const _0x5c81d4=_0x2af6f4[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e]));if(0x3!=_0x5c81d4[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3980ef(_0x5c81d4[0x1]);function _0x3980ef(_0x10d12b){const _0x58ca75=_0x1f321b(_0x10d12b);return _0x58ca75&&_0x56eab5()?_0x58ca75:null;function _0x56eab5(){const _0x1ccfdc=_0x58ca75[_0x9eea5b([0x6a,0x74,0x69])],_0x22cb4b=window[_0x9eea5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccfdc[_0x9eea5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ccfdc[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ae304={..._0x58ca75,[_0x9eea5b([0x6a,0x74,0x69])]:_0x1ccfdc[_0x9eea5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ccfdc[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ae304[_0x9eea5b([0x76,0x63])],_0x14efdf(_0x2ae304)==_0x22cb4b;}}}async function _0x537000(){let _0x58acf3=!0x0;try{const _0xa7150e=_0x2af6f4[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])](_0x9eea5b([0x2e])),[_0xae26b4,_0x26ade4,_0x19b5db]=_0xa7150e;return _0x1ee9ce(_0xae26b4),await _0x57c97b(_0xae26b4,_0x26ade4,_0x19b5db),_0x58acf3;}catch{return!0x1;}function _0x1ee9ce(_0x16e31a){const _0x3d6212=_0x1f321b(_0x16e31a);_0x3d6212&&_0x3d6212[_0x9eea5b([0x61,0x6c,0x67])]==_0x9eea5b([0x45,0x53,0x32,0x35,0x36])||(_0x58acf3=!0x1);}async function _0x57c97b(_0x24f720,_0x583a57,_0x10e751){const _0x4a2e63=window[_0x9eea5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9eea5b([0x66,0x72,0x6f,0x6d])](_0x1f2152(_0x10e751),_0x21f891=>_0x21f891[_0x9eea5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118b8a=new window[(_0x9eea5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9eea5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24f720+_0x9eea5b([0x2e])+_0x583a57),_0x46e2ef=window[_0x9eea5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9eea5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46e2ef)return;const _0x1fdebc=await _0x46e2ef[_0x9eea5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9eea5b([0x6a,0x77,0x6b]),_0x208881,{[_0x9eea5b([0x6e,0x61,0x6d,0x65])]:_0x9eea5b([0x45,0x43,0x44,0x53,0x41]),[_0x9eea5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9eea5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9eea5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46e2ef[_0x9eea5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9eea5b([0x6e,0x61,0x6d,0x65])]:_0x9eea5b([0x45,0x43,0x44,0x53,0x41]),[_0x9eea5b([0x68,0x61,0x73,0x68])]:{[_0x9eea5b([0x6e,0x61,0x6d,0x65])]:_0x9eea5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fdebc,_0x4a2e63,_0x118b8a)||(_0x58acf3=!0x1);}}function _0x1f321b(_0x562cff){return _0x562cff[_0x9eea5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9eea5b([0x65,0x79]))?JSON[_0x9eea5b([0x70,0x61,0x72,0x73,0x65])](_0x1f2152(_0x562cff)):null;}function _0x1f2152(_0x50bcc6){return window[_0x9eea5b([0x61,0x74,0x6f,0x62])](_0x50bcc6[_0x9eea5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9eea5b([0x2b]))[_0x9eea5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9eea5b([0x2f])));}function _0x14efdf(_0x50a859){let _0x1dc34e=0x1505;function _0x2403b0(_0x2e7ad1){for(let _0x187366=0x0;_0x187366<_0x2e7ad1[_0x9eea5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x187366++){const _0x27e53c=_0x2e7ad1[_0x9eea5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x187366);_0x1dc34e=(_0x1dc34e<<0x5)+_0x1dc34e+_0x27e53c,_0x1dc34e&=_0x1dc34e;}}function _0x4a6b33(_0x109d49){Array[_0x9eea5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x109d49)?_0x109d49[_0x9eea5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a6b33):_0x109d49&&typeof _0x109d49==_0x9eea5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9eea5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x109d49)[_0x9eea5b([0x73,0x6f,0x72,0x74])]()[_0x9eea5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f864b,_0x1413aa])=>{_0x2403b0(_0x4f864b),_0x4a6b33(_0x1413aa);}):_0x2403b0(window[_0x9eea5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x109d49));}return _0x4a6b33(_0x50a859),_0x1dc34e>>>0x0;}function _0x181bef(_0xebb983){return _0xebb983[_0x9eea5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9eea5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9eea5b([0x30]));}function _0x33dd14(_0x59044a){return _0x59044a[_0x9eea5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9eea5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9eea5b([0x6a,0x6f,0x69,0x6e])]('');}function _0x124915(){}function _0x9eea5b(_0x26ce2f){const _0x5778e1=_0x4329;return _0x26ce2f[_0x5778e1(0x1ce)](_0x51fbe7=>String[_0x5778e1(0x191)](_0x51fbe7))[_0x5778e1(0x1d2)]('');}_0x4d3810(await _0x1e925f());}(this);}[_0x266ee0(0x1ae)](){const _0x46b317=_0x266ee0,_0x545dca=this[_0x46b317(0x198)][_0x46b317(0x19b)][_0x46b317(0x1a3)];_0x545dca[_0x46b317(0x1c3)](_0x46b317(0x1c9))&&_0x545dca[_0x46b317(0x185)](_0x46b317(0x1c9),{'allowAttributes':[_0x46b317(0x1aa)]}),_0x545dca[_0x46b317(0x1c3)](_0x46b317(0x18a))&&_0x545dca[_0x46b317(0x185)](_0x46b317(0x18a),{'allowAttributes':[_0x46b317(0x1aa)]});}[_0x266ee0(0x18d)](){const _0x59730e=_0x266ee0,_0x5cf149=this[_0x59730e(0x198)];_0x5cf149[_0x59730e(0x1b5)][_0x59730e(0x197)](_0x59730e(0x1b0))[_0x59730e(0x1b1)]({'model':_0x59730e(0x1aa),'view':_0x59730e(0x192)}),_0x5cf149[_0x59730e(0x1b5)][_0x59730e(0x197)](_0x59730e(0x19e))[_0x59730e(0x18f)]({'model':{'key':_0x59730e(0x1aa),'value':_0x678e93=>_0x678e93[_0x59730e(0x1b3)](_0x59730e(0x192))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5afadf=_0x5cf149[_0x59730e(0x1d4)][_0x59730e(0x1d0)](_0x59730e(0x1ba));_0x5afadf&&this[_0x59730e(0x1d3)](_0x5afadf,_0x59730e(0x18c),(_0x1e99a2,[_0x598ca7,_0x27be38])=>{const _0xff53fb=_0x59730e;_0x598ca7[_0xff53fb(0x1ca)](_0xff53fb(0x1aa),_0x27be38);});}[_0x266ee0(0x1cd)](){const _0x535326=_0x266ee0,_0x28e23c=this[_0x535326(0x198)][_0x535326(0x1c6)][_0x535326(0x1d0)](_0x535326(0x1bb))||{},_0x5a3c56=this[_0x535326(0x198)][_0x535326(0x1c6)][_0x535326(0x1d0)](_0x535326(0x1d9))||'';this[_0x535326(0x1a9)]=_0x4580e8(_0x333496[_0x535326(0x1cb)],_0x535326(0x1b9),{..._0x28e23c,'pubkey':_0x5a3c56,'ctx-name':_0x535326(0x188)+this[_0x535326(0x1c8)],'sourceList':'','imgOnly':_0x535326(0x1af),'removeCopyright':_0x535326(0x1af),'localeName':this[_0x535326(0x198)][_0x535326(0x199)][_0x535326(0x196)],'externalSourcesEmbedCss':_0x535326(0x19a)}),this[_0x535326(0x1a9)][_0x535326(0x1d7)]=_0x2aa38d=>{const _0x10dcb7=_0x535326;if(_0x10dcb7(0x1a7)==_0x2aa38d)return _0x10dcb7(0x1c4);},_0x333496[_0x535326(0x1cb)][_0x535326(0x19c)][_0x535326(0x1b8)](this[_0x535326(0x1a9)]);}[_0x266ee0(0x1ac)](){const _0x11f54e=_0x266ee0;this[_0x11f54e(0x1bf)]=_0x4580e8(_0x333496[_0x11f54e(0x1cb)],_0x11f54e(0x1b4),{'ctx-name':_0x11f54e(0x188)+this[_0x11f54e(0x1c8)]}),_0x333496[_0x11f54e(0x1cb)][_0x11f54e(0x19c)][_0x11f54e(0x1b8)](this[_0x11f54e(0x1bf)]);}[_0x266ee0(0x1a5)](){const _0x3f1318=_0x266ee0,_0x448563=this[_0x3f1318(0x198)][_0x3f1318(0x1d4)][_0x3f1318(0x1d0)](_0x3f1318(0x195));_0x448563&&this[_0x3f1318(0x1d3)](_0x448563,_0x3f1318(0x1b7),()=>{const _0x1021eb=_0x3f1318,_0x252b4b=this[_0x1021eb(0x198)][_0x1021eb(0x19b)][_0x1021eb(0x1cb)][_0x1021eb(0x1c0)][_0x1021eb(0x1a6)]();_0x252b4b&&_0x252b4b[_0x1021eb(0x1b3)](_0x1021eb(0x1aa))&&this[_0x1021eb(0x198)][_0x1021eb(0x1ad)][_0x1021eb(0x1cf)][_0x1021eb(0x1d5)](_0x1021eb(0x189),()=>{const _0x339d17=_0x1021eb;_0x4677bf(this[_0x339d17(0x198)],_0x252b4b);});});const _0x2b7bdf=this[_0x3f1318(0x198)][_0x3f1318(0x1d4)][_0x3f1318(0x1d0)](_0x3f1318(0x1a2));_0x2b7bdf&&this[_0x3f1318(0x1d3)](_0x2b7bdf,_0x3f1318(0x1b7),()=>{const _0x10f818=_0x3f1318,_0x42e2a6=this[_0x10f818(0x198)][_0x10f818(0x19b)][_0x10f818(0x1cb)][_0x10f818(0x1c0)][_0x10f818(0x1a6)]();_0x42e2a6&&_0x42e2a6[_0x10f818(0x1b3)](_0x10f818(0x1aa))&&this[_0x10f818(0x198)][_0x10f818(0x1ad)][_0x10f818(0x1cf)][_0x10f818(0x1d5)](_0x10f818(0x189),()=>{const _0x1bfbcc=_0x10f818;_0x4677bf(this[_0x1bfbcc(0x198)],_0x42e2a6);});});}}
|
|
23
|
+
const _0x23d990=_0x19db;(function(_0x269c3f,_0x13c33f){const _0x22801e=_0x19db,_0x8038f3=_0x269c3f();while(!![]){try{const _0x4e240b=parseInt(_0x22801e(0xc4))/0x1+-parseInt(_0x22801e(0xbe))/0x2+-parseInt(_0x22801e(0xba))/0x3+-parseInt(_0x22801e(0xb7))/0x4*(-parseInt(_0x22801e(0xcb))/0x5)+parseInt(_0x22801e(0xc2))/0x6*(-parseInt(_0x22801e(0xc5))/0x7)+-parseInt(_0x22801e(0xc9))/0x8+-parseInt(_0x22801e(0xe8))/0x9*(-parseInt(_0x22801e(0xea))/0xa);if(_0x4e240b===_0x13c33f)break;else _0x8038f3['push'](_0x8038f3['shift']());}catch(_0x53d211){_0x8038f3['push'](_0x8038f3['shift']());}}}(_0x1b31,0x7b975));import{Plugin as _0x233856}from'ckeditor5/src/core.js';function _0x1b31(){const _0x3bb6dc=['_ctxElement','iconHrefResolver','init','appendChild','_initConversion','550060nZhdih','replaceImageSource','true','556821AQxAWR','querySelector','uploadcareImageReplace','document','951130kwByDo','isPremiumPlugin','config','imageInline','186wJKmiS','extend','919574pBTtTS','87619RJcebx','fromCharCode','uploader-','getAttribute','1806480scJVsj','isOfficialPlugin','5XjNEOM','ctxElement','body','render','ucContextId','view','downcast','href','get','uploadcareImageId','join','configElement','isRegistered','uploadcare.uploader','data-uc-image-id','commands','model','map','_initCtx','remove','imageBlock','locale','uploadcare','getSelectedElement','\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','afterInit','for','contentLanguage','uploadcare.pubkey','383373SDgfmI','destroy','170DSryad','selection','pluginName','uc-upload-ctx-provider','removeAttribute','schema','_initSchema','editor','cleanupImage','attributeToAttribute','input[uploadcare-file-input]','editing','elementToAttribute','UploadcareEditing','_initImageProcessingIndicator','listenTo','#uc-icon-arrow-down','upcast','add','_initConfig','conversion','execute','insertImage','uc-config','closeMax','PictureEditing','_configElement','once','requires'];_0x1b31=function(){return _0x3bb6dc;};return _0x1b31();}import{Dialog as _0x355f12}from'ckeditor5/src/ui.js';import{createElement as _0x5530c4,global as _0xb4801,uid as _0x401052}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xf3a099}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x346556}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x199263}from'./utils/editingutils.js';function _0x19db(_0x243079,_0x18a02c){const _0x1b31a5=_0x1b31();return _0x19db=function(_0x19dbd6,_0x34e482){_0x19dbd6=_0x19dbd6-0xa1;let _0x36983b=_0x1b31a5[_0x19dbd6];return _0x36983b;},_0x19db(_0x243079,_0x18a02c);}export class UploadcareEditing extends _0x233856{[_0x23d990(0xaf)]=null;[_0x23d990(0xb2)]=null;static get[_0x23d990(0xec)](){const _0x190d8c=_0x23d990;return _0x190d8c(0xa2);}static get[_0x23d990(0xb1)](){const _0x56c451=_0x23d990;return[_0x56c451(0xae),_0x346556,_0x355f12];}static get[_0x23d990(0xca)](){return!0x0;}static get[_0x23d990(0xbf)](){return!0x0;}[_0x23d990(0xcf)];get[_0x23d990(0xd6)](){const _0x1e90cd=_0x23d990;return this[_0x1e90cd(0xaf)];}get[_0x23d990(0xcc)](){const _0x50cad7=_0x23d990;return this[_0x50cad7(0xb2)];}constructor(_0x59357f){const _0x349da2=_0x23d990;super(_0x59357f),this[_0x349da2(0xcf)]=_0x401052();}[_0x23d990(0xb4)](){const _0x358d7b=_0x23d990,_0x767195=this[_0x358d7b(0xf1)];_0x767195[_0x358d7b(0xda)][_0x358d7b(0xa7)](_0x358d7b(0xe1),new _0xf3a099(_0x767195));}[_0x23d990(0xe4)](){const _0x3ff51f=_0x23d990;this[_0x3ff51f(0xf0)](),this[_0x3ff51f(0xb6)](),this[_0x3ff51f(0xa8)](),this[_0x3ff51f(0xdd)](),this[_0x3ff51f(0xa3)](),this[_0x3ff51f(0xa4)](this[_0x3ff51f(0xf1)],_0x3ff51f(0xe9),()=>{const _0x5ac419=_0x3ff51f;this[_0x5ac419(0xaf)]&&(this[_0x5ac419(0xaf)][_0x5ac419(0xde)](),this[_0x5ac419(0xaf)]=null),this[_0x5ac419(0xb2)]&&(this[_0x5ac419(0xb2)][_0x5ac419(0xde)](),this[_0x5ac419(0xb2)]=null);const _0x25c207=_0xb4801[_0x5ac419(0xbd)][_0x5ac419(0xbb)](_0x5ac419(0xf4));_0x25c207&&_0x25c207[_0x5ac419(0xde)]();}),async function(_0x118b1a){const _0x50a7ef=_0x5bad13([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2010a9=0x3d8d0df,_0x3eacd5=0x3dfa177^_0x2010a9,_0x388908=window[_0x5bad13([0x44,0x61,0x74,0x65])][_0x5bad13([0x6e,0x6f,0x77])](),_0x18f8d2=_0x118b1a[_0x5bad13([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x188e67=new window[(_0x5bad13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27f1f9=>{_0x18f8d2[_0x5bad13([0x6f,0x6e,0x63,0x65])](_0x5bad13([0x72,0x65,0x61,0x64,0x79]),_0x27f1f9);}),_0x3b2e1d={[_0x5bad13([0x6b,0x74,0x79])]:_0x5bad13([0x45,0x43]),[_0x5bad13([0x75,0x73,0x65])]:_0x5bad13([0x73,0x69,0x67]),[_0x5bad13([0x63,0x72,0x76])]:_0x5bad13([0x50,0x2d,0x32,0x35,0x36]),[_0x5bad13([0x78])]:_0x5bad13([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]),[_0x5bad13([0x79])]:_0x5bad13([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]),[_0x5bad13([0x61,0x6c,0x67])]:_0x5bad13([0x45,0x53,0x32,0x35,0x36])},_0x5c79e7=_0x18f8d2[_0x5bad13([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5bad13([0x67,0x65,0x74])](_0x5bad13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x369e49(){let _0x5a5750,_0x2d7e52=null,_0x4e99b4=null;try{if(_0x5c79e7==_0x5bad13([0x47,0x50,0x4c]))return _0x5bad13([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a5750=_0x547e7b(),!_0x5a5750)return _0x5bad13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a5750[_0x5bad13([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e99b4=_0x4e31ee(_0x5a5750[_0x5bad13([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a5750[_0x5bad13([0x6a,0x74,0x69])])),await _0x46cc15()?_0x19454f()?_0x5140f3()?_0x5bad13([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35da6b()?(_0x5a5750[_0x5bad13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bad13([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d7e52=_0x396f8d(_0x5bad13([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a5750[_0x5bad13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bad13([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d7e52=_0x396f8d(_0x5bad13([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xbe3683()):_0x5bad13([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5bad13([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5bad13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5bad13([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5140f3(){const _0xccc986=[_0x5bad13([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5bad13([0x74,0x72,0x69,0x61,0x6c])][_0x5bad13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5750[_0x5bad13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x388908/0x3e8:0xe10*_0x3eacd5;return _0x5a5750[_0x5bad13([0x65,0x78,0x70])]<_0xccc986;}function _0x19454f(){const _0x9b32ed=_0x5a5750[_0x5bad13([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9b32ed&&(!!_0x9b32ed[_0x5bad13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bad13([0x2a]))||!!_0x9b32ed[_0x5bad13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bad13([0x55,0x50,0x4c,0x43])));}function _0x35da6b(){const _0x39b2f4=_0x19db,_0x491fa3=_0x5a5750[_0x5bad13([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x491fa3||0x0==_0x491fa3[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c4f3f}=new URL(window[_0x5bad13([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x39b2f4(0xd2)]);if(_0x491fa3[_0x5bad13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4f3f))return!0x0;const _0x3a2c5b=_0x4c4f3f[_0x5bad13([0x73,0x70,0x6c,0x69,0x74])](_0x5bad13([0x2e]));return _0x491fa3[_0x5bad13([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14e1e2=>_0x14e1e2[_0x5bad13([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bad13([0x2a])))[_0x5bad13([0x6d,0x61,0x70])](_0x10e332=>_0x10e332[_0x5bad13([0x73,0x70,0x6c,0x69,0x74])](_0x5bad13([0x2e])))[_0x5bad13([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x73f3fe=>_0x73f3fe[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a2c5b[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bad13([0x6d,0x61,0x70])](_0x5961df=>Array(_0x3a2c5b[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5961df[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bad13([0x66,0x69,0x6c,0x6c])](_0x5961df[0x0]===_0x5bad13([0x2a])?_0x5bad13([0x2a]):'')[_0x5bad13([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5961df))[_0x5bad13([0x73,0x6f,0x6d,0x65])](_0x5f2526=>_0x3a2c5b[_0x5bad13([0x65,0x76,0x65,0x72,0x79])]((_0xbeef09,_0x3372ee)=>_0x5f2526[_0x3372ee]===_0xbeef09||_0x5f2526[_0x3372ee]===_0x5bad13([0x2a])));}function _0xbe3683(){return _0x2d7e52&&_0x4e99b4?new window[(_0x5bad13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34f538,_0x1d6343)=>{_0x2d7e52[_0x5bad13([0x74,0x68,0x65,0x6e])](_0x34f538,_0x1d6343),_0x4e99b4[_0x5bad13([0x74,0x68,0x65,0x6e])](_0x4f83d6=>{_0x4f83d6!=_0x5bad13([0x56,0x61,0x6c,0x69,0x64])&&_0x34f538(_0x4f83d6);},_0x1d6343);}):_0x2d7e52||_0x4e99b4||_0x5bad13([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e31ee(_0x16f601,_0x1f9422){return new window[(_0x5bad13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ebd7=>{if(_0x21f4f7())return _0x52ebd7(_0x5bad13([0x56,0x61,0x6c,0x69,0x64]));_0x2a922a(),_0x18f8d2[_0x5bad13([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5bad13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b8a63=!0x1;const _0x3e446e=_0x401052();function _0xb82e44(_0x2765c1){return!!_0x2765c1&&(typeof _0x2765c1===_0x5bad13([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2765c1===_0x5bad13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2765c1[_0x5bad13([0x74,0x68,0x65,0x6e])]===_0x5bad13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2765c1[_0x5bad13([0x63,0x61,0x74,0x63,0x68])]===_0x5bad13([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x575c5b(_0x4e7e64){_0x77d792(_0x4e7e64)[_0x5bad13([0x74,0x68,0x65,0x6e])](_0x50f8b4=>{if(!_0x50f8b4||_0x50f8b4[_0x5bad13([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5bad13([0x6f,0x6b]))return _0x5bad13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2cfba7(_0x136db7(_0x3e446e+_0x1f9422))!=_0x50f8b4[_0x5bad13([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5bad13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5bad13([0x56,0x61,0x6c,0x69,0x64]);})[_0x5bad13([0x74,0x68,0x65,0x6e])](_0x4fc9ce=>(_0xaf338f(),_0x4fc9ce),()=>{const _0x4b5275=_0x40a252();return null==_0x4b5275?(_0xaf338f(),_0x5bad13([0x56,0x61,0x6c,0x69,0x64])):_0x5bad13(_0x388908-_0x4b5275>(0x27d454df^_0x2010a9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5bad13([0x74,0x68,0x65,0x6e])](_0x52ebd7)[_0x5bad13([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52ebd7(_0x5bad13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c12ea=0x3ee3e5f^_0x2010a9;function _0xaf338f(){const _0x135e2c=_0x5bad13([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cfba7(_0x136db7(_0x16f601)),_0x23035c=_0x431113(_0x2cfba7(window[_0x5bad13([0x4d,0x61,0x74,0x68])][_0x5bad13([0x63,0x65,0x69,0x6c])](_0x388908/_0x2c12ea)));window[_0x5bad13([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bad13([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x135e2c,_0x23035c);}function _0x40a252(){const _0x61fadf=_0x5bad13([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cfba7(_0x136db7(_0x16f601)),_0x259250=window[_0x5bad13([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bad13([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x61fadf);return _0x259250?window[_0x5bad13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x431113(_0x259250),0x10)*_0x2c12ea:null;}function _0x77d792(_0x4a6df1){return new window[(_0x5bad13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3adcb2,_0x553031)=>{_0x4a6df1[_0x5bad13([0x74,0x68,0x65,0x6e])](_0x3adcb2,_0x553031),window[_0x5bad13([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x553031,0x3d9041f^_0x2010a9);});}}_0x18f8d2[_0x5bad13([0x6f,0x6e])](_0x5bad13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x153a75,_0x5f4956)=>{if(_0x5f4956[0x0]!=_0x16f601)return _0x52ebd7(_0x5bad13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f4956[0x1]={..._0x5f4956[0x1],[_0x5bad13([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e446e};},{[_0x5bad13([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bad13([0x68,0x69,0x67,0x68])}),_0x18f8d2[_0x5bad13([0x6f,0x6e])](_0x5bad13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6a96ee=>{_0xb82e44(_0x6a96ee[_0x5bad13([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b8a63=!0x0,_0x575c5b(_0x6a96ee[_0x5bad13([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5bad13([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bad13([0x6c,0x6f,0x77])}),_0x188e67[_0x5bad13([0x74,0x68,0x65,0x6e])](()=>{_0x5b8a63||_0x52ebd7(_0x5bad13([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21f4f7(){return _0x18f8d2[_0x5bad13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bad13([0x76,0x69,0x65,0x77])][_0x5bad13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5bad13([0x61,0x75,0x74,0x6f]);}function _0x2a922a(){_0x18f8d2[_0x5bad13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bad13([0x76,0x69,0x65,0x77])][_0x5bad13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5bad13([0x61,0x75,0x74,0x6f]);}}function _0x396f8d(_0x64915a){const _0x4fd034=[new window[(_0x5bad13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a684c=>setTimeout(_0x2a684c,0x3d1ee13^_0x2010a9)),_0x188e67[_0x5bad13([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5bad13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c97b=>{let _0x1aafc6=0x0;_0x18f8d2[_0x5bad13([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bad13([0x6f,0x6e])](_0x5bad13([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c50ab,_0x3ee2aa)=>{_0x3ee2aa[0x0][_0x5bad13([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1aafc6++,_0x1aafc6==(0x3d8d127^_0x2010a9)&&(_0x51c97b(),_0x4c50ab[_0x5bad13([0x6f,0x66,0x66])]());});}))];return window[_0x5bad13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5bad13([0x72,0x61,0x63,0x65])](_0x4fd034)[_0x5bad13([0x74,0x68,0x65,0x6e])](()=>_0x64915a);}async function _0x491216(){await _0x188e67,_0x18f8d2[_0x5bad13([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bad13([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14350c,_0x18f8d2[_0x5bad13([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bad13([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14350c,_0x18f8d2[_0x5bad13([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5bad13([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d9a01(_0x2d5b8c){const _0x162d56=_0x1a014d();_0x18f8d2[_0x162d56]=_0x5bad13([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d5b8c,_0x2d5b8c!=_0x5bad13([0x56,0x61,0x6c,0x69,0x64])&&_0x491216();}function _0x1a014d(){const _0x5adb25=window[_0x5bad13([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5bad13([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5bad13([0x6e,0x6f,0x77])]())[_0x5bad13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5bad13([0x2e]),'');let _0x1ad91a=_0x5bad13([0x52]);for(let _0x506161=0x0;_0x506161<_0x5adb25[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x506161+=0x2){let _0x291d03=window[_0x5bad13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5adb25[_0x5bad13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x506161,_0x506161+0x2));_0x291d03>=_0x50a7ef[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x291d03-=_0x50a7ef[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ad91a+=_0x50a7ef[_0x291d03];}return _0x1ad91a;}function _0x547e7b(){const _0x5d77a3=_0x5c79e7[_0x5bad13([0x73,0x70,0x6c,0x69,0x74])](_0x5bad13([0x2e]));if(0x3!=_0x5d77a3[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54ce03(_0x5d77a3[0x1]);function _0x54ce03(_0x42c631){const _0x434921=_0x5ce7b7(_0x42c631);return _0x434921&&_0x1150b4()?_0x434921:null;function _0x1150b4(){const _0x53959e=_0x434921[_0x5bad13([0x6a,0x74,0x69])],_0x2f61bc=window[_0x5bad13([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53959e[_0x5bad13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53959e[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x675440={..._0x434921,[_0x5bad13([0x6a,0x74,0x69])]:_0x53959e[_0x5bad13([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53959e[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x675440[_0x5bad13([0x76,0x63])],_0x136db7(_0x675440)==_0x2f61bc;}}}async function _0x46cc15(){let _0x275027=!0x0;try{const _0x23d5d5=_0x5c79e7[_0x5bad13([0x73,0x70,0x6c,0x69,0x74])](_0x5bad13([0x2e])),[_0x498420,_0x552a82,_0x295db4]=_0x23d5d5;return _0x1df004(_0x498420),await _0x3178f7(_0x498420,_0x552a82,_0x295db4),_0x275027;}catch{return!0x1;}function _0x1df004(_0x5c0aff){const _0x40adcf=_0x5ce7b7(_0x5c0aff);_0x40adcf&&_0x40adcf[_0x5bad13([0x61,0x6c,0x67])]==_0x5bad13([0x45,0x53,0x32,0x35,0x36])||(_0x275027=!0x1);}async function _0x3178f7(_0x5a02f5,_0x423281,_0x248a5d){const _0x2185e3=window[_0x5bad13([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5bad13([0x66,0x72,0x6f,0x6d])](_0x5e384a(_0x248a5d),_0x2a4f0d=>_0x2a4f0d[_0x5bad13([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19677b=new window[(_0x5bad13([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5bad13([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a02f5+_0x5bad13([0x2e])+_0x423281),_0x15bec2=window[_0x5bad13([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5bad13([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15bec2)return;const _0x2d47c7=await _0x15bec2[_0x5bad13([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5bad13([0x6a,0x77,0x6b]),_0x3b2e1d,{[_0x5bad13([0x6e,0x61,0x6d,0x65])]:_0x5bad13([0x45,0x43,0x44,0x53,0x41]),[_0x5bad13([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5bad13([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5bad13([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15bec2[_0x5bad13([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5bad13([0x6e,0x61,0x6d,0x65])]:_0x5bad13([0x45,0x43,0x44,0x53,0x41]),[_0x5bad13([0x68,0x61,0x73,0x68])]:{[_0x5bad13([0x6e,0x61,0x6d,0x65])]:_0x5bad13([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d47c7,_0x2185e3,_0x19677b)||(_0x275027=!0x1);}}function _0x5ce7b7(_0x3c1756){return _0x3c1756[_0x5bad13([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5bad13([0x65,0x79]))?JSON[_0x5bad13([0x70,0x61,0x72,0x73,0x65])](_0x5e384a(_0x3c1756)):null;}function _0x5e384a(_0x7592d5){return window[_0x5bad13([0x61,0x74,0x6f,0x62])](_0x7592d5[_0x5bad13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5bad13([0x2b]))[_0x5bad13([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5bad13([0x2f])));}function _0x136db7(_0x31fbee){let _0x2a090b=0x1505;function _0x18429f(_0x41b951){for(let _0x295e6d=0x0;_0x295e6d<_0x41b951[_0x5bad13([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295e6d++){const _0x29cdd2=_0x41b951[_0x5bad13([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295e6d);_0x2a090b=(_0x2a090b<<0x5)+_0x2a090b+_0x29cdd2,_0x2a090b&=_0x2a090b;}}function _0x459684(_0x50b031){Array[_0x5bad13([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50b031)?_0x50b031[_0x5bad13([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x459684):_0x50b031&&typeof _0x50b031==_0x5bad13([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5bad13([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50b031)[_0x5bad13([0x73,0x6f,0x72,0x74])]()[_0x5bad13([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7b0b1f,_0x2df0a1])=>{_0x18429f(_0x7b0b1f),_0x459684(_0x2df0a1);}):_0x18429f(window[_0x5bad13([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50b031));}return _0x459684(_0x31fbee),_0x2a090b>>>0x0;}function _0x2cfba7(_0x110a4f){return _0x110a4f[_0x5bad13([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5bad13([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5bad13([0x30]));}function _0x431113(_0x24ec85){return _0x24ec85[_0x5bad13([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5bad13([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5bad13([0x6a,0x6f,0x69,0x6e])]('');}function _0x14350c(){}function _0x5bad13(_0x3d345e){const _0x2df042=_0x19db;return _0x3d345e[_0x2df042(0xdc)](_0xf4888f=>String[_0x2df042(0xc6)](_0xf4888f))[_0x2df042(0xd5)]('');}_0x3d9a01(await _0x369e49());}(this);}[_0x23d990(0xf0)](){const _0x34596f=_0x23d990,_0x37ac1c=this[_0x34596f(0xf1)][_0x34596f(0xdb)][_0x34596f(0xef)];_0x37ac1c[_0x34596f(0xd7)](_0x34596f(0xdf))&&_0x37ac1c[_0x34596f(0xc3)](_0x34596f(0xdf),{'allowAttributes':[_0x34596f(0xd4)]}),_0x37ac1c[_0x34596f(0xd7)](_0x34596f(0xc1))&&_0x37ac1c[_0x34596f(0xc3)](_0x34596f(0xc1),{'allowAttributes':[_0x34596f(0xd4)]});}[_0x23d990(0xb6)](){const _0x53fa2e=_0x23d990,_0x132479=this[_0x53fa2e(0xf1)];_0x132479[_0x53fa2e(0xa9)][_0x53fa2e(0xe5)](_0x53fa2e(0xd1))[_0x53fa2e(0xf3)]({'model':_0x53fa2e(0xd4),'view':_0x53fa2e(0xd9)}),_0x132479[_0x53fa2e(0xa9)][_0x53fa2e(0xe5)](_0x53fa2e(0xa6))[_0x53fa2e(0xa1)]({'model':{'key':_0x53fa2e(0xd4),'value':_0x1271e6=>_0x1271e6[_0x53fa2e(0xc8)](_0x53fa2e(0xd9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3098e7=_0x132479[_0x53fa2e(0xda)][_0x53fa2e(0xd3)](_0x53fa2e(0xb8));_0x3098e7&&this[_0x53fa2e(0xa4)](_0x3098e7,_0x53fa2e(0xf2),(_0x630195,[_0x487d97,_0x310ebb])=>{const _0x18fcd5=_0x53fa2e;_0x487d97[_0x18fcd5(0xee)](_0x18fcd5(0xd4),_0x310ebb);});}[_0x23d990(0xa8)](){const _0x2cb20c=_0x23d990,_0x1deb9a=this[_0x2cb20c(0xf1)][_0x2cb20c(0xc0)][_0x2cb20c(0xd3)](_0x2cb20c(0xd8))||{},_0x2ae067=this[_0x2cb20c(0xf1)][_0x2cb20c(0xc0)][_0x2cb20c(0xd3)](_0x2cb20c(0xe7))||'';this[_0x2cb20c(0xaf)]=_0x5530c4(_0xb4801[_0x2cb20c(0xbd)],_0x2cb20c(0xac),{..._0x1deb9a,'pubkey':_0x2ae067,'ctx-name':_0x2cb20c(0xc7)+this[_0x2cb20c(0xcf)],'sourceList':'','imgOnly':_0x2cb20c(0xb9),'removeCopyright':_0x2cb20c(0xb9),'localeName':this[_0x2cb20c(0xf1)][_0x2cb20c(0xe0)][_0x2cb20c(0xe6)],'externalSourcesEmbedCss':_0x2cb20c(0xe3)}),this[_0x2cb20c(0xaf)][_0x2cb20c(0xb3)]=_0xcc02ab=>{const _0x27159=_0x2cb20c;if(_0x27159(0xad)==_0xcc02ab)return _0x27159(0xa5);},_0xb4801[_0x2cb20c(0xbd)][_0x2cb20c(0xcd)][_0x2cb20c(0xb5)](this[_0x2cb20c(0xaf)]);}[_0x23d990(0xdd)](){const _0x32fd07=_0x23d990;this[_0x32fd07(0xb2)]=_0x5530c4(_0xb4801[_0x32fd07(0xbd)],_0x32fd07(0xed),{'ctx-name':_0x32fd07(0xc7)+this[_0x32fd07(0xcf)]}),_0xb4801[_0x32fd07(0xbd)][_0x32fd07(0xcd)][_0x32fd07(0xb5)](this[_0x32fd07(0xb2)]);}[_0x23d990(0xa3)](){const _0x3e2faf=_0x23d990,_0x15dd29=this[_0x3e2faf(0xf1)][_0x3e2faf(0xda)][_0x3e2faf(0xd3)](_0x3e2faf(0xab));_0x15dd29&&this[_0x3e2faf(0xa4)](_0x15dd29,_0x3e2faf(0xaa),()=>{const _0x4a8f32=_0x3e2faf,_0x4a0b99=this[_0x4a8f32(0xf1)][_0x4a8f32(0xdb)][_0x4a8f32(0xbd)][_0x4a8f32(0xeb)][_0x4a8f32(0xe2)]();_0x4a0b99&&_0x4a0b99[_0x4a8f32(0xc8)](_0x4a8f32(0xd4))&&this[_0x4a8f32(0xf1)][_0x4a8f32(0xf5)][_0x4a8f32(0xd0)][_0x4a8f32(0xb0)](_0x4a8f32(0xce),()=>{const _0x3f74bb=_0x4a8f32;_0x199263(this[_0x3f74bb(0xf1)],_0x4a0b99);});});const _0x143041=this[_0x3e2faf(0xf1)][_0x3e2faf(0xda)][_0x3e2faf(0xd3)](_0x3e2faf(0xbc));_0x143041&&this[_0x3e2faf(0xa4)](_0x143041,_0x3e2faf(0xaa),()=>{const _0x58ac62=_0x3e2faf,_0x3e0661=this[_0x58ac62(0xf1)][_0x58ac62(0xdb)][_0x58ac62(0xbd)][_0x58ac62(0xeb)][_0x58ac62(0xe2)]();_0x3e0661&&_0x3e0661[_0x58ac62(0xc8)](_0x58ac62(0xd4))&&this[_0x58ac62(0xf1)][_0x58ac62(0xf5)][_0x58ac62(0xd0)][_0x58ac62(0xb0)](_0x58ac62(0xce),()=>{const _0x28d0ae=_0x58ac62;_0x199263(this[_0x28d0ae(0xf1)],_0x3e0661);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3353ce,ObservableMixin as _0x3d6af8}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5a33fd}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x286ecf}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1a4e4a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x227cb6}from'../../utils/uploadutils.js';import{getImageUrls as _0x160483,getImageDimension as _0x264d48}from'../../utils/editingutils.js';import{isAncestor as _0x3f9071}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d6af8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x16a217,_0x34a8c5,_0x4e8f27){super(),this['_editor']=_0x16a217,this['_dialog']=_0x34a8c5,this['_imageElement']=_0x4e8f27,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 _0x18c33e=this['_imageElement'],_0x18e7c8=_0x18c33e['getAttribute']('uploadcareImageId'),_0x233ed8=_0x18c33e['getAttribute']('src');if(_0x18e7c8)await this['_loadImageInfo'](_0x18e7c8,_0x233ed8);else{if(this['_imageCache']['has'](_0x233ed8)){const _0x3e4108=this['_imageCache']['get'](_0x233ed8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e4108['url'],this['imageDimension']=_0x3e4108['dimension'],this['imageId']=_0x3e4108['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1dc1b2}=this['_editor'],t=_0x1dc1b2['t'],_0x476d35=new _0x1a4e4a(_0x1dc1b2,this['imageStatus'],this['_attributes']);_0x476d35['bind']('status')['to'](this,'imageStatus'),_0x476d35['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x476d35['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x476d35['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x476d35,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x286ecf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x476d35,'position':_0x5a33fd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x476d35['focus']();},'onHide':()=>{_0x476d35['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x59a080=>!_0x3f9071(_0x59a080,_0x476d35['element'])}});}['_loadImageInfo'](_0x360c39,_0x5a4abd){return _0x227cb6['getInfo'](_0x360c39,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x497ecf=>{const {width:_0x3fac92,height:_0xc10e6b}=_0x497ecf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a4abd,this['imageDimension']={'width':_0x3fac92,'height':_0xc10e6b},this['imageId']=_0x360c39;})['catch'](_0x59bdf5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59bdf5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3c3679,_0x5f0472){return this['_getImageAsFile'](_0x3c3679)['then'](_0x3c5585=>_0x227cb6['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':_0x5f0472['signal'],'file':_0x3c5585,'onProgress':_0x4e7641=>{_0x4e7641&&_0x4e7641['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4e7641['value']));}}))['then'](_0x1804f6=>{const {width:_0x20358c,height:_0x641031}=_0x1804f6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1804f6['cdnUrl'],this['imageDimension']={'width':_0x20358c,'height':_0x641031},this['imageId']=_0x1804f6['uuid'],this['imageUploadProgress']=null;const _0xfce27a=_0x3c3679['getAttribute']('src');this['_imageCache']['set'](_0xfce27a,{'id':_0x1804f6['uuid'],'url':_0x1804f6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x424a54=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x424a54['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x409bf7,_0x28aa37){_0x409bf7['on']('apply',(_0x2d5bb1,_0x3fc1a9)=>{this['_replaceImage'](_0x28aa37,_0x3fc1a9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x409bf7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x409bf7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x34d904,_0x281dad,_0x223144){const _0x521d63=this['_editor'],{width:_0x569d67,height:_0x4dccd3}=_0x264d48(_0x281dad,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x44b301,imageSources:_0x1d5660}=_0x160483(_0x281dad,_0x569d67);_0x521d63['model']['change'](_0x1a4892=>{if('$graveyard'===_0x34d904['root']['rootName']){_0x521d63['execute']('insertImage',{'imageType':_0x34d904['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x34d904['getAttributes']()),'uploadcareImageId':_0x223144,'src':_0x44b301,'sources':_0x1d5660,'width':_0x569d67,'height':_0x4dccd3}});const _0x1487c3=_0x34d904['getChildren']();_0x34d904=_0x521d63['model']['document']['selection']['getSelectedElement']();for(const _0x1ee4b1 of _0x1487c3)_0x1a4892['append'](_0x1a4892['cloneElement'](_0x1ee4b1),_0x34d904);}else _0x1a4892['setSelection'](_0x34d904,'on'),_0x521d63['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x34d904['getAttributes']()),'uploadcareImageId':_0x223144,'src':_0x44b301,'sources':_0x1d5660,'width':_0x569d67,'height':_0x4dccd3},_0x34d904);_0x1a4892['setSelection'](_0x34d904,'on');});}async['_getImageAsFile'](_0x5d93f8){const _0x4fb607=_0x3353ce['window'],_0x54c975=_0x3353ce['document']['location']['href'],_0x209ec5=new _0x4fb607['URL'](_0x5d93f8['getAttribute']('src'),_0x54c975);if('data:'===_0x209ec5['protocol']){const _0x247bc4=_0x209ec5['href']['split'](','),_0x3c11db=_0x247bc4[0x0]['match'](/:(.*?);/)[0x1],_0x3a860f=_0x3c11db['split']('/')[0x1],_0x260f67=_0x4fb607['atob'](_0x247bc4[_0x247bc4['length']-0x1]);let _0x2f1f98=_0x260f67['length'];const _0x5e4926=new _0x4fb607['Uint8Array'](_0x2f1f98);for(;_0x2f1f98--;)_0x5e4926[_0x2f1f98]=_0x260f67['charCodeAt'](_0x2f1f98);return new _0x4fb607['File']([_0x5e4926],'image.'+_0x3a860f,{'type':_0x3c11db});}const _0x2a1ac4=_0x209ec5['href']['split']('/'),_0x555506=_0x2a1ac4[_0x2a1ac4['length']-0x1],_0x11397d=_0x555506['split']('.')[0x1];return _0x4fb607['fetch'](_0x209ec5['href'])['then'](_0x588b4c=>_0x588b4c['clone']()['blob']())['then'](_0x2bef19=>new _0x4fb607['File']([_0x2bef19],_0x555506,{'type':'image/'+_0x11397d}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2fbef3,_0x5f1682){const _0x523848=_0x278e,_0x1c9026=_0x2fbef3();while(!![]){try{const _0x41d410=parseInt(_0x523848(0x1e6))/0x1*(-parseInt(_0x523848(0x1f3))/0x2)+-parseInt(_0x523848(0x1e4))/0x3+parseInt(_0x523848(0x1ec))/0x4*(parseInt(_0x523848(0x1ed))/0x5)+-parseInt(_0x523848(0x1e9))/0x6+parseInt(_0x523848(0x1eb))/0x7+-parseInt(_0x523848(0x1f0))/0x8*(parseInt(_0x523848(0x1e7))/0x9)+-parseInt(_0x523848(0x1ea))/0xa*(-parseInt(_0x523848(0x1e8))/0xb);if(_0x41d410===_0x5f1682)break;else _0x1c9026['push'](_0x1c9026['shift']());}catch(_0x48e480){_0x1c9026['push'](_0x1c9026['shift']());}}}(_0x5807,0x5b78a));function _0x278e(_0x4fde2a,_0x464a50){const _0x580776=_0x5807();return _0x278e=function(_0x278ebe,_0x521c3e){_0x278ebe=_0x278ebe-0x1e4;let _0x3f1ccb=_0x580776[_0x278ebe];return _0x3f1ccb;},_0x278e(_0x4fde2a,_0x464a50);}import{View as _0x3ea471}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3ea471{constructor(_0x3d4bd0,_0x2108e1){const _0x37288=_0x278e;super(_0x3d4bd0);const _0x201e36=this[_0x37288(0x1f6)];this[_0x37288(0x1f4)](_0x37288(0x1f1),''),this[_0x37288(0x1f2)]({'tag':_0x37288(0x1ef),'attributes':{..._0x2108e1,'class':[_0x37288(0x1e5),_0x37288(0x1f5)],'ctx-name':_0x37288(0x1ee),'cdn-url':_0x201e36['to'](_0x37288(0x1f1))}});}}function _0x5807(){const _0x1f64df=['bindTemplate','1767342ItebQh','uc-light','103745cRbosW','67833WYBEWk','8715905mEbDxJ','2613126zOcwGD','20RqgLch','1023197dQesxE','4wNXoIX','472415bGQdMM','image-edit','uc-cloud-image-editor','232TgyjXb','imageSrc','setTemplate','4DXuMfE','set','ck-uploadcare-theme'];_0x5807=function(){return _0x1f64df;};return _0x5807();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2dafc1}from'ckeditor5/src/icons.js';import{ButtonView as _0x3d8cd8,IconView as _0x2e85e2,View as _0x2c5045}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2c5045{constructor(_0x2597db){super(_0x2597db);const t=_0x2597db['t'];this['set']('errorType',null);const _0x3734c5=new _0x3d8cd8(_0x2597db);_0x3734c5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3734c5['withText']=!0x0,_0x3734c5['class']='ck-button-action',_0x3734c5['on']('execute',()=>{this['fire']('retry');}),_0x3734c5['bind']('isVisible')['to'](this,'errorType',_0x4dfc45=>'NotFound'!==_0x4dfc45);const _0x10436b=new _0x2e85e2();_0x10436b['content']=_0x2dafc1,_0x10436b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x42e41e=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':[_0x10436b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x42e41e['to']('errorType',_0x39b9bc=>t('NotFound'!==_0x39b9bc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3734c5]},{'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 _0x5aabc8,View as _0x5b5e4a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5b5e4a{constructor(_0x24dcc1){super(_0x24dcc1);const t=_0x24dcc1['t'],_0x3d0ca2=this['bindTemplate'],_0x539afa=new _0x5aabc8();_0x539afa['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':[_0x539afa,{'text':_0x3d0ca2['to']('imageUploadProgress',_0x35f5e0=>t('Loading\x20image...')+'\x20('+(_0x35f5e0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1ce1(_0x2f99b8,_0x3bd1e3){const _0x4311d7=_0x4311();return _0x1ce1=function(_0x1ce1ed,_0x2843f8){_0x1ce1ed=_0x1ce1ed-0x1b8;let _0x57d959=_0x4311d7[_0x1ce1ed];return _0x57d959;},_0x1ce1(_0x2f99b8,_0x3bd1e3);}const _0x3fe488=_0x1ce1;(function(_0x52c004,_0x493c06){const _0x436abc=_0x1ce1,_0x862493=_0x52c004();while(!![]){try{const _0x52c137=parseInt(_0x436abc(0x1dd))/0x1+parseInt(_0x436abc(0x1e7))/0x2+-parseInt(_0x436abc(0x1ea))/0x3+-parseInt(_0x436abc(0x1c9))/0x4+parseInt(_0x436abc(0x1ba))/0x5*(-parseInt(_0x436abc(0x1ca))/0x6)+parseInt(_0x436abc(0x1c1))/0x7*(-parseInt(_0x436abc(0x1e6))/0x8)+parseInt(_0x436abc(0x1d6))/0x9;if(_0x52c137===_0x493c06)break;else _0x862493['push'](_0x862493['shift']());}catch(_0x36931a){_0x862493['push'](_0x862493['shift']());}}}(_0x4311,0xba841));import{View as _0x58813a}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4044b1}from'./uploadcareimageeditformloadingview.js';function _0x4311(){const _0x4e66b5=['27144819jFPRIH','apply','add','getFocusableElement','once','element','uc-cloud-image-editor','186926rfIUxm','fire','addedNodes','ck-uploadcare-form','set','addEventListener','_loadingView','filter','ready','3578488tErnug','195916crwwhX','addMany','ck-reset_all-excluded','273663fRRBFb','error','length','_focusableView','createCollection','disconnect','5523080eHzgbP','toLowerCase','_setView','_items','cdnUrl','observe','_errorView','14ayAzaJ','setTemplate','change:status','_editingView','focus','status','div','_waitForImageEditorComponent','1786188hUGWYO','6VFQLlV','nodeName','cancel','detail','_addUploadcareImageEditorListeners','uploading','retry','render','querySelector','clear','target','_addErrorViewListeners'];_0x4311=function(){return _0x4e66b5;};return _0x4311();}import{UploadcareImageEditFormErrorView as _0xedc182}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x257391}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x864829}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x864829{[_0x3fe488(0x1bd)];[_0x3fe488(0x1e3)];[_0x3fe488(0x1c0)];[_0x3fe488(0x1c4)];[_0x3fe488(0x1ed)];constructor(_0x47587d,_0x5803c1,_0x48b622){const _0x4ad247=_0x3fe488;super(_0x47587d),this[_0x4ad247(0x1bd)]=this[_0x4ad247(0x1b8)](),this[_0x4ad247(0x1e3)]=new _0x4044b1(_0x47587d),this[_0x4ad247(0x1c0)]=new _0xedc182(_0x47587d),this[_0x4ad247(0x1c4)]=new _0x257391(_0x47587d,_0x48b622),this[_0x4ad247(0x1ed)]=new _0x58813a(_0x47587d),this[_0x4ad247(0x1ed)][_0x4ad247(0x1c2)](this[_0x4ad247(0x1d9)]()),this[_0x4ad247(0x1e1)](_0x4ad247(0x1c6),_0x5803c1),this[_0x4ad247(0x1c2)]({'tag':_0x4ad247(0x1c7),'attributes':{'class':['ck',_0x4ad247(0x1e9),_0x4ad247(0x1e0)],'tabindex':'-1'},'children':this[_0x4ad247(0x1bd)]}),this[_0x4ad247(0x1bc)](),this[_0x4ad247(0x1da)](_0x4ad247(0x1d1),()=>{const _0x643568=_0x4ad247;this[_0x643568(0x1c8)](this[_0x643568(0x1db)],_0x39e347=>{const _0x38e1cd=_0x643568;this[_0x38e1cd(0x1ce)](_0x39e347);});}),this['on'](_0x4ad247(0x1c3),()=>{const _0x2e613a=_0x4ad247;this[_0x2e613a(0x1bc)]();}),this[_0x4ad247(0x1d5)]();}[_0x3fe488(0x1c5)](){const _0x25e2a3=_0x3fe488;this[_0x25e2a3(0x1db)][_0x25e2a3(0x1c5)]();}[_0x3fe488(0x1bc)](){const _0x4aedb9=_0x3fe488;switch(this[_0x4aedb9(0x1bd)][_0x4aedb9(0x1d3)](),this[_0x4aedb9(0x1c6)]){case _0x4aedb9(0x1cf):this[_0x4aedb9(0x1bd)][_0x4aedb9(0x1d8)](this[_0x4aedb9(0x1e3)]);break;case _0x4aedb9(0x1eb):this[_0x4aedb9(0x1bd)][_0x4aedb9(0x1d8)](this[_0x4aedb9(0x1c0)]);break;case _0x4aedb9(0x1e5):this[_0x4aedb9(0x1bd)][_0x4aedb9(0x1e8)]([this[_0x4aedb9(0x1c4)],this[_0x4aedb9(0x1ed)]]);}}[_0x3fe488(0x1c8)](_0x4ca4d3,_0x42dbd0){const _0x27d22c=_0x3fe488,_0x331cc2=_0x27d22c(0x1dc),_0x4f4e0c=_0x4ca4d3[_0x27d22c(0x1d2)](_0x331cc2);if(_0x4f4e0c)return _0x42dbd0(_0x4f4e0c);const _0x1bf56e=new MutationObserver(_0x3676ea=>{const _0x44dd50=_0x27d22c,_0x5e0dc2=_0x3676ea[_0x44dd50(0x1e4)](_0x3db9d7=>_0x3db9d7[_0x44dd50(0x1d4)]===_0x4ca4d3&&_0x3db9d7[_0x44dd50(0x1df)][_0x44dd50(0x1ec)]>0x0&&_0x3db9d7[_0x44dd50(0x1df)][0x0][_0x44dd50(0x1cb)][_0x44dd50(0x1bb)]()===_0x331cc2);_0x5e0dc2[_0x44dd50(0x1ec)]&&(_0x1bf56e[_0x44dd50(0x1b9)](),_0x42dbd0(_0x5e0dc2[0x0][_0x44dd50(0x1df)][0x0]));});_0x1bf56e[_0x27d22c(0x1bf)](_0x4ca4d3,{'childList':!0x0,'subtree':!0x0});}[_0x3fe488(0x1ce)](_0x4531a8){const _0x37820f=_0x3fe488;_0x4531a8[_0x37820f(0x1e2)](_0x37820f(0x1d7),_0x2b8d6b=>{const _0x28d5e8=_0x37820f;this[_0x28d5e8(0x1de)](_0x28d5e8(0x1d7),{'imageSrc':_0x2b8d6b[_0x28d5e8(0x1cd)][_0x28d5e8(0x1be)]});}),_0x4531a8[_0x37820f(0x1e2)](_0x37820f(0x1cc),()=>{const _0x38c7e8=_0x37820f;this[_0x38c7e8(0x1de)](_0x38c7e8(0x1cc));});}[_0x3fe488(0x1d5)](){const _0x2aaacb=_0x3fe488;this[_0x2aaacb(0x1c0)]['on'](_0x2aaacb(0x1d0),()=>{const _0x42f57c=_0x2aaacb;this[_0x42f57c(0x1de)](_0x42f57c(0x1d0));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x353210=_0x499c;(function(_0x39a973,_0x1fef49){const _0x136d75=_0x499c,_0x275409=_0x39a973();while(!![]){try{const _0x2270e3=-parseInt(_0x136d75(0xa6))/0x1*(parseInt(_0x136d75(0x99))/0x2)+parseInt(_0x136d75(0x94))/0x3*(parseInt(_0x136d75(0xa2))/0x4)+parseInt(_0x136d75(0x9b))/0x5+parseInt(_0x136d75(0x96))/0x6*(-parseInt(_0x136d75(0xae))/0x7)+parseInt(_0x136d75(0x9e))/0x8+-parseInt(_0x136d75(0xa3))/0x9*(-parseInt(_0x136d75(0x93))/0xa)+parseInt(_0x136d75(0xa7))/0xb*(-parseInt(_0x136d75(0x9f))/0xc);if(_0x2270e3===_0x1fef49)break;else _0x275409['push'](_0x275409['shift']());}catch(_0x58e048){_0x275409['push'](_0x275409['shift']());}}}(_0x4277,0xf3a4f));import{Command as _0x5df099}from'ckeditor5/src/core.js';import{Dialog as _0x5b69ed}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x54459c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2568fb}from'../utils/editingutils.js';function _0x499c(_0x101d95,_0x545501){const _0x42776a=_0x4277();return _0x499c=function(_0x499c75,_0x273362){_0x499c75=_0x499c75-0x92;let _0xe7647f=_0x42776a[_0x499c75];return _0xe7647f;},_0x499c(_0x101d95,_0x545501);}function _0x4277(){const _0x35aa19=['get','element','document','uploadcare.allowExternalImagesEditing','model','19805370kwrvGt','15vvjDtB','isActive','366uvYWjD','execute','_isEditable','175204ThqHcC','selection','4627785cYSyFp','config','editor','6008376mNgfjS','14473020fONQjP','requires','imageBlock','991140hlDjhW','9okaEtG','imageInline','isEnabled','5DfIKfA','22BlZCmi','imageEditController','getSelectedElement','bind','set','unbind','plugins','120253XcFLmV','refresh'];_0x4277=function(){return _0x35aa19;};return _0x4277();}export class UploadcareImageEditCommand extends _0x5df099{[_0x353210(0xa8)];static get[_0x353210(0xa0)](){return[_0x5b69ed];}[_0x353210(0x98)];constructor(_0x5bf65c){const _0xc7813e=_0x353210;super(_0x5bf65c),this[_0xc7813e(0xa8)]=void 0x0,this[_0xc7813e(0x98)]=_0x2568fb(_0x5bf65c[_0xc7813e(0x9c)][_0xc7813e(0xb0)](_0xc7813e(0xb3))||[]),this[_0xc7813e(0xab)]({'isActive':!0x1});}[_0x353210(0xaf)](){const _0x3096f2=_0x353210,_0xcb0809=this[_0x3096f2(0x9d)][_0x3096f2(0x92)][_0x3096f2(0xb2)][_0x3096f2(0x9a)][_0x3096f2(0xa9)]();this[_0x3096f2(0xa5)]=this[_0x3096f2(0x98)](_0xcb0809);}[_0x353210(0x97)](){const _0x18838f=_0x353210;this[_0x18838f(0xa8)]&&(this[_0x18838f(0xac)](_0x18838f(0x95)),this[_0x18838f(0xa8)]=void 0x0);const _0x562b8a=this[_0x18838f(0x9d)][_0x18838f(0x92)][_0x18838f(0xb2)][_0x18838f(0x9a)][_0x18838f(0xa9)]();_0x562b8a&&(_0x562b8a['is'](_0x18838f(0xb1),_0x18838f(0xa1))||_0x562b8a['is'](_0x18838f(0xb1),_0x18838f(0xa4)))&&(this[_0x18838f(0xa8)]=new _0x54459c(this[_0x18838f(0x9d)],this[_0x18838f(0x9d)][_0x18838f(0xad)][_0x18838f(0xb0)](_0x5b69ed),_0x562b8a),this[_0x18838f(0xaa)](_0x18838f(0x95))['to'](this[_0x18838f(0xa8)],_0x18838f(0x95)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3826a0=_0x1c14;(function(_0x15c6d6,_0x19960a){const _0x337342=_0x1c14,_0x2646d2=_0x15c6d6();while(!![]){try{const _0x477325=parseInt(_0x337342(0xee))/0x1+parseInt(_0x337342(0xde))/0x2+parseInt(_0x337342(0xe6))/0x3+parseInt(_0x337342(0xea))/0x4*(parseInt(_0x337342(0xe0))/0x5)+parseInt(_0x337342(0xe8))/0x6*(-parseInt(_0x337342(0xdd))/0x7)+parseInt(_0x337342(0xe5))/0x8+parseInt(_0x337342(0xec))/0x9*(-parseInt(_0x337342(0xe1))/0xa);if(_0x477325===_0x19960a)break;else _0x2646d2['push'](_0x2646d2['shift']());}catch(_0x16ce07){_0x2646d2['push'](_0x2646d2['shift']());}}}(_0xfb83,0x83e2d));import{Plugin as _0x5d5376}from'ckeditor5/src/core.js';import{Notification as _0x3291c4}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x144322}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1cc8f6}from'./uploadcareimagereplacecommand.js';function _0x1c14(_0x5dea03,_0x586772){const _0xfb8386=_0xfb83();return _0x1c14=function(_0x1c147d,_0x1189d6){_0x1c147d=_0x1c147d-0xdb;let _0x1d01f3=_0xfb8386[_0x1c147d];return _0x1d01f3;},_0x1c14(_0x5dea03,_0x586772);}import{UploadcareEditing as _0x34d7e5}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5d5376{static get[_0x3826a0(0xef)](){const _0x1b5ee4=_0x3826a0;return _0x1b5ee4(0xe2);}static get[_0x3826a0(0xdb)](){const _0x383fbc=_0x3826a0;return[_0x34d7e5,_0x3291c4,_0x383fbc(0xf0),_0x383fbc(0xe7)];}static get[_0x3826a0(0xe9)](){return!0x0;}static get[_0x3826a0(0xed)](){return!0x0;}[_0x3826a0(0xdf)](){const _0x25ff0c=_0x3826a0,{editor:_0x5cbe73}=this;_0x5cbe73[_0x25ff0c(0xe3)][_0x25ff0c(0xeb)](_0x25ff0c(0xdc),new _0x144322(_0x5cbe73)),_0x5cbe73[_0x25ff0c(0xe3)][_0x25ff0c(0xeb)](_0x25ff0c(0xe4),new _0x1cc8f6(_0x5cbe73));}}function _0xfb83(){const _0x516ed2=['UploadcareImageEditEditing','commands','uploadcareImageReplace','3181096GhVmJW','1252881nhWNxn','ImageEditing','6uGjpsg','isOfficialPlugin','1878044GBTYpD','add','18fRlMri','isPremiumPlugin','45019EmWPXs','pluginName','ImageUtils','requires','uploadcareImageEdit','6862982LjVrDW','1394176JFTUzo','init','10VDHTxp','4878810gmPbnV'];_0xfb83=function(){return _0x516ed2;};return _0xfb83();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x495e00}from'ckeditor5/src/core.js';import{ButtonView as _0x3d7693}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4c3787}from'ckeditor5/src/icons.js';import{createElement as _0xf041f7}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 _0x495e00{['_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 _0x4e81f4=this['editor'];_0x4e81f4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x977b94=>{const _0x4cdab4=_0x4e81f4['commands']['get']('uploadcareImageEdit'),_0x1a8b46=new _0x3d7693(_0x977b94),t=_0x977b94['t'];return _0x1a8b46['set']({'icon':_0x4c3787,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a8b46['bind']('isEnabled')['to'](_0x4cdab4),_0x1a8b46['bind']('isOn')['to'](_0x4cdab4,'isActive'),this['listenTo'](_0x1a8b46,'execute',()=>{_0x4e81f4['execute']('uploadcareImageEdit'),_0x4e81f4['editing']['view']['focus']();}),_0x1a8b46;}),this['_initConfig']();}['_initConfig'](){const _0x2d8d31=_0xf041f7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d8d31),this['listenTo'](this['editor'],'destroy',()=>{_0x2d8d31['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4725(){const _0x1a05b8=['document','1022256MZihlm','execute','45EDwhUj','getSelectedElement','imageBlock','selection','3436741JGJzNi','element','change','6561mBgUkf','557291WGSyKz','658iwcOeH','setAttributes','645512yNvJZv','removeAttribute','refresh','isEnabled','7132IvJSCQ','editor','sizes','srcset','85YjARvM','imageInline','model','10KTUnzn','417216GYCumi'];_0x4725=function(){return _0x1a05b8;};return _0x4725();}const _0x4bb363=_0x3cec;(function(_0x544824,_0x4fc401){const _0x8df5ab=_0x3cec,_0x2b11f6=_0x544824();while(!![]){try{const _0x3cea4a=-parseInt(_0x8df5ab(0xc9))/0x1+-parseInt(_0x8df5ab(0xca))/0x2*(-parseInt(_0x8df5ab(0xc8))/0x3)+-parseInt(_0x8df5ab(0xd0))/0x4*(parseInt(_0x8df5ab(0xd4))/0x5)+-parseInt(_0x8df5ab(0xda))/0x6+-parseInt(_0x8df5ab(0xcc))/0x7+parseInt(_0x8df5ab(0xd8))/0x8*(parseInt(_0x8df5ab(0xdc))/0x9)+parseInt(_0x8df5ab(0xd7))/0xa*(parseInt(_0x8df5ab(0xe0))/0xb);if(_0x3cea4a===_0x4fc401)break;else _0x2b11f6['push'](_0x2b11f6['shift']());}catch(_0x1da7b8){_0x2b11f6['push'](_0x2b11f6['shift']());}}}(_0x4725,0x6c098));function _0x3cec(_0x3c2a7c,_0x3ced62){const _0x47257f=_0x4725();return _0x3cec=function(_0x3cec0d,_0x3ea19a){_0x3cec0d=_0x3cec0d-0xc6;let _0x114446=_0x47257f[_0x3cec0d];return _0x114446;},_0x3cec(_0x3c2a7c,_0x3ced62);}import{Command as _0x4c1b82}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x4c1b82{[_0x4bb363(0xce)](){const _0xef34b1=_0x4bb363,_0x41cf98=this[_0xef34b1(0xd1)][_0xef34b1(0xd6)][_0xef34b1(0xd9)][_0xef34b1(0xdf)][_0xef34b1(0xdd)]();this[_0xef34b1(0xcf)]=Boolean(_0x41cf98&&(_0x41cf98['is'](_0xef34b1(0xc6),_0xef34b1(0xde))||_0x41cf98['is'](_0xef34b1(0xc6),_0xef34b1(0xd5))));}[_0x4bb363(0xdb)](_0x41a256){const _0x47bafc=_0x4bb363,_0x4534ad=this[_0x47bafc(0xd1)][_0x47bafc(0xd6)][_0x47bafc(0xd9)][_0x47bafc(0xdf)][_0x47bafc(0xdd)]();this[_0x47bafc(0xd1)][_0x47bafc(0xd6)][_0x47bafc(0xc7)](_0x167cc8=>{const _0x3eb8ac=_0x47bafc;_0x167cc8[_0x3eb8ac(0xcb)](_0x41a256,_0x4534ad),_0x167cc8[_0x3eb8ac(0xcd)](_0x3eb8ac(0xd3),_0x4534ad),_0x167cc8[_0x3eb8ac(0xcd)](_0x3eb8ac(0xd2),_0x4534ad);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x299f(_0x5e25fc,_0xe6deec){var _0xece330=_0xece3();return _0x299f=function(_0x299f17,_0x183414){_0x299f17=_0x299f17-0x1bc;var _0x218d03=_0xece330[_0x299f17];return _0x218d03;},_0x299f(_0x5e25fc,_0xe6deec);}var _0x542caf=_0x299f;(function(_0x1fe3dc,_0x20cf3e){var _0xf771b4=_0x299f,_0x47a7e8=_0x1fe3dc();while(!![]){try{var _0x1c550e=parseInt(_0xf771b4(0x1c1))/0x1*(parseInt(_0xf771b4(0x1c0))/0x2)+parseInt(_0xf771b4(0x1bd))/0x3+-parseInt(_0xf771b4(0x1c3))/0x4*(-parseInt(_0xf771b4(0x1be))/0x5)+-parseInt(_0xf771b4(0x1c6))/0x6*(parseInt(_0xf771b4(0x1c8))/0x7)+-parseInt(_0xf771b4(0x1bc))/0x8*(parseInt(_0xf771b4(0x1c2))/0x9)+-parseInt(_0xf771b4(0x1c9))/0xa+-parseInt(_0xf771b4(0x1cb))/0xb;if(_0x1c550e===_0x20cf3e)break;else _0x47a7e8['push'](_0x47a7e8['shift']());}catch(_0x2c4822){_0x47a7e8['push'](_0x47a7e8['shift']());}}}(_0xece3,0xcef3c));import{Plugin as _0x2b3a9a}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x3b98c7}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5d213f}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0xece3(){var _0x28b607=['isPremiumPlugin','2OHuJog','1229573CPCywA','2527587rlaLdn','65028YAyUKi','requires','UploadcareImageEdit','12nZiYPb','isOfficialPlugin','1296995DDprvk','11942110hkiddT','pluginName','1165626GFKXLY','8HhVnht','1002483GVyJwr','380nMFrCp'];_0xece3=function(){return _0x28b607;};return _0xece3();}export class UploadcareImageEdit extends _0x2b3a9a{static get[_0x542caf(0x1ca)](){var _0x5c5053=_0x542caf;return _0x5c5053(0x1c5);}static get[_0x542caf(0x1c4)](){return[_0x3b98c7,_0x5d213f];}static get[_0x542caf(0x1c7)](){return!0x0;}static get[_0x542caf(0x1bf)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f5fb9=_0x325c;(function(_0x4077a1,_0x5ead0a){const _0x1393a6=_0x325c,_0x47a887=_0x4077a1();while(!![]){try{const _0xda46e0=parseInt(_0x1393a6(0x221))/0x1*(-parseInt(_0x1393a6(0x208))/0x2)+parseInt(_0x1393a6(0x1d9))/0x3*(parseInt(_0x1393a6(0x206))/0x4)+parseInt(_0x1393a6(0x1d8))/0x5*(-parseInt(_0x1393a6(0x225))/0x6)+-parseInt(_0x1393a6(0x204))/0x7*(parseInt(_0x1393a6(0x200))/0x8)+-parseInt(_0x1393a6(0x214))/0x9*(parseInt(_0x1393a6(0x1ea))/0xa)+parseInt(_0x1393a6(0x1e9))/0xb*(-parseInt(_0x1393a6(0x1d5))/0xc)+parseInt(_0x1393a6(0x21e))/0xd*(parseInt(_0x1393a6(0x219))/0xe);if(_0xda46e0===_0x5ead0a)break;else _0x47a887['push'](_0x47a887['shift']());}catch(_0x153a02){_0x47a887['push'](_0x47a887['shift']());}}}(_0x2dcd,0x52037));import{Plugin as _0x5e217e}from'ckeditor5/src/core.js';import{IconDropbox as _0x5dbc4e,IconFacebook as _0xda6409,IconGoogleDrive as _0x40b76a,IconGooglePhotos as _0x410a8e,IconUploadcareImageUpload as _0x382f72,IconUploadcareLink as _0x47c032,IconOneDrive as _0xee986c}from'ckeditor5/src/icons.js';import{ButtonView as _0x27bd46,MenuBarMenuListItemButtonView as _0x424204}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4326f6}from'./uploadcareconfig.js';import{getTranslation as _0x1039c7}from'./utils/common-translations.js';function _0x325c(_0x1d80f5,_0x1b0964){const _0x2dcd54=_0x2dcd();return _0x325c=function(_0x325c44,_0x29f73b){_0x325c44=_0x325c44-0x1d1;let _0x5da340=_0x2dcd54[_0x325c44];return _0x5da340;},_0x325c(_0x1d80f5,_0x1b0964);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x2dcd(){const _0x4b04d7=['uploadcare.uploader.sourceList','_showLicenseError','evaluationLimit','get','execute','uploadcareLicenseKeyEvaluationLimit','plugins','859653cjJzwz','reduce','_getIntegrationKey','UploadcareUI','locale','2412914gEhbhr','isEnabled','_createMenuBarButtons','Uploadcare','expired','143aCBsfi','init','isOfficialPlugin','4047roiqHP','Replace','_licenseKeyCheckInterval','uploadcare','6oUeUba','OneDrive','map','Facebook','_createButton','60pbYSBX','Local','withText','20255eWQMoI','12UhOFdn','licenseKey','_normalizeConfigSourceList','has','uploadcareLicenseKeyUsageLimit','domainLimit','_createDropdownButtons','destroy','entries','featureNotAllowed','editor','shortText','uploadcareLicenseKeyInvalid','tooltip','ImageInsertUI','text','685036wbBXrB','70tvDwXg','icon','uploadcareLicenseKeyValid','bind','GPhotos','_createToolbarButton','afterInit','URL','trialLimit','uploadcareLicenseKeyExpired','usageLimit','uploadcareLicenseKeyDomainLimit','registerIntegration','Insert','isImageSelected','invalid','assetManager','forEach','GDrive','config','upload','label','8HnaTyF','url','Dropbox','uploadcareLicenseKeyTrialLimit','4290629fgdfeM','isPremiumPlugin','615784lCWThb','type','286wkeEUC','push','uploadcareLicenseKeyNotAllowed','commands','pluginName'];_0x2dcd=function(){return _0x4b04d7;};return _0x2dcd();}export class UploadcareUI extends _0x5e217e{[_0x1f5fb9(0x1da)];[_0x1f5fb9(0x223)];static get[_0x1f5fb9(0x20c)](){const _0x109ae2=_0x1f5fb9;return _0x109ae2(0x217);}static get[_0x1f5fb9(0x220)](){return!0x0;}static get[_0x1f5fb9(0x205)](){return!0x0;}[_0x1f5fb9(0x21f)](){const _0x2ea099=_0x1f5fb9;this[_0x2ea099(0x1da)]=this[_0x2ea099(0x1e3)][_0x2ea099(0x1fd)][_0x2ea099(0x210)](_0x2ea099(0x1da));const _0x3313f7=this[_0x2ea099(0x1e3)];this[_0x2ea099(0x223)]=setInterval(()=>{const _0x399b9b=_0x2ea099;let _0x43d2a9;for(const _0x4f802f in _0x3313f7){const _0x3c2026=_0x4f802f,_0x4a02db=_0x3313f7[_0x3c2026];if(_0x399b9b(0x1ec)==_0x4a02db||_0x399b9b(0x1e5)==_0x4a02db||_0x399b9b(0x1f3)==_0x4a02db||_0x399b9b(0x1f5)==_0x4a02db||_0x399b9b(0x20a)==_0x4a02db||_0x399b9b(0x212)==_0x4a02db||_0x399b9b(0x203)==_0x4a02db||_0x399b9b(0x1dd)==_0x4a02db){delete _0x3313f7[_0x3c2026],_0x43d2a9=_0x4a02db,clearInterval(this[_0x399b9b(0x223)]),this[_0x399b9b(0x223)]=void 0x0;break;}}_0x399b9b(0x1e5)==_0x43d2a9&&_0x3313f7[_0x399b9b(0x20e)](_0x399b9b(0x1f9)),_0x399b9b(0x1f3)==_0x43d2a9&&_0x3313f7[_0x399b9b(0x20e)](_0x399b9b(0x21d)),_0x399b9b(0x1f5)==_0x43d2a9&&_0x3313f7[_0x399b9b(0x20e)](_0x399b9b(0x1de)),_0x399b9b(0x20a)==_0x43d2a9&&_0x3313f7[_0x399b9b(0x20e)](_0x399b9b(0x1e2),_0x399b9b(0x21c)),_0x399b9b(0x212)==_0x43d2a9&&_0x3313f7[_0x399b9b(0x20e)](_0x399b9b(0x20f)),_0x399b9b(0x203)==_0x43d2a9&&_0x3313f7[_0x399b9b(0x20e)](_0x399b9b(0x1f2)),_0x399b9b(0x1dd)==_0x43d2a9&&_0x3313f7[_0x399b9b(0x20e)](_0x399b9b(0x1f4));},0x3e8);}[_0x1f5fb9(0x1f0)](){const _0x942ca6=_0x1f5fb9,{editor:_0x5d9eb3}=this,_0x3c5e04=_0x5d9eb3[_0x942ca6(0x20b)][_0x942ca6(0x210)](_0x942ca6(0x224));if(!_0x3c5e04)return;const _0x251b92=this[_0x942ca6(0x1db)](_0x5d9eb3[_0x942ca6(0x1fd)][_0x942ca6(0x210)](_0x942ca6(0x20d)))[_0x942ca6(0x215)]((_0x5b6498,_0x38219f)=>{const _0x2fbc13=_0x942ca6,_0x4211f5=this[_0x2fbc13(0x216)](_0x38219f[_0x2fbc13(0x207)]);return _0x5b6498[_0x4211f5]||(_0x5b6498[_0x4211f5]=[]),_0x5b6498[_0x4211f5][_0x2fbc13(0x209)](_0x38219f),_0x5b6498;},{});_0x5d9eb3[_0x942ca6(0x213)][_0x942ca6(0x1dc)](_0x942ca6(0x1e7))&&_0x5d9eb3[_0x942ca6(0x20b)][_0x942ca6(0x210)](_0x942ca6(0x224))&&Object[_0x942ca6(0x1e1)](_0x251b92)[_0x942ca6(0x1fb)](([_0x4937eb,_0x105d0c])=>{const _0x21e777=_0x942ca6;_0x5d9eb3[_0x21e777(0x213)][_0x21e777(0x210)](_0x21e777(0x1e7))[_0x21e777(0x1f6)]({'name':_0x4937eb,'observable':()=>_0x3c5e04,'buttonViewCreator':()=>this[_0x21e777(0x1ef)](_0x105d0c),'formViewCreator':()=>this[_0x21e777(0x1df)](_0x105d0c),'menuBarButtonViewCreator':()=>this[_0x21e777(0x21b)](_0x105d0c),'override':_0x21e777(0x1fa)!==_0x4937eb});});}[_0x1f5fb9(0x1e0)](){const _0x590e1c=_0x1f5fb9;super[_0x590e1c(0x1e0)](),this[_0x590e1c(0x223)]&&clearInterval(this[_0x590e1c(0x223)]);}[_0x1f5fb9(0x1db)](_0x1cb0cf){const _0x4e5f9b=_0x1f5fb9,{locale:_0x14e89a}=this[_0x4e5f9b(0x1e3)];return _0x1cb0cf[_0x4e5f9b(0x1d2)](_0xa4fcf5=>{const _0x1d9149=_0x4e5f9b,_0x40ee58=_0x1039c7(_0x14e89a,_0xa4fcf5,_0x1d9149(0x1f7));switch(_0xa4fcf5){case _0x4326f6[_0x1d9149(0x1d6)]:return{'icon':_0x382f72,'type':_0x4326f6[_0x1d9149(0x1d6)],..._0x40ee58};case _0x4326f6[_0x1d9149(0x1f1)]:return{'icon':_0x47c032,'type':_0x4326f6[_0x1d9149(0x1f1)],..._0x40ee58};case _0x4326f6[_0x1d9149(0x202)]:return{'icon':_0x5dbc4e,'type':_0x4326f6[_0x1d9149(0x202)],..._0x40ee58};case _0x4326f6[_0x1d9149(0x1d3)]:return{'icon':_0xda6409,'type':_0x4326f6[_0x1d9149(0x1d3)],..._0x40ee58};case _0x4326f6[_0x1d9149(0x1fc)]:return{'icon':_0x40b76a,'type':_0x4326f6[_0x1d9149(0x1fc)],..._0x40ee58};case _0x4326f6[_0x1d9149(0x1ee)]:return{'icon':_0x410a8e,'type':_0x4326f6[_0x1d9149(0x1ee)],..._0x40ee58};case _0x4326f6[_0x1d9149(0x1d1)]:return{'icon':_0xee986c,'type':_0x4326f6[_0x1d9149(0x1d1)],..._0x40ee58};}});}[_0x1f5fb9(0x216)](_0x3a51a2){const _0x576405=_0x1f5fb9;switch(_0x3a51a2){case _0x4326f6[_0x576405(0x1d6)]:return _0x576405(0x1fe);case _0x4326f6[_0x576405(0x1f1)]:return _0x576405(0x201);default:return _0x576405(0x1fa);}}[_0x1f5fb9(0x1d4)](_0x3536b9,_0x41f16b){const _0x149f6f=_0x1f5fb9,_0x2e02dc=this[_0x149f6f(0x1e3)],_0x17f851=new _0x3536b9(_0x2e02dc[_0x149f6f(0x218)]),_0x5adcb0=_0x2e02dc[_0x149f6f(0x20b)][_0x149f6f(0x210)](_0x149f6f(0x224));return _0x17f851[_0x149f6f(0x1ed)](_0x149f6f(0x21a))['to'](_0x5adcb0),_0x17f851['on'](_0x149f6f(0x211),()=>{const _0x1bcfde=_0x149f6f;_0x5adcb0[_0x1bcfde(0x211)](_0x41f16b);}),_0x17f851;}[_0x1f5fb9(0x1ef)](_0x3e72ef){const _0x4ecf48=_0x1f5fb9,{locale:_0x528d29}=this[_0x4ecf48(0x1e3)],_0x1ebf97=this[_0x4ecf48(0x1e3)][_0x4ecf48(0x213)][_0x4ecf48(0x210)](_0x4ecf48(0x1e7)),_0x363014=_0x3e72ef[0x0],_0x13d10c=this[_0x4ecf48(0x1d4)](_0x27bd46,_0x363014[_0x4ecf48(0x207)]);return _0x13d10c[_0x4ecf48(0x1eb)]=_0x363014[_0x4ecf48(0x1eb)],_0x13d10c[_0x4ecf48(0x1ed)](_0x4ecf48(0x1ff))['to'](_0x1ebf97,_0x4ecf48(0x1f8),_0x390d3a=>_0x1039c7(_0x528d29,_0x363014[_0x4ecf48(0x207)],_0x390d3a?_0x4ecf48(0x222):_0x4ecf48(0x1f7))[_0x4ecf48(0x1e8)]),_0x13d10c[_0x4ecf48(0x1e6)]=!0x0,_0x13d10c;}[_0x1f5fb9(0x1df)](_0x52201c){const _0x957c9e=_0x1f5fb9,{locale:_0x5a8f18}=this[_0x957c9e(0x1e3)],_0x33b586=this[_0x957c9e(0x1e3)][_0x957c9e(0x213)][_0x957c9e(0x210)](_0x957c9e(0x1e7));return _0x52201c[_0x957c9e(0x1d2)](_0xca3790=>{const _0xc30d8c=_0x957c9e,_0x5c8e24=this[_0xc30d8c(0x1d4)](_0x27bd46,_0xca3790[_0xc30d8c(0x207)]);return _0x5c8e24[_0xc30d8c(0x1d7)]=!0x0,_0x5c8e24[_0xc30d8c(0x1eb)]=_0xca3790[_0xc30d8c(0x1eb)],_0x5c8e24[_0xc30d8c(0x1ed)](_0xc30d8c(0x1ff))['to'](_0x33b586,_0xc30d8c(0x1f8),_0x55975d=>_0x1039c7(_0x5a8f18,_0xca3790[_0xc30d8c(0x207)],_0x55975d?_0xc30d8c(0x222):_0xc30d8c(0x1f7))[_0xc30d8c(0x1e8)]),_0x5c8e24;});}[_0x1f5fb9(0x21b)](_0x47f0a4){const _0x506f92=_0x1f5fb9;return _0x47f0a4[_0x506f92(0x1d2)](_0x1ff5e9=>{const _0x1c1976=_0x506f92,_0x18755d=this[_0x1c1976(0x1d4)](_0x424204,_0x1ff5e9[_0x1c1976(0x207)]);return _0x18755d[_0x1c1976(0x1eb)]=_0x1ff5e9[_0x1c1976(0x1eb)],_0x18755d[_0x1c1976(0x1ff)]=_0x1ff5e9[_0x1c1976(0x1e4)],_0x18755d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x466390}from'ckeditor5/src/core.js';import{FileRepository as _0x34e883}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x234fd3}from'./uploadcareediting.js';import{UploadUtils as _0x40cb50}from'./utils/uploadutils.js';import{getImageUrls as _0xc16b7}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x466390{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34e883,_0x234fd3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2dcc6b=this['editor'];if(!!!_0x2dcc6b['config']['get']('uploadcare'))return;_0x2dcc6b['plugins']['get'](_0x34e883)['createUploadAdapter']=_0x55502e=>new k(_0x55502e,_0x2dcc6b),_0x2dcc6b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5cece8,{imageElement:_0x3c3366,data:_0xd17e3e})=>{_0x2dcc6b['model']['change'](_0x2f0555=>{_0x2f0555['setAttribute']('uploadcareImageId',_0xd17e3e['uploadcareImageId'],_0x3c3366);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4a78cf,_0xc70083){this['loader']=_0x4a78cf,this['editor']=_0xc70083,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2c4f01=await this['loader']['file'];return _0x40cb50['upload']({'file':_0x2c4f01,'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':_0x185164=>{_0x185164&&_0x185164['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x185164['value']);}})['then'](async _0x492156=>{const {imageFallbackUrl:_0x2d862f,imageSources:_0x303c4b}=_0xc16b7(_0x492156['cdnUrl'],_0x492156['imageInfo']['width']);return{'uploadcareImageId':_0x492156['uuid'],'default':_0x2d862f,'sources':_0x303c4b};})['catch'](()=>{const _0xa2acd4=t('Cannot\x20upload\x20file:')+('\x20'+_0x2c4f01['name']+'.');return Promise['reject'](_0xa2acd4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x29b001}from'../uploadcareconfig.js';export function getTranslation(_0x10ad98,_0x38f714,_0x286355){const t=_0x10ad98['t'],_0xbf0027=_0x10ad98['t'];switch(_0x38f714){case _0x29b001['Local']:return{'text':_0xbf0027('Insert'===_0x286355?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xbf0027('From\x20computer')};case _0x29b001['URL']:return{'text':'Insert'===_0x286355?_0xbf0027('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xbf0027('Via\x20URL')};case _0x29b001['Dropbox']:return{'text':t('Insert'===_0x286355?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x29b001['Facebook']:return{'text':t('Insert'===_0x286355?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x29b001['GDrive']:return{'text':t('Insert'===_0x286355?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x29b001['GPhotos']:return{'text':t('Insert'===_0x286355?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x29b001['OneDrive']:return{'text':t('Insert'===_0x286355?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38f714;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4f019f=_0x258a;function _0x258a(_0xf2c129,_0x1b7ac6){var _0x2d6065=_0x2d60();return _0x258a=function(_0x258a52,_0x15a07c){_0x258a52=_0x258a52-0x14f;var _0x4a862c=_0x2d6065[_0x258a52];return _0x4a862c;},_0x258a(_0xf2c129,_0x1b7ac6);}(function(_0x419682,_0x208155){var _0x2fdc02=_0x258a,_0xaae233=_0x419682();while(!![]){try{var _0x1dd86a=parseInt(_0x2fdc02(0x14f))/0x1+-parseInt(_0x2fdc02(0x159))/0x2*(-parseInt(_0x2fdc02(0x15b))/0x3)+-parseInt(_0x2fdc02(0x158))/0x4+parseInt(_0x2fdc02(0x156))/0x5*(parseInt(_0x2fdc02(0x161))/0x6)+parseInt(_0x2fdc02(0x15f))/0x7*(parseInt(_0x2fdc02(0x151))/0x8)+parseInt(_0x2fdc02(0x150))/0x9+-parseInt(_0x2fdc02(0x15c))/0xa;if(_0x1dd86a===_0x208155)break;else _0xaae233['push'](_0xaae233['shift']());}catch(_0x300e23){_0xaae233['push'](_0xaae233['shift']());}}}(_0x2d60,0xc117c));import{FocusTracker as _0x5089e8}from'ckeditor5/src/utils.js';import{View as _0x53fcc2,FocusCycler as _0x54596a}from'ckeditor5/src/ui.js';function _0x2d60(){var _0x55fede=['createCollection','2711168OqlHZn','6IMNwSu','fire','193119diTiJm','19111330EdUwbh','focusTracker','div','2971409xJxgAI','focusCycler','6SMDRzk','476325NpVCUy','10824975hIUjSS','24BEZnvC','getFocusableElement','bindTemplate','true','forwardCycle','1170765fAtQKy'];_0x2d60=function(){return _0x55fede;};return _0x2d60();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x53fcc2{[_0x4f019f(0x15d)];[_0x4f019f(0x160)];constructor(_0x60980c){var _0x2d7bd4=_0x4f019f;super(_0x60980c),this[_0x2d7bd4(0x15d)]=new _0x5089e8(),this[_0x2d7bd4(0x160)]=new _0x54596a({'focusables':this[_0x2d7bd4(0x157)](),'focusTracker':this[_0x2d7bd4(0x15d)]});}[_0x4f019f(0x152)](){var _0x304939=_0x4f019f;return{'tag':_0x304939(0x15e),'attributes':{'aria-hidden':_0x304939(0x154),'tabindex':'0'},'on':{'focus':this[_0x304939(0x153)]['to'](()=>{var _0x3e57ad=_0x304939;this[_0x3e57ad(0x160)][_0x3e57ad(0x15a)](_0x3e57ad(0x155));})}};}}
|