@ckeditor/ckeditor5-uploadcare 47.7.0-alpha.3 → 47.7.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x100d(_0x176dd4,_0x16bfdc){const _0x19297b=_0x1929();return _0x100d=function(_0x100d3a,_0x2fb820){_0x100d3a=_0x100d3a-0xa0;let _0x423715=_0x19297b[_0x100d3a];return _0x423715;},_0x100d(_0x176dd4,_0x16bfdc);}const _0x4cb9f9=_0x100d;(function(_0xdc95e9,_0x34999e){const _0x4b63cb=_0x100d,_0x42bf96=_0xdc95e9();while(!![]){try{const _0x17f45f=parseInt(_0x4b63cb(0xaa))/0x1+-parseInt(_0x4b63cb(0xcc))/0x2+-parseInt(_0x4b63cb(0xd6))/0x3*(-parseInt(_0x4b63cb(0xe6))/0x4)+parseInt(_0x4b63cb(0xc1))/0x5+-parseInt(_0x4b63cb(0xa9))/0x6+-parseInt(_0x4b63cb(0xd4))/0x7+parseInt(_0x4b63cb(0xdf))/0x8;if(_0x17f45f===_0x34999e)break;else _0x42bf96['push'](_0x42bf96['shift']());}catch(_0x275709){_0x42bf96['push'](_0x42bf96['shift']());}}}(_0x1929,0x4eecc));import{Plugin as _0x3e76c2}from'ckeditor5/src/core.js';import{Dialog as _0x4f7b3d}from'ckeditor5/src/ui.js';import{createElement as _0x4e267,global as _0x327861,uid as _0xbd794f}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x515e89}from'./uploadcarecommand.js';function _0x1929(){const _0x3e12c2=['downcast','pluginName','_configElement','conversion','afterInit','true','input[uploadcare-file-input]','#uc-icon-arrow-down','72190tlnOKx','uc-config','uploadcare.pubkey','init','attributeToAttribute','removeAttribute','elementToAttribute','schema','render','once','ucContextId','304582vwGyTi','_initImageProcessingIndicator','get','model','requires','_initSchema','for','body','2310392QFpHIr','uc-upload-ctx-provider','805974RVhvRC','PictureEditing','querySelector','insertImage','_initConversion','getSelectedElement','destroy','uploadcare.uploader','uploadcareImageId','4283824POTgZQ','editing','uploader-','appendChild','imageInline','_initCtx','editor','8dsnyUH','UploadcareEditing','locale','data-uc-image-id','getAttribute','href','execute','commands','remove','isOfficialPlugin','join','selection','uploadcare','upcast','map','contentLanguage','uploadcareImageReplace','iconHrefResolver','imageBlock','_ctxElement','configElement','isPremiumPlugin','3194250mhpSSz','250766ikLeZU','config','view','fromCharCode','ctxElement','cleanupImage','add','listenTo','replaceImageSource','closeMax','isRegistered','extend','_initConfig','document','\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'];_0x1929=function(){return _0x3e12c2;};return _0x1929();}import{UploadcareUploadAdapter as _0x57ae18}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5ead11}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3e76c2{[_0x4cb9f9(0xbb)]=null;[_0x4cb9f9(0xa6)]=null;static get[_0x4cb9f9(0xba)](){const _0x4f3604=_0x4cb9f9;return _0x4f3604(0xe7);}static get[_0x4cb9f9(0xd0)](){const _0xe64054=_0x4cb9f9;return[_0xe64054(0xd7),_0x57ae18,_0x4f7b3d];}static get[_0x4cb9f9(0xef)](){return!0x0;}static get[_0x4cb9f9(0xa8)](){return!0x0;}[_0x4cb9f9(0xcb)];get[_0x4cb9f9(0xa7)](){const _0x48d654=_0x4cb9f9;return this[_0x48d654(0xbb)];}get[_0x4cb9f9(0xae)](){const _0x98d92e=_0x4cb9f9;return this[_0x98d92e(0xa6)];}constructor(_0x2e669c){const _0x53c420=_0x4cb9f9;super(_0x2e669c),this[_0x53c420(0xcb)]=_0xbd794f();}[_0x4cb9f9(0xc4)](){const _0x57f8b3=_0x4cb9f9,_0x43019f=this[_0x57f8b3(0xe5)];_0x43019f[_0x57f8b3(0xed)][_0x57f8b3(0xb0)](_0x57f8b3(0xf2),new _0x515e89(_0x43019f));}[_0x4cb9f9(0xbd)](){const _0x1fa816=_0x4cb9f9;this[_0x1fa816(0xd1)](),this[_0x1fa816(0xda)](),this[_0x1fa816(0xb6)](),this[_0x1fa816(0xe4)](),this[_0x1fa816(0xcd)](),this[_0x1fa816(0xb1)](this[_0x1fa816(0xe5)],_0x1fa816(0xdc),()=>{const _0x3cc28e=_0x1fa816;this[_0x3cc28e(0xbb)]&&(this[_0x3cc28e(0xbb)][_0x3cc28e(0xee)](),this[_0x3cc28e(0xbb)]=null),this[_0x3cc28e(0xa6)]&&(this[_0x3cc28e(0xa6)][_0x3cc28e(0xee)](),this[_0x3cc28e(0xa6)]=null);const _0x1a1299=_0x327861[_0x3cc28e(0xb7)][_0x3cc28e(0xd8)](_0x3cc28e(0xbf));_0x1a1299&&_0x1a1299[_0x3cc28e(0xee)]();}),async function(_0x563343){const _0x5929d1=_0x44c56f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x182d90=0x535f8c3a,_0x162a15=0x53580b02^_0x182d90,_0x454a18=window[_0x44c56f([0x44,0x61,0x74,0x65])][_0x44c56f([0x6e,0x6f,0x77])](),_0x7d0a64=_0x563343[_0x44c56f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31efe9=new window[(_0x44c56f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28af32=>{_0x7d0a64[_0x44c56f([0x6f,0x6e,0x63,0x65])](_0x44c56f([0x72,0x65,0x61,0x64,0x79]),_0x28af32);}),_0x3971d7={[_0x44c56f([0x6b,0x74,0x79])]:_0x44c56f([0x45,0x43]),[_0x44c56f([0x75,0x73,0x65])]:_0x44c56f([0x73,0x69,0x67]),[_0x44c56f([0x63,0x72,0x76])]:_0x44c56f([0x50,0x2d,0x32,0x35,0x36]),[_0x44c56f([0x78])]:_0x44c56f([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]),[_0x44c56f([0x79])]:_0x44c56f([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]),[_0x44c56f([0x61,0x6c,0x67])]:_0x44c56f([0x45,0x53,0x32,0x35,0x36])},_0x3f2624=_0x7d0a64[_0x44c56f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44c56f([0x67,0x65,0x74])](_0x44c56f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e040c(){let _0xf3a419,_0x46ba06=null,_0x2c4039=null;try{if(_0x3f2624==_0x44c56f([0x47,0x50,0x4c]))return _0x44c56f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf3a419=_0x306c50(),!_0xf3a419)return _0x44c56f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf3a419[_0x44c56f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c4039=_0xef46d1(_0xf3a419[_0x44c56f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf3a419[_0x44c56f([0x6a,0x74,0x69])])),await _0xcc290d()?_0xa800fb()?_0x1dfab3()?_0x44c56f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49a6cd()?(_0xf3a419[_0x44c56f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44c56f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46ba06=_0x4aa71d(_0x44c56f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37a189()):_0x44c56f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44c56f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44c56f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44c56f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dfab3(){const _0x5a9c33=[_0x44c56f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44c56f([0x74,0x72,0x69,0x61,0x6c])][_0x44c56f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf3a419[_0x44c56f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x454a18/0x3e8:0xe10*_0x162a15;return _0xf3a419[_0x44c56f([0x65,0x78,0x70])]<_0x5a9c33;}function _0xa800fb(){const _0x3af35d=_0xf3a419[_0x44c56f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3af35d&&(!!_0x3af35d[_0x44c56f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c56f([0x2a]))||!!_0x3af35d[_0x44c56f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c56f([0x55,0x50,0x4c,0x43])));}function _0x49a6cd(){const _0x46da6e=_0x100d,_0xa4a109=_0xf3a419[_0x44c56f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa4a109||0x0==_0xa4a109[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xef32a8}=new URL(window[_0x44c56f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x46da6e(0xeb)]);if(_0xa4a109[_0x44c56f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xef32a8))return!0x0;const _0x427dd2=_0xef32a8[_0x44c56f([0x73,0x70,0x6c,0x69,0x74])](_0x44c56f([0x2e]));return _0xa4a109[_0x44c56f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a252f=>_0x5a252f[_0x44c56f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c56f([0x2a])))[_0x44c56f([0x6d,0x61,0x70])](_0x2609de=>_0x2609de[_0x44c56f([0x73,0x70,0x6c,0x69,0x74])](_0x44c56f([0x2e])))[_0x44c56f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe032ab=>_0xe032ab[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x427dd2[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44c56f([0x6d,0x61,0x70])](_0x1ce104=>Array(_0x427dd2[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ce104[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44c56f([0x66,0x69,0x6c,0x6c])](_0x1ce104[0x0]===_0x44c56f([0x2a])?_0x44c56f([0x2a]):'')[_0x44c56f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ce104))[_0x44c56f([0x73,0x6f,0x6d,0x65])](_0x4c595e=>_0x427dd2[_0x44c56f([0x65,0x76,0x65,0x72,0x79])]((_0x2619dc,_0x481930)=>_0x4c595e[_0x481930]===_0x2619dc||_0x4c595e[_0x481930]===_0x44c56f([0x2a])));}function _0x37a189(){return _0x46ba06&&_0x2c4039?new window[(_0x44c56f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x328a44,_0x59f555)=>{_0x46ba06[_0x44c56f([0x74,0x68,0x65,0x6e])](_0x328a44,_0x59f555),_0x2c4039[_0x44c56f([0x74,0x68,0x65,0x6e])](_0x12502f=>{_0x12502f!=_0x44c56f([0x56,0x61,0x6c,0x69,0x64])&&_0x328a44(_0x12502f);},_0x59f555);}):_0x46ba06||_0x2c4039||_0x44c56f([0x56,0x61,0x6c,0x69,0x64]);}}function _0xef46d1(_0x5932e7,_0x486c6d){return new window[(_0x44c56f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x210a73=>{if(_0x492ce6())return _0x210a73(_0x44c56f([0x56,0x61,0x6c,0x69,0x64]));_0x2a06a3(),_0x7d0a64[_0x44c56f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44c56f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33325f=!0x1;const _0x3d4624=_0xbd794f();function _0x568ac7(_0x57942e){return!!_0x57942e&&(typeof _0x57942e===_0x44c56f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57942e===_0x44c56f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57942e[_0x44c56f([0x74,0x68,0x65,0x6e])]===_0x44c56f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57942e[_0x44c56f([0x63,0x61,0x74,0x63,0x68])]===_0x44c56f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fa2d6(_0x4eb82e){_0x334737(_0x4eb82e)[_0x44c56f([0x74,0x68,0x65,0x6e])](_0x32f75b=>{if(!_0x32f75b||_0x32f75b[_0x44c56f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44c56f([0x6f,0x6b]))return _0x44c56f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6f1fcf(_0x520e61(_0x3d4624+_0x486c6d))!=_0x32f75b[_0x44c56f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44c56f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44c56f([0x56,0x61,0x6c,0x69,0x64]);})[_0x44c56f([0x74,0x68,0x65,0x6e])](_0x130f47=>(_0x384ac2(),_0x130f47),()=>{const _0x5a8ea5=_0x4c8be4();return null==_0x5a8ea5?(_0x384ac2(),_0x44c56f([0x56,0x61,0x6c,0x69,0x64])):_0x44c56f(_0x454a18-_0x5a8ea5>(0x7753083a^_0x182d90)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44c56f([0x74,0x68,0x65,0x6e])](_0x210a73)[_0x44c56f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x210a73(_0x44c56f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5addca=0x536962ba^_0x182d90;function _0x384ac2(){const _0x2ac009=_0x44c56f([0x6c,0x6c,0x63,0x74,0x2d])+_0x6f1fcf(_0x520e61(_0x5932e7)),_0x2664ff=_0x4d2495(_0x6f1fcf(window[_0x44c56f([0x4d,0x61,0x74,0x68])][_0x44c56f([0x63,0x65,0x69,0x6c])](_0x454a18/_0x5addca)));window[_0x44c56f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44c56f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ac009,_0x2664ff);}function _0x4c8be4(){const _0x5bbfd6=_0x44c56f([0x6c,0x6c,0x63,0x74,0x2d])+_0x6f1fcf(_0x520e61(_0x5932e7)),_0x4e15cd=window[_0x44c56f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44c56f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bbfd6);return _0x4e15cd?window[_0x44c56f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d2495(_0x4e15cd),0x10)*_0x5addca:null;}function _0x334737(_0x7a480a){return new window[(_0x44c56f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a85df,_0x943bc1)=>{_0x7a480a[_0x44c56f([0x74,0x68,0x65,0x6e])](_0x2a85df,_0x943bc1),window[_0x44c56f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x943bc1,0x535e58fa^_0x182d90);});}}_0x7d0a64[_0x44c56f([0x6f,0x6e])](_0x44c56f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x253568,_0x203f10)=>{if(_0x203f10[0x0]!=_0x5932e7)return _0x210a73(_0x44c56f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x203f10[0x1]={..._0x203f10[0x1],[_0x44c56f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d4624};},{[_0x44c56f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44c56f([0x68,0x69,0x67,0x68])}),_0x7d0a64[_0x44c56f([0x6f,0x6e])](_0x44c56f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f9674=>{_0x568ac7(_0x4f9674[_0x44c56f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33325f=!0x0,_0x3fa2d6(_0x4f9674[_0x44c56f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44c56f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44c56f([0x6c,0x6f,0x77])}),_0x31efe9[_0x44c56f([0x74,0x68,0x65,0x6e])](()=>{_0x33325f||_0x210a73(_0x44c56f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x492ce6(){return _0x7d0a64[_0x44c56f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44c56f([0x76,0x69,0x65,0x77])][_0x44c56f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44c56f([0x61,0x75,0x74,0x6f]);}function _0x2a06a3(){_0x7d0a64[_0x44c56f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44c56f([0x76,0x69,0x65,0x77])][_0x44c56f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44c56f([0x61,0x75,0x74,0x6f]);}}function _0x4aa71d(_0x4fba8f){const _0xa48494=[new window[(_0x44c56f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd635=>setTimeout(_0x4dd635,0x5356b2f6^_0x182d90)),_0x31efe9[_0x44c56f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44c56f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x143aea=>{let _0x345e79=0x0;_0x7d0a64[_0x44c56f([0x6d,0x6f,0x64,0x65,0x6c])][_0x44c56f([0x6f,0x6e])](_0x44c56f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b83a6,_0x9b1601)=>{_0x9b1601[0x0][_0x44c56f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x345e79++,_0x345e79==(0x535f89d2^_0x182d90)&&(_0x143aea(),_0x4b83a6[_0x44c56f([0x6f,0x66,0x66])]());});}))];return window[_0x44c56f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44c56f([0x72,0x61,0x63,0x65])](_0xa48494)[_0x44c56f([0x74,0x68,0x65,0x6e])](()=>_0x4fba8f);}async function _0x8bb00d(){await _0x31efe9,_0x7d0a64[_0x44c56f([0x6d,0x6f,0x64,0x65,0x6c])][_0x44c56f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d0aa1,_0x7d0a64[_0x44c56f([0x6d,0x6f,0x64,0x65,0x6c])][_0x44c56f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d0aa1,_0x7d0a64[_0x44c56f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44c56f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b7c5f(_0x52f649){const _0xa95823=_0x1cf9aa();_0x7d0a64[_0xa95823]=_0x44c56f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52f649,_0x52f649!=_0x44c56f([0x56,0x61,0x6c,0x69,0x64])&&_0x8bb00d();}function _0x1cf9aa(){const _0xae4416=window[_0x44c56f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44c56f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44c56f([0x6e,0x6f,0x77])]())[_0x44c56f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44c56f([0x2e]),'');let _0x2fded7=_0x44c56f([0x68]);for(let _0x576b25=0x0;_0x576b25<_0xae4416[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x576b25+=0x2){let _0xcfaf8f=window[_0x44c56f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xae4416[_0x44c56f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x576b25,_0x576b25+0x2));_0xcfaf8f>=_0x5929d1[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcfaf8f-=_0x5929d1[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fded7+=_0x5929d1[_0xcfaf8f];}return _0x2fded7;}function _0x306c50(){const _0x446031=_0x3f2624[_0x44c56f([0x73,0x70,0x6c,0x69,0x74])](_0x44c56f([0x2e]));if(0x3!=_0x446031[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b30e8(_0x446031[0x1]);function _0x4b30e8(_0xcbeadf){const _0x4d9ad8=_0x441b91(_0xcbeadf);return _0x4d9ad8&&_0x3342af()?_0x4d9ad8:null;function _0x3342af(){const _0x43e6ee=_0x4d9ad8[_0x44c56f([0x6a,0x74,0x69])],_0x535483=window[_0x44c56f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43e6ee[_0x44c56f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43e6ee[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11c18c={..._0x4d9ad8,[_0x44c56f([0x6a,0x74,0x69])]:_0x43e6ee[_0x44c56f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43e6ee[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11c18c[_0x44c56f([0x76,0x63])],_0x520e61(_0x11c18c)==_0x535483;}}}async function _0xcc290d(){let _0x306ebd=!0x0;try{const _0x2a8c69=_0x3f2624[_0x44c56f([0x73,0x70,0x6c,0x69,0x74])](_0x44c56f([0x2e])),[_0x2c737d,_0x613ef,_0x1f48d5]=_0x2a8c69;return _0x467454(_0x2c737d),await _0x3f56ed(_0x2c737d,_0x613ef,_0x1f48d5),_0x306ebd;}catch{return!0x1;}function _0x467454(_0x36a5a9){const _0x2a0078=_0x441b91(_0x36a5a9);_0x2a0078&&_0x2a0078[_0x44c56f([0x61,0x6c,0x67])]==_0x44c56f([0x45,0x53,0x32,0x35,0x36])||(_0x306ebd=!0x1);}async function _0x3f56ed(_0x3967fa,_0xe3170e,_0x2b9840){const _0x330ba1=window[_0x44c56f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44c56f([0x66,0x72,0x6f,0x6d])](_0x4193c1(_0x2b9840),_0x39ad67=>_0x39ad67[_0x44c56f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x466447=new window[(_0x44c56f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44c56f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3967fa+_0x44c56f([0x2e])+_0xe3170e),_0x3a038d=window[_0x44c56f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44c56f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a038d)return;const _0x5d4bbe=await _0x3a038d[_0x44c56f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44c56f([0x6a,0x77,0x6b]),_0x3971d7,{[_0x44c56f([0x6e,0x61,0x6d,0x65])]:_0x44c56f([0x45,0x43,0x44,0x53,0x41]),[_0x44c56f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44c56f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44c56f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a038d[_0x44c56f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44c56f([0x6e,0x61,0x6d,0x65])]:_0x44c56f([0x45,0x43,0x44,0x53,0x41]),[_0x44c56f([0x68,0x61,0x73,0x68])]:{[_0x44c56f([0x6e,0x61,0x6d,0x65])]:_0x44c56f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d4bbe,_0x330ba1,_0x466447)||(_0x306ebd=!0x1);}}function _0x441b91(_0x173264){return _0x173264[_0x44c56f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44c56f([0x65,0x79]))?JSON[_0x44c56f([0x70,0x61,0x72,0x73,0x65])](_0x4193c1(_0x173264)):null;}function _0x4193c1(_0x13ad18){return window[_0x44c56f([0x61,0x74,0x6f,0x62])](_0x13ad18[_0x44c56f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44c56f([0x2b]))[_0x44c56f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44c56f([0x2f])));}function _0x520e61(_0x2e660e){let _0x319760=0x1505;function _0x43396a(_0x1388ec){for(let _0xea6ba3=0x0;_0xea6ba3<_0x1388ec[_0x44c56f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xea6ba3++){const _0x54936e=_0x1388ec[_0x44c56f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xea6ba3);_0x319760=(_0x319760<<0x5)+_0x319760+_0x54936e,_0x319760&=_0x319760;}}function _0x42faf2(_0x4ebedd){Array[_0x44c56f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ebedd)?_0x4ebedd[_0x44c56f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42faf2):_0x4ebedd&&typeof _0x4ebedd==_0x44c56f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44c56f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ebedd)[_0x44c56f([0x73,0x6f,0x72,0x74])]()[_0x44c56f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cbbc7,_0x5472d0])=>{_0x43396a(_0x1cbbc7),_0x42faf2(_0x5472d0);}):_0x43396a(window[_0x44c56f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ebedd));}return _0x42faf2(_0x2e660e),_0x319760>>>0x0;}function _0x6f1fcf(_0x200b36){return _0x200b36[_0x44c56f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44c56f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44c56f([0x30]));}function _0x4d2495(_0x8eaf22){return _0x8eaf22[_0x44c56f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44c56f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44c56f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d0aa1(){}function _0x44c56f(_0x68f450){const _0x3a40a6=_0x100d;return _0x68f450[_0x3a40a6(0xa1)](_0x391b65=>String[_0x3a40a6(0xad)](_0x391b65))[_0x3a40a6(0xf0)]('');}_0x3b7c5f(await _0x3e040c());}(this);}[_0x4cb9f9(0xd1)](){const _0x7db988=_0x4cb9f9,_0x57891b=this[_0x7db988(0xe5)][_0x7db988(0xcf)][_0x7db988(0xc8)];_0x57891b[_0x7db988(0xb4)](_0x7db988(0xa5))&&_0x57891b[_0x7db988(0xb5)](_0x7db988(0xa5),{'allowAttributes':[_0x7db988(0xde)]}),_0x57891b[_0x7db988(0xb4)](_0x7db988(0xe3))&&_0x57891b[_0x7db988(0xb5)](_0x7db988(0xe3),{'allowAttributes':[_0x7db988(0xde)]});}[_0x4cb9f9(0xda)](){const _0x266b85=_0x4cb9f9,_0x55abdb=this[_0x266b85(0xe5)];_0x55abdb[_0x266b85(0xbc)][_0x266b85(0xd2)](_0x266b85(0xb9))[_0x266b85(0xc5)]({'model':_0x266b85(0xde),'view':_0x266b85(0xe9)}),_0x55abdb[_0x266b85(0xbc)][_0x266b85(0xd2)](_0x266b85(0xa0))[_0x266b85(0xc7)]({'model':{'key':_0x266b85(0xde),'value':_0x36a2af=>_0x36a2af[_0x266b85(0xea)](_0x266b85(0xe9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x508924=_0x55abdb[_0x266b85(0xed)][_0x266b85(0xce)](_0x266b85(0xb2));_0x508924&&this[_0x266b85(0xb1)](_0x508924,_0x266b85(0xaf),(_0x27181d,[_0x19affb,_0x17e0a5])=>{const _0x1b8f1f=_0x266b85;_0x19affb[_0x1b8f1f(0xc6)](_0x1b8f1f(0xde),_0x17e0a5);});}[_0x4cb9f9(0xb6)](){const _0x2e0a24=_0x4cb9f9,_0x35e9a3=this[_0x2e0a24(0xe5)][_0x2e0a24(0xab)][_0x2e0a24(0xce)](_0x2e0a24(0xdd))||{},_0x3b4cf5=this[_0x2e0a24(0xe5)][_0x2e0a24(0xab)][_0x2e0a24(0xce)](_0x2e0a24(0xc3))||'';this[_0x2e0a24(0xbb)]=_0x4e267(_0x327861[_0x2e0a24(0xb7)],_0x2e0a24(0xc2),{..._0x35e9a3,'pubkey':_0x3b4cf5,'ctx-name':_0x2e0a24(0xe1)+this[_0x2e0a24(0xcb)],'sourceList':'','imgOnly':_0x2e0a24(0xbe),'removeCopyright':_0x2e0a24(0xbe),'localeName':this[_0x2e0a24(0xe5)][_0x2e0a24(0xe8)][_0x2e0a24(0xa2)],'externalSourcesEmbedCss':_0x2e0a24(0xb8)}),this[_0x2e0a24(0xbb)][_0x2e0a24(0xa4)]=_0x2935e6=>{const _0x29d413=_0x2e0a24;if(_0x29d413(0xb3)==_0x2935e6)return _0x29d413(0xc0);},_0x327861[_0x2e0a24(0xb7)][_0x2e0a24(0xd3)][_0x2e0a24(0xe2)](this[_0x2e0a24(0xbb)]);}[_0x4cb9f9(0xe4)](){const _0x444025=_0x4cb9f9;this[_0x444025(0xa6)]=_0x4e267(_0x327861[_0x444025(0xb7)],_0x444025(0xd5),{'ctx-name':_0x444025(0xe1)+this[_0x444025(0xcb)]}),_0x327861[_0x444025(0xb7)][_0x444025(0xd3)][_0x444025(0xe2)](this[_0x444025(0xa6)]);}[_0x4cb9f9(0xcd)](){const _0x3129b4=_0x4cb9f9,_0x32ed9c=this[_0x3129b4(0xe5)][_0x3129b4(0xed)][_0x3129b4(0xce)](_0x3129b4(0xd9));_0x32ed9c&&this[_0x3129b4(0xb1)](_0x32ed9c,_0x3129b4(0xec),()=>{const _0x53430b=_0x3129b4,_0x37b828=this[_0x53430b(0xe5)][_0x53430b(0xcf)][_0x53430b(0xb7)][_0x53430b(0xf1)][_0x53430b(0xdb)]();_0x37b828&&_0x37b828[_0x53430b(0xea)](_0x53430b(0xde))&&this[_0x53430b(0xe5)][_0x53430b(0xe0)][_0x53430b(0xac)][_0x53430b(0xca)](_0x53430b(0xc9),()=>{const _0x769c26=_0x53430b;_0x5ead11(this[_0x769c26(0xe5)],_0x37b828);});});const _0x1930cd=this[_0x3129b4(0xe5)][_0x3129b4(0xed)][_0x3129b4(0xce)](_0x3129b4(0xa3));_0x1930cd&&this[_0x3129b4(0xb1)](_0x1930cd,_0x3129b4(0xec),()=>{const _0x1b7075=_0x3129b4,_0x5e31df=this[_0x1b7075(0xe5)][_0x1b7075(0xcf)][_0x1b7075(0xb7)][_0x1b7075(0xf1)][_0x1b7075(0xdb)]();_0x5e31df&&_0x5e31df[_0x1b7075(0xea)](_0x1b7075(0xde))&&this[_0x1b7075(0xe5)][_0x1b7075(0xe0)][_0x1b7075(0xac)][_0x1b7075(0xca)](_0x1b7075(0xc9),()=>{const _0x4256e8=_0x1b7075;_0x5ead11(this[_0x4256e8(0xe5)],_0x5e31df);});});}}
|
|
23
|
+
const _0x139a22=_0x58fd;(function(_0xc79359,_0x133702){const _0x28f1f1=_0x58fd,_0x2d7405=_0xc79359();while(!![]){try{const _0x501bc2=parseInt(_0x28f1f1(0xf4))/0x1+parseInt(_0x28f1f1(0xf2))/0x2*(-parseInt(_0x28f1f1(0xdb))/0x3)+-parseInt(_0x28f1f1(0x108))/0x4*(-parseInt(_0x28f1f1(0x103))/0x5)+parseInt(_0x28f1f1(0xda))/0x6+parseInt(_0x28f1f1(0x123))/0x7+-parseInt(_0x28f1f1(0xdd))/0x8+parseInt(_0x28f1f1(0x129))/0x9*(-parseInt(_0x28f1f1(0x120))/0xa);if(_0x501bc2===_0x133702)break;else _0x2d7405['push'](_0x2d7405['shift']());}catch(_0x115ecc){_0x2d7405['push'](_0x2d7405['shift']());}}}(_0x39c9,0xe2bdc));import{Plugin as _0x3f1d30}from'ckeditor5/src/core.js';import{Dialog as _0x8f9d93}from'ckeditor5/src/ui.js';import{createElement as _0x1fe38e,global as _0x2810fe,uid as _0x59bb61}from'ckeditor5/src/utils.js';function _0x58fd(_0x220410,_0x54e026){const _0x39c956=_0x39c9();return _0x58fd=function(_0x58fd12,_0xbaa7c7){_0x58fd12=_0x58fd12-0xd5;let _0xcb9e9e=_0x39c956[_0x58fd12];return _0xcb9e9e;},_0x58fd(_0x220410,_0x54e026);}import{UploadcareCommand as _0x20be4d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x362b5b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5d2e95}from'./utils/editingutils.js';function _0x39c9(){const _0x241b7a=['appendChild','add','imageBlock','locale','_ctxElement','body','getSelectedElement','uploadcare.uploader','once','elementToAttribute','attributeToAttribute','render','_configElement','configElement','isRegistered','editor','contentLanguage','807770nyGsRY','true','join','12267115scgouC','replaceImageSource','#uc-icon-arrow-down','imageInline','cleanupImage','getAttribute','207BMPESA','_initConfig','uc-upload-ctx-provider','get','data-uc-image-id','pluginName','1548480jtyhfr','380634ZMNjeK','_initImageProcessingIndicator','13836504ibtEfo','ctxElement','ucContextId','href','map','uploader-','uploadcareImageId','remove','\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','upcast','removeAttribute','isOfficialPlugin','execute','destroy','fromCharCode','uploadcare','_initConversion','init','_initSchema','uploadcareImageReplace','schema','10glBjxH','closeMax','1471736QFkKPM','selection','document','model','input[uploadcare-file-input]','for','PictureEditing','isPremiumPlugin','querySelector','listenTo','requires','config','insertImage','iconHrefResolver','uploadcare.pubkey','475KsYEEM','downcast','afterInit','view','commands','70244UAvCUZ','UploadcareEditing','editing','extend','conversion','_initCtx','uc-config'];_0x39c9=function(){return _0x241b7a;};return _0x39c9();}export class UploadcareEditing extends _0x3f1d30{[_0x139a22(0x11b)]=null;[_0x139a22(0x113)]=null;static get[_0x139a22(0xd9)](){const _0x5d3c9a=_0x139a22;return _0x5d3c9a(0x109);}static get[_0x139a22(0xfe)](){const _0x451ae1=_0x139a22;return[_0x451ae1(0xfa),_0x362b5b,_0x8f9d93];}static get[_0x139a22(0xe8)](){return!0x0;}static get[_0x139a22(0xfb)](){return!0x0;}[_0x139a22(0xdf)];get[_0x139a22(0x11c)](){const _0x302254=_0x139a22;return this[_0x302254(0x11b)];}get[_0x139a22(0xde)](){const _0x2c24eb=_0x139a22;return this[_0x2c24eb(0x113)];}constructor(_0x7bfa3f){const _0x4c5bda=_0x139a22;super(_0x7bfa3f),this[_0x4c5bda(0xdf)]=_0x59bb61();}[_0x139a22(0xee)](){const _0x3c6402=_0x139a22,_0x3502f8=this[_0x3c6402(0x11e)];_0x3502f8[_0x3c6402(0x107)][_0x3c6402(0x110)](_0x3c6402(0xec),new _0x20be4d(_0x3502f8));}[_0x139a22(0x105)](){const _0x317bdf=_0x139a22;this[_0x317bdf(0xef)](),this[_0x317bdf(0xed)](),this[_0x317bdf(0xd5)](),this[_0x317bdf(0x10d)](),this[_0x317bdf(0xdc)](),this[_0x317bdf(0xfd)](this[_0x317bdf(0x11e)],_0x317bdf(0xea),()=>{const _0x1262a7=_0x317bdf;this[_0x1262a7(0x11b)]&&(this[_0x1262a7(0x11b)][_0x1262a7(0xe4)](),this[_0x1262a7(0x11b)]=null),this[_0x1262a7(0x113)]&&(this[_0x1262a7(0x113)][_0x1262a7(0xe4)](),this[_0x1262a7(0x113)]=null);const _0x3fc3e1=_0x2810fe[_0x1262a7(0xf6)][_0x1262a7(0xfc)](_0x1262a7(0xf8));_0x3fc3e1&&_0x3fc3e1[_0x1262a7(0xe4)]();}),async function(_0x316800){const _0x5df77b=_0x1038d4([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2b5e6f=0x535f8c3a,_0x4eb968=0x53580b6a^_0x2b5e6f,_0xbccd8b=window[_0x1038d4([0x44,0x61,0x74,0x65])][_0x1038d4([0x6e,0x6f,0x77])](),_0x4e73fb=_0x316800[_0x1038d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x203805=new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x303367=>{_0x4e73fb[_0x1038d4([0x6f,0x6e,0x63,0x65])](_0x1038d4([0x72,0x65,0x61,0x64,0x79]),_0x303367);}),_0x4d340a={[_0x1038d4([0x6b,0x74,0x79])]:_0x1038d4([0x45,0x43]),[_0x1038d4([0x75,0x73,0x65])]:_0x1038d4([0x73,0x69,0x67]),[_0x1038d4([0x63,0x72,0x76])]:_0x1038d4([0x50,0x2d,0x32,0x35,0x36]),[_0x1038d4([0x78])]:_0x1038d4([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]),[_0x1038d4([0x79])]:_0x1038d4([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]),[_0x1038d4([0x61,0x6c,0x67])]:_0x1038d4([0x45,0x53,0x32,0x35,0x36])},_0x22c953=_0x4e73fb[_0x1038d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1038d4([0x67,0x65,0x74])](_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cc565(){let _0x49c268,_0x58c023=null,_0x7e9108=null;try{if(_0x22c953==_0x1038d4([0x47,0x50,0x4c]))return _0x1038d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49c268=_0x29318e(),!_0x49c268)return _0x1038d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49c268[_0x1038d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7e9108=_0x252b77(_0x49c268[_0x1038d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49c268[_0x1038d4([0x6a,0x74,0x69])])),await _0x346568()?_0x323abc()?_0xf04ab8()?_0x1038d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x195069()?(_0x49c268[_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1038d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58c023=_0x3118fe(_0x1038d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57e6f1()):_0x1038d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1038d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1038d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1038d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf04ab8(){const _0x5e9c20=[_0x1038d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1038d4([0x74,0x72,0x69,0x61,0x6c])][_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c268[_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbccd8b/0x3e8:0xe10*_0x4eb968;return _0x49c268[_0x1038d4([0x65,0x78,0x70])]<_0x5e9c20;}function _0x323abc(){const _0x3fbf69=_0x49c268[_0x1038d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3fbf69&&(!!_0x3fbf69[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1038d4([0x2a]))||!!_0x3fbf69[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1038d4([0x55,0x50,0x4c,0x43])));}function _0x195069(){const _0x46519d=_0x58fd,_0x5a754c=_0x49c268[_0x1038d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a754c||0x0==_0x5a754c[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x554994}=new URL(window[_0x1038d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x46519d(0xe0)]);if(_0x5a754c[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554994))return!0x0;const _0xe8feaa=_0x554994[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e]));return _0x5a754c[_0x1038d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e25dd=>_0x3e25dd[_0x1038d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1038d4([0x2a])))[_0x1038d4([0x6d,0x61,0x70])](_0x3e7ef6=>_0x3e7ef6[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e])))[_0x1038d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cab05=>_0x4cab05[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe8feaa[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1038d4([0x6d,0x61,0x70])](_0x1e61d9=>Array(_0xe8feaa[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e61d9[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1038d4([0x66,0x69,0x6c,0x6c])](_0x1e61d9[0x0]===_0x1038d4([0x2a])?_0x1038d4([0x2a]):'')[_0x1038d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e61d9))[_0x1038d4([0x73,0x6f,0x6d,0x65])](_0x2f4dfc=>_0xe8feaa[_0x1038d4([0x65,0x76,0x65,0x72,0x79])]((_0x1c5eb3,_0x43c8bb)=>_0x2f4dfc[_0x43c8bb]===_0x1c5eb3||_0x2f4dfc[_0x43c8bb]===_0x1038d4([0x2a])));}function _0x57e6f1(){return _0x58c023&&_0x7e9108?new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x225f33,_0x38aca5)=>{_0x58c023[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x225f33,_0x38aca5),_0x7e9108[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x36143d=>{_0x36143d!=_0x1038d4([0x56,0x61,0x6c,0x69,0x64])&&_0x225f33(_0x36143d);},_0x38aca5);}):_0x58c023||_0x7e9108||_0x1038d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x252b77(_0x55c386,_0x946ce2){return new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c845d=>{if(_0x54ca56())return _0x1c845d(_0x1038d4([0x56,0x61,0x6c,0x69,0x64]));_0x404e7d(),_0x4e73fb[_0x1038d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1038d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5942c2=!0x1;const _0x3ee98f=_0x59bb61();function _0x535d60(_0x44fc04){return!!_0x44fc04&&(typeof _0x44fc04===_0x1038d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x44fc04===_0x1038d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x44fc04[_0x1038d4([0x74,0x68,0x65,0x6e])]===_0x1038d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x44fc04[_0x1038d4([0x63,0x61,0x74,0x63,0x68])]===_0x1038d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f8e15(_0x54ee47){_0x24c531(_0x54ee47)[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x93b7db=>{if(!_0x93b7db||_0x93b7db[_0x1038d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1038d4([0x6f,0x6b]))return _0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x361f96(_0x6e1ff(_0x3ee98f+_0x946ce2))!=_0x93b7db[_0x1038d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1038d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x9b63e1=>(_0x32f972(),_0x9b63e1),()=>{const _0x28a23d=_0x11b43d();return null==_0x28a23d?(_0x32f972(),_0x1038d4([0x56,0x61,0x6c,0x69,0x64])):_0x1038d4(_0xbccd8b-_0x28a23d>(0x7753083a^_0x2b5e6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x1c845d)[_0x1038d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c845d(_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fbada=0x536962ba^_0x2b5e6f;function _0x32f972(){const _0x35f5ac=_0x1038d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x361f96(_0x6e1ff(_0x55c386)),_0x2704ea=_0x464c99(_0x361f96(window[_0x1038d4([0x4d,0x61,0x74,0x68])][_0x1038d4([0x63,0x65,0x69,0x6c])](_0xbccd8b/_0x4fbada)));window[_0x1038d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1038d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35f5ac,_0x2704ea);}function _0x11b43d(){const _0x125f8c=_0x1038d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x361f96(_0x6e1ff(_0x55c386)),_0x38a6c2=window[_0x1038d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1038d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x125f8c);return _0x38a6c2?window[_0x1038d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464c99(_0x38a6c2),0x10)*_0x4fbada:null;}function _0x24c531(_0x4bb8b6){return new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a50a6,_0x3e5729)=>{_0x4bb8b6[_0x1038d4([0x74,0x68,0x65,0x6e])](_0x1a50a6,_0x3e5729),window[_0x1038d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e5729,0x535e58fa^_0x2b5e6f);});}}_0x4e73fb[_0x1038d4([0x6f,0x6e])](_0x1038d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e76b3,_0x5863a7)=>{if(_0x5863a7[0x0]!=_0x55c386)return _0x1c845d(_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5863a7[0x1]={..._0x5863a7[0x1],[_0x1038d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ee98f};},{[_0x1038d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1038d4([0x68,0x69,0x67,0x68])}),_0x4e73fb[_0x1038d4([0x6f,0x6e])](_0x1038d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57d5ea=>{_0x535d60(_0x57d5ea[_0x1038d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5942c2=!0x0,_0x1f8e15(_0x57d5ea[_0x1038d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1038d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1038d4([0x6c,0x6f,0x77])}),_0x203805[_0x1038d4([0x74,0x68,0x65,0x6e])](()=>{_0x5942c2||_0x1c845d(_0x1038d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54ca56(){return _0x4e73fb[_0x1038d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1038d4([0x76,0x69,0x65,0x77])][_0x1038d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1038d4([0x61,0x75,0x74,0x6f]);}function _0x404e7d(){_0x4e73fb[_0x1038d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1038d4([0x76,0x69,0x65,0x77])][_0x1038d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1038d4([0x61,0x75,0x74,0x6f]);}}function _0x3118fe(_0x5e57dc){const _0x3e3e4b=[new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f481a=>setTimeout(_0x4f481a,0x5356b2f6^_0x2b5e6f)),_0x203805[_0x1038d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410891=>{let _0x21d157=0x0;_0x4e73fb[_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1038d4([0x6f,0x6e])](_0x1038d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x227f76,_0x84aa3)=>{_0x84aa3[0x0][_0x1038d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21d157++,_0x21d157==(0x535f89d2^_0x2b5e6f)&&(_0x410891(),_0x227f76[_0x1038d4([0x6f,0x66,0x66])]());});}))];return window[_0x1038d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1038d4([0x72,0x61,0x63,0x65])](_0x3e3e4b)[_0x1038d4([0x74,0x68,0x65,0x6e])](()=>_0x5e57dc);}async function _0x17a239(){await _0x203805,_0x4e73fb[_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1038d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e7fe0,_0x4e73fb[_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1038d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e7fe0,_0x4e73fb[_0x1038d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1038d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3dd4b1(_0x304f19){const _0x3d74bb=_0x3ec1c5();_0x4e73fb[_0x3d74bb]=_0x1038d4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x304f19,_0x304f19!=_0x1038d4([0x56,0x61,0x6c,0x69,0x64])&&_0x17a239();}function _0x3ec1c5(){const _0x3a2ff8=window[_0x1038d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1038d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1038d4([0x6e,0x6f,0x77])]())[_0x1038d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1038d4([0x2e]),'');let _0xfb3d3e=_0x1038d4([0x68]);for(let _0x328c9a=0x0;_0x328c9a<_0x3a2ff8[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x328c9a+=0x2){let _0x3fdceb=window[_0x1038d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a2ff8[_0x1038d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x328c9a,_0x328c9a+0x2));_0x3fdceb>=_0x5df77b[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fdceb-=_0x5df77b[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfb3d3e+=_0x5df77b[_0x3fdceb];}return _0xfb3d3e;}function _0x29318e(){const _0x5e61d3=_0x22c953[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e]));if(0x3!=_0x5e61d3[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b4372(_0x5e61d3[0x1]);function _0x5b4372(_0x3ce34a){const _0x49d52e=_0x1ce6a7(_0x3ce34a);return _0x49d52e&&_0x5b3665()?_0x49d52e:null;function _0x5b3665(){const _0x3c89d1=_0x49d52e[_0x1038d4([0x6a,0x74,0x69])],_0x32b201=window[_0x1038d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c89d1[_0x1038d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c89d1[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x570dcb={..._0x49d52e,[_0x1038d4([0x6a,0x74,0x69])]:_0x3c89d1[_0x1038d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c89d1[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x570dcb[_0x1038d4([0x76,0x63])],_0x6e1ff(_0x570dcb)==_0x32b201;}}}async function _0x346568(){let _0x10e40c=!0x0;try{const _0x257e52=_0x22c953[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])](_0x1038d4([0x2e])),[_0x1cf249,_0xe5ed15,_0x335007]=_0x257e52;return _0x2ab0cd(_0x1cf249),await _0x43536e(_0x1cf249,_0xe5ed15,_0x335007),_0x10e40c;}catch{return!0x1;}function _0x2ab0cd(_0x48c56a){const _0x2e2c1e=_0x1ce6a7(_0x48c56a);_0x2e2c1e&&_0x2e2c1e[_0x1038d4([0x61,0x6c,0x67])]==_0x1038d4([0x45,0x53,0x32,0x35,0x36])||(_0x10e40c=!0x1);}async function _0x43536e(_0x5a9bb0,_0x1facb6,_0x5a0d91){const _0xad14e=window[_0x1038d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1038d4([0x66,0x72,0x6f,0x6d])](_0x18279d(_0x5a0d91),_0xaadf41=>_0xaadf41[_0x1038d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e5bef=new window[(_0x1038d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1038d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a9bb0+_0x1038d4([0x2e])+_0x1facb6),_0x1f4823=window[_0x1038d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1038d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f4823)return;const _0x389ce2=await _0x1f4823[_0x1038d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1038d4([0x6a,0x77,0x6b]),_0x4d340a,{[_0x1038d4([0x6e,0x61,0x6d,0x65])]:_0x1038d4([0x45,0x43,0x44,0x53,0x41]),[_0x1038d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1038d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1038d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f4823[_0x1038d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1038d4([0x6e,0x61,0x6d,0x65])]:_0x1038d4([0x45,0x43,0x44,0x53,0x41]),[_0x1038d4([0x68,0x61,0x73,0x68])]:{[_0x1038d4([0x6e,0x61,0x6d,0x65])]:_0x1038d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x389ce2,_0xad14e,_0x3e5bef)||(_0x10e40c=!0x1);}}function _0x1ce6a7(_0x157a8e){return _0x157a8e[_0x1038d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1038d4([0x65,0x79]))?JSON[_0x1038d4([0x70,0x61,0x72,0x73,0x65])](_0x18279d(_0x157a8e)):null;}function _0x18279d(_0x41e7f6){return window[_0x1038d4([0x61,0x74,0x6f,0x62])](_0x41e7f6[_0x1038d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1038d4([0x2b]))[_0x1038d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1038d4([0x2f])));}function _0x6e1ff(_0x442fa7){let _0x5adbeb=0x1505;function _0x1b1aef(_0x455c80){for(let _0x1d3f60=0x0;_0x1d3f60<_0x455c80[_0x1038d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d3f60++){const _0x518f58=_0x455c80[_0x1038d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d3f60);_0x5adbeb=(_0x5adbeb<<0x5)+_0x5adbeb+_0x518f58,_0x5adbeb&=_0x5adbeb;}}function _0x44c039(_0x28062d){Array[_0x1038d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28062d)?_0x28062d[_0x1038d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44c039):_0x28062d&&typeof _0x28062d==_0x1038d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1038d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28062d)[_0x1038d4([0x73,0x6f,0x72,0x74])]()[_0x1038d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x170d38,_0x5b2bd6])=>{_0x1b1aef(_0x170d38),_0x44c039(_0x5b2bd6);}):_0x1b1aef(window[_0x1038d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28062d));}return _0x44c039(_0x442fa7),_0x5adbeb>>>0x0;}function _0x361f96(_0x1e0c38){return _0x1e0c38[_0x1038d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1038d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1038d4([0x30]));}function _0x464c99(_0xd9d635){return _0xd9d635[_0x1038d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1038d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1038d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e7fe0(){}function _0x1038d4(_0x464a68){const _0x499fc1=_0x58fd;return _0x464a68[_0x499fc1(0xe1)](_0x44d444=>String[_0x499fc1(0xeb)](_0x44d444))[_0x499fc1(0x122)]('');}_0x3dd4b1(await _0x5cc565());}(this);}[_0x139a22(0xef)](){const _0x11c1c2=_0x139a22,_0x2bd0be=this[_0x11c1c2(0x11e)][_0x11c1c2(0xf7)][_0x11c1c2(0xf1)];_0x2bd0be[_0x11c1c2(0x11d)](_0x11c1c2(0x111))&&_0x2bd0be[_0x11c1c2(0x10b)](_0x11c1c2(0x111),{'allowAttributes':[_0x11c1c2(0xe3)]}),_0x2bd0be[_0x11c1c2(0x11d)](_0x11c1c2(0x126))&&_0x2bd0be[_0x11c1c2(0x10b)](_0x11c1c2(0x126),{'allowAttributes':[_0x11c1c2(0xe3)]});}[_0x139a22(0xed)](){const _0x45c1fa=_0x139a22,_0x387f50=this[_0x45c1fa(0x11e)];_0x387f50[_0x45c1fa(0x10c)][_0x45c1fa(0xf9)](_0x45c1fa(0x104))[_0x45c1fa(0x119)]({'model':_0x45c1fa(0xe3),'view':_0x45c1fa(0xd8)}),_0x387f50[_0x45c1fa(0x10c)][_0x45c1fa(0xf9)](_0x45c1fa(0xe6))[_0x45c1fa(0x118)]({'model':{'key':_0x45c1fa(0xe3),'value':_0x22a667=>_0x22a667[_0x45c1fa(0x128)](_0x45c1fa(0xd8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f5b64=_0x387f50[_0x45c1fa(0x107)][_0x45c1fa(0xd7)](_0x45c1fa(0x124));_0x3f5b64&&this[_0x45c1fa(0xfd)](_0x3f5b64,_0x45c1fa(0x127),(_0x2bb125,[_0x1d27cf,_0x4ff5b7])=>{const _0x3c7dc=_0x45c1fa;_0x1d27cf[_0x3c7dc(0xe7)](_0x3c7dc(0xe3),_0x4ff5b7);});}[_0x139a22(0xd5)](){const _0x11e752=_0x139a22,_0x2d849c=this[_0x11e752(0x11e)][_0x11e752(0xff)][_0x11e752(0xd7)](_0x11e752(0x116))||{},_0x17d5b0=this[_0x11e752(0x11e)][_0x11e752(0xff)][_0x11e752(0xd7)](_0x11e752(0x102))||'';this[_0x11e752(0x11b)]=_0x1fe38e(_0x2810fe[_0x11e752(0xf6)],_0x11e752(0x10e),{..._0x2d849c,'pubkey':_0x17d5b0,'ctx-name':_0x11e752(0xe2)+this[_0x11e752(0xdf)],'sourceList':'','imgOnly':_0x11e752(0x121),'removeCopyright':_0x11e752(0x121),'localeName':this[_0x11e752(0x11e)][_0x11e752(0x112)][_0x11e752(0x11f)],'externalSourcesEmbedCss':_0x11e752(0xe5)}),this[_0x11e752(0x11b)][_0x11e752(0x101)]=_0x51aa16=>{const _0x14ebfb=_0x11e752;if(_0x14ebfb(0xf3)==_0x51aa16)return _0x14ebfb(0x125);},_0x2810fe[_0x11e752(0xf6)][_0x11e752(0x114)][_0x11e752(0x10f)](this[_0x11e752(0x11b)]);}[_0x139a22(0x10d)](){const _0x2c168d=_0x139a22;this[_0x2c168d(0x113)]=_0x1fe38e(_0x2810fe[_0x2c168d(0xf6)],_0x2c168d(0xd6),{'ctx-name':_0x2c168d(0xe2)+this[_0x2c168d(0xdf)]}),_0x2810fe[_0x2c168d(0xf6)][_0x2c168d(0x114)][_0x2c168d(0x10f)](this[_0x2c168d(0x113)]);}[_0x139a22(0xdc)](){const _0x4d615b=_0x139a22,_0x53be72=this[_0x4d615b(0x11e)][_0x4d615b(0x107)][_0x4d615b(0xd7)](_0x4d615b(0x100));_0x53be72&&this[_0x4d615b(0xfd)](_0x53be72,_0x4d615b(0xe9),()=>{const _0x36102f=_0x4d615b,_0x11d8c6=this[_0x36102f(0x11e)][_0x36102f(0xf7)][_0x36102f(0xf6)][_0x36102f(0xf5)][_0x36102f(0x115)]();_0x11d8c6&&_0x11d8c6[_0x36102f(0x128)](_0x36102f(0xe3))&&this[_0x36102f(0x11e)][_0x36102f(0x10a)][_0x36102f(0x106)][_0x36102f(0x117)](_0x36102f(0x11a),()=>{const _0x5b1746=_0x36102f;_0x5d2e95(this[_0x5b1746(0x11e)],_0x11d8c6);});});const _0x5f145a=this[_0x4d615b(0x11e)][_0x4d615b(0x107)][_0x4d615b(0xd7)](_0x4d615b(0xf0));_0x5f145a&&this[_0x4d615b(0xfd)](_0x5f145a,_0x4d615b(0xe9),()=>{const _0x3a847c=_0x4d615b,_0x72b6d0=this[_0x3a847c(0x11e)][_0x3a847c(0xf7)][_0x3a847c(0xf6)][_0x3a847c(0xf5)][_0x3a847c(0x115)]();_0x72b6d0&&_0x72b6d0[_0x3a847c(0x128)](_0x3a847c(0xe3))&&this[_0x3a847c(0x11e)][_0x3a847c(0x10a)][_0x3a847c(0x106)][_0x3a847c(0x117)](_0x3a847c(0x11a),()=>{const _0xb45308=_0x3a847c;_0x5d2e95(this[_0xb45308(0x11e)],_0x72b6d0);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x361008,ObservableMixin as _0x38e58a}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x42644a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x322a7a}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5841b4}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x205402}from'../../utils/uploadutils.js';import{getImageUrls as _0x126b05,getImageDimension as _0x5140de}from'../../utils/editingutils.js';import{isAncestor as _0x55864d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x38e58a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x309461,_0x5d9b5a,_0x2cfcc1){super(),this['_editor']=_0x309461,this['_dialog']=_0x5d9b5a,this['_imageElement']=_0x2cfcc1,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 _0x912841=this['_imageElement'],_0x3e91ff=_0x912841['getAttribute']('uploadcareImageId'),_0x5408c5=_0x912841['getAttribute']('src');if(_0x3e91ff)await this['_loadImageInfo'](_0x3e91ff,_0x5408c5);else{if(this['_imageCache']['has'](_0x5408c5)){const _0xa5f57f=this['_imageCache']['get'](_0x5408c5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa5f57f['url'],this['imageDimension']=_0xa5f57f['dimension'],this['imageId']=_0xa5f57f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x35395c}=this['_editor'],t=_0x35395c['t'],_0x2ee81e=new _0x5841b4(_0x35395c,this['imageStatus'],this['_attributes']);_0x2ee81e['bind']('status')['to'](this,'imageStatus'),_0x2ee81e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2ee81e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2ee81e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2ee81e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x322a7a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2ee81e,'position':_0x42644a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2ee81e['focus']();},'onHide':()=>{_0x2ee81e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x47f7e8=>!_0x55864d(_0x47f7e8,_0x2ee81e['element'])}});}['_loadImageInfo'](_0x37f385,_0x479b74){return _0x205402['getInfo'](_0x37f385,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2554b6=>{const {width:_0x20f8d6,height:_0x1aeb55}=_0x2554b6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x479b74,this['imageDimension']={'width':_0x20f8d6,'height':_0x1aeb55},this['imageId']=_0x37f385;})['catch'](_0x5c7e85=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c7e85['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4bb481,_0x7b0f20){return this['_getImageAsFile'](_0x4bb481)['then'](_0x1044ed=>_0x205402['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':_0x7b0f20['signal'],'file':_0x1044ed,'onProgress':_0x5a1a98=>{_0x5a1a98&&_0x5a1a98['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5a1a98['value']));}}))['then'](_0x1fef29=>{const {width:_0x9f4c96,height:_0x5e6374}=_0x1fef29['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fef29['cdnUrl'],this['imageDimension']={'width':_0x9f4c96,'height':_0x5e6374},this['imageId']=_0x1fef29['uuid'],this['imageUploadProgress']=null;const _0x3847d9=_0x4bb481['getAttribute']('src');this['_imageCache']['set'](_0x3847d9,{'id':_0x1fef29['uuid'],'url':_0x1fef29['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x36df0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36df0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4fe79d,_0x4090f7){_0x4fe79d['on']('apply',(_0x1caf4f,_0x3b8ea6)=>{this['_replaceImage'](_0x4090f7,_0x3b8ea6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4fe79d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4fe79d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x7d0a0d,_0x51c0f1,_0x51488d){const _0xa50168=this['_editor'],{width:_0x13263c,height:_0x2c91ee}=_0x5140de(_0x51c0f1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x504e8c,imageSources:_0x2e906e}=_0x126b05(_0x51c0f1,_0x13263c);_0xa50168['model']['change'](_0x24b6a9=>{if('$graveyard'===_0x7d0a0d['root']['rootName']){_0xa50168['execute']('insertImage',{'imageType':_0x7d0a0d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x7d0a0d['getAttributes']()),'uploadcareImageId':_0x51488d,'src':_0x504e8c,'sources':_0x2e906e,'width':_0x13263c,'height':_0x2c91ee}});const _0x354601=_0x7d0a0d['getChildren']();_0x7d0a0d=_0xa50168['model']['document']['selection']['getSelectedElement']();for(const _0x5828cf of _0x354601)_0x24b6a9['append'](_0x24b6a9['cloneElement'](_0x5828cf),_0x7d0a0d);}else _0x24b6a9['setSelection'](_0x7d0a0d,'on'),_0xa50168['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x7d0a0d['getAttributes']()),'uploadcareImageId':_0x51488d,'src':_0x504e8c,'sources':_0x2e906e,'width':_0x13263c,'height':_0x2c91ee},_0x7d0a0d);_0x24b6a9['setSelection'](_0x7d0a0d,'on');});}async['_getImageAsFile'](_0x11c710){const _0x388099=_0x361008['window'],_0x4df7e1=_0x361008['document']['location']['href'],_0x5980ed=new _0x388099['URL'](_0x11c710['getAttribute']('src'),_0x4df7e1);if('data:'===_0x5980ed['protocol']){const _0x15d224=_0x5980ed['href']['split'](','),_0x963f7e=_0x15d224[0x0]['match'](/:(.*?);/)[0x1],_0x2ac6a9=_0x963f7e['split']('/')[0x1],_0x36576a=_0x388099['atob'](_0x15d224[_0x15d224['length']-0x1]);let _0x3d38dd=_0x36576a['length'];const _0x91069b=new _0x388099['Uint8Array'](_0x3d38dd);for(;_0x3d38dd--;)_0x91069b[_0x3d38dd]=_0x36576a['charCodeAt'](_0x3d38dd);return new _0x388099['File']([_0x91069b],'image.'+_0x2ac6a9,{'type':_0x963f7e});}const _0x21527f=_0x5980ed['href']['split']('/'),_0x41b4c8=_0x21527f[_0x21527f['length']-0x1],_0xbbeefa=_0x41b4c8['split']('.')[0x1];return _0x388099['fetch'](_0x5980ed['href'])['then'](_0x2d4442=>_0x2d4442['clone']()['blob']())['then'](_0x514350=>new _0x388099['File']([_0x514350],_0x41b4c8,{'type':'image/'+_0xbbeefa}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3137(){const _0x4c578c=['47312OtGozY','7EdxdaT','imageSrc','2207690CQbEkN','bindTemplate','3636HXuPDa','268lHbhdr','21thHqWE','image-edit','2345130iZuZJT','set','uc-cloud-image-editor','ck-uploadcare-theme','uc-light','3632224LVgKhI','1176370CEbfoK','11BjCYwy','125262wpnxMK','setTemplate'];_0x3137=function(){return _0x4c578c;};return _0x3137();}(function(_0x681beb,_0x20d802){const _0x5096c2=_0x24a4,_0x8d25d3=_0x681beb();while(!![]){try{const _0x4382ee=-parseInt(_0x5096c2(0x130))/0x1*(-parseInt(_0x5096c2(0x131))/0x2)+parseInt(_0x5096c2(0x132))/0x3*(-parseInt(_0x5096c2(0x12b))/0x4)+-parseInt(_0x5096c2(0x12e))/0x5+-parseInt(_0x5096c2(0x129))/0x6*(parseInt(_0x5096c2(0x12c))/0x7)+parseInt(_0x5096c2(0x126))/0x8+-parseInt(_0x5096c2(0x134))/0x9+parseInt(_0x5096c2(0x127))/0xa*(parseInt(_0x5096c2(0x128))/0xb);if(_0x4382ee===_0x20d802)break;else _0x8d25d3['push'](_0x8d25d3['shift']());}catch(_0x1ebddd){_0x8d25d3['push'](_0x8d25d3['shift']());}}}(_0x3137,0x3dcb4));function _0x24a4(_0x31dd3e,_0xa0435d){const _0x3137f6=_0x3137();return _0x24a4=function(_0x24a4d0,_0x349b32){_0x24a4d0=_0x24a4d0-0x126;let _0x3c7380=_0x3137f6[_0x24a4d0];return _0x3c7380;},_0x24a4(_0x31dd3e,_0xa0435d);}import{View as _0xcfde30}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xcfde30{constructor(_0x112fb8,_0x260c8f){const _0x4a6edb=_0x24a4;super(_0x112fb8);const _0x315fbc=this[_0x4a6edb(0x12f)];this[_0x4a6edb(0x135)](_0x4a6edb(0x12d),''),this[_0x4a6edb(0x12a)]({'tag':_0x4a6edb(0x136),'attributes':{..._0x260c8f,'class':[_0x4a6edb(0x138),_0x4a6edb(0x137)],'ctx-name':_0x4a6edb(0x133),'cdn-url':_0x315fbc['to'](_0x4a6edb(0x12d))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4e1625}from'ckeditor5/src/icons.js';import{ButtonView as _0x5a8f27,IconView as _0x3a9e70,View as _0x588961}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x588961{constructor(_0x432110){super(_0x432110);const t=_0x432110['t'];this['set']('errorType',null);const _0x19926c=new _0x5a8f27(_0x432110);_0x19926c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x19926c['withText']=!0x0,_0x19926c['class']='ck-button-action',_0x19926c['on']('execute',()=>{this['fire']('retry');}),_0x19926c['bind']('isVisible')['to'](this,'errorType',_0x4db51e=>'NotFound'!==_0x4db51e);const _0x209248=new _0x3a9e70();_0x209248['content']=_0x4e1625,_0x209248['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5cbdd6=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':[_0x209248,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5cbdd6['to']('errorType',_0x323313=>t('NotFound'!==_0x323313?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x19926c]},{'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 _0x5c4c3a,View as _0x49fec4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x49fec4{constructor(_0x2aeb08){super(_0x2aeb08);const t=_0x2aeb08['t'],_0x4f3e21=this['bindTemplate'],_0x58b3e6=new _0x5c4c3a();_0x58b3e6['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':[_0x58b3e6,{'text':_0x4f3e21['to']('imageUploadProgress',_0x3b1c77=>t('Loading\x20image...')+'\x20('+(_0x3b1c77||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 _0xbd67a0=_0x4f93;(function(_0x177622,_0x3bbd52){const _0x3fbea8=_0x4f93,_0xf87666=_0x177622();while(!![]){try{const _0x44b6cc=parseInt(_0x3fbea8(0x118))/0x1+-parseInt(_0x3fbea8(0x117))/0x2*(-parseInt(_0x3fbea8(0x130))/0x3)+-parseInt(_0x3fbea8(0x12d))/0x4+parseInt(_0x3fbea8(0x146))/0x5+-parseInt(_0x3fbea8(0x13c))/0x6*(-parseInt(_0x3fbea8(0x12e))/0x7)+parseInt(_0x3fbea8(0x12b))/0x8+parseInt(_0x3fbea8(0x119))/0x9*(-parseInt(_0x3fbea8(0x143))/0xa);if(_0x44b6cc===_0x3bbd52)break;else _0xf87666['push'](_0xf87666['shift']());}catch(_0xf5ec9b){_0xf87666['push'](_0xf87666['shift']());}}}(_0xe752,0x54fa2));import{View as _0x3cdbfd}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x369f23}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3eb06e}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x421890}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3b7d7c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4f93(_0x29410d,_0x329f9f){const _0xe75256=_0xe752();return _0x4f93=function(_0x4f9365,_0x3632bd){_0x4f9365=_0x4f9365-0x113;let _0x2bac70=_0xe75256[_0x4f9365];return _0x2bac70;},_0x4f93(_0x29410d,_0x329f9f);}export class UploadcareImageEditFormView extends _0x3b7d7c{[_0xbd67a0(0x134)];[_0xbd67a0(0x11b)];[_0xbd67a0(0x147)];[_0xbd67a0(0x11e)];[_0xbd67a0(0x13f)];constructor(_0x11a785,_0x6abd29,_0x58286f){const _0x9c32ec=_0xbd67a0;super(_0x11a785),this[_0x9c32ec(0x134)]=this[_0x9c32ec(0x135)](),this[_0x9c32ec(0x11b)]=new _0x369f23(_0x11a785),this[_0x9c32ec(0x147)]=new _0x3eb06e(_0x11a785),this[_0x9c32ec(0x11e)]=new _0x421890(_0x11a785,_0x58286f),this[_0x9c32ec(0x13f)]=new _0x3cdbfd(_0x11a785),this[_0x9c32ec(0x13f)][_0x9c32ec(0x127)](this[_0x9c32ec(0x124)]()),this[_0x9c32ec(0x137)](_0x9c32ec(0x148),_0x6abd29),this[_0x9c32ec(0x127)]({'tag':_0x9c32ec(0x11d),'attributes':{'class':['ck',_0x9c32ec(0x13b),_0x9c32ec(0x13a)],'tabindex':'-1'},'children':this[_0x9c32ec(0x134)]}),this[_0x9c32ec(0x129)](),this[_0x9c32ec(0x13e)](_0x9c32ec(0x141),()=>{const _0x59a450=_0x9c32ec;this[_0x59a450(0x125)](this[_0x59a450(0x139)],_0x2722c8=>{const _0x1d1529=_0x59a450;this[_0x1d1529(0x116)](_0x2722c8);});}),this['on'](_0x9c32ec(0x12a),()=>{const _0x57876c=_0x9c32ec;this[_0x57876c(0x129)]();}),this[_0x9c32ec(0x131)]();}[_0xbd67a0(0x136)](){const _0x24e265=_0xbd67a0;this[_0x24e265(0x139)][_0x24e265(0x136)]();}[_0xbd67a0(0x129)](){const _0x1fb741=_0xbd67a0;switch(this[_0x1fb741(0x134)][_0x1fb741(0x12c)](),this[_0x1fb741(0x148)]){case _0x1fb741(0x144):this[_0x1fb741(0x134)][_0x1fb741(0x114)](this[_0x1fb741(0x11b)]);break;case _0x1fb741(0x142):this[_0x1fb741(0x134)][_0x1fb741(0x114)](this[_0x1fb741(0x147)]);break;case _0x1fb741(0x11f):this[_0x1fb741(0x134)][_0x1fb741(0x149)]([this[_0x1fb741(0x11e)],this[_0x1fb741(0x13f)]]);}}[_0xbd67a0(0x125)](_0x5530d4,_0x47af83){const _0x4f127c=_0xbd67a0,_0x20d5f2=_0x4f127c(0x113),_0x324c49=_0x5530d4[_0x4f127c(0x133)](_0x20d5f2);if(_0x324c49)return _0x47af83(_0x324c49);const _0x14d44d=new MutationObserver(_0x37672f=>{const _0x27dfdb=_0x4f127c,_0x18d68b=_0x37672f[_0x27dfdb(0x126)](_0x3c9d1d=>_0x3c9d1d[_0x27dfdb(0x11a)]===_0x5530d4&&_0x3c9d1d[_0x27dfdb(0x115)][_0x27dfdb(0x12f)]>0x0&&_0x3c9d1d[_0x27dfdb(0x115)][0x0][_0x27dfdb(0x11c)][_0x27dfdb(0x121)]()===_0x20d5f2);_0x18d68b[_0x27dfdb(0x12f)]&&(_0x14d44d[_0x27dfdb(0x128)](),_0x47af83(_0x18d68b[0x0][_0x27dfdb(0x115)][0x0]));});_0x14d44d[_0x4f127c(0x123)](_0x5530d4,{'childList':!0x0,'subtree':!0x0});}[_0xbd67a0(0x116)](_0x20a6b4){const _0x192a10=_0xbd67a0;_0x20a6b4[_0x192a10(0x120)](_0x192a10(0x145),_0x447919=>{const _0x519092=_0x192a10;this[_0x519092(0x132)](_0x519092(0x145),{'imageSrc':_0x447919[_0x519092(0x13d)][_0x519092(0x140)]});}),_0x20a6b4[_0x192a10(0x120)](_0x192a10(0x122),()=>{const _0xf39c31=_0x192a10;this[_0xf39c31(0x132)](_0xf39c31(0x122));});}[_0xbd67a0(0x131)](){const _0x326ca5=_0xbd67a0;this[_0x326ca5(0x147)]['on'](_0x326ca5(0x138),()=>{const _0x4ade19=_0x326ca5;this[_0x4ade19(0x132)](_0x4ade19(0x138));});}}function _0xe752(){const _0x36a91b=['48727yFJKig','length','60TAVMxo','_addErrorViewListeners','fire','querySelector','_items','createCollection','focus','set','retry','element','ck-uploadcare-form','ck-reset_all-excluded','84uuAfdh','detail','once','_focusableView','cdnUrl','render','error','7690iaPWyl','uploading','apply','1237330LKNpsY','_errorView','status','addMany','uc-cloud-image-editor','add','addedNodes','_addUploadcareImageEditorListeners','27856VlTCQi','364644XCJDlB','8469wXUfCA','target','_loadingView','nodeName','div','_editingView','ready','addEventListener','toLowerCase','cancel','observe','getFocusableElement','_waitForImageEditorComponent','filter','setTemplate','disconnect','_setView','change:status','5340264WiBwug','clear','2335848MwhEFl'];_0xe752=function(){return _0x36a91b;};return _0xe752();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3f0b(){const _0x4873d7=['600360BLwMqJ','_isEditable','120692YBGtOR','document','18XIkcly','275541OxnzWV','2236YgfqNw','unbind','getSelectedElement','300sdmDFP','refresh','imageBlock','217YKltlk','set','selection','get','plugins','bind','editor','3370NSenIa','9654nHNvuF','execute','model','isActive','imageEditController','72OdQRom','8503vjcgeV','17983008TdZlbq','config','imageInline','uploadcare.allowExternalImagesEditing','requires','element','isEnabled'];_0x3f0b=function(){return _0x4873d7;};return _0x3f0b();}const _0x30dc75=_0x876d;(function(_0x173b15,_0x3ec937){const _0x430f57=_0x876d,_0x57ae06=_0x173b15();while(!![]){try{const _0x50647e=parseInt(_0x430f57(0x9d))/0x1*(-parseInt(_0x430f57(0x9c))/0x2)+-parseInt(_0x430f57(0x88))/0x3+parseInt(_0x430f57(0x89))/0x4*(-parseInt(_0x430f57(0x96))/0x5)+parseInt(_0x430f57(0x97))/0x6*(-parseInt(_0x430f57(0x8f))/0x7)+-parseInt(_0x430f57(0xa5))/0x8*(parseInt(_0x430f57(0x87))/0x9)+parseInt(_0x430f57(0x8c))/0xa*(-parseInt(_0x430f57(0xa7))/0xb)+parseInt(_0x430f57(0x9e))/0xc;if(_0x50647e===_0x3ec937)break;else _0x57ae06['push'](_0x57ae06['shift']());}catch(_0x409d33){_0x57ae06['push'](_0x57ae06['shift']());}}}(_0x3f0b,0x2f8ae));import{Command as _0x13f122}from'ckeditor5/src/core.js';import{Dialog as _0x37a981}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3e6c25}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x47fe7f}from'../utils/editingutils.js';function _0x876d(_0x14e583,_0x2c5078){const _0x3f0bbc=_0x3f0b();return _0x876d=function(_0x876d93,_0x40da3d){_0x876d93=_0x876d93-0x87;let _0xb8ba9a=_0x3f0bbc[_0x876d93];return _0xb8ba9a;},_0x876d(_0x14e583,_0x2c5078);}export class UploadcareImageEditCommand extends _0x13f122{[_0x30dc75(0x9b)];static get[_0x30dc75(0xa2)](){return[_0x37a981];}[_0x30dc75(0xa6)];constructor(_0x355da4){const _0x3a57c8=_0x30dc75;super(_0x355da4),this[_0x3a57c8(0x9b)]=void 0x0,this[_0x3a57c8(0xa6)]=_0x47fe7f(_0x355da4[_0x3a57c8(0x9f)][_0x3a57c8(0x92)](_0x3a57c8(0xa1))||[]),this[_0x3a57c8(0x90)]({'isActive':!0x1});}[_0x30dc75(0x8d)](){const _0x4e3f6e=_0x30dc75,_0x286fa6=this[_0x4e3f6e(0x95)][_0x4e3f6e(0x99)][_0x4e3f6e(0xa8)][_0x4e3f6e(0x91)][_0x4e3f6e(0x8b)]();this[_0x4e3f6e(0xa4)]=this[_0x4e3f6e(0xa6)](_0x286fa6);}[_0x30dc75(0x98)](){const _0x4c77b0=_0x30dc75;this[_0x4c77b0(0x9b)]&&(this[_0x4c77b0(0x8a)](_0x4c77b0(0x9a)),this[_0x4c77b0(0x9b)]=void 0x0);const _0x28bd6b=this[_0x4c77b0(0x95)][_0x4c77b0(0x99)][_0x4c77b0(0xa8)][_0x4c77b0(0x91)][_0x4c77b0(0x8b)]();_0x28bd6b&&(_0x28bd6b['is'](_0x4c77b0(0xa3),_0x4c77b0(0x8e))||_0x28bd6b['is'](_0x4c77b0(0xa3),_0x4c77b0(0xa0)))&&(this[_0x4c77b0(0x9b)]=new _0x3e6c25(this[_0x4c77b0(0x95)],this[_0x4c77b0(0x95)][_0x4c77b0(0x93)][_0x4c77b0(0x92)](_0x37a981),_0x28bd6b),this[_0x4c77b0(0x94)](_0x4c77b0(0x9a))['to'](this[_0x4c77b0(0x9b)],_0x4c77b0(0x9a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x170c4b=_0x29fe;(function(_0x53edf1,_0x30cbb7){const _0x440e48=_0x29fe,_0x54509c=_0x53edf1();while(!![]){try{const _0x1a0667=parseInt(_0x440e48(0x9d))/0x1*(-parseInt(_0x440e48(0x8e))/0x2)+-parseInt(_0x440e48(0x98))/0x3*(parseInt(_0x440e48(0x94))/0x4)+parseInt(_0x440e48(0x95))/0x5*(parseInt(_0x440e48(0x8b))/0x6)+-parseInt(_0x440e48(0x8f))/0x7*(parseInt(_0x440e48(0x99))/0x8)+parseInt(_0x440e48(0x9a))/0x9+-parseInt(_0x440e48(0x9e))/0xa+-parseInt(_0x440e48(0x9f))/0xb;if(_0x1a0667===_0x30cbb7)break;else _0x54509c['push'](_0x54509c['shift']());}catch(_0x3d2a78){_0x54509c['push'](_0x54509c['shift']());}}}(_0x4dd9,0x31b3a));function _0x4dd9(){const _0x4fb76e=['52166pAPRcy','21xezCVf','pluginName','isPremiumPlugin','init','add','4RsCWmp','1869470VdOKhx','uploadcareImageReplace','uploadcareImageEdit','333075nydmia','354824IhDfVl','3226635wGiFCT','commands','requires','3fzcalb','186560AiKJhD','2066262lyCfUk','ImageEditing','isOfficialPlugin','6AynnPM','ImageUtils','UploadcareImageEditEditing'];_0x4dd9=function(){return _0x4fb76e;};return _0x4dd9();}import{Plugin as _0x4f5e28}from'ckeditor5/src/core.js';import{Notification as _0x3fa8cc}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1d7406}from'./uploadcareimageeditcommand.js';function _0x29fe(_0x587cdb,_0x4961d5){const _0x4dd9d5=_0x4dd9();return _0x29fe=function(_0x29fee2,_0x12b7c6){_0x29fee2=_0x29fee2-0x89;let _0x353d85=_0x4dd9d5[_0x29fee2];return _0x353d85;},_0x29fe(_0x587cdb,_0x4961d5);}import{UploadcareImageReplaceCommand as _0x2a074c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1d8c53}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4f5e28{static get[_0x170c4b(0x90)](){const _0xf08fae=_0x170c4b;return _0xf08fae(0x8d);}static get[_0x170c4b(0x9c)](){const _0x25568a=_0x170c4b;return[_0x1d8c53,_0x3fa8cc,_0x25568a(0x8c),_0x25568a(0x89)];}static get[_0x170c4b(0x8a)](){return!0x0;}static get[_0x170c4b(0x91)](){return!0x0;}[_0x170c4b(0x92)](){const _0x350269=_0x170c4b,{editor:_0x4879c3}=this;_0x4879c3[_0x350269(0x9b)][_0x350269(0x93)](_0x350269(0x97),new _0x1d7406(_0x4879c3)),_0x4879c3[_0x350269(0x9b)][_0x350269(0x93)](_0x350269(0x96),new _0x2a074c(_0x4879c3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3fae4d}from'ckeditor5/src/core.js';import{ButtonView as _0xa775f3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x191260}from'ckeditor5/src/icons.js';import{createElement as _0x4fc856}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 _0x3fae4d{['_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 _0x39a755=this['editor'];_0x39a755['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39ae46=>{const _0x4ed4e4=_0x39a755['commands']['get']('uploadcareImageEdit'),_0x26f89f=new _0xa775f3(_0x39ae46),t=_0x39ae46['t'];return _0x26f89f['set']({'icon':_0x191260,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26f89f['bind']('isEnabled')['to'](_0x4ed4e4),_0x26f89f['bind']('isOn')['to'](_0x4ed4e4,'isActive'),this['listenTo'](_0x26f89f,'execute',()=>{_0x39a755['execute']('uploadcareImageEdit'),_0x39a755['editing']['view']['focus']();}),_0x26f89f;}),this['_initConfig']();}['_initConfig'](){const _0x1c2fef=_0x4fc856(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1c2fef),this['listenTo'](this['editor'],'destroy',()=>{_0x1c2fef['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4d394b=_0x4704;(function(_0xf33b8f,_0x154392){const _0x1b69ed=_0x4704,_0x136c7b=_0xf33b8f();while(!![]){try{const _0x397e9c=-parseInt(_0x1b69ed(0x19b))/0x1+parseInt(_0x1b69ed(0x1a9))/0x2*(parseInt(_0x1b69ed(0x1ad))/0x3)+parseInt(_0x1b69ed(0x1b2))/0x4*(parseInt(_0x1b69ed(0x19c))/0x5)+parseInt(_0x1b69ed(0x1a4))/0x6+parseInt(_0x1b69ed(0x1a7))/0x7+-parseInt(_0x1b69ed(0x19f))/0x8+-parseInt(_0x1b69ed(0x1a0))/0x9*(parseInt(_0x1b69ed(0x19e))/0xa);if(_0x397e9c===_0x154392)break;else _0x136c7b['push'](_0x136c7b['shift']());}catch(_0x2e5e5d){_0x136c7b['push'](_0x136c7b['shift']());}}}(_0x1f22,0x309c9));function _0x1f22(){const _0x2f2c1d=['removeAttribute','55180qXGMDV','10344cVabus','540pOkVOI','isEnabled','refresh','imageInline','767724FeWXJe','change','srcset','1698585DbjsEd','imageBlock','67274sbaGag','selection','sizes','editor','9luGHND','document','getSelectedElement','setAttributes','execute','164uDWxbI','element','model','146961CZvWGE','25235ufWSht'];_0x1f22=function(){return _0x2f2c1d;};return _0x1f22();}function _0x4704(_0x35fc99,_0x439012){const _0x1f2282=_0x1f22();return _0x4704=function(_0x4704c6,_0x413e93){_0x4704c6=_0x4704c6-0x19b;let _0x408772=_0x1f2282[_0x4704c6];return _0x408772;},_0x4704(_0x35fc99,_0x439012);}import{Command as _0x35d488}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x35d488{[_0x4d394b(0x1a2)](){const _0xa627ce=_0x4d394b,_0x15f28e=this[_0xa627ce(0x1ac)][_0xa627ce(0x1b4)][_0xa627ce(0x1ae)][_0xa627ce(0x1aa)][_0xa627ce(0x1af)]();this[_0xa627ce(0x1a1)]=Boolean(_0x15f28e&&(_0x15f28e['is'](_0xa627ce(0x1b3),_0xa627ce(0x1a8))||_0x15f28e['is'](_0xa627ce(0x1b3),_0xa627ce(0x1a3))));}[_0x4d394b(0x1b1)](_0x194633){const _0x36e32d=_0x4d394b,_0x2b1344=this[_0x36e32d(0x1ac)][_0x36e32d(0x1b4)][_0x36e32d(0x1ae)][_0x36e32d(0x1aa)][_0x36e32d(0x1af)]();this[_0x36e32d(0x1ac)][_0x36e32d(0x1b4)][_0x36e32d(0x1a5)](_0x586f6a=>{const _0x278244=_0x36e32d;_0x586f6a[_0x278244(0x1b0)](_0x194633,_0x2b1344),_0x586f6a[_0x278244(0x19d)](_0x278244(0x1a6),_0x2b1344),_0x586f6a[_0x278244(0x19d)](_0x278244(0x1ab),_0x2b1344);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16428f=_0x4c6f;(function(_0x10e3e8,_0x39b938){var _0x5cb92e=_0x4c6f,_0x91841=_0x10e3e8();while(!![]){try{var _0x38b5f2=parseInt(_0x5cb92e(0x144))/0x1+-parseInt(_0x5cb92e(0x142))/0x2+-parseInt(_0x5cb92e(0x146))/0x3+-parseInt(_0x5cb92e(0x148))/0x4*(-parseInt(_0x5cb92e(0x13e))/0x5)+-parseInt(_0x5cb92e(0x13d))/0x6+-parseInt(_0x5cb92e(0x141))/0x7*(-parseInt(_0x5cb92e(0x13b))/0x8)+-parseInt(_0x5cb92e(0x13f))/0x9*(-parseInt(_0x5cb92e(0x13a))/0xa);if(_0x38b5f2===_0x39b938)break;else _0x91841['push'](_0x91841['shift']());}catch(_0x38e263){_0x91841['push'](_0x91841['shift']());}}}(_0x42d7,0x927df));import{Plugin as _0x9c8fef}from'ckeditor5/src/core.js';function _0x42d7(){var _0x42e3b6=['877640EtSYsC','isOfficialPlugin','2781600jkCvFu','1351555NcRKwY','15013395VmWqwx','pluginName','7BpaxyP','1239622rXSFlo','isPremiumPlugin','212128cSxDKq','requires','1730571vuzfEf','UploadcareImageEdit','4BSEjJy','10WvIaMI'];_0x42d7=function(){return _0x42e3b6;};return _0x42d7();}import{UploadcareImageEditEditing as _0x1217c3}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4c6f(_0x2d432e,_0x3622e4){var _0x42d7ac=_0x42d7();return _0x4c6f=function(_0x4c6ff3,_0x3daea8){_0x4c6ff3=_0x4c6ff3-0x13a;var _0x28c67e=_0x42d7ac[_0x4c6ff3];return _0x28c67e;},_0x4c6f(_0x2d432e,_0x3622e4);}import{UploadcareImageEditUI as _0x4c5ccb}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x9c8fef{static get[_0x16428f(0x140)](){var _0x2e0f9f=_0x16428f;return _0x2e0f9f(0x147);}static get[_0x16428f(0x145)](){return[_0x1217c3,_0x4c5ccb];}static get[_0x16428f(0x13c)](){return!0x0;}static get[_0x16428f(0x143)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xbe1e54=_0xbfba;(function(_0x3e5fa8,_0x38e794){const _0x13df45=_0xbfba,_0x45011e=_0x3e5fa8();while(!![]){try{const _0x4922a1=parseInt(_0x13df45(0x1bb))/0x1+parseInt(_0x13df45(0x1ac))/0x2+-parseInt(_0x13df45(0x1a6))/0x3+parseInt(_0x13df45(0x1e1))/0x4*(-parseInt(_0x13df45(0x1e2))/0x5)+parseInt(_0x13df45(0x1b5))/0x6+-parseInt(_0x13df45(0x1a7))/0x7+parseInt(_0x13df45(0x1bc))/0x8*(parseInt(_0x13df45(0x1e3))/0x9);if(_0x4922a1===_0x38e794)break;else _0x45011e['push'](_0x45011e['shift']());}catch(_0x238b4d){_0x45011e['push'](_0x45011e['shift']());}}}(_0x5416,0xed676));import{Plugin as _0x2467db}from'ckeditor5/src/core.js';function _0x5416(){const _0x4f337c=['registerIntegration','Local','editor','text','uploadcare.uploader.sourceList','Facebook','isOfficialPlugin','map','evaluationLimit','Uploadcare','isImageSelected','forEach','Insert','Replace','push','config','2470164AMdPpi','15LdAmEj','46881YBoxLv','get','reduce','expired','shortText','_normalizeConfigSourceList','assetManager','has','destroy','uploadcareLicenseKeyDomainLimit','_showLicenseError','_createDropdownButtons','uploadcareLicenseKeyExpired','_licenseKeyCheckInterval','pluginName','ImageInsertUI','init','5595921rPrqiX','3606764BwFlyM','locale','uploadcareLicenseKeyValid','upload','OneDrive','28500zsOQIr','_createButton','UploadcareUI','uploadcareLicenseKeyNotAllowed','execute','plugins','label','_createToolbarButton','featureNotAllowed','1072164jHzojz','bind','licenseKey','uploadcare','icon','tooltip','1413225PJhjTt','5528jJBEmP','invalid','type','domainLimit','uploadcareLicenseKeyInvalid','usageLimit','uploadcareLicenseKeyEvaluationLimit','GPhotos','Dropbox','isPremiumPlugin','uploadcareLicenseKeyUsageLimit','url','afterInit','URL','_getIntegrationKey','commands','_createMenuBarButtons','GDrive','isEnabled','entries','withText'];_0x5416=function(){return _0x4f337c;};return _0x5416();}function _0xbfba(_0x2a1369,_0x37ee29){const _0x541605=_0x5416();return _0xbfba=function(_0xbfba7d,_0x4501c8){_0xbfba7d=_0xbfba7d-0x1a6;let _0x36f339=_0x541605[_0xbfba7d];return _0x36f339;},_0xbfba(_0x2a1369,_0x37ee29);}import{IconDropbox as _0x1ef78e,IconFacebook as _0x1ad5e7,IconGoogleDrive as _0x52f502,IconGooglePhotos as _0x2cb608,IconUploadcareImageUpload as _0x37dbd5,IconUploadcareLink as _0x4c8b51,IconOneDrive as _0x2f3774}from'ckeditor5/src/icons.js';import{ButtonView as _0x178d47,MenuBarMenuListItemButtonView as _0x26eed5}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x51582c}from'./uploadcareconfig.js';import{getTranslation as _0x1a8ce2}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 _0x2467db{[_0xbe1e54(0x1b7)];[_0xbe1e54(0x1f0)];static get[_0xbe1e54(0x1f1)](){const _0x1b510e=_0xbe1e54;return _0x1b510e(0x1ae);}static get[_0xbe1e54(0x1d7)](){return!0x0;}static get[_0xbe1e54(0x1c5)](){return!0x0;}[_0xbe1e54(0x1f3)](){const _0x2dc3aa=_0xbe1e54;this[_0x2dc3aa(0x1b7)]=this[_0x2dc3aa(0x1d3)][_0x2dc3aa(0x1e0)][_0x2dc3aa(0x1e4)](_0x2dc3aa(0x1b7));const _0x125fc0=this[_0x2dc3aa(0x1d3)];this[_0x2dc3aa(0x1f0)]=setInterval(()=>{const _0x2976ca=_0x2dc3aa;let _0x378d40;for(const _0x13151e in _0x125fc0){const _0x59dfe3=_0x13151e,_0x626540=_0x125fc0[_0x59dfe3];if(_0x2976ca(0x1a9)==_0x626540||_0x2976ca(0x1c0)==_0x626540||_0x2976ca(0x1ef)==_0x626540||_0x2976ca(0x1ec)==_0x626540||_0x2976ca(0x1af)==_0x626540||_0x2976ca(0x1c2)==_0x626540||_0x2976ca(0x1c6)==_0x626540){delete _0x125fc0[_0x59dfe3],_0x378d40=_0x626540,clearInterval(this[_0x2976ca(0x1f0)]),this[_0x2976ca(0x1f0)]=void 0x0;break;}}_0x2976ca(0x1c0)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1bd)),_0x2976ca(0x1ef)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1e6)),_0x2976ca(0x1ec)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1bf)),_0x2976ca(0x1af)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1b4),_0x2976ca(0x1da)),_0x2976ca(0x1c2)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1d9)),_0x2976ca(0x1c6)==_0x378d40&&_0x125fc0[_0x2976ca(0x1ed)](_0x2976ca(0x1c1));},0x3e8);}[_0xbe1e54(0x1c8)](){const _0xfa816e=_0xbe1e54,{editor:_0x22a20b}=this,_0xeb4662=_0x22a20b[_0xfa816e(0x1cb)][_0xfa816e(0x1e4)](_0xfa816e(0x1b8));if(!_0xeb4662)return;const _0x41904e=this[_0xfa816e(0x1e8)](_0x22a20b[_0xfa816e(0x1e0)][_0xfa816e(0x1e4)](_0xfa816e(0x1d5)))[_0xfa816e(0x1e5)]((_0x5b5235,_0x2ac61d)=>{const _0x52dd72=_0xfa816e,_0x2fca84=this[_0x52dd72(0x1ca)](_0x2ac61d[_0x52dd72(0x1be)]);return _0x5b5235[_0x2fca84]||(_0x5b5235[_0x2fca84]=[]),_0x5b5235[_0x2fca84][_0x52dd72(0x1df)](_0x2ac61d),_0x5b5235;},{});_0x22a20b[_0xfa816e(0x1b1)][_0xfa816e(0x1ea)](_0xfa816e(0x1f2))&&_0x22a20b[_0xfa816e(0x1cb)][_0xfa816e(0x1e4)](_0xfa816e(0x1b8))&&Object[_0xfa816e(0x1cf)](_0x41904e)[_0xfa816e(0x1dc)](([_0x4a5314,_0x43d2f2])=>{const _0x11e633=_0xfa816e;_0x22a20b[_0x11e633(0x1b1)][_0x11e633(0x1e4)](_0x11e633(0x1f2))[_0x11e633(0x1d1)]({'name':_0x4a5314,'observable':()=>_0xeb4662,'buttonViewCreator':()=>this[_0x11e633(0x1b3)](_0x43d2f2),'formViewCreator':()=>this[_0x11e633(0x1ee)](_0x43d2f2),'menuBarButtonViewCreator':()=>this[_0x11e633(0x1cc)](_0x43d2f2),'override':_0x11e633(0x1e9)!==_0x4a5314});});}[_0xbe1e54(0x1eb)](){const _0x27aa82=_0xbe1e54;super[_0x27aa82(0x1eb)](),this[_0x27aa82(0x1f0)]&&clearInterval(this[_0x27aa82(0x1f0)]);}[_0xbe1e54(0x1e8)](_0xb14922){const _0x38d654=_0xbe1e54,{locale:_0x1cfa50}=this[_0x38d654(0x1d3)];return _0xb14922[_0x38d654(0x1d8)](_0x573a8c=>{const _0xde861e=_0x38d654,_0x8d4208=_0x1a8ce2(_0x1cfa50,_0x573a8c,_0xde861e(0x1dd));switch(_0x573a8c){case _0x51582c[_0xde861e(0x1d2)]:return{'icon':_0x37dbd5,'type':_0x51582c[_0xde861e(0x1d2)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c9)]:return{'icon':_0x4c8b51,'type':_0x51582c[_0xde861e(0x1c9)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c4)]:return{'icon':_0x1ef78e,'type':_0x51582c[_0xde861e(0x1c4)],..._0x8d4208};case _0x51582c[_0xde861e(0x1d6)]:return{'icon':_0x1ad5e7,'type':_0x51582c[_0xde861e(0x1d6)],..._0x8d4208};case _0x51582c[_0xde861e(0x1cd)]:return{'icon':_0x52f502,'type':_0x51582c[_0xde861e(0x1cd)],..._0x8d4208};case _0x51582c[_0xde861e(0x1c3)]:return{'icon':_0x2cb608,'type':_0x51582c[_0xde861e(0x1c3)],..._0x8d4208};case _0x51582c[_0xde861e(0x1ab)]:return{'icon':_0x2f3774,'type':_0x51582c[_0xde861e(0x1ab)],..._0x8d4208};}});}[_0xbe1e54(0x1ca)](_0x7d7864){const _0x5b954d=_0xbe1e54;switch(_0x7d7864){case _0x51582c[_0x5b954d(0x1d2)]:return _0x5b954d(0x1aa);case _0x51582c[_0x5b954d(0x1c9)]:return _0x5b954d(0x1c7);default:return _0x5b954d(0x1e9);}}[_0xbe1e54(0x1ad)](_0x48dc5a,_0x17f274){const _0x5a8ffb=_0xbe1e54,_0x5525b7=this[_0x5a8ffb(0x1d3)],_0x33c6dc=new _0x48dc5a(_0x5525b7[_0x5a8ffb(0x1a8)]),_0x423da1=_0x5525b7[_0x5a8ffb(0x1cb)][_0x5a8ffb(0x1e4)](_0x5a8ffb(0x1b8));return _0x33c6dc[_0x5a8ffb(0x1b6)](_0x5a8ffb(0x1ce))['to'](_0x423da1),_0x33c6dc['on'](_0x5a8ffb(0x1b0),()=>{const _0x2df557=_0x5a8ffb;_0x423da1[_0x2df557(0x1b0)](_0x17f274);}),_0x33c6dc;}[_0xbe1e54(0x1b3)](_0x4da92f){const _0x388bb6=_0xbe1e54,{locale:_0x4d5889}=this[_0x388bb6(0x1d3)],_0x388779=this[_0x388bb6(0x1d3)][_0x388bb6(0x1b1)][_0x388bb6(0x1e4)](_0x388bb6(0x1f2)),_0x265a6c=_0x4da92f[0x0],_0x3485f1=this[_0x388bb6(0x1ad)](_0x178d47,_0x265a6c[_0x388bb6(0x1be)]);return _0x3485f1[_0x388bb6(0x1b9)]=_0x265a6c[_0x388bb6(0x1b9)],_0x3485f1[_0x388bb6(0x1b6)](_0x388bb6(0x1b2))['to'](_0x388779,_0x388bb6(0x1db),_0x25ab5f=>_0x1a8ce2(_0x4d5889,_0x265a6c[_0x388bb6(0x1be)],_0x25ab5f?_0x388bb6(0x1de):_0x388bb6(0x1dd))[_0x388bb6(0x1d4)]),_0x3485f1[_0x388bb6(0x1ba)]=!0x0,_0x3485f1;}[_0xbe1e54(0x1ee)](_0x593491){const _0x2bd8b3=_0xbe1e54,{locale:_0x1fdb14}=this[_0x2bd8b3(0x1d3)],_0x4a76ad=this[_0x2bd8b3(0x1d3)][_0x2bd8b3(0x1b1)][_0x2bd8b3(0x1e4)](_0x2bd8b3(0x1f2));return _0x593491[_0x2bd8b3(0x1d8)](_0x43cd72=>{const _0x12487d=_0x2bd8b3,_0x189cdc=this[_0x12487d(0x1ad)](_0x178d47,_0x43cd72[_0x12487d(0x1be)]);return _0x189cdc[_0x12487d(0x1d0)]=!0x0,_0x189cdc[_0x12487d(0x1b9)]=_0x43cd72[_0x12487d(0x1b9)],_0x189cdc[_0x12487d(0x1b6)](_0x12487d(0x1b2))['to'](_0x4a76ad,_0x12487d(0x1db),_0x520777=>_0x1a8ce2(_0x1fdb14,_0x43cd72[_0x12487d(0x1be)],_0x520777?_0x12487d(0x1de):_0x12487d(0x1dd))[_0x12487d(0x1d4)]),_0x189cdc;});}[_0xbe1e54(0x1cc)](_0x1f6353){const _0x458692=_0xbe1e54;return _0x1f6353[_0x458692(0x1d8)](_0x5867cf=>{const _0x3427ee=_0x458692,_0x4d6ecf=this[_0x3427ee(0x1ad)](_0x26eed5,_0x5867cf[_0x3427ee(0x1be)]);return _0x4d6ecf[_0x3427ee(0x1b9)]=_0x5867cf[_0x3427ee(0x1b9)],_0x4d6ecf[_0x3427ee(0x1b2)]=_0x5867cf[_0x3427ee(0x1e7)],_0x4d6ecf;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x294856}from'ckeditor5/src/core.js';import{FileRepository as _0x265663}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x43f551}from'./uploadcareediting.js';import{UploadUtils as _0x2d4f49}from'./utils/uploadutils.js';import{getImageUrls as _0x2f837f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x294856{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x265663,_0x43f551];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x478227=this['editor'];if(!!!_0x478227['config']['get']('uploadcare'))return;_0x478227['plugins']['get'](_0x265663)['createUploadAdapter']=_0x36b288=>new k(_0x36b288,_0x478227),_0x478227['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2026e5,{imageElement:_0x2c08b3,data:_0x4e4498})=>{_0x478227['model']['change'](_0x2a78a9=>{_0x2a78a9['setAttribute']('uploadcareImageId',_0x4e4498['uploadcareImageId'],_0x2c08b3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x329101,_0x3aeaf2){this['loader']=_0x329101,this['editor']=_0x3aeaf2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3316b4=await this['loader']['file'];return _0x2d4f49['upload']({'file':_0x3316b4,'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':_0x1740a4=>{_0x1740a4&&_0x1740a4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1740a4['value']);}})['then'](async _0x368e79=>{const {imageFallbackUrl:_0x36cb2d,imageSources:_0x4b4daa}=_0x2f837f(_0x368e79['cdnUrl'],_0x368e79['imageInfo']['width']);return{'uploadcareImageId':_0x368e79['uuid'],'default':_0x36cb2d,'sources':_0x4b4daa};})['catch'](()=>{const _0x45af7f=t('Cannot\x20upload\x20file:')+('\x20'+_0x3316b4['name']+'.');return Promise['reject'](_0x45af7f);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x347171}from'../uploadcareconfig.js';export function getTranslation(_0x30b418,_0x2787fb,_0x824224){const t=_0x30b418['t'],_0x1531b3=_0x30b418['t'];switch(_0x2787fb){case _0x347171['Local']:return{'text':_0x1531b3('Insert'===_0x824224?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1531b3('From\x20computer')};case _0x347171['URL']:return{'text':'Insert'===_0x824224?_0x1531b3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1531b3('Via\x20URL')};case _0x347171['Dropbox']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x347171['Facebook']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x347171['GDrive']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x347171['GPhotos']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x347171['OneDrive']:return{'text':t('Insert'===_0x824224?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2787fb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x20ba(_0x496d0b,_0x775486){var _0x1f293c=_0x1f29();return _0x20ba=function(_0x20ba53,_0x42a552){_0x20ba53=_0x20ba53-0x1af;var _0x1af18c=_0x1f293c[_0x20ba53];return _0x1af18c;},_0x20ba(_0x496d0b,_0x775486);}var _0x2ae6f6=_0x20ba;(function(_0x5936eb,_0x2d4d8){var _0x3635c7=_0x20ba,_0xe8d56e=_0x5936eb();while(!![]){try{var _0x4f4a62=-parseInt(_0x3635c7(0x1b2))/0x1*(parseInt(_0x3635c7(0x1bb))/0x2)+-parseInt(_0x3635c7(0x1af))/0x3+parseInt(_0x3635c7(0x1b4))/0x4*(parseInt(_0x3635c7(0x1bd))/0x5)+parseInt(_0x3635c7(0x1ba))/0x6*(-parseInt(_0x3635c7(0x1b8))/0x7)+-parseInt(_0x3635c7(0x1b6))/0x8+parseInt(_0x3635c7(0x1bf))/0x9+parseInt(_0x3635c7(0x1b9))/0xa;if(_0x4f4a62===_0x2d4d8)break;else _0xe8d56e['push'](_0xe8d56e['shift']());}catch(_0xeab61c){_0xe8d56e['push'](_0xe8d56e['shift']());}}}(_0x1f29,0x676b9));import{FocusTracker as _0x4dc858}from'ckeditor5/src/utils.js';import{View as _0x1276b1,FocusCycler as _0x598b1f}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x1f29(){var _0x24f760=['fire','5357565lnQEbO','div','focusTracker','2041875ZzhIxi','forwardCycle','createCollection','314zXCpdv','getFocusableElement','2112416mpgpWx','bindTemplate','4921664kejuoo','focusCycler','147HXiIfT','15563370QUGfdN','117636WMagsQ','3494HDKNTu','true','5YNqqGp'];_0x1f29=function(){return _0x24f760;};return _0x1f29();}export class DialogFocusManagerView extends _0x1276b1{[_0x2ae6f6(0x1c1)];[_0x2ae6f6(0x1b7)];constructor(_0x439aa4){var _0x5e95c7=_0x2ae6f6;super(_0x439aa4),this[_0x5e95c7(0x1c1)]=new _0x4dc858(),this[_0x5e95c7(0x1b7)]=new _0x598b1f({'focusables':this[_0x5e95c7(0x1b1)](),'focusTracker':this[_0x5e95c7(0x1c1)]});}[_0x2ae6f6(0x1b3)](){var _0x16c3e4=_0x2ae6f6;return{'tag':_0x16c3e4(0x1c0),'attributes':{'aria-hidden':_0x16c3e4(0x1bc),'tabindex':'0'},'on':{'focus':this[_0x16c3e4(0x1b5)]['to'](()=>{var _0x58a117=_0x16c3e4;this[_0x58a117(0x1b7)][_0x58a117(0x1be)](_0x58a117(0x1b0));})}};}}
|