@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250919.0 → 0.0.0-nightly-20250921.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xfb23(_0x339242,_0x9bbed2){const _0x3b219d=_0x3b21();return _0xfb23=function(_0xfb23bd,_0x382c32){_0xfb23bd=_0xfb23bd-0x1d8;let _0x236d72=_0x3b219d[_0xfb23bd];return _0x236d72;},_0xfb23(_0x339242,_0x9bbed2);}const _0x2d147e=_0xfb23;(function(_0x21eded,_0x58f204){const _0x529bf9=_0xfb23,_0x541e6f=_0x21eded();while(!![]){try{const _0x45a284=-parseInt(_0x529bf9(0x214))/0x1+parseInt(_0x529bf9(0x22a))/0x2*(parseInt(_0x529bf9(0x201))/0x3)+parseInt(_0x529bf9(0x216))/0x4*(-parseInt(_0x529bf9(0x1eb))/0x5)+-parseInt(_0x529bf9(0x1fc))/0x6*(-parseInt(_0x529bf9(0x22c))/0x7)+parseInt(_0x529bf9(0x1e1))/0x8*(-parseInt(_0x529bf9(0x205))/0x9)+parseInt(_0x529bf9(0x20a))/0xa+-parseInt(_0x529bf9(0x1ed))/0xb*(-parseInt(_0x529bf9(0x1de))/0xc);if(_0x45a284===_0x58f204)break;else _0x541e6f['push'](_0x541e6f['shift']());}catch(_0x1f7778){_0x541e6f['push'](_0x541e6f['shift']());}}}(_0x3b21,0x3c1f4));function _0x3b21(){const _0x1aeeec=['391110bOZTUW','render','7goTVrQ','#uc-icon-arrow-down','_initImageProcessingIndicator','ucContextId','_initSchema','editing','uploadcare.uploader','uploadcare','\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','36aLimRq','init','attributeToAttribute','8XwIiVZ','querySelector','insertImage','removeAttribute','for','once','remove','_initConversion','uc-config','conversion','845WtCeVB','schema','405581FlgYWW','extend','getAttribute','afterInit','cleanupImage','isPremiumPlugin','join','document','body','ctxElement','fromCharCode','_ctxElement','view','href','replaceImageSource','946266ogqNcr','listenTo','uploadcareImageReplace','uploadcare.pubkey','true','3BxjgVA','model','uc-upload-ctx-provider','pluginName','2737791GhhIJO','execute','add','selection','_initCtx','2914160QNAQFG','_configElement','locale','PictureEditing','appendChild','downcast','getSelectedElement','requires','UploadcareEditing','contentLanguage','5247RLHlYw','input[uploadcare-file-input]','4724VnRzQF','get','map','uploadcareImageId','editor','isRegistered','imageBlock','commands','destroy','elementToAttribute','_initConfig','uploader-','upcast','data-uc-image-id','imageInline','closeMax','configElement','config','iconHrefResolver','isOfficialPlugin'];_0x3b21=function(){return _0x1aeeec;};return _0x3b21();}import{Plugin as _0x235eb3}from'ckeditor5/src/core.js';import{Dialog as _0x51ef77}from'ckeditor5/src/ui.js';import{createElement as _0x3ac8b0,global as _0x170846,uid as _0x51e622}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x24459e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x260093}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x58f3f6}from'./utils/editingutils.js';export class UploadcareEditing extends _0x235eb3{[_0x2d147e(0x20b)]=null;[_0x2d147e(0x1f8)]=null;static get[_0x2d147e(0x204)](){const _0x22adbe=_0x2d147e;return _0x22adbe(0x212);}static get[_0x2d147e(0x211)](){const _0x4afa4c=_0x2d147e;return[_0x4afa4c(0x20d),_0x260093,_0x51ef77];}static get[_0x2d147e(0x229)](){return!0x0;}static get[_0x2d147e(0x1f2)](){return!0x0;}[_0x2d147e(0x1d8)];get[_0x2d147e(0x226)](){const _0x588c0e=_0x2d147e;return this[_0x588c0e(0x20b)];}get[_0x2d147e(0x1f6)](){const _0x4f1203=_0x2d147e;return this[_0x4f1203(0x1f8)];}constructor(_0x4470bb){const _0x39808f=_0x2d147e;super(_0x4470bb),this[_0x39808f(0x1d8)]=_0x51e622();}[_0x2d147e(0x1df)](){const _0xeaac03=_0x2d147e,_0x38d796=this[_0xeaac03(0x21a)];_0x38d796[_0xeaac03(0x21d)][_0xeaac03(0x207)](_0xeaac03(0x1dc),new _0x24459e(_0x38d796));}[_0x2d147e(0x1f0)](){const _0xefd21a=_0x2d147e;this[_0xefd21a(0x1d9)](),this[_0xefd21a(0x1e8)](),this[_0xefd21a(0x220)](),this[_0xefd21a(0x209)](),this[_0xefd21a(0x22e)](),this[_0xefd21a(0x1fd)](this[_0xefd21a(0x21a)],_0xefd21a(0x21e),()=>{const _0x521c88=_0xefd21a;this[_0x521c88(0x20b)]&&(this[_0x521c88(0x20b)][_0x521c88(0x1e7)](),this[_0x521c88(0x20b)]=null),this[_0x521c88(0x1f8)]&&(this[_0x521c88(0x1f8)][_0x521c88(0x1e7)](),this[_0x521c88(0x1f8)]=null);const _0x84f98b=_0x170846[_0x521c88(0x1f4)][_0x521c88(0x1e2)](_0x521c88(0x215));_0x84f98b&&_0x84f98b[_0x521c88(0x1e7)]();}),async function(_0x2200c4){const _0x5f28c4=_0x17fa89([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x17bd26=0x3d8d0df,_0x2aa081=0x3dfa30f^_0x17bd26,_0x34fc7f=window[_0x17fa89([0x44,0x61,0x74,0x65])][_0x17fa89([0x6e,0x6f,0x77])](),_0x1bcce2=_0x2200c4[_0x17fa89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5081f3=new window[(_0x17fa89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc14d=>{_0x1bcce2[_0x17fa89([0x6f,0x6e,0x63,0x65])](_0x17fa89([0x72,0x65,0x61,0x64,0x79]),_0x4bc14d);}),_0x29480f={[_0x17fa89([0x6b,0x74,0x79])]:_0x17fa89([0x45,0x43]),[_0x17fa89([0x75,0x73,0x65])]:_0x17fa89([0x73,0x69,0x67]),[_0x17fa89([0x63,0x72,0x76])]:_0x17fa89([0x50,0x2d,0x32,0x35,0x36]),[_0x17fa89([0x78])]:_0x17fa89([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]),[_0x17fa89([0x79])]:_0x17fa89([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]),[_0x17fa89([0x61,0x6c,0x67])]:_0x17fa89([0x45,0x53,0x32,0x35,0x36])},_0x406aaa=_0x1bcce2[_0x17fa89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17fa89([0x67,0x65,0x74])](_0x17fa89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe15869(){let _0x57f639,_0x1dedfa=null,_0xa247bf=null;try{if(_0x406aaa==_0x17fa89([0x47,0x50,0x4c]))return _0x17fa89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57f639=_0x179a31(),!_0x57f639)return _0x17fa89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57f639[_0x17fa89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa247bf=_0x52a7af(_0x57f639[_0x17fa89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57f639[_0x17fa89([0x6a,0x74,0x69])])),await _0x3c8bb0()?_0x3e5207()?_0x1dfbf5()?_0x17fa89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5baab7()?(_0x57f639[_0x17fa89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17fa89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1dedfa=_0x3618ec(_0x17fa89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57f639[_0x17fa89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17fa89([0x74,0x72,0x69,0x61,0x6c])&&(_0x1dedfa=_0x3618ec(_0x17fa89([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11f4e9()):_0x17fa89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17fa89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17fa89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17fa89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dfbf5(){const _0xaa18d1=[_0x17fa89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17fa89([0x74,0x72,0x69,0x61,0x6c])][_0x17fa89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57f639[_0x17fa89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34fc7f/0x3e8:0xe10*_0x2aa081;return _0x57f639[_0x17fa89([0x65,0x78,0x70])]<_0xaa18d1;}function _0x3e5207(){const _0x1919c0=_0x57f639[_0x17fa89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1919c0&&(!!_0x1919c0[_0x17fa89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fa89([0x2a]))||!!_0x1919c0[_0x17fa89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fa89([0x55,0x50,0x4c,0x43])));}function _0x5baab7(){const _0x29c8af=_0xfb23,_0x48421a=_0x57f639[_0x17fa89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48421a||0x0==_0x48421a[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cdf00}=new URL(window[_0x17fa89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x29c8af(0x1fa)]);if(_0x48421a[_0x17fa89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cdf00))return!0x0;const _0x5b3791=_0x4cdf00[_0x17fa89([0x73,0x70,0x6c,0x69,0x74])](_0x17fa89([0x2e]));return _0x48421a[_0x17fa89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cddb1=>_0x1cddb1[_0x17fa89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fa89([0x2a])))[_0x17fa89([0x6d,0x61,0x70])](_0x59c91c=>_0x59c91c[_0x17fa89([0x73,0x70,0x6c,0x69,0x74])](_0x17fa89([0x2e])))[_0x17fa89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38714c=>_0x38714c[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b3791[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17fa89([0x6d,0x61,0x70])](_0x455a80=>Array(_0x5b3791[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x455a80[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17fa89([0x66,0x69,0x6c,0x6c])](_0x455a80[0x0]===_0x17fa89([0x2a])?_0x17fa89([0x2a]):'')[_0x17fa89([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x455a80))[_0x17fa89([0x73,0x6f,0x6d,0x65])](_0x5c15ab=>_0x5b3791[_0x17fa89([0x65,0x76,0x65,0x72,0x79])]((_0x1af7d2,_0x5389c3)=>_0x5c15ab[_0x5389c3]===_0x1af7d2||_0x5c15ab[_0x5389c3]===_0x17fa89([0x2a])));}function _0x11f4e9(){return _0x1dedfa&&_0xa247bf?new window[(_0x17fa89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28d867,_0x2f7d45)=>{_0x1dedfa[_0x17fa89([0x74,0x68,0x65,0x6e])](_0x28d867,_0x2f7d45),_0xa247bf[_0x17fa89([0x74,0x68,0x65,0x6e])](_0x5090d5=>{_0x5090d5!=_0x17fa89([0x56,0x61,0x6c,0x69,0x64])&&_0x28d867(_0x5090d5);},_0x2f7d45);}):_0x1dedfa||_0xa247bf||_0x17fa89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52a7af(_0x9ff51d,_0x59ee82){return new window[(_0x17fa89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2081e6=>{if(_0x360769())return _0x2081e6(_0x17fa89([0x56,0x61,0x6c,0x69,0x64]));_0x487123(),_0x1bcce2[_0x17fa89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17fa89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20a8fc=!0x1;const _0x3d021d=_0x51e622();function _0x560ab9(_0x33cb51){return!!_0x33cb51&&(typeof _0x33cb51===_0x17fa89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33cb51===_0x17fa89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33cb51[_0x17fa89([0x74,0x68,0x65,0x6e])]===_0x17fa89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33cb51[_0x17fa89([0x63,0x61,0x74,0x63,0x68])]===_0x17fa89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x69f110(_0x47cbe8){_0x5dce00(_0x47cbe8)[_0x17fa89([0x74,0x68,0x65,0x6e])](_0xb626c4=>{if(!_0xb626c4||_0xb626c4[_0x17fa89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17fa89([0x6f,0x6b]))return _0x17fa89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1592c5(_0x3b3a6b(_0x3d021d+_0x59ee82))!=_0xb626c4[_0x17fa89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17fa89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17fa89([0x56,0x61,0x6c,0x69,0x64]);})[_0x17fa89([0x74,0x68,0x65,0x6e])](_0x52dd81=>(_0x13b4f1(),_0x52dd81),()=>{const _0x5e5963=_0x400e09();return null==_0x5e5963?(_0x13b4f1(),_0x17fa89([0x56,0x61,0x6c,0x69,0x64])):_0x17fa89(_0x34fc7f-_0x5e5963>(0x27d454df^_0x17bd26)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17fa89([0x74,0x68,0x65,0x6e])](_0x2081e6)[_0x17fa89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2081e6(_0x17fa89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe5fd2a=0x3ee3e5f^_0x17bd26;function _0x13b4f1(){const _0x4d7462=_0x17fa89([0x6c,0x6c,0x63,0x74,0x2d])+_0x1592c5(_0x3b3a6b(_0x9ff51d)),_0x1406ee=_0x3c441c(_0x1592c5(window[_0x17fa89([0x4d,0x61,0x74,0x68])][_0x17fa89([0x63,0x65,0x69,0x6c])](_0x34fc7f/_0xe5fd2a)));window[_0x17fa89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17fa89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d7462,_0x1406ee);}function _0x400e09(){const _0x151e06=_0x17fa89([0x6c,0x6c,0x63,0x74,0x2d])+_0x1592c5(_0x3b3a6b(_0x9ff51d)),_0x29f44f=window[_0x17fa89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17fa89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x151e06);return _0x29f44f?window[_0x17fa89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c441c(_0x29f44f),0x10)*_0xe5fd2a:null;}function _0x5dce00(_0x20a145){return new window[(_0x17fa89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x392cdf,_0x519c39)=>{_0x20a145[_0x17fa89([0x74,0x68,0x65,0x6e])](_0x392cdf,_0x519c39),window[_0x17fa89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x519c39,0x3d9041f^_0x17bd26);});}}_0x1bcce2[_0x17fa89([0x6f,0x6e])](_0x17fa89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e4ff0,_0x399f39)=>{if(_0x399f39[0x0]!=_0x9ff51d)return _0x2081e6(_0x17fa89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x399f39[0x1]={..._0x399f39[0x1],[_0x17fa89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d021d};},{[_0x17fa89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17fa89([0x68,0x69,0x67,0x68])}),_0x1bcce2[_0x17fa89([0x6f,0x6e])](_0x17fa89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x193538=>{_0x560ab9(_0x193538[_0x17fa89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20a8fc=!0x0,_0x69f110(_0x193538[_0x17fa89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17fa89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17fa89([0x6c,0x6f,0x77])}),_0x5081f3[_0x17fa89([0x74,0x68,0x65,0x6e])](()=>{_0x20a8fc||_0x2081e6(_0x17fa89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x360769(){return _0x1bcce2[_0x17fa89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17fa89([0x76,0x69,0x65,0x77])][_0x17fa89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17fa89([0x61,0x75,0x74,0x6f]);}function _0x487123(){_0x1bcce2[_0x17fa89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17fa89([0x76,0x69,0x65,0x77])][_0x17fa89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17fa89([0x61,0x75,0x74,0x6f]);}}function _0x3618ec(_0x48f9f6){const _0x3137d0=[new window[(_0x17fa89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6cbd=>setTimeout(_0x4b6cbd,0x3d1ee13^_0x17bd26)),_0x5081f3[_0x17fa89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17fa89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x241b3e=>{let _0x3baeaa=0x0;_0x1bcce2[_0x17fa89([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fa89([0x6f,0x6e])](_0x17fa89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b1404,_0x1e406e)=>{_0x1e406e[0x0][_0x17fa89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3baeaa++,_0x3baeaa==(0x3d8d127^_0x17bd26)&&(_0x241b3e(),_0x1b1404[_0x17fa89([0x6f,0x66,0x66])]());});}))];return window[_0x17fa89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17fa89([0x72,0x61,0x63,0x65])](_0x3137d0)[_0x17fa89([0x74,0x68,0x65,0x6e])](()=>_0x48f9f6);}async function _0x1a92ac(){await _0x5081f3,_0x1bcce2[_0x17fa89([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fa89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x209c9b,_0x1bcce2[_0x17fa89([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fa89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x209c9b,_0x1bcce2[_0x17fa89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17fa89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a761f(_0x166b16){const _0x1ee781=_0x45f954();_0x1bcce2[_0x1ee781]=_0x17fa89([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x166b16,_0x166b16!=_0x17fa89([0x56,0x61,0x6c,0x69,0x64])&&_0x1a92ac();}function _0x45f954(){const _0x1ca0ac=window[_0x17fa89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17fa89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17fa89([0x6e,0x6f,0x77])]())[_0x17fa89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17fa89([0x2e]),'');let _0x38697f=_0x17fa89([0x52]);for(let _0x436e02=0x0;_0x436e02<_0x1ca0ac[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x436e02+=0x2){let _0x397ab2=window[_0x17fa89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca0ac[_0x17fa89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x436e02,_0x436e02+0x2));_0x397ab2>=_0x5f28c4[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x397ab2-=_0x5f28c4[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38697f+=_0x5f28c4[_0x397ab2];}return _0x38697f;}function _0x179a31(){const _0x33f31a=_0x406aaa[_0x17fa89([0x73,0x70,0x6c,0x69,0x74])](_0x17fa89([0x2e]));if(0x3!=_0x33f31a[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa2836a(_0x33f31a[0x1]);function _0xa2836a(_0x2b7e0b){const _0x56670b=_0x11702d(_0x2b7e0b);return _0x56670b&&_0x148e17()?_0x56670b:null;function _0x148e17(){const _0x469f16=_0x56670b[_0x17fa89([0x6a,0x74,0x69])],_0xf2a3c8=window[_0x17fa89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469f16[_0x17fa89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469f16[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x241ff7={..._0x56670b,[_0x17fa89([0x6a,0x74,0x69])]:_0x469f16[_0x17fa89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x469f16[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x241ff7[_0x17fa89([0x76,0x63])],_0x3b3a6b(_0x241ff7)==_0xf2a3c8;}}}async function _0x3c8bb0(){let _0x253fde=!0x0;try{const _0x27fc86=_0x406aaa[_0x17fa89([0x73,0x70,0x6c,0x69,0x74])](_0x17fa89([0x2e])),[_0x2d2b71,_0x52e2c9,_0x194a5c]=_0x27fc86;return _0x407035(_0x2d2b71),await _0xd09349(_0x2d2b71,_0x52e2c9,_0x194a5c),_0x253fde;}catch{return!0x1;}function _0x407035(_0x4300e4){const _0x4379ce=_0x11702d(_0x4300e4);_0x4379ce&&_0x4379ce[_0x17fa89([0x61,0x6c,0x67])]==_0x17fa89([0x45,0x53,0x32,0x35,0x36])||(_0x253fde=!0x1);}async function _0xd09349(_0x4cb75e,_0xee3101,_0x45a006){const _0xa90c04=window[_0x17fa89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17fa89([0x66,0x72,0x6f,0x6d])](_0x449c2a(_0x45a006),_0x5bc4c7=>_0x5bc4c7[_0x17fa89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c3364=new window[(_0x17fa89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17fa89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cb75e+_0x17fa89([0x2e])+_0xee3101),_0x403854=window[_0x17fa89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17fa89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x403854)return;const _0x4ab562=await _0x403854[_0x17fa89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17fa89([0x6a,0x77,0x6b]),_0x29480f,{[_0x17fa89([0x6e,0x61,0x6d,0x65])]:_0x17fa89([0x45,0x43,0x44,0x53,0x41]),[_0x17fa89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17fa89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17fa89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x403854[_0x17fa89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17fa89([0x6e,0x61,0x6d,0x65])]:_0x17fa89([0x45,0x43,0x44,0x53,0x41]),[_0x17fa89([0x68,0x61,0x73,0x68])]:{[_0x17fa89([0x6e,0x61,0x6d,0x65])]:_0x17fa89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ab562,_0xa90c04,_0x5c3364)||(_0x253fde=!0x1);}}function _0x11702d(_0x2ffd6d){return _0x2ffd6d[_0x17fa89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17fa89([0x65,0x79]))?JSON[_0x17fa89([0x70,0x61,0x72,0x73,0x65])](_0x449c2a(_0x2ffd6d)):null;}function _0x449c2a(_0x264a76){return window[_0x17fa89([0x61,0x74,0x6f,0x62])](_0x264a76[_0x17fa89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17fa89([0x2b]))[_0x17fa89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17fa89([0x2f])));}function _0x3b3a6b(_0x14fded){let _0x438e24=0x1505;function _0x20abb3(_0x2fe9d2){for(let _0x391bd5=0x0;_0x391bd5<_0x2fe9d2[_0x17fa89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x391bd5++){const _0x55e77b=_0x2fe9d2[_0x17fa89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x391bd5);_0x438e24=(_0x438e24<<0x5)+_0x438e24+_0x55e77b,_0x438e24&=_0x438e24;}}function _0x12d761(_0x1acc01){Array[_0x17fa89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1acc01)?_0x1acc01[_0x17fa89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12d761):_0x1acc01&&typeof _0x1acc01==_0x17fa89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17fa89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1acc01)[_0x17fa89([0x73,0x6f,0x72,0x74])]()[_0x17fa89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b24c5,_0x1c6b8e])=>{_0x20abb3(_0x1b24c5),_0x12d761(_0x1c6b8e);}):_0x20abb3(window[_0x17fa89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1acc01));}return _0x12d761(_0x14fded),_0x438e24>>>0x0;}function _0x1592c5(_0x517122){return _0x517122[_0x17fa89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17fa89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17fa89([0x30]));}function _0x3c441c(_0x154f9c){return _0x154f9c[_0x17fa89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17fa89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17fa89([0x6a,0x6f,0x69,0x6e])]('');}function _0x209c9b(){}function _0x17fa89(_0x95d0ed){const _0x599a15=_0xfb23;return _0x95d0ed[_0x599a15(0x218)](_0x319402=>String[_0x599a15(0x1f7)](_0x319402))[_0x599a15(0x1f3)]('');}_0x1a761f(await _0xe15869());}(this);}[_0x2d147e(0x1d9)](){const _0x4ee92f=_0x2d147e,_0x41b9f1=this[_0x4ee92f(0x21a)][_0x4ee92f(0x202)][_0x4ee92f(0x1ec)];_0x41b9f1[_0x4ee92f(0x21b)](_0x4ee92f(0x21c))&&_0x41b9f1[_0x4ee92f(0x1ee)](_0x4ee92f(0x21c),{'allowAttributes':[_0x4ee92f(0x219)]}),_0x41b9f1[_0x4ee92f(0x21b)](_0x4ee92f(0x224))&&_0x41b9f1[_0x4ee92f(0x1ee)](_0x4ee92f(0x224),{'allowAttributes':[_0x4ee92f(0x219)]});}[_0x2d147e(0x1e8)](){const _0x4f49ff=_0x2d147e,_0x34d89d=this[_0x4f49ff(0x21a)];_0x34d89d[_0x4f49ff(0x1ea)][_0x4f49ff(0x1e5)](_0x4f49ff(0x20f))[_0x4f49ff(0x1e0)]({'model':_0x4f49ff(0x219),'view':_0x4f49ff(0x223)}),_0x34d89d[_0x4f49ff(0x1ea)][_0x4f49ff(0x1e5)](_0x4f49ff(0x222))[_0x4f49ff(0x21f)]({'model':{'key':_0x4f49ff(0x219),'value':_0x33f90d=>_0x33f90d[_0x4f49ff(0x1ef)](_0x4f49ff(0x223))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57f65d=_0x34d89d[_0x4f49ff(0x21d)][_0x4f49ff(0x217)](_0x4f49ff(0x1fb));_0x57f65d&&this[_0x4f49ff(0x1fd)](_0x57f65d,_0x4f49ff(0x1f1),(_0x286e57,[_0x45cfb5,_0x59f018])=>{const _0x5d9b97=_0x4f49ff;_0x45cfb5[_0x5d9b97(0x1e4)](_0x5d9b97(0x219),_0x59f018);});}[_0x2d147e(0x220)](){const _0x8c2673=_0x2d147e,_0x2a5e04=this[_0x8c2673(0x21a)][_0x8c2673(0x227)][_0x8c2673(0x217)](_0x8c2673(0x1db))||{},_0x5aa839=this[_0x8c2673(0x21a)][_0x8c2673(0x227)][_0x8c2673(0x217)](_0x8c2673(0x1ff))||'';this[_0x8c2673(0x20b)]=_0x3ac8b0(_0x170846[_0x8c2673(0x1f4)],_0x8c2673(0x1e9),{..._0x2a5e04,'pubkey':_0x5aa839,'ctx-name':_0x8c2673(0x221)+this[_0x8c2673(0x1d8)],'sourceList':'','imgOnly':_0x8c2673(0x200),'removeCopyright':_0x8c2673(0x200),'localeName':this[_0x8c2673(0x21a)][_0x8c2673(0x20c)][_0x8c2673(0x213)],'externalSourcesEmbedCss':_0x8c2673(0x1dd)}),this[_0x8c2673(0x20b)][_0x8c2673(0x228)]=_0x275908=>{const _0x922256=_0x8c2673;if(_0x922256(0x225)==_0x275908)return _0x922256(0x22d);},_0x170846[_0x8c2673(0x1f4)][_0x8c2673(0x1f5)][_0x8c2673(0x20e)](this[_0x8c2673(0x20b)]);}[_0x2d147e(0x209)](){const _0x3557cd=_0x2d147e;this[_0x3557cd(0x1f8)]=_0x3ac8b0(_0x170846[_0x3557cd(0x1f4)],_0x3557cd(0x203),{'ctx-name':_0x3557cd(0x221)+this[_0x3557cd(0x1d8)]}),_0x170846[_0x3557cd(0x1f4)][_0x3557cd(0x1f5)][_0x3557cd(0x20e)](this[_0x3557cd(0x1f8)]);}[_0x2d147e(0x22e)](){const _0x5976f3=_0x2d147e,_0x40efaa=this[_0x5976f3(0x21a)][_0x5976f3(0x21d)][_0x5976f3(0x217)](_0x5976f3(0x1e3));_0x40efaa&&this[_0x5976f3(0x1fd)](_0x40efaa,_0x5976f3(0x206),()=>{const _0x3a953e=_0x5976f3,_0x270c9a=this[_0x3a953e(0x21a)][_0x3a953e(0x202)][_0x3a953e(0x1f4)][_0x3a953e(0x208)][_0x3a953e(0x210)]();_0x270c9a&&_0x270c9a[_0x3a953e(0x1ef)](_0x3a953e(0x219))&&this[_0x3a953e(0x21a)][_0x3a953e(0x1da)][_0x3a953e(0x1f9)][_0x3a953e(0x1e6)](_0x3a953e(0x22b),()=>{const _0x1eb9db=_0x3a953e;_0x58f3f6(this[_0x1eb9db(0x21a)],_0x270c9a);});});const _0x22a436=this[_0x5976f3(0x21a)][_0x5976f3(0x21d)][_0x5976f3(0x217)](_0x5976f3(0x1fe));_0x22a436&&this[_0x5976f3(0x1fd)](_0x22a436,_0x5976f3(0x206),()=>{const _0xfab4f1=_0x5976f3,_0x35f9ad=this[_0xfab4f1(0x21a)][_0xfab4f1(0x202)][_0xfab4f1(0x1f4)][_0xfab4f1(0x208)][_0xfab4f1(0x210)]();_0x35f9ad&&_0x35f9ad[_0xfab4f1(0x1ef)](_0xfab4f1(0x219))&&this[_0xfab4f1(0x21a)][_0xfab4f1(0x1da)][_0xfab4f1(0x1f9)][_0xfab4f1(0x1e6)](_0xfab4f1(0x22b),()=>{const _0x2f519c=_0xfab4f1;_0x58f3f6(this[_0x2f519c(0x21a)],_0x35f9ad);});});}}
|
|
23
|
+
const _0x2517ff=_0x58ce;(function(_0x15d92e,_0xa724c4){const _0x2521ba=_0x58ce,_0x1839d7=_0x15d92e();while(!![]){try{const _0x16d95f=parseInt(_0x2521ba(0x1b6))/0x1+-parseInt(_0x2521ba(0x194))/0x2*(parseInt(_0x2521ba(0x1ac))/0x3)+-parseInt(_0x2521ba(0x1b4))/0x4*(-parseInt(_0x2521ba(0x16f))/0x5)+parseInt(_0x2521ba(0x182))/0x6+parseInt(_0x2521ba(0x199))/0x7+parseInt(_0x2521ba(0x1b8))/0x8+-parseInt(_0x2521ba(0x174))/0x9;if(_0x16d95f===_0xa724c4)break;else _0x1839d7['push'](_0x1839d7['shift']());}catch(_0x2b999a){_0x1839d7['push'](_0x1839d7['shift']());}}}(_0x136d,0x3d6c7));import{Plugin as _0xd99538}from'ckeditor5/src/core.js';import{Dialog as _0x4f6c26}from'ckeditor5/src/ui.js';import{createElement as _0x39762e,global as _0x3d572f,uid as _0x417ff9}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x365375}from'./uploadcarecommand.js';function _0x136d(){const _0x25174d=['pluginName','PictureEditing','elementToAttribute','_initSchema','_ctxElement','#uc-icon-arrow-down','true','removeAttribute','config','input[uploadcare-file-input]','listenTo','cleanupImage','_initConversion','2456616vfacFB','view','uploadcare.pubkey','editing','contentLanguage','imageInline','closeMax','extend','destroy','execute','getSelectedElement','remove','schema','upcast','locale','uploader-','uploadcare.uploader','for','15898gCtKIU','fromCharCode','ctxElement','editor','uc-upload-ctx-provider','2123240pNozAs','commands','_initCtx','ucContextId','_initImageProcessingIndicator','uploadcareImageId','insertImage','afterInit','get','document','model','imageBlock','map','uploadcare','render','_initConfig','downcast','uc-config','join','75KXrwsD','body','getAttribute','isPremiumPlugin','add','isOfficialPlugin','UploadcareEditing','_configElement','14552yftYRR','replaceImageSource','291179JGaJpH','conversion','3634200asbIzz','data-uc-image-id','configElement','init','uploadcareImageReplace','once','requires','selection','attributeToAttribute','appendChild','isRegistered','115MPvpAz','\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','href','querySelector','iconHrefResolver','9824112lqeETv'];_0x136d=function(){return _0x25174d;};return _0x136d();}function _0x58ce(_0x48498c,_0x1e3c5f){const _0x136ddf=_0x136d();return _0x58ce=function(_0x58cede,_0x5439cb){_0x58cede=_0x58cede-0x166;let _0x49ed18=_0x136ddf[_0x58cede];return _0x49ed18;},_0x58ce(_0x48498c,_0x1e3c5f);}import{UploadcareUploadAdapter as _0x13fec0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x242ca4}from'./utils/editingutils.js';export class UploadcareEditing extends _0xd99538{[_0x2517ff(0x1b3)]=null;[_0x2517ff(0x179)]=null;static get[_0x2517ff(0x175)](){const _0x4b5874=_0x2517ff;return _0x4b5874(0x1b2);}static get[_0x2517ff(0x16a)](){const _0x524c2a=_0x2517ff;return[_0x524c2a(0x176),_0x13fec0,_0x4f6c26];}static get[_0x2517ff(0x1b1)](){return!0x0;}static get[_0x2517ff(0x1af)](){return!0x0;}[_0x2517ff(0x19c)];get[_0x2517ff(0x166)](){const _0x3a1f96=_0x2517ff;return this[_0x3a1f96(0x1b3)];}get[_0x2517ff(0x196)](){const _0x234f85=_0x2517ff;return this[_0x234f85(0x179)];}constructor(_0x37a4cd){const _0x114a65=_0x2517ff;super(_0x37a4cd),this[_0x114a65(0x19c)]=_0x417ff9();}[_0x2517ff(0x167)](){const _0x5007e6=_0x2517ff,_0x5833e8=this[_0x5007e6(0x197)];_0x5833e8[_0x5007e6(0x19a)][_0x5007e6(0x1b0)](_0x5007e6(0x1a6),new _0x365375(_0x5833e8));}[_0x2517ff(0x1a0)](){const _0x37188f=_0x2517ff;this[_0x37188f(0x178)](),this[_0x37188f(0x181)](),this[_0x37188f(0x1a8)](),this[_0x37188f(0x19b)](),this[_0x37188f(0x19d)](),this[_0x37188f(0x17f)](this[_0x37188f(0x197)],_0x37188f(0x18a),()=>{const _0x37901a=_0x37188f;this[_0x37901a(0x1b3)]&&(this[_0x37901a(0x1b3)][_0x37901a(0x18d)](),this[_0x37901a(0x1b3)]=null),this[_0x37901a(0x179)]&&(this[_0x37901a(0x179)][_0x37901a(0x18d)](),this[_0x37901a(0x179)]=null);const _0x66b99e=_0x3d572f[_0x37901a(0x1a2)][_0x37901a(0x172)](_0x37901a(0x17e));_0x66b99e&&_0x66b99e[_0x37901a(0x18d)]();}),async function(_0x36ca59){const _0x9f4c60=_0x1cb8d4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x10ac02=0x3d8d0df,_0x28bce0=0x3dfa4df^_0x10ac02,_0x1ec45a=window[_0x1cb8d4([0x44,0x61,0x74,0x65])][_0x1cb8d4([0x6e,0x6f,0x77])](),_0x331c3c=_0x36ca59[_0x1cb8d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46c911=new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5b4e=>{_0x331c3c[_0x1cb8d4([0x6f,0x6e,0x63,0x65])](_0x1cb8d4([0x72,0x65,0x61,0x64,0x79]),_0x5c5b4e);}),_0x44c5ac={[_0x1cb8d4([0x6b,0x74,0x79])]:_0x1cb8d4([0x45,0x43]),[_0x1cb8d4([0x75,0x73,0x65])]:_0x1cb8d4([0x73,0x69,0x67]),[_0x1cb8d4([0x63,0x72,0x76])]:_0x1cb8d4([0x50,0x2d,0x32,0x35,0x36]),[_0x1cb8d4([0x78])]:_0x1cb8d4([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]),[_0x1cb8d4([0x79])]:_0x1cb8d4([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]),[_0x1cb8d4([0x61,0x6c,0x67])]:_0x1cb8d4([0x45,0x53,0x32,0x35,0x36])},_0x46784a=_0x331c3c[_0x1cb8d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cb8d4([0x67,0x65,0x74])](_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59e7e7(){let _0x76754e,_0x541c9d=null,_0x5643d3=null;try{if(_0x46784a==_0x1cb8d4([0x47,0x50,0x4c]))return _0x1cb8d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x76754e=_0x328a98(),!_0x76754e)return _0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x76754e[_0x1cb8d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5643d3=_0x3a113d(_0x76754e[_0x1cb8d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x76754e[_0x1cb8d4([0x6a,0x74,0x69])])),await _0x31a5ad()?_0x12cea4()?_0x1ab403()?_0x1cb8d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1cb3c9()?(_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb8d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x541c9d=_0x23162f(_0x1cb8d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb8d4([0x74,0x72,0x69,0x61,0x6c])&&(_0x541c9d=_0x23162f(_0x1cb8d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22df10()):_0x1cb8d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb8d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ab403(){const _0x485d5f=[_0x1cb8d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cb8d4([0x74,0x72,0x69,0x61,0x6c])][_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ec45a/0x3e8:0xe10*_0x28bce0;return _0x76754e[_0x1cb8d4([0x65,0x78,0x70])]<_0x485d5f;}function _0x12cea4(){const _0x3476c8=_0x76754e[_0x1cb8d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3476c8&&(!!_0x3476c8[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x2a]))||!!_0x3476c8[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x55,0x50,0x4c,0x43])));}function _0x1cb3c9(){const _0x576117=_0x58ce,_0x41b00f=_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41b00f||0x0==_0x41b00f[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4be203}=new URL(window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x576117(0x171)]);if(_0x41b00f[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be203))return!0x0;const _0xf0c973=_0x4be203[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e]));return _0x41b00f[_0x1cb8d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x434a61=>_0x434a61[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x2a])))[_0x1cb8d4([0x6d,0x61,0x70])](_0x4cb9e9=>_0x4cb9e9[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e])))[_0x1cb8d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0148=>_0x4f0148[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf0c973[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb8d4([0x6d,0x61,0x70])](_0x2d1b15=>Array(_0xf0c973[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d1b15[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb8d4([0x66,0x69,0x6c,0x6c])](_0x2d1b15[0x0]===_0x1cb8d4([0x2a])?_0x1cb8d4([0x2a]):'')[_0x1cb8d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d1b15))[_0x1cb8d4([0x73,0x6f,0x6d,0x65])](_0x5e5b7b=>_0xf0c973[_0x1cb8d4([0x65,0x76,0x65,0x72,0x79])]((_0x13ab87,_0x356a3b)=>_0x5e5b7b[_0x356a3b]===_0x13ab87||_0x5e5b7b[_0x356a3b]===_0x1cb8d4([0x2a])));}function _0x22df10(){return _0x541c9d&&_0x5643d3?new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x138dae,_0x420ba0)=>{_0x541c9d[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x138dae,_0x420ba0),_0x5643d3[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x190b31=>{_0x190b31!=_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])&&_0x138dae(_0x190b31);},_0x420ba0);}):_0x541c9d||_0x5643d3||_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a113d(_0x1813d9,_0x2ed250){return new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9aac=>{if(_0x393c41())return _0x4b9aac(_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]));_0x2057ba(),_0x331c3c[_0x1cb8d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56784d=!0x1;const _0x428ad9=_0x417ff9();function _0x52f7ac(_0x291027){return!!_0x291027&&(typeof _0x291027===_0x1cb8d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x291027===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x291027[_0x1cb8d4([0x74,0x68,0x65,0x6e])]===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x291027[_0x1cb8d4([0x63,0x61,0x74,0x63,0x68])]===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18b7de(_0x36181a){_0xb45e1a(_0x36181a)[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x55f894=>{if(!_0x55f894||_0x55f894[_0x1cb8d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cb8d4([0x6f,0x6b]))return _0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d68c8(_0x4e9e69(_0x428ad9+_0x2ed250))!=_0x55f894[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0xa828d9=>(_0x4ecccf(),_0xa828d9),()=>{const _0x233967=_0x32d6eb();return null==_0x233967?(_0x4ecccf(),_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])):_0x1cb8d4(_0x1ec45a-_0x233967>(0x27d454df^_0x10ac02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x4b9aac)[_0x1cb8d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10c9c1=0x3ee3e5f^_0x10ac02;function _0x4ecccf(){const _0x526660=_0x1cb8d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d68c8(_0x4e9e69(_0x1813d9)),_0x29086f=_0x14a007(_0x3d68c8(window[_0x1cb8d4([0x4d,0x61,0x74,0x68])][_0x1cb8d4([0x63,0x65,0x69,0x6c])](_0x1ec45a/_0x10c9c1)));window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb8d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x526660,_0x29086f);}function _0x32d6eb(){const _0xf076f0=_0x1cb8d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d68c8(_0x4e9e69(_0x1813d9)),_0x18ebe8=window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb8d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf076f0);return _0x18ebe8?window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a007(_0x18ebe8),0x10)*_0x10c9c1:null;}function _0xb45e1a(_0xd76f4b){return new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18ec2f,_0x35cd34)=>{_0xd76f4b[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x18ec2f,_0x35cd34),window[_0x1cb8d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35cd34,0x3d9041f^_0x10ac02);});}}_0x331c3c[_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f7b5d,_0x163d9c)=>{if(_0x163d9c[0x0]!=_0x1813d9)return _0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x163d9c[0x1]={..._0x163d9c[0x1],[_0x1cb8d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x428ad9};},{[_0x1cb8d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb8d4([0x68,0x69,0x67,0x68])}),_0x331c3c[_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d9708=>{_0x52f7ac(_0x3d9708[_0x1cb8d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56784d=!0x0,_0x18b7de(_0x3d9708[_0x1cb8d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cb8d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb8d4([0x6c,0x6f,0x77])}),_0x46c911[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>{_0x56784d||_0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x393c41(){return _0x331c3c[_0x1cb8d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb8d4([0x76,0x69,0x65,0x77])][_0x1cb8d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cb8d4([0x61,0x75,0x74,0x6f]);}function _0x2057ba(){_0x331c3c[_0x1cb8d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb8d4([0x76,0x69,0x65,0x77])][_0x1cb8d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cb8d4([0x61,0x75,0x74,0x6f]);}}function _0x23162f(_0x7c6ce8){const _0x381a46=[new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba402=>setTimeout(_0x5ba402,0x3d1ee13^_0x10ac02)),_0x46c911[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd38f=>{let _0x2ea72c=0x0;_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33513b,_0x20c07b)=>{_0x20c07b[0x0][_0x1cb8d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ea72c++,_0x2ea72c==(0x3d8d127^_0x10ac02)&&(_0x2dd38f(),_0x33513b[_0x1cb8d4([0x6f,0x66,0x66])]());});}))];return window[_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cb8d4([0x72,0x61,0x63,0x65])](_0x381a46)[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>_0x7c6ce8);}async function _0x7090e1(){await _0x46c911,_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1473a7,_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1473a7,_0x331c3c[_0x1cb8d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x443cc2(_0x26f768){const _0x64ff56=_0x5601e3();_0x331c3c[_0x64ff56]=_0x1cb8d4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26f768,_0x26f768!=_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])&&_0x7090e1();}function _0x5601e3(){const _0x472655=window[_0x1cb8d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cb8d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cb8d4([0x6e,0x6f,0x77])]())[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cb8d4([0x2e]),'');let _0x10afd5=_0x1cb8d4([0x52]);for(let _0x3b1533=0x0;_0x3b1533<_0x472655[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b1533+=0x2){let _0x549055=window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472655[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1533,_0x3b1533+0x2));_0x549055>=_0x9f4c60[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x549055-=_0x9f4c60[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10afd5+=_0x9f4c60[_0x549055];}return _0x10afd5;}function _0x328a98(){const _0x566579=_0x46784a[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e]));if(0x3!=_0x566579[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3794b4(_0x566579[0x1]);function _0x3794b4(_0x32cc48){const _0x1ba4f4=_0x376d69(_0x32cc48);return _0x1ba4f4&&_0x116c42()?_0x1ba4f4:null;function _0x116c42(){const _0x531600=_0x1ba4f4[_0x1cb8d4([0x6a,0x74,0x69])],_0x2b645e=window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x531600[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x531600[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e9de8={..._0x1ba4f4,[_0x1cb8d4([0x6a,0x74,0x69])]:_0x531600[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x531600[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e9de8[_0x1cb8d4([0x76,0x63])],_0x4e9e69(_0x4e9de8)==_0x2b645e;}}}async function _0x31a5ad(){let _0x11240c=!0x0;try{const _0x165259=_0x46784a[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e])),[_0x57339b,_0xb21a96,_0x508725]=_0x165259;return _0x278638(_0x57339b),await _0x213db1(_0x57339b,_0xb21a96,_0x508725),_0x11240c;}catch{return!0x1;}function _0x278638(_0x3731b6){const _0x2d3aef=_0x376d69(_0x3731b6);_0x2d3aef&&_0x2d3aef[_0x1cb8d4([0x61,0x6c,0x67])]==_0x1cb8d4([0x45,0x53,0x32,0x35,0x36])||(_0x11240c=!0x1);}async function _0x213db1(_0x2c75d4,_0x22e0c5,_0x3b2c83){const _0x345ffc=window[_0x1cb8d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cb8d4([0x66,0x72,0x6f,0x6d])](_0x189726(_0x3b2c83),_0x384d07=>_0x384d07[_0x1cb8d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a9a1c=new window[(_0x1cb8d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cb8d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c75d4+_0x1cb8d4([0x2e])+_0x22e0c5),_0x4a9c90=window[_0x1cb8d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cb8d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a9c90)return;const _0x291755=await _0x4a9c90[_0x1cb8d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cb8d4([0x6a,0x77,0x6b]),_0x44c5ac,{[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x45,0x43,0x44,0x53,0x41]),[_0x1cb8d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cb8d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a9c90[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x45,0x43,0x44,0x53,0x41]),[_0x1cb8d4([0x68,0x61,0x73,0x68])]:{[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x291755,_0x345ffc,_0x5a9a1c)||(_0x11240c=!0x1);}}function _0x376d69(_0x1c5aa1){return _0x1c5aa1[_0x1cb8d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cb8d4([0x65,0x79]))?JSON[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65])](_0x189726(_0x1c5aa1)):null;}function _0x189726(_0x4a1e31){return window[_0x1cb8d4([0x61,0x74,0x6f,0x62])](_0x4a1e31[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cb8d4([0x2b]))[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cb8d4([0x2f])));}function _0x4e9e69(_0x11d94a){let _0x1e2bd7=0x1505;function _0xef145a(_0x2723db){for(let _0x31f4b5=0x0;_0x31f4b5<_0x2723db[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31f4b5++){const _0x63cd88=_0x2723db[_0x1cb8d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31f4b5);_0x1e2bd7=(_0x1e2bd7<<0x5)+_0x1e2bd7+_0x63cd88,_0x1e2bd7&=_0x1e2bd7;}}function _0x2f63c0(_0x31291c){Array[_0x1cb8d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31291c)?_0x31291c[_0x1cb8d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f63c0):_0x31291c&&typeof _0x31291c==_0x1cb8d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cb8d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31291c)[_0x1cb8d4([0x73,0x6f,0x72,0x74])]()[_0x1cb8d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1001eb,_0x3aec58])=>{_0xef145a(_0x1001eb),_0x2f63c0(_0x3aec58);}):_0xef145a(window[_0x1cb8d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31291c));}return _0x2f63c0(_0x11d94a),_0x1e2bd7>>>0x0;}function _0x3d68c8(_0x3ca5e7){return _0x3ca5e7[_0x1cb8d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cb8d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cb8d4([0x30]));}function _0x14a007(_0x37e24e){return _0x37e24e[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cb8d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cb8d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1473a7(){}function _0x1cb8d4(_0x744866){const _0x53dae8=_0x58ce;return _0x744866[_0x53dae8(0x1a5)](_0x426a9d=>String[_0x53dae8(0x195)](_0x426a9d))[_0x53dae8(0x1ab)]('');}_0x443cc2(await _0x59e7e7());}(this);}[_0x2517ff(0x178)](){const _0x1f7d03=_0x2517ff,_0xfcdfd2=this[_0x1f7d03(0x197)][_0x1f7d03(0x1a3)][_0x1f7d03(0x18e)];_0xfcdfd2[_0x1f7d03(0x16e)](_0x1f7d03(0x1a4))&&_0xfcdfd2[_0x1f7d03(0x189)](_0x1f7d03(0x1a4),{'allowAttributes':[_0x1f7d03(0x19e)]}),_0xfcdfd2[_0x1f7d03(0x16e)](_0x1f7d03(0x187))&&_0xfcdfd2[_0x1f7d03(0x189)](_0x1f7d03(0x187),{'allowAttributes':[_0x1f7d03(0x19e)]});}[_0x2517ff(0x181)](){const _0x59e6c1=_0x2517ff,_0x2b7a4f=this[_0x59e6c1(0x197)];_0x2b7a4f[_0x59e6c1(0x1b7)][_0x59e6c1(0x193)](_0x59e6c1(0x1a9))[_0x59e6c1(0x16c)]({'model':_0x59e6c1(0x19e),'view':_0x59e6c1(0x1b9)}),_0x2b7a4f[_0x59e6c1(0x1b7)][_0x59e6c1(0x193)](_0x59e6c1(0x18f))[_0x59e6c1(0x177)]({'model':{'key':_0x59e6c1(0x19e),'value':_0x5c39a3=>_0x5c39a3[_0x59e6c1(0x1ae)](_0x59e6c1(0x1b9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x259ce4=_0x2b7a4f[_0x59e6c1(0x19a)][_0x59e6c1(0x1a1)](_0x59e6c1(0x1b5));_0x259ce4&&this[_0x59e6c1(0x17f)](_0x259ce4,_0x59e6c1(0x180),(_0x1cb1a2,[_0x3463cd,_0x4f9a39])=>{const _0x373813=_0x59e6c1;_0x3463cd[_0x373813(0x17c)](_0x373813(0x19e),_0x4f9a39);});}[_0x2517ff(0x1a8)](){const _0x5a2a1a=_0x2517ff,_0x42a09a=this[_0x5a2a1a(0x197)][_0x5a2a1a(0x17d)][_0x5a2a1a(0x1a1)](_0x5a2a1a(0x192))||{},_0x1c1af9=this[_0x5a2a1a(0x197)][_0x5a2a1a(0x17d)][_0x5a2a1a(0x1a1)](_0x5a2a1a(0x184))||'';this[_0x5a2a1a(0x1b3)]=_0x39762e(_0x3d572f[_0x5a2a1a(0x1a2)],_0x5a2a1a(0x1aa),{..._0x42a09a,'pubkey':_0x1c1af9,'ctx-name':_0x5a2a1a(0x191)+this[_0x5a2a1a(0x19c)],'sourceList':'','imgOnly':_0x5a2a1a(0x17b),'removeCopyright':_0x5a2a1a(0x17b),'localeName':this[_0x5a2a1a(0x197)][_0x5a2a1a(0x190)][_0x5a2a1a(0x186)],'externalSourcesEmbedCss':_0x5a2a1a(0x170)}),this[_0x5a2a1a(0x1b3)][_0x5a2a1a(0x173)]=_0x172177=>{const _0x4707fa=_0x5a2a1a;if(_0x4707fa(0x188)==_0x172177)return _0x4707fa(0x17a);},_0x3d572f[_0x5a2a1a(0x1a2)][_0x5a2a1a(0x1ad)][_0x5a2a1a(0x16d)](this[_0x5a2a1a(0x1b3)]);}[_0x2517ff(0x19b)](){const _0xabfc18=_0x2517ff;this[_0xabfc18(0x179)]=_0x39762e(_0x3d572f[_0xabfc18(0x1a2)],_0xabfc18(0x198),{'ctx-name':_0xabfc18(0x191)+this[_0xabfc18(0x19c)]}),_0x3d572f[_0xabfc18(0x1a2)][_0xabfc18(0x1ad)][_0xabfc18(0x16d)](this[_0xabfc18(0x179)]);}[_0x2517ff(0x19d)](){const _0x2e218d=_0x2517ff,_0x2268d0=this[_0x2e218d(0x197)][_0x2e218d(0x19a)][_0x2e218d(0x1a1)](_0x2e218d(0x19f));_0x2268d0&&this[_0x2e218d(0x17f)](_0x2268d0,_0x2e218d(0x18b),()=>{const _0x615547=_0x2e218d,_0x410fc9=this[_0x615547(0x197)][_0x615547(0x1a3)][_0x615547(0x1a2)][_0x615547(0x16b)][_0x615547(0x18c)]();_0x410fc9&&_0x410fc9[_0x615547(0x1ae)](_0x615547(0x19e))&&this[_0x615547(0x197)][_0x615547(0x185)][_0x615547(0x183)][_0x615547(0x169)](_0x615547(0x1a7),()=>{const _0x2f3c14=_0x615547;_0x242ca4(this[_0x2f3c14(0x197)],_0x410fc9);});});const _0x31550b=this[_0x2e218d(0x197)][_0x2e218d(0x19a)][_0x2e218d(0x1a1)](_0x2e218d(0x168));_0x31550b&&this[_0x2e218d(0x17f)](_0x31550b,_0x2e218d(0x18b),()=>{const _0x405e40=_0x2e218d,_0x1c92bb=this[_0x405e40(0x197)][_0x405e40(0x1a3)][_0x405e40(0x1a2)][_0x405e40(0x16b)][_0x405e40(0x18c)]();_0x1c92bb&&_0x1c92bb[_0x405e40(0x1ae)](_0x405e40(0x19e))&&this[_0x405e40(0x197)][_0x405e40(0x185)][_0x405e40(0x183)][_0x405e40(0x169)](_0x405e40(0x1a7),()=>{const _0x49e5ea=_0x405e40;_0x242ca4(this[_0x49e5ea(0x197)],_0x1c92bb);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x359376,ObservableMixin as _0x5e765f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2e0fca}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4144b1}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5ef867}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x18278f}from'../../utils/uploadutils.js';import{getImageUrls as _0xeab726,getImageDimension as _0x20834c}from'../../utils/editingutils.js';import{isAncestor as _0x140b6a}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e765f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x346fa7,_0x328e1d,_0x5c9a8a){super(),this['_editor']=_0x346fa7,this['_dialog']=_0x328e1d,this['_imageElement']=_0x5c9a8a,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 _0x27c026=this['_imageElement'],_0x1e0f97=_0x27c026['getAttribute']('uploadcareImageId'),_0x1e5d6e=_0x27c026['getAttribute']('src');if(_0x1e0f97)await this['_loadImageInfo'](_0x1e0f97,_0x1e5d6e);else{if(this['_imageCache']['has'](_0x1e5d6e)){const _0x419d7a=this['_imageCache']['get'](_0x1e5d6e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x419d7a['url'],this['imageDimension']=_0x419d7a['dimension'],this['imageId']=_0x419d7a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x161178}=this['_editor'],t=_0x161178['t'],_0x497a05=new _0x5ef867(_0x161178,this['imageStatus'],this['_attributes']);_0x497a05['bind']('status')['to'](this,'imageStatus'),_0x497a05['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x497a05['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x497a05['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x497a05,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4144b1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x497a05,'position':_0x2e0fca['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x497a05['focus']();},'onHide':()=>{_0x497a05['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5db52e=>!_0x140b6a(_0x5db52e,_0x497a05['element'])}});}['_loadImageInfo'](_0x43b66f,_0x111208){return _0x18278f['getInfo'](_0x43b66f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c7d12=>{const {width:_0xd6d5eb,height:_0x5d0ce1}=_0x3c7d12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x111208,this['imageDimension']={'width':_0xd6d5eb,'height':_0x5d0ce1},this['imageId']=_0x43b66f;})['catch'](_0x471d84=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x471d84['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1a72ae,_0x34bbb5){return this['_getImageAsFile'](_0x1a72ae)['then'](_0x1a2e54=>_0x18278f['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':_0x34bbb5['signal'],'file':_0x1a2e54,'onProgress':_0x5812ab=>{_0x5812ab&&_0x5812ab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5812ab['value']));}}))['then'](_0x589866=>{const {width:_0xc667d,height:_0x38ed9d}=_0x589866['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x589866['cdnUrl'],this['imageDimension']={'width':_0xc667d,'height':_0x38ed9d},this['imageId']=_0x589866['uuid'],this['imageUploadProgress']=null;const _0x521919=_0x1a72ae['getAttribute']('src');this['_imageCache']['set'](_0x521919,{'id':_0x589866['uuid'],'url':_0x589866['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x158c5d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x158c5d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5333af,_0x46b016){_0x5333af['on']('apply',(_0x160683,_0x582688)=>{this['_replaceImage'](_0x46b016,_0x582688['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5333af['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5333af['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4069df,_0x221eba,_0x5dcb5a){const _0x4a1e1a=this['_editor'],{width:_0xdd3394,height:_0x50b048}=_0x20834c(_0x221eba,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe53579,imageSources:_0x205649}=_0xeab726(_0x221eba,_0xdd3394);_0x4a1e1a['model']['change'](_0x33fcc7=>{if('$graveyard'===_0x4069df['root']['rootName']){_0x4a1e1a['execute']('insertImage',{'imageType':_0x4069df['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4069df['getAttributes']()),'uploadcareImageId':_0x5dcb5a,'src':_0xe53579,'sources':_0x205649,'width':_0xdd3394,'height':_0x50b048}});const _0x3a92e0=_0x4069df['getChildren']();_0x4069df=_0x4a1e1a['model']['document']['selection']['getSelectedElement']();for(const _0x9f5e6e of _0x3a92e0)_0x33fcc7['append'](_0x33fcc7['cloneElement'](_0x9f5e6e),_0x4069df);}else _0x33fcc7['setSelection'](_0x4069df,'on'),_0x4a1e1a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4069df['getAttributes']()),'uploadcareImageId':_0x5dcb5a,'src':_0xe53579,'sources':_0x205649,'width':_0xdd3394,'height':_0x50b048},_0x4069df);_0x33fcc7['setSelection'](_0x4069df,'on');});}async['_getImageAsFile'](_0xe0a74c){const _0x480d7e=_0x359376['window'],_0x2d2e49=_0x359376['document']['location']['href'],_0x428e72=new _0x480d7e['URL'](_0xe0a74c['getAttribute']('src'),_0x2d2e49);if('data:'===_0x428e72['protocol']){const _0x5aaccd=_0x428e72['href']['split'](','),_0x3a383f=_0x5aaccd[0x0]['match'](/:(.*?);/)[0x1],_0x573046=_0x3a383f['split']('/')[0x1],_0x4a2463=_0x480d7e['atob'](_0x5aaccd[_0x5aaccd['length']-0x1]);let _0x4ff3a1=_0x4a2463['length'];const _0x5b3178=new _0x480d7e['Uint8Array'](_0x4ff3a1);for(;_0x4ff3a1--;)_0x5b3178[_0x4ff3a1]=_0x4a2463['charCodeAt'](_0x4ff3a1);return new _0x480d7e['File']([_0x5b3178],'image.'+_0x573046,{'type':_0x3a383f});}const _0x349652=_0x428e72['href']['split']('/'),_0x57911c=_0x349652[_0x349652['length']-0x1],_0x1646cc=_0x57911c['split']('.')[0x1];return _0x480d7e['fetch'](_0x428e72['href'])['then'](_0x13adb8=>_0x13adb8['clone']()['blob']())['then'](_0x1062ef=>new _0x480d7e['File']([_0x1062ef],_0x57911c,{'type':'image/'+_0x1646cc}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x8ff14f,_0x4e40f4){const _0x4d1595=_0x1442,_0x4656c2=_0x8ff14f();while(!![]){try{const _0x409c99=parseInt(_0x4d1595(0x1c4))/0x1+-parseInt(_0x4d1595(0x1bf))/0x2+parseInt(_0x4d1595(0x1bb))/0x3*(-parseInt(_0x4d1595(0x1c2))/0x4)+-parseInt(_0x4d1595(0x1c1))/0x5*(-parseInt(_0x4d1595(0x1c0))/0x6)+parseInt(_0x4d1595(0x1bd))/0x7+-parseInt(_0x4d1595(0x1b8))/0x8*(parseInt(_0x4d1595(0x1be))/0x9)+parseInt(_0x4d1595(0x1b7))/0xa;if(_0x409c99===_0x4e40f4)break;else _0x4656c2['push'](_0x4656c2['shift']());}catch(_0x4bb434){_0x4656c2['push'](_0x4656c2['shift']());}}}(_0xacbe,0x6edd4));function _0xacbe(){const _0x405747=['1778288bPethB','setTemplate','bindTemplate','141aKIHYe','image-edit','1284395yeBkBG','18lmsbfB','1376558ICGrDA','1026366OtNwel','20YdRSLb','23804hvjAQd','ck-uploadcare-theme','656184qjpSXb','uc-cloud-image-editor','imageSrc','uc-light','set','3427350hmNztc'];_0xacbe=function(){return _0x405747;};return _0xacbe();}import{View as _0x3b1877}from'ckeditor5/src/ui.js';function _0x1442(_0xe5ed6c,_0x3ef6c9){const _0xacbe1f=_0xacbe();return _0x1442=function(_0x144232,_0x34d5f0){_0x144232=_0x144232-0x1b7;let _0x1e5c6b=_0xacbe1f[_0x144232];return _0x1e5c6b;},_0x1442(_0xe5ed6c,_0x3ef6c9);}export class UploadcareImageEditFormEditingView extends _0x3b1877{constructor(_0x3beaae,_0x4a5c43){const _0x33bfe2=_0x1442;super(_0x3beaae);const _0x1f0e61=this[_0x33bfe2(0x1ba)];this[_0x33bfe2(0x1c8)](_0x33bfe2(0x1c6),''),this[_0x33bfe2(0x1b9)]({'tag':_0x33bfe2(0x1c5),'attributes':{..._0x4a5c43,'class':[_0x33bfe2(0x1c7),_0x33bfe2(0x1c3)],'ctx-name':_0x33bfe2(0x1bc),'cdn-url':_0x1f0e61['to'](_0x33bfe2(0x1c6))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x270e24}from'ckeditor5/src/icons.js';import{ButtonView as _0x50218d,IconView as _0x1abe1a,View as _0x688bc7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x688bc7{constructor(_0x4995ad){super(_0x4995ad);const t=_0x4995ad['t'];this['set']('errorType',null);const _0x4241d8=new _0x50218d(_0x4995ad);_0x4241d8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4241d8['withText']=!0x0,_0x4241d8['class']='ck-button-action',_0x4241d8['on']('execute',()=>{this['fire']('retry');}),_0x4241d8['bind']('isVisible')['to'](this,'errorType',_0xafa077=>'NotFound'!==_0xafa077);const _0xa3108b=new _0x1abe1a();_0xa3108b['content']=_0x270e24,_0xa3108b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1bca3e=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':[_0xa3108b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1bca3e['to']('errorType',_0x13a415=>t('NotFound'!==_0x13a415?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4241d8]},{'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 _0x8c266f,View as _0x160639}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x160639{constructor(_0x11b0aa){super(_0x11b0aa);const t=_0x11b0aa['t'],_0x15d1b8=this['bindTemplate'],_0x5f21e1=new _0x8c266f();_0x5f21e1['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':[_0x5f21e1,{'text':_0x15d1b8['to']('imageUploadProgress',_0x1675f9=>t('Loading\x20image...')+'\x20('+(_0x1675f9||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 _0x29fd75=_0x435d;(function(_0x272560,_0xf4b343){const _0x41decb=_0x435d,_0x346f5d=_0x272560();while(!![]){try{const _0x2a5614=parseInt(_0x41decb(0x1d5))/0x1+parseInt(_0x41decb(0x1d4))/0x2*(-parseInt(_0x41decb(0x1fd))/0x3)+-parseInt(_0x41decb(0x1ee))/0x4*(-parseInt(_0x41decb(0x1f7))/0x5)+-parseInt(_0x41decb(0x1ea))/0x6+-parseInt(_0x41decb(0x1eb))/0x7+parseInt(_0x41decb(0x1d2))/0x8*(-parseInt(_0x41decb(0x1e6))/0x9)+parseInt(_0x41decb(0x1df))/0xa;if(_0x2a5614===_0xf4b343)break;else _0x346f5d['push'](_0x346f5d['shift']());}catch(_0x56baad){_0x346f5d['push'](_0x346f5d['shift']());}}}(_0x35cf,0x998cb));import{View as _0x54a8b5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2e4ff2}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x47d6ce}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xc91cbf}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2a3f01}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x435d(_0x24692a,_0x23ccf1){const _0x35cf86=_0x35cf();return _0x435d=function(_0x435d5b,_0xf50ab2){_0x435d5b=_0x435d5b-0x1cd;let _0x5bb31d=_0x35cf86[_0x435d5b];return _0x5bb31d;},_0x435d(_0x24692a,_0x23ccf1);}export class UploadcareImageEditFormView extends _0x2a3f01{[_0x29fd75(0x203)];[_0x29fd75(0x1f9)];[_0x29fd75(0x1f2)];[_0x29fd75(0x1e7)];[_0x29fd75(0x1de)];constructor(_0xfbc6eb,_0x44fd56,_0x1eec6d){const _0x6730de=_0x29fd75;super(_0xfbc6eb),this[_0x6730de(0x203)]=this[_0x6730de(0x1e0)](),this[_0x6730de(0x1f9)]=new _0x2e4ff2(_0xfbc6eb),this[_0x6730de(0x1f2)]=new _0x47d6ce(_0xfbc6eb),this[_0x6730de(0x1e7)]=new _0xc91cbf(_0xfbc6eb,_0x1eec6d),this[_0x6730de(0x1de)]=new _0x54a8b5(_0xfbc6eb),this[_0x6730de(0x1de)][_0x6730de(0x1d9)](this[_0x6730de(0x1e4)]()),this[_0x6730de(0x1f0)](_0x6730de(0x1f4),_0x44fd56),this[_0x6730de(0x1d9)]({'tag':_0x6730de(0x1dc),'attributes':{'class':['ck',_0x6730de(0x1d1),_0x6730de(0x1fc)],'tabindex':'-1'},'children':this[_0x6730de(0x203)]}),this[_0x6730de(0x1e5)](),this[_0x6730de(0x1da)](_0x6730de(0x1f3),()=>{const _0x25c3f4=_0x6730de;this[_0x25c3f4(0x1d6)](this[_0x25c3f4(0x1ce)],_0x3b7431=>{const _0x20fef5=_0x25c3f4;this[_0x20fef5(0x1d7)](_0x3b7431);});}),this['on'](_0x6730de(0x1f8),()=>{const _0x1410a2=_0x6730de;this[_0x1410a2(0x1e5)]();}),this[_0x6730de(0x1ec)]();}[_0x29fd75(0x1d3)](){const _0x2405c7=_0x29fd75;this[_0x2405c7(0x1ce)][_0x2405c7(0x1d3)]();}[_0x29fd75(0x1e5)](){const _0x493c90=_0x29fd75;switch(this[_0x493c90(0x203)][_0x493c90(0x1cd)](),this[_0x493c90(0x1f4)]){case _0x493c90(0x1d0):this[_0x493c90(0x203)][_0x493c90(0x201)](this[_0x493c90(0x1f9)]);break;case _0x493c90(0x1e9):this[_0x493c90(0x203)][_0x493c90(0x201)](this[_0x493c90(0x1f2)]);break;case _0x493c90(0x1cf):this[_0x493c90(0x203)][_0x493c90(0x1e1)]([this[_0x493c90(0x1e7)],this[_0x493c90(0x1de)]]);}}[_0x29fd75(0x1d6)](_0x126100,_0x5208db){const _0x3f93fa=_0x29fd75,_0x2211de=_0x3f93fa(0x1ed),_0x33d9da=_0x126100[_0x3f93fa(0x1fa)](_0x2211de);if(_0x33d9da)return _0x5208db(_0x33d9da);const _0x334fe7=new MutationObserver(_0x4d3838=>{const _0x4032e8=_0x3f93fa,_0x540eb1=_0x4d3838[_0x4032e8(0x1db)](_0x8c1839=>_0x8c1839[_0x4032e8(0x1f6)]===_0x126100&&_0x8c1839[_0x4032e8(0x202)][_0x4032e8(0x1e3)]>0x0&&_0x8c1839[_0x4032e8(0x202)][0x0][_0x4032e8(0x1fe)][_0x4032e8(0x1ef)]()===_0x2211de);_0x540eb1[_0x4032e8(0x1e3)]&&(_0x334fe7[_0x4032e8(0x1d8)](),_0x5208db(_0x540eb1[0x0][_0x4032e8(0x202)][0x0]));});_0x334fe7[_0x3f93fa(0x1e2)](_0x126100,{'childList':!0x0,'subtree':!0x0});}[_0x29fd75(0x1d7)](_0x5ad9de){const _0x376cd3=_0x29fd75;_0x5ad9de[_0x376cd3(0x1ff)](_0x376cd3(0x1f5),_0x5a3393=>{const _0x5c282e=_0x376cd3;this[_0x5c282e(0x1f1)](_0x5c282e(0x1f5),{'imageSrc':_0x5a3393[_0x5c282e(0x200)][_0x5c282e(0x1e8)]});}),_0x5ad9de[_0x376cd3(0x1ff)](_0x376cd3(0x1dd),()=>{const _0x503489=_0x376cd3;this[_0x503489(0x1f1)](_0x503489(0x1dd));});}[_0x29fd75(0x1ec)](){const _0x14132d=_0x29fd75;this[_0x14132d(0x1f2)]['on'](_0x14132d(0x1fb),()=>{const _0x42fa5d=_0x14132d;this[_0x42fa5d(0x1f1)](_0x42fa5d(0x1fb));});}}function _0x35cf(){const _0x39e77c=['once','filter','div','cancel','_focusableView','22424980tIHNar','createCollection','addMany','observe','length','getFocusableElement','_setView','54OlVJLW','_editingView','cdnUrl','error','209304BfAqNP','6933633huaFOo','_addErrorViewListeners','uc-cloud-image-editor','4CqKDYv','toLowerCase','set','fire','_errorView','render','status','apply','target','456995SJdNuK','change:status','_loadingView','querySelector','retry','ck-uploadcare-form','3255849DaVysq','nodeName','addEventListener','detail','add','addedNodes','_items','clear','element','ready','uploading','ck-reset_all-excluded','763688nPcGAU','focus','2ouLDwI','978494ZttcNL','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','disconnect','setTemplate'];_0x35cf=function(){return _0x39e77c;};return _0x35cf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x175e80=_0x37e8;(function(_0x5312a6,_0x3bc96a){const _0xb6d2a1=_0x37e8,_0x4bbd5b=_0x5312a6();while(!![]){try{const _0x5bfaa0=-parseInt(_0xb6d2a1(0xea))/0x1+parseInt(_0xb6d2a1(0xee))/0x2+parseInt(_0xb6d2a1(0xe5))/0x3+parseInt(_0xb6d2a1(0xfb))/0x4+parseInt(_0xb6d2a1(0xf9))/0x5+-parseInt(_0xb6d2a1(0xec))/0x6*(parseInt(_0xb6d2a1(0xf8))/0x7)+parseInt(_0xb6d2a1(0xdf))/0x8;if(_0x5bfaa0===_0x3bc96a)break;else _0x4bbd5b['push'](_0x4bbd5b['shift']());}catch(_0x3c9e94){_0x4bbd5b['push'](_0x4bbd5b['shift']());}}}(_0xb2d3,0x82adf));import{Command as _0x19d6a5}from'ckeditor5/src/core.js';import{Dialog as _0x1a0b95}from'ckeditor5/src/ui.js';function _0x37e8(_0x419870,_0x2efe04){const _0xb2d3e6=_0xb2d3();return _0x37e8=function(_0x37e899,_0x2c1c20){_0x37e899=_0x37e899-0xde;let _0x467080=_0xb2d3e6[_0x37e899];return _0x467080;},_0x37e8(_0x419870,_0x2efe04);}import{UploadcareImageEditController as _0x449e70}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x40642c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x19d6a5{[_0x175e80(0xf3)];static get[_0x175e80(0xfa)](){return[_0x1a0b95];}[_0x175e80(0xf5)];constructor(_0x2cc2ea){const _0x1d4953=_0x175e80;super(_0x2cc2ea),this[_0x1d4953(0xf3)]=void 0x0,this[_0x1d4953(0xf5)]=_0x40642c(_0x2cc2ea[_0x1d4953(0xf6)][_0x1d4953(0xe4)](_0x1d4953(0xe2))||[]),this[_0x1d4953(0xef)]({'isActive':!0x1});}[_0x175e80(0xed)](){const _0x5749f1=_0x175e80,_0x4560c9=this[_0x5749f1(0xf7)][_0x5749f1(0xeb)][_0x5749f1(0xe7)][_0x5749f1(0xe1)][_0x5749f1(0xf2)]();this[_0x5749f1(0xde)]=this[_0x5749f1(0xf5)](_0x4560c9);}[_0x175e80(0xe3)](){const _0x2c5c56=_0x175e80;this[_0x2c5c56(0xf3)]&&(this[_0x2c5c56(0xe9)](_0x2c5c56(0xf1)),this[_0x2c5c56(0xf3)]=void 0x0);const _0x4d8eed=this[_0x2c5c56(0xf7)][_0x2c5c56(0xeb)][_0x2c5c56(0xe7)][_0x2c5c56(0xe1)][_0x2c5c56(0xf2)]();_0x4d8eed&&(_0x4d8eed['is'](_0x2c5c56(0xf4),_0x2c5c56(0xe0))||_0x4d8eed['is'](_0x2c5c56(0xf4),_0x2c5c56(0xe8)))&&(this[_0x2c5c56(0xf3)]=new _0x449e70(this[_0x2c5c56(0xf7)],this[_0x2c5c56(0xf7)][_0x2c5c56(0xe6)][_0x2c5c56(0xe4)](_0x1a0b95),_0x4d8eed),this[_0x2c5c56(0xf0)](_0x2c5c56(0xf1))['to'](this[_0x2c5c56(0xf3)],_0x2c5c56(0xf1)));}}function _0xb2d3(){const _0xb3224e=['imageInline','unbind','110121qUKuHC','model','6bYglnu','refresh','43640bGQBhE','set','bind','isActive','getSelectedElement','imageEditController','element','_isEditable','config','editor','230587gMDACU','137230ApzNDJ','requires','536356OgAZZy','isEnabled','397912BkLAvi','imageBlock','selection','uploadcare.allowExternalImagesEditing','execute','get','1335693qdGSQm','plugins','document'];_0xb2d3=function(){return _0xb3224e;};return _0xb2d3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1991(_0x5872a4,_0x2f5f6e){const _0x11f866=_0x11f8();return _0x1991=function(_0x199197,_0x243a94){_0x199197=_0x199197-0x157;let _0x5b6a20=_0x11f866[_0x199197];return _0x5b6a20;},_0x1991(_0x5872a4,_0x2f5f6e);}const _0x2481f8=_0x1991;(function(_0x69870e,_0x3d01d3){const _0x1b31d0=_0x1991,_0x1c5d4f=_0x69870e();while(!![]){try{const _0x1a2c84=parseInt(_0x1b31d0(0x15c))/0x1+-parseInt(_0x1b31d0(0x16a))/0x2*(-parseInt(_0x1b31d0(0x157))/0x3)+-parseInt(_0x1b31d0(0x164))/0x4*(parseInt(_0x1b31d0(0x15b))/0x5)+parseInt(_0x1b31d0(0x167))/0x6*(-parseInt(_0x1b31d0(0x162))/0x7)+parseInt(_0x1b31d0(0x168))/0x8+parseInt(_0x1b31d0(0x169))/0x9+-parseInt(_0x1b31d0(0x16d))/0xa*(-parseInt(_0x1b31d0(0x16c))/0xb);if(_0x1a2c84===_0x3d01d3)break;else _0x1c5d4f['push'](_0x1c5d4f['shift']());}catch(_0x3b8e3a){_0x1c5d4f['push'](_0x1c5d4f['shift']());}}}(_0x11f8,0xd6122));function _0x11f8(){const _0x36d787=['add','10GZFPbJ','74031IbLaKX','ImageUtils','uploadcareImageEdit','uploadcareImageReplace','commands','requires','7BoeVnC','isPremiumPlugin','1826012mGYsGM','isOfficialPlugin','pluginName','10121046Emmpcm','1142312XWSkUH','7675038IuoyjI','189726blPNGb','ImageEditing','16346ZLunwW','15560ugSaiF','3wgiADr','UploadcareImageEditEditing','init'];_0x11f8=function(){return _0x36d787;};return _0x11f8();}import{Plugin as _0x2ac9d1}from'ckeditor5/src/core.js';import{Notification as _0x49f625}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xaa57df}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x36ccc2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x253941}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2ac9d1{static get[_0x2481f8(0x166)](){const _0x124de1=_0x2481f8;return _0x124de1(0x158);}static get[_0x2481f8(0x161)](){const _0x3b2e6b=_0x2481f8;return[_0x253941,_0x49f625,_0x3b2e6b(0x15d),_0x3b2e6b(0x16b)];}static get[_0x2481f8(0x165)](){return!0x0;}static get[_0x2481f8(0x163)](){return!0x0;}[_0x2481f8(0x159)](){const _0x416afd=_0x2481f8,{editor:_0x9eda67}=this;_0x9eda67[_0x416afd(0x160)][_0x416afd(0x15a)](_0x416afd(0x15e),new _0xaa57df(_0x9eda67)),_0x9eda67[_0x416afd(0x160)][_0x416afd(0x15a)](_0x416afd(0x15f),new _0x36ccc2(_0x9eda67));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5a32ef}from'ckeditor5/src/core.js';import{ButtonView as _0x214b7c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5af45f}from'ckeditor5/src/icons.js';import{createElement as _0x67fa8b}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 _0x5a32ef{['_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 _0x201ab7=this['editor'];_0x201ab7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a5484=>{const _0xef28c8=_0x201ab7['commands']['get']('uploadcareImageEdit'),_0x19cbe3=new _0x214b7c(_0x5a5484),t=_0x5a5484['t'];return _0x19cbe3['set']({'icon':_0x5af45f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x19cbe3['bind']('isEnabled')['to'](_0xef28c8),_0x19cbe3['bind']('isOn')['to'](_0xef28c8,'isActive'),this['listenTo'](_0x19cbe3,'execute',()=>{_0x201ab7['execute']('uploadcareImageEdit'),_0x201ab7['editing']['view']['focus']();}),_0x19cbe3;}),this['_initConfig']();}['_initConfig'](){const _0x4d1152=_0x67fa8b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d1152),this['listenTo'](this['editor'],'destroy',()=>{_0x4d1152['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x47de(){const _0x48e20d=['231737RlufkU','6730LJCTbT','getSelectedElement','refresh','183AyhXWz','model','imageBlock','20788qPuZDn','496701XDGrGv','1116BSTWpV','change','530LAuhJM','imageInline','1224419kfihtG','document','575016vWyeAd','element','4chHVOP','setAttributes','execute','srcset','editor','removeAttribute','selection','40822JOSXYe','sizes','isEnabled'];_0x47de=function(){return _0x48e20d;};return _0x47de();}const _0x16c0f7=_0x9a8e;function _0x9a8e(_0x464b53,_0x36782d){const _0x47ded6=_0x47de();return _0x9a8e=function(_0x9a8e28,_0x289aca){_0x9a8e28=_0x9a8e28-0x7f;let _0x7c333=_0x47ded6[_0x9a8e28];return _0x7c333;},_0x9a8e(_0x464b53,_0x36782d);}(function(_0x4d5718,_0x42ff82){const _0x3bd049=_0x9a8e,_0x4ca56f=_0x4d5718();while(!![]){try{const _0x75a3c9=-parseInt(_0x3bd049(0x96))/0x1*(parseInt(_0x3bd049(0x8f))/0x2)+-parseInt(_0x3bd049(0x82))/0x3*(parseInt(_0x3bd049(0x85))/0x4)+parseInt(_0x3bd049(0x7f))/0x5*(-parseInt(_0x3bd049(0x87))/0x6)+-parseInt(_0x3bd049(0x8b))/0x7+-parseInt(_0x3bd049(0x8d))/0x8+-parseInt(_0x3bd049(0x86))/0x9+parseInt(_0x3bd049(0x89))/0xa*(parseInt(_0x3bd049(0x99))/0xb);if(_0x75a3c9===_0x42ff82)break;else _0x4ca56f['push'](_0x4ca56f['shift']());}catch(_0x409487){_0x4ca56f['push'](_0x4ca56f['shift']());}}}(_0x47de,0x286af));import{Command as _0x1e9757}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x1e9757{[_0x16c0f7(0x81)](){const _0x5eef45=_0x16c0f7,_0x902fcc=this[_0x5eef45(0x93)][_0x5eef45(0x83)][_0x5eef45(0x8c)][_0x5eef45(0x95)][_0x5eef45(0x80)]();this[_0x5eef45(0x98)]=Boolean(_0x902fcc&&(_0x902fcc['is'](_0x5eef45(0x8e),_0x5eef45(0x84))||_0x902fcc['is'](_0x5eef45(0x8e),_0x5eef45(0x8a))));}[_0x16c0f7(0x91)](_0x3beec5){const _0x1011f0=_0x16c0f7,_0x505cb0=this[_0x1011f0(0x93)][_0x1011f0(0x83)][_0x1011f0(0x8c)][_0x1011f0(0x95)][_0x1011f0(0x80)]();this[_0x1011f0(0x93)][_0x1011f0(0x83)][_0x1011f0(0x88)](_0x17a3c7=>{const _0x2be440=_0x1011f0;_0x17a3c7[_0x2be440(0x90)](_0x3beec5,_0x505cb0),_0x17a3c7[_0x2be440(0x94)](_0x2be440(0x92),_0x505cb0),_0x17a3c7[_0x2be440(0x94)](_0x2be440(0x97),_0x505cb0);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x17fc(_0x335506,_0x58fd81){var _0x5311ac=_0x5311();return _0x17fc=function(_0x17fc8c,_0x2f16f6){_0x17fc8c=_0x17fc8c-0x1a5;var _0x3dc2fa=_0x5311ac[_0x17fc8c];return _0x3dc2fa;},_0x17fc(_0x335506,_0x58fd81);}var _0x1e812c=_0x17fc;(function(_0xada257,_0x121940){var _0x3a19e7=_0x17fc,_0xd28171=_0xada257();while(!![]){try{var _0x4ee777=parseInt(_0x3a19e7(0x1b2))/0x1*(-parseInt(_0x3a19e7(0x1b0))/0x2)+parseInt(_0x3a19e7(0x1a5))/0x3*(-parseInt(_0x3a19e7(0x1a9))/0x4)+-parseInt(_0x3a19e7(0x1a7))/0x5*(-parseInt(_0x3a19e7(0x1a6))/0x6)+-parseInt(_0x3a19e7(0x1ae))/0x7*(parseInt(_0x3a19e7(0x1af))/0x8)+parseInt(_0x3a19e7(0x1ab))/0x9+-parseInt(_0x3a19e7(0x1b3))/0xa+parseInt(_0x3a19e7(0x1b4))/0xb;if(_0x4ee777===_0x121940)break;else _0xd28171['push'](_0xd28171['shift']());}catch(_0x52d2e7){_0xd28171['push'](_0xd28171['shift']());}}}(_0x5311,0xbda68));import{Plugin as _0x2599a6}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x3bc793}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2a7722}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2599a6{static get[_0x1e812c(0x1ad)](){var _0x426b7c=_0x1e812c;return _0x426b7c(0x1ac);}static get[_0x1e812c(0x1a8)](){return[_0x3bc793,_0x2a7722];}static get[_0x1e812c(0x1b1)](){return!0x0;}static get[_0x1e812c(0x1aa)](){return!0x0;}}function _0x5311(){var _0x1f3b52=['isOfficialPlugin','43949YzXyGo','6437110wZfPMd','26239477tLDwvt','44886MFDELV','6zDfPTK','4975135VUftyd','requires','360JVFGZh','isPremiumPlugin','6121836EZGNPN','UploadcareImageEdit','pluginName','28kbGmIP','565424AuMQCn','46oUnjhg'];_0x5311=function(){return _0x1f3b52;};return _0x5311();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x244e6d=_0x4fac;(function(_0x311d3f,_0x39c754){const _0x5d3760=_0x4fac,_0x52735a=_0x311d3f();while(!![]){try{const _0x36113d=-parseInt(_0x5d3760(0xd7))/0x1+parseInt(_0x5d3760(0x113))/0x2+-parseInt(_0x5d3760(0xd3))/0x3*(parseInt(_0x5d3760(0x11d))/0x4)+-parseInt(_0x5d3760(0xd1))/0x5+parseInt(_0x5d3760(0xd0))/0x6+parseInt(_0x5d3760(0x109))/0x7*(-parseInt(_0x5d3760(0x106))/0x8)+-parseInt(_0x5d3760(0x118))/0x9*(parseInt(_0x5d3760(0xce))/0xa);if(_0x36113d===_0x39c754)break;else _0x52735a['push'](_0x52735a['shift']());}catch(_0x31b4bb){_0x52735a['push'](_0x52735a['shift']());}}}(_0x29ad,0x4a006));import{Plugin as _0x2e63b7}from'ckeditor5/src/core.js';function _0x4fac(_0x352bc1,_0x575556){const _0x29adf3=_0x29ad();return _0x4fac=function(_0x4fac36,_0x3d9a3b){_0x4fac36=_0x4fac36-0xcd;let _0x3c9745=_0x29adf3[_0x4fac36];return _0x3c9745;},_0x4fac(_0x352bc1,_0x575556);}import{IconDropbox as _0x5af18f,IconFacebook as _0x3ec053,IconGoogleDrive as _0x5bf747,IconGooglePhotos as _0x7490c1,IconUploadcareImageUpload as _0x24cd10,IconUploadcareLink as _0x2e59bb,IconOneDrive as _0x473d91}from'ckeditor5/src/icons.js';import{ButtonView as _0x565440,MenuBarMenuListItemButtonView as _0x31b4d0}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2911c9}from'./uploadcareconfig.js';import{getTranslation as _0x12fdbf}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 _0x2e63b7{[_0x244e6d(0xf8)];[_0x244e6d(0xf1)];static get[_0x244e6d(0x114)](){const _0x4f23a2=_0x244e6d;return _0x4f23a2(0xfa);}static get[_0x244e6d(0xdd)](){return!0x0;}static get[_0x244e6d(0xf2)](){return!0x0;}[_0x244e6d(0x10c)](){const _0x4c1ea5=_0x244e6d;this[_0x4c1ea5(0xf8)]=this[_0x4c1ea5(0xd6)][_0x4c1ea5(0x119)][_0x4c1ea5(0xea)](_0x4c1ea5(0xf8));const _0x5e12f4=this[_0x4c1ea5(0xd6)];this[_0x4c1ea5(0xf1)]=setInterval(()=>{const _0xac5f38=_0x4c1ea5;let _0x21e02e;for(const _0x2bcd2a in _0x5e12f4){const _0x4eb4bb=_0x2bcd2a,_0x165fff=_0x5e12f4[_0x4eb4bb];if(_0xac5f38(0xda)==_0x165fff||_0xac5f38(0xff)==_0x165fff||_0xac5f38(0xe5)==_0x165fff||_0xac5f38(0xdb)==_0x165fff||_0xac5f38(0x105)==_0x165fff||_0xac5f38(0x11b)==_0x165fff||_0xac5f38(0x116)==_0x165fff||_0xac5f38(0x10e)==_0x165fff){delete _0x5e12f4[_0x4eb4bb],_0x21e02e=_0x165fff,clearInterval(this[_0xac5f38(0xf1)]),this[_0xac5f38(0xf1)]=void 0x0;break;}}_0xac5f38(0xff)==_0x21e02e&&_0x5e12f4[_0xac5f38(0xe8)](_0xac5f38(0x112)),_0xac5f38(0xe5)==_0x21e02e&&_0x5e12f4[_0xac5f38(0xe8)](_0xac5f38(0xf9)),_0xac5f38(0xdb)==_0x21e02e&&_0x5e12f4[_0xac5f38(0xe8)](_0xac5f38(0xcf)),_0xac5f38(0x105)==_0x21e02e&&_0x5e12f4[_0xac5f38(0xe8)](_0xac5f38(0xd5),_0xac5f38(0x104)),_0xac5f38(0x11b)==_0x21e02e&&_0x5e12f4[_0xac5f38(0xe8)](_0xac5f38(0xf5)),_0xac5f38(0x116)==_0x21e02e&&_0x5e12f4[_0xac5f38(0xe8)](_0xac5f38(0xeb)),_0xac5f38(0x10e)==_0x21e02e&&_0x5e12f4[_0xac5f38(0xe8)](_0xac5f38(0xd8));},0x3e8);}[_0x244e6d(0xf6)](){const _0x2be524=_0x244e6d,{editor:_0x2bad81}=this,_0x122a3a=_0x2bad81[_0x2be524(0x110)][_0x2be524(0xea)](_0x2be524(0x11c));if(!_0x122a3a)return;const _0x1aa4d6=this[_0x2be524(0xe6)](_0x2bad81[_0x2be524(0x119)][_0x2be524(0xea)](_0x2be524(0xfd)))[_0x2be524(0xe0)]((_0xaef28c,_0x14e3f5)=>{const _0x185452=_0x2be524,_0x4c9731=this[_0x185452(0x10f)](_0x14e3f5[_0x185452(0x107)]);return _0xaef28c[_0x4c9731]||(_0xaef28c[_0x4c9731]=[]),_0xaef28c[_0x4c9731][_0x185452(0x101)](_0x14e3f5),_0xaef28c;},{});_0x2bad81[_0x2be524(0xe1)][_0x2be524(0xe3)](_0x2be524(0x103))&&_0x2bad81[_0x2be524(0x110)][_0x2be524(0xea)](_0x2be524(0x11c))&&Object[_0x2be524(0xfe)](_0x1aa4d6)[_0x2be524(0xfc)](([_0x15a0e7,_0x136b5f])=>{const _0x1fd69e=_0x2be524;_0x2bad81[_0x1fd69e(0xe1)][_0x1fd69e(0xea)](_0x1fd69e(0x103))[_0x1fd69e(0x102)]({'name':_0x15a0e7,'observable':()=>_0x122a3a,'buttonViewCreator':()=>this[_0x1fd69e(0xed)](_0x136b5f),'formViewCreator':()=>this[_0x1fd69e(0xdf)](_0x136b5f),'menuBarButtonViewCreator':()=>this[_0x1fd69e(0xf4)](_0x136b5f),'override':_0x1fd69e(0xd4)!==_0x15a0e7});});}[_0x244e6d(0x108)](){const _0x2bea8f=_0x244e6d;super[_0x2bea8f(0x108)](),this[_0x2bea8f(0xf1)]&&clearInterval(this[_0x2bea8f(0xf1)]);}[_0x244e6d(0xe6)](_0x12ac2c){const _0x19fff3=_0x244e6d,{locale:_0x245264}=this[_0x19fff3(0xd6)];return _0x12ac2c[_0x19fff3(0xdc)](_0x14e22e=>{const _0x1fc9e7=_0x19fff3,_0x1dd5c6=_0x12fdbf(_0x245264,_0x14e22e,_0x1fc9e7(0x115));switch(_0x14e22e){case _0x2911c9[_0x1fc9e7(0xd9)]:return{'icon':_0x24cd10,'type':_0x2911c9[_0x1fc9e7(0xd9)],..._0x1dd5c6};case _0x2911c9[_0x1fc9e7(0xde)]:return{'icon':_0x2e59bb,'type':_0x2911c9[_0x1fc9e7(0xde)],..._0x1dd5c6};case _0x2911c9[_0x1fc9e7(0xd2)]:return{'icon':_0x5af18f,'type':_0x2911c9[_0x1fc9e7(0xd2)],..._0x1dd5c6};case _0x2911c9[_0x1fc9e7(0xf0)]:return{'icon':_0x3ec053,'type':_0x2911c9[_0x1fc9e7(0xf0)],..._0x1dd5c6};case _0x2911c9[_0x1fc9e7(0xfb)]:return{'icon':_0x5bf747,'type':_0x2911c9[_0x1fc9e7(0xfb)],..._0x1dd5c6};case _0x2911c9[_0x1fc9e7(0xec)]:return{'icon':_0x7490c1,'type':_0x2911c9[_0x1fc9e7(0xec)],..._0x1dd5c6};case _0x2911c9[_0x1fc9e7(0xe9)]:return{'icon':_0x473d91,'type':_0x2911c9[_0x1fc9e7(0xe9)],..._0x1dd5c6};}});}[_0x244e6d(0x10f)](_0x198902){const _0x4441ae=_0x244e6d;switch(_0x198902){case _0x2911c9[_0x4441ae(0xd9)]:return _0x4441ae(0xf7);case _0x2911c9[_0x4441ae(0xde)]:return _0x4441ae(0x11a);default:return _0x4441ae(0xd4);}}[_0x244e6d(0xe2)](_0x5c1f42,_0x366e85){const _0x116eda=_0x244e6d,_0x4fa1e0=this[_0x116eda(0xd6)],_0x2e86ae=new _0x5c1f42(_0x4fa1e0[_0x116eda(0xef)]),_0x4f0cd1=_0x4fa1e0[_0x116eda(0x110)][_0x116eda(0xea)](_0x116eda(0x11c));return _0x2e86ae[_0x116eda(0x117)](_0x116eda(0x100))['to'](_0x4f0cd1),_0x2e86ae['on'](_0x116eda(0x10d),()=>{const _0x58dde9=_0x116eda;_0x4f0cd1[_0x58dde9(0x10d)](_0x366e85);}),_0x2e86ae;}[_0x244e6d(0xed)](_0x3608aa){const _0x2724eb=_0x244e6d,{locale:_0x3613b0}=this[_0x2724eb(0xd6)],_0x5a01ef=this[_0x2724eb(0xd6)][_0x2724eb(0xe1)][_0x2724eb(0xea)](_0x2724eb(0x103)),_0x1ab080=_0x3608aa[0x0],_0xfc6ba7=this[_0x2724eb(0xe2)](_0x565440,_0x1ab080[_0x2724eb(0x107)]);return _0xfc6ba7[_0x2724eb(0xcd)]=_0x1ab080[_0x2724eb(0xcd)],_0xfc6ba7[_0x2724eb(0x117)](_0x2724eb(0xe7))['to'](_0x5a01ef,_0x2724eb(0x10b),_0x7ba6f2=>_0x12fdbf(_0x3613b0,_0x1ab080[_0x2724eb(0x107)],_0x7ba6f2?_0x2724eb(0xf3):_0x2724eb(0x115))[_0x2724eb(0xe4)]),_0xfc6ba7[_0x2724eb(0xee)]=!0x0,_0xfc6ba7;}[_0x244e6d(0xdf)](_0x329af8){const _0x1f5d5e=_0x244e6d,{locale:_0x3e0c73}=this[_0x1f5d5e(0xd6)],_0x88a9eb=this[_0x1f5d5e(0xd6)][_0x1f5d5e(0xe1)][_0x1f5d5e(0xea)](_0x1f5d5e(0x103));return _0x329af8[_0x1f5d5e(0xdc)](_0x46a75=>{const _0x1f6ea2=_0x1f5d5e,_0x31b9e2=this[_0x1f6ea2(0xe2)](_0x565440,_0x46a75[_0x1f6ea2(0x107)]);return _0x31b9e2[_0x1f6ea2(0x10a)]=!0x0,_0x31b9e2[_0x1f6ea2(0xcd)]=_0x46a75[_0x1f6ea2(0xcd)],_0x31b9e2[_0x1f6ea2(0x117)](_0x1f6ea2(0xe7))['to'](_0x88a9eb,_0x1f6ea2(0x10b),_0x4c8b32=>_0x12fdbf(_0x3e0c73,_0x46a75[_0x1f6ea2(0x107)],_0x4c8b32?_0x1f6ea2(0xf3):_0x1f6ea2(0x115))[_0x1f6ea2(0xe4)]),_0x31b9e2;});}[_0x244e6d(0xf4)](_0x34e785){const _0xed3e93=_0x244e6d;return _0x34e785[_0xed3e93(0xdc)](_0x30f8bf=>{const _0x57fe14=_0xed3e93,_0x1068bb=this[_0x57fe14(0xe2)](_0x31b4d0,_0x30f8bf[_0x57fe14(0x107)]);return _0x1068bb[_0x57fe14(0xcd)]=_0x30f8bf[_0x57fe14(0xcd)],_0x1068bb[_0x57fe14(0xe7)]=_0x30f8bf[_0x57fe14(0x111)],_0x1068bb;});}}function _0x29ad(){const _0x5b1244=['24nWFhKt','type','destroy','222866yOCKnU','withText','isImageSelected','init','execute','uploadcareLicenseKeyUsageLimit','_getIntegrationKey','commands','shortText','invalid','565508hvxmcW','pluginName','Insert','uploadcareLicenseKeyTrialLimit','bind','9KMmTIm','config','url','uploadcareLicenseKeyEvaluationLimit','uploadcare','56PKuUDf','icon','2510920vzDtDI','domainLimit','3171492jVDbay','422905AhvJHM','Dropbox','8307pGMiuH','assetManager','featureNotAllowed','editor','38273ChzBOL','usageLimit','Local','uploadcareLicenseKeyValid','uploadcareLicenseKeyDomainLimit','map','isOfficialPlugin','URL','_createDropdownButtons','reduce','plugins','_createButton','has','text','uploadcareLicenseKeyExpired','_normalizeConfigSourceList','label','_showLicenseError','OneDrive','get','trialLimit','GPhotos','_createToolbarButton','tooltip','locale','Facebook','_licenseKeyCheckInterval','isPremiumPlugin','Replace','_createMenuBarButtons','evaluationLimit','afterInit','upload','licenseKey','expired','UploadcareUI','GDrive','forEach','uploadcare.uploader.sourceList','entries','uploadcareLicenseKeyInvalid','isEnabled','push','registerIntegration','ImageInsertUI','Uploadcare','uploadcareLicenseKeyNotAllowed'];_0x29ad=function(){return _0x5b1244;};return _0x29ad();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x56b100}from'ckeditor5/src/core.js';import{FileRepository as _0x46a3e7}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x404664}from'./uploadcareediting.js';import{UploadUtils as _0x572f0b}from'./utils/uploadutils.js';import{getImageUrls as _0x4a50ef}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x56b100{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x46a3e7,_0x404664];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5ba2ee=this['editor'];if(!!!_0x5ba2ee['config']['get']('uploadcare'))return;_0x5ba2ee['plugins']['get'](_0x46a3e7)['createUploadAdapter']=_0x2f804e=>new k(_0x2f804e,_0x5ba2ee),_0x5ba2ee['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x40122d,{imageElement:_0x22cc71,data:_0x22998f})=>{_0x5ba2ee['model']['change'](_0x518b9e=>{_0x518b9e['setAttribute']('uploadcareImageId',_0x22998f['uploadcareImageId'],_0x22cc71);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1a7896,_0x13698d){this['loader']=_0x1a7896,this['editor']=_0x13698d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x30070b=await this['loader']['file'];return _0x572f0b['upload']({'file':_0x30070b,'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':_0x392058=>{_0x392058&&_0x392058['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x392058['value']);}})['then'](async _0x2aad58=>{const {imageFallbackUrl:_0x95c88f,imageSources:_0x344109}=_0x4a50ef(_0x2aad58['cdnUrl'],_0x2aad58['imageInfo']['width']);return{'uploadcareImageId':_0x2aad58['uuid'],'default':_0x95c88f,'sources':_0x344109};})['catch'](()=>{const _0x5a4582=t('Cannot\x20upload\x20file:')+('\x20'+_0x30070b['name']+'.');return Promise['reject'](_0x5a4582);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xc5a2aa}from'../uploadcareconfig.js';export function getTranslation(_0x1477ca,_0x5bb68c,_0x45f662){const t=_0x1477ca['t'],_0x4f6b4a=_0x1477ca['t'];switch(_0x5bb68c){case _0xc5a2aa['Local']:return{'text':_0x4f6b4a('Insert'===_0x45f662?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4f6b4a('From\x20computer')};case _0xc5a2aa['URL']:return{'text':'Insert'===_0x45f662?_0x4f6b4a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4f6b4a('Via\x20URL')};case _0xc5a2aa['Dropbox']:return{'text':t('Insert'===_0x45f662?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xc5a2aa['Facebook']:return{'text':t('Insert'===_0x45f662?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xc5a2aa['GDrive']:return{'text':t('Insert'===_0x45f662?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xc5a2aa['GPhotos']:return{'text':t('Insert'===_0x45f662?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xc5a2aa['OneDrive']:return{'text':t('Insert'===_0x45f662?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5bb68c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x221e(_0x5b191e,_0xf537d9){var _0x5e0733=_0x5e07();return _0x221e=function(_0x221e7e,_0x46f81f){_0x221e7e=_0x221e7e-0x82;var _0x205756=_0x5e0733[_0x221e7e];return _0x205756;},_0x221e(_0x5b191e,_0xf537d9);}var _0xeb500c=_0x221e;(function(_0x68be30,_0x5759cb){var _0x573ab4=_0x221e,_0x37b5a3=_0x68be30();while(!![]){try{var _0x980bff=-parseInt(_0x573ab4(0x8f))/0x1*(parseInt(_0x573ab4(0x87))/0x2)+-parseInt(_0x573ab4(0x85))/0x3*(-parseInt(_0x573ab4(0x8b))/0x4)+parseInt(_0x573ab4(0x89))/0x5+parseInt(_0x573ab4(0x93))/0x6+-parseInt(_0x573ab4(0x90))/0x7+parseInt(_0x573ab4(0x8d))/0x8*(parseInt(_0x573ab4(0x84))/0x9)+-parseInt(_0x573ab4(0x92))/0xa;if(_0x980bff===_0x5759cb)break;else _0x37b5a3['push'](_0x37b5a3['shift']());}catch(_0x340f15){_0x37b5a3['push'](_0x37b5a3['shift']());}}}(_0x5e07,0xa66d1));import{FocusTracker as _0x31ae7f}from'ckeditor5/src/utils.js';import{View as _0x3d7fef,FocusCycler as _0x5bc955}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3d7fef{[_0xeb500c(0x94)];[_0xeb500c(0x8a)];constructor(_0x23eb25){var _0x474497=_0xeb500c;super(_0x23eb25),this[_0x474497(0x94)]=new _0x31ae7f(),this[_0x474497(0x8a)]=new _0x5bc955({'focusables':this[_0x474497(0x88)](),'focusTracker':this[_0x474497(0x94)]});}[_0xeb500c(0x91)](){var _0x34cc2d=_0xeb500c;return{'tag':_0x34cc2d(0x8e),'attributes':{'aria-hidden':_0x34cc2d(0x82),'tabindex':'0'},'on':{'focus':this[_0x34cc2d(0x83)]['to'](()=>{var _0x2e3983=_0x34cc2d;this[_0x2e3983(0x8a)][_0x2e3983(0x8c)](_0x2e3983(0x86));})}};}}function _0x5e07(){var _0x51a4dd=['5223580CjcRlP','focusCycler','1292kIApfo','fire','18608ifvZCS','div','1vpXyAt','6467748tPGwMG','getFocusableElement','25916160tBZjYx','7026102rnSPZa','focusTracker','true','bindTemplate','4887ZnnOmU','8061vCRKCH','forwardCycle','298782KsoHKC','createCollection'];_0x5e07=function(){return _0x51a4dd;};return _0x5e07();}
|