@ckeditor/ckeditor5-uploadcare 47.2.0-alpha.1 → 47.2.0-alpha.3
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 _0x11e630=_0x563a;function _0x2110(){const _0x13a624=['selection','getAttribute','elementToAttribute','isRegistered','map','destroy','7DPJcSi','2315848STQODo','cleanupImage','uploader-','uploadcareImageReplace','uc-upload-ctx-provider','_initImageProcessingIndicator','uploadcare.pubkey','conversion','959cwthpM','pluginName','225EbzINe','requires','config','init','_initSchema','ctxElement','uploadcare','2976475rFmQLt','true','imageInline','_initCtx','input[uploadcare-file-input]','#uc-icon-arrow-down','ucContextId','\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','fromCharCode','once','insertImage','configElement','commands','PictureEditing','editor','uc-config','add','UploadcareEditing','document','extend','uploadcare.uploader','65416TcnMMC','isOfficialPlugin','href','imageBlock','contentLanguage','get','join','listenTo','view','for','removeAttribute','execute','isPremiumPlugin','_ctxElement','upcast','downcast','querySelector','appendChild','1698327bMuIjq','schema','_initConversion','_initConfig','model','locale','getSelectedElement','uploadcareImageId','attributeToAttribute','data-uc-image-id','remove','render','closeMax','body','17034XnsSiL','147410LupwYi','_configElement','afterInit','editing','1879800eWmTxM','iconHrefResolver','replaceImageSource'];_0x2110=function(){return _0x13a624;};return _0x2110();}(function(_0x19e287,_0x319b9a){const _0x1593d4=_0x563a,_0x171592=_0x19e287();while(!![]){try{const _0x2c7482=-parseInt(_0x1593d4(0x1e0))/0x1*(-parseInt(_0x1593d4(0x207))/0x2)+parseInt(_0x1593d4(0x1c4))/0x3+parseInt(_0x1593d4(0x1d7))/0x4+-parseInt(_0x1593d4(0x1f2))/0x5+-parseInt(_0x1593d4(0x1d2))/0x6*(parseInt(_0x1593d4(0x1e9))/0x7)+-parseInt(_0x1593d4(0x1e1))/0x8+parseInt(_0x1593d4(0x1eb))/0x9*(parseInt(_0x1593d4(0x1d3))/0xa);if(_0x2c7482===_0x319b9a)break;else _0x171592['push'](_0x171592['shift']());}catch(_0x596a02){_0x171592['push'](_0x171592['shift']());}}}(_0x2110,0x57d8d));import{Plugin as _0x1f48db}from'ckeditor5/src/core.js';import{Dialog as _0x31b9fa}from'ckeditor5/src/ui.js';import{createElement as _0x2eea66,global as _0x275c22,uid as _0x5aab1b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x52bdf5}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5ac34f}from'./uploadcareuploadadapter.js';function _0x563a(_0x471b50,_0x6051aa){const _0x211033=_0x2110();return _0x563a=function(_0x563ac3,_0x6910d3){_0x563ac3=_0x563ac3-0x1b6;let _0x17efa6=_0x211033[_0x563ac3];return _0x17efa6;},_0x563a(_0x471b50,_0x6051aa);}import{showImageProcessingIndicator as _0x305af2}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1f48db{[_0x11e630(0x1d4)]=null;[_0x11e630(0x1bf)]=null;static get[_0x11e630(0x1ea)](){const _0x32321c=_0x11e630;return _0x32321c(0x203);}static get[_0x11e630(0x1ec)](){const _0x1f3f86=_0x11e630;return[_0x1f3f86(0x1ff),_0x5ac34f,_0x31b9fa];}static get[_0x11e630(0x208)](){return!0x0;}static get[_0x11e630(0x1be)](){return!0x0;}[_0x11e630(0x1f8)];get[_0x11e630(0x1fd)](){const _0x197022=_0x11e630;return this[_0x197022(0x1d4)];}get[_0x11e630(0x1f0)](){const _0x53e6da=_0x11e630;return this[_0x53e6da(0x1bf)];}constructor(_0x3e6d41){const _0x2d9cd2=_0x11e630;super(_0x3e6d41),this[_0x2d9cd2(0x1f8)]=_0x5aab1b();}[_0x11e630(0x1ee)](){const _0x7ef8a8=_0x11e630,_0x4aab33=this[_0x7ef8a8(0x200)];_0x4aab33[_0x7ef8a8(0x1fe)][_0x7ef8a8(0x202)](_0x7ef8a8(0x1f1),new _0x52bdf5(_0x4aab33));}[_0x11e630(0x1d5)](){const _0x170d4f=_0x11e630;this[_0x170d4f(0x1ef)](),this[_0x170d4f(0x1c6)](),this[_0x170d4f(0x1c7)](),this[_0x170d4f(0x1f5)](),this[_0x170d4f(0x1e6)](),this[_0x170d4f(0x1b9)](this[_0x170d4f(0x200)],_0x170d4f(0x1df),()=>{const _0x3a8069=_0x170d4f;this[_0x3a8069(0x1d4)]&&(this[_0x3a8069(0x1d4)][_0x3a8069(0x1ce)](),this[_0x3a8069(0x1d4)]=null),this[_0x3a8069(0x1bf)]&&(this[_0x3a8069(0x1bf)][_0x3a8069(0x1ce)](),this[_0x3a8069(0x1bf)]=null);const _0x55e846=_0x275c22[_0x3a8069(0x204)][_0x3a8069(0x1c2)](_0x3a8069(0x1f6));_0x55e846&&_0x55e846[_0x3a8069(0x1ce)]();}),async function(_0x5caf3d){const _0xbcf45e=_0x5b791f([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]),_0x29cb80=0x535f8c3a,_0x3f4682=0x5358fb92^_0x29cb80,_0xf69c76=window[_0x5b791f([0x44,0x61,0x74,0x65])][_0x5b791f([0x6e,0x6f,0x77])](),_0x50428f=_0x5caf3d[_0x5b791f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d6ef3=new window[(_0x5b791f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bda0d=>{_0x50428f[_0x5b791f([0x6f,0x6e,0x63,0x65])](_0x5b791f([0x72,0x65,0x61,0x64,0x79]),_0x1bda0d);}),_0xd9d681={[_0x5b791f([0x6b,0x74,0x79])]:_0x5b791f([0x45,0x43]),[_0x5b791f([0x75,0x73,0x65])]:_0x5b791f([0x73,0x69,0x67]),[_0x5b791f([0x63,0x72,0x76])]:_0x5b791f([0x50,0x2d,0x32,0x35,0x36]),[_0x5b791f([0x78])]:_0x5b791f([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]),[_0x5b791f([0x79])]:_0x5b791f([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]),[_0x5b791f([0x61,0x6c,0x67])]:_0x5b791f([0x45,0x53,0x32,0x35,0x36])},_0x1ee7f7=_0x50428f[_0x5b791f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b791f([0x67,0x65,0x74])](_0x5b791f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1589a4(){let _0x3e4d96,_0x18c87a=null,_0x5986d3=null;try{if(_0x1ee7f7==_0x5b791f([0x47,0x50,0x4c]))return _0x5b791f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e4d96=_0xcf0d1b(),!_0x3e4d96)return _0x5b791f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e4d96[_0x5b791f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5986d3=_0x28c2b2(_0x3e4d96[_0x5b791f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e4d96[_0x5b791f([0x6a,0x74,0x69])])),await _0x64d037()?_0x54f12f()?_0x50d131()?_0x5b791f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c1d15()?(_0x3e4d96[_0x5b791f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b791f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18c87a=_0x4c5f97(_0x5b791f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e4d96[_0x5b791f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b791f([0x74,0x72,0x69,0x61,0x6c])&&(_0x18c87a=_0x4c5f97(_0x5b791f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f2ce8()):_0x5b791f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b791f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b791f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b791f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50d131(){const _0x19efb0=[_0x5b791f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b791f([0x74,0x72,0x69,0x61,0x6c])][_0x5b791f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4d96[_0x5b791f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf69c76/0x3e8:0xe10*_0x3f4682;return _0x3e4d96[_0x5b791f([0x65,0x78,0x70])]<_0x19efb0;}function _0x54f12f(){const _0x2af638=_0x3e4d96[_0x5b791f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2af638&&(!!_0x2af638[_0x5b791f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b791f([0x2a]))||!!_0x2af638[_0x5b791f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b791f([0x55,0x50,0x4c,0x43])));}function _0x5c1d15(){const _0x443154=_0x563a,_0x4b2571=_0x3e4d96[_0x5b791f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b2571||0x0==_0x4b2571[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2af254}=new URL(window[_0x5b791f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x443154(0x209)]);if(_0x4b2571[_0x5b791f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2af254))return!0x0;const _0x55a3cd=_0x2af254[_0x5b791f([0x73,0x70,0x6c,0x69,0x74])](_0x5b791f([0x2e]));return _0x4b2571[_0x5b791f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a3759=>_0x5a3759[_0x5b791f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b791f([0x2a])))[_0x5b791f([0x6d,0x61,0x70])](_0x56e9d4=>_0x56e9d4[_0x5b791f([0x73,0x70,0x6c,0x69,0x74])](_0x5b791f([0x2e])))[_0x5b791f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ed679=>_0x5ed679[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x55a3cd[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b791f([0x6d,0x61,0x70])](_0x40aff6=>Array(_0x55a3cd[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40aff6[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b791f([0x66,0x69,0x6c,0x6c])](_0x40aff6[0x0]===_0x5b791f([0x2a])?_0x5b791f([0x2a]):'')[_0x5b791f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40aff6))[_0x5b791f([0x73,0x6f,0x6d,0x65])](_0x398a7c=>_0x55a3cd[_0x5b791f([0x65,0x76,0x65,0x72,0x79])]((_0x472ef6,_0x54a8ae)=>_0x398a7c[_0x54a8ae]===_0x472ef6||_0x398a7c[_0x54a8ae]===_0x5b791f([0x2a])));}function _0x5f2ce8(){return _0x18c87a&&_0x5986d3?new window[(_0x5b791f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f4936,_0x318ab8)=>{_0x18c87a[_0x5b791f([0x74,0x68,0x65,0x6e])](_0x1f4936,_0x318ab8),_0x5986d3[_0x5b791f([0x74,0x68,0x65,0x6e])](_0x257f87=>{_0x257f87!=_0x5b791f([0x56,0x61,0x6c,0x69,0x64])&&_0x1f4936(_0x257f87);},_0x318ab8);}):_0x18c87a||_0x5986d3||_0x5b791f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28c2b2(_0x5d59ad,_0x4a11ea){return new window[(_0x5b791f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d0c2=>{if(_0x1f7e03())return _0x42d0c2(_0x5b791f([0x56,0x61,0x6c,0x69,0x64]));_0x59d380(),_0x50428f[_0x5b791f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b791f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c1844=!0x1;const _0x3dc9e=_0x5aab1b();function _0x37ee47(_0x4e9b9e){return!!_0x4e9b9e&&(typeof _0x4e9b9e===_0x5b791f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e9b9e===_0x5b791f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e9b9e[_0x5b791f([0x74,0x68,0x65,0x6e])]===_0x5b791f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e9b9e[_0x5b791f([0x63,0x61,0x74,0x63,0x68])]===_0x5b791f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f060b(_0x5d7cf8){_0x47db04(_0x5d7cf8)[_0x5b791f([0x74,0x68,0x65,0x6e])](_0x532bd3=>{if(!_0x532bd3||_0x532bd3[_0x5b791f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b791f([0x6f,0x6b]))return _0x5b791f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12be9d(_0x4db1d2(_0x3dc9e+_0x4a11ea))!=_0x532bd3[_0x5b791f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b791f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b791f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b791f([0x74,0x68,0x65,0x6e])](_0x11cba3=>(_0x45b7d1(),_0x11cba3),()=>{const _0xb133e8=_0x5a6113();return null==_0xb133e8?(_0x45b7d1(),_0x5b791f([0x56,0x61,0x6c,0x69,0x64])):_0x5b791f(_0xf69c76-_0xb133e8>(0x7753083a^_0x29cb80)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b791f([0x74,0x68,0x65,0x6e])](_0x42d0c2)[_0x5b791f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42d0c2(_0x5b791f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb3c57c=0x536962ba^_0x29cb80;function _0x45b7d1(){const _0x4b9db7=_0x5b791f([0x6c,0x6c,0x63,0x74,0x2d])+_0x12be9d(_0x4db1d2(_0x5d59ad)),_0x4c4f13=_0xa036e0(_0x12be9d(window[_0x5b791f([0x4d,0x61,0x74,0x68])][_0x5b791f([0x63,0x65,0x69,0x6c])](_0xf69c76/_0xb3c57c)));window[_0x5b791f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b791f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b9db7,_0x4c4f13);}function _0x5a6113(){const _0x2dd8a5=_0x5b791f([0x6c,0x6c,0x63,0x74,0x2d])+_0x12be9d(_0x4db1d2(_0x5d59ad)),_0x56b23a=window[_0x5b791f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b791f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dd8a5);return _0x56b23a?window[_0x5b791f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa036e0(_0x56b23a),0x10)*_0xb3c57c:null;}function _0x47db04(_0x2097e7){return new window[(_0x5b791f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x616089,_0x34633f)=>{_0x2097e7[_0x5b791f([0x74,0x68,0x65,0x6e])](_0x616089,_0x34633f),window[_0x5b791f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34633f,0x535e58fa^_0x29cb80);});}}_0x50428f[_0x5b791f([0x6f,0x6e])](_0x5b791f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e47a0,_0x5500ea)=>{if(_0x5500ea[0x0]!=_0x5d59ad)return _0x42d0c2(_0x5b791f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5500ea[0x1]={..._0x5500ea[0x1],[_0x5b791f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dc9e};},{[_0x5b791f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b791f([0x68,0x69,0x67,0x68])}),_0x50428f[_0x5b791f([0x6f,0x6e])](_0x5b791f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xac6a18=>{_0x37ee47(_0xac6a18[_0x5b791f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c1844=!0x0,_0x1f060b(_0xac6a18[_0x5b791f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b791f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b791f([0x6c,0x6f,0x77])}),_0x5d6ef3[_0x5b791f([0x74,0x68,0x65,0x6e])](()=>{_0x1c1844||_0x42d0c2(_0x5b791f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f7e03(){return _0x50428f[_0x5b791f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b791f([0x76,0x69,0x65,0x77])][_0x5b791f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b791f([0x61,0x75,0x74,0x6f]);}function _0x59d380(){_0x50428f[_0x5b791f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b791f([0x76,0x69,0x65,0x77])][_0x5b791f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b791f([0x61,0x75,0x74,0x6f]);}}function _0x4c5f97(_0xd52219){const _0x2ddab1=[new window[(_0x5b791f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a75b8=>setTimeout(_0x2a75b8,0x5356b2f6^_0x29cb80)),_0x5d6ef3[_0x5b791f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b791f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d0a39=>{let _0x144cfa=0x0;_0x50428f[_0x5b791f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b791f([0x6f,0x6e])](_0x5b791f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4bbd5b,_0x51944e)=>{_0x51944e[0x0][_0x5b791f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x144cfa++,_0x144cfa==(0x535f8dc2^_0x29cb80)&&(_0x4d0a39(),_0x4bbd5b[_0x5b791f([0x6f,0x66,0x66])]());});}))];return window[_0x5b791f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b791f([0x72,0x61,0x63,0x65])](_0x2ddab1)[_0x5b791f([0x74,0x68,0x65,0x6e])](()=>_0xd52219);}async function _0x3b8018(){await _0x5d6ef3,_0x50428f[_0x5b791f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b791f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x135b68,_0x50428f[_0x5b791f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b791f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x135b68,_0x50428f[_0x5b791f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b791f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7fb0f4(_0x32162f){const _0x4f4c33=_0x571981();_0x50428f[_0x4f4c33]=_0x5b791f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x32162f,_0x32162f!=_0x5b791f([0x56,0x61,0x6c,0x69,0x64])&&_0x3b8018();}function _0x571981(){const _0x9500a0=window[_0x5b791f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b791f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b791f([0x6e,0x6f,0x77])]())[_0x5b791f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b791f([0x2e]),'');let _0x32ea8e=_0x5b791f([0x68]);for(let _0x4470b4=0x0;_0x4470b4<_0x9500a0[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4470b4+=0x2){let _0x568b63=window[_0x5b791f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9500a0[_0x5b791f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4470b4,_0x4470b4+0x2));_0x568b63>=_0xbcf45e[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x568b63-=_0xbcf45e[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32ea8e+=_0xbcf45e[_0x568b63];}return _0x32ea8e;}function _0xcf0d1b(){const _0x254547=_0x1ee7f7[_0x5b791f([0x73,0x70,0x6c,0x69,0x74])](_0x5b791f([0x2e]));if(0x3!=_0x254547[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bbe33(_0x254547[0x1]);function _0x5bbe33(_0x281004){const _0x22ce3f=_0x5be4ff(_0x281004);return _0x22ce3f&&_0x425f72()?_0x22ce3f:null;function _0x425f72(){const _0x1d5eb8=_0x22ce3f[_0x5b791f([0x6a,0x74,0x69])],_0x3ecf08=window[_0x5b791f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d5eb8[_0x5b791f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d5eb8[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48db25={..._0x22ce3f,[_0x5b791f([0x6a,0x74,0x69])]:_0x1d5eb8[_0x5b791f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d5eb8[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48db25[_0x5b791f([0x76,0x63])],_0x4db1d2(_0x48db25)==_0x3ecf08;}}}async function _0x64d037(){let _0x148540=!0x0;try{const _0x19dc67=_0x1ee7f7[_0x5b791f([0x73,0x70,0x6c,0x69,0x74])](_0x5b791f([0x2e])),[_0x829f36,_0x395c91,_0xc16bbd]=_0x19dc67;return _0x2f9a08(_0x829f36),await _0x244901(_0x829f36,_0x395c91,_0xc16bbd),_0x148540;}catch{return!0x1;}function _0x2f9a08(_0x2e291d){const _0x21248f=_0x5be4ff(_0x2e291d);_0x21248f&&_0x21248f[_0x5b791f([0x61,0x6c,0x67])]==_0x5b791f([0x45,0x53,0x32,0x35,0x36])||(_0x148540=!0x1);}async function _0x244901(_0x473277,_0x30d51c,_0xe7d447){const _0x4edf19=window[_0x5b791f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b791f([0x66,0x72,0x6f,0x6d])](_0x51ddaf(_0xe7d447),_0x4c29a3=>_0x4c29a3[_0x5b791f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2db60c=new window[(_0x5b791f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b791f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x473277+_0x5b791f([0x2e])+_0x30d51c),_0x523278=window[_0x5b791f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b791f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x523278)return;const _0x4c332f=await _0x523278[_0x5b791f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b791f([0x6a,0x77,0x6b]),_0xd9d681,{[_0x5b791f([0x6e,0x61,0x6d,0x65])]:_0x5b791f([0x45,0x43,0x44,0x53,0x41]),[_0x5b791f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b791f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b791f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x523278[_0x5b791f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b791f([0x6e,0x61,0x6d,0x65])]:_0x5b791f([0x45,0x43,0x44,0x53,0x41]),[_0x5b791f([0x68,0x61,0x73,0x68])]:{[_0x5b791f([0x6e,0x61,0x6d,0x65])]:_0x5b791f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c332f,_0x4edf19,_0x2db60c)||(_0x148540=!0x1);}}function _0x5be4ff(_0x41dd6b){return _0x41dd6b[_0x5b791f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b791f([0x65,0x79]))?JSON[_0x5b791f([0x70,0x61,0x72,0x73,0x65])](_0x51ddaf(_0x41dd6b)):null;}function _0x51ddaf(_0x4e702f){return window[_0x5b791f([0x61,0x74,0x6f,0x62])](_0x4e702f[_0x5b791f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b791f([0x2b]))[_0x5b791f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b791f([0x2f])));}function _0x4db1d2(_0x101cdf){let _0x699426=0x1505;function _0x52da87(_0x567610){for(let _0x418ef1=0x0;_0x418ef1<_0x567610[_0x5b791f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x418ef1++){const _0x2bacdf=_0x567610[_0x5b791f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x418ef1);_0x699426=(_0x699426<<0x5)+_0x699426+_0x2bacdf,_0x699426&=_0x699426;}}function _0x20f797(_0x2ecdb4){Array[_0x5b791f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ecdb4)?_0x2ecdb4[_0x5b791f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20f797):_0x2ecdb4&&typeof _0x2ecdb4==_0x5b791f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b791f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ecdb4)[_0x5b791f([0x73,0x6f,0x72,0x74])]()[_0x5b791f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4866d0,_0x36262a])=>{_0x52da87(_0x4866d0),_0x20f797(_0x36262a);}):_0x52da87(window[_0x5b791f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ecdb4));}return _0x20f797(_0x101cdf),_0x699426>>>0x0;}function _0x12be9d(_0x3bf4f5){return _0x3bf4f5[_0x5b791f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b791f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b791f([0x30]));}function _0xa036e0(_0x548e06){return _0x548e06[_0x5b791f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b791f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b791f([0x6a,0x6f,0x69,0x6e])]('');}function _0x135b68(){}function _0x5b791f(_0x249c1b){const _0x2c6716=_0x563a;return _0x249c1b[_0x2c6716(0x1de)](_0x34ecf3=>String[_0x2c6716(0x1fa)](_0x34ecf3))[_0x2c6716(0x1b8)]('');}_0x7fb0f4(await _0x1589a4());}(this);}[_0x11e630(0x1ef)](){const _0xb58775=_0x11e630,_0x117a6f=this[_0xb58775(0x200)][_0xb58775(0x1c8)][_0xb58775(0x1c5)];_0x117a6f[_0xb58775(0x1dd)](_0xb58775(0x20a))&&_0x117a6f[_0xb58775(0x205)](_0xb58775(0x20a),{'allowAttributes':[_0xb58775(0x1cb)]}),_0x117a6f[_0xb58775(0x1dd)](_0xb58775(0x1f4))&&_0x117a6f[_0xb58775(0x205)](_0xb58775(0x1f4),{'allowAttributes':[_0xb58775(0x1cb)]});}[_0x11e630(0x1c6)](){const _0x53fa76=_0x11e630,_0x523316=this[_0x53fa76(0x200)];_0x523316[_0x53fa76(0x1e8)][_0x53fa76(0x1bb)](_0x53fa76(0x1c1))[_0x53fa76(0x1cc)]({'model':_0x53fa76(0x1cb),'view':_0x53fa76(0x1cd)}),_0x523316[_0x53fa76(0x1e8)][_0x53fa76(0x1bb)](_0x53fa76(0x1c0))[_0x53fa76(0x1dc)]({'model':{'key':_0x53fa76(0x1cb),'value':_0x2120d4=>_0x2120d4[_0x53fa76(0x1db)](_0x53fa76(0x1cd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x454784=_0x523316[_0x53fa76(0x1fe)][_0x53fa76(0x1b7)](_0x53fa76(0x1d9));_0x454784&&this[_0x53fa76(0x1b9)](_0x454784,_0x53fa76(0x1e2),(_0x14e6b7,[_0x3aa13c,_0x105e73])=>{const _0x50e6a6=_0x53fa76;_0x3aa13c[_0x50e6a6(0x1bc)](_0x50e6a6(0x1cb),_0x105e73);});}[_0x11e630(0x1c7)](){const _0x123744=_0x11e630,_0x3e227d=this[_0x123744(0x200)][_0x123744(0x1ed)][_0x123744(0x1b7)](_0x123744(0x206))||{},_0xdac80a=this[_0x123744(0x200)][_0x123744(0x1ed)][_0x123744(0x1b7)](_0x123744(0x1e7))||'';this[_0x123744(0x1d4)]=_0x2eea66(_0x275c22[_0x123744(0x204)],_0x123744(0x201),{..._0x3e227d,'pubkey':_0xdac80a,'ctx-name':_0x123744(0x1e3)+this[_0x123744(0x1f8)],'sourceList':'','imgOnly':_0x123744(0x1f3),'removeCopyright':_0x123744(0x1f3),'localeName':this[_0x123744(0x200)][_0x123744(0x1c9)][_0x123744(0x1b6)],'externalSourcesEmbedCss':_0x123744(0x1f9)}),this[_0x123744(0x1d4)][_0x123744(0x1d8)]=_0x367aa2=>{const _0x4b561a=_0x123744;if(_0x4b561a(0x1d0)==_0x367aa2)return _0x4b561a(0x1f7);},_0x275c22[_0x123744(0x204)][_0x123744(0x1d1)][_0x123744(0x1c3)](this[_0x123744(0x1d4)]);}[_0x11e630(0x1f5)](){const _0x54cd93=_0x11e630;this[_0x54cd93(0x1bf)]=_0x2eea66(_0x275c22[_0x54cd93(0x204)],_0x54cd93(0x1e5),{'ctx-name':_0x54cd93(0x1e3)+this[_0x54cd93(0x1f8)]}),_0x275c22[_0x54cd93(0x204)][_0x54cd93(0x1d1)][_0x54cd93(0x1c3)](this[_0x54cd93(0x1bf)]);}[_0x11e630(0x1e6)](){const _0xe6f17b=_0x11e630,_0x2b2448=this[_0xe6f17b(0x200)][_0xe6f17b(0x1fe)][_0xe6f17b(0x1b7)](_0xe6f17b(0x1fc));_0x2b2448&&this[_0xe6f17b(0x1b9)](_0x2b2448,_0xe6f17b(0x1bd),()=>{const _0xc531c1=_0xe6f17b,_0x3d6490=this[_0xc531c1(0x200)][_0xc531c1(0x1c8)][_0xc531c1(0x204)][_0xc531c1(0x1da)][_0xc531c1(0x1ca)]();_0x3d6490&&_0x3d6490[_0xc531c1(0x1db)](_0xc531c1(0x1cb))&&this[_0xc531c1(0x200)][_0xc531c1(0x1d6)][_0xc531c1(0x1ba)][_0xc531c1(0x1fb)](_0xc531c1(0x1cf),()=>{const _0x36f8a6=_0xc531c1;_0x305af2(this[_0x36f8a6(0x200)],_0x3d6490);});});const _0x289e19=this[_0xe6f17b(0x200)][_0xe6f17b(0x1fe)][_0xe6f17b(0x1b7)](_0xe6f17b(0x1e4));_0x289e19&&this[_0xe6f17b(0x1b9)](_0x289e19,_0xe6f17b(0x1bd),()=>{const _0x154f78=_0xe6f17b,_0x3cb95f=this[_0x154f78(0x200)][_0x154f78(0x1c8)][_0x154f78(0x204)][_0x154f78(0x1da)][_0x154f78(0x1ca)]();_0x3cb95f&&_0x3cb95f[_0x154f78(0x1db)](_0x154f78(0x1cb))&&this[_0x154f78(0x200)][_0x154f78(0x1d6)][_0x154f78(0x1ba)][_0x154f78(0x1fb)](_0x154f78(0x1cf),()=>{const _0x8a0b44=_0x154f78;_0x305af2(this[_0x8a0b44(0x200)],_0x3cb95f);});});}}
|
|
23
|
+
const _0x11630b=_0xa544;(function(_0x23e9c3,_0x56a8a5){const _0x14a2c5=_0xa544,_0x2f86ea=_0x23e9c3();while(!![]){try{const _0xb40d78=-parseInt(_0x14a2c5(0x1d3))/0x1+-parseInt(_0x14a2c5(0x1c5))/0x2+-parseInt(_0x14a2c5(0x1b0))/0x3*(parseInt(_0x14a2c5(0x1d5))/0x4)+parseInt(_0x14a2c5(0x1aa))/0x5*(-parseInt(_0x14a2c5(0x1e3))/0x6)+parseInt(_0x14a2c5(0x1a0))/0x7*(parseInt(_0x14a2c5(0x1c6))/0x8)+-parseInt(_0x14a2c5(0x19b))/0x9*(parseInt(_0x14a2c5(0x196))/0xa)+-parseInt(_0x14a2c5(0x1cd))/0xb*(-parseInt(_0x14a2c5(0x1ad))/0xc);if(_0xb40d78===_0x56a8a5)break;else _0x2f86ea['push'](_0x2f86ea['shift']());}catch(_0x4e60b2){_0x2f86ea['push'](_0x2f86ea['shift']());}}}(_0x52ef,0xb5476));function _0x52ef(){const _0x1307cc=['_initCtx','10fVwcmP','input[uploadcare-file-input]','data-uc-image-id','getAttribute','view','12672522KGlBLY','map','add','editor','destroy','142163HgWSzh','_ctxElement','attributeToAttribute','config','remove','model','cleanupImage','getSelectedElement','insertImage','_configElement','2210XfneKM','get','_initSchema','11748084ANsXvw','removeAttribute','uploader-','3oURuZW','fromCharCode','uc-upload-ctx-provider','elementToAttribute','PictureEditing','uploadcareImageReplace','contentLanguage','isRegistered','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploadcare','imageBlock','execute','isPremiumPlugin','join','render','closeMax','replaceImageSource','uploadcare.pubkey','_initImageProcessingIndicator','selection','ucContextId','2233720axYLSY','280HdfEMZ','afterInit','_initConversion','init','editing','listenTo','for','55YlPsHf','conversion','isOfficialPlugin','extend','uc-config','once','1337183PhJQpZ','UploadcareEditing','147148lwDVoT','uploadcareImageId','querySelector','body','pluginName','href','configElement','iconHrefResolver','appendChild','#uc-icon-arrow-down','schema','downcast','true','requires','13092bZbjOr','commands','locale','uploadcare.uploader','_initConfig','upcast','document','imageInline','ctxElement'];_0x52ef=function(){return _0x1307cc;};return _0x52ef();}import{Plugin as _0x46f442}from'ckeditor5/src/core.js';import{Dialog as _0x4f1af0}from'ckeditor5/src/ui.js';import{createElement as _0x4c3696,global as _0x5392ea,uid as _0x59e2ff}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4eee3d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x9961ff}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5021da}from'./utils/editingutils.js';function _0xa544(_0x224e67,_0xc7fa65){const _0x52ef81=_0x52ef();return _0xa544=function(_0xa54492,_0x317c5){_0xa54492=_0xa54492-0x193;let _0xbe17da=_0x52ef81[_0xa54492];return _0xbe17da;},_0xa544(_0x224e67,_0xc7fa65);}export class UploadcareEditing extends _0x46f442{[_0x11630b(0x1a9)]=null;[_0x11630b(0x1a1)]=null;static get[_0x11630b(0x1d9)](){const _0x5dd03b=_0x11630b;return _0x5dd03b(0x1d4);}static get[_0x11630b(0x1e2)](){const _0x4f1b7b=_0x11630b;return[_0x4f1b7b(0x1b4),_0x9961ff,_0x4f1af0];}static get[_0x11630b(0x1cf)](){return!0x0;}static get[_0x11630b(0x1bc)](){return!0x0;}[_0x11630b(0x1c4)];get[_0x11630b(0x1db)](){const _0x4b3c2b=_0x11630b;return this[_0x4b3c2b(0x1a9)];}get[_0x11630b(0x194)](){const _0x4d5296=_0x11630b;return this[_0x4d5296(0x1a1)];}constructor(_0x515d00){const _0x596100=_0x11630b;super(_0x515d00),this[_0x596100(0x1c4)]=_0x59e2ff();}[_0x11630b(0x1c9)](){const _0x372887=_0x11630b,_0x20360a=this[_0x372887(0x19e)];_0x20360a[_0x372887(0x1e4)][_0x372887(0x19d)](_0x372887(0x1b9),new _0x4eee3d(_0x20360a));}[_0x11630b(0x1c7)](){const _0xdce72a=_0x11630b;this[_0xdce72a(0x1ac)](),this[_0xdce72a(0x1c8)](),this[_0xdce72a(0x1e7)](),this[_0xdce72a(0x195)](),this[_0xdce72a(0x1c2)](),this[_0xdce72a(0x1cb)](this[_0xdce72a(0x19e)],_0xdce72a(0x19f),()=>{const _0x474db9=_0xdce72a;this[_0x474db9(0x1a9)]&&(this[_0x474db9(0x1a9)][_0x474db9(0x1a4)](),this[_0x474db9(0x1a9)]=null),this[_0x474db9(0x1a1)]&&(this[_0x474db9(0x1a1)][_0x474db9(0x1a4)](),this[_0x474db9(0x1a1)]=null);const _0x5378aa=_0x5392ea[_0x474db9(0x1e9)][_0x474db9(0x1d7)](_0x474db9(0x197));_0x5378aa&&_0x5378aa[_0x474db9(0x1a4)]();}),async function(_0x315a3c){const _0x1245d5=_0x2903fa([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]),_0x25038a=0x535f8c3a,_0x549911=0x5358fbe2^_0x25038a,_0x7d08c=window[_0x2903fa([0x44,0x61,0x74,0x65])][_0x2903fa([0x6e,0x6f,0x77])](),_0x36afbe=_0x315a3c[_0x2903fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x293e57=new window[(_0x2903fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe313b7=>{_0x36afbe[_0x2903fa([0x6f,0x6e,0x63,0x65])](_0x2903fa([0x72,0x65,0x61,0x64,0x79]),_0xe313b7);}),_0x2391f8={[_0x2903fa([0x6b,0x74,0x79])]:_0x2903fa([0x45,0x43]),[_0x2903fa([0x75,0x73,0x65])]:_0x2903fa([0x73,0x69,0x67]),[_0x2903fa([0x63,0x72,0x76])]:_0x2903fa([0x50,0x2d,0x32,0x35,0x36]),[_0x2903fa([0x78])]:_0x2903fa([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]),[_0x2903fa([0x79])]:_0x2903fa([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]),[_0x2903fa([0x61,0x6c,0x67])]:_0x2903fa([0x45,0x53,0x32,0x35,0x36])},_0x1047d8=_0x36afbe[_0x2903fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2903fa([0x67,0x65,0x74])](_0x2903fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e69ab(){let _0x32402b,_0x35f344=null,_0x2eb5b0=null;try{if(_0x1047d8==_0x2903fa([0x47,0x50,0x4c]))return _0x2903fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32402b=_0x123b73(),!_0x32402b)return _0x2903fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32402b[_0x2903fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2eb5b0=_0x21bad2(_0x32402b[_0x2903fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32402b[_0x2903fa([0x6a,0x74,0x69])])),await _0x2f7518()?_0x4736b2()?_0xd482a3()?_0x2903fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d3bbc()?(_0x32402b[_0x2903fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2903fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35f344=_0x305420(_0x2903fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32402b[_0x2903fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2903fa([0x74,0x72,0x69,0x61,0x6c])&&(_0x35f344=_0x305420(_0x2903fa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa13a91()):_0x2903fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2903fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2903fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2903fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd482a3(){const _0x20ce89=[_0x2903fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2903fa([0x74,0x72,0x69,0x61,0x6c])][_0x2903fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32402b[_0x2903fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7d08c/0x3e8:0xe10*_0x549911;return _0x32402b[_0x2903fa([0x65,0x78,0x70])]<_0x20ce89;}function _0x4736b2(){const _0x36720d=_0x32402b[_0x2903fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36720d&&(!!_0x36720d[_0x2903fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2903fa([0x2a]))||!!_0x36720d[_0x2903fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2903fa([0x55,0x50,0x4c,0x43])));}function _0x1d3bbc(){const _0x4d6527=_0xa544,_0x296d22=_0x32402b[_0x2903fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x296d22||0x0==_0x296d22[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16dcde}=new URL(window[_0x2903fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d6527(0x1da)]);if(_0x296d22[_0x2903fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16dcde))return!0x0;const _0x3db3f0=_0x16dcde[_0x2903fa([0x73,0x70,0x6c,0x69,0x74])](_0x2903fa([0x2e]));return _0x296d22[_0x2903fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ce395=>_0x5ce395[_0x2903fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2903fa([0x2a])))[_0x2903fa([0x6d,0x61,0x70])](_0x1d14de=>_0x1d14de[_0x2903fa([0x73,0x70,0x6c,0x69,0x74])](_0x2903fa([0x2e])))[_0x2903fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x490ca9=>_0x490ca9[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3db3f0[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2903fa([0x6d,0x61,0x70])](_0x11f694=>Array(_0x3db3f0[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11f694[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2903fa([0x66,0x69,0x6c,0x6c])](_0x11f694[0x0]===_0x2903fa([0x2a])?_0x2903fa([0x2a]):'')[_0x2903fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11f694))[_0x2903fa([0x73,0x6f,0x6d,0x65])](_0x4b8bef=>_0x3db3f0[_0x2903fa([0x65,0x76,0x65,0x72,0x79])]((_0x436ff9,_0x34268a)=>_0x4b8bef[_0x34268a]===_0x436ff9||_0x4b8bef[_0x34268a]===_0x2903fa([0x2a])));}function _0xa13a91(){return _0x35f344&&_0x2eb5b0?new window[(_0x2903fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bd323,_0xdd898a)=>{_0x35f344[_0x2903fa([0x74,0x68,0x65,0x6e])](_0x5bd323,_0xdd898a),_0x2eb5b0[_0x2903fa([0x74,0x68,0x65,0x6e])](_0x55a900=>{_0x55a900!=_0x2903fa([0x56,0x61,0x6c,0x69,0x64])&&_0x5bd323(_0x55a900);},_0xdd898a);}):_0x35f344||_0x2eb5b0||_0x2903fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21bad2(_0x59f9d0,_0x4b9476){return new window[(_0x2903fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dd7b5=>{if(_0x384e73())return _0x5dd7b5(_0x2903fa([0x56,0x61,0x6c,0x69,0x64]));_0x138116(),_0x36afbe[_0x2903fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2903fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22ae04=!0x1;const _0x4a453b=_0x59e2ff();function _0x49ab00(_0x11897f){return!!_0x11897f&&(typeof _0x11897f===_0x2903fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11897f===_0x2903fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11897f[_0x2903fa([0x74,0x68,0x65,0x6e])]===_0x2903fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11897f[_0x2903fa([0x63,0x61,0x74,0x63,0x68])]===_0x2903fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3588a9(_0x24ae6e){_0x45032d(_0x24ae6e)[_0x2903fa([0x74,0x68,0x65,0x6e])](_0x5e8f0c=>{if(!_0x5e8f0c||_0x5e8f0c[_0x2903fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2903fa([0x6f,0x6b]))return _0x2903fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a7c47(_0x3a0b73(_0x4a453b+_0x4b9476))!=_0x5e8f0c[_0x2903fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2903fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2903fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x2903fa([0x74,0x68,0x65,0x6e])](_0x4a2a73=>(_0x1d97c4(),_0x4a2a73),()=>{const _0x169f90=_0x343c84();return null==_0x169f90?(_0x1d97c4(),_0x2903fa([0x56,0x61,0x6c,0x69,0x64])):_0x2903fa(_0x7d08c-_0x169f90>(0x7753083a^_0x25038a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2903fa([0x74,0x68,0x65,0x6e])](_0x5dd7b5)[_0x2903fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5dd7b5(_0x2903fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfa4df7=0x536962ba^_0x25038a;function _0x1d97c4(){const _0x123930=_0x2903fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a7c47(_0x3a0b73(_0x59f9d0)),_0x5f2841=_0x47478e(_0x3a7c47(window[_0x2903fa([0x4d,0x61,0x74,0x68])][_0x2903fa([0x63,0x65,0x69,0x6c])](_0x7d08c/_0xfa4df7)));window[_0x2903fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2903fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x123930,_0x5f2841);}function _0x343c84(){const _0xc86ad=_0x2903fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a7c47(_0x3a0b73(_0x59f9d0)),_0x4b6a50=window[_0x2903fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2903fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc86ad);return _0x4b6a50?window[_0x2903fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47478e(_0x4b6a50),0x10)*_0xfa4df7:null;}function _0x45032d(_0x1b3330){return new window[(_0x2903fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1573bb,_0x58238d)=>{_0x1b3330[_0x2903fa([0x74,0x68,0x65,0x6e])](_0x1573bb,_0x58238d),window[_0x2903fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58238d,0x535e58fa^_0x25038a);});}}_0x36afbe[_0x2903fa([0x6f,0x6e])](_0x2903fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x183cca,_0x46fa80)=>{if(_0x46fa80[0x0]!=_0x59f9d0)return _0x5dd7b5(_0x2903fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46fa80[0x1]={..._0x46fa80[0x1],[_0x2903fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a453b};},{[_0x2903fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2903fa([0x68,0x69,0x67,0x68])}),_0x36afbe[_0x2903fa([0x6f,0x6e])](_0x2903fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30f3e8=>{_0x49ab00(_0x30f3e8[_0x2903fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22ae04=!0x0,_0x3588a9(_0x30f3e8[_0x2903fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2903fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2903fa([0x6c,0x6f,0x77])}),_0x293e57[_0x2903fa([0x74,0x68,0x65,0x6e])](()=>{_0x22ae04||_0x5dd7b5(_0x2903fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x384e73(){return _0x36afbe[_0x2903fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2903fa([0x76,0x69,0x65,0x77])][_0x2903fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2903fa([0x61,0x75,0x74,0x6f]);}function _0x138116(){_0x36afbe[_0x2903fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2903fa([0x76,0x69,0x65,0x77])][_0x2903fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2903fa([0x61,0x75,0x74,0x6f]);}}function _0x305420(_0x2773f0){const _0x6b922e=[new window[(_0x2903fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55e643=>setTimeout(_0x55e643,0x5356b2f6^_0x25038a)),_0x293e57[_0x2903fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2903fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x64e77e=>{let _0x474c0d=0x0;_0x36afbe[_0x2903fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2903fa([0x6f,0x6e])](_0x2903fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47f961,_0x12eeb7)=>{_0x12eeb7[0x0][_0x2903fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x474c0d++,_0x474c0d==(0x535f8dc2^_0x25038a)&&(_0x64e77e(),_0x47f961[_0x2903fa([0x6f,0x66,0x66])]());});}))];return window[_0x2903fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2903fa([0x72,0x61,0x63,0x65])](_0x6b922e)[_0x2903fa([0x74,0x68,0x65,0x6e])](()=>_0x2773f0);}async function _0x5064ce(){await _0x293e57,_0x36afbe[_0x2903fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2903fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f6e66,_0x36afbe[_0x2903fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2903fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f6e66,_0x36afbe[_0x2903fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2903fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a59a6(_0x1f957a){const _0x437f7a=_0x2d7d0f();_0x36afbe[_0x437f7a]=_0x2903fa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f957a,_0x1f957a!=_0x2903fa([0x56,0x61,0x6c,0x69,0x64])&&_0x5064ce();}function _0x2d7d0f(){const _0x75964c=window[_0x2903fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2903fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2903fa([0x6e,0x6f,0x77])]())[_0x2903fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2903fa([0x2e]),'');let _0x2a5a8e=_0x2903fa([0x68]);for(let _0x16d94a=0x0;_0x16d94a<_0x75964c[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16d94a+=0x2){let _0x5c8e4b=window[_0x2903fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x75964c[_0x2903fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16d94a,_0x16d94a+0x2));_0x5c8e4b>=_0x1245d5[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c8e4b-=_0x1245d5[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a5a8e+=_0x1245d5[_0x5c8e4b];}return _0x2a5a8e;}function _0x123b73(){const _0x19fe2a=_0x1047d8[_0x2903fa([0x73,0x70,0x6c,0x69,0x74])](_0x2903fa([0x2e]));if(0x3!=_0x19fe2a[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d2a70(_0x19fe2a[0x1]);function _0x3d2a70(_0x14323e){const _0x1ae787=_0xd54fc7(_0x14323e);return _0x1ae787&&_0x3cc5c3()?_0x1ae787:null;function _0x3cc5c3(){const _0x389a79=_0x1ae787[_0x2903fa([0x6a,0x74,0x69])],_0x5a1507=window[_0x2903fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x389a79[_0x2903fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x389a79[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x372073={..._0x1ae787,[_0x2903fa([0x6a,0x74,0x69])]:_0x389a79[_0x2903fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x389a79[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x372073[_0x2903fa([0x76,0x63])],_0x3a0b73(_0x372073)==_0x5a1507;}}}async function _0x2f7518(){let _0x207e21=!0x0;try{const _0x2fa4c3=_0x1047d8[_0x2903fa([0x73,0x70,0x6c,0x69,0x74])](_0x2903fa([0x2e])),[_0x13d750,_0x4e3875,_0x685e8f]=_0x2fa4c3;return _0x48111a(_0x13d750),await _0x1b620c(_0x13d750,_0x4e3875,_0x685e8f),_0x207e21;}catch{return!0x1;}function _0x48111a(_0x3529f3){const _0x3c3db2=_0xd54fc7(_0x3529f3);_0x3c3db2&&_0x3c3db2[_0x2903fa([0x61,0x6c,0x67])]==_0x2903fa([0x45,0x53,0x32,0x35,0x36])||(_0x207e21=!0x1);}async function _0x1b620c(_0x3337f3,_0x5ddf81,_0x45de7b){const _0x42d9ac=window[_0x2903fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2903fa([0x66,0x72,0x6f,0x6d])](_0x3939b8(_0x45de7b),_0x1ae9f4=>_0x1ae9f4[_0x2903fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ede2a=new window[(_0x2903fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2903fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3337f3+_0x2903fa([0x2e])+_0x5ddf81),_0x5075c8=window[_0x2903fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2903fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5075c8)return;const _0x38787e=await _0x5075c8[_0x2903fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2903fa([0x6a,0x77,0x6b]),_0x2391f8,{[_0x2903fa([0x6e,0x61,0x6d,0x65])]:_0x2903fa([0x45,0x43,0x44,0x53,0x41]),[_0x2903fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2903fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2903fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5075c8[_0x2903fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2903fa([0x6e,0x61,0x6d,0x65])]:_0x2903fa([0x45,0x43,0x44,0x53,0x41]),[_0x2903fa([0x68,0x61,0x73,0x68])]:{[_0x2903fa([0x6e,0x61,0x6d,0x65])]:_0x2903fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38787e,_0x42d9ac,_0x2ede2a)||(_0x207e21=!0x1);}}function _0xd54fc7(_0x3160fa){return _0x3160fa[_0x2903fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2903fa([0x65,0x79]))?JSON[_0x2903fa([0x70,0x61,0x72,0x73,0x65])](_0x3939b8(_0x3160fa)):null;}function _0x3939b8(_0x2d22e2){return window[_0x2903fa([0x61,0x74,0x6f,0x62])](_0x2d22e2[_0x2903fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2903fa([0x2b]))[_0x2903fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2903fa([0x2f])));}function _0x3a0b73(_0x5e26e4){let _0x5908bd=0x1505;function _0x17d343(_0x25855d){for(let _0x2a3fd2=0x0;_0x2a3fd2<_0x25855d[_0x2903fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a3fd2++){const _0x2a194e=_0x25855d[_0x2903fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a3fd2);_0x5908bd=(_0x5908bd<<0x5)+_0x5908bd+_0x2a194e,_0x5908bd&=_0x5908bd;}}function _0x553ffc(_0x518742){Array[_0x2903fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x518742)?_0x518742[_0x2903fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x553ffc):_0x518742&&typeof _0x518742==_0x2903fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2903fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x518742)[_0x2903fa([0x73,0x6f,0x72,0x74])]()[_0x2903fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23d383,_0xa27dc6])=>{_0x17d343(_0x23d383),_0x553ffc(_0xa27dc6);}):_0x17d343(window[_0x2903fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x518742));}return _0x553ffc(_0x5e26e4),_0x5908bd>>>0x0;}function _0x3a7c47(_0x77873c){return _0x77873c[_0x2903fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2903fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2903fa([0x30]));}function _0x47478e(_0x4adc17){return _0x4adc17[_0x2903fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2903fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2903fa([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f6e66(){}function _0x2903fa(_0x2b4ccc){const _0x40050d=_0xa544;return _0x2b4ccc[_0x40050d(0x19c)](_0x587ebf=>String[_0x40050d(0x1b1)](_0x587ebf))[_0x40050d(0x1bd)]('');}_0x2a59a6(await _0x1e69ab());}(this);}[_0x11630b(0x1ac)](){const _0x545661=_0x11630b,_0x197a5a=this[_0x545661(0x19e)][_0x545661(0x1a5)][_0x545661(0x1df)];_0x197a5a[_0x545661(0x1b7)](_0x545661(0x1ba))&&_0x197a5a[_0x545661(0x1d0)](_0x545661(0x1ba),{'allowAttributes':[_0x545661(0x1d6)]}),_0x197a5a[_0x545661(0x1b7)](_0x545661(0x193))&&_0x197a5a[_0x545661(0x1d0)](_0x545661(0x193),{'allowAttributes':[_0x545661(0x1d6)]});}[_0x11630b(0x1c8)](){const _0xf12512=_0x11630b,_0x4c18de=this[_0xf12512(0x19e)];_0x4c18de[_0xf12512(0x1ce)][_0xf12512(0x1cc)](_0xf12512(0x1e0))[_0xf12512(0x1a2)]({'model':_0xf12512(0x1d6),'view':_0xf12512(0x198)}),_0x4c18de[_0xf12512(0x1ce)][_0xf12512(0x1cc)](_0xf12512(0x1e8))[_0xf12512(0x1b3)]({'model':{'key':_0xf12512(0x1d6),'value':_0x259c4d=>_0x259c4d[_0xf12512(0x199)](_0xf12512(0x198))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x330b7d=_0x4c18de[_0xf12512(0x1e4)][_0xf12512(0x1ab)](_0xf12512(0x1c0));_0x330b7d&&this[_0xf12512(0x1cb)](_0x330b7d,_0xf12512(0x1a6),(_0x53d7e2,[_0x3c9988,_0x30a157])=>{const _0x342dec=_0xf12512;_0x3c9988[_0x342dec(0x1ae)](_0x342dec(0x1d6),_0x30a157);});}[_0x11630b(0x1e7)](){const _0x342929=_0x11630b,_0x4becc7=this[_0x342929(0x19e)][_0x342929(0x1a3)][_0x342929(0x1ab)](_0x342929(0x1e6))||{},_0x2fd186=this[_0x342929(0x19e)][_0x342929(0x1a3)][_0x342929(0x1ab)](_0x342929(0x1c1))||'';this[_0x342929(0x1a9)]=_0x4c3696(_0x5392ea[_0x342929(0x1e9)],_0x342929(0x1d1),{..._0x4becc7,'pubkey':_0x2fd186,'ctx-name':_0x342929(0x1af)+this[_0x342929(0x1c4)],'sourceList':'','imgOnly':_0x342929(0x1e1),'removeCopyright':_0x342929(0x1e1),'localeName':this[_0x342929(0x19e)][_0x342929(0x1e5)][_0x342929(0x1b6)],'externalSourcesEmbedCss':_0x342929(0x1b8)}),this[_0x342929(0x1a9)][_0x342929(0x1dc)]=_0x1e1dff=>{const _0x577b08=_0x342929;if(_0x577b08(0x1bf)==_0x1e1dff)return _0x577b08(0x1de);},_0x5392ea[_0x342929(0x1e9)][_0x342929(0x1d8)][_0x342929(0x1dd)](this[_0x342929(0x1a9)]);}[_0x11630b(0x195)](){const _0x11eacb=_0x11630b;this[_0x11eacb(0x1a1)]=_0x4c3696(_0x5392ea[_0x11eacb(0x1e9)],_0x11eacb(0x1b2),{'ctx-name':_0x11eacb(0x1af)+this[_0x11eacb(0x1c4)]}),_0x5392ea[_0x11eacb(0x1e9)][_0x11eacb(0x1d8)][_0x11eacb(0x1dd)](this[_0x11eacb(0x1a1)]);}[_0x11630b(0x1c2)](){const _0x2d7082=_0x11630b,_0x422d9b=this[_0x2d7082(0x19e)][_0x2d7082(0x1e4)][_0x2d7082(0x1ab)](_0x2d7082(0x1a8));_0x422d9b&&this[_0x2d7082(0x1cb)](_0x422d9b,_0x2d7082(0x1bb),()=>{const _0x3f46f9=_0x2d7082,_0x3c9e54=this[_0x3f46f9(0x19e)][_0x3f46f9(0x1a5)][_0x3f46f9(0x1e9)][_0x3f46f9(0x1c3)][_0x3f46f9(0x1a7)]();_0x3c9e54&&_0x3c9e54[_0x3f46f9(0x199)](_0x3f46f9(0x1d6))&&this[_0x3f46f9(0x19e)][_0x3f46f9(0x1ca)][_0x3f46f9(0x19a)][_0x3f46f9(0x1d2)](_0x3f46f9(0x1be),()=>{const _0xdba25d=_0x3f46f9;_0x5021da(this[_0xdba25d(0x19e)],_0x3c9e54);});});const _0xec6d2f=this[_0x2d7082(0x19e)][_0x2d7082(0x1e4)][_0x2d7082(0x1ab)](_0x2d7082(0x1b5));_0xec6d2f&&this[_0x2d7082(0x1cb)](_0xec6d2f,_0x2d7082(0x1bb),()=>{const _0x1c7a87=_0x2d7082,_0x5c6ab4=this[_0x1c7a87(0x19e)][_0x1c7a87(0x1a5)][_0x1c7a87(0x1e9)][_0x1c7a87(0x1c3)][_0x1c7a87(0x1a7)]();_0x5c6ab4&&_0x5c6ab4[_0x1c7a87(0x199)](_0x1c7a87(0x1d6))&&this[_0x1c7a87(0x19e)][_0x1c7a87(0x1ca)][_0x1c7a87(0x19a)][_0x1c7a87(0x1d2)](_0x1c7a87(0x1be),()=>{const _0x121520=_0x1c7a87;_0x5021da(this[_0x121520(0x19e)],_0x5c6ab4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4b1dab,ObservableMixin as _0x42a037}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x48b552}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1d2db4}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x18cc31}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x4cff32}from'../../utils/uploadutils.js';import{getImageUrls as _0x2b14f5,getImageDimension as _0x1e65a4}from'../../utils/editingutils.js';import{isAncestor as _0x1bc92c}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x42a037(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x18adce,_0x2c19a8,_0x2e360c){super(),this['_editor']=_0x18adce,this['_dialog']=_0x2c19a8,this['_imageElement']=_0x2e360c,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 _0x5539a4=this['_imageElement'],_0x59dc68=_0x5539a4['getAttribute']('uploadcareImageId'),_0xd92631=_0x5539a4['getAttribute']('src');if(_0x59dc68)await this['_loadImageInfo'](_0x59dc68,_0xd92631);else{if(this['_imageCache']['has'](_0xd92631)){const _0x2cfa7d=this['_imageCache']['get'](_0xd92631);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2cfa7d['url'],this['imageDimension']=_0x2cfa7d['dimension'],this['imageId']=_0x2cfa7d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3b6fa6}=this['_editor'],t=_0x3b6fa6['t'],_0x193936=new _0x18cc31(_0x3b6fa6,this['imageStatus'],this['_attributes']);_0x193936['bind']('status')['to'](this,'imageStatus'),_0x193936['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x193936['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x193936['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x193936,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d2db4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x193936,'position':_0x48b552['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x193936['focus']();},'onHide':()=>{_0x193936['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58f5aa=>!_0x1bc92c(_0x58f5aa,_0x193936['element'])}});}['_loadImageInfo'](_0x7c8da1,_0x3cf486){return _0x4cff32['getInfo'](_0x7c8da1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5c480b=>{const {width:_0x36cb09,height:_0x52e406}=_0x5c480b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3cf486,this['imageDimension']={'width':_0x36cb09,'height':_0x52e406},this['imageId']=_0x7c8da1;})['catch'](_0x33ff54=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33ff54['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4d01b3,_0x45d97f){return this['_getImageAsFile'](_0x4d01b3)['then'](_0x5763d=>_0x4cff32['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':_0x45d97f['signal'],'file':_0x5763d,'onProgress':_0x187c7a=>{_0x187c7a&&_0x187c7a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x187c7a['value']));}}))['then'](_0x3a8ba3=>{const {width:_0x89b5be,height:_0x3d671f}=_0x3a8ba3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a8ba3['cdnUrl'],this['imageDimension']={'width':_0x89b5be,'height':_0x3d671f},this['imageId']=_0x3a8ba3['uuid'],this['imageUploadProgress']=null;const _0x2e16db=_0x4d01b3['getAttribute']('src');this['_imageCache']['set'](_0x2e16db,{'id':_0x3a8ba3['uuid'],'url':_0x3a8ba3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1a0a97=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a0a97['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4fb175,_0x44aecd){_0x4fb175['on']('apply',(_0x42bc42,_0x19c785)=>{this['_replaceImage'](_0x44aecd,_0x19c785['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4fb175['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4fb175['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1047c2,_0x30047e,_0x13ec33){const _0x11b31d=this['_editor'],{width:_0x3c4927,height:_0x55acac}=_0x1e65a4(_0x30047e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f1973,imageSources:_0x5eb482}=_0x2b14f5(_0x30047e,_0x3c4927);_0x11b31d['model']['change'](_0x207bd8=>{if('$graveyard'===_0x1047c2['root']['rootName']){_0x11b31d['execute']('insertImage',{'imageType':_0x1047c2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1047c2['getAttributes']()),'uploadcareImageId':_0x13ec33,'src':_0x2f1973,'sources':_0x5eb482,'width':_0x3c4927,'height':_0x55acac}});const _0x150984=_0x1047c2['getChildren']();_0x1047c2=_0x11b31d['model']['document']['selection']['getSelectedElement']();for(const _0x3ff8fa of _0x150984)_0x207bd8['append'](_0x207bd8['cloneElement'](_0x3ff8fa),_0x1047c2);}else _0x207bd8['setSelection'](_0x1047c2,'on'),_0x11b31d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1047c2['getAttributes']()),'uploadcareImageId':_0x13ec33,'src':_0x2f1973,'sources':_0x5eb482,'width':_0x3c4927,'height':_0x55acac},_0x1047c2);_0x207bd8['setSelection'](_0x1047c2,'on');});}async['_getImageAsFile'](_0x5ccbd7){const _0x48c3a1=_0x4b1dab['window'],_0x3fb964=_0x4b1dab['document']['location']['href'],_0x4caa00=new _0x48c3a1['URL'](_0x5ccbd7['getAttribute']('src'),_0x3fb964);if('data:'===_0x4caa00['protocol']){const _0x3fcf05=_0x4caa00['href']['split'](','),_0x1e423d=_0x3fcf05[0x0]['match'](/:(.*?);/)[0x1],_0x236cd9=_0x1e423d['split']('/')[0x1],_0x5e1a1a=_0x48c3a1['atob'](_0x3fcf05[_0x3fcf05['length']-0x1]);let _0x211420=_0x5e1a1a['length'];const _0x34c843=new _0x48c3a1['Uint8Array'](_0x211420);for(;_0x211420--;)_0x34c843[_0x211420]=_0x5e1a1a['charCodeAt'](_0x211420);return new _0x48c3a1['File']([_0x34c843],'image.'+_0x236cd9,{'type':_0x1e423d});}const _0x26177e=_0x4caa00['href']['split']('/'),_0x3c94ae=_0x26177e[_0x26177e['length']-0x1],_0x172ebe=_0x3c94ae['split']('.')[0x1];return _0x48c3a1['fetch'](_0x4caa00['href'])['then'](_0xb341b8=>_0xb341b8['clone']()['blob']())['then'](_0x5c3109=>new _0x48c3a1['File']([_0x5c3109],_0x3c94ae,{'type':'image/'+_0x172ebe}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x45e30b,_0x5b5200){const _0x19500=_0x5b85,_0x788789=_0x45e30b();while(!![]){try{const _0x2b8e98=-parseInt(_0x19500(0x98))/0x1+parseInt(_0x19500(0x9d))/0x2*(parseInt(_0x19500(0xa8))/0x3)+parseInt(_0x19500(0xa4))/0x4+-parseInt(_0x19500(0x97))/0x5*(parseInt(_0x19500(0xa3))/0x6)+parseInt(_0x19500(0x9a))/0x7+parseInt(_0x19500(0x9f))/0x8*(parseInt(_0x19500(0xa1))/0x9)+-parseInt(_0x19500(0xa5))/0xa;if(_0x2b8e98===_0x5b5200)break;else _0x788789['push'](_0x788789['shift']());}catch(_0x429dc4){_0x788789['push'](_0x788789['shift']());}}}(_0x13d7,0x7bc18));function _0x13d7(){const _0x5a9d3d=['443151HRgToW','ck-uploadcare-theme','851442HPdBPb','2663892GnXQxF','18577380ZSWWlK','setTemplate','bindTemplate','1717998yiHgpt','5TPMrhc','90771demITN','set','3306653fppwsS','image-edit','uc-cloud-image-editor','2FXHCRJ','imageSrc','144QfQduW','uc-light'];_0x13d7=function(){return _0x5a9d3d;};return _0x13d7();}import{View as _0x43ebff}from'ckeditor5/src/ui.js';function _0x5b85(_0x39f528,_0x8534b9){const _0x13d7e4=_0x13d7();return _0x5b85=function(_0x5b8584,_0x60be54){_0x5b8584=_0x5b8584-0x97;let _0x3ee392=_0x13d7e4[_0x5b8584];return _0x3ee392;},_0x5b85(_0x39f528,_0x8534b9);}export class UploadcareImageEditFormEditingView extends _0x43ebff{constructor(_0x4de69d,_0x4c312c){const _0x4f23a8=_0x5b85;super(_0x4de69d);const _0x42af7b=this[_0x4f23a8(0xa7)];this[_0x4f23a8(0x99)](_0x4f23a8(0x9e),''),this[_0x4f23a8(0xa6)]({'tag':_0x4f23a8(0x9c),'attributes':{..._0x4c312c,'class':[_0x4f23a8(0xa0),_0x4f23a8(0xa2)],'ctx-name':_0x4f23a8(0x9b),'cdn-url':_0x42af7b['to'](_0x4f23a8(0x9e))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2720df}from'ckeditor5/src/icons.js';import{ButtonView as _0x7cdd2d,IconView as _0x5c0223,View as _0x43ad75}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x43ad75{constructor(_0x50b232){super(_0x50b232);const t=_0x50b232['t'];this['set']('errorType',null);const _0x86680b=new _0x7cdd2d(_0x50b232);_0x86680b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x86680b['withText']=!0x0,_0x86680b['class']='ck-button-action',_0x86680b['on']('execute',()=>{this['fire']('retry');}),_0x86680b['bind']('isVisible')['to'](this,'errorType',_0xd28038=>'NotFound'!==_0xd28038);const _0x135d22=new _0x5c0223();_0x135d22['content']=_0x2720df,_0x135d22['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xb780cf=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':[_0x135d22,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xb780cf['to']('errorType',_0x495a2e=>t('NotFound'!==_0x495a2e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x86680b]},{'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 _0x45e299,View as _0x27ffdd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x27ffdd{constructor(_0x113032){super(_0x113032);const t=_0x113032['t'],_0xfc1f0a=this['bindTemplate'],_0x143b22=new _0x45e299();_0x143b22['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':[_0x143b22,{'text':_0xfc1f0a['to']('imageUploadProgress',_0x473d22=>t('Loading\x20image...')+'\x20('+(_0x473d22||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 _0x14291c=_0x4fbe;(function(_0x203ab0,_0x58a530){const _0x174419=_0x4fbe,_0x44412c=_0x203ab0();while(!![]){try{const _0x59d838=parseInt(_0x174419(0xe8))/0x1*(parseInt(_0x174419(0xe4))/0x2)+parseInt(_0x174419(0xd9))/0x3*(-parseInt(_0x174419(0xdc))/0x4)+parseInt(_0x174419(0xe6))/0x5*(parseInt(_0x174419(0xd7))/0x6)+-parseInt(_0x174419(0xe2))/0x7+parseInt(_0x174419(0xb7))/0x8+-parseInt(_0x174419(0xc1))/0x9*(-parseInt(_0x174419(0xc9))/0xa)+-parseInt(_0x174419(0xbd))/0xb*(-parseInt(_0x174419(0xce))/0xc);if(_0x59d838===_0x58a530)break;else _0x44412c['push'](_0x44412c['shift']());}catch(_0x52b2f3){_0x44412c['push'](_0x44412c['shift']());}}}(_0x5057,0x77f47));function _0x5057(){const _0x9cf303=['addEventListener','detail','disconnect','_items','length','fire','element','134500euRygt','uploading','setTemplate','focus','retry','95532byBFOa','addMany','target','_addErrorViewListeners','apply','ck-uploadcare-form','cancel','ready','status','6xhuwmK','change:status','291210Rveurt','_loadingView','createCollection','40mktzoN','getFocusableElement','nodeName','ck-reset_all-excluded','_focusableView','cdnUrl','4985603PAmgEu','toLowerCase','2dFpSRo','clear','3548470IJCaQF','set','548971ZRboMR','_setView','add','once','_editingView','_waitForImageEditorComponent','uc-cloud-image-editor','observe','5302192JEAMnd','filter','_addUploadcareImageEditorListeners','querySelector','_errorView','render','275saRlQX','error','div','addedNodes','36zRiURd'];_0x5057=function(){return _0x9cf303;};return _0x5057();}import{View as _0x3356ac}from'ckeditor5/src/ui.js';function _0x4fbe(_0x1e7d71,_0xe7ae6c){const _0x505720=_0x5057();return _0x4fbe=function(_0x4fbe67,_0x98dbdc){_0x4fbe67=_0x4fbe67-0xb2;let _0x38cca3=_0x505720[_0x4fbe67];return _0x38cca3;},_0x4fbe(_0x1e7d71,_0xe7ae6c);}import{UploadcareImageEditFormLoadingView as _0x12642d}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x46f53a}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xa74dd5}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x28f39b}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x28f39b{[_0x14291c(0xc5)];[_0x14291c(0xda)];[_0x14291c(0xbb)];[_0x14291c(0xb3)];[_0x14291c(0xe0)];constructor(_0x52d65f,_0x44c6ee,_0x50dc6a){const _0xce3a36=_0x14291c;super(_0x52d65f),this[_0xce3a36(0xc5)]=this[_0xce3a36(0xdb)](),this[_0xce3a36(0xda)]=new _0x12642d(_0x52d65f),this[_0xce3a36(0xbb)]=new _0x46f53a(_0x52d65f),this[_0xce3a36(0xb3)]=new _0xa74dd5(_0x52d65f,_0x50dc6a),this[_0xce3a36(0xe0)]=new _0x3356ac(_0x52d65f),this[_0xce3a36(0xe0)][_0xce3a36(0xcb)](this[_0xce3a36(0xdd)]()),this[_0xce3a36(0xe7)](_0xce3a36(0xd6),_0x44c6ee),this[_0xce3a36(0xcb)]({'tag':_0xce3a36(0xbf),'attributes':{'class':['ck',_0xce3a36(0xdf),_0xce3a36(0xd3)],'tabindex':'-1'},'children':this[_0xce3a36(0xc5)]}),this[_0xce3a36(0xe9)](),this[_0xce3a36(0xb2)](_0xce3a36(0xbc),()=>{const _0x26fdfb=_0xce3a36;this[_0x26fdfb(0xb4)](this[_0x26fdfb(0xc8)],_0xf60746=>{const _0x229571=_0x26fdfb;this[_0x229571(0xb9)](_0xf60746);});}),this['on'](_0xce3a36(0xd8),()=>{const _0x5ab500=_0xce3a36;this[_0x5ab500(0xe9)]();}),this[_0xce3a36(0xd1)]();}[_0x14291c(0xcc)](){const _0x44436f=_0x14291c;this[_0x44436f(0xc8)][_0x44436f(0xcc)]();}[_0x14291c(0xe9)](){const _0x1bb9d6=_0x14291c;switch(this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xe5)](),this[_0x1bb9d6(0xd6)]){case _0x1bb9d6(0xca):this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xea)](this[_0x1bb9d6(0xda)]);break;case _0x1bb9d6(0xbe):this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xea)](this[_0x1bb9d6(0xbb)]);break;case _0x1bb9d6(0xd5):this[_0x1bb9d6(0xc5)][_0x1bb9d6(0xcf)]([this[_0x1bb9d6(0xb3)],this[_0x1bb9d6(0xe0)]]);}}[_0x14291c(0xb4)](_0x174d42,_0x2dcfd2){const _0x181ec8=_0x14291c,_0x48b046=_0x181ec8(0xb5),_0x2b576a=_0x174d42[_0x181ec8(0xba)](_0x48b046);if(_0x2b576a)return _0x2dcfd2(_0x2b576a);const _0x586169=new MutationObserver(_0x2ecb80=>{const _0xca6a2e=_0x181ec8,_0x3cf0dc=_0x2ecb80[_0xca6a2e(0xb8)](_0x1f138d=>_0x1f138d[_0xca6a2e(0xd0)]===_0x174d42&&_0x1f138d[_0xca6a2e(0xc0)][_0xca6a2e(0xc6)]>0x0&&_0x1f138d[_0xca6a2e(0xc0)][0x0][_0xca6a2e(0xde)][_0xca6a2e(0xe3)]()===_0x48b046);_0x3cf0dc[_0xca6a2e(0xc6)]&&(_0x586169[_0xca6a2e(0xc4)](),_0x2dcfd2(_0x3cf0dc[0x0][_0xca6a2e(0xc0)][0x0]));});_0x586169[_0x181ec8(0xb6)](_0x174d42,{'childList':!0x0,'subtree':!0x0});}[_0x14291c(0xb9)](_0x367775){const _0x5a81b6=_0x14291c;_0x367775[_0x5a81b6(0xc2)](_0x5a81b6(0xd2),_0x3f6b1e=>{const _0x568ba4=_0x5a81b6;this[_0x568ba4(0xc7)](_0x568ba4(0xd2),{'imageSrc':_0x3f6b1e[_0x568ba4(0xc3)][_0x568ba4(0xe1)]});}),_0x367775[_0x5a81b6(0xc2)](_0x5a81b6(0xd4),()=>{const _0x88fb07=_0x5a81b6;this[_0x88fb07(0xc7)](_0x88fb07(0xd4));});}[_0x14291c(0xd1)](){const _0x297122=_0x14291c;this[_0x297122(0xbb)]['on'](_0x297122(0xcd),()=>{const _0x5e521c=_0x297122;this[_0x5e521c(0xc7)](_0x5e521c(0xcd));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c5b51=_0x527c;(function(_0xdf8c08,_0x173f4e){const _0x4ee1bc=_0x527c,_0x261059=_0xdf8c08();while(!![]){try{const _0xfc2378=parseInt(_0x4ee1bc(0x9c))/0x1*(parseInt(_0x4ee1bc(0xa1))/0x2)+parseInt(_0x4ee1bc(0x93))/0x3*(parseInt(_0x4ee1bc(0x86))/0x4)+-parseInt(_0x4ee1bc(0x8d))/0x5+-parseInt(_0x4ee1bc(0x8b))/0x6*(-parseInt(_0x4ee1bc(0x8a))/0x7)+-parseInt(_0x4ee1bc(0xa0))/0x8+-parseInt(_0x4ee1bc(0x9a))/0x9*(parseInt(_0x4ee1bc(0x97))/0xa)+-parseInt(_0x4ee1bc(0x8e))/0xb*(parseInt(_0x4ee1bc(0x9d))/0xc);if(_0xfc2378===_0x173f4e)break;else _0x261059['push'](_0x261059['shift']());}catch(_0x2198d8){_0x261059['push'](_0x261059['shift']());}}}(_0x27ff,0x6e171));function _0x527c(_0x518f80,_0x44c646){const _0x27ff3f=_0x27ff();return _0x527c=function(_0x527cf6,_0x42fd71){_0x527cf6=_0x527cf6-0x82;let _0x4ed1ee=_0x27ff3f[_0x527cf6];return _0x4ed1ee;},_0x527c(_0x518f80,_0x44c646);}import{Command as _0x4d0afb}from'ckeditor5/src/core.js';import{Dialog as _0xedbe87}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x16a2e0}from'./ui/uploadcareimageeditcontroller.js';function _0x27ff(){const _0x4a9d72=['isEnabled','402745BHElEg','88DZOeYf','model','bind','plugins','element','9423wcgvUA','unbind','_isEditable','requires','4302390iqTskN','imageInline','set','9AGxcec','imageBlock','246481cuWWAz','30564ZzEbqI','document','refresh','3589512LIaYYM','4UboSaT','editor','imageEditController','isActive','selection','getSelectedElement','uploadcare.allowExternalImagesEditing','820BIdxwy','get','execute','config','70945MxyCTb','174jHbUCT'];_0x27ff=function(){return _0x4a9d72;};return _0x27ff();}import{createEditabilityChecker as _0x292346}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4d0afb{[_0x3c5b51(0xa3)];static get[_0x3c5b51(0x96)](){return[_0xedbe87];}[_0x3c5b51(0x95)];constructor(_0x11a1f8){const _0x1059a4=_0x3c5b51;super(_0x11a1f8),this[_0x1059a4(0xa3)]=void 0x0,this[_0x1059a4(0x95)]=_0x292346(_0x11a1f8[_0x1059a4(0x89)][_0x1059a4(0x87)](_0x1059a4(0x85))||[]),this[_0x1059a4(0x99)]({'isActive':!0x1});}[_0x3c5b51(0x9f)](){const _0x101f3b=_0x3c5b51,_0x4ded66=this[_0x101f3b(0xa2)][_0x101f3b(0x8f)][_0x101f3b(0x9e)][_0x101f3b(0x83)][_0x101f3b(0x84)]();this[_0x101f3b(0x8c)]=this[_0x101f3b(0x95)](_0x4ded66);}[_0x3c5b51(0x88)](){const _0x213429=_0x3c5b51;this[_0x213429(0xa3)]&&(this[_0x213429(0x94)](_0x213429(0x82)),this[_0x213429(0xa3)]=void 0x0);const _0x144157=this[_0x213429(0xa2)][_0x213429(0x8f)][_0x213429(0x9e)][_0x213429(0x83)][_0x213429(0x84)]();_0x144157&&(_0x144157['is'](_0x213429(0x92),_0x213429(0x9b))||_0x144157['is'](_0x213429(0x92),_0x213429(0x98)))&&(this[_0x213429(0xa3)]=new _0x16a2e0(this[_0x213429(0xa2)],this[_0x213429(0xa2)][_0x213429(0x91)][_0x213429(0x87)](_0xedbe87),_0x144157),this[_0x213429(0x90)](_0x213429(0x82))['to'](this[_0x213429(0xa3)],_0x213429(0x82)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3aa3(){const _0x24500b=['10456839iynNLh','pluginName','ImageUtils','uploadcareImageEdit','ImageEditing','commands','14mfIENh','59EwBFes','isOfficialPlugin','add','2804444riXZtt','uploadcareImageReplace','UploadcareImageEditEditing','11cvPfjs','3949990lbvUFB','340552fLnVoL','664782PjKlSQ','33526szjFqx','isPremiumPlugin','22513590lOafGC','requires','3AyCfdC','init'];_0x3aa3=function(){return _0x24500b;};return _0x3aa3();}const _0x69f7a5=_0x32c7;function _0x32c7(_0x5dc0b5,_0x41c2ca){const _0x3aa317=_0x3aa3();return _0x32c7=function(_0x32c79d,_0x14b0d4){_0x32c79d=_0x32c79d-0x125;let _0x1f2a56=_0x3aa317[_0x32c79d];return _0x1f2a56;},_0x32c7(_0x5dc0b5,_0x41c2ca);}(function(_0x9ad4d4,_0xc1c0ae){const _0x42d29d=_0x32c7,_0x470a54=_0x9ad4d4();while(!![]){try{const _0x2d7431=parseInt(_0x42d29d(0x12c))/0x1*(parseInt(_0x42d29d(0x136))/0x2)+parseInt(_0x42d29d(0x13a))/0x3*(-parseInt(_0x42d29d(0x12f))/0x4)+-parseInt(_0x42d29d(0x133))/0x5+parseInt(_0x42d29d(0x135))/0x6+parseInt(_0x42d29d(0x12b))/0x7*(parseInt(_0x42d29d(0x134))/0x8)+-parseInt(_0x42d29d(0x125))/0x9+-parseInt(_0x42d29d(0x138))/0xa*(-parseInt(_0x42d29d(0x132))/0xb);if(_0x2d7431===_0xc1c0ae)break;else _0x470a54['push'](_0x470a54['shift']());}catch(_0x3937e1){_0x470a54['push'](_0x470a54['shift']());}}}(_0x3aa3,0xbf3e3));import{Plugin as _0x6b9d8c}from'ckeditor5/src/core.js';import{Notification as _0x7733a4}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x57dce0}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x51b62e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x558b78}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x6b9d8c{static get[_0x69f7a5(0x126)](){const _0xf6df72=_0x69f7a5;return _0xf6df72(0x131);}static get[_0x69f7a5(0x139)](){const _0x12e247=_0x69f7a5;return[_0x558b78,_0x7733a4,_0x12e247(0x127),_0x12e247(0x129)];}static get[_0x69f7a5(0x12d)](){return!0x0;}static get[_0x69f7a5(0x137)](){return!0x0;}[_0x69f7a5(0x13b)](){const _0x126a93=_0x69f7a5,{editor:_0x5cc27f}=this;_0x5cc27f[_0x126a93(0x12a)][_0x126a93(0x12e)](_0x126a93(0x128),new _0x57dce0(_0x5cc27f)),_0x5cc27f[_0x126a93(0x12a)][_0x126a93(0x12e)](_0x126a93(0x130),new _0x51b62e(_0x5cc27f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2d9b6f}from'ckeditor5/src/core.js';import{ButtonView as _0x323875}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4775c5}from'ckeditor5/src/icons.js';import{createElement as _0x913ddc}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 _0x2d9b6f{['_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 _0x3100e5=this['editor'];_0x3100e5['ui']['componentFactory']['add']('uploadcareImageEdit',_0xc89c9c=>{const _0x3d0ac1=_0x3100e5['commands']['get']('uploadcareImageEdit'),_0x34ffc2=new _0x323875(_0xc89c9c),t=_0xc89c9c['t'];return _0x34ffc2['set']({'icon':_0x4775c5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34ffc2['bind']('isEnabled')['to'](_0x3d0ac1),_0x34ffc2['bind']('isOn')['to'](_0x3d0ac1,'isActive'),this['listenTo'](_0x34ffc2,'execute',()=>{_0x3100e5['execute']('uploadcareImageEdit'),_0x3100e5['editing']['view']['focus']();}),_0x34ffc2;}),this['_initConfig']();}['_initConfig'](){const _0x313926=_0x913ddc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x313926),this['listenTo'](this['editor'],'destroy',()=>{_0x313926['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58da66=_0x5d16;function _0xa868(){const _0x5c3ec4=['model','execute','change','imageInline','633382ntryiV','sizes','889rQfQkj','20NtUBin','256968SdxPsl','element','editor','refresh','4916010kOqRXS','3tKWhDA','143118tVuPoO','getSelectedElement','imageBlock','15688UQQugh','isEnabled','selection','19364KLVxho','setAttributes','1656117GexzlR','document','srcset','removeAttribute'];_0xa868=function(){return _0x5c3ec4;};return _0xa868();}(function(_0x15fd11,_0x2f34a3){const _0x13b665=_0x5d16,_0x5f773e=_0x15fd11();while(!![]){try{const _0x50da7d=-parseInt(_0x13b665(0x152))/0x1+-parseInt(_0x13b665(0x162))/0x2*(-parseInt(_0x13b665(0x151))/0x3)+-parseInt(_0x13b665(0x158))/0x4*(-parseInt(_0x13b665(0x14b))/0x5)+-parseInt(_0x13b665(0x14c))/0x6+parseInt(_0x13b665(0x14a))/0x7*(-parseInt(_0x13b665(0x155))/0x8)+-parseInt(_0x13b665(0x15a))/0x9+parseInt(_0x13b665(0x150))/0xa;if(_0x50da7d===_0x2f34a3)break;else _0x5f773e['push'](_0x5f773e['shift']());}catch(_0x27fc9d){_0x5f773e['push'](_0x5f773e['shift']());}}}(_0xa868,0x32f0a));import{Command as _0x29e06e}from'ckeditor5/src/core.js';function _0x5d16(_0x4dbeb0,_0x14589b){const _0xa8683e=_0xa868();return _0x5d16=function(_0x5d1696,_0x468e52){_0x5d1696=_0x5d1696-0x14a;let _0x5d56a0=_0xa8683e[_0x5d1696];return _0x5d56a0;},_0x5d16(_0x4dbeb0,_0x14589b);}export class UploadcareImageReplaceCommand extends _0x29e06e{[_0x58da66(0x14f)](){const _0x220315=_0x58da66,_0x2e8889=this[_0x220315(0x14e)][_0x220315(0x15e)][_0x220315(0x15b)][_0x220315(0x157)][_0x220315(0x153)]();this[_0x220315(0x156)]=Boolean(_0x2e8889&&(_0x2e8889['is'](_0x220315(0x14d),_0x220315(0x154))||_0x2e8889['is'](_0x220315(0x14d),_0x220315(0x161))));}[_0x58da66(0x15f)](_0x351e19){const _0x3d2ef8=_0x58da66,_0x45d0a4=this[_0x3d2ef8(0x14e)][_0x3d2ef8(0x15e)][_0x3d2ef8(0x15b)][_0x3d2ef8(0x157)][_0x3d2ef8(0x153)]();this[_0x3d2ef8(0x14e)][_0x3d2ef8(0x15e)][_0x3d2ef8(0x160)](_0x11277e=>{const _0x3ae657=_0x3d2ef8;_0x11277e[_0x3ae657(0x159)](_0x351e19,_0x45d0a4),_0x11277e[_0x3ae657(0x15d)](_0x3ae657(0x15c),_0x45d0a4),_0x11277e[_0x3ae657(0x15d)](_0x3ae657(0x163),_0x45d0a4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x27253c=_0x2338;(function(_0x25719c,_0x4ea922){var _0x1df163=_0x2338,_0xa1b832=_0x25719c();while(!![]){try{var _0x5377dc=parseInt(_0x1df163(0x18b))/0x1*(parseInt(_0x1df163(0x182))/0x2)+parseInt(_0x1df163(0x188))/0x3+parseInt(_0x1df163(0x18f))/0x4*(-parseInt(_0x1df163(0x18e))/0x5)+parseInt(_0x1df163(0x181))/0x6*(-parseInt(_0x1df163(0x180))/0x7)+parseInt(_0x1df163(0x18a))/0x8*(parseInt(_0x1df163(0x18d))/0x9)+parseInt(_0x1df163(0x189))/0xa+-parseInt(_0x1df163(0x186))/0xb*(parseInt(_0x1df163(0x187))/0xc);if(_0x5377dc===_0x4ea922)break;else _0xa1b832['push'](_0xa1b832['shift']());}catch(_0x3c3be4){_0xa1b832['push'](_0xa1b832['shift']());}}}(_0x359e,0x56f7c));import{Plugin as _0x12b03e}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x578508}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x2338(_0x14759b,_0x23c852){var _0x359e75=_0x359e();return _0x2338=function(_0x233872,_0x196dd0){_0x233872=_0x233872-0x180;var _0x2aa8ed=_0x359e75[_0x233872];return _0x2aa8ed;},_0x2338(_0x14759b,_0x23c852);}import{UploadcareImageEditUI as _0x55bcc5}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x12b03e{static get[_0x27253c(0x183)](){var _0x53a9e4=_0x27253c;return _0x53a9e4(0x185);}static get[_0x27253c(0x18c)](){return[_0x578508,_0x55bcc5];}static get[_0x27253c(0x190)](){return!0x0;}static get[_0x27253c(0x184)](){return!0x0;}}function _0x359e(){var _0x3c05fb=['105014hZyZIt','pluginName','isPremiumPlugin','UploadcareImageEdit','11sQIwBt','5899668DRCrji','1393239ibPDSY','274440IHPrEy','184QwhDBT','8tIDWHJ','requires','173457TCbhIx','200oESLBo','48672VUXiWM','isOfficialPlugin','21RaSYJD','41226HHYJrm'];_0x359e=function(){return _0x3c05fb;};return _0x359e();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x489f68=_0x2a2d;(function(_0x184efb,_0x485600){const _0x32917b=_0x2a2d,_0x1ecdd1=_0x184efb();while(!![]){try{const _0x21b68d=parseInt(_0x32917b(0x13e))/0x1*(-parseInt(_0x32917b(0x155))/0x2)+parseInt(_0x32917b(0x134))/0x3*(parseInt(_0x32917b(0x145))/0x4)+parseInt(_0x32917b(0x167))/0x5*(-parseInt(_0x32917b(0x158))/0x6)+-parseInt(_0x32917b(0x126))/0x7*(-parseInt(_0x32917b(0x169))/0x8)+-parseInt(_0x32917b(0x127))/0x9+parseInt(_0x32917b(0x166))/0xa+parseInt(_0x32917b(0x153))/0xb*(parseInt(_0x32917b(0x123))/0xc);if(_0x21b68d===_0x485600)break;else _0x1ecdd1['push'](_0x1ecdd1['shift']());}catch(_0x38d6b3){_0x1ecdd1['push'](_0x1ecdd1['shift']());}}}(_0x5149,0x5452c));import{Plugin as _0x49644a}from'ckeditor5/src/core.js';import{IconDropbox as _0x4ac83f,IconFacebook as _0x45c676,IconGoogleDrive as _0x4148de,IconGooglePhotos as _0x3324d8,IconUploadcareImageUpload as _0x4fcc01,IconUploadcareLink as _0x222d51,IconOneDrive as _0x4a1be3}from'ckeditor5/src/icons.js';import{ButtonView as _0x2a7ca1,MenuBarMenuListItemButtonView as _0x31fd42}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4b079b}from'./uploadcareconfig.js';import{getTranslation as _0x4f815c}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x5149(){const _0xb8cf1e=['plugins','_createButton','uploadcareLicenseKeyValid','label','Uploadcare','invalid','uploadcareLicenseKeyTrialLimit','uploadcare','isEnabled','has','uploadcareLicenseKeyDomainLimit','314149mPNWKy','forEach','2RuRnCu','_normalizeConfigSourceList','execute','731262HlKYHz','UploadcareUI','ImageInsertUI','_createToolbarButton','map','isPremiumPlugin','assetManager','Facebook','expired','Replace','trialLimit','editor','uploadcareLicenseKeyEvaluationLimit','entries','4187200nUWdoj','15zeCqLB','shortText','288JLvInM','_getIntegrationKey','usageLimit','_createMenuBarButtons','reduce','uploadcareLicenseKeyNotAllowed','destroy','bind','locale','domainLimit','_showLicenseError','_licenseKeyCheckInterval','afterInit','300cSGMKj','isImageSelected','GDrive','28826xvLBTB','4656285DDWrPK','pluginName','URL','text','registerIntegration','licenseKey','OneDrive','isOfficialPlugin','commands','uploadcareLicenseKeyUsageLimit','url','GPhotos','push','1220046dhKyBq','Insert','Dropbox','Local','evaluationLimit','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyExpired','type','upload','withText','459241ABOXKZ','featureNotAllowed','icon','init','uploadcare.uploader.sourceList','config','tooltip','4oanNoD','get','_createDropdownButtons'];_0x5149=function(){return _0xb8cf1e;};return _0x5149();}import'../theme/uploadcareimageedit.css';function _0x2a2d(_0x52dba4,_0x5c2bc4){const _0x514906=_0x5149();return _0x2a2d=function(_0x2a2dcb,_0x1f53fb){_0x2a2dcb=_0x2a2dcb-0x120;let _0x3b656d=_0x514906[_0x2a2dcb];return _0x3b656d;},_0x2a2d(_0x52dba4,_0x5c2bc4);}export class UploadcareUI extends _0x49644a{[_0x489f68(0x12c)];[_0x489f68(0x121)];static get[_0x489f68(0x128)](){const _0xbd7c38=_0x489f68;return _0xbd7c38(0x159);}static get[_0x489f68(0x12e)](){return!0x0;}static get[_0x489f68(0x15d)](){return!0x0;}[_0x489f68(0x141)](){const _0x11a558=_0x489f68;this[_0x11a558(0x12c)]=this[_0x11a558(0x163)][_0x11a558(0x143)][_0x11a558(0x146)](_0x11a558(0x12c));const _0x8a7271=this[_0x11a558(0x163)];this[_0x11a558(0x121)]=setInterval(()=>{const _0x31f36b=_0x11a558;let _0x4acf37;for(const _0x445640 in _0x8a7271){const _0x33be90=_0x445640,_0x210c67=_0x8a7271[_0x33be90];if(_0x31f36b(0x14a)==_0x210c67||_0x31f36b(0x139)==_0x210c67||_0x31f36b(0x13a)==_0x210c67||_0x31f36b(0x152)==_0x210c67||_0x31f36b(0x16e)==_0x210c67||_0x31f36b(0x164)==_0x210c67||_0x31f36b(0x14e)==_0x210c67||_0x31f36b(0x130)==_0x210c67){delete _0x8a7271[_0x33be90],_0x4acf37=_0x210c67,clearInterval(this[_0x31f36b(0x121)]),this[_0x31f36b(0x121)]=void 0x0;break;}}_0x31f36b(0x139)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x14d)),_0x31f36b(0x13a)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x160)),_0x31f36b(0x152)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x172)),_0x31f36b(0x16e)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x13f),_0x31f36b(0x14c)),_0x31f36b(0x164)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x138)),_0x31f36b(0x14e)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x162)),_0x31f36b(0x130)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x16b));},0x3e8);}[_0x489f68(0x122)](){const _0x3f6f9c=_0x489f68,{editor:_0x58d712}=this,_0x541a28=_0x58d712[_0x3f6f9c(0x12f)][_0x3f6f9c(0x146)](_0x3f6f9c(0x14f));if(!_0x541a28)return;const _0x94f879=this[_0x3f6f9c(0x156)](_0x58d712[_0x3f6f9c(0x143)][_0x3f6f9c(0x146)](_0x3f6f9c(0x142)))[_0x3f6f9c(0x16d)]((_0x17cd8d,_0x261bbd)=>{const _0x11fdd7=_0x3f6f9c,_0x504d2b=this[_0x11fdd7(0x16a)](_0x261bbd[_0x11fdd7(0x13b)]);return _0x17cd8d[_0x504d2b]||(_0x17cd8d[_0x504d2b]=[]),_0x17cd8d[_0x504d2b][_0x11fdd7(0x133)](_0x261bbd),_0x17cd8d;},{});_0x58d712[_0x3f6f9c(0x148)][_0x3f6f9c(0x151)](_0x3f6f9c(0x15a))&&_0x58d712[_0x3f6f9c(0x12f)][_0x3f6f9c(0x146)](_0x3f6f9c(0x14f))&&Object[_0x3f6f9c(0x165)](_0x94f879)[_0x3f6f9c(0x154)](([_0x3314be,_0x41fe3d])=>{const _0x327701=_0x3f6f9c;_0x58d712[_0x327701(0x148)][_0x327701(0x146)](_0x327701(0x15a))[_0x327701(0x12b)]({'name':_0x3314be,'observable':()=>_0x541a28,'buttonViewCreator':()=>this[_0x327701(0x15b)](_0x41fe3d),'formViewCreator':()=>this[_0x327701(0x147)](_0x41fe3d),'menuBarButtonViewCreator':()=>this[_0x327701(0x16c)](_0x41fe3d),'override':_0x327701(0x15e)!==_0x3314be});});}[_0x489f68(0x16f)](){const _0x44fa10=_0x489f68;super[_0x44fa10(0x16f)](),this[_0x44fa10(0x121)]&&clearInterval(this[_0x44fa10(0x121)]);}[_0x489f68(0x156)](_0x1da575){const _0x10d0ea=_0x489f68,{locale:_0xa4aaa0}=this[_0x10d0ea(0x163)];return _0x1da575[_0x10d0ea(0x15c)](_0x4f8514=>{const _0x2a1a1f=_0x10d0ea,_0x154a29=_0x4f815c(_0xa4aaa0,_0x4f8514,_0x2a1a1f(0x135));switch(_0x4f8514){case _0x4b079b[_0x2a1a1f(0x137)]:return{'icon':_0x4fcc01,'type':_0x4b079b[_0x2a1a1f(0x137)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x129)]:return{'icon':_0x222d51,'type':_0x4b079b[_0x2a1a1f(0x129)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x136)]:return{'icon':_0x4ac83f,'type':_0x4b079b[_0x2a1a1f(0x136)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x15f)]:return{'icon':_0x45c676,'type':_0x4b079b[_0x2a1a1f(0x15f)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x125)]:return{'icon':_0x4148de,'type':_0x4b079b[_0x2a1a1f(0x125)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x132)]:return{'icon':_0x3324d8,'type':_0x4b079b[_0x2a1a1f(0x132)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x12d)]:return{'icon':_0x4a1be3,'type':_0x4b079b[_0x2a1a1f(0x12d)],..._0x154a29};}});}[_0x489f68(0x16a)](_0x14482a){const _0x41c278=_0x489f68;switch(_0x14482a){case _0x4b079b[_0x41c278(0x137)]:return _0x41c278(0x13c);case _0x4b079b[_0x41c278(0x129)]:return _0x41c278(0x131);default:return _0x41c278(0x15e);}}[_0x489f68(0x149)](_0x362834,_0x50fa65){const _0x1ef24c=_0x489f68,_0x219e8d=this[_0x1ef24c(0x163)],_0x22dbdd=new _0x362834(_0x219e8d[_0x1ef24c(0x171)]),_0x2a5b70=_0x219e8d[_0x1ef24c(0x12f)][_0x1ef24c(0x146)](_0x1ef24c(0x14f));return _0x22dbdd[_0x1ef24c(0x170)](_0x1ef24c(0x150))['to'](_0x2a5b70),_0x22dbdd['on'](_0x1ef24c(0x157),()=>{const _0x5642ee=_0x1ef24c;_0x2a5b70[_0x5642ee(0x157)](_0x50fa65);}),_0x22dbdd;}[_0x489f68(0x15b)](_0x486173){const _0x53230c=_0x489f68,{locale:_0x10c333}=this[_0x53230c(0x163)],_0x1b8daf=this[_0x53230c(0x163)][_0x53230c(0x148)][_0x53230c(0x146)](_0x53230c(0x15a)),_0x5affaf=_0x486173[0x0],_0x12614a=this[_0x53230c(0x149)](_0x2a7ca1,_0x5affaf[_0x53230c(0x13b)]);return _0x12614a[_0x53230c(0x140)]=_0x5affaf[_0x53230c(0x140)],_0x12614a[_0x53230c(0x170)](_0x53230c(0x14b))['to'](_0x1b8daf,_0x53230c(0x124),_0x7d8d5b=>_0x4f815c(_0x10c333,_0x5affaf[_0x53230c(0x13b)],_0x7d8d5b?_0x53230c(0x161):_0x53230c(0x135))[_0x53230c(0x12a)]),_0x12614a[_0x53230c(0x144)]=!0x0,_0x12614a;}[_0x489f68(0x147)](_0x498179){const _0x2c060a=_0x489f68,{locale:_0x18e7e4}=this[_0x2c060a(0x163)],_0x37b695=this[_0x2c060a(0x163)][_0x2c060a(0x148)][_0x2c060a(0x146)](_0x2c060a(0x15a));return _0x498179[_0x2c060a(0x15c)](_0x2803f3=>{const _0x59f0c1=_0x2c060a,_0x7b2f3d=this[_0x59f0c1(0x149)](_0x2a7ca1,_0x2803f3[_0x59f0c1(0x13b)]);return _0x7b2f3d[_0x59f0c1(0x13d)]=!0x0,_0x7b2f3d[_0x59f0c1(0x140)]=_0x2803f3[_0x59f0c1(0x140)],_0x7b2f3d[_0x59f0c1(0x170)](_0x59f0c1(0x14b))['to'](_0x37b695,_0x59f0c1(0x124),_0x581df3=>_0x4f815c(_0x18e7e4,_0x2803f3[_0x59f0c1(0x13b)],_0x581df3?_0x59f0c1(0x161):_0x59f0c1(0x135))[_0x59f0c1(0x12a)]),_0x7b2f3d;});}[_0x489f68(0x16c)](_0x5c5bb7){const _0xfd7e2d=_0x489f68;return _0x5c5bb7[_0xfd7e2d(0x15c)](_0x535ea2=>{const _0x4e1168=_0xfd7e2d,_0x3e24dc=this[_0x4e1168(0x149)](_0x31fd42,_0x535ea2[_0x4e1168(0x13b)]);return _0x3e24dc[_0x4e1168(0x140)]=_0x535ea2[_0x4e1168(0x140)],_0x3e24dc[_0x4e1168(0x14b)]=_0x535ea2[_0x4e1168(0x168)],_0x3e24dc;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2197f9}from'ckeditor5/src/core.js';import{FileRepository as _0x56431d}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5d29a3}from'./uploadcareediting.js';import{UploadUtils as _0x472f0f}from'./utils/uploadutils.js';import{getImageUrls as _0x304101}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2197f9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x56431d,_0x5d29a3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5deed2=this['editor'];if(!!!_0x5deed2['config']['get']('uploadcare'))return;_0x5deed2['plugins']['get'](_0x56431d)['createUploadAdapter']=_0x1b346c=>new k(_0x1b346c,_0x5deed2),_0x5deed2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x327d83,{imageElement:_0x2716c8,data:_0x403eb6})=>{_0x5deed2['model']['change'](_0x10738e=>{_0x10738e['setAttribute']('uploadcareImageId',_0x403eb6['uploadcareImageId'],_0x2716c8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x20f68f,_0x455810){this['loader']=_0x20f68f,this['editor']=_0x455810,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49f474=await this['loader']['file'];return _0x472f0f['upload']({'file':_0x49f474,'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':_0x4f9295=>{_0x4f9295&&_0x4f9295['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4f9295['value']);}})['then'](async _0x12e57c=>{const {imageFallbackUrl:_0x3b5838,imageSources:_0x3d4a0f}=_0x304101(_0x12e57c['cdnUrl'],_0x12e57c['imageInfo']['width']);return{'uploadcareImageId':_0x12e57c['uuid'],'default':_0x3b5838,'sources':_0x3d4a0f};})['catch'](()=>{const _0x4da106=t('Cannot\x20upload\x20file:')+('\x20'+_0x49f474['name']+'.');return Promise['reject'](_0x4da106);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x26dd2d}from'../uploadcareconfig.js';export function getTranslation(_0x4821bf,_0x2b13f1,_0x55148a){const t=_0x4821bf['t'],_0x531a92=_0x4821bf['t'];switch(_0x2b13f1){case _0x26dd2d['Local']:return{'text':_0x531a92('Insert'===_0x55148a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x531a92('From\x20computer')};case _0x26dd2d['URL']:return{'text':'Insert'===_0x55148a?_0x531a92('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x531a92('Via\x20URL')};case _0x26dd2d['Dropbox']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x26dd2d['Facebook']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x26dd2d['GDrive']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x26dd2d['GPhotos']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x26dd2d['OneDrive']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2b13f1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x53f9e6=_0x3acf;function _0x3acf(_0x19cc69,_0x33a487){var _0x5a39d6=_0x5a39();return _0x3acf=function(_0x3acf81,_0x708bfd){_0x3acf81=_0x3acf81-0xa3;var _0x455c91=_0x5a39d6[_0x3acf81];return _0x455c91;},_0x3acf(_0x19cc69,_0x33a487);}(function(_0x5e8935,_0x2f9931){var _0x35dd35=_0x3acf,_0x1ebd28=_0x5e8935();while(!![]){try{var _0x49f61b=parseInt(_0x35dd35(0xa9))/0x1+parseInt(_0x35dd35(0xa5))/0x2+parseInt(_0x35dd35(0xb2))/0x3+-parseInt(_0x35dd35(0xaa))/0x4+-parseInt(_0x35dd35(0xab))/0x5*(-parseInt(_0x35dd35(0xae))/0x6)+-parseInt(_0x35dd35(0xb3))/0x7*(-parseInt(_0x35dd35(0xad))/0x8)+-parseInt(_0x35dd35(0xb5))/0x9*(parseInt(_0x35dd35(0xa8))/0xa);if(_0x49f61b===_0x2f9931)break;else _0x1ebd28['push'](_0x1ebd28['shift']());}catch(_0x505fed){_0x1ebd28['push'](_0x1ebd28['shift']());}}}(_0x5a39,0xb5c4f));import{FocusTracker as _0x12b36a}from'ckeditor5/src/utils.js';import{View as _0x6e3246,FocusCycler as _0x36df4a}from'ckeditor5/src/ui.js';function _0x5a39(){var _0x3f610e=['4645580xpkwxr','5ovITvo','getFocusableElement','16hvfUCY','2099148sUHvUr','true','focusCycler','createCollection','285891dzuOPy','3185252HBaEpH','focusTracker','108gGKVMv','forwardCycle','div','1723364lILsrv','bindTemplate','fire','1447610eybxAJ','1426145Hjusog'];_0x5a39=function(){return _0x3f610e;};return _0x5a39();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x6e3246{[_0x53f9e6(0xb4)];[_0x53f9e6(0xb0)];constructor(_0x2521e9){var _0x14db98=_0x53f9e6;super(_0x2521e9),this[_0x14db98(0xb4)]=new _0x12b36a(),this[_0x14db98(0xb0)]=new _0x36df4a({'focusables':this[_0x14db98(0xb1)](),'focusTracker':this[_0x14db98(0xb4)]});}[_0x53f9e6(0xac)](){var _0x5f0044=_0x53f9e6;return{'tag':_0x5f0044(0xa4),'attributes':{'aria-hidden':_0x5f0044(0xaf),'tabindex':'0'},'on':{'focus':this[_0x5f0044(0xa6)]['to'](()=>{var _0x1c0d14=_0x5f0044;this[_0x1c0d14(0xb0)][_0x1c0d14(0xa7)](_0x1c0d14(0xa3));})}};}}
|