@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250309.0 → 0.0.0-nightly-20250311.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1b15(_0x4a0276,_0x27cc0a){const _0x1ea50f=_0x1ea5();return _0x1b15=function(_0x1b15ae,_0x28e474){_0x1b15ae=_0x1b15ae-0xa6;let _0x55bbdf=_0x1ea50f[_0x1b15ae];return _0x55bbdf;},_0x1b15(_0x4a0276,_0x27cc0a);}const _0x28f58e=_0x1b15;(function(_0xaab85,_0x3bf0f0){const _0x1d23e0=_0x1b15,_0x2e6c56=_0xaab85();while(!![]){try{const _0x3e810a=parseInt(_0x1d23e0(0xe3))/0x1+-parseInt(_0x1d23e0(0xa9))/0x2+parseInt(_0x1d23e0(0xc3))/0x3+-parseInt(_0x1d23e0(0xc0))/0x4+parseInt(_0x1d23e0(0xeb))/0x5*(parseInt(_0x1d23e0(0xb1))/0x6)+-parseInt(_0x1d23e0(0xab))/0x7*(parseInt(_0x1d23e0(0xcd))/0x8)+parseInt(_0x1d23e0(0xe4))/0x9*(parseInt(_0x1d23e0(0xac))/0xa);if(_0x3e810a===_0x3bf0f0)break;else _0x2e6c56['push'](_0x2e6c56['shift']());}catch(_0x37ebac){_0x2e6c56['push'](_0x2e6c56['shift']());}}}(_0x1ea5,0x9bae8));import{Plugin as _0x26ca0b}from'ckeditor5/src/core.js';import{Dialog as _0xe8a498}from'ckeditor5/src/ui.js';import{createElement as _0x3a37b6,global as _0x491152,uid as _0x3b0b86}from'ckeditor5/src/utils.js';import _0x3aeb54 from'./uploadcarecommand.js';import _0x12139b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d9d90}from'./utils/editingutils.js';function _0x1ea5(){const _0x1de688=['381342sGJxdc','input[uploadcare-file-input]','selection','uploadcareImageReplace','view','model','uploadcareImageId','add','_initImageProcessingIndicator','replaceImageSource','42664SoIUEi','uploadcare.pubkey','ctxElement','_initConversion','uploadcare','execute','uploadcare.uploader','configElement','pluginName','upcast','editing','commands','contentLanguage','imageBlock','map','insertImage','_configElement','destroy','extend','for','get','uc-config','760442XOPyKL','54LpRRkB','elementToAttribute','uploader','isPremiumPlugin','render','true','_initConfig','2885DdGrEG','PictureEditing','cleanupImage','downcast','conversion','editor','isOfficialPlugin','document','afterInit','iconHrefResolver','imageInline','uc-upload-ctx-provider','_initCtx','\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','#uc-icon-arrow-down','querySelector','data-uc-image-id','join','1960802dIQcpz','attributeToAttribute','406IibCaE','2378320eWNfKT','init','once','locale','remove','8538TDAuex','removeAttribute','getSelectedElement','config','body','requires','appendChild','schema','_ctxElement','getAttribute','UploadcareEditing','isRegistered','fromCharCode','_initSchema','closeMax','4832928Wdsvlh','listenTo','href'];_0x1ea5=function(){return _0x1de688;};return _0x1ea5();}export default class i extends _0x26ca0b{[_0x28f58e(0xdd)]=null;[_0x28f58e(0xb9)]=null;static get[_0x28f58e(0xd5)](){const _0x555b7b=_0x28f58e;return _0x555b7b(0xbb);}static get[_0x28f58e(0xb6)](){const _0x328210=_0x28f58e;return[_0x328210(0xec),_0x12139b,_0xe8a498];}static get[_0x28f58e(0xf1)](){return!0x0;}static get[_0x28f58e(0xe7)](){return!0x0;}get[_0x28f58e(0xd4)](){const _0x5b9212=_0x28f58e;return this[_0x5b9212(0xdd)];}get[_0x28f58e(0xcf)](){const _0x3dc1b2=_0x28f58e;return this[_0x3dc1b2(0xb9)];}[_0x28f58e(0xad)](){const _0x276c6d=_0x28f58e,_0x4691a4=this[_0x276c6d(0xf0)];_0x4691a4[_0x276c6d(0xd8)][_0x276c6d(0xca)](_0x276c6d(0xd1),new _0x3aeb54(_0x4691a4));}[_0x28f58e(0xf3)](){const _0x15ff56=_0x28f58e;this[_0x15ff56(0xbe)](),this[_0x15ff56(0xd0)](),this[_0x15ff56(0xea)](),this[_0x15ff56(0xf7)](),this[_0x15ff56(0xcb)](),this[_0x15ff56(0xc1)](this[_0x15ff56(0xf0)],_0x15ff56(0xde),()=>{const _0xe12197=_0x15ff56;this[_0xe12197(0xdd)]&&(this[_0xe12197(0xdd)][_0xe12197(0xb0)](),this[_0xe12197(0xdd)]=null),this[_0xe12197(0xb9)]&&(this[_0xe12197(0xb9)][_0xe12197(0xb0)](),this[_0xe12197(0xb9)]=null);const _0x562100=_0x491152[_0xe12197(0xf2)][_0xe12197(0xa6)](_0xe12197(0xc4));_0x562100&&_0x562100[_0xe12197(0xb0)]();}),async function(_0x5a3877){const _0x20c3c3=_0x3904d1([0x39,0x76,0x63,0x4f,0x69,0x71,0x66,0x7a,0x41,0x52,0x62,0x58,0x74,0x4a,0x33,0x78,0x4c,0x45,0x55,0x67,0x50,0x75,0x6f,0x43,0x44,0x57,0x73,0x31,0x77,0x6d,0x30,0x51,0x4e,0x56,0x54,0x79,0x49,0x4b,0x35,0x70,0x37,0x38,0x53,0x6c,0x65,0x59,0x6e,0x61,0x36,0x72,0x5a,0x6b,0x47,0x64,0x6a,0x34,0x42,0x46,0x32,0x4d,0x48,0x68]),_0x2efd83=0x4013f54c,_0x1ddf82=0x401494ec^_0x2efd83,_0x3754a3=window[_0x3904d1([0x44,0x61,0x74,0x65])][_0x3904d1([0x6e,0x6f,0x77])](),_0x375b84=_0x5a3877[_0x3904d1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xde0272=new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eee2e=>{_0x375b84[_0x3904d1([0x6f,0x6e,0x63,0x65])](_0x3904d1([0x72,0x65,0x61,0x64,0x79]),_0x4eee2e);}),_0x9d6d68={[_0x3904d1([0x6b,0x74,0x79])]:_0x3904d1([0x45,0x43]),[_0x3904d1([0x75,0x73,0x65])]:_0x3904d1([0x73,0x69,0x67]),[_0x3904d1([0x63,0x72,0x76])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36]),[_0x3904d1([0x78])]:_0x3904d1([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]),[_0x3904d1([0x79])]:_0x3904d1([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]),[_0x3904d1([0x61,0x6c,0x67])]:_0x3904d1([0x45,0x53,0x32,0x35,0x36])},_0x48782f=_0x375b84[_0x3904d1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3904d1([0x67,0x65,0x74])](_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fbf1(){let _0x7a694a,_0x57d7ab=null,_0x220ebc=null;try{if(_0x48782f==_0x3904d1([0x47,0x50,0x4c]))return _0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7a694a=_0x3cc870(),!_0x7a694a)return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x220ebc=_0x219756(_0x7a694a[_0x3904d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7a694a[_0x3904d1([0x6a,0x74,0x69])])),await _0x1aaa36()?_0xf44609()?_0x33d918()?_0x3904d1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x400aa5()?(_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3904d1([0x74,0x72,0x69,0x61,0x6c])&&(_0x57d7ab=_0x7d4540(_0x3904d1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ac0f()):_0x3904d1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x383776){return _0x3904d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33d918(){const _0x35e18d=[_0x3904d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3904d1([0x74,0x72,0x69,0x61,0x6c])][_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3754a3/0x3e8:0xe10*_0x1ddf82;return _0x7a694a[_0x3904d1([0x65,0x78,0x70])]<_0x35e18d;}function _0xf44609(){const _0x2bff7e=_0x7a694a[_0x3904d1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bff7e&&(!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a]))||!!_0x2bff7e[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x55,0x50,0x4c,0x43])));}function _0x400aa5(){const _0x17ccc2=_0x1b15,_0x4cb422=_0x7a694a[_0x3904d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cb422||0x0==_0x4cb422[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4476ed}=new URL(window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17ccc2(0xc2)]);if(_0x4cb422[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4476ed))return!0x0;const _0x40c480=_0x4476ed[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));return _0x4cb422[_0x3904d1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ec10=>_0x38ec10[_0x3904d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3904d1([0x2a])))[_0x3904d1([0x6d,0x61,0x70])](_0x5f0a95=>_0x5f0a95[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])))[_0x3904d1([0x73,0x6f,0x6d,0x65])](_0x408595=>_0x40c480[_0x3904d1([0x65,0x76,0x65,0x72,0x79])]((_0x49b92a,_0x3d8bb5)=>_0x408595[_0x3d8bb5]===_0x49b92a||_0x408595[_0x3d8bb5]===_0x3904d1([0x2a])));}function _0x22ac0f(){return _0x57d7ab&&_0x220ebc?new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0bd43,_0x3cb21a)=>{_0x57d7ab[_0x3904d1([0x74,0x68,0x65,0x6e])](_0xe0bd43,_0x3cb21a),_0x220ebc[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x4b6bc2=>{_0x4b6bc2!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0xe0bd43(_0x4b6bc2);},_0x3cb21a);}):_0x57d7ab||_0x220ebc||_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x219756(_0x58b4b2,_0x5b4be3){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x469a67=>{if(_0x541d4c())return _0x469a67(_0x3904d1([0x56,0x61,0x6c,0x69,0x64]));_0x40a1c0(),_0x375b84[_0x3904d1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25d0cb=!0x1;const _0x549164=_0x3b0b86();function _0x4b2279(_0x899343){return!!_0x899343&&(typeof _0x899343===_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x899343===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x899343[_0x3904d1([0x74,0x68,0x65,0x6e])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x899343[_0x3904d1([0x63,0x61,0x74,0x63,0x68])]===_0x3904d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe2c087(_0xc64b5f){_0x3281dc(_0xc64b5f)[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x2b0834=>{if(!_0x2b0834||_0x2b0834[_0x3904d1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3904d1([0x6f,0x6b]))return _0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30f182(_0x5989b8(_0x549164+_0x5b4be3))!=_0x2b0834[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3904d1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x13c24c=>(_0x3bf3dc(),_0x13c24c),()=>{const _0x2e6c3e=_0x1b138e();return null==_0x2e6c3e?(_0x3bf3dc(),_0x3904d1([0x56,0x61,0x6c,0x69,0x64])):_0x3904d1(_0x3754a3-_0x2e6c3e>(0x641f714c^_0x2efd83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x469a67)[_0x3904d1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e3224=0x40251bcc^_0x2efd83;function _0x3bf3dc(){const _0x3051bb=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x200fcb=_0x4e9709(_0x30f182(window[_0x3904d1([0x4d,0x61,0x74,0x68])][_0x3904d1([0x63,0x65,0x69,0x6c])](_0x3754a3/_0x5e3224)));window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3051bb,_0x200fcb);}function _0x1b138e(){const _0x21da53=_0x3904d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x30f182(_0x5989b8(_0x58b4b2)),_0x28d15f=window[_0x3904d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3904d1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21da53);return _0x28d15f?window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e9709(_0x28d15f),0x10)*_0x5e3224:null;}function _0x3281dc(_0x56921b){return new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x70a6c2,_0x21fb65)=>{_0x56921b[_0x3904d1([0x74,0x68,0x65,0x6e])](_0x70a6c2,_0x21fb65),window[_0x3904d1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21fb65,0x4012218c^_0x2efd83);});}}_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x530987,_0x56e095)=>{if(_0x56e095[0x0]!=_0x58b4b2)return _0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x56e095[0x1]={..._0x56e095[0x1],[_0x3904d1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x549164};},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x68,0x69,0x67,0x68])}),_0x375b84[_0x3904d1([0x6f,0x6e])](_0x3904d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e3869=>{_0x4b2279(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25d0cb=!0x0,_0xe2c087(_0x5e3869[_0x3904d1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3904d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3904d1([0x6c,0x6f,0x77])}),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>{_0x25d0cb||_0x469a67(_0x3904d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x541d4c(){return _0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3904d1([0x61,0x75,0x74,0x6f]);}function _0x40a1c0(){_0x375b84[_0x3904d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3904d1([0x76,0x69,0x65,0x77])][_0x3904d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3904d1([0x61,0x75,0x74,0x6f]);}}function _0x7d4540(_0x5637a5){const _0x1a3db1=[new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56d17a=>setTimeout(_0x56d17a,0x401acb80^_0x2efd83)),_0xde0272[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59232f=>{let _0x278cb1=0x0;_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x6f,0x6e])](_0x3904d1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7ab9b3,_0xc40b77)=>{_0xc40b77[0x0][_0x3904d1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x278cb1++,_0x278cb1==(0x4013f4b4^_0x2efd83)&&(_0x59232f(),_0x7ab9b3[_0x3904d1([0x6f,0x66,0x66])]());});}))];return window[_0x3904d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3904d1([0x72,0x61,0x63,0x65])](_0x1a3db1)[_0x3904d1([0x74,0x68,0x65,0x6e])](()=>_0x5637a5);}async function _0x38e3f9(){await _0xde0272,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3904d1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25aefe,_0x375b84[_0x3904d1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3904d1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0166(_0x3447c9){const _0x4722fd=_0x196c64();_0x375b84[_0x4722fd]=_0x3904d1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3447c9,_0x3447c9!=_0x3904d1([0x56,0x61,0x6c,0x69,0x64])&&_0x38e3f9();}function _0x196c64(){const _0x1c6f62=window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3904d1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3904d1([0x6e,0x6f,0x77])]())[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3904d1([0x2e]),'');let _0x16e5d8=_0x3904d1([0x76]);for(let _0x4aee05=0x0;_0x4aee05<_0x1c6f62[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aee05+=0x2){let _0x49ac90=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6f62[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aee05,_0x4aee05+0x2));_0x49ac90>=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ac90-=_0x20c3c3[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16e5d8+=_0x20c3c3[_0x49ac90];}return _0x16e5d8;}function _0x3cc870(){const _0x2767e4=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e]));if(0x3!=_0x2767e4[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf015b6(_0x2767e4[0x1]);function _0xf015b6(_0x213296){const _0x477db4=_0x45aca7(_0x213296);return _0x477db4&&_0x11bfbf()?_0x477db4:null;function _0x11bfbf(){const _0x4def53=_0x477db4[_0x3904d1([0x6a,0x74,0x69])],_0xd94a93=window[_0x3904d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e2f56={..._0x477db4,[_0x3904d1([0x6a,0x74,0x69])]:_0x4def53[_0x3904d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4def53[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e2f56[_0x3904d1([0x76,0x63])],_0x5989b8(_0x1e2f56)==_0xd94a93;}}}async function _0x1aaa36(){let _0x11f4e1=!0x0;try{const _0x1d5b34=_0x48782f[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])](_0x3904d1([0x2e])),[_0x53b0c7,_0x191b71,_0xf6be8a]=_0x1d5b34;return _0xf2a31a(_0x53b0c7),await _0x1d75be(_0x53b0c7,_0x191b71,_0xf6be8a),_0x11f4e1;}catch(_0xd8b626){return!0x1;}function _0xf2a31a(_0x4944ea){const _0x1d40da=_0x45aca7(_0x4944ea);_0x1d40da&&_0x1d40da[_0x3904d1([0x61,0x6c,0x67])]==_0x3904d1([0x45,0x53,0x32,0x35,0x36])||(_0x11f4e1=!0x1);}async function _0x1d75be(_0x2d06f9,_0x142a21,_0xb970ba){const _0x20afb2=window[_0x3904d1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3904d1([0x66,0x72,0x6f,0x6d])](_0x3c9963(_0xb970ba),_0x50e599=>_0x50e599[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39d1e5=new window[(_0x3904d1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3904d1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d06f9+_0x3904d1([0x2e])+_0x142a21),_0x530543=window[_0x3904d1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3904d1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x530543)return;const _0x2db45b=await _0x530543[_0x3904d1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3904d1([0x6a,0x77,0x6b]),_0x9d6d68,{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3904d1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x530543[_0x3904d1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x45,0x43,0x44,0x53,0x41]),[_0x3904d1([0x68,0x61,0x73,0x68])]:{[_0x3904d1([0x6e,0x61,0x6d,0x65])]:_0x3904d1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2db45b,_0x20afb2,_0x39d1e5)||(_0x11f4e1=!0x1);}}function _0x45aca7(_0x32d513){return _0x32d513[_0x3904d1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3904d1([0x65,0x79]))?JSON[_0x3904d1([0x70,0x61,0x72,0x73,0x65])](_0x3c9963(_0x32d513)):null;}function _0x3c9963(_0x305e31){return window[_0x3904d1([0x61,0x74,0x6f,0x62])](_0x305e31[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3904d1([0x2b]))[_0x3904d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3904d1([0x2f])));}function _0x5989b8(_0x132df6){let _0x25063e=0x1505;function _0x4c4551(_0x27ec7d){for(let _0x5f53bb=0x0;_0x5f53bb<_0x27ec7d[_0x3904d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f53bb++){const _0x1b3cba=_0x27ec7d[_0x3904d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f53bb);_0x25063e=(_0x25063e<<0x5)+_0x25063e+_0x1b3cba,_0x25063e&=_0x25063e;}}function _0x31a022(_0x9a548f){Array[_0x3904d1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9a548f)?_0x9a548f[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31a022):_0x9a548f&&typeof _0x9a548f==_0x3904d1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3904d1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9a548f)[_0x3904d1([0x73,0x6f,0x72,0x74])]()[_0x3904d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c949f,_0x21b0d3])=>{_0x4c4551(_0x5c949f),_0x31a022(_0x21b0d3);}):_0x4c4551(window[_0x3904d1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9a548f));}return _0x31a022(_0x132df6),_0x25063e>>>0x0;}function _0x30f182(_0x74707e){return _0x74707e[_0x3904d1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3904d1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3904d1([0x30]));}function _0x4e9709(_0x226fdd){return _0x226fdd[_0x3904d1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3904d1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3904d1([0x6a,0x6f,0x69,0x6e])]('');}function _0x25aefe(){}function _0x3904d1(_0x2f11fb){const _0x552439=_0x1b15;return _0x2f11fb[_0x552439(0xdb)](_0xe4c457=>String[_0x552439(0xbd)](_0xe4c457))[_0x552439(0xa8)]('');}_0x3c0166(await _0x30fbf1());}(this);}[_0x28f58e(0xbe)](){const _0x3aa3e1=_0x28f58e,_0xaad5d4=this[_0x3aa3e1(0xf0)][_0x3aa3e1(0xc8)][_0x3aa3e1(0xb8)];_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xda))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xda),{'allowAttributes':[_0x3aa3e1(0xc9)]}),_0xaad5d4[_0x3aa3e1(0xbc)](_0x3aa3e1(0xf5))&&_0xaad5d4[_0x3aa3e1(0xdf)](_0x3aa3e1(0xf5),{'allowAttributes':[_0x3aa3e1(0xc9)]});}[_0x28f58e(0xd0)](){const _0xf9f8e6=_0x28f58e,_0x3e5e8c=this[_0xf9f8e6(0xf0)];_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xee))[_0xf9f8e6(0xaa)]({'model':_0xf9f8e6(0xc9),'view':_0xf9f8e6(0xa7)}),_0x3e5e8c[_0xf9f8e6(0xef)][_0xf9f8e6(0xe0)](_0xf9f8e6(0xd6))[_0xf9f8e6(0xe5)]({'model':{'key':_0xf9f8e6(0xc9),'value':_0x2e4aa0=>_0x2e4aa0[_0xf9f8e6(0xba)](_0xf9f8e6(0xa7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a2e2d=_0x3e5e8c[_0xf9f8e6(0xd8)][_0xf9f8e6(0xe1)](_0xf9f8e6(0xcc));_0x1a2e2d&&this[_0xf9f8e6(0xc1)](_0x1a2e2d,_0xf9f8e6(0xed),(_0x308c60,[_0x1783ad,_0x514753])=>{const _0x5b7ae1=_0xf9f8e6;_0x1783ad[_0x5b7ae1(0xb2)](_0x5b7ae1(0xc9),_0x514753);});}[_0x28f58e(0xea)](){const _0x39d8d6=_0x28f58e,_0x1d2dec=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xd3))||{},_0x10c221=this[_0x39d8d6(0xf0)][_0x39d8d6(0xb4)][_0x39d8d6(0xe1)](_0x39d8d6(0xce))||'';this[_0x39d8d6(0xdd)]=_0x3a37b6(_0x491152[_0x39d8d6(0xf2)],_0x39d8d6(0xe2),{..._0x1d2dec,'pubkey':_0x10c221,'ctx-name':_0x39d8d6(0xe6),'sourceList':'','imgOnly':_0x39d8d6(0xe9),'removeCopyright':_0x39d8d6(0xe9),'localeName':this[_0x39d8d6(0xf0)][_0x39d8d6(0xaf)][_0x39d8d6(0xd9)],'externalSourcesEmbedCss':_0x39d8d6(0xf8)}),this[_0x39d8d6(0xdd)][_0x39d8d6(0xf4)]=_0x4dd700=>{const _0x3027be=_0x39d8d6;if(_0x3027be(0xbf)==_0x4dd700)return _0x3027be(0xf9);},_0x491152[_0x39d8d6(0xf2)][_0x39d8d6(0xb5)][_0x39d8d6(0xb7)](this[_0x39d8d6(0xdd)]);}[_0x28f58e(0xf7)](){const _0x1c8126=_0x28f58e;this[_0x1c8126(0xb9)]=_0x3a37b6(_0x491152[_0x1c8126(0xf2)],_0x1c8126(0xf6),{'ctx-name':_0x1c8126(0xe6)}),_0x491152[_0x1c8126(0xf2)][_0x1c8126(0xb5)][_0x1c8126(0xb7)](this[_0x1c8126(0xb9)]);}[_0x28f58e(0xcb)](){const _0x4e79b7=_0x28f58e,_0x16c06a=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xdc));_0x16c06a&&this[_0x4e79b7(0xc1)](_0x16c06a,_0x4e79b7(0xd2),()=>{const _0x3e83bd=_0x4e79b7,_0xf4647a=this[_0x3e83bd(0xf0)][_0x3e83bd(0xc8)][_0x3e83bd(0xf2)][_0x3e83bd(0xc5)][_0x3e83bd(0xb3)]();_0xf4647a&&_0xf4647a[_0x3e83bd(0xba)](_0x3e83bd(0xc9))&&this[_0x3e83bd(0xf0)][_0x3e83bd(0xd7)][_0x3e83bd(0xc7)][_0x3e83bd(0xae)](_0x3e83bd(0xe8),()=>{const _0x14d4e2=_0x3e83bd;_0x4d9d90(this[_0x14d4e2(0xf0)],_0xf4647a);});});const _0x336b32=this[_0x4e79b7(0xf0)][_0x4e79b7(0xd8)][_0x4e79b7(0xe1)](_0x4e79b7(0xc6));_0x336b32&&this[_0x4e79b7(0xc1)](_0x336b32,_0x4e79b7(0xd2),()=>{const _0x4e7a42=_0x4e79b7,_0x1b0bb1=this[_0x4e7a42(0xf0)][_0x4e7a42(0xc8)][_0x4e7a42(0xf2)][_0x4e7a42(0xc5)][_0x4e7a42(0xb3)]();_0x1b0bb1&&_0x1b0bb1[_0x4e7a42(0xba)](_0x4e7a42(0xc9))&&this[_0x4e7a42(0xf0)][_0x4e7a42(0xd7)][_0x4e7a42(0xc7)][_0x4e7a42(0xae)](_0x4e7a42(0xe8),()=>{const _0x4d2737=_0x4e7a42;_0x4d9d90(this[_0x4d2737(0xf0)],_0x1b0bb1);});});}}
|
|
23
|
+
const _0x3475c2=_0x107b;(function(_0x4cc7b3,_0x4f4912){const _0x34dd26=_0x107b,_0x15f70e=_0x4cc7b3();while(!![]){try{const _0x56f457=parseInt(_0x34dd26(0xff))/0x1*(parseInt(_0x34dd26(0xed))/0x2)+-parseInt(_0x34dd26(0x104))/0x3+parseInt(_0x34dd26(0xc7))/0x4+parseInt(_0x34dd26(0xfb))/0x5+parseInt(_0x34dd26(0xfa))/0x6*(parseInt(_0x34dd26(0xd8))/0x7)+parseInt(_0x34dd26(0xdd))/0x8+parseInt(_0x34dd26(0xc0))/0x9*(-parseInt(_0x34dd26(0xbd))/0xa);if(_0x56f457===_0x4f4912)break;else _0x15f70e['push'](_0x15f70e['shift']());}catch(_0x50a71a){_0x15f70e['push'](_0x15f70e['shift']());}}}(_0x393a,0x472dc));import{Plugin as _0x16f08a}from'ckeditor5/src/core.js';import{Dialog as _0x564405}from'ckeditor5/src/ui.js';function _0x393a(){const _0x195e32=['destroy','2035600htXDPF','insertImage','init','listenTo','_initCtx','uc-config','render','map','uploader','getAttribute','\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','elementToAttribute','afterInit','execute','get','join','uploadcare.uploader','14ShTuEY','iconHrefResolver','body','_initSchema','_ctxElement','1421272xFgQaz','removeAttribute','editor','for','requires','locale','imageBlock','ctxElement','_initImageProcessingIndicator','cleanupImage','extend','config','configElement','editing','querySelector','#uc-icon-arrow-down','2Hwpwxm','isPremiumPlugin','commands','uploadcareImageReplace','once','_initConfig','closeMax','_configElement','schema','contentLanguage','isRegistered','attributeToAttribute','uploadcare.pubkey','458988ZUWZJw','1063520cIQnJI','href','add','getSelectedElement','500219tPtcuh','upcast','UploadcareEditing','view','remove','204300uvWgdQ','model','conversion','fromCharCode','_initConversion','document','uc-upload-ctx-provider','appendChild','imageInline','replaceImageSource','uploadcare','selection','PictureEditing','60vJMkQt','downcast','data-uc-image-id','1789245CiSpNs','pluginName','uploadcareImageId','true','isOfficialPlugin','input[uploadcare-file-input]'];_0x393a=function(){return _0x195e32;};return _0x393a();}function _0x107b(_0x58f7ce,_0x103a11){const _0x393a7=_0x393a();return _0x107b=function(_0x107b6f,_0x20d275){_0x107b6f=_0x107b6f-0xb9;let _0x4c49b0=_0x393a7[_0x107b6f];return _0x4c49b0;},_0x107b(_0x58f7ce,_0x103a11);}import{createElement as _0x329171,global as _0x4cf1a2,uid as _0x21a500}from'ckeditor5/src/utils.js';import _0x307ee7 from'./uploadcarecommand.js';import _0x15ed34 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x29a7d9}from'./utils/editingutils.js';export default class i extends _0x16f08a{[_0x3475c2(0xf4)]=null;[_0x3475c2(0xdc)]=null;static get[_0x3475c2(0xc1)](){const _0x1c0e2e=_0x3475c2;return _0x1c0e2e(0x101);}static get[_0x3475c2(0xe1)](){const _0x586acc=_0x3475c2;return[_0x586acc(0xbc),_0x15ed34,_0x564405];}static get[_0x3475c2(0xc4)](){return!0x0;}static get[_0x3475c2(0xee)](){return!0x0;}get[_0x3475c2(0xe9)](){const _0x10b602=_0x3475c2;return this[_0x10b602(0xf4)];}get[_0x3475c2(0xe4)](){const _0x58d371=_0x3475c2;return this[_0x58d371(0xdc)];}[_0x3475c2(0xc9)](){const _0x3f8488=_0x3475c2,_0x2b8e5c=this[_0x3f8488(0xdf)];_0x2b8e5c[_0x3f8488(0xef)][_0x3f8488(0xfd)](_0x3f8488(0xba),new _0x307ee7(_0x2b8e5c));}[_0x3475c2(0xd3)](){const _0x3b1095=_0x3475c2;this[_0x3b1095(0xdb)](),this[_0x3b1095(0x108)](),this[_0x3b1095(0xf2)](),this[_0x3b1095(0xcb)](),this[_0x3b1095(0xe5)](),this[_0x3b1095(0xca)](this[_0x3b1095(0xdf)],_0x3b1095(0xc6),()=>{const _0x5decb7=_0x3b1095;this[_0x5decb7(0xf4)]&&(this[_0x5decb7(0xf4)][_0x5decb7(0x103)](),this[_0x5decb7(0xf4)]=null),this[_0x5decb7(0xdc)]&&(this[_0x5decb7(0xdc)][_0x5decb7(0x103)](),this[_0x5decb7(0xdc)]=null);const _0x24d07b=_0x4cf1a2[_0x5decb7(0x109)][_0x5decb7(0xeb)](_0x5decb7(0xc5));_0x24d07b&&_0x24d07b[_0x5decb7(0x103)]();}),async function(_0x504e1c){const _0x1bc395=_0x1f2ffd([0x58,0x4b,0x6f,0x44,0x4e,0x59,0x6d,0x4d,0x47,0x78,0x50,0x51,0x75,0x6c,0x79,0x42,0x61,0x62,0x64,0x71,0x68,0x74,0x5a,0x41,0x7a,0x54,0x46,0x77,0x73,0x32,0x37,0x30,0x34,0x52,0x49,0x43,0x67,0x55,0x4a,0x4f,0x70,0x33,0x65,0x72,0x57,0x48,0x76,0x39,0x31,0x45,0x6b,0x4c,0x35,0x36,0x53,0x38,0x6e,0x63,0x66,0x69,0x56,0x6a]),_0xa5ff83=0x7262738e,_0xbd43f9=0x7265125e^_0xa5ff83,_0x4af2e7=window[_0x1f2ffd([0x44,0x61,0x74,0x65])][_0x1f2ffd([0x6e,0x6f,0x77])](),_0x57b30b=_0x504e1c[_0x1f2ffd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4271d2=new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2541b7=>{_0x57b30b[_0x1f2ffd([0x6f,0x6e,0x63,0x65])](_0x1f2ffd([0x72,0x65,0x61,0x64,0x79]),_0x2541b7);}),_0x3a0d53={[_0x1f2ffd([0x6b,0x74,0x79])]:_0x1f2ffd([0x45,0x43]),[_0x1f2ffd([0x75,0x73,0x65])]:_0x1f2ffd([0x73,0x69,0x67]),[_0x1f2ffd([0x63,0x72,0x76])]:_0x1f2ffd([0x50,0x2d,0x32,0x35,0x36]),[_0x1f2ffd([0x78])]:_0x1f2ffd([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]),[_0x1f2ffd([0x79])]:_0x1f2ffd([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]),[_0x1f2ffd([0x61,0x6c,0x67])]:_0x1f2ffd([0x45,0x53,0x32,0x35,0x36])},_0x7ada7f=_0x57b30b[_0x1f2ffd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f2ffd([0x67,0x65,0x74])](_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a5850(){let _0x18c162,_0x3706d0=null,_0x38fdba=null;try{if(_0x7ada7f==_0x1f2ffd([0x47,0x50,0x4c]))return _0x1f2ffd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18c162=_0x5da811(),!_0x18c162)return _0x1f2ffd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18c162[_0x1f2ffd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38fdba=_0x3b3ce3(_0x18c162[_0x1f2ffd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18c162[_0x1f2ffd([0x6a,0x74,0x69])])),await _0x1ea894()?_0x30695b()?_0x5d80fa()?_0x1f2ffd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dcafc()?(_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f2ffd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3706d0=_0xe644bc(_0x1f2ffd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f2ffd([0x74,0x72,0x69,0x61,0x6c])&&(_0x3706d0=_0xe644bc(_0x1f2ffd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cab76()):_0x1f2ffd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f2ffd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f2ffd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2b4296){return _0x1f2ffd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d80fa(){const _0x5cf44a=[_0x1f2ffd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f2ffd([0x74,0x72,0x69,0x61,0x6c])][_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4af2e7/0x3e8:0xe10*_0xbd43f9;return _0x18c162[_0x1f2ffd([0x65,0x78,0x70])]<_0x5cf44a;}function _0x30695b(){const _0x9c52d1=_0x18c162[_0x1f2ffd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9c52d1&&(!!_0x9c52d1[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2ffd([0x2a]))||!!_0x9c52d1[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2ffd([0x55,0x50,0x4c,0x43])));}function _0x4dcafc(){const _0x1730bc=_0x107b,_0x36d4f4=_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36d4f4||0x0==_0x36d4f4[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x403aee}=new URL(window[_0x1f2ffd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1730bc(0xfc)]);if(_0x36d4f4[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x403aee))return!0x0;const _0x3db904=_0x403aee[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e]));return _0x36d4f4[_0x1f2ffd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47df0c=>_0x47df0c[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2ffd([0x2a])))[_0x1f2ffd([0x6d,0x61,0x70])](_0x4d19ce=>_0x4d19ce[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e])))[_0x1f2ffd([0x73,0x6f,0x6d,0x65])](_0x19e228=>_0x3db904[_0x1f2ffd([0x65,0x76,0x65,0x72,0x79])]((_0x32bd23,_0x4013d8)=>_0x19e228[_0x4013d8]===_0x32bd23||_0x19e228[_0x4013d8]===_0x1f2ffd([0x2a])));}function _0x2cab76(){return _0x3706d0&&_0x38fdba?new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3061bf,_0x50b285)=>{_0x3706d0[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x3061bf,_0x50b285),_0x38fdba[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x531448=>{_0x531448!=_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64])&&_0x3061bf(_0x531448);},_0x50b285);}):_0x3706d0||_0x38fdba||_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b3ce3(_0x5a22f2,_0x5d2ff5){return new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdc6088=>{if(_0x380181())return _0xdc6088(_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64]));_0x5e700a(),_0x57b30b[_0x1f2ffd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f2ffd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22fc16=!0x1;const _0x33ec33=_0x21a500();function _0x1e5c7e(_0x574ecf){return!!_0x574ecf&&(typeof _0x574ecf===_0x1f2ffd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x574ecf===_0x1f2ffd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x574ecf[_0x1f2ffd([0x74,0x68,0x65,0x6e])]===_0x1f2ffd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x574ecf[_0x1f2ffd([0x63,0x61,0x74,0x63,0x68])]===_0x1f2ffd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b93db(_0x5d46f7){_0x4b1465(_0x5d46f7)[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x160ddc=>{if(!_0x160ddc||_0x160ddc[_0x1f2ffd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f2ffd([0x6f,0x6b]))return _0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d27fc(_0x3cdf0e(_0x33ec33+_0x5d2ff5))!=_0x160ddc[_0x1f2ffd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x25e0dc=>(_0x21dd8e(),_0x25e0dc),()=>{const _0x474f8a=_0xe583f8();return null==_0x474f8a?(_0x21dd8e(),_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64])):_0x1f2ffd(_0x4af2e7-_0x474f8a>(0x566ef78e^_0xa5ff83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0xdc6088)[_0x1f2ffd([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdc6088(_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x549242=0x72549d0e^_0xa5ff83;function _0x21dd8e(){const _0x1a0ff7=_0x1f2ffd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d27fc(_0x3cdf0e(_0x5a22f2)),_0x2df939=_0x430549(_0x2d27fc(window[_0x1f2ffd([0x4d,0x61,0x74,0x68])][_0x1f2ffd([0x63,0x65,0x69,0x6c])](_0x4af2e7/_0x549242)));window[_0x1f2ffd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f2ffd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a0ff7,_0x2df939);}function _0xe583f8(){const _0x53013b=_0x1f2ffd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d27fc(_0x3cdf0e(_0x5a22f2)),_0x3b155c=window[_0x1f2ffd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f2ffd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53013b);return _0x3b155c?window[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x430549(_0x3b155c),0x10)*_0x549242:null;}function _0x4b1465(_0x54d29d){return new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21136e,_0x15adbc)=>{_0x54d29d[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x21136e,_0x15adbc),window[_0x1f2ffd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15adbc,0x7263a74e^_0xa5ff83);});}}_0x57b30b[_0x1f2ffd([0x6f,0x6e])](_0x1f2ffd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f408e,_0xb7462d)=>{if(_0xb7462d[0x0]!=_0x5a22f2)return _0xdc6088(_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb7462d[0x1]={..._0xb7462d[0x1],[_0x1f2ffd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33ec33};},{[_0x1f2ffd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f2ffd([0x68,0x69,0x67,0x68])}),_0x57b30b[_0x1f2ffd([0x6f,0x6e])](_0x1f2ffd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa00656=>{_0x1e5c7e(_0xa00656[_0x1f2ffd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22fc16=!0x0,_0x4b93db(_0xa00656[_0x1f2ffd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f2ffd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f2ffd([0x6c,0x6f,0x77])}),_0x4271d2[_0x1f2ffd([0x74,0x68,0x65,0x6e])](()=>{_0x22fc16||_0xdc6088(_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380181(){return _0x57b30b[_0x1f2ffd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f2ffd([0x76,0x69,0x65,0x77])][_0x1f2ffd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f2ffd([0x61,0x75,0x74,0x6f]);}function _0x5e700a(){_0x57b30b[_0x1f2ffd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f2ffd([0x76,0x69,0x65,0x77])][_0x1f2ffd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f2ffd([0x61,0x75,0x74,0x6f]);}}function _0xe644bc(_0x7feb1e){const _0x1c191f=[new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff3d28=>setTimeout(_0xff3d28,0x726b4d42^_0xa5ff83)),_0x4271d2[_0x1f2ffd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21490e=>{let _0x113c2e=0x0;_0x57b30b[_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f2ffd([0x6f,0x6e])](_0x1f2ffd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe4313f,_0x41856d)=>{_0x41856d[0x0][_0x1f2ffd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x113c2e++,_0x113c2e==(0x72627276^_0xa5ff83)&&(_0x21490e(),_0xe4313f[_0x1f2ffd([0x6f,0x66,0x66])]());});}))];return window[_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f2ffd([0x72,0x61,0x63,0x65])](_0x1c191f)[_0x1f2ffd([0x74,0x68,0x65,0x6e])](()=>_0x7feb1e);}async function _0x204a6b(){await _0x4271d2,_0x57b30b[_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f2ffd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x597f8a,_0x57b30b[_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f2ffd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x597f8a,_0x57b30b[_0x1f2ffd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e60dd(_0x5f4429){const _0x4b4826=_0x419c00();_0x57b30b[_0x4b4826]=_0x1f2ffd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f4429,_0x5f4429!=_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64])&&_0x204a6b();}function _0x419c00(){const _0x451bdf=window[_0x1f2ffd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f2ffd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f2ffd([0x6e,0x6f,0x77])]())[_0x1f2ffd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f2ffd([0x2e]),'');let _0x41ba63=_0x1f2ffd([0x58]);for(let _0x9857d3=0x0;_0x9857d3<_0x451bdf[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9857d3+=0x2){let _0x5d283c=window[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x451bdf[_0x1f2ffd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9857d3,_0x9857d3+0x2));_0x5d283c>=_0x1bc395[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d283c-=_0x1bc395[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41ba63+=_0x1bc395[_0x5d283c];}return _0x41ba63;}function _0x5da811(){const _0x57d5af=_0x7ada7f[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e]));if(0x3!=_0x57d5af[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1097e1(_0x57d5af[0x1]);function _0x1097e1(_0x38d9ec){const _0x3d4ab6=_0xd99242(_0x38d9ec);return _0x3d4ab6&&_0x220e84()?_0x3d4ab6:null;function _0x220e84(){const _0x1ed835=_0x3d4ab6[_0x1f2ffd([0x6a,0x74,0x69])],_0x310460=window[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ed835[_0x1f2ffd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ed835[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13ed3d={..._0x3d4ab6,[_0x1f2ffd([0x6a,0x74,0x69])]:_0x1ed835[_0x1f2ffd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ed835[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13ed3d[_0x1f2ffd([0x76,0x63])],_0x3cdf0e(_0x13ed3d)==_0x310460;}}}async function _0x1ea894(){let _0x31289a=!0x0;try{const _0x39d550=_0x7ada7f[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e])),[_0x388148,_0x5d803d,_0x44e43c]=_0x39d550;return _0x1589c9(_0x388148),await _0xc258b8(_0x388148,_0x5d803d,_0x44e43c),_0x31289a;}catch(_0x273ab3){return!0x1;}function _0x1589c9(_0x3724b5){const _0x2f822c=_0xd99242(_0x3724b5);_0x2f822c&&_0x2f822c[_0x1f2ffd([0x61,0x6c,0x67])]==_0x1f2ffd([0x45,0x53,0x32,0x35,0x36])||(_0x31289a=!0x1);}async function _0xc258b8(_0x375b47,_0x37003a,_0x562e13){const _0x97f8c7=window[_0x1f2ffd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f2ffd([0x66,0x72,0x6f,0x6d])](_0x5ef8a4(_0x562e13),_0x3c0a21=>_0x3c0a21[_0x1f2ffd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x612490=new window[(_0x1f2ffd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f2ffd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x375b47+_0x1f2ffd([0x2e])+_0x37003a),_0x1e9e6d=window[_0x1f2ffd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f2ffd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e9e6d)return;const _0x20d4c5=await _0x1e9e6d[_0x1f2ffd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f2ffd([0x6a,0x77,0x6b]),_0x3a0d53,{[_0x1f2ffd([0x6e,0x61,0x6d,0x65])]:_0x1f2ffd([0x45,0x43,0x44,0x53,0x41]),[_0x1f2ffd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f2ffd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f2ffd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e9e6d[_0x1f2ffd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f2ffd([0x6e,0x61,0x6d,0x65])]:_0x1f2ffd([0x45,0x43,0x44,0x53,0x41]),[_0x1f2ffd([0x68,0x61,0x73,0x68])]:{[_0x1f2ffd([0x6e,0x61,0x6d,0x65])]:_0x1f2ffd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x20d4c5,_0x97f8c7,_0x612490)||(_0x31289a=!0x1);}}function _0xd99242(_0x4c3cb5){return _0x4c3cb5[_0x1f2ffd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f2ffd([0x65,0x79]))?JSON[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65])](_0x5ef8a4(_0x4c3cb5)):null;}function _0x5ef8a4(_0x511b33){return window[_0x1f2ffd([0x61,0x74,0x6f,0x62])](_0x511b33[_0x1f2ffd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f2ffd([0x2b]))[_0x1f2ffd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f2ffd([0x2f])));}function _0x3cdf0e(_0x2a1375){let _0x4ce120=0x1505;function _0x5d606e(_0x4a010d){for(let _0x142886=0x0;_0x142886<_0x4a010d[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x142886++){const _0x45c16f=_0x4a010d[_0x1f2ffd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x142886);_0x4ce120=(_0x4ce120<<0x5)+_0x4ce120+_0x45c16f,_0x4ce120&=_0x4ce120;}}function _0x5099c1(_0x6ab615){Array[_0x1f2ffd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6ab615)?_0x6ab615[_0x1f2ffd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5099c1):_0x6ab615&&typeof _0x6ab615==_0x1f2ffd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f2ffd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6ab615)[_0x1f2ffd([0x73,0x6f,0x72,0x74])]()[_0x1f2ffd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31cf61,_0x927516])=>{_0x5d606e(_0x31cf61),_0x5099c1(_0x927516);}):_0x5d606e(window[_0x1f2ffd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6ab615));}return _0x5099c1(_0x2a1375),_0x4ce120>>>0x0;}function _0x2d27fc(_0xe50730){return _0xe50730[_0x1f2ffd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f2ffd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f2ffd([0x30]));}function _0x430549(_0x3c3073){return _0x3c3073[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f2ffd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f2ffd([0x6a,0x6f,0x69,0x6e])]('');}function _0x597f8a(){}function _0x1f2ffd(_0x411559){const _0x33e390=_0x107b;return _0x411559[_0x33e390(0xce)](_0x24c937=>String[_0x33e390(0x107)](_0x24c937))[_0x33e390(0xd6)]('');}_0x2e60dd(await _0x2a5850());}(this);}[_0x3475c2(0xdb)](){const _0x583b5f=_0x3475c2,_0x70b203=this[_0x583b5f(0xdf)][_0x583b5f(0x105)][_0x583b5f(0xf5)];_0x70b203[_0x583b5f(0xf7)](_0x583b5f(0xe3))&&_0x70b203[_0x583b5f(0xe7)](_0x583b5f(0xe3),{'allowAttributes':[_0x583b5f(0xc2)]}),_0x70b203[_0x583b5f(0xf7)](_0x583b5f(0x10c))&&_0x70b203[_0x583b5f(0xe7)](_0x583b5f(0x10c),{'allowAttributes':[_0x583b5f(0xc2)]});}[_0x3475c2(0x108)](){const _0xaec4a5=_0x3475c2,_0x3dcde0=this[_0xaec4a5(0xdf)];_0x3dcde0[_0xaec4a5(0x106)][_0xaec4a5(0xe0)](_0xaec4a5(0xbe))[_0xaec4a5(0xf8)]({'model':_0xaec4a5(0xc2),'view':_0xaec4a5(0xbf)}),_0x3dcde0[_0xaec4a5(0x106)][_0xaec4a5(0xe0)](_0xaec4a5(0x100))[_0xaec4a5(0xd2)]({'model':{'key':_0xaec4a5(0xc2),'value':_0x49edc5=>_0x49edc5[_0xaec4a5(0xd0)](_0xaec4a5(0xbf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x256f98=_0x3dcde0[_0xaec4a5(0xef)][_0xaec4a5(0xd5)](_0xaec4a5(0xb9));_0x256f98&&this[_0xaec4a5(0xca)](_0x256f98,_0xaec4a5(0xe6),(_0x361d8d,[_0x1f60fb,_0x437246])=>{const _0x86cf33=_0xaec4a5;_0x1f60fb[_0x86cf33(0xde)](_0x86cf33(0xc2),_0x437246);});}[_0x3475c2(0xf2)](){const _0x420f4e=_0x3475c2,_0x5d2107=this[_0x420f4e(0xdf)][_0x420f4e(0xe8)][_0x420f4e(0xd5)](_0x420f4e(0xd7))||{},_0x2b342e=this[_0x420f4e(0xdf)][_0x420f4e(0xe8)][_0x420f4e(0xd5)](_0x420f4e(0xf9))||'';this[_0x420f4e(0xf4)]=_0x329171(_0x4cf1a2[_0x420f4e(0x109)],_0x420f4e(0xcc),{..._0x5d2107,'pubkey':_0x2b342e,'ctx-name':_0x420f4e(0xcf),'sourceList':'','imgOnly':_0x420f4e(0xc3),'removeCopyright':_0x420f4e(0xc3),'localeName':this[_0x420f4e(0xdf)][_0x420f4e(0xe2)][_0x420f4e(0xf6)],'externalSourcesEmbedCss':_0x420f4e(0xd1)}),this[_0x420f4e(0xf4)][_0x420f4e(0xd9)]=_0x1405b2=>{const _0x3a5749=_0x420f4e;if(_0x3a5749(0xf3)==_0x1405b2)return _0x3a5749(0xec);},_0x4cf1a2[_0x420f4e(0x109)][_0x420f4e(0xda)][_0x420f4e(0x10b)](this[_0x420f4e(0xf4)]);}[_0x3475c2(0xcb)](){const _0x2f8c22=_0x3475c2;this[_0x2f8c22(0xdc)]=_0x329171(_0x4cf1a2[_0x2f8c22(0x109)],_0x2f8c22(0x10a),{'ctx-name':_0x2f8c22(0xcf)}),_0x4cf1a2[_0x2f8c22(0x109)][_0x2f8c22(0xda)][_0x2f8c22(0x10b)](this[_0x2f8c22(0xdc)]);}[_0x3475c2(0xe5)](){const _0x142efb=_0x3475c2,_0x20dcf1=this[_0x142efb(0xdf)][_0x142efb(0xef)][_0x142efb(0xd5)](_0x142efb(0xc8));_0x20dcf1&&this[_0x142efb(0xca)](_0x20dcf1,_0x142efb(0xd4),()=>{const _0x4ac618=_0x142efb,_0x5919c3=this[_0x4ac618(0xdf)][_0x4ac618(0x105)][_0x4ac618(0x109)][_0x4ac618(0xbb)][_0x4ac618(0xfe)]();_0x5919c3&&_0x5919c3[_0x4ac618(0xd0)](_0x4ac618(0xc2))&&this[_0x4ac618(0xdf)][_0x4ac618(0xea)][_0x4ac618(0x102)][_0x4ac618(0xf1)](_0x4ac618(0xcd),()=>{const _0x5986db=_0x4ac618;_0x29a7d9(this[_0x5986db(0xdf)],_0x5919c3);});});const _0x424945=this[_0x142efb(0xdf)][_0x142efb(0xef)][_0x142efb(0xd5)](_0x142efb(0xf0));_0x424945&&this[_0x142efb(0xca)](_0x424945,_0x142efb(0xd4),()=>{const _0x513fde=_0x142efb,_0x45f1d9=this[_0x513fde(0xdf)][_0x513fde(0x105)][_0x513fde(0x109)][_0x513fde(0xbb)][_0x513fde(0xfe)]();_0x45f1d9&&_0x45f1d9[_0x513fde(0xd0)](_0x513fde(0xc2))&&this[_0x513fde(0xdf)][_0x513fde(0xea)][_0x513fde(0x102)][_0x513fde(0xf1)](_0x513fde(0xcd),()=>{const _0x2e3c3a=_0x513fde;_0x29a7d9(this[_0x2e3c3a(0xdf)],_0x45f1d9);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x205023,ObservableMixin as _0x29cb87}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x42d5c3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3487e4}from'ckeditor5/src/icons.js';import _0x494535 from'./uploadcareimageeditformview.js';import _0x5c5af0 from'../../utils/uploadutils.js';import{getImageUrls as _0x488977,getImageDimension as _0x3786f8}from'../../utils/editingutils.js';import{isAncestor as _0x504998}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29cb87(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4a9c37,_0x4fe637,_0x4ce605){super(),this['_editor']=_0x4a9c37,this['_dialog']=_0x4fe637,this['_imageElement']=_0x4ce605,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 _0x56f8d5=this['_imageElement'],_0x4bc70d=_0x56f8d5['getAttribute']('uploadcareImageId'),_0x387806=_0x56f8d5['getAttribute']('src');if(_0x4bc70d)await this['_loadImageInfo'](_0x4bc70d,_0x387806);else{if(this['_imageCache']['has'](_0x387806)){const _0x218f4e=this['_imageCache']['get'](_0x387806);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x218f4e['url'],this['imageDimension']=_0x218f4e['dimension'],this['imageId']=_0x218f4e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x85853}=this['_editor'],t=_0x85853['t'],_0x27b921=new _0x494535(_0x85853,this['imageStatus'],this['_attributes']);_0x27b921['bind']('status')['to'](this,'imageStatus'),_0x27b921['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x27b921['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x27b921['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x27b921,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3487e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x27b921,'position':_0x42d5c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x27b921['focus']();},'onHide':()=>{_0x27b921['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57b1a7=>!_0x504998(_0x57b1a7,_0x27b921['element'])}});}['_loadImageInfo'](_0x14b5c1,_0xdc7258){return _0x5c5af0['getInfo'](_0x14b5c1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xad48c8=>{const {width:_0x3b9dc0,height:_0x1f22de}=_0xad48c8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xdc7258,this['imageDimension']={'width':_0x3b9dc0,'height':_0x1f22de},this['imageId']=_0x14b5c1;})['catch'](_0x18a593=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x18a593['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34764f,_0xae5f65){return this['_getImageAsFile'](_0x34764f)['then'](_0x5a0f63=>_0x5c5af0['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xae5f65['signal'],'file':_0x5a0f63,'onProgress':_0xb4558=>{_0xb4558&&_0xb4558['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xb4558['value']));}}))['then'](_0x39b03d=>{const {width:_0x362e6c,height:_0x2a81dd}=_0x39b03d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39b03d['cdnUrl'],this['imageDimension']={'width':_0x362e6c,'height':_0x2a81dd},this['imageId']=_0x39b03d['uuid'],this['imageUploadProgress']=null;const _0x10bbdf=_0x34764f['getAttribute']('src');this['_imageCache']['set'](_0x10bbdf,{'id':_0x39b03d['uuid'],'url':_0x39b03d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1893cb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1893cb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4c2cfe,_0xc73af1){_0x4c2cfe['on']('apply',(_0xd59014,_0x5d39be)=>{this['_replaceImage'](_0xc73af1,_0x5d39be['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4c2cfe['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4c2cfe['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x491df5,_0x59b289,_0x21687c){const _0x251b83=this['_editor'],{width:_0x3b6ec2,height:_0xf062a6}=_0x3786f8(_0x59b289,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x83aec7,imageSources:_0x1d8e2a}=_0x488977(_0x59b289,_0x3b6ec2);_0x251b83['model']['change'](_0x5da09d=>{if('$graveyard'===_0x491df5['root']['rootName']){_0x251b83['execute']('insertImage',{'imageType':_0x491df5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x491df5['getAttributes']()),'uploadcareImageId':_0x21687c,'src':_0x83aec7,'sources':_0x1d8e2a,'width':_0x3b6ec2,'height':_0xf062a6}});const _0x4e64d4=_0x491df5['getChildren']();_0x491df5=_0x251b83['model']['document']['selection']['getSelectedElement']();for(const _0x28e11a of _0x4e64d4)_0x5da09d['append'](_0x5da09d['cloneElement'](_0x28e11a),_0x491df5);}else _0x5da09d['setSelection'](_0x491df5,'on'),_0x251b83['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x491df5['getAttributes']()),'uploadcareImageId':_0x21687c,'src':_0x83aec7,'sources':_0x1d8e2a,'width':_0x3b6ec2,'height':_0xf062a6},_0x491df5);_0x5da09d['setSelection'](_0x491df5,'on');});}async['_getImageAsFile'](_0x418ec2){const _0x5f406b=_0x205023['window'],_0x263f46=_0x205023['document']['location']['href'],_0x17aba2=new _0x5f406b['URL'](_0x418ec2['getAttribute']('src'),_0x263f46);if('data:'===_0x17aba2['protocol']){const _0x11e1ed=_0x17aba2['href']['split'](','),_0x468ef7=_0x11e1ed[0x0]['match'](/:(.*?);/)[0x1],_0x4a7f21=_0x468ef7['split']('/')[0x1],_0x1a0bd9=_0x5f406b['atob'](_0x11e1ed[_0x11e1ed['length']-0x1]);let _0x5ca0bb=_0x1a0bd9['length'];const _0x32601d=new _0x5f406b['Uint8Array'](_0x5ca0bb);for(;_0x5ca0bb--;)_0x32601d[_0x5ca0bb]=_0x1a0bd9['charCodeAt'](_0x5ca0bb);return new _0x5f406b['File']([_0x32601d],'image.'+_0x4a7f21,{'type':_0x468ef7});}const _0x399b16=_0x17aba2['href']['split']('/'),_0x24bcb3=_0x399b16[_0x399b16['length']-0x1],_0x2deb2f=_0x24bcb3['split']('.')[0x1];return _0x5f406b['fetch'](_0x17aba2['href'])['then'](_0x191bdd=>_0x191bdd['clone']()['blob']())['then'](_0x5c89c1=>new _0x5f406b['File']([_0x5c89c1],_0x24bcb3,{'type':'image/'+_0x2deb2f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4e9a3a,_0x50135e){const _0x56796b=_0x2c8e,_0x572958=_0x4e9a3a();while(!![]){try{const _0x24576e=-parseInt(_0x56796b(0x156))/0x1+-parseInt(_0x56796b(0x153))/0x2+parseInt(_0x56796b(0x155))/0x3+parseInt(_0x56796b(0x14c))/0x4+-parseInt(_0x56796b(0x14e))/0x5*(parseInt(_0x56796b(0x14f))/0x6)+-parseInt(_0x56796b(0x158))/0x7+parseInt(_0x56796b(0x150))/0x8;if(_0x24576e===_0x50135e)break;else _0x572958['push'](_0x572958['shift']());}catch(_0x68c90){_0x572958['push'](_0x572958['shift']());}}}(_0x1848,0x5b0b7));import{View as _0x50eebf}from'ckeditor5/src/ui.js';export default class tt extends _0x50eebf{constructor(_0x57b1bc,_0x4f2784){const _0x3f218b=_0x2c8e;super(_0x57b1bc);const _0x202372=this[_0x3f218b(0x151)];this[_0x3f218b(0x14d)](_0x3f218b(0x152),''),this[_0x3f218b(0x157)]({'tag':_0x3f218b(0x15b),'attributes':{..._0x4f2784,'class':[_0x3f218b(0x154),_0x3f218b(0x159)],'ctx-name':_0x3f218b(0x15a),'cdn-url':_0x202372['to'](_0x3f218b(0x152))}});}}function _0x2c8e(_0x4e0973,_0x70ae2c){const _0x1848a0=_0x1848();return _0x2c8e=function(_0x2c8e11,_0x22f127){_0x2c8e11=_0x2c8e11-0x14c;let _0x1eb0b9=_0x1848a0[_0x2c8e11];return _0x1eb0b9;},_0x2c8e(_0x4e0973,_0x70ae2c);}function _0x1848(){const _0x4c5535=['15074392SNNZLU','bindTemplate','imageSrc','1250058EKpJeX','uc-light','485991gBSbtS','317063TjFXlV','setTemplate','4858798axoXwu','ck-uploadcare-theme','image-edit','uc-cloud-image-editor','1534892UjFUvM','set','6030mbcnio','2094hfrJwZ'];_0x1848=function(){return _0x4c5535;};return _0x1848();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x257748,IconView as at,View as _0x247af5}from'ckeditor5/src/ui.js';export default class rt extends _0x247af5{constructor(_0x5a7897){super(_0x5a7897);const t=_0x5a7897['t'];this['set']('errorType',null);const _0x5d8b78=new _0x257748(_0x5a7897);_0x5d8b78['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5d8b78['withText']=!0x0,_0x5d8b78['class']='ck-button-action',_0x5d8b78['on']('execute',()=>{this['fire']('retry');}),_0x5d8b78['bind']('isVisible')['to'](this,'errorType',_0x2294ee=>'NotFound'!==_0x2294ee);const _0x12534b=new at();_0x12534b['content']=et,_0x12534b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1ea34f=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':[_0x12534b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1ea34f['to']('errorType',_0x3c818f=>t('NotFound'!==_0x3c818f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5d8b78]},{'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 _0x280897,View as _0x1d7e8f}from'ckeditor5/src/ui.js';export default class ta extends _0x1d7e8f{constructor(_0x2781d8){super(_0x2781d8);const t=_0x2781d8['t'],_0x1026ee=this['bindTemplate'],_0x3acf2b=new _0x280897();_0x3acf2b['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':[_0x3acf2b,{'text':_0x1026ee['to']('imageUploadProgress',_0x4ab3a2=>t('Loading\x20image...')+'\x20('+(_0x4ab3a2||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x7dd6b8=_0x1cab;(function(_0x373037,_0x450d47){const _0x5be0ab=_0x1cab,_0x1df2db=_0x373037();while(!![]){try{const _0x2d4c38=parseInt(_0x5be0ab(0x9c))/0x1*(parseInt(_0x5be0ab(0x7d))/0x2)+-parseInt(_0x5be0ab(0x7c))/0x3*(-parseInt(_0x5be0ab(0x8f))/0x4)+parseInt(_0x5be0ab(0x99))/0x5*(-parseInt(_0x5be0ab(0x92))/0x6)+-parseInt(_0x5be0ab(0x7b))/0x7*(parseInt(_0x5be0ab(0x9b))/0x8)+-parseInt(_0x5be0ab(0x89))/0x9*(-parseInt(_0x5be0ab(0x7a))/0xa)+-parseInt(_0x5be0ab(0xa3))/0xb+-parseInt(_0x5be0ab(0x90))/0xc*(parseInt(_0x5be0ab(0x79))/0xd);if(_0x2d4c38===_0x450d47)break;else _0x1df2db['push'](_0x1df2db['shift']());}catch(_0x11d351){_0x1df2db['push'](_0x1df2db['shift']());}}}(_0x1a40,0x6a913));import{View as _0x40261f}from'ckeditor5/src/ui.js';import _0x5bb0 from'./uploadcareimageeditformloadingview.js';import _0x1cbaed from'./uploadcareimageeditformerrorview.js';function _0x1a40(){const _0x1afd3f=['206WYbmPb','ck-uploadcare-form','addedNodes','focus','ready','error','_loadingView','848364ykNFWY','render','once','addEventListener','target','_waitForImageEditorComponent','div','toLowerCase','_focusableView','uc-cloud-image-editor','_editingView','createCollection','change:status','element','add','length','26ZNIyyt','531500eTwSBv','7PXpvKm','7977GSadtu','8094fWAOvd','addMany','nodeName','detail','clear','cancel','_errorView','cdnUrl','uploading','_addUploadcareImageEditorListeners','filter','_setView','81sLZEOr','apply','set','_addErrorViewListeners','observe','_items','296RVfkhT','2895756bMQfXF','setTemplate','12GoaEMK','ck-reset_all-excluded','retry','fire','disconnect','querySelector','status','1197505KKlfzG','getFocusableElement','268376JrUFqT'];_0x1a40=function(){return _0x1afd3f;};return _0x1a40();}import _0x56d25d from'./uploadcareimageeditformeditingview.js';function _0x1cab(_0x399d83,_0x571ad6){const _0x1a4043=_0x1a40();return _0x1cab=function(_0x1cabf,_0x48bc02){_0x1cabf=_0x1cabf-0x76;let _0x184f29=_0x1a4043[_0x1cabf];return _0x184f29;},_0x1cab(_0x399d83,_0x571ad6);}import _0x14fe6c from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x14fe6c{[_0x7dd6b8(0x8e)];[_0x7dd6b8(0xa2)];[_0x7dd6b8(0x83)];[_0x7dd6b8(0xad)];[_0x7dd6b8(0xab)];constructor(_0x1811f2,_0x45d623,_0x4f15ca){const _0x3ff759=_0x7dd6b8;super(_0x1811f2),this[_0x3ff759(0x8e)]=this[_0x3ff759(0xae)](),this[_0x3ff759(0xa2)]=new _0x5bb0(_0x1811f2),this[_0x3ff759(0x83)]=new _0x1cbaed(_0x1811f2),this[_0x3ff759(0xad)]=new _0x56d25d(_0x1811f2,_0x4f15ca),this[_0x3ff759(0xab)]=new _0x40261f(_0x1811f2),this[_0x3ff759(0xab)][_0x3ff759(0x91)](this[_0x3ff759(0x9a)]()),this[_0x3ff759(0x8b)](_0x3ff759(0x98),_0x45d623),this[_0x3ff759(0x91)]({'tag':_0x3ff759(0xa9),'attributes':{'class':['ck',_0x3ff759(0x93),_0x3ff759(0x9d)],'tabindex':'-1'},'children':this[_0x3ff759(0x8e)]}),this[_0x3ff759(0x88)](),this[_0x3ff759(0xa5)](_0x3ff759(0xa4),()=>{const _0x53495c=_0x3ff759;this[_0x53495c(0xa8)](this[_0x53495c(0x76)],_0x2a5553=>{const _0x4d09a8=_0x53495c;this[_0x4d09a8(0x86)](_0x2a5553);});}),this['on'](_0x3ff759(0xaf),()=>{const _0x4b3d50=_0x3ff759;this[_0x4b3d50(0x88)]();}),this[_0x3ff759(0x8c)]();}[_0x7dd6b8(0x9f)](){const _0x2c3add=_0x7dd6b8;this[_0x2c3add(0x76)][_0x2c3add(0x9f)]();}[_0x7dd6b8(0x88)](){const _0x1e7ae9=_0x7dd6b8;switch(this[_0x1e7ae9(0x8e)][_0x1e7ae9(0x81)](),this[_0x1e7ae9(0x98)]){case _0x1e7ae9(0x85):this[_0x1e7ae9(0x8e)][_0x1e7ae9(0x77)](this[_0x1e7ae9(0xa2)]);break;case _0x1e7ae9(0xa1):this[_0x1e7ae9(0x8e)][_0x1e7ae9(0x77)](this[_0x1e7ae9(0x83)]);break;case _0x1e7ae9(0xa0):this[_0x1e7ae9(0x8e)][_0x1e7ae9(0x7e)]([this[_0x1e7ae9(0xad)],this[_0x1e7ae9(0xab)]]);}}[_0x7dd6b8(0xa8)](_0x13eaa5,_0x4f8df5){const _0x562b60=_0x7dd6b8,_0x11dd8b=_0x562b60(0xac),_0x406990=_0x13eaa5[_0x562b60(0x97)](_0x11dd8b);if(_0x406990)return _0x4f8df5(_0x406990);const _0x1b6928=new MutationObserver(_0x198cc3=>{const _0x11ab12=_0x562b60,_0x56d280=_0x198cc3[_0x11ab12(0x87)](_0x4a7b18=>_0x4a7b18[_0x11ab12(0xa7)]===_0x13eaa5&&_0x4a7b18[_0x11ab12(0x9e)][_0x11ab12(0x78)]>0x0&&_0x4a7b18[_0x11ab12(0x9e)][0x0][_0x11ab12(0x7f)][_0x11ab12(0xaa)]()===_0x11dd8b);_0x56d280[_0x11ab12(0x78)]&&(_0x1b6928[_0x11ab12(0x96)](),_0x4f8df5(_0x56d280[0x0][_0x11ab12(0x9e)][0x0]));});_0x1b6928[_0x562b60(0x8d)](_0x13eaa5,{'childList':!0x0,'subtree':!0x0});}[_0x7dd6b8(0x86)](_0x3b68d9){const _0x504ef7=_0x7dd6b8;_0x3b68d9[_0x504ef7(0xa6)](_0x504ef7(0x8a),_0x5e3aec=>{const _0xcbb5eb=_0x504ef7;this[_0xcbb5eb(0x95)](_0xcbb5eb(0x8a),{'imageSrc':_0x5e3aec[_0xcbb5eb(0x80)][_0xcbb5eb(0x84)]});}),_0x3b68d9[_0x504ef7(0xa6)](_0x504ef7(0x82),()=>{const _0x4aa57e=_0x504ef7;this[_0x4aa57e(0x95)](_0x4aa57e(0x82));});}[_0x7dd6b8(0x8c)](){const _0x177bae=_0x7dd6b8;this[_0x177bae(0x83)]['on'](_0x177bae(0x94),()=>{const _0x368037=_0x177bae;this[_0x368037(0x95)](_0x368037(0x94));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x680f(){const _0x4315af=['element','config','uploadcare.allowExternalImagesEditing','plugins','selection','model','imageBlock','_isEditable','unbind','imageEditController','execute','getSelectedElement','set','isActive','99bPJtOv','134904ircEAf','1069ykXnMC','300HJbhlD','1309840hUStWU','refresh','isEnabled','document','1541267ZIxchR','1754364LxZsFX','requires','1031892uAoGLa','bind','imageInline','1166510XOBVlI','get','editor'];_0x680f=function(){return _0x4315af;};return _0x680f();}function _0x1994(_0x4b4fc9,_0x4200a7){const _0x680f8e=_0x680f();return _0x1994=function(_0x199494,_0x391ad0){_0x199494=_0x199494-0x1a7;let _0x14e137=_0x680f8e[_0x199494];return _0x14e137;},_0x1994(_0x4b4fc9,_0x4200a7);}const _0x5e4fbc=_0x1994;(function(_0x9baeaa,_0x3c0531){const _0x3d66ec=_0x1994,_0x4e097d=_0x9baeaa();while(!![]){try{const _0x4df748=-parseInt(_0x3d66ec(0x1b5))/0x1*(-parseInt(_0x3d66ec(0x1b6))/0x2)+parseInt(_0x3d66ec(0x1be))/0x3+-parseInt(_0x3d66ec(0x1b7))/0x4+-parseInt(_0x3d66ec(0x1c1))/0x5+parseInt(_0x3d66ec(0x1bc))/0x6+-parseInt(_0x3d66ec(0x1bb))/0x7+-parseInt(_0x3d66ec(0x1b4))/0x8*(-parseInt(_0x3d66ec(0x1b3))/0x9);if(_0x4df748===_0x3c0531)break;else _0x4e097d['push'](_0x4e097d['shift']());}catch(_0x48a595){_0x4e097d['push'](_0x4e097d['shift']());}}}(_0x680f,0x3122a));import{Command as _0x299d5e}from'ckeditor5/src/core.js';import{Dialog as _0x5c4f09}from'ckeditor5/src/ui.js';import _0x323da5 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5c0267}from'../utils/editingutils.js';export default class V extends _0x299d5e{[_0x5e4fbc(0x1ae)];static get[_0x5e4fbc(0x1bd)](){return[_0x5c4f09];}[_0x5e4fbc(0x1ac)];constructor(_0x2decab){const _0x5030eb=_0x5e4fbc;super(_0x2decab),this[_0x5030eb(0x1ae)]=void 0x0,this[_0x5030eb(0x1ac)]=_0x5c0267(_0x2decab[_0x5030eb(0x1c5)][_0x5030eb(0x1c2)](_0x5030eb(0x1a7))||[]),this[_0x5030eb(0x1b1)]({'isActive':!0x1});}[_0x5e4fbc(0x1b8)](){const _0x175bf1=_0x5e4fbc,_0x1466f6=this[_0x175bf1(0x1c3)][_0x175bf1(0x1aa)][_0x175bf1(0x1ba)][_0x175bf1(0x1a9)][_0x175bf1(0x1b0)]();this[_0x175bf1(0x1b9)]=this[_0x175bf1(0x1ac)](_0x1466f6);}[_0x5e4fbc(0x1af)](){const _0x13634a=_0x5e4fbc;this[_0x13634a(0x1ae)]&&(this[_0x13634a(0x1ad)](_0x13634a(0x1b2)),this[_0x13634a(0x1ae)]=void 0x0);const _0x1c5e16=this[_0x13634a(0x1c3)][_0x13634a(0x1aa)][_0x13634a(0x1ba)][_0x13634a(0x1a9)][_0x13634a(0x1b0)]();_0x1c5e16&&(_0x1c5e16['is'](_0x13634a(0x1c4),_0x13634a(0x1ab))||_0x1c5e16['is'](_0x13634a(0x1c4),_0x13634a(0x1c0)))&&(this[_0x13634a(0x1ae)]=new _0x323da5(this[_0x13634a(0x1c3)],this[_0x13634a(0x1c3)][_0x13634a(0x1a8)][_0x13634a(0x1c2)](_0x5c4f09),_0x1c5e16),this[_0x13634a(0x1bf)](_0x13634a(0x1b2))['to'](this[_0x13634a(0x1ae)],_0x13634a(0x1b2)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a3275=_0x45a3;(function(_0x33949b,_0x86c584){const _0x2cf76d=_0x45a3,_0x5055ed=_0x33949b();while(!![]){try{const _0x3e1296=-parseInt(_0x2cf76d(0x14e))/0x1+parseInt(_0x2cf76d(0x141))/0x2*(-parseInt(_0x2cf76d(0x13e))/0x3)+parseInt(_0x2cf76d(0x146))/0x4*(parseInt(_0x2cf76d(0x147))/0x5)+parseInt(_0x2cf76d(0x140))/0x6+parseInt(_0x2cf76d(0x139))/0x7+parseInt(_0x2cf76d(0x14a))/0x8*(parseInt(_0x2cf76d(0x145))/0x9)+-parseInt(_0x2cf76d(0x13d))/0xa;if(_0x3e1296===_0x86c584)break;else _0x5055ed['push'](_0x5055ed['shift']());}catch(_0x11ce2f){_0x5055ed['push'](_0x5055ed['shift']());}}}(_0x2889,0x63b45));function _0x45a3(_0x3f3fea,_0x60eb99){const _0x2889ae=_0x2889();return _0x45a3=function(_0x45a3ac,_0x2a4ea1){_0x45a3ac=_0x45a3ac-0x139;let _0x276467=_0x2889ae[_0x45a3ac];return _0x276467;},_0x45a3(_0x3f3fea,_0x60eb99);}import{Plugin as _0x5f5bb5}from'ckeditor5/src/core.js';import{Notification as _0x3d4d39}from'ckeditor5/src/ui.js';import _0x3adf5b from'./uploadcareimageeditcommand.js';import _0x43ba2e from'./uploadcareimagereplacecommand.js';import _0x1eee71 from'../uploadcareediting.js';export default class g extends _0x5f5bb5{static get[_0x5a3275(0x13c)](){const _0x511a67=_0x5a3275;return _0x511a67(0x13f);}static get[_0x5a3275(0x14d)](){const _0x34db73=_0x5a3275;return[_0x1eee71,_0x3d4d39,_0x34db73(0x13b),_0x34db73(0x14b)];}static get[_0x5a3275(0x14c)](){return!0x0;}static get[_0x5a3275(0x149)](){return!0x0;}[_0x5a3275(0x13a)](){const _0x32ae38=_0x5a3275,{editor:_0x2a81c8}=this;_0x2a81c8[_0x32ae38(0x143)][_0x32ae38(0x142)](_0x32ae38(0x148),new _0x3adf5b(_0x2a81c8)),_0x2a81c8[_0x32ae38(0x143)][_0x32ae38(0x142)](_0x32ae38(0x144),new _0x43ba2e(_0x2a81c8));}}function _0x2889(){const _0x345c26=['565688jOloel','10hbfiro','uploadcareImageEdit','isPremiumPlugin','8vDkXhs','ImageEditing','isOfficialPlugin','requires','428761DwbVmF','2520497hbzXIx','init','ImageUtils','pluginName','7426940AMIEcD','2499VXaVpq','UploadcareImageEditEditing','4398342IPDWEb','366WwXWmW','add','commands','uploadcareImageReplace','3206799gpNdDc'];_0x2889=function(){return _0x345c26;};return _0x2889();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x37af9a}from'ckeditor5/src/core.js';import{ButtonView as _0x490043}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x256626}from'ckeditor5/src/icons.js';import{createElement as _0x12e9ec}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x37af9a{['_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 _0x3ebda2=this['editor'];_0x3ebda2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x34e071=>{const _0x301ce6=_0x3ebda2['commands']['get']('uploadcareImageEdit'),_0x5a32bd=new _0x490043(_0x34e071),t=_0x34e071['t'];return _0x5a32bd['set']({'icon':_0x256626,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a32bd['bind']('isEnabled')['to'](_0x301ce6),_0x5a32bd['bind']('isOn')['to'](_0x301ce6,'isActive'),this['listenTo'](_0x5a32bd,'execute',()=>{_0x3ebda2['execute']('uploadcareImageEdit'),_0x3ebda2['editing']['view']['focus']();}),_0x5a32bd;}),this['_initConfig']();}['_initConfig'](){const _0x58502c=_0x12e9ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x58502c),this['listenTo'](this['editor'],'destroy',()=>{_0x58502c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3c3f(_0x3374ea,_0x35588d){const _0x4afa28=_0x4afa();return _0x3c3f=function(_0x3c3fc9,_0x56e897){_0x3c3fc9=_0x3c3fc9-0x154;let _0x2b883f=_0x4afa28[_0x3c3fc9];return _0x2b883f;},_0x3c3f(_0x3374ea,_0x35588d);}function _0x4afa(){const _0x4b4fb1=['275149aeoFeP','imageBlock','712324ZrfIYA','2WEYjHx','14346134HaGorA','element','39912nXFNnY','174Hmzsmw','getSelectedElement','5960TGHTWJ','change','sizes','imageInline','4886860bQJcGU','editor','2967171iFLuYv','setAttributes','refresh','model','25XdFNKW','isEnabled','243DHJLcx','removeAttribute','selection','srcset','execute','document'];_0x4afa=function(){return _0x4b4fb1;};return _0x4afa();}const _0x2b92b1=_0x3c3f;(function(_0x20a271,_0x5f5cf2){const _0xb5d93d=_0x3c3f,_0x2b6343=_0x20a271();while(!![]){try{const _0x43bdec=-parseInt(_0xb5d93d(0x15d))/0x1+-parseInt(_0xb5d93d(0x157))/0x2*(-parseInt(_0xb5d93d(0x163))/0x3)+parseInt(_0xb5d93d(0x156))/0x4*(-parseInt(_0xb5d93d(0x167))/0x5)+-parseInt(_0xb5d93d(0x15b))/0x6*(parseInt(_0xb5d93d(0x154))/0x7)+-parseInt(_0xb5d93d(0x15a))/0x8*(parseInt(_0xb5d93d(0x169))/0x9)+parseInt(_0xb5d93d(0x161))/0xa+parseInt(_0xb5d93d(0x158))/0xb;if(_0x43bdec===_0x5f5cf2)break;else _0x2b6343['push'](_0x2b6343['shift']());}catch(_0xde4e1e){_0x2b6343['push'](_0x2b6343['shift']());}}}(_0x4afa,0x95296));import{Command as _0x467a3a}from'ckeditor5/src/core.js';export default class X extends _0x467a3a{[_0x2b92b1(0x165)](){const _0x4d6e71=_0x2b92b1,_0x5b0e41=this[_0x4d6e71(0x162)][_0x4d6e71(0x166)][_0x4d6e71(0x16e)][_0x4d6e71(0x16b)][_0x4d6e71(0x15c)]();this[_0x4d6e71(0x168)]=Boolean(_0x5b0e41&&(_0x5b0e41['is'](_0x4d6e71(0x159),_0x4d6e71(0x155))||_0x5b0e41['is'](_0x4d6e71(0x159),_0x4d6e71(0x160))));}[_0x2b92b1(0x16d)](_0x2cb82f){const _0x47792c=_0x2b92b1,_0x74ce3d=this[_0x47792c(0x162)][_0x47792c(0x166)][_0x47792c(0x16e)][_0x47792c(0x16b)][_0x47792c(0x15c)]();this[_0x47792c(0x162)][_0x47792c(0x166)][_0x47792c(0x15e)](_0x40be65=>{const _0x7bb64e=_0x47792c;_0x40be65[_0x7bb64e(0x164)](_0x2cb82f,_0x74ce3d),_0x40be65[_0x7bb64e(0x16a)](_0x7bb64e(0x16c),_0x74ce3d),_0x40be65[_0x7bb64e(0x16a)](_0x7bb64e(0x15f),_0x74ce3d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x17df09=_0x5140;function _0x58ca(){var _0x116213=['5TJqDnS','654Xfwzho','379773vgQKKK','4057782FRkJCy','4459264sUQqKK','16191vrorAm','610750QMCbhA','89762gbksyk','UploadcareImageEdit','6741064BHtmep','isOfficialPlugin','isPremiumPlugin','pluginName','350ZdnOuL','requires'];_0x58ca=function(){return _0x116213;};return _0x58ca();}(function(_0x52317b,_0x42c2c8){var _0x47b970=_0x5140,_0x53bd6f=_0x52317b();while(!![]){try{var _0x490c64=parseInt(_0x47b970(0x9f))/0x1+-parseInt(_0x47b970(0xa0))/0x2+-parseInt(_0x47b970(0xab))/0x3+-parseInt(_0x47b970(0xac))/0x4*(-parseInt(_0x47b970(0xa8))/0x5)+parseInt(_0x47b970(0xa9))/0x6*(-parseInt(_0x47b970(0x9e))/0x7)+-parseInt(_0x47b970(0xa2))/0x8+-parseInt(_0x47b970(0xaa))/0x9*(-parseInt(_0x47b970(0xa6))/0xa);if(_0x490c64===_0x42c2c8)break;else _0x53bd6f['push'](_0x53bd6f['shift']());}catch(_0x38d063){_0x53bd6f['push'](_0x53bd6f['shift']());}}}(_0x58ca,0xad65c));import{Plugin as _0x4b474a}from'ckeditor5/src/core.js';function _0x5140(_0x3cb632,_0x1c1de5){var _0x58cae9=_0x58ca();return _0x5140=function(_0x514084,_0x3289f3){_0x514084=_0x514084-0x9e;var _0x1b318b=_0x58cae9[_0x514084];return _0x1b318b;},_0x5140(_0x3cb632,_0x1c1de5);}import _0x546747 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xe42ea3 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x4b474a{static get[_0x17df09(0xa5)](){var _0x2f39ba=_0x17df09;return _0x2f39ba(0xa1);}static get[_0x17df09(0xa7)](){return[_0x546747,_0xe42ea3];}static get[_0x17df09(0xa3)](){return!0x0;}static get[_0x17df09(0xa4)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c613c=_0xe416;(function(_0xfbd0e2,_0xe9edb){const _0x292b36=_0xe416,_0x2ad9cd=_0xfbd0e2();while(!![]){try{const _0x3b5395=parseInt(_0x292b36(0x13d))/0x1+parseInt(_0x292b36(0x111))/0x2*(parseInt(_0x292b36(0x11c))/0x3)+-parseInt(_0x292b36(0x13c))/0x4*(-parseInt(_0x292b36(0x130))/0x5)+parseInt(_0x292b36(0x15a))/0x6*(-parseInt(_0x292b36(0x14f))/0x7)+parseInt(_0x292b36(0x10d))/0x8+-parseInt(_0x292b36(0x126))/0x9*(-parseInt(_0x292b36(0x137))/0xa)+-parseInt(_0x292b36(0x11e))/0xb*(parseInt(_0x292b36(0x132))/0xc);if(_0x3b5395===_0xe9edb)break;else _0x2ad9cd['push'](_0x2ad9cd['shift']());}catch(_0x4085fb){_0x2ad9cd['push'](_0x2ad9cd['shift']());}}}(_0x5612,0x67679));import{Plugin as _0xc51293}from'ckeditor5/src/core.js';import{IconDropbox as _0x155da7,IconFacebook as _0x2de2f6,IconGoogleDrive as _0x26fb28,IconGooglePhotos as _0x59da39,IconUploadcareImageUpload as _0x3fffef,IconUploadcareLink as _0x42cd1d,IconOneDrive as _0xd18fea}from'ckeditor5/src/icons.js';import{ButtonView as _0x4b3867,MenuBarMenuListItemButtonView as _0x3a9e7c}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x250eca}from'./uploadcareconfig.js';function _0xe416(_0xa39ebd,_0x3b2a6f){const _0x56120f=_0x5612();return _0xe416=function(_0xe41656,_0x4c8255){_0xe41656=_0xe41656-0x10b;let _0x248319=_0x56120f[_0xe41656];return _0x248319;},_0xe416(_0xa39ebd,_0x3b2a6f);}import{getTranslation as _0x68ca6d}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x5612(){const _0x2f5eb7=['3206724qFNJPZ','uploadcare','editor','evaluationLimit','GPhotos','10oaJYiJ','GDrive','text','label','url','364464EkUZph','204399HhFJGQ','Dropbox','uploadcareLicenseKeyValid','locale','entries','registerIntegration','uploadcareLicenseKeyDomainLimit','Local','tooltip','expired','isEnabled','destroy','trialLimit','pluginName','_createButton','init','usageLimit','withText','427wzpVNo','Uploadcare','_createMenuBarButtons','uploadcare.uploader.sourceList','uploadcareLicenseKeyInvalid','Insert','isImageSelected','afterInit','reduce','domainLimit','shortText','15582PvRUPV','uploadcareLicenseKeyTrialLimit','push','uploadcareLicenseKeyEvaluationLimit','URL','_showLicenseError','4364584XIHybq','config','icon','_createToolbarButton','463662qZXFpI','execute','bind','Replace','_getIntegrationKey','assetManager','plugins','ImageInsertUI','OneDrive','featureNotAllowed','uploadcareLicenseKeyUsageLimit','3eSMdrp','isPremiumPlugin','33tsimYs','invalid','licenseKey','map','uploadcareLicenseKeyNotAllowed','UploadcareUI','Facebook','upload','1976472PkSIup','type','isOfficialPlugin','_licenseKeyCheckInterval','uploadcareLicenseKeyExpired','_createDropdownButtons','commands','get','has','_normalizeConfigSourceList','10UHBwOf','forEach'];_0x5612=function(){return _0x2f5eb7;};return _0x5612();}import'../theme/uploadcareimageedit.css';export default class e extends _0xc51293{[_0x5c613c(0x120)];[_0x5c613c(0x129)];static get[_0x5c613c(0x14a)](){const _0x68dae7=_0x5c613c;return _0x68dae7(0x123);}static get[_0x5c613c(0x128)](){return!0x0;}static get[_0x5c613c(0x11d)](){return!0x0;}[_0x5c613c(0x14c)](){const _0x6fefc5=_0x5c613c;this[_0x6fefc5(0x120)]=this[_0x6fefc5(0x134)][_0x6fefc5(0x10e)][_0x6fefc5(0x12d)](_0x6fefc5(0x120));const _0x966491=this[_0x6fefc5(0x134)];this[_0x6fefc5(0x129)]=setInterval(()=>{const _0x3adf2c=_0x6fefc5;let _0x85a0c1;for(const _0x3cd53f in _0x966491){const _0x5131c5=_0x3cd53f,_0x4092ff=_0x966491[_0x5131c5];if(_0x3adf2c(0x13f)==_0x4092ff||_0x3adf2c(0x153)==_0x4092ff||_0x3adf2c(0x12a)==_0x4092ff||_0x3adf2c(0x143)==_0x4092ff||_0x3adf2c(0x122)==_0x4092ff||_0x3adf2c(0x15d)==_0x4092ff||_0x3adf2c(0x15b)==_0x4092ff||_0x3adf2c(0x11b)==_0x4092ff){delete _0x966491[_0x5131c5],_0x85a0c1=_0x4092ff,clearInterval(this[_0x3adf2c(0x129)]),this[_0x3adf2c(0x129)]=void 0x0;break;}}_0x3adf2c(0x153)==_0x85a0c1&&_0x966491[_0x3adf2c(0x10c)](_0x3adf2c(0x11f)),_0x3adf2c(0x12a)==_0x85a0c1&&_0x966491[_0x3adf2c(0x10c)](_0x3adf2c(0x146)),_0x3adf2c(0x143)==_0x85a0c1&&_0x966491[_0x3adf2c(0x10c)](_0x3adf2c(0x158)),_0x3adf2c(0x122)==_0x85a0c1&&_0x966491[_0x3adf2c(0x10c)](_0x3adf2c(0x11a),_0x3adf2c(0x150)),_0x3adf2c(0x15d)==_0x85a0c1&&_0x966491[_0x3adf2c(0x10c)](_0x3adf2c(0x135)),_0x3adf2c(0x15b)==_0x85a0c1&&_0x966491[_0x3adf2c(0x10c)](_0x3adf2c(0x149)),_0x3adf2c(0x11b)==_0x85a0c1&&_0x966491[_0x3adf2c(0x10c)](_0x3adf2c(0x14d));},0x3e8);}[_0x5c613c(0x156)](){const _0x4729b5=_0x5c613c,{editor:_0x4bc948}=this,_0x16a8e5=_0x4bc948[_0x4729b5(0x12c)][_0x4729b5(0x12d)](_0x4729b5(0x133));if(!_0x16a8e5)return;const _0x19b0f2=this[_0x4729b5(0x12f)](_0x4bc948[_0x4729b5(0x10e)][_0x4729b5(0x12d)](_0x4729b5(0x152)))[_0x4729b5(0x157)]((_0x14d5b9,_0x32dc09)=>{const _0x34f57=_0x4729b5,_0xdfd89d=this[_0x34f57(0x115)](_0x32dc09[_0x34f57(0x127)]);return _0x14d5b9[_0xdfd89d]||(_0x14d5b9[_0xdfd89d]=[]),_0x14d5b9[_0xdfd89d][_0x34f57(0x15c)](_0x32dc09),_0x14d5b9;},{});_0x4bc948[_0x4729b5(0x117)][_0x4729b5(0x12e)](_0x4729b5(0x118))&&_0x4bc948[_0x4729b5(0x12c)][_0x4729b5(0x12d)](_0x4729b5(0x133))&&Object[_0x4729b5(0x141)](_0x19b0f2)[_0x4729b5(0x131)](([_0x24c228,_0x1ffe02])=>{const _0x1811f9=_0x4729b5;_0x4bc948[_0x1811f9(0x117)][_0x1811f9(0x12d)](_0x1811f9(0x118))[_0x1811f9(0x142)]({'name':_0x24c228,'observable':()=>_0x16a8e5,'buttonViewCreator':()=>this[_0x1811f9(0x110)](_0x1ffe02),'formViewCreator':()=>this[_0x1811f9(0x12b)](_0x1ffe02),'menuBarButtonViewCreator':()=>this[_0x1811f9(0x151)](_0x1ffe02),'override':_0x1811f9(0x116)!==_0x24c228});});}[_0x5c613c(0x148)](){const _0x3c5810=_0x5c613c;super[_0x3c5810(0x148)](),this[_0x3c5810(0x129)]&&clearInterval(this[_0x3c5810(0x129)]);}[_0x5c613c(0x12f)](_0x168277){const _0x40ed6e=_0x5c613c,{locale:_0x24128c}=this[_0x40ed6e(0x134)];return _0x168277[_0x40ed6e(0x121)](_0x4fa869=>{const _0xeb5ef9=_0x40ed6e,_0xdd4fbf=_0x68ca6d(_0x24128c,_0x4fa869,_0xeb5ef9(0x154));switch(_0x4fa869){case _0x250eca[_0xeb5ef9(0x144)]:return{'icon':_0x3fffef,'type':_0x250eca[_0xeb5ef9(0x144)],..._0xdd4fbf};case _0x250eca[_0xeb5ef9(0x10b)]:return{'icon':_0x42cd1d,'type':_0x250eca[_0xeb5ef9(0x10b)],..._0xdd4fbf};case _0x250eca[_0xeb5ef9(0x13e)]:return{'icon':_0x155da7,'type':_0x250eca[_0xeb5ef9(0x13e)],..._0xdd4fbf};case _0x250eca[_0xeb5ef9(0x124)]:return{'icon':_0x2de2f6,'type':_0x250eca[_0xeb5ef9(0x124)],..._0xdd4fbf};case _0x250eca[_0xeb5ef9(0x138)]:return{'icon':_0x26fb28,'type':_0x250eca[_0xeb5ef9(0x138)],..._0xdd4fbf};case _0x250eca[_0xeb5ef9(0x136)]:return{'icon':_0x59da39,'type':_0x250eca[_0xeb5ef9(0x136)],..._0xdd4fbf};case _0x250eca[_0xeb5ef9(0x119)]:return{'icon':_0xd18fea,'type':_0x250eca[_0xeb5ef9(0x119)],..._0xdd4fbf};}});}[_0x5c613c(0x115)](_0x3aaada){const _0x56eaf2=_0x5c613c;switch(_0x3aaada){case _0x250eca[_0x56eaf2(0x144)]:return _0x56eaf2(0x125);case _0x250eca[_0x56eaf2(0x10b)]:return _0x56eaf2(0x13b);default:return _0x56eaf2(0x116);}}[_0x5c613c(0x14b)](_0x35fd98,_0x55dd65){const _0x32b89f=_0x5c613c,_0x456808=this[_0x32b89f(0x134)],_0x474ff8=new _0x35fd98(_0x456808[_0x32b89f(0x140)]),_0x2c7134=_0x456808[_0x32b89f(0x12c)][_0x32b89f(0x12d)](_0x32b89f(0x133));return _0x474ff8[_0x32b89f(0x113)](_0x32b89f(0x147))['to'](_0x2c7134),_0x474ff8['on'](_0x32b89f(0x112),()=>{const _0x4835ec=_0x32b89f;_0x2c7134[_0x4835ec(0x112)](_0x55dd65);}),_0x474ff8;}[_0x5c613c(0x110)](_0xb0366b){const _0x12d860=_0x5c613c,{locale:_0xd33714}=this[_0x12d860(0x134)],_0x2271d1=this[_0x12d860(0x134)][_0x12d860(0x117)][_0x12d860(0x12d)](_0x12d860(0x118)),_0x1da793=_0xb0366b[0x0],_0x25eeb8=this[_0x12d860(0x14b)](_0x4b3867,_0x1da793[_0x12d860(0x127)]);return _0x25eeb8[_0x12d860(0x10f)]=_0x1da793[_0x12d860(0x10f)],_0x25eeb8[_0x12d860(0x113)](_0x12d860(0x13a))['to'](_0x2271d1,_0x12d860(0x155),_0x28a296=>_0x68ca6d(_0xd33714,_0x1da793[_0x12d860(0x127)],_0x28a296?_0x12d860(0x114):_0x12d860(0x154))[_0x12d860(0x139)]),_0x25eeb8[_0x12d860(0x145)]=!0x0,_0x25eeb8;}[_0x5c613c(0x12b)](_0x2b7245){const _0x417e3d=_0x5c613c,{locale:_0x13e81a}=this[_0x417e3d(0x134)],_0x30ad6e=this[_0x417e3d(0x134)][_0x417e3d(0x117)][_0x417e3d(0x12d)](_0x417e3d(0x118));return _0x2b7245[_0x417e3d(0x121)](_0x100b6d=>{const _0x5a8704=_0x417e3d,_0x366e37=this[_0x5a8704(0x14b)](_0x4b3867,_0x100b6d[_0x5a8704(0x127)]);return _0x366e37[_0x5a8704(0x14e)]=!0x0,_0x366e37[_0x5a8704(0x10f)]=_0x100b6d[_0x5a8704(0x10f)],_0x366e37[_0x5a8704(0x113)](_0x5a8704(0x13a))['to'](_0x30ad6e,_0x5a8704(0x155),_0x8a1549=>_0x68ca6d(_0x13e81a,_0x100b6d[_0x5a8704(0x127)],_0x8a1549?_0x5a8704(0x114):_0x5a8704(0x154))[_0x5a8704(0x139)]),_0x366e37;});}[_0x5c613c(0x151)](_0x2ee0e9){const _0x39c5b1=_0x5c613c;return _0x2ee0e9[_0x39c5b1(0x121)](_0xc7ad83=>{const _0x1ccfcc=_0x39c5b1,_0x53aa87=this[_0x1ccfcc(0x14b)](_0x3a9e7c,_0xc7ad83[_0x1ccfcc(0x127)]);return _0x53aa87[_0x1ccfcc(0x10f)]=_0xc7ad83[_0x1ccfcc(0x10f)],_0x53aa87[_0x1ccfcc(0x13a)]=_0xc7ad83[_0x1ccfcc(0x159)],_0x53aa87;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4de549}from'ckeditor5/src/core.js';import{FileRepository as _0x23f7ad}from'ckeditor5/src/upload.js';import _0x2ba016 from'./uploadcareediting.js';import _0x5bc7c9 from'./utils/uploadutils.js';import{getImageUrls as _0x33e5e6}from'./utils/editingutils.js';export default class p extends _0x4de549{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23f7ad,_0x2ba016];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5c88eb=this['editor'];if(!!!_0x5c88eb['config']['get']('uploadcare'))return;_0x5c88eb['plugins']['get'](_0x23f7ad)['createUploadAdapter']=_0x3b707c=>new x(_0x3b707c,_0x5c88eb),_0x5c88eb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4f158c,{imageElement:_0x475e2c,data:_0x5453fc})=>{_0x5c88eb['model']['change'](_0x877646=>{_0x877646['setAttribute']('uploadcareImageId',_0x5453fc['uploadcareImageId'],_0x475e2c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3d2652,_0x3bc6ac){this['loader']=_0x3d2652,this['editor']=_0x3bc6ac,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xe5a5a3=this['editor']['config']['get']('uploadcare.pubkey'),_0xf348d2=await this['loader']['file'];return _0x5bc7c9['upload']({'file':_0xf348d2,'publicKey':_0xe5a5a3,'signal':this['controller']['signal'],'onProgress':_0x27dd8d=>{_0x27dd8d&&_0x27dd8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x27dd8d['value']);}})['then'](async _0x322bd8=>{const {imageFallbackUrl:_0x50fa29,imageSources:_0x32809f}=_0x33e5e6(_0x322bd8['cdnUrl'],_0x322bd8['imageInfo']['width']);return{'uploadcareImageId':_0x322bd8['uuid'],'default':_0x50fa29,'sources':_0x32809f};})['catch'](()=>{const _0x471bd9=t('Cannot\x20upload\x20file:')+('\x20'+_0xf348d2['name']+'.');return Promise['reject'](_0x471bd9);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x21af5d}from'../uploadcareconfig.js';export function getTranslation(_0x464f5d,_0x3b338f,_0x57388d){const t=_0x464f5d['t'],_0x1fb7f6=_0x464f5d['t'];switch(_0x3b338f){case _0x21af5d['Local']:return{'text':_0x1fb7f6('Insert'===_0x57388d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1fb7f6('From\x20computer')};case _0x21af5d['URL']:return{'text':'Insert'===_0x57388d?_0x1fb7f6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1fb7f6('Via\x20URL')};case _0x21af5d['Dropbox']:return{'text':t('Insert'===_0x57388d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x21af5d['Facebook']:return{'text':t('Insert'===_0x57388d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x21af5d['GDrive']:return{'text':t('Insert'===_0x57388d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x21af5d['GPhotos']:return{'text':t('Insert'===_0x57388d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x21af5d['OneDrive']:return{'text':t('Insert'===_0x57388d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3b338f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2a476c=_0x1eff;function _0x2c0d(){var _0x3066cd=['340nbdbTA','596372nTwqMU','8YYZVGU','6968472FCKGlX','div','500764WItozY','380omWpXH','focusCycler','8878362KCkWDL','5iKnOCW','fire','createCollection','6782BzMVDK','1115253nyEpeB','getFocusableElement','true','bindTemplate','forwardCycle','focusTracker','7678422iHnJJG'];_0x2c0d=function(){return _0x3066cd;};return _0x2c0d();}function _0x1eff(_0xaa2a49,_0x123d65){var _0x2c0df4=_0x2c0d();return _0x1eff=function(_0x1eff17,_0x20be31){_0x1eff17=_0x1eff17-0x177;var _0x3525f1=_0x2c0df4[_0x1eff17];return _0x3525f1;},_0x1eff(_0xaa2a49,_0x123d65);}(function(_0x3f33ab,_0x564685){var _0x50d865=_0x1eff,_0x155f12=_0x3f33ab();while(!![]){try{var _0x965082=-parseInt(_0x50d865(0x185))/0x1*(parseInt(_0x50d865(0x17d))/0x2)+-parseInt(_0x50d865(0x17e))/0x3*(-parseInt(_0x50d865(0x187))/0x4)+parseInt(_0x50d865(0x17a))/0x5*(parseInt(_0x50d865(0x179))/0x6)+-parseInt(_0x50d865(0x186))/0x7+parseInt(_0x50d865(0x188))/0x8+parseInt(_0x50d865(0x184))/0x9+parseInt(_0x50d865(0x177))/0xa*(-parseInt(_0x50d865(0x18a))/0xb);if(_0x965082===_0x564685)break;else _0x155f12['push'](_0x155f12['shift']());}catch(_0x3567c2){_0x155f12['push'](_0x155f12['shift']());}}}(_0x2c0d,0xef1c6));import{FocusTracker as _0x3798ac}from'ckeditor5/src/utils.js';import{View as _0xb11bc8,FocusCycler as _0x3238f1}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0xb11bc8{[_0x2a476c(0x183)];[_0x2a476c(0x178)];constructor(_0x259621){var _0xb449f5=_0x2a476c;super(_0x259621),this[_0xb449f5(0x183)]=new _0x3798ac(),this[_0xb449f5(0x178)]=new _0x3238f1({'focusables':this[_0xb449f5(0x17c)](),'focusTracker':this[_0xb449f5(0x183)]});}[_0x2a476c(0x17f)](){var _0xa86a64=_0x2a476c;return{'tag':_0xa86a64(0x189),'attributes':{'aria-hidden':_0xa86a64(0x180),'tabindex':'0'},'on':{'focus':this[_0xa86a64(0x181)]['to'](()=>{var _0x393523=_0xa86a64;this[_0x393523(0x178)][_0x393523(0x17b)](_0x393523(0x182));})}};}}
|