@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250709.0 → 0.0.0-nightly-20250711.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x396e(_0x575d61,_0x4a3e59){const _0xcd83e=_0xcd83();return _0x396e=function(_0x396e72,_0x45c0f2){_0x396e72=_0x396e72-0x192;let _0x4e14ea=_0xcd83e[_0x396e72];return _0x4e14ea;},_0x396e(_0x575d61,_0x4a3e59);}const _0x5e4036=_0x396e;(function(_0x3a9aa9,_0x26eee8){const _0x3c2b32=_0x396e,_0x43dddd=_0x3a9aa9();while(!![]){try{const _0x37e128=-parseInt(_0x3c2b32(0x1c0))/0x1+parseInt(_0x3c2b32(0x19d))/0x2+-parseInt(_0x3c2b32(0x1e3))/0x3*(-parseInt(_0x3c2b32(0x1d7))/0x4)+parseInt(_0x3c2b32(0x1bd))/0x5*(parseInt(_0x3c2b32(0x1bb))/0x6)+parseInt(_0x3c2b32(0x199))/0x7+parseInt(_0x3c2b32(0x1b8))/0x8*(-parseInt(_0x3c2b32(0x1a5))/0x9)+-parseInt(_0x3c2b32(0x1b2))/0xa;if(_0x37e128===_0x26eee8)break;else _0x43dddd['push'](_0x43dddd['shift']());}catch(_0x144e51){_0x43dddd['push'](_0x43dddd['shift']());}}}(_0xcd83,0x72393));function _0xcd83(){const _0x51aa06=['isRegistered','1928sQoOpc','true','config','_configElement','_initConfig','imageBlock','destroy','commands','imageInline','uploadcare','fromCharCode','getSelectedElement','5325jUUFfx','view','configElement','contentLanguage','PictureEditing','isPremiumPlugin','once','input[uploadcare-file-input]','appendChild','selection','getAttribute','3126179VeoAeF','listenTo','editing','isOfficialPlugin','1811306hQllBg','_initSchema','uploadcareImageReplace','requires','#uc-icon-arrow-down','map','upcast','afterInit','16263wiGdHK','iconHrefResolver','execute','elementToAttribute','ucContextId','init','schema','insertImage','downcast','render','href','cleanupImage','get','4550370RQQnKL','uc-config','locale','document','_initConversion','uc-upload-ctx-provider','3656xjPbOw','pluginName','_ctxElement','90ogjHLn','body','40405kyZaas','_initImageProcessingIndicator','join','580320CfAeGA','for','model','data-uc-image-id','_initCtx','uploadcareImageId','\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','closeMax','removeAttribute','add','uploadcare.uploader','querySelector','conversion','attributeToAttribute','ctxElement','uploader-','uploadcare.pubkey','replaceImageSource','remove','UploadcareEditing','extend','editor'];_0xcd83=function(){return _0x51aa06;};return _0xcd83();}import{Plugin as _0x1fb888}from'ckeditor5/src/core.js';import{Dialog as _0xca2b1e}from'ckeditor5/src/ui.js';import{createElement as _0x4de127,global as _0x19e53b,uid as _0x399c1f}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x53cc5c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x110ffb}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x21afa6}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1fb888{[_0x5e4036(0x1da)]=null;[_0x5e4036(0x1ba)]=null;static get[_0x5e4036(0x1b9)](){const _0x5a8e57=_0x5e4036;return _0x5a8e57(0x1d3);}static get[_0x5e4036(0x1a0)](){const _0x102408=_0x5e4036;return[_0x102408(0x192),_0x110ffb,_0xca2b1e];}static get[_0x5e4036(0x19c)](){return!0x0;}static get[_0x5e4036(0x193)](){return!0x0;}[_0x5e4036(0x1a9)];get[_0x5e4036(0x1e5)](){const _0x5e4570=_0x5e4036;return this[_0x5e4570(0x1da)];}get[_0x5e4036(0x1ce)](){const _0xaaaf94=_0x5e4036;return this[_0xaaaf94(0x1ba)];}constructor(_0x5e14f4){const _0x47271c=_0x5e4036;super(_0x5e14f4),this[_0x47271c(0x1a9)]=_0x399c1f();}[_0x5e4036(0x1aa)](){const _0x327482=_0x5e4036,_0x382b35=this[_0x327482(0x1d5)];_0x382b35[_0x327482(0x1de)][_0x327482(0x1c9)](_0x327482(0x1e0),new _0x53cc5c(_0x382b35));}[_0x5e4036(0x1a4)](){const _0x1cc155=_0x5e4036;this[_0x1cc155(0x19e)](),this[_0x1cc155(0x1b6)](),this[_0x1cc155(0x1db)](),this[_0x1cc155(0x1c4)](),this[_0x1cc155(0x1be)](),this[_0x1cc155(0x19a)](this[_0x1cc155(0x1d5)],_0x1cc155(0x1dd),()=>{const _0x9b34d9=_0x1cc155;this[_0x9b34d9(0x1da)]&&(this[_0x9b34d9(0x1da)][_0x9b34d9(0x1d2)](),this[_0x9b34d9(0x1da)]=null),this[_0x9b34d9(0x1ba)]&&(this[_0x9b34d9(0x1ba)][_0x9b34d9(0x1d2)](),this[_0x9b34d9(0x1ba)]=null);const _0x125769=_0x19e53b[_0x9b34d9(0x1b5)][_0x9b34d9(0x1cb)](_0x9b34d9(0x195));_0x125769&&_0x125769[_0x9b34d9(0x1d2)]();}),async function(_0x28cd31){const _0x46ae0c=_0x3066c5([0x78,0x45,0x57,0x61,0x4b,0x55,0x47,0x77,0x62,0x71,0x42,0x79,0x48,0x56,0x34,0x5a,0x67,0x64,0x43,0x58,0x53,0x37,0x66,0x4e,0x73,0x74,0x4f,0x33,0x4d,0x65,0x54,0x52,0x41,0x6b,0x46,0x69,0x36,0x4c,0x6e,0x70,0x49,0x59,0x75,0x76,0x72,0x7a,0x6a,0x44,0x39,0x31,0x63,0x6f,0x6c,0x32,0x6d,0x38,0x68,0x50,0x51,0x30,0x35,0x4a]),_0xf6c898=0x6f708ba4,_0x5263b9=0x6f77e6b4^_0xf6c898,_0x3c0dac=window[_0x3066c5([0x44,0x61,0x74,0x65])][_0x3066c5([0x6e,0x6f,0x77])](),_0x5c5ddf=_0x28cd31[_0x3066c5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bc240=new window[(_0x3066c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x608b8=>{_0x5c5ddf[_0x3066c5([0x6f,0x6e,0x63,0x65])](_0x3066c5([0x72,0x65,0x61,0x64,0x79]),_0x608b8);}),_0x273c94={[_0x3066c5([0x6b,0x74,0x79])]:_0x3066c5([0x45,0x43]),[_0x3066c5([0x75,0x73,0x65])]:_0x3066c5([0x73,0x69,0x67]),[_0x3066c5([0x63,0x72,0x76])]:_0x3066c5([0x50,0x2d,0x32,0x35,0x36]),[_0x3066c5([0x78])]:_0x3066c5([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]),[_0x3066c5([0x79])]:_0x3066c5([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]),[_0x3066c5([0x61,0x6c,0x67])]:_0x3066c5([0x45,0x53,0x32,0x35,0x36])},_0x44d37f=_0x5c5ddf[_0x3066c5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3066c5([0x67,0x65,0x74])](_0x3066c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2fda84(){let _0x17a9b9,_0x2d15e6=null,_0x200d3e=null;try{if(_0x44d37f==_0x3066c5([0x47,0x50,0x4c]))return _0x3066c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a9b9=_0x2bd7be(),!_0x17a9b9)return _0x3066c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a9b9[_0x3066c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x200d3e=_0x37fd19(_0x17a9b9[_0x3066c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a9b9[_0x3066c5([0x6a,0x74,0x69])])),await _0x30de52()?_0x21240b()?_0xd41bd8()?_0x3066c5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x500338()?(_0x17a9b9[_0x3066c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3066c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d15e6=_0x7bfd10(_0x3066c5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a9b9[_0x3066c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3066c5([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d15e6=_0x7bfd10(_0x3066c5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb9957()):_0x3066c5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3066c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3066c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3066c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd41bd8(){const _0x21198b=[_0x3066c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3066c5([0x74,0x72,0x69,0x61,0x6c])][_0x3066c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a9b9[_0x3066c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c0dac/0x3e8:0xe10*_0x5263b9;return _0x17a9b9[_0x3066c5([0x65,0x78,0x70])]<_0x21198b;}function _0x21240b(){const _0x382edd=_0x17a9b9[_0x3066c5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x382edd&&(!!_0x382edd[_0x3066c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3066c5([0x2a]))||!!_0x382edd[_0x3066c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3066c5([0x55,0x50,0x4c,0x43])));}function _0x500338(){const _0xb5c71a=_0x396e,_0x4c3088=_0x17a9b9[_0x3066c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c3088||0x0==_0x4c3088[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b73c0}=new URL(window[_0x3066c5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xb5c71a(0x1af)]);if(_0x4c3088[_0x3066c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b73c0))return!0x0;const _0x588a09=_0x2b73c0[_0x3066c5([0x73,0x70,0x6c,0x69,0x74])](_0x3066c5([0x2e]));return _0x4c3088[_0x3066c5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b5dcb=>_0x2b5dcb[_0x3066c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3066c5([0x2a])))[_0x3066c5([0x6d,0x61,0x70])](_0x2e6ddb=>_0x2e6ddb[_0x3066c5([0x73,0x70,0x6c,0x69,0x74])](_0x3066c5([0x2e])))[_0x3066c5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x560801=>_0x560801[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x588a09[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3066c5([0x6d,0x61,0x70])](_0x23880d=>Array(_0x588a09[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23880d[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3066c5([0x66,0x69,0x6c,0x6c])](_0x23880d[0x0]===_0x3066c5([0x2a])?_0x3066c5([0x2a]):'')[_0x3066c5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23880d))[_0x3066c5([0x73,0x6f,0x6d,0x65])](_0x195f93=>_0x588a09[_0x3066c5([0x65,0x76,0x65,0x72,0x79])]((_0x16aada,_0x301cd7)=>_0x195f93[_0x301cd7]===_0x16aada||_0x195f93[_0x301cd7]===_0x3066c5([0x2a])));}function _0xb9957(){return _0x2d15e6&&_0x200d3e?new window[(_0x3066c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4740de,_0x1d039b)=>{_0x2d15e6[_0x3066c5([0x74,0x68,0x65,0x6e])](_0x4740de,_0x1d039b),_0x200d3e[_0x3066c5([0x74,0x68,0x65,0x6e])](_0xc3d92f=>{_0xc3d92f!=_0x3066c5([0x56,0x61,0x6c,0x69,0x64])&&_0x4740de(_0xc3d92f);},_0x1d039b);}):_0x2d15e6||_0x200d3e||_0x3066c5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37fd19(_0x2e373b,_0x112f48){return new window[(_0x3066c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x448842=>{if(_0x30f801())return _0x448842(_0x3066c5([0x56,0x61,0x6c,0x69,0x64]));_0x26a153(),_0x5c5ddf[_0x3066c5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3066c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x508716=!0x1;const _0x1d25f1=_0x399c1f();function _0x7fb6b5(_0x238b8b){return!!_0x238b8b&&(typeof _0x238b8b===_0x3066c5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x238b8b===_0x3066c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x238b8b[_0x3066c5([0x74,0x68,0x65,0x6e])]===_0x3066c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x238b8b[_0x3066c5([0x63,0x61,0x74,0x63,0x68])]===_0x3066c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x535bd0(_0xdd4e36){_0x2ebde5(_0xdd4e36)[_0x3066c5([0x74,0x68,0x65,0x6e])](_0x8b7428=>{if(!_0x8b7428||_0x8b7428[_0x3066c5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3066c5([0x6f,0x6b]))return _0x3066c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x471448(_0x596638(_0x1d25f1+_0x112f48))!=_0x8b7428[_0x3066c5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3066c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3066c5([0x56,0x61,0x6c,0x69,0x64]);})[_0x3066c5([0x74,0x68,0x65,0x6e])](_0x224421=>(_0x3181d9(),_0x224421),()=>{const _0x168a78=_0x434028();return null==_0x168a78?(_0x3181d9(),_0x3066c5([0x56,0x61,0x6c,0x69,0x64])):_0x3066c5(_0x3c0dac-_0x168a78>(0x4b7c0fa4^_0xf6c898)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3066c5([0x74,0x68,0x65,0x6e])](_0x448842)[_0x3066c5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x448842(_0x3066c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c3b75=0x6f466524^_0xf6c898;function _0x3181d9(){const _0x5a0aee=_0x3066c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x471448(_0x596638(_0x2e373b)),_0x4d164b=_0x482b50(_0x471448(window[_0x3066c5([0x4d,0x61,0x74,0x68])][_0x3066c5([0x63,0x65,0x69,0x6c])](_0x3c0dac/_0x1c3b75)));window[_0x3066c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3066c5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a0aee,_0x4d164b);}function _0x434028(){const _0x3bc2aa=_0x3066c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x471448(_0x596638(_0x2e373b)),_0x4a5224=window[_0x3066c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3066c5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bc2aa);return _0x4a5224?window[_0x3066c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x482b50(_0x4a5224),0x10)*_0x1c3b75:null;}function _0x2ebde5(_0x26e8a5){return new window[(_0x3066c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x498ff1,_0x3357bf)=>{_0x26e8a5[_0x3066c5([0x74,0x68,0x65,0x6e])](_0x498ff1,_0x3357bf),window[_0x3066c5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3357bf,0x6f715f64^_0xf6c898);});}}_0x5c5ddf[_0x3066c5([0x6f,0x6e])](_0x3066c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5685d0,_0x26d447)=>{if(_0x26d447[0x0]!=_0x2e373b)return _0x448842(_0x3066c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26d447[0x1]={..._0x26d447[0x1],[_0x3066c5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d25f1};},{[_0x3066c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3066c5([0x68,0x69,0x67,0x68])}),_0x5c5ddf[_0x3066c5([0x6f,0x6e])](_0x3066c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd9098b=>{_0x7fb6b5(_0xd9098b[_0x3066c5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x508716=!0x0,_0x535bd0(_0xd9098b[_0x3066c5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3066c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3066c5([0x6c,0x6f,0x77])}),_0x1bc240[_0x3066c5([0x74,0x68,0x65,0x6e])](()=>{_0x508716||_0x448842(_0x3066c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x30f801(){return _0x5c5ddf[_0x3066c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3066c5([0x76,0x69,0x65,0x77])][_0x3066c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3066c5([0x61,0x75,0x74,0x6f]);}function _0x26a153(){_0x5c5ddf[_0x3066c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3066c5([0x76,0x69,0x65,0x77])][_0x3066c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3066c5([0x61,0x75,0x74,0x6f]);}}function _0x7bfd10(_0x110cee){const _0x1ee22b=[new window[(_0x3066c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35bed1=>setTimeout(_0x35bed1,0x6f79b568^_0xf6c898)),_0x1bc240[_0x3066c5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3066c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400617=>{let _0x5dfadb=0x0;_0x5c5ddf[_0x3066c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3066c5([0x6f,0x6e])](_0x3066c5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf23658,_0x134f7e)=>{_0x134f7e[0x0][_0x3066c5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dfadb++,_0x5dfadb==(0x6f708a5c^_0xf6c898)&&(_0x400617(),_0xf23658[_0x3066c5([0x6f,0x66,0x66])]());});}))];return window[_0x3066c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3066c5([0x72,0x61,0x63,0x65])](_0x1ee22b)[_0x3066c5([0x74,0x68,0x65,0x6e])](()=>_0x110cee);}async function _0x2ea74f(){await _0x1bc240,_0x5c5ddf[_0x3066c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3066c5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18a9d1,_0x5c5ddf[_0x3066c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3066c5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18a9d1,_0x5c5ddf[_0x3066c5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3066c5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13ca4b(_0x586cee){const _0x4b97cd=_0x4bedc0();_0x5c5ddf[_0x4b97cd]=_0x3066c5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x586cee,_0x586cee!=_0x3066c5([0x56,0x61,0x6c,0x69,0x64])&&_0x2ea74f();}function _0x4bedc0(){const _0x3f2e09=window[_0x3066c5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3066c5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3066c5([0x6e,0x6f,0x77])]())[_0x3066c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3066c5([0x2e]),'');let _0x3a4318=_0x3066c5([0x78]);for(let _0x42ea31=0x0;_0x42ea31<_0x3f2e09[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42ea31+=0x2){let _0x18ca01=window[_0x3066c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f2e09[_0x3066c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42ea31,_0x42ea31+0x2));_0x18ca01>=_0x46ae0c[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18ca01-=_0x46ae0c[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a4318+=_0x46ae0c[_0x18ca01];}return _0x3a4318;}function _0x2bd7be(){const _0x35ad5f=_0x44d37f[_0x3066c5([0x73,0x70,0x6c,0x69,0x74])](_0x3066c5([0x2e]));if(0x3!=_0x35ad5f[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x541357(_0x35ad5f[0x1]);function _0x541357(_0x3289af){const _0x16be6f=_0x349f51(_0x3289af);return _0x16be6f&&_0x29375c()?_0x16be6f:null;function _0x29375c(){const _0x8c954c=_0x16be6f[_0x3066c5([0x6a,0x74,0x69])],_0x5e14b9=window[_0x3066c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8c954c[_0x3066c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8c954c[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ed55b={..._0x16be6f,[_0x3066c5([0x6a,0x74,0x69])]:_0x8c954c[_0x3066c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8c954c[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ed55b[_0x3066c5([0x76,0x63])],_0x596638(_0x4ed55b)==_0x5e14b9;}}}async function _0x30de52(){let _0x22e663=!0x0;try{const _0x45e946=_0x44d37f[_0x3066c5([0x73,0x70,0x6c,0x69,0x74])](_0x3066c5([0x2e])),[_0x19e75e,_0x32d2ae,_0x16660d]=_0x45e946;return _0xe24616(_0x19e75e),await _0x219b0d(_0x19e75e,_0x32d2ae,_0x16660d),_0x22e663;}catch{return!0x1;}function _0xe24616(_0x4963bc){const _0x36274d=_0x349f51(_0x4963bc);_0x36274d&&_0x36274d[_0x3066c5([0x61,0x6c,0x67])]==_0x3066c5([0x45,0x53,0x32,0x35,0x36])||(_0x22e663=!0x1);}async function _0x219b0d(_0x3e9f0f,_0x1d4e67,_0x221e45){const _0x280571=window[_0x3066c5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3066c5([0x66,0x72,0x6f,0x6d])](_0x5ee1c2(_0x221e45),_0x37da37=>_0x37da37[_0x3066c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x306408=new window[(_0x3066c5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3066c5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e9f0f+_0x3066c5([0x2e])+_0x1d4e67),_0x377bd9=window[_0x3066c5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3066c5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x377bd9)return;const _0x194800=await _0x377bd9[_0x3066c5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3066c5([0x6a,0x77,0x6b]),_0x273c94,{[_0x3066c5([0x6e,0x61,0x6d,0x65])]:_0x3066c5([0x45,0x43,0x44,0x53,0x41]),[_0x3066c5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3066c5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3066c5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x377bd9[_0x3066c5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3066c5([0x6e,0x61,0x6d,0x65])]:_0x3066c5([0x45,0x43,0x44,0x53,0x41]),[_0x3066c5([0x68,0x61,0x73,0x68])]:{[_0x3066c5([0x6e,0x61,0x6d,0x65])]:_0x3066c5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x194800,_0x280571,_0x306408)||(_0x22e663=!0x1);}}function _0x349f51(_0x22ae12){return _0x22ae12[_0x3066c5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3066c5([0x65,0x79]))?JSON[_0x3066c5([0x70,0x61,0x72,0x73,0x65])](_0x5ee1c2(_0x22ae12)):null;}function _0x5ee1c2(_0x449c5f){return window[_0x3066c5([0x61,0x74,0x6f,0x62])](_0x449c5f[_0x3066c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3066c5([0x2b]))[_0x3066c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3066c5([0x2f])));}function _0x596638(_0xe3e739){let _0x9d1a34=0x1505;function _0x154b50(_0x20aa0a){for(let _0x4cfd52=0x0;_0x4cfd52<_0x20aa0a[_0x3066c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cfd52++){const _0x2d213f=_0x20aa0a[_0x3066c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cfd52);_0x9d1a34=(_0x9d1a34<<0x5)+_0x9d1a34+_0x2d213f,_0x9d1a34&=_0x9d1a34;}}function _0x383ab7(_0x5cfda7){Array[_0x3066c5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5cfda7)?_0x5cfda7[_0x3066c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x383ab7):_0x5cfda7&&typeof _0x5cfda7==_0x3066c5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3066c5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5cfda7)[_0x3066c5([0x73,0x6f,0x72,0x74])]()[_0x3066c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f179b,_0x4b907d])=>{_0x154b50(_0x3f179b),_0x383ab7(_0x4b907d);}):_0x154b50(window[_0x3066c5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5cfda7));}return _0x383ab7(_0xe3e739),_0x9d1a34>>>0x0;}function _0x471448(_0x7fb967){return _0x7fb967[_0x3066c5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3066c5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3066c5([0x30]));}function _0x482b50(_0x5bb519){return _0x5bb519[_0x3066c5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3066c5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3066c5([0x6a,0x6f,0x69,0x6e])]('');}function _0x18a9d1(){}function _0x3066c5(_0x7bbfd7){const _0x52ca73=_0x396e;return _0x7bbfd7[_0x52ca73(0x1a2)](_0x5d9302=>String[_0x52ca73(0x1e1)](_0x5d9302))[_0x52ca73(0x1bf)]('');}_0x13ca4b(await _0x2fda84());}(this);}[_0x5e4036(0x19e)](){const _0x4827a4=_0x5e4036,_0x1b643b=this[_0x4827a4(0x1d5)][_0x4827a4(0x1c2)][_0x4827a4(0x1ab)];_0x1b643b[_0x4827a4(0x1d6)](_0x4827a4(0x1dc))&&_0x1b643b[_0x4827a4(0x1d4)](_0x4827a4(0x1dc),{'allowAttributes':[_0x4827a4(0x1c5)]}),_0x1b643b[_0x4827a4(0x1d6)](_0x4827a4(0x1df))&&_0x1b643b[_0x4827a4(0x1d4)](_0x4827a4(0x1df),{'allowAttributes':[_0x4827a4(0x1c5)]});}[_0x5e4036(0x1b6)](){const _0x341acc=_0x5e4036,_0x5af621=this[_0x341acc(0x1d5)];_0x5af621[_0x341acc(0x1cc)][_0x341acc(0x1c1)](_0x341acc(0x1ad))[_0x341acc(0x1cd)]({'model':_0x341acc(0x1c5),'view':_0x341acc(0x1c3)}),_0x5af621[_0x341acc(0x1cc)][_0x341acc(0x1c1)](_0x341acc(0x1a3))[_0x341acc(0x1a8)]({'model':{'key':_0x341acc(0x1c5),'value':_0x10c696=>_0x10c696[_0x341acc(0x198)](_0x341acc(0x1c3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x379008=_0x5af621[_0x341acc(0x1de)][_0x341acc(0x1b1)](_0x341acc(0x1d1));_0x379008&&this[_0x341acc(0x19a)](_0x379008,_0x341acc(0x1b0),(_0xee0537,[_0x27d3df,_0x104872])=>{const _0x5d4b76=_0x341acc;_0x27d3df[_0x5d4b76(0x1c8)](_0x5d4b76(0x1c5),_0x104872);});}[_0x5e4036(0x1db)](){const _0x41e40a=_0x5e4036,_0xc3a50a=this[_0x41e40a(0x1d5)][_0x41e40a(0x1d9)][_0x41e40a(0x1b1)](_0x41e40a(0x1ca))||{},_0x3400fb=this[_0x41e40a(0x1d5)][_0x41e40a(0x1d9)][_0x41e40a(0x1b1)](_0x41e40a(0x1d0))||'';this[_0x41e40a(0x1da)]=_0x4de127(_0x19e53b[_0x41e40a(0x1b5)],_0x41e40a(0x1b3),{..._0xc3a50a,'pubkey':_0x3400fb,'ctx-name':_0x41e40a(0x1cf)+this[_0x41e40a(0x1a9)],'sourceList':'','imgOnly':_0x41e40a(0x1d8),'removeCopyright':_0x41e40a(0x1d8),'localeName':this[_0x41e40a(0x1d5)][_0x41e40a(0x1b4)][_0x41e40a(0x1e6)],'externalSourcesEmbedCss':_0x41e40a(0x1c6)}),this[_0x41e40a(0x1da)][_0x41e40a(0x1a6)]=_0x2dfa3a=>{const _0x33bd5d=_0x41e40a;if(_0x33bd5d(0x1c7)==_0x2dfa3a)return _0x33bd5d(0x1a1);},_0x19e53b[_0x41e40a(0x1b5)][_0x41e40a(0x1bc)][_0x41e40a(0x196)](this[_0x41e40a(0x1da)]);}[_0x5e4036(0x1c4)](){const _0x22099a=_0x5e4036;this[_0x22099a(0x1ba)]=_0x4de127(_0x19e53b[_0x22099a(0x1b5)],_0x22099a(0x1b7),{'ctx-name':_0x22099a(0x1cf)+this[_0x22099a(0x1a9)]}),_0x19e53b[_0x22099a(0x1b5)][_0x22099a(0x1bc)][_0x22099a(0x196)](this[_0x22099a(0x1ba)]);}[_0x5e4036(0x1be)](){const _0x5507c4=_0x5e4036,_0x4cd505=this[_0x5507c4(0x1d5)][_0x5507c4(0x1de)][_0x5507c4(0x1b1)](_0x5507c4(0x1ac));_0x4cd505&&this[_0x5507c4(0x19a)](_0x4cd505,_0x5507c4(0x1a7),()=>{const _0x15fbad=_0x5507c4,_0x2bedac=this[_0x15fbad(0x1d5)][_0x15fbad(0x1c2)][_0x15fbad(0x1b5)][_0x15fbad(0x197)][_0x15fbad(0x1e2)]();_0x2bedac&&_0x2bedac[_0x15fbad(0x198)](_0x15fbad(0x1c5))&&this[_0x15fbad(0x1d5)][_0x15fbad(0x19b)][_0x15fbad(0x1e4)][_0x15fbad(0x194)](_0x15fbad(0x1ae),()=>{const _0x1e7392=_0x15fbad;_0x21afa6(this[_0x1e7392(0x1d5)],_0x2bedac);});});const _0x2544b3=this[_0x5507c4(0x1d5)][_0x5507c4(0x1de)][_0x5507c4(0x1b1)](_0x5507c4(0x19f));_0x2544b3&&this[_0x5507c4(0x19a)](_0x2544b3,_0x5507c4(0x1a7),()=>{const _0x2017e4=_0x5507c4,_0x7d1f77=this[_0x2017e4(0x1d5)][_0x2017e4(0x1c2)][_0x2017e4(0x1b5)][_0x2017e4(0x197)][_0x2017e4(0x1e2)]();_0x7d1f77&&_0x7d1f77[_0x2017e4(0x198)](_0x2017e4(0x1c5))&&this[_0x2017e4(0x1d5)][_0x2017e4(0x19b)][_0x2017e4(0x1e4)][_0x2017e4(0x194)](_0x2017e4(0x1ae),()=>{const _0x141bc8=_0x2017e4;_0x21afa6(this[_0x141bc8(0x1d5)],_0x7d1f77);});});}}
|
|
23
|
+
const _0x39f906=_0x2b91;(function(_0x16ec8a,_0x1620a3){const _0x4bcece=_0x2b91,_0x52d753=_0x16ec8a();while(!![]){try{const _0x15889a=-parseInt(_0x4bcece(0x18b))/0x1+-parseInt(_0x4bcece(0x1b2))/0x2*(parseInt(_0x4bcece(0x186))/0x3)+-parseInt(_0x4bcece(0x1af))/0x4*(-parseInt(_0x4bcece(0x197))/0x5)+parseInt(_0x4bcece(0x1b3))/0x6+parseInt(_0x4bcece(0x1a2))/0x7*(-parseInt(_0x4bcece(0x184))/0x8)+parseInt(_0x4bcece(0x173))/0x9+parseInt(_0x4bcece(0x18c))/0xa;if(_0x15889a===_0x1620a3)break;else _0x52d753['push'](_0x52d753['shift']());}catch(_0x100525){_0x52d753['push'](_0x52d753['shift']());}}}(_0x200a,0x42ba9));import{Plugin as _0x13bbca}from'ckeditor5/src/core.js';import{Dialog as _0x263bad}from'ckeditor5/src/ui.js';import{createElement as _0x70a6d1,global as _0xbaa4a1,uid as _0x3b70bf}from'ckeditor5/src/utils.js';function _0x2b91(_0x2a69d7,_0x3dbd6b){const _0x200a20=_0x200a();return _0x2b91=function(_0x2b916e,_0x170b64){_0x2b916e=_0x2b916e-0x170;let _0x35d749=_0x200a20[_0x2b916e];return _0x35d749;},_0x2b91(_0x2a69d7,_0x3dbd6b);}import{UploadcareCommand as _0xba3222}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4bc30e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1df055}from'./utils/editingutils.js';function _0x200a(){const _0x533faf=['body','imageInline','attributeToAttribute','afterInit','document','insertImage','112fOMrVk','removeAttribute','51237MOUfjR','closeMax','_initImageProcessingIndicator','uploadcare.uploader','destroy','334011eoDRqs','9141100jNDqBb','isOfficialPlugin','true','UploadcareEditing','requires','getSelectedElement','execute','_initConfig','add','imageBlock','input[uploadcare-file-input]','45RToXYn','replaceImageSource','commands','remove','data-uc-image-id','getAttribute','_configElement','uploadcareImageReplace','#uc-icon-arrow-down','isRegistered','conversion','167111qpxWXH','fromCharCode','config','uploadcare.pubkey','iconHrefResolver','get','elementToAttribute','ctxElement','configElement','cleanupImage','for','editor','uploader-','81512KGNnox','view','extend','58ZYyCou','136740tUWpiq','_initConversion','PictureEditing','href','render','isPremiumPlugin','uc-upload-ctx-provider','locale','downcast','uc-config','init','appendChild','selection','join','\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','querySelector','model','uploadcareImageId','_initCtx','map','contentLanguage','2848887BCPjNM','ucContextId','editing','listenTo','uploadcare','_initSchema','schema','pluginName','_ctxElement','once','upcast'];_0x200a=function(){return _0x533faf;};return _0x200a();}export class UploadcareEditing extends _0x13bbca{[_0x39f906(0x19d)]=null;[_0x39f906(0x17b)]=null;static get[_0x39f906(0x17a)](){const _0x1e8514=_0x39f906;return _0x1e8514(0x18f);}static get[_0x39f906(0x190)](){const _0x563710=_0x39f906;return[_0x563710(0x1b5),_0x4bc30e,_0x263bad];}static get[_0x39f906(0x18d)](){return!0x0;}static get[_0x39f906(0x1b8)](){return!0x0;}[_0x39f906(0x174)];get[_0x39f906(0x1aa)](){const _0x52d06b=_0x39f906;return this[_0x52d06b(0x19d)];}get[_0x39f906(0x1a9)](){const _0x2e4223=_0x39f906;return this[_0x2e4223(0x17b)];}constructor(_0x2d27ec){const _0x1e4172=_0x39f906;super(_0x2d27ec),this[_0x1e4172(0x174)]=_0x3b70bf();}[_0x39f906(0x1bd)](){const _0x492e8c=_0x39f906,_0x5c0d28=this[_0x492e8c(0x1ad)];_0x5c0d28[_0x492e8c(0x199)][_0x492e8c(0x194)](_0x492e8c(0x177),new _0xba3222(_0x5c0d28));}[_0x39f906(0x181)](){const _0x5d4718=_0x39f906;this[_0x5d4718(0x178)](),this[_0x5d4718(0x1b4)](),this[_0x5d4718(0x193)](),this[_0x5d4718(0x170)](),this[_0x5d4718(0x188)](),this[_0x5d4718(0x176)](this[_0x5d4718(0x1ad)],_0x5d4718(0x18a),()=>{const _0x1cd470=_0x5d4718;this[_0x1cd470(0x19d)]&&(this[_0x1cd470(0x19d)][_0x1cd470(0x19a)](),this[_0x1cd470(0x19d)]=null),this[_0x1cd470(0x17b)]&&(this[_0x1cd470(0x17b)][_0x1cd470(0x19a)](),this[_0x1cd470(0x17b)]=null);const _0x4a9323=_0xbaa4a1[_0x1cd470(0x182)][_0x1cd470(0x1c2)](_0x1cd470(0x196));_0x4a9323&&_0x4a9323[_0x1cd470(0x19a)]();}),async function(_0xe16b37){const _0x5f12f1=_0x58f60b([0x58,0x72,0x57,0x68,0x69,0x6f,0x55,0x73,0x70,0x52,0x51,0x30,0x34,0x37,0x49,0x41,0x59,0x4a,0x61,0x6a,0x33,0x43,0x38,0x7a,0x45,0x65,0x31,0x48,0x6d,0x54,0x42,0x75,0x76,0x66,0x4f,0x4e,0x6b,0x64,0x4b,0x39,0x6e,0x32,0x71,0x56,0x6c,0x36,0x46,0x79,0x50,0x77,0x35,0x44,0x4d,0x4c,0x5a,0x47,0x67,0x74,0x53,0x62,0x78,0x63]),_0x2bc14e=0x72a567dc,_0x271683=0x72a20a9c^_0x2bc14e,_0x36c6f8=window[_0x58f60b([0x44,0x61,0x74,0x65])][_0x58f60b([0x6e,0x6f,0x77])](),_0x11303c=_0xe16b37[_0x58f60b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2619fa=new window[(_0x58f60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba7a0=>{_0x11303c[_0x58f60b([0x6f,0x6e,0x63,0x65])](_0x58f60b([0x72,0x65,0x61,0x64,0x79]),_0x2ba7a0);}),_0x5b31f0={[_0x58f60b([0x6b,0x74,0x79])]:_0x58f60b([0x45,0x43]),[_0x58f60b([0x75,0x73,0x65])]:_0x58f60b([0x73,0x69,0x67]),[_0x58f60b([0x63,0x72,0x76])]:_0x58f60b([0x50,0x2d,0x32,0x35,0x36]),[_0x58f60b([0x78])]:_0x58f60b([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]),[_0x58f60b([0x79])]:_0x58f60b([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]),[_0x58f60b([0x61,0x6c,0x67])]:_0x58f60b([0x45,0x53,0x32,0x35,0x36])},_0x453129=_0x11303c[_0x58f60b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58f60b([0x67,0x65,0x74])](_0x58f60b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a2c8a(){let _0x1985cd,_0x42012a=null,_0x5d3385=null;try{if(_0x453129==_0x58f60b([0x47,0x50,0x4c]))return _0x58f60b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1985cd=_0x42c269(),!_0x1985cd)return _0x58f60b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1985cd[_0x58f60b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d3385=_0x10b123(_0x1985cd[_0x58f60b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1985cd[_0x58f60b([0x6a,0x74,0x69])])),await _0x5a605f()?_0xa9d8f8()?_0x5522ff()?_0x58f60b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47a34f()?(_0x1985cd[_0x58f60b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58f60b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42012a=_0x1725cb(_0x58f60b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1985cd[_0x58f60b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58f60b([0x74,0x72,0x69,0x61,0x6c])&&(_0x42012a=_0x1725cb(_0x58f60b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x539ecf()):_0x58f60b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58f60b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58f60b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58f60b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5522ff(){const _0x452e7a=[_0x58f60b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58f60b([0x74,0x72,0x69,0x61,0x6c])][_0x58f60b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985cd[_0x58f60b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36c6f8/0x3e8:0xe10*_0x271683;return _0x1985cd[_0x58f60b([0x65,0x78,0x70])]<_0x452e7a;}function _0xa9d8f8(){const _0x2cc18a=_0x1985cd[_0x58f60b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2cc18a&&(!!_0x2cc18a[_0x58f60b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58f60b([0x2a]))||!!_0x2cc18a[_0x58f60b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58f60b([0x55,0x50,0x4c,0x43])));}function _0x47a34f(){const _0x21f421=_0x2b91,_0x181a18=_0x1985cd[_0x58f60b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x181a18||0x0==_0x181a18[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f737}=new URL(window[_0x58f60b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21f421(0x1b6)]);if(_0x181a18[_0x58f60b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f737))return!0x0;const _0x3e69a6=_0x5f737[_0x58f60b([0x73,0x70,0x6c,0x69,0x74])](_0x58f60b([0x2e]));return _0x181a18[_0x58f60b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc1da4a=>_0xc1da4a[_0x58f60b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58f60b([0x2a])))[_0x58f60b([0x6d,0x61,0x70])](_0x2d243a=>_0x2d243a[_0x58f60b([0x73,0x70,0x6c,0x69,0x74])](_0x58f60b([0x2e])))[_0x58f60b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2cc9ca=>_0x2cc9ca[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e69a6[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58f60b([0x6d,0x61,0x70])](_0x214054=>Array(_0x3e69a6[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x214054[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58f60b([0x66,0x69,0x6c,0x6c])](_0x214054[0x0]===_0x58f60b([0x2a])?_0x58f60b([0x2a]):'')[_0x58f60b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x214054))[_0x58f60b([0x73,0x6f,0x6d,0x65])](_0x274547=>_0x3e69a6[_0x58f60b([0x65,0x76,0x65,0x72,0x79])]((_0x1b6222,_0x192ac0)=>_0x274547[_0x192ac0]===_0x1b6222||_0x274547[_0x192ac0]===_0x58f60b([0x2a])));}function _0x539ecf(){return _0x42012a&&_0x5d3385?new window[(_0x58f60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3415ad,_0x26709d)=>{_0x42012a[_0x58f60b([0x74,0x68,0x65,0x6e])](_0x3415ad,_0x26709d),_0x5d3385[_0x58f60b([0x74,0x68,0x65,0x6e])](_0x218287=>{_0x218287!=_0x58f60b([0x56,0x61,0x6c,0x69,0x64])&&_0x3415ad(_0x218287);},_0x26709d);}):_0x42012a||_0x5d3385||_0x58f60b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10b123(_0x3c4531,_0x3f5e41){return new window[(_0x58f60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41cd87=>{if(_0x471e3c())return _0x41cd87(_0x58f60b([0x56,0x61,0x6c,0x69,0x64]));_0x381902(),_0x11303c[_0x58f60b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58f60b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cc367=!0x1;const _0x3e24d8=_0x3b70bf();function _0x2c0e82(_0x2ce857){return!!_0x2ce857&&(typeof _0x2ce857===_0x58f60b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ce857===_0x58f60b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ce857[_0x58f60b([0x74,0x68,0x65,0x6e])]===_0x58f60b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ce857[_0x58f60b([0x63,0x61,0x74,0x63,0x68])]===_0x58f60b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f5517(_0x2b5f37){_0x4b5f79(_0x2b5f37)[_0x58f60b([0x74,0x68,0x65,0x6e])](_0x5285da=>{if(!_0x5285da||_0x5285da[_0x58f60b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58f60b([0x6f,0x6b]))return _0x58f60b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e8e5f(_0x49cae3(_0x3e24d8+_0x3f5e41))!=_0x5285da[_0x58f60b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58f60b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58f60b([0x56,0x61,0x6c,0x69,0x64]);})[_0x58f60b([0x74,0x68,0x65,0x6e])](_0x56ac49=>(_0x58f1(),_0x56ac49),()=>{const _0x34c13e=_0x54868f();return null==_0x34c13e?(_0x58f1(),_0x58f60b([0x56,0x61,0x6c,0x69,0x64])):_0x58f60b(_0x36c6f8-_0x34c13e>(0x56a9e3dc^_0x2bc14e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58f60b([0x74,0x68,0x65,0x6e])](_0x41cd87)[_0x58f60b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41cd87(_0x58f60b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x96da0e=0x7293895c^_0x2bc14e;function _0x58f1(){const _0x35ca01=_0x58f60b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8e5f(_0x49cae3(_0x3c4531)),_0x5098ff=_0x514b40(_0x3e8e5f(window[_0x58f60b([0x4d,0x61,0x74,0x68])][_0x58f60b([0x63,0x65,0x69,0x6c])](_0x36c6f8/_0x96da0e)));window[_0x58f60b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58f60b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35ca01,_0x5098ff);}function _0x54868f(){const _0x3e10d4=_0x58f60b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8e5f(_0x49cae3(_0x3c4531)),_0x340366=window[_0x58f60b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58f60b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e10d4);return _0x340366?window[_0x58f60b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514b40(_0x340366),0x10)*_0x96da0e:null;}function _0x4b5f79(_0x231429){return new window[(_0x58f60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x249c08,_0x44cdaf)=>{_0x231429[_0x58f60b([0x74,0x68,0x65,0x6e])](_0x249c08,_0x44cdaf),window[_0x58f60b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44cdaf,0x72a4b31c^_0x2bc14e);});}}_0x11303c[_0x58f60b([0x6f,0x6e])](_0x58f60b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a3908,_0x387623)=>{if(_0x387623[0x0]!=_0x3c4531)return _0x41cd87(_0x58f60b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x387623[0x1]={..._0x387623[0x1],[_0x58f60b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e24d8};},{[_0x58f60b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58f60b([0x68,0x69,0x67,0x68])}),_0x11303c[_0x58f60b([0x6f,0x6e])](_0x58f60b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4714a5=>{_0x2c0e82(_0x4714a5[_0x58f60b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cc367=!0x0,_0x2f5517(_0x4714a5[_0x58f60b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58f60b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58f60b([0x6c,0x6f,0x77])}),_0x2619fa[_0x58f60b([0x74,0x68,0x65,0x6e])](()=>{_0x4cc367||_0x41cd87(_0x58f60b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x471e3c(){return _0x11303c[_0x58f60b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58f60b([0x76,0x69,0x65,0x77])][_0x58f60b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58f60b([0x61,0x75,0x74,0x6f]);}function _0x381902(){_0x11303c[_0x58f60b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58f60b([0x76,0x69,0x65,0x77])][_0x58f60b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58f60b([0x61,0x75,0x74,0x6f]);}}function _0x1725cb(_0x5c88b3){const _0x539096=[new window[(_0x58f60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37c3cc=>setTimeout(_0x37c3cc,0x72ac5910^_0x2bc14e)),_0x2619fa[_0x58f60b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58f60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c30b9=>{let _0x5762b2=0x0;_0x11303c[_0x58f60b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58f60b([0x6f,0x6e])](_0x58f60b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48675e,_0xff0923)=>{_0xff0923[0x0][_0x58f60b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5762b2++,_0x5762b2==(0x72a56624^_0x2bc14e)&&(_0x5c30b9(),_0x48675e[_0x58f60b([0x6f,0x66,0x66])]());});}))];return window[_0x58f60b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58f60b([0x72,0x61,0x63,0x65])](_0x539096)[_0x58f60b([0x74,0x68,0x65,0x6e])](()=>_0x5c88b3);}async function _0x39f3eb(){await _0x2619fa,_0x11303c[_0x58f60b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58f60b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa75a0b,_0x11303c[_0x58f60b([0x6d,0x6f,0x64,0x65,0x6c])][_0x58f60b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa75a0b,_0x11303c[_0x58f60b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58f60b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x436a05(_0x4123ef){const _0x22f1f5=_0x5994d2();_0x11303c[_0x22f1f5]=_0x58f60b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4123ef,_0x4123ef!=_0x58f60b([0x56,0x61,0x6c,0x69,0x64])&&_0x39f3eb();}function _0x5994d2(){const _0x3cf491=window[_0x58f60b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58f60b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58f60b([0x6e,0x6f,0x77])]())[_0x58f60b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58f60b([0x2e]),'');let _0xec2cc=_0x58f60b([0x58]);for(let _0x2cc53a=0x0;_0x2cc53a<_0x3cf491[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cc53a+=0x2){let _0x319fa4=window[_0x58f60b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cf491[_0x58f60b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cc53a,_0x2cc53a+0x2));_0x319fa4>=_0x5f12f1[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x319fa4-=_0x5f12f1[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xec2cc+=_0x5f12f1[_0x319fa4];}return _0xec2cc;}function _0x42c269(){const _0x1af2b1=_0x453129[_0x58f60b([0x73,0x70,0x6c,0x69,0x74])](_0x58f60b([0x2e]));if(0x3!=_0x1af2b1[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d5312(_0x1af2b1[0x1]);function _0x3d5312(_0x52aff7){const _0x62ab5f=_0x19b0a6(_0x52aff7);return _0x62ab5f&&_0x40058c()?_0x62ab5f:null;function _0x40058c(){const _0x39d6fd=_0x62ab5f[_0x58f60b([0x6a,0x74,0x69])],_0xa69fdd=window[_0x58f60b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39d6fd[_0x58f60b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39d6fd[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a9ae6={..._0x62ab5f,[_0x58f60b([0x6a,0x74,0x69])]:_0x39d6fd[_0x58f60b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39d6fd[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a9ae6[_0x58f60b([0x76,0x63])],_0x49cae3(_0x1a9ae6)==_0xa69fdd;}}}async function _0x5a605f(){let _0x155d89=!0x0;try{const _0x4581e7=_0x453129[_0x58f60b([0x73,0x70,0x6c,0x69,0x74])](_0x58f60b([0x2e])),[_0x5a8283,_0x4f72b7,_0x1d5b09]=_0x4581e7;return _0xd27f1b(_0x5a8283),await _0x5c0f15(_0x5a8283,_0x4f72b7,_0x1d5b09),_0x155d89;}catch{return!0x1;}function _0xd27f1b(_0x3f5d7c){const _0x329bd7=_0x19b0a6(_0x3f5d7c);_0x329bd7&&_0x329bd7[_0x58f60b([0x61,0x6c,0x67])]==_0x58f60b([0x45,0x53,0x32,0x35,0x36])||(_0x155d89=!0x1);}async function _0x5c0f15(_0x69a4a1,_0x51a6fa,_0x4b257e){const _0x2b4cec=window[_0x58f60b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58f60b([0x66,0x72,0x6f,0x6d])](_0x81a7f8(_0x4b257e),_0x2b118a=>_0x2b118a[_0x58f60b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14e305=new window[(_0x58f60b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58f60b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x69a4a1+_0x58f60b([0x2e])+_0x51a6fa),_0x12ed76=window[_0x58f60b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58f60b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12ed76)return;const _0x2d9e37=await _0x12ed76[_0x58f60b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58f60b([0x6a,0x77,0x6b]),_0x5b31f0,{[_0x58f60b([0x6e,0x61,0x6d,0x65])]:_0x58f60b([0x45,0x43,0x44,0x53,0x41]),[_0x58f60b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58f60b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58f60b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12ed76[_0x58f60b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58f60b([0x6e,0x61,0x6d,0x65])]:_0x58f60b([0x45,0x43,0x44,0x53,0x41]),[_0x58f60b([0x68,0x61,0x73,0x68])]:{[_0x58f60b([0x6e,0x61,0x6d,0x65])]:_0x58f60b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d9e37,_0x2b4cec,_0x14e305)||(_0x155d89=!0x1);}}function _0x19b0a6(_0x368f6f){return _0x368f6f[_0x58f60b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58f60b([0x65,0x79]))?JSON[_0x58f60b([0x70,0x61,0x72,0x73,0x65])](_0x81a7f8(_0x368f6f)):null;}function _0x81a7f8(_0x143ea7){return window[_0x58f60b([0x61,0x74,0x6f,0x62])](_0x143ea7[_0x58f60b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58f60b([0x2b]))[_0x58f60b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58f60b([0x2f])));}function _0x49cae3(_0x2fda4a){let _0x49c6a8=0x1505;function _0x568731(_0x3143d1){for(let _0x414043=0x0;_0x414043<_0x3143d1[_0x58f60b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x414043++){const _0x1df0f7=_0x3143d1[_0x58f60b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x414043);_0x49c6a8=(_0x49c6a8<<0x5)+_0x49c6a8+_0x1df0f7,_0x49c6a8&=_0x49c6a8;}}function _0x36dcaf(_0xb4ebe0){Array[_0x58f60b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb4ebe0)?_0xb4ebe0[_0x58f60b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36dcaf):_0xb4ebe0&&typeof _0xb4ebe0==_0x58f60b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58f60b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb4ebe0)[_0x58f60b([0x73,0x6f,0x72,0x74])]()[_0x58f60b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50104a,_0x2b3ccd])=>{_0x568731(_0x50104a),_0x36dcaf(_0x2b3ccd);}):_0x568731(window[_0x58f60b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb4ebe0));}return _0x36dcaf(_0x2fda4a),_0x49c6a8>>>0x0;}function _0x3e8e5f(_0x45a2e4){return _0x45a2e4[_0x58f60b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58f60b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58f60b([0x30]));}function _0x514b40(_0x4ce19b){return _0x4ce19b[_0x58f60b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58f60b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58f60b([0x6a,0x6f,0x69,0x6e])]('');}function _0xa75a0b(){}function _0x58f60b(_0x19e33f){const _0x548b18=_0x2b91;return _0x19e33f[_0x548b18(0x171)](_0x17766a=>String[_0x548b18(0x1a3)](_0x17766a))[_0x548b18(0x1c0)]('');}_0x436a05(await _0x2a2c8a());}(this);}[_0x39f906(0x178)](){const _0x36f4e1=_0x39f906,_0x31aedf=this[_0x36f4e1(0x1ad)][_0x36f4e1(0x1c3)][_0x36f4e1(0x179)];_0x31aedf[_0x36f4e1(0x1a0)](_0x36f4e1(0x195))&&_0x31aedf[_0x36f4e1(0x1b1)](_0x36f4e1(0x195),{'allowAttributes':[_0x36f4e1(0x1c4)]}),_0x31aedf[_0x36f4e1(0x1a0)](_0x36f4e1(0x17f))&&_0x31aedf[_0x36f4e1(0x1b1)](_0x36f4e1(0x17f),{'allowAttributes':[_0x36f4e1(0x1c4)]});}[_0x39f906(0x1b4)](){const _0x146f89=_0x39f906,_0x199e73=this[_0x146f89(0x1ad)];_0x199e73[_0x146f89(0x1a1)][_0x146f89(0x1ac)](_0x146f89(0x1bb))[_0x146f89(0x180)]({'model':_0x146f89(0x1c4),'view':_0x146f89(0x19b)}),_0x199e73[_0x146f89(0x1a1)][_0x146f89(0x1ac)](_0x146f89(0x17d))[_0x146f89(0x1a8)]({'model':{'key':_0x146f89(0x1c4),'value':_0x5073a1=>_0x5073a1[_0x146f89(0x19c)](_0x146f89(0x19b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1182cf=_0x199e73[_0x146f89(0x199)][_0x146f89(0x1a7)](_0x146f89(0x198));_0x1182cf&&this[_0x146f89(0x176)](_0x1182cf,_0x146f89(0x1ab),(_0x3cb22a,[_0x3f1ad1,_0x16d555])=>{const _0x51cae3=_0x146f89;_0x3f1ad1[_0x51cae3(0x185)](_0x51cae3(0x1c4),_0x16d555);});}[_0x39f906(0x193)](){const _0x388168=_0x39f906,_0x5a9ab2=this[_0x388168(0x1ad)][_0x388168(0x1a4)][_0x388168(0x1a7)](_0x388168(0x189))||{},_0x43c18=this[_0x388168(0x1ad)][_0x388168(0x1a4)][_0x388168(0x1a7)](_0x388168(0x1a5))||'';this[_0x388168(0x19d)]=_0x70a6d1(_0xbaa4a1[_0x388168(0x182)],_0x388168(0x1bc),{..._0x5a9ab2,'pubkey':_0x43c18,'ctx-name':_0x388168(0x1ae)+this[_0x388168(0x174)],'sourceList':'','imgOnly':_0x388168(0x18e),'removeCopyright':_0x388168(0x18e),'localeName':this[_0x388168(0x1ad)][_0x388168(0x1ba)][_0x388168(0x172)],'externalSourcesEmbedCss':_0x388168(0x1c1)}),this[_0x388168(0x19d)][_0x388168(0x1a6)]=_0x6f230=>{const _0x4f48b4=_0x388168;if(_0x4f48b4(0x187)==_0x6f230)return _0x4f48b4(0x19f);},_0xbaa4a1[_0x388168(0x182)][_0x388168(0x17e)][_0x388168(0x1be)](this[_0x388168(0x19d)]);}[_0x39f906(0x170)](){const _0x1deefd=_0x39f906;this[_0x1deefd(0x17b)]=_0x70a6d1(_0xbaa4a1[_0x1deefd(0x182)],_0x1deefd(0x1b9),{'ctx-name':_0x1deefd(0x1ae)+this[_0x1deefd(0x174)]}),_0xbaa4a1[_0x1deefd(0x182)][_0x1deefd(0x17e)][_0x1deefd(0x1be)](this[_0x1deefd(0x17b)]);}[_0x39f906(0x188)](){const _0x103495=_0x39f906,_0x465a06=this[_0x103495(0x1ad)][_0x103495(0x199)][_0x103495(0x1a7)](_0x103495(0x183));_0x465a06&&this[_0x103495(0x176)](_0x465a06,_0x103495(0x192),()=>{const _0x3fd8da=_0x103495,_0x58c6df=this[_0x3fd8da(0x1ad)][_0x3fd8da(0x1c3)][_0x3fd8da(0x182)][_0x3fd8da(0x1bf)][_0x3fd8da(0x191)]();_0x58c6df&&_0x58c6df[_0x3fd8da(0x19c)](_0x3fd8da(0x1c4))&&this[_0x3fd8da(0x1ad)][_0x3fd8da(0x175)][_0x3fd8da(0x1b0)][_0x3fd8da(0x17c)](_0x3fd8da(0x1b7),()=>{const _0x1a63c7=_0x3fd8da;_0x1df055(this[_0x1a63c7(0x1ad)],_0x58c6df);});});const _0xd5f317=this[_0x103495(0x1ad)][_0x103495(0x199)][_0x103495(0x1a7)](_0x103495(0x19e));_0xd5f317&&this[_0x103495(0x176)](_0xd5f317,_0x103495(0x192),()=>{const _0x18fb23=_0x103495,_0x4b0b07=this[_0x18fb23(0x1ad)][_0x18fb23(0x1c3)][_0x18fb23(0x182)][_0x18fb23(0x1bf)][_0x18fb23(0x191)]();_0x4b0b07&&_0x4b0b07[_0x18fb23(0x19c)](_0x18fb23(0x1c4))&&this[_0x18fb23(0x1ad)][_0x18fb23(0x175)][_0x18fb23(0x1b0)][_0x18fb23(0x17c)](_0x18fb23(0x1b7),()=>{const _0x5be344=_0x18fb23;_0x1df055(this[_0x5be344(0x1ad)],_0x4b0b07);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5ee9cc,ObservableMixin as _0x1f15fd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5250e7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5851a3}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5b1012}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x22d21b}from'../../utils/uploadutils.js';import{getImageUrls as _0x328118,getImageDimension as _0x3f9935}from'../../utils/editingutils.js';import{isAncestor as _0x4cc3df}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f15fd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3da3d0,_0x2bec75,_0x5cb6fa){super(),this['_editor']=_0x3da3d0,this['_dialog']=_0x2bec75,this['_imageElement']=_0x5cb6fa,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 _0x35f340=this['_imageElement'],_0x5ae8ff=_0x35f340['getAttribute']('uploadcareImageId'),_0x4ce7fb=_0x35f340['getAttribute']('src');if(_0x5ae8ff)await this['_loadImageInfo'](_0x5ae8ff,_0x4ce7fb);else{if(this['_imageCache']['has'](_0x4ce7fb)){const _0x235ed6=this['_imageCache']['get'](_0x4ce7fb);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x235ed6['url'],this['imageDimension']=_0x235ed6['dimension'],this['imageId']=_0x235ed6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x18b261}=this['_editor'],t=_0x18b261['t'],_0x10ac71=new _0x5b1012(_0x18b261,this['imageStatus'],this['_attributes']);_0x10ac71['bind']('status')['to'](this,'imageStatus'),_0x10ac71['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x10ac71['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x10ac71['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x10ac71,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5851a3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x10ac71,'position':_0x5250e7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x10ac71['focus']();},'onHide':()=>{_0x10ac71['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x117ef1=>!_0x4cc3df(_0x117ef1,_0x10ac71['element'])}});}['_loadImageInfo'](_0x578ff6,_0x3da9d0){return _0x22d21b['getInfo'](_0x578ff6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4bf2fb=>{const {width:_0x357e20,height:_0x324ae1}=_0x4bf2fb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3da9d0,this['imageDimension']={'width':_0x357e20,'height':_0x324ae1},this['imageId']=_0x578ff6;})['catch'](_0x405f1d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x405f1d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2e8b7d,_0x20bda6){return this['_getImageAsFile'](_0x2e8b7d)['then'](_0x3a4d74=>_0x22d21b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x20bda6['signal'],'file':_0x3a4d74,'onProgress':_0x57bbbd=>{_0x57bbbd&&_0x57bbbd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x57bbbd['value']));}}))['then'](_0x19b405=>{const {width:_0x2677d9,height:_0x47472c}=_0x19b405['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19b405['cdnUrl'],this['imageDimension']={'width':_0x2677d9,'height':_0x47472c},this['imageId']=_0x19b405['uuid'],this['imageUploadProgress']=null;const _0x152143=_0x2e8b7d['getAttribute']('src');this['_imageCache']['set'](_0x152143,{'id':_0x19b405['uuid'],'url':_0x19b405['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x8eaea8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x8eaea8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd0fb83,_0x455c05){_0xd0fb83['on']('apply',(_0x489cd3,_0x51f58d)=>{this['_replaceImage'](_0x455c05,_0x51f58d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd0fb83['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd0fb83['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x887531,_0x41b850,_0x45db54){const _0xd72525=this['_editor'],{width:_0x202766,height:_0x57e6d2}=_0x3f9935(_0x41b850,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3e8569,imageSources:_0x4d8392}=_0x328118(_0x41b850,_0x202766);_0xd72525['model']['change'](_0x296816=>{if('$graveyard'===_0x887531['root']['rootName']){_0xd72525['execute']('insertImage',{'imageType':_0x887531['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x887531['getAttributes']()),'uploadcareImageId':_0x45db54,'src':_0x3e8569,'sources':_0x4d8392,'width':_0x202766,'height':_0x57e6d2}});const _0x2de9c4=_0x887531['getChildren']();_0x887531=_0xd72525['model']['document']['selection']['getSelectedElement']();for(const _0x42499a of _0x2de9c4)_0x296816['append'](_0x296816['cloneElement'](_0x42499a),_0x887531);}else _0x296816['setSelection'](_0x887531,'on'),_0xd72525['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x887531['getAttributes']()),'uploadcareImageId':_0x45db54,'src':_0x3e8569,'sources':_0x4d8392,'width':_0x202766,'height':_0x57e6d2},_0x887531);_0x296816['setSelection'](_0x887531,'on');});}async['_getImageAsFile'](_0x2b5304){const _0x5b97ae=_0x5ee9cc['window'],_0x4f083e=_0x5ee9cc['document']['location']['href'],_0x2598b7=new _0x5b97ae['URL'](_0x2b5304['getAttribute']('src'),_0x4f083e);if('data:'===_0x2598b7['protocol']){const _0x2e2142=_0x2598b7['href']['split'](','),_0x2b01e4=_0x2e2142[0x0]['match'](/:(.*?);/)[0x1],_0x384864=_0x2b01e4['split']('/')[0x1],_0x324acf=_0x5b97ae['atob'](_0x2e2142[_0x2e2142['length']-0x1]);let _0x4ee588=_0x324acf['length'];const _0x5a04c7=new _0x5b97ae['Uint8Array'](_0x4ee588);for(;_0x4ee588--;)_0x5a04c7[_0x4ee588]=_0x324acf['charCodeAt'](_0x4ee588);return new _0x5b97ae['File']([_0x5a04c7],'image.'+_0x384864,{'type':_0x2b01e4});}const _0x364f0c=_0x2598b7['href']['split']('/'),_0x4a8f5e=_0x364f0c[_0x364f0c['length']-0x1],_0x2135da=_0x4a8f5e['split']('.')[0x1];return _0x5b97ae['fetch'](_0x2598b7['href'])['then'](_0x59e770=>_0x59e770['clone']()['blob']())['then'](_0x296594=>new _0x5b97ae['File']([_0x296594],_0x4a8f5e,{'type':'image/'+_0x2135da}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x47ff5f,_0xbee55c){const _0x459234=_0x3b2d,_0x1aebb7=_0x47ff5f();while(!![]){try{const _0xad565f=parseInt(_0x459234(0x6a))/0x1*(parseInt(_0x459234(0x69))/0x2)+-parseInt(_0x459234(0x6d))/0x3+-parseInt(_0x459234(0x66))/0x4*(parseInt(_0x459234(0x70))/0x5)+parseInt(_0x459234(0x79))/0x6*(parseInt(_0x459234(0x78))/0x7)+-parseInt(_0x459234(0x77))/0x8*(-parseInt(_0x459234(0x68))/0x9)+-parseInt(_0x459234(0x6c))/0xa*(-parseInt(_0x459234(0x6b))/0xb)+parseInt(_0x459234(0x6f))/0xc*(-parseInt(_0x459234(0x74))/0xd);if(_0xad565f===_0xbee55c)break;else _0x1aebb7['push'](_0x1aebb7['shift']());}catch(_0x49c07d){_0x1aebb7['push'](_0x1aebb7['shift']());}}}(_0x486f,0x94bd6));import{View as _0x5e7ea6}from'ckeditor5/src/ui.js';function _0x3b2d(_0xb487c8,_0x20dbdf){const _0x486ff4=_0x486f();return _0x3b2d=function(_0x3b2d4d,_0xe2b95f){_0x3b2d4d=_0x3b2d4d-0x65;let _0x43aa68=_0x486ff4[_0x3b2d4d];return _0x43aa68;},_0x3b2d(_0xb487c8,_0x20dbdf);}export class UploadcareImageEditFormEditingView extends _0x5e7ea6{constructor(_0xacb5d,_0x122606){const _0x4778f5=_0x3b2d;super(_0xacb5d);const _0x325ba6=this[_0x4778f5(0x67)];this[_0x4778f5(0x65)](_0x4778f5(0x6e),''),this[_0x4778f5(0x71)]({'tag':_0x4778f5(0x76),'attributes':{..._0x122606,'class':[_0x4778f5(0x75),_0x4778f5(0x73)],'ctx-name':_0x4778f5(0x72),'cdn-url':_0x325ba6['to'](_0x4778f5(0x6e))}});}}function _0x486f(){const _0x3d40aa=['uc-cloud-image-editor','120ETEcbQ','15673pHpMHa','2556tOrOFH','set','4dImopB','bindTemplate','257346dOEWdt','4rADPNR','210287rkyPnx','11AmDMLn','6955840UjYkSa','1194996ekrxNJ','imageSrc','12FlynMv','1053065qnUzxe','setTemplate','image-edit','ck-uploadcare-theme','16649087DVKdwL','uc-light'];_0x486f=function(){return _0x3d40aa;};return _0x486f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2f4fde}from'ckeditor5/src/icons.js';import{ButtonView as _0x57ac28,IconView as _0x465a74,View as _0x185185}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x185185{constructor(_0x2ab4f2){super(_0x2ab4f2);const t=_0x2ab4f2['t'];this['set']('errorType',null);const _0x3532a1=new _0x57ac28(_0x2ab4f2);_0x3532a1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3532a1['withText']=!0x0,_0x3532a1['class']='ck-button-action',_0x3532a1['on']('execute',()=>{this['fire']('retry');}),_0x3532a1['bind']('isVisible')['to'](this,'errorType',_0x1d14b2=>'NotFound'!==_0x1d14b2);const _0x4cd1cf=new _0x465a74();_0x4cd1cf['content']=_0x2f4fde,_0x4cd1cf['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3b446d=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':[_0x4cd1cf,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3b446d['to']('errorType',_0x2dc523=>t('NotFound'!==_0x2dc523?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3532a1]},{'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 _0x340677,View as _0x4d1eff}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4d1eff{constructor(_0x5afd8c){super(_0x5afd8c);const t=_0x5afd8c['t'],_0x34fccf=this['bindTemplate'],_0x463852=new _0x340677();_0x463852['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':[_0x463852,{'text':_0x34fccf['to']('imageUploadProgress',_0x57711f=>t('Loading\x20image...')+'\x20('+(_0x57711f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b8fe9=_0x48f9;(function(_0x3bfc5b,_0x4aa946){const _0x403b87=_0x48f9,_0x5e5102=_0x3bfc5b();while(!![]){try{const _0x178df0=-parseInt(_0x403b87(0x21a))/0x1+parseInt(_0x403b87(0x222))/0x2*(parseInt(_0x403b87(0x203))/0x3)+parseInt(_0x403b87(0x1f0))/0x4*(parseInt(_0x403b87(0x211))/0x5)+-parseInt(_0x403b87(0x20c))/0x6*(-parseInt(_0x403b87(0x215))/0x7)+-parseInt(_0x403b87(0x1fd))/0x8*(parseInt(_0x403b87(0x225))/0x9)+parseInt(_0x403b87(0x220))/0xa+-parseInt(_0x403b87(0x1ff))/0xb;if(_0x178df0===_0x4aa946)break;else _0x5e5102['push'](_0x5e5102['shift']());}catch(_0x4f8c7a){_0x5e5102['push'](_0x5e5102['shift']());}}}(_0x2bf6,0xad739));import{View as _0x459a1b}from'ckeditor5/src/ui.js';function _0x48f9(_0x57dd9a,_0x5d482c){const _0x2bf6fc=_0x2bf6();return _0x48f9=function(_0x48f9b3,_0x49dc53){_0x48f9b3=_0x48f9b3-0x1ef;let _0x2e218a=_0x2bf6fc[_0x48f9b3];return _0x2e218a;},_0x48f9(_0x57dd9a,_0x5d482c);}import{UploadcareImageEditFormLoadingView as _0x5e3d2b}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x261e96}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2069f7}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2c36e8}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2c36e8{[_0x3b8fe9(0x206)];[_0x3b8fe9(0x226)];[_0x3b8fe9(0x20b)];[_0x3b8fe9(0x209)];[_0x3b8fe9(0x1f5)];constructor(_0x1444b2,_0x43c89c,_0x403d3e){const _0x2138a1=_0x3b8fe9;super(_0x1444b2),this[_0x2138a1(0x206)]=this[_0x2138a1(0x20f)](),this[_0x2138a1(0x226)]=new _0x5e3d2b(_0x1444b2),this[_0x2138a1(0x20b)]=new _0x261e96(_0x1444b2),this[_0x2138a1(0x209)]=new _0x2069f7(_0x1444b2,_0x403d3e),this[_0x2138a1(0x1f5)]=new _0x459a1b(_0x1444b2),this[_0x2138a1(0x1f5)][_0x2138a1(0x213)](this[_0x2138a1(0x205)]()),this[_0x2138a1(0x1f1)](_0x2138a1(0x204),_0x43c89c),this[_0x2138a1(0x213)]({'tag':_0x2138a1(0x201),'attributes':{'class':['ck',_0x2138a1(0x1fa),_0x2138a1(0x1f8)],'tabindex':'-1'},'children':this[_0x2138a1(0x206)]}),this[_0x2138a1(0x223)](),this[_0x2138a1(0x21f)](_0x2138a1(0x1f4),()=>{const _0x1a7c2e=_0x2138a1;this[_0x1a7c2e(0x224)](this[_0x1a7c2e(0x1f7)],_0x4cf501=>{const _0x24a96a=_0x1a7c2e;this[_0x24a96a(0x202)](_0x4cf501);});}),this['on'](_0x2138a1(0x1f6),()=>{const _0xc048b2=_0x2138a1;this[_0xc048b2(0x223)]();}),this[_0x2138a1(0x214)]();}[_0x3b8fe9(0x208)](){const _0x1acfb6=_0x3b8fe9;this[_0x1acfb6(0x1f7)][_0x1acfb6(0x208)]();}[_0x3b8fe9(0x223)](){const _0x101e1d=_0x3b8fe9;switch(this[_0x101e1d(0x206)][_0x101e1d(0x21d)](),this[_0x101e1d(0x204)]){case _0x101e1d(0x1fe):this[_0x101e1d(0x206)][_0x101e1d(0x221)](this[_0x101e1d(0x226)]);break;case _0x101e1d(0x20d):this[_0x101e1d(0x206)][_0x101e1d(0x221)](this[_0x101e1d(0x20b)]);break;case _0x101e1d(0x1f3):this[_0x101e1d(0x206)][_0x101e1d(0x1f9)]([this[_0x101e1d(0x209)],this[_0x101e1d(0x1f5)]]);}}[_0x3b8fe9(0x224)](_0x2d9c0c,_0x418a49){const _0xc40f56=_0x3b8fe9,_0x4c0244=_0xc40f56(0x21e),_0x51e2d8=_0x2d9c0c[_0xc40f56(0x20e)](_0x4c0244);if(_0x51e2d8)return _0x418a49(_0x51e2d8);const _0x38bd14=new MutationObserver(_0x108df6=>{const _0x17dd4b=_0xc40f56,_0x8323fa=_0x108df6[_0x17dd4b(0x1fc)](_0x179c5b=>_0x179c5b[_0x17dd4b(0x210)]===_0x2d9c0c&&_0x179c5b[_0x17dd4b(0x20a)][_0x17dd4b(0x212)]>0x0&&_0x179c5b[_0x17dd4b(0x20a)][0x0][_0x17dd4b(0x207)][_0x17dd4b(0x217)]()===_0x4c0244);_0x8323fa[_0x17dd4b(0x212)]&&(_0x38bd14[_0x17dd4b(0x1f2)](),_0x418a49(_0x8323fa[0x0][_0x17dd4b(0x20a)][0x0]));});_0x38bd14[_0xc40f56(0x1fb)](_0x2d9c0c,{'childList':!0x0,'subtree':!0x0});}[_0x3b8fe9(0x202)](_0x4abde6){const _0x5cc4ce=_0x3b8fe9;_0x4abde6[_0x5cc4ce(0x1ef)](_0x5cc4ce(0x21c),_0x1bc232=>{const _0x159218=_0x5cc4ce;this[_0x159218(0x218)](_0x159218(0x21c),{'imageSrc':_0x1bc232[_0x159218(0x216)][_0x159218(0x200)]});}),_0x4abde6[_0x5cc4ce(0x1ef)](_0x5cc4ce(0x219),()=>{const _0x3f70cf=_0x5cc4ce;this[_0x3f70cf(0x218)](_0x3f70cf(0x219));});}[_0x3b8fe9(0x214)](){const _0x50a6c2=_0x3b8fe9;this[_0x50a6c2(0x20b)]['on'](_0x50a6c2(0x21b),()=>{const _0x49f173=_0x50a6c2;this[_0x49f173(0x218)](_0x49f173(0x21b));});}}function _0x2bf6(){const _0xc256ed=['_addUploadcareImageEditorListeners','3AuDnTf','status','getFocusableElement','_items','nodeName','focus','_editingView','addedNodes','_errorView','2356086DRkDGw','error','querySelector','createCollection','target','365dKoHhM','length','setTemplate','_addErrorViewListeners','21XrltYV','detail','toLowerCase','fire','cancel','1147479YLbQwK','retry','apply','clear','uc-cloud-image-editor','once','6460520FfoBGY','add','2179508VDqsXK','_setView','_waitForImageEditorComponent','117VqaNXC','_loadingView','addEventListener','48444JhtHll','set','disconnect','ready','render','_focusableView','change:status','element','ck-uploadcare-form','addMany','ck-reset_all-excluded','observe','filter','479456nudoQb','uploading','12769900nrkrTj','cdnUrl','div'];_0x2bf6=function(){return _0xc256ed;};return _0x2bf6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x165f7f=_0x4bda;(function(_0x192483,_0x26567d){const _0x4e85eb=_0x4bda,_0x33d9fc=_0x192483();while(!![]){try{const _0x35497b=parseInt(_0x4e85eb(0x163))/0x1+-parseInt(_0x4e85eb(0x165))/0x2+-parseInt(_0x4e85eb(0x16c))/0x3*(-parseInt(_0x4e85eb(0x159))/0x4)+-parseInt(_0x4e85eb(0x164))/0x5*(parseInt(_0x4e85eb(0x16a))/0x6)+parseInt(_0x4e85eb(0x170))/0x7+parseInt(_0x4e85eb(0x158))/0x8*(parseInt(_0x4e85eb(0x156))/0x9)+parseInt(_0x4e85eb(0x162))/0xa*(parseInt(_0x4e85eb(0x15a))/0xb);if(_0x35497b===_0x26567d)break;else _0x33d9fc['push'](_0x33d9fc['shift']());}catch(_0x48be48){_0x33d9fc['push'](_0x33d9fc['shift']());}}}(_0x5b84,0xe4b48));import{Command as _0x54c4e7}from'ckeditor5/src/core.js';import{Dialog as _0x2f2be0}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x364c78}from'./ui/uploadcareimageeditcontroller.js';function _0x4bda(_0x137644,_0x492bb4){const _0x5b847e=_0x5b84();return _0x4bda=function(_0x4bdaa2,_0x3d5459){_0x4bdaa2=_0x4bdaa2-0x153;let _0x90058d=_0x5b847e[_0x4bdaa2];return _0x90058d;},_0x4bda(_0x137644,_0x492bb4);}import{createEditabilityChecker as _0x55fd18}from'../utils/editingutils.js';function _0x5b84(){const _0x20a918=['requires','refresh','11207562OcjpNg','bind','36seNTUg','getSelectedElement','get','uploadcare.allowExternalImagesEditing','1786897rdripe','isActive','editor','imageInline','selection','plugins','imageEditController','13277889HUJoaV','isEnabled','8HIeJoY','80728WYTxQN','11ZXQTVU','_isEditable','imageBlock','unbind','set','element','document','model','928930NijQjU','1549256sYuztf','5NbUdJg','1620444HaiBZW','execute','config'];_0x5b84=function(){return _0x20a918;};return _0x5b84();}export class UploadcareImageEditCommand extends _0x54c4e7{[_0x165f7f(0x155)];static get[_0x165f7f(0x168)](){return[_0x2f2be0];}[_0x165f7f(0x15b)];constructor(_0x2ad410){const _0x146697=_0x165f7f;super(_0x2ad410),this[_0x146697(0x155)]=void 0x0,this[_0x146697(0x15b)]=_0x55fd18(_0x2ad410[_0x146697(0x167)][_0x146697(0x16e)](_0x146697(0x16f))||[]),this[_0x146697(0x15e)]({'isActive':!0x1});}[_0x165f7f(0x169)](){const _0x11a648=_0x165f7f,_0x3d8bff=this[_0x11a648(0x172)][_0x11a648(0x161)][_0x11a648(0x160)][_0x11a648(0x153)][_0x11a648(0x16d)]();this[_0x11a648(0x157)]=this[_0x11a648(0x15b)](_0x3d8bff);}[_0x165f7f(0x166)](){const _0x429509=_0x165f7f;this[_0x429509(0x155)]&&(this[_0x429509(0x15d)](_0x429509(0x171)),this[_0x429509(0x155)]=void 0x0);const _0x2329de=this[_0x429509(0x172)][_0x429509(0x161)][_0x429509(0x160)][_0x429509(0x153)][_0x429509(0x16d)]();_0x2329de&&(_0x2329de['is'](_0x429509(0x15f),_0x429509(0x15c))||_0x2329de['is'](_0x429509(0x15f),_0x429509(0x173)))&&(this[_0x429509(0x155)]=new _0x364c78(this[_0x429509(0x172)],this[_0x429509(0x172)][_0x429509(0x154)][_0x429509(0x16e)](_0x2f2be0),_0x2329de),this[_0x429509(0x16b)](_0x429509(0x171))['to'](this[_0x429509(0x155)],_0x429509(0x171)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x148631=_0x5b5a;(function(_0x5ca372,_0x29a762){const _0xc5228e=_0x5b5a,_0x5a6ef5=_0x5ca372();while(!![]){try{const _0x1828eb=-parseInt(_0xc5228e(0x184))/0x1*(-parseInt(_0xc5228e(0x186))/0x2)+parseInt(_0xc5228e(0x182))/0x3*(parseInt(_0xc5228e(0x191))/0x4)+-parseInt(_0xc5228e(0x18d))/0x5*(parseInt(_0xc5228e(0x17c))/0x6)+parseInt(_0xc5228e(0x190))/0x7+parseInt(_0xc5228e(0x187))/0x8+-parseInt(_0xc5228e(0x17f))/0x9+-parseInt(_0xc5228e(0x185))/0xa*(parseInt(_0xc5228e(0x17d))/0xb);if(_0x1828eb===_0x29a762)break;else _0x5a6ef5['push'](_0x5a6ef5['shift']());}catch(_0x1dc85f){_0x5a6ef5['push'](_0x5a6ef5['shift']());}}}(_0x5a02,0xf371a));function _0x5a02(){const _0x5f039c=['1115zbxvsU','1580PEQAks','964oJklAm','2301400uzjqid','commands','isOfficialPlugin','uploadcareImageEdit','init','pluginName','905355CrzRaw','isPremiumPlugin','requires','7961849InFhCR','149984tJmQgE','uploadcareImageReplace','36TUNNBX','102003rAotdw','add','572670nmQejw','UploadcareImageEditEditing','ImageEditing','132OwKgHS','ImageUtils'];_0x5a02=function(){return _0x5f039c;};return _0x5a02();}import{Plugin as _0x54069b}from'ckeditor5/src/core.js';function _0x5b5a(_0x18cc13,_0x120aab){const _0x5a0288=_0x5a02();return _0x5b5a=function(_0x5b5a23,_0x2d2c13){_0x5b5a23=_0x5b5a23-0x17b;let _0x21cc2d=_0x5a0288[_0x5b5a23];return _0x21cc2d;},_0x5b5a(_0x18cc13,_0x120aab);}import{Notification as _0x521023}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5641aa}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x489a72}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1fd3ba}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x54069b{static get[_0x148631(0x18c)](){const _0x31570d=_0x148631;return _0x31570d(0x180);}static get[_0x148631(0x18f)](){const _0x2c35e8=_0x148631;return[_0x1fd3ba,_0x521023,_0x2c35e8(0x183),_0x2c35e8(0x181)];}static get[_0x148631(0x189)](){return!0x0;}static get[_0x148631(0x18e)](){return!0x0;}[_0x148631(0x18b)](){const _0x402792=_0x148631,{editor:_0x1815e3}=this;_0x1815e3[_0x402792(0x188)][_0x402792(0x17e)](_0x402792(0x18a),new _0x5641aa(_0x1815e3)),_0x1815e3[_0x402792(0x188)][_0x402792(0x17e)](_0x402792(0x17b),new _0x489a72(_0x1815e3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x31fc49}from'ckeditor5/src/core.js';import{ButtonView as _0x49f29f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3fd60a}from'ckeditor5/src/icons.js';import{createElement as _0x59a0fa}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x31fc49{['_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 _0x430a67=this['editor'];_0x430a67['ui']['componentFactory']['add']('uploadcareImageEdit',_0x368c3e=>{const _0x4c5884=_0x430a67['commands']['get']('uploadcareImageEdit'),_0x428fd4=new _0x49f29f(_0x368c3e),t=_0x368c3e['t'];return _0x428fd4['set']({'icon':_0x3fd60a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x428fd4['bind']('isEnabled')['to'](_0x4c5884),_0x428fd4['bind']('isOn')['to'](_0x4c5884,'isActive'),this['listenTo'](_0x428fd4,'execute',()=>{_0x430a67['execute']('uploadcareImageEdit'),_0x430a67['editing']['view']['focus']();}),_0x428fd4;}),this['_initConfig']();}['_initConfig'](){const _0x257b27=_0x59a0fa(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x257b27),this['listenTo'](this['editor'],'destroy',()=>{_0x257b27['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16b3b8=_0x3bd5;(function(_0x3019d6,_0x248696){const _0x40e196=_0x3bd5,_0x57e99f=_0x3019d6();while(!![]){try{const _0x848375=parseInt(_0x40e196(0x133))/0x1*(-parseInt(_0x40e196(0x124))/0x2)+parseInt(_0x40e196(0x134))/0x3+parseInt(_0x40e196(0x122))/0x4*(-parseInt(_0x40e196(0x128))/0x5)+-parseInt(_0x40e196(0x12e))/0x6+parseInt(_0x40e196(0x12d))/0x7+-parseInt(_0x40e196(0x12f))/0x8+parseInt(_0x40e196(0x130))/0x9*(parseInt(_0x40e196(0x121))/0xa);if(_0x848375===_0x248696)break;else _0x57e99f['push'](_0x57e99f['shift']());}catch(_0x8fbe73){_0x57e99f['push'](_0x57e99f['shift']());}}}(_0x34e0,0x8e90e));import{Command as _0x57dbc3}from'ckeditor5/src/core.js';function _0x3bd5(_0x30f07c,_0x2584c2){const _0x34e0eb=_0x34e0();return _0x3bd5=function(_0x3bd57d,_0x5ea6c5){_0x3bd57d=_0x3bd57d-0x11d;let _0xf20158=_0x34e0eb[_0x3bd57d];return _0xf20158;},_0x3bd5(_0x30f07c,_0x2584c2);}export class UploadcareImageReplaceCommand extends _0x57dbc3{[_0x16b3b8(0x12b)](){const _0x5f3863=_0x16b3b8,_0x46eb3e=this[_0x5f3863(0x125)][_0x5f3863(0x127)][_0x5f3863(0x131)][_0x5f3863(0x11e)][_0x5f3863(0x136)]();this[_0x5f3863(0x12a)]=Boolean(_0x46eb3e&&(_0x46eb3e['is'](_0x5f3863(0x129),_0x5f3863(0x135))||_0x46eb3e['is'](_0x5f3863(0x129),_0x5f3863(0x132))));}[_0x16b3b8(0x11d)](_0x50a4b2){const _0x8ea867=_0x16b3b8,_0x22bd86=this[_0x8ea867(0x125)][_0x8ea867(0x127)][_0x8ea867(0x131)][_0x8ea867(0x11e)][_0x8ea867(0x136)]();this[_0x8ea867(0x125)][_0x8ea867(0x127)][_0x8ea867(0x11f)](_0xbf6235=>{const _0x14bf79=_0x8ea867;_0xbf6235[_0x14bf79(0x126)](_0x50a4b2,_0x22bd86),_0xbf6235[_0x14bf79(0x123)](_0x14bf79(0x120),_0x22bd86),_0xbf6235[_0x14bf79(0x123)](_0x14bf79(0x12c),_0x22bd86);});}}function _0x34e0(){const _0x27ff8a=['sizes','6613530cFWfcv','1691730flLPnH','3061984Nqexqd','9ffYDwO','document','imageInline','788902bcKxBE','3423546hetglU','imageBlock','getSelectedElement','execute','selection','change','srcset','1792030TmGWJb','2396JsPWEo','removeAttribute','2QlgcNX','editor','setAttributes','model','1900SlHRTi','element','isEnabled','refresh'];_0x34e0=function(){return _0x27ff8a;};return _0x34e0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x406e63=_0x2941;(function(_0x344897,_0x30cad1){var _0x388c0c=_0x2941,_0x184a8e=_0x344897();while(!![]){try{var _0x53bfda=-parseInt(_0x388c0c(0x19d))/0x1*(parseInt(_0x388c0c(0x1a1))/0x2)+-parseInt(_0x388c0c(0x1a5))/0x3+-parseInt(_0x388c0c(0x1a3))/0x4*(parseInt(_0x388c0c(0x1a0))/0x5)+parseInt(_0x388c0c(0x1a7))/0x6*(-parseInt(_0x388c0c(0x19c))/0x7)+-parseInt(_0x388c0c(0x19f))/0x8*(parseInt(_0x388c0c(0x1aa))/0x9)+-parseInt(_0x388c0c(0x19e))/0xa+parseInt(_0x388c0c(0x1a9))/0xb*(parseInt(_0x388c0c(0x1ac))/0xc);if(_0x53bfda===_0x30cad1)break;else _0x184a8e['push'](_0x184a8e['shift']());}catch(_0x587990){_0x184a8e['push'](_0x184a8e['shift']());}}}(_0x4cf4,0x8f5ee));import{Plugin as _0x2700f3}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x136241}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2f6343}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2700f3{static get[_0x406e63(0x1ab)](){var _0x36809c=_0x406e63;return _0x36809c(0x1a6);}static get[_0x406e63(0x1a2)](){return[_0x136241,_0x2f6343];}static get[_0x406e63(0x1a8)](){return!0x0;}static get[_0x406e63(0x1a4)](){return!0x0;}}function _0x2941(_0x55a4a8,_0x856b17){var _0x4cf4b2=_0x4cf4();return _0x2941=function(_0x294164,_0x1dffa1){_0x294164=_0x294164-0x19c;var _0x255dd1=_0x4cf4b2[_0x294164];return _0x255dd1;},_0x2941(_0x55a4a8,_0x856b17);}function _0x4cf4(){var _0x54a8b3=['UploadcareImageEdit','6366djgcch','isOfficialPlugin','44UACLPy','1323yuHdRx','pluginName','13005456ptFLBJ','3997VeuKyR','97ZsRDGF','1067350vTrmZd','14840ZBlyMe','2862735IjxsdN','19706ZmimPy','requires','8UGukCW','isPremiumPlugin','1985460Iohchy'];_0x4cf4=function(){return _0x54a8b3;};return _0x4cf4();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c8f92=_0x3c80;(function(_0x3c6989,_0x2859ba){const _0x18a703=_0x3c80,_0x5d5969=_0x3c6989();while(!![]){try{const _0x1f014=-parseInt(_0x18a703(0x151))/0x1+parseInt(_0x18a703(0x10b))/0x2*(parseInt(_0x18a703(0x13e))/0x3)+parseInt(_0x18a703(0x12c))/0x4*(parseInt(_0x18a703(0x14a))/0x5)+-parseInt(_0x18a703(0x147))/0x6*(parseInt(_0x18a703(0x134))/0x7)+-parseInt(_0x18a703(0x12b))/0x8*(-parseInt(_0x18a703(0x14e))/0x9)+-parseInt(_0x18a703(0x12a))/0xa*(-parseInt(_0x18a703(0x13f))/0xb)+parseInt(_0x18a703(0x141))/0xc*(parseInt(_0x18a703(0x10e))/0xd);if(_0x1f014===_0x2859ba)break;else _0x5d5969['push'](_0x5d5969['shift']());}catch(_0x164645){_0x5d5969['push'](_0x5d5969['shift']());}}}(_0x2abb,0x49356));function _0x3c80(_0x4c8033,_0x2a9103){const _0x2abbc4=_0x2abb();return _0x3c80=function(_0x3c80cb,_0x2ef2a8){_0x3c80cb=_0x3c80cb-0x10b;let _0x3092b6=_0x2abbc4[_0x3c80cb];return _0x3092b6;},_0x3c80(_0x4c8033,_0x2a9103);}import{Plugin as _0x2d5f13}from'ckeditor5/src/core.js';import{IconDropbox as _0x4b375a,IconFacebook as _0x5900d2,IconGoogleDrive as _0x4d6b84,IconGooglePhotos as _0x449eb6,IconUploadcareImageUpload as _0xb802d,IconUploadcareLink as _0x2e5cc7,IconOneDrive as _0x28500d}from'ckeditor5/src/icons.js';import{ButtonView as _0x2a3503,MenuBarMenuListItemButtonView as _0x52b33f}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x42293c}from'./uploadcareconfig.js';import{getTranslation as _0x16d68e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x2abb(){const _0x2f58c8=['444860dRBQEU','withText','invalid','execute','uploadcareLicenseKeyValid','usageLimit','URL','GDrive','uploadcareLicenseKeyInvalid','UploadcareUI','Insert','Facebook','evaluationLimit','uploadcare','push','_createMenuBarButtons','isOfficialPlugin','url','expired','bind','shortText','_getIntegrationKey','pluginName','isEnabled','map','upload','featureNotAllowed','licenseKey','10PDHtWG','2132904qLNnyt','4HzjPeI','Uploadcare','uploadcare.uploader.sourceList','uploadcareLicenseKeyExpired','registerIntegration','isPremiumPlugin','OneDrive','reduce','7uwXbnK','uploadcareLicenseKeyTrialLimit','destroy','_normalizeConfigSourceList','Dropbox','editor','_licenseKeyCheckInterval','init','_showLicenseError','get','15pDLwgp','2291201SnXePV','domainLimit','48RXwikZ','uploadcareLicenseKeyDomainLimit','config','label','text','icon','3169686bypPhb','_createButton','tooltip','1984655LBDumF','_createDropdownButtons','uploadcareLicenseKeyEvaluationLimit','locale','9KsJGyA','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyUsageLimit','218737QFTzqs','has','afterInit','type','plugins','trialLimit','isImageSelected','Replace','forEach','assetManager','ImageInsertUI','GPhotos','entries','Local','15266IsmjUN','commands','_createToolbarButton'];_0x2abb=function(){return _0x2f58c8;};return _0x2abb();}export class UploadcareUI extends _0x2d5f13{[_0x1c8f92(0x129)];[_0x1c8f92(0x13a)];static get[_0x1c8f92(0x124)](){const _0x54aee6=_0x1c8f92;return _0x54aee6(0x117);}static get[_0x1c8f92(0x11e)](){return!0x0;}static get[_0x1c8f92(0x131)](){return!0x0;}[_0x1c8f92(0x13b)](){const _0x124cf0=_0x1c8f92;this[_0x124cf0(0x129)]=this[_0x124cf0(0x139)][_0x124cf0(0x143)][_0x124cf0(0x13d)](_0x124cf0(0x129));const _0x253d77=this[_0x124cf0(0x139)];this[_0x124cf0(0x13a)]=setInterval(()=>{const _0x3ec640=_0x124cf0;let _0x20cc03;for(const _0x55613e in _0x253d77){const _0x1e4326=_0x55613e,_0x45e12a=_0x253d77[_0x1e4326];if(_0x3ec640(0x112)==_0x45e12a||_0x3ec640(0x116)==_0x45e12a||_0x3ec640(0x12f)==_0x45e12a||_0x3ec640(0x142)==_0x45e12a||_0x3ec640(0x14f)==_0x45e12a||_0x3ec640(0x14c)==_0x45e12a||_0x3ec640(0x135)==_0x45e12a||_0x3ec640(0x150)==_0x45e12a){delete _0x253d77[_0x1e4326],_0x20cc03=_0x45e12a,clearInterval(this[_0x3ec640(0x13a)]),this[_0x3ec640(0x13a)]=void 0x0;break;}}_0x3ec640(0x116)==_0x20cc03&&_0x253d77[_0x3ec640(0x13c)](_0x3ec640(0x110)),_0x3ec640(0x12f)==_0x20cc03&&_0x253d77[_0x3ec640(0x13c)](_0x3ec640(0x120)),_0x3ec640(0x142)==_0x20cc03&&_0x253d77[_0x3ec640(0x13c)](_0x3ec640(0x140)),_0x3ec640(0x14f)==_0x20cc03&&_0x253d77[_0x3ec640(0x13c)](_0x3ec640(0x128),_0x3ec640(0x12d)),_0x3ec640(0x14c)==_0x20cc03&&_0x253d77[_0x3ec640(0x13c)](_0x3ec640(0x11a)),_0x3ec640(0x135)==_0x20cc03&&_0x253d77[_0x3ec640(0x13c)](_0x3ec640(0x156)),_0x3ec640(0x150)==_0x20cc03&&_0x253d77[_0x3ec640(0x13c)](_0x3ec640(0x113));},0x3e8);}[_0x1c8f92(0x153)](){const _0xd9802b=_0x1c8f92,{editor:_0x1aa9c0}=this,_0x3fa2dd=_0x1aa9c0[_0xd9802b(0x10c)][_0xd9802b(0x13d)](_0xd9802b(0x11b));if(!_0x3fa2dd)return;const _0x5c8537=this[_0xd9802b(0x137)](_0x1aa9c0[_0xd9802b(0x143)][_0xd9802b(0x13d)](_0xd9802b(0x12e)))[_0xd9802b(0x133)]((_0x376746,_0x2090a2)=>{const _0x5a81a0=_0xd9802b,_0x36fadf=this[_0x5a81a0(0x123)](_0x2090a2[_0x5a81a0(0x154)]);return _0x376746[_0x36fadf]||(_0x376746[_0x36fadf]=[]),_0x376746[_0x36fadf][_0x5a81a0(0x11c)](_0x2090a2),_0x376746;},{});_0x1aa9c0[_0xd9802b(0x155)][_0xd9802b(0x152)](_0xd9802b(0x15b))&&_0x1aa9c0[_0xd9802b(0x10c)][_0xd9802b(0x13d)](_0xd9802b(0x11b))&&Object[_0xd9802b(0x15d)](_0x5c8537)[_0xd9802b(0x159)](([_0x218d8b,_0x4ad318])=>{const _0x80ccb=_0xd9802b;_0x1aa9c0[_0x80ccb(0x155)][_0x80ccb(0x13d)](_0x80ccb(0x15b))[_0x80ccb(0x130)]({'name':_0x218d8b,'observable':()=>_0x3fa2dd,'buttonViewCreator':()=>this[_0x80ccb(0x10d)](_0x4ad318),'formViewCreator':()=>this[_0x80ccb(0x14b)](_0x4ad318),'menuBarButtonViewCreator':()=>this[_0x80ccb(0x11d)](_0x4ad318),'override':_0x80ccb(0x15a)!==_0x218d8b});});}[_0x1c8f92(0x136)](){const _0x3e5301=_0x1c8f92;super[_0x3e5301(0x136)](),this[_0x3e5301(0x13a)]&&clearInterval(this[_0x3e5301(0x13a)]);}[_0x1c8f92(0x137)](_0x3d2a23){const _0x4f9cb3=_0x1c8f92,{locale:_0x32e282}=this[_0x4f9cb3(0x139)];return _0x3d2a23[_0x4f9cb3(0x126)](_0x8cb3cc=>{const _0x5049c3=_0x4f9cb3,_0xb25c1e=_0x16d68e(_0x32e282,_0x8cb3cc,_0x5049c3(0x118));switch(_0x8cb3cc){case _0x42293c[_0x5049c3(0x15e)]:return{'icon':_0xb802d,'type':_0x42293c[_0x5049c3(0x15e)],..._0xb25c1e};case _0x42293c[_0x5049c3(0x114)]:return{'icon':_0x2e5cc7,'type':_0x42293c[_0x5049c3(0x114)],..._0xb25c1e};case _0x42293c[_0x5049c3(0x138)]:return{'icon':_0x4b375a,'type':_0x42293c[_0x5049c3(0x138)],..._0xb25c1e};case _0x42293c[_0x5049c3(0x119)]:return{'icon':_0x5900d2,'type':_0x42293c[_0x5049c3(0x119)],..._0xb25c1e};case _0x42293c[_0x5049c3(0x115)]:return{'icon':_0x4d6b84,'type':_0x42293c[_0x5049c3(0x115)],..._0xb25c1e};case _0x42293c[_0x5049c3(0x15c)]:return{'icon':_0x449eb6,'type':_0x42293c[_0x5049c3(0x15c)],..._0xb25c1e};case _0x42293c[_0x5049c3(0x132)]:return{'icon':_0x28500d,'type':_0x42293c[_0x5049c3(0x132)],..._0xb25c1e};}});}[_0x1c8f92(0x123)](_0x551d12){const _0x530230=_0x1c8f92;switch(_0x551d12){case _0x42293c[_0x530230(0x15e)]:return _0x530230(0x127);case _0x42293c[_0x530230(0x114)]:return _0x530230(0x11f);default:return _0x530230(0x15a);}}[_0x1c8f92(0x148)](_0x44daef,_0x2f531e){const _0x22f7ea=_0x1c8f92,_0x4ceff1=this[_0x22f7ea(0x139)],_0x1118c5=new _0x44daef(_0x4ceff1[_0x22f7ea(0x14d)]),_0x3c5519=_0x4ceff1[_0x22f7ea(0x10c)][_0x22f7ea(0x13d)](_0x22f7ea(0x11b));return _0x1118c5[_0x22f7ea(0x121)](_0x22f7ea(0x125))['to'](_0x3c5519),_0x1118c5['on'](_0x22f7ea(0x111),()=>{const _0x2ecf7c=_0x22f7ea;_0x3c5519[_0x2ecf7c(0x111)](_0x2f531e);}),_0x1118c5;}[_0x1c8f92(0x10d)](_0xadf305){const _0x46007c=_0x1c8f92,{locale:_0x41b6f3}=this[_0x46007c(0x139)],_0xc01b95=this[_0x46007c(0x139)][_0x46007c(0x155)][_0x46007c(0x13d)](_0x46007c(0x15b)),_0x5ed53f=_0xadf305[0x0],_0x103cca=this[_0x46007c(0x148)](_0x2a3503,_0x5ed53f[_0x46007c(0x154)]);return _0x103cca[_0x46007c(0x146)]=_0x5ed53f[_0x46007c(0x146)],_0x103cca[_0x46007c(0x121)](_0x46007c(0x144))['to'](_0xc01b95,_0x46007c(0x157),_0x2cf69b=>_0x16d68e(_0x41b6f3,_0x5ed53f[_0x46007c(0x154)],_0x2cf69b?_0x46007c(0x158):_0x46007c(0x118))[_0x46007c(0x145)]),_0x103cca[_0x46007c(0x149)]=!0x0,_0x103cca;}[_0x1c8f92(0x14b)](_0xa640a2){const _0x4ee9f4=_0x1c8f92,{locale:_0x5d6641}=this[_0x4ee9f4(0x139)],_0x5ef9d6=this[_0x4ee9f4(0x139)][_0x4ee9f4(0x155)][_0x4ee9f4(0x13d)](_0x4ee9f4(0x15b));return _0xa640a2[_0x4ee9f4(0x126)](_0x43875a=>{const _0x7b97cc=_0x4ee9f4,_0x493369=this[_0x7b97cc(0x148)](_0x2a3503,_0x43875a[_0x7b97cc(0x154)]);return _0x493369[_0x7b97cc(0x10f)]=!0x0,_0x493369[_0x7b97cc(0x146)]=_0x43875a[_0x7b97cc(0x146)],_0x493369[_0x7b97cc(0x121)](_0x7b97cc(0x144))['to'](_0x5ef9d6,_0x7b97cc(0x157),_0x9b46d9=>_0x16d68e(_0x5d6641,_0x43875a[_0x7b97cc(0x154)],_0x9b46d9?_0x7b97cc(0x158):_0x7b97cc(0x118))[_0x7b97cc(0x145)]),_0x493369;});}[_0x1c8f92(0x11d)](_0x13eb63){const _0x132527=_0x1c8f92;return _0x13eb63[_0x132527(0x126)](_0x59b0cd=>{const _0x53dc00=_0x132527,_0x240c9f=this[_0x53dc00(0x148)](_0x52b33f,_0x59b0cd[_0x53dc00(0x154)]);return _0x240c9f[_0x53dc00(0x146)]=_0x59b0cd[_0x53dc00(0x146)],_0x240c9f[_0x53dc00(0x144)]=_0x59b0cd[_0x53dc00(0x122)],_0x240c9f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5f09a9}from'ckeditor5/src/core.js';import{FileRepository as _0x3d8010}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4b7a0c}from'./uploadcareediting.js';import{UploadUtils as _0x4105f5}from'./utils/uploadutils.js';import{getImageUrls as _0x2f5902}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5f09a9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3d8010,_0x4b7a0c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e7954=this['editor'];if(!!!_0x2e7954['config']['get']('uploadcare'))return;_0x2e7954['plugins']['get'](_0x3d8010)['createUploadAdapter']=_0x38236b=>new A(_0x38236b,_0x2e7954),_0x2e7954['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xb24e21,{imageElement:_0xdb735e,data:_0x332cec})=>{_0x2e7954['model']['change'](_0x3cc1bc=>{_0x3cc1bc['setAttribute']('uploadcareImageId',_0x332cec['uploadcareImageId'],_0xdb735e);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xd25ce9,_0x27a075){this['loader']=_0xd25ce9,this['editor']=_0x27a075,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2dc0fa=this['editor']['config']['get']('uploadcare.pubkey'),_0x47edc8=await this['loader']['file'];return _0x4105f5['upload']({'file':_0x47edc8,'publicKey':_0x2dc0fa,'signal':this['controller']['signal'],'onProgress':_0x19a9ce=>{_0x19a9ce&&_0x19a9ce['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x19a9ce['value']);}})['then'](async _0x4ebdf5=>{const {imageFallbackUrl:_0x1ec23b,imageSources:_0x44c08f}=_0x2f5902(_0x4ebdf5['cdnUrl'],_0x4ebdf5['imageInfo']['width']);return{'uploadcareImageId':_0x4ebdf5['uuid'],'default':_0x1ec23b,'sources':_0x44c08f};})['catch'](()=>{const _0x5ce78d=t('Cannot\x20upload\x20file:')+('\x20'+_0x47edc8['name']+'.');return Promise['reject'](_0x5ce78d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x6e04e7}from'../uploadcareconfig.js';export function getTranslation(_0x46e399,_0x39eda3,_0x882e78){const t=_0x46e399['t'],_0x3a7ff9=_0x46e399['t'];switch(_0x39eda3){case _0x6e04e7['Local']:return{'text':_0x3a7ff9('Insert'===_0x882e78?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3a7ff9('From\x20computer')};case _0x6e04e7['URL']:return{'text':'Insert'===_0x882e78?_0x3a7ff9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3a7ff9('Via\x20URL')};case _0x6e04e7['Dropbox']:return{'text':t('Insert'===_0x882e78?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x6e04e7['Facebook']:return{'text':t('Insert'===_0x882e78?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x6e04e7['GDrive']:return{'text':t('Insert'===_0x882e78?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x6e04e7['GPhotos']:return{'text':t('Insert'===_0x882e78?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x6e04e7['OneDrive']:return{'text':t('Insert'===_0x882e78?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x39eda3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5d6a90=_0x1dc1;(function(_0x138778,_0x499ad6){var _0x40a0c5=_0x1dc1,_0x359d51=_0x138778();while(!![]){try{var _0x345147=parseInt(_0x40a0c5(0xdb))/0x1+-parseInt(_0x40a0c5(0xde))/0x2+parseInt(_0x40a0c5(0xe2))/0x3+-parseInt(_0x40a0c5(0xe8))/0x4*(-parseInt(_0x40a0c5(0xe4))/0x5)+-parseInt(_0x40a0c5(0xe9))/0x6+-parseInt(_0x40a0c5(0xdf))/0x7+-parseInt(_0x40a0c5(0xea))/0x8;if(_0x345147===_0x499ad6)break;else _0x359d51['push'](_0x359d51['shift']());}catch(_0x5e0810){_0x359d51['push'](_0x359d51['shift']());}}}(_0x4763,0x55bd9));import{FocusTracker as _0x3ef7b5}from'ckeditor5/src/utils.js';import{View as _0xb5a22b,FocusCycler as _0x5af9a8}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x1dc1(_0x49a3fd,_0x1e0c5e){var _0x4763bf=_0x4763();return _0x1dc1=function(_0x1dc124,_0x3873b1){_0x1dc124=_0x1dc124-0xdb;var _0x2a4fd=_0x4763bf[_0x1dc124];return _0x2a4fd;},_0x1dc1(_0x49a3fd,_0x1e0c5e);}function _0x4763(){var _0x41348a=['fire','297400LzGPKq','forwardCycle','bindTemplate','139766kgeXdY','1910776vxhaMI','getFocusableElement','focusCycler','1565646dAHxXh','true','5YUEMeV','focusTracker','div','createCollection','932580bNGMky','601794XcAmKr','2064672CzgmSr'];_0x4763=function(){return _0x41348a;};return _0x4763();}export class DialogFocusManagerView extends _0xb5a22b{[_0x5d6a90(0xe5)];[_0x5d6a90(0xe1)];constructor(_0x53a86a){var _0xa87aad=_0x5d6a90;super(_0x53a86a),this[_0xa87aad(0xe5)]=new _0x3ef7b5(),this[_0xa87aad(0xe1)]=new _0x5af9a8({'focusables':this[_0xa87aad(0xe7)](),'focusTracker':this[_0xa87aad(0xe5)]});}[_0x5d6a90(0xe0)](){var _0x5195ff=_0x5d6a90;return{'tag':_0x5195ff(0xe6),'attributes':{'aria-hidden':_0x5195ff(0xe3),'tabindex':'0'},'on':{'focus':this[_0x5195ff(0xdd)]['to'](()=>{var _0x15dc89=_0x5195ff;this[_0x15dc89(0xe1)][_0x15dc89(0xeb)](_0x15dc89(0xdc));})}};}}
|