@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251215.0 → 0.0.0-nightly-next-20251216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x778a=_0x5e25;(function(_0x1a095e,_0xfb0bfc){const _0x2a9a07=_0x5e25,_0x38cf5f=_0x1a095e();while(!![]){try{const _0x243f0b=parseInt(_0x2a9a07(0x229))/0x1+parseInt(_0x2a9a07(0x20b))/0x2+-parseInt(_0x2a9a07(0x22f))/0x3+parseInt(_0x2a9a07(0x1ff))/0x4+parseInt(_0x2a9a07(0x1e6))/0x5+-parseInt(_0x2a9a07(0x21d))/0x6*(parseInt(_0x2a9a07(0x205))/0x7)+-parseInt(_0x2a9a07(0x1e8))/0x8*(parseInt(_0x2a9a07(0x226))/0x9);if(_0x243f0b===_0xfb0bfc)break;else _0x38cf5f['push'](_0x38cf5f['shift']());}catch(_0x11e824){_0x38cf5f['push'](_0x38cf5f['shift']());}}}(_0x5bca,0xb1ca9));import{Plugin as _0x5b2f4e}from'ckeditor5/src/core.js';import{Dialog as _0x5e1821}from'ckeditor5/src/ui.js';function _0x5bca(){const _0x24b91d=['pluginName','imageBlock','selection','40380dRpLMu','_initSchema','conversion','join','contentLanguage','downcast','extend','init','get','36zfPgJR','true','removeAttribute','763238wMrJWB','config','_ctxElement','insertImage','ucContextId','closeMax','1525980XLzIQZ','requires','isRegistered','iconHrefResolver','isOfficialPlugin','afterInit','uc-config','document','getAttribute','replaceImageSource','remove','3474075DBEgNI','\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','2077256aQJOpj','#uc-icon-arrow-down','input[uploadcare-file-input]','upcast','uploader-','schema','locale','uploadcare','uploadcareImageReplace','editor','data-uc-image-id','_initConfig','href','elementToAttribute','PictureEditing','commands','_configElement','once','model','fromCharCode','UploadcareEditing','listenTo','appendChild','3091204JVgLjs','uploadcare.pubkey','cleanupImage','querySelector','map','_initImageProcessingIndicator','511KusUoQ','_initConversion','execute','destroy','view','uc-upload-ctx-provider','1071914uTWVqE','uploadcare.uploader','add','ctxElement','for','imageInline','editing','body','uploadcareImageId','attributeToAttribute','_initCtx','render','isPremiumPlugin','getSelectedElement','configElement'];_0x5bca=function(){return _0x24b91d;};return _0x5bca();}import{createElement as _0x15021e,global as _0x36de1b,uid as _0x375469}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x856e51}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1642d9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3410c8}from'./utils/editingutils.js';function _0x5e25(_0x199936,_0x2382ae){const _0x5bca65=_0x5bca();return _0x5e25=function(_0x5e25e2,_0x5aa8fb){_0x5e25e2=_0x5e25e2-0x1e1;let _0x7f6704=_0x5bca65[_0x5e25e2];return _0x7f6704;},_0x5e25(_0x199936,_0x2382ae);}export class UploadcareEditing extends _0x5b2f4e{[_0x778a(0x1f8)]=null;[_0x778a(0x22b)]=null;static get[_0x778a(0x21a)](){const _0x35ebcc=_0x778a;return _0x35ebcc(0x1fc);}static get[_0x778a(0x230)](){const _0x2b801a=_0x778a;return[_0x2b801a(0x1f6),_0x1642d9,_0x5e1821];}static get[_0x778a(0x233)](){return!0x0;}static get[_0x778a(0x217)](){return!0x0;}[_0x778a(0x22d)];get[_0x778a(0x219)](){const _0x38695b=_0x778a;return this[_0x38695b(0x1f8)];}get[_0x778a(0x20e)](){const _0x150a3b=_0x778a;return this[_0x150a3b(0x22b)];}constructor(_0x3b1b2a){const _0x4ab479=_0x778a;super(_0x3b1b2a),this[_0x4ab479(0x22d)]=_0x375469();}[_0x778a(0x224)](){const _0x9d49b8=_0x778a,_0x4acb32=this[_0x9d49b8(0x1f1)];_0x4acb32[_0x9d49b8(0x1f7)][_0x9d49b8(0x20d)](_0x9d49b8(0x1ef),new _0x856e51(_0x4acb32));}[_0x778a(0x234)](){const _0x9fd15a=_0x778a;this[_0x9fd15a(0x21e)](),this[_0x9fd15a(0x206)](),this[_0x9fd15a(0x1f3)](),this[_0x9fd15a(0x215)](),this[_0x9fd15a(0x204)](),this[_0x9fd15a(0x1fd)](this[_0x9fd15a(0x1f1)],_0x9fd15a(0x208),()=>{const _0x6e0dea=_0x9fd15a;this[_0x6e0dea(0x1f8)]&&(this[_0x6e0dea(0x1f8)][_0x6e0dea(0x1e5)](),this[_0x6e0dea(0x1f8)]=null),this[_0x6e0dea(0x22b)]&&(this[_0x6e0dea(0x22b)][_0x6e0dea(0x1e5)](),this[_0x6e0dea(0x22b)]=null);const _0x395763=_0x36de1b[_0x6e0dea(0x1e2)][_0x6e0dea(0x202)](_0x6e0dea(0x1ea));_0x395763&&_0x395763[_0x6e0dea(0x1e5)]();}),async function(_0x2f129b){const _0x220728=_0x14900b([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]),_0x51ed19=0x535f8c3a,_0x30ec2b=0x5358f7c2^_0x51ed19,_0x2177ca=window[_0x14900b([0x44,0x61,0x74,0x65])][_0x14900b([0x6e,0x6f,0x77])](),_0x48c7a3=_0x2f129b[_0x14900b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2909ee=new window[(_0x14900b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x408f66=>{_0x48c7a3[_0x14900b([0x6f,0x6e,0x63,0x65])](_0x14900b([0x72,0x65,0x61,0x64,0x79]),_0x408f66);}),_0x35e4c2={[_0x14900b([0x6b,0x74,0x79])]:_0x14900b([0x45,0x43]),[_0x14900b([0x75,0x73,0x65])]:_0x14900b([0x73,0x69,0x67]),[_0x14900b([0x63,0x72,0x76])]:_0x14900b([0x50,0x2d,0x32,0x35,0x36]),[_0x14900b([0x78])]:_0x14900b([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]),[_0x14900b([0x79])]:_0x14900b([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]),[_0x14900b([0x61,0x6c,0x67])]:_0x14900b([0x45,0x53,0x32,0x35,0x36])},_0x163570=_0x48c7a3[_0x14900b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14900b([0x67,0x65,0x74])](_0x14900b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e64a5(){let _0x1f0ce6,_0x54f866=null,_0xc2d2eb=null;try{if(_0x163570==_0x14900b([0x47,0x50,0x4c]))return _0x14900b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f0ce6=_0x4574b4(),!_0x1f0ce6)return _0x14900b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1f0ce6[_0x14900b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc2d2eb=_0x56c8af(_0x1f0ce6[_0x14900b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f0ce6[_0x14900b([0x6a,0x74,0x69])])),await _0xabf94e()?_0x34558f()?_0x2242a8()?_0x14900b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5aa969()?(_0x1f0ce6[_0x14900b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14900b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54f866=_0x3ba242(_0x14900b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f0ce6[_0x14900b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14900b([0x74,0x72,0x69,0x61,0x6c])&&(_0x54f866=_0x3ba242(_0x14900b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e6627()):_0x14900b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14900b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14900b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14900b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2242a8(){const _0x390f78=[_0x14900b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14900b([0x74,0x72,0x69,0x61,0x6c])][_0x14900b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f0ce6[_0x14900b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2177ca/0x3e8:0xe10*_0x30ec2b;return _0x1f0ce6[_0x14900b([0x65,0x78,0x70])]<_0x390f78;}function _0x34558f(){const _0x1c9b4a=_0x1f0ce6[_0x14900b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c9b4a&&(!!_0x1c9b4a[_0x14900b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14900b([0x2a]))||!!_0x1c9b4a[_0x14900b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14900b([0x55,0x50,0x4c,0x43])));}function _0x5aa969(){const _0x2983af=_0x5e25,_0x22511e=_0x1f0ce6[_0x14900b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22511e||0x0==_0x22511e[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x221de5}=new URL(window[_0x14900b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2983af(0x1f4)]);if(_0x22511e[_0x14900b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221de5))return!0x0;const _0x375ef0=_0x221de5[_0x14900b([0x73,0x70,0x6c,0x69,0x74])](_0x14900b([0x2e]));return _0x22511e[_0x14900b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a3595=>_0x1a3595[_0x14900b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14900b([0x2a])))[_0x14900b([0x6d,0x61,0x70])](_0x5ca35b=>_0x5ca35b[_0x14900b([0x73,0x70,0x6c,0x69,0x74])](_0x14900b([0x2e])))[_0x14900b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ae26b=>_0x1ae26b[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x375ef0[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14900b([0x6d,0x61,0x70])](_0x57cd40=>Array(_0x375ef0[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57cd40[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14900b([0x66,0x69,0x6c,0x6c])](_0x57cd40[0x0]===_0x14900b([0x2a])?_0x14900b([0x2a]):'')[_0x14900b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57cd40))[_0x14900b([0x73,0x6f,0x6d,0x65])](_0x522615=>_0x375ef0[_0x14900b([0x65,0x76,0x65,0x72,0x79])]((_0xa1a594,_0x37f3a3)=>_0x522615[_0x37f3a3]===_0xa1a594||_0x522615[_0x37f3a3]===_0x14900b([0x2a])));}function _0x4e6627(){return _0x54f866&&_0xc2d2eb?new window[(_0x14900b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5eaf11,_0x255548)=>{_0x54f866[_0x14900b([0x74,0x68,0x65,0x6e])](_0x5eaf11,_0x255548),_0xc2d2eb[_0x14900b([0x74,0x68,0x65,0x6e])](_0x149335=>{_0x149335!=_0x14900b([0x56,0x61,0x6c,0x69,0x64])&&_0x5eaf11(_0x149335);},_0x255548);}):_0x54f866||_0xc2d2eb||_0x14900b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x56c8af(_0x167382,_0x11f195){return new window[(_0x14900b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1593a8=>{if(_0x4d86bc())return _0x1593a8(_0x14900b([0x56,0x61,0x6c,0x69,0x64]));_0x6f5d27(),_0x48c7a3[_0x14900b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14900b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xeed843=!0x1;const _0x2cd796=_0x375469();function _0x4de9e6(_0xeb3e38){return!!_0xeb3e38&&(typeof _0xeb3e38===_0x14900b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xeb3e38===_0x14900b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xeb3e38[_0x14900b([0x74,0x68,0x65,0x6e])]===_0x14900b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xeb3e38[_0x14900b([0x63,0x61,0x74,0x63,0x68])]===_0x14900b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf4e8a9(_0x1ce4ac){_0x41be5c(_0x1ce4ac)[_0x14900b([0x74,0x68,0x65,0x6e])](_0x4cb296=>{if(!_0x4cb296||_0x4cb296[_0x14900b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14900b([0x6f,0x6b]))return _0x14900b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2005bc(_0x2656e4(_0x2cd796+_0x11f195))!=_0x4cb296[_0x14900b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14900b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14900b([0x56,0x61,0x6c,0x69,0x64]);})[_0x14900b([0x74,0x68,0x65,0x6e])](_0xdab038=>(_0xb57137(),_0xdab038),()=>{const _0x262c15=_0x22b59a();return null==_0x262c15?(_0xb57137(),_0x14900b([0x56,0x61,0x6c,0x69,0x64])):_0x14900b(_0x2177ca-_0x262c15>(0x7753083a^_0x51ed19)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14900b([0x74,0x68,0x65,0x6e])](_0x1593a8)[_0x14900b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1593a8(_0x14900b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e6255=0x536962ba^_0x51ed19;function _0xb57137(){const _0x4c278a=_0x14900b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2005bc(_0x2656e4(_0x167382)),_0x31143c=_0x2b7e23(_0x2005bc(window[_0x14900b([0x4d,0x61,0x74,0x68])][_0x14900b([0x63,0x65,0x69,0x6c])](_0x2177ca/_0x1e6255)));window[_0x14900b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14900b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c278a,_0x31143c);}function _0x22b59a(){const _0x10bd39=_0x14900b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2005bc(_0x2656e4(_0x167382)),_0x178a18=window[_0x14900b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14900b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10bd39);return _0x178a18?window[_0x14900b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b7e23(_0x178a18),0x10)*_0x1e6255:null;}function _0x41be5c(_0x4d9203){return new window[(_0x14900b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x554b06,_0x15286d)=>{_0x4d9203[_0x14900b([0x74,0x68,0x65,0x6e])](_0x554b06,_0x15286d),window[_0x14900b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15286d,0x535e58fa^_0x51ed19);});}}_0x48c7a3[_0x14900b([0x6f,0x6e])](_0x14900b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x596876,_0xdfdbe8)=>{if(_0xdfdbe8[0x0]!=_0x167382)return _0x1593a8(_0x14900b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdfdbe8[0x1]={..._0xdfdbe8[0x1],[_0x14900b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cd796};},{[_0x14900b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14900b([0x68,0x69,0x67,0x68])}),_0x48c7a3[_0x14900b([0x6f,0x6e])](_0x14900b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3536c0=>{_0x4de9e6(_0x3536c0[_0x14900b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xeed843=!0x0,_0xf4e8a9(_0x3536c0[_0x14900b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14900b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14900b([0x6c,0x6f,0x77])}),_0x2909ee[_0x14900b([0x74,0x68,0x65,0x6e])](()=>{_0xeed843||_0x1593a8(_0x14900b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d86bc(){return _0x48c7a3[_0x14900b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14900b([0x76,0x69,0x65,0x77])][_0x14900b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14900b([0x61,0x75,0x74,0x6f]);}function _0x6f5d27(){_0x48c7a3[_0x14900b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14900b([0x76,0x69,0x65,0x77])][_0x14900b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14900b([0x61,0x75,0x74,0x6f]);}}function _0x3ba242(_0x31f5d6){const _0x3a8bf9=[new window[(_0x14900b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e0b2=>setTimeout(_0x34e0b2,0x5356b2f6^_0x51ed19)),_0x2909ee[_0x14900b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14900b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54fb0b=>{let _0x5948cb=0x0;_0x48c7a3[_0x14900b([0x6d,0x6f,0x64,0x65,0x6c])][_0x14900b([0x6f,0x6e])](_0x14900b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ac38a,_0x247795)=>{_0x247795[0x0][_0x14900b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5948cb++,_0x5948cb==(0x535f8dc2^_0x51ed19)&&(_0x54fb0b(),_0x1ac38a[_0x14900b([0x6f,0x66,0x66])]());});}))];return window[_0x14900b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14900b([0x72,0x61,0x63,0x65])](_0x3a8bf9)[_0x14900b([0x74,0x68,0x65,0x6e])](()=>_0x31f5d6);}async function _0x392dd7(){await _0x2909ee,_0x48c7a3[_0x14900b([0x6d,0x6f,0x64,0x65,0x6c])][_0x14900b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10297a,_0x48c7a3[_0x14900b([0x6d,0x6f,0x64,0x65,0x6c])][_0x14900b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10297a,_0x48c7a3[_0x14900b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14900b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22dcfd(_0x165b99){const _0x1034e9=_0x4c386f();_0x48c7a3[_0x1034e9]=_0x14900b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x165b99,_0x165b99!=_0x14900b([0x56,0x61,0x6c,0x69,0x64])&&_0x392dd7();}function _0x4c386f(){const _0x5592f1=window[_0x14900b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14900b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14900b([0x6e,0x6f,0x77])]())[_0x14900b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14900b([0x2e]),'');let _0x39caa4=_0x14900b([0x68]);for(let _0x48405a=0x0;_0x48405a<_0x5592f1[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48405a+=0x2){let _0x1734d6=window[_0x14900b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5592f1[_0x14900b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48405a,_0x48405a+0x2));_0x1734d6>=_0x220728[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1734d6-=_0x220728[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39caa4+=_0x220728[_0x1734d6];}return _0x39caa4;}function _0x4574b4(){const _0x4528a8=_0x163570[_0x14900b([0x73,0x70,0x6c,0x69,0x74])](_0x14900b([0x2e]));if(0x3!=_0x4528a8[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12c72b(_0x4528a8[0x1]);function _0x12c72b(_0x2b1302){const _0x3468e0=_0x40c2c5(_0x2b1302);return _0x3468e0&&_0x3c6367()?_0x3468e0:null;function _0x3c6367(){const _0x4e66fa=_0x3468e0[_0x14900b([0x6a,0x74,0x69])],_0x521567=window[_0x14900b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e66fa[_0x14900b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e66fa[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x174fe4={..._0x3468e0,[_0x14900b([0x6a,0x74,0x69])]:_0x4e66fa[_0x14900b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e66fa[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x174fe4[_0x14900b([0x76,0x63])],_0x2656e4(_0x174fe4)==_0x521567;}}}async function _0xabf94e(){let _0x35b67e=!0x0;try{const _0x25a2af=_0x163570[_0x14900b([0x73,0x70,0x6c,0x69,0x74])](_0x14900b([0x2e])),[_0x36ca39,_0xb6e5db,_0x2b0aec]=_0x25a2af;return _0x1151d8(_0x36ca39),await _0x536ea1(_0x36ca39,_0xb6e5db,_0x2b0aec),_0x35b67e;}catch{return!0x1;}function _0x1151d8(_0x2e03c0){const _0x3e2b92=_0x40c2c5(_0x2e03c0);_0x3e2b92&&_0x3e2b92[_0x14900b([0x61,0x6c,0x67])]==_0x14900b([0x45,0x53,0x32,0x35,0x36])||(_0x35b67e=!0x1);}async function _0x536ea1(_0x59ba05,_0x2876e0,_0x1843b0){const _0xb877e1=window[_0x14900b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14900b([0x66,0x72,0x6f,0x6d])](_0x2d87af(_0x1843b0),_0x33c905=>_0x33c905[_0x14900b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47ff2d=new window[(_0x14900b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14900b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59ba05+_0x14900b([0x2e])+_0x2876e0),_0x8de97d=window[_0x14900b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14900b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8de97d)return;const _0xf799b9=await _0x8de97d[_0x14900b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14900b([0x6a,0x77,0x6b]),_0x35e4c2,{[_0x14900b([0x6e,0x61,0x6d,0x65])]:_0x14900b([0x45,0x43,0x44,0x53,0x41]),[_0x14900b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14900b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14900b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8de97d[_0x14900b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14900b([0x6e,0x61,0x6d,0x65])]:_0x14900b([0x45,0x43,0x44,0x53,0x41]),[_0x14900b([0x68,0x61,0x73,0x68])]:{[_0x14900b([0x6e,0x61,0x6d,0x65])]:_0x14900b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf799b9,_0xb877e1,_0x47ff2d)||(_0x35b67e=!0x1);}}function _0x40c2c5(_0xb59b56){return _0xb59b56[_0x14900b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14900b([0x65,0x79]))?JSON[_0x14900b([0x70,0x61,0x72,0x73,0x65])](_0x2d87af(_0xb59b56)):null;}function _0x2d87af(_0x258fa8){return window[_0x14900b([0x61,0x74,0x6f,0x62])](_0x258fa8[_0x14900b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14900b([0x2b]))[_0x14900b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14900b([0x2f])));}function _0x2656e4(_0x1630a8){let _0x5d9012=0x1505;function _0x175dbc(_0xf208a7){for(let _0x3cd30a=0x0;_0x3cd30a<_0xf208a7[_0x14900b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cd30a++){const _0x5b20e0=_0xf208a7[_0x14900b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3cd30a);_0x5d9012=(_0x5d9012<<0x5)+_0x5d9012+_0x5b20e0,_0x5d9012&=_0x5d9012;}}function _0x1c797f(_0x2d9677){Array[_0x14900b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d9677)?_0x2d9677[_0x14900b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c797f):_0x2d9677&&typeof _0x2d9677==_0x14900b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14900b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d9677)[_0x14900b([0x73,0x6f,0x72,0x74])]()[_0x14900b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x391332,_0x43a3af])=>{_0x175dbc(_0x391332),_0x1c797f(_0x43a3af);}):_0x175dbc(window[_0x14900b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d9677));}return _0x1c797f(_0x1630a8),_0x5d9012>>>0x0;}function _0x2005bc(_0x49b44c){return _0x49b44c[_0x14900b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14900b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14900b([0x30]));}function _0x2b7e23(_0x43e416){return _0x43e416[_0x14900b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14900b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14900b([0x6a,0x6f,0x69,0x6e])]('');}function _0x10297a(){}function _0x14900b(_0x3267a6){const _0x1daa6a=_0x5e25;return _0x3267a6[_0x1daa6a(0x203)](_0x198ab9=>String[_0x1daa6a(0x1fb)](_0x198ab9))[_0x1daa6a(0x220)]('');}_0x22dcfd(await _0x4e64a5());}(this);}[_0x778a(0x21e)](){const _0x50797d=_0x778a,_0x57271d=this[_0x50797d(0x1f1)][_0x50797d(0x1fa)][_0x50797d(0x1ed)];_0x57271d[_0x50797d(0x231)](_0x50797d(0x21b))&&_0x57271d[_0x50797d(0x223)](_0x50797d(0x21b),{'allowAttributes':[_0x50797d(0x213)]}),_0x57271d[_0x50797d(0x231)](_0x50797d(0x210))&&_0x57271d[_0x50797d(0x223)](_0x50797d(0x210),{'allowAttributes':[_0x50797d(0x213)]});}[_0x778a(0x206)](){const _0x2e7dcb=_0x778a,_0x4bc33a=this[_0x2e7dcb(0x1f1)];_0x4bc33a[_0x2e7dcb(0x21f)][_0x2e7dcb(0x20f)](_0x2e7dcb(0x222))[_0x2e7dcb(0x214)]({'model':_0x2e7dcb(0x213),'view':_0x2e7dcb(0x1f2)}),_0x4bc33a[_0x2e7dcb(0x21f)][_0x2e7dcb(0x20f)](_0x2e7dcb(0x1eb))[_0x2e7dcb(0x1f5)]({'model':{'key':_0x2e7dcb(0x213),'value':_0x42053d=>_0x42053d[_0x2e7dcb(0x1e3)](_0x2e7dcb(0x1f2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xbb875f=_0x4bc33a[_0x2e7dcb(0x1f7)][_0x2e7dcb(0x225)](_0x2e7dcb(0x1e4));_0xbb875f&&this[_0x2e7dcb(0x1fd)](_0xbb875f,_0x2e7dcb(0x201),(_0x4b87c9,[_0x850086,_0x232e69])=>{const _0x53803b=_0x2e7dcb;_0x850086[_0x53803b(0x228)](_0x53803b(0x213),_0x232e69);});}[_0x778a(0x1f3)](){const _0xf8f881=_0x778a,_0x384bcb=this[_0xf8f881(0x1f1)][_0xf8f881(0x22a)][_0xf8f881(0x225)](_0xf8f881(0x20c))||{},_0x3c1220=this[_0xf8f881(0x1f1)][_0xf8f881(0x22a)][_0xf8f881(0x225)](_0xf8f881(0x200))||'';this[_0xf8f881(0x1f8)]=_0x15021e(_0x36de1b[_0xf8f881(0x1e2)],_0xf8f881(0x1e1),{..._0x384bcb,'pubkey':_0x3c1220,'ctx-name':_0xf8f881(0x1ec)+this[_0xf8f881(0x22d)],'sourceList':'','imgOnly':_0xf8f881(0x227),'removeCopyright':_0xf8f881(0x227),'localeName':this[_0xf8f881(0x1f1)][_0xf8f881(0x1ee)][_0xf8f881(0x221)],'externalSourcesEmbedCss':_0xf8f881(0x1e7)}),this[_0xf8f881(0x1f8)][_0xf8f881(0x232)]=_0x5a515e=>{const _0x20b5cc=_0xf8f881;if(_0x20b5cc(0x22e)==_0x5a515e)return _0x20b5cc(0x1e9);},_0x36de1b[_0xf8f881(0x1e2)][_0xf8f881(0x212)][_0xf8f881(0x1fe)](this[_0xf8f881(0x1f8)]);}[_0x778a(0x215)](){const _0x14a651=_0x778a;this[_0x14a651(0x22b)]=_0x15021e(_0x36de1b[_0x14a651(0x1e2)],_0x14a651(0x20a),{'ctx-name':_0x14a651(0x1ec)+this[_0x14a651(0x22d)]}),_0x36de1b[_0x14a651(0x1e2)][_0x14a651(0x212)][_0x14a651(0x1fe)](this[_0x14a651(0x22b)]);}[_0x778a(0x204)](){const _0x55c3b3=_0x778a,_0x2501e3=this[_0x55c3b3(0x1f1)][_0x55c3b3(0x1f7)][_0x55c3b3(0x225)](_0x55c3b3(0x22c));_0x2501e3&&this[_0x55c3b3(0x1fd)](_0x2501e3,_0x55c3b3(0x207),()=>{const _0x56bab8=_0x55c3b3,_0x304454=this[_0x56bab8(0x1f1)][_0x56bab8(0x1fa)][_0x56bab8(0x1e2)][_0x56bab8(0x21c)][_0x56bab8(0x218)]();_0x304454&&_0x304454[_0x56bab8(0x1e3)](_0x56bab8(0x213))&&this[_0x56bab8(0x1f1)][_0x56bab8(0x211)][_0x56bab8(0x209)][_0x56bab8(0x1f9)](_0x56bab8(0x216),()=>{const _0x3e800f=_0x56bab8;_0x3410c8(this[_0x3e800f(0x1f1)],_0x304454);});});const _0x1dd704=this[_0x55c3b3(0x1f1)][_0x55c3b3(0x1f7)][_0x55c3b3(0x225)](_0x55c3b3(0x1f0));_0x1dd704&&this[_0x55c3b3(0x1fd)](_0x1dd704,_0x55c3b3(0x207),()=>{const _0x43aa2c=_0x55c3b3,_0x542efc=this[_0x43aa2c(0x1f1)][_0x43aa2c(0x1fa)][_0x43aa2c(0x1e2)][_0x43aa2c(0x21c)][_0x43aa2c(0x218)]();_0x542efc&&_0x542efc[_0x43aa2c(0x1e3)](_0x43aa2c(0x213))&&this[_0x43aa2c(0x1f1)][_0x43aa2c(0x211)][_0x43aa2c(0x209)][_0x43aa2c(0x1f9)](_0x43aa2c(0x216),()=>{const _0x1d7048=_0x43aa2c;_0x3410c8(this[_0x1d7048(0x1f1)],_0x542efc);});});}}
|
|
23
|
+
const _0x463110=_0x509f;(function(_0x1448a5,_0x23fff6){const _0x5f5340=_0x509f,_0x35c059=_0x1448a5();while(!![]){try{const _0x3dc6b9=parseInt(_0x5f5340(0x1c7))/0x1+-parseInt(_0x5f5340(0x1c9))/0x2+parseInt(_0x5f5340(0x1f7))/0x3*(-parseInt(_0x5f5340(0x1ff))/0x4)+-parseInt(_0x5f5340(0x1d8))/0x5*(parseInt(_0x5f5340(0x202))/0x6)+-parseInt(_0x5f5340(0x1f6))/0x7*(-parseInt(_0x5f5340(0x1ca))/0x8)+-parseInt(_0x5f5340(0x1f0))/0x9*(-parseInt(_0x5f5340(0x1fe))/0xa)+parseInt(_0x5f5340(0x1cb))/0xb;if(_0x3dc6b9===_0x23fff6)break;else _0x35c059['push'](_0x35c059['shift']());}catch(_0x3933e2){_0x35c059['push'](_0x35c059['shift']());}}}(_0x59c0,0xacc63));function _0x59c0(){const _0x486439=['config','querySelector','_initConfig','insertImage','isRegistered','70308frAGOE','upcast','for','listenTo','cleanupImage','_initConversion','8898113ivMsrE','2973lxgFxP','render','commands','destroy','once','add','pluginName','430BYMBVa','1916gDMrcL','getAttribute','getSelectedElement','1886088dmCnzX','view','true','init','execute','uc-upload-ctx-provider','data-uc-image-id','model','downcast','_initCtx','ctxElement','attributeToAttribute','PictureEditing','href','get','imageBlock','input[uploadcare-file-input]','uploadcareImageReplace','isPremiumPlugin','_ctxElement','isOfficialPlugin','appendChild','#uc-icon-arrow-down','imageInline','fromCharCode','\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','uploadcare.pubkey','867929VbCAAI','iconHrefResolver','2664992EizbJO','8qLcvQt','3896332OuTXqU','map','_configElement','uc-config','UploadcareEditing','uploader-','_initSchema','join','contentLanguage','locale','selection','editor','ucContextId','5ZSrjvE','elementToAttribute','schema','requires','uploadcare','afterInit','removeAttribute','uploadcare.uploader','editing','remove','body','closeMax','document','extend','configElement','uploadcareImageId','replaceImageSource','conversion','_initImageProcessingIndicator'];_0x59c0=function(){return _0x486439;};return _0x59c0();}import{Plugin as _0x25e487}from'ckeditor5/src/core.js';import{Dialog as _0x329112}from'ckeditor5/src/ui.js';import{createElement as _0x2afbb3,global as _0x293094,uid as _0x118dfc}from'ckeditor5/src/utils.js';function _0x509f(_0x5d8608,_0x475c09){const _0x59c0db=_0x59c0();return _0x509f=function(_0x509f04,_0x356676){_0x509f04=_0x509f04-0x1b7;let _0x1b0c09=_0x59c0db[_0x509f04];return _0x1b0c09;},_0x509f(_0x5d8608,_0x475c09);}import{UploadcareCommand as _0x2f638c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3cdbcb}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3dc89e}from'./utils/editingutils.js';export class UploadcareEditing extends _0x25e487{[_0x463110(0x1cd)]=null;[_0x463110(0x1bf)]=null;static get[_0x463110(0x1fd)](){const _0x568d83=_0x463110;return _0x568d83(0x1cf);}static get[_0x463110(0x1db)](){const _0x3cae16=_0x463110;return[_0x3cae16(0x1b8),_0x3cdbcb,_0x329112];}static get[_0x463110(0x1c0)](){return!0x0;}static get[_0x463110(0x1be)](){return!0x0;}[_0x463110(0x1d7)];get[_0x463110(0x1e6)](){const _0x5992fc=_0x463110;return this[_0x5992fc(0x1cd)];}get[_0x463110(0x20c)](){const _0x337043=_0x463110;return this[_0x337043(0x1bf)];}constructor(_0x4b6b78){const _0x4af65e=_0x463110;super(_0x4b6b78),this[_0x4af65e(0x1d7)]=_0x118dfc();}[_0x463110(0x205)](){const _0x3a5860=_0x463110,_0x196a6c=this[_0x3a5860(0x1d6)];_0x196a6c[_0x3a5860(0x1f9)][_0x3a5860(0x1fc)](_0x3a5860(0x1dc),new _0x2f638c(_0x196a6c));}[_0x463110(0x1dd)](){const _0x7b96ef=_0x463110;this[_0x7b96ef(0x1d1)](),this[_0x7b96ef(0x1f5)](),this[_0x7b96ef(0x1ed)](),this[_0x7b96ef(0x20b)](),this[_0x7b96ef(0x1ea)](),this[_0x7b96ef(0x1f3)](this[_0x7b96ef(0x1d6)],_0x7b96ef(0x1fa),()=>{const _0x3dfed6=_0x7b96ef;this[_0x3dfed6(0x1cd)]&&(this[_0x3dfed6(0x1cd)][_0x3dfed6(0x1e1)](),this[_0x3dfed6(0x1cd)]=null),this[_0x3dfed6(0x1bf)]&&(this[_0x3dfed6(0x1bf)][_0x3dfed6(0x1e1)](),this[_0x3dfed6(0x1bf)]=null);const _0x261ce7=_0x293094[_0x3dfed6(0x1e4)][_0x3dfed6(0x1ec)](_0x3dfed6(0x1bc));_0x261ce7&&_0x261ce7[_0x3dfed6(0x1e1)]();}),async function(_0x520e52){const _0x787795=_0x484315([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]),_0x1736d3=0x535f8c3a,_0x4d237d=0x5358f02a^_0x1736d3,_0x5d5ded=window[_0x484315([0x44,0x61,0x74,0x65])][_0x484315([0x6e,0x6f,0x77])](),_0x377246=_0x520e52[_0x484315([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20b597=new window[(_0x484315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c714d=>{_0x377246[_0x484315([0x6f,0x6e,0x63,0x65])](_0x484315([0x72,0x65,0x61,0x64,0x79]),_0x3c714d);}),_0xefe148={[_0x484315([0x6b,0x74,0x79])]:_0x484315([0x45,0x43]),[_0x484315([0x75,0x73,0x65])]:_0x484315([0x73,0x69,0x67]),[_0x484315([0x63,0x72,0x76])]:_0x484315([0x50,0x2d,0x32,0x35,0x36]),[_0x484315([0x78])]:_0x484315([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]),[_0x484315([0x79])]:_0x484315([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]),[_0x484315([0x61,0x6c,0x67])]:_0x484315([0x45,0x53,0x32,0x35,0x36])},_0x24c57e=_0x377246[_0x484315([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x484315([0x67,0x65,0x74])](_0x484315([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x162a08(){let _0x4795f6,_0x53892c=null,_0x1f4fdc=null;try{if(_0x24c57e==_0x484315([0x47,0x50,0x4c]))return _0x484315([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4795f6=_0x402d49(),!_0x4795f6)return _0x484315([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4795f6[_0x484315([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f4fdc=_0x1e8489(_0x4795f6[_0x484315([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4795f6[_0x484315([0x6a,0x74,0x69])])),await _0x320525()?_0x6422c4()?_0xff57ed()?_0x484315([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x186957()?(_0x4795f6[_0x484315([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x484315([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53892c=_0x58e1d4(_0x484315([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4795f6[_0x484315([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x484315([0x74,0x72,0x69,0x61,0x6c])&&(_0x53892c=_0x58e1d4(_0x484315([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b91b7()):_0x484315([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x484315([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x484315([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x484315([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xff57ed(){const _0x378acd=[_0x484315([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x484315([0x74,0x72,0x69,0x61,0x6c])][_0x484315([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4795f6[_0x484315([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d5ded/0x3e8:0xe10*_0x4d237d;return _0x4795f6[_0x484315([0x65,0x78,0x70])]<_0x378acd;}function _0x6422c4(){const _0x4e5ad8=_0x4795f6[_0x484315([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e5ad8&&(!!_0x4e5ad8[_0x484315([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x484315([0x2a]))||!!_0x4e5ad8[_0x484315([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x484315([0x55,0x50,0x4c,0x43])));}function _0x186957(){const _0x160138=_0x509f,_0x53c344=_0x4795f6[_0x484315([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53c344||0x0==_0x53c344[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a324f}=new URL(window[_0x484315([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x160138(0x1b9)]);if(_0x53c344[_0x484315([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a324f))return!0x0;const _0x6705c8=_0x2a324f[_0x484315([0x73,0x70,0x6c,0x69,0x74])](_0x484315([0x2e]));return _0x53c344[_0x484315([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19ef22=>_0x19ef22[_0x484315([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x484315([0x2a])))[_0x484315([0x6d,0x61,0x70])](_0x179978=>_0x179978[_0x484315([0x73,0x70,0x6c,0x69,0x74])](_0x484315([0x2e])))[_0x484315([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d04c9=>_0x1d04c9[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6705c8[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x484315([0x6d,0x61,0x70])](_0x34e9fe=>Array(_0x6705c8[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34e9fe[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x484315([0x66,0x69,0x6c,0x6c])](_0x34e9fe[0x0]===_0x484315([0x2a])?_0x484315([0x2a]):'')[_0x484315([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34e9fe))[_0x484315([0x73,0x6f,0x6d,0x65])](_0x35f85e=>_0x6705c8[_0x484315([0x65,0x76,0x65,0x72,0x79])]((_0xe93d52,_0x3d44fc)=>_0x35f85e[_0x3d44fc]===_0xe93d52||_0x35f85e[_0x3d44fc]===_0x484315([0x2a])));}function _0x4b91b7(){return _0x53892c&&_0x1f4fdc?new window[(_0x484315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57cbd7,_0x36785e)=>{_0x53892c[_0x484315([0x74,0x68,0x65,0x6e])](_0x57cbd7,_0x36785e),_0x1f4fdc[_0x484315([0x74,0x68,0x65,0x6e])](_0xe2c71d=>{_0xe2c71d!=_0x484315([0x56,0x61,0x6c,0x69,0x64])&&_0x57cbd7(_0xe2c71d);},_0x36785e);}):_0x53892c||_0x1f4fdc||_0x484315([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e8489(_0x128efb,_0x25dcf5){return new window[(_0x484315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf6bab4=>{if(_0x131ad1())return _0xf6bab4(_0x484315([0x56,0x61,0x6c,0x69,0x64]));_0x872cbd(),_0x377246[_0x484315([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x484315([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ab70c=!0x1;const _0xfdca7=_0x118dfc();function _0x452042(_0x2ef89b){return!!_0x2ef89b&&(typeof _0x2ef89b===_0x484315([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ef89b===_0x484315([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ef89b[_0x484315([0x74,0x68,0x65,0x6e])]===_0x484315([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ef89b[_0x484315([0x63,0x61,0x74,0x63,0x68])]===_0x484315([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48b299(_0x1cf12e){_0xd7f5e5(_0x1cf12e)[_0x484315([0x74,0x68,0x65,0x6e])](_0x2ae23f=>{if(!_0x2ae23f||_0x2ae23f[_0x484315([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x484315([0x6f,0x6b]))return _0x484315([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d3273(_0x41cf8e(_0xfdca7+_0x25dcf5))!=_0x2ae23f[_0x484315([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x484315([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x484315([0x56,0x61,0x6c,0x69,0x64]);})[_0x484315([0x74,0x68,0x65,0x6e])](_0x16a37c=>(_0x4de440(),_0x16a37c),()=>{const _0x2df244=_0x5b3d77();return null==_0x2df244?(_0x4de440(),_0x484315([0x56,0x61,0x6c,0x69,0x64])):_0x484315(_0x5d5ded-_0x2df244>(0x7753083a^_0x1736d3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x484315([0x74,0x68,0x65,0x6e])](_0xf6bab4)[_0x484315([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf6bab4(_0x484315([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26cda7=0x536962ba^_0x1736d3;function _0x4de440(){const _0x1a4c1c=_0x484315([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d3273(_0x41cf8e(_0x128efb)),_0x6dcb56=_0x45ab76(_0x1d3273(window[_0x484315([0x4d,0x61,0x74,0x68])][_0x484315([0x63,0x65,0x69,0x6c])](_0x5d5ded/_0x26cda7)));window[_0x484315([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x484315([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a4c1c,_0x6dcb56);}function _0x5b3d77(){const _0x29980a=_0x484315([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d3273(_0x41cf8e(_0x128efb)),_0x59442c=window[_0x484315([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x484315([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29980a);return _0x59442c?window[_0x484315([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45ab76(_0x59442c),0x10)*_0x26cda7:null;}function _0xd7f5e5(_0x362113){return new window[(_0x484315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x467528,_0x592630)=>{_0x362113[_0x484315([0x74,0x68,0x65,0x6e])](_0x467528,_0x592630),window[_0x484315([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x592630,0x535e58fa^_0x1736d3);});}}_0x377246[_0x484315([0x6f,0x6e])](_0x484315([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x111ed6,_0x30b0ad)=>{if(_0x30b0ad[0x0]!=_0x128efb)return _0xf6bab4(_0x484315([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30b0ad[0x1]={..._0x30b0ad[0x1],[_0x484315([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfdca7};},{[_0x484315([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x484315([0x68,0x69,0x67,0x68])}),_0x377246[_0x484315([0x6f,0x6e])](_0x484315([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1951d0=>{_0x452042(_0x1951d0[_0x484315([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ab70c=!0x0,_0x48b299(_0x1951d0[_0x484315([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x484315([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x484315([0x6c,0x6f,0x77])}),_0x20b597[_0x484315([0x74,0x68,0x65,0x6e])](()=>{_0x1ab70c||_0xf6bab4(_0x484315([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x131ad1(){return _0x377246[_0x484315([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x484315([0x76,0x69,0x65,0x77])][_0x484315([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x484315([0x61,0x75,0x74,0x6f]);}function _0x872cbd(){_0x377246[_0x484315([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x484315([0x76,0x69,0x65,0x77])][_0x484315([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x484315([0x61,0x75,0x74,0x6f]);}}function _0x58e1d4(_0x34937e){const _0x29b4b1=[new window[(_0x484315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3afe9=>setTimeout(_0xf3afe9,0x5356b2f6^_0x1736d3)),_0x20b597[_0x484315([0x74,0x68,0x65,0x6e])](()=>new window[(_0x484315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x515d9a=>{let _0x1afac9=0x0;_0x377246[_0x484315([0x6d,0x6f,0x64,0x65,0x6c])][_0x484315([0x6f,0x6e])](_0x484315([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b39ea,_0x413bb5)=>{_0x413bb5[0x0][_0x484315([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1afac9++,_0x1afac9==(0x535f8dc2^_0x1736d3)&&(_0x515d9a(),_0x5b39ea[_0x484315([0x6f,0x66,0x66])]());});}))];return window[_0x484315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x484315([0x72,0x61,0x63,0x65])](_0x29b4b1)[_0x484315([0x74,0x68,0x65,0x6e])](()=>_0x34937e);}async function _0x1b3c9a(){await _0x20b597,_0x377246[_0x484315([0x6d,0x6f,0x64,0x65,0x6c])][_0x484315([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x56e6c3,_0x377246[_0x484315([0x6d,0x6f,0x64,0x65,0x6c])][_0x484315([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x56e6c3,_0x377246[_0x484315([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x484315([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28c286(_0x2e5457){const _0x5c9bdc=_0xdb7c82();_0x377246[_0x5c9bdc]=_0x484315([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e5457,_0x2e5457!=_0x484315([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3c9a();}function _0xdb7c82(){const _0x20bb20=window[_0x484315([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x484315([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x484315([0x6e,0x6f,0x77])]())[_0x484315([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x484315([0x2e]),'');let _0x3bdfbf=_0x484315([0x68]);for(let _0x5e352c=0x0;_0x5e352c<_0x20bb20[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e352c+=0x2){let _0xa09022=window[_0x484315([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20bb20[_0x484315([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e352c,_0x5e352c+0x2));_0xa09022>=_0x787795[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa09022-=_0x787795[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bdfbf+=_0x787795[_0xa09022];}return _0x3bdfbf;}function _0x402d49(){const _0x14ef46=_0x24c57e[_0x484315([0x73,0x70,0x6c,0x69,0x74])](_0x484315([0x2e]));if(0x3!=_0x14ef46[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x30ec0d(_0x14ef46[0x1]);function _0x30ec0d(_0x1c0bb7){const _0x323268=_0x4319be(_0x1c0bb7);return _0x323268&&_0x61eaf0()?_0x323268:null;function _0x61eaf0(){const _0x457982=_0x323268[_0x484315([0x6a,0x74,0x69])],_0x3f6256=window[_0x484315([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x457982[_0x484315([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x457982[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51a7d0={..._0x323268,[_0x484315([0x6a,0x74,0x69])]:_0x457982[_0x484315([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x457982[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51a7d0[_0x484315([0x76,0x63])],_0x41cf8e(_0x51a7d0)==_0x3f6256;}}}async function _0x320525(){let _0x15292b=!0x0;try{const _0x55441b=_0x24c57e[_0x484315([0x73,0x70,0x6c,0x69,0x74])](_0x484315([0x2e])),[_0x35bd50,_0x5ba2b6,_0x1b93e7]=_0x55441b;return _0x2c1bd7(_0x35bd50),await _0x395b88(_0x35bd50,_0x5ba2b6,_0x1b93e7),_0x15292b;}catch{return!0x1;}function _0x2c1bd7(_0x3366d6){const _0x26d6de=_0x4319be(_0x3366d6);_0x26d6de&&_0x26d6de[_0x484315([0x61,0x6c,0x67])]==_0x484315([0x45,0x53,0x32,0x35,0x36])||(_0x15292b=!0x1);}async function _0x395b88(_0x3b312a,_0x34efc3,_0x558978){const _0x162455=window[_0x484315([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x484315([0x66,0x72,0x6f,0x6d])](_0x40354e(_0x558978),_0x4c01ae=>_0x4c01ae[_0x484315([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c8a4f=new window[(_0x484315([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x484315([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b312a+_0x484315([0x2e])+_0x34efc3),_0x198517=window[_0x484315([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x484315([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x198517)return;const _0x53161a=await _0x198517[_0x484315([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x484315([0x6a,0x77,0x6b]),_0xefe148,{[_0x484315([0x6e,0x61,0x6d,0x65])]:_0x484315([0x45,0x43,0x44,0x53,0x41]),[_0x484315([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x484315([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x484315([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x198517[_0x484315([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x484315([0x6e,0x61,0x6d,0x65])]:_0x484315([0x45,0x43,0x44,0x53,0x41]),[_0x484315([0x68,0x61,0x73,0x68])]:{[_0x484315([0x6e,0x61,0x6d,0x65])]:_0x484315([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53161a,_0x162455,_0x5c8a4f)||(_0x15292b=!0x1);}}function _0x4319be(_0xebca2d){return _0xebca2d[_0x484315([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x484315([0x65,0x79]))?JSON[_0x484315([0x70,0x61,0x72,0x73,0x65])](_0x40354e(_0xebca2d)):null;}function _0x40354e(_0x458b27){return window[_0x484315([0x61,0x74,0x6f,0x62])](_0x458b27[_0x484315([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x484315([0x2b]))[_0x484315([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x484315([0x2f])));}function _0x41cf8e(_0x6de913){let _0x3ef398=0x1505;function _0x3a8dc1(_0x52f8ce){for(let _0x6c2864=0x0;_0x6c2864<_0x52f8ce[_0x484315([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6c2864++){const _0x197fcf=_0x52f8ce[_0x484315([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6c2864);_0x3ef398=(_0x3ef398<<0x5)+_0x3ef398+_0x197fcf,_0x3ef398&=_0x3ef398;}}function _0x292b45(_0x3be88b){Array[_0x484315([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3be88b)?_0x3be88b[_0x484315([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x292b45):_0x3be88b&&typeof _0x3be88b==_0x484315([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x484315([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3be88b)[_0x484315([0x73,0x6f,0x72,0x74])]()[_0x484315([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x375565,_0x4db9f2])=>{_0x3a8dc1(_0x375565),_0x292b45(_0x4db9f2);}):_0x3a8dc1(window[_0x484315([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3be88b));}return _0x292b45(_0x6de913),_0x3ef398>>>0x0;}function _0x1d3273(_0x205011){return _0x205011[_0x484315([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x484315([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x484315([0x30]));}function _0x45ab76(_0x5c2e77){return _0x5c2e77[_0x484315([0x73,0x70,0x6c,0x69,0x74])]('')[_0x484315([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x484315([0x6a,0x6f,0x69,0x6e])]('');}function _0x56e6c3(){}function _0x484315(_0x4128b6){const _0xfa10be=_0x509f;return _0x4128b6[_0xfa10be(0x1cc)](_0x12e93b=>String[_0xfa10be(0x1c4)](_0x12e93b))[_0xfa10be(0x1d2)]('');}_0x28c286(await _0x162a08());}(this);}[_0x463110(0x1d1)](){const _0x1750d9=_0x463110,_0x1223a1=this[_0x1750d9(0x1d6)][_0x1750d9(0x209)][_0x1750d9(0x1da)];_0x1223a1[_0x1750d9(0x1ef)](_0x1750d9(0x1bb))&&_0x1223a1[_0x1750d9(0x1e5)](_0x1750d9(0x1bb),{'allowAttributes':[_0x1750d9(0x1e7)]}),_0x1223a1[_0x1750d9(0x1ef)](_0x1750d9(0x1c3))&&_0x1223a1[_0x1750d9(0x1e5)](_0x1750d9(0x1c3),{'allowAttributes':[_0x1750d9(0x1e7)]});}[_0x463110(0x1f5)](){const _0x2b0e49=_0x463110,_0x9dc9e0=this[_0x2b0e49(0x1d6)];_0x9dc9e0[_0x2b0e49(0x1e9)][_0x2b0e49(0x1f2)](_0x2b0e49(0x20a))[_0x2b0e49(0x1b7)]({'model':_0x2b0e49(0x1e7),'view':_0x2b0e49(0x208)}),_0x9dc9e0[_0x2b0e49(0x1e9)][_0x2b0e49(0x1f2)](_0x2b0e49(0x1f1))[_0x2b0e49(0x1d9)]({'model':{'key':_0x2b0e49(0x1e7),'value':_0x2189ca=>_0x2189ca[_0x2b0e49(0x200)](_0x2b0e49(0x208))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5e965f=_0x9dc9e0[_0x2b0e49(0x1f9)][_0x2b0e49(0x1ba)](_0x2b0e49(0x1e8));_0x5e965f&&this[_0x2b0e49(0x1f3)](_0x5e965f,_0x2b0e49(0x1f4),(_0x2318a1,[_0x5a872c,_0x5d49e1])=>{const _0x35bbd4=_0x2b0e49;_0x5a872c[_0x35bbd4(0x1de)](_0x35bbd4(0x1e7),_0x5d49e1);});}[_0x463110(0x1ed)](){const _0x1a85a0=_0x463110,_0x42456a=this[_0x1a85a0(0x1d6)][_0x1a85a0(0x1eb)][_0x1a85a0(0x1ba)](_0x1a85a0(0x1df))||{},_0x520f6e=this[_0x1a85a0(0x1d6)][_0x1a85a0(0x1eb)][_0x1a85a0(0x1ba)](_0x1a85a0(0x1c6))||'';this[_0x1a85a0(0x1cd)]=_0x2afbb3(_0x293094[_0x1a85a0(0x1e4)],_0x1a85a0(0x1ce),{..._0x42456a,'pubkey':_0x520f6e,'ctx-name':_0x1a85a0(0x1d0)+this[_0x1a85a0(0x1d7)],'sourceList':'','imgOnly':_0x1a85a0(0x204),'removeCopyright':_0x1a85a0(0x204),'localeName':this[_0x1a85a0(0x1d6)][_0x1a85a0(0x1d4)][_0x1a85a0(0x1d3)],'externalSourcesEmbedCss':_0x1a85a0(0x1c5)}),this[_0x1a85a0(0x1cd)][_0x1a85a0(0x1c8)]=_0x5b4c9b=>{const _0x40e9fd=_0x1a85a0;if(_0x40e9fd(0x1e3)==_0x5b4c9b)return _0x40e9fd(0x1c2);},_0x293094[_0x1a85a0(0x1e4)][_0x1a85a0(0x1e2)][_0x1a85a0(0x1c1)](this[_0x1a85a0(0x1cd)]);}[_0x463110(0x20b)](){const _0x15de8c=_0x463110;this[_0x15de8c(0x1bf)]=_0x2afbb3(_0x293094[_0x15de8c(0x1e4)],_0x15de8c(0x207),{'ctx-name':_0x15de8c(0x1d0)+this[_0x15de8c(0x1d7)]}),_0x293094[_0x15de8c(0x1e4)][_0x15de8c(0x1e2)][_0x15de8c(0x1c1)](this[_0x15de8c(0x1bf)]);}[_0x463110(0x1ea)](){const _0x935b0=_0x463110,_0x3a28f1=this[_0x935b0(0x1d6)][_0x935b0(0x1f9)][_0x935b0(0x1ba)](_0x935b0(0x1ee));_0x3a28f1&&this[_0x935b0(0x1f3)](_0x3a28f1,_0x935b0(0x206),()=>{const _0x1384d1=_0x935b0,_0x1d803a=this[_0x1384d1(0x1d6)][_0x1384d1(0x209)][_0x1384d1(0x1e4)][_0x1384d1(0x1d5)][_0x1384d1(0x201)]();_0x1d803a&&_0x1d803a[_0x1384d1(0x200)](_0x1384d1(0x1e7))&&this[_0x1384d1(0x1d6)][_0x1384d1(0x1e0)][_0x1384d1(0x203)][_0x1384d1(0x1fb)](_0x1384d1(0x1f8),()=>{const _0x3dd70e=_0x1384d1;_0x3dc89e(this[_0x3dd70e(0x1d6)],_0x1d803a);});});const _0x50e63d=this[_0x935b0(0x1d6)][_0x935b0(0x1f9)][_0x935b0(0x1ba)](_0x935b0(0x1bd));_0x50e63d&&this[_0x935b0(0x1f3)](_0x50e63d,_0x935b0(0x206),()=>{const _0xe5d102=_0x935b0,_0x333b68=this[_0xe5d102(0x1d6)][_0xe5d102(0x209)][_0xe5d102(0x1e4)][_0xe5d102(0x1d5)][_0xe5d102(0x201)]();_0x333b68&&_0x333b68[_0xe5d102(0x200)](_0xe5d102(0x1e7))&&this[_0xe5d102(0x1d6)][_0xe5d102(0x1e0)][_0xe5d102(0x203)][_0xe5d102(0x1fb)](_0xe5d102(0x1f8),()=>{const _0x1ef85e=_0xe5d102;_0x3dc89e(this[_0x1ef85e(0x1d6)],_0x333b68);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x32fb25,ObservableMixin as _0x371be6}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x207331}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1e0371}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3a92a4}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x45c851}from'../../utils/uploadutils.js';import{getImageUrls as _0x3d2e6c,getImageDimension as _0x1e2e90}from'../../utils/editingutils.js';import{isAncestor as _0x2c3155}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x371be6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14f095,_0x1b4a46,_0x49c67a){super(),this['_editor']=_0x14f095,this['_dialog']=_0x1b4a46,this['_imageElement']=_0x49c67a,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 _0x3cbbb5=this['_imageElement'],_0x3ced77=_0x3cbbb5['getAttribute']('uploadcareImageId'),_0x226f9a=_0x3cbbb5['getAttribute']('src');if(_0x3ced77)await this['_loadImageInfo'](_0x3ced77,_0x226f9a);else{if(this['_imageCache']['has'](_0x226f9a)){const _0x558291=this['_imageCache']['get'](_0x226f9a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x558291['url'],this['imageDimension']=_0x558291['dimension'],this['imageId']=_0x558291['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x7ba791}=this['_editor'],t=_0x7ba791['t'],_0x39fef1=new _0x3a92a4(_0x7ba791,this['imageStatus'],this['_attributes']);_0x39fef1['bind']('status')['to'](this,'imageStatus'),_0x39fef1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x39fef1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x39fef1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x39fef1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e0371,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x39fef1,'position':_0x207331['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x39fef1['focus']();},'onHide':()=>{_0x39fef1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e40b9=>!_0x2c3155(_0x5e40b9,_0x39fef1['element'])}});}['_loadImageInfo'](_0x4dc9fb,_0x29ba6b){return _0x45c851['getInfo'](_0x4dc9fb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5da90e=>{const {width:_0x5cce6b,height:_0x333959}=_0x5da90e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29ba6b,this['imageDimension']={'width':_0x5cce6b,'height':_0x333959},this['imageId']=_0x4dc9fb;})['catch'](_0x119bf5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x119bf5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a0cb5,_0x153df0){return this['_getImageAsFile'](_0x4a0cb5)['then'](_0x34bfdc=>_0x45c851['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':_0x153df0['signal'],'file':_0x34bfdc,'onProgress':_0x2050f2=>{_0x2050f2&&_0x2050f2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2050f2['value']));}}))['then'](_0x389535=>{const {width:_0x41c332,height:_0x189c10}=_0x389535['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x389535['cdnUrl'],this['imageDimension']={'width':_0x41c332,'height':_0x189c10},this['imageId']=_0x389535['uuid'],this['imageUploadProgress']=null;const _0x4dd7ea=_0x4a0cb5['getAttribute']('src');this['_imageCache']['set'](_0x4dd7ea,{'id':_0x389535['uuid'],'url':_0x389535['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x86f381=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x86f381['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x573bf1,_0x2db354){_0x573bf1['on']('apply',(_0x324138,_0xb81915)=>{this['_replaceImage'](_0x2db354,_0xb81915['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x573bf1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x573bf1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ef9f7,_0x5f5b27,_0xe50524){const _0x4a4433=this['_editor'],{width:_0x1ad33d,height:_0x4b0888}=_0x1e2e90(_0x5f5b27,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x14c248,imageSources:_0x5cc4a7}=_0x3d2e6c(_0x5f5b27,_0x1ad33d);_0x4a4433['model']['change'](_0x5bc7b9=>{if('$graveyard'===_0x4ef9f7['root']['rootName']){_0x4a4433['execute']('insertImage',{'imageType':_0x4ef9f7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ef9f7['getAttributes']()),'uploadcareImageId':_0xe50524,'src':_0x14c248,'sources':_0x5cc4a7,'width':_0x1ad33d,'height':_0x4b0888}});const _0x276ed2=_0x4ef9f7['getChildren']();_0x4ef9f7=_0x4a4433['model']['document']['selection']['getSelectedElement']();for(const _0x37e5e8 of _0x276ed2)_0x5bc7b9['append'](_0x5bc7b9['cloneElement'](_0x37e5e8),_0x4ef9f7);}else _0x5bc7b9['setSelection'](_0x4ef9f7,'on'),_0x4a4433['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ef9f7['getAttributes']()),'uploadcareImageId':_0xe50524,'src':_0x14c248,'sources':_0x5cc4a7,'width':_0x1ad33d,'height':_0x4b0888},_0x4ef9f7);_0x5bc7b9['setSelection'](_0x4ef9f7,'on');});}async['_getImageAsFile'](_0x1912b3){const _0x5ac4d7=_0x32fb25['window'],_0x198536=_0x32fb25['document']['location']['href'],_0x5c3b91=new _0x5ac4d7['URL'](_0x1912b3['getAttribute']('src'),_0x198536);if('data:'===_0x5c3b91['protocol']){const _0x577df5=_0x5c3b91['href']['split'](','),_0x2fe67a=_0x577df5[0x0]['match'](/:(.*?);/)[0x1],_0xa8bd1c=_0x2fe67a['split']('/')[0x1],_0x192320=_0x5ac4d7['atob'](_0x577df5[_0x577df5['length']-0x1]);let _0x5ad73d=_0x192320['length'];const _0x367011=new _0x5ac4d7['Uint8Array'](_0x5ad73d);for(;_0x5ad73d--;)_0x367011[_0x5ad73d]=_0x192320['charCodeAt'](_0x5ad73d);return new _0x5ac4d7['File']([_0x367011],'image.'+_0xa8bd1c,{'type':_0x2fe67a});}const _0x4f9644=_0x5c3b91['href']['split']('/'),_0x46d442=_0x4f9644[_0x4f9644['length']-0x1],_0x4b3e35=_0x46d442['split']('.')[0x1];return _0x5ac4d7['fetch'](_0x5c3b91['href'])['then'](_0x2dc642=>_0x2dc642['clone']()['blob']())['then'](_0x19681e=>new _0x5ac4d7['File']([_0x19681e],_0x46d442,{'type':'image/'+_0x4b3e35}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4bed(){const _0x298837=['uc-light','8083350zxOjRl','3323386hzGodH','image-edit','1260262vChyqX','8vDLtCr','ck-uploadcare-theme','imageSrc','1132611QLCEbv','setTemplate','585784PEcNYi','uc-cloud-image-editor','bindTemplate','set','4299148PDEJLE','965100DPkvON'];_0x4bed=function(){return _0x298837;};return _0x4bed();}(function(_0xc376be,_0x56cb6c){const _0x940984=_0x5603,_0x483ca6=_0xc376be();while(!![]){try{const _0x582a07=parseInt(_0x940984(0xf6))/0x1+-parseInt(_0x940984(0xf4))/0x2+-parseInt(_0x940984(0xfa))/0x3*(-parseInt(_0x940984(0xf7))/0x4)+-parseInt(_0x940984(0xf1))/0x5+parseInt(_0x940984(0xf3))/0x6+-parseInt(_0x940984(0xf0))/0x7+parseInt(_0x940984(0xec))/0x8;if(_0x582a07===_0x56cb6c)break;else _0x483ca6['push'](_0x483ca6['shift']());}catch(_0x12c2dd){_0x483ca6['push'](_0x483ca6['shift']());}}}(_0x4bed,0xec0fb));function _0x5603(_0x4748ea,_0x3b4363){const _0x4bed19=_0x4bed();return _0x5603=function(_0x5603aa,_0x829ff6){_0x5603aa=_0x5603aa-0xeb;let _0x446cfd=_0x4bed19[_0x5603aa];return _0x446cfd;},_0x5603(_0x4748ea,_0x3b4363);}import{View as _0x5b6d8c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5b6d8c{constructor(_0x21750a,_0x52eea1){const _0x118090=_0x5603;super(_0x21750a);const _0x4f60a5=this[_0x118090(0xee)];this[_0x118090(0xef)](_0x118090(0xf9),''),this[_0x118090(0xeb)]({'tag':_0x118090(0xed),'attributes':{..._0x52eea1,'class':[_0x118090(0xf2),_0x118090(0xf8)],'ctx-name':_0x118090(0xf5),'cdn-url':_0x4f60a5['to'](_0x118090(0xf9))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x335774}from'ckeditor5/src/icons.js';import{ButtonView as _0x8b7b86,IconView as _0x4ffb50,View as _0x42b7c0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x42b7c0{constructor(_0x2cb157){super(_0x2cb157);const t=_0x2cb157['t'];this['set']('errorType',null);const _0xc7b4a4=new _0x8b7b86(_0x2cb157);_0xc7b4a4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc7b4a4['withText']=!0x0,_0xc7b4a4['class']='ck-button-action',_0xc7b4a4['on']('execute',()=>{this['fire']('retry');}),_0xc7b4a4['bind']('isVisible')['to'](this,'errorType',_0x3842e1=>'NotFound'!==_0x3842e1);const _0x373fdc=new _0x4ffb50();_0x373fdc['content']=_0x335774,_0x373fdc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56d34a=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':[_0x373fdc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56d34a['to']('errorType',_0x5e5994=>t('NotFound'!==_0x5e5994?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc7b4a4]},{'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 _0x4be45e,View as _0x3041c9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3041c9{constructor(_0x53aed8){super(_0x53aed8);const t=_0x53aed8['t'],_0x37fd5d=this['bindTemplate'],_0x19ce0a=new _0x4be45e();_0x19ce0a['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':[_0x19ce0a,{'text':_0x37fd5d['to']('imageUploadProgress',_0x2010b5=>t('Loading\x20image...')+'\x20('+(_0x2010b5||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f4a0e=_0x43a9;(function(_0x16b0c2,_0x560bab){const _0x31fdd8=_0x43a9,_0x1d40e2=_0x16b0c2();while(!![]){try{const _0x16d46b=parseInt(_0x31fdd8(0x88))/0x1*(parseInt(_0x31fdd8(0x93))/0x2)+-parseInt(_0x31fdd8(0xb0))/0x3+-parseInt(_0x31fdd8(0x87))/0x4*(parseInt(_0x31fdd8(0xae))/0x5)+parseInt(_0x31fdd8(0xbb))/0x6+parseInt(_0x31fdd8(0x96))/0x7*(parseInt(_0x31fdd8(0x8f))/0x8)+-parseInt(_0x31fdd8(0xb4))/0x9+parseInt(_0x31fdd8(0xb2))/0xa;if(_0x16d46b===_0x560bab)break;else _0x1d40e2['push'](_0x1d40e2['shift']());}catch(_0xf22a4a){_0x1d40e2['push'](_0x1d40e2['shift']());}}}(_0x1fee,0xa0ccd));function _0x1fee(){const _0x580a94=['add','addEventListener','status','ready','30aiTHfT','_errorView','3000432tfRaCh','observe','10894860EIyUvt','change:status','7546545TeosRD','_focusableView','filter','render','once','uploading','fire','74304IlhgFE','cdnUrl','_addUploadcareImageEditorListeners','474288YsBJfO','21339ytWaoc','_setView','set','nodeName','element','focus','addedNodes','1823728SPtgLK','_loadingView','uc-cloud-image-editor','getFocusableElement','112vhmolh','toLowerCase','_items','28MdUoLd','length','target','cancel','ck-reset_all-excluded','_waitForImageEditorComponent','retry','apply','div','addMany','querySelector','detail','ck-uploadcare-form','setTemplate','disconnect','clear','createCollection','_editingView','error','_addErrorViewListeners'];_0x1fee=function(){return _0x580a94;};return _0x1fee();}import{View as _0x5f0a78}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5490e7}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4180e4}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3a1d76}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3d5258}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x43a9(_0x262db8,_0x5f1791){const _0x1feef6=_0x1fee();return _0x43a9=function(_0x43a921,_0x436489){_0x43a921=_0x43a921-0x86;let _0x5a94d8=_0x1feef6[_0x43a921];return _0x5a94d8;},_0x43a9(_0x262db8,_0x5f1791);}export class UploadcareImageEditFormView extends _0x3d5258{[_0x2f4a0e(0x95)];[_0x2f4a0e(0x90)];[_0x2f4a0e(0xaf)];[_0x2f4a0e(0xa7)];[_0x2f4a0e(0xb5)];constructor(_0x11f355,_0x11f326,_0x5ad52f){const _0x410cb5=_0x2f4a0e;super(_0x11f355),this[_0x410cb5(0x95)]=this[_0x410cb5(0xa6)](),this[_0x410cb5(0x90)]=new _0x5490e7(_0x11f355),this[_0x410cb5(0xaf)]=new _0x4180e4(_0x11f355),this[_0x410cb5(0xa7)]=new _0x3a1d76(_0x11f355,_0x5ad52f),this[_0x410cb5(0xb5)]=new _0x5f0a78(_0x11f355),this[_0x410cb5(0xb5)][_0x410cb5(0xa3)](this[_0x410cb5(0x92)]()),this[_0x410cb5(0x8a)](_0x410cb5(0xac),_0x11f326),this[_0x410cb5(0xa3)]({'tag':_0x410cb5(0x9e),'attributes':{'class':['ck',_0x410cb5(0x9a),_0x410cb5(0xa2)],'tabindex':'-1'},'children':this[_0x410cb5(0x95)]}),this[_0x410cb5(0x89)](),this[_0x410cb5(0xb8)](_0x410cb5(0xb7),()=>{const _0x3ae300=_0x410cb5;this[_0x3ae300(0x9b)](this[_0x3ae300(0x8c)],_0x5a10d5=>{const _0x21492d=_0x3ae300;this[_0x21492d(0x86)](_0x5a10d5);});}),this['on'](_0x410cb5(0xb3),()=>{const _0x5bef14=_0x410cb5;this[_0x5bef14(0x89)]();}),this[_0x410cb5(0xa9)]();}[_0x2f4a0e(0x8d)](){const _0x5b5e25=_0x2f4a0e;this[_0x5b5e25(0x8c)][_0x5b5e25(0x8d)]();}[_0x2f4a0e(0x89)](){const _0x40bdee=_0x2f4a0e;switch(this[_0x40bdee(0x95)][_0x40bdee(0xa5)](),this[_0x40bdee(0xac)]){case _0x40bdee(0xb9):this[_0x40bdee(0x95)][_0x40bdee(0xaa)](this[_0x40bdee(0x90)]);break;case _0x40bdee(0xa8):this[_0x40bdee(0x95)][_0x40bdee(0xaa)](this[_0x40bdee(0xaf)]);break;case _0x40bdee(0xad):this[_0x40bdee(0x95)][_0x40bdee(0x9f)]([this[_0x40bdee(0xa7)],this[_0x40bdee(0xb5)]]);}}[_0x2f4a0e(0x9b)](_0x4b5095,_0x357b25){const _0x5d84cf=_0x2f4a0e,_0x53bb81=_0x5d84cf(0x91),_0x224631=_0x4b5095[_0x5d84cf(0xa0)](_0x53bb81);if(_0x224631)return _0x357b25(_0x224631);const _0x5515a7=new MutationObserver(_0x5babe4=>{const _0x125eb2=_0x5d84cf,_0x290c3a=_0x5babe4[_0x125eb2(0xb6)](_0x4ac3f1=>_0x4ac3f1[_0x125eb2(0x98)]===_0x4b5095&&_0x4ac3f1[_0x125eb2(0x8e)][_0x125eb2(0x97)]>0x0&&_0x4ac3f1[_0x125eb2(0x8e)][0x0][_0x125eb2(0x8b)][_0x125eb2(0x94)]()===_0x53bb81);_0x290c3a[_0x125eb2(0x97)]&&(_0x5515a7[_0x125eb2(0xa4)](),_0x357b25(_0x290c3a[0x0][_0x125eb2(0x8e)][0x0]));});_0x5515a7[_0x5d84cf(0xb1)](_0x4b5095,{'childList':!0x0,'subtree':!0x0});}[_0x2f4a0e(0x86)](_0x161800){const _0x21710b=_0x2f4a0e;_0x161800[_0x21710b(0xab)](_0x21710b(0x9d),_0x347922=>{const _0x127274=_0x21710b;this[_0x127274(0xba)](_0x127274(0x9d),{'imageSrc':_0x347922[_0x127274(0xa1)][_0x127274(0xbc)]});}),_0x161800[_0x21710b(0xab)](_0x21710b(0x99),()=>{const _0x22b30c=_0x21710b;this[_0x22b30c(0xba)](_0x22b30c(0x99));});}[_0x2f4a0e(0xa9)](){const _0x1a5ef7=_0x2f4a0e;this[_0x1a5ef7(0xaf)]['on'](_0x1a5ef7(0x9c),()=>{const _0x2a57e5=_0x1a5ef7;this[_0x2a57e5(0xba)](_0x2a57e5(0x9c));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbc3bd3=_0x3d96;(function(_0x3b22d3,_0x2b76b8){const _0x582641=_0x3d96,_0x24b526=_0x3b22d3();while(!![]){try{const _0x112114=parseInt(_0x582641(0x16f))/0x1+parseInt(_0x582641(0x16a))/0x2*(-parseInt(_0x582641(0x174))/0x3)+parseInt(_0x582641(0x171))/0x4*(-parseInt(_0x582641(0x172))/0x5)+-parseInt(_0x582641(0x169))/0x6*(parseInt(_0x582641(0x162))/0x7)+parseInt(_0x582641(0x176))/0x8*(-parseInt(_0x582641(0x160))/0x9)+-parseInt(_0x582641(0x15e))/0xa*(parseInt(_0x582641(0x17e))/0xb)+parseInt(_0x582641(0x170))/0xc;if(_0x112114===_0x2b76b8)break;else _0x24b526['push'](_0x24b526['shift']());}catch(_0x18ce20){_0x24b526['push'](_0x24b526['shift']());}}}(_0x4ac4,0x50c1c));import{Command as _0x2038ff}from'ckeditor5/src/core.js';import{Dialog as _0x473329}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x269562}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x99145e}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2038ff{[_0xbc3bd3(0x168)];static get[_0xbc3bd3(0x17d)](){return[_0x473329];}[_0xbc3bd3(0x16c)];constructor(_0x216e49){const _0xbdf00b=_0xbc3bd3;super(_0x216e49),this[_0xbdf00b(0x168)]=void 0x0,this[_0xbdf00b(0x16c)]=_0x99145e(_0x216e49[_0xbdf00b(0x17b)][_0xbdf00b(0x164)](_0xbdf00b(0x166))||[]),this[_0xbdf00b(0x163)]({'isActive':!0x1});}[_0xbc3bd3(0x178)](){const _0x3e932f=_0xbc3bd3,_0x5c7263=this[_0x3e932f(0x17a)][_0x3e932f(0x16d)][_0x3e932f(0x173)][_0x3e932f(0x175)][_0x3e932f(0x167)]();this[_0x3e932f(0x177)]=this[_0x3e932f(0x16c)](_0x5c7263);}[_0xbc3bd3(0x17f)](){const _0x3d142=_0xbc3bd3;this[_0x3d142(0x168)]&&(this[_0x3d142(0x161)](_0x3d142(0x16b)),this[_0x3d142(0x168)]=void 0x0);const _0x51913a=this[_0x3d142(0x17a)][_0x3d142(0x16d)][_0x3d142(0x173)][_0x3d142(0x175)][_0x3d142(0x167)]();_0x51913a&&(_0x51913a['is'](_0x3d142(0x16e),_0x3d142(0x15f))||_0x51913a['is'](_0x3d142(0x16e),_0x3d142(0x165)))&&(this[_0x3d142(0x168)]=new _0x269562(this[_0x3d142(0x17a)],this[_0x3d142(0x17a)][_0x3d142(0x17c)][_0x3d142(0x164)](_0x473329),_0x51913a),this[_0x3d142(0x179)](_0x3d142(0x16b))['to'](this[_0x3d142(0x168)],_0x3d142(0x16b)));}}function _0x3d96(_0x1062b5,_0x48d254){const _0x4ac490=_0x4ac4();return _0x3d96=function(_0x3d96bc,_0x1dd294){_0x3d96bc=_0x3d96bc-0x15e;let _0x3a9b68=_0x4ac490[_0x3d96bc];return _0x3a9b68;},_0x3d96(_0x1062b5,_0x48d254);}function _0x4ac4(){const _0xace8d9=['refresh','bind','editor','config','plugins','requires','957qdlIdI','execute','46580vPADvL','imageBlock','1824318ZkfFtk','unbind','7dwiMiL','set','get','imageInline','uploadcare.allowExternalImagesEditing','getSelectedElement','imageEditController','1744602eNJFcq','407254MdiaNQ','isActive','_isEditable','model','element','423099AyJfRi','19586136BzrHoe','4kerOUj','1074505nUzsFu','document','9dXRSeh','selection','8icEXxg','isEnabled'];_0x4ac4=function(){return _0xace8d9;};return _0x4ac4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2244de=_0x345b;(function(_0x9ebd5c,_0x1a1d4a){const _0x54f223=_0x345b,_0x374d06=_0x9ebd5c();while(!![]){try{const _0x4d8522=parseInt(_0x54f223(0xd6))/0x1*(parseInt(_0x54f223(0xd0))/0x2)+parseInt(_0x54f223(0xcd))/0x3*(parseInt(_0x54f223(0xd2))/0x4)+parseInt(_0x54f223(0xc4))/0x5*(-parseInt(_0x54f223(0xcb))/0x6)+parseInt(_0x54f223(0xd5))/0x7*(-parseInt(_0x54f223(0xce))/0x8)+parseInt(_0x54f223(0xcf))/0x9+-parseInt(_0x54f223(0xc6))/0xa*(-parseInt(_0x54f223(0xc2))/0xb)+-parseInt(_0x54f223(0xc1))/0xc*(parseInt(_0x54f223(0xc7))/0xd);if(_0x4d8522===_0x1a1d4a)break;else _0x374d06['push'](_0x374d06['shift']());}catch(_0x247572){_0x374d06['push'](_0x374d06['shift']());}}}(_0x166c,0x7adb9));import{Plugin as _0x3a955d}from'ckeditor5/src/core.js';import{Notification as _0x3640b3}from'ckeditor5/src/ui.js';function _0x345b(_0x3d05f3,_0xbeb961){const _0x166cf4=_0x166c();return _0x345b=function(_0x345b7e,_0x55c934){_0x345b7e=_0x345b7e-0xc1;let _0x1141aa=_0x166cf4[_0x345b7e];return _0x1141aa;},_0x345b(_0x3d05f3,_0xbeb961);}import{UploadcareImageEditCommand as _0xb11f72}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2f209d}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5242cc}from'../uploadcareediting.js';function _0x166c(){const _0x2bb88f=['728895PXDDsb','add','420170ankSsU','91EJOVFt','ImageEditing','pluginName','uploadcareImageReplace','12qiqQrZ','init','354174mIOjFU','368LufFoH','1815786LdvoCq','12202MZsUsJ','ImageUtils','24bsmWoo','UploadcareImageEditEditing','requires','111811VyremA','134DCvBWA','isOfficialPlugin','commands','uploadcareImageEdit','627708Wodbhn','44pYakjW','isPremiumPlugin'];_0x166c=function(){return _0x2bb88f;};return _0x166c();}export class UploadcareImageEditEditing extends _0x3a955d{static get[_0x2244de(0xc9)](){const _0x24f155=_0x2244de;return _0x24f155(0xd3);}static get[_0x2244de(0xd4)](){const _0x384bb3=_0x2244de;return[_0x5242cc,_0x3640b3,_0x384bb3(0xd1),_0x384bb3(0xc8)];}static get[_0x2244de(0xd7)](){return!0x0;}static get[_0x2244de(0xc3)](){return!0x0;}[_0x2244de(0xcc)](){const _0x29572a=_0x2244de,{editor:_0x4f2c13}=this;_0x4f2c13[_0x29572a(0xd8)][_0x29572a(0xc5)](_0x29572a(0xd9),new _0xb11f72(_0x4f2c13)),_0x4f2c13[_0x29572a(0xd8)][_0x29572a(0xc5)](_0x29572a(0xca),new _0x2f209d(_0x4f2c13));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x236928}from'ckeditor5/src/core.js';import{ButtonView as _0xdbe52c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x330b5b}from'ckeditor5/src/icons.js';import{createElement as _0x1ced73}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 _0x236928{['_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 _0x41d4ac=this['editor'];_0x41d4ac['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3f15a8=>{const _0x518ba0=_0x41d4ac['commands']['get']('uploadcareImageEdit'),_0x47ad72=new _0xdbe52c(_0x3f15a8),t=_0x3f15a8['t'];return _0x47ad72['set']({'icon':_0x330b5b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47ad72['bind']('isEnabled')['to'](_0x518ba0),_0x47ad72['bind']('isOn')['to'](_0x518ba0,'isActive'),this['listenTo'](_0x47ad72,'execute',()=>{_0x41d4ac['execute']('uploadcareImageEdit'),_0x41d4ac['editing']['view']['focus']();}),_0x47ad72;}),this['_initConfig']();}['_initConfig'](){const _0x5aa0ca=_0x1ced73(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5aa0ca),this['listenTo'](this['editor'],'destroy',()=>{_0x5aa0ca['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4726(_0xf2aaca,_0x2d20b2){const _0x4a7c98=_0x4a7c();return _0x4726=function(_0x4726a2,_0x1f5355){_0x4726a2=_0x4726a2-0x1bb;let _0x3fab31=_0x4a7c98[_0x4726a2];return _0x3fab31;},_0x4726(_0xf2aaca,_0x2d20b2);}const _0x205fd6=_0x4726;(function(_0x50829a,_0x42ae7c){const _0x544a49=_0x4726,_0x2b90eb=_0x50829a();while(!![]){try{const _0x22e09f=-parseInt(_0x544a49(0x1c8))/0x1*(-parseInt(_0x544a49(0x1cc))/0x2)+parseInt(_0x544a49(0x1cb))/0x3*(parseInt(_0x544a49(0x1ce))/0x4)+parseInt(_0x544a49(0x1cf))/0x5*(parseInt(_0x544a49(0x1ca))/0x6)+parseInt(_0x544a49(0x1c5))/0x7*(-parseInt(_0x544a49(0x1c0))/0x8)+parseInt(_0x544a49(0x1d6))/0x9*(parseInt(_0x544a49(0x1c1))/0xa)+parseInt(_0x544a49(0x1d8))/0xb*(-parseInt(_0x544a49(0x1d4))/0xc)+parseInt(_0x544a49(0x1bd))/0xd*(-parseInt(_0x544a49(0x1c3))/0xe);if(_0x22e09f===_0x42ae7c)break;else _0x2b90eb['push'](_0x2b90eb['shift']());}catch(_0x5e092b){_0x2b90eb['push'](_0x2b90eb['shift']());}}}(_0x4a7c,0x52725));import{Command as _0x2ed3f1}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2ed3f1{[_0x205fd6(0x1bb)](){const _0x131284=_0x205fd6,_0x49fb92=this[_0x131284(0x1c2)][_0x131284(0x1d2)][_0x131284(0x1d5)][_0x131284(0x1d0)][_0x131284(0x1c6)]();this[_0x131284(0x1c7)]=Boolean(_0x49fb92&&(_0x49fb92['is'](_0x131284(0x1c9),_0x131284(0x1d3))||_0x49fb92['is'](_0x131284(0x1c9),_0x131284(0x1be))));}[_0x205fd6(0x1d1)](_0x2a9dd6){const _0x313a16=_0x205fd6,_0x48aadf=this[_0x313a16(0x1c2)][_0x313a16(0x1d2)][_0x313a16(0x1d5)][_0x313a16(0x1d0)][_0x313a16(0x1c6)]();this[_0x313a16(0x1c2)][_0x313a16(0x1d2)][_0x313a16(0x1d7)](_0x30d033=>{const _0x2044e3=_0x313a16;_0x30d033[_0x2044e3(0x1cd)](_0x2a9dd6,_0x48aadf),_0x30d033[_0x2044e3(0x1bc)](_0x2044e3(0x1c4),_0x48aadf),_0x30d033[_0x2044e3(0x1bc)](_0x2044e3(0x1bf),_0x48aadf);});}}function _0x4a7c(){const _0x29a7fa=['8635uzcFpL','refresh','removeAttribute','13JNmizD','imageInline','sizes','326464emEnLc','1454580KivIuq','editor','15687098UmpmRk','srcset','7EKmVph','getSelectedElement','isEnabled','1CZsrgo','element','637110lTOUZB','3pQCPGB','577228gKrZkq','setAttributes','1145020JeFEVa','20pdfNRc','selection','execute','model','imageBlock','1260TxSsHH','document','36zjrmsU','change'];_0x4a7c=function(){return _0x29a7fa;};return _0x4a7c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4eec77=_0x49e8;(function(_0x3bd1f5,_0x6b4dd2){var _0x113d19=_0x49e8,_0xbf3844=_0x3bd1f5();while(!![]){try{var _0x368bc7=parseInt(_0x113d19(0x1a2))/0x1+parseInt(_0x113d19(0x194))/0x2*(parseInt(_0x113d19(0x19a))/0x3)+-parseInt(_0x113d19(0x19d))/0x4*(parseInt(_0x113d19(0x19f))/0x5)+parseInt(_0x113d19(0x1a1))/0x6*(parseInt(_0x113d19(0x196))/0x7)+parseInt(_0x113d19(0x198))/0x8+-parseInt(_0x113d19(0x19b))/0x9+parseInt(_0x113d19(0x19e))/0xa*(-parseInt(_0x113d19(0x199))/0xb);if(_0x368bc7===_0x6b4dd2)break;else _0xbf3844['push'](_0xbf3844['shift']());}catch(_0x211bdc){_0xbf3844['push'](_0xbf3844['shift']());}}}(_0x58b6,0x228c6));import{Plugin as _0x51626a}from'ckeditor5/src/core.js';function _0x58b6(){var _0x1ba252=['201146urFWbM','296157tRGEju','1321119RXqniP','isPremiumPlugin','5228XfOqaS','210xXiAiR','485WkBTxu','UploadcareImageEdit','148494zblQSt','252493UXQNgS','requires','4sMEjdM','pluginName','21VZjLdn','isOfficialPlugin','2199264jJhGFm'];_0x58b6=function(){return _0x1ba252;};return _0x58b6();}function _0x49e8(_0x163128,_0x4f0308){var _0x58b68a=_0x58b6();return _0x49e8=function(_0x49e89b,_0x38d0c0){_0x49e89b=_0x49e89b-0x194;var _0x201e20=_0x58b68a[_0x49e89b];return _0x201e20;},_0x49e8(_0x163128,_0x4f0308);}import{UploadcareImageEditEditing as _0x606817}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5c8564}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x51626a{static get[_0x4eec77(0x195)](){var _0x509a5b=_0x4eec77;return _0x509a5b(0x1a0);}static get[_0x4eec77(0x1a3)](){return[_0x606817,_0x5c8564];}static get[_0x4eec77(0x197)](){return!0x0;}static get[_0x4eec77(0x19c)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4a7004=_0x41a5;(function(_0x4d7fa7,_0x117e8b){const _0x1b60ab=_0x41a5,_0x1966d1=_0x4d7fa7();while(!![]){try{const _0x5b1ee0=-parseInt(_0x1b60ab(0xb5))/0x1*(-parseInt(_0x1b60ab(0xd7))/0x2)+-parseInt(_0x1b60ab(0xb0))/0x3+parseInt(_0x1b60ab(0xd0))/0x4*(parseInt(_0x1b60ab(0xca))/0x5)+parseInt(_0x1b60ab(0x8f))/0x6*(parseInt(_0x1b60ab(0xc6))/0x7)+-parseInt(_0x1b60ab(0x99))/0x8+parseInt(_0x1b60ab(0xbf))/0x9*(-parseInt(_0x1b60ab(0xc7))/0xa)+-parseInt(_0x1b60ab(0x9a))/0xb*(-parseInt(_0x1b60ab(0xa4))/0xc);if(_0x5b1ee0===_0x117e8b)break;else _0x1966d1['push'](_0x1966d1['shift']());}catch(_0x33b287){_0x1966d1['push'](_0x1966d1['shift']());}}}(_0x2dbd,0x24aaa));function _0x41a5(_0x20ab07,_0x151ba6){const _0x2dbd43=_0x2dbd();return _0x41a5=function(_0x41a5ff,_0x562bf4){_0x41a5ff=_0x41a5ff-0x89;let _0x16ba4b=_0x2dbd43[_0x41a5ff];return _0x16ba4b;},_0x41a5(_0x20ab07,_0x151ba6);}function _0x2dbd(){const _0x208b0b=['registerIntegration','forEach','uploadcareLicenseKeyDomainLimit','31EPBraj','type','uploadcareLicenseKeyNotAllowed','GPhotos','url','isOfficialPlugin','execute','_getIntegrationKey','upload','isPremiumPlugin','207CXBfwS','Uploadcare','push','uploadcareLicenseKeyExpired','uploadcareLicenseKeyEvaluationLimit','_normalizeConfigSourceList','uploadcareLicenseKeyInvalid','91ppuyTC','13330ZkJlBa','_createToolbarButton','isEnabled','705COjMdo','licenseKey','withText','config','assetManager','plugins','2172UjdvHP','featureNotAllowed','locale','UploadcareUI','entries','URL','GDrive','16716fvNKHy','Local','Dropbox','get','destroy','afterInit','_createButton','bind','domainLimit','map','ImageInsertUI','89118Vordch','label','init','has','Insert','OneDrive','usageLimit','_licenseKeyCheckInterval','uploadcareLicenseKeyTrialLimit','text','1843544zJKtav','7711YaYTjy','Facebook','editor','uploadcare.uploader.sourceList','Replace','trialLimit','commands','shortText','_showLicenseError','uploadcareLicenseKeyValid','1128XOsQBU','isImageSelected','reduce','tooltip','_createDropdownButtons','evaluationLimit','uploadcare','_createMenuBarButtons','uploadcareLicenseKeyUsageLimit','invalid','expired','pluginName','550068fEoPnE','icon'];_0x2dbd=function(){return _0x208b0b;};return _0x2dbd();}import{Plugin as _0x2e3f4f}from'ckeditor5/src/core.js';import{IconDropbox as _0x2ea2bd,IconFacebook as _0x1c4116,IconGoogleDrive as _0x3cec15,IconGooglePhotos as _0x33d10c,IconUploadcareImageUpload as _0x30e098,IconUploadcareLink as _0x409484,IconOneDrive as _0x162a87}from'ckeditor5/src/icons.js';import{ButtonView as _0x1e3b37,MenuBarMenuListItemButtonView as _0x10719e}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xf3e4b5}from'./uploadcareconfig.js';import{getTranslation as _0x5908b1}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2e3f4f{[_0x4a7004(0xcb)];[_0x4a7004(0x96)];static get[_0x4a7004(0xaf)](){const _0x5b3c2c=_0x4a7004;return _0x5b3c2c(0xd3);}static get[_0x4a7004(0xba)](){return!0x0;}static get[_0x4a7004(0xbe)](){return!0x0;}[_0x4a7004(0x91)](){const _0x54bed0=_0x4a7004;this[_0x54bed0(0xcb)]=this[_0x54bed0(0x9c)][_0x54bed0(0xcd)][_0x54bed0(0xda)](_0x54bed0(0xcb));const _0x2164d8=this[_0x54bed0(0x9c)];this[_0x54bed0(0x96)]=setInterval(()=>{const _0x267e6e=_0x54bed0;let _0x1e64e4;for(const _0x4eea60 in _0x2164d8){const _0x339a3d=_0x4eea60,_0x54dd43=_0x2164d8[_0x339a3d];if(_0x267e6e(0xa3)==_0x54dd43||_0x267e6e(0xc5)==_0x54dd43||_0x267e6e(0xc2)==_0x54dd43||_0x267e6e(0xb4)==_0x54dd43||_0x267e6e(0xb7)==_0x54dd43||_0x267e6e(0xc3)==_0x54dd43||_0x267e6e(0x97)==_0x54dd43||_0x267e6e(0xac)==_0x54dd43){delete _0x2164d8[_0x339a3d],_0x1e64e4=_0x54dd43,clearInterval(this[_0x267e6e(0x96)]),this[_0x267e6e(0x96)]=void 0x0;break;}}_0x267e6e(0xc5)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xad)),_0x267e6e(0xc2)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xae)),_0x267e6e(0xb4)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0x8c)),_0x267e6e(0xb7)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xd1),_0x267e6e(0xc0)),_0x267e6e(0xc3)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xa9)),_0x267e6e(0x97)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0x9f)),_0x267e6e(0xac)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0x95));},0x3e8);}[_0x4a7004(0x89)](){const _0x268bd0=_0x4a7004,{editor:_0x123b2f}=this,_0x3694a3=_0x123b2f[_0x268bd0(0xa0)][_0x268bd0(0xda)](_0x268bd0(0xaa));if(!_0x3694a3)return;const _0x725a05=this[_0x268bd0(0xc4)](_0x123b2f[_0x268bd0(0xcd)][_0x268bd0(0xda)](_0x268bd0(0x9d)))[_0x268bd0(0xa6)]((_0xbc86eb,_0x1413e3)=>{const _0x4defb5=_0x268bd0,_0x13e2cf=this[_0x4defb5(0xbc)](_0x1413e3[_0x4defb5(0xb6)]);return _0xbc86eb[_0x13e2cf]||(_0xbc86eb[_0x13e2cf]=[]),_0xbc86eb[_0x13e2cf][_0x4defb5(0xc1)](_0x1413e3),_0xbc86eb;},{});_0x123b2f[_0x268bd0(0xcf)][_0x268bd0(0x92)](_0x268bd0(0x8e))&&_0x123b2f[_0x268bd0(0xa0)][_0x268bd0(0xda)](_0x268bd0(0xaa))&&Object[_0x268bd0(0xd4)](_0x725a05)[_0x268bd0(0xb3)](([_0x3109f4,_0x47d961])=>{const _0x3bd2c2=_0x268bd0;_0x123b2f[_0x3bd2c2(0xcf)][_0x3bd2c2(0xda)](_0x3bd2c2(0x8e))[_0x3bd2c2(0xb2)]({'name':_0x3109f4,'observable':()=>_0x3694a3,'buttonViewCreator':()=>this[_0x3bd2c2(0xc8)](_0x47d961),'formViewCreator':()=>this[_0x3bd2c2(0xa8)](_0x47d961),'menuBarButtonViewCreator':()=>this[_0x3bd2c2(0xab)](_0x47d961),'override':_0x3bd2c2(0xce)!==_0x3109f4});});}[_0x4a7004(0xdb)](){const _0x4c0fb5=_0x4a7004;super[_0x4c0fb5(0xdb)](),this[_0x4c0fb5(0x96)]&&clearInterval(this[_0x4c0fb5(0x96)]);}[_0x4a7004(0xc4)](_0x1ef3a9){const _0x277661=_0x4a7004,{locale:_0x1a5595}=this[_0x277661(0x9c)];return _0x1ef3a9[_0x277661(0x8d)](_0xf5ef16=>{const _0x23cdc1=_0x277661,_0x41e378=_0x5908b1(_0x1a5595,_0xf5ef16,_0x23cdc1(0x93));switch(_0xf5ef16){case _0xf3e4b5[_0x23cdc1(0xd8)]:return{'icon':_0x30e098,'type':_0xf3e4b5[_0x23cdc1(0xd8)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xd5)]:return{'icon':_0x409484,'type':_0xf3e4b5[_0x23cdc1(0xd5)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xd9)]:return{'icon':_0x2ea2bd,'type':_0xf3e4b5[_0x23cdc1(0xd9)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0x9b)]:return{'icon':_0x1c4116,'type':_0xf3e4b5[_0x23cdc1(0x9b)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xd6)]:return{'icon':_0x3cec15,'type':_0xf3e4b5[_0x23cdc1(0xd6)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xb8)]:return{'icon':_0x33d10c,'type':_0xf3e4b5[_0x23cdc1(0xb8)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0x94)]:return{'icon':_0x162a87,'type':_0xf3e4b5[_0x23cdc1(0x94)],..._0x41e378};}});}[_0x4a7004(0xbc)](_0x1f8779){const _0x2d7a4e=_0x4a7004;switch(_0x1f8779){case _0xf3e4b5[_0x2d7a4e(0xd8)]:return _0x2d7a4e(0xbd);case _0xf3e4b5[_0x2d7a4e(0xd5)]:return _0x2d7a4e(0xb9);default:return _0x2d7a4e(0xce);}}[_0x4a7004(0x8a)](_0x2e15fe,_0x162420){const _0x4104fc=_0x4a7004,_0x58aae3=this[_0x4104fc(0x9c)],_0x3f65dc=new _0x2e15fe(_0x58aae3[_0x4104fc(0xd2)]),_0x326b48=_0x58aae3[_0x4104fc(0xa0)][_0x4104fc(0xda)](_0x4104fc(0xaa));return _0x3f65dc[_0x4104fc(0x8b)](_0x4104fc(0xc9))['to'](_0x326b48),_0x3f65dc['on'](_0x4104fc(0xbb),()=>{const _0x166bbe=_0x4104fc;_0x326b48[_0x166bbe(0xbb)](_0x162420);}),_0x3f65dc;}[_0x4a7004(0xc8)](_0x30a9f5){const _0x44f0c6=_0x4a7004,{locale:_0x2b1f5b}=this[_0x44f0c6(0x9c)],_0x3f09f5=this[_0x44f0c6(0x9c)][_0x44f0c6(0xcf)][_0x44f0c6(0xda)](_0x44f0c6(0x8e)),_0x4eb8ce=_0x30a9f5[0x0],_0x4cafb5=this[_0x44f0c6(0x8a)](_0x1e3b37,_0x4eb8ce[_0x44f0c6(0xb6)]);return _0x4cafb5[_0x44f0c6(0xb1)]=_0x4eb8ce[_0x44f0c6(0xb1)],_0x4cafb5[_0x44f0c6(0x8b)](_0x44f0c6(0x90))['to'](_0x3f09f5,_0x44f0c6(0xa5),_0x197239=>_0x5908b1(_0x2b1f5b,_0x4eb8ce[_0x44f0c6(0xb6)],_0x197239?_0x44f0c6(0x9e):_0x44f0c6(0x93))[_0x44f0c6(0x98)]),_0x4cafb5[_0x44f0c6(0xa7)]=!0x0,_0x4cafb5;}[_0x4a7004(0xa8)](_0x49982b){const _0x3e8157=_0x4a7004,{locale:_0x5c0bd2}=this[_0x3e8157(0x9c)],_0x372664=this[_0x3e8157(0x9c)][_0x3e8157(0xcf)][_0x3e8157(0xda)](_0x3e8157(0x8e));return _0x49982b[_0x3e8157(0x8d)](_0x65ba50=>{const _0x333f57=_0x3e8157,_0x48802c=this[_0x333f57(0x8a)](_0x1e3b37,_0x65ba50[_0x333f57(0xb6)]);return _0x48802c[_0x333f57(0xcc)]=!0x0,_0x48802c[_0x333f57(0xb1)]=_0x65ba50[_0x333f57(0xb1)],_0x48802c[_0x333f57(0x8b)](_0x333f57(0x90))['to'](_0x372664,_0x333f57(0xa5),_0x4cee0d=>_0x5908b1(_0x5c0bd2,_0x65ba50[_0x333f57(0xb6)],_0x4cee0d?_0x333f57(0x9e):_0x333f57(0x93))[_0x333f57(0x98)]),_0x48802c;});}[_0x4a7004(0xab)](_0x165cb3){const _0x10c401=_0x4a7004;return _0x165cb3[_0x10c401(0x8d)](_0x564759=>{const _0x3183f2=_0x10c401,_0x23b012=this[_0x3183f2(0x8a)](_0x10719e,_0x564759[_0x3183f2(0xb6)]);return _0x23b012[_0x3183f2(0xb1)]=_0x564759[_0x3183f2(0xb1)],_0x23b012[_0x3183f2(0x90)]=_0x564759[_0x3183f2(0xa1)],_0x23b012;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x276509}from'ckeditor5/src/core.js';import{FileRepository as _0x323524}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1e232c}from'./uploadcareediting.js';import{UploadUtils as _0x33c479}from'./utils/uploadutils.js';import{getImageUrls as _0xea1893}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x276509{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x323524,_0x1e232c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4628c7=this['editor'];if(!!!_0x4628c7['config']['get']('uploadcare'))return;_0x4628c7['plugins']['get'](_0x323524)['createUploadAdapter']=_0x98bb46=>new k(_0x98bb46,_0x4628c7),_0x4628c7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x39b992,{imageElement:_0x5a48a8,data:_0xc7d821})=>{_0x4628c7['model']['change'](_0x545a9c=>{_0x545a9c['setAttribute']('uploadcareImageId',_0xc7d821['uploadcareImageId'],_0x5a48a8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x135a2f,_0x7976db){this['loader']=_0x135a2f,this['editor']=_0x7976db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x44b4de=await this['loader']['file'];return _0x33c479['upload']({'file':_0x44b4de,'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':_0x23b856=>{_0x23b856&&_0x23b856['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x23b856['value']);}})['then'](async _0x2c6ec0=>{const {imageFallbackUrl:_0x129539,imageSources:_0x2ba458}=_0xea1893(_0x2c6ec0['cdnUrl'],_0x2c6ec0['imageInfo']['width']);return{'uploadcareImageId':_0x2c6ec0['uuid'],'default':_0x129539,'sources':_0x2ba458};})['catch'](()=>{const _0x1eaae1=t('Cannot\x20upload\x20file:')+('\x20'+_0x44b4de['name']+'.');return Promise['reject'](_0x1eaae1);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x56f3f6}from'../uploadcareconfig.js';export function getTranslation(_0x5a2120,_0x5d354d,_0x2b9d22){const t=_0x5a2120['t'],_0x1d0120=_0x5a2120['t'];switch(_0x5d354d){case _0x56f3f6['Local']:return{'text':_0x1d0120('Insert'===_0x2b9d22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1d0120('From\x20computer')};case _0x56f3f6['URL']:return{'text':'Insert'===_0x2b9d22?_0x1d0120('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1d0120('Via\x20URL')};case _0x56f3f6['Dropbox']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x56f3f6['Facebook']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x56f3f6['GDrive']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x56f3f6['GPhotos']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x56f3f6['OneDrive']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5d354d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x79aa81=_0x3414;(function(_0x32341e,_0x2a7073){var _0x50c8e0=_0x3414,_0x462f13=_0x32341e();while(!![]){try{var _0x3a602d=parseInt(_0x50c8e0(0x74))/0x1+-parseInt(_0x50c8e0(0x7c))/0x2*(-parseInt(_0x50c8e0(0x7b))/0x3)+-parseInt(_0x50c8e0(0x73))/0x4+-parseInt(_0x50c8e0(0x6e))/0x5+-parseInt(_0x50c8e0(0x77))/0x6+-parseInt(_0x50c8e0(0x72))/0x7*(-parseInt(_0x50c8e0(0x7f))/0x8)+-parseInt(_0x50c8e0(0x7a))/0x9*(-parseInt(_0x50c8e0(0x6d))/0xa);if(_0x3a602d===_0x2a7073)break;else _0x462f13['push'](_0x462f13['shift']());}catch(_0x1e2870){_0x462f13['push'](_0x462f13['shift']());}}}(_0x4bf7,0x3198e));function _0x4bf7(){var _0x382020=['focusCycler','456aBgPAM','4990NEVVlW','814575DbXIiF','focusTracker','fire','true','44786fKDhqJ','1244064kgQFxV','70370jevMqN','createCollection','forwardCycle','1456458WzNseW','bindTemplate','div','8262mIFWWj','33BsFsxL','4852RSyyGf','getFocusableElement'];_0x4bf7=function(){return _0x382020;};return _0x4bf7();}import{FocusTracker as _0x50c4bf}from'ckeditor5/src/utils.js';import{View as _0xbab881,FocusCycler as _0x3f2408}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x3414(_0x3f355f,_0x11f7fc){var _0x4bf715=_0x4bf7();return _0x3414=function(_0x3414c9,_0x1f186d){_0x3414c9=_0x3414c9-0x6d;var _0x2cc445=_0x4bf715[_0x3414c9];return _0x2cc445;},_0x3414(_0x3f355f,_0x11f7fc);}export class DialogFocusManagerView extends _0xbab881{[_0x79aa81(0x6f)];[_0x79aa81(0x7e)];constructor(_0x1e5c1d){var _0x92e83b=_0x79aa81;super(_0x1e5c1d),this[_0x92e83b(0x6f)]=new _0x50c4bf(),this[_0x92e83b(0x7e)]=new _0x3f2408({'focusables':this[_0x92e83b(0x75)](),'focusTracker':this[_0x92e83b(0x6f)]});}[_0x79aa81(0x7d)](){var _0x497090=_0x79aa81;return{'tag':_0x497090(0x79),'attributes':{'aria-hidden':_0x497090(0x71),'tabindex':'0'},'on':{'focus':this[_0x497090(0x78)]['to'](()=>{var _0x304922=_0x497090;this[_0x304922(0x7e)][_0x304922(0x70)](_0x304922(0x76));})}};}}
|