@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251215.0 → 0.0.0-nightly-20251216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3c6bfb=_0x5987;function _0x4c7d(){const _0x3a2772=['209DFJJJU','locale','join','commands','2742IBFauf','querySelector','schema','14745888PiUMTC','conversion','uploadcareImageReplace','uploadcare','isPremiumPlugin','href','_initConfig','config','getSelectedElement','body','removeAttribute','uploadcareImageId','12715YYxzUs','102010nVggvU','true','data-uc-image-id','ctxElement','imageInline','for','model','replaceImageSource','upcast','afterInit','isRegistered','5062fpxLFi','PictureEditing','uploadcare.uploader','cleanupImage','insertImage','378432TBCckR','_initImageProcessingIndicator','UploadcareEditing','366807bWNbij','once','988SkvSgm','#uc-icon-arrow-down','listenTo','ucContextId','view','fromCharCode','getAttribute','render','_initSchema','imageBlock','_configElement','configElement','8YGCSFs','iconHrefResolver','uc-upload-ctx-provider','elementToAttribute','destroy','downcast','isOfficialPlugin','get','execute','uc-config','96dnHrfN','init','contentLanguage','editor','selection','uploadcare.pubkey','add','appendChild','pluginName','requires','attributeToAttribute','_initConversion','input[uploadcare-file-input]','remove','closeMax','_ctxElement','map','editing','_initCtx','extend','document','12213ljbkZA','\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','uploader-'];_0x4c7d=function(){return _0x3a2772;};return _0x4c7d();}function _0x5987(_0x52c577,_0x1341f9){const _0x4c7d75=_0x4c7d();return _0x5987=function(_0x598792,_0x413475){_0x598792=_0x598792-0xc3;let _0x5ebade=_0x4c7d75[_0x598792];return _0x5ebade;},_0x5987(_0x52c577,_0x1341f9);}(function(_0xcc831f,_0x1a76fd){const _0x345865=_0x5987,_0x1eedab=_0xcc831f();while(!![]){try{const _0x120434=-parseInt(_0x345865(0x108))/0x1*(parseInt(_0x345865(0xe8))/0x2)+-parseInt(_0x345865(0xc6))/0x3*(-parseInt(_0x345865(0xf2))/0x4)+-parseInt(_0x345865(0xdc))/0x5*(parseInt(_0x345865(0xcd))/0x6)+parseInt(_0x345865(0xf0))/0x7*(parseInt(_0x345865(0xfe))/0x8)+-parseInt(_0x345865(0xed))/0x9+-parseInt(_0x345865(0xdd))/0xa*(parseInt(_0x345865(0xc9))/0xb)+parseInt(_0x345865(0xd0))/0xc;if(_0x120434===_0x1a76fd)break;else _0x1eedab['push'](_0x1eedab['shift']());}catch(_0x4739ed){_0x1eedab['push'](_0x1eedab['shift']());}}}(_0x4c7d,0x9da88));import{Plugin as _0x11446b}from'ckeditor5/src/core.js';import{Dialog as _0x5962f4}from'ckeditor5/src/ui.js';import{createElement as _0x51c9c8,global as _0xbf63ae,uid as _0x259339}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1b76af}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x29986c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d822a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x11446b{[_0x3c6bfb(0xfc)]=null;[_0x3c6bfb(0x117)]=null;static get[_0x3c6bfb(0x110)](){const _0x3fedbf=_0x3c6bfb;return _0x3fedbf(0xef);}static get[_0x3c6bfb(0x111)](){const _0x3ba88b=_0x3c6bfb;return[_0x3ba88b(0xe9),_0x29986c,_0x5962f4];}static get[_0x3c6bfb(0x104)](){return!0x0;}static get[_0x3c6bfb(0xd4)](){return!0x0;}[_0x3c6bfb(0xf5)];get[_0x3c6bfb(0xfd)](){const _0x5d1abd=_0x3c6bfb;return this[_0x5d1abd(0xfc)];}get[_0x3c6bfb(0xe0)](){const _0x1a54ab=_0x3c6bfb;return this[_0x1a54ab(0x117)];}constructor(_0x65ca80){const _0x31962c=_0x3c6bfb;super(_0x65ca80),this[_0x31962c(0xf5)]=_0x259339();}[_0x3c6bfb(0x109)](){const _0x4a2610=_0x3c6bfb,_0x2d6e40=this[_0x4a2610(0x10b)];_0x2d6e40[_0x4a2610(0xcc)][_0x4a2610(0x10e)](_0x4a2610(0xd3),new _0x1b76af(_0x2d6e40));}[_0x3c6bfb(0xe6)](){const _0x2b91e4=_0x3c6bfb;this[_0x2b91e4(0xfa)](),this[_0x2b91e4(0x113)](),this[_0x2b91e4(0xd6)](),this[_0x2b91e4(0xc3)](),this[_0x2b91e4(0xee)](),this[_0x2b91e4(0xf4)](this[_0x2b91e4(0x10b)],_0x2b91e4(0x102),()=>{const _0x3f48b6=_0x2b91e4;this[_0x3f48b6(0xfc)]&&(this[_0x3f48b6(0xfc)][_0x3f48b6(0x115)](),this[_0x3f48b6(0xfc)]=null),this[_0x3f48b6(0x117)]&&(this[_0x3f48b6(0x117)][_0x3f48b6(0x115)](),this[_0x3f48b6(0x117)]=null);const _0x5bfe28=_0xbf63ae[_0x3f48b6(0xc5)][_0x3f48b6(0xce)](_0x3f48b6(0x114));_0x5bfe28&&_0x5bfe28[_0x3f48b6(0x115)]();}),async function(_0x265371){const _0x19d234=_0x545daa([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4ca00f=0x535f8c3a,_0x449a45=0x5358f7c2^_0x4ca00f,_0xc4e53c=window[_0x545daa([0x44,0x61,0x74,0x65])][_0x545daa([0x6e,0x6f,0x77])](),_0x11414b=_0x265371[_0x545daa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a5601=new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd1bf=>{_0x11414b[_0x545daa([0x6f,0x6e,0x63,0x65])](_0x545daa([0x72,0x65,0x61,0x64,0x79]),_0x3dd1bf);}),_0x25d052={[_0x545daa([0x6b,0x74,0x79])]:_0x545daa([0x45,0x43]),[_0x545daa([0x75,0x73,0x65])]:_0x545daa([0x73,0x69,0x67]),[_0x545daa([0x63,0x72,0x76])]:_0x545daa([0x50,0x2d,0x32,0x35,0x36]),[_0x545daa([0x78])]:_0x545daa([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]),[_0x545daa([0x79])]:_0x545daa([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]),[_0x545daa([0x61,0x6c,0x67])]:_0x545daa([0x45,0x53,0x32,0x35,0x36])},_0x1b526c=_0x11414b[_0x545daa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x545daa([0x67,0x65,0x74])](_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39c691(){let _0x2a2ed9,_0x2ea200=null,_0xf971e4=null;try{if(_0x1b526c==_0x545daa([0x47,0x50,0x4c]))return _0x545daa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a2ed9=_0x391644(),!_0x2a2ed9)return _0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a2ed9[_0x545daa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf971e4=_0x526a5d(_0x2a2ed9[_0x545daa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a2ed9[_0x545daa([0x6a,0x74,0x69])])),await _0x214af1()?_0x1df27c()?_0x3676d8()?_0x545daa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f4990()?(_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545daa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ea200=_0x33d9ea(_0x545daa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545daa([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ea200=_0x33d9ea(_0x545daa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x438b35()):_0x545daa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x545daa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3676d8(){const _0x5bcb31=[_0x545daa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x545daa([0x74,0x72,0x69,0x61,0x6c])][_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc4e53c/0x3e8:0xe10*_0x449a45;return _0x2a2ed9[_0x545daa([0x65,0x78,0x70])]<_0x5bcb31;}function _0x1df27c(){const _0x2d927a=_0x2a2ed9[_0x545daa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d927a&&(!!_0x2d927a[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x2a]))||!!_0x2d927a[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x55,0x50,0x4c,0x43])));}function _0x2f4990(){const _0x1c4b69=_0x5987,_0x4527d2=_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4527d2||0x0==_0x4527d2[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf5cbe2}=new URL(window[_0x545daa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c4b69(0xd5)]);if(_0x4527d2[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf5cbe2))return!0x0;const _0x4cf4c8=_0xf5cbe2[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e]));return _0x4527d2[_0x545daa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43563f=>_0x43563f[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x2a])))[_0x545daa([0x6d,0x61,0x70])](_0x18de09=>_0x18de09[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e])))[_0x545daa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f5ff9=>_0x4f5ff9[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4cf4c8[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545daa([0x6d,0x61,0x70])](_0x4771bd=>Array(_0x4cf4c8[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4771bd[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545daa([0x66,0x69,0x6c,0x6c])](_0x4771bd[0x0]===_0x545daa([0x2a])?_0x545daa([0x2a]):'')[_0x545daa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4771bd))[_0x545daa([0x73,0x6f,0x6d,0x65])](_0x2da481=>_0x4cf4c8[_0x545daa([0x65,0x76,0x65,0x72,0x79])]((_0x950b8c,_0x5dc3b0)=>_0x2da481[_0x5dc3b0]===_0x950b8c||_0x2da481[_0x5dc3b0]===_0x545daa([0x2a])));}function _0x438b35(){return _0x2ea200&&_0xf971e4?new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0328,_0x37f493)=>{_0x2ea200[_0x545daa([0x74,0x68,0x65,0x6e])](_0x4f0328,_0x37f493),_0xf971e4[_0x545daa([0x74,0x68,0x65,0x6e])](_0x36f063=>{_0x36f063!=_0x545daa([0x56,0x61,0x6c,0x69,0x64])&&_0x4f0328(_0x36f063);},_0x37f493);}):_0x2ea200||_0xf971e4||_0x545daa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x526a5d(_0x40a240,_0x225233){return new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x152142=>{if(_0x1fda49())return _0x152142(_0x545daa([0x56,0x61,0x6c,0x69,0x64]));_0x56b7a7(),_0x11414b[_0x545daa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c1e11=!0x1;const _0x3bd28c=_0x259339();function _0xda4340(_0x47192c){return!!_0x47192c&&(typeof _0x47192c===_0x545daa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47192c===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47192c[_0x545daa([0x74,0x68,0x65,0x6e])]===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47192c[_0x545daa([0x63,0x61,0x74,0x63,0x68])]===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf3894f(_0x5dbc65){_0x2ea56f(_0x5dbc65)[_0x545daa([0x74,0x68,0x65,0x6e])](_0x42fccf=>{if(!_0x42fccf||_0x42fccf[_0x545daa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x545daa([0x6f,0x6b]))return _0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x221336(_0x5e7990(_0x3bd28c+_0x225233))!=_0x42fccf[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x545daa([0x56,0x61,0x6c,0x69,0x64]);})[_0x545daa([0x74,0x68,0x65,0x6e])](_0x17b14c=>(_0x45dc6a(),_0x17b14c),()=>{const _0x5bbedd=_0x1c5873();return null==_0x5bbedd?(_0x45dc6a(),_0x545daa([0x56,0x61,0x6c,0x69,0x64])):_0x545daa(_0xc4e53c-_0x5bbedd>(0x7753083a^_0x4ca00f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x545daa([0x74,0x68,0x65,0x6e])](_0x152142)[_0x545daa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21870f=0x536962ba^_0x4ca00f;function _0x45dc6a(){const _0xee5bf3=_0x545daa([0x6c,0x6c,0x63,0x74,0x2d])+_0x221336(_0x5e7990(_0x40a240)),_0x48ff80=_0x3e8594(_0x221336(window[_0x545daa([0x4d,0x61,0x74,0x68])][_0x545daa([0x63,0x65,0x69,0x6c])](_0xc4e53c/_0x21870f)));window[_0x545daa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545daa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xee5bf3,_0x48ff80);}function _0x1c5873(){const _0x4d7393=_0x545daa([0x6c,0x6c,0x63,0x74,0x2d])+_0x221336(_0x5e7990(_0x40a240)),_0x4cef83=window[_0x545daa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545daa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d7393);return _0x4cef83?window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e8594(_0x4cef83),0x10)*_0x21870f:null;}function _0x2ea56f(_0x4dec9c){return new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f1f6b,_0x91b53e)=>{_0x4dec9c[_0x545daa([0x74,0x68,0x65,0x6e])](_0x2f1f6b,_0x91b53e),window[_0x545daa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x91b53e,0x535e58fa^_0x4ca00f);});}}_0x11414b[_0x545daa([0x6f,0x6e])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39b80c,_0x14faa9)=>{if(_0x14faa9[0x0]!=_0x40a240)return _0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14faa9[0x1]={..._0x14faa9[0x1],[_0x545daa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bd28c};},{[_0x545daa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545daa([0x68,0x69,0x67,0x68])}),_0x11414b[_0x545daa([0x6f,0x6e])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52cec6=>{_0xda4340(_0x52cec6[_0x545daa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c1e11=!0x0,_0xf3894f(_0x52cec6[_0x545daa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x545daa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545daa([0x6c,0x6f,0x77])}),_0x5a5601[_0x545daa([0x74,0x68,0x65,0x6e])](()=>{_0x5c1e11||_0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fda49(){return _0x11414b[_0x545daa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545daa([0x76,0x69,0x65,0x77])][_0x545daa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x545daa([0x61,0x75,0x74,0x6f]);}function _0x56b7a7(){_0x11414b[_0x545daa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545daa([0x76,0x69,0x65,0x77])][_0x545daa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x545daa([0x61,0x75,0x74,0x6f]);}}function _0x33d9ea(_0x50248b){const _0xde0af1=[new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c991=>setTimeout(_0x10c991,0x5356b2f6^_0x4ca00f)),_0x5a5601[_0x545daa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eca0f=>{let _0x3974c5=0x0;_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x6f,0x6e])](_0x545daa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d6558,_0x55965e)=>{_0x55965e[0x0][_0x545daa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3974c5++,_0x3974c5==(0x535f8dc2^_0x4ca00f)&&(_0x5eca0f(),_0x2d6558[_0x545daa([0x6f,0x66,0x66])]());});}))];return window[_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x545daa([0x72,0x61,0x63,0x65])](_0xde0af1)[_0x545daa([0x74,0x68,0x65,0x6e])](()=>_0x50248b);}async function _0x25c764(){await _0x5a5601,_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e58af,_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e58af,_0x11414b[_0x545daa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x545daa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27b72b(_0x4ae74a){const _0x3573c5=_0x3c6211();_0x11414b[_0x3573c5]=_0x545daa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ae74a,_0x4ae74a!=_0x545daa([0x56,0x61,0x6c,0x69,0x64])&&_0x25c764();}function _0x3c6211(){const _0x2f6e71=window[_0x545daa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x545daa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x545daa([0x6e,0x6f,0x77])]())[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x545daa([0x2e]),'');let _0x17ee33=_0x545daa([0x68]);for(let _0x3fc31c=0x0;_0x3fc31c<_0x2f6e71[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fc31c+=0x2){let _0x397dd6=window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6e71[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fc31c,_0x3fc31c+0x2));_0x397dd6>=_0x19d234[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x397dd6-=_0x19d234[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17ee33+=_0x19d234[_0x397dd6];}return _0x17ee33;}function _0x391644(){const _0x263ff3=_0x1b526c[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e]));if(0x3!=_0x263ff3[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19673c(_0x263ff3[0x1]);function _0x19673c(_0x170f7c){const _0xc5a37f=_0x5e157c(_0x170f7c);return _0xc5a37f&&_0x1c2754()?_0xc5a37f:null;function _0x1c2754(){const _0x758f80=_0xc5a37f[_0x545daa([0x6a,0x74,0x69])],_0x315836=window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x758f80[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x758f80[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43ab3f={..._0xc5a37f,[_0x545daa([0x6a,0x74,0x69])]:_0x758f80[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x758f80[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43ab3f[_0x545daa([0x76,0x63])],_0x5e7990(_0x43ab3f)==_0x315836;}}}async function _0x214af1(){let _0x563211=!0x0;try{const _0x29f15e=_0x1b526c[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e])),[_0x186e91,_0xaf5d87,_0x39618e]=_0x29f15e;return _0x55cf9b(_0x186e91),await _0x2591f0(_0x186e91,_0xaf5d87,_0x39618e),_0x563211;}catch{return!0x1;}function _0x55cf9b(_0x46efcb){const _0x120924=_0x5e157c(_0x46efcb);_0x120924&&_0x120924[_0x545daa([0x61,0x6c,0x67])]==_0x545daa([0x45,0x53,0x32,0x35,0x36])||(_0x563211=!0x1);}async function _0x2591f0(_0x4e2ab9,_0x452726,_0x53db79){const _0x155922=window[_0x545daa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x545daa([0x66,0x72,0x6f,0x6d])](_0x44fda6(_0x53db79),_0x4fa28a=>_0x4fa28a[_0x545daa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ea134=new window[(_0x545daa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x545daa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2ab9+_0x545daa([0x2e])+_0x452726),_0x513cfe=window[_0x545daa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x545daa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x513cfe)return;const _0x51967d=await _0x513cfe[_0x545daa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x545daa([0x6a,0x77,0x6b]),_0x25d052,{[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x45,0x43,0x44,0x53,0x41]),[_0x545daa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x545daa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x513cfe[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x45,0x43,0x44,0x53,0x41]),[_0x545daa([0x68,0x61,0x73,0x68])]:{[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51967d,_0x155922,_0x5ea134)||(_0x563211=!0x1);}}function _0x5e157c(_0x48d8d3){return _0x48d8d3[_0x545daa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x545daa([0x65,0x79]))?JSON[_0x545daa([0x70,0x61,0x72,0x73,0x65])](_0x44fda6(_0x48d8d3)):null;}function _0x44fda6(_0x489431){return window[_0x545daa([0x61,0x74,0x6f,0x62])](_0x489431[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x545daa([0x2b]))[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x545daa([0x2f])));}function _0x5e7990(_0x1ab60c){let _0x1867b3=0x1505;function _0x269be7(_0x25fa02){for(let _0x2eb8c4=0x0;_0x2eb8c4<_0x25fa02[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eb8c4++){const _0x285a67=_0x25fa02[_0x545daa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2eb8c4);_0x1867b3=(_0x1867b3<<0x5)+_0x1867b3+_0x285a67,_0x1867b3&=_0x1867b3;}}function _0x2b978c(_0x5aee18){Array[_0x545daa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5aee18)?_0x5aee18[_0x545daa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b978c):_0x5aee18&&typeof _0x5aee18==_0x545daa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x545daa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5aee18)[_0x545daa([0x73,0x6f,0x72,0x74])]()[_0x545daa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ed6bb,_0x1b7bf4])=>{_0x269be7(_0x4ed6bb),_0x2b978c(_0x1b7bf4);}):_0x269be7(window[_0x545daa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5aee18));}return _0x2b978c(_0x1ab60c),_0x1867b3>>>0x0;}function _0x221336(_0x52c5fd){return _0x52c5fd[_0x545daa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x545daa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x545daa([0x30]));}function _0x3e8594(_0x32ce55){return _0x32ce55[_0x545daa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x545daa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x545daa([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e58af(){}function _0x545daa(_0xfab262){const _0x593b20=_0x5987;return _0xfab262[_0x593b20(0x118)](_0x243c25=>String[_0x593b20(0xf7)](_0x243c25))[_0x593b20(0xcb)]('');}_0x27b72b(await _0x39c691());}(this);}[_0x3c6bfb(0xfa)](){const _0x416fb3=_0x3c6bfb,_0x5f5b71=this[_0x416fb3(0x10b)][_0x416fb3(0xe3)][_0x416fb3(0xcf)];_0x5f5b71[_0x416fb3(0xe7)](_0x416fb3(0xfb))&&_0x5f5b71[_0x416fb3(0xc4)](_0x416fb3(0xfb),{'allowAttributes':[_0x416fb3(0xdb)]}),_0x5f5b71[_0x416fb3(0xe7)](_0x416fb3(0xe1))&&_0x5f5b71[_0x416fb3(0xc4)](_0x416fb3(0xe1),{'allowAttributes':[_0x416fb3(0xdb)]});}[_0x3c6bfb(0x113)](){const _0x4ece04=_0x3c6bfb,_0x17bbb8=this[_0x4ece04(0x10b)];_0x17bbb8[_0x4ece04(0xd1)][_0x4ece04(0xe2)](_0x4ece04(0x103))[_0x4ece04(0x112)]({'model':_0x4ece04(0xdb),'view':_0x4ece04(0xdf)}),_0x17bbb8[_0x4ece04(0xd1)][_0x4ece04(0xe2)](_0x4ece04(0xe5))[_0x4ece04(0x101)]({'model':{'key':_0x4ece04(0xdb),'value':_0x2ce181=>_0x2ce181[_0x4ece04(0xf8)](_0x4ece04(0xdf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1dfb28=_0x17bbb8[_0x4ece04(0xcc)][_0x4ece04(0x105)](_0x4ece04(0xe4));_0x1dfb28&&this[_0x4ece04(0xf4)](_0x1dfb28,_0x4ece04(0xeb),(_0x5c8bec,[_0x249a62,_0x4609fe])=>{const _0x38be28=_0x4ece04;_0x249a62[_0x38be28(0xda)](_0x38be28(0xdb),_0x4609fe);});}[_0x3c6bfb(0xd6)](){const _0x3d6e86=_0x3c6bfb,_0xaf1c56=this[_0x3d6e86(0x10b)][_0x3d6e86(0xd7)][_0x3d6e86(0x105)](_0x3d6e86(0xea))||{},_0x287cc5=this[_0x3d6e86(0x10b)][_0x3d6e86(0xd7)][_0x3d6e86(0x105)](_0x3d6e86(0x10d))||'';this[_0x3d6e86(0xfc)]=_0x51c9c8(_0xbf63ae[_0x3d6e86(0xc5)],_0x3d6e86(0x107),{..._0xaf1c56,'pubkey':_0x287cc5,'ctx-name':_0x3d6e86(0xc8)+this[_0x3d6e86(0xf5)],'sourceList':'','imgOnly':_0x3d6e86(0xde),'removeCopyright':_0x3d6e86(0xde),'localeName':this[_0x3d6e86(0x10b)][_0x3d6e86(0xca)][_0x3d6e86(0x10a)],'externalSourcesEmbedCss':_0x3d6e86(0xc7)}),this[_0x3d6e86(0xfc)][_0x3d6e86(0xff)]=_0x4409a4=>{const _0x4661a4=_0x3d6e86;if(_0x4661a4(0x116)==_0x4409a4)return _0x4661a4(0xf3);},_0xbf63ae[_0x3d6e86(0xc5)][_0x3d6e86(0xd9)][_0x3d6e86(0x10f)](this[_0x3d6e86(0xfc)]);}[_0x3c6bfb(0xc3)](){const _0x3ad88b=_0x3c6bfb;this[_0x3ad88b(0x117)]=_0x51c9c8(_0xbf63ae[_0x3ad88b(0xc5)],_0x3ad88b(0x100),{'ctx-name':_0x3ad88b(0xc8)+this[_0x3ad88b(0xf5)]}),_0xbf63ae[_0x3ad88b(0xc5)][_0x3ad88b(0xd9)][_0x3ad88b(0x10f)](this[_0x3ad88b(0x117)]);}[_0x3c6bfb(0xee)](){const _0x6f9279=_0x3c6bfb,_0x25d96a=this[_0x6f9279(0x10b)][_0x6f9279(0xcc)][_0x6f9279(0x105)](_0x6f9279(0xec));_0x25d96a&&this[_0x6f9279(0xf4)](_0x25d96a,_0x6f9279(0x106),()=>{const _0x2d0ff3=_0x6f9279,_0x3a9e51=this[_0x2d0ff3(0x10b)][_0x2d0ff3(0xe3)][_0x2d0ff3(0xc5)][_0x2d0ff3(0x10c)][_0x2d0ff3(0xd8)]();_0x3a9e51&&_0x3a9e51[_0x2d0ff3(0xf8)](_0x2d0ff3(0xdb))&&this[_0x2d0ff3(0x10b)][_0x2d0ff3(0x119)][_0x2d0ff3(0xf6)][_0x2d0ff3(0xf1)](_0x2d0ff3(0xf9),()=>{const _0x57aaf0=_0x2d0ff3;_0x4d822a(this[_0x57aaf0(0x10b)],_0x3a9e51);});});const _0x2be529=this[_0x6f9279(0x10b)][_0x6f9279(0xcc)][_0x6f9279(0x105)](_0x6f9279(0xd2));_0x2be529&&this[_0x6f9279(0xf4)](_0x2be529,_0x6f9279(0x106),()=>{const _0x284501=_0x6f9279,_0x1e3820=this[_0x284501(0x10b)][_0x284501(0xe3)][_0x284501(0xc5)][_0x284501(0x10c)][_0x284501(0xd8)]();_0x1e3820&&_0x1e3820[_0x284501(0xf8)](_0x284501(0xdb))&&this[_0x284501(0x10b)][_0x284501(0x119)][_0x284501(0xf6)][_0x284501(0xf1)](_0x284501(0xf9),()=>{const _0x514817=_0x284501;_0x4d822a(this[_0x514817(0x10b)],_0x1e3820);});});}}
|
|
23
|
+
const _0x29a25d=_0x4d9e;(function(_0x24a34e,_0x573d5){const _0xb922f0=_0x4d9e,_0x25104c=_0x24a34e();while(!![]){try{const _0x3261ec=-parseInt(_0xb922f0(0xfb))/0x1*(parseInt(_0xb922f0(0xff))/0x2)+-parseInt(_0xb922f0(0xda))/0x3+-parseInt(_0xb922f0(0xd4))/0x4*(parseInt(_0xb922f0(0xb2))/0x5)+parseInt(_0xb922f0(0xfd))/0x6*(-parseInt(_0xb922f0(0xc6))/0x7)+parseInt(_0xb922f0(0xf0))/0x8*(-parseInt(_0xb922f0(0xd1))/0x9)+parseInt(_0xb922f0(0xde))/0xa+parseInt(_0xb922f0(0xbb))/0xb*(parseInt(_0xb922f0(0xf7))/0xc);if(_0x3261ec===_0x573d5)break;else _0x25104c['push'](_0x25104c['shift']());}catch(_0x455069){_0x25104c['push'](_0x25104c['shift']());}}}(_0x362d,0xc8a3d));import{Plugin as _0x4c17e0}from'ckeditor5/src/core.js';function _0x4d9e(_0x5e5c93,_0x57ec78){const _0x362da=_0x362d();return _0x4d9e=function(_0x4d9eb4,_0x538025){_0x4d9eb4=_0x4d9eb4-0xac;let _0x3ff253=_0x362da[_0x4d9eb4];return _0x3ff253;},_0x4d9e(_0x5e5c93,_0x57ec78);}import{Dialog as _0x206a68}from'ckeditor5/src/ui.js';import{createElement as _0x46045b,global as _0x1a0421,uid as _0x54128a}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x534805}from'./uploadcarecommand.js';function _0x362d(){const _0x45642e=['execute','uc-config','uc-upload-ctx-provider','#uc-icon-arrow-down','requires','input[uploadcare-file-input]','ctxElement','2244060INGrfR','configElement','afterInit','575236JhyClE','uploadcare','schema','extend','upcast','map','4389930uQDfWa','render','\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','PictureEditing','2869220MfMvzL','imageBlock','_initSchema','ucContextId','data-uc-image-id','get','removeAttribute','editor','imageInline','insertImage','init','_initConversion','getSelectedElement','cleanupImage','model','once','pluginName','uploadcare.uploader','40uEFkhm','body','contentLanguage','isOfficialPlugin','replaceImageSource','for','editing','9981756KKneQL','uploadcare.pubkey','listenTo','iconHrefResolver','4343uvNyIV','view','3956574puZmNL','href','538IYMjKz','_configElement','_initCtx','config','getAttribute','attributeToAttribute','_ctxElement','selection','true','commands','55iBpbRj','join','UploadcareEditing','_initConfig','isPremiumPlugin','closeMax','remove','document','locale','88XLZfcw','_initImageProcessingIndicator','elementToAttribute','appendChild','downcast','fromCharCode','isRegistered','add','uploadcareImageId','querySelector','uploadcareImageReplace','7CRoVup','uploader-','conversion','destroy'];_0x362d=function(){return _0x45642e;};return _0x362d();}import{UploadcareUploadAdapter as _0x1bc4c4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x436883}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4c17e0{[_0x29a25d(0x100)]=null;[_0x29a25d(0xae)]=null;static get[_0x29a25d(0xee)](){const _0x56740e=_0x29a25d;return _0x56740e(0xb4);}static get[_0x29a25d(0xce)](){const _0x542a28=_0x29a25d;return[_0x542a28(0xdd),_0x1bc4c4,_0x206a68];}static get[_0x29a25d(0xf3)](){return!0x0;}static get[_0x29a25d(0xb6)](){return!0x0;}[_0x29a25d(0xe1)];get[_0x29a25d(0xd2)](){const _0x5b2b31=_0x29a25d;return this[_0x5b2b31(0x100)];}get[_0x29a25d(0xd0)](){const _0x4e2a60=_0x29a25d;return this[_0x4e2a60(0xae)];}constructor(_0x2053cc){const _0xc88176=_0x29a25d;super(_0x2053cc),this[_0xc88176(0xe1)]=_0x54128a();}[_0x29a25d(0xe8)](){const _0x474be6=_0x29a25d,_0x3f7c0b=this[_0x474be6(0xe5)];_0x3f7c0b[_0x474be6(0xb1)][_0x474be6(0xc2)](_0x474be6(0xd5),new _0x534805(_0x3f7c0b));}[_0x29a25d(0xd3)](){const _0x1f6d3b=_0x29a25d;this[_0x1f6d3b(0xe0)](),this[_0x1f6d3b(0xe9)](),this[_0x1f6d3b(0xb5)](),this[_0x1f6d3b(0x101)](),this[_0x1f6d3b(0xbc)](),this[_0x1f6d3b(0xf9)](this[_0x1f6d3b(0xe5)],_0x1f6d3b(0xc9),()=>{const _0x194812=_0x1f6d3b;this[_0x194812(0x100)]&&(this[_0x194812(0x100)][_0x194812(0xb8)](),this[_0x194812(0x100)]=null),this[_0x194812(0xae)]&&(this[_0x194812(0xae)][_0x194812(0xb8)](),this[_0x194812(0xae)]=null);const _0x472a96=_0x1a0421[_0x194812(0xb9)][_0x194812(0xc4)](_0x194812(0xcf));_0x472a96&&_0x472a96[_0x194812(0xb8)]();}),async function(_0x14f83b){const _0x261d40=_0x241a60([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x27ef8a=0x535f8c3a,_0x517722=0x5358f02a^_0x27ef8a,_0x2f9760=window[_0x241a60([0x44,0x61,0x74,0x65])][_0x241a60([0x6e,0x6f,0x77])](),_0xee445e=_0x14f83b[_0x241a60([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13b3ab=new window[(_0x241a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaef378=>{_0xee445e[_0x241a60([0x6f,0x6e,0x63,0x65])](_0x241a60([0x72,0x65,0x61,0x64,0x79]),_0xaef378);}),_0x254368={[_0x241a60([0x6b,0x74,0x79])]:_0x241a60([0x45,0x43]),[_0x241a60([0x75,0x73,0x65])]:_0x241a60([0x73,0x69,0x67]),[_0x241a60([0x63,0x72,0x76])]:_0x241a60([0x50,0x2d,0x32,0x35,0x36]),[_0x241a60([0x78])]:_0x241a60([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]),[_0x241a60([0x79])]:_0x241a60([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]),[_0x241a60([0x61,0x6c,0x67])]:_0x241a60([0x45,0x53,0x32,0x35,0x36])},_0x51eefc=_0xee445e[_0x241a60([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x241a60([0x67,0x65,0x74])](_0x241a60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x326c9e(){let _0x5db6e0,_0x4e41c4=null,_0x11313d=null;try{if(_0x51eefc==_0x241a60([0x47,0x50,0x4c]))return _0x241a60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5db6e0=_0x45ce18(),!_0x5db6e0)return _0x241a60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5db6e0[_0x241a60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11313d=_0x5f2247(_0x5db6e0[_0x241a60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5db6e0[_0x241a60([0x6a,0x74,0x69])])),await _0x49644d()?_0xe35727()?_0x4c46ca()?_0x241a60([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10e3c7()?(_0x5db6e0[_0x241a60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x241a60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e41c4=_0x4406cb(_0x241a60([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5db6e0[_0x241a60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x241a60([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e41c4=_0x4406cb(_0x241a60([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33dde1()):_0x241a60([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x241a60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x241a60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x241a60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c46ca(){const _0x527e7c=[_0x241a60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x241a60([0x74,0x72,0x69,0x61,0x6c])][_0x241a60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db6e0[_0x241a60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f9760/0x3e8:0xe10*_0x517722;return _0x5db6e0[_0x241a60([0x65,0x78,0x70])]<_0x527e7c;}function _0xe35727(){const _0x2c2fea=_0x5db6e0[_0x241a60([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c2fea&&(!!_0x2c2fea[_0x241a60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241a60([0x2a]))||!!_0x2c2fea[_0x241a60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241a60([0x55,0x50,0x4c,0x43])));}function _0x10e3c7(){const _0x2c7f7d=_0x4d9e,_0x1df77b=_0x5db6e0[_0x241a60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1df77b||0x0==_0x1df77b[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x504604}=new URL(window[_0x241a60([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2c7f7d(0xfe)]);if(_0x1df77b[_0x241a60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504604))return!0x0;const _0x3251b6=_0x504604[_0x241a60([0x73,0x70,0x6c,0x69,0x74])](_0x241a60([0x2e]));return _0x1df77b[_0x241a60([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c4f15=>_0x5c4f15[_0x241a60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241a60([0x2a])))[_0x241a60([0x6d,0x61,0x70])](_0x21f27a=>_0x21f27a[_0x241a60([0x73,0x70,0x6c,0x69,0x74])](_0x241a60([0x2e])))[_0x241a60([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522cae=>_0x522cae[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3251b6[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x241a60([0x6d,0x61,0x70])](_0x4067a9=>Array(_0x3251b6[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4067a9[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x241a60([0x66,0x69,0x6c,0x6c])](_0x4067a9[0x0]===_0x241a60([0x2a])?_0x241a60([0x2a]):'')[_0x241a60([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4067a9))[_0x241a60([0x73,0x6f,0x6d,0x65])](_0x299ab7=>_0x3251b6[_0x241a60([0x65,0x76,0x65,0x72,0x79])]((_0x4126ea,_0x4f9d88)=>_0x299ab7[_0x4f9d88]===_0x4126ea||_0x299ab7[_0x4f9d88]===_0x241a60([0x2a])));}function _0x33dde1(){return _0x4e41c4&&_0x11313d?new window[(_0x241a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x208bbc,_0x4fe963)=>{_0x4e41c4[_0x241a60([0x74,0x68,0x65,0x6e])](_0x208bbc,_0x4fe963),_0x11313d[_0x241a60([0x74,0x68,0x65,0x6e])](_0x3dc43b=>{_0x3dc43b!=_0x241a60([0x56,0x61,0x6c,0x69,0x64])&&_0x208bbc(_0x3dc43b);},_0x4fe963);}):_0x4e41c4||_0x11313d||_0x241a60([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f2247(_0xa7296,_0xe4b4b){return new window[(_0x241a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53aff7=>{if(_0x3c0200())return _0x53aff7(_0x241a60([0x56,0x61,0x6c,0x69,0x64]));_0x4f9d48(),_0xee445e[_0x241a60([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x241a60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x987071=!0x1;const _0x31b707=_0x54128a();function _0xfc9c17(_0x21c236){return!!_0x21c236&&(typeof _0x21c236===_0x241a60([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21c236===_0x241a60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21c236[_0x241a60([0x74,0x68,0x65,0x6e])]===_0x241a60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21c236[_0x241a60([0x63,0x61,0x74,0x63,0x68])]===_0x241a60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ae5bd(_0x249fd0){_0x493f1a(_0x249fd0)[_0x241a60([0x74,0x68,0x65,0x6e])](_0x20b820=>{if(!_0x20b820||_0x20b820[_0x241a60([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x241a60([0x6f,0x6b]))return _0x241a60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43216c(_0x940f86(_0x31b707+_0xe4b4b))!=_0x20b820[_0x241a60([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x241a60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x241a60([0x56,0x61,0x6c,0x69,0x64]);})[_0x241a60([0x74,0x68,0x65,0x6e])](_0xc38e00=>(_0x5549cb(),_0xc38e00),()=>{const _0x34f6af=_0x40b3a2();return null==_0x34f6af?(_0x5549cb(),_0x241a60([0x56,0x61,0x6c,0x69,0x64])):_0x241a60(_0x2f9760-_0x34f6af>(0x7753083a^_0x27ef8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x241a60([0x74,0x68,0x65,0x6e])](_0x53aff7)[_0x241a60([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53aff7(_0x241a60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5432f1=0x536962ba^_0x27ef8a;function _0x5549cb(){const _0x324da7=_0x241a60([0x6c,0x6c,0x63,0x74,0x2d])+_0x43216c(_0x940f86(_0xa7296)),_0x170fe5=_0x4adaa2(_0x43216c(window[_0x241a60([0x4d,0x61,0x74,0x68])][_0x241a60([0x63,0x65,0x69,0x6c])](_0x2f9760/_0x5432f1)));window[_0x241a60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x241a60([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x324da7,_0x170fe5);}function _0x40b3a2(){const _0x13d2ed=_0x241a60([0x6c,0x6c,0x63,0x74,0x2d])+_0x43216c(_0x940f86(_0xa7296)),_0x1fabf0=window[_0x241a60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x241a60([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13d2ed);return _0x1fabf0?window[_0x241a60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4adaa2(_0x1fabf0),0x10)*_0x5432f1:null;}function _0x493f1a(_0x4c6170){return new window[(_0x241a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a96a3,_0x1c0e76)=>{_0x4c6170[_0x241a60([0x74,0x68,0x65,0x6e])](_0x2a96a3,_0x1c0e76),window[_0x241a60([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c0e76,0x535e58fa^_0x27ef8a);});}}_0xee445e[_0x241a60([0x6f,0x6e])](_0x241a60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb5a03c,_0x4c0ebb)=>{if(_0x4c0ebb[0x0]!=_0xa7296)return _0x53aff7(_0x241a60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c0ebb[0x1]={..._0x4c0ebb[0x1],[_0x241a60([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31b707};},{[_0x241a60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x241a60([0x68,0x69,0x67,0x68])}),_0xee445e[_0x241a60([0x6f,0x6e])](_0x241a60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4cc90e=>{_0xfc9c17(_0x4cc90e[_0x241a60([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x987071=!0x0,_0x4ae5bd(_0x4cc90e[_0x241a60([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x241a60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x241a60([0x6c,0x6f,0x77])}),_0x13b3ab[_0x241a60([0x74,0x68,0x65,0x6e])](()=>{_0x987071||_0x53aff7(_0x241a60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c0200(){return _0xee445e[_0x241a60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x241a60([0x76,0x69,0x65,0x77])][_0x241a60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x241a60([0x61,0x75,0x74,0x6f]);}function _0x4f9d48(){_0xee445e[_0x241a60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x241a60([0x76,0x69,0x65,0x77])][_0x241a60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x241a60([0x61,0x75,0x74,0x6f]);}}function _0x4406cb(_0x1364b4){const _0x2d0a7e=[new window[(_0x241a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x189185=>setTimeout(_0x189185,0x5356b2f6^_0x27ef8a)),_0x13b3ab[_0x241a60([0x74,0x68,0x65,0x6e])](()=>new window[(_0x241a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369273=>{let _0x39f78f=0x0;_0xee445e[_0x241a60([0x6d,0x6f,0x64,0x65,0x6c])][_0x241a60([0x6f,0x6e])](_0x241a60([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d6699,_0x283c82)=>{_0x283c82[0x0][_0x241a60([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39f78f++,_0x39f78f==(0x535f8dc2^_0x27ef8a)&&(_0x369273(),_0x2d6699[_0x241a60([0x6f,0x66,0x66])]());});}))];return window[_0x241a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x241a60([0x72,0x61,0x63,0x65])](_0x2d0a7e)[_0x241a60([0x74,0x68,0x65,0x6e])](()=>_0x1364b4);}async function _0x510e81(){await _0x13b3ab,_0xee445e[_0x241a60([0x6d,0x6f,0x64,0x65,0x6c])][_0x241a60([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43a495,_0xee445e[_0x241a60([0x6d,0x6f,0x64,0x65,0x6c])][_0x241a60([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43a495,_0xee445e[_0x241a60([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x241a60([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29980a(_0x38e1b8){const _0x264d6a=_0x2b92ee();_0xee445e[_0x264d6a]=_0x241a60([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38e1b8,_0x38e1b8!=_0x241a60([0x56,0x61,0x6c,0x69,0x64])&&_0x510e81();}function _0x2b92ee(){const _0x4abe9d=window[_0x241a60([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x241a60([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x241a60([0x6e,0x6f,0x77])]())[_0x241a60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x241a60([0x2e]),'');let _0x2913c4=_0x241a60([0x68]);for(let _0x47296a=0x0;_0x47296a<_0x4abe9d[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47296a+=0x2){let _0x5bca99=window[_0x241a60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abe9d[_0x241a60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47296a,_0x47296a+0x2));_0x5bca99>=_0x261d40[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bca99-=_0x261d40[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2913c4+=_0x261d40[_0x5bca99];}return _0x2913c4;}function _0x45ce18(){const _0x1815de=_0x51eefc[_0x241a60([0x73,0x70,0x6c,0x69,0x74])](_0x241a60([0x2e]));if(0x3!=_0x1815de[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x269e72(_0x1815de[0x1]);function _0x269e72(_0x2cf87a){const _0x339dac=_0x468e41(_0x2cf87a);return _0x339dac&&_0x562c5f()?_0x339dac:null;function _0x562c5f(){const _0x4f35c0=_0x339dac[_0x241a60([0x6a,0x74,0x69])],_0xd2c2a1=window[_0x241a60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f35c0[_0x241a60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f35c0[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x187edf={..._0x339dac,[_0x241a60([0x6a,0x74,0x69])]:_0x4f35c0[_0x241a60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f35c0[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x187edf[_0x241a60([0x76,0x63])],_0x940f86(_0x187edf)==_0xd2c2a1;}}}async function _0x49644d(){let _0x57747d=!0x0;try{const _0x4050ac=_0x51eefc[_0x241a60([0x73,0x70,0x6c,0x69,0x74])](_0x241a60([0x2e])),[_0x555e6d,_0x2d1bbd,_0x4e2ca3]=_0x4050ac;return _0x536548(_0x555e6d),await _0x5c6fd9(_0x555e6d,_0x2d1bbd,_0x4e2ca3),_0x57747d;}catch{return!0x1;}function _0x536548(_0x101d7d){const _0x582ec2=_0x468e41(_0x101d7d);_0x582ec2&&_0x582ec2[_0x241a60([0x61,0x6c,0x67])]==_0x241a60([0x45,0x53,0x32,0x35,0x36])||(_0x57747d=!0x1);}async function _0x5c6fd9(_0x4f2021,_0xe315c7,_0x5f49dd){const _0x1befe9=window[_0x241a60([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x241a60([0x66,0x72,0x6f,0x6d])](_0x319515(_0x5f49dd),_0x126d12=>_0x126d12[_0x241a60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x77be92=new window[(_0x241a60([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x241a60([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f2021+_0x241a60([0x2e])+_0xe315c7),_0x5c2c71=window[_0x241a60([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x241a60([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c2c71)return;const _0x50e015=await _0x5c2c71[_0x241a60([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x241a60([0x6a,0x77,0x6b]),_0x254368,{[_0x241a60([0x6e,0x61,0x6d,0x65])]:_0x241a60([0x45,0x43,0x44,0x53,0x41]),[_0x241a60([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x241a60([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x241a60([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c2c71[_0x241a60([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x241a60([0x6e,0x61,0x6d,0x65])]:_0x241a60([0x45,0x43,0x44,0x53,0x41]),[_0x241a60([0x68,0x61,0x73,0x68])]:{[_0x241a60([0x6e,0x61,0x6d,0x65])]:_0x241a60([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50e015,_0x1befe9,_0x77be92)||(_0x57747d=!0x1);}}function _0x468e41(_0x1132ea){return _0x1132ea[_0x241a60([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x241a60([0x65,0x79]))?JSON[_0x241a60([0x70,0x61,0x72,0x73,0x65])](_0x319515(_0x1132ea)):null;}function _0x319515(_0x5764a4){return window[_0x241a60([0x61,0x74,0x6f,0x62])](_0x5764a4[_0x241a60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x241a60([0x2b]))[_0x241a60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x241a60([0x2f])));}function _0x940f86(_0x371332){let _0x5790d3=0x1505;function _0x2a6d2c(_0x25b08e){for(let _0x38a036=0x0;_0x38a036<_0x25b08e[_0x241a60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38a036++){const _0xbb8e1a=_0x25b08e[_0x241a60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38a036);_0x5790d3=(_0x5790d3<<0x5)+_0x5790d3+_0xbb8e1a,_0x5790d3&=_0x5790d3;}}function _0x3a72a0(_0x24d4e3){Array[_0x241a60([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24d4e3)?_0x24d4e3[_0x241a60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a72a0):_0x24d4e3&&typeof _0x24d4e3==_0x241a60([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x241a60([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24d4e3)[_0x241a60([0x73,0x6f,0x72,0x74])]()[_0x241a60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x137511,_0x3d226e])=>{_0x2a6d2c(_0x137511),_0x3a72a0(_0x3d226e);}):_0x2a6d2c(window[_0x241a60([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24d4e3));}return _0x3a72a0(_0x371332),_0x5790d3>>>0x0;}function _0x43216c(_0x133768){return _0x133768[_0x241a60([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x241a60([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x241a60([0x30]));}function _0x4adaa2(_0x907b1c){return _0x907b1c[_0x241a60([0x73,0x70,0x6c,0x69,0x74])]('')[_0x241a60([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x241a60([0x6a,0x6f,0x69,0x6e])]('');}function _0x43a495(){}function _0x241a60(_0x35d176){const _0x5cb8b0=_0x4d9e;return _0x35d176[_0x5cb8b0(0xd9)](_0xa153e3=>String[_0x5cb8b0(0xc0)](_0xa153e3))[_0x5cb8b0(0xb3)]('');}_0x29980a(await _0x326c9e());}(this);}[_0x29a25d(0xe0)](){const _0x3bb571=_0x29a25d,_0x214eea=this[_0x3bb571(0xe5)][_0x3bb571(0xec)][_0x3bb571(0xd6)];_0x214eea[_0x3bb571(0xc1)](_0x3bb571(0xdf))&&_0x214eea[_0x3bb571(0xd7)](_0x3bb571(0xdf),{'allowAttributes':[_0x3bb571(0xc3)]}),_0x214eea[_0x3bb571(0xc1)](_0x3bb571(0xe6))&&_0x214eea[_0x3bb571(0xd7)](_0x3bb571(0xe6),{'allowAttributes':[_0x3bb571(0xc3)]});}[_0x29a25d(0xe9)](){const _0x3bc455=_0x29a25d,_0x88ea1c=this[_0x3bc455(0xe5)];_0x88ea1c[_0x3bc455(0xc8)][_0x3bc455(0xf5)](_0x3bc455(0xbf))[_0x3bc455(0xad)]({'model':_0x3bc455(0xc3),'view':_0x3bc455(0xe2)}),_0x88ea1c[_0x3bc455(0xc8)][_0x3bc455(0xf5)](_0x3bc455(0xd8))[_0x3bc455(0xbd)]({'model':{'key':_0x3bc455(0xc3),'value':_0x116d8d=>_0x116d8d[_0x3bc455(0xac)](_0x3bc455(0xe2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50742a=_0x88ea1c[_0x3bc455(0xb1)][_0x3bc455(0xe3)](_0x3bc455(0xf4));_0x50742a&&this[_0x3bc455(0xf9)](_0x50742a,_0x3bc455(0xeb),(_0x1ad875,[_0x30a6b4,_0x482dfc])=>{const _0x1cace9=_0x3bc455;_0x30a6b4[_0x1cace9(0xe4)](_0x1cace9(0xc3),_0x482dfc);});}[_0x29a25d(0xb5)](){const _0x5479dc=_0x29a25d,_0x25c79d=this[_0x5479dc(0xe5)][_0x5479dc(0x102)][_0x5479dc(0xe3)](_0x5479dc(0xef))||{},_0x241cee=this[_0x5479dc(0xe5)][_0x5479dc(0x102)][_0x5479dc(0xe3)](_0x5479dc(0xf8))||'';this[_0x5479dc(0x100)]=_0x46045b(_0x1a0421[_0x5479dc(0xb9)],_0x5479dc(0xcb),{..._0x25c79d,'pubkey':_0x241cee,'ctx-name':_0x5479dc(0xc7)+this[_0x5479dc(0xe1)],'sourceList':'','imgOnly':_0x5479dc(0xb0),'removeCopyright':_0x5479dc(0xb0),'localeName':this[_0x5479dc(0xe5)][_0x5479dc(0xba)][_0x5479dc(0xf2)],'externalSourcesEmbedCss':_0x5479dc(0xdc)}),this[_0x5479dc(0x100)][_0x5479dc(0xfa)]=_0xdccb56=>{const _0x4fb240=_0x5479dc;if(_0x4fb240(0xb7)==_0xdccb56)return _0x4fb240(0xcd);},_0x1a0421[_0x5479dc(0xb9)][_0x5479dc(0xf1)][_0x5479dc(0xbe)](this[_0x5479dc(0x100)]);}[_0x29a25d(0x101)](){const _0x143b0d=_0x29a25d;this[_0x143b0d(0xae)]=_0x46045b(_0x1a0421[_0x143b0d(0xb9)],_0x143b0d(0xcc),{'ctx-name':_0x143b0d(0xc7)+this[_0x143b0d(0xe1)]}),_0x1a0421[_0x143b0d(0xb9)][_0x143b0d(0xf1)][_0x143b0d(0xbe)](this[_0x143b0d(0xae)]);}[_0x29a25d(0xbc)](){const _0x3bb6a1=_0x29a25d,_0x4f0c9f=this[_0x3bb6a1(0xe5)][_0x3bb6a1(0xb1)][_0x3bb6a1(0xe3)](_0x3bb6a1(0xe7));_0x4f0c9f&&this[_0x3bb6a1(0xf9)](_0x4f0c9f,_0x3bb6a1(0xca),()=>{const _0x1c4d76=_0x3bb6a1,_0x154a3a=this[_0x1c4d76(0xe5)][_0x1c4d76(0xec)][_0x1c4d76(0xb9)][_0x1c4d76(0xaf)][_0x1c4d76(0xea)]();_0x154a3a&&_0x154a3a[_0x1c4d76(0xac)](_0x1c4d76(0xc3))&&this[_0x1c4d76(0xe5)][_0x1c4d76(0xf6)][_0x1c4d76(0xfc)][_0x1c4d76(0xed)](_0x1c4d76(0xdb),()=>{const _0x3503be=_0x1c4d76;_0x436883(this[_0x3503be(0xe5)],_0x154a3a);});});const _0x67252f=this[_0x3bb6a1(0xe5)][_0x3bb6a1(0xb1)][_0x3bb6a1(0xe3)](_0x3bb6a1(0xc5));_0x67252f&&this[_0x3bb6a1(0xf9)](_0x67252f,_0x3bb6a1(0xca),()=>{const _0x5129af=_0x3bb6a1,_0x4d09a2=this[_0x5129af(0xe5)][_0x5129af(0xec)][_0x5129af(0xb9)][_0x5129af(0xaf)][_0x5129af(0xea)]();_0x4d09a2&&_0x4d09a2[_0x5129af(0xac)](_0x5129af(0xc3))&&this[_0x5129af(0xe5)][_0x5129af(0xf6)][_0x5129af(0xfc)][_0x5129af(0xed)](_0x5129af(0xdb),()=>{const _0x37f6e5=_0x5129af;_0x436883(this[_0x37f6e5(0xe5)],_0x4d09a2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x452e3e,ObservableMixin as _0xf2d011}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xd085a8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x13fd63}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5b1d90}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3418ce}from'../../utils/uploadutils.js';import{getImageUrls as _0x558feb,getImageDimension as _0x1a0aa3}from'../../utils/editingutils.js';import{isAncestor as _0x21ba1e}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xf2d011(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39d4e4,_0x1f2cb4,_0x131eba){super(),this['_editor']=_0x39d4e4,this['_dialog']=_0x1f2cb4,this['_imageElement']=_0x131eba,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 _0x11e901=this['_imageElement'],_0x298580=_0x11e901['getAttribute']('uploadcareImageId'),_0x2921ff=_0x11e901['getAttribute']('src');if(_0x298580)await this['_loadImageInfo'](_0x298580,_0x2921ff);else{if(this['_imageCache']['has'](_0x2921ff)){const _0x59366d=this['_imageCache']['get'](_0x2921ff);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59366d['url'],this['imageDimension']=_0x59366d['dimension'],this['imageId']=_0x59366d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x95aba0}=this['_editor'],t=_0x95aba0['t'],_0xb1e3a9=new _0x5b1d90(_0x95aba0,this['imageStatus'],this['_attributes']);_0xb1e3a9['bind']('status')['to'](this,'imageStatus'),_0xb1e3a9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb1e3a9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb1e3a9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb1e3a9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x13fd63,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb1e3a9,'position':_0xd085a8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb1e3a9['focus']();},'onHide':()=>{_0xb1e3a9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x146127=>!_0x21ba1e(_0x146127,_0xb1e3a9['element'])}});}['_loadImageInfo'](_0x2fe454,_0x1118dd){return _0x3418ce['getInfo'](_0x2fe454,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x85227a=>{const {width:_0x5c9c26,height:_0x5983c2}=_0x85227a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1118dd,this['imageDimension']={'width':_0x5c9c26,'height':_0x5983c2},this['imageId']=_0x2fe454;})['catch'](_0x37a840=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x37a840['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x19fe94,_0x3907f3){return this['_getImageAsFile'](_0x19fe94)['then'](_0x8458dd=>_0x3418ce['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3907f3['signal'],'file':_0x8458dd,'onProgress':_0x327f45=>{_0x327f45&&_0x327f45['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x327f45['value']));}}))['then'](_0x22fee3=>{const {width:_0x58c00d,height:_0x214c69}=_0x22fee3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22fee3['cdnUrl'],this['imageDimension']={'width':_0x58c00d,'height':_0x214c69},this['imageId']=_0x22fee3['uuid'],this['imageUploadProgress']=null;const _0x287e83=_0x19fe94['getAttribute']('src');this['_imageCache']['set'](_0x287e83,{'id':_0x22fee3['uuid'],'url':_0x22fee3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2dfd43=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2dfd43['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5549c9,_0xed21c2){_0x5549c9['on']('apply',(_0x28ee00,_0x45d497)=>{this['_replaceImage'](_0xed21c2,_0x45d497['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5549c9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5549c9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5f3e2c,_0x4e60c8,_0x135cde){const _0x310624=this['_editor'],{width:_0x33c37c,height:_0x1de89a}=_0x1a0aa3(_0x4e60c8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3c6fec,imageSources:_0x39c536}=_0x558feb(_0x4e60c8,_0x33c37c);_0x310624['model']['change'](_0x491f96=>{if('$graveyard'===_0x5f3e2c['root']['rootName']){_0x310624['execute']('insertImage',{'imageType':_0x5f3e2c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5f3e2c['getAttributes']()),'uploadcareImageId':_0x135cde,'src':_0x3c6fec,'sources':_0x39c536,'width':_0x33c37c,'height':_0x1de89a}});const _0x51ed77=_0x5f3e2c['getChildren']();_0x5f3e2c=_0x310624['model']['document']['selection']['getSelectedElement']();for(const _0x32aa6f of _0x51ed77)_0x491f96['append'](_0x491f96['cloneElement'](_0x32aa6f),_0x5f3e2c);}else _0x491f96['setSelection'](_0x5f3e2c,'on'),_0x310624['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5f3e2c['getAttributes']()),'uploadcareImageId':_0x135cde,'src':_0x3c6fec,'sources':_0x39c536,'width':_0x33c37c,'height':_0x1de89a},_0x5f3e2c);_0x491f96['setSelection'](_0x5f3e2c,'on');});}async['_getImageAsFile'](_0x48cf1d){const _0x3cc0dd=_0x452e3e['window'],_0x562818=_0x452e3e['document']['location']['href'],_0x5804ed=new _0x3cc0dd['URL'](_0x48cf1d['getAttribute']('src'),_0x562818);if('data:'===_0x5804ed['protocol']){const _0x2c0626=_0x5804ed['href']['split'](','),_0x3bb5ca=_0x2c0626[0x0]['match'](/:(.*?);/)[0x1],_0x58e4ca=_0x3bb5ca['split']('/')[0x1],_0x271981=_0x3cc0dd['atob'](_0x2c0626[_0x2c0626['length']-0x1]);let _0x5f0ebb=_0x271981['length'];const _0x2974a6=new _0x3cc0dd['Uint8Array'](_0x5f0ebb);for(;_0x5f0ebb--;)_0x2974a6[_0x5f0ebb]=_0x271981['charCodeAt'](_0x5f0ebb);return new _0x3cc0dd['File']([_0x2974a6],'image.'+_0x58e4ca,{'type':_0x3bb5ca});}const _0x5c3481=_0x5804ed['href']['split']('/'),_0x4ebd23=_0x5c3481[_0x5c3481['length']-0x1],_0xecd7d8=_0x4ebd23['split']('.')[0x1];return _0x3cc0dd['fetch'](_0x5804ed['href'])['then'](_0x261ff1=>_0x261ff1['clone']()['blob']())['then'](_0x5d2530=>new _0x3cc0dd['File']([_0x5d2530],_0x4ebd23,{'type':'image/'+_0xecd7d8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x26655c,_0x375fdc){const _0x488170=_0x55d5,_0x4d4f3d=_0x26655c();while(!![]){try{const _0x4d482c=parseInt(_0x488170(0xf7))/0x1+-parseInt(_0x488170(0xef))/0x2*(parseInt(_0x488170(0xe9))/0x3)+-parseInt(_0x488170(0xea))/0x4+-parseInt(_0x488170(0xf5))/0x5*(parseInt(_0x488170(0xe4))/0x6)+-parseInt(_0x488170(0xeb))/0x7*(parseInt(_0x488170(0xee))/0x8)+-parseInt(_0x488170(0xe6))/0x9*(parseInt(_0x488170(0xf1))/0xa)+parseInt(_0x488170(0xe8))/0xb*(parseInt(_0x488170(0xf3))/0xc);if(_0x4d482c===_0x375fdc)break;else _0x4d4f3d['push'](_0x4d4f3d['shift']());}catch(_0x58213d){_0x4d4f3d['push'](_0x4d4f3d['shift']());}}}(_0x4704,0x35260));import{View as _0x230319}from'ckeditor5/src/ui.js';function _0x55d5(_0x18a6fe,_0x597ef9){const _0x4704eb=_0x4704();return _0x55d5=function(_0x55d5ba,_0x56f9bc){_0x55d5ba=_0x55d5ba-0xe4;let _0xe34fd8=_0x4704eb[_0x55d5ba];return _0xe34fd8;},_0x55d5(_0x18a6fe,_0x597ef9);}export class UploadcareImageEditFormEditingView extends _0x230319{constructor(_0x6a965c,_0x403610){const _0x5999b7=_0x55d5;super(_0x6a965c);const _0x3b0820=this[_0x5999b7(0xe7)];this[_0x5999b7(0xed)](_0x5999b7(0xf2),''),this[_0x5999b7(0xe5)]({'tag':_0x5999b7(0xf0),'attributes':{..._0x403610,'class':[_0x5999b7(0xec),_0x5999b7(0xf6)],'ctx-name':_0x5999b7(0xf4),'cdn-url':_0x3b0820['to'](_0x5999b7(0xf2))}});}}function _0x4704(){const _0x12d36d=['9IfiPGw','bindTemplate','889933MSpbUB','10167nnHgur','234708nXUroF','1918cjDjBg','uc-light','set','240oqxnIW','246ALzqlp','uc-cloud-image-editor','3511960ZSqbmj','imageSrc','156YUjPox','image-edit','1848135pIIKyn','ck-uploadcare-theme','370524MGNNND','6IHpwBv','setTemplate'];_0x4704=function(){return _0x12d36d;};return _0x4704();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x432942}from'ckeditor5/src/icons.js';import{ButtonView as _0x98a35f,IconView as _0x3dd8c8,View as _0x22d470}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x22d470{constructor(_0x122cb5){super(_0x122cb5);const t=_0x122cb5['t'];this['set']('errorType',null);const _0x470fd6=new _0x98a35f(_0x122cb5);_0x470fd6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x470fd6['withText']=!0x0,_0x470fd6['class']='ck-button-action',_0x470fd6['on']('execute',()=>{this['fire']('retry');}),_0x470fd6['bind']('isVisible')['to'](this,'errorType',_0x49177d=>'NotFound'!==_0x49177d);const _0x55c5c1=new _0x3dd8c8();_0x55c5c1['content']=_0x432942,_0x55c5c1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b32c8=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':[_0x55c5c1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b32c8['to']('errorType',_0x21e023=>t('NotFound'!==_0x21e023?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x470fd6]},{'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 _0x3127cf,View as _0x310f7f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x310f7f{constructor(_0x597f58){super(_0x597f58);const t=_0x597f58['t'],_0x3931e7=this['bindTemplate'],_0xc02b9b=new _0x3127cf();_0xc02b9b['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':[_0xc02b9b,{'text':_0x3931e7['to']('imageUploadProgress',_0x5a5bb0=>t('Loading\x20image...')+'\x20('+(_0x5a5bb0||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
|
-
|
|
23
|
+
function _0x1adf(_0x23eda3,_0x59a430){const _0x898d88=_0x898d();return _0x1adf=function(_0x1adfad,_0x40af28){_0x1adfad=_0x1adfad-0x69;let _0x438a76=_0x898d88[_0x1adfad];return _0x438a76;},_0x1adf(_0x23eda3,_0x59a430);}const _0x46563c=_0x1adf;function _0x898d(){const _0x14a387=['setTemplate','clear','render','_addErrorViewListeners','819092kvoWjE','add','div','_addUploadcareImageEditorListeners','218961QqFZMz','retry','disconnect','ck-reset_all-excluded','querySelector','fire','status','cancel','change:status','target','219808UUQzKu','nodeName','uploading','_setView','addEventListener','apply','element','166018slWxiR','_items','654143hEiLHq','_loadingView','detail','focus','907614idvOrO','_errorView','10NnAeiq','getFocusableElement','addMany','_focusableView','cdnUrl','set','uc-cloud-image-editor','_editingView','once','88922aTwqbo','toLowerCase','addedNodes','error','observe','createCollection','filter','_waitForImageEditorComponent','ck-uploadcare-form','ready','length','6wzCuqK','5nUDNky'];_0x898d=function(){return _0x14a387;};return _0x898d();}(function(_0x643866,_0x2a02ae){const _0x53e184=_0x1adf,_0x59d044=_0x643866();while(!![]){try{const _0x3261d2=parseInt(_0x53e184(0x92))/0x1+-parseInt(_0x53e184(0x6c))/0x2*(-parseInt(_0x53e184(0x77))/0x3)+-parseInt(_0x53e184(0x7d))/0x4+-parseInt(_0x53e184(0x78))/0x5*(-parseInt(_0x53e184(0x98))/0x6)+-parseInt(_0x53e184(0x94))/0x7+parseInt(_0x53e184(0x8b))/0x8+parseInt(_0x53e184(0x81))/0x9*(-parseInt(_0x53e184(0x9a))/0xa);if(_0x3261d2===_0x2a02ae)break;else _0x59d044['push'](_0x59d044['shift']());}catch(_0x4ed805){_0x59d044['push'](_0x59d044['shift']());}}}(_0x898d,0x1b21e));import{View as _0x1e39a8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2bd4d4}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x422535}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x122b04}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x280cba}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x280cba{[_0x46563c(0x93)];[_0x46563c(0x95)];[_0x46563c(0x99)];[_0x46563c(0x6a)];[_0x46563c(0x9d)];constructor(_0x148894,_0x371edc,_0x3682dc){const _0x43dfc5=_0x46563c;super(_0x148894),this[_0x43dfc5(0x93)]=this[_0x43dfc5(0x71)](),this[_0x43dfc5(0x95)]=new _0x2bd4d4(_0x148894),this[_0x43dfc5(0x99)]=new _0x422535(_0x148894),this[_0x43dfc5(0x6a)]=new _0x122b04(_0x148894,_0x3682dc),this[_0x43dfc5(0x9d)]=new _0x1e39a8(_0x148894),this[_0x43dfc5(0x9d)][_0x43dfc5(0x79)](this[_0x43dfc5(0x9b)]()),this[_0x43dfc5(0x9f)](_0x43dfc5(0x87),_0x371edc),this[_0x43dfc5(0x79)]({'tag':_0x43dfc5(0x7f),'attributes':{'class':['ck',_0x43dfc5(0x84),_0x43dfc5(0x74)],'tabindex':'-1'},'children':this[_0x43dfc5(0x93)]}),this[_0x43dfc5(0x8e)](),this[_0x43dfc5(0x6b)](_0x43dfc5(0x7b),()=>{const _0x1368e0=_0x43dfc5;this[_0x1368e0(0x73)](this[_0x1368e0(0x91)],_0x398ddf=>{const _0x3547e8=_0x1368e0;this[_0x3547e8(0x80)](_0x398ddf);});}),this['on'](_0x43dfc5(0x89),()=>{const _0x19fad5=_0x43dfc5;this[_0x19fad5(0x8e)]();}),this[_0x43dfc5(0x7c)]();}[_0x46563c(0x97)](){const _0x4226a5=_0x46563c;this[_0x4226a5(0x91)][_0x4226a5(0x97)]();}[_0x46563c(0x8e)](){const _0xf5c611=_0x46563c;switch(this[_0xf5c611(0x93)][_0xf5c611(0x7a)](),this[_0xf5c611(0x87)]){case _0xf5c611(0x8d):this[_0xf5c611(0x93)][_0xf5c611(0x7e)](this[_0xf5c611(0x95)]);break;case _0xf5c611(0x6f):this[_0xf5c611(0x93)][_0xf5c611(0x7e)](this[_0xf5c611(0x99)]);break;case _0xf5c611(0x75):this[_0xf5c611(0x93)][_0xf5c611(0x9c)]([this[_0xf5c611(0x6a)],this[_0xf5c611(0x9d)]]);}}[_0x46563c(0x73)](_0x3cb77c,_0xe1502b){const _0x10aebd=_0x46563c,_0x2ef71d=_0x10aebd(0x69),_0x2bb553=_0x3cb77c[_0x10aebd(0x85)](_0x2ef71d);if(_0x2bb553)return _0xe1502b(_0x2bb553);const _0x153702=new MutationObserver(_0x4e64ef=>{const _0x3a4e6d=_0x10aebd,_0x2b0041=_0x4e64ef[_0x3a4e6d(0x72)](_0x507feb=>_0x507feb[_0x3a4e6d(0x8a)]===_0x3cb77c&&_0x507feb[_0x3a4e6d(0x6e)][_0x3a4e6d(0x76)]>0x0&&_0x507feb[_0x3a4e6d(0x6e)][0x0][_0x3a4e6d(0x8c)][_0x3a4e6d(0x6d)]()===_0x2ef71d);_0x2b0041[_0x3a4e6d(0x76)]&&(_0x153702[_0x3a4e6d(0x83)](),_0xe1502b(_0x2b0041[0x0][_0x3a4e6d(0x6e)][0x0]));});_0x153702[_0x10aebd(0x70)](_0x3cb77c,{'childList':!0x0,'subtree':!0x0});}[_0x46563c(0x80)](_0x3c8692){const _0xe87700=_0x46563c;_0x3c8692[_0xe87700(0x8f)](_0xe87700(0x90),_0x1ff683=>{const _0x53fa25=_0xe87700;this[_0x53fa25(0x86)](_0x53fa25(0x90),{'imageSrc':_0x1ff683[_0x53fa25(0x96)][_0x53fa25(0x9e)]});}),_0x3c8692[_0xe87700(0x8f)](_0xe87700(0x88),()=>{const _0x420ea7=_0xe87700;this[_0x420ea7(0x86)](_0x420ea7(0x88));});}[_0x46563c(0x7c)](){const _0x3d7eb0=_0x46563c;this[_0x3d7eb0(0x99)]['on'](_0x3d7eb0(0x82),()=>{const _0x24e4d5=_0x3d7eb0;this[_0x24e4d5(0x86)](_0x24e4d5(0x82));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x16e093=_0x2064;(function(_0x503ea5,_0xd65d8b){const _0x38e278=_0x2064,_0x5aeaa5=_0x503ea5();while(!![]){try{const _0xc72743=parseInt(_0x38e278(0xfa))/0x1*(parseInt(_0x38e278(0xff))/0x2)+parseInt(_0x38e278(0xfc))/0x3+-parseInt(_0x38e278(0x10a))/0x4+parseInt(_0x38e278(0x101))/0x5+parseInt(_0x38e278(0x105))/0x6+-parseInt(_0x38e278(0xf9))/0x7*(parseInt(_0x38e278(0x10b))/0x8)+-parseInt(_0x38e278(0x107))/0x9*(parseInt(_0x38e278(0x114))/0xa);if(_0xc72743===_0xd65d8b)break;else _0x5aeaa5['push'](_0x5aeaa5['shift']());}catch(_0x16cbc9){_0x5aeaa5['push'](_0x5aeaa5['shift']());}}}(_0x5ceb,0x47b0c));function _0x2064(_0x3345d1,_0x533e4e){const _0x5ceb8f=_0x5ceb();return _0x2064=function(_0x2064af,_0x495c57){_0x2064af=_0x2064af-0xf5;let _0x35073a=_0x5ceb8f[_0x2064af];return _0x35073a;},_0x2064(_0x3345d1,_0x533e4e);}import{Command as _0x2ae4da}from'ckeditor5/src/core.js';function _0x5ceb(){const _0x269cf8=['2183700mMYjaS','editor','45XKfMgF','unbind','isActive','1912608sXeoMz','64IDhbwP','set','element','refresh','config','selection','requires','plugins','execute','668530uBLGQK','uploadcare.allowExternalImagesEditing','get','getSelectedElement','imageInline','372974WviOfz','4ONJsza','imageEditController','1650216NGsHTG','document','imageBlock','185990GJLGtK','isEnabled','1231575GxgKmc','bind','model','_isEditable'];_0x5ceb=function(){return _0x269cf8;};return _0x5ceb();}import{Dialog as _0x303586}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4eda79}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x20307d}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2ae4da{[_0x16e093(0xfb)];static get[_0x16e093(0x111)](){return[_0x303586];}[_0x16e093(0x104)];constructor(_0x2a88c9){const _0x1fe742=_0x16e093;super(_0x2a88c9),this[_0x1fe742(0xfb)]=void 0x0,this[_0x1fe742(0x104)]=_0x20307d(_0x2a88c9[_0x1fe742(0x10f)][_0x1fe742(0xf6)](_0x1fe742(0xf5))||[]),this[_0x1fe742(0x10c)]({'isActive':!0x1});}[_0x16e093(0x10e)](){const _0x3eeb1f=_0x16e093,_0x51d462=this[_0x3eeb1f(0x106)][_0x3eeb1f(0x103)][_0x3eeb1f(0xfd)][_0x3eeb1f(0x110)][_0x3eeb1f(0xf7)]();this[_0x3eeb1f(0x100)]=this[_0x3eeb1f(0x104)](_0x51d462);}[_0x16e093(0x113)](){const _0x1097ba=_0x16e093;this[_0x1097ba(0xfb)]&&(this[_0x1097ba(0x108)](_0x1097ba(0x109)),this[_0x1097ba(0xfb)]=void 0x0);const _0x45fe95=this[_0x1097ba(0x106)][_0x1097ba(0x103)][_0x1097ba(0xfd)][_0x1097ba(0x110)][_0x1097ba(0xf7)]();_0x45fe95&&(_0x45fe95['is'](_0x1097ba(0x10d),_0x1097ba(0xfe))||_0x45fe95['is'](_0x1097ba(0x10d),_0x1097ba(0xf8)))&&(this[_0x1097ba(0xfb)]=new _0x4eda79(this[_0x1097ba(0x106)],this[_0x1097ba(0x106)][_0x1097ba(0x112)][_0x1097ba(0xf6)](_0x303586),_0x45fe95),this[_0x1097ba(0x102)](_0x1097ba(0x109))['to'](this[_0x1097ba(0xfb)],_0x1097ba(0x109)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x34c8b8=_0x23b0;(function(_0x5c2392,_0x5da5fa){const _0xf1b757=_0x23b0,_0x16a119=_0x5c2392();while(!![]){try{const _0x482479=parseInt(_0xf1b757(0x18d))/0x1+-parseInt(_0xf1b757(0x188))/0x2*(parseInt(_0xf1b757(0x18c))/0x3)+parseInt(_0xf1b757(0x193))/0x4+parseInt(_0xf1b757(0x190))/0x5+parseInt(_0xf1b757(0x199))/0x6+parseInt(_0xf1b757(0x194))/0x7*(parseInt(_0xf1b757(0x186))/0x8)+-parseInt(_0xf1b757(0x191))/0x9;if(_0x482479===_0x5da5fa)break;else _0x16a119['push'](_0x16a119['shift']());}catch(_0x4aadaf){_0x16a119['push'](_0x16a119['shift']());}}}(_0x80a9,0x981f7));function _0x80a9(){const _0x1ee15d=['uploadcareImageReplace','3946910yoFJlG','9666315EQduIl','uploadcareImageEdit','1204428IweVOv','63JkhenA','commands','isOfficialPlugin','ImageEditing','init','461358UHbFTW','ImageUtils','787376nNiUSM','requires','2390rFdMSg','isPremiumPlugin','pluginName','add','2661rQZZOB','703915GyBXKP','UploadcareImageEditEditing'];_0x80a9=function(){return _0x1ee15d;};return _0x80a9();}import{Plugin as _0x45e0ab}from'ckeditor5/src/core.js';import{Notification as _0x85bd34}from'ckeditor5/src/ui.js';function _0x23b0(_0x311f7d,_0x930b33){const _0x80a91c=_0x80a9();return _0x23b0=function(_0x23b055,_0x32a70e){_0x23b055=_0x23b055-0x186;let _0x3258a9=_0x80a91c[_0x23b055];return _0x3258a9;},_0x23b0(_0x311f7d,_0x930b33);}import{UploadcareImageEditCommand as _0xce27bc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x15cd82}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xb295d7}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x45e0ab{static get[_0x34c8b8(0x18a)](){const _0x4831d7=_0x34c8b8;return _0x4831d7(0x18e);}static get[_0x34c8b8(0x187)](){const _0x1706c8=_0x34c8b8;return[_0xb295d7,_0x85bd34,_0x1706c8(0x19a),_0x1706c8(0x197)];}static get[_0x34c8b8(0x196)](){return!0x0;}static get[_0x34c8b8(0x189)](){return!0x0;}[_0x34c8b8(0x198)](){const _0x482bee=_0x34c8b8,{editor:_0x2781ad}=this;_0x2781ad[_0x482bee(0x195)][_0x482bee(0x18b)](_0x482bee(0x192),new _0xce27bc(_0x2781ad)),_0x2781ad[_0x482bee(0x195)][_0x482bee(0x18b)](_0x482bee(0x18f),new _0x15cd82(_0x2781ad));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2892a8}from'ckeditor5/src/core.js';import{ButtonView as _0x501988}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3a254f}from'ckeditor5/src/icons.js';import{createElement as _0x5d5f8f}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 _0x2892a8{['_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 _0x412d4b=this['editor'];_0x412d4b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1348b5=>{const _0x4a9027=_0x412d4b['commands']['get']('uploadcareImageEdit'),_0x4905b1=new _0x501988(_0x1348b5),t=_0x1348b5['t'];return _0x4905b1['set']({'icon':_0x3a254f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4905b1['bind']('isEnabled')['to'](_0x4a9027),_0x4905b1['bind']('isOn')['to'](_0x4a9027,'isActive'),this['listenTo'](_0x4905b1,'execute',()=>{_0x412d4b['execute']('uploadcareImageEdit'),_0x412d4b['editing']['view']['focus']();}),_0x4905b1;}),this['_initConfig']();}['_initConfig'](){const _0x2103a8=_0x5d5f8f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2103a8),this['listenTo'](this['editor'],'destroy',()=>{_0x2103a8['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4632cc=_0xbd84;function _0xbd84(_0x49350b,_0x544f9d){const _0x210472=_0x2104();return _0xbd84=function(_0xbd84cd,_0x13f8c0){_0xbd84cd=_0xbd84cd-0xe8;let _0x54aa88=_0x210472[_0xbd84cd];return _0x54aa88;},_0xbd84(_0x49350b,_0x544f9d);}(function(_0xbab85b,_0x4403fc){const _0xed4cb6=_0xbd84,_0x15d2b5=_0xbab85b();while(!![]){try{const _0x1504d0=-parseInt(_0xed4cb6(0xf9))/0x1*(-parseInt(_0xed4cb6(0xfc))/0x2)+parseInt(_0xed4cb6(0xed))/0x3+parseInt(_0xed4cb6(0xea))/0x4+-parseInt(_0xed4cb6(0xec))/0x5*(parseInt(_0xed4cb6(0xf7))/0x6)+parseInt(_0xed4cb6(0xef))/0x7*(-parseInt(_0xed4cb6(0xfa))/0x8)+-parseInt(_0xed4cb6(0x102))/0x9*(-parseInt(_0xed4cb6(0xee))/0xa)+-parseInt(_0xed4cb6(0xe8))/0xb;if(_0x1504d0===_0x4403fc)break;else _0x15d2b5['push'](_0x15d2b5['shift']());}catch(_0x2bcdb6){_0x15d2b5['push'](_0x15d2b5['shift']());}}}(_0x2104,0x25cfc));function _0x2104(){const _0x44fd15=['element','isEnabled','imageInline','document','28674smUzuF','5053631WMamaN','sizes','1229596dKFWXt','srcset','495Umodps','556977ZCWkoi','390BnrdRd','7BhrnNP','selection','editor','getSelectedElement','setAttributes','removeAttribute','change','imageBlock','1512cytvlP','refresh','1964XezhwR','2071352jXDGrB','model','286SpUFFK','execute'];_0x2104=function(){return _0x44fd15;};return _0x2104();}import{Command as _0x24289f}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x24289f{[_0x4632cc(0xf8)](){const _0x4d8131=_0x4632cc,_0x287ddc=this[_0x4d8131(0xf1)][_0x4d8131(0xfb)][_0x4d8131(0x101)][_0x4d8131(0xf0)][_0x4d8131(0xf2)]();this[_0x4d8131(0xff)]=Boolean(_0x287ddc&&(_0x287ddc['is'](_0x4d8131(0xfe),_0x4d8131(0xf6))||_0x287ddc['is'](_0x4d8131(0xfe),_0x4d8131(0x100))));}[_0x4632cc(0xfd)](_0x72c4bc){const _0x4ea627=_0x4632cc,_0x5594c6=this[_0x4ea627(0xf1)][_0x4ea627(0xfb)][_0x4ea627(0x101)][_0x4ea627(0xf0)][_0x4ea627(0xf2)]();this[_0x4ea627(0xf1)][_0x4ea627(0xfb)][_0x4ea627(0xf5)](_0x50f7cd=>{const _0x4b1979=_0x4ea627;_0x50f7cd[_0x4b1979(0xf3)](_0x72c4bc,_0x5594c6),_0x50f7cd[_0x4b1979(0xf4)](_0x4b1979(0xeb),_0x5594c6),_0x50f7cd[_0x4b1979(0xf4)](_0x4b1979(0xe9),_0x5594c6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x51321b=_0xd250;function _0xd250(_0x81d8d4,_0x1789ab){var _0x4bb841=_0x4bb8();return _0xd250=function(_0xd2504e,_0x12b498){_0xd2504e=_0xd2504e-0xc1;var _0x2a511b=_0x4bb841[_0xd2504e];return _0x2a511b;},_0xd250(_0x81d8d4,_0x1789ab);}(function(_0x93ae39,_0x3482c2){var _0x5aba8f=_0xd250,_0x1a7ecc=_0x93ae39();while(!![]){try{var _0x4eb73c=-parseInt(_0x5aba8f(0xcd))/0x1*(parseInt(_0x5aba8f(0xc2))/0x2)+-parseInt(_0x5aba8f(0xc9))/0x3*(parseInt(_0x5aba8f(0xcb))/0x4)+-parseInt(_0x5aba8f(0xc1))/0x5+parseInt(_0x5aba8f(0xca))/0x6*(-parseInt(_0x5aba8f(0xc3))/0x7)+parseInt(_0x5aba8f(0xc6))/0x8+parseInt(_0x5aba8f(0xcf))/0x9+parseInt(_0x5aba8f(0xce))/0xa;if(_0x4eb73c===_0x3482c2)break;else _0x1a7ecc['push'](_0x1a7ecc['shift']());}catch(_0x59f217){_0x1a7ecc['push'](_0x1a7ecc['shift']());}}}(_0x4bb8,0xcd196));import{Plugin as _0x3d2f33}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xa04524}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x12e383}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x3d2f33{static get[_0x51321b(0xc5)](){var _0x3b0fd3=_0x51321b;return _0x3b0fd3(0xcc);}static get[_0x51321b(0xc8)](){return[_0xa04524,_0x12e383];}static get[_0x51321b(0xc4)](){return!0x0;}static get[_0x51321b(0xc7)](){return!0x0;}}function _0x4bb8(){var _0x5286a4=['requires','100350qnLwpM','21300UutBAF','36jZFdVe','UploadcareImageEdit','1HWXqdq','35664950mfcHRQ','5216589BBsrUW','8304925veDWxZ','756304jFynJt','2107BEeUuk','isOfficialPlugin','pluginName','821656ncahyn','isPremiumPlugin'];_0x4bb8=function(){return _0x5286a4;};return _0x4bb8();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf74218=_0x21b7;(function(_0x283286,_0x158b0d){const _0x23cad4=_0x21b7,_0x2aa041=_0x283286();while(!![]){try{const _0x8372aa=parseInt(_0x23cad4(0x174))/0x1*(parseInt(_0x23cad4(0x17b))/0x2)+-parseInt(_0x23cad4(0x19c))/0x3+parseInt(_0x23cad4(0x196))/0x4+parseInt(_0x23cad4(0x1bb))/0x5*(-parseInt(_0x23cad4(0x18c))/0x6)+-parseInt(_0x23cad4(0x198))/0x7*(-parseInt(_0x23cad4(0x1c2))/0x8)+parseInt(_0x23cad4(0x1bf))/0x9*(parseInt(_0x23cad4(0x1b9))/0xa)+-parseInt(_0x23cad4(0x180))/0xb;if(_0x8372aa===_0x158b0d)break;else _0x2aa041['push'](_0x2aa041['shift']());}catch(_0x5efdd7){_0x2aa041['push'](_0x2aa041['shift']());}}}(_0x51b4,0x767f9));import{Plugin as _0xdfd67f}from'ckeditor5/src/core.js';import{IconDropbox as _0x39fca7,IconFacebook as _0x217480,IconGoogleDrive as _0x13c667,IconGooglePhotos as _0x49ddc8,IconUploadcareImageUpload as _0x25162b,IconUploadcareLink as _0x243fe8,IconOneDrive as _0x41c728}from'ckeditor5/src/icons.js';import{ButtonView as _0x27c564,MenuBarMenuListItemButtonView as _0x17b552}from'ckeditor5/src/ui.js';function _0x51b4(){const _0x10f81f=['map','tooltip','OneDrive','reduce','Uploadcare','init','upload','_createToolbarButton','Insert','execute','ImageInsertUI','get','has','plugins','uploadcareLicenseKeyDomainLimit','shortText','_createButton','Facebook','evaluationLimit','pluginName','bind','text','uploadcareLicenseKeyInvalid','10liajec','featureNotAllowed','205PJQMmu','afterInit','licenseKey','_licenseKeyCheckInterval','2088963UNvMZq','GPhotos','uploadcareLicenseKeyUsageLimit','11112MfknHf','domainLimit','url','_showLicenseError','772613xcoGdv','push','type','Dropbox','destroy','uploadcareLicenseKeyNotAllowed','usageLimit','2qsfIeo','uploadcare','Local','locale','_normalizeConfigSourceList','6597987WkAMWD','trialLimit','UploadcareUI','invalid','commands','forEach','uploadcareLicenseKeyTrialLimit','Replace','icon','isOfficialPlugin','expired','isImageSelected','85272RvzhHo','assetManager','_getIntegrationKey','GDrive','_createMenuBarButtons','config','withText','editor','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyExpired','1824584jTeMem','_createDropdownButtons','3108xHOzUu','URL','isPremiumPlugin','label','1229112lZeJqx','isEnabled','uploadcare.uploader.sourceList','uploadcareLicenseKeyValid','registerIntegration','entries'];_0x51b4=function(){return _0x10f81f;};return _0x51b4();}import{UploadcareSource as _0x11960a}from'./uploadcareconfig.js';import{getTranslation as _0x3f9088}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x21b7(_0x1645cf,_0x44ff57){const _0x51b470=_0x51b4();return _0x21b7=function(_0x21b7f1,_0x5571b2){_0x21b7f1=_0x21b7f1-0x172;let _0x6ae73e=_0x51b470[_0x21b7f1];return _0x6ae73e;},_0x21b7(_0x1645cf,_0x44ff57);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0xdfd67f{[_0xf74218(0x1bd)];[_0xf74218(0x1be)];static get[_0xf74218(0x1b5)](){const _0x56f377=_0xf74218;return _0x56f377(0x182);}static get[_0xf74218(0x189)](){return!0x0;}static get[_0xf74218(0x19a)](){return!0x0;}[_0xf74218(0x1a7)](){const _0x4719b3=_0xf74218;this[_0x4719b3(0x1bd)]=this[_0x4719b3(0x193)][_0x4719b3(0x191)][_0x4719b3(0x1ad)](_0x4719b3(0x1bd));const _0x3d6048=this[_0x4719b3(0x193)];this[_0x4719b3(0x1be)]=setInterval(()=>{const _0x4381b8=_0x4719b3;let _0x3dd7d4;for(const _0x1a9318 in _0x3d6048){const _0x4bfff3=_0x1a9318,_0x1670a5=_0x3d6048[_0x4bfff3];if(_0x4381b8(0x19f)==_0x1670a5||_0x4381b8(0x1b8)==_0x1670a5||_0x4381b8(0x195)==_0x1670a5||_0x4381b8(0x1b0)==_0x1670a5||_0x4381b8(0x179)==_0x1670a5||_0x4381b8(0x194)==_0x1670a5||_0x4381b8(0x186)==_0x1670a5||_0x4381b8(0x1c1)==_0x1670a5){delete _0x3d6048[_0x4bfff3],_0x3dd7d4=_0x1670a5,clearInterval(this[_0x4381b8(0x1be)]),this[_0x4381b8(0x1be)]=void 0x0;break;}}_0x4381b8(0x1b8)==_0x3dd7d4&&_0x3d6048[_0x4381b8(0x173)](_0x4381b8(0x183)),_0x4381b8(0x195)==_0x3dd7d4&&_0x3d6048[_0x4381b8(0x173)](_0x4381b8(0x18a)),_0x4381b8(0x1b0)==_0x3dd7d4&&_0x3d6048[_0x4381b8(0x173)](_0x4381b8(0x1c3)),_0x4381b8(0x179)==_0x3dd7d4&&_0x3d6048[_0x4381b8(0x173)](_0x4381b8(0x1ba),_0x4381b8(0x1a6)),_0x4381b8(0x194)==_0x3dd7d4&&_0x3d6048[_0x4381b8(0x173)](_0x4381b8(0x1b4)),_0x4381b8(0x186)==_0x3dd7d4&&_0x3d6048[_0x4381b8(0x173)](_0x4381b8(0x181)),_0x4381b8(0x1c1)==_0x3dd7d4&&_0x3d6048[_0x4381b8(0x173)](_0x4381b8(0x17a));},0x3e8);}[_0xf74218(0x1bc)](){const _0x1e6a1f=_0xf74218,{editor:_0x1f0928}=this,_0x5ae156=_0x1f0928[_0x1e6a1f(0x184)][_0x1e6a1f(0x1ad)](_0x1e6a1f(0x17c));if(!_0x5ae156)return;const _0x569ef3=this[_0x1e6a1f(0x17f)](_0x1f0928[_0x1e6a1f(0x191)][_0x1e6a1f(0x1ad)](_0x1e6a1f(0x19e)))[_0x1e6a1f(0x1a5)]((_0x36b9bf,_0x42fc9b)=>{const _0x40eee4=_0x1e6a1f,_0x5f2e5f=this[_0x40eee4(0x18e)](_0x42fc9b[_0x40eee4(0x176)]);return _0x36b9bf[_0x5f2e5f]||(_0x36b9bf[_0x5f2e5f]=[]),_0x36b9bf[_0x5f2e5f][_0x40eee4(0x175)](_0x42fc9b),_0x36b9bf;},{});_0x1f0928[_0x1e6a1f(0x1af)][_0x1e6a1f(0x1ae)](_0x1e6a1f(0x1ac))&&_0x1f0928[_0x1e6a1f(0x184)][_0x1e6a1f(0x1ad)](_0x1e6a1f(0x17c))&&Object[_0x1e6a1f(0x1a1)](_0x569ef3)[_0x1e6a1f(0x185)](([_0x590293,_0x29e371])=>{const _0x3e3cd0=_0x1e6a1f;_0x1f0928[_0x3e3cd0(0x1af)][_0x3e3cd0(0x1ad)](_0x3e3cd0(0x1ac))[_0x3e3cd0(0x1a0)]({'name':_0x590293,'observable':()=>_0x5ae156,'buttonViewCreator':()=>this[_0x3e3cd0(0x1a9)](_0x29e371),'formViewCreator':()=>this[_0x3e3cd0(0x197)](_0x29e371),'menuBarButtonViewCreator':()=>this[_0x3e3cd0(0x190)](_0x29e371),'override':_0x3e3cd0(0x18d)!==_0x590293});});}[_0xf74218(0x178)](){const _0x3bbcc=_0xf74218;super[_0x3bbcc(0x178)](),this[_0x3bbcc(0x1be)]&&clearInterval(this[_0x3bbcc(0x1be)]);}[_0xf74218(0x17f)](_0x1f4e48){const _0x10f67c=_0xf74218,{locale:_0x4f5487}=this[_0x10f67c(0x193)];return _0x1f4e48[_0x10f67c(0x1a2)](_0x1ec3e3=>{const _0x5b3269=_0x10f67c,_0x220724=_0x3f9088(_0x4f5487,_0x1ec3e3,_0x5b3269(0x1aa));switch(_0x1ec3e3){case _0x11960a[_0x5b3269(0x17d)]:return{'icon':_0x25162b,'type':_0x11960a[_0x5b3269(0x17d)],..._0x220724};case _0x11960a[_0x5b3269(0x199)]:return{'icon':_0x243fe8,'type':_0x11960a[_0x5b3269(0x199)],..._0x220724};case _0x11960a[_0x5b3269(0x177)]:return{'icon':_0x39fca7,'type':_0x11960a[_0x5b3269(0x177)],..._0x220724};case _0x11960a[_0x5b3269(0x1b3)]:return{'icon':_0x217480,'type':_0x11960a[_0x5b3269(0x1b3)],..._0x220724};case _0x11960a[_0x5b3269(0x18f)]:return{'icon':_0x13c667,'type':_0x11960a[_0x5b3269(0x18f)],..._0x220724};case _0x11960a[_0x5b3269(0x1c0)]:return{'icon':_0x49ddc8,'type':_0x11960a[_0x5b3269(0x1c0)],..._0x220724};case _0x11960a[_0x5b3269(0x1a4)]:return{'icon':_0x41c728,'type':_0x11960a[_0x5b3269(0x1a4)],..._0x220724};}});}[_0xf74218(0x18e)](_0x70779d){const _0x210fda=_0xf74218;switch(_0x70779d){case _0x11960a[_0x210fda(0x17d)]:return _0x210fda(0x1a8);case _0x11960a[_0x210fda(0x199)]:return _0x210fda(0x172);default:return _0x210fda(0x18d);}}[_0xf74218(0x1b2)](_0x4501c8,_0x2c1525){const _0x1a380b=_0xf74218,_0x1fa7d1=this[_0x1a380b(0x193)],_0x26d187=new _0x4501c8(_0x1fa7d1[_0x1a380b(0x17e)]),_0x50d753=_0x1fa7d1[_0x1a380b(0x184)][_0x1a380b(0x1ad)](_0x1a380b(0x17c));return _0x26d187[_0x1a380b(0x1b6)](_0x1a380b(0x19d))['to'](_0x50d753),_0x26d187['on'](_0x1a380b(0x1ab),()=>{const _0x2440c4=_0x1a380b;_0x50d753[_0x2440c4(0x1ab)](_0x2c1525);}),_0x26d187;}[_0xf74218(0x1a9)](_0x5923a9){const _0x1a80f6=_0xf74218,{locale:_0x202695}=this[_0x1a80f6(0x193)],_0x11929d=this[_0x1a80f6(0x193)][_0x1a80f6(0x1af)][_0x1a80f6(0x1ad)](_0x1a80f6(0x1ac)),_0x201008=_0x5923a9[0x0],_0x3f6ca6=this[_0x1a80f6(0x1b2)](_0x27c564,_0x201008[_0x1a80f6(0x176)]);return _0x3f6ca6[_0x1a80f6(0x188)]=_0x201008[_0x1a80f6(0x188)],_0x3f6ca6[_0x1a80f6(0x1b6)](_0x1a80f6(0x19b))['to'](_0x11929d,_0x1a80f6(0x18b),_0x5f6b64=>_0x3f9088(_0x202695,_0x201008[_0x1a80f6(0x176)],_0x5f6b64?_0x1a80f6(0x187):_0x1a80f6(0x1aa))[_0x1a80f6(0x1b7)]),_0x3f6ca6[_0x1a80f6(0x1a3)]=!0x0,_0x3f6ca6;}[_0xf74218(0x197)](_0x183fb2){const _0x35ba1a=_0xf74218,{locale:_0x5743ed}=this[_0x35ba1a(0x193)],_0xd2d011=this[_0x35ba1a(0x193)][_0x35ba1a(0x1af)][_0x35ba1a(0x1ad)](_0x35ba1a(0x1ac));return _0x183fb2[_0x35ba1a(0x1a2)](_0x1fd178=>{const _0x5887cf=_0x35ba1a,_0x2a785a=this[_0x5887cf(0x1b2)](_0x27c564,_0x1fd178[_0x5887cf(0x176)]);return _0x2a785a[_0x5887cf(0x192)]=!0x0,_0x2a785a[_0x5887cf(0x188)]=_0x1fd178[_0x5887cf(0x188)],_0x2a785a[_0x5887cf(0x1b6)](_0x5887cf(0x19b))['to'](_0xd2d011,_0x5887cf(0x18b),_0x190c9c=>_0x3f9088(_0x5743ed,_0x1fd178[_0x5887cf(0x176)],_0x190c9c?_0x5887cf(0x187):_0x5887cf(0x1aa))[_0x5887cf(0x1b7)]),_0x2a785a;});}[_0xf74218(0x190)](_0x5f4581){const _0x1d0ca=_0xf74218;return _0x5f4581[_0x1d0ca(0x1a2)](_0x430617=>{const _0x203dac=_0x1d0ca,_0x1613d1=this[_0x203dac(0x1b2)](_0x17b552,_0x430617[_0x203dac(0x176)]);return _0x1613d1[_0x203dac(0x188)]=_0x430617[_0x203dac(0x188)],_0x1613d1[_0x203dac(0x19b)]=_0x430617[_0x203dac(0x1b1)],_0x1613d1;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x33a50f}from'ckeditor5/src/core.js';import{FileRepository as _0x4daaae}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x53bcb1}from'./uploadcareediting.js';import{UploadUtils as _0x2e9b2a}from'./utils/uploadutils.js';import{getImageUrls as _0x3866f3}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x33a50f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4daaae,_0x53bcb1];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1b003e=this['editor'];if(!!!_0x1b003e['config']['get']('uploadcare'))return;_0x1b003e['plugins']['get'](_0x4daaae)['createUploadAdapter']=_0x22a870=>new k(_0x22a870,_0x1b003e),_0x1b003e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xf77042,{imageElement:_0x322e8e,data:_0x153608})=>{_0x1b003e['model']['change'](_0x27ed75=>{_0x27ed75['setAttribute']('uploadcareImageId',_0x153608['uploadcareImageId'],_0x322e8e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2b857f,_0xc97324){this['loader']=_0x2b857f,this['editor']=_0xc97324,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x515db4=await this['loader']['file'];return _0x2e9b2a['upload']({'file':_0x515db4,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x58f66d=>{_0x58f66d&&_0x58f66d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x58f66d['value']);}})['then'](async _0x934feb=>{const {imageFallbackUrl:_0x24ebe1,imageSources:_0xdb6b72}=_0x3866f3(_0x934feb['cdnUrl'],_0x934feb['imageInfo']['width']);return{'uploadcareImageId':_0x934feb['uuid'],'default':_0x24ebe1,'sources':_0xdb6b72};})['catch'](()=>{const _0x507398=t('Cannot\x20upload\x20file:')+('\x20'+_0x515db4['name']+'.');return Promise['reject'](_0x507398);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x26f58b}from'../uploadcareconfig.js';export function getTranslation(_0x3ff771,_0x105e3c,_0x2c87a0){const t=_0x3ff771['t'],_0x26368b=_0x3ff771['t'];switch(_0x105e3c){case _0x26f58b['Local']:return{'text':_0x26368b('Insert'===_0x2c87a0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x26368b('From\x20computer')};case _0x26f58b['URL']:return{'text':'Insert'===_0x2c87a0?_0x26368b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x26368b('Via\x20URL')};case _0x26f58b['Dropbox']:return{'text':t('Insert'===_0x2c87a0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x26f58b['Facebook']:return{'text':t('Insert'===_0x2c87a0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x26f58b['GDrive']:return{'text':t('Insert'===_0x2c87a0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x26f58b['GPhotos']:return{'text':t('Insert'===_0x2c87a0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x26f58b['OneDrive']:return{'text':t('Insert'===_0x2c87a0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x105e3c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2a4d(_0x2c0ed8,_0x5d31d2){var _0x14645a=_0x1464();return _0x2a4d=function(_0x2a4d31,_0x1453b5){_0x2a4d31=_0x2a4d31-0x12d;var _0x10aa8a=_0x14645a[_0x2a4d31];return _0x10aa8a;},_0x2a4d(_0x2c0ed8,_0x5d31d2);}var _0x2d6e9e=_0x2a4d;function _0x1464(){var _0x4fbd8e=['2251988eUCMQU','4690wIHJUX','9147296WUOOML','10bdzQyc','171UfXGlv','fire','focusCycler','createCollection','3664824jEkits','bindTemplate','div','10838232qSTtSE','1604705NEAkuL','forwardCycle','getFocusableElement','focusTracker','true','3DbqcfX','4821908HgooSa'];_0x1464=function(){return _0x4fbd8e;};return _0x1464();}(function(_0x51b7fe,_0x59d986){var _0x1f081c=_0x2a4d,_0x358a30=_0x51b7fe();while(!![]){try{var _0x837859=parseInt(_0x1f081c(0x12f))/0x1*(parseInt(_0x1f081c(0x13f))/0x2)+parseInt(_0x1f081c(0x13c))/0x3*(parseInt(_0x1f081c(0x13e))/0x4)+-parseInt(_0x1f081c(0x137))/0x5+parseInt(_0x1f081c(0x133))/0x6+-parseInt(_0x1f081c(0x13d))/0x7+-parseInt(_0x1f081c(0x12d))/0x8+-parseInt(_0x1f081c(0x136))/0x9*(-parseInt(_0x1f081c(0x12e))/0xa);if(_0x837859===_0x59d986)break;else _0x358a30['push'](_0x358a30['shift']());}catch(_0x244166){_0x358a30['push'](_0x358a30['shift']());}}}(_0x1464,0x98cb7));import{FocusTracker as _0x16a890}from'ckeditor5/src/utils.js';import{View as _0xe42d4a,FocusCycler as _0x4833e2}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xe42d4a{[_0x2d6e9e(0x13a)];[_0x2d6e9e(0x131)];constructor(_0xa7582f){var _0x542a81=_0x2d6e9e;super(_0xa7582f),this[_0x542a81(0x13a)]=new _0x16a890(),this[_0x542a81(0x131)]=new _0x4833e2({'focusables':this[_0x542a81(0x132)](),'focusTracker':this[_0x542a81(0x13a)]});}[_0x2d6e9e(0x139)](){var _0x33f8c3=_0x2d6e9e;return{'tag':_0x33f8c3(0x135),'attributes':{'aria-hidden':_0x33f8c3(0x13b),'tabindex':'0'},'on':{'focus':this[_0x33f8c3(0x134)]['to'](()=>{var _0xbfc940=_0x33f8c3;this[_0xbfc940(0x131)][_0xbfc940(0x130)](_0xbfc940(0x138));})}};}}
|