@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.0 → 47.4.0-alpha.2
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 _0x493464=_0x81c4;(function(_0x19792a,_0xc7a4de){const _0x3a4f97=_0x81c4,_0x4b4525=_0x19792a();while(!![]){try{const _0x3fe2a0=parseInt(_0x3a4f97(0x1f4))/0x1*(-parseInt(_0x3a4f97(0x229))/0x2)+parseInt(_0x3a4f97(0x236))/0x3+-parseInt(_0x3a4f97(0x1ef))/0x4*(-parseInt(_0x3a4f97(0x203))/0x5)+parseInt(_0x3a4f97(0x1f0))/0x6*(parseInt(_0x3a4f97(0x207))/0x7)+parseInt(_0x3a4f97(0x240))/0x8+-parseInt(_0x3a4f97(0x1f2))/0x9*(parseInt(_0x3a4f97(0x1f9))/0xa)+parseInt(_0x3a4f97(0x226))/0xb*(parseInt(_0x3a4f97(0x23e))/0xc);if(_0x3fe2a0===_0xc7a4de)break;else _0x4b4525['push'](_0x4b4525['shift']());}catch(_0xaca106){_0x4b4525['push'](_0x4b4525['shift']());}}}(_0x3770,0x996d8));import{Plugin as _0x189fd5}from'ckeditor5/src/core.js';function _0x3770(){const _0x3532d9=['_initSchema','href','execute','uploadcareImageReplace','fromCharCode','upcast','isRegistered','uploader-','remove','contentLanguage','destroy','imageBlock','listenTo','attributeToAttribute','replaceImageSource','imageInline','83413vhCZst','config','view','447770esJJMN','appendChild','extend','editing','commands','#uc-icon-arrow-down','UploadcareEditing','getAttribute','afterInit','uc-upload-ctx-provider','pluginName','requires','downcast','1229988EuILiv','ctxElement','_initCtx','removeAttribute','PictureEditing','join','selection','querySelector','384BLLTKp','uc-config','7917616BLiTxP','document','model','configElement','render','map','1350148oRpggR','10434adfNUw','_configElement','45hnrYXZ','_ctxElement','3PaDfut','elementToAttribute','data-uc-image-id','locale','add','2323340dYOJHm','ucContextId','once','insertImage','_initConfig','input[uploadcare-file-input]','_initConversion','closeMax','init','uploadcare.uploader','10RFLURY','iconHrefResolver','cleanupImage','\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','581bzxPZT','true','isOfficialPlugin','uploadcare.pubkey','get','conversion','_initImageProcessingIndicator','getSelectedElement','body','uploadcareImageId','for','isPremiumPlugin','editor','uploadcare','schema'];_0x3770=function(){return _0x3532d9;};return _0x3770();}import{Dialog as _0x32d940}from'ckeditor5/src/ui.js';import{createElement as _0x134d6a,global as _0x3d0808,uid as _0x1e5aa3}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x506242}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c73a1}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x660694}from'./utils/editingutils.js';function _0x81c4(_0x11f03b,_0x274fc3){const _0x37702d=_0x3770();return _0x81c4=function(_0x81c466,_0x468012){_0x81c466=_0x81c466-0x1ee;let _0x50d22f=_0x37702d[_0x81c466];return _0x50d22f;},_0x81c4(_0x11f03b,_0x274fc3);}export class UploadcareEditing extends _0x189fd5{[_0x493464(0x1f1)]=null;[_0x493464(0x1f3)]=null;static get[_0x493464(0x233)](){const _0x3463df=_0x493464;return _0x3463df(0x22f);}static get[_0x493464(0x234)](){const _0x468422=_0x493464;return[_0x468422(0x23a),_0x3c73a1,_0x32d940];}static get[_0x493464(0x209)](){return!0x0;}static get[_0x493464(0x212)](){return!0x0;}[_0x493464(0x1fa)];get[_0x493464(0x243)](){const _0x515ee9=_0x493464;return this[_0x515ee9(0x1f1)];}get[_0x493464(0x237)](){const _0x34bfb3=_0x493464;return this[_0x34bfb3(0x1f3)];}constructor(_0x488826){const _0x4ad5fe=_0x493464;super(_0x488826),this[_0x4ad5fe(0x1fa)]=_0x1e5aa3();}[_0x493464(0x201)](){const _0x44b419=_0x493464,_0x36db06=this[_0x44b419(0x213)];_0x36db06[_0x44b419(0x22d)][_0x44b419(0x1f8)](_0x44b419(0x214),new _0x506242(_0x36db06));}[_0x493464(0x231)](){const _0x1656da=_0x493464;this[_0x1656da(0x216)](),this[_0x1656da(0x1ff)](),this[_0x1656da(0x1fd)](),this[_0x1656da(0x238)](),this[_0x1656da(0x20d)](),this[_0x1656da(0x222)](this[_0x1656da(0x213)],_0x1656da(0x220),()=>{const _0x3ebceb=_0x1656da;this[_0x3ebceb(0x1f1)]&&(this[_0x3ebceb(0x1f1)][_0x3ebceb(0x21e)](),this[_0x3ebceb(0x1f1)]=null),this[_0x3ebceb(0x1f3)]&&(this[_0x3ebceb(0x1f3)][_0x3ebceb(0x21e)](),this[_0x3ebceb(0x1f3)]=null);const _0x1094cd=_0x3d0808[_0x3ebceb(0x241)][_0x3ebceb(0x23d)](_0x3ebceb(0x1fe));_0x1094cd&&_0x1094cd[_0x3ebceb(0x21e)]();}),async function(_0x32cb2b){const _0x3b942f=_0x596482([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2efe21=0x535f8c3a,_0x24c116=0x5358f202^_0x2efe21,_0x1f14ce=window[_0x596482([0x44,0x61,0x74,0x65])][_0x596482([0x6e,0x6f,0x77])](),_0x464e5b=_0x32cb2b[_0x596482([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x429e7a=new window[(_0x596482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d956=>{_0x464e5b[_0x596482([0x6f,0x6e,0x63,0x65])](_0x596482([0x72,0x65,0x61,0x64,0x79]),_0x46d956);}),_0x23cf5b={[_0x596482([0x6b,0x74,0x79])]:_0x596482([0x45,0x43]),[_0x596482([0x75,0x73,0x65])]:_0x596482([0x73,0x69,0x67]),[_0x596482([0x63,0x72,0x76])]:_0x596482([0x50,0x2d,0x32,0x35,0x36]),[_0x596482([0x78])]:_0x596482([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]),[_0x596482([0x79])]:_0x596482([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]),[_0x596482([0x61,0x6c,0x67])]:_0x596482([0x45,0x53,0x32,0x35,0x36])},_0x2558ff=_0x464e5b[_0x596482([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x596482([0x67,0x65,0x74])](_0x596482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1712f4(){let _0x2b7d44,_0x3b5869=null,_0xefb7ea=null;try{if(_0x2558ff==_0x596482([0x47,0x50,0x4c]))return _0x596482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b7d44=_0x48ee0f(),!_0x2b7d44)return _0x596482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b7d44[_0x596482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xefb7ea=_0x8f0290(_0x2b7d44[_0x596482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b7d44[_0x596482([0x6a,0x74,0x69])])),await _0xf046b4()?_0xe7f6cc()?_0x5f380f()?_0x596482([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39f5da()?(_0x2b7d44[_0x596482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x596482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b5869=_0x1aa95a(_0x596482([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x569448()):_0x596482([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x596482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x596482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x596482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f380f(){const _0x426b14=[_0x596482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x596482([0x74,0x72,0x69,0x61,0x6c])][_0x596482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7d44[_0x596482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f14ce/0x3e8:0xe10*_0x24c116;return _0x2b7d44[_0x596482([0x65,0x78,0x70])]<_0x426b14;}function _0xe7f6cc(){const _0x5bb061=_0x2b7d44[_0x596482([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5bb061&&(!!_0x5bb061[_0x596482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596482([0x2a]))||!!_0x5bb061[_0x596482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596482([0x55,0x50,0x4c,0x43])));}function _0x39f5da(){const _0x37c46=_0x81c4,_0x183b29=_0x2b7d44[_0x596482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x183b29||0x0==_0x183b29[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31986d}=new URL(window[_0x596482([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37c46(0x217)]);if(_0x183b29[_0x596482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31986d))return!0x0;const _0x525fba=_0x31986d[_0x596482([0x73,0x70,0x6c,0x69,0x74])](_0x596482([0x2e]));return _0x183b29[_0x596482([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5fb1=>_0x1b5fb1[_0x596482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596482([0x2a])))[_0x596482([0x6d,0x61,0x70])](_0x517aa8=>_0x517aa8[_0x596482([0x73,0x70,0x6c,0x69,0x74])](_0x596482([0x2e])))[_0x596482([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3daae9=>_0x3daae9[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x525fba[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x596482([0x6d,0x61,0x70])](_0x7216b=>Array(_0x525fba[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x7216b[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x596482([0x66,0x69,0x6c,0x6c])](_0x7216b[0x0]===_0x596482([0x2a])?_0x596482([0x2a]):'')[_0x596482([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x7216b))[_0x596482([0x73,0x6f,0x6d,0x65])](_0x36b122=>_0x525fba[_0x596482([0x65,0x76,0x65,0x72,0x79])]((_0x48f692,_0x4f6ccf)=>_0x36b122[_0x4f6ccf]===_0x48f692||_0x36b122[_0x4f6ccf]===_0x596482([0x2a])));}function _0x569448(){return _0x3b5869&&_0xefb7ea?new window[(_0x596482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e62ab,_0x1cb9db)=>{_0x3b5869[_0x596482([0x74,0x68,0x65,0x6e])](_0x5e62ab,_0x1cb9db),_0xefb7ea[_0x596482([0x74,0x68,0x65,0x6e])](_0x669f0d=>{_0x669f0d!=_0x596482([0x56,0x61,0x6c,0x69,0x64])&&_0x5e62ab(_0x669f0d);},_0x1cb9db);}):_0x3b5869||_0xefb7ea||_0x596482([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8f0290(_0x4bfebe,_0x1cd022){return new window[(_0x596482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c8461=>{if(_0x3ec14b())return _0x3c8461(_0x596482([0x56,0x61,0x6c,0x69,0x64]));_0x55198c(),_0x464e5b[_0x596482([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x596482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x316dc0=!0x1;const _0x3b28b8=_0x1e5aa3();function _0xe927a9(_0x3b1cad){return!!_0x3b1cad&&(typeof _0x3b1cad===_0x596482([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b1cad===_0x596482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b1cad[_0x596482([0x74,0x68,0x65,0x6e])]===_0x596482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b1cad[_0x596482([0x63,0x61,0x74,0x63,0x68])]===_0x596482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e734e(_0x5b239f){_0x2c7788(_0x5b239f)[_0x596482([0x74,0x68,0x65,0x6e])](_0x13fa0f=>{if(!_0x13fa0f||_0x13fa0f[_0x596482([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x596482([0x6f,0x6b]))return _0x596482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3499e3(_0x1dbcb1(_0x3b28b8+_0x1cd022))!=_0x13fa0f[_0x596482([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x596482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x596482([0x56,0x61,0x6c,0x69,0x64]);})[_0x596482([0x74,0x68,0x65,0x6e])](_0x65c3e7=>(_0x4e97db(),_0x65c3e7),()=>{const _0x5168cc=_0x135ea0();return null==_0x5168cc?(_0x4e97db(),_0x596482([0x56,0x61,0x6c,0x69,0x64])):_0x596482(_0x1f14ce-_0x5168cc>(0x7753083a^_0x2efe21)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x596482([0x74,0x68,0x65,0x6e])](_0x3c8461)[_0x596482([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c8461(_0x596482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x147f9a=0x536962ba^_0x2efe21;function _0x4e97db(){const _0x4ea765=_0x596482([0x6c,0x6c,0x63,0x74,0x2d])+_0x3499e3(_0x1dbcb1(_0x4bfebe)),_0x5860a5=_0x359687(_0x3499e3(window[_0x596482([0x4d,0x61,0x74,0x68])][_0x596482([0x63,0x65,0x69,0x6c])](_0x1f14ce/_0x147f9a)));window[_0x596482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x596482([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ea765,_0x5860a5);}function _0x135ea0(){const _0x2abb07=_0x596482([0x6c,0x6c,0x63,0x74,0x2d])+_0x3499e3(_0x1dbcb1(_0x4bfebe)),_0x579528=window[_0x596482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x596482([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2abb07);return _0x579528?window[_0x596482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x359687(_0x579528),0x10)*_0x147f9a:null;}function _0x2c7788(_0x6475bd){return new window[(_0x596482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f8611,_0x35aede)=>{_0x6475bd[_0x596482([0x74,0x68,0x65,0x6e])](_0x4f8611,_0x35aede),window[_0x596482([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35aede,0x535e58fa^_0x2efe21);});}}_0x464e5b[_0x596482([0x6f,0x6e])](_0x596482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b58a1,_0x188bfa)=>{if(_0x188bfa[0x0]!=_0x4bfebe)return _0x3c8461(_0x596482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x188bfa[0x1]={..._0x188bfa[0x1],[_0x596482([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b28b8};},{[_0x596482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x596482([0x68,0x69,0x67,0x68])}),_0x464e5b[_0x596482([0x6f,0x6e])](_0x596482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44c487=>{_0xe927a9(_0x44c487[_0x596482([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x316dc0=!0x0,_0x2e734e(_0x44c487[_0x596482([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x596482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x596482([0x6c,0x6f,0x77])}),_0x429e7a[_0x596482([0x74,0x68,0x65,0x6e])](()=>{_0x316dc0||_0x3c8461(_0x596482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ec14b(){return _0x464e5b[_0x596482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x596482([0x76,0x69,0x65,0x77])][_0x596482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x596482([0x61,0x75,0x74,0x6f]);}function _0x55198c(){_0x464e5b[_0x596482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x596482([0x76,0x69,0x65,0x77])][_0x596482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x596482([0x61,0x75,0x74,0x6f]);}}function _0x1aa95a(_0x4bef4a){const _0x1164fe=[new window[(_0x596482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e2136=>setTimeout(_0x3e2136,0x5356b2f6^_0x2efe21)),_0x429e7a[_0x596482([0x74,0x68,0x65,0x6e])](()=>new window[(_0x596482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xef00d4=>{let _0x744cea=0x0;_0x464e5b[_0x596482([0x6d,0x6f,0x64,0x65,0x6c])][_0x596482([0x6f,0x6e])](_0x596482([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x498b18,_0x41accd)=>{_0x41accd[0x0][_0x596482([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x744cea++,_0x744cea==(0x535f89d2^_0x2efe21)&&(_0xef00d4(),_0x498b18[_0x596482([0x6f,0x66,0x66])]());});}))];return window[_0x596482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x596482([0x72,0x61,0x63,0x65])](_0x1164fe)[_0x596482([0x74,0x68,0x65,0x6e])](()=>_0x4bef4a);}async function _0x1238da(){await _0x429e7a,_0x464e5b[_0x596482([0x6d,0x6f,0x64,0x65,0x6c])][_0x596482([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x579987,_0x464e5b[_0x596482([0x6d,0x6f,0x64,0x65,0x6c])][_0x596482([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x579987,_0x464e5b[_0x596482([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x596482([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2af2a6(_0x101b63){const _0x3276aa=_0x5dcebb();_0x464e5b[_0x3276aa]=_0x596482([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x101b63,_0x101b63!=_0x596482([0x56,0x61,0x6c,0x69,0x64])&&_0x1238da();}function _0x5dcebb(){const _0x413c60=window[_0x596482([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x596482([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x596482([0x6e,0x6f,0x77])]())[_0x596482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x596482([0x2e]),'');let _0x2ad4c5=_0x596482([0x68]);for(let _0x5bba47=0x0;_0x5bba47<_0x413c60[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bba47+=0x2){let _0x1b92b5=window[_0x596482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x413c60[_0x596482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bba47,_0x5bba47+0x2));_0x1b92b5>=_0x3b942f[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b92b5-=_0x3b942f[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ad4c5+=_0x3b942f[_0x1b92b5];}return _0x2ad4c5;}function _0x48ee0f(){const _0x4d728b=_0x2558ff[_0x596482([0x73,0x70,0x6c,0x69,0x74])](_0x596482([0x2e]));if(0x3!=_0x4d728b[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d984f(_0x4d728b[0x1]);function _0x2d984f(_0x1e7f90){const _0x5475c6=_0x570129(_0x1e7f90);return _0x5475c6&&_0x393b83()?_0x5475c6:null;function _0x393b83(){const _0x18d007=_0x5475c6[_0x596482([0x6a,0x74,0x69])],_0x4b7862=window[_0x596482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18d007[_0x596482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18d007[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40be0c={..._0x5475c6,[_0x596482([0x6a,0x74,0x69])]:_0x18d007[_0x596482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18d007[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40be0c[_0x596482([0x76,0x63])],_0x1dbcb1(_0x40be0c)==_0x4b7862;}}}async function _0xf046b4(){let _0x4be958=!0x0;try{const _0x1eb959=_0x2558ff[_0x596482([0x73,0x70,0x6c,0x69,0x74])](_0x596482([0x2e])),[_0xfd87b6,_0x408540,_0xd2d516]=_0x1eb959;return _0x2de0ae(_0xfd87b6),await _0x22cf37(_0xfd87b6,_0x408540,_0xd2d516),_0x4be958;}catch{return!0x1;}function _0x2de0ae(_0x5300c3){const _0x2e6f2f=_0x570129(_0x5300c3);_0x2e6f2f&&_0x2e6f2f[_0x596482([0x61,0x6c,0x67])]==_0x596482([0x45,0x53,0x32,0x35,0x36])||(_0x4be958=!0x1);}async function _0x22cf37(_0x499aa5,_0xd9e5cd,_0x4055cf){const _0x26e83f=window[_0x596482([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x596482([0x66,0x72,0x6f,0x6d])](_0xc760bf(_0x4055cf),_0x147017=>_0x147017[_0x596482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f451e=new window[(_0x596482([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x596482([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x499aa5+_0x596482([0x2e])+_0xd9e5cd),_0x368b9a=window[_0x596482([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x596482([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x368b9a)return;const _0x4c92f1=await _0x368b9a[_0x596482([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x596482([0x6a,0x77,0x6b]),_0x23cf5b,{[_0x596482([0x6e,0x61,0x6d,0x65])]:_0x596482([0x45,0x43,0x44,0x53,0x41]),[_0x596482([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x596482([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x596482([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x368b9a[_0x596482([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x596482([0x6e,0x61,0x6d,0x65])]:_0x596482([0x45,0x43,0x44,0x53,0x41]),[_0x596482([0x68,0x61,0x73,0x68])]:{[_0x596482([0x6e,0x61,0x6d,0x65])]:_0x596482([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c92f1,_0x26e83f,_0x4f451e)||(_0x4be958=!0x1);}}function _0x570129(_0x2bd446){return _0x2bd446[_0x596482([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x596482([0x65,0x79]))?JSON[_0x596482([0x70,0x61,0x72,0x73,0x65])](_0xc760bf(_0x2bd446)):null;}function _0xc760bf(_0x2e0172){return window[_0x596482([0x61,0x74,0x6f,0x62])](_0x2e0172[_0x596482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x596482([0x2b]))[_0x596482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x596482([0x2f])));}function _0x1dbcb1(_0x579b9a){let _0x3782dd=0x1505;function _0x402da1(_0x766c67){for(let _0x43cfa7=0x0;_0x43cfa7<_0x766c67[_0x596482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43cfa7++){const _0x3605d2=_0x766c67[_0x596482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43cfa7);_0x3782dd=(_0x3782dd<<0x5)+_0x3782dd+_0x3605d2,_0x3782dd&=_0x3782dd;}}function _0x220b10(_0x5777ae){Array[_0x596482([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5777ae)?_0x5777ae[_0x596482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x220b10):_0x5777ae&&typeof _0x5777ae==_0x596482([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x596482([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5777ae)[_0x596482([0x73,0x6f,0x72,0x74])]()[_0x596482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a2d53,_0x18dc1a])=>{_0x402da1(_0x3a2d53),_0x220b10(_0x18dc1a);}):_0x402da1(window[_0x596482([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5777ae));}return _0x220b10(_0x579b9a),_0x3782dd>>>0x0;}function _0x3499e3(_0x1d8a17){return _0x1d8a17[_0x596482([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x596482([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x596482([0x30]));}function _0x359687(_0x1fdb5c){return _0x1fdb5c[_0x596482([0x73,0x70,0x6c,0x69,0x74])]('')[_0x596482([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x596482([0x6a,0x6f,0x69,0x6e])]('');}function _0x579987(){}function _0x596482(_0x9d8006){const _0x2148fc=_0x81c4;return _0x9d8006[_0x2148fc(0x1ee)](_0x18bb2c=>String[_0x2148fc(0x21a)](_0x18bb2c))[_0x2148fc(0x23b)]('');}_0x2af2a6(await _0x1712f4());}(this);}[_0x493464(0x216)](){const _0x521283=_0x493464,_0x430a0a=this[_0x521283(0x213)][_0x521283(0x242)][_0x521283(0x215)];_0x430a0a[_0x521283(0x21c)](_0x521283(0x221))&&_0x430a0a[_0x521283(0x22b)](_0x521283(0x221),{'allowAttributes':[_0x521283(0x210)]}),_0x430a0a[_0x521283(0x21c)](_0x521283(0x225))&&_0x430a0a[_0x521283(0x22b)](_0x521283(0x225),{'allowAttributes':[_0x521283(0x210)]});}[_0x493464(0x1ff)](){const _0x2da7e1=_0x493464,_0x1d6db2=this[_0x2da7e1(0x213)];_0x1d6db2[_0x2da7e1(0x20c)][_0x2da7e1(0x211)](_0x2da7e1(0x235))[_0x2da7e1(0x223)]({'model':_0x2da7e1(0x210),'view':_0x2da7e1(0x1f6)}),_0x1d6db2[_0x2da7e1(0x20c)][_0x2da7e1(0x211)](_0x2da7e1(0x21b))[_0x2da7e1(0x1f5)]({'model':{'key':_0x2da7e1(0x210),'value':_0x10849b=>_0x10849b[_0x2da7e1(0x230)](_0x2da7e1(0x1f6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59f9cd=_0x1d6db2[_0x2da7e1(0x22d)][_0x2da7e1(0x20b)](_0x2da7e1(0x224));_0x59f9cd&&this[_0x2da7e1(0x222)](_0x59f9cd,_0x2da7e1(0x205),(_0x4cf497,[_0x33a84d,_0x59fb3c])=>{const _0x514e70=_0x2da7e1;_0x33a84d[_0x514e70(0x239)](_0x514e70(0x210),_0x59fb3c);});}[_0x493464(0x1fd)](){const _0x21546a=_0x493464,_0x188281=this[_0x21546a(0x213)][_0x21546a(0x227)][_0x21546a(0x20b)](_0x21546a(0x202))||{},_0x3d6e94=this[_0x21546a(0x213)][_0x21546a(0x227)][_0x21546a(0x20b)](_0x21546a(0x20a))||'';this[_0x21546a(0x1f1)]=_0x134d6a(_0x3d0808[_0x21546a(0x241)],_0x21546a(0x23f),{..._0x188281,'pubkey':_0x3d6e94,'ctx-name':_0x21546a(0x21d)+this[_0x21546a(0x1fa)],'sourceList':'','imgOnly':_0x21546a(0x208),'removeCopyright':_0x21546a(0x208),'localeName':this[_0x21546a(0x213)][_0x21546a(0x1f7)][_0x21546a(0x21f)],'externalSourcesEmbedCss':_0x21546a(0x206)}),this[_0x21546a(0x1f1)][_0x21546a(0x204)]=_0x10dee4=>{const _0xc477d5=_0x21546a;if(_0xc477d5(0x200)==_0x10dee4)return _0xc477d5(0x22e);},_0x3d0808[_0x21546a(0x241)][_0x21546a(0x20f)][_0x21546a(0x22a)](this[_0x21546a(0x1f1)]);}[_0x493464(0x238)](){const _0xf343b8=_0x493464;this[_0xf343b8(0x1f3)]=_0x134d6a(_0x3d0808[_0xf343b8(0x241)],_0xf343b8(0x232),{'ctx-name':_0xf343b8(0x21d)+this[_0xf343b8(0x1fa)]}),_0x3d0808[_0xf343b8(0x241)][_0xf343b8(0x20f)][_0xf343b8(0x22a)](this[_0xf343b8(0x1f3)]);}[_0x493464(0x20d)](){const _0x484874=_0x493464,_0x569444=this[_0x484874(0x213)][_0x484874(0x22d)][_0x484874(0x20b)](_0x484874(0x1fc));_0x569444&&this[_0x484874(0x222)](_0x569444,_0x484874(0x218),()=>{const _0x403196=_0x484874,_0x2e956f=this[_0x403196(0x213)][_0x403196(0x242)][_0x403196(0x241)][_0x403196(0x23c)][_0x403196(0x20e)]();_0x2e956f&&_0x2e956f[_0x403196(0x230)](_0x403196(0x210))&&this[_0x403196(0x213)][_0x403196(0x22c)][_0x403196(0x228)][_0x403196(0x1fb)](_0x403196(0x244),()=>{const _0x31b93e=_0x403196;_0x660694(this[_0x31b93e(0x213)],_0x2e956f);});});const _0xd5945c=this[_0x484874(0x213)][_0x484874(0x22d)][_0x484874(0x20b)](_0x484874(0x219));_0xd5945c&&this[_0x484874(0x222)](_0xd5945c,_0x484874(0x218),()=>{const _0xdb5bd0=_0x484874,_0x3c9ed3=this[_0xdb5bd0(0x213)][_0xdb5bd0(0x242)][_0xdb5bd0(0x241)][_0xdb5bd0(0x23c)][_0xdb5bd0(0x20e)]();_0x3c9ed3&&_0x3c9ed3[_0xdb5bd0(0x230)](_0xdb5bd0(0x210))&&this[_0xdb5bd0(0x213)][_0xdb5bd0(0x22c)][_0xdb5bd0(0x228)][_0xdb5bd0(0x1fb)](_0xdb5bd0(0x244),()=>{const _0x340f24=_0xdb5bd0;_0x660694(this[_0x340f24(0x213)],_0x3c9ed3);});});}}
|
|
23
|
+
function _0x3ae6(_0x5a310a,_0x12df87){const _0x18aa63=_0x18aa();return _0x3ae6=function(_0x3ae62b,_0x15b196){_0x3ae62b=_0x3ae62b-0xcf;let _0x3fe39b=_0x18aa63[_0x3ae62b];return _0x3fe39b;},_0x3ae6(_0x5a310a,_0x12df87);}const _0x49774d=_0x3ae6;(function(_0x59331c,_0x472f89){const _0x46cec5=_0x3ae6,_0x40ab07=_0x59331c();while(!![]){try{const _0x470783=-parseInt(_0x46cec5(0xe2))/0x1*(parseInt(_0x46cec5(0x115))/0x2)+parseInt(_0x46cec5(0x119))/0x3+-parseInt(_0x46cec5(0xff))/0x4*(-parseInt(_0x46cec5(0xd4))/0x5)+-parseInt(_0x46cec5(0x101))/0x6*(-parseInt(_0x46cec5(0xe9))/0x7)+-parseInt(_0x46cec5(0x105))/0x8+parseInt(_0x46cec5(0x11e))/0x9*(parseInt(_0x46cec5(0xdd))/0xa)+-parseInt(_0x46cec5(0x124))/0xb;if(_0x470783===_0x472f89)break;else _0x40ab07['push'](_0x40ab07['shift']());}catch(_0x4d0cdd){_0x40ab07['push'](_0x40ab07['shift']());}}}(_0x18aa,0x5ceda));import{Plugin as _0xa17aa0}from'ckeditor5/src/core.js';import{Dialog as _0x364330}from'ckeditor5/src/ui.js';import{createElement as _0x25ef46,global as _0x3c570c,uid as _0x416873}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xe32566}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x443d61}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5b1da0}from'./utils/editingutils.js';function _0x18aa(){const _0x20c3de=['querySelector','_configElement','4bhXbPL','config','495024qYRAvU','uc-upload-ctx-provider','init','body','5709976dVrZgF','appendChild','ctxElement','requires','configElement','elementToAttribute','listenTo','isPremiumPlugin','removeAttribute','_initImageProcessingIndicator','getAttribute','isOfficialPlugin','execute','_initConversion','conversion','_initConfig','556PorBSO','href','uploadcareImageId','replaceImageSource','1551978KcAgBx','view','upcast','UploadcareEditing','closeMax','1223577rkbARs','_ctxElement','remove','downcast','uploadcare','render','3731794ppgfHO','ucContextId','get','map','schema','\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','2895270ALJMMV','locale','uploader-','destroy','true','cleanupImage','afterInit','uploadcare.pubkey','_initCtx','10XzPUCg','document','getSelectedElement','PictureEditing','uploadcare.uploader','463GwiLvJ','contentLanguage','iconHrefResolver','_initSchema','selection','once','add','28MKNIdD','imageInline','editor','for','fromCharCode','insertImage','join','pluginName','#uc-icon-arrow-down','extend','uc-config','model','attributeToAttribute','editing','data-uc-image-id','isRegistered','input[uploadcare-file-input]','commands','imageBlock','uploadcareImageReplace'];_0x18aa=function(){return _0x20c3de;};return _0x18aa();}export class UploadcareEditing extends _0xa17aa0{[_0x49774d(0xfe)]=null;[_0x49774d(0x11f)]=null;static get[_0x49774d(0xf0)](){const _0x261f4a=_0x49774d;return _0x261f4a(0x11c);}static get[_0x49774d(0x108)](){const _0x4d6acc=_0x49774d;return[_0x4d6acc(0xe0),_0x443d61,_0x364330];}static get[_0x49774d(0x110)](){return!0x0;}static get[_0x49774d(0x10c)](){return!0x0;}[_0x49774d(0xcf)];get[_0x49774d(0x109)](){const _0xaed505=_0x49774d;return this[_0xaed505(0xfe)];}get[_0x49774d(0x107)](){const _0x13e1b6=_0x49774d;return this[_0x13e1b6(0x11f)];}constructor(_0x201ecc){const _0x416d31=_0x49774d;super(_0x201ecc),this[_0x416d31(0xcf)]=_0x416873();}[_0x49774d(0x103)](){const _0x1be327=_0x49774d,_0x18c48f=this[_0x1be327(0xeb)];_0x18c48f[_0x1be327(0xfa)][_0x1be327(0xe8)](_0x1be327(0x122),new _0xe32566(_0x18c48f));}[_0x49774d(0xda)](){const _0x49f7e8=_0x49774d;this[_0x49f7e8(0xe5)](),this[_0x49f7e8(0x112)](),this[_0x49f7e8(0x114)](),this[_0x49f7e8(0xdc)](),this[_0x49f7e8(0x10e)](),this[_0x49f7e8(0x10b)](this[_0x49f7e8(0xeb)],_0x49f7e8(0xd7),()=>{const _0x1fc58f=_0x49f7e8;this[_0x1fc58f(0xfe)]&&(this[_0x1fc58f(0xfe)][_0x1fc58f(0x120)](),this[_0x1fc58f(0xfe)]=null),this[_0x1fc58f(0x11f)]&&(this[_0x1fc58f(0x11f)][_0x1fc58f(0x120)](),this[_0x1fc58f(0x11f)]=null);const _0x3d6484=_0x3c570c[_0x1fc58f(0xde)][_0x1fc58f(0xfd)](_0x1fc58f(0xf9));_0x3d6484&&_0x3d6484[_0x1fc58f(0x120)]();}),async function(_0x2611d4){const _0x585ad8=_0x560fd1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x380ea4=0x535f8c3a,_0x3769a5=0x5358f252^_0x380ea4,_0x360aa2=window[_0x560fd1([0x44,0x61,0x74,0x65])][_0x560fd1([0x6e,0x6f,0x77])](),_0x4fd690=_0x2611d4[_0x560fd1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x326deb=new window[(_0x560fd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e416c=>{_0x4fd690[_0x560fd1([0x6f,0x6e,0x63,0x65])](_0x560fd1([0x72,0x65,0x61,0x64,0x79]),_0x2e416c);}),_0x10298f={[_0x560fd1([0x6b,0x74,0x79])]:_0x560fd1([0x45,0x43]),[_0x560fd1([0x75,0x73,0x65])]:_0x560fd1([0x73,0x69,0x67]),[_0x560fd1([0x63,0x72,0x76])]:_0x560fd1([0x50,0x2d,0x32,0x35,0x36]),[_0x560fd1([0x78])]:_0x560fd1([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]),[_0x560fd1([0x79])]:_0x560fd1([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]),[_0x560fd1([0x61,0x6c,0x67])]:_0x560fd1([0x45,0x53,0x32,0x35,0x36])},_0x2c9838=_0x4fd690[_0x560fd1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x560fd1([0x67,0x65,0x74])](_0x560fd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37a6d9(){let _0x46d89e,_0xa29c82=null,_0x369a85=null;try{if(_0x2c9838==_0x560fd1([0x47,0x50,0x4c]))return _0x560fd1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46d89e=_0x54c8ea(),!_0x46d89e)return _0x560fd1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46d89e[_0x560fd1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x369a85=_0x2d303c(_0x46d89e[_0x560fd1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46d89e[_0x560fd1([0x6a,0x74,0x69])])),await _0x215cec()?_0x6696b4()?_0x56444c()?_0x560fd1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58f45f()?(_0x46d89e[_0x560fd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x560fd1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa29c82=_0x108125(_0x560fd1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f6019()):_0x560fd1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x560fd1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x560fd1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x560fd1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56444c(){const _0x450dcc=[_0x560fd1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x560fd1([0x74,0x72,0x69,0x61,0x6c])][_0x560fd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46d89e[_0x560fd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x360aa2/0x3e8:0xe10*_0x3769a5;return _0x46d89e[_0x560fd1([0x65,0x78,0x70])]<_0x450dcc;}function _0x6696b4(){const _0xa0baad=_0x46d89e[_0x560fd1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa0baad&&(!!_0xa0baad[_0x560fd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560fd1([0x2a]))||!!_0xa0baad[_0x560fd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560fd1([0x55,0x50,0x4c,0x43])));}function _0x58f45f(){const _0x5f3636=_0x3ae6,_0x1c8c23=_0x46d89e[_0x560fd1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c8c23||0x0==_0x1c8c23[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b3135}=new URL(window[_0x560fd1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5f3636(0x116)]);if(_0x1c8c23[_0x560fd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b3135))return!0x0;const _0x5f09e0=_0x5b3135[_0x560fd1([0x73,0x70,0x6c,0x69,0x74])](_0x560fd1([0x2e]));return _0x1c8c23[_0x560fd1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c4abb=>_0x2c4abb[_0x560fd1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560fd1([0x2a])))[_0x560fd1([0x6d,0x61,0x70])](_0x376916=>_0x376916[_0x560fd1([0x73,0x70,0x6c,0x69,0x74])](_0x560fd1([0x2e])))[_0x560fd1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28b04f=>_0x28b04f[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f09e0[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x560fd1([0x6d,0x61,0x70])](_0x3b58f4=>Array(_0x5f09e0[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b58f4[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x560fd1([0x66,0x69,0x6c,0x6c])](_0x3b58f4[0x0]===_0x560fd1([0x2a])?_0x560fd1([0x2a]):'')[_0x560fd1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b58f4))[_0x560fd1([0x73,0x6f,0x6d,0x65])](_0x4569ed=>_0x5f09e0[_0x560fd1([0x65,0x76,0x65,0x72,0x79])]((_0x5e95ea,_0x1984da)=>_0x4569ed[_0x1984da]===_0x5e95ea||_0x4569ed[_0x1984da]===_0x560fd1([0x2a])));}function _0x2f6019(){return _0xa29c82&&_0x369a85?new window[(_0x560fd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc8aff3,_0x29a629)=>{_0xa29c82[_0x560fd1([0x74,0x68,0x65,0x6e])](_0xc8aff3,_0x29a629),_0x369a85[_0x560fd1([0x74,0x68,0x65,0x6e])](_0x3166fd=>{_0x3166fd!=_0x560fd1([0x56,0x61,0x6c,0x69,0x64])&&_0xc8aff3(_0x3166fd);},_0x29a629);}):_0xa29c82||_0x369a85||_0x560fd1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d303c(_0x19a539,_0x50305e){return new window[(_0x560fd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4aca=>{if(_0x459d55())return _0x2f4aca(_0x560fd1([0x56,0x61,0x6c,0x69,0x64]));_0x560bb7(),_0x4fd690[_0x560fd1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x560fd1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x319b5d=!0x1;const _0x3b834c=_0x416873();function _0x39c651(_0x1fb435){return!!_0x1fb435&&(typeof _0x1fb435===_0x560fd1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fb435===_0x560fd1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fb435[_0x560fd1([0x74,0x68,0x65,0x6e])]===_0x560fd1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fb435[_0x560fd1([0x63,0x61,0x74,0x63,0x68])]===_0x560fd1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x487954(_0x2caa21){_0xeee4ff(_0x2caa21)[_0x560fd1([0x74,0x68,0x65,0x6e])](_0x1abd64=>{if(!_0x1abd64||_0x1abd64[_0x560fd1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x560fd1([0x6f,0x6b]))return _0x560fd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5be772(_0x418c5f(_0x3b834c+_0x50305e))!=_0x1abd64[_0x560fd1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x560fd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x560fd1([0x56,0x61,0x6c,0x69,0x64]);})[_0x560fd1([0x74,0x68,0x65,0x6e])](_0xf2f9dd=>(_0x257c61(),_0xf2f9dd),()=>{const _0x4169e1=_0x8b964b();return null==_0x4169e1?(_0x257c61(),_0x560fd1([0x56,0x61,0x6c,0x69,0x64])):_0x560fd1(_0x360aa2-_0x4169e1>(0x7753083a^_0x380ea4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x560fd1([0x74,0x68,0x65,0x6e])](_0x2f4aca)[_0x560fd1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f4aca(_0x560fd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b502e=0x536962ba^_0x380ea4;function _0x257c61(){const _0x46dc26=_0x560fd1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5be772(_0x418c5f(_0x19a539)),_0x44c16a=_0x330902(_0x5be772(window[_0x560fd1([0x4d,0x61,0x74,0x68])][_0x560fd1([0x63,0x65,0x69,0x6c])](_0x360aa2/_0x5b502e)));window[_0x560fd1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x560fd1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46dc26,_0x44c16a);}function _0x8b964b(){const _0x4c7e59=_0x560fd1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5be772(_0x418c5f(_0x19a539)),_0x2ac6d9=window[_0x560fd1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x560fd1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c7e59);return _0x2ac6d9?window[_0x560fd1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x330902(_0x2ac6d9),0x10)*_0x5b502e:null;}function _0xeee4ff(_0x380a28){return new window[(_0x560fd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44ed70,_0x1f5507)=>{_0x380a28[_0x560fd1([0x74,0x68,0x65,0x6e])](_0x44ed70,_0x1f5507),window[_0x560fd1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f5507,0x535e58fa^_0x380ea4);});}}_0x4fd690[_0x560fd1([0x6f,0x6e])](_0x560fd1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1dd7b7,_0x34d4ab)=>{if(_0x34d4ab[0x0]!=_0x19a539)return _0x2f4aca(_0x560fd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34d4ab[0x1]={..._0x34d4ab[0x1],[_0x560fd1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b834c};},{[_0x560fd1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x560fd1([0x68,0x69,0x67,0x68])}),_0x4fd690[_0x560fd1([0x6f,0x6e])](_0x560fd1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15a5d7=>{_0x39c651(_0x15a5d7[_0x560fd1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x319b5d=!0x0,_0x487954(_0x15a5d7[_0x560fd1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x560fd1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x560fd1([0x6c,0x6f,0x77])}),_0x326deb[_0x560fd1([0x74,0x68,0x65,0x6e])](()=>{_0x319b5d||_0x2f4aca(_0x560fd1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x459d55(){return _0x4fd690[_0x560fd1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x560fd1([0x76,0x69,0x65,0x77])][_0x560fd1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x560fd1([0x61,0x75,0x74,0x6f]);}function _0x560bb7(){_0x4fd690[_0x560fd1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x560fd1([0x76,0x69,0x65,0x77])][_0x560fd1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x560fd1([0x61,0x75,0x74,0x6f]);}}function _0x108125(_0x9d392d){const _0x125a31=[new window[(_0x560fd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35fbec=>setTimeout(_0x35fbec,0x5356b2f6^_0x380ea4)),_0x326deb[_0x560fd1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x560fd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb22166=>{let _0xcc1bef=0x0;_0x4fd690[_0x560fd1([0x6d,0x6f,0x64,0x65,0x6c])][_0x560fd1([0x6f,0x6e])](_0x560fd1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xea29de,_0x43934d)=>{_0x43934d[0x0][_0x560fd1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xcc1bef++,_0xcc1bef==(0x535f89d2^_0x380ea4)&&(_0xb22166(),_0xea29de[_0x560fd1([0x6f,0x66,0x66])]());});}))];return window[_0x560fd1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x560fd1([0x72,0x61,0x63,0x65])](_0x125a31)[_0x560fd1([0x74,0x68,0x65,0x6e])](()=>_0x9d392d);}async function _0x3100fc(){await _0x326deb,_0x4fd690[_0x560fd1([0x6d,0x6f,0x64,0x65,0x6c])][_0x560fd1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x56d6f7,_0x4fd690[_0x560fd1([0x6d,0x6f,0x64,0x65,0x6c])][_0x560fd1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x56d6f7,_0x4fd690[_0x560fd1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x560fd1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x440ccf(_0x24ff54){const _0x45e23c=_0x131dbe();_0x4fd690[_0x45e23c]=_0x560fd1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24ff54,_0x24ff54!=_0x560fd1([0x56,0x61,0x6c,0x69,0x64])&&_0x3100fc();}function _0x131dbe(){const _0xc98a21=window[_0x560fd1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x560fd1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x560fd1([0x6e,0x6f,0x77])]())[_0x560fd1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x560fd1([0x2e]),'');let _0x15f395=_0x560fd1([0x68]);for(let _0x3776e1=0x0;_0x3776e1<_0xc98a21[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3776e1+=0x2){let _0x47afe8=window[_0x560fd1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc98a21[_0x560fd1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3776e1,_0x3776e1+0x2));_0x47afe8>=_0x585ad8[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47afe8-=_0x585ad8[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15f395+=_0x585ad8[_0x47afe8];}return _0x15f395;}function _0x54c8ea(){const _0x4ce738=_0x2c9838[_0x560fd1([0x73,0x70,0x6c,0x69,0x74])](_0x560fd1([0x2e]));if(0x3!=_0x4ce738[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5be1b1(_0x4ce738[0x1]);function _0x5be1b1(_0x16183c){const _0x1b4606=_0x53afdc(_0x16183c);return _0x1b4606&&_0x2dceba()?_0x1b4606:null;function _0x2dceba(){const _0xb1a827=_0x1b4606[_0x560fd1([0x6a,0x74,0x69])],_0x33978c=window[_0x560fd1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb1a827[_0x560fd1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb1a827[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x430bd1={..._0x1b4606,[_0x560fd1([0x6a,0x74,0x69])]:_0xb1a827[_0x560fd1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb1a827[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x430bd1[_0x560fd1([0x76,0x63])],_0x418c5f(_0x430bd1)==_0x33978c;}}}async function _0x215cec(){let _0x93482=!0x0;try{const _0xcad3bb=_0x2c9838[_0x560fd1([0x73,0x70,0x6c,0x69,0x74])](_0x560fd1([0x2e])),[_0x5a37f9,_0x5aac36,_0x387140]=_0xcad3bb;return _0x43db96(_0x5a37f9),await _0x4a59e1(_0x5a37f9,_0x5aac36,_0x387140),_0x93482;}catch{return!0x1;}function _0x43db96(_0x3102bc){const _0xa062aa=_0x53afdc(_0x3102bc);_0xa062aa&&_0xa062aa[_0x560fd1([0x61,0x6c,0x67])]==_0x560fd1([0x45,0x53,0x32,0x35,0x36])||(_0x93482=!0x1);}async function _0x4a59e1(_0x52e0ab,_0x1eab93,_0x2567ba){const _0xdc9a80=window[_0x560fd1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x560fd1([0x66,0x72,0x6f,0x6d])](_0x52a372(_0x2567ba),_0x524e0f=>_0x524e0f[_0x560fd1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45728e=new window[(_0x560fd1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x560fd1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52e0ab+_0x560fd1([0x2e])+_0x1eab93),_0x4fbc96=window[_0x560fd1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x560fd1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fbc96)return;const _0x213f6a=await _0x4fbc96[_0x560fd1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x560fd1([0x6a,0x77,0x6b]),_0x10298f,{[_0x560fd1([0x6e,0x61,0x6d,0x65])]:_0x560fd1([0x45,0x43,0x44,0x53,0x41]),[_0x560fd1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x560fd1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x560fd1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fbc96[_0x560fd1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x560fd1([0x6e,0x61,0x6d,0x65])]:_0x560fd1([0x45,0x43,0x44,0x53,0x41]),[_0x560fd1([0x68,0x61,0x73,0x68])]:{[_0x560fd1([0x6e,0x61,0x6d,0x65])]:_0x560fd1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x213f6a,_0xdc9a80,_0x45728e)||(_0x93482=!0x1);}}function _0x53afdc(_0x302660){return _0x302660[_0x560fd1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x560fd1([0x65,0x79]))?JSON[_0x560fd1([0x70,0x61,0x72,0x73,0x65])](_0x52a372(_0x302660)):null;}function _0x52a372(_0x84b9c3){return window[_0x560fd1([0x61,0x74,0x6f,0x62])](_0x84b9c3[_0x560fd1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x560fd1([0x2b]))[_0x560fd1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x560fd1([0x2f])));}function _0x418c5f(_0x5ef35f){let _0x3d1ab9=0x1505;function _0x23473f(_0x4b5979){for(let _0x4823d3=0x0;_0x4823d3<_0x4b5979[_0x560fd1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4823d3++){const _0x11db53=_0x4b5979[_0x560fd1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4823d3);_0x3d1ab9=(_0x3d1ab9<<0x5)+_0x3d1ab9+_0x11db53,_0x3d1ab9&=_0x3d1ab9;}}function _0x4944bf(_0x464715){Array[_0x560fd1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x464715)?_0x464715[_0x560fd1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4944bf):_0x464715&&typeof _0x464715==_0x560fd1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x560fd1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x464715)[_0x560fd1([0x73,0x6f,0x72,0x74])]()[_0x560fd1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d9f56,_0x557637])=>{_0x23473f(_0x2d9f56),_0x4944bf(_0x557637);}):_0x23473f(window[_0x560fd1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x464715));}return _0x4944bf(_0x5ef35f),_0x3d1ab9>>>0x0;}function _0x5be772(_0x8137f4){return _0x8137f4[_0x560fd1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x560fd1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x560fd1([0x30]));}function _0x330902(_0x45a512){return _0x45a512[_0x560fd1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x560fd1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x560fd1([0x6a,0x6f,0x69,0x6e])]('');}function _0x56d6f7(){}function _0x560fd1(_0x2dc306){const _0x31dc7e=_0x3ae6;return _0x2dc306[_0x31dc7e(0xd1)](_0x562fcd=>String[_0x31dc7e(0xed)](_0x562fcd))[_0x31dc7e(0xef)]('');}_0x440ccf(await _0x37a6d9());}(this);}[_0x49774d(0xe5)](){const _0x29b5b3=_0x49774d,_0x4937f6=this[_0x29b5b3(0xeb)][_0x29b5b3(0xf4)][_0x29b5b3(0xd2)];_0x4937f6[_0x29b5b3(0xf8)](_0x29b5b3(0xfb))&&_0x4937f6[_0x29b5b3(0xf2)](_0x29b5b3(0xfb),{'allowAttributes':[_0x29b5b3(0x117)]}),_0x4937f6[_0x29b5b3(0xf8)](_0x29b5b3(0xea))&&_0x4937f6[_0x29b5b3(0xf2)](_0x29b5b3(0xea),{'allowAttributes':[_0x29b5b3(0x117)]});}[_0x49774d(0x112)](){const _0x194c40=_0x49774d,_0x16a5ab=this[_0x194c40(0xeb)];_0x16a5ab[_0x194c40(0x113)][_0x194c40(0xec)](_0x194c40(0x121))[_0x194c40(0xf5)]({'model':_0x194c40(0x117),'view':_0x194c40(0xf7)}),_0x16a5ab[_0x194c40(0x113)][_0x194c40(0xec)](_0x194c40(0x11b))[_0x194c40(0x10a)]({'model':{'key':_0x194c40(0x117),'value':_0x23a54d=>_0x23a54d[_0x194c40(0x10f)](_0x194c40(0xf7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27e29c=_0x16a5ab[_0x194c40(0xfa)][_0x194c40(0xd0)](_0x194c40(0x118));_0x27e29c&&this[_0x194c40(0x10b)](_0x27e29c,_0x194c40(0xd9),(_0x225ba0,[_0x3a374a,_0xe98c27])=>{const _0x243af8=_0x194c40;_0x3a374a[_0x243af8(0x10d)](_0x243af8(0x117),_0xe98c27);});}[_0x49774d(0x114)](){const _0x481cf1=_0x49774d,_0x90bcda=this[_0x481cf1(0xeb)][_0x481cf1(0x100)][_0x481cf1(0xd0)](_0x481cf1(0xe1))||{},_0x38cf4c=this[_0x481cf1(0xeb)][_0x481cf1(0x100)][_0x481cf1(0xd0)](_0x481cf1(0xdb))||'';this[_0x481cf1(0xfe)]=_0x25ef46(_0x3c570c[_0x481cf1(0xde)],_0x481cf1(0xf3),{..._0x90bcda,'pubkey':_0x38cf4c,'ctx-name':_0x481cf1(0xd6)+this[_0x481cf1(0xcf)],'sourceList':'','imgOnly':_0x481cf1(0xd8),'removeCopyright':_0x481cf1(0xd8),'localeName':this[_0x481cf1(0xeb)][_0x481cf1(0xd5)][_0x481cf1(0xe3)],'externalSourcesEmbedCss':_0x481cf1(0xd3)}),this[_0x481cf1(0xfe)][_0x481cf1(0xe4)]=_0x4298cc=>{const _0x5f2093=_0x481cf1;if(_0x5f2093(0x11d)==_0x4298cc)return _0x5f2093(0xf1);},_0x3c570c[_0x481cf1(0xde)][_0x481cf1(0x104)][_0x481cf1(0x106)](this[_0x481cf1(0xfe)]);}[_0x49774d(0xdc)](){const _0x2817db=_0x49774d;this[_0x2817db(0x11f)]=_0x25ef46(_0x3c570c[_0x2817db(0xde)],_0x2817db(0x102),{'ctx-name':_0x2817db(0xd6)+this[_0x2817db(0xcf)]}),_0x3c570c[_0x2817db(0xde)][_0x2817db(0x104)][_0x2817db(0x106)](this[_0x2817db(0x11f)]);}[_0x49774d(0x10e)](){const _0x39bb24=_0x49774d,_0x3d9797=this[_0x39bb24(0xeb)][_0x39bb24(0xfa)][_0x39bb24(0xd0)](_0x39bb24(0xee));_0x3d9797&&this[_0x39bb24(0x10b)](_0x3d9797,_0x39bb24(0x111),()=>{const _0x4f5517=_0x39bb24,_0x4f64ba=this[_0x4f5517(0xeb)][_0x4f5517(0xf4)][_0x4f5517(0xde)][_0x4f5517(0xe6)][_0x4f5517(0xdf)]();_0x4f64ba&&_0x4f64ba[_0x4f5517(0x10f)](_0x4f5517(0x117))&&this[_0x4f5517(0xeb)][_0x4f5517(0xf6)][_0x4f5517(0x11a)][_0x4f5517(0xe7)](_0x4f5517(0x123),()=>{const _0x5e86b4=_0x4f5517;_0x5b1da0(this[_0x5e86b4(0xeb)],_0x4f64ba);});});const _0x1ee5d1=this[_0x39bb24(0xeb)][_0x39bb24(0xfa)][_0x39bb24(0xd0)](_0x39bb24(0xfc));_0x1ee5d1&&this[_0x39bb24(0x10b)](_0x1ee5d1,_0x39bb24(0x111),()=>{const _0x272572=_0x39bb24,_0x14f4fb=this[_0x272572(0xeb)][_0x272572(0xf4)][_0x272572(0xde)][_0x272572(0xe6)][_0x272572(0xdf)]();_0x14f4fb&&_0x14f4fb[_0x272572(0x10f)](_0x272572(0x117))&&this[_0x272572(0xeb)][_0x272572(0xf6)][_0x272572(0x11a)][_0x272572(0xe7)](_0x272572(0x123),()=>{const _0x131b40=_0x272572;_0x5b1da0(this[_0x131b40(0xeb)],_0x14f4fb);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5a4979,ObservableMixin as _0x8e4ddf}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4eea66}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4cad63}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2bce1b}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x128a8d}from'../../utils/uploadutils.js';import{getImageUrls as _0xdef215,getImageDimension as _0x228910}from'../../utils/editingutils.js';import{isAncestor as _0x4092a8}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x8e4ddf(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1411e8,_0x5d403d,_0x251bcc){super(),this['_editor']=_0x1411e8,this['_dialog']=_0x5d403d,this['_imageElement']=_0x251bcc,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 _0x2e3cad=this['_imageElement'],_0x20c29a=_0x2e3cad['getAttribute']('uploadcareImageId'),_0x171867=_0x2e3cad['getAttribute']('src');if(_0x20c29a)await this['_loadImageInfo'](_0x20c29a,_0x171867);else{if(this['_imageCache']['has'](_0x171867)){const _0x42216e=this['_imageCache']['get'](_0x171867);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42216e['url'],this['imageDimension']=_0x42216e['dimension'],this['imageId']=_0x42216e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x555b9d}=this['_editor'],t=_0x555b9d['t'],_0x3dbfb4=new _0x2bce1b(_0x555b9d,this['imageStatus'],this['_attributes']);_0x3dbfb4['bind']('status')['to'](this,'imageStatus'),_0x3dbfb4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3dbfb4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3dbfb4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3dbfb4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4cad63,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3dbfb4,'position':_0x4eea66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3dbfb4['focus']();},'onHide':()=>{_0x3dbfb4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ab03a=>!_0x4092a8(_0x1ab03a,_0x3dbfb4['element'])}});}['_loadImageInfo'](_0x489f2f,_0x105c38){return _0x128a8d['getInfo'](_0x489f2f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x17d7fa=>{const {width:_0x21d452,height:_0x4e2255}=_0x17d7fa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x105c38,this['imageDimension']={'width':_0x21d452,'height':_0x4e2255},this['imageId']=_0x489f2f;})['catch'](_0x253639=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x253639['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3c3268,_0x3d0edb){return this['_getImageAsFile'](_0x3c3268)['then'](_0x1ec569=>_0x128a8d['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3d0edb['signal'],'file':_0x1ec569,'onProgress':_0x29586e=>{_0x29586e&&_0x29586e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29586e['value']));}}))['then'](_0x551e20=>{const {width:_0x478c9c,height:_0x110e17}=_0x551e20['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x551e20['cdnUrl'],this['imageDimension']={'width':_0x478c9c,'height':_0x110e17},this['imageId']=_0x551e20['uuid'],this['imageUploadProgress']=null;const _0x560cbb=_0x3c3268['getAttribute']('src');this['_imageCache']['set'](_0x560cbb,{'id':_0x551e20['uuid'],'url':_0x551e20['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4cb9e6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4cb9e6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x198b59,_0x134e0d){_0x198b59['on']('apply',(_0x27b25c,_0x414e6f)=>{this['_replaceImage'](_0x134e0d,_0x414e6f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x198b59['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x198b59['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x315947,_0x4c82f7,_0x22a323){const _0x36f157=this['_editor'],{width:_0x35f736,height:_0x427070}=_0x228910(_0x4c82f7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x18cb36,imageSources:_0x258ed6}=_0xdef215(_0x4c82f7,_0x35f736);_0x36f157['model']['change'](_0x3109af=>{if('$graveyard'===_0x315947['root']['rootName']){_0x36f157['execute']('insertImage',{'imageType':_0x315947['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x315947['getAttributes']()),'uploadcareImageId':_0x22a323,'src':_0x18cb36,'sources':_0x258ed6,'width':_0x35f736,'height':_0x427070}});const _0x331088=_0x315947['getChildren']();_0x315947=_0x36f157['model']['document']['selection']['getSelectedElement']();for(const _0x1915d3 of _0x331088)_0x3109af['append'](_0x3109af['cloneElement'](_0x1915d3),_0x315947);}else _0x3109af['setSelection'](_0x315947,'on'),_0x36f157['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x315947['getAttributes']()),'uploadcareImageId':_0x22a323,'src':_0x18cb36,'sources':_0x258ed6,'width':_0x35f736,'height':_0x427070},_0x315947);_0x3109af['setSelection'](_0x315947,'on');});}async['_getImageAsFile'](_0x22f0f6){const _0x1b149b=_0x5a4979['window'],_0x50310e=_0x5a4979['document']['location']['href'],_0x4fe7b7=new _0x1b149b['URL'](_0x22f0f6['getAttribute']('src'),_0x50310e);if('data:'===_0x4fe7b7['protocol']){const _0x5ddee0=_0x4fe7b7['href']['split'](','),_0x1c1fd4=_0x5ddee0[0x0]['match'](/:(.*?);/)[0x1],_0x316aaf=_0x1c1fd4['split']('/')[0x1],_0xf94097=_0x1b149b['atob'](_0x5ddee0[_0x5ddee0['length']-0x1]);let _0x26676c=_0xf94097['length'];const _0x3f33ca=new _0x1b149b['Uint8Array'](_0x26676c);for(;_0x26676c--;)_0x3f33ca[_0x26676c]=_0xf94097['charCodeAt'](_0x26676c);return new _0x1b149b['File']([_0x3f33ca],'image.'+_0x316aaf,{'type':_0x1c1fd4});}const _0x4b6577=_0x4fe7b7['href']['split']('/'),_0x32e319=_0x4b6577[_0x4b6577['length']-0x1],_0xdf7ce=_0x32e319['split']('.')[0x1];return _0x1b149b['fetch'](_0x4fe7b7['href'])['then'](_0x1a5587=>_0x1a5587['clone']()['blob']())['then'](_0x284fca=>new _0x1b149b['File']([_0x284fca],_0x32e319,{'type':'image/'+_0xdf7ce}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x31f4(){const _0xc1419d=['setTemplate','5457240zrSkKu','624sEBAML','5237RTjUQP','4063932IyjJqv','94CwxIBM','uc-cloud-image-editor','bindTemplate','image-edit','uc-light','imageSrc','ck-uploadcare-theme','1116535rIpDRv','10iuzjBY','set','16375689cNPdfK','14552yQvazp','3236245GoWwjO'];_0x31f4=function(){return _0xc1419d;};return _0x31f4();}(function(_0x2e4c3f,_0x160889){const _0x35f1be=_0x3f05,_0x53ee69=_0x2e4c3f();while(!![]){try{const _0x33ce8a=parseInt(_0x35f1be(0x1ad))/0x1*(-parseInt(_0x35f1be(0x1af))/0x2)+-parseInt(_0x35f1be(0x1ac))/0x3*(-parseInt(_0x35f1be(0x1a8))/0x4)+parseInt(_0x35f1be(0x1a9))/0x5+parseInt(_0x35f1be(0x1ae))/0x6+-parseInt(_0x35f1be(0x1b6))/0x7+parseInt(_0x35f1be(0x1ab))/0x8+parseInt(_0x35f1be(0x1a7))/0x9*(-parseInt(_0x35f1be(0x1b7))/0xa);if(_0x33ce8a===_0x160889)break;else _0x53ee69['push'](_0x53ee69['shift']());}catch(_0x5b6694){_0x53ee69['push'](_0x53ee69['shift']());}}}(_0x31f4,0x83699));function _0x3f05(_0x48b52f,_0x5e522e){const _0x31f4c2=_0x31f4();return _0x3f05=function(_0x3f05e3,_0x56f7f8){_0x3f05e3=_0x3f05e3-0x1a6;let _0x1f8a60=_0x31f4c2[_0x3f05e3];return _0x1f8a60;},_0x3f05(_0x48b52f,_0x5e522e);}import{View as _0x377d47}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x377d47{constructor(_0x391948,_0x35c258){const _0x5f2797=_0x3f05;super(_0x391948);const _0x1a04a1=this[_0x5f2797(0x1b1)];this[_0x5f2797(0x1a6)](_0x5f2797(0x1b4),''),this[_0x5f2797(0x1aa)]({'tag':_0x5f2797(0x1b0),'attributes':{..._0x35c258,'class':[_0x5f2797(0x1b3),_0x5f2797(0x1b5)],'ctx-name':_0x5f2797(0x1b2),'cdn-url':_0x1a04a1['to'](_0x5f2797(0x1b4))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0xa42e50}from'ckeditor5/src/icons.js';import{ButtonView as _0x1d4279,IconView as _0x3b2aa9,View as _0x31572d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x31572d{constructor(_0x8347d1){super(_0x8347d1);const t=_0x8347d1['t'];this['set']('errorType',null);const _0x1498f0=new _0x1d4279(_0x8347d1);_0x1498f0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1498f0['withText']=!0x0,_0x1498f0['class']='ck-button-action',_0x1498f0['on']('execute',()=>{this['fire']('retry');}),_0x1498f0['bind']('isVisible')['to'](this,'errorType',_0x19a392=>'NotFound'!==_0x19a392);const _0x50d016=new _0x3b2aa9();_0x50d016['content']=_0xa42e50,_0x50d016['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x85550=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':[_0x50d016,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x85550['to']('errorType',_0x13af95=>t('NotFound'!==_0x13af95?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1498f0]},{'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 _0xc5bdfd,View as _0x59297d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x59297d{constructor(_0x9e245){super(_0x9e245);const t=_0x9e245['t'],_0x3b57fd=this['bindTemplate'],_0xedfedb=new _0xc5bdfd();_0xedfedb['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':[_0xedfedb,{'text':_0x3b57fd['to']('imageUploadProgress',_0x236e39=>t('Loading\x20image...')+'\x20('+(_0x236e39||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1308cb=_0x4ac6;function _0x2f1c(){const _0x428923=['querySelector','apply','_focusableView','filter','_editingView','cdnUrl','target','_addUploadcareImageEditorListeners','3548600MAyybG','detail','ready','disconnect','once','uploading','fire','_waitForImageEditorComponent','nodeName','cancel','add','getFocusableElement','ck-reset_all-excluded','23387uEofGS','_items','set','retry','length','observe','1GvqIGM','uc-cloud-image-editor','toLowerCase','252nFymbT','688JwNBrV','clear','8446470NOTlyf','_errorView','ck-uploadcare-form','4368165qWgNTm','createCollection','div','_loadingView','status','setTemplate','focus','_addErrorViewListeners','element','error','addedNodes','686086tjkWit','1532230njHdHI','_setView','render','34362gWfooP','addEventListener','change:status','addMany'];_0x2f1c=function(){return _0x428923;};return _0x2f1c();}function _0x4ac6(_0x17e9b7,_0x22fd46){const _0x2f1c04=_0x2f1c();return _0x4ac6=function(_0x4ac686,_0x244eca){_0x4ac686=_0x4ac686-0x1b2;let _0x40fd51=_0x2f1c04[_0x4ac686];return _0x40fd51;},_0x4ac6(_0x17e9b7,_0x22fd46);}(function(_0x42d240,_0x2c8a33){const _0x3ed55b=_0x4ac6,_0x313cf6=_0x42d240();while(!![]){try{const _0x1c9cc7=parseInt(_0x3ed55b(0x1bd))/0x1*(parseInt(_0x3ed55b(0x1d1))/0x2)+-parseInt(_0x3ed55b(0x1c6))/0x3+-parseInt(_0x3ed55b(0x1e1))/0x4+-parseInt(_0x3ed55b(0x1c3))/0x5+parseInt(_0x3ed55b(0x1d5))/0x6+-parseInt(_0x3ed55b(0x1b7))/0x7*(-parseInt(_0x3ed55b(0x1c1))/0x8)+-parseInt(_0x3ed55b(0x1c0))/0x9*(-parseInt(_0x3ed55b(0x1d2))/0xa);if(_0x1c9cc7===_0x2c8a33)break;else _0x313cf6['push'](_0x313cf6['shift']());}catch(_0x27cf75){_0x313cf6['push'](_0x313cf6['shift']());}}}(_0x2f1c,0xda391));import{View as _0x583fc4}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1932c0}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x5cba3b}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x35ba46}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x7f4bc6}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x7f4bc6{[_0x1308cb(0x1b8)];[_0x1308cb(0x1c9)];[_0x1308cb(0x1c4)];[_0x1308cb(0x1dd)];[_0x1308cb(0x1db)];constructor(_0x4f081b,_0x5a2431,_0x405c02){const _0xc72665=_0x1308cb;super(_0x4f081b),this[_0xc72665(0x1b8)]=this[_0xc72665(0x1c7)](),this[_0xc72665(0x1c9)]=new _0x1932c0(_0x4f081b),this[_0xc72665(0x1c4)]=new _0x5cba3b(_0x4f081b),this[_0xc72665(0x1dd)]=new _0x35ba46(_0x4f081b,_0x405c02),this[_0xc72665(0x1db)]=new _0x583fc4(_0x4f081b),this[_0xc72665(0x1db)][_0xc72665(0x1cb)](this[_0xc72665(0x1b5)]()),this[_0xc72665(0x1b9)](_0xc72665(0x1ca),_0x5a2431),this[_0xc72665(0x1cb)]({'tag':_0xc72665(0x1c8),'attributes':{'class':['ck',_0xc72665(0x1b6),_0xc72665(0x1c5)],'tabindex':'-1'},'children':this[_0xc72665(0x1b8)]}),this[_0xc72665(0x1d3)](),this[_0xc72665(0x1e5)](_0xc72665(0x1d4),()=>{const _0x52b3eb=_0xc72665;this[_0x52b3eb(0x1e8)](this[_0x52b3eb(0x1ce)],_0x8eadb1=>{const _0x538f19=_0x52b3eb;this[_0x538f19(0x1e0)](_0x8eadb1);});}),this['on'](_0xc72665(0x1d7),()=>{const _0x475a95=_0xc72665;this[_0x475a95(0x1d3)]();}),this[_0xc72665(0x1cd)]();}[_0x1308cb(0x1cc)](){const _0x141704=_0x1308cb;this[_0x141704(0x1ce)][_0x141704(0x1cc)]();}[_0x1308cb(0x1d3)](){const _0x364025=_0x1308cb;switch(this[_0x364025(0x1b8)][_0x364025(0x1c2)](),this[_0x364025(0x1ca)]){case _0x364025(0x1e6):this[_0x364025(0x1b8)][_0x364025(0x1b4)](this[_0x364025(0x1c9)]);break;case _0x364025(0x1cf):this[_0x364025(0x1b8)][_0x364025(0x1b4)](this[_0x364025(0x1c4)]);break;case _0x364025(0x1e3):this[_0x364025(0x1b8)][_0x364025(0x1d8)]([this[_0x364025(0x1dd)],this[_0x364025(0x1db)]]);}}[_0x1308cb(0x1e8)](_0x3372ac,_0xa008b8){const _0x5cbc99=_0x1308cb,_0x9a8c7f=_0x5cbc99(0x1be),_0x6e32c8=_0x3372ac[_0x5cbc99(0x1d9)](_0x9a8c7f);if(_0x6e32c8)return _0xa008b8(_0x6e32c8);const _0x3fbbcb=new MutationObserver(_0x540648=>{const _0x567fc9=_0x5cbc99,_0x5e3f17=_0x540648[_0x567fc9(0x1dc)](_0x1080ae=>_0x1080ae[_0x567fc9(0x1df)]===_0x3372ac&&_0x1080ae[_0x567fc9(0x1d0)][_0x567fc9(0x1bb)]>0x0&&_0x1080ae[_0x567fc9(0x1d0)][0x0][_0x567fc9(0x1b2)][_0x567fc9(0x1bf)]()===_0x9a8c7f);_0x5e3f17[_0x567fc9(0x1bb)]&&(_0x3fbbcb[_0x567fc9(0x1e4)](),_0xa008b8(_0x5e3f17[0x0][_0x567fc9(0x1d0)][0x0]));});_0x3fbbcb[_0x5cbc99(0x1bc)](_0x3372ac,{'childList':!0x0,'subtree':!0x0});}[_0x1308cb(0x1e0)](_0x147b5e){const _0x3cbe98=_0x1308cb;_0x147b5e[_0x3cbe98(0x1d6)](_0x3cbe98(0x1da),_0xfe562=>{const _0x44f437=_0x3cbe98;this[_0x44f437(0x1e7)](_0x44f437(0x1da),{'imageSrc':_0xfe562[_0x44f437(0x1e2)][_0x44f437(0x1de)]});}),_0x147b5e[_0x3cbe98(0x1d6)](_0x3cbe98(0x1b3),()=>{const _0x1c1a0a=_0x3cbe98;this[_0x1c1a0a(0x1e7)](_0x1c1a0a(0x1b3));});}[_0x1308cb(0x1cd)](){const _0x47cab9=_0x1308cb;this[_0x47cab9(0x1c4)]['on'](_0x47cab9(0x1ba),()=>{const _0x18e70a=_0x47cab9;this[_0x18e70a(0x1e7)](_0x18e70a(0x1ba));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2adc74=_0x20d4;(function(_0x2142ea,_0x5201c2){const _0xb46b9e=_0x20d4,_0x49a32e=_0x2142ea();while(!![]){try{const _0xf8b1d4=-parseInt(_0xb46b9e(0x1f0))/0x1*(-parseInt(_0xb46b9e(0x1e2))/0x2)+parseInt(_0xb46b9e(0x1dd))/0x3+-parseInt(_0xb46b9e(0x1eb))/0x4*(parseInt(_0xb46b9e(0x1ef))/0x5)+parseInt(_0xb46b9e(0x1d5))/0x6+parseInt(_0xb46b9e(0x1e7))/0x7+-parseInt(_0xb46b9e(0x1e1))/0x8*(-parseInt(_0xb46b9e(0x1e9))/0x9)+-parseInt(_0xb46b9e(0x1da))/0xa*(parseInt(_0xb46b9e(0x1ec))/0xb);if(_0xf8b1d4===_0x5201c2)break;else _0x49a32e['push'](_0x49a32e['shift']());}catch(_0x2b47af){_0x49a32e['push'](_0x49a32e['shift']());}}}(_0x325a,0xbb854));import{Command as _0xe6bae6}from'ckeditor5/src/core.js';import{Dialog as _0x36de25}from'ckeditor5/src/ui.js';function _0x20d4(_0x16b424,_0x238c7f){const _0x325ad0=_0x325a();return _0x20d4=function(_0x20d49c,_0x536bc1){_0x20d49c=_0x20d49c-0x1d2;let _0x47dcf9=_0x325ad0[_0x20d49c];return _0x47dcf9;},_0x20d4(_0x16b424,_0x238c7f);}import{UploadcareImageEditController as _0x4fa0e2}from'./ui/uploadcareimageeditcontroller.js';function _0x325a(){const _0x322a9d=['editor','element','selection','isActive','4796008gjXeap','imageBlock','9DTyqKK','model','206732PzOsDC','529441WJHKzH','set','isEnabled','20oXXjqW','55634IIiZgC','bind','plugins','uploadcare.allowExternalImagesEditing','requires','get','7789194YTDGjs','document','config','imageEditController','getSelectedElement','690FPfLbT','unbind','refresh','831891eAcKfX','imageInline','execute','_isEditable','9160568vXISFN','32wQRZSg'];_0x325a=function(){return _0x322a9d;};return _0x325a();}import{createEditabilityChecker as _0x5b14e7}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xe6bae6{[_0x2adc74(0x1d8)];static get[_0x2adc74(0x1d3)](){return[_0x36de25];}[_0x2adc74(0x1e0)];constructor(_0xd0dcfe){const _0x139667=_0x2adc74;super(_0xd0dcfe),this[_0x139667(0x1d8)]=void 0x0,this[_0x139667(0x1e0)]=_0x5b14e7(_0xd0dcfe[_0x139667(0x1d7)][_0x139667(0x1d4)](_0x139667(0x1d2))||[]),this[_0x139667(0x1ed)]({'isActive':!0x1});}[_0x2adc74(0x1dc)](){const _0x591919=_0x2adc74,_0x183e6b=this[_0x591919(0x1e3)][_0x591919(0x1ea)][_0x591919(0x1d6)][_0x591919(0x1e5)][_0x591919(0x1d9)]();this[_0x591919(0x1ee)]=this[_0x591919(0x1e0)](_0x183e6b);}[_0x2adc74(0x1df)](){const _0x1a0973=_0x2adc74;this[_0x1a0973(0x1d8)]&&(this[_0x1a0973(0x1db)](_0x1a0973(0x1e6)),this[_0x1a0973(0x1d8)]=void 0x0);const _0x55b13e=this[_0x1a0973(0x1e3)][_0x1a0973(0x1ea)][_0x1a0973(0x1d6)][_0x1a0973(0x1e5)][_0x1a0973(0x1d9)]();_0x55b13e&&(_0x55b13e['is'](_0x1a0973(0x1e4),_0x1a0973(0x1e8))||_0x55b13e['is'](_0x1a0973(0x1e4),_0x1a0973(0x1de)))&&(this[_0x1a0973(0x1d8)]=new _0x4fa0e2(this[_0x1a0973(0x1e3)],this[_0x1a0973(0x1e3)][_0x1a0973(0x1f2)][_0x1a0973(0x1d4)](_0x36de25),_0x55b13e),this[_0x1a0973(0x1f1)](_0x1a0973(0x1e6))['to'](this[_0x1a0973(0x1d8)],_0x1a0973(0x1e6)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f8ae1=_0x2040;(function(_0x206303,_0x4874b1){const _0x5e54d8=_0x2040,_0x8622a1=_0x206303();while(!![]){try{const _0x9d3eb7=-parseInt(_0x5e54d8(0x9c))/0x1*(-parseInt(_0x5e54d8(0x92))/0x2)+parseInt(_0x5e54d8(0x8e))/0x3*(parseInt(_0x5e54d8(0x98))/0x4)+-parseInt(_0x5e54d8(0x9f))/0x5*(-parseInt(_0x5e54d8(0x95))/0x6)+-parseInt(_0x5e54d8(0x9b))/0x7*(-parseInt(_0x5e54d8(0x90))/0x8)+-parseInt(_0x5e54d8(0x8d))/0x9+parseInt(_0x5e54d8(0xa2))/0xa*(-parseInt(_0x5e54d8(0x9d))/0xb)+parseInt(_0x5e54d8(0x93))/0xc*(-parseInt(_0x5e54d8(0xa0))/0xd);if(_0x9d3eb7===_0x4874b1)break;else _0x8622a1['push'](_0x8622a1['shift']());}catch(_0x2b78de){_0x8622a1['push'](_0x8622a1['shift']());}}}(_0x1dc9,0x342d7));import{Plugin as _0x180e72}from'ckeditor5/src/core.js';function _0x1dc9(){const _0x5cbc71=['isOfficialPlugin','1302515Kujzhz','91wojJHs','pluginName','20swHuOY','ImageEditing','add','uploadcareImageEdit','394686XdQJxh','3jTNwOI','commands','24yXXthJ','UploadcareImageEditEditing','66uphnHz','746460GsaCaz','isPremiumPlugin','6vczQHO','init','uploadcareImageReplace','1188712hIuSSB','ImageUtils','requires','325430axWFmP','9683nzRlsA','1780251Pkvody'];_0x1dc9=function(){return _0x5cbc71;};return _0x1dc9();}import{Notification as _0x4a07bf}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x649308}from'./uploadcareimageeditcommand.js';function _0x2040(_0x19086b,_0x1fd740){const _0x1dc96b=_0x1dc9();return _0x2040=function(_0x2040d9,_0x4eaa15){_0x2040d9=_0x2040d9-0x8c;let _0x47a7d3=_0x1dc96b[_0x2040d9];return _0x47a7d3;},_0x2040(_0x19086b,_0x1fd740);}import{UploadcareImageReplaceCommand as _0x1efd67}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x12a6bb}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x180e72{static get[_0x3f8ae1(0xa1)](){const _0x1ab3af=_0x3f8ae1;return _0x1ab3af(0x91);}static get[_0x3f8ae1(0x9a)](){const _0x4cba00=_0x3f8ae1;return[_0x12a6bb,_0x4a07bf,_0x4cba00(0x99),_0x4cba00(0xa3)];}static get[_0x3f8ae1(0x9e)](){return!0x0;}static get[_0x3f8ae1(0x94)](){return!0x0;}[_0x3f8ae1(0x96)](){const _0x39e08a=_0x3f8ae1,{editor:_0x532fcc}=this;_0x532fcc[_0x39e08a(0x8f)][_0x39e08a(0xa4)](_0x39e08a(0x8c),new _0x649308(_0x532fcc)),_0x532fcc[_0x39e08a(0x8f)][_0x39e08a(0xa4)](_0x39e08a(0x97),new _0x1efd67(_0x532fcc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x47b5a7}from'ckeditor5/src/core.js';import{ButtonView as _0x19326a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x465deb}from'ckeditor5/src/icons.js';import{createElement as _0xe7d744}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 _0x47b5a7{['_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 _0x1292df=this['editor'];_0x1292df['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa84c9a=>{const _0x4a2da9=_0x1292df['commands']['get']('uploadcareImageEdit'),_0x2d5cc9=new _0x19326a(_0xa84c9a),t=_0xa84c9a['t'];return _0x2d5cc9['set']({'icon':_0x465deb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d5cc9['bind']('isEnabled')['to'](_0x4a2da9),_0x2d5cc9['bind']('isOn')['to'](_0x4a2da9,'isActive'),this['listenTo'](_0x2d5cc9,'execute',()=>{_0x1292df['execute']('uploadcareImageEdit'),_0x1292df['editing']['view']['focus']();}),_0x2d5cc9;}),this['_initConfig']();}['_initConfig'](){const _0x46d401=_0xe7d744(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x46d401),this['listenTo'](this['editor'],'destroy',()=>{_0x46d401['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2c5f(_0x41b318,_0xea43cb){const _0x19ac81=_0x19ac();return _0x2c5f=function(_0x2c5f10,_0x462697){_0x2c5f10=_0x2c5f10-0x7a;let _0x32a106=_0x19ac81[_0x2c5f10];return _0x32a106;},_0x2c5f(_0x41b318,_0xea43cb);}const _0x56bdbe=_0x2c5f;(function(_0x22b329,_0x4861d6){const _0x5c2956=_0x2c5f,_0x5ed9b6=_0x22b329();while(!![]){try{const _0x398537=-parseInt(_0x5c2956(0x8c))/0x1*(-parseInt(_0x5c2956(0x7a))/0x2)+-parseInt(_0x5c2956(0x88))/0x3*(-parseInt(_0x5c2956(0x8e))/0x4)+-parseInt(_0x5c2956(0x89))/0x5*(parseInt(_0x5c2956(0x86))/0x6)+-parseInt(_0x5c2956(0x8b))/0x7*(-parseInt(_0x5c2956(0x80))/0x8)+-parseInt(_0x5c2956(0x90))/0x9+parseInt(_0x5c2956(0x7c))/0xa+-parseInt(_0x5c2956(0x93))/0xb*(parseInt(_0x5c2956(0x8d))/0xc);if(_0x398537===_0x4861d6)break;else _0x5ed9b6['push'](_0x5ed9b6['shift']());}catch(_0x483d35){_0x5ed9b6['push'](_0x5ed9b6['shift']());}}}(_0x19ac,0xe0149));import{Command as _0x15185f}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x15185f{[_0x56bdbe(0x7f)](){const _0x27826d=_0x56bdbe,_0x401a02=this[_0x27826d(0x83)][_0x27826d(0x91)][_0x27826d(0x82)][_0x27826d(0x84)][_0x27826d(0x87)]();this[_0x27826d(0x85)]=Boolean(_0x401a02&&(_0x401a02['is'](_0x27826d(0x81),_0x27826d(0x95))||_0x401a02['is'](_0x27826d(0x81),_0x27826d(0x7e))));}[_0x56bdbe(0x7b)](_0x320fcf){const _0xaaf8f6=_0x56bdbe,_0xc2f756=this[_0xaaf8f6(0x83)][_0xaaf8f6(0x91)][_0xaaf8f6(0x82)][_0xaaf8f6(0x84)][_0xaaf8f6(0x87)]();this[_0xaaf8f6(0x83)][_0xaaf8f6(0x91)][_0xaaf8f6(0x7d)](_0xc72747=>{const _0x200026=_0xaaf8f6;_0xc72747[_0x200026(0x92)](_0x320fcf,_0xc2f756),_0xc72747[_0x200026(0x8f)](_0x200026(0x8a),_0xc2f756),_0xc72747[_0x200026(0x8f)](_0x200026(0x94),_0xc2f756);});}}function _0x19ac(){const _0x4e832c=['10972591ciMlfr','2338MWyErd','2784JqFqvL','1480yyGSzG','removeAttribute','9700020QfkuJn','model','setAttributes','33121aziUbn','sizes','imageBlock','278IXEmGV','execute','14152220yilzhx','change','imageInline','refresh','8TfIDYi','element','document','editor','selection','isEnabled','3492maymfc','getSelectedElement','150EAkuRM','5430bIpnze','srcset'];_0x19ac=function(){return _0x4e832c;};return _0x19ac();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x473357=_0x1f3b;(function(_0x178154,_0x99507c){var _0x51ce98=_0x1f3b,_0x3a9ac1=_0x178154();while(!![]){try{var _0xbcae67=-parseInt(_0x51ce98(0x13d))/0x1+-parseInt(_0x51ce98(0x139))/0x2+parseInt(_0x51ce98(0x13f))/0x3*(-parseInt(_0x51ce98(0x13e))/0x4)+parseInt(_0x51ce98(0x13b))/0x5*(-parseInt(_0x51ce98(0x140))/0x6)+-parseInt(_0x51ce98(0x135))/0x7+-parseInt(_0x51ce98(0x137))/0x8+parseInt(_0x51ce98(0x136))/0x9;if(_0xbcae67===_0x99507c)break;else _0x3a9ac1['push'](_0x3a9ac1['shift']());}catch(_0x8b444d){_0x3a9ac1['push'](_0x3a9ac1['shift']());}}}(_0x2c70,0xc016a));import{Plugin as _0x5e8d2b}from'ckeditor5/src/core.js';function _0x1f3b(_0x5f004f,_0x8da6a9){var _0x2c7073=_0x2c70();return _0x1f3b=function(_0x1f3b28,_0x36b82c){_0x1f3b28=_0x1f3b28-0x135;var _0x1057ec=_0x2c7073[_0x1f3b28];return _0x1057ec;},_0x1f3b(_0x5f004f,_0x8da6a9);}import{UploadcareImageEditEditing as _0xc9410e}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0xac22cf}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5e8d2b{static get[_0x473357(0x138)](){var _0x28f79c=_0x473357;return _0x28f79c(0x142);}static get[_0x473357(0x141)](){return[_0xc9410e,_0xac22cf];}static get[_0x473357(0x13a)](){return!0x0;}static get[_0x473357(0x13c)](){return!0x0;}}function _0x2c70(){var _0xfd8ef7=['52356ivGFHx','requires','UploadcareImageEdit','10731833dGlBFR','57685824rPPsyo','11094712bBLfWa','pluginName','1109752PvCwwK','isOfficialPlugin','340PtKmVA','isPremiumPlugin','696789EYvAxV','1143668AGJFDv','9oRLUeu'];_0x2c70=function(){return _0xfd8ef7;};return _0x2c70();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e878b=_0xad41;(function(_0x383eaf,_0x15abc6){const _0x11c984=_0xad41,_0x48c63e=_0x383eaf();while(!![]){try{const _0x2c25bc=parseInt(_0x11c984(0x182))/0x1*(-parseInt(_0x11c984(0x174))/0x2)+-parseInt(_0x11c984(0x19b))/0x3+-parseInt(_0x11c984(0x163))/0x4*(-parseInt(_0x11c984(0x161))/0x5)+parseInt(_0x11c984(0x173))/0x6+parseInt(_0x11c984(0x176))/0x7+parseInt(_0x11c984(0x156))/0x8*(-parseInt(_0x11c984(0x197))/0x9)+parseInt(_0x11c984(0x18d))/0xa*(parseInt(_0x11c984(0x184))/0xb);if(_0x2c25bc===_0x15abc6)break;else _0x48c63e['push'](_0x48c63e['shift']());}catch(_0x370961){_0x48c63e['push'](_0x48c63e['shift']());}}}(_0x4995,0x2e046));import{Plugin as _0x1c85d5}from'ckeditor5/src/core.js';import{IconDropbox as _0x12b42f,IconFacebook as _0x416ae4,IconGoogleDrive as _0x1a4ad8,IconGooglePhotos as _0x3399f0,IconUploadcareImageUpload as _0x41d61c,IconUploadcareLink as _0x582d79,IconOneDrive as _0x35ad16}from'ckeditor5/src/icons.js';import{ButtonView as _0xb4c6b0,MenuBarMenuListItemButtonView as _0x57e822}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2b5e53}from'./uploadcareconfig.js';import{getTranslation as _0x454498}from'./utils/common-translations.js';function _0x4995(){const _0x4ba33b=['has','config','pluginName','Local','upload','uploadcareLicenseKeyExpired','uploadcareLicenseKeyDomainLimit','_createButton','label','763218hTTAHl','entries','uploadcareLicenseKeyValid','_getIntegrationKey','380229OZhAdL','licenseKey','init','get','isOfficialPlugin','_showLicenseError','afterInit','isImageSelected','Insert','text','bind','16NOLtex','GPhotos','URL','uploadcareLicenseKeyNotAllowed','expired','_createDropdownButtons','Uploadcare','registerIntegration','map','push','Replace','389780qIBWOA','_licenseKeyCheckInterval','4czLhxm','evaluationLimit','_createToolbarButton','tooltip','_createMenuBarButtons','UploadcareUI','ImageInsertUI','url','uploadcare.uploader.sourceList','withText','OneDrive','assetManager','_normalizeConfigSourceList','icon','GDrive','uploadcare','1648224nmqblf','6414OdfgJp','uploadcareLicenseKeyUsageLimit','1038359zawytG','uploadcareLicenseKeyEvaluationLimit','locale','forEach','shortText','Dropbox','reduce','destroy','Facebook','usageLimit','isEnabled','plugins','67QRRiOD','execute','2145aRQPsS','uploadcareLicenseKeyInvalid','editor','isPremiumPlugin','domainLimit','featureNotAllowed','type','commands','invalid','10190hNxLZv'];_0x4995=function(){return _0x4ba33b;};return _0x4995();}function _0xad41(_0x4e50b4,_0x1e6902){const _0x4995b4=_0x4995();return _0xad41=function(_0xad412b,_0x10776f){_0xad412b=_0xad412b-0x14c;let _0x764336=_0x4995b4[_0xad412b];return _0x764336;},_0xad41(_0x4e50b4,_0x1e6902);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x1c85d5{[_0x1e878b(0x14c)];[_0x1e878b(0x162)];static get[_0x1e878b(0x190)](){const _0x19812d=_0x1e878b;return _0x19812d(0x168);}static get[_0x1e878b(0x14f)](){return!0x0;}static get[_0x1e878b(0x187)](){return!0x0;}[_0x1e878b(0x14d)](){const _0x5831c7=_0x1e878b;this[_0x5831c7(0x14c)]=this[_0x5831c7(0x186)][_0x5831c7(0x18f)][_0x5831c7(0x14e)](_0x5831c7(0x14c));const _0x13f31c=this[_0x5831c7(0x186)];this[_0x5831c7(0x162)]=setInterval(()=>{const _0x52ddab=_0x5831c7;let _0x477534;for(const _0xc0b30c in _0x13f31c){const _0x1d83fc=_0xc0b30c,_0x5a6e25=_0x13f31c[_0x1d83fc];if(_0x52ddab(0x199)==_0x5a6e25||_0x52ddab(0x185)==_0x5a6e25||_0x52ddab(0x193)==_0x5a6e25||_0x52ddab(0x194)==_0x5a6e25||_0x52ddab(0x159)==_0x5a6e25||_0x52ddab(0x177)==_0x5a6e25||_0x52ddab(0x175)==_0x5a6e25){delete _0x13f31c[_0x1d83fc],_0x477534=_0x5a6e25,clearInterval(this[_0x52ddab(0x162)]),this[_0x52ddab(0x162)]=void 0x0;break;}}_0x52ddab(0x185)==_0x477534&&_0x13f31c[_0x52ddab(0x150)](_0x52ddab(0x18c)),_0x52ddab(0x193)==_0x477534&&_0x13f31c[_0x52ddab(0x150)](_0x52ddab(0x15a)),_0x52ddab(0x194)==_0x477534&&_0x13f31c[_0x52ddab(0x150)](_0x52ddab(0x188)),_0x52ddab(0x159)==_0x477534&&_0x13f31c[_0x52ddab(0x150)](_0x52ddab(0x189),_0x52ddab(0x15c)),_0x52ddab(0x177)==_0x477534&&_0x13f31c[_0x52ddab(0x150)](_0x52ddab(0x164)),_0x52ddab(0x175)==_0x477534&&_0x13f31c[_0x52ddab(0x150)](_0x52ddab(0x17f));},0x3e8);}[_0x1e878b(0x151)](){const _0x34404=_0x1e878b,{editor:_0x4d25c4}=this,_0x32287c=_0x4d25c4[_0x34404(0x18b)][_0x34404(0x14e)](_0x34404(0x172));if(!_0x32287c)return;const _0x30da39=this[_0x34404(0x16f)](_0x4d25c4[_0x34404(0x18f)][_0x34404(0x14e)](_0x34404(0x16b)))[_0x34404(0x17c)]((_0x39e858,_0x43364e)=>{const _0x54bda9=_0x34404,_0x40dc26=this[_0x54bda9(0x19a)](_0x43364e[_0x54bda9(0x18a)]);return _0x39e858[_0x40dc26]||(_0x39e858[_0x40dc26]=[]),_0x39e858[_0x40dc26][_0x54bda9(0x15f)](_0x43364e),_0x39e858;},{});_0x4d25c4[_0x34404(0x181)][_0x34404(0x18e)](_0x34404(0x169))&&_0x4d25c4[_0x34404(0x18b)][_0x34404(0x14e)](_0x34404(0x172))&&Object[_0x34404(0x198)](_0x30da39)[_0x34404(0x179)](([_0x472d50,_0x1b1134])=>{const _0x4f85ec=_0x34404;_0x4d25c4[_0x4f85ec(0x181)][_0x4f85ec(0x14e)](_0x4f85ec(0x169))[_0x4f85ec(0x15d)]({'name':_0x472d50,'observable':()=>_0x32287c,'buttonViewCreator':()=>this[_0x4f85ec(0x165)](_0x1b1134),'formViewCreator':()=>this[_0x4f85ec(0x15b)](_0x1b1134),'menuBarButtonViewCreator':()=>this[_0x4f85ec(0x167)](_0x1b1134),'override':_0x4f85ec(0x16e)!==_0x472d50});});}[_0x1e878b(0x17d)](){const _0x4797f2=_0x1e878b;super[_0x4797f2(0x17d)](),this[_0x4797f2(0x162)]&&clearInterval(this[_0x4797f2(0x162)]);}[_0x1e878b(0x16f)](_0x1170d0){const _0x559324=_0x1e878b,{locale:_0x2be1be}=this[_0x559324(0x186)];return _0x1170d0[_0x559324(0x15e)](_0x1d38bc=>{const _0x2d90d9=_0x559324,_0x105194=_0x454498(_0x2be1be,_0x1d38bc,_0x2d90d9(0x153));switch(_0x1d38bc){case _0x2b5e53[_0x2d90d9(0x191)]:return{'icon':_0x41d61c,'type':_0x2b5e53[_0x2d90d9(0x191)],..._0x105194};case _0x2b5e53[_0x2d90d9(0x158)]:return{'icon':_0x582d79,'type':_0x2b5e53[_0x2d90d9(0x158)],..._0x105194};case _0x2b5e53[_0x2d90d9(0x17b)]:return{'icon':_0x12b42f,'type':_0x2b5e53[_0x2d90d9(0x17b)],..._0x105194};case _0x2b5e53[_0x2d90d9(0x17e)]:return{'icon':_0x416ae4,'type':_0x2b5e53[_0x2d90d9(0x17e)],..._0x105194};case _0x2b5e53[_0x2d90d9(0x171)]:return{'icon':_0x1a4ad8,'type':_0x2b5e53[_0x2d90d9(0x171)],..._0x105194};case _0x2b5e53[_0x2d90d9(0x157)]:return{'icon':_0x3399f0,'type':_0x2b5e53[_0x2d90d9(0x157)],..._0x105194};case _0x2b5e53[_0x2d90d9(0x16d)]:return{'icon':_0x35ad16,'type':_0x2b5e53[_0x2d90d9(0x16d)],..._0x105194};}});}[_0x1e878b(0x19a)](_0xb3ad14){const _0x1350b3=_0x1e878b;switch(_0xb3ad14){case _0x2b5e53[_0x1350b3(0x191)]:return _0x1350b3(0x192);case _0x2b5e53[_0x1350b3(0x158)]:return _0x1350b3(0x16a);default:return _0x1350b3(0x16e);}}[_0x1e878b(0x195)](_0x1284bb,_0x331c9d){const _0x10418a=_0x1e878b,_0x47b9f6=this[_0x10418a(0x186)],_0x368b00=new _0x1284bb(_0x47b9f6[_0x10418a(0x178)]),_0x362dd5=_0x47b9f6[_0x10418a(0x18b)][_0x10418a(0x14e)](_0x10418a(0x172));return _0x368b00[_0x10418a(0x155)](_0x10418a(0x180))['to'](_0x362dd5),_0x368b00['on'](_0x10418a(0x183),()=>{const _0x5139f9=_0x10418a;_0x362dd5[_0x5139f9(0x183)](_0x331c9d);}),_0x368b00;}[_0x1e878b(0x165)](_0x4df5e7){const _0x186f7d=_0x1e878b,{locale:_0xa55abd}=this[_0x186f7d(0x186)],_0x2c3f7c=this[_0x186f7d(0x186)][_0x186f7d(0x181)][_0x186f7d(0x14e)](_0x186f7d(0x169)),_0xb36d8e=_0x4df5e7[0x0],_0x5bf758=this[_0x186f7d(0x195)](_0xb4c6b0,_0xb36d8e[_0x186f7d(0x18a)]);return _0x5bf758[_0x186f7d(0x170)]=_0xb36d8e[_0x186f7d(0x170)],_0x5bf758[_0x186f7d(0x155)](_0x186f7d(0x196))['to'](_0x2c3f7c,_0x186f7d(0x152),_0xdd90f=>_0x454498(_0xa55abd,_0xb36d8e[_0x186f7d(0x18a)],_0xdd90f?_0x186f7d(0x160):_0x186f7d(0x153))[_0x186f7d(0x154)]),_0x5bf758[_0x186f7d(0x166)]=!0x0,_0x5bf758;}[_0x1e878b(0x15b)](_0x41fd40){const _0x3e52a6=_0x1e878b,{locale:_0x5cae6b}=this[_0x3e52a6(0x186)],_0x12304f=this[_0x3e52a6(0x186)][_0x3e52a6(0x181)][_0x3e52a6(0x14e)](_0x3e52a6(0x169));return _0x41fd40[_0x3e52a6(0x15e)](_0x4a6953=>{const _0x48458e=_0x3e52a6,_0x518be5=this[_0x48458e(0x195)](_0xb4c6b0,_0x4a6953[_0x48458e(0x18a)]);return _0x518be5[_0x48458e(0x16c)]=!0x0,_0x518be5[_0x48458e(0x170)]=_0x4a6953[_0x48458e(0x170)],_0x518be5[_0x48458e(0x155)](_0x48458e(0x196))['to'](_0x12304f,_0x48458e(0x152),_0x19d76c=>_0x454498(_0x5cae6b,_0x4a6953[_0x48458e(0x18a)],_0x19d76c?_0x48458e(0x160):_0x48458e(0x153))[_0x48458e(0x154)]),_0x518be5;});}[_0x1e878b(0x167)](_0x3fd20f){const _0x5b7432=_0x1e878b;return _0x3fd20f[_0x5b7432(0x15e)](_0x25630c=>{const _0x39b777=_0x5b7432,_0x22499b=this[_0x39b777(0x195)](_0x57e822,_0x25630c[_0x39b777(0x18a)]);return _0x22499b[_0x39b777(0x170)]=_0x25630c[_0x39b777(0x170)],_0x22499b[_0x39b777(0x196)]=_0x25630c[_0x39b777(0x17a)],_0x22499b;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x431524}from'ckeditor5/src/core.js';import{FileRepository as _0x20cbe9}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x25b9fe}from'./uploadcareediting.js';import{UploadUtils as _0x551db4}from'./utils/uploadutils.js';import{getImageUrls as _0x38e620}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x431524{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x20cbe9,_0x25b9fe];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x35a111=this['editor'];if(!!!_0x35a111['config']['get']('uploadcare'))return;_0x35a111['plugins']['get'](_0x20cbe9)['createUploadAdapter']=_0x1cb0cb=>new k(_0x1cb0cb,_0x35a111),_0x35a111['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2d200e,{imageElement:_0x40f25b,data:_0x1aad7d})=>{_0x35a111['model']['change'](_0x1002e6=>{_0x1002e6['setAttribute']('uploadcareImageId',_0x1aad7d['uploadcareImageId'],_0x40f25b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2a6771,_0x4acb92){this['loader']=_0x2a6771,this['editor']=_0x4acb92,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x377352=await this['loader']['file'];return _0x551db4['upload']({'file':_0x377352,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x2b0ce8=>{_0x2b0ce8&&_0x2b0ce8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2b0ce8['value']);}})['then'](async _0x4f43b1=>{const {imageFallbackUrl:_0x172378,imageSources:_0x31cc8}=_0x38e620(_0x4f43b1['cdnUrl'],_0x4f43b1['imageInfo']['width']);return{'uploadcareImageId':_0x4f43b1['uuid'],'default':_0x172378,'sources':_0x31cc8};})['catch'](()=>{const _0x538e4d=t('Cannot\x20upload\x20file:')+('\x20'+_0x377352['name']+'.');return Promise['reject'](_0x538e4d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5302b3}from'../uploadcareconfig.js';export function getTranslation(_0x59cdb1,_0x3f4b03,_0x10e724){const t=_0x59cdb1['t'],_0x1e954d=_0x59cdb1['t'];switch(_0x3f4b03){case _0x5302b3['Local']:return{'text':_0x1e954d('Insert'===_0x10e724?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1e954d('From\x20computer')};case _0x5302b3['URL']:return{'text':'Insert'===_0x10e724?_0x1e954d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1e954d('Via\x20URL')};case _0x5302b3['Dropbox']:return{'text':t('Insert'===_0x10e724?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5302b3['Facebook']:return{'text':t('Insert'===_0x10e724?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5302b3['GDrive']:return{'text':t('Insert'===_0x10e724?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5302b3['GPhotos']:return{'text':t('Insert'===_0x10e724?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5302b3['OneDrive']:return{'text':t('Insert'===_0x10e724?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3f4b03;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4ef0(_0x28cccc,_0x56601a){var _0x2b3cd2=_0x2b3c();return _0x4ef0=function(_0x4ef010,_0x122c02){_0x4ef010=_0x4ef010-0xef;var _0x4353a1=_0x2b3cd2[_0x4ef010];return _0x4353a1;},_0x4ef0(_0x28cccc,_0x56601a);}var _0x5e4294=_0x4ef0;(function(_0x1ae48e,_0x45a94d){var _0x33a902=_0x4ef0,_0x1becb8=_0x1ae48e();while(!![]){try{var _0x4d7371=-parseInt(_0x33a902(0xf5))/0x1*(-parseInt(_0x33a902(0xff))/0x2)+parseInt(_0x33a902(0x102))/0x3+-parseInt(_0x33a902(0xfb))/0x4+-parseInt(_0x33a902(0xfa))/0x5*(parseInt(_0x33a902(0xef))/0x6)+-parseInt(_0x33a902(0xfc))/0x7*(parseInt(_0x33a902(0xf8))/0x8)+parseInt(_0x33a902(0xf7))/0x9*(-parseInt(_0x33a902(0x100))/0xa)+-parseInt(_0x33a902(0xfe))/0xb*(-parseInt(_0x33a902(0x101))/0xc);if(_0x4d7371===_0x45a94d)break;else _0x1becb8['push'](_0x1becb8['shift']());}catch(_0x4d9752){_0x1becb8['push'](_0x1becb8['shift']());}}}(_0x2b3c,0xb866d));function _0x2b3c(){var _0x1e3e73=['fire','bindTemplate','11bHkToC','createCollection','5811651LiFrDC','217336wmeLxD','focusCycler','75QAUhoQ','4754080ClCRkp','329WfskvQ','focusTracker','165ZGGqrw','105974VlEAQF','10knbpCE','2266368KmEmbB','2217195lnlMYP','true','115386ZMfKqd','div','getFocusableElement','forwardCycle'];_0x2b3c=function(){return _0x1e3e73;};return _0x2b3c();}import{FocusTracker as _0x50eaab}from'ckeditor5/src/utils.js';import{View as _0x57a957,FocusCycler as _0x52068b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x57a957{[_0x5e4294(0xfd)];[_0x5e4294(0xf9)];constructor(_0x373dbc){var _0xe6ec35=_0x5e4294;super(_0x373dbc),this[_0xe6ec35(0xfd)]=new _0x50eaab(),this[_0xe6ec35(0xf9)]=new _0x52068b({'focusables':this[_0xe6ec35(0xf6)](),'focusTracker':this[_0xe6ec35(0xfd)]});}[_0x5e4294(0xf1)](){var _0x5d7128=_0x5e4294;return{'tag':_0x5d7128(0xf0),'attributes':{'aria-hidden':_0x5d7128(0x103),'tabindex':'0'},'on':{'focus':this[_0x5d7128(0xf4)]['to'](()=>{var _0x12655f=_0x5d7128;this[_0x12655f(0xf9)][_0x12655f(0xf3)](_0x12655f(0xf2));})}};}}
|