@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251102.0 → 0.0.0-nightly-20251104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3d25(){const _0x10d957=['_initConversion','querySelector','_initCtx','38996FwSNkt','17888koToZd','getAttribute','join','requires','upcast','insertImage','locale','data-uc-image-id','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','isPremiumPlugin','get','removeAttribute','uploadcare','once','true','destroy','elementToAttribute','3eAImCF','UploadcareEditing','editor','attributeToAttribute','isOfficialPlugin','remove','selection','body','uploader-','listenTo','commands','input[uploadcare-file-input]','document','uc-config','uc-upload-ctx-provider','editing','add','2076560GTXJAa','configElement','afterInit','downcast','extend','489906Oycyxp','contentLanguage','model','init','uploadcareImageId','getSelectedElement','ucContextId','pluginName','conversion','PictureEditing','10hbyJhS','uploadcare.pubkey','iconHrefResolver','372KVDcPY','cleanupImage','ctxElement','_initSchema','imageInline','href','replaceImageSource','isRegistered','#uc-icon-arrow-down','map','execute','2275441QLvzFz','closeMax','appendChild','render','for','uploadcareImageReplace','_initConfig','_ctxElement','view','fromCharCode','1532920cTPlOw','imageBlock','config','_configElement','uploadcare.uploader','542442Gpgwkr','schema','_initImageProcessingIndicator'];_0x3d25=function(){return _0x10d957;};return _0x3d25();}const _0x1d59e6=_0x1187;(function(_0x47d583,_0x5213ab){const _0xa02122=_0x1187,_0x312e87=_0x47d583();while(!![]){try{const _0x40f3c8=parseInt(_0xa02122(0x1f3))/0x1*(-parseInt(_0xa02122(0x1e1))/0x2)+-parseInt(_0xa02122(0x216))/0x3*(-parseInt(_0xa02122(0x1e2))/0x4)+parseInt(_0xa02122(0x213))/0x5*(-parseInt(_0xa02122(0x1db))/0x6)+parseInt(_0xa02122(0x1cc))/0x7+-parseInt(_0xa02122(0x1d6))/0x8+parseInt(_0xa02122(0x209))/0x9+-parseInt(_0xa02122(0x204))/0xa;if(_0x40f3c8===_0x5213ab)break;else _0x312e87['push'](_0x312e87['shift']());}catch(_0x122960){_0x312e87['push'](_0x312e87['shift']());}}}(_0x3d25,0x48216));import{Plugin as _0x2c9f1d}from'ckeditor5/src/core.js';import{Dialog as _0x4b3a3f}from'ckeditor5/src/ui.js';function _0x1187(_0x3c1333,_0x337a11){const _0x3d258d=_0x3d25();return _0x1187=function(_0x11872f,_0x4bbfe4){_0x11872f=_0x11872f-0x1c7;let _0x2bd22b=_0x3d258d[_0x11872f];return _0x2bd22b;},_0x1187(_0x3c1333,_0x337a11);}import{createElement as _0x17bf91,global as _0x37ab1f,uid as _0x514b46}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5847e4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x12a9a3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5c1121}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2c9f1d{[_0x1d59e6(0x1d9)]=null;[_0x1d59e6(0x1d3)]=null;static get[_0x1d59e6(0x210)](){const _0x2bb444=_0x1d59e6;return _0x2bb444(0x1f4);}static get[_0x1d59e6(0x1e5)](){const _0x11fcbf=_0x1d59e6;return[_0x11fcbf(0x212),_0x12a9a3,_0x4b3a3f];}static get[_0x1d59e6(0x1f7)](){return!0x0;}static get[_0x1d59e6(0x1eb)](){return!0x0;}[_0x1d59e6(0x20f)];get[_0x1d59e6(0x205)](){const _0x14a42e=_0x1d59e6;return this[_0x14a42e(0x1d9)];}get[_0x1d59e6(0x218)](){const _0x6f203b=_0x1d59e6;return this[_0x6f203b(0x1d3)];}constructor(_0x2d63fa){const _0x3328a5=_0x1d59e6;super(_0x2d63fa),this[_0x3328a5(0x20f)]=_0x514b46();}[_0x1d59e6(0x20c)](){const _0x1f4972=_0x1d59e6,_0x3023f0=this[_0x1f4972(0x1f5)];_0x3023f0[_0x1f4972(0x1fd)][_0x1f4972(0x203)](_0x1f4972(0x1ee),new _0x5847e4(_0x3023f0));}[_0x1d59e6(0x206)](){const _0x2ea589=_0x1d59e6;this[_0x2ea589(0x219)](),this[_0x2ea589(0x1de)](),this[_0x2ea589(0x1d2)](),this[_0x2ea589(0x1e0)](),this[_0x2ea589(0x1dd)](),this[_0x2ea589(0x1fc)](this[_0x2ea589(0x1f5)],_0x2ea589(0x1f1),()=>{const _0x4745da=_0x2ea589;this[_0x4745da(0x1d9)]&&(this[_0x4745da(0x1d9)][_0x4745da(0x1f8)](),this[_0x4745da(0x1d9)]=null),this[_0x4745da(0x1d3)]&&(this[_0x4745da(0x1d3)][_0x4745da(0x1f8)](),this[_0x4745da(0x1d3)]=null);const _0x4a274b=_0x37ab1f[_0x4745da(0x1ff)][_0x4745da(0x1df)](_0x4745da(0x1fe));_0x4a274b&&_0x4a274b[_0x4745da(0x1f8)]();}),async function(_0x215832){const _0x56d1f7=_0x533484([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]),_0x3f9a36=0x535f8c3a,_0x1faefb=0x5358fbca^_0x3f9a36,_0x3f463d=window[_0x533484([0x44,0x61,0x74,0x65])][_0x533484([0x6e,0x6f,0x77])](),_0x191377=_0x215832[_0x533484([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x170af6=new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30c169=>{_0x191377[_0x533484([0x6f,0x6e,0x63,0x65])](_0x533484([0x72,0x65,0x61,0x64,0x79]),_0x30c169);}),_0x3643cc={[_0x533484([0x6b,0x74,0x79])]:_0x533484([0x45,0x43]),[_0x533484([0x75,0x73,0x65])]:_0x533484([0x73,0x69,0x67]),[_0x533484([0x63,0x72,0x76])]:_0x533484([0x50,0x2d,0x32,0x35,0x36]),[_0x533484([0x78])]:_0x533484([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]),[_0x533484([0x79])]:_0x533484([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]),[_0x533484([0x61,0x6c,0x67])]:_0x533484([0x45,0x53,0x32,0x35,0x36])},_0x54167a=_0x191377[_0x533484([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x533484([0x67,0x65,0x74])](_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31ba60(){let _0xf8a871,_0x1a6ae4=null,_0x2cf32b=null;try{if(_0x54167a==_0x533484([0x47,0x50,0x4c]))return _0x533484([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf8a871=_0x5bd46f(),!_0xf8a871)return _0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf8a871[_0x533484([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cf32b=_0x36ae02(_0xf8a871[_0x533484([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf8a871[_0x533484([0x6a,0x74,0x69])])),await _0x1cb28e()?_0x49a94f()?_0x15ae27()?_0x533484([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x337022()?(_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533484([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a6ae4=_0x2064f1(_0x533484([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533484([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a6ae4=_0x2064f1(_0x533484([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x202fd1()):_0x533484([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x533484([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15ae27(){const _0x5060e2=[_0x533484([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x533484([0x74,0x72,0x69,0x61,0x6c])][_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f463d/0x3e8:0xe10*_0x1faefb;return _0xf8a871[_0x533484([0x65,0x78,0x70])]<_0x5060e2;}function _0x49a94f(){const _0x471915=_0xf8a871[_0x533484([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x471915&&(!!_0x471915[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x2a]))||!!_0x471915[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x55,0x50,0x4c,0x43])));}function _0x337022(){const _0x1f44d7=_0x1187,_0x944247=_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x944247||0x0==_0x944247[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0e8c}=new URL(window[_0x533484([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1f44d7(0x21b)]);if(_0x944247[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0e8c))return!0x0;const _0x56b5fc=_0x5a0e8c[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e]));return _0x944247[_0x533484([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x436cd0=>_0x436cd0[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x2a])))[_0x533484([0x6d,0x61,0x70])](_0x422cfd=>_0x422cfd[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e])))[_0x533484([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39b675=>_0x39b675[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56b5fc[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533484([0x6d,0x61,0x70])](_0x36cdc7=>Array(_0x56b5fc[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36cdc7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533484([0x66,0x69,0x6c,0x6c])](_0x36cdc7[0x0]===_0x533484([0x2a])?_0x533484([0x2a]):'')[_0x533484([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36cdc7))[_0x533484([0x73,0x6f,0x6d,0x65])](_0xad822a=>_0x56b5fc[_0x533484([0x65,0x76,0x65,0x72,0x79])]((_0x668930,_0x1b209a)=>_0xad822a[_0x1b209a]===_0x668930||_0xad822a[_0x1b209a]===_0x533484([0x2a])));}function _0x202fd1(){return _0x1a6ae4&&_0x2cf32b?new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x573aa4,_0x50892b)=>{_0x1a6ae4[_0x533484([0x74,0x68,0x65,0x6e])](_0x573aa4,_0x50892b),_0x2cf32b[_0x533484([0x74,0x68,0x65,0x6e])](_0x5c5e40=>{_0x5c5e40!=_0x533484([0x56,0x61,0x6c,0x69,0x64])&&_0x573aa4(_0x5c5e40);},_0x50892b);}):_0x1a6ae4||_0x2cf32b||_0x533484([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36ae02(_0x1c2988,_0x3bd1f1){return new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ba4fe=>{if(_0x2b2b35())return _0x1ba4fe(_0x533484([0x56,0x61,0x6c,0x69,0x64]));_0xfdce3e(),_0x191377[_0x533484([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12ff93=!0x1;const _0x5518ca=_0x514b46();function _0x39989e(_0x4ca6d7){return!!_0x4ca6d7&&(typeof _0x4ca6d7===_0x533484([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ca6d7===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ca6d7[_0x533484([0x74,0x68,0x65,0x6e])]===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ca6d7[_0x533484([0x63,0x61,0x74,0x63,0x68])]===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f9e03(_0x4cf477){_0x4a852b(_0x4cf477)[_0x533484([0x74,0x68,0x65,0x6e])](_0x18161f=>{if(!_0x18161f||_0x18161f[_0x533484([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x533484([0x6f,0x6b]))return _0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x115512(_0x1285f2(_0x5518ca+_0x3bd1f1))!=_0x18161f[_0x533484([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x533484([0x56,0x61,0x6c,0x69,0x64]);})[_0x533484([0x74,0x68,0x65,0x6e])](_0x390254=>(_0x40cfa8(),_0x390254),()=>{const _0x2839eb=_0x2ebd7f();return null==_0x2839eb?(_0x40cfa8(),_0x533484([0x56,0x61,0x6c,0x69,0x64])):_0x533484(_0x3f463d-_0x2839eb>(0x7753083a^_0x3f9a36)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x533484([0x74,0x68,0x65,0x6e])](_0x1ba4fe)[_0x533484([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2149fe=0x536962ba^_0x3f9a36;function _0x40cfa8(){const _0x391d50=_0x533484([0x6c,0x6c,0x63,0x74,0x2d])+_0x115512(_0x1285f2(_0x1c2988)),_0x83464a=_0x4567ff(_0x115512(window[_0x533484([0x4d,0x61,0x74,0x68])][_0x533484([0x63,0x65,0x69,0x6c])](_0x3f463d/_0x2149fe)));window[_0x533484([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533484([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391d50,_0x83464a);}function _0x2ebd7f(){const _0xd9094=_0x533484([0x6c,0x6c,0x63,0x74,0x2d])+_0x115512(_0x1285f2(_0x1c2988)),_0x440ed4=window[_0x533484([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533484([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd9094);return _0x440ed4?window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4567ff(_0x440ed4),0x10)*_0x2149fe:null;}function _0x4a852b(_0x35f230){return new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x317cad,_0x101e03)=>{_0x35f230[_0x533484([0x74,0x68,0x65,0x6e])](_0x317cad,_0x101e03),window[_0x533484([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x101e03,0x535e58fa^_0x3f9a36);});}}_0x191377[_0x533484([0x6f,0x6e])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f55db,_0x454fbe)=>{if(_0x454fbe[0x0]!=_0x1c2988)return _0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x454fbe[0x1]={..._0x454fbe[0x1],[_0x533484([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5518ca};},{[_0x533484([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533484([0x68,0x69,0x67,0x68])}),_0x191377[_0x533484([0x6f,0x6e])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5da4f3=>{_0x39989e(_0x5da4f3[_0x533484([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12ff93=!0x0,_0x4f9e03(_0x5da4f3[_0x533484([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x533484([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533484([0x6c,0x6f,0x77])}),_0x170af6[_0x533484([0x74,0x68,0x65,0x6e])](()=>{_0x12ff93||_0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b2b35(){return _0x191377[_0x533484([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533484([0x76,0x69,0x65,0x77])][_0x533484([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x533484([0x61,0x75,0x74,0x6f]);}function _0xfdce3e(){_0x191377[_0x533484([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533484([0x76,0x69,0x65,0x77])][_0x533484([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533484([0x61,0x75,0x74,0x6f]);}}function _0x2064f1(_0x2bdc60){const _0x435485=[new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21718d=>setTimeout(_0x21718d,0x5356b2f6^_0x3f9a36)),_0x170af6[_0x533484([0x74,0x68,0x65,0x6e])](()=>new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1aae=>{let _0x11b586=0x0;_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x6f,0x6e])](_0x533484([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x296fd7,_0x588732)=>{_0x588732[0x0][_0x533484([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11b586++,_0x11b586==(0x535f8dc2^_0x3f9a36)&&(_0x5f1aae(),_0x296fd7[_0x533484([0x6f,0x66,0x66])]());});}))];return window[_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533484([0x72,0x61,0x63,0x65])](_0x435485)[_0x533484([0x74,0x68,0x65,0x6e])](()=>_0x2bdc60);}async function _0x3735b4(){await _0x170af6,_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c6708,_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c6708,_0x191377[_0x533484([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x533484([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x513bb7(_0x2811f7){const _0x33b480=_0x3bd901();_0x191377[_0x33b480]=_0x533484([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2811f7,_0x2811f7!=_0x533484([0x56,0x61,0x6c,0x69,0x64])&&_0x3735b4();}function _0x3bd901(){const _0xb0b9a3=window[_0x533484([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x533484([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x533484([0x6e,0x6f,0x77])]())[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x533484([0x2e]),'');let _0xc5b359=_0x533484([0x68]);for(let _0x43f33d=0x0;_0x43f33d<_0xb0b9a3[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43f33d+=0x2){let _0x2f9557=window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb0b9a3[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43f33d,_0x43f33d+0x2));_0x2f9557>=_0x56d1f7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f9557-=_0x56d1f7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc5b359+=_0x56d1f7[_0x2f9557];}return _0xc5b359;}function _0x5bd46f(){const _0x49d6a0=_0x54167a[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e]));if(0x3!=_0x49d6a0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x128a53(_0x49d6a0[0x1]);function _0x128a53(_0x579af4){const _0x31db48=_0xf892b0(_0x579af4);return _0x31db48&&_0xa3d481()?_0x31db48:null;function _0xa3d481(){const _0xde02f0=_0x31db48[_0x533484([0x6a,0x74,0x69])],_0x417517=window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xde02f0[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xde02f0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34118d={..._0x31db48,[_0x533484([0x6a,0x74,0x69])]:_0xde02f0[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xde02f0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34118d[_0x533484([0x76,0x63])],_0x1285f2(_0x34118d)==_0x417517;}}}async function _0x1cb28e(){let _0x302d9d=!0x0;try{const _0xdae5ec=_0x54167a[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e])),[_0x204105,_0x3c0c35,_0x2ea5b6]=_0xdae5ec;return _0x40661d(_0x204105),await _0x2d66ad(_0x204105,_0x3c0c35,_0x2ea5b6),_0x302d9d;}catch{return!0x1;}function _0x40661d(_0x2be25b){const _0x1a121b=_0xf892b0(_0x2be25b);_0x1a121b&&_0x1a121b[_0x533484([0x61,0x6c,0x67])]==_0x533484([0x45,0x53,0x32,0x35,0x36])||(_0x302d9d=!0x1);}async function _0x2d66ad(_0xc94d8b,_0x4db467,_0x14d8f3){const _0x1b4bb8=window[_0x533484([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x533484([0x66,0x72,0x6f,0x6d])](_0x51fb90(_0x14d8f3),_0x5e3229=>_0x5e3229[_0x533484([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58dd06=new window[(_0x533484([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x533484([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc94d8b+_0x533484([0x2e])+_0x4db467),_0x3cb582=window[_0x533484([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x533484([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cb582)return;const _0x360727=await _0x3cb582[_0x533484([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x533484([0x6a,0x77,0x6b]),_0x3643cc,{[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x45,0x43,0x44,0x53,0x41]),[_0x533484([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x533484([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x533484([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cb582[_0x533484([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x45,0x43,0x44,0x53,0x41]),[_0x533484([0x68,0x61,0x73,0x68])]:{[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x360727,_0x1b4bb8,_0x58dd06)||(_0x302d9d=!0x1);}}function _0xf892b0(_0x58c6b5){return _0x58c6b5[_0x533484([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x533484([0x65,0x79]))?JSON[_0x533484([0x70,0x61,0x72,0x73,0x65])](_0x51fb90(_0x58c6b5)):null;}function _0x51fb90(_0x3feb82){return window[_0x533484([0x61,0x74,0x6f,0x62])](_0x3feb82[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x533484([0x2b]))[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x533484([0x2f])));}function _0x1285f2(_0x203ec3){let _0x5ef31f=0x1505;function _0x3a10f0(_0x1ba698){for(let _0x55bfc9=0x0;_0x55bfc9<_0x1ba698[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bfc9++){const _0x1eeb23=_0x1ba698[_0x533484([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55bfc9);_0x5ef31f=(_0x5ef31f<<0x5)+_0x5ef31f+_0x1eeb23,_0x5ef31f&=_0x5ef31f;}}function _0x8891d4(_0x391cbc){Array[_0x533484([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391cbc)?_0x391cbc[_0x533484([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8891d4):_0x391cbc&&typeof _0x391cbc==_0x533484([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x533484([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391cbc)[_0x533484([0x73,0x6f,0x72,0x74])]()[_0x533484([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x476b47,_0x5ca3aa])=>{_0x3a10f0(_0x476b47),_0x8891d4(_0x5ca3aa);}):_0x3a10f0(window[_0x533484([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391cbc));}return _0x8891d4(_0x203ec3),_0x5ef31f>>>0x0;}function _0x115512(_0x2cd51b){return _0x2cd51b[_0x533484([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x533484([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x533484([0x30]));}function _0x4567ff(_0x5669e9){return _0x5669e9[_0x533484([0x73,0x70,0x6c,0x69,0x74])]('')[_0x533484([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x533484([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c6708(){}function _0x533484(_0x25fc1c){const _0x7d165b=_0x1187;return _0x25fc1c[_0x7d165b(0x1ca)](_0x314de6=>String[_0x7d165b(0x1d5)](_0x314de6))[_0x7d165b(0x1e4)]('');}_0x513bb7(await _0x31ba60());}(this);}[_0x1d59e6(0x219)](){const _0x55d75e=_0x1d59e6,_0x49f8e0=this[_0x55d75e(0x1f5)][_0x55d75e(0x20b)][_0x55d75e(0x1dc)];_0x49f8e0[_0x55d75e(0x1c8)](_0x55d75e(0x1d7))&&_0x49f8e0[_0x55d75e(0x208)](_0x55d75e(0x1d7),{'allowAttributes':[_0x55d75e(0x20d)]}),_0x49f8e0[_0x55d75e(0x1c8)](_0x55d75e(0x21a))&&_0x49f8e0[_0x55d75e(0x208)](_0x55d75e(0x21a),{'allowAttributes':[_0x55d75e(0x20d)]});}[_0x1d59e6(0x1de)](){const _0x5a4a6d=_0x1d59e6,_0x5f1c2c=this[_0x5a4a6d(0x1f5)];_0x5f1c2c[_0x5a4a6d(0x211)][_0x5a4a6d(0x1d0)](_0x5a4a6d(0x207))[_0x5a4a6d(0x1f6)]({'model':_0x5a4a6d(0x20d),'view':_0x5a4a6d(0x1e9)}),_0x5f1c2c[_0x5a4a6d(0x211)][_0x5a4a6d(0x1d0)](_0x5a4a6d(0x1e6))[_0x5a4a6d(0x1f2)]({'model':{'key':_0x5a4a6d(0x20d),'value':_0xbed8cf=>_0xbed8cf[_0x5a4a6d(0x1e3)](_0x5a4a6d(0x1e9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29dd64=_0x5f1c2c[_0x5a4a6d(0x1fd)][_0x5a4a6d(0x1ec)](_0x5a4a6d(0x1c7));_0x29dd64&&this[_0x5a4a6d(0x1fc)](_0x29dd64,_0x5a4a6d(0x217),(_0x351cb1,[_0x361d64,_0x454977])=>{const _0x23960c=_0x5a4a6d;_0x361d64[_0x23960c(0x1ed)](_0x23960c(0x20d),_0x454977);});}[_0x1d59e6(0x1d2)](){const _0xc346=_0x1d59e6,_0x482e4b=this[_0xc346(0x1f5)][_0xc346(0x1d8)][_0xc346(0x1ec)](_0xc346(0x1da))||{},_0x129eab=this[_0xc346(0x1f5)][_0xc346(0x1d8)][_0xc346(0x1ec)](_0xc346(0x214))||'';this[_0xc346(0x1d9)]=_0x17bf91(_0x37ab1f[_0xc346(0x1ff)],_0xc346(0x200),{..._0x482e4b,'pubkey':_0x129eab,'ctx-name':_0xc346(0x1fb)+this[_0xc346(0x20f)],'sourceList':'','imgOnly':_0xc346(0x1f0),'removeCopyright':_0xc346(0x1f0),'localeName':this[_0xc346(0x1f5)][_0xc346(0x1e8)][_0xc346(0x20a)],'externalSourcesEmbedCss':_0xc346(0x1ea)}),this[_0xc346(0x1d9)][_0xc346(0x215)]=_0x3fe817=>{const _0x4becbc=_0xc346;if(_0x4becbc(0x1cd)==_0x3fe817)return _0x4becbc(0x1c9);},_0x37ab1f[_0xc346(0x1ff)][_0xc346(0x1fa)][_0xc346(0x1ce)](this[_0xc346(0x1d9)]);}[_0x1d59e6(0x1e0)](){const _0xe8d040=_0x1d59e6;this[_0xe8d040(0x1d3)]=_0x17bf91(_0x37ab1f[_0xe8d040(0x1ff)],_0xe8d040(0x201),{'ctx-name':_0xe8d040(0x1fb)+this[_0xe8d040(0x20f)]}),_0x37ab1f[_0xe8d040(0x1ff)][_0xe8d040(0x1fa)][_0xe8d040(0x1ce)](this[_0xe8d040(0x1d3)]);}[_0x1d59e6(0x1dd)](){const _0x4c266b=_0x1d59e6,_0x1213e5=this[_0x4c266b(0x1f5)][_0x4c266b(0x1fd)][_0x4c266b(0x1ec)](_0x4c266b(0x1e7));_0x1213e5&&this[_0x4c266b(0x1fc)](_0x1213e5,_0x4c266b(0x1cb),()=>{const _0x2461af=_0x4c266b,_0x4eadea=this[_0x2461af(0x1f5)][_0x2461af(0x20b)][_0x2461af(0x1ff)][_0x2461af(0x1f9)][_0x2461af(0x20e)]();_0x4eadea&&_0x4eadea[_0x2461af(0x1e3)](_0x2461af(0x20d))&&this[_0x2461af(0x1f5)][_0x2461af(0x202)][_0x2461af(0x1d4)][_0x2461af(0x1ef)](_0x2461af(0x1cf),()=>{const _0x3ee14c=_0x2461af;_0x5c1121(this[_0x3ee14c(0x1f5)],_0x4eadea);});});const _0x307dcf=this[_0x4c266b(0x1f5)][_0x4c266b(0x1fd)][_0x4c266b(0x1ec)](_0x4c266b(0x1d1));_0x307dcf&&this[_0x4c266b(0x1fc)](_0x307dcf,_0x4c266b(0x1cb),()=>{const _0x49b365=_0x4c266b,_0x17ba22=this[_0x49b365(0x1f5)][_0x49b365(0x20b)][_0x49b365(0x1ff)][_0x49b365(0x1f9)][_0x49b365(0x20e)]();_0x17ba22&&_0x17ba22[_0x49b365(0x1e3)](_0x49b365(0x20d))&&this[_0x49b365(0x1f5)][_0x49b365(0x202)][_0x49b365(0x1d4)][_0x49b365(0x1ef)](_0x49b365(0x1cf),()=>{const _0x2a89e3=_0x49b365;_0x5c1121(this[_0x2a89e3(0x1f5)],_0x17ba22);});});}}
|
|
23
|
+
const _0x4758e8=_0xe138;(function(_0x624b1a,_0x33e961){const _0xb86128=_0xe138,_0x12f024=_0x624b1a();while(!![]){try{const _0x55352d=parseInt(_0xb86128(0x1e2))/0x1+-parseInt(_0xb86128(0x1c7))/0x2*(-parseInt(_0xb86128(0x1af))/0x3)+parseInt(_0xb86128(0x1d7))/0x4+-parseInt(_0xb86128(0x1bd))/0x5+-parseInt(_0xb86128(0x1c1))/0x6*(-parseInt(_0xb86128(0x1b4))/0x7)+parseInt(_0xb86128(0x1c8))/0x8*(-parseInt(_0xb86128(0x1cb))/0x9)+parseInt(_0xb86128(0x1db))/0xa*(-parseInt(_0xb86128(0x1dd))/0xb);if(_0x55352d===_0x33e961)break;else _0x12f024['push'](_0x12f024['shift']());}catch(_0x5c1f9c){_0x12f024['push'](_0x12f024['shift']());}}}(_0x30d1,0x9920d));import{Plugin as _0x188797}from'ckeditor5/src/core.js';import{Dialog as _0x5655e4}from'ckeditor5/src/ui.js';function _0xe138(_0x155dc3,_0x289ee1){const _0x30d101=_0x30d1();return _0xe138=function(_0xe13855,_0x11c9f0){_0xe13855=_0xe13855-0x1ae;let _0x119236=_0x30d101[_0xe13855];return _0x119236;},_0xe138(_0x155dc3,_0x289ee1);}import{createElement as _0x4b553c,global as _0x5e56e5,uid as _0x53b72e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x416464}from'./uploadcarecommand.js';function _0x30d1(){const _0x4610db=['uploadcareImageReplace','uploadcare.uploader','downcast','extend','uploadcareImageId','requires','document','_initCtx','execute','appendChild','schema','insertImage','true','ctxElement','get','uc-upload-ctx-provider','elementToAttribute','#uc-icon-arrow-down','_initImageProcessingIndicator','destroy','uploadcare','pluginName','getAttribute','attributeToAttribute','afterInit','add','render','_initConfig','75zzWQkW','\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','isPremiumPlugin','uploader-','getSelectedElement','2135hEznKs','selection','imageInline','config','uploadcare.pubkey','for','iconHrefResolver','_configElement','imageBlock','2169510KRdYpo','upcast','data-uc-image-id','body','1908PPMamF','conversion','replaceImageSource','once','locale','fromCharCode','73844BXQdgV','13776AZHHWR','view','_initSchema','4149iCynoY','cleanupImage','querySelector','input[uploadcare-file-input]','editor','closeMax','init','contentLanguage','model','editing','_ctxElement','uc-config','3874456pIsINH','removeAttribute','UploadcareEditing','isOfficialPlugin','485570MEfEnX','ucContextId','55STdJPv','listenTo','_initConversion','map','remove','109088lOnWxQ','href','PictureEditing','commands','join','isRegistered','configElement'];_0x30d1=function(){return _0x4610db;};return _0x30d1();}import{UploadcareUploadAdapter as _0x15102d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1df10d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x188797{[_0x4758e8(0x1bb)]=null;[_0x4758e8(0x1d5)]=null;static get[_0x4758e8(0x1fe)](){const _0x3de898=_0x4758e8;return _0x3de898(0x1d9);}static get[_0x4758e8(0x1ee)](){const _0x16b0b9=_0x4758e8;return[_0x16b0b9(0x1e4),_0x15102d,_0x5655e4];}static get[_0x4758e8(0x1da)](){return!0x0;}static get[_0x4758e8(0x1b1)](){return!0x0;}[_0x4758e8(0x1dc)];get[_0x4758e8(0x1e8)](){const _0x3177e7=_0x4758e8;return this[_0x3177e7(0x1bb)];}get[_0x4758e8(0x1f6)](){const _0x44101b=_0x4758e8;return this[_0x44101b(0x1d5)];}constructor(_0x2abe89){const _0x137eb8=_0x4758e8;super(_0x2abe89),this[_0x137eb8(0x1dc)]=_0x53b72e();}[_0x4758e8(0x1d1)](){const _0x83c5ba=_0x4758e8,_0x2a12de=this[_0x83c5ba(0x1cf)];_0x2a12de[_0x83c5ba(0x1e5)][_0x83c5ba(0x202)](_0x83c5ba(0x1fd),new _0x416464(_0x2a12de));}[_0x4758e8(0x201)](){const _0x1de128=_0x4758e8;this[_0x1de128(0x1ca)](),this[_0x1de128(0x1df)](),this[_0x1de128(0x1ae)](),this[_0x1de128(0x1f0)](),this[_0x1de128(0x1fb)](),this[_0x1de128(0x1de)](this[_0x1de128(0x1cf)],_0x1de128(0x1fc),()=>{const _0x51b570=_0x1de128;this[_0x51b570(0x1bb)]&&(this[_0x51b570(0x1bb)][_0x51b570(0x1e1)](),this[_0x51b570(0x1bb)]=null),this[_0x51b570(0x1d5)]&&(this[_0x51b570(0x1d5)][_0x51b570(0x1e1)](),this[_0x51b570(0x1d5)]=null);const _0xe61d26=_0x5e56e5[_0x51b570(0x1ef)][_0x51b570(0x1cd)](_0x51b570(0x1ce));_0xe61d26&&_0xe61d26[_0x51b570(0x1e1)]();}),async function(_0x5bfe56){const _0x17a684=_0x4bc01e([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]),_0x5c0cf2=0x535f8c3a,_0x480be7=0x5358f41a^_0x5c0cf2,_0x125954=window[_0x4bc01e([0x44,0x61,0x74,0x65])][_0x4bc01e([0x6e,0x6f,0x77])](),_0x52700a=_0x5bfe56[_0x4bc01e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x466d3b=new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217992=>{_0x52700a[_0x4bc01e([0x6f,0x6e,0x63,0x65])](_0x4bc01e([0x72,0x65,0x61,0x64,0x79]),_0x217992);}),_0x5c6912={[_0x4bc01e([0x6b,0x74,0x79])]:_0x4bc01e([0x45,0x43]),[_0x4bc01e([0x75,0x73,0x65])]:_0x4bc01e([0x73,0x69,0x67]),[_0x4bc01e([0x63,0x72,0x76])]:_0x4bc01e([0x50,0x2d,0x32,0x35,0x36]),[_0x4bc01e([0x78])]:_0x4bc01e([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]),[_0x4bc01e([0x79])]:_0x4bc01e([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]),[_0x4bc01e([0x61,0x6c,0x67])]:_0x4bc01e([0x45,0x53,0x32,0x35,0x36])},_0x20a3f2=_0x52700a[_0x4bc01e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4bc01e([0x67,0x65,0x74])](_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c93fd(){let _0x2748ed,_0x5136db=null,_0x1cd429=null;try{if(_0x20a3f2==_0x4bc01e([0x47,0x50,0x4c]))return _0x4bc01e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2748ed=_0x32ca84(),!_0x2748ed)return _0x4bc01e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2748ed[_0x4bc01e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cd429=_0x3caba7(_0x2748ed[_0x4bc01e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2748ed[_0x4bc01e([0x6a,0x74,0x69])])),await _0x331cf6()?_0x3adb29()?_0x358787()?_0x4bc01e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13da11()?(_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bc01e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5136db=_0x3d6ac7(_0x4bc01e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bc01e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5136db=_0x3d6ac7(_0x4bc01e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ce802()):_0x4bc01e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4bc01e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4bc01e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4bc01e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x358787(){const _0x27a0a5=[_0x4bc01e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4bc01e([0x74,0x72,0x69,0x61,0x6c])][_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x125954/0x3e8:0xe10*_0x480be7;return _0x2748ed[_0x4bc01e([0x65,0x78,0x70])]<_0x27a0a5;}function _0x3adb29(){const _0x1aa059=_0x2748ed[_0x4bc01e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1aa059&&(!!_0x1aa059[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bc01e([0x2a]))||!!_0x1aa059[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bc01e([0x55,0x50,0x4c,0x43])));}function _0x13da11(){const _0xe5320b=_0xe138,_0x36a0b3=_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36a0b3||0x0==_0x36a0b3[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c36ba}=new URL(window[_0x4bc01e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xe5320b(0x1e3)]);if(_0x36a0b3[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c36ba))return!0x0;const _0x113ca0=_0x2c36ba[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e]));return _0x36a0b3[_0x4bc01e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xac0326=>_0xac0326[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bc01e([0x2a])))[_0x4bc01e([0x6d,0x61,0x70])](_0x5a2c8a=>_0x5a2c8a[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e])))[_0x4bc01e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xef7414=>_0xef7414[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x113ca0[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bc01e([0x6d,0x61,0x70])](_0x22ed5d=>Array(_0x113ca0[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22ed5d[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bc01e([0x66,0x69,0x6c,0x6c])](_0x22ed5d[0x0]===_0x4bc01e([0x2a])?_0x4bc01e([0x2a]):'')[_0x4bc01e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22ed5d))[_0x4bc01e([0x73,0x6f,0x6d,0x65])](_0x25835e=>_0x113ca0[_0x4bc01e([0x65,0x76,0x65,0x72,0x79])]((_0x103cd5,_0x553ae2)=>_0x25835e[_0x553ae2]===_0x103cd5||_0x25835e[_0x553ae2]===_0x4bc01e([0x2a])));}function _0x1ce802(){return _0x5136db&&_0x1cd429?new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4011da,_0x3d5d90)=>{_0x5136db[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x4011da,_0x3d5d90),_0x1cd429[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x41aff2=>{_0x41aff2!=_0x4bc01e([0x56,0x61,0x6c,0x69,0x64])&&_0x4011da(_0x41aff2);},_0x3d5d90);}):_0x5136db||_0x1cd429||_0x4bc01e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3caba7(_0x4150f4,_0x282594){return new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26558b=>{if(_0x5a6ff6())return _0x26558b(_0x4bc01e([0x56,0x61,0x6c,0x69,0x64]));_0x350652(),_0x52700a[_0x4bc01e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4bc01e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4450b4=!0x1;const _0x12eef8=_0x53b72e();function _0x22c37a(_0x18bed3){return!!_0x18bed3&&(typeof _0x18bed3===_0x4bc01e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18bed3===_0x4bc01e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18bed3[_0x4bc01e([0x74,0x68,0x65,0x6e])]===_0x4bc01e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18bed3[_0x4bc01e([0x63,0x61,0x74,0x63,0x68])]===_0x4bc01e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x373dd4(_0xc6dd66){_0x5d1325(_0xc6dd66)[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x406f7a=>{if(!_0x406f7a||_0x406f7a[_0x4bc01e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4bc01e([0x6f,0x6b]))return _0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20594a(_0x1414d0(_0x12eef8+_0x282594))!=_0x406f7a[_0x4bc01e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4bc01e([0x56,0x61,0x6c,0x69,0x64]);})[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x4da57e=>(_0x4570e1(),_0x4da57e),()=>{const _0x2c2f12=_0x2cf56e();return null==_0x2c2f12?(_0x4570e1(),_0x4bc01e([0x56,0x61,0x6c,0x69,0x64])):_0x4bc01e(_0x125954-_0x2c2f12>(0x7753083a^_0x5c0cf2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x26558b)[_0x4bc01e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26558b(_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c2f88=0x536962ba^_0x5c0cf2;function _0x4570e1(){const _0x321286=_0x4bc01e([0x6c,0x6c,0x63,0x74,0x2d])+_0x20594a(_0x1414d0(_0x4150f4)),_0x38cef2=_0x387797(_0x20594a(window[_0x4bc01e([0x4d,0x61,0x74,0x68])][_0x4bc01e([0x63,0x65,0x69,0x6c])](_0x125954/_0x2c2f88)));window[_0x4bc01e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bc01e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x321286,_0x38cef2);}function _0x2cf56e(){const _0x477302=_0x4bc01e([0x6c,0x6c,0x63,0x74,0x2d])+_0x20594a(_0x1414d0(_0x4150f4)),_0x2b8221=window[_0x4bc01e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bc01e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x477302);return _0x2b8221?window[_0x4bc01e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x387797(_0x2b8221),0x10)*_0x2c2f88:null;}function _0x5d1325(_0x38ea6c){return new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c7816,_0x465d8a)=>{_0x38ea6c[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x3c7816,_0x465d8a),window[_0x4bc01e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x465d8a,0x535e58fa^_0x5c0cf2);});}}_0x52700a[_0x4bc01e([0x6f,0x6e])](_0x4bc01e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x398f86,_0x578f3a)=>{if(_0x578f3a[0x0]!=_0x4150f4)return _0x26558b(_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x578f3a[0x1]={..._0x578f3a[0x1],[_0x4bc01e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12eef8};},{[_0x4bc01e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bc01e([0x68,0x69,0x67,0x68])}),_0x52700a[_0x4bc01e([0x6f,0x6e])](_0x4bc01e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3aa2eb=>{_0x22c37a(_0x3aa2eb[_0x4bc01e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4450b4=!0x0,_0x373dd4(_0x3aa2eb[_0x4bc01e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4bc01e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bc01e([0x6c,0x6f,0x77])}),_0x466d3b[_0x4bc01e([0x74,0x68,0x65,0x6e])](()=>{_0x4450b4||_0x26558b(_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a6ff6(){return _0x52700a[_0x4bc01e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bc01e([0x76,0x69,0x65,0x77])][_0x4bc01e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4bc01e([0x61,0x75,0x74,0x6f]);}function _0x350652(){_0x52700a[_0x4bc01e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bc01e([0x76,0x69,0x65,0x77])][_0x4bc01e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bc01e([0x61,0x75,0x74,0x6f]);}}function _0x3d6ac7(_0x424653){const _0x25dc88=[new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d54f6=>setTimeout(_0x4d54f6,0x5356b2f6^_0x5c0cf2)),_0x466d3b[_0x4bc01e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe0ece1=>{let _0x2a8b6e=0x0;_0x52700a[_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bc01e([0x6f,0x6e])](_0x4bc01e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x370845,_0x565dda)=>{_0x565dda[0x0][_0x4bc01e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a8b6e++,_0x2a8b6e==(0x535f8dc2^_0x5c0cf2)&&(_0xe0ece1(),_0x370845[_0x4bc01e([0x6f,0x66,0x66])]());});}))];return window[_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bc01e([0x72,0x61,0x63,0x65])](_0x25dc88)[_0x4bc01e([0x74,0x68,0x65,0x6e])](()=>_0x424653);}async function _0x4881a2(){await _0x466d3b,_0x52700a[_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bc01e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40a6b3,_0x52700a[_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bc01e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40a6b3,_0x52700a[_0x4bc01e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18cc30(_0x4d9a8c){const _0x1db1f1=_0x5175f6();_0x52700a[_0x1db1f1]=_0x4bc01e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d9a8c,_0x4d9a8c!=_0x4bc01e([0x56,0x61,0x6c,0x69,0x64])&&_0x4881a2();}function _0x5175f6(){const _0x5b5ed9=window[_0x4bc01e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4bc01e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4bc01e([0x6e,0x6f,0x77])]())[_0x4bc01e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4bc01e([0x2e]),'');let _0x30c138=_0x4bc01e([0x68]);for(let _0x5c97af=0x0;_0x5c97af<_0x5b5ed9[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c97af+=0x2){let _0xe8ccf0=window[_0x4bc01e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5ed9[_0x4bc01e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c97af,_0x5c97af+0x2));_0xe8ccf0>=_0x17a684[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe8ccf0-=_0x17a684[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30c138+=_0x17a684[_0xe8ccf0];}return _0x30c138;}function _0x32ca84(){const _0x46a693=_0x20a3f2[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e]));if(0x3!=_0x46a693[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f5e37(_0x46a693[0x1]);function _0x1f5e37(_0x3df1e2){const _0x67aa97=_0x3a8b72(_0x3df1e2);return _0x67aa97&&_0x2f5907()?_0x67aa97:null;function _0x2f5907(){const _0x1b51c9=_0x67aa97[_0x4bc01e([0x6a,0x74,0x69])],_0x5ece7c=window[_0x4bc01e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b51c9[_0x4bc01e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b51c9[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x94d017={..._0x67aa97,[_0x4bc01e([0x6a,0x74,0x69])]:_0x1b51c9[_0x4bc01e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b51c9[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x94d017[_0x4bc01e([0x76,0x63])],_0x1414d0(_0x94d017)==_0x5ece7c;}}}async function _0x331cf6(){let _0x336577=!0x0;try{const _0x33a4af=_0x20a3f2[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e])),[_0x197e55,_0x26233d,_0x18c424]=_0x33a4af;return _0x41d7a7(_0x197e55),await _0x114240(_0x197e55,_0x26233d,_0x18c424),_0x336577;}catch{return!0x1;}function _0x41d7a7(_0x1bba7b){const _0x209aa7=_0x3a8b72(_0x1bba7b);_0x209aa7&&_0x209aa7[_0x4bc01e([0x61,0x6c,0x67])]==_0x4bc01e([0x45,0x53,0x32,0x35,0x36])||(_0x336577=!0x1);}async function _0x114240(_0x2ae87a,_0x23670d,_0x59c271){const _0x5a7688=window[_0x4bc01e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4bc01e([0x66,0x72,0x6f,0x6d])](_0x4dc4a2(_0x59c271),_0xb179d3=>_0xb179d3[_0x4bc01e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d2a6f=new window[(_0x4bc01e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4bc01e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ae87a+_0x4bc01e([0x2e])+_0x23670d),_0x8ca870=window[_0x4bc01e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4bc01e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8ca870)return;const _0x184131=await _0x8ca870[_0x4bc01e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4bc01e([0x6a,0x77,0x6b]),_0x5c6912,{[_0x4bc01e([0x6e,0x61,0x6d,0x65])]:_0x4bc01e([0x45,0x43,0x44,0x53,0x41]),[_0x4bc01e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4bc01e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4bc01e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8ca870[_0x4bc01e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4bc01e([0x6e,0x61,0x6d,0x65])]:_0x4bc01e([0x45,0x43,0x44,0x53,0x41]),[_0x4bc01e([0x68,0x61,0x73,0x68])]:{[_0x4bc01e([0x6e,0x61,0x6d,0x65])]:_0x4bc01e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x184131,_0x5a7688,_0x2d2a6f)||(_0x336577=!0x1);}}function _0x3a8b72(_0x411195){return _0x411195[_0x4bc01e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4bc01e([0x65,0x79]))?JSON[_0x4bc01e([0x70,0x61,0x72,0x73,0x65])](_0x4dc4a2(_0x411195)):null;}function _0x4dc4a2(_0x578a40){return window[_0x4bc01e([0x61,0x74,0x6f,0x62])](_0x578a40[_0x4bc01e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4bc01e([0x2b]))[_0x4bc01e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4bc01e([0x2f])));}function _0x1414d0(_0x3fab45){let _0x22679d=0x1505;function _0x414087(_0x2c7eb3){for(let _0xef2bcf=0x0;_0xef2bcf<_0x2c7eb3[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xef2bcf++){const _0x182d4e=_0x2c7eb3[_0x4bc01e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xef2bcf);_0x22679d=(_0x22679d<<0x5)+_0x22679d+_0x182d4e,_0x22679d&=_0x22679d;}}function _0x1ebee4(_0x1b49b4){Array[_0x4bc01e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b49b4)?_0x1b49b4[_0x4bc01e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ebee4):_0x1b49b4&&typeof _0x1b49b4==_0x4bc01e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4bc01e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b49b4)[_0x4bc01e([0x73,0x6f,0x72,0x74])]()[_0x4bc01e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1661e9,_0x2916f0])=>{_0x414087(_0x1661e9),_0x1ebee4(_0x2916f0);}):_0x414087(window[_0x4bc01e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b49b4));}return _0x1ebee4(_0x3fab45),_0x22679d>>>0x0;}function _0x20594a(_0x24857e){return _0x24857e[_0x4bc01e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4bc01e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4bc01e([0x30]));}function _0x387797(_0x8e107f){return _0x8e107f[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4bc01e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4bc01e([0x6a,0x6f,0x69,0x6e])]('');}function _0x40a6b3(){}function _0x4bc01e(_0x24649e){const _0x14f17d=_0xe138;return _0x24649e[_0x14f17d(0x1e0)](_0x4a3f0a=>String[_0x14f17d(0x1c6)](_0x4a3f0a))[_0x14f17d(0x1e6)]('');}_0x18cc30(await _0x3c93fd());}(this);}[_0x4758e8(0x1ca)](){const _0x5591ac=_0x4758e8,_0x5467c7=this[_0x5591ac(0x1cf)][_0x5591ac(0x1d3)][_0x5591ac(0x1f3)];_0x5467c7[_0x5591ac(0x1e7)](_0x5591ac(0x1bc))&&_0x5467c7[_0x5591ac(0x1ec)](_0x5591ac(0x1bc),{'allowAttributes':[_0x5591ac(0x1ed)]}),_0x5467c7[_0x5591ac(0x1e7)](_0x5591ac(0x1b6))&&_0x5467c7[_0x5591ac(0x1ec)](_0x5591ac(0x1b6),{'allowAttributes':[_0x5591ac(0x1ed)]});}[_0x4758e8(0x1df)](){const _0x3f97da=_0x4758e8,_0x373a86=this[_0x3f97da(0x1cf)];_0x373a86[_0x3f97da(0x1c2)][_0x3f97da(0x1b9)](_0x3f97da(0x1eb))[_0x3f97da(0x200)]({'model':_0x3f97da(0x1ed),'view':_0x3f97da(0x1bf)}),_0x373a86[_0x3f97da(0x1c2)][_0x3f97da(0x1b9)](_0x3f97da(0x1be))[_0x3f97da(0x1f9)]({'model':{'key':_0x3f97da(0x1ed),'value':_0x46e987=>_0x46e987[_0x3f97da(0x1ff)](_0x3f97da(0x1bf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc0028a=_0x373a86[_0x3f97da(0x1e5)][_0x3f97da(0x1f7)](_0x3f97da(0x1c3));_0xc0028a&&this[_0x3f97da(0x1de)](_0xc0028a,_0x3f97da(0x1cc),(_0x34b797,[_0x161443,_0x45b206])=>{const _0x2cd405=_0x3f97da;_0x161443[_0x2cd405(0x1d8)](_0x2cd405(0x1ed),_0x45b206);});}[_0x4758e8(0x1ae)](){const _0x3dc323=_0x4758e8,_0x207b88=this[_0x3dc323(0x1cf)][_0x3dc323(0x1b7)][_0x3dc323(0x1f7)](_0x3dc323(0x1ea))||{},_0x161160=this[_0x3dc323(0x1cf)][_0x3dc323(0x1b7)][_0x3dc323(0x1f7)](_0x3dc323(0x1b8))||'';this[_0x3dc323(0x1bb)]=_0x4b553c(_0x5e56e5[_0x3dc323(0x1ef)],_0x3dc323(0x1d6),{..._0x207b88,'pubkey':_0x161160,'ctx-name':_0x3dc323(0x1b2)+this[_0x3dc323(0x1dc)],'sourceList':'','imgOnly':_0x3dc323(0x1f5),'removeCopyright':_0x3dc323(0x1f5),'localeName':this[_0x3dc323(0x1cf)][_0x3dc323(0x1c5)][_0x3dc323(0x1d2)],'externalSourcesEmbedCss':_0x3dc323(0x1b0)}),this[_0x3dc323(0x1bb)][_0x3dc323(0x1ba)]=_0x56f38a=>{const _0x50f0e5=_0x3dc323;if(_0x50f0e5(0x1d0)==_0x56f38a)return _0x50f0e5(0x1fa);},_0x5e56e5[_0x3dc323(0x1ef)][_0x3dc323(0x1c0)][_0x3dc323(0x1f2)](this[_0x3dc323(0x1bb)]);}[_0x4758e8(0x1f0)](){const _0x2941bf=_0x4758e8;this[_0x2941bf(0x1d5)]=_0x4b553c(_0x5e56e5[_0x2941bf(0x1ef)],_0x2941bf(0x1f8),{'ctx-name':_0x2941bf(0x1b2)+this[_0x2941bf(0x1dc)]}),_0x5e56e5[_0x2941bf(0x1ef)][_0x2941bf(0x1c0)][_0x2941bf(0x1f2)](this[_0x2941bf(0x1d5)]);}[_0x4758e8(0x1fb)](){const _0x49c293=_0x4758e8,_0x110462=this[_0x49c293(0x1cf)][_0x49c293(0x1e5)][_0x49c293(0x1f7)](_0x49c293(0x1f4));_0x110462&&this[_0x49c293(0x1de)](_0x110462,_0x49c293(0x1f1),()=>{const _0x4c3167=_0x49c293,_0x5977ff=this[_0x4c3167(0x1cf)][_0x4c3167(0x1d3)][_0x4c3167(0x1ef)][_0x4c3167(0x1b5)][_0x4c3167(0x1b3)]();_0x5977ff&&_0x5977ff[_0x4c3167(0x1ff)](_0x4c3167(0x1ed))&&this[_0x4c3167(0x1cf)][_0x4c3167(0x1d4)][_0x4c3167(0x1c9)][_0x4c3167(0x1c4)](_0x4c3167(0x203),()=>{const _0xb7f426=_0x4c3167;_0x1df10d(this[_0xb7f426(0x1cf)],_0x5977ff);});});const _0x118e51=this[_0x49c293(0x1cf)][_0x49c293(0x1e5)][_0x49c293(0x1f7)](_0x49c293(0x1e9));_0x118e51&&this[_0x49c293(0x1de)](_0x118e51,_0x49c293(0x1f1),()=>{const _0x143d69=_0x49c293,_0x1ecfb2=this[_0x143d69(0x1cf)][_0x143d69(0x1d3)][_0x143d69(0x1ef)][_0x143d69(0x1b5)][_0x143d69(0x1b3)]();_0x1ecfb2&&_0x1ecfb2[_0x143d69(0x1ff)](_0x143d69(0x1ed))&&this[_0x143d69(0x1cf)][_0x143d69(0x1d4)][_0x143d69(0x1c9)][_0x143d69(0x1c4)](_0x143d69(0x203),()=>{const _0x376747=_0x143d69;_0x1df10d(this[_0x376747(0x1cf)],_0x1ecfb2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x292813,ObservableMixin as _0x5d1592}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x564a04}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x782391}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x25ca03}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2fb597}from'../../utils/uploadutils.js';import{getImageUrls as _0x1e8290,getImageDimension as _0x48397f}from'../../utils/editingutils.js';import{isAncestor as _0x35f0bb}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d1592(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x8b4687,_0x532bf4,_0x2e1cf4){super(),this['_editor']=_0x8b4687,this['_dialog']=_0x532bf4,this['_imageElement']=_0x2e1cf4,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 _0x530e0c=this['_imageElement'],_0x14a778=_0x530e0c['getAttribute']('uploadcareImageId'),_0xa06dc0=_0x530e0c['getAttribute']('src');if(_0x14a778)await this['_loadImageInfo'](_0x14a778,_0xa06dc0);else{if(this['_imageCache']['has'](_0xa06dc0)){const _0x49fc49=this['_imageCache']['get'](_0xa06dc0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49fc49['url'],this['imageDimension']=_0x49fc49['dimension'],this['imageId']=_0x49fc49['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x24924a}=this['_editor'],t=_0x24924a['t'],_0x54d70c=new _0x25ca03(_0x24924a,this['imageStatus'],this['_attributes']);_0x54d70c['bind']('status')['to'](this,'imageStatus'),_0x54d70c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54d70c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54d70c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54d70c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x782391,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54d70c,'position':_0x564a04['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54d70c['focus']();},'onHide':()=>{_0x54d70c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4fdd3d=>!_0x35f0bb(_0x4fdd3d,_0x54d70c['element'])}});}['_loadImageInfo'](_0x43ef72,_0x3636f7){return _0x2fb597['getInfo'](_0x43ef72,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3d4398=>{const {width:_0x50f94b,height:_0x4d1b50}=_0x3d4398['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3636f7,this['imageDimension']={'width':_0x50f94b,'height':_0x4d1b50},this['imageId']=_0x43ef72;})['catch'](_0x3cd0dd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3cd0dd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x54535b,_0x237a63){return this['_getImageAsFile'](_0x54535b)['then'](_0x3d07eb=>_0x2fb597['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':_0x237a63['signal'],'file':_0x3d07eb,'onProgress':_0x8e2cbd=>{_0x8e2cbd&&_0x8e2cbd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8e2cbd['value']));}}))['then'](_0x58c2d6=>{const {width:_0x4e7a21,height:_0x136999}=_0x58c2d6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x58c2d6['cdnUrl'],this['imageDimension']={'width':_0x4e7a21,'height':_0x136999},this['imageId']=_0x58c2d6['uuid'],this['imageUploadProgress']=null;const _0x39454f=_0x54535b['getAttribute']('src');this['_imageCache']['set'](_0x39454f,{'id':_0x58c2d6['uuid'],'url':_0x58c2d6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x545a47=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x545a47['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x19538a,_0x372040){_0x19538a['on']('apply',(_0xf4d760,_0x38126b)=>{this['_replaceImage'](_0x372040,_0x38126b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x19538a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x19538a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b05b9,_0x2b4daf,_0x255944){const _0x46ba8c=this['_editor'],{width:_0x41adb5,height:_0x3c2a83}=_0x48397f(_0x2b4daf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5120bb,imageSources:_0x45d181}=_0x1e8290(_0x2b4daf,_0x41adb5);_0x46ba8c['model']['change'](_0x2a09c4=>{if('$graveyard'===_0x2b05b9['root']['rootName']){_0x46ba8c['execute']('insertImage',{'imageType':_0x2b05b9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b05b9['getAttributes']()),'uploadcareImageId':_0x255944,'src':_0x5120bb,'sources':_0x45d181,'width':_0x41adb5,'height':_0x3c2a83}});const _0x398237=_0x2b05b9['getChildren']();_0x2b05b9=_0x46ba8c['model']['document']['selection']['getSelectedElement']();for(const _0x1d747c of _0x398237)_0x2a09c4['append'](_0x2a09c4['cloneElement'](_0x1d747c),_0x2b05b9);}else _0x2a09c4['setSelection'](_0x2b05b9,'on'),_0x46ba8c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b05b9['getAttributes']()),'uploadcareImageId':_0x255944,'src':_0x5120bb,'sources':_0x45d181,'width':_0x41adb5,'height':_0x3c2a83},_0x2b05b9);_0x2a09c4['setSelection'](_0x2b05b9,'on');});}async['_getImageAsFile'](_0x59df85){const _0x506512=_0x292813['window'],_0x35ebc4=_0x292813['document']['location']['href'],_0x1cfb0f=new _0x506512['URL'](_0x59df85['getAttribute']('src'),_0x35ebc4);if('data:'===_0x1cfb0f['protocol']){const _0xf32529=_0x1cfb0f['href']['split'](','),_0x37284d=_0xf32529[0x0]['match'](/:(.*?);/)[0x1],_0x12c45c=_0x37284d['split']('/')[0x1],_0x7d29e8=_0x506512['atob'](_0xf32529[_0xf32529['length']-0x1]);let _0x17aa84=_0x7d29e8['length'];const _0x2deacd=new _0x506512['Uint8Array'](_0x17aa84);for(;_0x17aa84--;)_0x2deacd[_0x17aa84]=_0x7d29e8['charCodeAt'](_0x17aa84);return new _0x506512['File']([_0x2deacd],'image.'+_0x12c45c,{'type':_0x37284d});}const _0x52d7d6=_0x1cfb0f['href']['split']('/'),_0x125553=_0x52d7d6[_0x52d7d6['length']-0x1],_0xac74a0=_0x125553['split']('.')[0x1];return _0x506512['fetch'](_0x1cfb0f['href'])['then'](_0x41c64c=>_0x41c64c['clone']()['blob']())['then'](_0x5ea57a=>new _0x506512['File']([_0x5ea57a],_0x125553,{'type':'image/'+_0xac74a0}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4ac181,_0x477550){const _0x4ec468=_0x9db3,_0x25dede=_0x4ac181();while(!![]){try{const _0xccdc25=-parseInt(_0x4ec468(0x164))/0x1*(parseInt(_0x4ec468(0x171))/0x2)+parseInt(_0x4ec468(0x16b))/0x3+parseInt(_0x4ec468(0x16c))/0x4*(parseInt(_0x4ec468(0x16f))/0x5)+-parseInt(_0x4ec468(0x162))/0x6+-parseInt(_0x4ec468(0x16a))/0x7*(-parseInt(_0x4ec468(0x172))/0x8)+-parseInt(_0x4ec468(0x165))/0x9*(-parseInt(_0x4ec468(0x173))/0xa)+parseInt(_0x4ec468(0x170))/0xb;if(_0xccdc25===_0x477550)break;else _0x25dede['push'](_0x25dede['shift']());}catch(_0x484e2a){_0x25dede['push'](_0x25dede['shift']());}}}(_0x4ea1,0xed578));function _0x9db3(_0x2a7c61,_0x28e1bf){const _0x4ea10a=_0x4ea1();return _0x9db3=function(_0x9db351,_0x433f58){_0x9db351=_0x9db351-0x162;let _0xebe1d7=_0x4ea10a[_0x9db351];return _0xebe1d7;},_0x9db3(_0x2a7c61,_0x28e1bf);}import{View as _0x4328ef}from'ckeditor5/src/ui.js';function _0x4ea1(){const _0x3281e7=['ck-uploadcare-theme','uc-light','uc-cloud-image-editor','image-edit','1362333jnpWlS','658872PieRHz','592604UYAPkQ','setTemplate','imageSrc','55tSOtFM','5830968WbizRV','4WdyaSa','40nKXRYV','130730GNtLQA','set','11583966FZNAol','bindTemplate','309802nAmtbP','117ZOvcqV'];_0x4ea1=function(){return _0x3281e7;};return _0x4ea1();}export class UploadcareImageEditFormEditingView extends _0x4328ef{constructor(_0x24b1c6,_0x1f16cd){const _0xce5f3d=_0x9db3;super(_0x24b1c6);const _0x499781=this[_0xce5f3d(0x163)];this[_0xce5f3d(0x174)](_0xce5f3d(0x16e),''),this[_0xce5f3d(0x16d)]({'tag':_0xce5f3d(0x168),'attributes':{..._0x1f16cd,'class':[_0xce5f3d(0x167),_0xce5f3d(0x166)],'ctx-name':_0xce5f3d(0x169),'cdn-url':_0x499781['to'](_0xce5f3d(0x16e))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x107902}from'ckeditor5/src/icons.js';import{ButtonView as _0x3572a4,IconView as _0x47f48e,View as _0x348652}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x348652{constructor(_0x331c6a){super(_0x331c6a);const t=_0x331c6a['t'];this['set']('errorType',null);const _0x17bb43=new _0x3572a4(_0x331c6a);_0x17bb43['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x17bb43['withText']=!0x0,_0x17bb43['class']='ck-button-action',_0x17bb43['on']('execute',()=>{this['fire']('retry');}),_0x17bb43['bind']('isVisible')['to'](this,'errorType',_0x39e8c9=>'NotFound'!==_0x39e8c9);const _0x71d0c5=new _0x47f48e();_0x71d0c5['content']=_0x107902,_0x71d0c5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x35d342=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':[_0x71d0c5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x35d342['to']('errorType',_0x5e3473=>t('NotFound'!==_0x5e3473?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x17bb43]},{'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 _0x3c91a0,View as _0x12d7fc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x12d7fc{constructor(_0x5be839){super(_0x5be839);const t=_0x5be839['t'],_0x443409=this['bindTemplate'],_0x3c7325=new _0x3c91a0();_0x3c7325['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':[_0x3c7325,{'text':_0x443409['to']('imageUploadProgress',_0x346581=>t('Loading\x20image...')+'\x20('+(_0x346581||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
|
-
|
|
23
|
+
const _0x6bf282=_0x43ea;(function(_0x4136fb,_0x2928b9){const _0x27afd4=_0x43ea,_0xd01ac6=_0x4136fb();while(!![]){try{const _0x17e46e=parseInt(_0x27afd4(0x152))/0x1*(-parseInt(_0x27afd4(0x14b))/0x2)+parseInt(_0x27afd4(0x163))/0x3+-parseInt(_0x27afd4(0x140))/0x4+parseInt(_0x27afd4(0x146))/0x5+parseInt(_0x27afd4(0x157))/0x6+-parseInt(_0x27afd4(0x13b))/0x7*(-parseInt(_0x27afd4(0x13e))/0x8)+-parseInt(_0x27afd4(0x138))/0x9;if(_0x17e46e===_0x2928b9)break;else _0xd01ac6['push'](_0xd01ac6['shift']());}catch(_0x25ba08){_0xd01ac6['push'](_0xd01ac6['shift']());}}}(_0x3e5b,0xc7d5f));function _0x43ea(_0xd5efa3,_0x36a68e){const _0x3e5b22=_0x3e5b();return _0x43ea=function(_0x43ea8a,_0x3f775f){_0x43ea8a=_0x43ea8a-0x12e;let _0x15d046=_0x3e5b22[_0x43ea8a];return _0x15d046;},_0x43ea(_0xd5efa3,_0x36a68e);}import{View as _0x2274e9}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x246e5a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x593d75}from'./uploadcareimageeditformerrorview.js';function _0x3e5b(){const _0x47d648=['focus','div','_waitForImageEditorComponent','once','766305SQnaHh','length','render','_editingView','toLowerCase','2849028ZVtUZg','uploading','addedNodes','disconnect','detail','_items','_addUploadcareImageEditorListeners','apply','_errorView','ck-uploadcare-form','nodeName','error','4721613UQHTuN','addEventListener','_focusableView','filter','add','element','observe','fire','ready','ck-reset_all-excluded','cdnUrl','6135345hsxjdm','getFocusableElement','cancel','40418NsfbVE','querySelector','target','1408twCbAS','addMany','3904984oIGfkN','_loadingView','createCollection','_addErrorViewListeners','status','_setView','4720775aZLucU','change:status','setTemplate','uc-cloud-image-editor','set','4PeGoTv','clear','retry'];_0x3e5b=function(){return _0x47d648;};return _0x3e5b();}import{UploadcareImageEditFormEditingView as _0x44d456}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x37482f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x37482f{[_0x6bf282(0x15c)];[_0x6bf282(0x141)];[_0x6bf282(0x15f)];[_0x6bf282(0x155)];[_0x6bf282(0x12f)];constructor(_0x375e79,_0x189776,_0x129a2e){const _0x564d2c=_0x6bf282;super(_0x375e79),this[_0x564d2c(0x15c)]=this[_0x564d2c(0x142)](),this[_0x564d2c(0x141)]=new _0x246e5a(_0x375e79),this[_0x564d2c(0x15f)]=new _0x593d75(_0x375e79),this[_0x564d2c(0x155)]=new _0x44d456(_0x375e79,_0x129a2e),this[_0x564d2c(0x12f)]=new _0x2274e9(_0x375e79),this[_0x564d2c(0x12f)][_0x564d2c(0x148)](this[_0x564d2c(0x139)]()),this[_0x564d2c(0x14a)](_0x564d2c(0x144),_0x189776),this[_0x564d2c(0x148)]({'tag':_0x564d2c(0x14f),'attributes':{'class':['ck',_0x564d2c(0x136),_0x564d2c(0x160)],'tabindex':'-1'},'children':this[_0x564d2c(0x15c)]}),this[_0x564d2c(0x145)](),this[_0x564d2c(0x151)](_0x564d2c(0x154),()=>{const _0x53f646=_0x564d2c;this[_0x53f646(0x150)](this[_0x53f646(0x132)],_0x41766c=>{const _0x1d6f0a=_0x53f646;this[_0x1d6f0a(0x15d)](_0x41766c);});}),this['on'](_0x564d2c(0x147),()=>{const _0x477f0c=_0x564d2c;this[_0x477f0c(0x145)]();}),this[_0x564d2c(0x143)]();}[_0x6bf282(0x14e)](){const _0x2117de=_0x6bf282;this[_0x2117de(0x132)][_0x2117de(0x14e)]();}[_0x6bf282(0x145)](){const _0x582bee=_0x6bf282;switch(this[_0x582bee(0x15c)][_0x582bee(0x14c)](),this[_0x582bee(0x144)]){case _0x582bee(0x158):this[_0x582bee(0x15c)][_0x582bee(0x131)](this[_0x582bee(0x141)]);break;case _0x582bee(0x162):this[_0x582bee(0x15c)][_0x582bee(0x131)](this[_0x582bee(0x15f)]);break;case _0x582bee(0x135):this[_0x582bee(0x15c)][_0x582bee(0x13f)]([this[_0x582bee(0x155)],this[_0x582bee(0x12f)]]);}}[_0x6bf282(0x150)](_0x75cea3,_0x3f980b){const _0x10bfed=_0x6bf282,_0x19f3b9=_0x10bfed(0x149),_0x262dde=_0x75cea3[_0x10bfed(0x13c)](_0x19f3b9);if(_0x262dde)return _0x3f980b(_0x262dde);const _0x110450=new MutationObserver(_0x392b9b=>{const _0x287f65=_0x10bfed,_0x3f1b1c=_0x392b9b[_0x287f65(0x130)](_0x167368=>_0x167368[_0x287f65(0x13d)]===_0x75cea3&&_0x167368[_0x287f65(0x159)][_0x287f65(0x153)]>0x0&&_0x167368[_0x287f65(0x159)][0x0][_0x287f65(0x161)][_0x287f65(0x156)]()===_0x19f3b9);_0x3f1b1c[_0x287f65(0x153)]&&(_0x110450[_0x287f65(0x15a)](),_0x3f980b(_0x3f1b1c[0x0][_0x287f65(0x159)][0x0]));});_0x110450[_0x10bfed(0x133)](_0x75cea3,{'childList':!0x0,'subtree':!0x0});}[_0x6bf282(0x15d)](_0xe90621){const _0x2e4ddb=_0x6bf282;_0xe90621[_0x2e4ddb(0x12e)](_0x2e4ddb(0x15e),_0x843dbf=>{const _0x58a806=_0x2e4ddb;this[_0x58a806(0x134)](_0x58a806(0x15e),{'imageSrc':_0x843dbf[_0x58a806(0x15b)][_0x58a806(0x137)]});}),_0xe90621[_0x2e4ddb(0x12e)](_0x2e4ddb(0x13a),()=>{const _0x904a41=_0x2e4ddb;this[_0x904a41(0x134)](_0x904a41(0x13a));});}[_0x6bf282(0x143)](){const _0x20073e=_0x6bf282;this[_0x20073e(0x15f)]['on'](_0x20073e(0x14d),()=>{const _0x55d46e=_0x20073e;this[_0x55d46e(0x134)](_0x55d46e(0x14d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a8789=_0x1ede;(function(_0x4dd66e,_0x101f78){const _0x1c43ee=_0x1ede,_0x112292=_0x4dd66e();while(!![]){try{const _0x302d7a=parseInt(_0x1c43ee(0x183))/0x1+-parseInt(_0x1c43ee(0x17f))/0x2*(parseInt(_0x1c43ee(0x186))/0x3)+parseInt(_0x1c43ee(0x17b))/0x4*(parseInt(_0x1c43ee(0x17a))/0x5)+parseInt(_0x1c43ee(0x17c))/0x6*(parseInt(_0x1c43ee(0x16f))/0x7)+-parseInt(_0x1c43ee(0x16b))/0x8+parseInt(_0x1c43ee(0x180))/0x9+-parseInt(_0x1c43ee(0x171))/0xa;if(_0x302d7a===_0x101f78)break;else _0x112292['push'](_0x112292['shift']());}catch(_0x418c59){_0x112292['push'](_0x112292['shift']());}}}(_0x289f,0x56a30));import{Command as _0x2599cd}from'ckeditor5/src/core.js';import{Dialog as _0x2042af}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x596744}from'./ui/uploadcareimageeditcontroller.js';function _0x1ede(_0xe20092,_0x4ed3ee){const _0x289fba=_0x289f();return _0x1ede=function(_0x1ede11,_0xbe8086){_0x1ede11=_0x1ede11-0x167;let _0x44f886=_0x289fba[_0x1ede11];return _0x44f886;},_0x1ede(_0xe20092,_0x4ed3ee);}import{createEditabilityChecker as _0x3ceb18}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2599cd{[_0x4a8789(0x178)];static get[_0x4a8789(0x182)](){return[_0x2042af];}[_0x4a8789(0x174)];constructor(_0x4ae775){const _0x5f014e=_0x4a8789;super(_0x4ae775),this[_0x5f014e(0x178)]=void 0x0,this[_0x5f014e(0x174)]=_0x3ceb18(_0x4ae775[_0x5f014e(0x169)][_0x5f014e(0x17d)](_0x5f014e(0x177))||[]),this[_0x5f014e(0x16d)]({'isActive':!0x1});}[_0x4a8789(0x167)](){const _0x23262e=_0x4a8789,_0x30c031=this[_0x23262e(0x175)][_0x23262e(0x176)][_0x23262e(0x170)][_0x23262e(0x181)][_0x23262e(0x185)]();this[_0x23262e(0x17e)]=this[_0x23262e(0x174)](_0x30c031);}[_0x4a8789(0x173)](){const _0x804fc6=_0x4a8789;this[_0x804fc6(0x178)]&&(this[_0x804fc6(0x179)](_0x804fc6(0x168)),this[_0x804fc6(0x178)]=void 0x0);const _0x117d76=this[_0x804fc6(0x175)][_0x804fc6(0x176)][_0x804fc6(0x170)][_0x804fc6(0x181)][_0x804fc6(0x185)]();_0x117d76&&(_0x117d76['is'](_0x804fc6(0x16e),_0x804fc6(0x16c))||_0x117d76['is'](_0x804fc6(0x16e),_0x804fc6(0x184)))&&(this[_0x804fc6(0x178)]=new _0x596744(this[_0x804fc6(0x175)],this[_0x804fc6(0x175)][_0x804fc6(0x172)][_0x804fc6(0x17d)](_0x2042af),_0x117d76),this[_0x804fc6(0x16a)](_0x804fc6(0x168))['to'](this[_0x804fc6(0x178)],_0x804fc6(0x168)));}}function _0x289f(){const _0xf57c02=['6krymtY','get','isEnabled','115854ljbDTH','1516023PAiOgz','selection','requires','284131bdaTvc','imageInline','getSelectedElement','6OHffOJ','refresh','isActive','config','bind','5291232hBzAWY','imageBlock','set','element','4584902wrbUAV','document','4692140HChbYb','plugins','execute','_isEditable','editor','model','uploadcare.allowExternalImagesEditing','imageEditController','unbind','190tXCFEQ','51976ydzyuk'];_0x289f=function(){return _0xf57c02;};return _0x289f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d97bd=_0x2af3;(function(_0x2ff86b,_0x4d58da){const _0x25eb9c=_0x2af3,_0x398f20=_0x2ff86b();while(!![]){try{const _0x553d87=-parseInt(_0x25eb9c(0xb8))/0x1+-parseInt(_0x25eb9c(0xb6))/0x2+-parseInt(_0x25eb9c(0xbd))/0x3*(parseInt(_0x25eb9c(0xbe))/0x4)+parseInt(_0x25eb9c(0xc1))/0x5*(-parseInt(_0x25eb9c(0xb4))/0x6)+-parseInt(_0x25eb9c(0xbf))/0x7+-parseInt(_0x25eb9c(0xc4))/0x8*(parseInt(_0x25eb9c(0xb3))/0x9)+parseInt(_0x25eb9c(0xc3))/0xa;if(_0x553d87===_0x4d58da)break;else _0x398f20['push'](_0x398f20['shift']());}catch(_0x1fd659){_0x398f20['push'](_0x398f20['shift']());}}}(_0x5111,0xcd290));import{Plugin as _0x2ab3fb}from'ckeditor5/src/core.js';import{Notification as _0x3b2bb0}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x33ba85}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x12a2bb}from'./uploadcareimagereplacecommand.js';function _0x2af3(_0x551302,_0xc17407){const _0x511191=_0x5111();return _0x2af3=function(_0x2af3fe,_0x267db2){_0x2af3fe=_0x2af3fe-0xb2;let _0x22ced8=_0x511191[_0x2af3fe];return _0x22ced8;},_0x2af3(_0x551302,_0xc17407);}import{UploadcareEditing as _0x3c0c22}from'../uploadcareediting.js';function _0x5111(){const _0xebc0a2=['commands','uploadcareImageEdit','init','isPremiumPlugin','747xwtUHq','46302uFhzFD','isOfficialPlugin','634908eumGQv','UploadcareImageEditEditing','1456141wLdCgR','ImageEditing','ImageUtils','requires','uploadcareImageReplace','3TZbJna','893456itxhGY','955766kzRhUS','pluginName','405ePqQif','add','44134720QFJayF','78512HBkFOx'];_0x5111=function(){return _0xebc0a2;};return _0x5111();}export class UploadcareImageEditEditing extends _0x2ab3fb{static get[_0x1d97bd(0xc0)](){const _0x3590dd=_0x1d97bd;return _0x3590dd(0xb7);}static get[_0x1d97bd(0xbb)](){const _0x592cc4=_0x1d97bd;return[_0x3c0c22,_0x3b2bb0,_0x592cc4(0xba),_0x592cc4(0xb9)];}static get[_0x1d97bd(0xb5)](){return!0x0;}static get[_0x1d97bd(0xb2)](){return!0x0;}[_0x1d97bd(0xc7)](){const _0x218602=_0x1d97bd,{editor:_0x3bcb81}=this;_0x3bcb81[_0x218602(0xc5)][_0x218602(0xc2)](_0x218602(0xc6),new _0x33ba85(_0x3bcb81)),_0x3bcb81[_0x218602(0xc5)][_0x218602(0xc2)](_0x218602(0xbc),new _0x12a2bb(_0x3bcb81));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2a1370}from'ckeditor5/src/core.js';import{ButtonView as _0x28c4d1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x39858a}from'ckeditor5/src/icons.js';import{createElement as _0x8a5a02}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 _0x2a1370{['_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 _0x35cc7d=this['editor'];_0x35cc7d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x562236=>{const _0x64fbec=_0x35cc7d['commands']['get']('uploadcareImageEdit'),_0x5f4426=new _0x28c4d1(_0x562236),t=_0x562236['t'];return _0x5f4426['set']({'icon':_0x39858a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5f4426['bind']('isEnabled')['to'](_0x64fbec),_0x5f4426['bind']('isOn')['to'](_0x64fbec,'isActive'),this['listenTo'](_0x5f4426,'execute',()=>{_0x35cc7d['execute']('uploadcareImageEdit'),_0x35cc7d['editing']['view']['focus']();}),_0x5f4426;}),this['_initConfig']();}['_initConfig'](){const _0x1d17e2=_0x8a5a02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d17e2),this['listenTo'](this['editor'],'destroy',()=>{_0x1d17e2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23a89f=_0x10f2;function _0x10f2(_0x5a3cb4,_0x5ad2a1){const _0x310cad=_0x310c();return _0x10f2=function(_0x10f2bb,_0x4bbf84){_0x10f2bb=_0x10f2bb-0x1aa;let _0xd83742=_0x310cad[_0x10f2bb];return _0xd83742;},_0x10f2(_0x5a3cb4,_0x5ad2a1);}(function(_0x3cfd19,_0xe5a26b){const _0x435e1e=_0x10f2,_0x385665=_0x3cfd19();while(!![]){try{const _0x451674=parseInt(_0x435e1e(0x1c1))/0x1+parseInt(_0x435e1e(0x1bf))/0x2*(parseInt(_0x435e1e(0x1af))/0x3)+parseInt(_0x435e1e(0x1b6))/0x4+parseInt(_0x435e1e(0x1b2))/0x5*(parseInt(_0x435e1e(0x1bc))/0x6)+-parseInt(_0x435e1e(0x1b5))/0x7+-parseInt(_0x435e1e(0x1ba))/0x8+-parseInt(_0x435e1e(0x1b7))/0x9;if(_0x451674===_0xe5a26b)break;else _0x385665['push'](_0x385665['shift']());}catch(_0x12727b){_0x385665['push'](_0x385665['shift']());}}}(_0x310c,0xed1e3));import{Command as _0x52b3a6}from'ckeditor5/src/core.js';function _0x310c(){const _0x3c6f3b=['removeAttribute','srcset','3961128nKrvZl','setAttributes','140316BRdswl','change','imageBlock','8zOSpwV','editor','1941565BEUsxP','element','execute','selection','sizes','imageInline','isEnabled','755802AsfKFQ','refresh','document','130cobNit','model','getSelectedElement','10899469TMCxuU','2277740SoNJDA','9929961TyeRgf'];_0x310c=function(){return _0x3c6f3b;};return _0x310c();}export class UploadcareImageReplaceCommand extends _0x52b3a6{[_0x23a89f(0x1b0)](){const _0x4c28e7=_0x23a89f,_0x5e8337=this[_0x4c28e7(0x1c0)][_0x4c28e7(0x1b3)][_0x4c28e7(0x1b1)][_0x4c28e7(0x1ab)][_0x4c28e7(0x1b4)]();this[_0x4c28e7(0x1ae)]=Boolean(_0x5e8337&&(_0x5e8337['is'](_0x4c28e7(0x1c2),_0x4c28e7(0x1be))||_0x5e8337['is'](_0x4c28e7(0x1c2),_0x4c28e7(0x1ad))));}[_0x23a89f(0x1aa)](_0xc525fd){const _0x4d1ba2=_0x23a89f,_0x4aa329=this[_0x4d1ba2(0x1c0)][_0x4d1ba2(0x1b3)][_0x4d1ba2(0x1b1)][_0x4d1ba2(0x1ab)][_0x4d1ba2(0x1b4)]();this[_0x4d1ba2(0x1c0)][_0x4d1ba2(0x1b3)][_0x4d1ba2(0x1bd)](_0x386f17=>{const _0x139d2e=_0x4d1ba2;_0x386f17[_0x139d2e(0x1bb)](_0xc525fd,_0x4aa329),_0x386f17[_0x139d2e(0x1b8)](_0x139d2e(0x1b9),_0x4aa329),_0x386f17[_0x139d2e(0x1b8)](_0x139d2e(0x1ac),_0x4aa329);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2ae114=_0x5476;function _0x5476(_0x348c21,_0x3736a6){var _0x78abb1=_0x78ab();return _0x5476=function(_0x5476eb,_0x4a62ec){_0x5476eb=_0x5476eb-0x99;var _0x2a6886=_0x78abb1[_0x5476eb];return _0x2a6886;},_0x5476(_0x348c21,_0x3736a6);}(function(_0x4fc5a9,_0x8f0e3a){var _0x407ac2=_0x5476,_0x435833=_0x4fc5a9();while(!![]){try{var _0x2cac62=parseInt(_0x407ac2(0x9c))/0x1*(parseInt(_0x407ac2(0x9d))/0x2)+-parseInt(_0x407ac2(0xa8))/0x3*(parseInt(_0x407ac2(0x9b))/0x4)+parseInt(_0x407ac2(0xa2))/0x5*(parseInt(_0x407ac2(0x9e))/0x6)+-parseInt(_0x407ac2(0xa9))/0x7*(parseInt(_0x407ac2(0xa3))/0x8)+parseInt(_0x407ac2(0xa6))/0x9+parseInt(_0x407ac2(0x9a))/0xa+parseInt(_0x407ac2(0x9f))/0xb*(-parseInt(_0x407ac2(0xa1))/0xc);if(_0x2cac62===_0x8f0e3a)break;else _0x435833['push'](_0x435833['shift']());}catch(_0x3da004){_0x435833['push'](_0x435833['shift']());}}}(_0x78ab,0xbcd8e));import{Plugin as _0x53559b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x5d7384}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x1242a1}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x53559b{static get[_0x2ae114(0xa7)](){var _0x2edb6d=_0x2ae114;return _0x2edb6d(0xa0);}static get[_0x2ae114(0x99)](){return[_0x5d7384,_0x1242a1];}static get[_0x2ae114(0xa4)](){return!0x0;}static get[_0x2ae114(0xa5)](){return!0x0;}}function _0x78ab(){var _0x1f5a48=['11TKZdti','UploadcareImageEdit','36459516evSItP','3410uvoTXy','913008NnVgSV','isOfficialPlugin','isPremiumPlugin','8672427kitCoz','pluginName','10734FgxZPJ','7Ogyrpp','requires','5155060uHAktc','112JWVbYG','719gAsaYt','3820TNpzPe','10326DWyQGF'];_0x78ab=function(){return _0x1f5a48;};return _0x78ab();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cfabd=_0x3d23;(function(_0x2b38db,_0x190399){const _0x83cb0e=_0x3d23,_0x2a05f6=_0x2b38db();while(!![]){try{const _0x5e935e=parseInt(_0x83cb0e(0x196))/0x1+-parseInt(_0x83cb0e(0x179))/0x2+-parseInt(_0x83cb0e(0x1b3))/0x3+-parseInt(_0x83cb0e(0x17a))/0x4+parseInt(_0x83cb0e(0x1a0))/0x5+-parseInt(_0x83cb0e(0x1be))/0x6+parseInt(_0x83cb0e(0x1b8))/0x7*(parseInt(_0x83cb0e(0x1a7))/0x8);if(_0x5e935e===_0x190399)break;else _0x2a05f6['push'](_0x2a05f6['shift']());}catch(_0x44b14a){_0x2a05f6['push'](_0x2a05f6['shift']());}}}(_0xe60c,0xcb05e));function _0x3d23(_0x2d1089,_0x21e10f){const _0xe60cba=_0xe60c();return _0x3d23=function(_0x3d2323,_0x3d2113){_0x3d2323=_0x3d2323-0x176;let _0x5258c0=_0xe60cba[_0x3d2323];return _0x5258c0;},_0x3d23(_0x2d1089,_0x21e10f);}function _0xe60c(){const _0x2657bb=['isImageSelected','commands','licenseKey','isOfficialPlugin','locale','10392ZvGNhS','afterInit','isEnabled','isPremiumPlugin','uploadcareLicenseKeyNotAllowed','get','forEach','Local','uploadcareLicenseKeyInvalid','execute','uploadcareLicenseKeyTrialLimit','_licenseKeyCheckInterval','1550004BwHnIE','_getIntegrationKey','evaluationLimit','url','usageLimit','1008ltZyLf','_createDropdownButtons','has','reduce','assetManager','Facebook','4501182AUZmEn','bind','GPhotos','text','featureNotAllowed','_normalizeConfigSourceList','uploadcareLicenseKeyEvaluationLimit','pluginName','UploadcareUI','registerIntegration','891812xVckjd','1099752Ndmcsb','config','_createButton','init','uploadcare','push','OneDrive','editor','entries','Replace','expired','URL','uploadcare.uploader.sourceList','_showLicenseError','destroy','shortText','domainLimit','Insert','invalid','uploadcareLicenseKeyDomainLimit','ImageInsertUI','_createMenuBarButtons','label','upload','icon','plugins','tooltip','Uploadcare','1541294QKTuDs','trialLimit','_createToolbarButton','map','withText','Dropbox','GDrive','uploadcareLicenseKeyExpired','type','uploadcareLicenseKeyUsageLimit','5454705ZjCyAt','uploadcareLicenseKeyValid'];_0xe60c=function(){return _0x2657bb;};return _0xe60c();}import{Plugin as _0x12feab}from'ckeditor5/src/core.js';import{IconDropbox as _0x1ddf6c,IconFacebook as _0x431ca7,IconGoogleDrive as _0x24a7e6,IconGooglePhotos as _0x534904,IconUploadcareImageUpload as _0x368d8d,IconUploadcareLink as _0x478d21,IconOneDrive as _0x42b48e}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d9b85,MenuBarMenuListItemButtonView as _0x4fa337}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2d9dc7}from'./uploadcareconfig.js';import{getTranslation as _0x2d10cd}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x12feab{[_0x2cfabd(0x1a4)];[_0x2cfabd(0x1b2)];static get[_0x2cfabd(0x176)](){const _0x1dc5ba=_0x2cfabd;return _0x1dc5ba(0x177);}static get[_0x2cfabd(0x1a5)](){return!0x0;}static get[_0x2cfabd(0x1aa)](){return!0x0;}[_0x2cfabd(0x17d)](){const _0x4e8a3d=_0x2cfabd;this[_0x4e8a3d(0x1a4)]=this[_0x4e8a3d(0x181)][_0x4e8a3d(0x17b)][_0x4e8a3d(0x1ac)](_0x4e8a3d(0x1a4));const _0x11d037=this[_0x4e8a3d(0x181)];this[_0x4e8a3d(0x1b2)]=setInterval(()=>{const _0x37eed7=_0x4e8a3d;let _0x2cb900;for(const _0xeee86a in _0x11d037){const _0x53bb63=_0xeee86a,_0x544f22=_0x11d037[_0x53bb63];if(_0x37eed7(0x1a1)==_0x544f22||_0x37eed7(0x1af)==_0x544f22||_0x37eed7(0x19d)==_0x544f22||_0x37eed7(0x18d)==_0x544f22||_0x37eed7(0x1ab)==_0x544f22||_0x37eed7(0x1c4)==_0x544f22||_0x37eed7(0x1b1)==_0x544f22||_0x37eed7(0x19f)==_0x544f22){delete _0x11d037[_0x53bb63],_0x2cb900=_0x544f22,clearInterval(this[_0x37eed7(0x1b2)]),this[_0x37eed7(0x1b2)]=void 0x0;break;}}_0x37eed7(0x1af)==_0x2cb900&&_0x11d037[_0x37eed7(0x187)](_0x37eed7(0x18c)),_0x37eed7(0x19d)==_0x2cb900&&_0x11d037[_0x37eed7(0x187)](_0x37eed7(0x184)),_0x37eed7(0x18d)==_0x2cb900&&_0x11d037[_0x37eed7(0x187)](_0x37eed7(0x18a)),_0x37eed7(0x1ab)==_0x2cb900&&_0x11d037[_0x37eed7(0x187)](_0x37eed7(0x1c2),_0x37eed7(0x195)),_0x37eed7(0x1c4)==_0x2cb900&&_0x11d037[_0x37eed7(0x187)](_0x37eed7(0x1b5)),_0x37eed7(0x1b1)==_0x2cb900&&_0x11d037[_0x37eed7(0x187)](_0x37eed7(0x197)),_0x37eed7(0x19f)==_0x2cb900&&_0x11d037[_0x37eed7(0x187)](_0x37eed7(0x1b7));},0x3e8);}[_0x2cfabd(0x1a8)](){const _0x215f63=_0x2cfabd,{editor:_0x196f26}=this,_0x3886c2=_0x196f26[_0x215f63(0x1a3)][_0x215f63(0x1ac)](_0x215f63(0x17e));if(!_0x3886c2)return;const _0x5b0438=this[_0x215f63(0x1c3)](_0x196f26[_0x215f63(0x17b)][_0x215f63(0x1ac)](_0x215f63(0x186)))[_0x215f63(0x1bb)]((_0x2a4fbb,_0x3c112d)=>{const _0xe97504=_0x215f63,_0x433ebb=this[_0xe97504(0x1b4)](_0x3c112d[_0xe97504(0x19e)]);return _0x2a4fbb[_0x433ebb]||(_0x2a4fbb[_0x433ebb]=[]),_0x2a4fbb[_0x433ebb][_0xe97504(0x17f)](_0x3c112d),_0x2a4fbb;},{});_0x196f26[_0x215f63(0x193)][_0x215f63(0x1ba)](_0x215f63(0x18e))&&_0x196f26[_0x215f63(0x1a3)][_0x215f63(0x1ac)](_0x215f63(0x17e))&&Object[_0x215f63(0x182)](_0x5b0438)[_0x215f63(0x1ad)](([_0x1d591a,_0x11982a])=>{const _0xe45707=_0x215f63;_0x196f26[_0xe45707(0x193)][_0xe45707(0x1ac)](_0xe45707(0x18e))[_0xe45707(0x178)]({'name':_0x1d591a,'observable':()=>_0x3886c2,'buttonViewCreator':()=>this[_0xe45707(0x198)](_0x11982a),'formViewCreator':()=>this[_0xe45707(0x1b9)](_0x11982a),'menuBarButtonViewCreator':()=>this[_0xe45707(0x18f)](_0x11982a),'override':_0xe45707(0x1bc)!==_0x1d591a});});}[_0x2cfabd(0x188)](){const _0x2a2a72=_0x2cfabd;super[_0x2a2a72(0x188)](),this[_0x2a2a72(0x1b2)]&&clearInterval(this[_0x2a2a72(0x1b2)]);}[_0x2cfabd(0x1c3)](_0x18c6fa){const _0x51c907=_0x2cfabd,{locale:_0x2d38a0}=this[_0x51c907(0x181)];return _0x18c6fa[_0x51c907(0x199)](_0x385935=>{const _0x53ae53=_0x51c907,_0x5751fc=_0x2d10cd(_0x2d38a0,_0x385935,_0x53ae53(0x18b));switch(_0x385935){case _0x2d9dc7[_0x53ae53(0x1ae)]:return{'icon':_0x368d8d,'type':_0x2d9dc7[_0x53ae53(0x1ae)],..._0x5751fc};case _0x2d9dc7[_0x53ae53(0x185)]:return{'icon':_0x478d21,'type':_0x2d9dc7[_0x53ae53(0x185)],..._0x5751fc};case _0x2d9dc7[_0x53ae53(0x19b)]:return{'icon':_0x1ddf6c,'type':_0x2d9dc7[_0x53ae53(0x19b)],..._0x5751fc};case _0x2d9dc7[_0x53ae53(0x1bd)]:return{'icon':_0x431ca7,'type':_0x2d9dc7[_0x53ae53(0x1bd)],..._0x5751fc};case _0x2d9dc7[_0x53ae53(0x19c)]:return{'icon':_0x24a7e6,'type':_0x2d9dc7[_0x53ae53(0x19c)],..._0x5751fc};case _0x2d9dc7[_0x53ae53(0x1c0)]:return{'icon':_0x534904,'type':_0x2d9dc7[_0x53ae53(0x1c0)],..._0x5751fc};case _0x2d9dc7[_0x53ae53(0x180)]:return{'icon':_0x42b48e,'type':_0x2d9dc7[_0x53ae53(0x180)],..._0x5751fc};}});}[_0x2cfabd(0x1b4)](_0x4b711e){const _0x487faf=_0x2cfabd;switch(_0x4b711e){case _0x2d9dc7[_0x487faf(0x1ae)]:return _0x487faf(0x191);case _0x2d9dc7[_0x487faf(0x185)]:return _0x487faf(0x1b6);default:return _0x487faf(0x1bc);}}[_0x2cfabd(0x17c)](_0x27678b,_0x31ab3b){const _0x357b0e=_0x2cfabd,_0x53cc75=this[_0x357b0e(0x181)],_0x48b2a6=new _0x27678b(_0x53cc75[_0x357b0e(0x1a6)]),_0x4f6cc3=_0x53cc75[_0x357b0e(0x1a3)][_0x357b0e(0x1ac)](_0x357b0e(0x17e));return _0x48b2a6[_0x357b0e(0x1bf)](_0x357b0e(0x1a9))['to'](_0x4f6cc3),_0x48b2a6['on'](_0x357b0e(0x1b0),()=>{const _0x2f85ca=_0x357b0e;_0x4f6cc3[_0x2f85ca(0x1b0)](_0x31ab3b);}),_0x48b2a6;}[_0x2cfabd(0x198)](_0xfef905){const _0x4800be=_0x2cfabd,{locale:_0x3f0cab}=this[_0x4800be(0x181)],_0x34f622=this[_0x4800be(0x181)][_0x4800be(0x193)][_0x4800be(0x1ac)](_0x4800be(0x18e)),_0x16c58e=_0xfef905[0x0],_0x1ede0b=this[_0x4800be(0x17c)](_0x5d9b85,_0x16c58e[_0x4800be(0x19e)]);return _0x1ede0b[_0x4800be(0x192)]=_0x16c58e[_0x4800be(0x192)],_0x1ede0b[_0x4800be(0x1bf)](_0x4800be(0x190))['to'](_0x34f622,_0x4800be(0x1a2),_0x316cc9=>_0x2d10cd(_0x3f0cab,_0x16c58e[_0x4800be(0x19e)],_0x316cc9?_0x4800be(0x183):_0x4800be(0x18b))[_0x4800be(0x1c1)]),_0x1ede0b[_0x4800be(0x194)]=!0x0,_0x1ede0b;}[_0x2cfabd(0x1b9)](_0xe90056){const _0x5a9fed=_0x2cfabd,{locale:_0x42b046}=this[_0x5a9fed(0x181)],_0x4aee7a=this[_0x5a9fed(0x181)][_0x5a9fed(0x193)][_0x5a9fed(0x1ac)](_0x5a9fed(0x18e));return _0xe90056[_0x5a9fed(0x199)](_0x3b449f=>{const _0x207569=_0x5a9fed,_0x12b3be=this[_0x207569(0x17c)](_0x5d9b85,_0x3b449f[_0x207569(0x19e)]);return _0x12b3be[_0x207569(0x19a)]=!0x0,_0x12b3be[_0x207569(0x192)]=_0x3b449f[_0x207569(0x192)],_0x12b3be[_0x207569(0x1bf)](_0x207569(0x190))['to'](_0x4aee7a,_0x207569(0x1a2),_0x57f3d1=>_0x2d10cd(_0x42b046,_0x3b449f[_0x207569(0x19e)],_0x57f3d1?_0x207569(0x183):_0x207569(0x18b))[_0x207569(0x1c1)]),_0x12b3be;});}[_0x2cfabd(0x18f)](_0x19d9d5){const _0x2acad3=_0x2cfabd;return _0x19d9d5[_0x2acad3(0x199)](_0x47e9a1=>{const _0x50a389=_0x2acad3,_0x434ada=this[_0x50a389(0x17c)](_0x4fa337,_0x47e9a1[_0x50a389(0x19e)]);return _0x434ada[_0x50a389(0x192)]=_0x47e9a1[_0x50a389(0x192)],_0x434ada[_0x50a389(0x190)]=_0x47e9a1[_0x50a389(0x189)],_0x434ada;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1b6cc9}from'ckeditor5/src/core.js';import{FileRepository as _0x440f58}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x3516cc}from'./uploadcareediting.js';import{UploadUtils as _0x580832}from'./utils/uploadutils.js';import{getImageUrls as _0x55e288}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1b6cc9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x440f58,_0x3516cc];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4ae9f2=this['editor'];if(!!!_0x4ae9f2['config']['get']('uploadcare'))return;_0x4ae9f2['plugins']['get'](_0x440f58)['createUploadAdapter']=_0x2fa6ba=>new k(_0x2fa6ba,_0x4ae9f2),_0x4ae9f2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x380b68,{imageElement:_0x2cc72b,data:_0x156b3f})=>{_0x4ae9f2['model']['change'](_0x40e987=>{_0x40e987['setAttribute']('uploadcareImageId',_0x156b3f['uploadcareImageId'],_0x2cc72b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x54e75e,_0x195ed1){this['loader']=_0x54e75e,this['editor']=_0x195ed1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2bb35a=await this['loader']['file'];return _0x580832['upload']({'file':_0x2bb35a,'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':_0x1d65b1=>{_0x1d65b1&&_0x1d65b1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d65b1['value']);}})['then'](async _0x97bae8=>{const {imageFallbackUrl:_0x2ec5a1,imageSources:_0x55b852}=_0x55e288(_0x97bae8['cdnUrl'],_0x97bae8['imageInfo']['width']);return{'uploadcareImageId':_0x97bae8['uuid'],'default':_0x2ec5a1,'sources':_0x55b852};})['catch'](()=>{const _0x561dcc=t('Cannot\x20upload\x20file:')+('\x20'+_0x2bb35a['name']+'.');return Promise['reject'](_0x561dcc);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x383178}from'../uploadcareconfig.js';export function getTranslation(_0x16ef19,_0x39c0f3,_0x3daed1){const t=_0x16ef19['t'],_0x46bcef=_0x16ef19['t'];switch(_0x39c0f3){case _0x383178['Local']:return{'text':_0x46bcef('Insert'===_0x3daed1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x46bcef('From\x20computer')};case _0x383178['URL']:return{'text':'Insert'===_0x3daed1?_0x46bcef('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x46bcef('Via\x20URL')};case _0x383178['Dropbox']:return{'text':t('Insert'===_0x3daed1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x383178['Facebook']:return{'text':t('Insert'===_0x3daed1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x383178['GDrive']:return{'text':t('Insert'===_0x3daed1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x383178['GPhotos']:return{'text':t('Insert'===_0x3daed1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x383178['OneDrive']:return{'text':t('Insert'===_0x3daed1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x39c0f3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x6311d4=_0x3bb0;function _0x134a(){var _0x5cfbf2=['bindTemplate','createCollection','focusTracker','870180ekqnZv','20783iToArM','true','11950929muRBln','div','505352LiOcOt','99282aShttJ','getFocusableElement','fire','736pbXoUb','focusCycler','6NpnPMo','63454zKmero','1686860RQWYGX','forwardCycle'];_0x134a=function(){return _0x5cfbf2;};return _0x134a();}(function(_0x37a202,_0x31d9f9){var _0x24fbd5=_0x3bb0,_0x5b8f31=_0x37a202();while(!![]){try{var _0x2faf06=parseInt(_0x24fbd5(0x112))/0x1*(-parseInt(_0x24fbd5(0x113))/0x2)+-parseInt(_0x24fbd5(0x10d))/0x3+-parseInt(_0x24fbd5(0x10c))/0x4+-parseInt(_0x24fbd5(0x114))/0x5+-parseInt(_0x24fbd5(0x107))/0x6+parseInt(_0x24fbd5(0x108))/0x7*(-parseInt(_0x24fbd5(0x110))/0x8)+parseInt(_0x24fbd5(0x10a))/0x9;if(_0x2faf06===_0x31d9f9)break;else _0x5b8f31['push'](_0x5b8f31['shift']());}catch(_0x366581){_0x5b8f31['push'](_0x5b8f31['shift']());}}}(_0x134a,0x36549));import{FocusTracker as _0x1f9efb}from'ckeditor5/src/utils.js';function _0x3bb0(_0x18e218,_0x11945d){var _0x134ad8=_0x134a();return _0x3bb0=function(_0x3bb040,_0x14d2da){_0x3bb040=_0x3bb040-0x106;var _0x2a4f0f=_0x134ad8[_0x3bb040];return _0x2a4f0f;},_0x3bb0(_0x18e218,_0x11945d);}import{View as _0x3aee95,FocusCycler as _0x44fdd6}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3aee95{[_0x6311d4(0x106)];[_0x6311d4(0x111)];constructor(_0x1648e6){var _0x3c1e9c=_0x6311d4;super(_0x1648e6),this[_0x3c1e9c(0x106)]=new _0x1f9efb(),this[_0x3c1e9c(0x111)]=new _0x44fdd6({'focusables':this[_0x3c1e9c(0x117)](),'focusTracker':this[_0x3c1e9c(0x106)]});}[_0x6311d4(0x10e)](){var _0x2c5893=_0x6311d4;return{'tag':_0x2c5893(0x10b),'attributes':{'aria-hidden':_0x2c5893(0x109),'tabindex':'0'},'on':{'focus':this[_0x2c5893(0x116)]['to'](()=>{var _0x185aa2=_0x2c5893;this[_0x185aa2(0x111)][_0x185aa2(0x10f)](_0x185aa2(0x115));})}};}}
|