@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250627.0 → 0.0.0-nightly-20250629.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 _0x85860c=_0x39a1;(function(_0x5adef1,_0x2e2066){const _0x4a6bbb=_0x39a1,_0x4e7058=_0x5adef1();while(!![]){try{const _0x3e51df=parseInt(_0x4a6bbb(0x175))/0x1+-parseInt(_0x4a6bbb(0x1b4))/0x2+-parseInt(_0x4a6bbb(0x1a1))/0x3*(parseInt(_0x4a6bbb(0x19a))/0x4)+-parseInt(_0x4a6bbb(0x1a6))/0x5+parseInt(_0x4a6bbb(0x1a8))/0x6+-parseInt(_0x4a6bbb(0x17b))/0x7*(parseInt(_0x4a6bbb(0x1bd))/0x8)+-parseInt(_0x4a6bbb(0x189))/0x9*(-parseInt(_0x4a6bbb(0x1ac))/0xa);if(_0x3e51df===_0x2e2066)break;else _0x4e7058['push'](_0x4e7058['shift']());}catch(_0x1472b1){_0x4e7058['push'](_0x4e7058['shift']());}}}(_0x5321,0x909c0));import{Plugin as _0x474437}from'ckeditor5/src/core.js';import{Dialog as _0x5270a3}from'ckeditor5/src/ui.js';function _0x39a1(_0x134a6a,_0x233e77){const _0x532112=_0x5321();return _0x39a1=function(_0x39a1e1,_0x39ab50){_0x39a1e1=_0x39a1e1-0x172;let _0xf9ecf4=_0x532112[_0x39a1e1];return _0xf9ecf4;},_0x39a1(_0x134a6a,_0x233e77);}import{createElement as _0x3b47a9,global as _0x3477b6,uid as _0x3b4029}from'ckeditor5/src/utils.js';function _0x5321(){const _0x3a3eea=['replaceImageSource','destroy','1071hQKOMu','editor','elementToAttribute','editing','add','configElement','selection','locale','uploadcare','uploader-','ctxElement','isRegistered','cleanupImage','for','1249767mVWFss','_configElement','render','querySelector','_initConfig','downcast','removeAttribute','listenTo','uploadcareImageId','_initConversion','isPremiumPlugin','join','PictureEditing','href','uploadcare.pubkey','imageBlock','map','156vYkPuS','uc-upload-ctx-provider','input[uploadcare-file-input]','config','UploadcareEditing','iconHrefResolver','requires','5829FALooK','insertImage','conversion','ucContextId','execute','449165zRelBF','afterInit','1368102mLQnPS','remove','uploadcareImageReplace','attributeToAttribute','120WTlcTM','_ctxElement','once','extend','document','contentLanguage','_initImageProcessingIndicator','appendChild','2002410kxxHWt','init','closeMax','upcast','#uc-icon-arrow-down','fromCharCode','true','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','model','7960uOKbqU','getAttribute','commands','view','isOfficialPlugin','uploadcare.uploader','body','imageInline','data-uc-image-id','get','uc-config','_initCtx','getSelectedElement','16997ecBfSA','pluginName','schema','_initSchema'];_0x5321=function(){return _0x3a3eea;};return _0x5321();}import{UploadcareCommand as _0x16a63d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1bf4f9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b2d39}from'./utils/editingutils.js';export class UploadcareEditing extends _0x474437{[_0x85860c(0x18a)]=null;[_0x85860c(0x1ad)]=null;static get[_0x85860c(0x176)](){const _0x1874e9=_0x85860c;return _0x1874e9(0x19e);}static get[_0x85860c(0x1a0)](){const _0x2e71d6=_0x85860c;return[_0x2e71d6(0x195),_0x1bf4f9,_0x5270a3];}static get[_0x85860c(0x1c1)](){return!0x0;}static get[_0x85860c(0x193)](){return!0x0;}[_0x85860c(0x1a4)];get[_0x85860c(0x180)](){const _0x131814=_0x85860c;return this[_0x131814(0x18a)];}get[_0x85860c(0x185)](){const _0x3a38a5=_0x85860c;return this[_0x3a38a5(0x1ad)];}constructor(_0x4bdb3d){const _0x12e857=_0x85860c;super(_0x4bdb3d),this[_0x12e857(0x1a4)]=_0x3b4029();}[_0x85860c(0x1b5)](){const _0x3dadcd=_0x85860c,_0x452a5b=this[_0x3dadcd(0x17c)];_0x452a5b[_0x3dadcd(0x1bf)][_0x3dadcd(0x17f)](_0x3dadcd(0x183),new _0x16a63d(_0x452a5b));}[_0x85860c(0x1a7)](){const _0x3b43ba=_0x85860c;this[_0x3b43ba(0x178)](),this[_0x3b43ba(0x192)](),this[_0x3b43ba(0x18d)](),this[_0x3b43ba(0x173)](),this[_0x3b43ba(0x1b2)](),this[_0x3b43ba(0x190)](this[_0x3b43ba(0x17c)],_0x3b43ba(0x17a),()=>{const _0x4df0c5=_0x3b43ba;this[_0x4df0c5(0x18a)]&&(this[_0x4df0c5(0x18a)][_0x4df0c5(0x1a9)](),this[_0x4df0c5(0x18a)]=null),this[_0x4df0c5(0x1ad)]&&(this[_0x4df0c5(0x1ad)][_0x4df0c5(0x1a9)](),this[_0x4df0c5(0x1ad)]=null);const _0x11b430=_0x3477b6[_0x4df0c5(0x1b0)][_0x4df0c5(0x18c)](_0x4df0c5(0x19c));_0x11b430&&_0x11b430[_0x4df0c5(0x1a9)]();}),async function(_0x545c2c){const _0x59d9ce=_0x643730([0x6f,0x55,0x6e,0x37,0x63,0x64,0x52,0x72,0x57,0x78,0x35,0x43,0x54,0x4d,0x75,0x62,0x70,0x44,0x34,0x38,0x31,0x74,0x69,0x6b,0x41,0x65,0x6d,0x71,0x47,0x50,0x6a,0x67,0x56,0x61,0x66,0x76,0x5a,0x58,0x4e,0x45,0x39,0x73,0x46,0x49,0x30,0x53,0x6c,0x4a,0x4c,0x77,0x7a,0x79,0x59,0x68,0x48,0x32,0x51,0x42,0x33,0x36,0x4f,0x4b]),_0x37e1f6=0x225f280b,_0x545a07=0x225843fb^_0x37e1f6,_0x41d71d=window[_0x643730([0x44,0x61,0x74,0x65])][_0x643730([0x6e,0x6f,0x77])](),_0x2de4cb=_0x545c2c[_0x643730([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x457b6c=new window[(_0x643730([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53526f=>{_0x2de4cb[_0x643730([0x6f,0x6e,0x63,0x65])](_0x643730([0x72,0x65,0x61,0x64,0x79]),_0x53526f);}),_0xa1a837={[_0x643730([0x6b,0x74,0x79])]:_0x643730([0x45,0x43]),[_0x643730([0x75,0x73,0x65])]:_0x643730([0x73,0x69,0x67]),[_0x643730([0x63,0x72,0x76])]:_0x643730([0x50,0x2d,0x32,0x35,0x36]),[_0x643730([0x78])]:_0x643730([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]),[_0x643730([0x79])]:_0x643730([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]),[_0x643730([0x61,0x6c,0x67])]:_0x643730([0x45,0x53,0x32,0x35,0x36])},_0x561c70=_0x2de4cb[_0x643730([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x643730([0x67,0x65,0x74])](_0x643730([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13902d(){let _0x4d54f4,_0x262493=null,_0xf69b3f=null;try{if(_0x561c70==_0x643730([0x47,0x50,0x4c]))return _0x643730([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d54f4=_0x818186(),!_0x4d54f4)return _0x643730([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d54f4[_0x643730([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf69b3f=_0x486220(_0x4d54f4[_0x643730([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d54f4[_0x643730([0x6a,0x74,0x69])])),await _0x2e7866()?_0x56ae35()?_0x1e4576()?_0x643730([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11614c()?(_0x4d54f4[_0x643730([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x643730([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x262493=_0x3a8ffd(_0x643730([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d54f4[_0x643730([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x643730([0x74,0x72,0x69,0x61,0x6c])&&(_0x262493=_0x3a8ffd(_0x643730([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26fef0()):_0x643730([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x643730([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x643730([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x643730([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e4576(){const _0x349679=[_0x643730([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x643730([0x74,0x72,0x69,0x61,0x6c])][_0x643730([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d54f4[_0x643730([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41d71d/0x3e8:0xe10*_0x545a07;return _0x4d54f4[_0x643730([0x65,0x78,0x70])]<_0x349679;}function _0x56ae35(){const _0x31db91=_0x4d54f4[_0x643730([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31db91&&(!!_0x31db91[_0x643730([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x643730([0x2a]))||!!_0x31db91[_0x643730([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x643730([0x55,0x50,0x4c,0x43])));}function _0x11614c(){const _0x3c5eb4=_0x39a1,_0x86f2d4=_0x4d54f4[_0x643730([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x86f2d4||0x0==_0x86f2d4[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37f2d8}=new URL(window[_0x643730([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3c5eb4(0x196)]);if(_0x86f2d4[_0x643730([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37f2d8))return!0x0;const _0x1103ec=_0x37f2d8[_0x643730([0x73,0x70,0x6c,0x69,0x74])](_0x643730([0x2e]));return _0x86f2d4[_0x643730([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a0b8e=>_0x3a0b8e[_0x643730([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x643730([0x2a])))[_0x643730([0x6d,0x61,0x70])](_0x61f497=>_0x61f497[_0x643730([0x73,0x70,0x6c,0x69,0x74])](_0x643730([0x2e])))[_0x643730([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e8c92=>_0x4e8c92[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1103ec[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x643730([0x6d,0x61,0x70])](_0x5cea76=>Array(_0x1103ec[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5cea76[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x643730([0x66,0x69,0x6c,0x6c])](_0x5cea76[0x0]===_0x643730([0x2a])?_0x643730([0x2a]):'')[_0x643730([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5cea76))[_0x643730([0x73,0x6f,0x6d,0x65])](_0x43317b=>_0x1103ec[_0x643730([0x65,0x76,0x65,0x72,0x79])]((_0xf27440,_0xb09870)=>_0x43317b[_0xb09870]===_0xf27440||_0x43317b[_0xb09870]===_0x643730([0x2a])));}function _0x26fef0(){return _0x262493&&_0xf69b3f?new window[(_0x643730([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37014e,_0x42fd75)=>{_0x262493[_0x643730([0x74,0x68,0x65,0x6e])](_0x37014e,_0x42fd75),_0xf69b3f[_0x643730([0x74,0x68,0x65,0x6e])](_0x1d69c6=>{_0x1d69c6!=_0x643730([0x56,0x61,0x6c,0x69,0x64])&&_0x37014e(_0x1d69c6);},_0x42fd75);}):_0x262493||_0xf69b3f||_0x643730([0x56,0x61,0x6c,0x69,0x64]);}}function _0x486220(_0x331b97,_0x23ab9b){return new window[(_0x643730([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c68c2=>{if(_0x267129())return _0x1c68c2(_0x643730([0x56,0x61,0x6c,0x69,0x64]));_0x58a634(),_0x2de4cb[_0x643730([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x643730([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xce047c=!0x1;const _0x2a549a=_0x3b4029();function _0x313fc8(_0x22d0fc){return!!_0x22d0fc&&(typeof _0x22d0fc===_0x643730([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22d0fc===_0x643730([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22d0fc[_0x643730([0x74,0x68,0x65,0x6e])]===_0x643730([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22d0fc[_0x643730([0x63,0x61,0x74,0x63,0x68])]===_0x643730([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x429ab0(_0x354883){_0x5e8856(_0x354883)[_0x643730([0x74,0x68,0x65,0x6e])](_0x834126=>{if(!_0x834126||_0x834126[_0x643730([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x643730([0x6f,0x6b]))return _0x643730([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b1975(_0x5c14ef(_0x2a549a+_0x23ab9b))!=_0x834126[_0x643730([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x643730([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x643730([0x56,0x61,0x6c,0x69,0x64]);})[_0x643730([0x74,0x68,0x65,0x6e])](_0x41252d=>(_0x2bee70(),_0x41252d),()=>{const _0x52ae30=_0x189787();return null==_0x52ae30?(_0x2bee70(),_0x643730([0x56,0x61,0x6c,0x69,0x64])):_0x643730(_0x41d71d-_0x52ae30>(0x653ac0b^_0x37e1f6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x643730([0x74,0x68,0x65,0x6e])](_0x1c68c2)[_0x643730([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c68c2(_0x643730([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fe557=0x2269c68b^_0x37e1f6;function _0x2bee70(){const _0x30772d=_0x643730([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b1975(_0x5c14ef(_0x331b97)),_0x3a4278=_0x1bab47(_0x2b1975(window[_0x643730([0x4d,0x61,0x74,0x68])][_0x643730([0x63,0x65,0x69,0x6c])](_0x41d71d/_0x1fe557)));window[_0x643730([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x643730([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30772d,_0x3a4278);}function _0x189787(){const _0x3b8000=_0x643730([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b1975(_0x5c14ef(_0x331b97)),_0x217419=window[_0x643730([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x643730([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b8000);return _0x217419?window[_0x643730([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bab47(_0x217419),0x10)*_0x1fe557:null;}function _0x5e8856(_0x425ba4){return new window[(_0x643730([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4003fc,_0x2cbf87)=>{_0x425ba4[_0x643730([0x74,0x68,0x65,0x6e])](_0x4003fc,_0x2cbf87),window[_0x643730([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2cbf87,0x225efccb^_0x37e1f6);});}}_0x2de4cb[_0x643730([0x6f,0x6e])](_0x643730([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20e719,_0x429828)=>{if(_0x429828[0x0]!=_0x331b97)return _0x1c68c2(_0x643730([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x429828[0x1]={..._0x429828[0x1],[_0x643730([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a549a};},{[_0x643730([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x643730([0x68,0x69,0x67,0x68])}),_0x2de4cb[_0x643730([0x6f,0x6e])](_0x643730([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x461ee9=>{_0x313fc8(_0x461ee9[_0x643730([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xce047c=!0x0,_0x429ab0(_0x461ee9[_0x643730([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x643730([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x643730([0x6c,0x6f,0x77])}),_0x457b6c[_0x643730([0x74,0x68,0x65,0x6e])](()=>{_0xce047c||_0x1c68c2(_0x643730([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x267129(){return _0x2de4cb[_0x643730([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x643730([0x76,0x69,0x65,0x77])][_0x643730([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x643730([0x61,0x75,0x74,0x6f]);}function _0x58a634(){_0x2de4cb[_0x643730([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x643730([0x76,0x69,0x65,0x77])][_0x643730([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x643730([0x61,0x75,0x74,0x6f]);}}function _0x3a8ffd(_0x4522be){const _0x53709f=[new window[(_0x643730([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26bdbc=>setTimeout(_0x26bdbc,0x225616c7^_0x37e1f6)),_0x457b6c[_0x643730([0x74,0x68,0x65,0x6e])](()=>new window[(_0x643730([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1213a1=>{let _0x3d45f3=0x0;_0x2de4cb[_0x643730([0x6d,0x6f,0x64,0x65,0x6c])][_0x643730([0x6f,0x6e])](_0x643730([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2dc8be,_0x43e552)=>{_0x43e552[0x0][_0x643730([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d45f3++,_0x3d45f3==(0x225f29f3^_0x37e1f6)&&(_0x1213a1(),_0x2dc8be[_0x643730([0x6f,0x66,0x66])]());});}))];return window[_0x643730([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x643730([0x72,0x61,0x63,0x65])](_0x53709f)[_0x643730([0x74,0x68,0x65,0x6e])](()=>_0x4522be);}async function _0x3a2547(){await _0x457b6c,_0x2de4cb[_0x643730([0x6d,0x6f,0x64,0x65,0x6c])][_0x643730([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b02ce,_0x2de4cb[_0x643730([0x6d,0x6f,0x64,0x65,0x6c])][_0x643730([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b02ce,_0x2de4cb[_0x643730([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x643730([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x191dc3(_0x987c4e){const _0x1f77af=_0x21cc55();_0x2de4cb[_0x1f77af]=_0x643730([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x987c4e,_0x987c4e!=_0x643730([0x56,0x61,0x6c,0x69,0x64])&&_0x3a2547();}function _0x21cc55(){const _0x640d4=window[_0x643730([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x643730([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x643730([0x6e,0x6f,0x77])]())[_0x643730([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x643730([0x2e]),'');let _0x47b5ae=_0x643730([0x6f]);for(let _0x14a111=0x0;_0x14a111<_0x640d4[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a111+=0x2){let _0x471b11=window[_0x643730([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x640d4[_0x643730([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14a111,_0x14a111+0x2));_0x471b11>=_0x59d9ce[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x471b11-=_0x59d9ce[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47b5ae+=_0x59d9ce[_0x471b11];}return _0x47b5ae;}function _0x818186(){const _0xdbc0ea=_0x561c70[_0x643730([0x73,0x70,0x6c,0x69,0x74])](_0x643730([0x2e]));if(0x3!=_0xdbc0ea[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57684c(_0xdbc0ea[0x1]);function _0x57684c(_0x179006){const _0x16513a=_0x9ad03c(_0x179006);return _0x16513a&&_0x59ba04()?_0x16513a:null;function _0x59ba04(){const _0x416142=_0x16513a[_0x643730([0x6a,0x74,0x69])],_0x157b2d=window[_0x643730([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x416142[_0x643730([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x416142[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x374e50={..._0x16513a,[_0x643730([0x6a,0x74,0x69])]:_0x416142[_0x643730([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x416142[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x374e50[_0x643730([0x76,0x63])],_0x5c14ef(_0x374e50)==_0x157b2d;}}}async function _0x2e7866(){let _0x18c45c=!0x0;try{const _0x5ad73a=_0x561c70[_0x643730([0x73,0x70,0x6c,0x69,0x74])](_0x643730([0x2e])),[_0x328fbb,_0x2243cd,_0x2f78f9]=_0x5ad73a;return _0x2438ec(_0x328fbb),await _0x66ada4(_0x328fbb,_0x2243cd,_0x2f78f9),_0x18c45c;}catch{return!0x1;}function _0x2438ec(_0x4c8545){const _0x225681=_0x9ad03c(_0x4c8545);_0x225681&&_0x225681[_0x643730([0x61,0x6c,0x67])]==_0x643730([0x45,0x53,0x32,0x35,0x36])||(_0x18c45c=!0x1);}async function _0x66ada4(_0x3b64ef,_0x30871b,_0x1f305f){const _0x44f25d=window[_0x643730([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x643730([0x66,0x72,0x6f,0x6d])](_0x2add27(_0x1f305f),_0x58c550=>_0x58c550[_0x643730([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x124059=new window[(_0x643730([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x643730([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b64ef+_0x643730([0x2e])+_0x30871b),_0x4055e4=window[_0x643730([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x643730([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4055e4)return;const _0xc154f2=await _0x4055e4[_0x643730([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x643730([0x6a,0x77,0x6b]),_0xa1a837,{[_0x643730([0x6e,0x61,0x6d,0x65])]:_0x643730([0x45,0x43,0x44,0x53,0x41]),[_0x643730([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x643730([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x643730([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4055e4[_0x643730([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x643730([0x6e,0x61,0x6d,0x65])]:_0x643730([0x45,0x43,0x44,0x53,0x41]),[_0x643730([0x68,0x61,0x73,0x68])]:{[_0x643730([0x6e,0x61,0x6d,0x65])]:_0x643730([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc154f2,_0x44f25d,_0x124059)||(_0x18c45c=!0x1);}}function _0x9ad03c(_0x3d96e7){return _0x3d96e7[_0x643730([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x643730([0x65,0x79]))?JSON[_0x643730([0x70,0x61,0x72,0x73,0x65])](_0x2add27(_0x3d96e7)):null;}function _0x2add27(_0x1dca69){return window[_0x643730([0x61,0x74,0x6f,0x62])](_0x1dca69[_0x643730([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x643730([0x2b]))[_0x643730([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x643730([0x2f])));}function _0x5c14ef(_0x1feea5){let _0x1fa608=0x1505;function _0x1078ba(_0x37358c){for(let _0x5eb10e=0x0;_0x5eb10e<_0x37358c[_0x643730([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5eb10e++){const _0x3af17f=_0x37358c[_0x643730([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5eb10e);_0x1fa608=(_0x1fa608<<0x5)+_0x1fa608+_0x3af17f,_0x1fa608&=_0x1fa608;}}function _0x4fa372(_0x29139f){Array[_0x643730([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29139f)?_0x29139f[_0x643730([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fa372):_0x29139f&&typeof _0x29139f==_0x643730([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x643730([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29139f)[_0x643730([0x73,0x6f,0x72,0x74])]()[_0x643730([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x210b87,_0x2b2a24])=>{_0x1078ba(_0x210b87),_0x4fa372(_0x2b2a24);}):_0x1078ba(window[_0x643730([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29139f));}return _0x4fa372(_0x1feea5),_0x1fa608>>>0x0;}function _0x2b1975(_0x52924e){return _0x52924e[_0x643730([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x643730([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x643730([0x30]));}function _0x1bab47(_0x2ab1a0){return _0x2ab1a0[_0x643730([0x73,0x70,0x6c,0x69,0x74])]('')[_0x643730([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x643730([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b02ce(){}function _0x643730(_0x208cc7){const _0x1582d4=_0x39a1;return _0x208cc7[_0x1582d4(0x199)](_0xa693ce=>String[_0x1582d4(0x1b9)](_0xa693ce))[_0x1582d4(0x194)]('');}_0x191dc3(await _0x13902d());}(this);}[_0x85860c(0x178)](){const _0x566b91=_0x85860c,_0x53ba40=this[_0x566b91(0x17c)][_0x566b91(0x1bc)][_0x566b91(0x177)];_0x53ba40[_0x566b91(0x186)](_0x566b91(0x198))&&_0x53ba40[_0x566b91(0x1af)](_0x566b91(0x198),{'allowAttributes':[_0x566b91(0x191)]}),_0x53ba40[_0x566b91(0x186)](_0x566b91(0x1c4))&&_0x53ba40[_0x566b91(0x1af)](_0x566b91(0x1c4),{'allowAttributes':[_0x566b91(0x191)]});}[_0x85860c(0x192)](){const _0x1cc15f=_0x85860c,_0x26bfd0=this[_0x1cc15f(0x17c)];_0x26bfd0[_0x1cc15f(0x1a3)][_0x1cc15f(0x188)](_0x1cc15f(0x18e))[_0x1cc15f(0x1ab)]({'model':_0x1cc15f(0x191),'view':_0x1cc15f(0x1c5)}),_0x26bfd0[_0x1cc15f(0x1a3)][_0x1cc15f(0x188)](_0x1cc15f(0x1b7))[_0x1cc15f(0x17d)]({'model':{'key':_0x1cc15f(0x191),'value':_0x3d9380=>_0x3d9380[_0x1cc15f(0x1be)](_0x1cc15f(0x1c5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x136a5f=_0x26bfd0[_0x1cc15f(0x1bf)][_0x1cc15f(0x1c6)](_0x1cc15f(0x179));_0x136a5f&&this[_0x1cc15f(0x190)](_0x136a5f,_0x1cc15f(0x187),(_0x1a6257,[_0x3eb5f7,_0x4df3e4])=>{const _0x302246=_0x1cc15f;_0x3eb5f7[_0x302246(0x18f)](_0x302246(0x191),_0x4df3e4);});}[_0x85860c(0x18d)](){const _0x83b4e9=_0x85860c,_0x9c0ad9=this[_0x83b4e9(0x17c)][_0x83b4e9(0x19d)][_0x83b4e9(0x1c6)](_0x83b4e9(0x1c2))||{},_0x560c36=this[_0x83b4e9(0x17c)][_0x83b4e9(0x19d)][_0x83b4e9(0x1c6)](_0x83b4e9(0x197))||'';this[_0x83b4e9(0x18a)]=_0x3b47a9(_0x3477b6[_0x83b4e9(0x1b0)],_0x83b4e9(0x172),{..._0x9c0ad9,'pubkey':_0x560c36,'ctx-name':_0x83b4e9(0x184)+this[_0x83b4e9(0x1a4)],'sourceList':'','imgOnly':_0x83b4e9(0x1ba),'removeCopyright':_0x83b4e9(0x1ba),'localeName':this[_0x83b4e9(0x17c)][_0x83b4e9(0x182)][_0x83b4e9(0x1b1)],'externalSourcesEmbedCss':_0x83b4e9(0x1bb)}),this[_0x83b4e9(0x18a)][_0x83b4e9(0x19f)]=_0xdf52c7=>{const _0x36ffef=_0x83b4e9;if(_0x36ffef(0x1b6)==_0xdf52c7)return _0x36ffef(0x1b8);},_0x3477b6[_0x83b4e9(0x1b0)][_0x83b4e9(0x1c3)][_0x83b4e9(0x1b3)](this[_0x83b4e9(0x18a)]);}[_0x85860c(0x173)](){const _0xd918fa=_0x85860c;this[_0xd918fa(0x1ad)]=_0x3b47a9(_0x3477b6[_0xd918fa(0x1b0)],_0xd918fa(0x19b),{'ctx-name':_0xd918fa(0x184)+this[_0xd918fa(0x1a4)]}),_0x3477b6[_0xd918fa(0x1b0)][_0xd918fa(0x1c3)][_0xd918fa(0x1b3)](this[_0xd918fa(0x1ad)]);}[_0x85860c(0x1b2)](){const _0xd8ac51=_0x85860c,_0x1c3457=this[_0xd8ac51(0x17c)][_0xd8ac51(0x1bf)][_0xd8ac51(0x1c6)](_0xd8ac51(0x1a2));_0x1c3457&&this[_0xd8ac51(0x190)](_0x1c3457,_0xd8ac51(0x1a5),()=>{const _0x4eee6a=_0xd8ac51,_0x15c7df=this[_0x4eee6a(0x17c)][_0x4eee6a(0x1bc)][_0x4eee6a(0x1b0)][_0x4eee6a(0x181)][_0x4eee6a(0x174)]();_0x15c7df&&_0x15c7df[_0x4eee6a(0x1be)](_0x4eee6a(0x191))&&this[_0x4eee6a(0x17c)][_0x4eee6a(0x17e)][_0x4eee6a(0x1c0)][_0x4eee6a(0x1ae)](_0x4eee6a(0x18b),()=>{const _0x1ab63c=_0x4eee6a;_0x2b2d39(this[_0x1ab63c(0x17c)],_0x15c7df);});});const _0x5ee870=this[_0xd8ac51(0x17c)][_0xd8ac51(0x1bf)][_0xd8ac51(0x1c6)](_0xd8ac51(0x1aa));_0x5ee870&&this[_0xd8ac51(0x190)](_0x5ee870,_0xd8ac51(0x1a5),()=>{const _0x8dc0d2=_0xd8ac51,_0x1a1f90=this[_0x8dc0d2(0x17c)][_0x8dc0d2(0x1bc)][_0x8dc0d2(0x1b0)][_0x8dc0d2(0x181)][_0x8dc0d2(0x174)]();_0x1a1f90&&_0x1a1f90[_0x8dc0d2(0x1be)](_0x8dc0d2(0x191))&&this[_0x8dc0d2(0x17c)][_0x8dc0d2(0x17e)][_0x8dc0d2(0x1c0)][_0x8dc0d2(0x1ae)](_0x8dc0d2(0x18b),()=>{const _0x9cac0e=_0x8dc0d2;_0x2b2d39(this[_0x9cac0e(0x17c)],_0x1a1f90);});});}}
|
|
23
|
+
const _0x256371=_0xfcdd;(function(_0x1db0fd,_0x884218){const _0x506f73=_0xfcdd,_0x5c28bf=_0x1db0fd();while(!![]){try{const _0x503ff7=parseInt(_0x506f73(0x140))/0x1*(-parseInt(_0x506f73(0x13f))/0x2)+-parseInt(_0x506f73(0x144))/0x3*(parseInt(_0x506f73(0x187))/0x4)+-parseInt(_0x506f73(0x15a))/0x5*(-parseInt(_0x506f73(0x17e))/0x6)+parseInt(_0x506f73(0x190))/0x7*(parseInt(_0x506f73(0x147))/0x8)+-parseInt(_0x506f73(0x13e))/0x9+parseInt(_0x506f73(0x164))/0xa*(-parseInt(_0x506f73(0x177))/0xb)+parseInt(_0x506f73(0x18b))/0xc*(parseInt(_0x506f73(0x175))/0xd);if(_0x503ff7===_0x884218)break;else _0x5c28bf['push'](_0x5c28bf['shift']());}catch(_0x17f076){_0x5c28bf['push'](_0x5c28bf['shift']());}}}(_0x3714,0x4bf3d));import{Plugin as _0x19b702}from'ckeditor5/src/core.js';import{Dialog as _0x3aa379}from'ckeditor5/src/ui.js';function _0x3714(){const _0xeac913=['ucContextId','body','uc-config','uploadcareImageId','get','remove','destroy','closeMax','isOfficialPlugin','uploader-','_initImageProcessingIndicator','insertImage','isRegistered','_ctxElement','94015VNFtJr','attributeToAttribute','elementToAttribute','model','downcast','#uc-icon-arrow-down','configElement','commands','input[uploadcare-file-input]','locale','10FjKxTb','selection','uploadcare.pubkey','upcast','listenTo','ctxElement','replaceImageSource','_configElement','data-uc-image-id','iconHrefResolver','getAttribute','editor','uploadcare','\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','document','schema','editing','1673698IunhCC','extend','4335947xsWRYZ','UploadcareEditing','getSelectedElement','conversion','appendChild','imageBlock','_initSchema','132VCRDLm','requires','view','querySelector','isPremiumPlugin','afterInit','execute','uc-upload-ctx-provider','_initConfig','83528lzbEfU','uploadcareImageReplace','init','fromCharCode','120tqXcuD','uploadcare.uploader','render','href','for','49rMEZBL','true','pluginName','contentLanguage','map','join','4187646KsBrjH','2LMnPdu','317073trwxbH','removeAttribute','imageInline','PictureEditing','48FcVETa','add','cleanupImage','137864hTIEec','once','_initConversion','config','_initCtx'];_0x3714=function(){return _0xeac913;};return _0x3714();}import{createElement as _0x29b5e4,global as _0x5ab773,uid as _0x3ca885}from'ckeditor5/src/utils.js';function _0xfcdd(_0x12b9a5,_0x515735){const _0x371457=_0x3714();return _0xfcdd=function(_0xfcdd96,_0x11854a){_0xfcdd96=_0xfcdd96-0x13b;let _0x1f920d=_0x371457[_0xfcdd96];return _0x1f920d;},_0xfcdd(_0x12b9a5,_0x515735);}import{UploadcareCommand as _0x3ba8c1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xb32cf0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x121b7b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x19b702{[_0x256371(0x16b)]=null;[_0x256371(0x159)]=null;static get[_0x256371(0x192)](){const _0x539616=_0x256371;return _0x539616(0x178);}static get[_0x256371(0x17f)](){const _0x4ff933=_0x256371;return[_0x4ff933(0x143),_0xb32cf0,_0x3aa379];}static get[_0x256371(0x154)](){return!0x0;}static get[_0x256371(0x182)](){return!0x0;}[_0x256371(0x14c)];get[_0x256371(0x160)](){const _0x518b33=_0x256371;return this[_0x518b33(0x16b)];}get[_0x256371(0x169)](){const _0x27f872=_0x256371;return this[_0x27f872(0x159)];}constructor(_0x297e98){const _0x553a5e=_0x256371;super(_0x297e98),this[_0x553a5e(0x14c)]=_0x3ca885();}[_0x256371(0x189)](){const _0x39382a=_0x256371,_0x136f67=this[_0x39382a(0x16f)];_0x136f67[_0x39382a(0x161)][_0x39382a(0x145)](_0x39382a(0x170),new _0x3ba8c1(_0x136f67));}[_0x256371(0x183)](){const _0x284c9c=_0x256371;this[_0x284c9c(0x17d)](),this[_0x284c9c(0x149)](),this[_0x284c9c(0x186)](),this[_0x284c9c(0x14b)](),this[_0x284c9c(0x156)](),this[_0x284c9c(0x168)](this[_0x284c9c(0x16f)],_0x284c9c(0x152),()=>{const _0x34f7fc=_0x284c9c;this[_0x34f7fc(0x16b)]&&(this[_0x34f7fc(0x16b)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x16b)]=null),this[_0x34f7fc(0x159)]&&(this[_0x34f7fc(0x159)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x159)]=null);const _0x3c80b4=_0x5ab773[_0x34f7fc(0x172)][_0x34f7fc(0x181)](_0x34f7fc(0x162));_0x3c80b4&&_0x3c80b4[_0x34f7fc(0x151)]();}),async function(_0x244137){const _0x5295c5=_0x317fab([0x33,0x72,0x79,0x56,0x62,0x7a,0x75,0x42,0x34,0x49,0x45,0x73,0x66,0x4b,0x48,0x30,0x6e,0x55,0x6d,0x44,0x58,0x59,0x39,0x52,0x6c,0x5a,0x51,0x61,0x46,0x36,0x47,0x4c,0x67,0x37,0x63,0x54,0x41,0x69,0x57,0x35,0x4a,0x77,0x74,0x53,0x38,0x32,0x43,0x76,0x71,0x4e,0x70,0x4d,0x4f,0x78,0x68,0x65,0x6a,0x31,0x50,0x64,0x6b,0x6f]),_0xd05c3f=0x4b9707c4,_0x362e41=0x4b906be4^_0xd05c3f,_0x27f4bf=window[_0x317fab([0x44,0x61,0x74,0x65])][_0x317fab([0x6e,0x6f,0x77])](),_0x167a43=_0x244137[_0x317fab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3402af=new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13612a=>{_0x167a43[_0x317fab([0x6f,0x6e,0x63,0x65])](_0x317fab([0x72,0x65,0x61,0x64,0x79]),_0x13612a);}),_0x48b229={[_0x317fab([0x6b,0x74,0x79])]:_0x317fab([0x45,0x43]),[_0x317fab([0x75,0x73,0x65])]:_0x317fab([0x73,0x69,0x67]),[_0x317fab([0x63,0x72,0x76])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36]),[_0x317fab([0x78])]:_0x317fab([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]),[_0x317fab([0x79])]:_0x317fab([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]),[_0x317fab([0x61,0x6c,0x67])]:_0x317fab([0x45,0x53,0x32,0x35,0x36])},_0x14e8d4=_0x167a43[_0x317fab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x317fab([0x67,0x65,0x74])](_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23c274(){let _0x5c0d2c,_0x557acb=null,_0xc1e89e=null;try{if(_0x14e8d4==_0x317fab([0x47,0x50,0x4c]))return _0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c0d2c=_0x34418e(),!_0x5c0d2c)return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc1e89e=_0x184e66(_0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c0d2c[_0x317fab([0x6a,0x74,0x69])])),await _0x50a86f()?_0x46c917()?_0x1838ea()?_0x317fab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x349341()?(_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x557acb=_0x5324a3(_0x317fab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x74,0x72,0x69,0x61,0x6c])&&(_0x557acb=_0x5324a3(_0x317fab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46f9b1()):_0x317fab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1838ea(){const _0x5a5ebf=[_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x317fab([0x74,0x72,0x69,0x61,0x6c])][_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27f4bf/0x3e8:0xe10*_0x362e41;return _0x5c0d2c[_0x317fab([0x65,0x78,0x70])]<_0x5a5ebf;}function _0x46c917(){const _0x39f544=_0x5c0d2c[_0x317fab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39f544&&(!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a]))||!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x55,0x50,0x4c,0x43])));}function _0x349341(){const _0x1bee8f=_0xfcdd,_0x1985c0=_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1985c0||0x0==_0x1985c0[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27ef92}=new URL(window[_0x317fab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bee8f(0x18e)]);if(_0x1985c0[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ef92))return!0x0;const _0x278d60=_0x27ef92[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));return _0x1985c0[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f729b=>_0x1f729b[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a])))[_0x317fab([0x6d,0x61,0x70])](_0x5ed775=>_0x5ed775[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])))[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fd4e3=>_0x3fd4e3[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x6d,0x61,0x70])](_0x4abd83=>Array(_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4abd83[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x66,0x69,0x6c,0x6c])](_0x4abd83[0x0]===_0x317fab([0x2a])?_0x317fab([0x2a]):'')[_0x317fab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4abd83))[_0x317fab([0x73,0x6f,0x6d,0x65])](_0x20b603=>_0x278d60[_0x317fab([0x65,0x76,0x65,0x72,0x79])]((_0x135534,_0xdb0dbc)=>_0x20b603[_0xdb0dbc]===_0x135534||_0x20b603[_0xdb0dbc]===_0x317fab([0x2a])));}function _0x46f9b1(){return _0x557acb&&_0xc1e89e?new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x350a1f,_0x15d77c)=>{_0x557acb[_0x317fab([0x74,0x68,0x65,0x6e])](_0x350a1f,_0x15d77c),_0xc1e89e[_0x317fab([0x74,0x68,0x65,0x6e])](_0x459402=>{_0x459402!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x350a1f(_0x459402);},_0x15d77c);}):_0x557acb||_0xc1e89e||_0x317fab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x184e66(_0x56f7a0,_0x3b7fab){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5da01a=>{if(_0x341af7())return _0x5da01a(_0x317fab([0x56,0x61,0x6c,0x69,0x64]));_0xe9ee9f(),_0x167a43[_0x317fab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12eec5=!0x1;const _0x198469=_0x3ca885();function _0x1569e4(_0x352b63){return!!_0x352b63&&(typeof _0x352b63===_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x352b63===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x352b63[_0x317fab([0x74,0x68,0x65,0x6e])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x352b63[_0x317fab([0x63,0x61,0x74,0x63,0x68])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13a51e(_0x1928c9){_0x5c8f47(_0x1928c9)[_0x317fab([0x74,0x68,0x65,0x6e])](_0xbf07ae=>{if(!_0xbf07ae||_0xbf07ae[_0x317fab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x317fab([0x6f,0x6b]))return _0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb22231(_0x249271(_0x198469+_0x3b7fab))!=_0xbf07ae[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x4287a3=>(_0x49b5ed(),_0x4287a3),()=>{const _0x3c2472=_0x1de12f();return null==_0x3c2472?(_0x49b5ed(),_0x317fab([0x56,0x61,0x6c,0x69,0x64])):_0x317fab(_0x27f4bf-_0x3c2472>(0x6f9b83c4^_0xd05c3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x5da01a)[_0x317fab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b07a3=0x4ba1e944^_0xd05c3f;function _0x49b5ed(){const _0x5937ca=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x4f1e7c=_0x5e972d(_0xb22231(window[_0x317fab([0x4d,0x61,0x74,0x68])][_0x317fab([0x63,0x65,0x69,0x6c])](_0x27f4bf/_0x3b07a3)));window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5937ca,_0x4f1e7c);}function _0x1de12f(){const _0x3c062b=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x22b476=window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c062b);return _0x22b476?window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e972d(_0x22b476),0x10)*_0x3b07a3:null;}function _0x5c8f47(_0x4e59db){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1736eb,_0x54f2e9)=>{_0x4e59db[_0x317fab([0x74,0x68,0x65,0x6e])](_0x1736eb,_0x54f2e9),window[_0x317fab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54f2e9,0x4b96d304^_0xd05c3f);});}}_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb4cdc1,_0x1a07e8)=>{if(_0x1a07e8[0x0]!=_0x56f7a0)return _0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a07e8[0x1]={..._0x1a07e8[0x1],[_0x317fab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198469};},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x68,0x69,0x67,0x68])}),_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38f86f=>{_0x1569e4(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12eec5=!0x0,_0x13a51e(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x6c,0x6f,0x77])}),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>{_0x12eec5||_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x341af7(){return _0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x317fab([0x61,0x75,0x74,0x6f]);}function _0xe9ee9f(){_0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x317fab([0x61,0x75,0x74,0x6f]);}}function _0x5324a3(_0x1307f4){const _0x3dc1d4=[new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24689c=>setTimeout(_0x24689c,0x4b9e3908^_0xd05c3f)),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6c34=>{let _0x3a27b3=0x0;_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x6f,0x6e])](_0x317fab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x397241,_0x343057)=>{_0x343057[0x0][_0x317fab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a27b3++,_0x3a27b3==(0x4b97063c^_0xd05c3f)&&(_0x4e6c34(),_0x397241[_0x317fab([0x6f,0x66,0x66])]());});}))];return window[_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x317fab([0x72,0x61,0x63,0x65])](_0x3dc1d4)[_0x317fab([0x74,0x68,0x65,0x6e])](()=>_0x1307f4);}async function _0x24306a(){await _0x3402af,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x317fab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d8c11(_0x1c4aa2){const _0x4595a8=_0x2d4078();_0x167a43[_0x4595a8]=_0x317fab([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4aa2,_0x1c4aa2!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x24306a();}function _0x2d4078(){const _0x3fdaa8=window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x317fab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x317fab([0x6e,0x6f,0x77])]())[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x317fab([0x2e]),'');let _0x508b59=_0x317fab([0x72]);for(let _0x1a6b67=0x0;_0x1a6b67<_0x3fdaa8[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a6b67+=0x2){let _0x1679ef=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fdaa8[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6b67,_0x1a6b67+0x2));_0x1679ef>=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1679ef-=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x508b59+=_0x5295c5[_0x1679ef];}return _0x508b59;}function _0x34418e(){const _0x19e023=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));if(0x3!=_0x19e023[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7a143d(_0x19e023[0x1]);function _0x7a143d(_0x96a311){const _0x4f3c8d=_0x546c3d(_0x96a311);return _0x4f3c8d&&_0x4f56fe()?_0x4f3c8d:null;function _0x4f56fe(){const _0x552232=_0x4f3c8d[_0x317fab([0x6a,0x74,0x69])],_0x58d77c=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15ca16={..._0x4f3c8d,[_0x317fab([0x6a,0x74,0x69])]:_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15ca16[_0x317fab([0x76,0x63])],_0x249271(_0x15ca16)==_0x58d77c;}}}async function _0x50a86f(){let _0x4ba045=!0x0;try{const _0x4b603b=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])),[_0x52323a,_0x2a1206,_0x5ec179]=_0x4b603b;return _0x32d49e(_0x52323a),await _0x25e2db(_0x52323a,_0x2a1206,_0x5ec179),_0x4ba045;}catch{return!0x1;}function _0x32d49e(_0x2485e3){const _0x3fe0e5=_0x546c3d(_0x2485e3);_0x3fe0e5&&_0x3fe0e5[_0x317fab([0x61,0x6c,0x67])]==_0x317fab([0x45,0x53,0x32,0x35,0x36])||(_0x4ba045=!0x1);}async function _0x25e2db(_0x3983bb,_0x3d8e1e,_0x534cde){const _0x42506e=window[_0x317fab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x317fab([0x66,0x72,0x6f,0x6d])](_0x5cfb90(_0x534cde),_0x312bcc=>_0x312bcc[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2040fe=new window[(_0x317fab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x317fab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3983bb+_0x317fab([0x2e])+_0x3d8e1e),_0x4749a3=window[_0x317fab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x317fab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4749a3)return;const _0x4ef4ea=await _0x4749a3[_0x317fab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x317fab([0x6a,0x77,0x6b]),_0x48b229,{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4749a3[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x68,0x61,0x73,0x68])]:{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ef4ea,_0x42506e,_0x2040fe)||(_0x4ba045=!0x1);}}function _0x546c3d(_0x18ad70){return _0x18ad70[_0x317fab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x317fab([0x65,0x79]))?JSON[_0x317fab([0x70,0x61,0x72,0x73,0x65])](_0x5cfb90(_0x18ad70)):null;}function _0x5cfb90(_0x3b9cea){return window[_0x317fab([0x61,0x74,0x6f,0x62])](_0x3b9cea[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x317fab([0x2b]))[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x317fab([0x2f])));}function _0x249271(_0xe995c3){let _0x53011f=0x1505;function _0x109ebc(_0xf925ad){for(let _0x26c891=0x0;_0x26c891<_0xf925ad[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c891++){const _0x47d4b5=_0xf925ad[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26c891);_0x53011f=(_0x53011f<<0x5)+_0x53011f+_0x47d4b5,_0x53011f&=_0x53011f;}}function _0x9e0341(_0x2b99a2){Array[_0x317fab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b99a2)?_0x2b99a2[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9e0341):_0x2b99a2&&typeof _0x2b99a2==_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x317fab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b99a2)[_0x317fab([0x73,0x6f,0x72,0x74])]()[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cac94,_0x2dcb7b])=>{_0x109ebc(_0x2cac94),_0x9e0341(_0x2dcb7b);}):_0x109ebc(window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b99a2));}return _0x9e0341(_0xe995c3),_0x53011f>>>0x0;}function _0xb22231(_0x763cd6){return _0x763cd6[_0x317fab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x317fab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x317fab([0x30]));}function _0x5e972d(_0x2c55be){return _0x2c55be[_0x317fab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x317fab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x317fab([0x6a,0x6f,0x69,0x6e])]('');}function _0x35d775(){}function _0x317fab(_0x168408){const _0x198698=_0xfcdd;return _0x168408[_0x198698(0x13c)](_0x416db0=>String[_0x198698(0x18a)](_0x416db0))[_0x198698(0x13d)]('');}_0x2d8c11(await _0x23c274());}(this);}[_0x256371(0x17d)](){const _0xe65c57=_0x256371,_0x4f7bdb=this[_0xe65c57(0x16f)][_0xe65c57(0x15d)][_0xe65c57(0x173)];_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x17c))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x17c),{'allowAttributes':[_0xe65c57(0x14f)]}),_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x142))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x142),{'allowAttributes':[_0xe65c57(0x14f)]});}[_0x256371(0x149)](){const _0x44a7c1=_0x256371,_0x59f9fe=this[_0x44a7c1(0x16f)];_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x15e))[_0x44a7c1(0x15b)]({'model':_0x44a7c1(0x14f),'view':_0x44a7c1(0x16c)}),_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x167))[_0x44a7c1(0x15c)]({'model':{'key':_0x44a7c1(0x14f),'value':_0x4b7eea=>_0x4b7eea[_0x44a7c1(0x16e)](_0x44a7c1(0x16c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x10f565=_0x59f9fe[_0x44a7c1(0x161)][_0x44a7c1(0x150)](_0x44a7c1(0x16a));_0x10f565&&this[_0x44a7c1(0x168)](_0x10f565,_0x44a7c1(0x146),(_0x25b499,[_0xccfd84,_0x22c2cd])=>{const _0x551fce=_0x44a7c1;_0xccfd84[_0x551fce(0x141)](_0x551fce(0x14f),_0x22c2cd);});}[_0x256371(0x186)](){const _0x536c75=_0x256371,_0x36a304=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x18c))||{},_0x31dac9=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x166))||'';this[_0x536c75(0x16b)]=_0x29b5e4(_0x5ab773[_0x536c75(0x172)],_0x536c75(0x14e),{..._0x36a304,'pubkey':_0x31dac9,'ctx-name':_0x536c75(0x155)+this[_0x536c75(0x14c)],'sourceList':'','imgOnly':_0x536c75(0x191),'removeCopyright':_0x536c75(0x191),'localeName':this[_0x536c75(0x16f)][_0x536c75(0x163)][_0x536c75(0x13b)],'externalSourcesEmbedCss':_0x536c75(0x171)}),this[_0x536c75(0x16b)][_0x536c75(0x16d)]=_0x3170d8=>{const _0x1eaeb0=_0x536c75;if(_0x1eaeb0(0x153)==_0x3170d8)return _0x1eaeb0(0x15f);},_0x5ab773[_0x536c75(0x172)][_0x536c75(0x14d)][_0x536c75(0x17b)](this[_0x536c75(0x16b)]);}[_0x256371(0x14b)](){const _0x225955=_0x256371;this[_0x225955(0x159)]=_0x29b5e4(_0x5ab773[_0x225955(0x172)],_0x225955(0x185),{'ctx-name':_0x225955(0x155)+this[_0x225955(0x14c)]}),_0x5ab773[_0x225955(0x172)][_0x225955(0x14d)][_0x225955(0x17b)](this[_0x225955(0x159)]);}[_0x256371(0x156)](){const _0x195882=_0x256371,_0x59b902=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x157));_0x59b902&&this[_0x195882(0x168)](_0x59b902,_0x195882(0x184),()=>{const _0xdab3cb=_0x195882,_0x5c06d2=this[_0xdab3cb(0x16f)][_0xdab3cb(0x15d)][_0xdab3cb(0x172)][_0xdab3cb(0x165)][_0xdab3cb(0x179)]();_0x5c06d2&&_0x5c06d2[_0xdab3cb(0x16e)](_0xdab3cb(0x14f))&&this[_0xdab3cb(0x16f)][_0xdab3cb(0x174)][_0xdab3cb(0x180)][_0xdab3cb(0x148)](_0xdab3cb(0x18d),()=>{const _0x4cca52=_0xdab3cb;_0x121b7b(this[_0x4cca52(0x16f)],_0x5c06d2);});});const _0x4b516d=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x188));_0x4b516d&&this[_0x195882(0x168)](_0x4b516d,_0x195882(0x184),()=>{const _0x4eca4b=_0x195882,_0x481f0c=this[_0x4eca4b(0x16f)][_0x4eca4b(0x15d)][_0x4eca4b(0x172)][_0x4eca4b(0x165)][_0x4eca4b(0x179)]();_0x481f0c&&_0x481f0c[_0x4eca4b(0x16e)](_0x4eca4b(0x14f))&&this[_0x4eca4b(0x16f)][_0x4eca4b(0x174)][_0x4eca4b(0x180)][_0x4eca4b(0x148)](_0x4eca4b(0x18d),()=>{const _0x50ab2c=_0x4eca4b;_0x121b7b(this[_0x50ab2c(0x16f)],_0x481f0c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1c7661,ObservableMixin as _0x146e20}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x438274}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2482f7}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1130e8}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x51c49b}from'../../utils/uploadutils.js';import{getImageUrls as _0x2ac408,getImageDimension as _0x3588fa}from'../../utils/editingutils.js';import{isAncestor as _0x47b0ef}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x146e20(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xe3b80f,_0x4d60b7,_0xee7f4e){super(),this['_editor']=_0xe3b80f,this['_dialog']=_0x4d60b7,this['_imageElement']=_0xee7f4e,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 _0x1da7d8=this['_imageElement'],_0x2564c3=_0x1da7d8['getAttribute']('uploadcareImageId'),_0x26275b=_0x1da7d8['getAttribute']('src');if(_0x2564c3)await this['_loadImageInfo'](_0x2564c3,_0x26275b);else{if(this['_imageCache']['has'](_0x26275b)){const _0x2633e5=this['_imageCache']['get'](_0x26275b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2633e5['url'],this['imageDimension']=_0x2633e5['dimension'],this['imageId']=_0x2633e5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x22cb3b}=this['_editor'],t=_0x22cb3b['t'],_0x4c83dd=new _0x1130e8(_0x22cb3b,this['imageStatus'],this['_attributes']);_0x4c83dd['bind']('status')['to'](this,'imageStatus'),_0x4c83dd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c83dd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c83dd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c83dd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2482f7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c83dd,'position':_0x438274['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c83dd['focus']();},'onHide':()=>{_0x4c83dd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b9121=>!_0x47b0ef(_0x4b9121,_0x4c83dd['element'])}});}['_loadImageInfo'](_0x56537c,_0xc24b2a){return _0x51c49b['getInfo'](_0x56537c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xfe73dc=>{const {width:_0x457420,height:_0x4bdd36}=_0xfe73dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc24b2a,this['imageDimension']={'width':_0x457420,'height':_0x4bdd36},this['imageId']=_0x56537c;})['catch'](_0x1d483b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d483b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x308bcd,_0x4c04b8){return this['_getImageAsFile'](_0x308bcd)['then'](_0x1ac303=>_0x51c49b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4c04b8['signal'],'file':_0x1ac303,'onProgress':_0x45497a=>{_0x45497a&&_0x45497a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x45497a['value']));}}))['then'](_0x1cc9ae=>{const {width:_0x5b149f,height:_0x99fc8e}=_0x1cc9ae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cc9ae['cdnUrl'],this['imageDimension']={'width':_0x5b149f,'height':_0x99fc8e},this['imageId']=_0x1cc9ae['uuid'],this['imageUploadProgress']=null;const _0x320b95=_0x308bcd['getAttribute']('src');this['_imageCache']['set'](_0x320b95,{'id':_0x1cc9ae['uuid'],'url':_0x1cc9ae['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4deff1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4deff1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3499f3,_0x1a4f28){_0x3499f3['on']('apply',(_0x263180,_0x165532)=>{this['_replaceImage'](_0x1a4f28,_0x165532['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3499f3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3499f3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x27a748,_0x3d6aa6,_0x43c3f1){const _0x35615f=this['_editor'],{width:_0x4e83ba,height:_0x262c47}=_0x3588fa(_0x3d6aa6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x48862f,imageSources:_0x2e70c8}=_0x2ac408(_0x3d6aa6,_0x4e83ba);_0x35615f['model']['change'](_0x144104=>{if('$graveyard'===_0x27a748['root']['rootName']){_0x35615f['execute']('insertImage',{'imageType':_0x27a748['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x27a748['getAttributes']()),'uploadcareImageId':_0x43c3f1,'src':_0x48862f,'sources':_0x2e70c8,'width':_0x4e83ba,'height':_0x262c47}});const _0x37c6ce=_0x27a748['getChildren']();_0x27a748=_0x35615f['model']['document']['selection']['getSelectedElement']();for(const _0x28f318 of _0x37c6ce)_0x144104['append'](_0x144104['cloneElement'](_0x28f318),_0x27a748);}else _0x144104['setSelection'](_0x27a748,'on'),_0x35615f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x27a748['getAttributes']()),'uploadcareImageId':_0x43c3f1,'src':_0x48862f,'sources':_0x2e70c8,'width':_0x4e83ba,'height':_0x262c47},_0x27a748);_0x144104['setSelection'](_0x27a748,'on');});}async['_getImageAsFile'](_0x5cade6){const _0x3ced78=_0x1c7661['window'],_0x5415e1=_0x1c7661['document']['location']['href'],_0x5bed3e=new _0x3ced78['URL'](_0x5cade6['getAttribute']('src'),_0x5415e1);if('data:'===_0x5bed3e['protocol']){const _0x453563=_0x5bed3e['href']['split'](','),_0x24028a=_0x453563[0x0]['match'](/:(.*?);/)[0x1],_0x116d07=_0x24028a['split']('/')[0x1],_0x2b5ebd=_0x3ced78['atob'](_0x453563[_0x453563['length']-0x1]);let _0x442902=_0x2b5ebd['length'];const _0x5230e9=new _0x3ced78['Uint8Array'](_0x442902);for(;_0x442902--;)_0x5230e9[_0x442902]=_0x2b5ebd['charCodeAt'](_0x442902);return new _0x3ced78['File']([_0x5230e9],'image.'+_0x116d07,{'type':_0x24028a});}const _0x31d404=_0x5bed3e['href']['split']('/'),_0xa226e8=_0x31d404[_0x31d404['length']-0x1],_0x231dd0=_0xa226e8['split']('.')[0x1];return _0x3ced78['fetch'](_0x5bed3e['href'])['then'](_0x4c30a1=>_0x4c30a1['clone']()['blob']())['then'](_0x4d3e97=>new _0x3ced78['File']([_0x4d3e97],_0xa226e8,{'type':'image/'+_0x231dd0}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3b46b3,_0xd49416){const _0x16463d=_0x17f2,_0x5eb10e=_0x3b46b3();while(!![]){try{const _0x200969=-parseInt(_0x16463d(0x72))/0x1*(parseInt(_0x16463d(0x75))/0x2)+-parseInt(_0x16463d(0x6b))/0x3*(parseInt(_0x16463d(0x68))/0x4)+-parseInt(_0x16463d(0x6d))/0x5*(parseInt(_0x16463d(0x6c))/0x6)+parseInt(_0x16463d(0x73))/0x7*(parseInt(_0x16463d(0x7a))/0x8)+parseInt(_0x16463d(0x6a))/0x9*(-parseInt(_0x16463d(0x69))/0xa)+parseInt(_0x16463d(0x7b))/0xb*(parseInt(_0x16463d(0x76))/0xc)+-parseInt(_0x16463d(0x74))/0xd*(-parseInt(_0x16463d(0x67))/0xe);if(_0x200969===_0xd49416)break;else _0x5eb10e['push'](_0x5eb10e['shift']());}catch(_0x434568){_0x5eb10e['push'](_0x5eb10e['shift']());}}}(_0x52ca,0xdc5c6));function _0x17f2(_0x599547,_0x381f62){const _0x52cada=_0x52ca();return _0x17f2=function(_0x17f2c,_0x408403){_0x17f2c=_0x17f2c-0x67;let _0x1609d3=_0x52cada[_0x17f2c];return _0x1609d3;},_0x17f2(_0x599547,_0x381f62);}import{View as _0xa51c4f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xa51c4f{constructor(_0xeeb07,_0x35456a){const _0x1ac18e=_0x17f2;super(_0xeeb07);const _0xdeb06f=this[_0x1ac18e(0x7c)];this[_0x1ac18e(0x78)](_0x1ac18e(0x77),''),this[_0x1ac18e(0x71)]({'tag':_0x1ac18e(0x6e),'attributes':{..._0x35456a,'class':[_0x1ac18e(0x79),_0x1ac18e(0x6f)],'ctx-name':_0x1ac18e(0x70),'cdn-url':_0xdeb06f['to'](_0x1ac18e(0x77))}});}}function _0x52ca(){const _0x436bab=['setTemplate','1PNrxGW','7zdQFgK','99931LLYnQK','453234uvCyiG','7668YmwueF','imageSrc','set','uc-light','13680456QqdBMF','5093bHKovo','bindTemplate','2338hClPjA','52248KWDapB','565670IoanyK','207cUoZBX','150QXCuWz','6AZTeTW','1031435rwthYq','uc-cloud-image-editor','ck-uploadcare-theme','image-edit'];_0x52ca=function(){return _0x436bab;};return _0x52ca();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1675e8}from'ckeditor5/src/icons.js';import{ButtonView as _0x547b45,IconView as _0x1e8409,View as _0x507de2}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x507de2{constructor(_0x262c1a){super(_0x262c1a);const t=_0x262c1a['t'];this['set']('errorType',null);const _0x2418b4=new _0x547b45(_0x262c1a);_0x2418b4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2418b4['withText']=!0x0,_0x2418b4['class']='ck-button-action',_0x2418b4['on']('execute',()=>{this['fire']('retry');}),_0x2418b4['bind']('isVisible')['to'](this,'errorType',_0xf85791=>'NotFound'!==_0xf85791);const _0x2c33d7=new _0x1e8409();_0x2c33d7['content']=_0x1675e8,_0x2c33d7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x13b133=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':[_0x2c33d7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x13b133['to']('errorType',_0x3b9098=>t('NotFound'!==_0x3b9098?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2418b4]},{'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 _0x3d42da,View as _0x3635be}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3635be{constructor(_0x4a5ff9){super(_0x4a5ff9);const t=_0x4a5ff9['t'],_0x8570a1=this['bindTemplate'],_0x50eca1=new _0x3d42da();_0x50eca1['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':[_0x50eca1,{'text':_0x8570a1['to']('imageUploadProgress',_0x3c2408=>t('Loading\x20image...')+'\x20('+(_0x3c2408||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
|
-
function
|
|
23
|
+
function _0x2cc3(){const _0x3e8223=['element','apply','setTemplate','getFocusableElement','status','uc-cloud-image-editor','length','change:status','ck-uploadcare-form','277290yiLbHB','1361625EmZsYY','error','2160326xOHfku','_items','cancel','cdnUrl','_waitForImageEditorComponent','focus','querySelector','createCollection','observe','addMany','nodeName','retry','target','_errorView','_focusableView','246498LwWNAb','ready','_addErrorViewListeners','once','_editingView','toLowerCase','326153BQJydW','_setView','fire','addEventListener','9WAPwkA','detail','_loadingView','1336650AWyFQN','clear','div','set','filter','add','uploading','ck-reset_all-excluded','render','addedNodes','20rfqrby','disconnect','_addUploadcareImageEditorListeners','9704872YZyQeC'];_0x2cc3=function(){return _0x3e8223;};return _0x2cc3();}const _0x225654=_0x4064;function _0x4064(_0x5c14f1,_0xda614b){const _0x2cc3ba=_0x2cc3();return _0x4064=function(_0x40643c,_0x3447a2){_0x40643c=_0x40643c-0xc2;let _0x4b8bde=_0x2cc3ba[_0x40643c];return _0x4b8bde;},_0x4064(_0x5c14f1,_0xda614b);}(function(_0x203b2a,_0x542fae){const _0x1dfcd4=_0x4064,_0x4358b8=_0x203b2a();while(!![]){try{const _0x637459=-parseInt(_0x1dfcd4(0xca))/0x1+parseInt(_0x1dfcd4(0xe8))/0x2+parseInt(_0x1dfcd4(0xc4))/0x3*(-parseInt(_0x1dfcd4(0xdb))/0x4)+-parseInt(_0x1dfcd4(0xe9))/0x5+parseInt(_0x1dfcd4(0xd1))/0x6+-parseInt(_0x1dfcd4(0xeb))/0x7+parseInt(_0x1dfcd4(0xde))/0x8*(parseInt(_0x1dfcd4(0xce))/0x9);if(_0x637459===_0x542fae)break;else _0x4358b8['push'](_0x4358b8['shift']());}catch(_0x505eb2){_0x4358b8['push'](_0x4358b8['shift']());}}}(_0x2cc3,0x3ea5b));import{View as _0x3edf0f}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x22442a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4ba49b}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x363e9f}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x27dd54}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x27dd54{[_0x225654(0xec)];[_0x225654(0xd0)];[_0x225654(0xc2)];[_0x225654(0xc8)];[_0x225654(0xc3)];constructor(_0x434424,_0x380580,_0x12d41d){const _0x272989=_0x225654;super(_0x434424),this[_0x272989(0xec)]=this[_0x272989(0xf2)](),this[_0x272989(0xd0)]=new _0x22442a(_0x434424),this[_0x272989(0xc2)]=new _0x4ba49b(_0x434424),this[_0x272989(0xc8)]=new _0x363e9f(_0x434424,_0x12d41d),this[_0x272989(0xc3)]=new _0x3edf0f(_0x434424),this[_0x272989(0xc3)][_0x272989(0xe1)](this[_0x272989(0xe2)]()),this[_0x272989(0xd4)](_0x272989(0xe3),_0x380580),this[_0x272989(0xe1)]({'tag':_0x272989(0xd3),'attributes':{'class':['ck',_0x272989(0xd8),_0x272989(0xe7)],'tabindex':'-1'},'children':this[_0x272989(0xec)]}),this[_0x272989(0xcb)](),this[_0x272989(0xc7)](_0x272989(0xd9),()=>{const _0x5f00c7=_0x272989;this[_0x5f00c7(0xef)](this[_0x5f00c7(0xdf)],_0x405c09=>{const _0x3a20c6=_0x5f00c7;this[_0x3a20c6(0xdd)](_0x405c09);});}),this['on'](_0x272989(0xe6),()=>{const _0x3e7c71=_0x272989;this[_0x3e7c71(0xcb)]();}),this[_0x272989(0xc6)]();}[_0x225654(0xf0)](){const _0x2ace81=_0x225654;this[_0x2ace81(0xdf)][_0x2ace81(0xf0)]();}[_0x225654(0xcb)](){const _0x35ba25=_0x225654;switch(this[_0x35ba25(0xec)][_0x35ba25(0xd2)](),this[_0x35ba25(0xe3)]){case _0x35ba25(0xd7):this[_0x35ba25(0xec)][_0x35ba25(0xd6)](this[_0x35ba25(0xd0)]);break;case _0x35ba25(0xea):this[_0x35ba25(0xec)][_0x35ba25(0xd6)](this[_0x35ba25(0xc2)]);break;case _0x35ba25(0xc5):this[_0x35ba25(0xec)][_0x35ba25(0xf4)]([this[_0x35ba25(0xc8)],this[_0x35ba25(0xc3)]]);}}[_0x225654(0xef)](_0x29bed0,_0xefab28){const _0x6a48f6=_0x225654,_0x5c55d5=_0x6a48f6(0xe4),_0x53a3d3=_0x29bed0[_0x6a48f6(0xf1)](_0x5c55d5);if(_0x53a3d3)return _0xefab28(_0x53a3d3);const _0x995169=new MutationObserver(_0x1edaf9=>{const _0x39394d=_0x6a48f6,_0xac9b3f=_0x1edaf9[_0x39394d(0xd5)](_0x15edcd=>_0x15edcd[_0x39394d(0xf7)]===_0x29bed0&&_0x15edcd[_0x39394d(0xda)][_0x39394d(0xe5)]>0x0&&_0x15edcd[_0x39394d(0xda)][0x0][_0x39394d(0xf5)][_0x39394d(0xc9)]()===_0x5c55d5);_0xac9b3f[_0x39394d(0xe5)]&&(_0x995169[_0x39394d(0xdc)](),_0xefab28(_0xac9b3f[0x0][_0x39394d(0xda)][0x0]));});_0x995169[_0x6a48f6(0xf3)](_0x29bed0,{'childList':!0x0,'subtree':!0x0});}[_0x225654(0xdd)](_0x5df24d){const _0x11128a=_0x225654;_0x5df24d[_0x11128a(0xcd)](_0x11128a(0xe0),_0x44239b=>{const _0x321f73=_0x11128a;this[_0x321f73(0xcc)](_0x321f73(0xe0),{'imageSrc':_0x44239b[_0x321f73(0xcf)][_0x321f73(0xee)]});}),_0x5df24d[_0x11128a(0xcd)](_0x11128a(0xed),()=>{const _0x44cf20=_0x11128a;this[_0x44cf20(0xcc)](_0x44cf20(0xed));});}[_0x225654(0xc6)](){const _0x4ca293=_0x225654;this[_0x4ca293(0xc2)]['on'](_0x4ca293(0xf6),()=>{const _0x27c922=_0x4ca293;this[_0x27c922(0xcc)](_0x27c922(0xf6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5efac9=_0x3a2f;(function(_0x4391e0,_0x464525){const _0x13a78a=_0x3a2f,_0x24c177=_0x4391e0();while(!![]){try{const _0x5a6ccb=-parseInt(_0x13a78a(0x166))/0x1+parseInt(_0x13a78a(0x164))/0x2*(-parseInt(_0x13a78a(0x15b))/0x3)+-parseInt(_0x13a78a(0x167))/0x4+parseInt(_0x13a78a(0x14f))/0x5*(-parseInt(_0x13a78a(0x153))/0x6)+-parseInt(_0x13a78a(0x15e))/0x7*(-parseInt(_0x13a78a(0x156))/0x8)+-parseInt(_0x13a78a(0x162))/0x9*(parseInt(_0x13a78a(0x159))/0xa)+parseInt(_0x13a78a(0x14d))/0xb;if(_0x5a6ccb===_0x464525)break;else _0x24c177['push'](_0x24c177['shift']());}catch(_0x49b72e){_0x24c177['push'](_0x24c177['shift']());}}}(_0x4536,0x53be1));import{Command as _0x48918a}from'ckeditor5/src/core.js';function _0x4536(){const _0x251629=['set','362307IPVCJD','requires','execute','165669ZbIXqq','uploadcare.allowExternalImagesEditing','imageBlock','refresh','9WYnYMr','model','4tRdCcV','imageEditController','94458kyKQhp','1709680sdykrW','document','imageInline','bind','getSelectedElement','get','unbind','15658654UNflGd','_isEditable','30805gwdrDu','isActive','isEnabled','selection','54czpdNo','config','element','56RLzRXs','plugins','editor','4273090Nfkqja'];_0x4536=function(){return _0x251629;};return _0x4536();}import{Dialog as _0x472fb3}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x42d968}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x19fe29}from'../utils/editingutils.js';function _0x3a2f(_0x386514,_0x27c400){const _0x4536da=_0x4536();return _0x3a2f=function(_0x3a2f6f,_0x1fbac8){_0x3a2f6f=_0x3a2f6f-0x148;let _0x1ff693=_0x4536da[_0x3a2f6f];return _0x1ff693;},_0x3a2f(_0x386514,_0x27c400);}export class UploadcareImageEditCommand extends _0x48918a{[_0x5efac9(0x165)];static get[_0x5efac9(0x15c)](){return[_0x472fb3];}[_0x5efac9(0x14e)];constructor(_0x3308d0){const _0x41bfac=_0x5efac9;super(_0x3308d0),this[_0x41bfac(0x165)]=void 0x0,this[_0x41bfac(0x14e)]=_0x19fe29(_0x3308d0[_0x41bfac(0x154)][_0x41bfac(0x14b)](_0x41bfac(0x15f))||[]),this[_0x41bfac(0x15a)]({'isActive':!0x1});}[_0x5efac9(0x161)](){const _0x2084f3=_0x5efac9,_0x351568=this[_0x2084f3(0x158)][_0x2084f3(0x163)][_0x2084f3(0x168)][_0x2084f3(0x152)][_0x2084f3(0x14a)]();this[_0x2084f3(0x151)]=this[_0x2084f3(0x14e)](_0x351568);}[_0x5efac9(0x15d)](){const _0x36b1ba=_0x5efac9;this[_0x36b1ba(0x165)]&&(this[_0x36b1ba(0x14c)](_0x36b1ba(0x150)),this[_0x36b1ba(0x165)]=void 0x0);const _0x189c97=this[_0x36b1ba(0x158)][_0x36b1ba(0x163)][_0x36b1ba(0x168)][_0x36b1ba(0x152)][_0x36b1ba(0x14a)]();_0x189c97&&(_0x189c97['is'](_0x36b1ba(0x155),_0x36b1ba(0x160))||_0x189c97['is'](_0x36b1ba(0x155),_0x36b1ba(0x148)))&&(this[_0x36b1ba(0x165)]=new _0x42d968(this[_0x36b1ba(0x158)],this[_0x36b1ba(0x158)][_0x36b1ba(0x157)][_0x36b1ba(0x14b)](_0x472fb3),_0x189c97),this[_0x36b1ba(0x149)](_0x36b1ba(0x150))['to'](this[_0x36b1ba(0x165)],_0x36b1ba(0x150)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4773e1=_0x4d8b;(function(_0x91f527,_0x5c7d09){const _0xd6973=_0x4d8b,_0x226301=_0x91f527();while(!![]){try{const _0x35d8a4=parseInt(_0xd6973(0x1fe))/0x1*(parseInt(_0xd6973(0x1f6))/0x2)+parseInt(_0xd6973(0x1ea))/0x3*(-parseInt(_0xd6973(0x200))/0x4)+-parseInt(_0xd6973(0x1f7))/0x5*(parseInt(_0xd6973(0x1f5))/0x6)+-parseInt(_0xd6973(0x1f4))/0x7*(-parseInt(_0xd6973(0x1f2))/0x8)+parseInt(_0xd6973(0x1f3))/0x9*(parseInt(_0xd6973(0x1e9))/0xa)+parseInt(_0xd6973(0x1ee))/0xb*(parseInt(_0xd6973(0x1ed))/0xc)+-parseInt(_0xd6973(0x1fd))/0xd*(parseInt(_0xd6973(0x1ef))/0xe);if(_0x35d8a4===_0x5c7d09)break;else _0x226301['push'](_0x226301['shift']());}catch(_0x3ea490){_0x226301['push'](_0x226301['shift']());}}}(_0x1f75,0x82413));import{Plugin as _0x4c09f8}from'ckeditor5/src/core.js';function _0x4d8b(_0x4c1656,_0x5b56e9){const _0x1f758f=_0x1f75();return _0x4d8b=function(_0x4d8bfc,_0x3114e1){_0x4d8bfc=_0x4d8bfc-0x1e8;let _0x3aaf8f=_0x1f758f[_0x4d8bfc];return _0x3aaf8f;},_0x4d8b(_0x4c1656,_0x5b56e9);}function _0x1f75(){const _0x1ccb96=['14GWYfXV','721356THSXsZ','88gVTPJo','25pxQQPt','init','commands','UploadcareImageEditEditing','isPremiumPlugin','uploadcareImageReplace','13UYteAW','8249YOclqQ','ImageEditing','776UwStxH','add','uploadcareImageEdit','9910SzDupy','7689hdEkZJ','ImageUtils','pluginName','5196NONTbl','26114xluPFC','12130188THBvRl','isOfficialPlugin','requires','1809472CeTzLw','5949lKcAsK'];_0x1f75=function(){return _0x1ccb96;};return _0x1f75();}import{Notification as _0x2dff95}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1b0679}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0xd2a5d5}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2594ea}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4c09f8{static get[_0x4773e1(0x1ec)](){const _0x38d294=_0x4773e1;return _0x38d294(0x1fa);}static get[_0x4773e1(0x1f1)](){const _0x23473a=_0x4773e1;return[_0x2594ea,_0x2dff95,_0x23473a(0x1eb),_0x23473a(0x1ff)];}static get[_0x4773e1(0x1f0)](){return!0x0;}static get[_0x4773e1(0x1fb)](){return!0x0;}[_0x4773e1(0x1f8)](){const _0x326b41=_0x4773e1,{editor:_0xc3c5db}=this;_0xc3c5db[_0x326b41(0x1f9)][_0x326b41(0x201)](_0x326b41(0x1e8),new _0x1b0679(_0xc3c5db)),_0xc3c5db[_0x326b41(0x1f9)][_0x326b41(0x201)](_0x326b41(0x1fc),new _0xd2a5d5(_0xc3c5db));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2692dd}from'ckeditor5/src/core.js';import{ButtonView as _0x4452f9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1e1a0a}from'ckeditor5/src/icons.js';import{createElement as _0x23622f}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 _0x2692dd{['_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 _0x1d604e=this['editor'];_0x1d604e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x53efd8=>{const _0x5163e9=_0x1d604e['commands']['get']('uploadcareImageEdit'),_0x29a06a=new _0x4452f9(_0x53efd8),t=_0x53efd8['t'];return _0x29a06a['set']({'icon':_0x1e1a0a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x29a06a['bind']('isEnabled')['to'](_0x5163e9),_0x29a06a['bind']('isOn')['to'](_0x5163e9,'isActive'),this['listenTo'](_0x29a06a,'execute',()=>{_0x1d604e['execute']('uploadcareImageEdit'),_0x1d604e['editing']['view']['focus']();}),_0x29a06a;}),this['_initConfig']();}['_initConfig'](){const _0x384f2c=_0x23622f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x384f2c),this['listenTo'](this['editor'],'destroy',()=>{_0x384f2c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1baad7=_0x32e4;(function(_0xebadad,_0x455f6d){const _0x4b787b=_0x32e4,_0x450197=_0xebadad();while(!![]){try{const _0x24fcaf=parseInt(_0x4b787b(0x1ac))/0x1+-parseInt(_0x4b787b(0x1b9))/0x2*(-parseInt(_0x4b787b(0x1af))/0x3)+parseInt(_0x4b787b(0x1bb))/0x4+-parseInt(_0x4b787b(0x1a7))/0x5*(parseInt(_0x4b787b(0x1b4))/0x6)+parseInt(_0x4b787b(0x1b6))/0x7*(parseInt(_0x4b787b(0x1ad))/0x8)+-parseInt(_0x4b787b(0x1b5))/0x9*(-parseInt(_0x4b787b(0x1b3))/0xa)+-parseInt(_0x4b787b(0x1a8))/0xb;if(_0x24fcaf===_0x455f6d)break;else _0x450197['push'](_0x450197['shift']());}catch(_0x10bb5f){_0x450197['push'](_0x450197['shift']());}}}(_0x3746,0x5aef8));function _0x32e4(_0x24870a,_0x9401e){const _0x37462b=_0x3746();return _0x32e4=function(_0x32e480,_0x32fdad){_0x32e480=_0x32e480-0x1a7;let _0x34dbfd=_0x37462b[_0x32e480];return _0x34dbfd;},_0x32e4(_0x24870a,_0x9401e);}function _0x3746(){const _0x257ac9=['1525428wVOYhD','selection','change','isEnabled','execute','setAttributes','getSelectedElement','20IUoSSs','19033641lPtyPC','model','element','sizes','727166GyTKgM','4661752cWcObb','removeAttribute','2289YRHdyt','editor','imageBlock','refresh','4715710REAvjs','998748WhDSbN','9JJxpHx','7SwlaNK','imageInline','srcset','1588fcSHNX','document'];_0x3746=function(){return _0x257ac9;};return _0x3746();}import{Command as _0x305e75}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x305e75{[_0x1baad7(0x1b2)](){const _0x3a1f64=_0x1baad7,_0x1d9b12=this[_0x3a1f64(0x1b0)][_0x3a1f64(0x1a9)][_0x3a1f64(0x1ba)][_0x3a1f64(0x1bc)][_0x3a1f64(0x1c1)]();this[_0x3a1f64(0x1be)]=Boolean(_0x1d9b12&&(_0x1d9b12['is'](_0x3a1f64(0x1aa),_0x3a1f64(0x1b1))||_0x1d9b12['is'](_0x3a1f64(0x1aa),_0x3a1f64(0x1b7))));}[_0x1baad7(0x1bf)](_0x107828){const _0x40610d=_0x1baad7,_0x245b38=this[_0x40610d(0x1b0)][_0x40610d(0x1a9)][_0x40610d(0x1ba)][_0x40610d(0x1bc)][_0x40610d(0x1c1)]();this[_0x40610d(0x1b0)][_0x40610d(0x1a9)][_0x40610d(0x1bd)](_0x4707e3=>{const _0x4a5e08=_0x40610d;_0x4707e3[_0x4a5e08(0x1c0)](_0x107828,_0x245b38),_0x4707e3[_0x4a5e08(0x1ae)](_0x4a5e08(0x1b8),_0x245b38),_0x4707e3[_0x4a5e08(0x1ae)](_0x4a5e08(0x1ab),_0x245b38);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x488287=_0x440a;(function(_0x3d2aaf,_0x25ed90){var _0x1fce8d=_0x440a,_0x5a092f=_0x3d2aaf();while(!![]){try{var _0x1fdd07=-parseInt(_0x1fce8d(0x1f2))/0x1+-parseInt(_0x1fce8d(0x1f5))/0x2*(parseInt(_0x1fce8d(0x1f1))/0x3)+parseInt(_0x1fce8d(0x1f6))/0x4+parseInt(_0x1fce8d(0x1f9))/0x5+-parseInt(_0x1fce8d(0x1ed))/0x6+-parseInt(_0x1fce8d(0x1ef))/0x7*(parseInt(_0x1fce8d(0x1f4))/0x8)+parseInt(_0x1fce8d(0x1f0))/0x9;if(_0x1fdd07===_0x25ed90)break;else _0x5a092f['push'](_0x5a092f['shift']());}catch(_0x5309ac){_0x5a092f['push'](_0x5a092f['shift']());}}}(_0x5896,0xb8291));import{Plugin as _0x2d90ad}from'ckeditor5/src/core.js';function _0x440a(_0xac548b,_0x46f6b5){var _0x5896d1=_0x5896();return _0x440a=function(_0x440a79,_0x1e44bf){_0x440a79=_0x440a79-0x1ec;var _0x59ed80=_0x5896d1[_0x440a79];return _0x59ed80;},_0x440a(_0xac548b,_0x46f6b5);}import{UploadcareImageEditEditing as _0xcab61b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x4c834d}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x5896(){var _0x1b8d97=['4443195UmcwNN','UploadcareImageEdit','4295142nEQpCn','pluginName','448IUisAL','15284718zRUSUb','2812119vnxfdm','997785sNxIIS','requires','51592LWzepp','2vfkqJp','4924524yarZUR','isOfficialPlugin','isPremiumPlugin'];_0x5896=function(){return _0x1b8d97;};return _0x5896();}export class UploadcareImageEdit extends _0x2d90ad{static get[_0x488287(0x1ee)](){var _0x1cc37b=_0x488287;return _0x1cc37b(0x1ec);}static get[_0x488287(0x1f3)](){return[_0xcab61b,_0x4c834d];}static get[_0x488287(0x1f7)](){return!0x0;}static get[_0x488287(0x1f8)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d6380=_0x4cb6;(function(_0xa3050e,_0x1d0dab){const _0x418dd8=_0x4cb6,_0x5c5d7c=_0xa3050e();while(!![]){try{const _0x46a776=parseInt(_0x418dd8(0x192))/0x1*(-parseInt(_0x418dd8(0x189))/0x2)+parseInt(_0x418dd8(0x174))/0x3*(parseInt(_0x418dd8(0x1a1))/0x4)+parseInt(_0x418dd8(0x165))/0x5+-parseInt(_0x418dd8(0x196))/0x6+-parseInt(_0x418dd8(0x1a3))/0x7*(-parseInt(_0x418dd8(0x163))/0x8)+parseInt(_0x418dd8(0x178))/0x9*(-parseInt(_0x418dd8(0x1a2))/0xa)+parseInt(_0x418dd8(0x195))/0xb;if(_0x46a776===_0x1d0dab)break;else _0x5c5d7c['push'](_0x5c5d7c['shift']());}catch(_0x22261c){_0x5c5d7c['push'](_0x5c5d7c['shift']());}}}(_0x1492,0x43da5));import{Plugin as _0x5d1571}from'ckeditor5/src/core.js';import{IconDropbox as _0x2a6904,IconFacebook as _0x2c153c,IconGoogleDrive as _0x154de5,IconGooglePhotos as _0xcd7564,IconUploadcareImageUpload as _0x57c20e,IconUploadcareLink as _0x4eaff0,IconOneDrive as _0x33aea2}from'ckeditor5/src/icons.js';import{ButtonView as _0x63dc5c,MenuBarMenuListItemButtonView as _0x5de699}from'ckeditor5/src/ui.js';function _0x4cb6(_0x58b3e3,_0x199da8){const _0x1492e1=_0x1492();return _0x4cb6=function(_0x4cb602,_0x29ac3c){_0x4cb602=_0x4cb602-0x158;let _0x56f852=_0x1492e1[_0x4cb602];return _0x56f852;},_0x4cb6(_0x58b3e3,_0x199da8);}function _0x1492(){const _0x2774e1=['731570AnyJxH','GPhotos','expired','_showLicenseError','bind','_createMenuBarButtons','uploadcareLicenseKeyExpired','commands','invalid','ImageInsertUI','editor','Uploadcare','icon','_getIntegrationKey','_licenseKeyCheckInterval','1579401HCIinb','Facebook','label','_createButton','1360467vLGmNO','OneDrive','uploadcareLicenseKeyTrialLimit','isPremiumPlugin','uploadcareLicenseKeyValid','get','map','upload','text','isOfficialPlugin','UploadcareUI','domainLimit','init','assetManager','pluginName','forEach','afterInit','4nAYlXe','Insert','config','locale','uploadcare.uploader.sourceList','uploadcareLicenseKeyInvalid','evaluationLimit','shortText','entries','46577MqlGyD','uploadcare','execute','4784329WiMLZo','2711418RUfgij','isEnabled','destroy','GDrive','has','uploadcareLicenseKeyUsageLimit','url','Replace','Dropbox','trialLimit','uploadcareLicenseKeyDomainLimit','4FgjBxa','30VykjgN','203XzYBfc','_normalizeConfigSourceList','reduce','URL','licenseKey','Local','registerIntegration','tooltip','isImageSelected','withText','_createDropdownButtons','plugins','featureNotAllowed','_createToolbarButton','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyNotAllowed','type','push','46552yWXrLK','usageLimit'];_0x1492=function(){return _0x2774e1;};return _0x1492();}import{UploadcareSource as _0x1fe556}from'./uploadcareconfig.js';import{getTranslation as _0x28130a}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x5d1571{[_0x3d6380(0x1a7)];[_0x3d6380(0x173)];static get[_0x3d6380(0x186)](){const _0x256131=_0x3d6380;return _0x256131(0x182);}static get[_0x3d6380(0x181)](){return!0x0;}static get[_0x3d6380(0x17b)](){return!0x0;}[_0x3d6380(0x184)](){const _0x5aa40d=_0x3d6380;this[_0x5aa40d(0x1a7)]=this[_0x5aa40d(0x16f)][_0x5aa40d(0x18b)][_0x5aa40d(0x17d)](_0x5aa40d(0x1a7));const _0x21eb31=this[_0x5aa40d(0x16f)];this[_0x5aa40d(0x173)]=setInterval(()=>{const _0x2f6721=_0x5aa40d;let _0x1960a5;for(const _0x3659a3 in _0x21eb31){const _0x21441f=_0x3659a3,_0x95bc9=_0x21eb31[_0x21441f];if(_0x2f6721(0x17c)==_0x95bc9||_0x2f6721(0x18e)==_0x95bc9||_0x2f6721(0x16b)==_0x95bc9||_0x2f6721(0x1a0)==_0x95bc9||_0x2f6721(0x160)==_0x95bc9||_0x2f6721(0x15f)==_0x95bc9||_0x2f6721(0x17a)==_0x95bc9||_0x2f6721(0x19b)==_0x95bc9){delete _0x21eb31[_0x21441f],_0x1960a5=_0x95bc9,clearInterval(this[_0x2f6721(0x173)]),this[_0x2f6721(0x173)]=void 0x0;break;}}_0x2f6721(0x18e)==_0x1960a5&&_0x21eb31[_0x2f6721(0x168)](_0x2f6721(0x16d)),_0x2f6721(0x16b)==_0x1960a5&&_0x21eb31[_0x2f6721(0x168)](_0x2f6721(0x167)),_0x2f6721(0x1a0)==_0x1960a5&&_0x21eb31[_0x2f6721(0x168)](_0x2f6721(0x183)),_0x2f6721(0x160)==_0x1960a5&&_0x21eb31[_0x2f6721(0x168)](_0x2f6721(0x15d),_0x2f6721(0x170)),_0x2f6721(0x15f)==_0x1960a5&&_0x21eb31[_0x2f6721(0x168)](_0x2f6721(0x18f)),_0x2f6721(0x17a)==_0x1960a5&&_0x21eb31[_0x2f6721(0x168)](_0x2f6721(0x19f)),_0x2f6721(0x19b)==_0x1960a5&&_0x21eb31[_0x2f6721(0x168)](_0x2f6721(0x164));},0x3e8);}[_0x3d6380(0x188)](){const _0x91eeb9=_0x3d6380,{editor:_0x51baf5}=this,_0x4928a6=_0x51baf5[_0x91eeb9(0x16c)][_0x91eeb9(0x17d)](_0x91eeb9(0x193));if(!_0x4928a6)return;const _0x243fc6=this[_0x91eeb9(0x1a4)](_0x51baf5[_0x91eeb9(0x18b)][_0x91eeb9(0x17d)](_0x91eeb9(0x18d)))[_0x91eeb9(0x1a5)]((_0x5a735c,_0x16c6fc)=>{const _0x287f6d=_0x91eeb9,_0x395131=this[_0x287f6d(0x172)](_0x16c6fc[_0x287f6d(0x161)]);return _0x5a735c[_0x395131]||(_0x5a735c[_0x395131]=[]),_0x5a735c[_0x395131][_0x287f6d(0x162)](_0x16c6fc),_0x5a735c;},{});_0x51baf5[_0x91eeb9(0x15c)][_0x91eeb9(0x19a)](_0x91eeb9(0x16e))&&_0x51baf5[_0x91eeb9(0x16c)][_0x91eeb9(0x17d)](_0x91eeb9(0x193))&&Object[_0x91eeb9(0x191)](_0x243fc6)[_0x91eeb9(0x187)](([_0x9a48d1,_0x4b7145])=>{const _0x3123ff=_0x91eeb9;_0x51baf5[_0x3123ff(0x15c)][_0x3123ff(0x17d)](_0x3123ff(0x16e))[_0x3123ff(0x1a9)]({'name':_0x9a48d1,'observable':()=>_0x4928a6,'buttonViewCreator':()=>this[_0x3123ff(0x15e)](_0x4b7145),'formViewCreator':()=>this[_0x3123ff(0x15b)](_0x4b7145),'menuBarButtonViewCreator':()=>this[_0x3123ff(0x16a)](_0x4b7145),'override':_0x3123ff(0x185)!==_0x9a48d1});});}[_0x3d6380(0x198)](){const _0x5d418b=_0x3d6380;super[_0x5d418b(0x198)](),this[_0x5d418b(0x173)]&&clearInterval(this[_0x5d418b(0x173)]);}[_0x3d6380(0x1a4)](_0x413b8f){const _0x171295=_0x3d6380,{locale:_0x342edc}=this[_0x171295(0x16f)];return _0x413b8f[_0x171295(0x17e)](_0x449b06=>{const _0x26228f=_0x171295,_0x1d233f=_0x28130a(_0x342edc,_0x449b06,_0x26228f(0x18a));switch(_0x449b06){case _0x1fe556[_0x26228f(0x1a8)]:return{'icon':_0x57c20e,'type':_0x1fe556[_0x26228f(0x1a8)],..._0x1d233f};case _0x1fe556[_0x26228f(0x1a6)]:return{'icon':_0x4eaff0,'type':_0x1fe556[_0x26228f(0x1a6)],..._0x1d233f};case _0x1fe556[_0x26228f(0x19e)]:return{'icon':_0x2a6904,'type':_0x1fe556[_0x26228f(0x19e)],..._0x1d233f};case _0x1fe556[_0x26228f(0x175)]:return{'icon':_0x2c153c,'type':_0x1fe556[_0x26228f(0x175)],..._0x1d233f};case _0x1fe556[_0x26228f(0x199)]:return{'icon':_0x154de5,'type':_0x1fe556[_0x26228f(0x199)],..._0x1d233f};case _0x1fe556[_0x26228f(0x166)]:return{'icon':_0xcd7564,'type':_0x1fe556[_0x26228f(0x166)],..._0x1d233f};case _0x1fe556[_0x26228f(0x179)]:return{'icon':_0x33aea2,'type':_0x1fe556[_0x26228f(0x179)],..._0x1d233f};}});}[_0x3d6380(0x172)](_0x2cc350){const _0x493e2a=_0x3d6380;switch(_0x2cc350){case _0x1fe556[_0x493e2a(0x1a8)]:return _0x493e2a(0x17f);case _0x1fe556[_0x493e2a(0x1a6)]:return _0x493e2a(0x19c);default:return _0x493e2a(0x185);}}[_0x3d6380(0x177)](_0x178f8f,_0x32319a){const _0x153457=_0x3d6380,_0x1e15c3=this[_0x153457(0x16f)],_0x2a23fe=new _0x178f8f(_0x1e15c3[_0x153457(0x18c)]),_0x33c91c=_0x1e15c3[_0x153457(0x16c)][_0x153457(0x17d)](_0x153457(0x193));return _0x2a23fe[_0x153457(0x169)](_0x153457(0x197))['to'](_0x33c91c),_0x2a23fe['on'](_0x153457(0x194),()=>{const _0x47e859=_0x153457;_0x33c91c[_0x47e859(0x194)](_0x32319a);}),_0x2a23fe;}[_0x3d6380(0x15e)](_0x4ed395){const _0x24580f=_0x3d6380,{locale:_0x1f4ca0}=this[_0x24580f(0x16f)],_0x19564b=this[_0x24580f(0x16f)][_0x24580f(0x15c)][_0x24580f(0x17d)](_0x24580f(0x16e)),_0x473b6a=_0x4ed395[0x0],_0x5864a5=this[_0x24580f(0x177)](_0x63dc5c,_0x473b6a[_0x24580f(0x161)]);return _0x5864a5[_0x24580f(0x171)]=_0x473b6a[_0x24580f(0x171)],_0x5864a5[_0x24580f(0x169)](_0x24580f(0x176))['to'](_0x19564b,_0x24580f(0x159),_0x5c2028=>_0x28130a(_0x1f4ca0,_0x473b6a[_0x24580f(0x161)],_0x5c2028?_0x24580f(0x19d):_0x24580f(0x18a))[_0x24580f(0x180)]),_0x5864a5[_0x24580f(0x158)]=!0x0,_0x5864a5;}[_0x3d6380(0x15b)](_0x52900b){const _0x308846=_0x3d6380,{locale:_0x5e4924}=this[_0x308846(0x16f)],_0x2a06d7=this[_0x308846(0x16f)][_0x308846(0x15c)][_0x308846(0x17d)](_0x308846(0x16e));return _0x52900b[_0x308846(0x17e)](_0x21f3e1=>{const _0x28c783=_0x308846,_0x3c5033=this[_0x28c783(0x177)](_0x63dc5c,_0x21f3e1[_0x28c783(0x161)]);return _0x3c5033[_0x28c783(0x15a)]=!0x0,_0x3c5033[_0x28c783(0x171)]=_0x21f3e1[_0x28c783(0x171)],_0x3c5033[_0x28c783(0x169)](_0x28c783(0x176))['to'](_0x2a06d7,_0x28c783(0x159),_0x311117=>_0x28130a(_0x5e4924,_0x21f3e1[_0x28c783(0x161)],_0x311117?_0x28c783(0x19d):_0x28c783(0x18a))[_0x28c783(0x180)]),_0x3c5033;});}[_0x3d6380(0x16a)](_0x42f560){const _0x37e258=_0x3d6380;return _0x42f560[_0x37e258(0x17e)](_0x345ca9=>{const _0x244648=_0x37e258,_0x2157fd=this[_0x244648(0x177)](_0x5de699,_0x345ca9[_0x244648(0x161)]);return _0x2157fd[_0x244648(0x171)]=_0x345ca9[_0x244648(0x171)],_0x2157fd[_0x244648(0x176)]=_0x345ca9[_0x244648(0x190)],_0x2157fd;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x368597}from'ckeditor5/src/core.js';import{FileRepository as _0x3843d4}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x54dcf7}from'./uploadcareediting.js';import{UploadUtils as _0x5c3aa3}from'./utils/uploadutils.js';import{getImageUrls as _0x1ae0cb}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x368597{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3843d4,_0x54dcf7];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x37c9a4=this['editor'];if(!!!_0x37c9a4['config']['get']('uploadcare'))return;_0x37c9a4['plugins']['get'](_0x3843d4)['createUploadAdapter']=_0x3f4787=>new A(_0x3f4787,_0x37c9a4),_0x37c9a4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1db096,{imageElement:_0x1661c5,data:_0x44ee20})=>{_0x37c9a4['model']['change'](_0x419357=>{_0x419357['setAttribute']('uploadcareImageId',_0x44ee20['uploadcareImageId'],_0x1661c5);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1d2bee,_0x5d11f6){this['loader']=_0x1d2bee,this['editor']=_0x5d11f6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x431671=this['editor']['config']['get']('uploadcare.pubkey'),_0x50e5cf=await this['loader']['file'];return _0x5c3aa3['upload']({'file':_0x50e5cf,'publicKey':_0x431671,'signal':this['controller']['signal'],'onProgress':_0x307c57=>{_0x307c57&&_0x307c57['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x307c57['value']);}})['then'](async _0x41d206=>{const {imageFallbackUrl:_0x32d64f,imageSources:_0x379b3}=_0x1ae0cb(_0x41d206['cdnUrl'],_0x41d206['imageInfo']['width']);return{'uploadcareImageId':_0x41d206['uuid'],'default':_0x32d64f,'sources':_0x379b3};})['catch'](()=>{const _0x277d92=t('Cannot\x20upload\x20file:')+('\x20'+_0x50e5cf['name']+'.');return Promise['reject'](_0x277d92);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x501598}from'../uploadcareconfig.js';export function getTranslation(_0x40ae4c,_0x532b6f,_0x2f90ca){const t=_0x40ae4c['t'],_0xe0c915=_0x40ae4c['t'];switch(_0x532b6f){case _0x501598['Local']:return{'text':_0xe0c915('Insert'===_0x2f90ca?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xe0c915('From\x20computer')};case _0x501598['URL']:return{'text':'Insert'===_0x2f90ca?_0xe0c915('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xe0c915('Via\x20URL')};case _0x501598['Dropbox']:return{'text':t('Insert'===_0x2f90ca?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x501598['Facebook']:return{'text':t('Insert'===_0x2f90ca?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x501598['GDrive']:return{'text':t('Insert'===_0x2f90ca?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x501598['GPhotos']:return{'text':t('Insert'===_0x2f90ca?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x501598['OneDrive']:return{'text':t('Insert'===_0x2f90ca?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x532b6f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3142(_0x543e9b,_0x31ac97){var _0x2d1d6f=_0x2d1d();return _0x3142=function(_0x31426f,_0x1ed0ec){_0x31426f=_0x31426f-0x117;var _0x3f8528=_0x2d1d6f[_0x31426f];return _0x3f8528;},_0x3142(_0x543e9b,_0x31ac97);}var _0x219f89=_0x3142;function _0x2d1d(){var _0x52b349=['493142dHtVrB','fire','74330VwAzTI','64311SZzdfS','getFocusableElement','167274tTcfkT','261ElhSpA','24FuACOV','bindTemplate','div','5330413BOZlSd','40ZxLEZx','true','focusCycler','forwardCycle','focusTracker','148236BQPkjT','createCollection','211799JSUffH','45mgtFWU'];_0x2d1d=function(){return _0x52b349;};return _0x2d1d();}(function(_0x5f02b7,_0x3cb46f){var _0xa98484=_0x3142,_0xe3dc43=_0x5f02b7();while(!![]){try{var _0xe8695c=parseInt(_0xa98484(0x129))/0x1+parseInt(_0xa98484(0x126))/0x2+parseInt(_0xa98484(0x117))/0x3*(-parseInt(_0xa98484(0x119))/0x4)+-parseInt(_0xa98484(0x125))/0x5*(parseInt(_0xa98484(0x122))/0x6)+-parseInt(_0xa98484(0x124))/0x7*(-parseInt(_0xa98484(0x11d))/0x8)+-parseInt(_0xa98484(0x118))/0x9*(parseInt(_0xa98484(0x128))/0xa)+parseInt(_0xa98484(0x11c))/0xb;if(_0xe8695c===_0x3cb46f)break;else _0xe3dc43['push'](_0xe3dc43['shift']());}catch(_0x51e369){_0xe3dc43['push'](_0xe3dc43['shift']());}}}(_0x2d1d,0x2a8d3));import{FocusTracker as _0x52a07e}from'ckeditor5/src/utils.js';import{View as _0xcc7b40,FocusCycler as _0x1cd7bd}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xcc7b40{[_0x219f89(0x121)];[_0x219f89(0x11f)];constructor(_0x214c15){var _0x1df96f=_0x219f89;super(_0x214c15),this[_0x1df96f(0x121)]=new _0x52a07e(),this[_0x1df96f(0x11f)]=new _0x1cd7bd({'focusables':this[_0x1df96f(0x123)](),'focusTracker':this[_0x1df96f(0x121)]});}[_0x219f89(0x12a)](){var _0x4d9b6a=_0x219f89;return{'tag':_0x4d9b6a(0x11b),'attributes':{'aria-hidden':_0x4d9b6a(0x11e),'tabindex':'0'},'on':{'focus':this[_0x4d9b6a(0x11a)]['to'](()=>{var _0x388434=_0x4d9b6a;this[_0x388434(0x11f)][_0x388434(0x127)](_0x388434(0x120));})}};}}
|