@ckeditor/ckeditor5-uploadcare 47.5.0-alpha.7 → 47.5.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
|
-
function _0xb91e(_0x313717,_0x581221){const _0x7fd334=_0x7fd3();return _0xb91e=function(_0xb91e7b,_0x4b0497){_0xb91e7b=_0xb91e7b-0xc7;let _0x37f68d=_0x7fd334[_0xb91e7b];return _0x37f68d;},_0xb91e(_0x313717,_0x581221);}const _0xc10ee9=_0xb91e;(function(_0x5152a3,_0x506144){const _0x17440a=_0xb91e,_0x2e8e4b=_0x5152a3();while(!![]){try{const _0x17072c=-parseInt(_0x17440a(0xcc))/0x1+parseInt(_0x17440a(0x11a))/0x2*(-parseInt(_0x17440a(0xdb))/0x3)+parseInt(_0x17440a(0x119))/0x4*(-parseInt(_0x17440a(0xfd))/0x5)+parseInt(_0x17440a(0x105))/0x6*(-parseInt(_0x17440a(0xdf))/0x7)+-parseInt(_0x17440a(0x11b))/0x8+-parseInt(_0x17440a(0xce))/0x9+-parseInt(_0x17440a(0xf8))/0xa*(-parseInt(_0x17440a(0x114))/0xb);if(_0x17072c===_0x506144)break;else _0x2e8e4b['push'](_0x2e8e4b['shift']());}catch(_0x3663f4){_0x2e8e4b['push'](_0x2e8e4b['shift']());}}}(_0x7fd3,0xf3bd8));import{Plugin as _0x21ea32}from'ckeditor5/src/core.js';import{Dialog as _0x14a5a7}from'ckeditor5/src/ui.js';function _0x7fd3(){const _0x29ff17=['get','requires','extend','ucContextId','_initConversion','UploadcareEditing','uploadcare','document','join','true','#uc-icon-arrow-down','for','6963PHWWLp','uploadcare.pubkey','body','model','downcast','1657492JLPHFH','1926494RhmHqX','2224480SkchLx','add','iconHrefResolver','_ctxElement','insertImage','querySelector','conversion','1038759GNRhhu','isPremiumPlugin','3247443CkpDKp','schema','uc-config','contentLanguage','closeMax','uploadcareImageReplace','commands','attributeToAttribute','pluginName','getSelectedElement','_initCtx','editor','_initImageProcessingIndicator','6KwWLfV','uc-upload-ctx-provider','imageInline','uploadcare.uploader','486192VllWDc','\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','destroy','isRegistered','uploadcareImageId','once','configElement','upcast','locale','_initConfig','fromCharCode','afterInit','config','selection','href','execute','editing','map','data-uc-image-id','listenTo','uploader-','isOfficialPlugin','cleanupImage','getAttribute','removeAttribute','81450nkeUGV','replaceImageSource','_configElement','imageBlock','ctxElement','5cTMRaL','render','remove','init','PictureEditing','view','elementToAttribute','_initSchema','12AtPdVq','input[uploadcare-file-input]','appendChild'];_0x7fd3=function(){return _0x29ff17;};return _0x7fd3();}import{createElement as _0x33d5d8,global as _0x47d2cb,uid as _0x35c970}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x339008}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x56d9f9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4bbeb4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x21ea32{[_0xc10ee9(0xfa)]=null;[_0xc10ee9(0xc8)]=null;static get[_0xc10ee9(0xd6)](){const _0x37c8b0=_0xc10ee9;return _0x37c8b0(0x10d);}static get[_0xc10ee9(0x109)](){const _0x12b241=_0xc10ee9;return[_0x12b241(0x101),_0x56d9f9,_0x14a5a7];}static get[_0xc10ee9(0xf4)](){return!0x0;}static get[_0xc10ee9(0xcd)](){return!0x0;}[_0xc10ee9(0x10b)];get[_0xc10ee9(0xe5)](){const _0x3548b8=_0xc10ee9;return this[_0x3548b8(0xfa)];}get[_0xc10ee9(0xfc)](){const _0x125a2e=_0xc10ee9;return this[_0x125a2e(0xc8)];}constructor(_0x3ae04c){const _0x1a6b35=_0xc10ee9;super(_0x3ae04c),this[_0x1a6b35(0x10b)]=_0x35c970();}[_0xc10ee9(0x100)](){const _0x47ec22=_0xc10ee9,_0x3ff07d=this[_0x47ec22(0xd9)];_0x3ff07d[_0x47ec22(0xd4)][_0x47ec22(0x11c)](_0x47ec22(0x10e),new _0x339008(_0x3ff07d));}[_0xc10ee9(0xea)](){const _0x480208=_0xc10ee9;this[_0x480208(0x104)](),this[_0x480208(0x10c)](),this[_0x480208(0xe8)](),this[_0x480208(0xd8)](),this[_0x480208(0xda)](),this[_0x480208(0xf2)](this[_0x480208(0xd9)],_0x480208(0xe1),()=>{const _0x2b5be3=_0x480208;this[_0x2b5be3(0xfa)]&&(this[_0x2b5be3(0xfa)][_0x2b5be3(0xff)](),this[_0x2b5be3(0xfa)]=null),this[_0x2b5be3(0xc8)]&&(this[_0x2b5be3(0xc8)][_0x2b5be3(0xff)](),this[_0x2b5be3(0xc8)]=null);const _0x4ab419=_0x47d2cb[_0x2b5be3(0x10f)][_0x2b5be3(0xca)](_0x2b5be3(0x106));_0x4ab419&&_0x4ab419[_0x2b5be3(0xff)]();}),async function(_0x2fb41a){const _0x13b009=_0x1b3896([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]),_0x511e4a=0x535f8c3a,_0x3dfff2=0x53580d6a^_0x511e4a,_0x41b2bd=window[_0x1b3896([0x44,0x61,0x74,0x65])][_0x1b3896([0x6e,0x6f,0x77])](),_0x386a2c=_0x2fb41a[_0x1b3896([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x467c6d=new window[(_0x1b3896([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44e75f=>{_0x386a2c[_0x1b3896([0x6f,0x6e,0x63,0x65])](_0x1b3896([0x72,0x65,0x61,0x64,0x79]),_0x44e75f);}),_0x15ac43={[_0x1b3896([0x6b,0x74,0x79])]:_0x1b3896([0x45,0x43]),[_0x1b3896([0x75,0x73,0x65])]:_0x1b3896([0x73,0x69,0x67]),[_0x1b3896([0x63,0x72,0x76])]:_0x1b3896([0x50,0x2d,0x32,0x35,0x36]),[_0x1b3896([0x78])]:_0x1b3896([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]),[_0x1b3896([0x79])]:_0x1b3896([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]),[_0x1b3896([0x61,0x6c,0x67])]:_0x1b3896([0x45,0x53,0x32,0x35,0x36])},_0x5f540d=_0x386a2c[_0x1b3896([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b3896([0x67,0x65,0x74])](_0x1b3896([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x532281(){let _0x31b467,_0x55a680=null,_0x1dcd77=null;try{if(_0x5f540d==_0x1b3896([0x47,0x50,0x4c]))return _0x1b3896([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31b467=_0x4438c2(),!_0x31b467)return _0x1b3896([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31b467[_0x1b3896([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dcd77=_0x3883f2(_0x31b467[_0x1b3896([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31b467[_0x1b3896([0x6a,0x74,0x69])])),await _0x4a1774()?_0x449b1f()?_0x303330()?_0x1b3896([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e6e20()?(_0x31b467[_0x1b3896([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b3896([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55a680=_0x17d5a5(_0x1b3896([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52f9bb()):_0x1b3896([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b3896([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b3896([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b3896([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x303330(){const _0x55faec=[_0x1b3896([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b3896([0x74,0x72,0x69,0x61,0x6c])][_0x1b3896([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31b467[_0x1b3896([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41b2bd/0x3e8:0xe10*_0x3dfff2;return _0x31b467[_0x1b3896([0x65,0x78,0x70])]<_0x55faec;}function _0x449b1f(){const _0x12f7e7=_0x31b467[_0x1b3896([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12f7e7&&(!!_0x12f7e7[_0x1b3896([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3896([0x2a]))||!!_0x12f7e7[_0x1b3896([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3896([0x55,0x50,0x4c,0x43])));}function _0x4e6e20(){const _0x4ff8b7=_0xb91e,_0x180ae4=_0x31b467[_0x1b3896([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x180ae4||0x0==_0x180ae4[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x405818}=new URL(window[_0x1b3896([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ff8b7(0xed)]);if(_0x180ae4[_0x1b3896([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x405818))return!0x0;const _0x451cb1=_0x405818[_0x1b3896([0x73,0x70,0x6c,0x69,0x74])](_0x1b3896([0x2e]));return _0x180ae4[_0x1b3896([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x227555=>_0x227555[_0x1b3896([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3896([0x2a])))[_0x1b3896([0x6d,0x61,0x70])](_0x1da106=>_0x1da106[_0x1b3896([0x73,0x70,0x6c,0x69,0x74])](_0x1b3896([0x2e])))[_0x1b3896([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fa726=>_0x4fa726[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x451cb1[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b3896([0x6d,0x61,0x70])](_0x1a83c6=>Array(_0x451cb1[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a83c6[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b3896([0x66,0x69,0x6c,0x6c])](_0x1a83c6[0x0]===_0x1b3896([0x2a])?_0x1b3896([0x2a]):'')[_0x1b3896([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a83c6))[_0x1b3896([0x73,0x6f,0x6d,0x65])](_0x483ffa=>_0x451cb1[_0x1b3896([0x65,0x76,0x65,0x72,0x79])]((_0x122ff9,_0xca79e7)=>_0x483ffa[_0xca79e7]===_0x122ff9||_0x483ffa[_0xca79e7]===_0x1b3896([0x2a])));}function _0x52f9bb(){return _0x55a680&&_0x1dcd77?new window[(_0x1b3896([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2873f7,_0x5618c7)=>{_0x55a680[_0x1b3896([0x74,0x68,0x65,0x6e])](_0x2873f7,_0x5618c7),_0x1dcd77[_0x1b3896([0x74,0x68,0x65,0x6e])](_0x1f0c33=>{_0x1f0c33!=_0x1b3896([0x56,0x61,0x6c,0x69,0x64])&&_0x2873f7(_0x1f0c33);},_0x5618c7);}):_0x55a680||_0x1dcd77||_0x1b3896([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3883f2(_0x5589b8,_0x328e28){return new window[(_0x1b3896([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x565bb0=>{if(_0x5d4c00())return _0x565bb0(_0x1b3896([0x56,0x61,0x6c,0x69,0x64]));_0x24f14d(),_0x386a2c[_0x1b3896([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b3896([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b8ca4=!0x1;const _0x2ef2df=_0x35c970();function _0x12f8a9(_0x1ddad7){return!!_0x1ddad7&&(typeof _0x1ddad7===_0x1b3896([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ddad7===_0x1b3896([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ddad7[_0x1b3896([0x74,0x68,0x65,0x6e])]===_0x1b3896([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ddad7[_0x1b3896([0x63,0x61,0x74,0x63,0x68])]===_0x1b3896([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8911a5(_0x3897bd){_0x2be55c(_0x3897bd)[_0x1b3896([0x74,0x68,0x65,0x6e])](_0x2b2bc5=>{if(!_0x2b2bc5||_0x2b2bc5[_0x1b3896([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b3896([0x6f,0x6b]))return _0x1b3896([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f808d(_0x5e6d82(_0x2ef2df+_0x328e28))!=_0x2b2bc5[_0x1b3896([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b3896([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b3896([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b3896([0x74,0x68,0x65,0x6e])](_0x425d83=>(_0x238d10(),_0x425d83),()=>{const _0x53f9b0=_0x3693c0();return null==_0x53f9b0?(_0x238d10(),_0x1b3896([0x56,0x61,0x6c,0x69,0x64])):_0x1b3896(_0x41b2bd-_0x53f9b0>(0x7753083a^_0x511e4a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b3896([0x74,0x68,0x65,0x6e])](_0x565bb0)[_0x1b3896([0x63,0x61,0x74,0x63,0x68])](()=>{_0x565bb0(_0x1b3896([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36f85d=0x536962ba^_0x511e4a;function _0x238d10(){const _0x379906=_0x1b3896([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f808d(_0x5e6d82(_0x5589b8)),_0x1d759a=_0x2e739f(_0x4f808d(window[_0x1b3896([0x4d,0x61,0x74,0x68])][_0x1b3896([0x63,0x65,0x69,0x6c])](_0x41b2bd/_0x36f85d)));window[_0x1b3896([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b3896([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x379906,_0x1d759a);}function _0x3693c0(){const _0xc79131=_0x1b3896([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f808d(_0x5e6d82(_0x5589b8)),_0x557851=window[_0x1b3896([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b3896([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc79131);return _0x557851?window[_0x1b3896([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e739f(_0x557851),0x10)*_0x36f85d:null;}function _0x2be55c(_0x22f8a5){return new window[(_0x1b3896([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c0fa4,_0x1dc047)=>{_0x22f8a5[_0x1b3896([0x74,0x68,0x65,0x6e])](_0x1c0fa4,_0x1dc047),window[_0x1b3896([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1dc047,0x535e58fa^_0x511e4a);});}}_0x386a2c[_0x1b3896([0x6f,0x6e])](_0x1b3896([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x414187,_0x3edd67)=>{if(_0x3edd67[0x0]!=_0x5589b8)return _0x565bb0(_0x1b3896([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3edd67[0x1]={..._0x3edd67[0x1],[_0x1b3896([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ef2df};},{[_0x1b3896([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b3896([0x68,0x69,0x67,0x68])}),_0x386a2c[_0x1b3896([0x6f,0x6e])](_0x1b3896([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x278581=>{_0x12f8a9(_0x278581[_0x1b3896([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b8ca4=!0x0,_0x8911a5(_0x278581[_0x1b3896([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b3896([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b3896([0x6c,0x6f,0x77])}),_0x467c6d[_0x1b3896([0x74,0x68,0x65,0x6e])](()=>{_0x4b8ca4||_0x565bb0(_0x1b3896([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d4c00(){return _0x386a2c[_0x1b3896([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b3896([0x76,0x69,0x65,0x77])][_0x1b3896([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b3896([0x61,0x75,0x74,0x6f]);}function _0x24f14d(){_0x386a2c[_0x1b3896([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b3896([0x76,0x69,0x65,0x77])][_0x1b3896([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b3896([0x61,0x75,0x74,0x6f]);}}function _0x17d5a5(_0x31e064){const _0x5352b2=[new window[(_0x1b3896([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fc7d=>setTimeout(_0x29fc7d,0x5356b2f6^_0x511e4a)),_0x467c6d[_0x1b3896([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b3896([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c3af0=>{let _0x3906ac=0x0;_0x386a2c[_0x1b3896([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3896([0x6f,0x6e])](_0x1b3896([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x148005,_0x2b9fbd)=>{_0x2b9fbd[0x0][_0x1b3896([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3906ac++,_0x3906ac==(0x535f89d2^_0x511e4a)&&(_0x4c3af0(),_0x148005[_0x1b3896([0x6f,0x66,0x66])]());});}))];return window[_0x1b3896([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b3896([0x72,0x61,0x63,0x65])](_0x5352b2)[_0x1b3896([0x74,0x68,0x65,0x6e])](()=>_0x31e064);}async function _0x2b9e7a(){await _0x467c6d,_0x386a2c[_0x1b3896([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3896([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f7e5d,_0x386a2c[_0x1b3896([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3896([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f7e5d,_0x386a2c[_0x1b3896([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b3896([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x407f70(_0x3fb2ed){const _0x125631=_0x172e95();_0x386a2c[_0x125631]=_0x1b3896([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3fb2ed,_0x3fb2ed!=_0x1b3896([0x56,0x61,0x6c,0x69,0x64])&&_0x2b9e7a();}function _0x172e95(){const _0x2f2340=window[_0x1b3896([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b3896([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b3896([0x6e,0x6f,0x77])]())[_0x1b3896([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b3896([0x2e]),'');let _0x1d2064=_0x1b3896([0x68]);for(let _0x4c44bd=0x0;_0x4c44bd<_0x2f2340[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c44bd+=0x2){let _0x50b7f9=window[_0x1b3896([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2340[_0x1b3896([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c44bd,_0x4c44bd+0x2));_0x50b7f9>=_0x13b009[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50b7f9-=_0x13b009[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d2064+=_0x13b009[_0x50b7f9];}return _0x1d2064;}function _0x4438c2(){const _0x482e3e=_0x5f540d[_0x1b3896([0x73,0x70,0x6c,0x69,0x74])](_0x1b3896([0x2e]));if(0x3!=_0x482e3e[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2628ea(_0x482e3e[0x1]);function _0x2628ea(_0x3dbad8){const _0x80ce5a=_0x5ae1eb(_0x3dbad8);return _0x80ce5a&&_0x34f8ac()?_0x80ce5a:null;function _0x34f8ac(){const _0x19acd8=_0x80ce5a[_0x1b3896([0x6a,0x74,0x69])],_0x538733=window[_0x1b3896([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19acd8[_0x1b3896([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19acd8[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4537c8={..._0x80ce5a,[_0x1b3896([0x6a,0x74,0x69])]:_0x19acd8[_0x1b3896([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19acd8[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4537c8[_0x1b3896([0x76,0x63])],_0x5e6d82(_0x4537c8)==_0x538733;}}}async function _0x4a1774(){let _0x55bdbd=!0x0;try{const _0x3da3fd=_0x5f540d[_0x1b3896([0x73,0x70,0x6c,0x69,0x74])](_0x1b3896([0x2e])),[_0x33686c,_0xaab79a,_0x4f6919]=_0x3da3fd;return _0x429227(_0x33686c),await _0x32a526(_0x33686c,_0xaab79a,_0x4f6919),_0x55bdbd;}catch{return!0x1;}function _0x429227(_0x3d7686){const _0x1d6bb2=_0x5ae1eb(_0x3d7686);_0x1d6bb2&&_0x1d6bb2[_0x1b3896([0x61,0x6c,0x67])]==_0x1b3896([0x45,0x53,0x32,0x35,0x36])||(_0x55bdbd=!0x1);}async function _0x32a526(_0x2d8bb3,_0x458766,_0x1970fa){const _0x536eb2=window[_0x1b3896([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b3896([0x66,0x72,0x6f,0x6d])](_0x49adac(_0x1970fa),_0x45fd60=>_0x45fd60[_0x1b3896([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f71c5=new window[(_0x1b3896([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b3896([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d8bb3+_0x1b3896([0x2e])+_0x458766),_0xf5b5f2=window[_0x1b3896([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b3896([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf5b5f2)return;const _0xec519f=await _0xf5b5f2[_0x1b3896([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b3896([0x6a,0x77,0x6b]),_0x15ac43,{[_0x1b3896([0x6e,0x61,0x6d,0x65])]:_0x1b3896([0x45,0x43,0x44,0x53,0x41]),[_0x1b3896([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b3896([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b3896([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf5b5f2[_0x1b3896([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b3896([0x6e,0x61,0x6d,0x65])]:_0x1b3896([0x45,0x43,0x44,0x53,0x41]),[_0x1b3896([0x68,0x61,0x73,0x68])]:{[_0x1b3896([0x6e,0x61,0x6d,0x65])]:_0x1b3896([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xec519f,_0x536eb2,_0x2f71c5)||(_0x55bdbd=!0x1);}}function _0x5ae1eb(_0x51e482){return _0x51e482[_0x1b3896([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b3896([0x65,0x79]))?JSON[_0x1b3896([0x70,0x61,0x72,0x73,0x65])](_0x49adac(_0x51e482)):null;}function _0x49adac(_0x275cd2){return window[_0x1b3896([0x61,0x74,0x6f,0x62])](_0x275cd2[_0x1b3896([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b3896([0x2b]))[_0x1b3896([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b3896([0x2f])));}function _0x5e6d82(_0x503398){let _0x48ca78=0x1505;function _0x538ec5(_0x5ee446){for(let _0x40c2e0=0x0;_0x40c2e0<_0x5ee446[_0x1b3896([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40c2e0++){const _0x5f380d=_0x5ee446[_0x1b3896([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40c2e0);_0x48ca78=(_0x48ca78<<0x5)+_0x48ca78+_0x5f380d,_0x48ca78&=_0x48ca78;}}function _0x17a287(_0x2c819a){Array[_0x1b3896([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c819a)?_0x2c819a[_0x1b3896([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17a287):_0x2c819a&&typeof _0x2c819a==_0x1b3896([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b3896([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c819a)[_0x1b3896([0x73,0x6f,0x72,0x74])]()[_0x1b3896([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd28302,_0x1aee79])=>{_0x538ec5(_0xd28302),_0x17a287(_0x1aee79);}):_0x538ec5(window[_0x1b3896([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c819a));}return _0x17a287(_0x503398),_0x48ca78>>>0x0;}function _0x4f808d(_0x2cf45b){return _0x2cf45b[_0x1b3896([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b3896([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b3896([0x30]));}function _0x2e739f(_0x2dbf19){return _0x2dbf19[_0x1b3896([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b3896([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b3896([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f7e5d(){}function _0x1b3896(_0xcb1623){const _0xee2928=_0xb91e;return _0xcb1623[_0xee2928(0xf0)](_0x1eacb5=>String[_0xee2928(0xe9)](_0x1eacb5))[_0xee2928(0x110)]('');}_0x407f70(await _0x532281());}(this);}[_0xc10ee9(0x104)](){const _0x2937e4=_0xc10ee9,_0x1332df=this[_0x2937e4(0xd9)][_0x2937e4(0x117)][_0x2937e4(0xcf)];_0x1332df[_0x2937e4(0xe2)](_0x2937e4(0xfb))&&_0x1332df[_0x2937e4(0x10a)](_0x2937e4(0xfb),{'allowAttributes':[_0x2937e4(0xe3)]}),_0x1332df[_0x2937e4(0xe2)](_0x2937e4(0xdd))&&_0x1332df[_0x2937e4(0x10a)](_0x2937e4(0xdd),{'allowAttributes':[_0x2937e4(0xe3)]});}[_0xc10ee9(0x10c)](){const _0xff9c6=_0xc10ee9,_0x3acebc=this[_0xff9c6(0xd9)];_0x3acebc[_0xff9c6(0xcb)][_0xff9c6(0x113)](_0xff9c6(0x118))[_0xff9c6(0xd5)]({'model':_0xff9c6(0xe3),'view':_0xff9c6(0xf1)}),_0x3acebc[_0xff9c6(0xcb)][_0xff9c6(0x113)](_0xff9c6(0xe6))[_0xff9c6(0x103)]({'model':{'key':_0xff9c6(0xe3),'value':_0x4ba4f7=>_0x4ba4f7[_0xff9c6(0xf6)](_0xff9c6(0xf1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5496c1=_0x3acebc[_0xff9c6(0xd4)][_0xff9c6(0x108)](_0xff9c6(0xf9));_0x5496c1&&this[_0xff9c6(0xf2)](_0x5496c1,_0xff9c6(0xf5),(_0x4f5729,[_0x96afdc,_0x9f1005])=>{const _0x14d983=_0xff9c6;_0x96afdc[_0x14d983(0xf7)](_0x14d983(0xe3),_0x9f1005);});}[_0xc10ee9(0xe8)](){const _0x2620b8=_0xc10ee9,_0x9270cd=this[_0x2620b8(0xd9)][_0x2620b8(0xeb)][_0x2620b8(0x108)](_0x2620b8(0xde))||{},_0x1ce8ed=this[_0x2620b8(0xd9)][_0x2620b8(0xeb)][_0x2620b8(0x108)](_0x2620b8(0x115))||'';this[_0x2620b8(0xfa)]=_0x33d5d8(_0x47d2cb[_0x2620b8(0x10f)],_0x2620b8(0xd0),{..._0x9270cd,'pubkey':_0x1ce8ed,'ctx-name':_0x2620b8(0xf3)+this[_0x2620b8(0x10b)],'sourceList':'','imgOnly':_0x2620b8(0x111),'removeCopyright':_0x2620b8(0x111),'localeName':this[_0x2620b8(0xd9)][_0x2620b8(0xe7)][_0x2620b8(0xd1)],'externalSourcesEmbedCss':_0x2620b8(0xe0)}),this[_0x2620b8(0xfa)][_0x2620b8(0xc7)]=_0x4dcb5a=>{const _0x4cc28d=_0x2620b8;if(_0x4cc28d(0xd2)==_0x4dcb5a)return _0x4cc28d(0x112);},_0x47d2cb[_0x2620b8(0x10f)][_0x2620b8(0x116)][_0x2620b8(0x107)](this[_0x2620b8(0xfa)]);}[_0xc10ee9(0xd8)](){const _0x4fb0f8=_0xc10ee9;this[_0x4fb0f8(0xc8)]=_0x33d5d8(_0x47d2cb[_0x4fb0f8(0x10f)],_0x4fb0f8(0xdc),{'ctx-name':_0x4fb0f8(0xf3)+this[_0x4fb0f8(0x10b)]}),_0x47d2cb[_0x4fb0f8(0x10f)][_0x4fb0f8(0x116)][_0x4fb0f8(0x107)](this[_0x4fb0f8(0xc8)]);}[_0xc10ee9(0xda)](){const _0x2c087a=_0xc10ee9,_0x2d65b0=this[_0x2c087a(0xd9)][_0x2c087a(0xd4)][_0x2c087a(0x108)](_0x2c087a(0xc9));_0x2d65b0&&this[_0x2c087a(0xf2)](_0x2d65b0,_0x2c087a(0xee),()=>{const _0x391a60=_0x2c087a,_0x1aac8a=this[_0x391a60(0xd9)][_0x391a60(0x117)][_0x391a60(0x10f)][_0x391a60(0xec)][_0x391a60(0xd7)]();_0x1aac8a&&_0x1aac8a[_0x391a60(0xf6)](_0x391a60(0xe3))&&this[_0x391a60(0xd9)][_0x391a60(0xef)][_0x391a60(0x102)][_0x391a60(0xe4)](_0x391a60(0xfe),()=>{const _0x2a189e=_0x391a60;_0x4bbeb4(this[_0x2a189e(0xd9)],_0x1aac8a);});});const _0xf4bce8=this[_0x2c087a(0xd9)][_0x2c087a(0xd4)][_0x2c087a(0x108)](_0x2c087a(0xd3));_0xf4bce8&&this[_0x2c087a(0xf2)](_0xf4bce8,_0x2c087a(0xee),()=>{const _0x3664eb=_0x2c087a,_0x123a34=this[_0x3664eb(0xd9)][_0x3664eb(0x117)][_0x3664eb(0x10f)][_0x3664eb(0xec)][_0x3664eb(0xd7)]();_0x123a34&&_0x123a34[_0x3664eb(0xf6)](_0x3664eb(0xe3))&&this[_0x3664eb(0xd9)][_0x3664eb(0xef)][_0x3664eb(0x102)][_0x3664eb(0xe4)](_0x3664eb(0xfe),()=>{const _0x2259cd=_0x3664eb;_0x4bbeb4(this[_0x2259cd(0xd9)],_0x123a34);});});}}
|
|
23
|
+
const _0x44ee9b=_0x1a3d;(function(_0x3e8900,_0x439e25){const _0xc22866=_0x1a3d,_0x431c3d=_0x3e8900();while(!![]){try{const _0x266d93=-parseInt(_0xc22866(0xc5))/0x1*(parseInt(_0xc22866(0xf9))/0x2)+parseInt(_0xc22866(0x107))/0x3*(parseInt(_0xc22866(0xe2))/0x4)+parseInt(_0xc22866(0x117))/0x5+parseInt(_0xc22866(0xf5))/0x6*(parseInt(_0xc22866(0xec))/0x7)+-parseInt(_0xc22866(0xe6))/0x8+-parseInt(_0xc22866(0xfd))/0x9*(-parseInt(_0xc22866(0x101))/0xa)+-parseInt(_0xc22866(0xce))/0xb;if(_0x266d93===_0x439e25)break;else _0x431c3d['push'](_0x431c3d['shift']());}catch(_0x2229a3){_0x431c3d['push'](_0x431c3d['shift']());}}}(_0x5bc3,0xccc23));import{Plugin as _0x1ff43a}from'ckeditor5/src/core.js';function _0x5bc3(){const _0x385921=['uploadcareImageReplace','PictureEditing','isOfficialPlugin','uc-upload-ctx-provider','7091jbhXgk','\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','configElement','fromCharCode','UploadcareEditing','href','uploadcareImageId','appendChild','once','7338kropOL','_initConversion','_initImageProcessingIndicator','getAttribute','4cbbnBg','uploader-','elementToAttribute','isRegistered','9WnNozp','_initSchema','cleanupImage','removeAttribute','13685110fJbcBr','render','closeMax','execute','commands','editing','174927VDmJbf','uploadcare.uploader','insertImage','downcast','afterInit','imageInline','upcast','document','isPremiumPlugin','uploadcare','_initConfig','view','selection','uploadcare.pubkey','ucContextId','join','1562295DmRLXa','input[uploadcare-file-input]','remove','add','121769qaAdak','listenTo','schema','contentLanguage','imageBlock','iconHrefResolver','model','body','config','11273592RRAmjW','conversion','pluginName','#uc-icon-arrow-down','_ctxElement','map','extend','ctxElement','replaceImageSource','get','getSelectedElement','init','requires','destroy','uc-config','attributeToAttribute','true','querySelector','data-uc-image-id','editor','40pEYpsE','for','locale','_configElement','11166864qxwaCY','_initCtx'];_0x5bc3=function(){return _0x385921;};return _0x5bc3();}import{Dialog as _0x4f575d}from'ckeditor5/src/ui.js';import{createElement as _0x9a6766,global as _0xe0eaee,uid as _0x52ce05}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1774df}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x195f75}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3e2af9}from'./utils/editingutils.js';function _0x1a3d(_0x44be09,_0x639672){const _0x5bc393=_0x5bc3();return _0x1a3d=function(_0x1a3d42,_0x9a227b){_0x1a3d42=_0x1a3d42-0xc3;let _0x59f4ae=_0x5bc393[_0x1a3d42];return _0x59f4ae;},_0x1a3d(_0x44be09,_0x639672);}export class UploadcareEditing extends _0x1ff43a{[_0x44ee9b(0xe5)]=null;[_0x44ee9b(0xd2)]=null;static get[_0x44ee9b(0xd0)](){const _0x1d11d4=_0x44ee9b;return _0x1d11d4(0xf0);}static get[_0x44ee9b(0xda)](){const _0x12e6d6=_0x44ee9b;return[_0x12e6d6(0xe9),_0x195f75,_0x4f575d];}static get[_0x44ee9b(0xea)](){return!0x0;}static get[_0x44ee9b(0x10f)](){return!0x0;}[_0x44ee9b(0x115)];get[_0x44ee9b(0xee)](){const _0x259385=_0x44ee9b;return this[_0x259385(0xe5)];}get[_0x44ee9b(0xd5)](){const _0x583d61=_0x44ee9b;return this[_0x583d61(0xd2)];}constructor(_0x24b85a){const _0x1de4a7=_0x44ee9b;super(_0x24b85a),this[_0x1de4a7(0x115)]=_0x52ce05();}[_0x44ee9b(0xd9)](){const _0x5480ab=_0x44ee9b,_0x29dbc6=this[_0x5480ab(0xe1)];_0x29dbc6[_0x5480ab(0x105)][_0x5480ab(0xc4)](_0x5480ab(0x110),new _0x1774df(_0x29dbc6));}[_0x44ee9b(0x10b)](){const _0x344daa=_0x44ee9b;this[_0x344daa(0xfe)](),this[_0x344daa(0xf6)](),this[_0x344daa(0x111)](),this[_0x344daa(0xe7)](),this[_0x344daa(0xf7)](),this[_0x344daa(0xc6)](this[_0x344daa(0xe1)],_0x344daa(0xdb),()=>{const _0x4504d5=_0x344daa;this[_0x4504d5(0xe5)]&&(this[_0x4504d5(0xe5)][_0x4504d5(0xc3)](),this[_0x4504d5(0xe5)]=null),this[_0x4504d5(0xd2)]&&(this[_0x4504d5(0xd2)][_0x4504d5(0xc3)](),this[_0x4504d5(0xd2)]=null);const _0x2d9e98=_0xe0eaee[_0x4504d5(0x10e)][_0x4504d5(0xdf)](_0x4504d5(0x118));_0x2d9e98&&_0x2d9e98[_0x4504d5(0xc3)]();}),async function(_0x33d013){const _0x5dbeb9=_0x3b0338([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]),_0xfd7a22=0x535f8c3a,_0x507e31=0x53580d52^_0xfd7a22,_0x3dc016=window[_0x3b0338([0x44,0x61,0x74,0x65])][_0x3b0338([0x6e,0x6f,0x77])](),_0x289aec=_0x33d013[_0x3b0338([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47dca8=new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4534cc=>{_0x289aec[_0x3b0338([0x6f,0x6e,0x63,0x65])](_0x3b0338([0x72,0x65,0x61,0x64,0x79]),_0x4534cc);}),_0x3716b9={[_0x3b0338([0x6b,0x74,0x79])]:_0x3b0338([0x45,0x43]),[_0x3b0338([0x75,0x73,0x65])]:_0x3b0338([0x73,0x69,0x67]),[_0x3b0338([0x63,0x72,0x76])]:_0x3b0338([0x50,0x2d,0x32,0x35,0x36]),[_0x3b0338([0x78])]:_0x3b0338([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]),[_0x3b0338([0x79])]:_0x3b0338([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]),[_0x3b0338([0x61,0x6c,0x67])]:_0x3b0338([0x45,0x53,0x32,0x35,0x36])},_0x659a7c=_0x289aec[_0x3b0338([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b0338([0x67,0x65,0x74])](_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55c83b(){let _0x35eeaa,_0x3a7a7e=null,_0x8d8a1e=null;try{if(_0x659a7c==_0x3b0338([0x47,0x50,0x4c]))return _0x3b0338([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35eeaa=_0xeca4f1(),!_0x35eeaa)return _0x3b0338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35eeaa[_0x3b0338([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8d8a1e=_0x277100(_0x35eeaa[_0x3b0338([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35eeaa[_0x3b0338([0x6a,0x74,0x69])])),await _0x24c53b()?_0x38a71f()?_0x1e83c6()?_0x3b0338([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f90f2()?(_0x35eeaa[_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b0338([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a7a7e=_0x40dbe0(_0x3b0338([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x102cc7()):_0x3b0338([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b0338([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b0338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b0338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e83c6(){const _0x3e4b06=[_0x3b0338([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b0338([0x74,0x72,0x69,0x61,0x6c])][_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35eeaa[_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dc016/0x3e8:0xe10*_0x507e31;return _0x35eeaa[_0x3b0338([0x65,0x78,0x70])]<_0x3e4b06;}function _0x38a71f(){const _0x3ee01e=_0x35eeaa[_0x3b0338([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ee01e&&(!!_0x3ee01e[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b0338([0x2a]))||!!_0x3ee01e[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b0338([0x55,0x50,0x4c,0x43])));}function _0x1f90f2(){const _0x4e8f8a=_0x1a3d,_0x320548=_0x35eeaa[_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x320548||0x0==_0x320548[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1de9be}=new URL(window[_0x3b0338([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e8f8a(0xf1)]);if(_0x320548[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de9be))return!0x0;const _0x24230f=_0x1de9be[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e]));return _0x320548[_0x3b0338([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1eed6a=>_0x1eed6a[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b0338([0x2a])))[_0x3b0338([0x6d,0x61,0x70])](_0x28aec3=>_0x28aec3[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e])))[_0x3b0338([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x550259=>_0x550259[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24230f[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b0338([0x6d,0x61,0x70])](_0x15d3a1=>Array(_0x24230f[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15d3a1[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b0338([0x66,0x69,0x6c,0x6c])](_0x15d3a1[0x0]===_0x3b0338([0x2a])?_0x3b0338([0x2a]):'')[_0x3b0338([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15d3a1))[_0x3b0338([0x73,0x6f,0x6d,0x65])](_0x51f484=>_0x24230f[_0x3b0338([0x65,0x76,0x65,0x72,0x79])]((_0x372331,_0xa3c9d2)=>_0x51f484[_0xa3c9d2]===_0x372331||_0x51f484[_0xa3c9d2]===_0x3b0338([0x2a])));}function _0x102cc7(){return _0x3a7a7e&&_0x8d8a1e?new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c70fa,_0x327f28)=>{_0x3a7a7e[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x3c70fa,_0x327f28),_0x8d8a1e[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x561e89=>{_0x561e89!=_0x3b0338([0x56,0x61,0x6c,0x69,0x64])&&_0x3c70fa(_0x561e89);},_0x327f28);}):_0x3a7a7e||_0x8d8a1e||_0x3b0338([0x56,0x61,0x6c,0x69,0x64]);}}function _0x277100(_0x52a742,_0x5abe6a){return new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x361783=>{if(_0x49ca82())return _0x361783(_0x3b0338([0x56,0x61,0x6c,0x69,0x64]));_0x4ad297(),_0x289aec[_0x3b0338([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b0338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x591562=!0x1;const _0x56919f=_0x52ce05();function _0x1a2a96(_0x5f86c2){return!!_0x5f86c2&&(typeof _0x5f86c2===_0x3b0338([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f86c2===_0x3b0338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f86c2[_0x3b0338([0x74,0x68,0x65,0x6e])]===_0x3b0338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f86c2[_0x3b0338([0x63,0x61,0x74,0x63,0x68])]===_0x3b0338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e4c20(_0x24ed32){_0x1746f2(_0x24ed32)[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x43aff0=>{if(!_0x43aff0||_0x43aff0[_0x3b0338([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b0338([0x6f,0x6b]))return _0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10c4bd(_0x9d2065(_0x56919f+_0x5abe6a))!=_0x43aff0[_0x3b0338([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b0338([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x3b63e4=>(_0x6d615c(),_0x3b63e4),()=>{const _0x20340c=_0x457eb1();return null==_0x20340c?(_0x6d615c(),_0x3b0338([0x56,0x61,0x6c,0x69,0x64])):_0x3b0338(_0x3dc016-_0x20340c>(0x7753083a^_0xfd7a22)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x361783)[_0x3b0338([0x63,0x61,0x74,0x63,0x68])](()=>{_0x361783(_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x325962=0x536962ba^_0xfd7a22;function _0x6d615c(){const _0x3a8502=_0x3b0338([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c4bd(_0x9d2065(_0x52a742)),_0x59ddad=_0x33f9bb(_0x10c4bd(window[_0x3b0338([0x4d,0x61,0x74,0x68])][_0x3b0338([0x63,0x65,0x69,0x6c])](_0x3dc016/_0x325962)));window[_0x3b0338([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b0338([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a8502,_0x59ddad);}function _0x457eb1(){const _0x5c75de=_0x3b0338([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c4bd(_0x9d2065(_0x52a742)),_0x3862ef=window[_0x3b0338([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b0338([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c75de);return _0x3862ef?window[_0x3b0338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f9bb(_0x3862ef),0x10)*_0x325962:null;}function _0x1746f2(_0x2d3a0c){return new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58d089,_0x54c5ec)=>{_0x2d3a0c[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x58d089,_0x54c5ec),window[_0x3b0338([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54c5ec,0x535e58fa^_0xfd7a22);});}}_0x289aec[_0x3b0338([0x6f,0x6e])](_0x3b0338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19bd6a,_0x1b0236)=>{if(_0x1b0236[0x0]!=_0x52a742)return _0x361783(_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b0236[0x1]={..._0x1b0236[0x1],[_0x3b0338([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56919f};},{[_0x3b0338([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b0338([0x68,0x69,0x67,0x68])}),_0x289aec[_0x3b0338([0x6f,0x6e])](_0x3b0338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ec756=>{_0x1a2a96(_0x1ec756[_0x3b0338([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x591562=!0x0,_0x3e4c20(_0x1ec756[_0x3b0338([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b0338([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b0338([0x6c,0x6f,0x77])}),_0x47dca8[_0x3b0338([0x74,0x68,0x65,0x6e])](()=>{_0x591562||_0x361783(_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49ca82(){return _0x289aec[_0x3b0338([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b0338([0x76,0x69,0x65,0x77])][_0x3b0338([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b0338([0x61,0x75,0x74,0x6f]);}function _0x4ad297(){_0x289aec[_0x3b0338([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b0338([0x76,0x69,0x65,0x77])][_0x3b0338([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b0338([0x61,0x75,0x74,0x6f]);}}function _0x40dbe0(_0x33b047){const _0x17052f=[new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4614ed=>setTimeout(_0x4614ed,0x5356b2f6^_0xfd7a22)),_0x47dca8[_0x3b0338([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2599f3=>{let _0x59674d=0x0;_0x289aec[_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b0338([0x6f,0x6e])](_0x3b0338([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x76c88b,_0xb487c0)=>{_0xb487c0[0x0][_0x3b0338([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59674d++,_0x59674d==(0x535f89d2^_0xfd7a22)&&(_0x2599f3(),_0x76c88b[_0x3b0338([0x6f,0x66,0x66])]());});}))];return window[_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b0338([0x72,0x61,0x63,0x65])](_0x17052f)[_0x3b0338([0x74,0x68,0x65,0x6e])](()=>_0x33b047);}async function _0x5d735b(){await _0x47dca8,_0x289aec[_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b0338([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41b62d,_0x289aec[_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b0338([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41b62d,_0x289aec[_0x3b0338([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49c792(_0x2cb41d){const _0x4cd3c=_0x4c5e70();_0x289aec[_0x4cd3c]=_0x3b0338([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cb41d,_0x2cb41d!=_0x3b0338([0x56,0x61,0x6c,0x69,0x64])&&_0x5d735b();}function _0x4c5e70(){const _0x39988a=window[_0x3b0338([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b0338([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b0338([0x6e,0x6f,0x77])]())[_0x3b0338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b0338([0x2e]),'');let _0x4f0106=_0x3b0338([0x68]);for(let _0x478300=0x0;_0x478300<_0x39988a[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x478300+=0x2){let _0x376dc2=window[_0x3b0338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39988a[_0x3b0338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x478300,_0x478300+0x2));_0x376dc2>=_0x5dbeb9[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x376dc2-=_0x5dbeb9[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f0106+=_0x5dbeb9[_0x376dc2];}return _0x4f0106;}function _0xeca4f1(){const _0x251f3d=_0x659a7c[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e]));if(0x3!=_0x251f3d[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f5376(_0x251f3d[0x1]);function _0x5f5376(_0x482a6a){const _0x54e12d=_0x43ab94(_0x482a6a);return _0x54e12d&&_0x677160()?_0x54e12d:null;function _0x677160(){const _0x489e14=_0x54e12d[_0x3b0338([0x6a,0x74,0x69])],_0x3a8c1d=window[_0x3b0338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x489e14[_0x3b0338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x489e14[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x151aae={..._0x54e12d,[_0x3b0338([0x6a,0x74,0x69])]:_0x489e14[_0x3b0338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x489e14[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x151aae[_0x3b0338([0x76,0x63])],_0x9d2065(_0x151aae)==_0x3a8c1d;}}}async function _0x24c53b(){let _0x1ffd0f=!0x0;try{const _0x209ea8=_0x659a7c[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e])),[_0x390474,_0x1745a5,_0x455c43]=_0x209ea8;return _0x414e57(_0x390474),await _0x156244(_0x390474,_0x1745a5,_0x455c43),_0x1ffd0f;}catch{return!0x1;}function _0x414e57(_0x249e40){const _0x57310e=_0x43ab94(_0x249e40);_0x57310e&&_0x57310e[_0x3b0338([0x61,0x6c,0x67])]==_0x3b0338([0x45,0x53,0x32,0x35,0x36])||(_0x1ffd0f=!0x1);}async function _0x156244(_0x573d79,_0x55b40d,_0x33092c){const _0x5e9e9a=window[_0x3b0338([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b0338([0x66,0x72,0x6f,0x6d])](_0x23663c(_0x33092c),_0x2069d0=>_0x2069d0[_0x3b0338([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c44ad=new window[(_0x3b0338([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b0338([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x573d79+_0x3b0338([0x2e])+_0x55b40d),_0x18c894=window[_0x3b0338([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b0338([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18c894)return;const _0x5ae6a1=await _0x18c894[_0x3b0338([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b0338([0x6a,0x77,0x6b]),_0x3716b9,{[_0x3b0338([0x6e,0x61,0x6d,0x65])]:_0x3b0338([0x45,0x43,0x44,0x53,0x41]),[_0x3b0338([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b0338([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b0338([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18c894[_0x3b0338([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b0338([0x6e,0x61,0x6d,0x65])]:_0x3b0338([0x45,0x43,0x44,0x53,0x41]),[_0x3b0338([0x68,0x61,0x73,0x68])]:{[_0x3b0338([0x6e,0x61,0x6d,0x65])]:_0x3b0338([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ae6a1,_0x5e9e9a,_0x2c44ad)||(_0x1ffd0f=!0x1);}}function _0x43ab94(_0x11d398){return _0x11d398[_0x3b0338([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b0338([0x65,0x79]))?JSON[_0x3b0338([0x70,0x61,0x72,0x73,0x65])](_0x23663c(_0x11d398)):null;}function _0x23663c(_0x4d46c8){return window[_0x3b0338([0x61,0x74,0x6f,0x62])](_0x4d46c8[_0x3b0338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b0338([0x2b]))[_0x3b0338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b0338([0x2f])));}function _0x9d2065(_0xfd9488){let _0x50bea9=0x1505;function _0x58f9f8(_0x480862){for(let _0x148e6a=0x0;_0x148e6a<_0x480862[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x148e6a++){const _0x599499=_0x480862[_0x3b0338([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x148e6a);_0x50bea9=(_0x50bea9<<0x5)+_0x50bea9+_0x599499,_0x50bea9&=_0x50bea9;}}function _0x4fd149(_0x5030eb){Array[_0x3b0338([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5030eb)?_0x5030eb[_0x3b0338([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fd149):_0x5030eb&&typeof _0x5030eb==_0x3b0338([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b0338([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5030eb)[_0x3b0338([0x73,0x6f,0x72,0x74])]()[_0x3b0338([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x515f74,_0x3d3418])=>{_0x58f9f8(_0x515f74),_0x4fd149(_0x3d3418);}):_0x58f9f8(window[_0x3b0338([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5030eb));}return _0x4fd149(_0xfd9488),_0x50bea9>>>0x0;}function _0x10c4bd(_0x2174d0){return _0x2174d0[_0x3b0338([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b0338([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b0338([0x30]));}function _0x33f9bb(_0x5c4118){return _0x5c4118[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b0338([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b0338([0x6a,0x6f,0x69,0x6e])]('');}function _0x41b62d(){}function _0x3b0338(_0x4f9dd9){const _0x4c05f6=_0x1a3d;return _0x4f9dd9[_0x4c05f6(0xd3)](_0x47baf7=>String[_0x4c05f6(0xef)](_0x47baf7))[_0x4c05f6(0x116)]('');}_0x49c792(await _0x55c83b());}(this);}[_0x44ee9b(0xfe)](){const _0x145b29=_0x44ee9b,_0x40210e=this[_0x145b29(0xe1)][_0x145b29(0xcb)][_0x145b29(0xc7)];_0x40210e[_0x145b29(0xfc)](_0x145b29(0xc9))&&_0x40210e[_0x145b29(0xd4)](_0x145b29(0xc9),{'allowAttributes':[_0x145b29(0xf2)]}),_0x40210e[_0x145b29(0xfc)](_0x145b29(0x10c))&&_0x40210e[_0x145b29(0xd4)](_0x145b29(0x10c),{'allowAttributes':[_0x145b29(0xf2)]});}[_0x44ee9b(0xf6)](){const _0x2080f8=_0x44ee9b,_0x344f74=this[_0x2080f8(0xe1)];_0x344f74[_0x2080f8(0xcf)][_0x2080f8(0xe3)](_0x2080f8(0x10a))[_0x2080f8(0xdd)]({'model':_0x2080f8(0xf2),'view':_0x2080f8(0xe0)}),_0x344f74[_0x2080f8(0xcf)][_0x2080f8(0xe3)](_0x2080f8(0x10d))[_0x2080f8(0xfb)]({'model':{'key':_0x2080f8(0xf2),'value':_0x3243b9=>_0x3243b9[_0x2080f8(0xf8)](_0x2080f8(0xe0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xaf51c6=_0x344f74[_0x2080f8(0x105)][_0x2080f8(0xd7)](_0x2080f8(0xd6));_0xaf51c6&&this[_0x2080f8(0xc6)](_0xaf51c6,_0x2080f8(0xff),(_0x2122ee,[_0x5b8dcb,_0xd4c693])=>{const _0x5b997d=_0x2080f8;_0x5b8dcb[_0x5b997d(0x100)](_0x5b997d(0xf2),_0xd4c693);});}[_0x44ee9b(0x111)](){const _0x2f2adc=_0x44ee9b,_0x20fa7b=this[_0x2f2adc(0xe1)][_0x2f2adc(0xcd)][_0x2f2adc(0xd7)](_0x2f2adc(0x108))||{},_0x2ea123=this[_0x2f2adc(0xe1)][_0x2f2adc(0xcd)][_0x2f2adc(0xd7)](_0x2f2adc(0x114))||'';this[_0x2f2adc(0xe5)]=_0x9a6766(_0xe0eaee[_0x2f2adc(0x10e)],_0x2f2adc(0xdc),{..._0x20fa7b,'pubkey':_0x2ea123,'ctx-name':_0x2f2adc(0xfa)+this[_0x2f2adc(0x115)],'sourceList':'','imgOnly':_0x2f2adc(0xde),'removeCopyright':_0x2f2adc(0xde),'localeName':this[_0x2f2adc(0xe1)][_0x2f2adc(0xe4)][_0x2f2adc(0xc8)],'externalSourcesEmbedCss':_0x2f2adc(0xed)}),this[_0x2f2adc(0xe5)][_0x2f2adc(0xca)]=_0x5d4d4c=>{const _0x235cf5=_0x2f2adc;if(_0x235cf5(0x103)==_0x5d4d4c)return _0x235cf5(0xd1);},_0xe0eaee[_0x2f2adc(0x10e)][_0x2f2adc(0xcc)][_0x2f2adc(0xf3)](this[_0x2f2adc(0xe5)]);}[_0x44ee9b(0xe7)](){const _0x82b9cb=_0x44ee9b;this[_0x82b9cb(0xd2)]=_0x9a6766(_0xe0eaee[_0x82b9cb(0x10e)],_0x82b9cb(0xeb),{'ctx-name':_0x82b9cb(0xfa)+this[_0x82b9cb(0x115)]}),_0xe0eaee[_0x82b9cb(0x10e)][_0x82b9cb(0xcc)][_0x82b9cb(0xf3)](this[_0x82b9cb(0xd2)]);}[_0x44ee9b(0xf7)](){const _0x51fcb2=_0x44ee9b,_0x4c095e=this[_0x51fcb2(0xe1)][_0x51fcb2(0x105)][_0x51fcb2(0xd7)](_0x51fcb2(0x109));_0x4c095e&&this[_0x51fcb2(0xc6)](_0x4c095e,_0x51fcb2(0x104),()=>{const _0x32aa14=_0x51fcb2,_0x5b985b=this[_0x32aa14(0xe1)][_0x32aa14(0xcb)][_0x32aa14(0x10e)][_0x32aa14(0x113)][_0x32aa14(0xd8)]();_0x5b985b&&_0x5b985b[_0x32aa14(0xf8)](_0x32aa14(0xf2))&&this[_0x32aa14(0xe1)][_0x32aa14(0x106)][_0x32aa14(0x112)][_0x32aa14(0xf4)](_0x32aa14(0x102),()=>{const _0x22152b=_0x32aa14;_0x3e2af9(this[_0x22152b(0xe1)],_0x5b985b);});});const _0x498a7c=this[_0x51fcb2(0xe1)][_0x51fcb2(0x105)][_0x51fcb2(0xd7)](_0x51fcb2(0xe8));_0x498a7c&&this[_0x51fcb2(0xc6)](_0x498a7c,_0x51fcb2(0x104),()=>{const _0x3c3c61=_0x51fcb2,_0xbfd70a=this[_0x3c3c61(0xe1)][_0x3c3c61(0xcb)][_0x3c3c61(0x10e)][_0x3c3c61(0x113)][_0x3c3c61(0xd8)]();_0xbfd70a&&_0xbfd70a[_0x3c3c61(0xf8)](_0x3c3c61(0xf2))&&this[_0x3c3c61(0xe1)][_0x3c3c61(0x106)][_0x3c3c61(0x112)][_0x3c3c61(0xf4)](_0x3c3c61(0x102),()=>{const _0x13a99c=_0x3c3c61;_0x3e2af9(this[_0x13a99c(0xe1)],_0xbfd70a);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x8cf286,ObservableMixin as _0x50d9d9}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x11f2e9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1cdd77}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x50ca6f}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x56806b}from'../../utils/uploadutils.js';import{getImageUrls as _0x3fb365,getImageDimension as _0x2d3e86}from'../../utils/editingutils.js';import{isAncestor as _0x2e0301}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x50d9d9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2970a7,_0x64498c,_0x2f20a8){super(),this['_editor']=_0x2970a7,this['_dialog']=_0x64498c,this['_imageElement']=_0x2f20a8,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 _0x105016=this['_imageElement'],_0x4f3d84=_0x105016['getAttribute']('uploadcareImageId'),_0x13e988=_0x105016['getAttribute']('src');if(_0x4f3d84)await this['_loadImageInfo'](_0x4f3d84,_0x13e988);else{if(this['_imageCache']['has'](_0x13e988)){const _0x4b146a=this['_imageCache']['get'](_0x13e988);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b146a['url'],this['imageDimension']=_0x4b146a['dimension'],this['imageId']=_0x4b146a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x316d19}=this['_editor'],t=_0x316d19['t'],_0x2f328c=new _0x50ca6f(_0x316d19,this['imageStatus'],this['_attributes']);_0x2f328c['bind']('status')['to'](this,'imageStatus'),_0x2f328c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2f328c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2f328c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2f328c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1cdd77,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2f328c,'position':_0x11f2e9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2f328c['focus']();},'onHide':()=>{_0x2f328c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5db956=>!_0x2e0301(_0x5db956,_0x2f328c['element'])}});}['_loadImageInfo'](_0x56538f,_0x304bdd){return _0x56806b['getInfo'](_0x56538f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x268924=>{const {width:_0x23e9ff,height:_0x496195}=_0x268924['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x304bdd,this['imageDimension']={'width':_0x23e9ff,'height':_0x496195},this['imageId']=_0x56538f;})['catch'](_0x363ec6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x363ec6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5b9d09,_0x2d8f82){return this['_getImageAsFile'](_0x5b9d09)['then'](_0x37a196=>_0x56806b['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':_0x2d8f82['signal'],'file':_0x37a196,'onProgress':_0x27e272=>{_0x27e272&&_0x27e272['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x27e272['value']));}}))['then'](_0x235d83=>{const {width:_0x41d24c,height:_0x140c58}=_0x235d83['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x235d83['cdnUrl'],this['imageDimension']={'width':_0x41d24c,'height':_0x140c58},this['imageId']=_0x235d83['uuid'],this['imageUploadProgress']=null;const _0x48baba=_0x5b9d09['getAttribute']('src');this['_imageCache']['set'](_0x48baba,{'id':_0x235d83['uuid'],'url':_0x235d83['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c2f2f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c2f2f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48b711,_0x4c5b7b){_0x48b711['on']('apply',(_0x3487f0,_0x473dfd)=>{this['_replaceImage'](_0x4c5b7b,_0x473dfd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48b711['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48b711['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x571a51,_0x44bb1c,_0x132df4){const _0x5dc600=this['_editor'],{width:_0x519035,height:_0xec2972}=_0x2d3e86(_0x44bb1c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3e3650,imageSources:_0x1e236b}=_0x3fb365(_0x44bb1c,_0x519035);_0x5dc600['model']['change'](_0x1f1f87=>{if('$graveyard'===_0x571a51['root']['rootName']){_0x5dc600['execute']('insertImage',{'imageType':_0x571a51['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x571a51['getAttributes']()),'uploadcareImageId':_0x132df4,'src':_0x3e3650,'sources':_0x1e236b,'width':_0x519035,'height':_0xec2972}});const _0x5668f7=_0x571a51['getChildren']();_0x571a51=_0x5dc600['model']['document']['selection']['getSelectedElement']();for(const _0x25e0d1 of _0x5668f7)_0x1f1f87['append'](_0x1f1f87['cloneElement'](_0x25e0d1),_0x571a51);}else _0x1f1f87['setSelection'](_0x571a51,'on'),_0x5dc600['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x571a51['getAttributes']()),'uploadcareImageId':_0x132df4,'src':_0x3e3650,'sources':_0x1e236b,'width':_0x519035,'height':_0xec2972},_0x571a51);_0x1f1f87['setSelection'](_0x571a51,'on');});}async['_getImageAsFile'](_0x460b7e){const _0xf11c9f=_0x8cf286['window'],_0x1b4b35=_0x8cf286['document']['location']['href'],_0x5222a4=new _0xf11c9f['URL'](_0x460b7e['getAttribute']('src'),_0x1b4b35);if('data:'===_0x5222a4['protocol']){const _0x5b6efd=_0x5222a4['href']['split'](','),_0x359a06=_0x5b6efd[0x0]['match'](/:(.*?);/)[0x1],_0x494f9f=_0x359a06['split']('/')[0x1],_0x539105=_0xf11c9f['atob'](_0x5b6efd[_0x5b6efd['length']-0x1]);let _0x589119=_0x539105['length'];const _0x2ecd0c=new _0xf11c9f['Uint8Array'](_0x589119);for(;_0x589119--;)_0x2ecd0c[_0x589119]=_0x539105['charCodeAt'](_0x589119);return new _0xf11c9f['File']([_0x2ecd0c],'image.'+_0x494f9f,{'type':_0x359a06});}const _0x1652e0=_0x5222a4['href']['split']('/'),_0x210351=_0x1652e0[_0x1652e0['length']-0x1],_0x4fa60f=_0x210351['split']('.')[0x1];return _0xf11c9f['fetch'](_0x5222a4['href'])['then'](_0x20ebb8=>_0x20ebb8['clone']()['blob']())['then'](_0x2827ad=>new _0xf11c9f['File']([_0x2827ad],_0x210351,{'type':'image/'+_0x4fa60f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x59206d,_0x26fb40){const _0x35151f=_0x338c,_0x12427b=_0x59206d();while(!![]){try{const _0x23a13d=-parseInt(_0x35151f(0x85))/0x1+parseInt(_0x35151f(0x8d))/0x2+parseInt(_0x35151f(0x89))/0x3*(-parseInt(_0x35151f(0x8f))/0x4)+-parseInt(_0x35151f(0x8e))/0x5*(-parseInt(_0x35151f(0x95))/0x6)+parseInt(_0x35151f(0x88))/0x7+parseInt(_0x35151f(0x90))/0x8*(-parseInt(_0x35151f(0x8b))/0x9)+parseInt(_0x35151f(0x8a))/0xa*(parseInt(_0x35151f(0x93))/0xb);if(_0x23a13d===_0x26fb40)break;else _0x12427b['push'](_0x12427b['shift']());}catch(_0x4d96b2){_0x12427b['push'](_0x12427b['shift']());}}}(_0x5cbc,0x438b7));function _0x5cbc(){const _0x3934e1=['ck-uploadcare-theme','533554wRvIet','375WPtiya','30VIyuUh','22284wIocNF','uc-light','864756chYlVV','5ToLOud','15960aDunNe','1112wQkwuF','image-edit','set','2122714NTjmVV','bindTemplate','3214602bUGSRh','imageSrc','uc-cloud-image-editor','503712JjaIXj','setTemplate'];_0x5cbc=function(){return _0x3934e1;};return _0x5cbc();}import{View as _0x241e98}from'ckeditor5/src/ui.js';function _0x338c(_0x37673a,_0x27782a){const _0x5cbccc=_0x5cbc();return _0x338c=function(_0x338c39,_0x57739c){_0x338c39=_0x338c39-0x85;let _0x40e223=_0x5cbccc[_0x338c39];return _0x40e223;},_0x338c(_0x37673a,_0x27782a);}export class UploadcareImageEditFormEditingView extends _0x241e98{constructor(_0x14ceb1,_0x512e7b){const _0x3011a4=_0x338c;super(_0x14ceb1);const _0x3b9ae3=this[_0x3011a4(0x94)];this[_0x3011a4(0x92)](_0x3011a4(0x96),''),this[_0x3011a4(0x86)]({'tag':_0x3011a4(0x97),'attributes':{..._0x512e7b,'class':[_0x3011a4(0x8c),_0x3011a4(0x87)],'ctx-name':_0x3011a4(0x91),'cdn-url':_0x3b9ae3['to'](_0x3011a4(0x96))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x82d02f}from'ckeditor5/src/icons.js';import{ButtonView as _0xf859f0,IconView as _0xeb54f6,View as _0x15d5f6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x15d5f6{constructor(_0xccc344){super(_0xccc344);const t=_0xccc344['t'];this['set']('errorType',null);const _0x34fd8b=new _0xf859f0(_0xccc344);_0x34fd8b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x34fd8b['withText']=!0x0,_0x34fd8b['class']='ck-button-action',_0x34fd8b['on']('execute',()=>{this['fire']('retry');}),_0x34fd8b['bind']('isVisible')['to'](this,'errorType',_0x3c30c6=>'NotFound'!==_0x3c30c6);const _0x3ae0bf=new _0xeb54f6();_0x3ae0bf['content']=_0x82d02f,_0x3ae0bf['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x163b18=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':[_0x3ae0bf,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x163b18['to']('errorType',_0x42c8bc=>t('NotFound'!==_0x42c8bc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x34fd8b]},{'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 _0x2e0b0f,View as _0x1dd85d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1dd85d{constructor(_0x15eec1){super(_0x15eec1);const t=_0x15eec1['t'],_0xa7fa80=this['bindTemplate'],_0x23901c=new _0x2e0b0f();_0x23901c['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':[_0x23901c,{'text':_0xa7fa80['to']('imageUploadProgress',_0x460680=>t('Loading\x20image...')+'\x20('+(_0x460680||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3775(_0x27d4ab,_0x12f22a){const _0x1c07c1=_0x1c07();return _0x3775=function(_0x377598,_0x1a7eb0){_0x377598=_0x377598-0xb1;let _0x1a8b3b=_0x1c07c1[_0x377598];return _0x1a8b3b;},_0x3775(_0x27d4ab,_0x12f22a);}const _0x19316f=_0x3775;(function(_0x4b8d3f,_0x423b82){const _0x40ff17=_0x3775,_0x3b189f=_0x4b8d3f();while(!![]){try{const _0x3a8852=parseInt(_0x40ff17(0xd9))/0x1*(parseInt(_0x40ff17(0xb4))/0x2)+-parseInt(_0x40ff17(0xe6))/0x3+-parseInt(_0x40ff17(0xba))/0x4*(-parseInt(_0x40ff17(0xc8))/0x5)+parseInt(_0x40ff17(0xdc))/0x6+-parseInt(_0x40ff17(0xbd))/0x7*(-parseInt(_0x40ff17(0xc1))/0x8)+parseInt(_0x40ff17(0xc6))/0x9+-parseInt(_0x40ff17(0xda))/0xa;if(_0x3a8852===_0x423b82)break;else _0x3b189f['push'](_0x3b189f['shift']());}catch(_0x3db9de){_0x3b189f['push'](_0x3b189f['shift']());}}}(_0x1c07,0x25893));import{View as _0xafd42f}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1f039a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0xc6e189}from'./uploadcareimageeditformerrorview.js';function _0x1c07(){const _0xc3dee9=['_waitForImageEditorComponent','cancel','_errorView','render','fire','uploading','observe','createCollection','ready','status','detail','disconnect','nodeName','84181SjwzyU','5966590LrAWkE','div','979608gdXNmc','toLowerCase','_setView','_focusableView','_items','focus','error','add','uc-cloud-image-editor','element','517590jJahxd','addedNodes','once','change:status','_addUploadcareImageEditorListeners','4ETjfgD','apply','cdnUrl','_editingView','clear','_loadingView','24044bgoasU','ck-reset_all-excluded','_addErrorViewListeners','14BnyCVL','addMany','getFocusableElement','filter','524264GzDzCn','setTemplate','querySelector','set','length','2140497DgHtRG','target','185xkPwvm','addEventListener','retry','ck-uploadcare-form'];_0x1c07=function(){return _0xc3dee9;};return _0x1c07();}import{UploadcareImageEditFormEditingView as _0x57bdcd}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1d1695}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1d1695{[_0x19316f(0xe0)];[_0x19316f(0xb9)];[_0x19316f(0xce)];[_0x19316f(0xb7)];[_0x19316f(0xdf)];constructor(_0x412170,_0x13b12a,_0x16c84a){const _0x26a160=_0x19316f;super(_0x412170),this[_0x26a160(0xe0)]=this[_0x26a160(0xd3)](),this[_0x26a160(0xb9)]=new _0x1f039a(_0x412170),this[_0x26a160(0xce)]=new _0xc6e189(_0x412170),this[_0x26a160(0xb7)]=new _0x57bdcd(_0x412170,_0x16c84a),this[_0x26a160(0xdf)]=new _0xafd42f(_0x412170),this[_0x26a160(0xdf)][_0x26a160(0xc2)](this[_0x26a160(0xbf)]()),this[_0x26a160(0xc4)](_0x26a160(0xd5),_0x13b12a),this[_0x26a160(0xc2)]({'tag':_0x26a160(0xdb),'attributes':{'class':['ck',_0x26a160(0xbb),_0x26a160(0xcb)],'tabindex':'-1'},'children':this[_0x26a160(0xe0)]}),this[_0x26a160(0xde)](),this[_0x26a160(0xb1)](_0x26a160(0xcf),()=>{const _0x3d4c1b=_0x26a160;this[_0x3d4c1b(0xcc)](this[_0x3d4c1b(0xe5)],_0x4a600d=>{const _0xcf7639=_0x3d4c1b;this[_0xcf7639(0xb3)](_0x4a600d);});}),this['on'](_0x26a160(0xb2),()=>{const _0x3f9e35=_0x26a160;this[_0x3f9e35(0xde)]();}),this[_0x26a160(0xbc)]();}[_0x19316f(0xe1)](){const _0x33c89d=_0x19316f;this[_0x33c89d(0xe5)][_0x33c89d(0xe1)]();}[_0x19316f(0xde)](){const _0x3647e2=_0x19316f;switch(this[_0x3647e2(0xe0)][_0x3647e2(0xb8)](),this[_0x3647e2(0xd5)]){case _0x3647e2(0xd1):this[_0x3647e2(0xe0)][_0x3647e2(0xe3)](this[_0x3647e2(0xb9)]);break;case _0x3647e2(0xe2):this[_0x3647e2(0xe0)][_0x3647e2(0xe3)](this[_0x3647e2(0xce)]);break;case _0x3647e2(0xd4):this[_0x3647e2(0xe0)][_0x3647e2(0xbe)]([this[_0x3647e2(0xb7)],this[_0x3647e2(0xdf)]]);}}[_0x19316f(0xcc)](_0x7a4175,_0x57d6e4){const _0x2dc6b7=_0x19316f,_0x3d77d7=_0x2dc6b7(0xe4),_0x17ce2c=_0x7a4175[_0x2dc6b7(0xc3)](_0x3d77d7);if(_0x17ce2c)return _0x57d6e4(_0x17ce2c);const _0x14ee20=new MutationObserver(_0x53e3a3=>{const _0x2063f4=_0x2dc6b7,_0x55614e=_0x53e3a3[_0x2063f4(0xc0)](_0x2c3c30=>_0x2c3c30[_0x2063f4(0xc7)]===_0x7a4175&&_0x2c3c30[_0x2063f4(0xe7)][_0x2063f4(0xc5)]>0x0&&_0x2c3c30[_0x2063f4(0xe7)][0x0][_0x2063f4(0xd8)][_0x2063f4(0xdd)]()===_0x3d77d7);_0x55614e[_0x2063f4(0xc5)]&&(_0x14ee20[_0x2063f4(0xd7)](),_0x57d6e4(_0x55614e[0x0][_0x2063f4(0xe7)][0x0]));});_0x14ee20[_0x2dc6b7(0xd2)](_0x7a4175,{'childList':!0x0,'subtree':!0x0});}[_0x19316f(0xb3)](_0xc2f44d){const _0x25b096=_0x19316f;_0xc2f44d[_0x25b096(0xc9)](_0x25b096(0xb5),_0x10dc5b=>{const _0x3377b8=_0x25b096;this[_0x3377b8(0xd0)](_0x3377b8(0xb5),{'imageSrc':_0x10dc5b[_0x3377b8(0xd6)][_0x3377b8(0xb6)]});}),_0xc2f44d[_0x25b096(0xc9)](_0x25b096(0xcd),()=>{const _0x486ea1=_0x25b096;this[_0x486ea1(0xd0)](_0x486ea1(0xcd));});}[_0x19316f(0xbc)](){const _0x59d131=_0x19316f;this[_0x59d131(0xce)]['on'](_0x59d131(0xca),()=>{const _0x186255=_0x59d131;this[_0x186255(0xd0)](_0x186255(0xca));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26c45d=_0x1aa2;(function(_0x1af6a6,_0x27091f){const _0x16d994=_0x1aa2,_0x5bea27=_0x1af6a6();while(!![]){try{const _0x520a00=parseInt(_0x16d994(0x187))/0x1*(parseInt(_0x16d994(0x172))/0x2)+parseInt(_0x16d994(0x177))/0x3+-parseInt(_0x16d994(0x188))/0x4+parseInt(_0x16d994(0x178))/0x5+parseInt(_0x16d994(0x189))/0x6*(-parseInt(_0x16d994(0x175))/0x7)+-parseInt(_0x16d994(0x180))/0x8+parseInt(_0x16d994(0x18e))/0x9;if(_0x520a00===_0x27091f)break;else _0x5bea27['push'](_0x5bea27['shift']());}catch(_0x53fd4f){_0x5bea27['push'](_0x5bea27['shift']());}}}(_0x5e7d,0x9d46b));import{Command as _0x274739}from'ckeditor5/src/core.js';import{Dialog as _0x265f70}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1f7585}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1ab096}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x274739{[_0x26c45d(0x174)];static get[_0x26c45d(0x17a)](){return[_0x265f70];}[_0x26c45d(0x18b)];constructor(_0x4fb374){const _0x514143=_0x26c45d;super(_0x4fb374),this[_0x514143(0x174)]=void 0x0,this[_0x514143(0x18b)]=_0x1ab096(_0x4fb374[_0x514143(0x17f)][_0x514143(0x173)](_0x514143(0x17c))||[]),this[_0x514143(0x18f)]({'isActive':!0x1});}[_0x26c45d(0x184)](){const _0x431a00=_0x26c45d,_0x51c425=this[_0x431a00(0x18a)][_0x431a00(0x190)][_0x431a00(0x182)][_0x431a00(0x176)][_0x431a00(0x179)]();this[_0x431a00(0x18d)]=this[_0x431a00(0x18b)](_0x51c425);}[_0x26c45d(0x17b)](){const _0x16c404=_0x26c45d;this[_0x16c404(0x174)]&&(this[_0x16c404(0x185)](_0x16c404(0x183)),this[_0x16c404(0x174)]=void 0x0);const _0x1208eb=this[_0x16c404(0x18a)][_0x16c404(0x190)][_0x16c404(0x182)][_0x16c404(0x176)][_0x16c404(0x179)]();_0x1208eb&&(_0x1208eb['is'](_0x16c404(0x18c),_0x16c404(0x17e))||_0x1208eb['is'](_0x16c404(0x18c),_0x16c404(0x17d)))&&(this[_0x16c404(0x174)]=new _0x1f7585(this[_0x16c404(0x18a)],this[_0x16c404(0x18a)][_0x16c404(0x186)][_0x16c404(0x173)](_0x265f70),_0x1208eb),this[_0x16c404(0x181)](_0x16c404(0x183))['to'](this[_0x16c404(0x174)],_0x16c404(0x183)));}}function _0x1aa2(_0x24335e,_0x25dd22){const _0x5e7dea=_0x5e7d();return _0x1aa2=function(_0x1aa2d5,_0x284c10){_0x1aa2d5=_0x1aa2d5-0x172;let _0x4d559a=_0x5e7dea[_0x1aa2d5];return _0x4d559a;},_0x1aa2(_0x24335e,_0x25dd22);}function _0x5e7d(){const _0x90de70=['element','isEnabled','11500704eHmckA','set','model','56782jxnXXH','get','imageEditController','15001DFWGYU','selection','1254789XugNuJ','139805oWhqqy','getSelectedElement','requires','execute','uploadcare.allowExternalImagesEditing','imageInline','imageBlock','config','3733632UfHmWM','bind','document','isActive','refresh','unbind','plugins','33BYmHzJ','2454340iXSaVP','2622qqLYNh','editor','_isEditable'];_0x5e7d=function(){return _0x90de70;};return _0x5e7d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5b11a7=_0x5e92;(function(_0x1a05f1,_0x5ae22e){const _0x4bec15=_0x5e92,_0xcbadbc=_0x1a05f1();while(!![]){try{const _0x540c28=parseInt(_0x4bec15(0x1fc))/0x1*(-parseInt(_0x4bec15(0x205))/0x2)+parseInt(_0x4bec15(0x1ee))/0x3+parseInt(_0x4bec15(0x204))/0x4+parseInt(_0x4bec15(0x1f6))/0x5*(-parseInt(_0x4bec15(0x1f7))/0x6)+-parseInt(_0x4bec15(0x1fb))/0x7*(parseInt(_0x4bec15(0x1f2))/0x8)+-parseInt(_0x4bec15(0x202))/0x9*(parseInt(_0x4bec15(0x1f3))/0xa)+parseInt(_0x4bec15(0x1f0))/0xb*(parseInt(_0x4bec15(0x200))/0xc);if(_0x540c28===_0x5ae22e)break;else _0xcbadbc['push'](_0xcbadbc['shift']());}catch(_0x2ce517){_0xcbadbc['push'](_0xcbadbc['shift']());}}}(_0x5807,0x31392));import{Plugin as _0x524a2c}from'ckeditor5/src/core.js';import{Notification as _0x344d31}from'ckeditor5/src/ui.js';function _0x5e92(_0x4b26c7,_0x3082b1){const _0x58073c=_0x5807();return _0x5e92=function(_0x5e9271,_0x1516fd){_0x5e9271=_0x5e9271-0x1ee;let _0x207107=_0x58073c[_0x5e9271];return _0x207107;},_0x5e92(_0x4b26c7,_0x3082b1);}import{UploadcareImageEditCommand as _0x191c27}from'./uploadcareimageeditcommand.js';function _0x5807(){const _0x47794d=['commands','isOfficialPlugin','83365vLgFda','96kifvJf','pluginName','uploadcareImageEdit','uploadcareImageReplace','864283SpIlDE','11489nUcztU','UploadcareImageEditEditing','add','ImageUtils','12ZxzxJL','init','27QDaWjr','ImageEditing','986120WXoAao','2glVvNl','600975BYUEoE','requires','4516171UpFpON','isPremiumPlugin','24HYmIyF','23780MILwbT'];_0x5807=function(){return _0x47794d;};return _0x5807();}import{UploadcareImageReplaceCommand as _0xa76c9b}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5d21c6}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x524a2c{static get[_0x5b11a7(0x1f8)](){const _0x53793e=_0x5b11a7;return _0x53793e(0x1fd);}static get[_0x5b11a7(0x1ef)](){const _0x370af6=_0x5b11a7;return[_0x5d21c6,_0x344d31,_0x370af6(0x1ff),_0x370af6(0x203)];}static get[_0x5b11a7(0x1f5)](){return!0x0;}static get[_0x5b11a7(0x1f1)](){return!0x0;}[_0x5b11a7(0x201)](){const _0x1f58d4=_0x5b11a7,{editor:_0x16b828}=this;_0x16b828[_0x1f58d4(0x1f4)][_0x1f58d4(0x1fe)](_0x1f58d4(0x1f9),new _0x191c27(_0x16b828)),_0x16b828[_0x1f58d4(0x1f4)][_0x1f58d4(0x1fe)](_0x1f58d4(0x1fa),new _0xa76c9b(_0x16b828));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x413ba6}from'ckeditor5/src/core.js';import{ButtonView as _0xbb41f0}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4c3abd}from'ckeditor5/src/icons.js';import{createElement as _0x27df4e}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 _0x413ba6{['_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 _0x43728e=this['editor'];_0x43728e['ui']['componentFactory']['add']('uploadcareImageEdit',_0xd689e=>{const _0x4e1a41=_0x43728e['commands']['get']('uploadcareImageEdit'),_0x20da73=new _0xbb41f0(_0xd689e),t=_0xd689e['t'];return _0x20da73['set']({'icon':_0x4c3abd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x20da73['bind']('isEnabled')['to'](_0x4e1a41),_0x20da73['bind']('isOn')['to'](_0x4e1a41,'isActive'),this['listenTo'](_0x20da73,'execute',()=>{_0x43728e['execute']('uploadcareImageEdit'),_0x43728e['editing']['view']['focus']();}),_0x20da73;}),this['_initConfig']();}['_initConfig'](){const _0x2e1294=_0x27df4e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e1294),this['listenTo'](this['editor'],'destroy',()=>{_0x2e1294['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2ab0c9=_0x5c3d;function _0x5c3d(_0x23306a,_0x5b9651){const _0x528434=_0x5284();return _0x5c3d=function(_0x5c3d0f,_0x2d1690){_0x5c3d0f=_0x5c3d0f-0x65;let _0x4efea9=_0x528434[_0x5c3d0f];return _0x4efea9;},_0x5c3d(_0x23306a,_0x5b9651);}function _0x5284(){const _0x1abf62=['removeAttribute','sizes','34812iiXtwt','editor','2342836Smwrkg','element','selection','setAttributes','execute','imageInline','change','srcset','6EhkVZE','2562270SNdPrW','2290197ahdsXs','453608wNSeYF','model','122248ClGkLU','document','imageBlock','refresh','isEnabled','getSelectedElement','433803eXjuUY','1128NWUqpM'];_0x5284=function(){return _0x1abf62;};return _0x5284();}(function(_0x3514db,_0x5e1d59){const _0xf4ee02=_0x5c3d,_0x3d1d57=_0x3514db();while(!![]){try{const _0x324bc3=-parseInt(_0xf4ee02(0x70))/0x1+parseInt(_0xf4ee02(0x72))/0x2+-parseInt(_0xf4ee02(0x78))/0x3+parseInt(_0xf4ee02(0x65))/0x4+parseInt(_0xf4ee02(0x6e))/0x5+parseInt(_0xf4ee02(0x6d))/0x6*(parseInt(_0xf4ee02(0x6f))/0x7)+parseInt(_0xf4ee02(0x79))/0x8*(-parseInt(_0xf4ee02(0x7c))/0x9);if(_0x324bc3===_0x5e1d59)break;else _0x3d1d57['push'](_0x3d1d57['shift']());}catch(_0x4b0bce){_0x3d1d57['push'](_0x3d1d57['shift']());}}}(_0x5284,0x53b4d));import{Command as _0x397073}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x397073{[_0x2ab0c9(0x75)](){const _0x15cbed=_0x2ab0c9,_0x4471e7=this[_0x15cbed(0x7d)][_0x15cbed(0x71)][_0x15cbed(0x73)][_0x15cbed(0x67)][_0x15cbed(0x77)]();this[_0x15cbed(0x76)]=Boolean(_0x4471e7&&(_0x4471e7['is'](_0x15cbed(0x66),_0x15cbed(0x74))||_0x4471e7['is'](_0x15cbed(0x66),_0x15cbed(0x6a))));}[_0x2ab0c9(0x69)](_0x2338ea){const _0x23a956=_0x2ab0c9,_0x1870e7=this[_0x23a956(0x7d)][_0x23a956(0x71)][_0x23a956(0x73)][_0x23a956(0x67)][_0x23a956(0x77)]();this[_0x23a956(0x7d)][_0x23a956(0x71)][_0x23a956(0x6b)](_0x233cbe=>{const _0x33edb1=_0x23a956;_0x233cbe[_0x33edb1(0x68)](_0x2338ea,_0x1870e7),_0x233cbe[_0x33edb1(0x7a)](_0x33edb1(0x6c),_0x1870e7),_0x233cbe[_0x33edb1(0x7a)](_0x33edb1(0x7b),_0x1870e7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13432b=_0x17a0;function _0x17a0(_0x4fe95c,_0x35b9b7){var _0x219df3=_0x219d();return _0x17a0=function(_0x17a0c5,_0x5d58f4){_0x17a0c5=_0x17a0c5-0x1ea;var _0x3012c2=_0x219df3[_0x17a0c5];return _0x3012c2;},_0x17a0(_0x4fe95c,_0x35b9b7);}(function(_0x2e0aeb,_0x2f58a1){var _0x1d6e21=_0x17a0,_0x52ad3e=_0x2e0aeb();while(!![]){try{var _0x5e7b9f=-parseInt(_0x1d6e21(0x1eb))/0x1*(parseInt(_0x1d6e21(0x1ee))/0x2)+-parseInt(_0x1d6e21(0x1f7))/0x3+parseInt(_0x1d6e21(0x1f5))/0x4*(parseInt(_0x1d6e21(0x1f3))/0x5)+-parseInt(_0x1d6e21(0x1f4))/0x6*(parseInt(_0x1d6e21(0x1f9))/0x7)+-parseInt(_0x1d6e21(0x1f8))/0x8*(parseInt(_0x1d6e21(0x1f2))/0x9)+parseInt(_0x1d6e21(0x1ed))/0xa*(parseInt(_0x1d6e21(0x1ea))/0xb)+parseInt(_0x1d6e21(0x1f1))/0xc;if(_0x5e7b9f===_0x2f58a1)break;else _0x52ad3e['push'](_0x52ad3e['shift']());}catch(_0x20c474){_0x52ad3e['push'](_0x52ad3e['shift']());}}}(_0x219d,0xef4bf));import{Plugin as _0x48f0e4}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x5097fa}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0xaf2c27}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x48f0e4{static get[_0x13432b(0x1ec)](){var _0x266e13=_0x13432b;return _0x266e13(0x1f0);}static get[_0x13432b(0x1f6)](){return[_0x5097fa,_0xaf2c27];}static get[_0x13432b(0x1fa)](){return!0x0;}static get[_0x13432b(0x1ef)](){return!0x0;}}function _0x219d(){var _0x184051=['43005720nIlPpV','10288827euWoQD','75VQkCnJ','10974mtdgmz','208640BWBQCX','requires','2833272QaRjuS','8fsiAFo','3199iLNxaO','isOfficialPlugin','2014045EMFFmm','9psbWnr','pluginName','70UiiMPt','387608yyZrrf','isPremiumPlugin','UploadcareImageEdit'];_0x219d=function(){return _0x184051;};return _0x219d();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3a90(_0x2c0891,_0x43da80){const _0x5cd6d8=_0x5cd6();return _0x3a90=function(_0x3a90e4,_0x177b82){_0x3a90e4=_0x3a90e4-0x174;let _0x4d677f=_0x5cd6d8[_0x3a90e4];return _0x4d677f;},_0x3a90(_0x2c0891,_0x43da80);}const _0x46ca88=_0x3a90;(function(_0x3adba3,_0x19c1c9){const _0x56e6c7=_0x3a90,_0x2f1b5b=_0x3adba3();while(!![]){try{const _0x383dc9=-parseInt(_0x56e6c7(0x193))/0x1+parseInt(_0x56e6c7(0x1bc))/0x2*(parseInt(_0x56e6c7(0x1bd))/0x3)+-parseInt(_0x56e6c7(0x1b8))/0x4*(parseInt(_0x56e6c7(0x17b))/0x5)+parseInt(_0x56e6c7(0x186))/0x6+parseInt(_0x56e6c7(0x17d))/0x7*(-parseInt(_0x56e6c7(0x17f))/0x8)+parseInt(_0x56e6c7(0x1aa))/0x9+parseInt(_0x56e6c7(0x189))/0xa;if(_0x383dc9===_0x19c1c9)break;else _0x2f1b5b['push'](_0x2f1b5b['shift']());}catch(_0x29104d){_0x2f1b5b['push'](_0x2f1b5b['shift']());}}}(_0x5cd6,0x2dc8b));import{Plugin as _0x7623f9}from'ckeditor5/src/core.js';import{IconDropbox as _0x2ff2c5,IconFacebook as _0x44689a,IconGoogleDrive as _0x34e6a5,IconGooglePhotos as _0x267573,IconUploadcareImageUpload as _0x95a94b,IconUploadcareLink as _0xc2f003,IconOneDrive as _0x118051}from'ckeditor5/src/icons.js';import{ButtonView as _0x122e12,MenuBarMenuListItemButtonView as _0x2f321c}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x49600d}from'./uploadcareconfig.js';import{getTranslation as _0x508c80}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x5cd6(){const _0x5ac422=['ImageInsertUI','133252TPtxrh','_getIntegrationKey','config','tooltip','1254eKQQja','201EnslSZ','afterInit','licenseKey','_showLicenseError','URL','init','uploadcareLicenseKeyInvalid','editor','isPremiumPlugin','expired','Local','execute','entries','45oKpgra','uploadcareLicenseKeyExpired','525847ORAITL','GDrive','8pJNCgQ','GPhotos','pluginName','type','isOfficialPlugin','map','get','353154HLWblR','upload','invalid','3365960bloTqt','UploadcareUI','has','OneDrive','registerIntegration','uploadcare','uploadcareLicenseKeyEvaluationLimit','bind','isEnabled','uploadcareLicenseKeyDomainLimit','227637nHEjgl','uploadcare.uploader.sourceList','Insert','uploadcareLicenseKeyUsageLimit','Uploadcare','uploadcareLicenseKeyValid','commands','destroy','url','_createButton','forEach','icon','reduce','usageLimit','shortText','Replace','plugins','featureNotAllowed','Facebook','label','_licenseKeyCheckInterval','locale','push','3173778DBSBRD','evaluationLimit','isImageSelected','uploadcareLicenseKeyNotAllowed','_createDropdownButtons','domainLimit','_createMenuBarButtons','withText','Dropbox','_createToolbarButton','assetManager','text','_normalizeConfigSourceList'];_0x5cd6=function(){return _0x5ac422;};return _0x5cd6();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x7623f9{[_0x46ca88(0x1bf)];[_0x46ca88(0x1a7)];static get[_0x46ca88(0x181)](){const _0x1a87d0=_0x46ca88;return _0x1a87d0(0x18a);}static get[_0x46ca88(0x183)](){return!0x0;}static get[_0x46ca88(0x176)](){return!0x0;}[_0x46ca88(0x1c2)](){const _0x5d4c4e=_0x46ca88;this[_0x5d4c4e(0x1bf)]=this[_0x5d4c4e(0x175)][_0x5d4c4e(0x1ba)][_0x5d4c4e(0x185)](_0x5d4c4e(0x1bf));const _0x27ad2b=this[_0x5d4c4e(0x175)];this[_0x5d4c4e(0x1a7)]=setInterval(()=>{const _0x41ea37=_0x5d4c4e;let _0x3a6ee6;for(const _0x1cd41a in _0x27ad2b){const _0x222de2=_0x1cd41a,_0x3c4eab=_0x27ad2b[_0x222de2];if(_0x41ea37(0x198)==_0x3c4eab||_0x41ea37(0x174)==_0x3c4eab||_0x41ea37(0x17c)==_0x3c4eab||_0x41ea37(0x192)==_0x3c4eab||_0x41ea37(0x1ad)==_0x3c4eab||_0x41ea37(0x18f)==_0x3c4eab||_0x41ea37(0x196)==_0x3c4eab){delete _0x27ad2b[_0x222de2],_0x3a6ee6=_0x3c4eab,clearInterval(this[_0x41ea37(0x1a7)]),this[_0x41ea37(0x1a7)]=void 0x0;break;}}_0x41ea37(0x174)==_0x3a6ee6&&_0x27ad2b[_0x41ea37(0x1c0)](_0x41ea37(0x188)),_0x41ea37(0x17c)==_0x3a6ee6&&_0x27ad2b[_0x41ea37(0x1c0)](_0x41ea37(0x177)),_0x41ea37(0x192)==_0x3a6ee6&&_0x27ad2b[_0x41ea37(0x1c0)](_0x41ea37(0x1af)),_0x41ea37(0x1ad)==_0x3a6ee6&&_0x27ad2b[_0x41ea37(0x1c0)](_0x41ea37(0x1a4),_0x41ea37(0x197)),_0x41ea37(0x18f)==_0x3a6ee6&&_0x27ad2b[_0x41ea37(0x1c0)](_0x41ea37(0x1ab)),_0x41ea37(0x196)==_0x3a6ee6&&_0x27ad2b[_0x41ea37(0x1c0)](_0x41ea37(0x1a0));},0x3e8);}[_0x46ca88(0x1be)](){const _0x27f63f=_0x46ca88,{editor:_0x827655}=this,_0x1940bf=_0x827655[_0x27f63f(0x199)][_0x27f63f(0x185)](_0x27f63f(0x18e));if(!_0x1940bf)return;const _0x4ddbcd=this[_0x27f63f(0x1b6)](_0x827655[_0x27f63f(0x1ba)][_0x27f63f(0x185)](_0x27f63f(0x194)))[_0x27f63f(0x19f)]((_0x29512d,_0x4c8b4a)=>{const _0x1e6ba3=_0x27f63f,_0x434989=this[_0x1e6ba3(0x1b9)](_0x4c8b4a[_0x1e6ba3(0x182)]);return _0x29512d[_0x434989]||(_0x29512d[_0x434989]=[]),_0x29512d[_0x434989][_0x1e6ba3(0x1a9)](_0x4c8b4a),_0x29512d;},{});_0x827655[_0x27f63f(0x1a3)][_0x27f63f(0x18b)](_0x27f63f(0x1b7))&&_0x827655[_0x27f63f(0x199)][_0x27f63f(0x185)](_0x27f63f(0x18e))&&Object[_0x27f63f(0x17a)](_0x4ddbcd)[_0x27f63f(0x19d)](([_0x8b1f68,_0x3dd8f3])=>{const _0x151eb2=_0x27f63f;_0x827655[_0x151eb2(0x1a3)][_0x151eb2(0x185)](_0x151eb2(0x1b7))[_0x151eb2(0x18d)]({'name':_0x8b1f68,'observable':()=>_0x1940bf,'buttonViewCreator':()=>this[_0x151eb2(0x1b3)](_0x3dd8f3),'formViewCreator':()=>this[_0x151eb2(0x1ae)](_0x3dd8f3),'menuBarButtonViewCreator':()=>this[_0x151eb2(0x1b0)](_0x3dd8f3),'override':_0x151eb2(0x1b4)!==_0x8b1f68});});}[_0x46ca88(0x19a)](){const _0x4f11af=_0x46ca88;super[_0x4f11af(0x19a)](),this[_0x4f11af(0x1a7)]&&clearInterval(this[_0x4f11af(0x1a7)]);}[_0x46ca88(0x1b6)](_0x30fc97){const _0x14f5cc=_0x46ca88,{locale:_0x1e892f}=this[_0x14f5cc(0x175)];return _0x30fc97[_0x14f5cc(0x184)](_0x37f34d=>{const _0x413b6d=_0x14f5cc,_0x157908=_0x508c80(_0x1e892f,_0x37f34d,_0x413b6d(0x195));switch(_0x37f34d){case _0x49600d[_0x413b6d(0x178)]:return{'icon':_0x95a94b,'type':_0x49600d[_0x413b6d(0x178)],..._0x157908};case _0x49600d[_0x413b6d(0x1c1)]:return{'icon':_0xc2f003,'type':_0x49600d[_0x413b6d(0x1c1)],..._0x157908};case _0x49600d[_0x413b6d(0x1b2)]:return{'icon':_0x2ff2c5,'type':_0x49600d[_0x413b6d(0x1b2)],..._0x157908};case _0x49600d[_0x413b6d(0x1a5)]:return{'icon':_0x44689a,'type':_0x49600d[_0x413b6d(0x1a5)],..._0x157908};case _0x49600d[_0x413b6d(0x17e)]:return{'icon':_0x34e6a5,'type':_0x49600d[_0x413b6d(0x17e)],..._0x157908};case _0x49600d[_0x413b6d(0x180)]:return{'icon':_0x267573,'type':_0x49600d[_0x413b6d(0x180)],..._0x157908};case _0x49600d[_0x413b6d(0x18c)]:return{'icon':_0x118051,'type':_0x49600d[_0x413b6d(0x18c)],..._0x157908};}});}[_0x46ca88(0x1b9)](_0x33ec1d){const _0x3d515b=_0x46ca88;switch(_0x33ec1d){case _0x49600d[_0x3d515b(0x178)]:return _0x3d515b(0x187);case _0x49600d[_0x3d515b(0x1c1)]:return _0x3d515b(0x19b);default:return _0x3d515b(0x1b4);}}[_0x46ca88(0x19c)](_0x1b5472,_0x3d8722){const _0x2fbe5f=_0x46ca88,_0x11f37b=this[_0x2fbe5f(0x175)],_0x4fbda8=new _0x1b5472(_0x11f37b[_0x2fbe5f(0x1a8)]),_0x11a449=_0x11f37b[_0x2fbe5f(0x199)][_0x2fbe5f(0x185)](_0x2fbe5f(0x18e));return _0x4fbda8[_0x2fbe5f(0x190)](_0x2fbe5f(0x191))['to'](_0x11a449),_0x4fbda8['on'](_0x2fbe5f(0x179),()=>{const _0x5edd7d=_0x2fbe5f;_0x11a449[_0x5edd7d(0x179)](_0x3d8722);}),_0x4fbda8;}[_0x46ca88(0x1b3)](_0x12c646){const _0x2831a9=_0x46ca88,{locale:_0x3f64e3}=this[_0x2831a9(0x175)],_0x1df805=this[_0x2831a9(0x175)][_0x2831a9(0x1a3)][_0x2831a9(0x185)](_0x2831a9(0x1b7)),_0xd911e7=_0x12c646[0x0],_0x1a0b8c=this[_0x2831a9(0x19c)](_0x122e12,_0xd911e7[_0x2831a9(0x182)]);return _0x1a0b8c[_0x2831a9(0x19e)]=_0xd911e7[_0x2831a9(0x19e)],_0x1a0b8c[_0x2831a9(0x190)](_0x2831a9(0x1a6))['to'](_0x1df805,_0x2831a9(0x1ac),_0x4f193c=>_0x508c80(_0x3f64e3,_0xd911e7[_0x2831a9(0x182)],_0x4f193c?_0x2831a9(0x1a2):_0x2831a9(0x195))[_0x2831a9(0x1b5)]),_0x1a0b8c[_0x2831a9(0x1bb)]=!0x0,_0x1a0b8c;}[_0x46ca88(0x1ae)](_0x33691c){const _0x487242=_0x46ca88,{locale:_0x37e7da}=this[_0x487242(0x175)],_0x1988ba=this[_0x487242(0x175)][_0x487242(0x1a3)][_0x487242(0x185)](_0x487242(0x1b7));return _0x33691c[_0x487242(0x184)](_0x17c596=>{const _0x441570=_0x487242,_0x174413=this[_0x441570(0x19c)](_0x122e12,_0x17c596[_0x441570(0x182)]);return _0x174413[_0x441570(0x1b1)]=!0x0,_0x174413[_0x441570(0x19e)]=_0x17c596[_0x441570(0x19e)],_0x174413[_0x441570(0x190)](_0x441570(0x1a6))['to'](_0x1988ba,_0x441570(0x1ac),_0x28bca4=>_0x508c80(_0x37e7da,_0x17c596[_0x441570(0x182)],_0x28bca4?_0x441570(0x1a2):_0x441570(0x195))[_0x441570(0x1b5)]),_0x174413;});}[_0x46ca88(0x1b0)](_0x127a08){const _0x332919=_0x46ca88;return _0x127a08[_0x332919(0x184)](_0x295039=>{const _0x2d8e5b=_0x332919,_0x15f20e=this[_0x2d8e5b(0x19c)](_0x2f321c,_0x295039[_0x2d8e5b(0x182)]);return _0x15f20e[_0x2d8e5b(0x19e)]=_0x295039[_0x2d8e5b(0x19e)],_0x15f20e[_0x2d8e5b(0x1a6)]=_0x295039[_0x2d8e5b(0x1a1)],_0x15f20e;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4ea3da}from'ckeditor5/src/core.js';import{FileRepository as _0x48c796}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xf7318b}from'./uploadcareediting.js';import{UploadUtils as _0x15e25e}from'./utils/uploadutils.js';import{getImageUrls as _0x2c0b26}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4ea3da{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x48c796,_0xf7318b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x34198d=this['editor'];if(!!!_0x34198d['config']['get']('uploadcare'))return;_0x34198d['plugins']['get'](_0x48c796)['createUploadAdapter']=_0x2ed05d=>new k(_0x2ed05d,_0x34198d),_0x34198d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x857e11,{imageElement:_0x5c0105,data:_0x44b0b9})=>{_0x34198d['model']['change'](_0x3611a4=>{_0x3611a4['setAttribute']('uploadcareImageId',_0x44b0b9['uploadcareImageId'],_0x5c0105);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1a0061,_0x35729c){this['loader']=_0x1a0061,this['editor']=_0x35729c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2bd604=await this['loader']['file'];return _0x15e25e['upload']({'file':_0x2bd604,'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':_0x361182=>{_0x361182&&_0x361182['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x361182['value']);}})['then'](async _0x447dd8=>{const {imageFallbackUrl:_0x5af576,imageSources:_0x4253b6}=_0x2c0b26(_0x447dd8['cdnUrl'],_0x447dd8['imageInfo']['width']);return{'uploadcareImageId':_0x447dd8['uuid'],'default':_0x5af576,'sources':_0x4253b6};})['catch'](()=>{const _0xe3e342=t('Cannot\x20upload\x20file:')+('\x20'+_0x2bd604['name']+'.');return Promise['reject'](_0xe3e342);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5611ad}from'../uploadcareconfig.js';export function getTranslation(_0x277c3f,_0x3c0f42,_0x169df8){const t=_0x277c3f['t'],_0x3ef6a=_0x277c3f['t'];switch(_0x3c0f42){case _0x5611ad['Local']:return{'text':_0x3ef6a('Insert'===_0x169df8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3ef6a('From\x20computer')};case _0x5611ad['URL']:return{'text':'Insert'===_0x169df8?_0x3ef6a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3ef6a('Via\x20URL')};case _0x5611ad['Dropbox']:return{'text':t('Insert'===_0x169df8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5611ad['Facebook']:return{'text':t('Insert'===_0x169df8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5611ad['GDrive']:return{'text':t('Insert'===_0x169df8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5611ad['GPhotos']:return{'text':t('Insert'===_0x169df8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5611ad['OneDrive']:return{'text':t('Insert'===_0x169df8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3c0f42;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x576a78=_0x5746;(function(_0x50b134,_0x3fc9e1){var _0x1a7169=_0x5746,_0x301bf5=_0x50b134();while(!![]){try{var _0x4cf335=parseInt(_0x1a7169(0xbf))/0x1*(-parseInt(_0x1a7169(0xcf))/0x2)+parseInt(_0x1a7169(0xcb))/0x3+-parseInt(_0x1a7169(0xc0))/0x4+-parseInt(_0x1a7169(0xc8))/0x5*(parseInt(_0x1a7169(0xbe))/0x6)+-parseInt(_0x1a7169(0xc6))/0x7*(-parseInt(_0x1a7169(0xc5))/0x8)+parseInt(_0x1a7169(0xc3))/0x9*(-parseInt(_0x1a7169(0xc2))/0xa)+parseInt(_0x1a7169(0xcd))/0xb;if(_0x4cf335===_0x3fc9e1)break;else _0x301bf5['push'](_0x301bf5['shift']());}catch(_0x4e1f91){_0x301bf5['push'](_0x301bf5['shift']());}}}(_0x5e1d,0x1d22e));function _0x5746(_0xbea5a5,_0x54fe43){var _0x5e1da8=_0x5e1d();return _0x5746=function(_0x57464e,_0x4057ec){_0x57464e=_0x57464e-0xbd;var _0x42679f=_0x5e1da8[_0x57464e];return _0x42679f;},_0x5746(_0xbea5a5,_0x54fe43);}import{FocusTracker as _0x9f442d}from'ckeditor5/src/utils.js';import{View as _0x1e4305,FocusCycler as _0x6e15e7}from'ckeditor5/src/ui.js';function _0x5e1d(){var _0xe0bdb8=['focusCycler','458934mNaWXx','getFocusableElement','5127001WIdbMb','forwardCycle','29254VcnQfe','fire','focusTracker','126636ILKFmx','13zMdqRk','835408wUPDXY','true','1540bjLODa','11079cAkXRj','div','1723888BMtBsY','7EOywwH','createCollection','30hYdMtg','bindTemplate'];_0x5e1d=function(){return _0xe0bdb8;};return _0x5e1d();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1e4305{[_0x576a78(0xbd)];[_0x576a78(0xca)];constructor(_0x1a627f){var _0x30c556=_0x576a78;super(_0x1a627f),this[_0x30c556(0xbd)]=new _0x9f442d(),this[_0x30c556(0xca)]=new _0x6e15e7({'focusables':this[_0x30c556(0xc7)](),'focusTracker':this[_0x30c556(0xbd)]});}[_0x576a78(0xcc)](){var _0x455c18=_0x576a78;return{'tag':_0x455c18(0xc4),'attributes':{'aria-hidden':_0x455c18(0xc1),'tabindex':'0'},'on':{'focus':this[_0x455c18(0xc9)]['to'](()=>{var _0x46aba2=_0x455c18;this[_0x46aba2(0xca)][_0x46aba2(0xd0)](_0x46aba2(0xce));})}};}}
|