@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.2 → 46.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x9dd1(_0x3ce04f,_0x24cabb){const _0x312253=_0x3122();return _0x9dd1=function(_0x9dd10a,_0x5bc6d5){_0x9dd10a=_0x9dd10a-0x1e2;let _0x47353e=_0x312253[_0x9dd10a];return _0x47353e;},_0x9dd1(_0x3ce04f,_0x24cabb);}function _0x3122(){const _0x433f70=['querySelector','ctxElement','\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','appendChild','remove','configElement','fromCharCode','_initSchema','afterInit','commands','upcast','uploadcare.pubkey','map','3635ZjLGPl','_ctxElement','7500eekiKB','config','getSelectedElement','imageBlock','uploadcareImageReplace','data-uc-image-id','#uc-icon-arrow-down','href','insertImage','UploadcareEditing','PictureEditing','selection','_initConfig','1568640nIMCPp','5090DzzZvf','uc-upload-ctx-provider','getAttribute','model','extend','isOfficialPlugin','editor','get','requires','join','101394PBnRGc','removeAttribute','contentLanguage','iconHrefResolver','uploadcareImageId','execute','body','uploader-','true','locale','7172726sabdYf','schema','add','491082duKWmn','elementToAttribute','imageInline','uploadcare.uploader','uploadcare','document','pluginName','_configElement','listenTo','_initCtx','init','destroy','view','closeMax','conversion','1412pNuFdx','input[uploadcare-file-input]','56sMhLLt','downcast','uc-config','isRegistered','657LVYcYf','attributeToAttribute','replaceImageSource','editing','_initImageProcessingIndicator','once','render','_initConversion','ucContextId','for','isPremiumPlugin','3LEcCgx','cleanupImage'];_0x3122=function(){return _0x433f70;};return _0x3122();}const _0x29361f=_0x9dd1;(function(_0x165a0e,_0x289959){const _0x23aca9=_0x9dd1,_0x3d2136=_0x165a0e();while(!![]){try{const _0x3467b8=-parseInt(_0x23aca9(0x208))/0x1+parseInt(_0x23aca9(0x22d))/0x2*(parseInt(_0x23aca9(0x1f7))/0x3)+parseInt(_0x23aca9(0x1e6))/0x4*(parseInt(_0x23aca9(0x206))/0x5)+parseInt(_0x23aca9(0x220))/0x6*(parseInt(_0x23aca9(0x1e8))/0x7)+parseInt(_0x23aca9(0x215))/0x8+parseInt(_0x23aca9(0x1ec))/0x9*(-parseInt(_0x23aca9(0x216))/0xa)+-parseInt(_0x23aca9(0x22a))/0xb;if(_0x3467b8===_0x289959)break;else _0x3d2136['push'](_0x3d2136['shift']());}catch(_0x5110c1){_0x3d2136['push'](_0x3d2136['shift']());}}}(_0x3122,0x21611));import{Plugin as _0x566a26}from'ckeditor5/src/core.js';import{Dialog as _0x120f48}from'ckeditor5/src/ui.js';import{createElement as _0x59c5c0,global as _0x37551f,uid as _0x963f37}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x736266}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x11c08d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x305f1b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x566a26{[_0x29361f(0x234)]=null;[_0x29361f(0x207)]=null;static get[_0x29361f(0x233)](){const _0x23aa6a=_0x29361f;return _0x23aa6a(0x211);}static get[_0x29361f(0x21e)](){const _0x241018=_0x29361f;return[_0x241018(0x212),_0x11c08d,_0x120f48];}static get[_0x29361f(0x21b)](){return!0x0;}static get[_0x29361f(0x1f6)](){return!0x0;}[_0x29361f(0x1f4)];get[_0x29361f(0x1fe)](){const _0x187759=_0x29361f;return this[_0x187759(0x234)];}get[_0x29361f(0x1fa)](){const _0x3dbbed=_0x29361f;return this[_0x3dbbed(0x207)];}constructor(_0x306d58){const _0x1a6d15=_0x29361f;super(_0x306d58),this[_0x1a6d15(0x1f4)]=_0x963f37();}[_0x29361f(0x237)](){const _0x22b8a4=_0x29361f,_0x536b34=this[_0x22b8a4(0x21c)];_0x536b34[_0x22b8a4(0x202)][_0x22b8a4(0x22c)](_0x22b8a4(0x231),new _0x736266(_0x536b34));}[_0x29361f(0x201)](){const _0x294721=_0x29361f;this[_0x294721(0x200)](),this[_0x294721(0x1f3)](),this[_0x294721(0x214)](),this[_0x294721(0x236)](),this[_0x294721(0x1f0)](),this[_0x294721(0x235)](this[_0x294721(0x21c)],_0x294721(0x1e2),()=>{const _0x2d6e51=_0x294721;this[_0x2d6e51(0x234)]&&(this[_0x2d6e51(0x234)][_0x2d6e51(0x1fd)](),this[_0x2d6e51(0x234)]=null),this[_0x2d6e51(0x207)]&&(this[_0x2d6e51(0x207)][_0x2d6e51(0x1fd)](),this[_0x2d6e51(0x207)]=null);const _0x2cb2d3=_0x37551f[_0x2d6e51(0x232)][_0x2d6e51(0x1f9)](_0x2d6e51(0x1e7));_0x2cb2d3&&_0x2cb2d3[_0x2d6e51(0x1fd)]();}),async function(_0x58b044){const _0x500659=_0x369916([0x47,0x31,0x6f,0x70,0x73,0x4d,0x62,0x77,0x51,0x6e,0x58,0x61,0x45,0x75,0x63,0x59,0x57,0x52,0x6b,0x50,0x79,0x5a,0x4f,0x56,0x53,0x4e,0x4a,0x49,0x6d,0x48,0x65,0x35,0x76,0x6a,0x43,0x69,0x44,0x34,0x4c,0x39,0x41,0x6c,0x4b,0x66,0x54,0x74,0x71,0x38,0x55,0x46,0x37,0x42,0x36,0x67,0x78,0x64,0x33,0x7a,0x32,0x72,0x68,0x30]),_0x4777d9=0x3ce12f43,_0x2d2104=0x3ce643c3^_0x4777d9,_0x5d2eed=window[_0x369916([0x44,0x61,0x74,0x65])][_0x369916([0x6e,0x6f,0x77])](),_0x50d201=_0x58b044[_0x369916([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ccc17=new window[(_0x369916([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x506a80=>{_0x50d201[_0x369916([0x6f,0x6e,0x63,0x65])](_0x369916([0x72,0x65,0x61,0x64,0x79]),_0x506a80);}),_0x446475={[_0x369916([0x6b,0x74,0x79])]:_0x369916([0x45,0x43]),[_0x369916([0x75,0x73,0x65])]:_0x369916([0x73,0x69,0x67]),[_0x369916([0x63,0x72,0x76])]:_0x369916([0x50,0x2d,0x32,0x35,0x36]),[_0x369916([0x78])]:_0x369916([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]),[_0x369916([0x79])]:_0x369916([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]),[_0x369916([0x61,0x6c,0x67])]:_0x369916([0x45,0x53,0x32,0x35,0x36])},_0x52076b=_0x50d201[_0x369916([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x369916([0x67,0x65,0x74])](_0x369916([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22bd1e(){let _0x5c9d1f,_0x340470=null,_0x5760b8=null;try{if(_0x52076b==_0x369916([0x47,0x50,0x4c]))return _0x369916([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c9d1f=_0x3e8e85(),!_0x5c9d1f)return _0x369916([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c9d1f[_0x369916([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5760b8=_0xfb308a(_0x5c9d1f[_0x369916([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c9d1f[_0x369916([0x6a,0x74,0x69])])),await _0x352693()?_0x588e4a()?_0x3d52d8()?_0x369916([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2daf76()?(_0x5c9d1f[_0x369916([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x369916([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x340470=_0x419e50(_0x369916([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c9d1f[_0x369916([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x369916([0x74,0x72,0x69,0x61,0x6c])&&(_0x340470=_0x419e50(_0x369916([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3106a4()):_0x369916([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x369916([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x369916([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x369916([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d52d8(){const _0x493095=[_0x369916([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x369916([0x74,0x72,0x69,0x61,0x6c])][_0x369916([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c9d1f[_0x369916([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d2eed/0x3e8:0xe10*_0x2d2104;return _0x5c9d1f[_0x369916([0x65,0x78,0x70])]<_0x493095;}function _0x588e4a(){const _0x422447=_0x5c9d1f[_0x369916([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x422447&&(!!_0x422447[_0x369916([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369916([0x2a]))||!!_0x422447[_0x369916([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369916([0x55,0x50,0x4c,0x43])));}function _0x2daf76(){const _0x46fb17=_0x9dd1,_0x552984=_0x5c9d1f[_0x369916([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x552984||0x0==_0x552984[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c1dd6}=new URL(window[_0x369916([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x46fb17(0x20f)]);if(_0x552984[_0x369916([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1dd6))return!0x0;const _0x38da82=_0x2c1dd6[_0x369916([0x73,0x70,0x6c,0x69,0x74])](_0x369916([0x2e]));return _0x552984[_0x369916([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26650a=>_0x26650a[_0x369916([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369916([0x2a])))[_0x369916([0x6d,0x61,0x70])](_0x100541=>_0x100541[_0x369916([0x73,0x70,0x6c,0x69,0x74])](_0x369916([0x2e])))[_0x369916([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b590d=>_0x1b590d[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38da82[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x369916([0x6d,0x61,0x70])](_0x3573f4=>Array(_0x38da82[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3573f4[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x369916([0x66,0x69,0x6c,0x6c])](_0x3573f4[0x0]===_0x369916([0x2a])?_0x369916([0x2a]):'')[_0x369916([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3573f4))[_0x369916([0x73,0x6f,0x6d,0x65])](_0x572808=>_0x38da82[_0x369916([0x65,0x76,0x65,0x72,0x79])]((_0xf2e98e,_0x42c2ac)=>_0x572808[_0x42c2ac]===_0xf2e98e||_0x572808[_0x42c2ac]===_0x369916([0x2a])));}function _0x3106a4(){return _0x340470&&_0x5760b8?new window[(_0x369916([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40b6dc,_0x5917f5)=>{_0x340470[_0x369916([0x74,0x68,0x65,0x6e])](_0x40b6dc,_0x5917f5),_0x5760b8[_0x369916([0x74,0x68,0x65,0x6e])](_0x502eea=>{_0x502eea!=_0x369916([0x56,0x61,0x6c,0x69,0x64])&&_0x40b6dc(_0x502eea);},_0x5917f5);}):_0x340470||_0x5760b8||_0x369916([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfb308a(_0x2150fc,_0x4a2c5e){return new window[(_0x369916([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe1bedc=>{if(_0x44a933())return _0xe1bedc(_0x369916([0x56,0x61,0x6c,0x69,0x64]));_0x470016(),_0x50d201[_0x369916([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x369916([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cd866=!0x1;const _0x4d5322=_0x963f37();function _0x54cc4a(_0x3c5546){return!!_0x3c5546&&(typeof _0x3c5546===_0x369916([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c5546===_0x369916([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c5546[_0x369916([0x74,0x68,0x65,0x6e])]===_0x369916([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c5546[_0x369916([0x63,0x61,0x74,0x63,0x68])]===_0x369916([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2aa8f3(_0x5375f0){_0x162886(_0x5375f0)[_0x369916([0x74,0x68,0x65,0x6e])](_0x42d317=>{if(!_0x42d317||_0x42d317[_0x369916([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x369916([0x6f,0x6b]))return _0x369916([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d2111(_0x13733e(_0x4d5322+_0x4a2c5e))!=_0x42d317[_0x369916([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x369916([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x369916([0x56,0x61,0x6c,0x69,0x64]);})[_0x369916([0x74,0x68,0x65,0x6e])](_0x2adc8e=>(_0x4c5ccc(),_0x2adc8e),()=>{const _0x5b6da1=_0x2bd364();return null==_0x5b6da1?(_0x4c5ccc(),_0x369916([0x56,0x61,0x6c,0x69,0x64])):_0x369916(_0x5d2eed-_0x5b6da1>(0x18edab43^_0x4777d9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x369916([0x74,0x68,0x65,0x6e])](_0xe1bedc)[_0x369916([0x63,0x61,0x74,0x63,0x68])](()=>{_0xe1bedc(_0x369916([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ea88a=0x3cd7c1c3^_0x4777d9;function _0x4c5ccc(){const _0x3a084d=_0x369916([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d2111(_0x13733e(_0x2150fc)),_0x5a22e4=_0x18eb6b(_0x3d2111(window[_0x369916([0x4d,0x61,0x74,0x68])][_0x369916([0x63,0x65,0x69,0x6c])](_0x5d2eed/_0x3ea88a)));window[_0x369916([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x369916([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a084d,_0x5a22e4);}function _0x2bd364(){const _0x150aff=_0x369916([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d2111(_0x13733e(_0x2150fc)),_0x438533=window[_0x369916([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x369916([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x150aff);return _0x438533?window[_0x369916([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18eb6b(_0x438533),0x10)*_0x3ea88a:null;}function _0x162886(_0x2e28c8){return new window[(_0x369916([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3d80,_0x964851)=>{_0x2e28c8[_0x369916([0x74,0x68,0x65,0x6e])](_0x2c3d80,_0x964851),window[_0x369916([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x964851,0x3ce0fb83^_0x4777d9);});}}_0x50d201[_0x369916([0x6f,0x6e])](_0x369916([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x173e6d,_0xa41373)=>{if(_0xa41373[0x0]!=_0x2150fc)return _0xe1bedc(_0x369916([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa41373[0x1]={..._0xa41373[0x1],[_0x369916([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d5322};},{[_0x369916([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x369916([0x68,0x69,0x67,0x68])}),_0x50d201[_0x369916([0x6f,0x6e])](_0x369916([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44450e=>{_0x54cc4a(_0x44450e[_0x369916([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cd866=!0x0,_0x2aa8f3(_0x44450e[_0x369916([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x369916([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x369916([0x6c,0x6f,0x77])}),_0x2ccc17[_0x369916([0x74,0x68,0x65,0x6e])](()=>{_0x4cd866||_0xe1bedc(_0x369916([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44a933(){return _0x50d201[_0x369916([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x369916([0x76,0x69,0x65,0x77])][_0x369916([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x369916([0x61,0x75,0x74,0x6f]);}function _0x470016(){_0x50d201[_0x369916([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x369916([0x76,0x69,0x65,0x77])][_0x369916([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x369916([0x61,0x75,0x74,0x6f]);}}function _0x419e50(_0x257f8d){const _0x49d087=[new window[(_0x369916([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa901b4=>setTimeout(_0xa901b4,0x3ce8118f^_0x4777d9)),_0x2ccc17[_0x369916([0x74,0x68,0x65,0x6e])](()=>new window[(_0x369916([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x377029=>{let _0x134890=0x0;_0x50d201[_0x369916([0x6d,0x6f,0x64,0x65,0x6c])][_0x369916([0x6f,0x6e])](_0x369916([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x261091,_0x1b7290)=>{_0x1b7290[0x0][_0x369916([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x134890++,_0x134890==(0x3ce12ebb^_0x4777d9)&&(_0x377029(),_0x261091[_0x369916([0x6f,0x66,0x66])]());});}))];return window[_0x369916([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x369916([0x72,0x61,0x63,0x65])](_0x49d087)[_0x369916([0x74,0x68,0x65,0x6e])](()=>_0x257f8d);}async function _0x3e46db(){await _0x2ccc17,_0x50d201[_0x369916([0x6d,0x6f,0x64,0x65,0x6c])][_0x369916([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x492123,_0x50d201[_0x369916([0x6d,0x6f,0x64,0x65,0x6c])][_0x369916([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x492123,_0x50d201[_0x369916([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x369916([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x324459(_0x40fb81){const _0x100e32=_0x3acc1a();_0x50d201[_0x100e32]=_0x369916([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40fb81,_0x40fb81!=_0x369916([0x56,0x61,0x6c,0x69,0x64])&&_0x3e46db();}function _0x3acc1a(){const _0x4853bf=window[_0x369916([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x369916([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x369916([0x6e,0x6f,0x77])]())[_0x369916([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x369916([0x2e]),'');let _0xfb0c79=_0x369916([0x47]);for(let _0x223f54=0x0;_0x223f54<_0x4853bf[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x223f54+=0x2){let _0x7323dd=window[_0x369916([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4853bf[_0x369916([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x223f54,_0x223f54+0x2));_0x7323dd>=_0x500659[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7323dd-=_0x500659[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfb0c79+=_0x500659[_0x7323dd];}return _0xfb0c79;}function _0x3e8e85(){const _0x3eabea=_0x52076b[_0x369916([0x73,0x70,0x6c,0x69,0x74])](_0x369916([0x2e]));if(0x3!=_0x3eabea[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x160982(_0x3eabea[0x1]);function _0x160982(_0x540b5a){const _0x74109=_0x1d5afc(_0x540b5a);return _0x74109&&_0x5f43f8()?_0x74109:null;function _0x5f43f8(){const _0x4e2729=_0x74109[_0x369916([0x6a,0x74,0x69])],_0x44c988=window[_0x369916([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e2729[_0x369916([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e2729[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x406f76={..._0x74109,[_0x369916([0x6a,0x74,0x69])]:_0x4e2729[_0x369916([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e2729[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x406f76[_0x369916([0x76,0x63])],_0x13733e(_0x406f76)==_0x44c988;}}}async function _0x352693(){let _0x12ad44=!0x0;try{const _0x4c2a5e=_0x52076b[_0x369916([0x73,0x70,0x6c,0x69,0x74])](_0x369916([0x2e])),[_0x1a8983,_0x347cfb,_0x2e2665]=_0x4c2a5e;return _0xba2caa(_0x1a8983),await _0x2e4843(_0x1a8983,_0x347cfb,_0x2e2665),_0x12ad44;}catch{return!0x1;}function _0xba2caa(_0x4562eb){const _0x1f659e=_0x1d5afc(_0x4562eb);_0x1f659e&&_0x1f659e[_0x369916([0x61,0x6c,0x67])]==_0x369916([0x45,0x53,0x32,0x35,0x36])||(_0x12ad44=!0x1);}async function _0x2e4843(_0x55a499,_0x552c05,_0x2f61bf){const _0x5a477b=window[_0x369916([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x369916([0x66,0x72,0x6f,0x6d])](_0x5b391a(_0x2f61bf),_0x1ede17=>_0x1ede17[_0x369916([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e7e14=new window[(_0x369916([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x369916([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55a499+_0x369916([0x2e])+_0x552c05),_0x4aa361=window[_0x369916([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x369916([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4aa361)return;const _0x5f48d7=await _0x4aa361[_0x369916([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x369916([0x6a,0x77,0x6b]),_0x446475,{[_0x369916([0x6e,0x61,0x6d,0x65])]:_0x369916([0x45,0x43,0x44,0x53,0x41]),[_0x369916([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x369916([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x369916([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4aa361[_0x369916([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x369916([0x6e,0x61,0x6d,0x65])]:_0x369916([0x45,0x43,0x44,0x53,0x41]),[_0x369916([0x68,0x61,0x73,0x68])]:{[_0x369916([0x6e,0x61,0x6d,0x65])]:_0x369916([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f48d7,_0x5a477b,_0x1e7e14)||(_0x12ad44=!0x1);}}function _0x1d5afc(_0x472cf5){return _0x472cf5[_0x369916([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x369916([0x65,0x79]))?JSON[_0x369916([0x70,0x61,0x72,0x73,0x65])](_0x5b391a(_0x472cf5)):null;}function _0x5b391a(_0x5d703a){return window[_0x369916([0x61,0x74,0x6f,0x62])](_0x5d703a[_0x369916([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x369916([0x2b]))[_0x369916([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x369916([0x2f])));}function _0x13733e(_0x540745){let _0x323bd6=0x1505;function _0xc5848a(_0x4ce465){for(let _0x3d3fa1=0x0;_0x3d3fa1<_0x4ce465[_0x369916([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d3fa1++){const _0x6e113e=_0x4ce465[_0x369916([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d3fa1);_0x323bd6=(_0x323bd6<<0x5)+_0x323bd6+_0x6e113e,_0x323bd6&=_0x323bd6;}}function _0x1df782(_0x1e2b95){Array[_0x369916([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e2b95)?_0x1e2b95[_0x369916([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1df782):_0x1e2b95&&typeof _0x1e2b95==_0x369916([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x369916([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e2b95)[_0x369916([0x73,0x6f,0x72,0x74])]()[_0x369916([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e8a8b,_0x5f249b])=>{_0xc5848a(_0x2e8a8b),_0x1df782(_0x5f249b);}):_0xc5848a(window[_0x369916([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e2b95));}return _0x1df782(_0x540745),_0x323bd6>>>0x0;}function _0x3d2111(_0x46e099){return _0x46e099[_0x369916([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x369916([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x369916([0x30]));}function _0x18eb6b(_0x263cc0){return _0x263cc0[_0x369916([0x73,0x70,0x6c,0x69,0x74])]('')[_0x369916([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x369916([0x6a,0x6f,0x69,0x6e])]('');}function _0x492123(){}function _0x369916(_0x17fd47){const _0x5daa59=_0x9dd1;return _0x17fd47[_0x5daa59(0x205)](_0x228c56=>String[_0x5daa59(0x1ff)](_0x228c56))[_0x5daa59(0x21f)]('');}_0x324459(await _0x22bd1e());}(this);}[_0x29361f(0x200)](){const _0x331d1c=_0x29361f,_0x59fedf=this[_0x331d1c(0x21c)][_0x331d1c(0x219)][_0x331d1c(0x22b)];_0x59fedf[_0x331d1c(0x1eb)](_0x331d1c(0x20b))&&_0x59fedf[_0x331d1c(0x21a)](_0x331d1c(0x20b),{'allowAttributes':[_0x331d1c(0x224)]}),_0x59fedf[_0x331d1c(0x1eb)](_0x331d1c(0x22f))&&_0x59fedf[_0x331d1c(0x21a)](_0x331d1c(0x22f),{'allowAttributes':[_0x331d1c(0x224)]});}[_0x29361f(0x1f3)](){const _0x34a93b=_0x29361f,_0x5c3ace=this[_0x34a93b(0x21c)];_0x5c3ace[_0x34a93b(0x1e5)][_0x34a93b(0x1f5)](_0x34a93b(0x1e9))[_0x34a93b(0x1ed)]({'model':_0x34a93b(0x224),'view':_0x34a93b(0x20d)}),_0x5c3ace[_0x34a93b(0x1e5)][_0x34a93b(0x1f5)](_0x34a93b(0x203))[_0x34a93b(0x22e)]({'model':{'key':_0x34a93b(0x224),'value':_0x4b85d4=>_0x4b85d4[_0x34a93b(0x218)](_0x34a93b(0x20d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc49a97=_0x5c3ace[_0x34a93b(0x202)][_0x34a93b(0x21d)](_0x34a93b(0x1ee));_0xc49a97&&this[_0x34a93b(0x235)](_0xc49a97,_0x34a93b(0x1f8),(_0x203dbc,[_0x337ea8,_0x3edc85])=>{const _0x2560da=_0x34a93b;_0x337ea8[_0x2560da(0x221)](_0x2560da(0x224),_0x3edc85);});}[_0x29361f(0x214)](){const _0x186754=_0x29361f,_0x460686=this[_0x186754(0x21c)][_0x186754(0x209)][_0x186754(0x21d)](_0x186754(0x230))||{},_0x250e42=this[_0x186754(0x21c)][_0x186754(0x209)][_0x186754(0x21d)](_0x186754(0x204))||'';this[_0x186754(0x234)]=_0x59c5c0(_0x37551f[_0x186754(0x232)],_0x186754(0x1ea),{..._0x460686,'pubkey':_0x250e42,'ctx-name':_0x186754(0x227)+this[_0x186754(0x1f4)],'sourceList':'','imgOnly':_0x186754(0x228),'removeCopyright':_0x186754(0x228),'localeName':this[_0x186754(0x21c)][_0x186754(0x229)][_0x186754(0x222)],'externalSourcesEmbedCss':_0x186754(0x1fb)}),this[_0x186754(0x234)][_0x186754(0x223)]=_0x5b6549=>{const _0xb553a8=_0x186754;if(_0xb553a8(0x1e4)==_0x5b6549)return _0xb553a8(0x20e);},_0x37551f[_0x186754(0x232)][_0x186754(0x226)][_0x186754(0x1fc)](this[_0x186754(0x234)]);}[_0x29361f(0x236)](){const _0x4570aa=_0x29361f;this[_0x4570aa(0x207)]=_0x59c5c0(_0x37551f[_0x4570aa(0x232)],_0x4570aa(0x217),{'ctx-name':_0x4570aa(0x227)+this[_0x4570aa(0x1f4)]}),_0x37551f[_0x4570aa(0x232)][_0x4570aa(0x226)][_0x4570aa(0x1fc)](this[_0x4570aa(0x207)]);}[_0x29361f(0x1f0)](){const _0x480485=_0x29361f,_0x2e37a3=this[_0x480485(0x21c)][_0x480485(0x202)][_0x480485(0x21d)](_0x480485(0x210));_0x2e37a3&&this[_0x480485(0x235)](_0x2e37a3,_0x480485(0x225),()=>{const _0x9ef388=_0x480485,_0x134ccc=this[_0x9ef388(0x21c)][_0x9ef388(0x219)][_0x9ef388(0x232)][_0x9ef388(0x213)][_0x9ef388(0x20a)]();_0x134ccc&&_0x134ccc[_0x9ef388(0x218)](_0x9ef388(0x224))&&this[_0x9ef388(0x21c)][_0x9ef388(0x1ef)][_0x9ef388(0x1e3)][_0x9ef388(0x1f1)](_0x9ef388(0x1f2),()=>{const _0x2f2194=_0x9ef388;_0x305f1b(this[_0x2f2194(0x21c)],_0x134ccc);});});const _0x21dcb7=this[_0x480485(0x21c)][_0x480485(0x202)][_0x480485(0x21d)](_0x480485(0x20c));_0x21dcb7&&this[_0x480485(0x235)](_0x21dcb7,_0x480485(0x225),()=>{const _0x39fe13=_0x480485,_0x5654df=this[_0x39fe13(0x21c)][_0x39fe13(0x219)][_0x39fe13(0x232)][_0x39fe13(0x213)][_0x39fe13(0x20a)]();_0x5654df&&_0x5654df[_0x39fe13(0x218)](_0x39fe13(0x224))&&this[_0x39fe13(0x21c)][_0x39fe13(0x1ef)][_0x39fe13(0x1e3)][_0x39fe13(0x1f1)](_0x39fe13(0x1f2),()=>{const _0x5cb30b=_0x39fe13;_0x305f1b(this[_0x5cb30b(0x21c)],_0x5654df);});});}}
|
|
23
|
+
function _0x5707(){const _0x1bc5fa=['downcast','remove','body','3635376IUEBIJ','uc-config','config','map','15081693jNXaqW','selection','PictureEditing','for','3ztsodG','querySelector','add','fromCharCode','_initImageProcessingIndicator','1263044nVbJHZ','locale','insertImage','uploadcare.pubkey','imageInline','get','execute','_configElement','uploadcareImageId','5OCzCkN','elementToAttribute','conversion','join','listenTo','contentLanguage','_initSchema','data-uc-image-id','closeMax','isRegistered','href','model','ucContextId','cleanupImage','isOfficialPlugin','uploadcare','_initConfig','view','#uc-icon-arrow-down','pluginName','14147efkeXR','requires','true','getSelectedElement','getAttribute','ctxElement','uc-upload-ctx-provider','configElement','_initCtx','_ctxElement','once','403504ECsMEo','uploadcare.uploader','destroy','extend','\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','1551212ndquPh','commands','_initConversion','render','removeAttribute','init','UploadcareEditing','3430gHBOKq','1842HIsyni','document','editor','uploadcareImageReplace','upcast','afterInit','schema','replaceImageSource','imageBlock','input[uploadcare-file-input]','iconHrefResolver','appendChild','editing','isPremiumPlugin','attributeToAttribute','3429PNtlEu','uploader-'];_0x5707=function(){return _0x1bc5fa;};return _0x5707();}const _0x1e45ea=_0xe84f;(function(_0x44bc20,_0x229cb8){const _0x4a8b3b=_0xe84f,_0x14d493=_0x44bc20();while(!![]){try{const _0x92e848=-parseInt(_0x4a8b3b(0x1ec))/0x1+-parseInt(_0x4a8b3b(0x1f1))/0x2*(parseInt(_0x4a8b3b(0x1bf))/0x3)+-parseInt(_0x4a8b3b(0x1c4))/0x4*(-parseInt(_0x4a8b3b(0x1cd))/0x5)+parseInt(_0x4a8b3b(0x1f9))/0x6*(-parseInt(_0x4a8b3b(0x1e1))/0x7)+parseInt(_0x4a8b3b(0x20d))/0x8+-parseInt(_0x4a8b3b(0x208))/0x9*(-parseInt(_0x4a8b3b(0x1f8))/0xa)+parseInt(_0x4a8b3b(0x211))/0xb;if(_0x92e848===_0x229cb8)break;else _0x14d493['push'](_0x14d493['shift']());}catch(_0x322c4b){_0x14d493['push'](_0x14d493['shift']());}}}(_0x5707,0x73534));import{Plugin as _0x434317}from'ckeditor5/src/core.js';function _0xe84f(_0x51a019,_0x54dfd0){const _0x57074e=_0x5707();return _0xe84f=function(_0xe84f27,_0x29ab82){_0xe84f27=_0xe84f27-0x1bc;let _0x7dc3e3=_0x57074e[_0xe84f27];return _0x7dc3e3;},_0xe84f(_0x51a019,_0x54dfd0);}import{Dialog as _0x4180fc}from'ckeditor5/src/ui.js';import{createElement as _0x335620,global as _0x163240,uid as _0x48baa2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d5752}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3bb69f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x471696}from'./utils/editingutils.js';export class UploadcareEditing extends _0x434317{[_0x1e45ea(0x1cb)]=null;[_0x1e45ea(0x1ea)]=null;static get[_0x1e45ea(0x1e0)](){const _0x1d1298=_0x1e45ea;return _0x1d1298(0x1f7);}static get[_0x1e45ea(0x1e2)](){const _0x4a2dfa=_0x1e45ea;return[_0x4a2dfa(0x1bd),_0x3bb69f,_0x4180fc];}static get[_0x1e45ea(0x1db)](){return!0x0;}static get[_0x1e45ea(0x206)](){return!0x0;}[_0x1e45ea(0x1d9)];get[_0x1e45ea(0x1e8)](){const _0x293062=_0x1e45ea;return this[_0x293062(0x1cb)];}get[_0x1e45ea(0x1e6)](){const _0x5b24f9=_0x1e45ea;return this[_0x5b24f9(0x1ea)];}constructor(_0x5a81ed){const _0x494a4f=_0x1e45ea;super(_0x5a81ed),this[_0x494a4f(0x1d9)]=_0x48baa2();}[_0x1e45ea(0x1f6)](){const _0x3b0845=_0x1e45ea,_0x4fff7b=this[_0x3b0845(0x1fb)];_0x4fff7b[_0x3b0845(0x1f2)][_0x3b0845(0x1c1)](_0x3b0845(0x1dc),new _0x3d5752(_0x4fff7b));}[_0x1e45ea(0x1fe)](){const _0x4efd66=_0x1e45ea;this[_0x4efd66(0x1d3)](),this[_0x4efd66(0x1f3)](),this[_0x4efd66(0x1dd)](),this[_0x4efd66(0x1e9)](),this[_0x4efd66(0x1c3)](),this[_0x4efd66(0x1d1)](this[_0x4efd66(0x1fb)],_0x4efd66(0x1ee),()=>{const _0xe35135=_0x4efd66;this[_0xe35135(0x1cb)]&&(this[_0xe35135(0x1cb)][_0xe35135(0x20b)](),this[_0xe35135(0x1cb)]=null),this[_0xe35135(0x1ea)]&&(this[_0xe35135(0x1ea)][_0xe35135(0x20b)](),this[_0xe35135(0x1ea)]=null);const _0x5247c6=_0x163240[_0xe35135(0x1fa)][_0xe35135(0x1c0)](_0xe35135(0x202));_0x5247c6&&_0x5247c6[_0xe35135(0x20b)]();}),async function(_0x45df4d){const _0x304323=_0x4e912f([0x56,0x4d,0x63,0x77,0x7a,0x42,0x79,0x6b,0x68,0x39,0x38,0x48,0x50,0x69,0x70,0x49,0x4a,0x36,0x72,0x71,0x31,0x57,0x67,0x33,0x65,0x76,0x78,0x41,0x37,0x59,0x6f,0x4c,0x74,0x75,0x58,0x34,0x4f,0x45,0x6d,0x4b,0x4e,0x47,0x30,0x64,0x53,0x54,0x6e,0x43,0x5a,0x66,0x73,0x35,0x52,0x6c,0x32,0x51,0x44,0x46,0x6a,0x55,0x61,0x62]),_0x44761b=0xc92130f,_0x531a5d=0xc957fbf^_0x44761b,_0x244322=window[_0x4e912f([0x44,0x61,0x74,0x65])][_0x4e912f([0x6e,0x6f,0x77])](),_0x289f10=_0x45df4d[_0x4e912f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x366ce3=new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412f4b=>{_0x289f10[_0x4e912f([0x6f,0x6e,0x63,0x65])](_0x4e912f([0x72,0x65,0x61,0x64,0x79]),_0x412f4b);}),_0x42144f={[_0x4e912f([0x6b,0x74,0x79])]:_0x4e912f([0x45,0x43]),[_0x4e912f([0x75,0x73,0x65])]:_0x4e912f([0x73,0x69,0x67]),[_0x4e912f([0x63,0x72,0x76])]:_0x4e912f([0x50,0x2d,0x32,0x35,0x36]),[_0x4e912f([0x78])]:_0x4e912f([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]),[_0x4e912f([0x79])]:_0x4e912f([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]),[_0x4e912f([0x61,0x6c,0x67])]:_0x4e912f([0x45,0x53,0x32,0x35,0x36])},_0x23d514=_0x289f10[_0x4e912f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e912f([0x67,0x65,0x74])](_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x533bcd(){let _0x57901e,_0x3962c3=null,_0x59f0a9=null;try{if(_0x23d514==_0x4e912f([0x47,0x50,0x4c]))return _0x4e912f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57901e=_0x18ef99(),!_0x57901e)return _0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57901e[_0x4e912f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59f0a9=_0x3a8405(_0x57901e[_0x4e912f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57901e[_0x4e912f([0x6a,0x74,0x69])])),await _0x29aa6a()?_0x632d47()?_0x396364()?_0x4e912f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d45e4()?(_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e912f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3962c3=_0x44b6b8(_0x4e912f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e912f([0x74,0x72,0x69,0x61,0x6c])&&(_0x3962c3=_0x44b6b8(_0x4e912f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bd35c()):_0x4e912f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e912f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x396364(){const _0x41efe5=[_0x4e912f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e912f([0x74,0x72,0x69,0x61,0x6c])][_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x244322/0x3e8:0xe10*_0x531a5d;return _0x57901e[_0x4e912f([0x65,0x78,0x70])]<_0x41efe5;}function _0x632d47(){const _0x52326f=_0x57901e[_0x4e912f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52326f&&(!!_0x52326f[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x2a]))||!!_0x52326f[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x55,0x50,0x4c,0x43])));}function _0x5d45e4(){const _0x41eb99=_0xe84f,_0x56aa59=_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56aa59||0x0==_0x56aa59[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x351ed4}=new URL(window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41eb99(0x1d7)]);if(_0x56aa59[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351ed4))return!0x0;const _0x5dda4a=_0x351ed4[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e]));return _0x56aa59[_0x4e912f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe4f680=>_0xe4f680[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x2a])))[_0x4e912f([0x6d,0x61,0x70])](_0x431eaf=>_0x431eaf[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e])))[_0x4e912f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x472678=>_0x472678[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5dda4a[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e912f([0x6d,0x61,0x70])](_0x271d7e=>Array(_0x5dda4a[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x271d7e[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e912f([0x66,0x69,0x6c,0x6c])](_0x271d7e[0x0]===_0x4e912f([0x2a])?_0x4e912f([0x2a]):'')[_0x4e912f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x271d7e))[_0x4e912f([0x73,0x6f,0x6d,0x65])](_0x27e314=>_0x5dda4a[_0x4e912f([0x65,0x76,0x65,0x72,0x79])]((_0x1cbb14,_0x34de81)=>_0x27e314[_0x34de81]===_0x1cbb14||_0x27e314[_0x34de81]===_0x4e912f([0x2a])));}function _0x5bd35c(){return _0x3962c3&&_0x59f0a9?new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14c569,_0x114391)=>{_0x3962c3[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x14c569,_0x114391),_0x59f0a9[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x37b383=>{_0x37b383!=_0x4e912f([0x56,0x61,0x6c,0x69,0x64])&&_0x14c569(_0x37b383);},_0x114391);}):_0x3962c3||_0x59f0a9||_0x4e912f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a8405(_0x4b2fa7,_0x520c1e){return new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x67e2df=>{if(_0x42102b())return _0x67e2df(_0x4e912f([0x56,0x61,0x6c,0x69,0x64]));_0x4ba813(),_0x289f10[_0x4e912f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4642f2=!0x1;const _0x59e19e=_0x48baa2();function _0x3a1dc2(_0xf443b4){return!!_0xf443b4&&(typeof _0xf443b4===_0x4e912f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf443b4===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf443b4[_0x4e912f([0x74,0x68,0x65,0x6e])]===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf443b4[_0x4e912f([0x63,0x61,0x74,0x63,0x68])]===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e0491(_0x1ae912){_0x10b1be(_0x1ae912)[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x5eed73=>{if(!_0x5eed73||_0x5eed73[_0x4e912f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e912f([0x6f,0x6b]))return _0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22e58b(_0x1435a0(_0x59e19e+_0x520c1e))!=_0x5eed73[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e912f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x4046f4=>(_0x377844(),_0x4046f4),()=>{const _0x363a38=_0x595b98();return null==_0x363a38?(_0x377844(),_0x4e912f([0x56,0x61,0x6c,0x69,0x64])):_0x4e912f(_0x244322-_0x363a38>(0x289e970f^_0x44761b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x67e2df)[_0x4e912f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a92d6=0xca4fd8f^_0x44761b;function _0x377844(){const _0x16fd78=_0x4e912f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e58b(_0x1435a0(_0x4b2fa7)),_0x34605b=_0x1a5cd0(_0x22e58b(window[_0x4e912f([0x4d,0x61,0x74,0x68])][_0x4e912f([0x63,0x65,0x69,0x6c])](_0x244322/_0x2a92d6)));window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e912f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16fd78,_0x34605b);}function _0x595b98(){const _0x1f577d=_0x4e912f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e58b(_0x1435a0(_0x4b2fa7)),_0x2ba148=window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e912f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f577d);return _0x2ba148?window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5cd0(_0x2ba148),0x10)*_0x2a92d6:null;}function _0x10b1be(_0x42cf65){return new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19e3d9,_0x1514e5)=>{_0x42cf65[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x19e3d9,_0x1514e5),window[_0x4e912f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1514e5,0xc93c7cf^_0x44761b);});}}_0x289f10[_0x4e912f([0x6f,0x6e])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x151acb,_0x155593)=>{if(_0x155593[0x0]!=_0x4b2fa7)return _0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x155593[0x1]={..._0x155593[0x1],[_0x4e912f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e19e};},{[_0x4e912f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e912f([0x68,0x69,0x67,0x68])}),_0x289f10[_0x4e912f([0x6f,0x6e])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e12c5=>{_0x3a1dc2(_0x5e12c5[_0x4e912f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4642f2=!0x0,_0x2e0491(_0x5e12c5[_0x4e912f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e912f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e912f([0x6c,0x6f,0x77])}),_0x366ce3[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>{_0x4642f2||_0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42102b(){return _0x289f10[_0x4e912f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e912f([0x76,0x69,0x65,0x77])][_0x4e912f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e912f([0x61,0x75,0x74,0x6f]);}function _0x4ba813(){_0x289f10[_0x4e912f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e912f([0x76,0x69,0x65,0x77])][_0x4e912f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e912f([0x61,0x75,0x74,0x6f]);}}function _0x44b6b8(_0x332097){const _0x4080d7=[new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x521896=>setTimeout(_0x521896,0xc9b2dc3^_0x44761b)),_0x366ce3[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18dea8=>{let _0x192940=0x0;_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x6f,0x6e])](_0x4e912f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x82ca92,_0x5b7821)=>{_0x5b7821[0x0][_0x4e912f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x192940++,_0x192940==(0xc9212f7^_0x44761b)&&(_0x18dea8(),_0x82ca92[_0x4e912f([0x6f,0x66,0x66])]());});}))];return window[_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e912f([0x72,0x61,0x63,0x65])](_0x4080d7)[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>_0x332097);}async function _0xce4975(){await _0x366ce3,_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42a593,_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42a593,_0x289f10[_0x4e912f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1796(_0x51f768){const _0x5c5191=_0x4af0a7();_0x289f10[_0x5c5191]=_0x4e912f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51f768,_0x51f768!=_0x4e912f([0x56,0x61,0x6c,0x69,0x64])&&_0xce4975();}function _0x4af0a7(){const _0x29ec74=window[_0x4e912f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e912f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e912f([0x6e,0x6f,0x77])]())[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e912f([0x2e]),'');let _0x192b2e=_0x4e912f([0x56]);for(let _0x51a1c2=0x0;_0x51a1c2<_0x29ec74[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51a1c2+=0x2){let _0x31aed1=window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29ec74[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51a1c2,_0x51a1c2+0x2));_0x31aed1>=_0x304323[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31aed1-=_0x304323[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x192b2e+=_0x304323[_0x31aed1];}return _0x192b2e;}function _0x18ef99(){const _0x2f21a0=_0x23d514[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e]));if(0x3!=_0x2f21a0[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x424713(_0x2f21a0[0x1]);function _0x424713(_0x46cfee){const _0x4336fa=_0x23fac4(_0x46cfee);return _0x4336fa&&_0x129ba4()?_0x4336fa:null;function _0x129ba4(){const _0x977265=_0x4336fa[_0x4e912f([0x6a,0x74,0x69])],_0x7078fb=window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x977265[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x977265[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15203d={..._0x4336fa,[_0x4e912f([0x6a,0x74,0x69])]:_0x977265[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x977265[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15203d[_0x4e912f([0x76,0x63])],_0x1435a0(_0x15203d)==_0x7078fb;}}}async function _0x29aa6a(){let _0x344458=!0x0;try{const _0x49f008=_0x23d514[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e])),[_0x42f7c6,_0x122e42,_0x177c6f]=_0x49f008;return _0x49851a(_0x42f7c6),await _0x4f56aa(_0x42f7c6,_0x122e42,_0x177c6f),_0x344458;}catch{return!0x1;}function _0x49851a(_0x3ea745){const _0x55d522=_0x23fac4(_0x3ea745);_0x55d522&&_0x55d522[_0x4e912f([0x61,0x6c,0x67])]==_0x4e912f([0x45,0x53,0x32,0x35,0x36])||(_0x344458=!0x1);}async function _0x4f56aa(_0x287e7a,_0x1a10ff,_0x4ceeb9){const _0x1b3f63=window[_0x4e912f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e912f([0x66,0x72,0x6f,0x6d])](_0x4f2f3d(_0x4ceeb9),_0x43dc8e=>_0x43dc8e[_0x4e912f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x223703=new window[(_0x4e912f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e912f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x287e7a+_0x4e912f([0x2e])+_0x1a10ff),_0x1c8c1f=window[_0x4e912f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e912f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c8c1f)return;const _0x2d182f=await _0x1c8c1f[_0x4e912f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e912f([0x6a,0x77,0x6b]),_0x42144f,{[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x45,0x43,0x44,0x53,0x41]),[_0x4e912f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e912f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c8c1f[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x45,0x43,0x44,0x53,0x41]),[_0x4e912f([0x68,0x61,0x73,0x68])]:{[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d182f,_0x1b3f63,_0x223703)||(_0x344458=!0x1);}}function _0x23fac4(_0x23bb9e){return _0x23bb9e[_0x4e912f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e912f([0x65,0x79]))?JSON[_0x4e912f([0x70,0x61,0x72,0x73,0x65])](_0x4f2f3d(_0x23bb9e)):null;}function _0x4f2f3d(_0x4045b7){return window[_0x4e912f([0x61,0x74,0x6f,0x62])](_0x4045b7[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e912f([0x2b]))[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e912f([0x2f])));}function _0x1435a0(_0x4023bb){let _0xf2e2c=0x1505;function _0x1f78d4(_0x4d5462){for(let _0x30a32a=0x0;_0x30a32a<_0x4d5462[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a32a++){const _0x2d2c44=_0x4d5462[_0x4e912f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a32a);_0xf2e2c=(_0xf2e2c<<0x5)+_0xf2e2c+_0x2d2c44,_0xf2e2c&=_0xf2e2c;}}function _0x32de8d(_0x1e1898){Array[_0x4e912f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e1898)?_0x1e1898[_0x4e912f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32de8d):_0x1e1898&&typeof _0x1e1898==_0x4e912f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e912f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e1898)[_0x4e912f([0x73,0x6f,0x72,0x74])]()[_0x4e912f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x346fe2,_0x3e5ecf])=>{_0x1f78d4(_0x346fe2),_0x32de8d(_0x3e5ecf);}):_0x1f78d4(window[_0x4e912f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e1898));}return _0x32de8d(_0x4023bb),_0xf2e2c>>>0x0;}function _0x22e58b(_0x176fde){return _0x176fde[_0x4e912f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e912f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e912f([0x30]));}function _0x1a5cd0(_0x1d3b71){return _0x1d3b71[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e912f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e912f([0x6a,0x6f,0x69,0x6e])]('');}function _0x42a593(){}function _0x4e912f(_0x202b68){const _0x78d20=_0xe84f;return _0x202b68[_0x78d20(0x210)](_0x2caf4e=>String[_0x78d20(0x1c2)](_0x2caf4e))[_0x78d20(0x1d0)]('');}_0x4b1796(await _0x533bcd());}(this);}[_0x1e45ea(0x1d3)](){const _0x52e97d=_0x1e45ea,_0x5f655e=this[_0x52e97d(0x1fb)][_0x52e97d(0x1d8)][_0x52e97d(0x1ff)];_0x5f655e[_0x52e97d(0x1d6)](_0x52e97d(0x201))&&_0x5f655e[_0x52e97d(0x1ef)](_0x52e97d(0x201),{'allowAttributes':[_0x52e97d(0x1cc)]}),_0x5f655e[_0x52e97d(0x1d6)](_0x52e97d(0x1c8))&&_0x5f655e[_0x52e97d(0x1ef)](_0x52e97d(0x1c8),{'allowAttributes':[_0x52e97d(0x1cc)]});}[_0x1e45ea(0x1f3)](){const _0x50ac33=_0x1e45ea,_0x4a4a90=this[_0x50ac33(0x1fb)];_0x4a4a90[_0x50ac33(0x1cf)][_0x50ac33(0x1be)](_0x50ac33(0x20a))[_0x50ac33(0x207)]({'model':_0x50ac33(0x1cc),'view':_0x50ac33(0x1d4)}),_0x4a4a90[_0x50ac33(0x1cf)][_0x50ac33(0x1be)](_0x50ac33(0x1fd))[_0x50ac33(0x1ce)]({'model':{'key':_0x50ac33(0x1cc),'value':_0x130c41=>_0x130c41[_0x50ac33(0x1e5)](_0x50ac33(0x1d4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x344bd6=_0x4a4a90[_0x50ac33(0x1f2)][_0x50ac33(0x1c9)](_0x50ac33(0x200));_0x344bd6&&this[_0x50ac33(0x1d1)](_0x344bd6,_0x50ac33(0x1da),(_0x4768c5,[_0x21e195,_0x2608ca])=>{const _0x35dd6b=_0x50ac33;_0x21e195[_0x35dd6b(0x1f5)](_0x35dd6b(0x1cc),_0x2608ca);});}[_0x1e45ea(0x1dd)](){const _0xbcab32=_0x1e45ea,_0x41098d=this[_0xbcab32(0x1fb)][_0xbcab32(0x20f)][_0xbcab32(0x1c9)](_0xbcab32(0x1ed))||{},_0x3f1113=this[_0xbcab32(0x1fb)][_0xbcab32(0x20f)][_0xbcab32(0x1c9)](_0xbcab32(0x1c7))||'';this[_0xbcab32(0x1cb)]=_0x335620(_0x163240[_0xbcab32(0x1fa)],_0xbcab32(0x20e),{..._0x41098d,'pubkey':_0x3f1113,'ctx-name':_0xbcab32(0x209)+this[_0xbcab32(0x1d9)],'sourceList':'','imgOnly':_0xbcab32(0x1e3),'removeCopyright':_0xbcab32(0x1e3),'localeName':this[_0xbcab32(0x1fb)][_0xbcab32(0x1c5)][_0xbcab32(0x1d2)],'externalSourcesEmbedCss':_0xbcab32(0x1f0)}),this[_0xbcab32(0x1cb)][_0xbcab32(0x203)]=_0x24ca5a=>{const _0x5cfd51=_0xbcab32;if(_0x5cfd51(0x1d5)==_0x24ca5a)return _0x5cfd51(0x1df);},_0x163240[_0xbcab32(0x1fa)][_0xbcab32(0x20c)][_0xbcab32(0x204)](this[_0xbcab32(0x1cb)]);}[_0x1e45ea(0x1e9)](){const _0x5bfd71=_0x1e45ea;this[_0x5bfd71(0x1ea)]=_0x335620(_0x163240[_0x5bfd71(0x1fa)],_0x5bfd71(0x1e7),{'ctx-name':_0x5bfd71(0x209)+this[_0x5bfd71(0x1d9)]}),_0x163240[_0x5bfd71(0x1fa)][_0x5bfd71(0x20c)][_0x5bfd71(0x204)](this[_0x5bfd71(0x1ea)]);}[_0x1e45ea(0x1c3)](){const _0x4fa58b=_0x1e45ea,_0x46c7d6=this[_0x4fa58b(0x1fb)][_0x4fa58b(0x1f2)][_0x4fa58b(0x1c9)](_0x4fa58b(0x1c6));_0x46c7d6&&this[_0x4fa58b(0x1d1)](_0x46c7d6,_0x4fa58b(0x1ca),()=>{const _0x50410c=_0x4fa58b,_0xe7ff1a=this[_0x50410c(0x1fb)][_0x50410c(0x1d8)][_0x50410c(0x1fa)][_0x50410c(0x1bc)][_0x50410c(0x1e4)]();_0xe7ff1a&&_0xe7ff1a[_0x50410c(0x1e5)](_0x50410c(0x1cc))&&this[_0x50410c(0x1fb)][_0x50410c(0x205)][_0x50410c(0x1de)][_0x50410c(0x1eb)](_0x50410c(0x1f4),()=>{const _0x5b76dc=_0x50410c;_0x471696(this[_0x5b76dc(0x1fb)],_0xe7ff1a);});});const _0x432da7=this[_0x4fa58b(0x1fb)][_0x4fa58b(0x1f2)][_0x4fa58b(0x1c9)](_0x4fa58b(0x1fc));_0x432da7&&this[_0x4fa58b(0x1d1)](_0x432da7,_0x4fa58b(0x1ca),()=>{const _0x30eb17=_0x4fa58b,_0x17d9e3=this[_0x30eb17(0x1fb)][_0x30eb17(0x1d8)][_0x30eb17(0x1fa)][_0x30eb17(0x1bc)][_0x30eb17(0x1e4)]();_0x17d9e3&&_0x17d9e3[_0x30eb17(0x1e5)](_0x30eb17(0x1cc))&&this[_0x30eb17(0x1fb)][_0x30eb17(0x205)][_0x30eb17(0x1de)][_0x30eb17(0x1eb)](_0x30eb17(0x1f4),()=>{const _0x478f30=_0x30eb17;_0x471696(this[_0x478f30(0x1fb)],_0x17d9e3);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3999dd,ObservableMixin as _0x3a5e82}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x65d400}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2b0c5f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x26fe16}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x447761}from'../../utils/uploadutils.js';import{getImageUrls as _0x539cbe,getImageDimension as _0x501907}from'../../utils/editingutils.js';import{isAncestor as _0xa8d21c}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a5e82(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x430379,_0x1daf6e,_0x43dba8){super(),this['_editor']=_0x430379,this['_dialog']=_0x1daf6e,this['_imageElement']=_0x43dba8,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 _0x3d1626=this['_imageElement'],_0x5a8c95=_0x3d1626['getAttribute']('uploadcareImageId'),_0x2b838f=_0x3d1626['getAttribute']('src');if(_0x5a8c95)await this['_loadImageInfo'](_0x5a8c95,_0x2b838f);else{if(this['_imageCache']['has'](_0x2b838f)){const _0x24763b=this['_imageCache']['get'](_0x2b838f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24763b['url'],this['imageDimension']=_0x24763b['dimension'],this['imageId']=_0x24763b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x31c07b}=this['_editor'],t=_0x31c07b['t'],_0x4a27c8=new _0x26fe16(_0x31c07b,this['imageStatus'],this['_attributes']);_0x4a27c8['bind']('status')['to'](this,'imageStatus'),_0x4a27c8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4a27c8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4a27c8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4a27c8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2b0c5f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4a27c8,'position':_0x65d400['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4a27c8['focus']();},'onHide':()=>{_0x4a27c8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x98ca14=>!_0xa8d21c(_0x98ca14,_0x4a27c8['element'])}});}['_loadImageInfo'](_0x46e2ab,_0x23511e){return _0x447761['getInfo'](_0x46e2ab,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1e1bfb=>{const {width:_0xcbe28c,height:_0x591dec}=_0x1e1bfb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23511e,this['imageDimension']={'width':_0xcbe28c,'height':_0x591dec},this['imageId']=_0x46e2ab;})['catch'](_0x4cdc6a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4cdc6a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x547d94,_0x8facda){return this['_getImageAsFile'](_0x547d94)['then'](_0x5ac0c7=>_0x447761['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x8facda['signal'],'file':_0x5ac0c7,'onProgress':_0xeece36=>{_0xeece36&&_0xeece36['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xeece36['value']));}}))['then'](_0x1f3514=>{const {width:_0x1f24ea,height:_0x40a8ca}=_0x1f3514['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f3514['cdnUrl'],this['imageDimension']={'width':_0x1f24ea,'height':_0x40a8ca},this['imageId']=_0x1f3514['uuid'],this['imageUploadProgress']=null;const _0x416a42=_0x547d94['getAttribute']('src');this['_imageCache']['set'](_0x416a42,{'id':_0x1f3514['uuid'],'url':_0x1f3514['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f9577=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f9577['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4a899d,_0xcb248e){_0x4a899d['on']('apply',(_0x139cca,_0x3ef6cc)=>{this['_replaceImage'](_0xcb248e,_0x3ef6cc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4a899d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4a899d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x422d1d,_0x183c19,_0x318359){const _0x42ae2c=this['_editor'],{width:_0x185a27,height:_0x6c378e}=_0x501907(_0x183c19,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d4bb5,imageSources:_0x149d22}=_0x539cbe(_0x183c19,_0x185a27);_0x42ae2c['model']['change'](_0x110561=>{if('$graveyard'===_0x422d1d['root']['rootName']){_0x42ae2c['execute']('insertImage',{'imageType':_0x422d1d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x422d1d['getAttributes']()),'uploadcareImageId':_0x318359,'src':_0x1d4bb5,'sources':_0x149d22,'width':_0x185a27,'height':_0x6c378e}});const _0x189e66=_0x422d1d['getChildren']();_0x422d1d=_0x42ae2c['model']['document']['selection']['getSelectedElement']();for(const _0x5b4723 of _0x189e66)_0x110561['append'](_0x110561['cloneElement'](_0x5b4723),_0x422d1d);}else _0x110561['setSelection'](_0x422d1d,'on'),_0x42ae2c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x422d1d['getAttributes']()),'uploadcareImageId':_0x318359,'src':_0x1d4bb5,'sources':_0x149d22,'width':_0x185a27,'height':_0x6c378e},_0x422d1d);_0x110561['setSelection'](_0x422d1d,'on');});}async['_getImageAsFile'](_0x22f029){const _0x1b8b77=_0x3999dd['window'],_0x39072d=_0x3999dd['document']['location']['href'],_0x52b1b9=new _0x1b8b77['URL'](_0x22f029['getAttribute']('src'),_0x39072d);if('data:'===_0x52b1b9['protocol']){const _0x113fca=_0x52b1b9['href']['split'](','),_0x4e1ed0=_0x113fca[0x0]['match'](/:(.*?);/)[0x1],_0x1cead5=_0x4e1ed0['split']('/')[0x1],_0x33682a=_0x1b8b77['atob'](_0x113fca[_0x113fca['length']-0x1]);let _0x15a976=_0x33682a['length'];const _0x63df43=new _0x1b8b77['Uint8Array'](_0x15a976);for(;_0x15a976--;)_0x63df43[_0x15a976]=_0x33682a['charCodeAt'](_0x15a976);return new _0x1b8b77['File']([_0x63df43],'image.'+_0x1cead5,{'type':_0x4e1ed0});}const _0xb21953=_0x52b1b9['href']['split']('/'),_0x10808c=_0xb21953[_0xb21953['length']-0x1],_0x4c46f7=_0x10808c['split']('.')[0x1];return _0x1b8b77['fetch'](_0x52b1b9['href'])['then'](_0x515fe0=>_0x515fe0['clone']()['blob']())['then'](_0x3a42d5=>new _0x1b8b77['File']([_0x3a42d5],_0x10808c,{'type':'image/'+_0x4c46f7}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3480(_0x2d172c,_0x3129be){const _0x325554=_0x3255();return _0x3480=function(_0x34803c,_0x43122a){_0x34803c=_0x34803c-0x1ea;let _0x30628f=_0x325554[_0x34803c];return _0x30628f;},_0x3480(_0x2d172c,_0x3129be);}function _0x3255(){const _0x1a329e=['14xEWTxb','uc-light','187XbdhGM','2425725MCWyUL','setTemplate','imageSrc','49254xXuklF','set','761979OFKirT','570079WvEcIu','4kOFzZB','uc-cloud-image-editor','2qtufos','ck-uploadcare-theme','bindTemplate','425940OmUupD','567870whjoJR','image-edit','344728XwWQQp'];_0x3255=function(){return _0x1a329e;};return _0x3255();}(function(_0x1b55f0,_0x3c08aa){const _0x3a7db7=_0x3480,_0x57e340=_0x1b55f0();while(!![]){try{const _0xc58dd5=-parseInt(_0x3a7db7(0x1f9))/0x1*(parseInt(_0x3a7db7(0x1fc))/0x2)+-parseInt(_0x3a7db7(0x1f8))/0x3*(parseInt(_0x3a7db7(0x1fa))/0x4)+-parseInt(_0x3a7db7(0x1ec))/0x5+parseInt(_0x3a7db7(0x1f6))/0x6*(-parseInt(_0x3a7db7(0x1f0))/0x7)+parseInt(_0x3a7db7(0x1ef))/0x8+parseInt(_0x3a7db7(0x1f3))/0x9+-parseInt(_0x3a7db7(0x1ed))/0xa*(-parseInt(_0x3a7db7(0x1f2))/0xb);if(_0xc58dd5===_0x3c08aa)break;else _0x57e340['push'](_0x57e340['shift']());}catch(_0x1f557b){_0x57e340['push'](_0x57e340['shift']());}}}(_0x3255,0x5603d));import{View as _0x3d2508}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3d2508{constructor(_0x362940,_0x5d5d1b){const _0x16ff02=_0x3480;super(_0x362940);const _0x15d3d0=this[_0x16ff02(0x1eb)];this[_0x16ff02(0x1f7)](_0x16ff02(0x1f5),''),this[_0x16ff02(0x1f4)]({'tag':_0x16ff02(0x1fb),'attributes':{..._0x5d5d1b,'class':[_0x16ff02(0x1f1),_0x16ff02(0x1ea)],'ctx-name':_0x16ff02(0x1ee),'cdn-url':_0x15d3d0['to'](_0x16ff02(0x1f5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x124ff2}from'ckeditor5/src/icons.js';import{ButtonView as _0x53349a,IconView as _0x43f555,View as _0x245b53}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x245b53{constructor(_0x4a8e3d){super(_0x4a8e3d);const t=_0x4a8e3d['t'];this['set']('errorType',null);const _0x335020=new _0x53349a(_0x4a8e3d);_0x335020['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x335020['withText']=!0x0,_0x335020['class']='ck-button-action',_0x335020['on']('execute',()=>{this['fire']('retry');}),_0x335020['bind']('isVisible')['to'](this,'errorType',_0x40ccc1=>'NotFound'!==_0x40ccc1);const _0x3b51c4=new _0x43f555();_0x3b51c4['content']=_0x124ff2,_0x3b51c4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x464deb=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':[_0x3b51c4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x464deb['to']('errorType',_0x2786f2=>t('NotFound'!==_0x2786f2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x335020]},{'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 _0x35685d,View as _0x1f1c31}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1f1c31{constructor(_0x4d12cf){super(_0x4d12cf);const t=_0x4d12cf['t'],_0x52ca34=this['bindTemplate'],_0x4264f7=new _0x35685d();_0x4264f7['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':[_0x4264f7,{'text':_0x52ca34['to']('imageUploadProgress',_0x219854=>t('Loading\x20image...')+'\x20('+(_0x219854||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5ec4d0=_0xb7a7;(function(_0x50f0b7,_0x384056){const _0x5be7c5=_0xb7a7,_0x3229f9=_0x50f0b7();while(!![]){try{const _0x17ec3f=parseInt(_0x5be7c5(0x1c1))/0x1+parseInt(_0x5be7c5(0x1cb))/0x2*(-parseInt(_0x5be7c5(0x1e7))/0x3)+-parseInt(_0x5be7c5(0x1e0))/0x4*(-parseInt(_0x5be7c5(0x1c7))/0x5)+-parseInt(_0x5be7c5(0x1d5))/0x6+-parseInt(_0x5be7c5(0x1d8))/0x7*(-parseInt(_0x5be7c5(0x1c6))/0x8)+-parseInt(_0x5be7c5(0x1f3))/0x9*(-parseInt(_0x5be7c5(0x1ce))/0xa)+parseInt(_0x5be7c5(0x1c3))/0xb;if(_0x17ec3f===_0x384056)break;else _0x3229f9['push'](_0x3229f9['shift']());}catch(_0x2f1931){_0x3229f9['push'](_0x3229f9['shift']());}}}(_0x3e3a,0xdeef5));import{View as _0x26f99a}from'ckeditor5/src/ui.js';function _0x3e3a(){const _0x45cb35=['createCollection','1449760IalHCg','781765Fqgren','toLowerCase','_loadingView','getFocusableElement','639602HdkyyW','addEventListener','observe','5380QJLCIu','ready','filter','_addErrorViewListeners','add','render','cancel','6838536rPiMFD','error','clear','7TRYmuL','focus','once','_addUploadcareImageEditorListeners','_editingView','disconnect','retry','element','36qMtklX','_errorView','addMany','_focusableView','set','_setView','div','15WIrUct','querySelector','nodeName','detail','length','fire','target','cdnUrl','apply','ck-reset_all-excluded','change:status','status','2547ijIUWL','addedNodes','uploading','setTemplate','ck-uploadcare-form','_items','1570507xHUbAX','_waitForImageEditorComponent','3748184PLAGnR','uc-cloud-image-editor'];_0x3e3a=function(){return _0x45cb35;};return _0x3e3a();}import{UploadcareImageEditFormLoadingView as _0x140764}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x12d209}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5d43ae}from'./uploadcareimageeditformeditingview.js';function _0xb7a7(_0x2c7bc5,_0x51dba1){const _0x3e3a1a=_0x3e3a();return _0xb7a7=function(_0xb7a7bf,_0x4c6a13){_0xb7a7bf=_0xb7a7bf-0x1bf;let _0x1be011=_0x3e3a1a[_0xb7a7bf];return _0x1be011;},_0xb7a7(_0x2c7bc5,_0x51dba1);}import{DialogFocusManagerView as _0x149c75}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x149c75{[_0x5ec4d0(0x1c0)];[_0x5ec4d0(0x1c9)];[_0x5ec4d0(0x1e1)];[_0x5ec4d0(0x1dc)];[_0x5ec4d0(0x1e3)];constructor(_0x32bf60,_0x13433a,_0x3cf8d9){const _0x4d361d=_0x5ec4d0;super(_0x32bf60),this[_0x4d361d(0x1c0)]=this[_0x4d361d(0x1c5)](),this[_0x4d361d(0x1c9)]=new _0x140764(_0x32bf60),this[_0x4d361d(0x1e1)]=new _0x12d209(_0x32bf60),this[_0x4d361d(0x1dc)]=new _0x5d43ae(_0x32bf60,_0x3cf8d9),this[_0x4d361d(0x1e3)]=new _0x26f99a(_0x32bf60),this[_0x4d361d(0x1e3)][_0x4d361d(0x1f6)](this[_0x4d361d(0x1ca)]()),this[_0x4d361d(0x1e4)](_0x4d361d(0x1f2),_0x13433a),this[_0x4d361d(0x1f6)]({'tag':_0x4d361d(0x1e6),'attributes':{'class':['ck',_0x4d361d(0x1f0),_0x4d361d(0x1bf)],'tabindex':'-1'},'children':this[_0x4d361d(0x1c0)]}),this[_0x4d361d(0x1e5)](),this[_0x4d361d(0x1da)](_0x4d361d(0x1d3),()=>{const _0x562c4b=_0x4d361d;this[_0x562c4b(0x1c2)](this[_0x562c4b(0x1df)],_0x8879a1=>{const _0x399f15=_0x562c4b;this[_0x399f15(0x1db)](_0x8879a1);});}),this['on'](_0x4d361d(0x1f1),()=>{const _0x28cb2d=_0x4d361d;this[_0x28cb2d(0x1e5)]();}),this[_0x4d361d(0x1d1)]();}[_0x5ec4d0(0x1d9)](){const _0x550044=_0x5ec4d0;this[_0x550044(0x1df)][_0x550044(0x1d9)]();}[_0x5ec4d0(0x1e5)](){const _0x392c54=_0x5ec4d0;switch(this[_0x392c54(0x1c0)][_0x392c54(0x1d7)](),this[_0x392c54(0x1f2)]){case _0x392c54(0x1f5):this[_0x392c54(0x1c0)][_0x392c54(0x1d2)](this[_0x392c54(0x1c9)]);break;case _0x392c54(0x1d6):this[_0x392c54(0x1c0)][_0x392c54(0x1d2)](this[_0x392c54(0x1e1)]);break;case _0x392c54(0x1cf):this[_0x392c54(0x1c0)][_0x392c54(0x1e2)]([this[_0x392c54(0x1dc)],this[_0x392c54(0x1e3)]]);}}[_0x5ec4d0(0x1c2)](_0x10adad,_0x29a883){const _0xcecbc7=_0x5ec4d0,_0x660141=_0xcecbc7(0x1c4),_0xc21f6a=_0x10adad[_0xcecbc7(0x1e8)](_0x660141);if(_0xc21f6a)return _0x29a883(_0xc21f6a);const _0x2d520f=new MutationObserver(_0x9406a3=>{const _0x22e314=_0xcecbc7,_0x5e65cb=_0x9406a3[_0x22e314(0x1d0)](_0x4be70a=>_0x4be70a[_0x22e314(0x1ed)]===_0x10adad&&_0x4be70a[_0x22e314(0x1f4)][_0x22e314(0x1eb)]>0x0&&_0x4be70a[_0x22e314(0x1f4)][0x0][_0x22e314(0x1e9)][_0x22e314(0x1c8)]()===_0x660141);_0x5e65cb[_0x22e314(0x1eb)]&&(_0x2d520f[_0x22e314(0x1dd)](),_0x29a883(_0x5e65cb[0x0][_0x22e314(0x1f4)][0x0]));});_0x2d520f[_0xcecbc7(0x1cd)](_0x10adad,{'childList':!0x0,'subtree':!0x0});}[_0x5ec4d0(0x1db)](_0x306290){const _0x22f7f1=_0x5ec4d0;_0x306290[_0x22f7f1(0x1cc)](_0x22f7f1(0x1ef),_0x21a74d=>{const _0x26186b=_0x22f7f1;this[_0x26186b(0x1ec)](_0x26186b(0x1ef),{'imageSrc':_0x21a74d[_0x26186b(0x1ea)][_0x26186b(0x1ee)]});}),_0x306290[_0x22f7f1(0x1cc)](_0x22f7f1(0x1d4),()=>{const _0x21e9e0=_0x22f7f1;this[_0x21e9e0(0x1ec)](_0x21e9e0(0x1d4));});}[_0x5ec4d0(0x1d1)](){const _0x36cbb3=_0x5ec4d0;this[_0x36cbb3(0x1e1)]['on'](_0x36cbb3(0x1de),()=>{const _0x59860d=_0x36cbb3;this[_0x59860d(0x1ec)](_0x59860d(0x1de));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x220e49=_0x5c16;(function(_0x1fbd26,_0x49abad){const _0x5d27b6=_0x5c16,_0x49ab53=_0x1fbd26();while(!![]){try{const _0xc46a91=parseInt(_0x5d27b6(0xeb))/0x1*(-parseInt(_0x5d27b6(0xf7))/0x2)+-parseInt(_0x5d27b6(0xf4))/0x3+-parseInt(_0x5d27b6(0xe6))/0x4+-parseInt(_0x5d27b6(0xf3))/0x5*(parseInt(_0x5d27b6(0x100))/0x6)+parseInt(_0x5d27b6(0xec))/0x7*(-parseInt(_0x5d27b6(0xe9))/0x8)+-parseInt(_0x5d27b6(0xf2))/0x9*(parseInt(_0x5d27b6(0xe5))/0xa)+-parseInt(_0x5d27b6(0xfb))/0xb*(-parseInt(_0x5d27b6(0xef))/0xc);if(_0xc46a91===_0x49abad)break;else _0x49ab53['push'](_0x49ab53['shift']());}catch(_0x995224){_0x49ab53['push'](_0x49ab53['shift']());}}}(_0x1c4d,0x5af07));import{Command as _0x4f6286}from'ckeditor5/src/core.js';import{Dialog as _0x30a336}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5bfb0c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1a6d7c}from'../utils/editingutils.js';function _0x5c16(_0x47f9bb,_0x457691){const _0x1c4de8=_0x1c4d();return _0x5c16=function(_0x5c16a9,_0xbb0138){_0x5c16a9=_0x5c16a9-0xe5;let _0x32f25a=_0x1c4de8[_0x5c16a9];return _0x32f25a;},_0x5c16(_0x47f9bb,_0x457691);}export class UploadcareImageEditCommand extends _0x4f6286{[_0x220e49(0xf1)];static get[_0x220e49(0xf8)](){return[_0x30a336];}[_0x220e49(0x106)];constructor(_0x47f9dc){const _0x5dc99c=_0x220e49;super(_0x47f9dc),this[_0x5dc99c(0xf1)]=void 0x0,this[_0x5dc99c(0x106)]=_0x1a6d7c(_0x47f9dc[_0x5dc99c(0xe8)][_0x5dc99c(0x105)](_0x5dc99c(0xed))||[]),this[_0x5dc99c(0xf9)]({'isActive':!0x1});}[_0x220e49(0xff)](){const _0xaef031=_0x220e49,_0x201405=this[_0xaef031(0xee)][_0xaef031(0xe7)][_0xaef031(0x104)][_0xaef031(0x101)][_0xaef031(0x102)]();this[_0xaef031(0x103)]=this[_0xaef031(0x106)](_0x201405);}[_0x220e49(0xfe)](){const _0x16645f=_0x220e49;this[_0x16645f(0xf1)]&&(this[_0x16645f(0xf6)](_0x16645f(0xf0)),this[_0x16645f(0xf1)]=void 0x0);const _0x30da3e=this[_0x16645f(0xee)][_0x16645f(0xe7)][_0x16645f(0x104)][_0x16645f(0x101)][_0x16645f(0x102)]();_0x30da3e&&(_0x30da3e['is'](_0x16645f(0xea),_0x16645f(0xf5))||_0x30da3e['is'](_0x16645f(0xea),_0x16645f(0xfc)))&&(this[_0x16645f(0xf1)]=new _0x5bfb0c(this[_0x16645f(0xee)],this[_0x16645f(0xee)][_0x16645f(0xfd)][_0x16645f(0x105)](_0x30a336),_0x30da3e),this[_0x16645f(0xfa)](_0x16645f(0xf0))['to'](this[_0x16645f(0xf1)],_0x16645f(0xf0)));}}function _0x1c4d(){const _0x30840a=['604703xPmETE','imageInline','plugins','execute','refresh','36XRaTFX','selection','getSelectedElement','isEnabled','document','get','_isEditable','142310OShFtb','1558312bflTPw','model','config','19528hsFAZM','element','639944nWZeaO','1897QEWcWI','uploadcare.allowExternalImagesEditing','editor','636SwDols','isActive','imageEditController','9XJoalO','243775AoBkIU','1629864zncJQK','imageBlock','unbind','2kWDAyM','requires','set','bind'];_0x1c4d=function(){return _0x30840a;};return _0x1c4d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dfb0a=_0x13f6;(function(_0x8b7fb0,_0x45e8d0){const _0xb2fa63=_0x13f6,_0x52077f=_0x8b7fb0();while(!![]){try{const _0x1e8b34=-parseInt(_0xb2fa63(0x18b))/0x1*(parseInt(_0xb2fa63(0x18d))/0x2)+parseInt(_0xb2fa63(0x18e))/0x3*(parseInt(_0xb2fa63(0x183))/0x4)+-parseInt(_0xb2fa63(0x187))/0x5+-parseInt(_0xb2fa63(0x181))/0x6+-parseInt(_0xb2fa63(0x192))/0x7+parseInt(_0xb2fa63(0x193))/0x8*(-parseInt(_0xb2fa63(0x190))/0x9)+parseInt(_0xb2fa63(0x17f))/0xa;if(_0x1e8b34===_0x45e8d0)break;else _0x52077f['push'](_0x52077f['shift']());}catch(_0x23e1ea){_0x52077f['push'](_0x52077f['shift']());}}}(_0xb994,0x7095e));import{Plugin as _0x27931c}from'ckeditor5/src/core.js';function _0x13f6(_0x264e6a,_0x3cb68f){const _0xb994d=_0xb994();return _0x13f6=function(_0x13f669,_0x480c7c){_0x13f669=_0x13f669-0x17e;let _0x5d1022=_0xb994d[_0x13f669];return _0x5d1022;},_0x13f6(_0x264e6a,_0x3cb68f);}import{Notification as _0x3ea9cc}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x30fc74}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2d88b6}from'./uploadcareimagereplacecommand.js';function _0xb994(){const _0x285538=['288114efAVNC','ImageUtils','1459467WlwaRM','isOfficialPlugin','1488928ZtbSMz','8tpndYs','pluginName','19879590qAPpQj','add','5231100OkQypA','uploadcareImageReplace','20QEXxqQ','uploadcareImageEdit','UploadcareImageEditEditing','init','1387455yhBGsj','requires','ImageEditing','commands','1523FBmLTl','isPremiumPlugin','634HiSgpJ'];_0xb994=function(){return _0x285538;};return _0xb994();}import{UploadcareEditing as _0x490448}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x27931c{static get[_0x1dfb0a(0x17e)](){const _0x4ebc83=_0x1dfb0a;return _0x4ebc83(0x185);}static get[_0x1dfb0a(0x188)](){const _0x3ce57f=_0x1dfb0a;return[_0x490448,_0x3ea9cc,_0x3ce57f(0x18f),_0x3ce57f(0x189)];}static get[_0x1dfb0a(0x191)](){return!0x0;}static get[_0x1dfb0a(0x18c)](){return!0x0;}[_0x1dfb0a(0x186)](){const _0x1317f5=_0x1dfb0a,{editor:_0x390448}=this;_0x390448[_0x1317f5(0x18a)][_0x1317f5(0x180)](_0x1317f5(0x184),new _0x30fc74(_0x390448)),_0x390448[_0x1317f5(0x18a)][_0x1317f5(0x180)](_0x1317f5(0x182),new _0x2d88b6(_0x390448));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5c8f9b}from'ckeditor5/src/core.js';import{ButtonView as _0x3a6d6d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1f36a1}from'ckeditor5/src/icons.js';import{createElement as _0x2e2b09}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 _0x5c8f9b{['_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 _0x3d4f5d=this['editor'];_0x3d4f5d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x53f785=>{const _0x55a3fa=_0x3d4f5d['commands']['get']('uploadcareImageEdit'),_0x2180de=new _0x3a6d6d(_0x53f785),t=_0x53f785['t'];return _0x2180de['set']({'icon':_0x1f36a1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2180de['bind']('isEnabled')['to'](_0x55a3fa),_0x2180de['bind']('isOn')['to'](_0x55a3fa,'isActive'),this['listenTo'](_0x2180de,'execute',()=>{_0x3d4f5d['execute']('uploadcareImageEdit'),_0x3d4f5d['editing']['view']['focus']();}),_0x2180de;}),this['_initConfig']();}['_initConfig'](){const _0x5909bb=_0x2e2b09(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5909bb),this['listenTo'](this['editor'],'destroy',()=>{_0x5909bb['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5327(){const _0x4e1835=['2198TkkjkF','change','8axKWoD','isEnabled','172310edTTTM','346225sIqLul','2698956vDpOOZ','setAttributes','refresh','1007730LWYpGp','getSelectedElement','document','sizes','srcset','execute','imageInline','model','1476063nQDtyL','selection','imageBlock','removeAttribute','108kkiOuI','13738RcfYRO','element','10368Tlprzm','editor','61fdQMjK','33aWmToJ'];_0x5327=function(){return _0x4e1835;};return _0x5327();}const _0x3d02f5=_0x7255;(function(_0x39f318,_0x465687){const _0x4b1c97=_0x7255,_0x1395b6=_0x39f318();while(!![]){try{const _0x1ec800=parseInt(_0x4b1c97(0x100))/0x1*(-parseInt(_0x4b1c97(0xfc))/0x2)+-parseInt(_0x4b1c97(0xf7))/0x3+-parseInt(_0x4b1c97(0x104))/0x4*(-parseInt(_0x4b1c97(0x107))/0x5)+parseInt(_0x4b1c97(0x10b))/0x6+parseInt(_0x4b1c97(0x102))/0x7*(parseInt(_0x4b1c97(0xfe))/0x8)+-parseInt(_0x4b1c97(0xfb))/0x9*(parseInt(_0x4b1c97(0x106))/0xa)+-parseInt(_0x4b1c97(0x101))/0xb*(-parseInt(_0x4b1c97(0x108))/0xc);if(_0x1ec800===_0x465687)break;else _0x1395b6['push'](_0x1395b6['shift']());}catch(_0x17e934){_0x1395b6['push'](_0x1395b6['shift']());}}}(_0x5327,0x41ff6));import{Command as _0x142989}from'ckeditor5/src/core.js';function _0x7255(_0x3ef45e,_0x213fa8){const _0x532775=_0x5327();return _0x7255=function(_0x72557d,_0x3c5371){_0x72557d=_0x72557d-0xf0;let _0x34854a=_0x532775[_0x72557d];return _0x34854a;},_0x7255(_0x3ef45e,_0x213fa8);}export class UploadcareImageReplaceCommand extends _0x142989{[_0x3d02f5(0x10a)](){const _0x13ea59=_0x3d02f5,_0x4ef1fc=this[_0x13ea59(0xff)][_0x13ea59(0xf6)][_0x13ea59(0xf1)][_0x13ea59(0xf8)][_0x13ea59(0xf0)]();this[_0x13ea59(0x105)]=Boolean(_0x4ef1fc&&(_0x4ef1fc['is'](_0x13ea59(0xfd),_0x13ea59(0xf9))||_0x4ef1fc['is'](_0x13ea59(0xfd),_0x13ea59(0xf5))));}[_0x3d02f5(0xf4)](_0x528432){const _0x1fc9d3=_0x3d02f5,_0x2119af=this[_0x1fc9d3(0xff)][_0x1fc9d3(0xf6)][_0x1fc9d3(0xf1)][_0x1fc9d3(0xf8)][_0x1fc9d3(0xf0)]();this[_0x1fc9d3(0xff)][_0x1fc9d3(0xf6)][_0x1fc9d3(0x103)](_0x51bf63=>{const _0x4b4e4e=_0x1fc9d3;_0x51bf63[_0x4b4e4e(0x109)](_0x528432,_0x2119af),_0x51bf63[_0x4b4e4e(0xfa)](_0x4b4e4e(0xf3),_0x2119af),_0x51bf63[_0x4b4e4e(0xfa)](_0x4b4e4e(0xf2),_0x2119af);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5619e2=_0x2b37;(function(_0x228077,_0x3a49e2){var _0x31360d=_0x2b37,_0x48c71e=_0x228077();while(!![]){try{var _0x8f852f=parseInt(_0x31360d(0x1ed))/0x1*(parseInt(_0x31360d(0x1e0))/0x2)+-parseInt(_0x31360d(0x1f0))/0x3*(parseInt(_0x31360d(0x1ef))/0x4)+-parseInt(_0x31360d(0x1eb))/0x5*(parseInt(_0x31360d(0x1ee))/0x6)+parseInt(_0x31360d(0x1e7))/0x7+parseInt(_0x31360d(0x1e2))/0x8*(parseInt(_0x31360d(0x1e5))/0x9)+parseInt(_0x31360d(0x1e1))/0xa*(-parseInt(_0x31360d(0x1e4))/0xb)+parseInt(_0x31360d(0x1ec))/0xc*(parseInt(_0x31360d(0x1e6))/0xd);if(_0x8f852f===_0x3a49e2)break;else _0x48c71e['push'](_0x48c71e['shift']());}catch(_0x206032){_0x48c71e['push'](_0x48c71e['shift']());}}}(_0x1566,0xafa12));import{Plugin as _0x14f9a5}from'ckeditor5/src/core.js';function _0x2b37(_0x49d2ae,_0x321b4d){var _0x156655=_0x1566();return _0x2b37=function(_0x2b3718,_0x293cb5){_0x2b3718=_0x2b3718-0x1df;var _0x590572=_0x156655[_0x2b3718];return _0x590572;},_0x2b37(_0x49d2ae,_0x321b4d);}import{UploadcareImageEditEditing as _0x1a897e}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x1566(){var _0x2eeb41=['isOfficialPlugin','155kGsJIO','12fmTmCW','11589MuMEWz','209994TaIvib','76256SxhJBr','123LlfKwB','UploadcareImageEdit','50DFcFHQ','1483290sZxYqO','8ReSJFe','requires','44qIbZcl','1701387qbkgWe','27992874xyYMNf','3830547NPvrHL','isPremiumPlugin','pluginName'];_0x1566=function(){return _0x2eeb41;};return _0x1566();}import{UploadcareImageEditUI as _0x2023db}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x14f9a5{static get[_0x5619e2(0x1e9)](){var _0x43f028=_0x5619e2;return _0x43f028(0x1df);}static get[_0x5619e2(0x1e3)](){return[_0x1a897e,_0x2023db];}static get[_0x5619e2(0x1ea)](){return!0x0;}static get[_0x5619e2(0x1e8)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3349a4=_0x31fc;function _0x367a(){const _0x420de3=['UploadcareUI','44560EVlNPJ','uploadcare.uploader.sourceList','assetManager','init','push','_showLicenseError','featureNotAllowed','evaluationLimit','uploadcareLicenseKeyValid','uploadcareLicenseKeyEvaluationLimit','Replace','URL','upload','536856Aiynfl','url','Local','7roAEGT','_createMenuBarButtons','Uploadcare','destroy','GDrive','_getIntegrationKey','Dropbox','uploadcareLicenseKeyInvalid','isPremiumPlugin','572DBRJVh','config','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyTrialLimit','shortText','execute','afterInit','550296fiGunV','uploadcareLicenseKeyExpired','map','_licenseKeyCheckInterval','11853171BJavIh','withText','_createButton','OneDrive','uploadcare','2468778DdIKfi','_createDropdownButtons','entries','get','usageLimit','licenseKey','isImageSelected','tooltip','pluginName','Insert','registerIntegration','bind','type','icon','plugins','invalid','uploadcareLicenseKeyDomainLimit','12453104ktlcRW','_createToolbarButton','has','text','trialLimit','Facebook','isOfficialPlugin','editor','domainLimit','uploadcareLicenseKeyNotAllowed','forEach','4502214GEAqda','label','GPhotos','isEnabled','reduce','ImageInsertUI','commands','_normalizeConfigSourceList','expired','locale'];_0x367a=function(){return _0x420de3;};return _0x367a();}(function(_0x9351ae,_0x98082f){const _0x5c62dc=_0x31fc,_0x3b3ce7=_0x9351ae();while(!![]){try{const _0x1c03bc=-parseInt(_0x5c62dc(0x169))/0x1+parseInt(_0x5c62dc(0x135))/0x2+-parseInt(_0x5c62dc(0x17c))/0x3+parseInt(_0x5c62dc(0x175))/0x4*(parseInt(_0x5c62dc(0x15c))/0x5)+-parseInt(_0x5c62dc(0x151))/0x6*(parseInt(_0x5c62dc(0x16c))/0x7)+-parseInt(_0x5c62dc(0x146))/0x8+parseInt(_0x5c62dc(0x130))/0x9;if(_0x1c03bc===_0x98082f)break;else _0x3b3ce7['push'](_0x3b3ce7['shift']());}catch(_0x2a43c0){_0x3b3ce7['push'](_0x3b3ce7['shift']());}}}(_0x367a,0xc2f41));import{Plugin as _0x54c383}from'ckeditor5/src/core.js';import{IconDropbox as _0x2de7cf,IconFacebook as _0x1abbb2,IconGoogleDrive as _0x5c3a2f,IconGooglePhotos as _0xd12100,IconUploadcareImageUpload as _0x4ce870,IconUploadcareLink as _0x308b3f,IconOneDrive as _0x4792ab}from'ckeditor5/src/icons.js';import{ButtonView as _0x114900,MenuBarMenuListItemButtonView as _0x2c1870}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x18d29f}from'./uploadcareconfig.js';import{getTranslation as _0x165f29}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x31fc(_0x122647,_0x43d196){const _0x367af0=_0x367a();return _0x31fc=function(_0x31fca1,_0xcdf7cf){_0x31fca1=_0x31fca1-0x130;let _0x499066=_0x367af0[_0x31fca1];return _0x499066;},_0x31fc(_0x122647,_0x43d196);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x54c383{[_0x3349a4(0x13a)];[_0x3349a4(0x17f)];static get[_0x3349a4(0x13d)](){const _0x273115=_0x3349a4;return _0x273115(0x15b);}static get[_0x3349a4(0x14c)](){return!0x0;}static get[_0x3349a4(0x174)](){return!0x0;}[_0x3349a4(0x15f)](){const _0x579c76=_0x3349a4;this[_0x579c76(0x13a)]=this[_0x579c76(0x14d)][_0x579c76(0x176)][_0x579c76(0x138)](_0x579c76(0x13a));const _0x4e86db=this[_0x579c76(0x14d)];this[_0x579c76(0x17f)]=setInterval(()=>{const _0x43e6ac=_0x579c76;let _0x3e3b47;for(const _0x1a7aa8 in _0x4e86db){const _0xb4798f=_0x1a7aa8,_0x2bcc57=_0x4e86db[_0xb4798f];if(_0x43e6ac(0x164)==_0x2bcc57||_0x43e6ac(0x173)==_0x2bcc57||_0x43e6ac(0x17d)==_0x2bcc57||_0x43e6ac(0x145)==_0x2bcc57||_0x43e6ac(0x14f)==_0x2bcc57||_0x43e6ac(0x165)==_0x2bcc57||_0x43e6ac(0x178)==_0x2bcc57||_0x43e6ac(0x177)==_0x2bcc57){delete _0x4e86db[_0xb4798f],_0x3e3b47=_0x2bcc57,clearInterval(this[_0x43e6ac(0x17f)]),this[_0x43e6ac(0x17f)]=void 0x0;break;}}_0x43e6ac(0x173)==_0x3e3b47&&_0x4e86db[_0x43e6ac(0x161)](_0x43e6ac(0x144)),_0x43e6ac(0x17d)==_0x3e3b47&&_0x4e86db[_0x43e6ac(0x161)](_0x43e6ac(0x159)),_0x43e6ac(0x145)==_0x3e3b47&&_0x4e86db[_0x43e6ac(0x161)](_0x43e6ac(0x14e)),_0x43e6ac(0x14f)==_0x3e3b47&&_0x4e86db[_0x43e6ac(0x161)](_0x43e6ac(0x162),_0x43e6ac(0x16e)),_0x43e6ac(0x165)==_0x3e3b47&&_0x4e86db[_0x43e6ac(0x161)](_0x43e6ac(0x163)),_0x43e6ac(0x178)==_0x3e3b47&&_0x4e86db[_0x43e6ac(0x161)](_0x43e6ac(0x14a)),_0x43e6ac(0x177)==_0x3e3b47&&_0x4e86db[_0x43e6ac(0x161)](_0x43e6ac(0x139));},0x3e8);}[_0x3349a4(0x17b)](){const _0x32b874=_0x3349a4,{editor:_0x40fb8a}=this,_0x3e04a1=_0x40fb8a[_0x32b874(0x157)][_0x32b874(0x138)](_0x32b874(0x134));if(!_0x3e04a1)return;const _0x39da42=this[_0x32b874(0x158)](_0x40fb8a[_0x32b874(0x176)][_0x32b874(0x138)](_0x32b874(0x15d)))[_0x32b874(0x155)]((_0x62296e,_0xcfc299)=>{const _0x11127c=_0x32b874,_0x2f233f=this[_0x11127c(0x171)](_0xcfc299[_0x11127c(0x141)]);return _0x62296e[_0x2f233f]||(_0x62296e[_0x2f233f]=[]),_0x62296e[_0x2f233f][_0x11127c(0x160)](_0xcfc299),_0x62296e;},{});_0x40fb8a[_0x32b874(0x143)][_0x32b874(0x148)](_0x32b874(0x156))&&_0x40fb8a[_0x32b874(0x157)][_0x32b874(0x138)](_0x32b874(0x134))&&Object[_0x32b874(0x137)](_0x39da42)[_0x32b874(0x150)](([_0x1e1f41,_0x3d6b19])=>{const _0x20d772=_0x32b874;_0x40fb8a[_0x20d772(0x143)][_0x20d772(0x138)](_0x20d772(0x156))[_0x20d772(0x13f)]({'name':_0x1e1f41,'observable':()=>_0x3e04a1,'buttonViewCreator':()=>this[_0x20d772(0x147)](_0x3d6b19),'formViewCreator':()=>this[_0x20d772(0x136)](_0x3d6b19),'menuBarButtonViewCreator':()=>this[_0x20d772(0x16d)](_0x3d6b19),'override':_0x20d772(0x15e)!==_0x1e1f41});});}[_0x3349a4(0x16f)](){const _0x455383=_0x3349a4;super[_0x455383(0x16f)](),this[_0x455383(0x17f)]&&clearInterval(this[_0x455383(0x17f)]);}[_0x3349a4(0x158)](_0x235bc4){const _0x4d3801=_0x3349a4,{locale:_0x4fb5c7}=this[_0x4d3801(0x14d)];return _0x235bc4[_0x4d3801(0x17e)](_0x40dcf3=>{const _0x1fe7aa=_0x4d3801,_0x32ff37=_0x165f29(_0x4fb5c7,_0x40dcf3,_0x1fe7aa(0x13e));switch(_0x40dcf3){case _0x18d29f[_0x1fe7aa(0x16b)]:return{'icon':_0x4ce870,'type':_0x18d29f[_0x1fe7aa(0x16b)],..._0x32ff37};case _0x18d29f[_0x1fe7aa(0x167)]:return{'icon':_0x308b3f,'type':_0x18d29f[_0x1fe7aa(0x167)],..._0x32ff37};case _0x18d29f[_0x1fe7aa(0x172)]:return{'icon':_0x2de7cf,'type':_0x18d29f[_0x1fe7aa(0x172)],..._0x32ff37};case _0x18d29f[_0x1fe7aa(0x14b)]:return{'icon':_0x1abbb2,'type':_0x18d29f[_0x1fe7aa(0x14b)],..._0x32ff37};case _0x18d29f[_0x1fe7aa(0x170)]:return{'icon':_0x5c3a2f,'type':_0x18d29f[_0x1fe7aa(0x170)],..._0x32ff37};case _0x18d29f[_0x1fe7aa(0x153)]:return{'icon':_0xd12100,'type':_0x18d29f[_0x1fe7aa(0x153)],..._0x32ff37};case _0x18d29f[_0x1fe7aa(0x133)]:return{'icon':_0x4792ab,'type':_0x18d29f[_0x1fe7aa(0x133)],..._0x32ff37};}});}[_0x3349a4(0x171)](_0x1b83a6){const _0x558ab4=_0x3349a4;switch(_0x1b83a6){case _0x18d29f[_0x558ab4(0x16b)]:return _0x558ab4(0x168);case _0x18d29f[_0x558ab4(0x167)]:return _0x558ab4(0x16a);default:return _0x558ab4(0x15e);}}[_0x3349a4(0x132)](_0x28da71,_0x16eb1a){const _0x28f2e1=_0x3349a4,_0x2ea4ad=this[_0x28f2e1(0x14d)],_0x50ed7d=new _0x28da71(_0x2ea4ad[_0x28f2e1(0x15a)]),_0x18f028=_0x2ea4ad[_0x28f2e1(0x157)][_0x28f2e1(0x138)](_0x28f2e1(0x134));return _0x50ed7d[_0x28f2e1(0x140)](_0x28f2e1(0x154))['to'](_0x18f028),_0x50ed7d['on'](_0x28f2e1(0x17a),()=>{const _0x54e473=_0x28f2e1;_0x18f028[_0x54e473(0x17a)](_0x16eb1a);}),_0x50ed7d;}[_0x3349a4(0x147)](_0x37821b){const _0x871b01=_0x3349a4,{locale:_0x5d0f6e}=this[_0x871b01(0x14d)],_0x41a766=this[_0x871b01(0x14d)][_0x871b01(0x143)][_0x871b01(0x138)](_0x871b01(0x156)),_0x448486=_0x37821b[0x0],_0x5a64fc=this[_0x871b01(0x132)](_0x114900,_0x448486[_0x871b01(0x141)]);return _0x5a64fc[_0x871b01(0x142)]=_0x448486[_0x871b01(0x142)],_0x5a64fc[_0x871b01(0x140)](_0x871b01(0x152))['to'](_0x41a766,_0x871b01(0x13b),_0x15117c=>_0x165f29(_0x5d0f6e,_0x448486[_0x871b01(0x141)],_0x15117c?_0x871b01(0x166):_0x871b01(0x13e))[_0x871b01(0x149)]),_0x5a64fc[_0x871b01(0x13c)]=!0x0,_0x5a64fc;}[_0x3349a4(0x136)](_0x361a92){const _0x1be4da=_0x3349a4,{locale:_0x3feb31}=this[_0x1be4da(0x14d)],_0x46f654=this[_0x1be4da(0x14d)][_0x1be4da(0x143)][_0x1be4da(0x138)](_0x1be4da(0x156));return _0x361a92[_0x1be4da(0x17e)](_0x1f4f89=>{const _0xc81d0e=_0x1be4da,_0x117499=this[_0xc81d0e(0x132)](_0x114900,_0x1f4f89[_0xc81d0e(0x141)]);return _0x117499[_0xc81d0e(0x131)]=!0x0,_0x117499[_0xc81d0e(0x142)]=_0x1f4f89[_0xc81d0e(0x142)],_0x117499[_0xc81d0e(0x140)](_0xc81d0e(0x152))['to'](_0x46f654,_0xc81d0e(0x13b),_0x2c7409=>_0x165f29(_0x3feb31,_0x1f4f89[_0xc81d0e(0x141)],_0x2c7409?_0xc81d0e(0x166):_0xc81d0e(0x13e))[_0xc81d0e(0x149)]),_0x117499;});}[_0x3349a4(0x16d)](_0x21b0e2){const _0x272370=_0x3349a4;return _0x21b0e2[_0x272370(0x17e)](_0x223ef4=>{const _0x1e1a7c=_0x272370,_0x14fc92=this[_0x1e1a7c(0x132)](_0x2c1870,_0x223ef4[_0x1e1a7c(0x141)]);return _0x14fc92[_0x1e1a7c(0x142)]=_0x223ef4[_0x1e1a7c(0x142)],_0x14fc92[_0x1e1a7c(0x152)]=_0x223ef4[_0x1e1a7c(0x179)],_0x14fc92;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5b634d}from'ckeditor5/src/core.js';import{FileRepository as _0x351601}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x54b2c1}from'./uploadcareediting.js';import{UploadUtils as _0x2650b9}from'./utils/uploadutils.js';import{getImageUrls as _0x1033fe}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5b634d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x351601,_0x54b2c1];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x49bfa0=this['editor'];if(!!!_0x49bfa0['config']['get']('uploadcare'))return;_0x49bfa0['plugins']['get'](_0x351601)['createUploadAdapter']=_0x6c59a5=>new A(_0x6c59a5,_0x49bfa0),_0x49bfa0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x35a8be,{imageElement:_0x26b34c,data:_0x42637a})=>{_0x49bfa0['model']['change'](_0x551a78=>{_0x551a78['setAttribute']('uploadcareImageId',_0x42637a['uploadcareImageId'],_0x26b34c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x21e775,_0x31055c){this['loader']=_0x21e775,this['editor']=_0x31055c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3a2f9b=this['editor']['config']['get']('uploadcare.pubkey'),_0x403102=await this['loader']['file'];return _0x2650b9['upload']({'file':_0x403102,'publicKey':_0x3a2f9b,'signal':this['controller']['signal'],'onProgress':_0x36cac0=>{_0x36cac0&&_0x36cac0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x36cac0['value']);}})['then'](async _0x302a8d=>{const {imageFallbackUrl:_0x52e6db,imageSources:_0x370c4b}=_0x1033fe(_0x302a8d['cdnUrl'],_0x302a8d['imageInfo']['width']);return{'uploadcareImageId':_0x302a8d['uuid'],'default':_0x52e6db,'sources':_0x370c4b};})['catch'](()=>{const _0x28e270=t('Cannot\x20upload\x20file:')+('\x20'+_0x403102['name']+'.');return Promise['reject'](_0x28e270);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x14705e}from'../uploadcareconfig.js';export function getTranslation(_0x36cee0,_0x487788,_0x3dae87){const t=_0x36cee0['t'],_0x263340=_0x36cee0['t'];switch(_0x487788){case _0x14705e['Local']:return{'text':_0x263340('Insert'===_0x3dae87?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x263340('From\x20computer')};case _0x14705e['URL']:return{'text':'Insert'===_0x3dae87?_0x263340('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x263340('Via\x20URL')};case _0x14705e['Dropbox']:return{'text':t('Insert'===_0x3dae87?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x14705e['Facebook']:return{'text':t('Insert'===_0x3dae87?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x14705e['GDrive']:return{'text':t('Insert'===_0x3dae87?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x14705e['GPhotos']:return{'text':t('Insert'===_0x3dae87?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x14705e['OneDrive']:return{'text':t('Insert'===_0x3dae87?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x487788;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x33f357=_0x509e;(function(_0x4c0d5a,_0x87a639){var _0x25c275=_0x509e,_0x3d6fdc=_0x4c0d5a();while(!![]){try{var _0x8bad81=parseInt(_0x25c275(0x1ba))/0x1*(-parseInt(_0x25c275(0x1c3))/0x2)+parseInt(_0x25c275(0x1cd))/0x3+-parseInt(_0x25c275(0x1c0))/0x4*(parseInt(_0x25c275(0x1bf))/0x5)+parseInt(_0x25c275(0x1c2))/0x6*(parseInt(_0x25c275(0x1cb))/0x7)+-parseInt(_0x25c275(0x1c7))/0x8+-parseInt(_0x25c275(0x1c6))/0x9*(-parseInt(_0x25c275(0x1bd))/0xa)+parseInt(_0x25c275(0x1c1))/0xb*(-parseInt(_0x25c275(0x1c5))/0xc);if(_0x8bad81===_0x87a639)break;else _0x3d6fdc['push'](_0x3d6fdc['shift']());}catch(_0x1a8cf1){_0x3d6fdc['push'](_0x3d6fdc['shift']());}}}(_0x3058,0x48be6));import{FocusTracker as _0x630dd9}from'ckeditor5/src/utils.js';import{View as _0x416140,FocusCycler as _0xb48ed6}from'ckeditor5/src/ui.js';function _0x509e(_0x12ca36,_0x2e21c8){var _0x3058ec=_0x3058();return _0x509e=function(_0x509e6f,_0x5b5826){_0x509e6f=_0x509e6f-0x1b9;var _0x12baf3=_0x3058ec[_0x509e6f];return _0x12baf3;},_0x509e(_0x12ca36,_0x2e21c8);}function _0x3058(){var _0x1adb11=['5bWHEJO','1198564BpPgms','11uVMjUr','448860WstRZh','80894XVZqlR','div','2733564uMONYk','171BEtwCy','2840936qqEfFy','fire','createCollection','forwardCycle','14UrkOOT','focusTracker','1673184MMAfDL','getFocusableElement','2MYvTZU','bindTemplate','true','291610bVkGir','focusCycler'];_0x3058=function(){return _0x1adb11;};return _0x3058();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x416140{[_0x33f357(0x1cc)];[_0x33f357(0x1be)];constructor(_0x5d332e){var _0x594ceb=_0x33f357;super(_0x5d332e),this[_0x594ceb(0x1cc)]=new _0x630dd9(),this[_0x594ceb(0x1be)]=new _0xb48ed6({'focusables':this[_0x594ceb(0x1c9)](),'focusTracker':this[_0x594ceb(0x1cc)]});}[_0x33f357(0x1b9)](){var _0x8436a=_0x33f357;return{'tag':_0x8436a(0x1c4),'attributes':{'aria-hidden':_0x8436a(0x1bc),'tabindex':'0'},'on':{'focus':this[_0x8436a(0x1bb)]['to'](()=>{var _0x5a3aad=_0x8436a;this[_0x5a3aad(0x1be)][_0x5a3aad(0x1c8)](_0x5a3aad(0x1ca));})}};}}
|