@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251211.0 → 0.0.0-nightly-20251212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32777f=_0x5068;function _0x5068(_0x5bf910,_0x40e2f2){const _0x3018ca=_0x3018();return _0x5068=function(_0x5068cb,_0x100f28){_0x5068cb=_0x5068cb-0xe4;let _0x3f4887=_0x3018ca[_0x5068cb];return _0x3f4887;},_0x5068(_0x5bf910,_0x40e2f2);}(function(_0x241aff,_0x539106){const _0x3fb2af=_0x5068,_0x409f5e=_0x241aff();while(!![]){try{const _0x45485b=-parseInt(_0x3fb2af(0x101))/0x1*(-parseInt(_0x3fb2af(0xea))/0x2)+parseInt(_0x3fb2af(0x10d))/0x3+-parseInt(_0x3fb2af(0xfe))/0x4+parseInt(_0x3fb2af(0x10b))/0x5+parseInt(_0x3fb2af(0x129))/0x6+-parseInt(_0x3fb2af(0x107))/0x7*(-parseInt(_0x3fb2af(0x115))/0x8)+-parseInt(_0x3fb2af(0x116))/0x9*(parseInt(_0x3fb2af(0x117))/0xa);if(_0x45485b===_0x539106)break;else _0x409f5e['push'](_0x409f5e['shift']());}catch(_0x3b8691){_0x409f5e['push'](_0x409f5e['shift']());}}}(_0x3018,0x86674));import{Plugin as _0x2bcc48}from'ckeditor5/src/core.js';import{Dialog as _0x3f3316}from'ckeditor5/src/ui.js';import{createElement as _0x2ae72a,global as _0x40cd51,uid as _0xa505fd}from'ckeditor5/src/utils.js';function _0x3018(){const _0x40d9aa=['5663436wzHzlG','isRegistered','replaceImageSource','attributeToAttribute','requires','isOfficialPlugin','listenTo','data-uc-image-id','removeAttribute','cleanupImage','extend','_initConversion','UploadcareEditing','editing','#uc-icon-arrow-down','fromCharCode','add','map','afterInit','document','imageInline','remove','2SRSmKW','uc-config','imageBlock','view','uploadcareImageReplace','getSelectedElement','uploadcareImageId','model','configElement','closeMax','locale','destroy','input[uploadcare-file-input]','ctxElement','once','insertImage','appendChild','downcast','PictureEditing','_ctxElement','507652Vtphdh','uploadcare','render','1019209PwdJGb','schema','querySelector','pluginName','uploadcare.pubkey','isPremiumPlugin','111391XFXBAh','uc-upload-ctx-provider','\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','href','4883785JqdYNx','ucContextId','2025024OXeCRY','elementToAttribute','upcast','commands','_initConfig','for','iconHrefResolver','_initImageProcessingIndicator','88yTMTac','4668741CHtwOT','60TCnFaj','execute','uploadcare.uploader','conversion','init','selection','_initSchema','join','_configElement','uploader-','_initCtx','config','body','getAttribute','editor','get','contentLanguage','true'];_0x3018=function(){return _0x40d9aa;};return _0x3018();}import{UploadcareCommand as _0x4ac021}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x599886}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3b67e1}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2bcc48{[_0x32777f(0x11f)]=null;[_0x32777f(0xfd)]=null;static get[_0x32777f(0x104)](){const _0x167e80=_0x32777f;return _0x167e80(0x135);}static get[_0x32777f(0x12d)](){const _0x53c38d=_0x32777f;return[_0x53c38d(0xfc),_0x599886,_0x3f3316];}static get[_0x32777f(0x12e)](){return!0x0;}static get[_0x32777f(0x106)](){return!0x0;}[_0x32777f(0x10c)];get[_0x32777f(0xf2)](){const _0x277d0d=_0x32777f;return this[_0x277d0d(0x11f)];}get[_0x32777f(0xf7)](){const _0x517350=_0x32777f;return this[_0x517350(0xfd)];}constructor(_0x268aa9){const _0x13ecb0=_0x32777f;super(_0x268aa9),this[_0x13ecb0(0x10c)]=_0xa505fd();}[_0x32777f(0x11b)](){const _0x17ee14=_0x32777f,_0x8c6734=this[_0x17ee14(0x125)];_0x8c6734[_0x17ee14(0x110)][_0x17ee14(0xe4)](_0x17ee14(0xff),new _0x4ac021(_0x8c6734));}[_0x32777f(0xe6)](){const _0x2f21cf=_0x32777f;this[_0x2f21cf(0x11d)](),this[_0x2f21cf(0x134)](),this[_0x2f21cf(0x111)](),this[_0x2f21cf(0x121)](),this[_0x2f21cf(0x114)](),this[_0x2f21cf(0x12f)](this[_0x2f21cf(0x125)],_0x2f21cf(0xf5),()=>{const _0x550b27=_0x2f21cf;this[_0x550b27(0x11f)]&&(this[_0x550b27(0x11f)][_0x550b27(0xe9)](),this[_0x550b27(0x11f)]=null),this[_0x550b27(0xfd)]&&(this[_0x550b27(0xfd)][_0x550b27(0xe9)](),this[_0x550b27(0xfd)]=null);const _0x217b27=_0x40cd51[_0x550b27(0xe7)][_0x550b27(0x103)](_0x550b27(0xf6));_0x217b27&&_0x217b27[_0x550b27(0xe9)]();}),async function(_0x3aa93e){const _0x1b6ec1=_0x33eeed([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2cbb6c=0x535f8c3a,_0x1e31b8=0x5358f7a2^_0x2cbb6c,_0x921b1b=window[_0x33eeed([0x44,0x61,0x74,0x65])][_0x33eeed([0x6e,0x6f,0x77])](),_0x5a34ea=_0x3aa93e[_0x33eeed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x164d5b=new window[(_0x33eeed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37298a=>{_0x5a34ea[_0x33eeed([0x6f,0x6e,0x63,0x65])](_0x33eeed([0x72,0x65,0x61,0x64,0x79]),_0x37298a);}),_0x3a382={[_0x33eeed([0x6b,0x74,0x79])]:_0x33eeed([0x45,0x43]),[_0x33eeed([0x75,0x73,0x65])]:_0x33eeed([0x73,0x69,0x67]),[_0x33eeed([0x63,0x72,0x76])]:_0x33eeed([0x50,0x2d,0x32,0x35,0x36]),[_0x33eeed([0x78])]:_0x33eeed([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]),[_0x33eeed([0x79])]:_0x33eeed([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]),[_0x33eeed([0x61,0x6c,0x67])]:_0x33eeed([0x45,0x53,0x32,0x35,0x36])},_0x242b2b=_0x5a34ea[_0x33eeed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x33eeed([0x67,0x65,0x74])](_0x33eeed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e0509(){let _0x601bb,_0x5c9ce6=null,_0x213539=null;try{if(_0x242b2b==_0x33eeed([0x47,0x50,0x4c]))return _0x33eeed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x601bb=_0x4360b4(),!_0x601bb)return _0x33eeed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x601bb[_0x33eeed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x213539=_0x868c4a(_0x601bb[_0x33eeed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x601bb[_0x33eeed([0x6a,0x74,0x69])])),await _0xf3ac8f()?_0x3eb5a5()?_0x316b0a()?_0x33eeed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4faf6f()?(_0x601bb[_0x33eeed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33eeed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c9ce6=_0x19b78a(_0x33eeed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x601bb[_0x33eeed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33eeed([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c9ce6=_0x19b78a(_0x33eeed([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf99f62()):_0x33eeed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x33eeed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x33eeed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x33eeed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x316b0a(){const _0x5917c5=[_0x33eeed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x33eeed([0x74,0x72,0x69,0x61,0x6c])][_0x33eeed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x601bb[_0x33eeed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x921b1b/0x3e8:0xe10*_0x1e31b8;return _0x601bb[_0x33eeed([0x65,0x78,0x70])]<_0x5917c5;}function _0x3eb5a5(){const _0x18df77=_0x601bb[_0x33eeed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18df77&&(!!_0x18df77[_0x33eeed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33eeed([0x2a]))||!!_0x18df77[_0x33eeed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33eeed([0x55,0x50,0x4c,0x43])));}function _0x4faf6f(){const _0x2dde9b=_0x5068,_0x2ff7d3=_0x601bb[_0x33eeed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ff7d3||0x0==_0x2ff7d3[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37cc2a}=new URL(window[_0x33eeed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2dde9b(0x10a)]);if(_0x2ff7d3[_0x33eeed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc2a))return!0x0;const _0x214934=_0x37cc2a[_0x33eeed([0x73,0x70,0x6c,0x69,0x74])](_0x33eeed([0x2e]));return _0x2ff7d3[_0x33eeed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c6d50=>_0x3c6d50[_0x33eeed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33eeed([0x2a])))[_0x33eeed([0x6d,0x61,0x70])](_0x2ff1f3=>_0x2ff1f3[_0x33eeed([0x73,0x70,0x6c,0x69,0x74])](_0x33eeed([0x2e])))[_0x33eeed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e10b4=>_0x2e10b4[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x214934[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33eeed([0x6d,0x61,0x70])](_0x5f1f87=>Array(_0x214934[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f1f87[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33eeed([0x66,0x69,0x6c,0x6c])](_0x5f1f87[0x0]===_0x33eeed([0x2a])?_0x33eeed([0x2a]):'')[_0x33eeed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f1f87))[_0x33eeed([0x73,0x6f,0x6d,0x65])](_0x53f4c5=>_0x214934[_0x33eeed([0x65,0x76,0x65,0x72,0x79])]((_0x2ee484,_0x3be0d4)=>_0x53f4c5[_0x3be0d4]===_0x2ee484||_0x53f4c5[_0x3be0d4]===_0x33eeed([0x2a])));}function _0xf99f62(){return _0x5c9ce6&&_0x213539?new window[(_0x33eeed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ef126,_0x50b909)=>{_0x5c9ce6[_0x33eeed([0x74,0x68,0x65,0x6e])](_0x1ef126,_0x50b909),_0x213539[_0x33eeed([0x74,0x68,0x65,0x6e])](_0x191279=>{_0x191279!=_0x33eeed([0x56,0x61,0x6c,0x69,0x64])&&_0x1ef126(_0x191279);},_0x50b909);}):_0x5c9ce6||_0x213539||_0x33eeed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x868c4a(_0x31995e,_0x44af7e){return new window[(_0x33eeed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x203dfb=>{if(_0x240184())return _0x203dfb(_0x33eeed([0x56,0x61,0x6c,0x69,0x64]));_0x47a967(),_0x5a34ea[_0x33eeed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x33eeed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bed1f=!0x1;const _0x36ee37=_0xa505fd();function _0x50e2fe(_0x4d31f1){return!!_0x4d31f1&&(typeof _0x4d31f1===_0x33eeed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d31f1===_0x33eeed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d31f1[_0x33eeed([0x74,0x68,0x65,0x6e])]===_0x33eeed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d31f1[_0x33eeed([0x63,0x61,0x74,0x63,0x68])]===_0x33eeed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34a2af(_0x167761){_0x27a413(_0x167761)[_0x33eeed([0x74,0x68,0x65,0x6e])](_0x55242b=>{if(!_0x55242b||_0x55242b[_0x33eeed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x33eeed([0x6f,0x6b]))return _0x33eeed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3de070(_0x14235b(_0x36ee37+_0x44af7e))!=_0x55242b[_0x33eeed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x33eeed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x33eeed([0x56,0x61,0x6c,0x69,0x64]);})[_0x33eeed([0x74,0x68,0x65,0x6e])](_0xb0074b=>(_0x5a4539(),_0xb0074b),()=>{const _0x3a936d=_0x5df0b5();return null==_0x3a936d?(_0x5a4539(),_0x33eeed([0x56,0x61,0x6c,0x69,0x64])):_0x33eeed(_0x921b1b-_0x3a936d>(0x7753083a^_0x2cbb6c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x33eeed([0x74,0x68,0x65,0x6e])](_0x203dfb)[_0x33eeed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x203dfb(_0x33eeed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x419619=0x536962ba^_0x2cbb6c;function _0x5a4539(){const _0x2dbf28=_0x33eeed([0x6c,0x6c,0x63,0x74,0x2d])+_0x3de070(_0x14235b(_0x31995e)),_0x4fdcfb=_0x228762(_0x3de070(window[_0x33eeed([0x4d,0x61,0x74,0x68])][_0x33eeed([0x63,0x65,0x69,0x6c])](_0x921b1b/_0x419619)));window[_0x33eeed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33eeed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dbf28,_0x4fdcfb);}function _0x5df0b5(){const _0x257d9f=_0x33eeed([0x6c,0x6c,0x63,0x74,0x2d])+_0x3de070(_0x14235b(_0x31995e)),_0xd2ec4d=window[_0x33eeed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33eeed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x257d9f);return _0xd2ec4d?window[_0x33eeed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x228762(_0xd2ec4d),0x10)*_0x419619:null;}function _0x27a413(_0x1280be){return new window[(_0x33eeed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fc614,_0x578d43)=>{_0x1280be[_0x33eeed([0x74,0x68,0x65,0x6e])](_0x1fc614,_0x578d43),window[_0x33eeed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x578d43,0x535e58fa^_0x2cbb6c);});}}_0x5a34ea[_0x33eeed([0x6f,0x6e])](_0x33eeed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e9756,_0x58aa85)=>{if(_0x58aa85[0x0]!=_0x31995e)return _0x203dfb(_0x33eeed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58aa85[0x1]={..._0x58aa85[0x1],[_0x33eeed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36ee37};},{[_0x33eeed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33eeed([0x68,0x69,0x67,0x68])}),_0x5a34ea[_0x33eeed([0x6f,0x6e])](_0x33eeed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x397034=>{_0x50e2fe(_0x397034[_0x33eeed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bed1f=!0x0,_0x34a2af(_0x397034[_0x33eeed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x33eeed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33eeed([0x6c,0x6f,0x77])}),_0x164d5b[_0x33eeed([0x74,0x68,0x65,0x6e])](()=>{_0x4bed1f||_0x203dfb(_0x33eeed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x240184(){return _0x5a34ea[_0x33eeed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33eeed([0x76,0x69,0x65,0x77])][_0x33eeed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x33eeed([0x61,0x75,0x74,0x6f]);}function _0x47a967(){_0x5a34ea[_0x33eeed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33eeed([0x76,0x69,0x65,0x77])][_0x33eeed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33eeed([0x61,0x75,0x74,0x6f]);}}function _0x19b78a(_0x2306d2){const _0x1b95eb=[new window[(_0x33eeed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57b386=>setTimeout(_0x57b386,0x5356b2f6^_0x2cbb6c)),_0x164d5b[_0x33eeed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x33eeed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3acb33=>{let _0x246b0d=0x0;_0x5a34ea[_0x33eeed([0x6d,0x6f,0x64,0x65,0x6c])][_0x33eeed([0x6f,0x6e])](_0x33eeed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38a209,_0x22f78d)=>{_0x22f78d[0x0][_0x33eeed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x246b0d++,_0x246b0d==(0x535f8dc2^_0x2cbb6c)&&(_0x3acb33(),_0x38a209[_0x33eeed([0x6f,0x66,0x66])]());});}))];return window[_0x33eeed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33eeed([0x72,0x61,0x63,0x65])](_0x1b95eb)[_0x33eeed([0x74,0x68,0x65,0x6e])](()=>_0x2306d2);}async function _0xf7cd94(){await _0x164d5b,_0x5a34ea[_0x33eeed([0x6d,0x6f,0x64,0x65,0x6c])][_0x33eeed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3c08,_0x5a34ea[_0x33eeed([0x6d,0x6f,0x64,0x65,0x6c])][_0x33eeed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3c08,_0x5a34ea[_0x33eeed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x33eeed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x192303(_0x39dc57){const _0x3e622c=_0x329ee4();_0x5a34ea[_0x3e622c]=_0x33eeed([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39dc57,_0x39dc57!=_0x33eeed([0x56,0x61,0x6c,0x69,0x64])&&_0xf7cd94();}function _0x329ee4(){const _0x531e29=window[_0x33eeed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x33eeed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x33eeed([0x6e,0x6f,0x77])]())[_0x33eeed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x33eeed([0x2e]),'');let _0x5d1297=_0x33eeed([0x68]);for(let _0x429388=0x0;_0x429388<_0x531e29[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x429388+=0x2){let _0x3459aa=window[_0x33eeed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x531e29[_0x33eeed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x429388,_0x429388+0x2));_0x3459aa>=_0x1b6ec1[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3459aa-=_0x1b6ec1[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d1297+=_0x1b6ec1[_0x3459aa];}return _0x5d1297;}function _0x4360b4(){const _0x44cd05=_0x242b2b[_0x33eeed([0x73,0x70,0x6c,0x69,0x74])](_0x33eeed([0x2e]));if(0x3!=_0x44cd05[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bf661(_0x44cd05[0x1]);function _0x2bf661(_0x5999b7){const _0x5dac5b=_0x3e96eb(_0x5999b7);return _0x5dac5b&&_0x5c5fb6()?_0x5dac5b:null;function _0x5c5fb6(){const _0x1635e0=_0x5dac5b[_0x33eeed([0x6a,0x74,0x69])],_0x1ca386=window[_0x33eeed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1635e0[_0x33eeed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1635e0[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dbef1={..._0x5dac5b,[_0x33eeed([0x6a,0x74,0x69])]:_0x1635e0[_0x33eeed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1635e0[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dbef1[_0x33eeed([0x76,0x63])],_0x14235b(_0x1dbef1)==_0x1ca386;}}}async function _0xf3ac8f(){let _0xd8da95=!0x0;try{const _0x4c8c8b=_0x242b2b[_0x33eeed([0x73,0x70,0x6c,0x69,0x74])](_0x33eeed([0x2e])),[_0x2989ea,_0x2cb746,_0x2d776b]=_0x4c8c8b;return _0x59d17e(_0x2989ea),await _0x4dd668(_0x2989ea,_0x2cb746,_0x2d776b),_0xd8da95;}catch{return!0x1;}function _0x59d17e(_0x2fad9d){const _0x24fb10=_0x3e96eb(_0x2fad9d);_0x24fb10&&_0x24fb10[_0x33eeed([0x61,0x6c,0x67])]==_0x33eeed([0x45,0x53,0x32,0x35,0x36])||(_0xd8da95=!0x1);}async function _0x4dd668(_0x4f8cf5,_0x195b4d,_0x19c9dc){const _0x30f80b=window[_0x33eeed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x33eeed([0x66,0x72,0x6f,0x6d])](_0x2e263b(_0x19c9dc),_0x1a1bef=>_0x1a1bef[_0x33eeed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38e976=new window[(_0x33eeed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x33eeed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f8cf5+_0x33eeed([0x2e])+_0x195b4d),_0x2f86bb=window[_0x33eeed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x33eeed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f86bb)return;const _0x3abf93=await _0x2f86bb[_0x33eeed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x33eeed([0x6a,0x77,0x6b]),_0x3a382,{[_0x33eeed([0x6e,0x61,0x6d,0x65])]:_0x33eeed([0x45,0x43,0x44,0x53,0x41]),[_0x33eeed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x33eeed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x33eeed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f86bb[_0x33eeed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x33eeed([0x6e,0x61,0x6d,0x65])]:_0x33eeed([0x45,0x43,0x44,0x53,0x41]),[_0x33eeed([0x68,0x61,0x73,0x68])]:{[_0x33eeed([0x6e,0x61,0x6d,0x65])]:_0x33eeed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3abf93,_0x30f80b,_0x38e976)||(_0xd8da95=!0x1);}}function _0x3e96eb(_0x49fd32){return _0x49fd32[_0x33eeed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x33eeed([0x65,0x79]))?JSON[_0x33eeed([0x70,0x61,0x72,0x73,0x65])](_0x2e263b(_0x49fd32)):null;}function _0x2e263b(_0x4a1af1){return window[_0x33eeed([0x61,0x74,0x6f,0x62])](_0x4a1af1[_0x33eeed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x33eeed([0x2b]))[_0x33eeed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x33eeed([0x2f])));}function _0x14235b(_0x14d608){let _0x251876=0x1505;function _0x5ecc98(_0x5a370a){for(let _0xd7aba3=0x0;_0xd7aba3<_0x5a370a[_0x33eeed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd7aba3++){const _0x228c3e=_0x5a370a[_0x33eeed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd7aba3);_0x251876=(_0x251876<<0x5)+_0x251876+_0x228c3e,_0x251876&=_0x251876;}}function _0x53091a(_0x56c342){Array[_0x33eeed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56c342)?_0x56c342[_0x33eeed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53091a):_0x56c342&&typeof _0x56c342==_0x33eeed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x33eeed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56c342)[_0x33eeed([0x73,0x6f,0x72,0x74])]()[_0x33eeed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15411d,_0x1ce575])=>{_0x5ecc98(_0x15411d),_0x53091a(_0x1ce575);}):_0x5ecc98(window[_0x33eeed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56c342));}return _0x53091a(_0x14d608),_0x251876>>>0x0;}function _0x3de070(_0x99f0b2){return _0x99f0b2[_0x33eeed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x33eeed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x33eeed([0x30]));}function _0x228762(_0x1c4707){return _0x1c4707[_0x33eeed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x33eeed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x33eeed([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f3c08(){}function _0x33eeed(_0x1bedc9){const _0x58118d=_0x5068;return _0x1bedc9[_0x58118d(0xe5)](_0x173ff2=>String[_0x58118d(0x138)](_0x173ff2))[_0x58118d(0x11e)]('');}_0x192303(await _0x4e0509());}(this);}[_0x32777f(0x11d)](){const _0x25ff51=_0x32777f,_0x47b5b9=this[_0x25ff51(0x125)][_0x25ff51(0xf1)][_0x25ff51(0x102)];_0x47b5b9[_0x25ff51(0x12a)](_0x25ff51(0xec))&&_0x47b5b9[_0x25ff51(0x133)](_0x25ff51(0xec),{'allowAttributes':[_0x25ff51(0xf0)]}),_0x47b5b9[_0x25ff51(0x12a)](_0x25ff51(0xe8))&&_0x47b5b9[_0x25ff51(0x133)](_0x25ff51(0xe8),{'allowAttributes':[_0x25ff51(0xf0)]});}[_0x32777f(0x134)](){const _0xe5ed82=_0x32777f,_0x4bf577=this[_0xe5ed82(0x125)];_0x4bf577[_0xe5ed82(0x11a)][_0xe5ed82(0x112)](_0xe5ed82(0xfb))[_0xe5ed82(0x12c)]({'model':_0xe5ed82(0xf0),'view':_0xe5ed82(0x130)}),_0x4bf577[_0xe5ed82(0x11a)][_0xe5ed82(0x112)](_0xe5ed82(0x10f))[_0xe5ed82(0x10e)]({'model':{'key':_0xe5ed82(0xf0),'value':_0x3fbee6=>_0x3fbee6[_0xe5ed82(0x124)](_0xe5ed82(0x130))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b1ff6=_0x4bf577[_0xe5ed82(0x110)][_0xe5ed82(0x126)](_0xe5ed82(0x12b));_0x2b1ff6&&this[_0xe5ed82(0x12f)](_0x2b1ff6,_0xe5ed82(0x132),(_0x362546,[_0x33d599,_0x8709b5])=>{const _0x5c7d28=_0xe5ed82;_0x33d599[_0x5c7d28(0x131)](_0x5c7d28(0xf0),_0x8709b5);});}[_0x32777f(0x111)](){const _0x5d9ce9=_0x32777f,_0x23b8cf=this[_0x5d9ce9(0x125)][_0x5d9ce9(0x122)][_0x5d9ce9(0x126)](_0x5d9ce9(0x119))||{},_0x347598=this[_0x5d9ce9(0x125)][_0x5d9ce9(0x122)][_0x5d9ce9(0x126)](_0x5d9ce9(0x105))||'';this[_0x5d9ce9(0x11f)]=_0x2ae72a(_0x40cd51[_0x5d9ce9(0xe7)],_0x5d9ce9(0xeb),{..._0x23b8cf,'pubkey':_0x347598,'ctx-name':_0x5d9ce9(0x120)+this[_0x5d9ce9(0x10c)],'sourceList':'','imgOnly':_0x5d9ce9(0x128),'removeCopyright':_0x5d9ce9(0x128),'localeName':this[_0x5d9ce9(0x125)][_0x5d9ce9(0xf4)][_0x5d9ce9(0x127)],'externalSourcesEmbedCss':_0x5d9ce9(0x109)}),this[_0x5d9ce9(0x11f)][_0x5d9ce9(0x113)]=_0x5ab37a=>{const _0x208f99=_0x5d9ce9;if(_0x208f99(0xf3)==_0x5ab37a)return _0x208f99(0x137);},_0x40cd51[_0x5d9ce9(0xe7)][_0x5d9ce9(0x123)][_0x5d9ce9(0xfa)](this[_0x5d9ce9(0x11f)]);}[_0x32777f(0x121)](){const _0x1f6600=_0x32777f;this[_0x1f6600(0xfd)]=_0x2ae72a(_0x40cd51[_0x1f6600(0xe7)],_0x1f6600(0x108),{'ctx-name':_0x1f6600(0x120)+this[_0x1f6600(0x10c)]}),_0x40cd51[_0x1f6600(0xe7)][_0x1f6600(0x123)][_0x1f6600(0xfa)](this[_0x1f6600(0xfd)]);}[_0x32777f(0x114)](){const _0x2e7626=_0x32777f,_0x38e8d5=this[_0x2e7626(0x125)][_0x2e7626(0x110)][_0x2e7626(0x126)](_0x2e7626(0xf9));_0x38e8d5&&this[_0x2e7626(0x12f)](_0x38e8d5,_0x2e7626(0x118),()=>{const _0x17e961=_0x2e7626,_0x4d3792=this[_0x17e961(0x125)][_0x17e961(0xf1)][_0x17e961(0xe7)][_0x17e961(0x11c)][_0x17e961(0xef)]();_0x4d3792&&_0x4d3792[_0x17e961(0x124)](_0x17e961(0xf0))&&this[_0x17e961(0x125)][_0x17e961(0x136)][_0x17e961(0xed)][_0x17e961(0xf8)](_0x17e961(0x100),()=>{const _0x55226c=_0x17e961;_0x3b67e1(this[_0x55226c(0x125)],_0x4d3792);});});const _0x23c181=this[_0x2e7626(0x125)][_0x2e7626(0x110)][_0x2e7626(0x126)](_0x2e7626(0xee));_0x23c181&&this[_0x2e7626(0x12f)](_0x23c181,_0x2e7626(0x118),()=>{const _0x3fd1e3=_0x2e7626,_0x173605=this[_0x3fd1e3(0x125)][_0x3fd1e3(0xf1)][_0x3fd1e3(0xe7)][_0x3fd1e3(0x11c)][_0x3fd1e3(0xef)]();_0x173605&&_0x173605[_0x3fd1e3(0x124)](_0x3fd1e3(0xf0))&&this[_0x3fd1e3(0x125)][_0x3fd1e3(0x136)][_0x3fd1e3(0xed)][_0x3fd1e3(0xf8)](_0x3fd1e3(0x100),()=>{const _0x59ed04=_0x3fd1e3;_0x3b67e1(this[_0x59ed04(0x125)],_0x173605);});});}}
|
|
23
|
+
function _0x4b4b(){const _0x4d1906=['fromCharCode','commands','configElement','href','_initCtx','document','uploadcareImageReplace','render','uploader-','isRegistered','isOfficialPlugin','uploadcareImageId','getAttribute','78075xVsEys','uc-config','execute','pluginName','uploadcare.uploader','imageInline','attributeToAttribute','9WRdJlY','destroy','editor','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','elementToAttribute','add','3nlBcLf','38946RLLjwy','data-uc-image-id','821254gAhayM','insertImage','cleanupImage','listenTo','get','replaceImageSource','join','ucContextId','map','afterInit','upcast','ctxElement','view','isPremiumPlugin','model','getSelectedElement','#uc-icon-arrow-down','uc-upload-ctx-provider','_initSchema','_ctxElement','contentLanguage','uploadcare','editing','19486230aErmRR','extend','_initConfig','conversion','input[uploadcare-file-input]','once','requires','body','config','_configElement','7980YSUJMF','_initImageProcessingIndicator','closeMax','PictureEditing','imageBlock','UploadcareEditing','for','downcast','selection','_initConversion','init','appendChild','iconHrefResolver','remove','querySelector','179020NDoguw','locale','schema','5167984mUqnLg','uploadcare.pubkey','308gUCyFm','true','removeAttribute'];_0x4b4b=function(){return _0x4d1906;};return _0x4b4b();}const _0x59391b=_0x3dcc;(function(_0x25743d,_0x464505){const _0x51a750=_0x3dcc,_0x1692c5=_0x25743d();while(!![]){try{const _0x31818a=-parseInt(_0x51a750(0x197))/0x1+parseInt(_0x51a750(0x152))/0x2*(-parseInt(_0x51a750(0x1a4))/0x3)+-parseInt(_0x51a750(0x173))/0x4+parseInt(_0x51a750(0x182))/0x5+-parseInt(_0x51a750(0x1a5))/0x6*(parseInt(_0x51a750(0x187))/0x7)+-parseInt(_0x51a750(0x185))/0x8+-parseInt(_0x51a750(0x19e))/0x9*(-parseInt(_0x51a750(0x169))/0xa);if(_0x31818a===_0x464505)break;else _0x1692c5['push'](_0x1692c5['shift']());}catch(_0x2cd019){_0x1692c5['push'](_0x1692c5['shift']());}}}(_0x4b4b,0x893d0));import{Plugin as _0x5a5059}from'ckeditor5/src/core.js';import{Dialog as _0x438a24}from'ckeditor5/src/ui.js';import{createElement as _0xa4cc4b,global as _0x403e85,uid as _0x9757fc}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x17b540}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x351eba}from'./uploadcareuploadadapter.js';function _0x3dcc(_0x11cbe6,_0x5081ee){const _0x4b4b9a=_0x4b4b();return _0x3dcc=function(_0x3dccf9,_0x167222){_0x3dccf9=_0x3dccf9-0x152;let _0x1b7e23=_0x4b4b9a[_0x3dccf9];return _0x1b7e23;},_0x3dcc(_0x11cbe6,_0x5081ee);}import{showImageProcessingIndicator as _0x2e3c82}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5a5059{[_0x59391b(0x172)]=null;[_0x59391b(0x165)]=null;static get[_0x59391b(0x19a)](){const _0x51b623=_0x59391b;return _0x51b623(0x178);}static get[_0x59391b(0x16f)](){const _0xf9149b=_0x59391b;return[_0xf9149b(0x176),_0x351eba,_0x438a24];}static get[_0x59391b(0x194)](){return!0x0;}static get[_0x59391b(0x15f)](){return!0x0;}[_0x59391b(0x159)];get[_0x59391b(0x18c)](){const _0x146e0a=_0x59391b;return this[_0x146e0a(0x172)];}get[_0x59391b(0x15d)](){const _0x4b840d=_0x59391b;return this[_0x4b840d(0x165)];}constructor(_0x41572b){const _0x56a904=_0x59391b;super(_0x41572b),this[_0x56a904(0x159)]=_0x9757fc();}[_0x59391b(0x17d)](){const _0x511e34=_0x59391b,_0x315e22=this[_0x511e34(0x1a0)];_0x315e22[_0x511e34(0x18b)][_0x511e34(0x1a3)](_0x511e34(0x167),new _0x17b540(_0x315e22));}[_0x59391b(0x15b)](){const _0x1145f5=_0x59391b;this[_0x1145f5(0x164)](),this[_0x1145f5(0x17c)](),this[_0x1145f5(0x16b)](),this[_0x1145f5(0x18e)](),this[_0x1145f5(0x174)](),this[_0x1145f5(0x155)](this[_0x1145f5(0x1a0)],_0x1145f5(0x19f),()=>{const _0x2ee644=_0x1145f5;this[_0x2ee644(0x172)]&&(this[_0x2ee644(0x172)][_0x2ee644(0x180)](),this[_0x2ee644(0x172)]=null),this[_0x2ee644(0x165)]&&(this[_0x2ee644(0x165)][_0x2ee644(0x180)](),this[_0x2ee644(0x165)]=null);const _0x40248f=_0x403e85[_0x2ee644(0x18f)][_0x2ee644(0x181)](_0x2ee644(0x16d));_0x40248f&&_0x40248f[_0x2ee644(0x180)]();}),async function(_0x5a3d91){const _0x44a9ca=_0xc007d6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x32dd26=0x535f8c3a,_0x1fbd88=0x5358f78a^_0x32dd26,_0x2e0832=window[_0xc007d6([0x44,0x61,0x74,0x65])][_0xc007d6([0x6e,0x6f,0x77])](),_0x1b735f=_0x5a3d91[_0xc007d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3538b3=new window[(_0xc007d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14b75e=>{_0x1b735f[_0xc007d6([0x6f,0x6e,0x63,0x65])](_0xc007d6([0x72,0x65,0x61,0x64,0x79]),_0x14b75e);}),_0x58751f={[_0xc007d6([0x6b,0x74,0x79])]:_0xc007d6([0x45,0x43]),[_0xc007d6([0x75,0x73,0x65])]:_0xc007d6([0x73,0x69,0x67]),[_0xc007d6([0x63,0x72,0x76])]:_0xc007d6([0x50,0x2d,0x32,0x35,0x36]),[_0xc007d6([0x78])]:_0xc007d6([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]),[_0xc007d6([0x79])]:_0xc007d6([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]),[_0xc007d6([0x61,0x6c,0x67])]:_0xc007d6([0x45,0x53,0x32,0x35,0x36])},_0xc45f0c=_0x1b735f[_0xc007d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc007d6([0x67,0x65,0x74])](_0xc007d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11eafe(){let _0xc900f9,_0x5bf9d9=null,_0x4482fd=null;try{if(_0xc45f0c==_0xc007d6([0x47,0x50,0x4c]))return _0xc007d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc900f9=_0x22f22f(),!_0xc900f9)return _0xc007d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc900f9[_0xc007d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4482fd=_0x28fad7(_0xc900f9[_0xc007d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc900f9[_0xc007d6([0x6a,0x74,0x69])])),await _0x2958eb()?_0x312d05()?_0x5105df()?_0xc007d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x509ee1()?(_0xc900f9[_0xc007d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc007d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5bf9d9=_0x1ac304(_0xc007d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc900f9[_0xc007d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc007d6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5bf9d9=_0x1ac304(_0xc007d6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xca647f()):_0xc007d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc007d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc007d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc007d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5105df(){const _0x35acda=[_0xc007d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc007d6([0x74,0x72,0x69,0x61,0x6c])][_0xc007d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc900f9[_0xc007d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e0832/0x3e8:0xe10*_0x1fbd88;return _0xc900f9[_0xc007d6([0x65,0x78,0x70])]<_0x35acda;}function _0x312d05(){const _0x8c2a54=_0xc900f9[_0xc007d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8c2a54&&(!!_0x8c2a54[_0xc007d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc007d6([0x2a]))||!!_0x8c2a54[_0xc007d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc007d6([0x55,0x50,0x4c,0x43])));}function _0x509ee1(){const _0x5a446a=_0x3dcc,_0x3c45bb=_0xc900f9[_0xc007d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c45bb||0x0==_0x3c45bb[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d4739}=new URL(window[_0xc007d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a446a(0x18d)]);if(_0x3c45bb[_0xc007d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d4739))return!0x0;const _0x56747b=_0x5d4739[_0xc007d6([0x73,0x70,0x6c,0x69,0x74])](_0xc007d6([0x2e]));return _0x3c45bb[_0xc007d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c63d5=>_0x2c63d5[_0xc007d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc007d6([0x2a])))[_0xc007d6([0x6d,0x61,0x70])](_0x260dcb=>_0x260dcb[_0xc007d6([0x73,0x70,0x6c,0x69,0x74])](_0xc007d6([0x2e])))[_0xc007d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51108f=>_0x51108f[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56747b[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc007d6([0x6d,0x61,0x70])](_0x27df78=>Array(_0x56747b[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27df78[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc007d6([0x66,0x69,0x6c,0x6c])](_0x27df78[0x0]===_0xc007d6([0x2a])?_0xc007d6([0x2a]):'')[_0xc007d6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27df78))[_0xc007d6([0x73,0x6f,0x6d,0x65])](_0x28ab64=>_0x56747b[_0xc007d6([0x65,0x76,0x65,0x72,0x79])]((_0x289df1,_0x18260a)=>_0x28ab64[_0x18260a]===_0x289df1||_0x28ab64[_0x18260a]===_0xc007d6([0x2a])));}function _0xca647f(){return _0x5bf9d9&&_0x4482fd?new window[(_0xc007d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x133b9c,_0x54f981)=>{_0x5bf9d9[_0xc007d6([0x74,0x68,0x65,0x6e])](_0x133b9c,_0x54f981),_0x4482fd[_0xc007d6([0x74,0x68,0x65,0x6e])](_0x10ecdc=>{_0x10ecdc!=_0xc007d6([0x56,0x61,0x6c,0x69,0x64])&&_0x133b9c(_0x10ecdc);},_0x54f981);}):_0x5bf9d9||_0x4482fd||_0xc007d6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28fad7(_0x5a3f31,_0x20be01){return new window[(_0xc007d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b9b5=>{if(_0x5a508f())return _0x56b9b5(_0xc007d6([0x56,0x61,0x6c,0x69,0x64]));_0x4f4384(),_0x1b735f[_0xc007d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc007d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a4e8e=!0x1;const _0x311c6d=_0x9757fc();function _0x1401bd(_0x3eeddd){return!!_0x3eeddd&&(typeof _0x3eeddd===_0xc007d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3eeddd===_0xc007d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3eeddd[_0xc007d6([0x74,0x68,0x65,0x6e])]===_0xc007d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3eeddd[_0xc007d6([0x63,0x61,0x74,0x63,0x68])]===_0xc007d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfa0e71(_0x4605b1){_0x51c526(_0x4605b1)[_0xc007d6([0x74,0x68,0x65,0x6e])](_0x515414=>{if(!_0x515414||_0x515414[_0xc007d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc007d6([0x6f,0x6b]))return _0xc007d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x194ce3(_0x2c3ad9(_0x311c6d+_0x20be01))!=_0x515414[_0xc007d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc007d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc007d6([0x56,0x61,0x6c,0x69,0x64]);})[_0xc007d6([0x74,0x68,0x65,0x6e])](_0x243627=>(_0x2e7786(),_0x243627),()=>{const _0x139b0e=_0x584aef();return null==_0x139b0e?(_0x2e7786(),_0xc007d6([0x56,0x61,0x6c,0x69,0x64])):_0xc007d6(_0x2e0832-_0x139b0e>(0x7753083a^_0x32dd26)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc007d6([0x74,0x68,0x65,0x6e])](_0x56b9b5)[_0xc007d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56b9b5(_0xc007d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4acc25=0x536962ba^_0x32dd26;function _0x2e7786(){const _0x574b76=_0xc007d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x194ce3(_0x2c3ad9(_0x5a3f31)),_0x3d311a=_0xcbc865(_0x194ce3(window[_0xc007d6([0x4d,0x61,0x74,0x68])][_0xc007d6([0x63,0x65,0x69,0x6c])](_0x2e0832/_0x4acc25)));window[_0xc007d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc007d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x574b76,_0x3d311a);}function _0x584aef(){const _0x73bc8b=_0xc007d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x194ce3(_0x2c3ad9(_0x5a3f31)),_0x446704=window[_0xc007d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc007d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x73bc8b);return _0x446704?window[_0xc007d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcbc865(_0x446704),0x10)*_0x4acc25:null;}function _0x51c526(_0x42d3fd){return new window[(_0xc007d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bfd9b,_0x86f41d)=>{_0x42d3fd[_0xc007d6([0x74,0x68,0x65,0x6e])](_0x3bfd9b,_0x86f41d),window[_0xc007d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x86f41d,0x535e58fa^_0x32dd26);});}}_0x1b735f[_0xc007d6([0x6f,0x6e])](_0xc007d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48d2f,_0x18780c)=>{if(_0x18780c[0x0]!=_0x5a3f31)return _0x56b9b5(_0xc007d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18780c[0x1]={..._0x18780c[0x1],[_0xc007d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x311c6d};},{[_0xc007d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc007d6([0x68,0x69,0x67,0x68])}),_0x1b735f[_0xc007d6([0x6f,0x6e])](_0xc007d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x152be6=>{_0x1401bd(_0x152be6[_0xc007d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a4e8e=!0x0,_0xfa0e71(_0x152be6[_0xc007d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc007d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc007d6([0x6c,0x6f,0x77])}),_0x3538b3[_0xc007d6([0x74,0x68,0x65,0x6e])](()=>{_0x5a4e8e||_0x56b9b5(_0xc007d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a508f(){return _0x1b735f[_0xc007d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc007d6([0x76,0x69,0x65,0x77])][_0xc007d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc007d6([0x61,0x75,0x74,0x6f]);}function _0x4f4384(){_0x1b735f[_0xc007d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc007d6([0x76,0x69,0x65,0x77])][_0xc007d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc007d6([0x61,0x75,0x74,0x6f]);}}function _0x1ac304(_0x1d009d){const _0x95c8d1=[new window[(_0xc007d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f26ec=>setTimeout(_0x4f26ec,0x5356b2f6^_0x32dd26)),_0x3538b3[_0xc007d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc007d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x558431=>{let _0x288579=0x0;_0x1b735f[_0xc007d6([0x6d,0x6f,0x64,0x65,0x6c])][_0xc007d6([0x6f,0x6e])](_0xc007d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26e9fe,_0x23fa21)=>{_0x23fa21[0x0][_0xc007d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x288579++,_0x288579==(0x535f8dc2^_0x32dd26)&&(_0x558431(),_0x26e9fe[_0xc007d6([0x6f,0x66,0x66])]());});}))];return window[_0xc007d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc007d6([0x72,0x61,0x63,0x65])](_0x95c8d1)[_0xc007d6([0x74,0x68,0x65,0x6e])](()=>_0x1d009d);}async function _0x3091d2(){await _0x3538b3,_0x1b735f[_0xc007d6([0x6d,0x6f,0x64,0x65,0x6c])][_0xc007d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12c37b,_0x1b735f[_0xc007d6([0x6d,0x6f,0x64,0x65,0x6c])][_0xc007d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12c37b,_0x1b735f[_0xc007d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc007d6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2203ec(_0x3b43cd){const _0x5b8fa0=_0x3879da();_0x1b735f[_0x5b8fa0]=_0xc007d6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b43cd,_0x3b43cd!=_0xc007d6([0x56,0x61,0x6c,0x69,0x64])&&_0x3091d2();}function _0x3879da(){const _0x4db65f=window[_0xc007d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc007d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc007d6([0x6e,0x6f,0x77])]())[_0xc007d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc007d6([0x2e]),'');let _0x3edfbd=_0xc007d6([0x68]);for(let _0x489965=0x0;_0x489965<_0x4db65f[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x489965+=0x2){let _0x23a5c9=window[_0xc007d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4db65f[_0xc007d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x489965,_0x489965+0x2));_0x23a5c9>=_0x44a9ca[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23a5c9-=_0x44a9ca[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3edfbd+=_0x44a9ca[_0x23a5c9];}return _0x3edfbd;}function _0x22f22f(){const _0x429f13=_0xc45f0c[_0xc007d6([0x73,0x70,0x6c,0x69,0x74])](_0xc007d6([0x2e]));if(0x3!=_0x429f13[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3750a0(_0x429f13[0x1]);function _0x3750a0(_0x4fff4b){const _0xad4563=_0x2186c7(_0x4fff4b);return _0xad4563&&_0x5476ec()?_0xad4563:null;function _0x5476ec(){const _0x36c83f=_0xad4563[_0xc007d6([0x6a,0x74,0x69])],_0x5b86e4=window[_0xc007d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36c83f[_0xc007d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36c83f[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c92a7={..._0xad4563,[_0xc007d6([0x6a,0x74,0x69])]:_0x36c83f[_0xc007d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36c83f[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c92a7[_0xc007d6([0x76,0x63])],_0x2c3ad9(_0x2c92a7)==_0x5b86e4;}}}async function _0x2958eb(){let _0x580191=!0x0;try{const _0x9deb60=_0xc45f0c[_0xc007d6([0x73,0x70,0x6c,0x69,0x74])](_0xc007d6([0x2e])),[_0x366a5e,_0x14ac0a,_0x6949bf]=_0x9deb60;return _0x349b1f(_0x366a5e),await _0x493362(_0x366a5e,_0x14ac0a,_0x6949bf),_0x580191;}catch{return!0x1;}function _0x349b1f(_0x1e65a4){const _0x1e6325=_0x2186c7(_0x1e65a4);_0x1e6325&&_0x1e6325[_0xc007d6([0x61,0x6c,0x67])]==_0xc007d6([0x45,0x53,0x32,0x35,0x36])||(_0x580191=!0x1);}async function _0x493362(_0x4837a3,_0x945248,_0xbd9aae){const _0x4e1339=window[_0xc007d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc007d6([0x66,0x72,0x6f,0x6d])](_0x263595(_0xbd9aae),_0x369712=>_0x369712[_0xc007d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43a699=new window[(_0xc007d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc007d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4837a3+_0xc007d6([0x2e])+_0x945248),_0x1264ce=window[_0xc007d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc007d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1264ce)return;const _0xc881d0=await _0x1264ce[_0xc007d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc007d6([0x6a,0x77,0x6b]),_0x58751f,{[_0xc007d6([0x6e,0x61,0x6d,0x65])]:_0xc007d6([0x45,0x43,0x44,0x53,0x41]),[_0xc007d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc007d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc007d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1264ce[_0xc007d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc007d6([0x6e,0x61,0x6d,0x65])]:_0xc007d6([0x45,0x43,0x44,0x53,0x41]),[_0xc007d6([0x68,0x61,0x73,0x68])]:{[_0xc007d6([0x6e,0x61,0x6d,0x65])]:_0xc007d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc881d0,_0x4e1339,_0x43a699)||(_0x580191=!0x1);}}function _0x2186c7(_0x5e19a7){return _0x5e19a7[_0xc007d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc007d6([0x65,0x79]))?JSON[_0xc007d6([0x70,0x61,0x72,0x73,0x65])](_0x263595(_0x5e19a7)):null;}function _0x263595(_0x344fb1){return window[_0xc007d6([0x61,0x74,0x6f,0x62])](_0x344fb1[_0xc007d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc007d6([0x2b]))[_0xc007d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc007d6([0x2f])));}function _0x2c3ad9(_0x209c8a){let _0x57de1f=0x1505;function _0x420470(_0x18ae40){for(let _0x2d03af=0x0;_0x2d03af<_0x18ae40[_0xc007d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d03af++){const _0x5060a3=_0x18ae40[_0xc007d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d03af);_0x57de1f=(_0x57de1f<<0x5)+_0x57de1f+_0x5060a3,_0x57de1f&=_0x57de1f;}}function _0x41a33b(_0x5a07fa){Array[_0xc007d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a07fa)?_0x5a07fa[_0xc007d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41a33b):_0x5a07fa&&typeof _0x5a07fa==_0xc007d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc007d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a07fa)[_0xc007d6([0x73,0x6f,0x72,0x74])]()[_0xc007d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14be2b,_0x4db615])=>{_0x420470(_0x14be2b),_0x41a33b(_0x4db615);}):_0x420470(window[_0xc007d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a07fa));}return _0x41a33b(_0x209c8a),_0x57de1f>>>0x0;}function _0x194ce3(_0x159f3d){return _0x159f3d[_0xc007d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc007d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc007d6([0x30]));}function _0xcbc865(_0x1f14e0){return _0x1f14e0[_0xc007d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc007d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc007d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x12c37b(){}function _0xc007d6(_0x1ac09a){const _0x12a1e1=_0x3dcc;return _0x1ac09a[_0x12a1e1(0x15a)](_0x1db303=>String[_0x12a1e1(0x18a)](_0x1db303))[_0x12a1e1(0x158)]('');}_0x2203ec(await _0x11eafe());}(this);}[_0x59391b(0x164)](){const _0x197635=_0x59391b,_0x571a47=this[_0x197635(0x1a0)][_0x197635(0x160)][_0x197635(0x184)];_0x571a47[_0x197635(0x193)](_0x197635(0x177))&&_0x571a47[_0x197635(0x16a)](_0x197635(0x177),{'allowAttributes':[_0x197635(0x195)]}),_0x571a47[_0x197635(0x193)](_0x197635(0x19c))&&_0x571a47[_0x197635(0x16a)](_0x197635(0x19c),{'allowAttributes':[_0x197635(0x195)]});}[_0x59391b(0x17c)](){const _0x3410bf=_0x59391b,_0x4d6dd8=this[_0x3410bf(0x1a0)];_0x4d6dd8[_0x3410bf(0x16c)][_0x3410bf(0x179)](_0x3410bf(0x17a))[_0x3410bf(0x19d)]({'model':_0x3410bf(0x195),'view':_0x3410bf(0x1a6)}),_0x4d6dd8[_0x3410bf(0x16c)][_0x3410bf(0x179)](_0x3410bf(0x15c))[_0x3410bf(0x1a2)]({'model':{'key':_0x3410bf(0x195),'value':_0x402036=>_0x402036[_0x3410bf(0x196)](_0x3410bf(0x1a6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x352f4c=_0x4d6dd8[_0x3410bf(0x18b)][_0x3410bf(0x156)](_0x3410bf(0x157));_0x352f4c&&this[_0x3410bf(0x155)](_0x352f4c,_0x3410bf(0x154),(_0x4c6573,[_0x263b59,_0x577bb7])=>{const _0x48ab25=_0x3410bf;_0x263b59[_0x48ab25(0x189)](_0x48ab25(0x195),_0x577bb7);});}[_0x59391b(0x16b)](){const _0x1ed584=_0x59391b,_0x255145=this[_0x1ed584(0x1a0)][_0x1ed584(0x171)][_0x1ed584(0x156)](_0x1ed584(0x19b))||{},_0x3a3462=this[_0x1ed584(0x1a0)][_0x1ed584(0x171)][_0x1ed584(0x156)](_0x1ed584(0x186))||'';this[_0x1ed584(0x172)]=_0xa4cc4b(_0x403e85[_0x1ed584(0x18f)],_0x1ed584(0x198),{..._0x255145,'pubkey':_0x3a3462,'ctx-name':_0x1ed584(0x192)+this[_0x1ed584(0x159)],'sourceList':'','imgOnly':_0x1ed584(0x188),'removeCopyright':_0x1ed584(0x188),'localeName':this[_0x1ed584(0x1a0)][_0x1ed584(0x183)][_0x1ed584(0x166)],'externalSourcesEmbedCss':_0x1ed584(0x1a1)}),this[_0x1ed584(0x172)][_0x1ed584(0x17f)]=_0x591a86=>{const _0x7ff615=_0x1ed584;if(_0x7ff615(0x175)==_0x591a86)return _0x7ff615(0x162);},_0x403e85[_0x1ed584(0x18f)][_0x1ed584(0x170)][_0x1ed584(0x17e)](this[_0x1ed584(0x172)]);}[_0x59391b(0x18e)](){const _0xf36a1e=_0x59391b;this[_0xf36a1e(0x165)]=_0xa4cc4b(_0x403e85[_0xf36a1e(0x18f)],_0xf36a1e(0x163),{'ctx-name':_0xf36a1e(0x192)+this[_0xf36a1e(0x159)]}),_0x403e85[_0xf36a1e(0x18f)][_0xf36a1e(0x170)][_0xf36a1e(0x17e)](this[_0xf36a1e(0x165)]);}[_0x59391b(0x174)](){const _0x403d04=_0x59391b,_0x381717=this[_0x403d04(0x1a0)][_0x403d04(0x18b)][_0x403d04(0x156)](_0x403d04(0x153));_0x381717&&this[_0x403d04(0x155)](_0x381717,_0x403d04(0x199),()=>{const _0x2ceca3=_0x403d04,_0x3638b0=this[_0x2ceca3(0x1a0)][_0x2ceca3(0x160)][_0x2ceca3(0x18f)][_0x2ceca3(0x17b)][_0x2ceca3(0x161)]();_0x3638b0&&_0x3638b0[_0x2ceca3(0x196)](_0x2ceca3(0x195))&&this[_0x2ceca3(0x1a0)][_0x2ceca3(0x168)][_0x2ceca3(0x15e)][_0x2ceca3(0x16e)](_0x2ceca3(0x191),()=>{const _0x1ad058=_0x2ceca3;_0x2e3c82(this[_0x1ad058(0x1a0)],_0x3638b0);});});const _0xa175f2=this[_0x403d04(0x1a0)][_0x403d04(0x18b)][_0x403d04(0x156)](_0x403d04(0x190));_0xa175f2&&this[_0x403d04(0x155)](_0xa175f2,_0x403d04(0x199),()=>{const _0x389642=_0x403d04,_0x46051d=this[_0x389642(0x1a0)][_0x389642(0x160)][_0x389642(0x18f)][_0x389642(0x17b)][_0x389642(0x161)]();_0x46051d&&_0x46051d[_0x389642(0x196)](_0x389642(0x195))&&this[_0x389642(0x1a0)][_0x389642(0x168)][_0x389642(0x15e)][_0x389642(0x16e)](_0x389642(0x191),()=>{const _0x13d4c2=_0x389642;_0x2e3c82(this[_0x13d4c2(0x1a0)],_0x46051d);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x26bbf0,ObservableMixin as _0x2a30df}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3d3d26}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1d3a32}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1a9ad0}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x353ab}from'../../utils/uploadutils.js';import{getImageUrls as _0x10b998,getImageDimension as _0xe0be06}from'../../utils/editingutils.js';import{isAncestor as _0x2cdecc}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a30df(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2e5ac7,_0xbc109d,_0x1ce792){super(),this['_editor']=_0x2e5ac7,this['_dialog']=_0xbc109d,this['_imageElement']=_0x1ce792,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 _0x1d891c=this['_imageElement'],_0x529de5=_0x1d891c['getAttribute']('uploadcareImageId'),_0x3aa317=_0x1d891c['getAttribute']('src');if(_0x529de5)await this['_loadImageInfo'](_0x529de5,_0x3aa317);else{if(this['_imageCache']['has'](_0x3aa317)){const _0x52bc40=this['_imageCache']['get'](_0x3aa317);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x52bc40['url'],this['imageDimension']=_0x52bc40['dimension'],this['imageId']=_0x52bc40['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x13893c}=this['_editor'],t=_0x13893c['t'],_0x291a95=new _0x1a9ad0(_0x13893c,this['imageStatus'],this['_attributes']);_0x291a95['bind']('status')['to'](this,'imageStatus'),_0x291a95['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x291a95['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x291a95['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x291a95,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d3a32,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x291a95,'position':_0x3d3d26['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x291a95['focus']();},'onHide':()=>{_0x291a95['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a8612=>!_0x2cdecc(_0x3a8612,_0x291a95['element'])}});}['_loadImageInfo'](_0x5ea97c,_0x16b1a6){return _0x353ab['getInfo'](_0x5ea97c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x33e3c4=>{const {width:_0x31eec7,height:_0x5d73c3}=_0x33e3c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16b1a6,this['imageDimension']={'width':_0x31eec7,'height':_0x5d73c3},this['imageId']=_0x5ea97c;})['catch'](_0x4c684c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c684c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xc92fed,_0xf3aeec){return this['_getImageAsFile'](_0xc92fed)['then'](_0x136ede=>_0x353ab['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xf3aeec['signal'],'file':_0x136ede,'onProgress':_0xe8a5e9=>{_0xe8a5e9&&_0xe8a5e9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe8a5e9['value']));}}))['then'](_0x311c0b=>{const {width:_0x183822,height:_0x5beb50}=_0x311c0b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x311c0b['cdnUrl'],this['imageDimension']={'width':_0x183822,'height':_0x5beb50},this['imageId']=_0x311c0b['uuid'],this['imageUploadProgress']=null;const _0x4ac3da=_0xc92fed['getAttribute']('src');this['_imageCache']['set'](_0x4ac3da,{'id':_0x311c0b['uuid'],'url':_0x311c0b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xf1a87d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf1a87d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3ab836,_0x1f5bce){_0x3ab836['on']('apply',(_0x396772,_0x36943f)=>{this['_replaceImage'](_0x1f5bce,_0x36943f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3ab836['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3ab836['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x22209e,_0x49c51e,_0x10ac5f){const _0x2c252f=this['_editor'],{width:_0x12ad30,height:_0x11a206}=_0xe0be06(_0x49c51e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3972ac,imageSources:_0x59cb18}=_0x10b998(_0x49c51e,_0x12ad30);_0x2c252f['model']['change'](_0x4e0293=>{if('$graveyard'===_0x22209e['root']['rootName']){_0x2c252f['execute']('insertImage',{'imageType':_0x22209e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x22209e['getAttributes']()),'uploadcareImageId':_0x10ac5f,'src':_0x3972ac,'sources':_0x59cb18,'width':_0x12ad30,'height':_0x11a206}});const _0x51c0b6=_0x22209e['getChildren']();_0x22209e=_0x2c252f['model']['document']['selection']['getSelectedElement']();for(const _0x564ab9 of _0x51c0b6)_0x4e0293['append'](_0x4e0293['cloneElement'](_0x564ab9),_0x22209e);}else _0x4e0293['setSelection'](_0x22209e,'on'),_0x2c252f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x22209e['getAttributes']()),'uploadcareImageId':_0x10ac5f,'src':_0x3972ac,'sources':_0x59cb18,'width':_0x12ad30,'height':_0x11a206},_0x22209e);_0x4e0293['setSelection'](_0x22209e,'on');});}async['_getImageAsFile'](_0x5a712b){const _0x12647a=_0x26bbf0['window'],_0x273a8e=_0x26bbf0['document']['location']['href'],_0x5f4372=new _0x12647a['URL'](_0x5a712b['getAttribute']('src'),_0x273a8e);if('data:'===_0x5f4372['protocol']){const _0x4197c8=_0x5f4372['href']['split'](','),_0x3826a8=_0x4197c8[0x0]['match'](/:(.*?);/)[0x1],_0x3683d4=_0x3826a8['split']('/')[0x1],_0x421dfa=_0x12647a['atob'](_0x4197c8[_0x4197c8['length']-0x1]);let _0x1b1208=_0x421dfa['length'];const _0x58c9dc=new _0x12647a['Uint8Array'](_0x1b1208);for(;_0x1b1208--;)_0x58c9dc[_0x1b1208]=_0x421dfa['charCodeAt'](_0x1b1208);return new _0x12647a['File']([_0x58c9dc],'image.'+_0x3683d4,{'type':_0x3826a8});}const _0x2ce8de=_0x5f4372['href']['split']('/'),_0x2e29f2=_0x2ce8de[_0x2ce8de['length']-0x1],_0x19d0df=_0x2e29f2['split']('.')[0x1];return _0x12647a['fetch'](_0x5f4372['href'])['then'](_0x38b02b=>_0x38b02b['clone']()['blob']())['then'](_0xfb3025=>new _0x12647a['File']([_0xfb3025],_0x2e29f2,{'type':'image/'+_0x19d0df}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x26a3dd,_0x2d098c){const _0x3753d0=_0x1dc0,_0x5c9fb1=_0x26a3dd();while(!![]){try{const _0x3b258c=parseInt(_0x3753d0(0xdf))/0x1+parseInt(_0x3753d0(0xd8))/0x2*(-parseInt(_0x3753d0(0xdc))/0x3)+parseInt(_0x3753d0(0xdd))/0x4+-parseInt(_0x3753d0(0xde))/0x5+parseInt(_0x3753d0(0xe4))/0x6*(parseInt(_0x3753d0(0xe3))/0x7)+parseInt(_0x3753d0(0xe1))/0x8*(-parseInt(_0x3753d0(0xe0))/0x9)+parseInt(_0x3753d0(0xe2))/0xa;if(_0x3b258c===_0x2d098c)break;else _0x5c9fb1['push'](_0x5c9fb1['shift']());}catch(_0x367e3a){_0x5c9fb1['push'](_0x5c9fb1['shift']());}}}(_0x3f6a,0xe3bf9));function _0x3f6a(){const _0xed3f78=['ck-uploadcare-theme','setTemplate','imageSrc','10QeWKAV','image-edit','bindTemplate','uc-light','376764rcRTjo','1042200mzsJhQ','6142085lAzxpD','1862701yBagVI','81mKsvTu','1225912kikaeQ','14168200yVkSFO','4398058RWoDWP','6YyKeQj','set','uc-cloud-image-editor'];_0x3f6a=function(){return _0xed3f78;};return _0x3f6a();}function _0x1dc0(_0x1f0a98,_0x456fe3){const _0x3f6a5c=_0x3f6a();return _0x1dc0=function(_0x1dc091,_0x19eb55){_0x1dc091=_0x1dc091-0xd8;let _0x2e12db=_0x3f6a5c[_0x1dc091];return _0x2e12db;},_0x1dc0(_0x1f0a98,_0x456fe3);}import{View as _0x22849e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x22849e{constructor(_0x4f157e,_0x290bee){const _0x439dcd=_0x1dc0;super(_0x4f157e);const _0x4912d5=this[_0x439dcd(0xda)];this[_0x439dcd(0xe5)](_0x439dcd(0xe9),''),this[_0x439dcd(0xe8)]({'tag':_0x439dcd(0xe6),'attributes':{..._0x290bee,'class':[_0x439dcd(0xdb),_0x439dcd(0xe7)],'ctx-name':_0x439dcd(0xd9),'cdn-url':_0x4912d5['to'](_0x439dcd(0xe9))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x345bf9}from'ckeditor5/src/icons.js';import{ButtonView as _0x3ec530,IconView as _0xa61d96,View as _0x523618}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x523618{constructor(_0x262bd5){super(_0x262bd5);const t=_0x262bd5['t'];this['set']('errorType',null);const _0x39adb4=new _0x3ec530(_0x262bd5);_0x39adb4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x39adb4['withText']=!0x0,_0x39adb4['class']='ck-button-action',_0x39adb4['on']('execute',()=>{this['fire']('retry');}),_0x39adb4['bind']('isVisible')['to'](this,'errorType',_0x36b712=>'NotFound'!==_0x36b712);const _0x2f5d57=new _0xa61d96();_0x2f5d57['content']=_0x345bf9,_0x2f5d57['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe7e5ca=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':[_0x2f5d57,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe7e5ca['to']('errorType',_0x427bfb=>t('NotFound'!==_0x427bfb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x39adb4]},{'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 _0x43a54c,View as _0x7b1601}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x7b1601{constructor(_0xee483b){super(_0xee483b);const t=_0xee483b['t'],_0x1375ca=this['bindTemplate'],_0x4234c0=new _0x43a54c();_0x4234c0['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':[_0x4234c0,{'text':_0x1375ca['to']('imageUploadProgress',_0x455701=>t('Loading\x20image...')+'\x20('+(_0x455701||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 _0x1f56b6=_0x19e4;(function(_0x1d9b37,_0x132e35){const _0x397faa=_0x19e4,_0x9d88a4=_0x1d9b37();while(!![]){try{const _0x41974f=parseInt(_0x397faa(0x1b3))/0x1+parseInt(_0x397faa(0x1a7))/0x2*(-parseInt(_0x397faa(0x1b5))/0x3)+parseInt(_0x397faa(0x1cf))/0x4+parseInt(_0x397faa(0x1aa))/0x5*(-parseInt(_0x397faa(0x1b4))/0x6)+-parseInt(_0x397faa(0x1b2))/0x7*(-parseInt(_0x397faa(0x1c8))/0x8)+parseInt(_0x397faa(0x1be))/0x9*(-parseInt(_0x397faa(0x1c0))/0xa)+parseInt(_0x397faa(0x1c9))/0xb;if(_0x41974f===_0x132e35)break;else _0x9d88a4['push'](_0x9d88a4['shift']());}catch(_0x336e1f){_0x9d88a4['push'](_0x9d88a4['shift']());}}}(_0x4721,0xc6b87));import{View as _0x2a09b3}from'ckeditor5/src/ui.js';function _0x19e4(_0x12cdb4,_0x117ff9){const _0x4721f0=_0x4721();return _0x19e4=function(_0x19e48c,_0x437ce8){_0x19e48c=_0x19e48c-0x1a4;let _0x4c0410=_0x4721f0[_0x19e48c];return _0x4c0410;},_0x19e4(_0x12cdb4,_0x117ff9);}import{UploadcareImageEditFormLoadingView as _0x4a237c}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x357241}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1a1c05}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x49b480}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x49b480{[_0x1f56b6(0x1b8)];[_0x1f56b6(0x1af)];[_0x1f56b6(0x1ae)];[_0x1f56b6(0x1ab)];[_0x1f56b6(0x1c3)];constructor(_0x6017ce,_0x21bf14,_0x81940e){const _0x5d5410=_0x1f56b6;super(_0x6017ce),this[_0x5d5410(0x1b8)]=this[_0x5d5410(0x1cc)](),this[_0x5d5410(0x1af)]=new _0x4a237c(_0x6017ce),this[_0x5d5410(0x1ae)]=new _0x357241(_0x6017ce),this[_0x5d5410(0x1ab)]=new _0x1a1c05(_0x6017ce,_0x81940e),this[_0x5d5410(0x1c3)]=new _0x2a09b3(_0x6017ce),this[_0x5d5410(0x1c3)][_0x5d5410(0x1b6)](this[_0x5d5410(0x1db)]()),this[_0x5d5410(0x1bc)](_0x5d5410(0x1b1),_0x21bf14),this[_0x5d5410(0x1b6)]({'tag':_0x5d5410(0x1c4),'attributes':{'class':['ck',_0x5d5410(0x1b9),_0x5d5410(0x1d9)],'tabindex':'-1'},'children':this[_0x5d5410(0x1b8)]}),this[_0x5d5410(0x1ba)](),this[_0x5d5410(0x1c7)](_0x5d5410(0x1d8),()=>{const _0x1c34ab=_0x5d5410;this[_0x1c34ab(0x1bb)](this[_0x1c34ab(0x1a8)],_0x5a1151=>{const _0x404903=_0x1c34ab;this[_0x404903(0x1ac)](_0x5a1151);});}),this['on'](_0x5d5410(0x1c5),()=>{const _0x2c397c=_0x5d5410;this[_0x2c397c(0x1ba)]();}),this[_0x5d5410(0x1b0)]();}[_0x1f56b6(0x1c6)](){const _0x12e8a4=_0x1f56b6;this[_0x12e8a4(0x1a8)][_0x12e8a4(0x1c6)]();}[_0x1f56b6(0x1ba)](){const _0x381ffb=_0x1f56b6;switch(this[_0x381ffb(0x1b8)][_0x381ffb(0x1d3)](),this[_0x381ffb(0x1b1)]){case _0x381ffb(0x1c1):this[_0x381ffb(0x1b8)][_0x381ffb(0x1d6)](this[_0x381ffb(0x1af)]);break;case _0x381ffb(0x1cd):this[_0x381ffb(0x1b8)][_0x381ffb(0x1d6)](this[_0x381ffb(0x1ae)]);break;case _0x381ffb(0x1c2):this[_0x381ffb(0x1b8)][_0x381ffb(0x1ad)]([this[_0x381ffb(0x1ab)],this[_0x381ffb(0x1c3)]]);}}[_0x1f56b6(0x1bb)](_0x24da13,_0x191b80){const _0x4d8cf5=_0x1f56b6,_0x5328d0=_0x4d8cf5(0x1d5),_0x19fde4=_0x24da13[_0x4d8cf5(0x1bd)](_0x5328d0);if(_0x19fde4)return _0x191b80(_0x19fde4);const _0xdbc577=new MutationObserver(_0x5504b2=>{const _0x2c60=_0x4d8cf5,_0x1a91c7=_0x5504b2[_0x2c60(0x1d0)](_0x4542a7=>_0x4542a7[_0x2c60(0x1a5)]===_0x24da13&&_0x4542a7[_0x2c60(0x1d2)][_0x2c60(0x1d7)]>0x0&&_0x4542a7[_0x2c60(0x1d2)][0x0][_0x2c60(0x1a9)][_0x2c60(0x1ce)]()===_0x5328d0);_0x1a91c7[_0x2c60(0x1d7)]&&(_0xdbc577[_0x2c60(0x1b7)](),_0x191b80(_0x1a91c7[0x0][_0x2c60(0x1d2)][0x0]));});_0xdbc577[_0x4d8cf5(0x1cb)](_0x24da13,{'childList':!0x0,'subtree':!0x0});}[_0x1f56b6(0x1ac)](_0x441af6){const _0x366430=_0x1f56b6;_0x441af6[_0x366430(0x1d4)](_0x366430(0x1d1),_0x2f7016=>{const _0x53365e=_0x366430;this[_0x53365e(0x1bf)](_0x53365e(0x1d1),{'imageSrc':_0x2f7016[_0x53365e(0x1ca)][_0x53365e(0x1a4)]});}),_0x441af6[_0x366430(0x1d4)](_0x366430(0x1da),()=>{const _0x5f4cf0=_0x366430;this[_0x5f4cf0(0x1bf)](_0x5f4cf0(0x1da));});}[_0x1f56b6(0x1b0)](){const _0xf15b1e=_0x1f56b6;this[_0xf15b1e(0x1ae)]['on'](_0xf15b1e(0x1a6),()=>{const _0x5ceed8=_0xf15b1e;this[_0x5ceed8(0x1bf)](_0x5ceed8(0x1a6));});}}function _0x4721(){const _0x2f86b5=['disconnect','_items','ck-reset_all-excluded','_setView','_waitForImageEditorComponent','set','querySelector','1773PojyvK','fire','15040SYPbfo','uploading','ready','_focusableView','div','change:status','focus','once','9406496WxrJex','22312972PXlnnD','detail','observe','createCollection','error','toLowerCase','2830488ZGgamN','filter','apply','addedNodes','clear','addEventListener','uc-cloud-image-editor','add','length','render','ck-uploadcare-form','cancel','getFocusableElement','cdnUrl','target','retry','1583866pwzZKO','element','nodeName','5HgtSPJ','_editingView','_addUploadcareImageEditorListeners','addMany','_errorView','_loadingView','_addErrorViewListeners','status','7ipTnce','356643WrBJnF','9446496CKmRlh','6kkETdi','setTemplate'];_0x4721=function(){return _0x2f86b5;};return _0x4721();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5a96cb=_0x801b;(function(_0x28bedb,_0x1d6531){const _0x5de92a=_0x801b,_0x4b6217=_0x28bedb();while(!![]){try{const _0xef0631=parseInt(_0x5de92a(0x149))/0x1+parseInt(_0x5de92a(0x14a))/0x2+-parseInt(_0x5de92a(0x154))/0x3+parseInt(_0x5de92a(0x13f))/0x4*(-parseInt(_0x5de92a(0x13e))/0x5)+-parseInt(_0x5de92a(0x142))/0x6*(parseInt(_0x5de92a(0x13d))/0x7)+-parseInt(_0x5de92a(0x138))/0x8+parseInt(_0x5de92a(0x152))/0x9*(parseInt(_0x5de92a(0x14d))/0xa);if(_0xef0631===_0x1d6531)break;else _0x4b6217['push'](_0x4b6217['shift']());}catch(_0x2144df){_0x4b6217['push'](_0x4b6217['shift']());}}}(_0x277d,0x4feaa));function _0x277d(){const _0x3ea08b=['2487906XCSwLk','imageBlock','923859afdHcy','document','imageInline','execute','2856HEWaqF','model','config','getSelectedElement','uploadcare.allowExternalImagesEditing','56063ZbHAtQ','1173780QnZIyw','4RwUTfL','refresh','requires','402LTLOHq','imageEditController','get','_isEditable','selection','editor','isEnabled','343431dRXzrq','1021416vBWXHX','element','isActive','20kdwLyX','unbind','bind','plugins','set'];_0x277d=function(){return _0x3ea08b;};return _0x277d();}function _0x801b(_0x3cbcd7,_0x3c195f){const _0x277d8f=_0x277d();return _0x801b=function(_0x801b64,_0x3f8101){_0x801b64=_0x801b64-0x138;let _0x3ade49=_0x277d8f[_0x801b64];return _0x3ade49;},_0x801b(_0x3cbcd7,_0x3c195f);}import{Command as _0x2b1e78}from'ckeditor5/src/core.js';import{Dialog as _0x33822d}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x28d9c6}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x25373f}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2b1e78{[_0x5a96cb(0x143)];static get[_0x5a96cb(0x141)](){return[_0x33822d];}[_0x5a96cb(0x145)];constructor(_0x1ab7d5){const _0x4022cc=_0x5a96cb;super(_0x1ab7d5),this[_0x4022cc(0x143)]=void 0x0,this[_0x4022cc(0x145)]=_0x25373f(_0x1ab7d5[_0x4022cc(0x13a)][_0x4022cc(0x144)](_0x4022cc(0x13c))||[]),this[_0x4022cc(0x151)]({'isActive':!0x1});}[_0x5a96cb(0x140)](){const _0x5446ed=_0x5a96cb,_0x1ac4ac=this[_0x5446ed(0x147)][_0x5446ed(0x139)][_0x5446ed(0x155)][_0x5446ed(0x146)][_0x5446ed(0x13b)]();this[_0x5446ed(0x148)]=this[_0x5446ed(0x145)](_0x1ac4ac);}[_0x5a96cb(0x157)](){const _0x1cb193=_0x5a96cb;this[_0x1cb193(0x143)]&&(this[_0x1cb193(0x14e)](_0x1cb193(0x14c)),this[_0x1cb193(0x143)]=void 0x0);const _0x3166f8=this[_0x1cb193(0x147)][_0x1cb193(0x139)][_0x1cb193(0x155)][_0x1cb193(0x146)][_0x1cb193(0x13b)]();_0x3166f8&&(_0x3166f8['is'](_0x1cb193(0x14b),_0x1cb193(0x153))||_0x3166f8['is'](_0x1cb193(0x14b),_0x1cb193(0x156)))&&(this[_0x1cb193(0x143)]=new _0x28d9c6(this[_0x1cb193(0x147)],this[_0x1cb193(0x147)][_0x1cb193(0x150)][_0x1cb193(0x144)](_0x33822d),_0x3166f8),this[_0x1cb193(0x14f)](_0x1cb193(0x14c))['to'](this[_0x1cb193(0x143)],_0x1cb193(0x14c)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7a119b=_0x3631;(function(_0xe2f303,_0x556835){const _0x1c588c=_0x3631,_0x2c966d=_0xe2f303();while(!![]){try{const _0x1d094f=parseInt(_0x1c588c(0x186))/0x1+-parseInt(_0x1c588c(0x182))/0x2*(parseInt(_0x1c588c(0x181))/0x3)+-parseInt(_0x1c588c(0x17a))/0x4+parseInt(_0x1c588c(0x180))/0x5*(-parseInt(_0x1c588c(0x178))/0x6)+-parseInt(_0x1c588c(0x17e))/0x7+parseInt(_0x1c588c(0x18a))/0x8+parseInt(_0x1c588c(0x177))/0x9;if(_0x1d094f===_0x556835)break;else _0x2c966d['push'](_0x2c966d['shift']());}catch(_0x581fd1){_0x2c966d['push'](_0x2c966d['shift']());}}}(_0x41ce,0xe23b4));import{Plugin as _0x3883fa}from'ckeditor5/src/core.js';import{Notification as _0x36e86a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4f99d4}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x59415b}from'./uploadcareimagereplacecommand.js';function _0x3631(_0x175b9c,_0x5b5458){const _0x41ce37=_0x41ce();return _0x3631=function(_0x3631ec,_0x13d055){_0x3631ec=_0x3631ec-0x176;let _0x54f848=_0x41ce37[_0x3631ec];return _0x54f848;},_0x3631(_0x175b9c,_0x5b5458);}import{UploadcareEditing as _0x51f783}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3883fa{static get[_0x7a119b(0x185)](){const _0x5775f2=_0x7a119b;return _0x5775f2(0x17f);}static get[_0x7a119b(0x17c)](){const _0x1f7a64=_0x7a119b;return[_0x51f783,_0x36e86a,_0x1f7a64(0x188),_0x1f7a64(0x17d)];}static get[_0x7a119b(0x189)](){return!0x0;}static get[_0x7a119b(0x183)](){return!0x0;}[_0x7a119b(0x187)](){const _0x15e20b=_0x7a119b,{editor:_0x257a4d}=this;_0x257a4d[_0x15e20b(0x184)][_0x15e20b(0x17b)](_0x15e20b(0x176),new _0x4f99d4(_0x257a4d)),_0x257a4d[_0x15e20b(0x184)][_0x15e20b(0x17b)](_0x15e20b(0x179),new _0x59415b(_0x257a4d));}}function _0x41ce(){const _0x48f7f0=['3MHRmjZ','3128098ggTZFR','isPremiumPlugin','commands','pluginName','1047025hsKGKm','init','ImageUtils','isOfficialPlugin','142024rTaTsX','uploadcareImageEdit','49073049rxnoKF','192ADbHFE','uploadcareImageReplace','5057468APpdGb','add','requires','ImageEditing','8763601jDwaOS','UploadcareImageEditEditing','235990mWjTro'];_0x41ce=function(){return _0x48f7f0;};return _0x41ce();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5e130e}from'ckeditor5/src/core.js';import{ButtonView as _0x40d02d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x49e47e}from'ckeditor5/src/icons.js';import{createElement as _0x31108b}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 _0x5e130e{['_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 _0x5dc593=this['editor'];_0x5dc593['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8c355f=>{const _0x30bc26=_0x5dc593['commands']['get']('uploadcareImageEdit'),_0x1c665e=new _0x40d02d(_0x8c355f),t=_0x8c355f['t'];return _0x1c665e['set']({'icon':_0x49e47e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1c665e['bind']('isEnabled')['to'](_0x30bc26),_0x1c665e['bind']('isOn')['to'](_0x30bc26,'isActive'),this['listenTo'](_0x1c665e,'execute',()=>{_0x5dc593['execute']('uploadcareImageEdit'),_0x5dc593['editing']['view']['focus']();}),_0x1c665e;}),this['_initConfig']();}['_initConfig'](){const _0xb77b71=_0x31108b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xb77b71),this['listenTo'](this['editor'],'destroy',()=>{_0xb77b71['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2413b7=_0x42ac;(function(_0x53352a,_0xb46021){const _0x30ad79=_0x42ac,_0xb70027=_0x53352a();while(!![]){try{const _0x32f346=parseInt(_0x30ad79(0x9b))/0x1*(-parseInt(_0x30ad79(0xa8))/0x2)+-parseInt(_0x30ad79(0xa4))/0x3*(-parseInt(_0x30ad79(0xa2))/0x4)+-parseInt(_0x30ad79(0x92))/0x5*(parseInt(_0x30ad79(0x94))/0x6)+-parseInt(_0x30ad79(0x91))/0x7+parseInt(_0x30ad79(0x97))/0x8*(parseInt(_0x30ad79(0x9d))/0x9)+parseInt(_0x30ad79(0xa7))/0xa*(parseInt(_0x30ad79(0x96))/0xb)+parseInt(_0x30ad79(0xac))/0xc;if(_0x32f346===_0xb46021)break;else _0xb70027['push'](_0xb70027['shift']());}catch(_0x20ac5b){_0xb70027['push'](_0xb70027['shift']());}}}(_0x143f,0xa6e84));function _0x143f(){const _0x3a5b59=['model','392987VTgHmX','selection','9RBypIM','document','sizes','element','imageBlock','8isOBiW','change','1260621WDZoky','refresh','execute','50JBCUjw','4LdkyLv','srcset','removeAttribute','editor','10244352bWWOwa','6184164euUfIu','576160LbVERr','getSelectedElement','24olYazh','setAttributes','729091zRJSwS','6307928HJpjay','imageInline','isEnabled'];_0x143f=function(){return _0x3a5b59;};return _0x143f();}function _0x42ac(_0x1a223f,_0xe2cb37){const _0x143f43=_0x143f();return _0x42ac=function(_0x42ac96,_0x2e5c81){_0x42ac96=_0x42ac96-0x91;let _0x5bed34=_0x143f43[_0x42ac96];return _0x5bed34;},_0x42ac(_0x1a223f,_0xe2cb37);}import{Command as _0xe48e63}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0xe48e63{[_0x2413b7(0xa5)](){const _0xe3dd4f=_0x2413b7,_0x5c12e6=this[_0xe3dd4f(0xab)][_0xe3dd4f(0x9a)][_0xe3dd4f(0x9e)][_0xe3dd4f(0x9c)][_0xe3dd4f(0x93)]();this[_0xe3dd4f(0x99)]=Boolean(_0x5c12e6&&(_0x5c12e6['is'](_0xe3dd4f(0xa0),_0xe3dd4f(0xa1))||_0x5c12e6['is'](_0xe3dd4f(0xa0),_0xe3dd4f(0x98))));}[_0x2413b7(0xa6)](_0x48d8c3){const _0x493c8a=_0x2413b7,_0x55c71d=this[_0x493c8a(0xab)][_0x493c8a(0x9a)][_0x493c8a(0x9e)][_0x493c8a(0x9c)][_0x493c8a(0x93)]();this[_0x493c8a(0xab)][_0x493c8a(0x9a)][_0x493c8a(0xa3)](_0x5f3181=>{const _0x23caa1=_0x493c8a;_0x5f3181[_0x23caa1(0x95)](_0x48d8c3,_0x55c71d),_0x5f3181[_0x23caa1(0xaa)](_0x23caa1(0xa9),_0x55c71d),_0x5f3181[_0x23caa1(0xaa)](_0x23caa1(0x9f),_0x55c71d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5e34(_0x4a3b29,_0x4398ae){var _0x2516ed=_0x2516();return _0x5e34=function(_0x5e34e8,_0x3388e5){_0x5e34e8=_0x5e34e8-0x69;var _0x5339a2=_0x2516ed[_0x5e34e8];return _0x5339a2;},_0x5e34(_0x4a3b29,_0x4398ae);}var _0x2c9762=_0x5e34;(function(_0x1ceaec,_0xea2daa){var _0xb06488=_0x5e34,_0xb407d1=_0x1ceaec();while(!![]){try{var _0x4ae357=-parseInt(_0xb06488(0x6d))/0x1+-parseInt(_0xb06488(0x71))/0x2+-parseInt(_0xb06488(0x70))/0x3+-parseInt(_0xb06488(0x6b))/0x4*(parseInt(_0xb06488(0x6c))/0x5)+parseInt(_0xb06488(0x6f))/0x6+-parseInt(_0xb06488(0x6e))/0x7+parseInt(_0xb06488(0x69))/0x8;if(_0x4ae357===_0xea2daa)break;else _0xb407d1['push'](_0xb407d1['shift']());}catch(_0xf69063){_0xb407d1['push'](_0xb407d1['shift']());}}}(_0x2516,0x6b6d2));import{Plugin as _0x48d820}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x3be45e}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x2516(){var _0x2e8d77=['isPremiumPlugin','requires','isOfficialPlugin','UploadcareImageEdit','7753056mbBbTW','pluginName','2892FDqaTu','1325cNSHVW','117254cdhfAV','2858611ZqdBQB','5016456ZQyOUL','1732986OyUNuZ','140612PJzGqP'];_0x2516=function(){return _0x2e8d77;};return _0x2516();}import{UploadcareImageEditUI as _0x2aede6}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x48d820{static get[_0x2c9762(0x6a)](){var _0x5b6828=_0x2c9762;return _0x5b6828(0x75);}static get[_0x2c9762(0x73)](){return[_0x3be45e,_0x2aede6];}static get[_0x2c9762(0x74)](){return!0x0;}static get[_0x2c9762(0x72)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cbe8c=_0x36c7;(function(_0x445154,_0x7a1cbe){const _0x215e6c=_0x36c7,_0x2ca30e=_0x445154();while(!![]){try{const _0x5bcae4=-parseInt(_0x215e6c(0xac))/0x1*(-parseInt(_0x215e6c(0x94))/0x2)+parseInt(_0x215e6c(0xb6))/0x3*(parseInt(_0x215e6c(0xaa))/0x4)+parseInt(_0x215e6c(0x85))/0x5*(-parseInt(_0x215e6c(0x7b))/0x6)+-parseInt(_0x215e6c(0x95))/0x7+-parseInt(_0x215e6c(0x8c))/0x8*(-parseInt(_0x215e6c(0xb0))/0x9)+-parseInt(_0x215e6c(0xa1))/0xa+parseInt(_0x215e6c(0xb4))/0xb;if(_0x5bcae4===_0x7a1cbe)break;else _0x2ca30e['push'](_0x2ca30e['shift']());}catch(_0x10c520){_0x2ca30e['push'](_0x2ca30e['shift']());}}}(_0x373a,0x42a60));import{Plugin as _0x316d7c}from'ckeditor5/src/core.js';import{IconDropbox as _0x5ab290,IconFacebook as _0x17c193,IconGoogleDrive as _0x25d569,IconGooglePhotos as _0x107b3d,IconUploadcareImageUpload as _0x8ff79a,IconUploadcareLink as _0x4f9fc0,IconOneDrive as _0x96c348}from'ckeditor5/src/icons.js';import{ButtonView as _0x29769c,MenuBarMenuListItemButtonView as _0x38b408}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xda2c95}from'./uploadcareconfig.js';import{getTranslation as _0x16cbb2}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 _0x36c7(_0x58003a,_0x436f9d){const _0x373a1f=_0x373a();return _0x36c7=function(_0x36c7af,_0x4a873f){_0x36c7af=_0x36c7af-0x78;let _0x213b63=_0x373a1f[_0x36c7af];return _0x213b63;},_0x36c7(_0x58003a,_0x436f9d);}function _0x373a(){const _0x1a18bb=['bind','url','uploadcareLicenseKeyUsageLimit','text','_licenseKeyCheckInterval','has','URL','icon','12uGXqvp','afterInit','7SrIzyu','_showLicenseError','assetManager','forEach','117BmMVte','OneDrive','Uploadcare','uploadcareLicenseKeyExpired','953326EdFxer','registerIntegration','48570hQVykP','isOfficialPlugin','licenseKey','uploadcareLicenseKeyNotAllowed','withText','init','uploadcareLicenseKeyDomainLimit','domainLimit','Local','ImageInsertUI','featureNotAllowed','config','commands','execute','_getIntegrationKey','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyValid','tooltip','get','isImageSelected','GDrive','GPhotos','_createButton','426OQQBqW','usageLimit','UploadcareUI','upload','_createToolbarButton','evaluationLimit','entries','Replace','uploadcareLicenseKeyTrialLimit','Facebook','26795bDpalo','push','pluginName','type','shortText','trialLimit','expired','237808QQyTWy','reduce','_createDropdownButtons','isEnabled','uploadcareLicenseKeyInvalid','_createMenuBarButtons','destroy','_normalizeConfigSourceList','76598iLBbIu','939771yjHPNq','Dropbox','label','uploadcare.uploader.sourceList','plugins','editor','locale','invalid','map','uploadcare','isPremiumPlugin','Insert','20330lPgAsY'];_0x373a=function(){return _0x1a18bb;};return _0x373a();}export class UploadcareUI extends _0x316d7c{[_0x3cbe8c(0xb8)];[_0x3cbe8c(0xa6)];static get[_0x3cbe8c(0x87)](){const _0x27638f=_0x3cbe8c;return _0x27638f(0x7d);}static get[_0x3cbe8c(0xb7)](){return!0x0;}static get[_0x3cbe8c(0x9f)](){return!0x0;}[_0x3cbe8c(0xbb)](){const _0x47259b=_0x3cbe8c;this[_0x47259b(0xb8)]=this[_0x47259b(0x9a)][_0x47259b(0xc1)][_0x47259b(0xc8)](_0x47259b(0xb8));const _0x3b34ab=this[_0x47259b(0x9a)];this[_0x47259b(0xa6)]=setInterval(()=>{const _0x38541c=_0x47259b;let _0x18d75e;for(const _0x4fbe7c in _0x3b34ab){const _0x3260cf=_0x4fbe7c,_0x5eec41=_0x3b34ab[_0x3260cf];if(_0x38541c(0xc6)==_0x5eec41||_0x38541c(0x90)==_0x5eec41||_0x38541c(0xb3)==_0x5eec41||_0x38541c(0xbc)==_0x5eec41||_0x38541c(0xb9)==_0x5eec41||_0x38541c(0xc5)==_0x5eec41||_0x38541c(0x83)==_0x5eec41||_0x38541c(0xa4)==_0x5eec41){delete _0x3b34ab[_0x3260cf],_0x18d75e=_0x5eec41,clearInterval(this[_0x38541c(0xa6)]),this[_0x38541c(0xa6)]=void 0x0;break;}}_0x38541c(0x90)==_0x18d75e&&_0x3b34ab[_0x38541c(0xad)](_0x38541c(0x9c)),_0x38541c(0xb3)==_0x18d75e&&_0x3b34ab[_0x38541c(0xad)](_0x38541c(0x8b)),_0x38541c(0xbc)==_0x18d75e&&_0x3b34ab[_0x38541c(0xad)](_0x38541c(0xbd)),_0x38541c(0xb9)==_0x18d75e&&_0x3b34ab[_0x38541c(0xad)](_0x38541c(0xc0),_0x38541c(0xb2)),_0x38541c(0xc5)==_0x18d75e&&_0x3b34ab[_0x38541c(0xad)](_0x38541c(0x80)),_0x38541c(0x83)==_0x18d75e&&_0x3b34ab[_0x38541c(0xad)](_0x38541c(0x8a)),_0x38541c(0xa4)==_0x18d75e&&_0x3b34ab[_0x38541c(0xad)](_0x38541c(0x7c));},0x3e8);}[_0x3cbe8c(0xab)](){const _0x398f59=_0x3cbe8c,{editor:_0x36990e}=this,_0x21b58e=_0x36990e[_0x398f59(0xc2)][_0x398f59(0xc8)](_0x398f59(0x9e));if(!_0x21b58e)return;const _0x5c0603=this[_0x398f59(0x93)](_0x36990e[_0x398f59(0xc1)][_0x398f59(0xc8)](_0x398f59(0x98)))[_0x398f59(0x8d)]((_0x94895,_0x4b70a8)=>{const _0x29a38f=_0x398f59,_0x1cf494=this[_0x29a38f(0xc4)](_0x4b70a8[_0x29a38f(0x88)]);return _0x94895[_0x1cf494]||(_0x94895[_0x1cf494]=[]),_0x94895[_0x1cf494][_0x29a38f(0x86)](_0x4b70a8),_0x94895;},{});_0x36990e[_0x398f59(0x99)][_0x398f59(0xa7)](_0x398f59(0xbf))&&_0x36990e[_0x398f59(0xc2)][_0x398f59(0xc8)](_0x398f59(0x9e))&&Object[_0x398f59(0x81)](_0x5c0603)[_0x398f59(0xaf)](([_0x4a8aa6,_0x195a99])=>{const _0x5a3438=_0x398f59;_0x36990e[_0x5a3438(0x99)][_0x5a3438(0xc8)](_0x5a3438(0xbf))[_0x5a3438(0xb5)]({'name':_0x4a8aa6,'observable':()=>_0x21b58e,'buttonViewCreator':()=>this[_0x5a3438(0x7f)](_0x195a99),'formViewCreator':()=>this[_0x5a3438(0x8e)](_0x195a99),'menuBarButtonViewCreator':()=>this[_0x5a3438(0x91)](_0x195a99),'override':_0x5a3438(0xae)!==_0x4a8aa6});});}[_0x3cbe8c(0x92)](){const _0x573424=_0x3cbe8c;super[_0x573424(0x92)](),this[_0x573424(0xa6)]&&clearInterval(this[_0x573424(0xa6)]);}[_0x3cbe8c(0x93)](_0x253f6e){const _0x15782b=_0x3cbe8c,{locale:_0x77a18e}=this[_0x15782b(0x9a)];return _0x253f6e[_0x15782b(0x9d)](_0x2f3478=>{const _0x31d3a6=_0x15782b,_0x196275=_0x16cbb2(_0x77a18e,_0x2f3478,_0x31d3a6(0xa0));switch(_0x2f3478){case _0xda2c95[_0x31d3a6(0xbe)]:return{'icon':_0x8ff79a,'type':_0xda2c95[_0x31d3a6(0xbe)],..._0x196275};case _0xda2c95[_0x31d3a6(0xa8)]:return{'icon':_0x4f9fc0,'type':_0xda2c95[_0x31d3a6(0xa8)],..._0x196275};case _0xda2c95[_0x31d3a6(0x96)]:return{'icon':_0x5ab290,'type':_0xda2c95[_0x31d3a6(0x96)],..._0x196275};case _0xda2c95[_0x31d3a6(0x84)]:return{'icon':_0x17c193,'type':_0xda2c95[_0x31d3a6(0x84)],..._0x196275};case _0xda2c95[_0x31d3a6(0x78)]:return{'icon':_0x25d569,'type':_0xda2c95[_0x31d3a6(0x78)],..._0x196275};case _0xda2c95[_0x31d3a6(0x79)]:return{'icon':_0x107b3d,'type':_0xda2c95[_0x31d3a6(0x79)],..._0x196275};case _0xda2c95[_0x31d3a6(0xb1)]:return{'icon':_0x96c348,'type':_0xda2c95[_0x31d3a6(0xb1)],..._0x196275};}});}[_0x3cbe8c(0xc4)](_0x579a55){const _0x48b19c=_0x3cbe8c;switch(_0x579a55){case _0xda2c95[_0x48b19c(0xbe)]:return _0x48b19c(0x7e);case _0xda2c95[_0x48b19c(0xa8)]:return _0x48b19c(0xa3);default:return _0x48b19c(0xae);}}[_0x3cbe8c(0x7a)](_0x132812,_0xf83e6f){const _0x57997f=_0x3cbe8c,_0x59b8b2=this[_0x57997f(0x9a)],_0x3dfa86=new _0x132812(_0x59b8b2[_0x57997f(0x9b)]),_0x66981d=_0x59b8b2[_0x57997f(0xc2)][_0x57997f(0xc8)](_0x57997f(0x9e));return _0x3dfa86[_0x57997f(0xa2)](_0x57997f(0x8f))['to'](_0x66981d),_0x3dfa86['on'](_0x57997f(0xc3),()=>{const _0x20a295=_0x57997f;_0x66981d[_0x20a295(0xc3)](_0xf83e6f);}),_0x3dfa86;}[_0x3cbe8c(0x7f)](_0x349c6b){const _0x1a0012=_0x3cbe8c,{locale:_0x57ad68}=this[_0x1a0012(0x9a)],_0x165153=this[_0x1a0012(0x9a)][_0x1a0012(0x99)][_0x1a0012(0xc8)](_0x1a0012(0xbf)),_0x1854f3=_0x349c6b[0x0],_0x9d9a10=this[_0x1a0012(0x7a)](_0x29769c,_0x1854f3[_0x1a0012(0x88)]);return _0x9d9a10[_0x1a0012(0xa9)]=_0x1854f3[_0x1a0012(0xa9)],_0x9d9a10[_0x1a0012(0xa2)](_0x1a0012(0x97))['to'](_0x165153,_0x1a0012(0xc9),_0x1d77c8=>_0x16cbb2(_0x57ad68,_0x1854f3[_0x1a0012(0x88)],_0x1d77c8?_0x1a0012(0x82):_0x1a0012(0xa0))[_0x1a0012(0xa5)]),_0x9d9a10[_0x1a0012(0xc7)]=!0x0,_0x9d9a10;}[_0x3cbe8c(0x8e)](_0x14cb6b){const _0x52b745=_0x3cbe8c,{locale:_0x5abc8c}=this[_0x52b745(0x9a)],_0x30a457=this[_0x52b745(0x9a)][_0x52b745(0x99)][_0x52b745(0xc8)](_0x52b745(0xbf));return _0x14cb6b[_0x52b745(0x9d)](_0x9e85a0=>{const _0x596fcf=_0x52b745,_0xb2a6a9=this[_0x596fcf(0x7a)](_0x29769c,_0x9e85a0[_0x596fcf(0x88)]);return _0xb2a6a9[_0x596fcf(0xba)]=!0x0,_0xb2a6a9[_0x596fcf(0xa9)]=_0x9e85a0[_0x596fcf(0xa9)],_0xb2a6a9[_0x596fcf(0xa2)](_0x596fcf(0x97))['to'](_0x30a457,_0x596fcf(0xc9),_0x57bb06=>_0x16cbb2(_0x5abc8c,_0x9e85a0[_0x596fcf(0x88)],_0x57bb06?_0x596fcf(0x82):_0x596fcf(0xa0))[_0x596fcf(0xa5)]),_0xb2a6a9;});}[_0x3cbe8c(0x91)](_0x7d2e04){const _0x1e9277=_0x3cbe8c;return _0x7d2e04[_0x1e9277(0x9d)](_0x1c5832=>{const _0x54f568=_0x1e9277,_0x4954eb=this[_0x54f568(0x7a)](_0x38b408,_0x1c5832[_0x54f568(0x88)]);return _0x4954eb[_0x54f568(0xa9)]=_0x1c5832[_0x54f568(0xa9)],_0x4954eb[_0x54f568(0x97)]=_0x1c5832[_0x54f568(0x89)],_0x4954eb;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x6ecbf9}from'ckeditor5/src/core.js';import{FileRepository as _0xf25ace}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x327d38}from'./uploadcareediting.js';import{UploadUtils as _0x46c24b}from'./utils/uploadutils.js';import{getImageUrls as _0x3517c3}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x6ecbf9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xf25ace,_0x327d38];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x14052a=this['editor'];if(!!!_0x14052a['config']['get']('uploadcare'))return;_0x14052a['plugins']['get'](_0xf25ace)['createUploadAdapter']=_0xc4b0cd=>new k(_0xc4b0cd,_0x14052a),_0x14052a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x37989e,{imageElement:_0x442cbb,data:_0x4e05c6})=>{_0x14052a['model']['change'](_0x27e1c8=>{_0x27e1c8['setAttribute']('uploadcareImageId',_0x4e05c6['uploadcareImageId'],_0x442cbb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2856bd,_0x46807b){this['loader']=_0x2856bd,this['editor']=_0x46807b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x51ac83=await this['loader']['file'];return _0x46c24b['upload']({'file':_0x51ac83,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x455e2d=>{_0x455e2d&&_0x455e2d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x455e2d['value']);}})['then'](async _0x3cda6c=>{const {imageFallbackUrl:_0x43d917,imageSources:_0xcbdd33}=_0x3517c3(_0x3cda6c['cdnUrl'],_0x3cda6c['imageInfo']['width']);return{'uploadcareImageId':_0x3cda6c['uuid'],'default':_0x43d917,'sources':_0xcbdd33};})['catch'](()=>{const _0x195c3a=t('Cannot\x20upload\x20file:')+('\x20'+_0x51ac83['name']+'.');return Promise['reject'](_0x195c3a);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x11795c}from'../uploadcareconfig.js';export function getTranslation(_0x3cf961,_0xc1e3a9,_0x21e87b){const t=_0x3cf961['t'],_0x409054=_0x3cf961['t'];switch(_0xc1e3a9){case _0x11795c['Local']:return{'text':_0x409054('Insert'===_0x21e87b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x409054('From\x20computer')};case _0x11795c['URL']:return{'text':'Insert'===_0x21e87b?_0x409054('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x409054('Via\x20URL')};case _0x11795c['Dropbox']:return{'text':t('Insert'===_0x21e87b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x11795c['Facebook']:return{'text':t('Insert'===_0x21e87b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x11795c['GDrive']:return{'text':t('Insert'===_0x21e87b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x11795c['GPhotos']:return{'text':t('Insert'===_0x21e87b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x11795c['OneDrive']:return{'text':t('Insert'===_0x21e87b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc1e3a9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x478475=_0x55f4;function _0x55f4(_0x40f2c7,_0x48567d){var _0x29f280=_0x29f2();return _0x55f4=function(_0x55f4c1,_0x224c20){_0x55f4c1=_0x55f4c1-0xba;var _0x4c7648=_0x29f280[_0x55f4c1];return _0x4c7648;},_0x55f4(_0x40f2c7,_0x48567d);}(function(_0x574c53,_0x8b36f0){var _0x335d44=_0x55f4,_0x2f2d02=_0x574c53();while(!![]){try{var _0x57a478=-parseInt(_0x335d44(0xc5))/0x1+parseInt(_0x335d44(0xc0))/0x2+-parseInt(_0x335d44(0xcc))/0x3*(-parseInt(_0x335d44(0xbe))/0x4)+parseInt(_0x335d44(0xc2))/0x5*(-parseInt(_0x335d44(0xbc))/0x6)+-parseInt(_0x335d44(0xc6))/0x7*(parseInt(_0x335d44(0xc9))/0x8)+-parseInt(_0x335d44(0xbf))/0x9+parseInt(_0x335d44(0xbb))/0xa*(-parseInt(_0x335d44(0xcb))/0xb);if(_0x57a478===_0x8b36f0)break;else _0x2f2d02['push'](_0x2f2d02['shift']());}catch(_0x327ffa){_0x2f2d02['push'](_0x2f2d02['shift']());}}}(_0x29f2,0xd0f1c));import{FocusTracker as _0x35d850}from'ckeditor5/src/utils.js';import{View as _0x4bd637,FocusCycler as _0x382788}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4bd637{[_0x478475(0xbd)];[_0x478475(0xba)];constructor(_0x13d8a8){var _0xf8058b=_0x478475;super(_0x13d8a8),this[_0xf8058b(0xbd)]=new _0x35d850(),this[_0xf8058b(0xba)]=new _0x382788({'focusables':this[_0xf8058b(0xc8)](),'focusTracker':this[_0xf8058b(0xbd)]});}[_0x478475(0xc3)](){var _0x523b1d=_0x478475;return{'tag':_0x523b1d(0xc1),'attributes':{'aria-hidden':_0x523b1d(0xc4),'tabindex':'0'},'on':{'focus':this[_0x523b1d(0xca)]['to'](()=>{var _0x3103a9=_0x523b1d;this[_0x3103a9(0xba)][_0x3103a9(0xc7)](_0x3103a9(0xcd));})}};}}function _0x29f2(){var _0x465dd6=['div','15ixsvOA','getFocusableElement','true','15941AdhqiO','2960419AkMKII','fire','createCollection','8DOyAnk','bindTemplate','1161226TjLSNT','4275408pGAjRX','forwardCycle','focusCycler','50HrEmId','457854sWOOiv','focusTracker','4YSIQvG','5506731fyRpSN','2476348ZLDyPr'];_0x29f2=function(){return _0x465dd6;};return _0x29f2();}
|