@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251211.0 → 0.0.0-nightly-next-20251212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5d8cdd=_0x45bf;(function(_0x4585a5,_0x6e6f86){const _0x1a26cc=_0x45bf,_0x3e8ec1=_0x4585a5();while(!![]){try{const _0x2bec8d=parseInt(_0x1a26cc(0x10d))/0x1+-parseInt(_0x1a26cc(0x14e))/0x2*(-parseInt(_0x1a26cc(0x142))/0x3)+parseInt(_0x1a26cc(0x13d))/0x4*(-parseInt(_0x1a26cc(0x114))/0x5)+parseInt(_0x1a26cc(0x113))/0x6+-parseInt(_0x1a26cc(0x104))/0x7+-parseInt(_0x1a26cc(0x14a))/0x8*(parseInt(_0x1a26cc(0x131))/0x9)+parseInt(_0x1a26cc(0x129))/0xa;if(_0x2bec8d===_0x6e6f86)break;else _0x3e8ec1['push'](_0x3e8ec1['shift']());}catch(_0x3d2250){_0x3e8ec1['push'](_0x3e8ec1['shift']());}}}(_0x3529,0x69b45));import{Plugin as _0x202de9}from'ckeditor5/src/core.js';import{Dialog as _0x12a3d4}from'ckeditor5/src/ui.js';import{createElement as _0x3483b2,global as _0x2aade6,uid as _0x3a2f93}from'ckeditor5/src/utils.js';function _0x3529(){const _0x4fdb8d=['11215690RcmrPf','upcast','for','true','href','uc-config','ucContextId','getAttribute','5499vwZSqJ','pluginName','input[uploadcare-file-input]','once','execute','attributeToAttribute','requires','schema','extend','listenTo','ctxElement','contentLanguage','32iIvGdh','uploadcare.pubkey','destroy','uploadcare','config','885894hTSKoG','imageBlock','isRegistered','view','conversion','init','appendChild','editing','8968lwSjgi','model','PictureEditing','_initCtx','4QJsIuY','downcast','configElement','closeMax','get','removeAttribute','querySelector','insertImage','_ctxElement','isOfficialPlugin','add','750162svLSYh','#uc-icon-arrow-down','\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','_initConfig','uc-upload-ctx-provider','UploadcareEditing','document','replaceImageSource','fromCharCode','233722urYLrO','imageInline','locale','editor','map','cleanupImage','691962QuBvaj','522595RtRHqG','data-uc-image-id','_initConversion','body','uploadcareImageReplace','iconHrefResolver','render','_initSchema','_configElement','elementToAttribute','uploadcareImageId','commands','remove','getSelectedElement','_initImageProcessingIndicator','uploadcare.uploader','isPremiumPlugin','uploader-','afterInit','join','selection'];_0x3529=function(){return _0x4fdb8d;};return _0x3529();}import{UploadcareCommand as _0x56fe5f}from'./uploadcarecommand.js';function _0x45bf(_0xadd012,_0x3f5ed8){const _0x35294c=_0x3529();return _0x45bf=function(_0x45bfe6,_0x1a3103){_0x45bfe6=_0x45bfe6-0x104;let _0x448138=_0x35294c[_0x45bfe6];return _0x448138;},_0x45bf(_0xadd012,_0x3f5ed8);}import{UploadcareUploadAdapter as _0xa5eec1}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x21a646}from'./utils/editingutils.js';export class UploadcareEditing extends _0x202de9{[_0x5d8cdd(0x11c)]=null;[_0x5d8cdd(0x156)]=null;static get[_0x5d8cdd(0x132)](){const _0x45afd4=_0x5d8cdd;return _0x45afd4(0x109);}static get[_0x5d8cdd(0x137)](){const _0x18eb79=_0x5d8cdd;return[_0x18eb79(0x14c),_0xa5eec1,_0x12a3d4];}static get[_0x5d8cdd(0x157)](){return!0x0;}static get[_0x5d8cdd(0x124)](){return!0x0;}[_0x5d8cdd(0x12f)];get[_0x5d8cdd(0x150)](){const _0x1bb9c7=_0x5d8cdd;return this[_0x1bb9c7(0x11c)];}get[_0x5d8cdd(0x13b)](){const _0x3f993f=_0x5d8cdd;return this[_0x3f993f(0x156)];}constructor(_0x176e0a){const _0x519c68=_0x5d8cdd;super(_0x176e0a),this[_0x519c68(0x12f)]=_0x3a2f93();}[_0x5d8cdd(0x147)](){const _0x3c0319=_0x5d8cdd,_0x44be63=this[_0x3c0319(0x110)];_0x44be63[_0x3c0319(0x11f)][_0x3c0319(0x158)](_0x3c0319(0x140),new _0x56fe5f(_0x44be63));}[_0x5d8cdd(0x126)](){const _0x43b7a4=_0x5d8cdd;this[_0x43b7a4(0x11b)](),this[_0x43b7a4(0x116)](),this[_0x43b7a4(0x107)](),this[_0x43b7a4(0x14d)](),this[_0x43b7a4(0x122)](),this[_0x43b7a4(0x13a)](this[_0x43b7a4(0x110)],_0x43b7a4(0x13f),()=>{const _0x14abf0=_0x43b7a4;this[_0x14abf0(0x11c)]&&(this[_0x14abf0(0x11c)][_0x14abf0(0x120)](),this[_0x14abf0(0x11c)]=null),this[_0x14abf0(0x156)]&&(this[_0x14abf0(0x156)][_0x14abf0(0x120)](),this[_0x14abf0(0x156)]=null);const _0x1c6601=_0x2aade6[_0x14abf0(0x10a)][_0x14abf0(0x154)](_0x14abf0(0x133));_0x1c6601&&_0x1c6601[_0x14abf0(0x120)]();}),async function(_0x288b3c){const _0x546fa1=_0x225474([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]),_0x9414fc=0x535f8c3a,_0x39238d=0x5358f7a2^_0x9414fc,_0x47f28d=window[_0x225474([0x44,0x61,0x74,0x65])][_0x225474([0x6e,0x6f,0x77])](),_0x3f06fa=_0x288b3c[_0x225474([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43e555=new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a3c4=>{_0x3f06fa[_0x225474([0x6f,0x6e,0x63,0x65])](_0x225474([0x72,0x65,0x61,0x64,0x79]),_0x15a3c4);}),_0x29da5f={[_0x225474([0x6b,0x74,0x79])]:_0x225474([0x45,0x43]),[_0x225474([0x75,0x73,0x65])]:_0x225474([0x73,0x69,0x67]),[_0x225474([0x63,0x72,0x76])]:_0x225474([0x50,0x2d,0x32,0x35,0x36]),[_0x225474([0x78])]:_0x225474([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]),[_0x225474([0x79])]:_0x225474([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]),[_0x225474([0x61,0x6c,0x67])]:_0x225474([0x45,0x53,0x32,0x35,0x36])},_0x45c545=_0x3f06fa[_0x225474([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x225474([0x67,0x65,0x74])](_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fc574(){let _0x3859bd,_0x5e443a=null,_0x3481f1=null;try{if(_0x45c545==_0x225474([0x47,0x50,0x4c]))return _0x225474([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3859bd=_0x2dfb9a(),!_0x3859bd)return _0x225474([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3859bd[_0x225474([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3481f1=_0xd23426(_0x3859bd[_0x225474([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3859bd[_0x225474([0x6a,0x74,0x69])])),await _0x3b2a6c()?_0x375747()?_0x1c3be1()?_0x225474([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1fb5ee()?(_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225474([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e443a=_0x59ddab(_0x225474([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x225474([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e443a=_0x59ddab(_0x225474([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31a45d()):_0x225474([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x225474([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x225474([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x225474([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c3be1(){const _0x1deb5e=[_0x225474([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x225474([0x74,0x72,0x69,0x61,0x6c])][_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47f28d/0x3e8:0xe10*_0x39238d;return _0x3859bd[_0x225474([0x65,0x78,0x70])]<_0x1deb5e;}function _0x375747(){const _0x26b1a5=_0x3859bd[_0x225474([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26b1a5&&(!!_0x26b1a5[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225474([0x2a]))||!!_0x26b1a5[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225474([0x55,0x50,0x4c,0x43])));}function _0x1fb5ee(){const _0x4d9605=_0x45bf,_0x11b000=_0x3859bd[_0x225474([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11b000||0x0==_0x11b000[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14b0c0}=new URL(window[_0x225474([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d9605(0x12d)]);if(_0x11b000[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b0c0))return!0x0;const _0xa50a29=_0x14b0c0[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e]));return _0x11b000[_0x225474([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f351a=>_0x3f351a[_0x225474([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x225474([0x2a])))[_0x225474([0x6d,0x61,0x70])](_0x22ebcb=>_0x22ebcb[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e])))[_0x225474([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x427812=>_0x427812[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa50a29[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225474([0x6d,0x61,0x70])](_0x4f7512=>Array(_0xa50a29[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f7512[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x225474([0x66,0x69,0x6c,0x6c])](_0x4f7512[0x0]===_0x225474([0x2a])?_0x225474([0x2a]):'')[_0x225474([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f7512))[_0x225474([0x73,0x6f,0x6d,0x65])](_0x1f8e1f=>_0xa50a29[_0x225474([0x65,0x76,0x65,0x72,0x79])]((_0x20a73e,_0x675428)=>_0x1f8e1f[_0x675428]===_0x20a73e||_0x1f8e1f[_0x675428]===_0x225474([0x2a])));}function _0x31a45d(){return _0x5e443a&&_0x3481f1?new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5de59f,_0x53fd33)=>{_0x5e443a[_0x225474([0x74,0x68,0x65,0x6e])](_0x5de59f,_0x53fd33),_0x3481f1[_0x225474([0x74,0x68,0x65,0x6e])](_0x1e5516=>{_0x1e5516!=_0x225474([0x56,0x61,0x6c,0x69,0x64])&&_0x5de59f(_0x1e5516);},_0x53fd33);}):_0x5e443a||_0x3481f1||_0x225474([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd23426(_0x390584,_0x11c685){return new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d92af=>{if(_0x36f09f())return _0x1d92af(_0x225474([0x56,0x61,0x6c,0x69,0x64]));_0x428bef(),_0x3f06fa[_0x225474([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x225474([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fa67d=!0x1;const _0x5d47ae=_0x3a2f93();function _0x3d056e(_0x135fe2){return!!_0x135fe2&&(typeof _0x135fe2===_0x225474([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x135fe2===_0x225474([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x135fe2[_0x225474([0x74,0x68,0x65,0x6e])]===_0x225474([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x135fe2[_0x225474([0x63,0x61,0x74,0x63,0x68])]===_0x225474([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x561ed5(_0x2b9408){_0x30577d(_0x2b9408)[_0x225474([0x74,0x68,0x65,0x6e])](_0x167679=>{if(!_0x167679||_0x167679[_0x225474([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x225474([0x6f,0x6b]))return _0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x61ee4c(_0x15e39d(_0x5d47ae+_0x11c685))!=_0x167679[_0x225474([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x225474([0x56,0x61,0x6c,0x69,0x64]);})[_0x225474([0x74,0x68,0x65,0x6e])](_0x25c642=>(_0x2c36d7(),_0x25c642),()=>{const _0x51913b=_0xd565e1();return null==_0x51913b?(_0x2c36d7(),_0x225474([0x56,0x61,0x6c,0x69,0x64])):_0x225474(_0x47f28d-_0x51913b>(0x7753083a^_0x9414fc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x225474([0x74,0x68,0x65,0x6e])](_0x1d92af)[_0x225474([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d92af(_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57ed85=0x536962ba^_0x9414fc;function _0x2c36d7(){const _0x4e6de6=_0x225474([0x6c,0x6c,0x63,0x74,0x2d])+_0x61ee4c(_0x15e39d(_0x390584)),_0x366d44=_0xd3efca(_0x61ee4c(window[_0x225474([0x4d,0x61,0x74,0x68])][_0x225474([0x63,0x65,0x69,0x6c])](_0x47f28d/_0x57ed85)));window[_0x225474([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225474([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e6de6,_0x366d44);}function _0xd565e1(){const _0x2648ee=_0x225474([0x6c,0x6c,0x63,0x74,0x2d])+_0x61ee4c(_0x15e39d(_0x390584)),_0x39c0a5=window[_0x225474([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x225474([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2648ee);return _0x39c0a5?window[_0x225474([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3efca(_0x39c0a5),0x10)*_0x57ed85:null;}function _0x30577d(_0x1bd712){return new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5767f6,_0x51d6d2)=>{_0x1bd712[_0x225474([0x74,0x68,0x65,0x6e])](_0x5767f6,_0x51d6d2),window[_0x225474([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51d6d2,0x535e58fa^_0x9414fc);});}}_0x3f06fa[_0x225474([0x6f,0x6e])](_0x225474([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x424d29,_0x12b100)=>{if(_0x12b100[0x0]!=_0x390584)return _0x1d92af(_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12b100[0x1]={..._0x12b100[0x1],[_0x225474([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d47ae};},{[_0x225474([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225474([0x68,0x69,0x67,0x68])}),_0x3f06fa[_0x225474([0x6f,0x6e])](_0x225474([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3218a7=>{_0x3d056e(_0x3218a7[_0x225474([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fa67d=!0x0,_0x561ed5(_0x3218a7[_0x225474([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x225474([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x225474([0x6c,0x6f,0x77])}),_0x43e555[_0x225474([0x74,0x68,0x65,0x6e])](()=>{_0x2fa67d||_0x1d92af(_0x225474([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36f09f(){return _0x3f06fa[_0x225474([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225474([0x76,0x69,0x65,0x77])][_0x225474([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x225474([0x61,0x75,0x74,0x6f]);}function _0x428bef(){_0x3f06fa[_0x225474([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225474([0x76,0x69,0x65,0x77])][_0x225474([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x225474([0x61,0x75,0x74,0x6f]);}}function _0x59ddab(_0x4947fd){const _0x10fb6e=[new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a098=>setTimeout(_0x32a098,0x5356b2f6^_0x9414fc)),_0x43e555[_0x225474([0x74,0x68,0x65,0x6e])](()=>new window[(_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c8fb0=>{let _0x5d3d0e=0x0;_0x3f06fa[_0x225474([0x6d,0x6f,0x64,0x65,0x6c])][_0x225474([0x6f,0x6e])](_0x225474([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14ad7a,_0x2a8858)=>{_0x2a8858[0x0][_0x225474([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d3d0e++,_0x5d3d0e==(0x535f8dc2^_0x9414fc)&&(_0x5c8fb0(),_0x14ad7a[_0x225474([0x6f,0x66,0x66])]());});}))];return window[_0x225474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x225474([0x72,0x61,0x63,0x65])](_0x10fb6e)[_0x225474([0x74,0x68,0x65,0x6e])](()=>_0x4947fd);}async function _0x44e885(){await _0x43e555,_0x3f06fa[_0x225474([0x6d,0x6f,0x64,0x65,0x6c])][_0x225474([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc4fe,_0x3f06fa[_0x225474([0x6d,0x6f,0x64,0x65,0x6c])][_0x225474([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc4fe,_0x3f06fa[_0x225474([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x225474([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10ec5e(_0x187229){const _0x506bc3=_0x45e072();_0x3f06fa[_0x506bc3]=_0x225474([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x187229,_0x187229!=_0x225474([0x56,0x61,0x6c,0x69,0x64])&&_0x44e885();}function _0x45e072(){const _0x22bd4c=window[_0x225474([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x225474([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x225474([0x6e,0x6f,0x77])]())[_0x225474([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x225474([0x2e]),'');let _0x310067=_0x225474([0x68]);for(let _0x20d6d1=0x0;_0x20d6d1<_0x22bd4c[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20d6d1+=0x2){let _0xe18712=window[_0x225474([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22bd4c[_0x225474([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20d6d1,_0x20d6d1+0x2));_0xe18712>=_0x546fa1[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe18712-=_0x546fa1[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x310067+=_0x546fa1[_0xe18712];}return _0x310067;}function _0x2dfb9a(){const _0x453820=_0x45c545[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e]));if(0x3!=_0x453820[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f945f(_0x453820[0x1]);function _0x4f945f(_0x25bf0c){const _0xc6f13e=_0x5509d0(_0x25bf0c);return _0xc6f13e&&_0x55bdf8()?_0xc6f13e:null;function _0x55bdf8(){const _0x158da9=_0xc6f13e[_0x225474([0x6a,0x74,0x69])],_0x588fb2=window[_0x225474([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x158da9[_0x225474([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158da9[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a3b75={..._0xc6f13e,[_0x225474([0x6a,0x74,0x69])]:_0x158da9[_0x225474([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x158da9[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a3b75[_0x225474([0x76,0x63])],_0x15e39d(_0x3a3b75)==_0x588fb2;}}}async function _0x3b2a6c(){let _0x2e13a6=!0x0;try{const _0x4e9df3=_0x45c545[_0x225474([0x73,0x70,0x6c,0x69,0x74])](_0x225474([0x2e])),[_0x3001d1,_0x354a07,_0x283b72]=_0x4e9df3;return _0x4c3b23(_0x3001d1),await _0x10b953(_0x3001d1,_0x354a07,_0x283b72),_0x2e13a6;}catch{return!0x1;}function _0x4c3b23(_0x110ff2){const _0x5c98f=_0x5509d0(_0x110ff2);_0x5c98f&&_0x5c98f[_0x225474([0x61,0x6c,0x67])]==_0x225474([0x45,0x53,0x32,0x35,0x36])||(_0x2e13a6=!0x1);}async function _0x10b953(_0x4ee860,_0x5d5a5a,_0x298993){const _0x3c1f88=window[_0x225474([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x225474([0x66,0x72,0x6f,0x6d])](_0x24791b(_0x298993),_0x537d77=>_0x537d77[_0x225474([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x541f0c=new window[(_0x225474([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x225474([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ee860+_0x225474([0x2e])+_0x5d5a5a),_0x592ad0=window[_0x225474([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x225474([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x592ad0)return;const _0x38698f=await _0x592ad0[_0x225474([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x225474([0x6a,0x77,0x6b]),_0x29da5f,{[_0x225474([0x6e,0x61,0x6d,0x65])]:_0x225474([0x45,0x43,0x44,0x53,0x41]),[_0x225474([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x225474([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x225474([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x592ad0[_0x225474([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x225474([0x6e,0x61,0x6d,0x65])]:_0x225474([0x45,0x43,0x44,0x53,0x41]),[_0x225474([0x68,0x61,0x73,0x68])]:{[_0x225474([0x6e,0x61,0x6d,0x65])]:_0x225474([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38698f,_0x3c1f88,_0x541f0c)||(_0x2e13a6=!0x1);}}function _0x5509d0(_0x4de641){return _0x4de641[_0x225474([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x225474([0x65,0x79]))?JSON[_0x225474([0x70,0x61,0x72,0x73,0x65])](_0x24791b(_0x4de641)):null;}function _0x24791b(_0x1a0ae5){return window[_0x225474([0x61,0x74,0x6f,0x62])](_0x1a0ae5[_0x225474([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x225474([0x2b]))[_0x225474([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x225474([0x2f])));}function _0x15e39d(_0x31834a){let _0x2df6cc=0x1505;function _0x4481fa(_0x359b5c){for(let _0x1d8564=0x0;_0x1d8564<_0x359b5c[_0x225474([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d8564++){const _0x5a6ec9=_0x359b5c[_0x225474([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d8564);_0x2df6cc=(_0x2df6cc<<0x5)+_0x2df6cc+_0x5a6ec9,_0x2df6cc&=_0x2df6cc;}}function _0x544878(_0x34ad65){Array[_0x225474([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34ad65)?_0x34ad65[_0x225474([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x544878):_0x34ad65&&typeof _0x34ad65==_0x225474([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x225474([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34ad65)[_0x225474([0x73,0x6f,0x72,0x74])]()[_0x225474([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d5d49,_0x153944])=>{_0x4481fa(_0x5d5d49),_0x544878(_0x153944);}):_0x4481fa(window[_0x225474([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34ad65));}return _0x544878(_0x31834a),_0x2df6cc>>>0x0;}function _0x61ee4c(_0x1f8d5a){return _0x1f8d5a[_0x225474([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x225474([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x225474([0x30]));}function _0xd3efca(_0x4fbb03){return _0x4fbb03[_0x225474([0x73,0x70,0x6c,0x69,0x74])]('')[_0x225474([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x225474([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cc4fe(){}function _0x225474(_0x1713a1){const _0x4a974c=_0x45bf;return _0x1713a1[_0x4a974c(0x111)](_0x220858=>String[_0x4a974c(0x10c)](_0x220858))[_0x4a974c(0x127)]('');}_0x10ec5e(await _0x1fc574());}(this);}[_0x5d8cdd(0x11b)](){const _0xb120f2=_0x5d8cdd,_0x584cbb=this[_0xb120f2(0x110)][_0xb120f2(0x14b)][_0xb120f2(0x138)];_0x584cbb[_0xb120f2(0x144)](_0xb120f2(0x143))&&_0x584cbb[_0xb120f2(0x139)](_0xb120f2(0x143),{'allowAttributes':[_0xb120f2(0x11e)]}),_0x584cbb[_0xb120f2(0x144)](_0xb120f2(0x10e))&&_0x584cbb[_0xb120f2(0x139)](_0xb120f2(0x10e),{'allowAttributes':[_0xb120f2(0x11e)]});}[_0x5d8cdd(0x116)](){const _0x35d199=_0x5d8cdd,_0x4a6183=this[_0x35d199(0x110)];_0x4a6183[_0x35d199(0x146)][_0x35d199(0x12b)](_0x35d199(0x14f))[_0x35d199(0x136)]({'model':_0x35d199(0x11e),'view':_0x35d199(0x115)}),_0x4a6183[_0x35d199(0x146)][_0x35d199(0x12b)](_0x35d199(0x12a))[_0x35d199(0x11d)]({'model':{'key':_0x35d199(0x11e),'value':_0x2c0aa1=>_0x2c0aa1[_0x35d199(0x130)](_0x35d199(0x115))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x26c0bf=_0x4a6183[_0x35d199(0x11f)][_0x35d199(0x152)](_0x35d199(0x10b));_0x26c0bf&&this[_0x35d199(0x13a)](_0x26c0bf,_0x35d199(0x112),(_0x2b6901,[_0x3789af,_0x501c06])=>{const _0x4d1250=_0x35d199;_0x3789af[_0x4d1250(0x153)](_0x4d1250(0x11e),_0x501c06);});}[_0x5d8cdd(0x107)](){const _0x24e706=_0x5d8cdd,_0x44835c=this[_0x24e706(0x110)][_0x24e706(0x141)][_0x24e706(0x152)](_0x24e706(0x123))||{},_0x15480d=this[_0x24e706(0x110)][_0x24e706(0x141)][_0x24e706(0x152)](_0x24e706(0x13e))||'';this[_0x24e706(0x11c)]=_0x3483b2(_0x2aade6[_0x24e706(0x10a)],_0x24e706(0x12e),{..._0x44835c,'pubkey':_0x15480d,'ctx-name':_0x24e706(0x125)+this[_0x24e706(0x12f)],'sourceList':'','imgOnly':_0x24e706(0x12c),'removeCopyright':_0x24e706(0x12c),'localeName':this[_0x24e706(0x110)][_0x24e706(0x10f)][_0x24e706(0x13c)],'externalSourcesEmbedCss':_0x24e706(0x106)}),this[_0x24e706(0x11c)][_0x24e706(0x119)]=_0x36cf58=>{const _0x54d551=_0x24e706;if(_0x54d551(0x151)==_0x36cf58)return _0x54d551(0x105);},_0x2aade6[_0x24e706(0x10a)][_0x24e706(0x117)][_0x24e706(0x148)](this[_0x24e706(0x11c)]);}[_0x5d8cdd(0x14d)](){const _0x4623e2=_0x5d8cdd;this[_0x4623e2(0x156)]=_0x3483b2(_0x2aade6[_0x4623e2(0x10a)],_0x4623e2(0x108),{'ctx-name':_0x4623e2(0x125)+this[_0x4623e2(0x12f)]}),_0x2aade6[_0x4623e2(0x10a)][_0x4623e2(0x117)][_0x4623e2(0x148)](this[_0x4623e2(0x156)]);}[_0x5d8cdd(0x122)](){const _0x53b7b6=_0x5d8cdd,_0x310f89=this[_0x53b7b6(0x110)][_0x53b7b6(0x11f)][_0x53b7b6(0x152)](_0x53b7b6(0x155));_0x310f89&&this[_0x53b7b6(0x13a)](_0x310f89,_0x53b7b6(0x135),()=>{const _0x29d645=_0x53b7b6,_0x3c4291=this[_0x29d645(0x110)][_0x29d645(0x14b)][_0x29d645(0x10a)][_0x29d645(0x128)][_0x29d645(0x121)]();_0x3c4291&&_0x3c4291[_0x29d645(0x130)](_0x29d645(0x11e))&&this[_0x29d645(0x110)][_0x29d645(0x149)][_0x29d645(0x145)][_0x29d645(0x134)](_0x29d645(0x11a),()=>{const _0x4a2078=_0x29d645;_0x21a646(this[_0x4a2078(0x110)],_0x3c4291);});});const _0x5e0ad0=this[_0x53b7b6(0x110)][_0x53b7b6(0x11f)][_0x53b7b6(0x152)](_0x53b7b6(0x118));_0x5e0ad0&&this[_0x53b7b6(0x13a)](_0x5e0ad0,_0x53b7b6(0x135),()=>{const _0x4993cf=_0x53b7b6,_0x1ed0b2=this[_0x4993cf(0x110)][_0x4993cf(0x14b)][_0x4993cf(0x10a)][_0x4993cf(0x128)][_0x4993cf(0x121)]();_0x1ed0b2&&_0x1ed0b2[_0x4993cf(0x130)](_0x4993cf(0x11e))&&this[_0x4993cf(0x110)][_0x4993cf(0x149)][_0x4993cf(0x145)][_0x4993cf(0x134)](_0x4993cf(0x11a),()=>{const _0x3944f6=_0x4993cf;_0x21a646(this[_0x3944f6(0x110)],_0x1ed0b2);});});}}
|
|
23
|
+
const _0x5c50c6=_0x359b;(function(_0x53c479,_0x2275ee){const _0x51574f=_0x359b,_0x43ed2a=_0x53c479();while(!![]){try{const _0x3b00cc=-parseInt(_0x51574f(0x184))/0x1+parseInt(_0x51574f(0x196))/0x2+-parseInt(_0x51574f(0x165))/0x3+-parseInt(_0x51574f(0x17b))/0x4*(-parseInt(_0x51574f(0x154))/0x5)+-parseInt(_0x51574f(0x173))/0x6*(parseInt(_0x51574f(0x190))/0x7)+parseInt(_0x51574f(0x181))/0x8*(parseInt(_0x51574f(0x182))/0x9)+-parseInt(_0x51574f(0x15d))/0xa*(-parseInt(_0x51574f(0x17a))/0xb);if(_0x3b00cc===_0x2275ee)break;else _0x43ed2a['push'](_0x43ed2a['shift']());}catch(_0x19fc71){_0x43ed2a['push'](_0x43ed2a['shift']());}}}(_0xfbc7,0xb7b82));import{Plugin as _0x406776}from'ckeditor5/src/core.js';import{Dialog as _0x4c5cbb}from'ckeditor5/src/ui.js';import{createElement as _0x35f1e4,global as _0x28736b,uid as _0x49da7d}from'ckeditor5/src/utils.js';function _0x359b(_0x11320e,_0x12413d){const _0xfbc7e9=_0xfbc7();return _0x359b=function(_0x359b50,_0x1516bc){_0x359b50=_0x359b50-0x154;let _0x1d72c5=_0xfbc7e9[_0x359b50];return _0x1d72c5;},_0x359b(_0x11320e,_0x12413d);}import{UploadcareCommand as _0x567384}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28d9b2}from'./uploadcareuploadadapter.js';function _0xfbc7(){const _0x424af0=['selection','uploader-','init','3261012ScxwhP','iconHrefResolver','UploadcareEditing','true','_ctxElement','config','closeMax','11ACAwUI','476IpZCTm','editor','fromCharCode','cleanupImage','extend','once','5224hxAcob','6894VODnbr','_initConfig','1395780qgoELK','map','_configElement','uc-config','isPremiumPlugin','uploadcare','for','model','requires','_initCtx','destroy','uploadcare.pubkey','14kqtGXh','getAttribute','imageInline','remove','#uc-icon-arrow-down','conversion','894188dXDUHq','data-uc-image-id','\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','add','body','downcast','afterInit','PictureEditing','href','view','ctxElement','isOfficialPlugin','upcast','contentLanguage','commands','locale','pluginName','replaceImageSource','_initSchema','execute','37295mhiyjC','removeAttribute','input[uploadcare-file-input]','get','uploadcareImageReplace','uploadcare.uploader','imageBlock','_initImageProcessingIndicator','insertImage','14956170wZcnQp','editing','schema','elementToAttribute','getSelectedElement','querySelector','ucContextId','appendChild','285696DlIygF','document','uc-upload-ctx-provider','listenTo','configElement','join','attributeToAttribute','_initConversion','uploadcareImageId','isRegistered','render'];_0xfbc7=function(){return _0x424af0;};return _0xfbc7();}import{showImageProcessingIndicator as _0x1034cc}from'./utils/editingutils.js';export class UploadcareEditing extends _0x406776{[_0x5c50c6(0x186)]=null;[_0x5c50c6(0x177)]=null;static get[_0x5c50c6(0x1a6)](){const _0x4e3b20=_0x5c50c6;return _0x4e3b20(0x175);}static get[_0x5c50c6(0x18c)](){const _0x46a287=_0x5c50c6;return[_0x46a287(0x19d),_0x28d9b2,_0x4c5cbb];}static get[_0x5c50c6(0x1a1)](){return!0x0;}static get[_0x5c50c6(0x188)](){return!0x0;}[_0x5c50c6(0x163)];get[_0x5c50c6(0x169)](){const _0x1c188c=_0x5c50c6;return this[_0x1c188c(0x186)];}get[_0x5c50c6(0x1a0)](){const _0x32e1b5=_0x5c50c6;return this[_0x32e1b5(0x177)];}constructor(_0x4f8dd0){const _0x424eb2=_0x5c50c6;super(_0x4f8dd0),this[_0x424eb2(0x163)]=_0x49da7d();}[_0x5c50c6(0x172)](){const _0x56e231=_0x5c50c6,_0x4934e4=this[_0x56e231(0x17c)];_0x4934e4[_0x56e231(0x1a4)][_0x56e231(0x199)](_0x56e231(0x189),new _0x567384(_0x4934e4));}[_0x5c50c6(0x19c)](){const _0xee4b1b=_0x5c50c6;this[_0xee4b1b(0x1a8)](),this[_0xee4b1b(0x16c)](),this[_0xee4b1b(0x183)](),this[_0xee4b1b(0x18d)](),this[_0xee4b1b(0x15b)](),this[_0xee4b1b(0x168)](this[_0xee4b1b(0x17c)],_0xee4b1b(0x18e),()=>{const _0x4a7cbd=_0xee4b1b;this[_0x4a7cbd(0x186)]&&(this[_0x4a7cbd(0x186)][_0x4a7cbd(0x193)](),this[_0x4a7cbd(0x186)]=null),this[_0x4a7cbd(0x177)]&&(this[_0x4a7cbd(0x177)][_0x4a7cbd(0x193)](),this[_0x4a7cbd(0x177)]=null);const _0x773fbe=_0x28736b[_0x4a7cbd(0x166)][_0x4a7cbd(0x162)](_0x4a7cbd(0x156));_0x773fbe&&_0x773fbe[_0x4a7cbd(0x193)]();}),async function(_0x235e5c){const _0x57d2b8=_0xb3916b([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]),_0x201089=0x535f8c3a,_0x2a5e88=0x5358f78a^_0x201089,_0x49a9b3=window[_0xb3916b([0x44,0x61,0x74,0x65])][_0xb3916b([0x6e,0x6f,0x77])](),_0x494532=_0x235e5c[_0xb3916b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e4eac=new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x99e57a=>{_0x494532[_0xb3916b([0x6f,0x6e,0x63,0x65])](_0xb3916b([0x72,0x65,0x61,0x64,0x79]),_0x99e57a);}),_0x2a68f4={[_0xb3916b([0x6b,0x74,0x79])]:_0xb3916b([0x45,0x43]),[_0xb3916b([0x75,0x73,0x65])]:_0xb3916b([0x73,0x69,0x67]),[_0xb3916b([0x63,0x72,0x76])]:_0xb3916b([0x50,0x2d,0x32,0x35,0x36]),[_0xb3916b([0x78])]:_0xb3916b([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]),[_0xb3916b([0x79])]:_0xb3916b([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]),[_0xb3916b([0x61,0x6c,0x67])]:_0xb3916b([0x45,0x53,0x32,0x35,0x36])},_0x2ac6ec=_0x494532[_0xb3916b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb3916b([0x67,0x65,0x74])](_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2addd2(){let _0x9e5376,_0x4f0b28=null,_0x2b78ac=null;try{if(_0x2ac6ec==_0xb3916b([0x47,0x50,0x4c]))return _0xb3916b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9e5376=_0x221c5a(),!_0x9e5376)return _0xb3916b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9e5376[_0xb3916b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b78ac=_0x57b999(_0x9e5376[_0xb3916b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9e5376[_0xb3916b([0x6a,0x74,0x69])])),await _0x1d3c92()?_0x4cfc10()?_0x209fcd()?_0xb3916b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a838e()?(_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb3916b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f0b28=_0x29b3ed(_0xb3916b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb3916b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f0b28=_0x29b3ed(_0xb3916b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x927b96()):_0xb3916b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb3916b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb3916b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb3916b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x209fcd(){const _0xd41e04=[_0xb3916b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb3916b([0x74,0x72,0x69,0x61,0x6c])][_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49a9b3/0x3e8:0xe10*_0x2a5e88;return _0x9e5376[_0xb3916b([0x65,0x78,0x70])]<_0xd41e04;}function _0x4cfc10(){const _0x1b9300=_0x9e5376[_0xb3916b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b9300&&(!!_0x1b9300[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb3916b([0x2a]))||!!_0x1b9300[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb3916b([0x55,0x50,0x4c,0x43])));}function _0x2a838e(){const _0x5d99b6=_0x359b,_0x233e36=_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x233e36||0x0==_0x233e36[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x921d85}=new URL(window[_0xb3916b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d99b6(0x19e)]);if(_0x233e36[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x921d85))return!0x0;const _0x251825=_0x921d85[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e]));return _0x233e36[_0xb3916b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x169cac=>_0x169cac[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb3916b([0x2a])))[_0xb3916b([0x6d,0x61,0x70])](_0x22674a=>_0x22674a[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e])))[_0xb3916b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a7924=>_0x3a7924[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x251825[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb3916b([0x6d,0x61,0x70])](_0x16efad=>Array(_0x251825[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16efad[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb3916b([0x66,0x69,0x6c,0x6c])](_0x16efad[0x0]===_0xb3916b([0x2a])?_0xb3916b([0x2a]):'')[_0xb3916b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16efad))[_0xb3916b([0x73,0x6f,0x6d,0x65])](_0x565a28=>_0x251825[_0xb3916b([0x65,0x76,0x65,0x72,0x79])]((_0x437201,_0xcd5c78)=>_0x565a28[_0xcd5c78]===_0x437201||_0x565a28[_0xcd5c78]===_0xb3916b([0x2a])));}function _0x927b96(){return _0x4f0b28&&_0x2b78ac?new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16b1d1,_0x55c46d)=>{_0x4f0b28[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x16b1d1,_0x55c46d),_0x2b78ac[_0xb3916b([0x74,0x68,0x65,0x6e])](_0xbc33cd=>{_0xbc33cd!=_0xb3916b([0x56,0x61,0x6c,0x69,0x64])&&_0x16b1d1(_0xbc33cd);},_0x55c46d);}):_0x4f0b28||_0x2b78ac||_0xb3916b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57b999(_0x4f3acc,_0x2537a5){return new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f59cd=>{if(_0x35eab4())return _0x4f59cd(_0xb3916b([0x56,0x61,0x6c,0x69,0x64]));_0x27cc28(),_0x494532[_0xb3916b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb3916b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36d398=!0x1;const _0x47cc2c=_0x49da7d();function _0x28123d(_0x332ef7){return!!_0x332ef7&&(typeof _0x332ef7===_0xb3916b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x332ef7===_0xb3916b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x332ef7[_0xb3916b([0x74,0x68,0x65,0x6e])]===_0xb3916b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x332ef7[_0xb3916b([0x63,0x61,0x74,0x63,0x68])]===_0xb3916b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33f556(_0xa47d53){_0x1d6337(_0xa47d53)[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x1b3270=>{if(!_0x1b3270||_0x1b3270[_0xb3916b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb3916b([0x6f,0x6b]))return _0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x294d32(_0x52730c(_0x47cc2c+_0x2537a5))!=_0x1b3270[_0xb3916b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb3916b([0x56,0x61,0x6c,0x69,0x64]);})[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x2fcf64=>(_0x222839(),_0x2fcf64),()=>{const _0x51f4a3=_0x3cb832();return null==_0x51f4a3?(_0x222839(),_0xb3916b([0x56,0x61,0x6c,0x69,0x64])):_0xb3916b(_0x49a9b3-_0x51f4a3>(0x7753083a^_0x201089)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x4f59cd)[_0xb3916b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f59cd(_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ff2d1=0x536962ba^_0x201089;function _0x222839(){const _0x928b57=_0xb3916b([0x6c,0x6c,0x63,0x74,0x2d])+_0x294d32(_0x52730c(_0x4f3acc)),_0x59a552=_0xb4e590(_0x294d32(window[_0xb3916b([0x4d,0x61,0x74,0x68])][_0xb3916b([0x63,0x65,0x69,0x6c])](_0x49a9b3/_0x3ff2d1)));window[_0xb3916b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb3916b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x928b57,_0x59a552);}function _0x3cb832(){const _0x4c944c=_0xb3916b([0x6c,0x6c,0x63,0x74,0x2d])+_0x294d32(_0x52730c(_0x4f3acc)),_0x4b3392=window[_0xb3916b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb3916b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c944c);return _0x4b3392?window[_0xb3916b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb4e590(_0x4b3392),0x10)*_0x3ff2d1:null;}function _0x1d6337(_0x1b977f){return new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x359af7,_0xb8ba24)=>{_0x1b977f[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x359af7,_0xb8ba24),window[_0xb3916b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb8ba24,0x535e58fa^_0x201089);});}}_0x494532[_0xb3916b([0x6f,0x6e])](_0xb3916b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3cd379,_0x351c88)=>{if(_0x351c88[0x0]!=_0x4f3acc)return _0x4f59cd(_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x351c88[0x1]={..._0x351c88[0x1],[_0xb3916b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47cc2c};},{[_0xb3916b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb3916b([0x68,0x69,0x67,0x68])}),_0x494532[_0xb3916b([0x6f,0x6e])](_0xb3916b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x436de6=>{_0x28123d(_0x436de6[_0xb3916b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36d398=!0x0,_0x33f556(_0x436de6[_0xb3916b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb3916b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb3916b([0x6c,0x6f,0x77])}),_0x2e4eac[_0xb3916b([0x74,0x68,0x65,0x6e])](()=>{_0x36d398||_0x4f59cd(_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35eab4(){return _0x494532[_0xb3916b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb3916b([0x76,0x69,0x65,0x77])][_0xb3916b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb3916b([0x61,0x75,0x74,0x6f]);}function _0x27cc28(){_0x494532[_0xb3916b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb3916b([0x76,0x69,0x65,0x77])][_0xb3916b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb3916b([0x61,0x75,0x74,0x6f]);}}function _0x29b3ed(_0x24c66d){const _0x51f951=[new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f4631=>setTimeout(_0x6f4631,0x5356b2f6^_0x201089)),_0x2e4eac[_0xb3916b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0207=>{let _0x229e0c=0x0;_0x494532[_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb3916b([0x6f,0x6e])](_0xb3916b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x203efc,_0x583725)=>{_0x583725[0x0][_0xb3916b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x229e0c++,_0x229e0c==(0x535f8dc2^_0x201089)&&(_0x5f0207(),_0x203efc[_0xb3916b([0x6f,0x66,0x66])]());});}))];return window[_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb3916b([0x72,0x61,0x63,0x65])](_0x51f951)[_0xb3916b([0x74,0x68,0x65,0x6e])](()=>_0x24c66d);}async function _0x5f1c7f(){await _0x2e4eac,_0x494532[_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb3916b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc09596,_0x494532[_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb3916b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc09596,_0x494532[_0xb3916b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa12542(_0x4768d6){const _0x3d2ee6=_0x310e93();_0x494532[_0x3d2ee6]=_0xb3916b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4768d6,_0x4768d6!=_0xb3916b([0x56,0x61,0x6c,0x69,0x64])&&_0x5f1c7f();}function _0x310e93(){const _0x32aa92=window[_0xb3916b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb3916b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb3916b([0x6e,0x6f,0x77])]())[_0xb3916b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb3916b([0x2e]),'');let _0x8a27c8=_0xb3916b([0x68]);for(let _0x513f56=0x0;_0x513f56<_0x32aa92[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x513f56+=0x2){let _0x125a12=window[_0xb3916b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32aa92[_0xb3916b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513f56,_0x513f56+0x2));_0x125a12>=_0x57d2b8[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x125a12-=_0x57d2b8[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8a27c8+=_0x57d2b8[_0x125a12];}return _0x8a27c8;}function _0x221c5a(){const _0x3e9e00=_0x2ac6ec[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e]));if(0x3!=_0x3e9e00[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x258f39(_0x3e9e00[0x1]);function _0x258f39(_0x116e5a){const _0x4d396a=_0x11741e(_0x116e5a);return _0x4d396a&&_0x460471()?_0x4d396a:null;function _0x460471(){const _0x1a3519=_0x4d396a[_0xb3916b([0x6a,0x74,0x69])],_0x53afa4=window[_0xb3916b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a3519[_0xb3916b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a3519[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5174f={..._0x4d396a,[_0xb3916b([0x6a,0x74,0x69])]:_0x1a3519[_0xb3916b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a3519[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5174f[_0xb3916b([0x76,0x63])],_0x52730c(_0x5174f)==_0x53afa4;}}}async function _0x1d3c92(){let _0x43c30b=!0x0;try{const _0x1362c2=_0x2ac6ec[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e])),[_0xe0fdcf,_0x167f64,_0x2d9de2]=_0x1362c2;return _0x5e47f7(_0xe0fdcf),await _0x3d981b(_0xe0fdcf,_0x167f64,_0x2d9de2),_0x43c30b;}catch{return!0x1;}function _0x5e47f7(_0x1df25a){const _0x1a1b8a=_0x11741e(_0x1df25a);_0x1a1b8a&&_0x1a1b8a[_0xb3916b([0x61,0x6c,0x67])]==_0xb3916b([0x45,0x53,0x32,0x35,0x36])||(_0x43c30b=!0x1);}async function _0x3d981b(_0x523461,_0x30dbd6,_0x4901f3){const _0x5e0169=window[_0xb3916b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb3916b([0x66,0x72,0x6f,0x6d])](_0x2a4fa3(_0x4901f3),_0x18fd68=>_0x18fd68[_0xb3916b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10f476=new window[(_0xb3916b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb3916b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x523461+_0xb3916b([0x2e])+_0x30dbd6),_0x4c6aef=window[_0xb3916b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb3916b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c6aef)return;const _0x4cf6ef=await _0x4c6aef[_0xb3916b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb3916b([0x6a,0x77,0x6b]),_0x2a68f4,{[_0xb3916b([0x6e,0x61,0x6d,0x65])]:_0xb3916b([0x45,0x43,0x44,0x53,0x41]),[_0xb3916b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb3916b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb3916b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c6aef[_0xb3916b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb3916b([0x6e,0x61,0x6d,0x65])]:_0xb3916b([0x45,0x43,0x44,0x53,0x41]),[_0xb3916b([0x68,0x61,0x73,0x68])]:{[_0xb3916b([0x6e,0x61,0x6d,0x65])]:_0xb3916b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cf6ef,_0x5e0169,_0x10f476)||(_0x43c30b=!0x1);}}function _0x11741e(_0x8829e8){return _0x8829e8[_0xb3916b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb3916b([0x65,0x79]))?JSON[_0xb3916b([0x70,0x61,0x72,0x73,0x65])](_0x2a4fa3(_0x8829e8)):null;}function _0x2a4fa3(_0x144143){return window[_0xb3916b([0x61,0x74,0x6f,0x62])](_0x144143[_0xb3916b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb3916b([0x2b]))[_0xb3916b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb3916b([0x2f])));}function _0x52730c(_0x479e0a){let _0x13dbc2=0x1505;function _0x42060d(_0x4699a5){for(let _0x3b5805=0x0;_0x3b5805<_0x4699a5[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b5805++){const _0x58ab2f=_0x4699a5[_0xb3916b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b5805);_0x13dbc2=(_0x13dbc2<<0x5)+_0x13dbc2+_0x58ab2f,_0x13dbc2&=_0x13dbc2;}}function _0x121221(_0x588c1b){Array[_0xb3916b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x588c1b)?_0x588c1b[_0xb3916b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x121221):_0x588c1b&&typeof _0x588c1b==_0xb3916b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb3916b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x588c1b)[_0xb3916b([0x73,0x6f,0x72,0x74])]()[_0xb3916b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x187993,_0x405a49])=>{_0x42060d(_0x187993),_0x121221(_0x405a49);}):_0x42060d(window[_0xb3916b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x588c1b));}return _0x121221(_0x479e0a),_0x13dbc2>>>0x0;}function _0x294d32(_0x1ab748){return _0x1ab748[_0xb3916b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb3916b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb3916b([0x30]));}function _0xb4e590(_0x1436f4){return _0x1436f4[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb3916b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb3916b([0x6a,0x6f,0x69,0x6e])]('');}function _0xc09596(){}function _0xb3916b(_0x37cf23){const _0x457d56=_0x359b;return _0x37cf23[_0x457d56(0x185)](_0x13070c=>String[_0x457d56(0x17d)](_0x13070c))[_0x457d56(0x16a)]('');}_0xa12542(await _0x2addd2());}(this);}[_0x5c50c6(0x1a8)](){const _0x43e5a8=_0x5c50c6,_0x44501f=this[_0x43e5a8(0x17c)][_0x43e5a8(0x18b)][_0x43e5a8(0x15f)];_0x44501f[_0x43e5a8(0x16e)](_0x43e5a8(0x15a))&&_0x44501f[_0x43e5a8(0x17f)](_0x43e5a8(0x15a),{'allowAttributes':[_0x43e5a8(0x16d)]}),_0x44501f[_0x43e5a8(0x16e)](_0x43e5a8(0x192))&&_0x44501f[_0x43e5a8(0x17f)](_0x43e5a8(0x192),{'allowAttributes':[_0x43e5a8(0x16d)]});}[_0x5c50c6(0x16c)](){const _0x5327b4=_0x5c50c6,_0x476707=this[_0x5327b4(0x17c)];_0x476707[_0x5327b4(0x195)][_0x5327b4(0x18a)](_0x5327b4(0x19b))[_0x5327b4(0x16b)]({'model':_0x5327b4(0x16d),'view':_0x5327b4(0x197)}),_0x476707[_0x5327b4(0x195)][_0x5327b4(0x18a)](_0x5327b4(0x1a2))[_0x5327b4(0x160)]({'model':{'key':_0x5327b4(0x16d),'value':_0x1d4f40=>_0x1d4f40[_0x5327b4(0x191)](_0x5327b4(0x197))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2d9f01=_0x476707[_0x5327b4(0x1a4)][_0x5327b4(0x157)](_0x5327b4(0x1a7));_0x2d9f01&&this[_0x5327b4(0x168)](_0x2d9f01,_0x5327b4(0x17e),(_0x2f4afa,[_0x2a4a45,_0x26e4b6])=>{const _0xc48a9f=_0x5327b4;_0x2a4a45[_0xc48a9f(0x155)](_0xc48a9f(0x16d),_0x26e4b6);});}[_0x5c50c6(0x183)](){const _0x13987f=_0x5c50c6,_0x386edd=this[_0x13987f(0x17c)][_0x13987f(0x178)][_0x13987f(0x157)](_0x13987f(0x159))||{},_0x1dd952=this[_0x13987f(0x17c)][_0x13987f(0x178)][_0x13987f(0x157)](_0x13987f(0x18f))||'';this[_0x13987f(0x186)]=_0x35f1e4(_0x28736b[_0x13987f(0x166)],_0x13987f(0x187),{..._0x386edd,'pubkey':_0x1dd952,'ctx-name':_0x13987f(0x171)+this[_0x13987f(0x163)],'sourceList':'','imgOnly':_0x13987f(0x176),'removeCopyright':_0x13987f(0x176),'localeName':this[_0x13987f(0x17c)][_0x13987f(0x1a5)][_0x13987f(0x1a3)],'externalSourcesEmbedCss':_0x13987f(0x198)}),this[_0x13987f(0x186)][_0x13987f(0x174)]=_0x49dc2f=>{const _0x2a2188=_0x13987f;if(_0x2a2188(0x179)==_0x49dc2f)return _0x2a2188(0x194);},_0x28736b[_0x13987f(0x166)][_0x13987f(0x19a)][_0x13987f(0x164)](this[_0x13987f(0x186)]);}[_0x5c50c6(0x18d)](){const _0x3448c1=_0x5c50c6;this[_0x3448c1(0x177)]=_0x35f1e4(_0x28736b[_0x3448c1(0x166)],_0x3448c1(0x167),{'ctx-name':_0x3448c1(0x171)+this[_0x3448c1(0x163)]}),_0x28736b[_0x3448c1(0x166)][_0x3448c1(0x19a)][_0x3448c1(0x164)](this[_0x3448c1(0x177)]);}[_0x5c50c6(0x15b)](){const _0x43c2e9=_0x5c50c6,_0x1902fc=this[_0x43c2e9(0x17c)][_0x43c2e9(0x1a4)][_0x43c2e9(0x157)](_0x43c2e9(0x15c));_0x1902fc&&this[_0x43c2e9(0x168)](_0x1902fc,_0x43c2e9(0x1a9),()=>{const _0x65846e=_0x43c2e9,_0x4f1e74=this[_0x65846e(0x17c)][_0x65846e(0x18b)][_0x65846e(0x166)][_0x65846e(0x170)][_0x65846e(0x161)]();_0x4f1e74&&_0x4f1e74[_0x65846e(0x191)](_0x65846e(0x16d))&&this[_0x65846e(0x17c)][_0x65846e(0x15e)][_0x65846e(0x19f)][_0x65846e(0x180)](_0x65846e(0x16f),()=>{const _0x55836e=_0x65846e;_0x1034cc(this[_0x55836e(0x17c)],_0x4f1e74);});});const _0x2a8529=this[_0x43c2e9(0x17c)][_0x43c2e9(0x1a4)][_0x43c2e9(0x157)](_0x43c2e9(0x158));_0x2a8529&&this[_0x43c2e9(0x168)](_0x2a8529,_0x43c2e9(0x1a9),()=>{const _0x4c4d23=_0x43c2e9,_0x2ad493=this[_0x4c4d23(0x17c)][_0x4c4d23(0x18b)][_0x4c4d23(0x166)][_0x4c4d23(0x170)][_0x4c4d23(0x161)]();_0x2ad493&&_0x2ad493[_0x4c4d23(0x191)](_0x4c4d23(0x16d))&&this[_0x4c4d23(0x17c)][_0x4c4d23(0x15e)][_0x4c4d23(0x19f)][_0x4c4d23(0x180)](_0x4c4d23(0x16f),()=>{const _0x3cb190=_0x4c4d23;_0x1034cc(this[_0x3cb190(0x17c)],_0x2ad493);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3049c3,ObservableMixin as _0x75174a}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2e8297}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3437d2}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xab2b2b}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x13cfaf}from'../../utils/uploadutils.js';import{getImageUrls as _0x522e41,getImageDimension as _0xfd69}from'../../utils/editingutils.js';import{isAncestor as _0x3105e4}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x75174a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5335f1,_0x5868d5,_0x4c3513){super(),this['_editor']=_0x5335f1,this['_dialog']=_0x5868d5,this['_imageElement']=_0x4c3513,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 _0x4ae404=this['_imageElement'],_0x4fa194=_0x4ae404['getAttribute']('uploadcareImageId'),_0x3e6671=_0x4ae404['getAttribute']('src');if(_0x4fa194)await this['_loadImageInfo'](_0x4fa194,_0x3e6671);else{if(this['_imageCache']['has'](_0x3e6671)){const _0x1abe0d=this['_imageCache']['get'](_0x3e6671);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1abe0d['url'],this['imageDimension']=_0x1abe0d['dimension'],this['imageId']=_0x1abe0d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x50e5ee}=this['_editor'],t=_0x50e5ee['t'],_0x441c46=new _0xab2b2b(_0x50e5ee,this['imageStatus'],this['_attributes']);_0x441c46['bind']('status')['to'](this,'imageStatus'),_0x441c46['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x441c46['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x441c46['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x441c46,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3437d2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x441c46,'position':_0x2e8297['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x441c46['focus']();},'onHide':()=>{_0x441c46['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x261ab7=>!_0x3105e4(_0x261ab7,_0x441c46['element'])}});}['_loadImageInfo'](_0x593068,_0x539250){return _0x13cfaf['getInfo'](_0x593068,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x442497=>{const {width:_0x5753d4,height:_0x3957e1}=_0x442497['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x539250,this['imageDimension']={'width':_0x5753d4,'height':_0x3957e1},this['imageId']=_0x593068;})['catch'](_0x463e1d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x463e1d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2929f3,_0xaac740){return this['_getImageAsFile'](_0x2929f3)['then'](_0x6a46fe=>_0x13cfaf['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':_0xaac740['signal'],'file':_0x6a46fe,'onProgress':_0x4b15bb=>{_0x4b15bb&&_0x4b15bb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4b15bb['value']));}}))['then'](_0x5b6f7a=>{const {width:_0x301b21,height:_0x1e32cd}=_0x5b6f7a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b6f7a['cdnUrl'],this['imageDimension']={'width':_0x301b21,'height':_0x1e32cd},this['imageId']=_0x5b6f7a['uuid'],this['imageUploadProgress']=null;const _0x534b19=_0x2929f3['getAttribute']('src');this['_imageCache']['set'](_0x534b19,{'id':_0x5b6f7a['uuid'],'url':_0x5b6f7a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5b19c2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b19c2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x12e80e,_0x249fec){_0x12e80e['on']('apply',(_0x5c2311,_0x2db72b)=>{this['_replaceImage'](_0x249fec,_0x2db72b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x12e80e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x12e80e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x163bac,_0x4db0e7,_0xb1b51f){const _0x5d18eb=this['_editor'],{width:_0x1c7c73,height:_0x456464}=_0xfd69(_0x4db0e7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b40b5,imageSources:_0x29efde}=_0x522e41(_0x4db0e7,_0x1c7c73);_0x5d18eb['model']['change'](_0x518047=>{if('$graveyard'===_0x163bac['root']['rootName']){_0x5d18eb['execute']('insertImage',{'imageType':_0x163bac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x163bac['getAttributes']()),'uploadcareImageId':_0xb1b51f,'src':_0x3b40b5,'sources':_0x29efde,'width':_0x1c7c73,'height':_0x456464}});const _0x19864a=_0x163bac['getChildren']();_0x163bac=_0x5d18eb['model']['document']['selection']['getSelectedElement']();for(const _0x3c4cd0 of _0x19864a)_0x518047['append'](_0x518047['cloneElement'](_0x3c4cd0),_0x163bac);}else _0x518047['setSelection'](_0x163bac,'on'),_0x5d18eb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x163bac['getAttributes']()),'uploadcareImageId':_0xb1b51f,'src':_0x3b40b5,'sources':_0x29efde,'width':_0x1c7c73,'height':_0x456464},_0x163bac);_0x518047['setSelection'](_0x163bac,'on');});}async['_getImageAsFile'](_0x5907f6){const _0x25f508=_0x3049c3['window'],_0x2d3db5=_0x3049c3['document']['location']['href'],_0x8a5e62=new _0x25f508['URL'](_0x5907f6['getAttribute']('src'),_0x2d3db5);if('data:'===_0x8a5e62['protocol']){const _0xc15092=_0x8a5e62['href']['split'](','),_0x35738e=_0xc15092[0x0]['match'](/:(.*?);/)[0x1],_0x579144=_0x35738e['split']('/')[0x1],_0x3454bd=_0x25f508['atob'](_0xc15092[_0xc15092['length']-0x1]);let _0xa24c0f=_0x3454bd['length'];const _0x4f1afa=new _0x25f508['Uint8Array'](_0xa24c0f);for(;_0xa24c0f--;)_0x4f1afa[_0xa24c0f]=_0x3454bd['charCodeAt'](_0xa24c0f);return new _0x25f508['File']([_0x4f1afa],'image.'+_0x579144,{'type':_0x35738e});}const _0x26bd36=_0x8a5e62['href']['split']('/'),_0x399f33=_0x26bd36[_0x26bd36['length']-0x1],_0x299b5e=_0x399f33['split']('.')[0x1];return _0x25f508['fetch'](_0x8a5e62['href'])['then'](_0x2af104=>_0x2af104['clone']()['blob']())['then'](_0x16c955=>new _0x25f508['File']([_0x16c955],_0x399f33,{'type':'image/'+_0x299b5e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4893(){const _0x1fba44=['1405596fCKkXy','236665GYzpIc','3186035TVKMmx','3NLpBec','uc-cloud-image-editor','25848VapWhJ','2040qzAquh','imageSrc','383602TFWqpq','4438256qjzoac','uc-light','9dRQIdK','setTemplate','64JqlITK','ck-uploadcare-theme','10cuVMJQ','set','image-edit','bindTemplate','7063HDTCVY'];_0x4893=function(){return _0x1fba44;};return _0x4893();}(function(_0x2d56f7,_0x420ca7){const _0x3d88fe=_0x5c64,_0x35de4d=_0x2d56f7();while(!![]){try{const _0x118ba2=-parseInt(_0x3d88fe(0xe9))/0x1*(-parseInt(_0x3d88fe(0xda))/0x2)+-parseInt(_0x3d88fe(0xeb))/0x3*(-parseInt(_0x3d88fe(0xdf))/0x4)+-parseInt(_0x3d88fe(0xe8))/0x5+parseInt(_0x3d88fe(0xec))/0x6*(-parseInt(_0x3d88fe(0xe5))/0x7)+-parseInt(_0x3d88fe(0xdb))/0x8*(-parseInt(_0x3d88fe(0xdd))/0x9)+-parseInt(_0x3d88fe(0xe1))/0xa*(-parseInt(_0x3d88fe(0xe7))/0xb)+parseInt(_0x3d88fe(0xe6))/0xc;if(_0x118ba2===_0x420ca7)break;else _0x35de4d['push'](_0x35de4d['shift']());}catch(_0x25c154){_0x35de4d['push'](_0x35de4d['shift']());}}}(_0x4893,0x681b6));import{View as _0x16a2a7}from'ckeditor5/src/ui.js';function _0x5c64(_0x1f9eb5,_0x5065f5){const _0x4893ec=_0x4893();return _0x5c64=function(_0x5c6451,_0x1915ff){_0x5c6451=_0x5c6451-0xda;let _0x386439=_0x4893ec[_0x5c6451];return _0x386439;},_0x5c64(_0x1f9eb5,_0x5065f5);}export class UploadcareImageEditFormEditingView extends _0x16a2a7{constructor(_0x129f82,_0x375686){const _0x1662d8=_0x5c64;super(_0x129f82);const _0x2fd44e=this[_0x1662d8(0xe4)];this[_0x1662d8(0xe2)](_0x1662d8(0xed),''),this[_0x1662d8(0xde)]({'tag':_0x1662d8(0xea),'attributes':{..._0x375686,'class':[_0x1662d8(0xdc),_0x1662d8(0xe0)],'ctx-name':_0x1662d8(0xe3),'cdn-url':_0x2fd44e['to'](_0x1662d8(0xed))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x598b8e}from'ckeditor5/src/icons.js';import{ButtonView as _0x5294cd,IconView as _0x4e774d,View as _0x494f1d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x494f1d{constructor(_0x1ec76a){super(_0x1ec76a);const t=_0x1ec76a['t'];this['set']('errorType',null);const _0x3bce77=new _0x5294cd(_0x1ec76a);_0x3bce77['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3bce77['withText']=!0x0,_0x3bce77['class']='ck-button-action',_0x3bce77['on']('execute',()=>{this['fire']('retry');}),_0x3bce77['bind']('isVisible')['to'](this,'errorType',_0x2e9951=>'NotFound'!==_0x2e9951);const _0x500160=new _0x4e774d();_0x500160['content']=_0x598b8e,_0x500160['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x140b7c=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':[_0x500160,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x140b7c['to']('errorType',_0x338204=>t('NotFound'!==_0x338204?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3bce77]},{'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 _0x59203f,View as _0x4ac12d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4ac12d{constructor(_0x6382aa){super(_0x6382aa);const t=_0x6382aa['t'],_0x347dae=this['bindTemplate'],_0x39e3df=new _0x59203f();_0x39e3df['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':[_0x39e3df,{'text':_0x347dae['to']('imageUploadProgress',_0x3f1870=>t('Loading\x20image...')+'\x20('+(_0x3f1870||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 _0x500abc=_0x5708;(function(_0x499404,_0x58b32c){const _0x54a491=_0x5708,_0x4050d8=_0x499404();while(!![]){try{const _0x1c615d=-parseInt(_0x54a491(0x1db))/0x1*(-parseInt(_0x54a491(0x1e3))/0x2)+parseInt(_0x54a491(0x1da))/0x3+parseInt(_0x54a491(0x1e4))/0x4+parseInt(_0x54a491(0x1df))/0x5+-parseInt(_0x54a491(0x1c9))/0x6+parseInt(_0x54a491(0x1c5))/0x7+parseInt(_0x54a491(0x1dd))/0x8*(-parseInt(_0x54a491(0x1b7))/0x9);if(_0x1c615d===_0x58b32c)break;else _0x4050d8['push'](_0x4050d8['shift']());}catch(_0x57a2cc){_0x4050d8['push'](_0x4050d8['shift']());}}}(_0x2fae,0x7b696));function _0x2fae(){const _0x3ce668=['target','_addErrorViewListeners','length','change:status','_items','515832acPoRX','23314VSLSIP','nodeName','8688kcLtUm','_errorView','920025oMbiKa','focus','render','filter','84qpVUuW','2400328wfrFCn','detail','_addUploadcareImageEditorListeners','cancel','observe','addMany','fire','set','_setView','9981DMCwce','ck-uploadcare-form','ck-reset_all-excluded','ready','div','uploading','addEventListener','toLowerCase','addedNodes','_editingView','getFocusableElement','querySelector','element','retry','734475XvzgCU','add','once','apply','1981656EXikFn','_loadingView','clear','createCollection','_focusableView','uc-cloud-image-editor','error','status','_waitForImageEditorComponent','disconnect','setTemplate','cdnUrl'];_0x2fae=function(){return _0x3ce668;};return _0x2fae();}import{View as _0x1432f3}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x244f8f}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1765f1}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xca4305}from'./uploadcareimageeditformeditingview.js';function _0x5708(_0x45f78f,_0x182371){const _0x2fae20=_0x2fae();return _0x5708=function(_0x5708cb,_0x5a69b9){_0x5708cb=_0x5708cb-0x1b0;let _0x3a1a7f=_0x2fae20[_0x5708cb];return _0x3a1a7f;},_0x5708(_0x45f78f,_0x182371);}import{DialogFocusManagerView as _0x303492}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x303492{[_0x500abc(0x1d9)];[_0x500abc(0x1ca)];[_0x500abc(0x1de)];[_0x500abc(0x1c0)];[_0x500abc(0x1cd)];constructor(_0x1a2bdd,_0x18b953,_0x450a88){const _0x328696=_0x500abc;super(_0x1a2bdd),this[_0x328696(0x1d9)]=this[_0x328696(0x1cc)](),this[_0x328696(0x1ca)]=new _0x244f8f(_0x1a2bdd),this[_0x328696(0x1de)]=new _0x1765f1(_0x1a2bdd),this[_0x328696(0x1c0)]=new _0xca4305(_0x1a2bdd,_0x450a88),this[_0x328696(0x1cd)]=new _0x1432f3(_0x1a2bdd),this[_0x328696(0x1cd)][_0x328696(0x1d3)](this[_0x328696(0x1c1)]()),this[_0x328696(0x1b5)](_0x328696(0x1d0),_0x18b953),this[_0x328696(0x1d3)]({'tag':_0x328696(0x1bb),'attributes':{'class':['ck',_0x328696(0x1b9),_0x328696(0x1b8)],'tabindex':'-1'},'children':this[_0x328696(0x1d9)]}),this[_0x328696(0x1b6)](),this[_0x328696(0x1c7)](_0x328696(0x1e1),()=>{const _0x59ed56=_0x328696;this[_0x59ed56(0x1d1)](this[_0x59ed56(0x1c3)],_0x1c39ce=>{const _0x51d4b3=_0x59ed56;this[_0x51d4b3(0x1b0)](_0x1c39ce);});}),this['on'](_0x328696(0x1d8),()=>{const _0x116887=_0x328696;this[_0x116887(0x1b6)]();}),this[_0x328696(0x1d6)]();}[_0x500abc(0x1e0)](){const _0x12e596=_0x500abc;this[_0x12e596(0x1c3)][_0x12e596(0x1e0)]();}[_0x500abc(0x1b6)](){const _0x3d1412=_0x500abc;switch(this[_0x3d1412(0x1d9)][_0x3d1412(0x1cb)](),this[_0x3d1412(0x1d0)]){case _0x3d1412(0x1bc):this[_0x3d1412(0x1d9)][_0x3d1412(0x1c6)](this[_0x3d1412(0x1ca)]);break;case _0x3d1412(0x1cf):this[_0x3d1412(0x1d9)][_0x3d1412(0x1c6)](this[_0x3d1412(0x1de)]);break;case _0x3d1412(0x1ba):this[_0x3d1412(0x1d9)][_0x3d1412(0x1b3)]([this[_0x3d1412(0x1c0)],this[_0x3d1412(0x1cd)]]);}}[_0x500abc(0x1d1)](_0x771842,_0x133aac){const _0x28839f=_0x500abc,_0x3c67d5=_0x28839f(0x1ce),_0x55d6b8=_0x771842[_0x28839f(0x1c2)](_0x3c67d5);if(_0x55d6b8)return _0x133aac(_0x55d6b8);const _0x484fd0=new MutationObserver(_0x4bf59f=>{const _0x3afa57=_0x28839f,_0x38cfd5=_0x4bf59f[_0x3afa57(0x1e2)](_0x40e9b5=>_0x40e9b5[_0x3afa57(0x1d5)]===_0x771842&&_0x40e9b5[_0x3afa57(0x1bf)][_0x3afa57(0x1d7)]>0x0&&_0x40e9b5[_0x3afa57(0x1bf)][0x0][_0x3afa57(0x1dc)][_0x3afa57(0x1be)]()===_0x3c67d5);_0x38cfd5[_0x3afa57(0x1d7)]&&(_0x484fd0[_0x3afa57(0x1d2)](),_0x133aac(_0x38cfd5[0x0][_0x3afa57(0x1bf)][0x0]));});_0x484fd0[_0x28839f(0x1b2)](_0x771842,{'childList':!0x0,'subtree':!0x0});}[_0x500abc(0x1b0)](_0x12b0fb){const _0x185e74=_0x500abc;_0x12b0fb[_0x185e74(0x1bd)](_0x185e74(0x1c8),_0x4ecba3=>{const _0x3a4f2e=_0x185e74;this[_0x3a4f2e(0x1b4)](_0x3a4f2e(0x1c8),{'imageSrc':_0x4ecba3[_0x3a4f2e(0x1e5)][_0x3a4f2e(0x1d4)]});}),_0x12b0fb[_0x185e74(0x1bd)](_0x185e74(0x1b1),()=>{const _0x489851=_0x185e74;this[_0x489851(0x1b4)](_0x489851(0x1b1));});}[_0x500abc(0x1d6)](){const _0x3ff1f1=_0x500abc;this[_0x3ff1f1(0x1de)]['on'](_0x3ff1f1(0x1c4),()=>{const _0x1bfee1=_0x3ff1f1;this[_0x1bfee1(0x1b4)](_0x1bfee1(0x1c4));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4af1(_0x443a85,_0x3033bd){const _0x4c72d9=_0x4c72();return _0x4af1=function(_0x4af1a1,_0x367297){_0x4af1a1=_0x4af1a1-0xa3;let _0x483122=_0x4c72d9[_0x4af1a1];return _0x483122;},_0x4af1(_0x443a85,_0x3033bd);}const _0x1ef71b=_0x4af1;(function(_0x2f7f03,_0x256c99){const _0x5412cd=_0x4af1,_0x30b449=_0x2f7f03();while(!![]){try{const _0x5d4e87=-parseInt(_0x5412cd(0xb7))/0x1*(parseInt(_0x5412cd(0xaa))/0x2)+-parseInt(_0x5412cd(0xb5))/0x3*(parseInt(_0x5412cd(0xac))/0x4)+-parseInt(_0x5412cd(0xba))/0x5+parseInt(_0x5412cd(0xa7))/0x6+-parseInt(_0x5412cd(0xad))/0x7*(-parseInt(_0x5412cd(0xab))/0x8)+parseInt(_0x5412cd(0xb1))/0x9*(-parseInt(_0x5412cd(0xc0))/0xa)+parseInt(_0x5412cd(0xa6))/0xb;if(_0x5d4e87===_0x256c99)break;else _0x30b449['push'](_0x30b449['shift']());}catch(_0x152324){_0x30b449['push'](_0x30b449['shift']());}}}(_0x4c72,0xe24ff));import{Command as _0x26ae6f}from'ckeditor5/src/core.js';import{Dialog as _0x5129d0}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x38ebe6}from'./ui/uploadcareimageeditcontroller.js';function _0x4c72(){const _0x37ff26=['imageEditController','getSelectedElement','70947SShtVs','isEnabled','element','set','21yCOURq','plugins','27101LHUqGr','selection','isActive','2373055uvRfpi','config','unbind','execute','bind','model','380gXitwn','requires','editor','uploadcare.allowExternalImagesEditing','document','refresh','get','33254529iyqhYj','3348408iqUQKP','imageInline','imageBlock','62MKcfhn','1867976iVLMlo','727676KIRdAy','7PShNXZ','_isEditable'];_0x4c72=function(){return _0x37ff26;};return _0x4c72();}import{createEditabilityChecker as _0x3840a0}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x26ae6f{[_0x1ef71b(0xaf)];static get[_0x1ef71b(0xc1)](){return[_0x5129d0];}[_0x1ef71b(0xae)];constructor(_0x4d56a9){const _0x255c48=_0x1ef71b;super(_0x4d56a9),this[_0x255c48(0xaf)]=void 0x0,this[_0x255c48(0xae)]=_0x3840a0(_0x4d56a9[_0x255c48(0xbb)][_0x255c48(0xa5)](_0x255c48(0xc3))||[]),this[_0x255c48(0xb4)]({'isActive':!0x1});}[_0x1ef71b(0xa4)](){const _0x473b2f=_0x1ef71b,_0x5e527e=this[_0x473b2f(0xc2)][_0x473b2f(0xbf)][_0x473b2f(0xa3)][_0x473b2f(0xb8)][_0x473b2f(0xb0)]();this[_0x473b2f(0xb2)]=this[_0x473b2f(0xae)](_0x5e527e);}[_0x1ef71b(0xbd)](){const _0x4eeade=_0x1ef71b;this[_0x4eeade(0xaf)]&&(this[_0x4eeade(0xbc)](_0x4eeade(0xb9)),this[_0x4eeade(0xaf)]=void 0x0);const _0x2cc654=this[_0x4eeade(0xc2)][_0x4eeade(0xbf)][_0x4eeade(0xa3)][_0x4eeade(0xb8)][_0x4eeade(0xb0)]();_0x2cc654&&(_0x2cc654['is'](_0x4eeade(0xb3),_0x4eeade(0xa9))||_0x2cc654['is'](_0x4eeade(0xb3),_0x4eeade(0xa8)))&&(this[_0x4eeade(0xaf)]=new _0x38ebe6(this[_0x4eeade(0xc2)],this[_0x4eeade(0xc2)][_0x4eeade(0xb6)][_0x4eeade(0xa5)](_0x5129d0),_0x2cc654),this[_0x4eeade(0xbe)](_0x4eeade(0xb9))['to'](this[_0x4eeade(0xaf)],_0x4eeade(0xb9)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xc55d(_0x4cbb56,_0x2b90ad){const _0x3d8213=_0x3d82();return _0xc55d=function(_0xc55d94,_0x5449bb){_0xc55d94=_0xc55d94-0x162;let _0x43c2c8=_0x3d8213[_0xc55d94];return _0x43c2c8;},_0xc55d(_0x4cbb56,_0x2b90ad);}const _0x381b01=_0xc55d;(function(_0x50e9ae,_0x22c1e5){const _0x239da4=_0xc55d,_0x4b1ce6=_0x50e9ae();while(!![]){try{const _0x5a21e7=-parseInt(_0x239da4(0x16a))/0x1*(-parseInt(_0x239da4(0x166))/0x2)+-parseInt(_0x239da4(0x16d))/0x3+parseInt(_0x239da4(0x16c))/0x4+parseInt(_0x239da4(0x169))/0x5+parseInt(_0x239da4(0x171))/0x6+-parseInt(_0x239da4(0x170))/0x7+-parseInt(_0x239da4(0x168))/0x8;if(_0x5a21e7===_0x22c1e5)break;else _0x4b1ce6['push'](_0x4b1ce6['shift']());}catch(_0x517f86){_0x4b1ce6['push'](_0x4b1ce6['shift']());}}}(_0x3d82,0xb19c4));import{Plugin as _0x428ce0}from'ckeditor5/src/core.js';function _0x3d82(){const _0x374d93=['2vJqGEr','uploadcareImageEdit','3905944tbHRrP','4202465wujaSw','1032032EFWynE','ImageUtils','3029832IwMUdt','2147739QyvglE','init','UploadcareImageEditEditing','6976816MSmGNR','1790118PkrQSd','pluginName','uploadcareImageReplace','ImageEditing','commands','isOfficialPlugin','isPremiumPlugin','add','requires'];_0x3d82=function(){return _0x374d93;};return _0x3d82();}import{Notification as _0x2679f2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x556117}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x497bde}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2f9a82}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x428ce0{static get[_0x381b01(0x172)](){const _0x37769e=_0x381b01;return _0x37769e(0x16f);}static get[_0x381b01(0x165)](){const _0x3d4107=_0x381b01;return[_0x2f9a82,_0x2679f2,_0x3d4107(0x16b),_0x3d4107(0x174)];}static get[_0x381b01(0x162)](){return!0x0;}static get[_0x381b01(0x163)](){return!0x0;}[_0x381b01(0x16e)](){const _0x169be5=_0x381b01,{editor:_0x566155}=this;_0x566155[_0x169be5(0x175)][_0x169be5(0x164)](_0x169be5(0x167),new _0x556117(_0x566155)),_0x566155[_0x169be5(0x175)][_0x169be5(0x164)](_0x169be5(0x173),new _0x497bde(_0x566155));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x311359}from'ckeditor5/src/core.js';import{ButtonView as _0x972d29}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2affa0}from'ckeditor5/src/icons.js';import{createElement as _0x2c34c0}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 _0x311359{['_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 _0xb780d6=this['editor'];_0xb780d6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x25b543=>{const _0x427824=_0xb780d6['commands']['get']('uploadcareImageEdit'),_0x157a1f=new _0x972d29(_0x25b543),t=_0x25b543['t'];return _0x157a1f['set']({'icon':_0x2affa0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x157a1f['bind']('isEnabled')['to'](_0x427824),_0x157a1f['bind']('isOn')['to'](_0x427824,'isActive'),this['listenTo'](_0x157a1f,'execute',()=>{_0xb780d6['execute']('uploadcareImageEdit'),_0xb780d6['editing']['view']['focus']();}),_0x157a1f;}),this['_initConfig']();}['_initConfig'](){const _0x5b9d45=_0x2c34c0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5b9d45),this['listenTo'](this['editor'],'destroy',()=>{_0x5b9d45['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54b7bb=_0x460f;function _0x1384(){const _0xbbd018=['sizes','model','setAttributes','removeAttribute','imageBlock','isEnabled','srcset','editor','80NCMYXg','12327750GSxwYC','22006mOsLPr','selection','execute','change','259911wrnLin','1606506tXMvjl','getSelectedElement','document','imageInline','192515FsWffP','87xnjcDE','refresh','element','24WTZIPD','884331AJrzBb','1177785ZHoNas'];_0x1384=function(){return _0xbbd018;};return _0x1384();}function _0x460f(_0x54faa7,_0x547798){const _0x138456=_0x1384();return _0x460f=function(_0x460faa,_0x4d2969){_0x460faa=_0x460faa-0xa5;let _0x1a6dbc=_0x138456[_0x460faa];return _0x1a6dbc;},_0x460f(_0x54faa7,_0x547798);}(function(_0x4f45d0,_0x1a43a1){const _0x288e69=_0x460f,_0x2071fd=_0x4f45d0();while(!![]){try{const _0x5f513e=-parseInt(_0x288e69(0xa9))/0x1+-parseInt(_0x288e69(0xa5))/0x2*(-parseInt(_0x288e69(0xaf))/0x3)+-parseInt(_0x288e69(0xbd))/0x4*(parseInt(_0x288e69(0xae))/0x5)+-parseInt(_0x288e69(0xaa))/0x6+parseInt(_0x288e69(0xb3))/0x7*(parseInt(_0x288e69(0xb2))/0x8)+parseInt(_0x288e69(0xb4))/0x9+parseInt(_0x288e69(0xbe))/0xa;if(_0x5f513e===_0x1a43a1)break;else _0x2071fd['push'](_0x2071fd['shift']());}catch(_0x58a2ff){_0x2071fd['push'](_0x2071fd['shift']());}}}(_0x1384,0xba864));import{Command as _0x33a90e}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x33a90e{[_0x54b7bb(0xb0)](){const _0x978dee=_0x54b7bb,_0x2b0922=this[_0x978dee(0xbc)][_0x978dee(0xb6)][_0x978dee(0xac)][_0x978dee(0xa6)][_0x978dee(0xab)]();this[_0x978dee(0xba)]=Boolean(_0x2b0922&&(_0x2b0922['is'](_0x978dee(0xb1),_0x978dee(0xb9))||_0x2b0922['is'](_0x978dee(0xb1),_0x978dee(0xad))));}[_0x54b7bb(0xa7)](_0x44ddaa){const _0x56d3bd=_0x54b7bb,_0x2ea929=this[_0x56d3bd(0xbc)][_0x56d3bd(0xb6)][_0x56d3bd(0xac)][_0x56d3bd(0xa6)][_0x56d3bd(0xab)]();this[_0x56d3bd(0xbc)][_0x56d3bd(0xb6)][_0x56d3bd(0xa8)](_0x218128=>{const _0x27ba48=_0x56d3bd;_0x218128[_0x27ba48(0xb7)](_0x44ddaa,_0x2ea929),_0x218128[_0x27ba48(0xb8)](_0x27ba48(0xbb),_0x2ea929),_0x218128[_0x27ba48(0xb8)](_0x27ba48(0xb5),_0x2ea929);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4785(){var _0x4877d3=['1105584fLiIxY','346675FLmoHz','159800xWBPGv','isOfficialPlugin','UploadcareImageEdit','requires','isPremiumPlugin','1024215GaHWvV','59914VZMkgY','397752HjAaXM','1808556XtfWuc','pluginName'];_0x4785=function(){return _0x4877d3;};return _0x4785();}var _0x187702=_0x23af;(function(_0xee4d03,_0x1e5975){var _0x11594c=_0x23af,_0x3951dd=_0xee4d03();while(!![]){try{var _0xb2ba34=parseInt(_0x11594c(0xfe))/0x1+parseInt(_0x11594c(0xf8))/0x2+parseInt(_0x11594c(0xf9))/0x3+-parseInt(_0x11594c(0xfc))/0x4+-parseInt(_0x11594c(0xf7))/0x5+parseInt(_0x11594c(0xfa))/0x6+parseInt(_0x11594c(0xfd))/0x7;if(_0xb2ba34===_0x1e5975)break;else _0x3951dd['push'](_0x3951dd['shift']());}catch(_0x505f28){_0x3951dd['push'](_0x3951dd['shift']());}}}(_0x4785,0x2ee35));import{Plugin as _0x583b18}from'ckeditor5/src/core.js';function _0x23af(_0x390347,_0x488995){var _0x478506=_0x4785();return _0x23af=function(_0x23afd4,_0x534da2){_0x23afd4=_0x23afd4-0xf7;var _0x3358bb=_0x478506[_0x23afd4];return _0x3358bb;},_0x23af(_0x390347,_0x488995);}import{UploadcareImageEditEditing as _0x464833}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x1069cf}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x583b18{static get[_0x187702(0xfb)](){var _0x3dc5bf=_0x187702;return _0x3dc5bf(0x100);}static get[_0x187702(0x101)](){return[_0x464833,_0x1069cf];}static get[_0x187702(0xff)](){return!0x0;}static get[_0x187702(0x102)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x316d3c=_0x3fbc;(function(_0x9c811,_0x3aba0a){const _0x19a855=_0x3fbc,_0x8c19ec=_0x9c811();while(!![]){try{const _0xff9a9d=-parseInt(_0x19a855(0x18f))/0x1+parseInt(_0x19a855(0x195))/0x2*(-parseInt(_0x19a855(0x19e))/0x3)+parseInt(_0x19a855(0x190))/0x4+parseInt(_0x19a855(0x1a4))/0x5+parseInt(_0x19a855(0x17d))/0x6+-parseInt(_0x19a855(0x1a7))/0x7*(parseInt(_0x19a855(0x18d))/0x8)+-parseInt(_0x19a855(0x18e))/0x9*(-parseInt(_0x19a855(0x181))/0xa);if(_0xff9a9d===_0x3aba0a)break;else _0x8c19ec['push'](_0x8c19ec['shift']());}catch(_0x3c6c9d){_0x8c19ec['push'](_0x8c19ec['shift']());}}}(_0x57e2,0x9ef19));import{Plugin as _0x5d27af}from'ckeditor5/src/core.js';import{IconDropbox as _0x518056,IconFacebook as _0x51508e,IconGoogleDrive as _0x344279,IconGooglePhotos as _0x22bec6,IconUploadcareImageUpload as _0x428399,IconUploadcareLink as _0x479ad,IconOneDrive as _0x411031}from'ckeditor5/src/icons.js';import{ButtonView as _0x3aa01f,MenuBarMenuListItemButtonView as _0x4e7fcf}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2fd1da}from'./uploadcareconfig.js';function _0x57e2(){const _0x50db65=['uploadcare','registerIntegration','icon','_createToolbarButton','shortText','tooltip','assetManager','72520ARsTxS','7978239nrilhE','966780hGbYWb','1671368eGGSbM','OneDrive','trialLimit','_createButton','commands','156SzrDmp','_createDropdownButtons','withText','licenseKey','uploadcareLicenseKeyExpired','GPhotos','bind','forEach','uploadcareLicenseKeyEvaluationLimit','30744Ssxtxm','_showLicenseError','plugins','Facebook','destroy','type','3321505BdRbkF','domainLimit','locale','567cSOcSs','isImageSelected','entries','map','afterInit','label','Local','evaluationLimit','isEnabled','uploadcareLicenseKeyTrialLimit','invalid','has','editor','uploadcareLicenseKeyDomainLimit','config','ImageInsertUI','reduce','usageLimit','uploadcareLicenseKeyValid','GDrive','Dropbox','execute','upload','isPremiumPlugin','url','uploadcareLicenseKeyUsageLimit','_createMenuBarButtons','URL','Insert','get','isOfficialPlugin','_normalizeConfigSourceList','featureNotAllowed','uploadcareLicenseKeyNotAllowed','uploadcare.uploader.sourceList','Replace','UploadcareUI','Uploadcare','_getIntegrationKey','7096848xRJKGZ','push','text','pluginName','10lgPjqG','expired','init','_licenseKeyCheckInterval','uploadcareLicenseKeyInvalid'];_0x57e2=function(){return _0x50db65;};return _0x57e2();}import{getTranslation as _0x119b44}from'./utils/common-translations.js';function _0x3fbc(_0x24980e,_0x104fa3){const _0x57e27f=_0x57e2();return _0x3fbc=function(_0x3fbcb2,_0xb22bf3){_0x3fbcb2=_0x3fbcb2-0x15d;let _0x4a40f9=_0x57e27f[_0x3fbcb2];return _0x4a40f9;},_0x3fbc(_0x24980e,_0x104fa3);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x5d27af{[_0x316d3c(0x198)];[_0x316d3c(0x184)];static get[_0x316d3c(0x180)](){const _0x37c3db=_0x316d3c;return _0x37c3db(0x17a);}static get[_0x316d3c(0x174)](){return!0x0;}static get[_0x316d3c(0x16d)](){return!0x0;}[_0x316d3c(0x183)](){const _0x2e1960=_0x316d3c;this[_0x2e1960(0x198)]=this[_0x2e1960(0x162)][_0x2e1960(0x164)][_0x2e1960(0x173)](_0x2e1960(0x198));const _0xc60405=this[_0x2e1960(0x162)];this[_0x2e1960(0x184)]=setInterval(()=>{const _0x1285da=_0x2e1960;let _0x5b6a23;for(const _0x58ff8e in _0xc60405){const _0x2148b3=_0x58ff8e,_0x5d5f07=_0xc60405[_0x2148b3];if(_0x1285da(0x168)==_0x5d5f07||_0x1285da(0x185)==_0x5d5f07||_0x1285da(0x199)==_0x5d5f07||_0x1285da(0x163)==_0x5d5f07||_0x1285da(0x177)==_0x5d5f07||_0x1285da(0x19d)==_0x5d5f07||_0x1285da(0x15f)==_0x5d5f07||_0x1285da(0x16f)==_0x5d5f07){delete _0xc60405[_0x2148b3],_0x5b6a23=_0x5d5f07,clearInterval(this[_0x1285da(0x184)]),this[_0x1285da(0x184)]=void 0x0;break;}}_0x1285da(0x185)==_0x5b6a23&&_0xc60405[_0x1285da(0x19f)](_0x1285da(0x160)),_0x1285da(0x199)==_0x5b6a23&&_0xc60405[_0x1285da(0x19f)](_0x1285da(0x182)),_0x1285da(0x163)==_0x5b6a23&&_0xc60405[_0x1285da(0x19f)](_0x1285da(0x1a5)),_0x1285da(0x177)==_0x5b6a23&&_0xc60405[_0x1285da(0x19f)](_0x1285da(0x176),_0x1285da(0x17b)),_0x1285da(0x19d)==_0x5b6a23&&_0xc60405[_0x1285da(0x19f)](_0x1285da(0x15d)),_0x1285da(0x15f)==_0x5b6a23&&_0xc60405[_0x1285da(0x19f)](_0x1285da(0x192)),_0x1285da(0x16f)==_0x5b6a23&&_0xc60405[_0x1285da(0x19f)](_0x1285da(0x167));},0x3e8);}[_0x316d3c(0x1ab)](){const _0x294872=_0x316d3c,{editor:_0xce9e57}=this,_0x386d85=_0xce9e57[_0x294872(0x194)][_0x294872(0x173)](_0x294872(0x186));if(!_0x386d85)return;const _0x256cf3=this[_0x294872(0x175)](_0xce9e57[_0x294872(0x164)][_0x294872(0x173)](_0x294872(0x178)))[_0x294872(0x166)]((_0x151f07,_0x58b157)=>{const _0x471a53=_0x294872,_0x2a40c2=this[_0x471a53(0x17c)](_0x58b157[_0x471a53(0x1a3)]);return _0x151f07[_0x2a40c2]||(_0x151f07[_0x2a40c2]=[]),_0x151f07[_0x2a40c2][_0x471a53(0x17e)](_0x58b157),_0x151f07;},{});_0xce9e57[_0x294872(0x1a0)][_0x294872(0x161)](_0x294872(0x165))&&_0xce9e57[_0x294872(0x194)][_0x294872(0x173)](_0x294872(0x186))&&Object[_0x294872(0x1a9)](_0x256cf3)[_0x294872(0x19c)](([_0x19b83a,_0x4d8bc6])=>{const _0x824bb9=_0x294872;_0xce9e57[_0x824bb9(0x1a0)][_0x824bb9(0x173)](_0x824bb9(0x165))[_0x824bb9(0x187)]({'name':_0x19b83a,'observable':()=>_0x386d85,'buttonViewCreator':()=>this[_0x824bb9(0x189)](_0x4d8bc6),'formViewCreator':()=>this[_0x824bb9(0x196)](_0x4d8bc6),'menuBarButtonViewCreator':()=>this[_0x824bb9(0x170)](_0x4d8bc6),'override':_0x824bb9(0x18c)!==_0x19b83a});});}[_0x316d3c(0x1a2)](){const _0x4495de=_0x316d3c;super[_0x4495de(0x1a2)](),this[_0x4495de(0x184)]&&clearInterval(this[_0x4495de(0x184)]);}[_0x316d3c(0x175)](_0xb65108){const _0xb460cf=_0x316d3c,{locale:_0x329699}=this[_0xb460cf(0x162)];return _0xb65108[_0xb460cf(0x1aa)](_0x2bb286=>{const _0x16b31f=_0xb460cf,_0x2e23b7=_0x119b44(_0x329699,_0x2bb286,_0x16b31f(0x172));switch(_0x2bb286){case _0x2fd1da[_0x16b31f(0x1ad)]:return{'icon':_0x428399,'type':_0x2fd1da[_0x16b31f(0x1ad)],..._0x2e23b7};case _0x2fd1da[_0x16b31f(0x171)]:return{'icon':_0x479ad,'type':_0x2fd1da[_0x16b31f(0x171)],..._0x2e23b7};case _0x2fd1da[_0x16b31f(0x16a)]:return{'icon':_0x518056,'type':_0x2fd1da[_0x16b31f(0x16a)],..._0x2e23b7};case _0x2fd1da[_0x16b31f(0x1a1)]:return{'icon':_0x51508e,'type':_0x2fd1da[_0x16b31f(0x1a1)],..._0x2e23b7};case _0x2fd1da[_0x16b31f(0x169)]:return{'icon':_0x344279,'type':_0x2fd1da[_0x16b31f(0x169)],..._0x2e23b7};case _0x2fd1da[_0x16b31f(0x19a)]:return{'icon':_0x22bec6,'type':_0x2fd1da[_0x16b31f(0x19a)],..._0x2e23b7};case _0x2fd1da[_0x16b31f(0x191)]:return{'icon':_0x411031,'type':_0x2fd1da[_0x16b31f(0x191)],..._0x2e23b7};}});}[_0x316d3c(0x17c)](_0x837d9c){const _0x3b82cb=_0x316d3c;switch(_0x837d9c){case _0x2fd1da[_0x3b82cb(0x1ad)]:return _0x3b82cb(0x16c);case _0x2fd1da[_0x3b82cb(0x171)]:return _0x3b82cb(0x16e);default:return _0x3b82cb(0x18c);}}[_0x316d3c(0x193)](_0x4778b8,_0x41b6ee){const _0x31bc6a=_0x316d3c,_0x285239=this[_0x31bc6a(0x162)],_0x43e561=new _0x4778b8(_0x285239[_0x31bc6a(0x1a6)]),_0x1e25bc=_0x285239[_0x31bc6a(0x194)][_0x31bc6a(0x173)](_0x31bc6a(0x186));return _0x43e561[_0x31bc6a(0x19b)](_0x31bc6a(0x15e))['to'](_0x1e25bc),_0x43e561['on'](_0x31bc6a(0x16b),()=>{const _0x35d51a=_0x31bc6a;_0x1e25bc[_0x35d51a(0x16b)](_0x41b6ee);}),_0x43e561;}[_0x316d3c(0x189)](_0x1c7739){const _0x4a9a98=_0x316d3c,{locale:_0x14e523}=this[_0x4a9a98(0x162)],_0x32c99c=this[_0x4a9a98(0x162)][_0x4a9a98(0x1a0)][_0x4a9a98(0x173)](_0x4a9a98(0x165)),_0x16b30f=_0x1c7739[0x0],_0x572c23=this[_0x4a9a98(0x193)](_0x3aa01f,_0x16b30f[_0x4a9a98(0x1a3)]);return _0x572c23[_0x4a9a98(0x188)]=_0x16b30f[_0x4a9a98(0x188)],_0x572c23[_0x4a9a98(0x19b)](_0x4a9a98(0x1ac))['to'](_0x32c99c,_0x4a9a98(0x1a8),_0x31020f=>_0x119b44(_0x14e523,_0x16b30f[_0x4a9a98(0x1a3)],_0x31020f?_0x4a9a98(0x179):_0x4a9a98(0x172))[_0x4a9a98(0x17f)]),_0x572c23[_0x4a9a98(0x18b)]=!0x0,_0x572c23;}[_0x316d3c(0x196)](_0x5d3c85){const _0x4ff4e0=_0x316d3c,{locale:_0x56ebf0}=this[_0x4ff4e0(0x162)],_0x4c0313=this[_0x4ff4e0(0x162)][_0x4ff4e0(0x1a0)][_0x4ff4e0(0x173)](_0x4ff4e0(0x165));return _0x5d3c85[_0x4ff4e0(0x1aa)](_0x1fbdae=>{const _0x32a411=_0x4ff4e0,_0x1e2b43=this[_0x32a411(0x193)](_0x3aa01f,_0x1fbdae[_0x32a411(0x1a3)]);return _0x1e2b43[_0x32a411(0x197)]=!0x0,_0x1e2b43[_0x32a411(0x188)]=_0x1fbdae[_0x32a411(0x188)],_0x1e2b43[_0x32a411(0x19b)](_0x32a411(0x1ac))['to'](_0x4c0313,_0x32a411(0x1a8),_0x2f01bb=>_0x119b44(_0x56ebf0,_0x1fbdae[_0x32a411(0x1a3)],_0x2f01bb?_0x32a411(0x179):_0x32a411(0x172))[_0x32a411(0x17f)]),_0x1e2b43;});}[_0x316d3c(0x170)](_0x213c02){const _0x5a2d46=_0x316d3c;return _0x213c02[_0x5a2d46(0x1aa)](_0x13acad=>{const _0x2f75c3=_0x5a2d46,_0x300278=this[_0x2f75c3(0x193)](_0x4e7fcf,_0x13acad[_0x2f75c3(0x1a3)]);return _0x300278[_0x2f75c3(0x188)]=_0x13acad[_0x2f75c3(0x188)],_0x300278[_0x2f75c3(0x1ac)]=_0x13acad[_0x2f75c3(0x18a)],_0x300278;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1e0f38}from'ckeditor5/src/core.js';import{FileRepository as _0x36837e}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2d1498}from'./uploadcareediting.js';import{UploadUtils as _0x513dbc}from'./utils/uploadutils.js';import{getImageUrls as _0x470b6e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1e0f38{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x36837e,_0x2d1498];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x455b65=this['editor'];if(!!!_0x455b65['config']['get']('uploadcare'))return;_0x455b65['plugins']['get'](_0x36837e)['createUploadAdapter']=_0x37f0ee=>new k(_0x37f0ee,_0x455b65),_0x455b65['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x19ab47,{imageElement:_0x2a248f,data:_0x541d7a})=>{_0x455b65['model']['change'](_0x399c92=>{_0x399c92['setAttribute']('uploadcareImageId',_0x541d7a['uploadcareImageId'],_0x2a248f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xe899c6,_0x196a38){this['loader']=_0xe899c6,this['editor']=_0x196a38,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1328b9=await this['loader']['file'];return _0x513dbc['upload']({'file':_0x1328b9,'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':_0x1d84c1=>{_0x1d84c1&&_0x1d84c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d84c1['value']);}})['then'](async _0x413809=>{const {imageFallbackUrl:_0x4da431,imageSources:_0x5e6b39}=_0x470b6e(_0x413809['cdnUrl'],_0x413809['imageInfo']['width']);return{'uploadcareImageId':_0x413809['uuid'],'default':_0x4da431,'sources':_0x5e6b39};})['catch'](()=>{const _0x3b8061=t('Cannot\x20upload\x20file:')+('\x20'+_0x1328b9['name']+'.');return Promise['reject'](_0x3b8061);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xf96a9e}from'../uploadcareconfig.js';export function getTranslation(_0x464845,_0x13368f,_0x17a21b){const t=_0x464845['t'],_0x268d14=_0x464845['t'];switch(_0x13368f){case _0xf96a9e['Local']:return{'text':_0x268d14('Insert'===_0x17a21b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x268d14('From\x20computer')};case _0xf96a9e['URL']:return{'text':'Insert'===_0x17a21b?_0x268d14('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x268d14('Via\x20URL')};case _0xf96a9e['Dropbox']:return{'text':t('Insert'===_0x17a21b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xf96a9e['Facebook']:return{'text':t('Insert'===_0x17a21b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xf96a9e['GDrive']:return{'text':t('Insert'===_0x17a21b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xf96a9e['GPhotos']:return{'text':t('Insert'===_0x17a21b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xf96a9e['OneDrive']:return{'text':t('Insert'===_0x17a21b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x13368f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3d5b(_0x565021,_0x48b2ff){var _0xd9f14f=_0xd9f1();return _0x3d5b=function(_0x3d5b90,_0xb8b22f){_0x3d5b90=_0x3d5b90-0xa9;var _0x54f896=_0xd9f14f[_0x3d5b90];return _0x54f896;},_0x3d5b(_0x565021,_0x48b2ff);}var _0x4464f7=_0x3d5b;function _0xd9f1(){var _0x33a9b0=['7892712ZHHIfO','createCollection','bindTemplate','focusCycler','div','1620198vJslEh','1030kHuSff','198pnaKiI','forwardCycle','827765OfttYI','fire','true','186921zClKCt','227871vWBrmx','4697870oWymSt','2181999gAFjIV','getFocusableElement','focusTracker','4fsrjOO'];_0xd9f1=function(){return _0x33a9b0;};return _0xd9f1();}(function(_0x581bc9,_0x119bef){var _0x5924d0=_0x3d5b,_0x112fc0=_0x581bc9();while(!![]){try{var _0x468403=-parseInt(_0x5924d0(0xbb))/0x1+parseInt(_0x5924d0(0xb7))/0x2+-parseInt(_0x5924d0(0xae))/0x3*(parseInt(_0x5924d0(0xb1))/0x4)+-parseInt(_0x5924d0(0xad))/0x5+-parseInt(_0x5924d0(0xb9))/0x6*(-parseInt(_0x5924d0(0xac))/0x7)+-parseInt(_0x5924d0(0xb2))/0x8+parseInt(_0x5924d0(0xab))/0x9*(parseInt(_0x5924d0(0xb8))/0xa);if(_0x468403===_0x119bef)break;else _0x112fc0['push'](_0x112fc0['shift']());}catch(_0x16aee9){_0x112fc0['push'](_0x112fc0['shift']());}}}(_0xd9f1,0x84656));import{FocusTracker as _0x472175}from'ckeditor5/src/utils.js';import{View as _0x1685fd,FocusCycler as _0x11c69d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1685fd{[_0x4464f7(0xb0)];[_0x4464f7(0xb5)];constructor(_0x521db6){var _0x1239eb=_0x4464f7;super(_0x521db6),this[_0x1239eb(0xb0)]=new _0x472175(),this[_0x1239eb(0xb5)]=new _0x11c69d({'focusables':this[_0x1239eb(0xb3)](),'focusTracker':this[_0x1239eb(0xb0)]});}[_0x4464f7(0xaf)](){var _0x5218f4=_0x4464f7;return{'tag':_0x5218f4(0xb6),'attributes':{'aria-hidden':_0x5218f4(0xaa),'tabindex':'0'},'on':{'focus':this[_0x5218f4(0xb4)]['to'](()=>{var _0x1b4795=_0x5218f4;this[_0x1b4795(0xb5)][_0x1b4795(0xa9)](_0x1b4795(0xba));})}};}}
|