@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251010.0 → 0.0.0-nightly-20251011.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e92e9=_0x32de;(function(_0x2d217f,_0xcee104){const _0x30c61c=_0x32de,_0x10bb3e=_0x2d217f();while(!![]){try{const _0x740275=parseInt(_0x30c61c(0x1f1))/0x1+parseInt(_0x30c61c(0x1e7))/0x2+-parseInt(_0x30c61c(0x1dc))/0x3+-parseInt(_0x30c61c(0x1cb))/0x4+-parseInt(_0x30c61c(0x1fe))/0x5*(-parseInt(_0x30c61c(0x1f0))/0x6)+-parseInt(_0x30c61c(0x1fa))/0x7+parseInt(_0x30c61c(0x1bd))/0x8*(-parseInt(_0x30c61c(0x1cd))/0x9);if(_0x740275===_0xcee104)break;else _0x10bb3e['push'](_0x10bb3e['shift']());}catch(_0x325357){_0x10bb3e['push'](_0x10bb3e['shift']());}}}(_0x848a,0xadaec));import{Plugin as _0x1b0892}from'ckeditor5/src/core.js';import{Dialog as _0x10d232}from'ckeditor5/src/ui.js';function _0x848a(){const _0x2f03e6=['getAttribute','_initImageProcessingIndicator','removeAttribute','body','downcast','7716Drwzzd','1356541pNDtCn','config','_initCtx','for','insertImage','_initConversion','remove','uploadcare.uploader','uploadcareImageReplace','5452405MUKZwy','replaceImageSource','imageInline','upcast','1355MYYYbP','editor','elementToAttribute','_initConfig','destroy','execute','render','listenTo','schema','#uc-icon-arrow-down','map','conversion','querySelector','iconHrefResolver','join','extend','afterInit','data-uc-image-id','PictureEditing','7096fPVIBt','isOfficialPlugin','get','href','uploadcareImageId','input[uploadcare-file-input]','appendChild','selection','uc-config','fromCharCode','init','add','pluginName','once','3733848EDujmw','contentLanguage','4185ZQbpzM','uploadcare.pubkey','true','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploadcare','configElement','getSelectedElement','UploadcareEditing','_initSchema','_ctxElement','uc-upload-ctx-provider','ucContextId','uploader-','attributeToAttribute','view','41421ViDDRI','model','isPremiumPlugin','requires','closeMax','isRegistered','editing','commands','document','imageBlock','cleanupImage','2289992JCTUJp','locale','ctxElement','_configElement'];_0x848a=function(){return _0x2f03e6;};return _0x848a();}import{createElement as _0x2e316e,global as _0x262c74,uid as _0xb33d5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5215a6}from'./uploadcarecommand.js';function _0x32de(_0x1591f8,_0x22da68){const _0x848a28=_0x848a();return _0x32de=function(_0x32de62,_0x239d2a){_0x32de62=_0x32de62-0x1bc;let _0x4bf0a0=_0x848a28[_0x32de62];return _0x4bf0a0;},_0x32de(_0x1591f8,_0x22da68);}import{UploadcareUploadAdapter as _0x22e710}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x18f42a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1b0892{[_0x5e92e9(0x1ea)]=null;[_0x5e92e9(0x1d6)]=null;static get[_0x5e92e9(0x1c9)](){const _0x4b87f9=_0x5e92e9;return _0x4b87f9(0x1d4);}static get[_0x5e92e9(0x1df)](){const _0x1deb99=_0x5e92e9;return[_0x1deb99(0x1bc),_0x22e710,_0x10d232];}static get[_0x5e92e9(0x1be)](){return!0x0;}static get[_0x5e92e9(0x1de)](){return!0x0;}[_0x5e92e9(0x1d8)];get[_0x5e92e9(0x1d2)](){const _0x5ef87b=_0x5e92e9;return this[_0x5ef87b(0x1ea)];}get[_0x5e92e9(0x1e9)](){const _0x99ee95=_0x5e92e9;return this[_0x99ee95(0x1d6)];}constructor(_0x516d2e){const _0x2c8613=_0x5e92e9;super(_0x516d2e),this[_0x2c8613(0x1d8)]=_0xb33d5();}[_0x5e92e9(0x1c7)](){const _0x6b757b=_0x5e92e9,_0x14cf53=this[_0x6b757b(0x1ff)];_0x14cf53[_0x6b757b(0x1e3)][_0x6b757b(0x1c8)](_0x6b757b(0x1d1),new _0x5215a6(_0x14cf53));}[_0x5e92e9(0x20e)](){const _0x361e94=_0x5e92e9;this[_0x361e94(0x1d5)](),this[_0x361e94(0x1f6)](),this[_0x361e94(0x201)](),this[_0x361e94(0x1f3)](),this[_0x361e94(0x1ec)](),this[_0x361e94(0x205)](this[_0x361e94(0x1ff)],_0x361e94(0x202),()=>{const _0x4f3131=_0x361e94;this[_0x4f3131(0x1ea)]&&(this[_0x4f3131(0x1ea)][_0x4f3131(0x1f7)](),this[_0x4f3131(0x1ea)]=null),this[_0x4f3131(0x1d6)]&&(this[_0x4f3131(0x1d6)][_0x4f3131(0x1f7)](),this[_0x4f3131(0x1d6)]=null);const _0x5ea26f=_0x262c74[_0x4f3131(0x1e4)][_0x4f3131(0x20a)](_0x4f3131(0x1c2));_0x5ea26f&&_0x5ea26f[_0x4f3131(0x1f7)]();}),async function(_0x221bf0){const _0x5db07a=_0x1e73f5([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x214298=0x3d8d0df,_0x3757ad=0x3dfa517^_0x214298,_0x33d53d=window[_0x1e73f5([0x44,0x61,0x74,0x65])][_0x1e73f5([0x6e,0x6f,0x77])](),_0x3b8a1d=_0x221bf0[_0x1e73f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6bae42=new window[(_0x1e73f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3319=>{_0x3b8a1d[_0x1e73f5([0x6f,0x6e,0x63,0x65])](_0x1e73f5([0x72,0x65,0x61,0x64,0x79]),_0x5e3319);}),_0x138355={[_0x1e73f5([0x6b,0x74,0x79])]:_0x1e73f5([0x45,0x43]),[_0x1e73f5([0x75,0x73,0x65])]:_0x1e73f5([0x73,0x69,0x67]),[_0x1e73f5([0x63,0x72,0x76])]:_0x1e73f5([0x50,0x2d,0x32,0x35,0x36]),[_0x1e73f5([0x78])]:_0x1e73f5([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]),[_0x1e73f5([0x79])]:_0x1e73f5([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]),[_0x1e73f5([0x61,0x6c,0x67])]:_0x1e73f5([0x45,0x53,0x32,0x35,0x36])},_0x163584=_0x3b8a1d[_0x1e73f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e73f5([0x67,0x65,0x74])](_0x1e73f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2adf1d(){let _0x866c1e,_0x18633a=null,_0x325c60=null;try{if(_0x163584==_0x1e73f5([0x47,0x50,0x4c]))return _0x1e73f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x866c1e=_0x405c13(),!_0x866c1e)return _0x1e73f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x866c1e[_0x1e73f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x325c60=_0x4dee87(_0x866c1e[_0x1e73f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x866c1e[_0x1e73f5([0x6a,0x74,0x69])])),await _0xa21ee1()?_0x28d820()?_0x18b6f5()?_0x1e73f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x482363()?(_0x866c1e[_0x1e73f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e73f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18633a=_0x12f554(_0x1e73f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x866c1e[_0x1e73f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e73f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x18633a=_0x12f554(_0x1e73f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b8040()):_0x1e73f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e73f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e73f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e73f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18b6f5(){const _0x50300b=[_0x1e73f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e73f5([0x74,0x72,0x69,0x61,0x6c])][_0x1e73f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x866c1e[_0x1e73f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33d53d/0x3e8:0xe10*_0x3757ad;return _0x866c1e[_0x1e73f5([0x65,0x78,0x70])]<_0x50300b;}function _0x28d820(){const _0x3f547e=_0x866c1e[_0x1e73f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f547e&&(!!_0x3f547e[_0x1e73f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e73f5([0x2a]))||!!_0x3f547e[_0x1e73f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e73f5([0x55,0x50,0x4c,0x43])));}function _0x482363(){const _0xb99e97=_0x32de,_0x45df21=_0x866c1e[_0x1e73f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45df21||0x0==_0x45df21[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44980f}=new URL(window[_0x1e73f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xb99e97(0x1c0)]);if(_0x45df21[_0x1e73f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44980f))return!0x0;const _0x2f1f47=_0x44980f[_0x1e73f5([0x73,0x70,0x6c,0x69,0x74])](_0x1e73f5([0x2e]));return _0x45df21[_0x1e73f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2cfc5e=>_0x2cfc5e[_0x1e73f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e73f5([0x2a])))[_0x1e73f5([0x6d,0x61,0x70])](_0x3720a8=>_0x3720a8[_0x1e73f5([0x73,0x70,0x6c,0x69,0x74])](_0x1e73f5([0x2e])))[_0x1e73f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5420c6=>_0x5420c6[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f1f47[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e73f5([0x6d,0x61,0x70])](_0x24bd4a=>Array(_0x2f1f47[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24bd4a[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e73f5([0x66,0x69,0x6c,0x6c])](_0x24bd4a[0x0]===_0x1e73f5([0x2a])?_0x1e73f5([0x2a]):'')[_0x1e73f5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24bd4a))[_0x1e73f5([0x73,0x6f,0x6d,0x65])](_0x236846=>_0x2f1f47[_0x1e73f5([0x65,0x76,0x65,0x72,0x79])]((_0x1d03fd,_0xfdfcac)=>_0x236846[_0xfdfcac]===_0x1d03fd||_0x236846[_0xfdfcac]===_0x1e73f5([0x2a])));}function _0x4b8040(){return _0x18633a&&_0x325c60?new window[(_0x1e73f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3270ec,_0x593df7)=>{_0x18633a[_0x1e73f5([0x74,0x68,0x65,0x6e])](_0x3270ec,_0x593df7),_0x325c60[_0x1e73f5([0x74,0x68,0x65,0x6e])](_0x3c9267=>{_0x3c9267!=_0x1e73f5([0x56,0x61,0x6c,0x69,0x64])&&_0x3270ec(_0x3c9267);},_0x593df7);}):_0x18633a||_0x325c60||_0x1e73f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4dee87(_0x5d7291,_0x574dee){return new window[(_0x1e73f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bfd41=>{if(_0x249cc2())return _0x2bfd41(_0x1e73f5([0x56,0x61,0x6c,0x69,0x64]));_0x1addc8(),_0x3b8a1d[_0x1e73f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e73f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bd562=!0x1;const _0x43817a=_0xb33d5();function _0x4932e7(_0x427a7a){return!!_0x427a7a&&(typeof _0x427a7a===_0x1e73f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x427a7a===_0x1e73f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x427a7a[_0x1e73f5([0x74,0x68,0x65,0x6e])]===_0x1e73f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x427a7a[_0x1e73f5([0x63,0x61,0x74,0x63,0x68])]===_0x1e73f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9f8741(_0x4a3c10){_0xfde4ee(_0x4a3c10)[_0x1e73f5([0x74,0x68,0x65,0x6e])](_0x4eb559=>{if(!_0x4eb559||_0x4eb559[_0x1e73f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e73f5([0x6f,0x6b]))return _0x1e73f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ccd19(_0x425b1b(_0x43817a+_0x574dee))!=_0x4eb559[_0x1e73f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e73f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e73f5([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e73f5([0x74,0x68,0x65,0x6e])](_0x419e55=>(_0x44dcd8(),_0x419e55),()=>{const _0x3dd7f2=_0x20cdec();return null==_0x3dd7f2?(_0x44dcd8(),_0x1e73f5([0x56,0x61,0x6c,0x69,0x64])):_0x1e73f5(_0x33d53d-_0x3dd7f2>(0x27d454df^_0x214298)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e73f5([0x74,0x68,0x65,0x6e])](_0x2bfd41)[_0x1e73f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bfd41(_0x1e73f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18f7a7=0x3ee3e5f^_0x214298;function _0x44dcd8(){const _0x3043bc=_0x1e73f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ccd19(_0x425b1b(_0x5d7291)),_0x1908f5=_0x152828(_0x4ccd19(window[_0x1e73f5([0x4d,0x61,0x74,0x68])][_0x1e73f5([0x63,0x65,0x69,0x6c])](_0x33d53d/_0x18f7a7)));window[_0x1e73f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e73f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3043bc,_0x1908f5);}function _0x20cdec(){const _0x362d47=_0x1e73f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ccd19(_0x425b1b(_0x5d7291)),_0x46b7b9=window[_0x1e73f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e73f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x362d47);return _0x46b7b9?window[_0x1e73f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x152828(_0x46b7b9),0x10)*_0x18f7a7:null;}function _0xfde4ee(_0x5fb3c3){return new window[(_0x1e73f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1289d7,_0x22492f)=>{_0x5fb3c3[_0x1e73f5([0x74,0x68,0x65,0x6e])](_0x1289d7,_0x22492f),window[_0x1e73f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22492f,0x3d9041f^_0x214298);});}}_0x3b8a1d[_0x1e73f5([0x6f,0x6e])](_0x1e73f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56e871,_0x43a53b)=>{if(_0x43a53b[0x0]!=_0x5d7291)return _0x2bfd41(_0x1e73f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43a53b[0x1]={..._0x43a53b[0x1],[_0x1e73f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43817a};},{[_0x1e73f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e73f5([0x68,0x69,0x67,0x68])}),_0x3b8a1d[_0x1e73f5([0x6f,0x6e])](_0x1e73f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x385047=>{_0x4932e7(_0x385047[_0x1e73f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bd562=!0x0,_0x9f8741(_0x385047[_0x1e73f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e73f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e73f5([0x6c,0x6f,0x77])}),_0x6bae42[_0x1e73f5([0x74,0x68,0x65,0x6e])](()=>{_0x2bd562||_0x2bfd41(_0x1e73f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x249cc2(){return _0x3b8a1d[_0x1e73f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e73f5([0x76,0x69,0x65,0x77])][_0x1e73f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e73f5([0x61,0x75,0x74,0x6f]);}function _0x1addc8(){_0x3b8a1d[_0x1e73f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e73f5([0x76,0x69,0x65,0x77])][_0x1e73f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e73f5([0x61,0x75,0x74,0x6f]);}}function _0x12f554(_0x1ea205){const _0x4fda45=[new window[(_0x1e73f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x236aef=>setTimeout(_0x236aef,0x3d1ee13^_0x214298)),_0x6bae42[_0x1e73f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e73f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389127=>{let _0x3fb43e=0x0;_0x3b8a1d[_0x1e73f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e73f5([0x6f,0x6e])](_0x1e73f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23ac9e,_0xb32c5e)=>{_0xb32c5e[0x0][_0x1e73f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fb43e++,_0x3fb43e==(0x3d8d127^_0x214298)&&(_0x389127(),_0x23ac9e[_0x1e73f5([0x6f,0x66,0x66])]());});}))];return window[_0x1e73f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e73f5([0x72,0x61,0x63,0x65])](_0x4fda45)[_0x1e73f5([0x74,0x68,0x65,0x6e])](()=>_0x1ea205);}async function _0x5f3f41(){await _0x6bae42,_0x3b8a1d[_0x1e73f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e73f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x361c90,_0x3b8a1d[_0x1e73f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e73f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x361c90,_0x3b8a1d[_0x1e73f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e73f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x354988(_0x3140d4){const _0x6fae9e=_0xeab383();_0x3b8a1d[_0x6fae9e]=_0x1e73f5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3140d4,_0x3140d4!=_0x1e73f5([0x56,0x61,0x6c,0x69,0x64])&&_0x5f3f41();}function _0xeab383(){const _0x3d81d1=window[_0x1e73f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e73f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e73f5([0x6e,0x6f,0x77])]())[_0x1e73f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e73f5([0x2e]),'');let _0x5eb47f=_0x1e73f5([0x52]);for(let _0x422c01=0x0;_0x422c01<_0x3d81d1[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x422c01+=0x2){let _0x2b5e14=window[_0x1e73f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d81d1[_0x1e73f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x422c01,_0x422c01+0x2));_0x2b5e14>=_0x5db07a[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b5e14-=_0x5db07a[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5eb47f+=_0x5db07a[_0x2b5e14];}return _0x5eb47f;}function _0x405c13(){const _0x44cfa6=_0x163584[_0x1e73f5([0x73,0x70,0x6c,0x69,0x74])](_0x1e73f5([0x2e]));if(0x3!=_0x44cfa6[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5efef7(_0x44cfa6[0x1]);function _0x5efef7(_0x1a7e78){const _0x400fd7=_0x588773(_0x1a7e78);return _0x400fd7&&_0x1f50f0()?_0x400fd7:null;function _0x1f50f0(){const _0x53f0f8=_0x400fd7[_0x1e73f5([0x6a,0x74,0x69])],_0x1a3de6=window[_0x1e73f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53f0f8[_0x1e73f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53f0f8[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x593e58={..._0x400fd7,[_0x1e73f5([0x6a,0x74,0x69])]:_0x53f0f8[_0x1e73f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53f0f8[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x593e58[_0x1e73f5([0x76,0x63])],_0x425b1b(_0x593e58)==_0x1a3de6;}}}async function _0xa21ee1(){let _0x4c4f5b=!0x0;try{const _0x10cf69=_0x163584[_0x1e73f5([0x73,0x70,0x6c,0x69,0x74])](_0x1e73f5([0x2e])),[_0x36f62b,_0x2d2fc5,_0xb8da81]=_0x10cf69;return _0x199658(_0x36f62b),await _0x4ed160(_0x36f62b,_0x2d2fc5,_0xb8da81),_0x4c4f5b;}catch{return!0x1;}function _0x199658(_0x1f4fb7){const _0x3090c3=_0x588773(_0x1f4fb7);_0x3090c3&&_0x3090c3[_0x1e73f5([0x61,0x6c,0x67])]==_0x1e73f5([0x45,0x53,0x32,0x35,0x36])||(_0x4c4f5b=!0x1);}async function _0x4ed160(_0x2998e0,_0x23a13a,_0x14416b){const _0x7b938b=window[_0x1e73f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e73f5([0x66,0x72,0x6f,0x6d])](_0x169116(_0x14416b),_0x2d08de=>_0x2d08de[_0x1e73f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53390c=new window[(_0x1e73f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e73f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2998e0+_0x1e73f5([0x2e])+_0x23a13a),_0x475a0c=window[_0x1e73f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e73f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x475a0c)return;const _0x14b1fb=await _0x475a0c[_0x1e73f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e73f5([0x6a,0x77,0x6b]),_0x138355,{[_0x1e73f5([0x6e,0x61,0x6d,0x65])]:_0x1e73f5([0x45,0x43,0x44,0x53,0x41]),[_0x1e73f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e73f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e73f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x475a0c[_0x1e73f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e73f5([0x6e,0x61,0x6d,0x65])]:_0x1e73f5([0x45,0x43,0x44,0x53,0x41]),[_0x1e73f5([0x68,0x61,0x73,0x68])]:{[_0x1e73f5([0x6e,0x61,0x6d,0x65])]:_0x1e73f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14b1fb,_0x7b938b,_0x53390c)||(_0x4c4f5b=!0x1);}}function _0x588773(_0x31e504){return _0x31e504[_0x1e73f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e73f5([0x65,0x79]))?JSON[_0x1e73f5([0x70,0x61,0x72,0x73,0x65])](_0x169116(_0x31e504)):null;}function _0x169116(_0x5cc598){return window[_0x1e73f5([0x61,0x74,0x6f,0x62])](_0x5cc598[_0x1e73f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e73f5([0x2b]))[_0x1e73f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e73f5([0x2f])));}function _0x425b1b(_0x1abe25){let _0x45b033=0x1505;function _0x510cfc(_0x3f4429){for(let _0x19f279=0x0;_0x19f279<_0x3f4429[_0x1e73f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19f279++){const _0x46e5e3=_0x3f4429[_0x1e73f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19f279);_0x45b033=(_0x45b033<<0x5)+_0x45b033+_0x46e5e3,_0x45b033&=_0x45b033;}}function _0x1e39a6(_0x1478ce){Array[_0x1e73f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1478ce)?_0x1478ce[_0x1e73f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e39a6):_0x1478ce&&typeof _0x1478ce==_0x1e73f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e73f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1478ce)[_0x1e73f5([0x73,0x6f,0x72,0x74])]()[_0x1e73f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x586e2c,_0x2fd705])=>{_0x510cfc(_0x586e2c),_0x1e39a6(_0x2fd705);}):_0x510cfc(window[_0x1e73f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1478ce));}return _0x1e39a6(_0x1abe25),_0x45b033>>>0x0;}function _0x4ccd19(_0x32f0a6){return _0x32f0a6[_0x1e73f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e73f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e73f5([0x30]));}function _0x152828(_0x3398ed){return _0x3398ed[_0x1e73f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e73f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e73f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x361c90(){}function _0x1e73f5(_0x2ed8ab){const _0x2f8303=_0x32de;return _0x2ed8ab[_0x2f8303(0x208)](_0xc9b8b5=>String[_0x2f8303(0x1c6)](_0xc9b8b5))[_0x2f8303(0x20c)]('');}_0x354988(await _0x2adf1d());}(this);}[_0x5e92e9(0x1d5)](){const _0x41b1ba=_0x5e92e9,_0x3e58df=this[_0x41b1ba(0x1ff)][_0x41b1ba(0x1dd)][_0x41b1ba(0x206)];_0x3e58df[_0x41b1ba(0x1e1)](_0x41b1ba(0x1e5))&&_0x3e58df[_0x41b1ba(0x20d)](_0x41b1ba(0x1e5),{'allowAttributes':[_0x41b1ba(0x1c1)]}),_0x3e58df[_0x41b1ba(0x1e1)](_0x41b1ba(0x1fc))&&_0x3e58df[_0x41b1ba(0x20d)](_0x41b1ba(0x1fc),{'allowAttributes':[_0x41b1ba(0x1c1)]});}[_0x5e92e9(0x1f6)](){const _0x13bc6f=_0x5e92e9,_0x4d7015=this[_0x13bc6f(0x1ff)];_0x4d7015[_0x13bc6f(0x209)][_0x13bc6f(0x1f4)](_0x13bc6f(0x1ef))[_0x13bc6f(0x1da)]({'model':_0x13bc6f(0x1c1),'view':_0x13bc6f(0x20f)}),_0x4d7015[_0x13bc6f(0x209)][_0x13bc6f(0x1f4)](_0x13bc6f(0x1fd))[_0x13bc6f(0x200)]({'model':{'key':_0x13bc6f(0x1c1),'value':_0x4137c7=>_0x4137c7[_0x13bc6f(0x1eb)](_0x13bc6f(0x20f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x8d3ba4=_0x4d7015[_0x13bc6f(0x1e3)][_0x13bc6f(0x1bf)](_0x13bc6f(0x1fb));_0x8d3ba4&&this[_0x13bc6f(0x205)](_0x8d3ba4,_0x13bc6f(0x1e6),(_0x47a019,[_0x1d4c90,_0x4d5fbf])=>{const _0x212a08=_0x13bc6f;_0x1d4c90[_0x212a08(0x1ed)](_0x212a08(0x1c1),_0x4d5fbf);});}[_0x5e92e9(0x201)](){const _0x2d1174=_0x5e92e9,_0x285438=this[_0x2d1174(0x1ff)][_0x2d1174(0x1f2)][_0x2d1174(0x1bf)](_0x2d1174(0x1f8))||{},_0x54da4d=this[_0x2d1174(0x1ff)][_0x2d1174(0x1f2)][_0x2d1174(0x1bf)](_0x2d1174(0x1ce))||'';this[_0x2d1174(0x1ea)]=_0x2e316e(_0x262c74[_0x2d1174(0x1e4)],_0x2d1174(0x1c5),{..._0x285438,'pubkey':_0x54da4d,'ctx-name':_0x2d1174(0x1d9)+this[_0x2d1174(0x1d8)],'sourceList':'','imgOnly':_0x2d1174(0x1cf),'removeCopyright':_0x2d1174(0x1cf),'localeName':this[_0x2d1174(0x1ff)][_0x2d1174(0x1e8)][_0x2d1174(0x1cc)],'externalSourcesEmbedCss':_0x2d1174(0x1d0)}),this[_0x2d1174(0x1ea)][_0x2d1174(0x20b)]=_0x41459d=>{const _0x2c82b5=_0x2d1174;if(_0x2c82b5(0x1e0)==_0x41459d)return _0x2c82b5(0x207);},_0x262c74[_0x2d1174(0x1e4)][_0x2d1174(0x1ee)][_0x2d1174(0x1c3)](this[_0x2d1174(0x1ea)]);}[_0x5e92e9(0x1f3)](){const _0x3e027e=_0x5e92e9;this[_0x3e027e(0x1d6)]=_0x2e316e(_0x262c74[_0x3e027e(0x1e4)],_0x3e027e(0x1d7),{'ctx-name':_0x3e027e(0x1d9)+this[_0x3e027e(0x1d8)]}),_0x262c74[_0x3e027e(0x1e4)][_0x3e027e(0x1ee)][_0x3e027e(0x1c3)](this[_0x3e027e(0x1d6)]);}[_0x5e92e9(0x1ec)](){const _0x2da3d9=_0x5e92e9,_0x515bc5=this[_0x2da3d9(0x1ff)][_0x2da3d9(0x1e3)][_0x2da3d9(0x1bf)](_0x2da3d9(0x1f5));_0x515bc5&&this[_0x2da3d9(0x205)](_0x515bc5,_0x2da3d9(0x203),()=>{const _0x4eae75=_0x2da3d9,_0x2e57df=this[_0x4eae75(0x1ff)][_0x4eae75(0x1dd)][_0x4eae75(0x1e4)][_0x4eae75(0x1c4)][_0x4eae75(0x1d3)]();_0x2e57df&&_0x2e57df[_0x4eae75(0x1eb)](_0x4eae75(0x1c1))&&this[_0x4eae75(0x1ff)][_0x4eae75(0x1e2)][_0x4eae75(0x1db)][_0x4eae75(0x1ca)](_0x4eae75(0x204),()=>{const _0x54a6e4=_0x4eae75;_0x18f42a(this[_0x54a6e4(0x1ff)],_0x2e57df);});});const _0x49119a=this[_0x2da3d9(0x1ff)][_0x2da3d9(0x1e3)][_0x2da3d9(0x1bf)](_0x2da3d9(0x1f9));_0x49119a&&this[_0x2da3d9(0x205)](_0x49119a,_0x2da3d9(0x203),()=>{const _0x102eb3=_0x2da3d9,_0x436bf5=this[_0x102eb3(0x1ff)][_0x102eb3(0x1dd)][_0x102eb3(0x1e4)][_0x102eb3(0x1c4)][_0x102eb3(0x1d3)]();_0x436bf5&&_0x436bf5[_0x102eb3(0x1eb)](_0x102eb3(0x1c1))&&this[_0x102eb3(0x1ff)][_0x102eb3(0x1e2)][_0x102eb3(0x1db)][_0x102eb3(0x1ca)](_0x102eb3(0x204),()=>{const _0x1f7499=_0x102eb3;_0x18f42a(this[_0x1f7499(0x1ff)],_0x436bf5);});});}}
|
|
23
|
+
const _0x3d52bc=_0xc0c4;(function(_0x1254d9,_0xe08d3f){const _0x3e9df2=_0xc0c4,_0x2fbbe4=_0x1254d9();while(!![]){try{const _0x4ecc0c=-parseInt(_0x3e9df2(0xa7))/0x1+-parseInt(_0x3e9df2(0xc7))/0x2+-parseInt(_0x3e9df2(0x94))/0x3+-parseInt(_0x3e9df2(0xbd))/0x4+-parseInt(_0x3e9df2(0x7a))/0x5*(-parseInt(_0x3e9df2(0x89))/0x6)+-parseInt(_0x3e9df2(0xc0))/0x7*(parseInt(_0x3e9df2(0xa8))/0x8)+parseInt(_0x3e9df2(0x8b))/0x9;if(_0x4ecc0c===_0xe08d3f)break;else _0x2fbbe4['push'](_0x2fbbe4['shift']());}catch(_0xe45a01){_0x2fbbe4['push'](_0x2fbbe4['shift']());}}}(_0x48b1,0x55e87));import{Plugin as _0x2b62f8}from'ckeditor5/src/core.js';import{Dialog as _0x203f0c}from'ckeditor5/src/ui.js';function _0x48b1(){const _0x527d0f=['_initCtx','map','_ctxElement','downcast','once','getSelectedElement','join','config','iconHrefResolver','_initConfig','true','_initConversion','uc-upload-ctx-provider','init','render','uploader-','1407128XvOEiU','replaceImageSource','isRegistered','38444FVvvFU','isPremiumPlugin','remove','editor','imageInline','closeMax','uploadcareImageId','949346obnFJR','UploadcareEditing','listenTo','#uc-icon-arrow-down','view','commands','_initImageProcessingIndicator','1019050dCLNem','insertImage','elementToAttribute','ctxElement','attributeToAttribute','editing','cleanupImage','fromCharCode','conversion','appendChild','isOfficialPlugin','get','contentLanguage','add','querySelector','6TyjDFq','uploadcareImageReplace','22851450cawPQt','\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','extend','upcast','getAttribute','uploadcare','uploadcare.pubkey','locale','ucContextId','1816776xpLCNA','href','uploadcare.uploader','imageBlock','schema','afterInit','selection','model','input[uploadcare-file-input]','body','for','_configElement','uc-config','configElement','document','PictureEditing','requires','execute','pluginName','695318ZwIkgs','384IFKlmj','_initSchema','removeAttribute','destroy','data-uc-image-id'];_0x48b1=function(){return _0x527d0f;};return _0x48b1();}function _0xc0c4(_0x313b33,_0x1c87ea){const _0x48b19d=_0x48b1();return _0xc0c4=function(_0xc0c41e,_0x47df77){_0xc0c41e=_0xc0c41e-0x7a;let _0x47b781=_0x48b19d[_0xc0c41e];return _0x47b781;},_0xc0c4(_0x313b33,_0x1c87ea);}import{createElement as _0x4340ad,global as _0x3bbfed,uid as _0x49e15b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4eb626}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x19a9d7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f1cac}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2b62f8{[_0x3d52bc(0x9f)]=null;[_0x3d52bc(0xaf)]=null;static get[_0x3d52bc(0xa6)](){const _0x24c488=_0x3d52bc;return _0x24c488(0xc8);}static get[_0x3d52bc(0xa4)](){const _0x5dd8d0=_0x3d52bc;return[_0x5dd8d0(0xa3),_0x19a9d7,_0x203f0c];}static get[_0x3d52bc(0x84)](){return!0x0;}static get[_0x3d52bc(0xc1)](){return!0x0;}[_0x3d52bc(0x93)];get[_0x3d52bc(0xa1)](){const _0x4508fd=_0x3d52bc;return this[_0x4508fd(0x9f)];}get[_0x3d52bc(0x7d)](){const _0x4dc971=_0x3d52bc;return this[_0x4dc971(0xaf)];}constructor(_0x270f84){const _0x2a5112=_0x3d52bc;super(_0x270f84),this[_0x2a5112(0x93)]=_0x49e15b();}[_0x3d52bc(0xba)](){const _0x37c1f2=_0x3d52bc,_0x239964=this[_0x37c1f2(0xc3)];_0x239964[_0x37c1f2(0xcc)][_0x37c1f2(0x87)](_0x37c1f2(0x90),new _0x4eb626(_0x239964));}[_0x3d52bc(0x99)](){const _0x2b9f7f=_0x3d52bc;this[_0x2b9f7f(0xa9)](),this[_0x2b9f7f(0xb8)](),this[_0x2b9f7f(0xb6)](),this[_0x2b9f7f(0xad)](),this[_0x2b9f7f(0xcd)](),this[_0x2b9f7f(0xc9)](this[_0x2b9f7f(0xc3)],_0x2b9f7f(0xab),()=>{const _0x4afa1f=_0x2b9f7f;this[_0x4afa1f(0x9f)]&&(this[_0x4afa1f(0x9f)][_0x4afa1f(0xc2)](),this[_0x4afa1f(0x9f)]=null),this[_0x4afa1f(0xaf)]&&(this[_0x4afa1f(0xaf)][_0x4afa1f(0xc2)](),this[_0x4afa1f(0xaf)]=null);const _0x25d1cd=_0x3bbfed[_0x4afa1f(0xa2)][_0x4afa1f(0x88)](_0x4afa1f(0x9c));_0x25d1cd&&_0x25d1cd[_0x4afa1f(0xc2)]();}),async function(_0x56009e){const _0x55b7dd=_0x2e1352([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x32995d=0x3d8d0df,_0x504297=0x3dfa53f^_0x32995d,_0x52509d=window[_0x2e1352([0x44,0x61,0x74,0x65])][_0x2e1352([0x6e,0x6f,0x77])](),_0x2a203f=_0x56009e[_0x2e1352([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c1386=new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56f0a3=>{_0x2a203f[_0x2e1352([0x6f,0x6e,0x63,0x65])](_0x2e1352([0x72,0x65,0x61,0x64,0x79]),_0x56f0a3);}),_0x1507ad={[_0x2e1352([0x6b,0x74,0x79])]:_0x2e1352([0x45,0x43]),[_0x2e1352([0x75,0x73,0x65])]:_0x2e1352([0x73,0x69,0x67]),[_0x2e1352([0x63,0x72,0x76])]:_0x2e1352([0x50,0x2d,0x32,0x35,0x36]),[_0x2e1352([0x78])]:_0x2e1352([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]),[_0x2e1352([0x79])]:_0x2e1352([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]),[_0x2e1352([0x61,0x6c,0x67])]:_0x2e1352([0x45,0x53,0x32,0x35,0x36])},_0x447c3c=_0x2a203f[_0x2e1352([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e1352([0x67,0x65,0x74])](_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38257b(){let _0x498462,_0x3f6650=null,_0x59ffad=null;try{if(_0x447c3c==_0x2e1352([0x47,0x50,0x4c]))return _0x2e1352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x498462=_0x54a3f7(),!_0x498462)return _0x2e1352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x498462[_0x2e1352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59ffad=_0x4f0fbd(_0x498462[_0x2e1352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x498462[_0x2e1352([0x6a,0x74,0x69])])),await _0x2a42b5()?_0x3710a7()?_0x12692b()?_0x2e1352([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4913e7()?(_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e1352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f6650=_0x33e131(_0x2e1352([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e1352([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f6650=_0x33e131(_0x2e1352([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x424dd2()):_0x2e1352([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e1352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e1352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e1352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x12692b(){const _0x10f9f6=[_0x2e1352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e1352([0x74,0x72,0x69,0x61,0x6c])][_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52509d/0x3e8:0xe10*_0x504297;return _0x498462[_0x2e1352([0x65,0x78,0x70])]<_0x10f9f6;}function _0x3710a7(){const _0x3aab00=_0x498462[_0x2e1352([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3aab00&&(!!_0x3aab00[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e1352([0x2a]))||!!_0x3aab00[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e1352([0x55,0x50,0x4c,0x43])));}function _0x4913e7(){const _0xadf817=_0xc0c4,_0x40fe67=_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40fe67||0x0==_0x40fe67[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20f702}=new URL(window[_0x2e1352([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xadf817(0x95)]);if(_0x40fe67[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f702))return!0x0;const _0x5f51f2=_0x20f702[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e]));return _0x40fe67[_0x2e1352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x183908=>_0x183908[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e1352([0x2a])))[_0x2e1352([0x6d,0x61,0x70])](_0x3c3912=>_0x3c3912[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e])))[_0x2e1352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x303ce6=>_0x303ce6[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f51f2[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e1352([0x6d,0x61,0x70])](_0x21492d=>Array(_0x5f51f2[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21492d[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e1352([0x66,0x69,0x6c,0x6c])](_0x21492d[0x0]===_0x2e1352([0x2a])?_0x2e1352([0x2a]):'')[_0x2e1352([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21492d))[_0x2e1352([0x73,0x6f,0x6d,0x65])](_0x38e5ea=>_0x5f51f2[_0x2e1352([0x65,0x76,0x65,0x72,0x79])]((_0x163ca5,_0x254025)=>_0x38e5ea[_0x254025]===_0x163ca5||_0x38e5ea[_0x254025]===_0x2e1352([0x2a])));}function _0x424dd2(){return _0x3f6650&&_0x59ffad?new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cee94,_0x28d658)=>{_0x3f6650[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x1cee94,_0x28d658),_0x59ffad[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x4259ff=>{_0x4259ff!=_0x2e1352([0x56,0x61,0x6c,0x69,0x64])&&_0x1cee94(_0x4259ff);},_0x28d658);}):_0x3f6650||_0x59ffad||_0x2e1352([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f0fbd(_0x3b4e47,_0x2b42e1){return new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aff95=>{if(_0x7a4869())return _0x5aff95(_0x2e1352([0x56,0x61,0x6c,0x69,0x64]));_0x4f61d2(),_0x2a203f[_0x2e1352([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e1352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x228f27=!0x1;const _0x537eae=_0x49e15b();function _0x3877b0(_0x53cd0c){return!!_0x53cd0c&&(typeof _0x53cd0c===_0x2e1352([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53cd0c===_0x2e1352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53cd0c[_0x2e1352([0x74,0x68,0x65,0x6e])]===_0x2e1352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53cd0c[_0x2e1352([0x63,0x61,0x74,0x63,0x68])]===_0x2e1352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e88fd(_0x5e5305){_0x40ab8c(_0x5e5305)[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x5028d6=>{if(!_0x5028d6||_0x5028d6[_0x2e1352([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e1352([0x6f,0x6b]))return _0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x394a75(_0x1a1c48(_0x537eae+_0x2b42e1))!=_0x5028d6[_0x2e1352([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e1352([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e1352([0x74,0x68,0x65,0x6e])](_0xa26d14=>(_0x24621c(),_0xa26d14),()=>{const _0x1f3e30=_0xe003ea();return null==_0x1f3e30?(_0x24621c(),_0x2e1352([0x56,0x61,0x6c,0x69,0x64])):_0x2e1352(_0x52509d-_0x1f3e30>(0x27d454df^_0x32995d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x5aff95)[_0x2e1352([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5aff95(_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x222ce2=0x3ee3e5f^_0x32995d;function _0x24621c(){const _0x27fb57=_0x2e1352([0x6c,0x6c,0x63,0x74,0x2d])+_0x394a75(_0x1a1c48(_0x3b4e47)),_0x1257c0=_0x177b99(_0x394a75(window[_0x2e1352([0x4d,0x61,0x74,0x68])][_0x2e1352([0x63,0x65,0x69,0x6c])](_0x52509d/_0x222ce2)));window[_0x2e1352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e1352([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27fb57,_0x1257c0);}function _0xe003ea(){const _0x20c7b0=_0x2e1352([0x6c,0x6c,0x63,0x74,0x2d])+_0x394a75(_0x1a1c48(_0x3b4e47)),_0x8f1e88=window[_0x2e1352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e1352([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20c7b0);return _0x8f1e88?window[_0x2e1352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x177b99(_0x8f1e88),0x10)*_0x222ce2:null;}function _0x40ab8c(_0x386c88){return new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a91c7,_0xa9542a)=>{_0x386c88[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x1a91c7,_0xa9542a),window[_0x2e1352([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa9542a,0x3d9041f^_0x32995d);});}}_0x2a203f[_0x2e1352([0x6f,0x6e])](_0x2e1352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x173c2d,_0x1fd650)=>{if(_0x1fd650[0x0]!=_0x3b4e47)return _0x5aff95(_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fd650[0x1]={..._0x1fd650[0x1],[_0x2e1352([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x537eae};},{[_0x2e1352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e1352([0x68,0x69,0x67,0x68])}),_0x2a203f[_0x2e1352([0x6f,0x6e])](_0x2e1352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x172722=>{_0x3877b0(_0x172722[_0x2e1352([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x228f27=!0x0,_0x3e88fd(_0x172722[_0x2e1352([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e1352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e1352([0x6c,0x6f,0x77])}),_0x3c1386[_0x2e1352([0x74,0x68,0x65,0x6e])](()=>{_0x228f27||_0x5aff95(_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7a4869(){return _0x2a203f[_0x2e1352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e1352([0x76,0x69,0x65,0x77])][_0x2e1352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e1352([0x61,0x75,0x74,0x6f]);}function _0x4f61d2(){_0x2a203f[_0x2e1352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e1352([0x76,0x69,0x65,0x77])][_0x2e1352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e1352([0x61,0x75,0x74,0x6f]);}}function _0x33e131(_0x5bae9f){const _0x2ce380=[new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4db8cb=>setTimeout(_0x4db8cb,0x3d1ee13^_0x32995d)),_0x3c1386[_0x2e1352([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17a84f=>{let _0x2b5330=0x0;_0x2a203f[_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e1352([0x6f,0x6e])](_0x2e1352([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57d270,_0x2d8218)=>{_0x2d8218[0x0][_0x2e1352([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b5330++,_0x2b5330==(0x3d8d127^_0x32995d)&&(_0x17a84f(),_0x57d270[_0x2e1352([0x6f,0x66,0x66])]());});}))];return window[_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e1352([0x72,0x61,0x63,0x65])](_0x2ce380)[_0x2e1352([0x74,0x68,0x65,0x6e])](()=>_0x5bae9f);}async function _0x433f77(){await _0x3c1386,_0x2a203f[_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e1352([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fe8f0,_0x2a203f[_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e1352([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fe8f0,_0x2a203f[_0x2e1352([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xcefe43(_0x3f782f){const _0x2cb582=_0x35f663();_0x2a203f[_0x2cb582]=_0x2e1352([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f782f,_0x3f782f!=_0x2e1352([0x56,0x61,0x6c,0x69,0x64])&&_0x433f77();}function _0x35f663(){const _0x1a71a1=window[_0x2e1352([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e1352([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e1352([0x6e,0x6f,0x77])]())[_0x2e1352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e1352([0x2e]),'');let _0x23ea7f=_0x2e1352([0x52]);for(let _0x364cc0=0x0;_0x364cc0<_0x1a71a1[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x364cc0+=0x2){let _0x251e19=window[_0x2e1352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a71a1[_0x2e1352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x364cc0,_0x364cc0+0x2));_0x251e19>=_0x55b7dd[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x251e19-=_0x55b7dd[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23ea7f+=_0x55b7dd[_0x251e19];}return _0x23ea7f;}function _0x54a3f7(){const _0x36f680=_0x447c3c[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e]));if(0x3!=_0x36f680[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ec7f4(_0x36f680[0x1]);function _0x1ec7f4(_0x21db09){const _0x4a3fcd=_0x5f342a(_0x21db09);return _0x4a3fcd&&_0x40b5fb()?_0x4a3fcd:null;function _0x40b5fb(){const _0x590ead=_0x4a3fcd[_0x2e1352([0x6a,0x74,0x69])],_0x46c388=window[_0x2e1352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590ead[_0x2e1352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x590ead[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x393a44={..._0x4a3fcd,[_0x2e1352([0x6a,0x74,0x69])]:_0x590ead[_0x2e1352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x590ead[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x393a44[_0x2e1352([0x76,0x63])],_0x1a1c48(_0x393a44)==_0x46c388;}}}async function _0x2a42b5(){let _0x5249a0=!0x0;try{const _0x105a33=_0x447c3c[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e])),[_0x47979b,_0x43facd,_0x87d3b4]=_0x105a33;return _0xcf4782(_0x47979b),await _0x51ea54(_0x47979b,_0x43facd,_0x87d3b4),_0x5249a0;}catch{return!0x1;}function _0xcf4782(_0x546e44){const _0x181c21=_0x5f342a(_0x546e44);_0x181c21&&_0x181c21[_0x2e1352([0x61,0x6c,0x67])]==_0x2e1352([0x45,0x53,0x32,0x35,0x36])||(_0x5249a0=!0x1);}async function _0x51ea54(_0x2ddb62,_0x1d2f7e,_0x28b19d){const _0x3309ba=window[_0x2e1352([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e1352([0x66,0x72,0x6f,0x6d])](_0x2d7671(_0x28b19d),_0x5e8178=>_0x5e8178[_0x2e1352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x490e5a=new window[(_0x2e1352([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e1352([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ddb62+_0x2e1352([0x2e])+_0x1d2f7e),_0x4b9f8a=window[_0x2e1352([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e1352([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b9f8a)return;const _0x46ddb0=await _0x4b9f8a[_0x2e1352([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e1352([0x6a,0x77,0x6b]),_0x1507ad,{[_0x2e1352([0x6e,0x61,0x6d,0x65])]:_0x2e1352([0x45,0x43,0x44,0x53,0x41]),[_0x2e1352([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e1352([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e1352([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b9f8a[_0x2e1352([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e1352([0x6e,0x61,0x6d,0x65])]:_0x2e1352([0x45,0x43,0x44,0x53,0x41]),[_0x2e1352([0x68,0x61,0x73,0x68])]:{[_0x2e1352([0x6e,0x61,0x6d,0x65])]:_0x2e1352([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46ddb0,_0x3309ba,_0x490e5a)||(_0x5249a0=!0x1);}}function _0x5f342a(_0x3843f7){return _0x3843f7[_0x2e1352([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e1352([0x65,0x79]))?JSON[_0x2e1352([0x70,0x61,0x72,0x73,0x65])](_0x2d7671(_0x3843f7)):null;}function _0x2d7671(_0x4677cd){return window[_0x2e1352([0x61,0x74,0x6f,0x62])](_0x4677cd[_0x2e1352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e1352([0x2b]))[_0x2e1352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e1352([0x2f])));}function _0x1a1c48(_0x246031){let _0x2b7b8e=0x1505;function _0x76536c(_0x87f004){for(let _0x253996=0x0;_0x253996<_0x87f004[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253996++){const _0xe0c732=_0x87f004[_0x2e1352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x253996);_0x2b7b8e=(_0x2b7b8e<<0x5)+_0x2b7b8e+_0xe0c732,_0x2b7b8e&=_0x2b7b8e;}}function _0x3f1189(_0x1029f5){Array[_0x2e1352([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1029f5)?_0x1029f5[_0x2e1352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f1189):_0x1029f5&&typeof _0x1029f5==_0x2e1352([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e1352([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1029f5)[_0x2e1352([0x73,0x6f,0x72,0x74])]()[_0x2e1352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35377d,_0x510e53])=>{_0x76536c(_0x35377d),_0x3f1189(_0x510e53);}):_0x76536c(window[_0x2e1352([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1029f5));}return _0x3f1189(_0x246031),_0x2b7b8e>>>0x0;}function _0x394a75(_0x115c78){return _0x115c78[_0x2e1352([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e1352([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e1352([0x30]));}function _0x177b99(_0x1fdda9){return _0x1fdda9[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e1352([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e1352([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fe8f0(){}function _0x2e1352(_0x39fa84){const _0x3bfb95=_0xc0c4;return _0x39fa84[_0x3bfb95(0xae)](_0xaf4b76=>String[_0x3bfb95(0x81)](_0xaf4b76))[_0x3bfb95(0xb3)]('');}_0xcefe43(await _0x38257b());}(this);}[_0x3d52bc(0xa9)](){const _0x1f6ba2=_0x3d52bc,_0x251b13=this[_0x1f6ba2(0xc3)][_0x1f6ba2(0x9b)][_0x1f6ba2(0x98)];_0x251b13[_0x1f6ba2(0xbf)](_0x1f6ba2(0x97))&&_0x251b13[_0x1f6ba2(0x8d)](_0x1f6ba2(0x97),{'allowAttributes':[_0x1f6ba2(0xc6)]}),_0x251b13[_0x1f6ba2(0xbf)](_0x1f6ba2(0xc4))&&_0x251b13[_0x1f6ba2(0x8d)](_0x1f6ba2(0xc4),{'allowAttributes':[_0x1f6ba2(0xc6)]});}[_0x3d52bc(0xb8)](){const _0x2a2b69=_0x3d52bc,_0x1c9f9d=this[_0x2a2b69(0xc3)];_0x1c9f9d[_0x2a2b69(0x82)][_0x2a2b69(0x9e)](_0x2a2b69(0xb0))[_0x2a2b69(0x7e)]({'model':_0x2a2b69(0xc6),'view':_0x2a2b69(0xac)}),_0x1c9f9d[_0x2a2b69(0x82)][_0x2a2b69(0x9e)](_0x2a2b69(0x8e))[_0x2a2b69(0x7c)]({'model':{'key':_0x2a2b69(0xc6),'value':_0xc8c6bf=>_0xc8c6bf[_0x2a2b69(0x8f)](_0x2a2b69(0xac))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd30eae=_0x1c9f9d[_0x2a2b69(0xcc)][_0x2a2b69(0x85)](_0x2a2b69(0xbe));_0xd30eae&&this[_0x2a2b69(0xc9)](_0xd30eae,_0x2a2b69(0x80),(_0xb2b0eb,[_0x474793,_0x23802c])=>{const _0x4be91b=_0x2a2b69;_0x474793[_0x4be91b(0xaa)](_0x4be91b(0xc6),_0x23802c);});}[_0x3d52bc(0xb6)](){const _0xf6f190=_0x3d52bc,_0x4bfc0f=this[_0xf6f190(0xc3)][_0xf6f190(0xb4)][_0xf6f190(0x85)](_0xf6f190(0x96))||{},_0x2dd3e9=this[_0xf6f190(0xc3)][_0xf6f190(0xb4)][_0xf6f190(0x85)](_0xf6f190(0x91))||'';this[_0xf6f190(0x9f)]=_0x4340ad(_0x3bbfed[_0xf6f190(0xa2)],_0xf6f190(0xa0),{..._0x4bfc0f,'pubkey':_0x2dd3e9,'ctx-name':_0xf6f190(0xbc)+this[_0xf6f190(0x93)],'sourceList':'','imgOnly':_0xf6f190(0xb7),'removeCopyright':_0xf6f190(0xb7),'localeName':this[_0xf6f190(0xc3)][_0xf6f190(0x92)][_0xf6f190(0x86)],'externalSourcesEmbedCss':_0xf6f190(0x8c)}),this[_0xf6f190(0x9f)][_0xf6f190(0xb5)]=_0x4a699=>{const _0x360c89=_0xf6f190;if(_0x360c89(0xc5)==_0x4a699)return _0x360c89(0xca);},_0x3bbfed[_0xf6f190(0xa2)][_0xf6f190(0x9d)][_0xf6f190(0x83)](this[_0xf6f190(0x9f)]);}[_0x3d52bc(0xad)](){const _0x540dd7=_0x3d52bc;this[_0x540dd7(0xaf)]=_0x4340ad(_0x3bbfed[_0x540dd7(0xa2)],_0x540dd7(0xb9),{'ctx-name':_0x540dd7(0xbc)+this[_0x540dd7(0x93)]}),_0x3bbfed[_0x540dd7(0xa2)][_0x540dd7(0x9d)][_0x540dd7(0x83)](this[_0x540dd7(0xaf)]);}[_0x3d52bc(0xcd)](){const _0x173617=_0x3d52bc,_0xffb5d2=this[_0x173617(0xc3)][_0x173617(0xcc)][_0x173617(0x85)](_0x173617(0x7b));_0xffb5d2&&this[_0x173617(0xc9)](_0xffb5d2,_0x173617(0xa5),()=>{const _0x2ae0ce=_0x173617,_0xeb789d=this[_0x2ae0ce(0xc3)][_0x2ae0ce(0x9b)][_0x2ae0ce(0xa2)][_0x2ae0ce(0x9a)][_0x2ae0ce(0xb2)]();_0xeb789d&&_0xeb789d[_0x2ae0ce(0x8f)](_0x2ae0ce(0xc6))&&this[_0x2ae0ce(0xc3)][_0x2ae0ce(0x7f)][_0x2ae0ce(0xcb)][_0x2ae0ce(0xb1)](_0x2ae0ce(0xbb),()=>{const _0x299f6e=_0x2ae0ce;_0x3f1cac(this[_0x299f6e(0xc3)],_0xeb789d);});});const _0xef8c30=this[_0x173617(0xc3)][_0x173617(0xcc)][_0x173617(0x85)](_0x173617(0x8a));_0xef8c30&&this[_0x173617(0xc9)](_0xef8c30,_0x173617(0xa5),()=>{const _0x158988=_0x173617,_0x1be52b=this[_0x158988(0xc3)][_0x158988(0x9b)][_0x158988(0xa2)][_0x158988(0x9a)][_0x158988(0xb2)]();_0x1be52b&&_0x1be52b[_0x158988(0x8f)](_0x158988(0xc6))&&this[_0x158988(0xc3)][_0x158988(0x7f)][_0x158988(0xcb)][_0x158988(0xb1)](_0x158988(0xbb),()=>{const _0x5644b9=_0x158988;_0x3f1cac(this[_0x5644b9(0xc3)],_0x1be52b);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x27172b,ObservableMixin as _0x1e85d5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x217ca3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x29c55d}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4443bb}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x40e009}from'../../utils/uploadutils.js';import{getImageUrls as _0x48f09b,getImageDimension as _0x27c359}from'../../utils/editingutils.js';import{isAncestor as _0x2ad8b9}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1e85d5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1e5562,_0x170d15,_0x59bee1){super(),this['_editor']=_0x1e5562,this['_dialog']=_0x170d15,this['_imageElement']=_0x59bee1,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 _0x261d0a=this['_imageElement'],_0x1dd3a7=_0x261d0a['getAttribute']('uploadcareImageId'),_0x2da4f2=_0x261d0a['getAttribute']('src');if(_0x1dd3a7)await this['_loadImageInfo'](_0x1dd3a7,_0x2da4f2);else{if(this['_imageCache']['has'](_0x2da4f2)){const _0x3c9e9b=this['_imageCache']['get'](_0x2da4f2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c9e9b['url'],this['imageDimension']=_0x3c9e9b['dimension'],this['imageId']=_0x3c9e9b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2d837c}=this['_editor'],t=_0x2d837c['t'],_0x42f13e=new _0x4443bb(_0x2d837c,this['imageStatus'],this['_attributes']);_0x42f13e['bind']('status')['to'](this,'imageStatus'),_0x42f13e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x42f13e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x42f13e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x42f13e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x29c55d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x42f13e,'position':_0x217ca3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x42f13e['focus']();},'onHide':()=>{_0x42f13e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x189efd=>!_0x2ad8b9(_0x189efd,_0x42f13e['element'])}});}['_loadImageInfo'](_0x34da70,_0x2fc95d){return _0x40e009['getInfo'](_0x34da70,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3bd9e7=>{const {width:_0x48f4fc,height:_0x2a92b5}=_0x3bd9e7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fc95d,this['imageDimension']={'width':_0x48f4fc,'height':_0x2a92b5},this['imageId']=_0x34da70;})['catch'](_0x51515f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x51515f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xd575f,_0x220103){return this['_getImageAsFile'](_0xd575f)['then'](_0x49b0aa=>_0x40e009['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':_0x220103['signal'],'file':_0x49b0aa,'onProgress':_0x16a0dc=>{_0x16a0dc&&_0x16a0dc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x16a0dc['value']));}}))['then'](_0x13952c=>{const {width:_0x2ba39b,height:_0x15e501}=_0x13952c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13952c['cdnUrl'],this['imageDimension']={'width':_0x2ba39b,'height':_0x15e501},this['imageId']=_0x13952c['uuid'],this['imageUploadProgress']=null;const _0x3ed606=_0xd575f['getAttribute']('src');this['_imageCache']['set'](_0x3ed606,{'id':_0x13952c['uuid'],'url':_0x13952c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2f7af9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f7af9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x20cd1b,_0x2c3123){_0x20cd1b['on']('apply',(_0x31a79f,_0x45df5f)=>{this['_replaceImage'](_0x2c3123,_0x45df5f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x20cd1b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x20cd1b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x475445,_0xc1b823,_0x22f9fd){const _0x5b8b65=this['_editor'],{width:_0x4800ec,height:_0x48f34a}=_0x27c359(_0xc1b823,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x737f52,imageSources:_0x5e801f}=_0x48f09b(_0xc1b823,_0x4800ec);_0x5b8b65['model']['change'](_0x1aaece=>{if('$graveyard'===_0x475445['root']['rootName']){_0x5b8b65['execute']('insertImage',{'imageType':_0x475445['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x475445['getAttributes']()),'uploadcareImageId':_0x22f9fd,'src':_0x737f52,'sources':_0x5e801f,'width':_0x4800ec,'height':_0x48f34a}});const _0x17843f=_0x475445['getChildren']();_0x475445=_0x5b8b65['model']['document']['selection']['getSelectedElement']();for(const _0x329800 of _0x17843f)_0x1aaece['append'](_0x1aaece['cloneElement'](_0x329800),_0x475445);}else _0x1aaece['setSelection'](_0x475445,'on'),_0x5b8b65['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x475445['getAttributes']()),'uploadcareImageId':_0x22f9fd,'src':_0x737f52,'sources':_0x5e801f,'width':_0x4800ec,'height':_0x48f34a},_0x475445);_0x1aaece['setSelection'](_0x475445,'on');});}async['_getImageAsFile'](_0x14fd97){const _0x37838e=_0x27172b['window'],_0x915f66=_0x27172b['document']['location']['href'],_0x749644=new _0x37838e['URL'](_0x14fd97['getAttribute']('src'),_0x915f66);if('data:'===_0x749644['protocol']){const _0x576a57=_0x749644['href']['split'](','),_0x3c1d1f=_0x576a57[0x0]['match'](/:(.*?);/)[0x1],_0x48434e=_0x3c1d1f['split']('/')[0x1],_0x3035fe=_0x37838e['atob'](_0x576a57[_0x576a57['length']-0x1]);let _0x4168ec=_0x3035fe['length'];const _0x27d42f=new _0x37838e['Uint8Array'](_0x4168ec);for(;_0x4168ec--;)_0x27d42f[_0x4168ec]=_0x3035fe['charCodeAt'](_0x4168ec);return new _0x37838e['File']([_0x27d42f],'image.'+_0x48434e,{'type':_0x3c1d1f});}const _0x4a35d1=_0x749644['href']['split']('/'),_0x243be0=_0x4a35d1[_0x4a35d1['length']-0x1],_0x15d819=_0x243be0['split']('.')[0x1];return _0x37838e['fetch'](_0x749644['href'])['then'](_0x1b3949=>_0x1b3949['clone']()['blob']())['then'](_0x486cde=>new _0x37838e['File']([_0x486cde],_0x243be0,{'type':'image/'+_0x15d819}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3734(){const _0x3d33c5=['imageSrc','16749EFvqxV','109718eJTZPq','594237NWkgEy','8053925FmEpxc','232rzuTri','510SBEiyk','uc-light','image-edit','set','58LkkePJ','ck-uploadcare-theme','134685GrLsUq','96DqvjZM','bindTemplate','482364UlpFOJ','18118vjTFen','uc-cloud-image-editor','setTemplate'];_0x3734=function(){return _0x3d33c5;};return _0x3734();}(function(_0x2d0cb3,_0x27b6c0){const _0x40976a=_0x5442,_0x4bee04=_0x2d0cb3();while(!![]){try{const _0xe88ec2=-parseInt(_0x40976a(0x1db))/0x1*(-parseInt(_0x40976a(0x1d5))/0x2)+-parseInt(_0x40976a(0x1e1))/0x3+-parseInt(_0x40976a(0x1da))/0x4+-parseInt(_0x40976a(0x1d7))/0x5*(-parseInt(_0x40976a(0x1d8))/0x6)+-parseInt(_0x40976a(0x1e0))/0x7*(-parseInt(_0x40976a(0x1e3))/0x8)+-parseInt(_0x40976a(0x1df))/0x9*(parseInt(_0x40976a(0x1e4))/0xa)+-parseInt(_0x40976a(0x1e2))/0xb;if(_0xe88ec2===_0x27b6c0)break;else _0x4bee04['push'](_0x4bee04['shift']());}catch(_0x488ee2){_0x4bee04['push'](_0x4bee04['shift']());}}}(_0x3734,0x40bf4));import{View as _0xa3f339}from'ckeditor5/src/ui.js';function _0x5442(_0x5b9b51,_0x23e642){const _0x373400=_0x3734();return _0x5442=function(_0x5442c0,_0x43b43f){_0x5442c0=_0x5442c0-0x1d4;let _0x44d5e5=_0x373400[_0x5442c0];return _0x44d5e5;},_0x5442(_0x5b9b51,_0x23e642);}export class UploadcareImageEditFormEditingView extends _0xa3f339{constructor(_0x337ff8,_0x5e589a){const _0x2af95f=_0x5442;super(_0x337ff8);const _0x15d345=this[_0x2af95f(0x1d9)];this[_0x2af95f(0x1d4)](_0x2af95f(0x1de),''),this[_0x2af95f(0x1dd)]({'tag':_0x2af95f(0x1dc),'attributes':{..._0x5e589a,'class':[_0x2af95f(0x1e5),_0x2af95f(0x1d6)],'ctx-name':_0x2af95f(0x1e6),'cdn-url':_0x15d345['to'](_0x2af95f(0x1de))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x119ab7}from'ckeditor5/src/icons.js';import{ButtonView as _0x282199,IconView as _0x184527,View as _0x22f298}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x22f298{constructor(_0x450f2b){super(_0x450f2b);const t=_0x450f2b['t'];this['set']('errorType',null);const _0x1319b3=new _0x282199(_0x450f2b);_0x1319b3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1319b3['withText']=!0x0,_0x1319b3['class']='ck-button-action',_0x1319b3['on']('execute',()=>{this['fire']('retry');}),_0x1319b3['bind']('isVisible')['to'](this,'errorType',_0x1867e7=>'NotFound'!==_0x1867e7);const _0x3b4a48=new _0x184527();_0x3b4a48['content']=_0x119ab7,_0x3b4a48['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x287ba5=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':[_0x3b4a48,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x287ba5['to']('errorType',_0x7b142e=>t('NotFound'!==_0x7b142e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1319b3]},{'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 _0x582e14,View as _0x4dcc86}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4dcc86{constructor(_0x34dae8){super(_0x34dae8);const t=_0x34dae8['t'],_0x1bad94=this['bindTemplate'],_0x444e9f=new _0x582e14();_0x444e9f['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':[_0x444e9f,{'text':_0x1bad94['to']('imageUploadProgress',_0x35bb14=>t('Loading\x20image...')+'\x20('+(_0x35bb14||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
|
+
function _0x1049(_0x14de8b,_0x4fe620){const _0x137ea6=_0x137e();return _0x1049=function(_0x1049c9,_0x3ec640){_0x1049c9=_0x1049c9-0x173;let _0xc67818=_0x137ea6[_0x1049c9];return _0xc67818;},_0x1049(_0x14de8b,_0x4fe620);}const _0x550a49=_0x1049;(function(_0xc649a3,_0x5269be){const _0x189642=_0x1049,_0x445b52=_0xc649a3();while(!![]){try{const _0x18a5c1=parseInt(_0x189642(0x175))/0x1*(-parseInt(_0x189642(0x179))/0x2)+parseInt(_0x189642(0x18b))/0x3*(-parseInt(_0x189642(0x1a5))/0x4)+-parseInt(_0x189642(0x189))/0x5+parseInt(_0x189642(0x1a7))/0x6*(parseInt(_0x189642(0x17c))/0x7)+parseInt(_0x189642(0x19d))/0x8*(parseInt(_0x189642(0x1a3))/0x9)+-parseInt(_0x189642(0x190))/0xa+-parseInt(_0x189642(0x17a))/0xb*(-parseInt(_0x189642(0x176))/0xc);if(_0x18a5c1===_0x5269be)break;else _0x445b52['push'](_0x445b52['shift']());}catch(_0x593ed9){_0x445b52['push'](_0x445b52['shift']());}}}(_0x137e,0xec5e6));import{View as _0x274dd3}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x116a2d}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3cdc32}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xf526b7}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x18b36a}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x137e(){const _0x6dfa43=['_items','addMany','filter','clear','_setView','getFocusableElement','change:status','cdnUrl','target','error','once','1389780piWsKA','addEventListener','441423HBJyYo','uc-cloud-image-editor','ck-uploadcare-form','setTemplate','detail','9416070SRnYLF','_addErrorViewListeners','status','disconnect','render','apply','addedNodes','focus','querySelector','_waitForImageEditorComponent','ck-reset_all-excluded','length','set','6264uOlKsi','add','createCollection','uploading','nodeName','fire','3384YhZbpu','element','8UXjTuZ','ready','3612VNCRzp','_loadingView','_errorView','toLowerCase','observe','retry','div','162309QfjOSl','12mfHAFd','cancel','_focusableView','6Uoaoho','13652848RqoWbU','_addUploadcareImageEditorListeners','16667SRxGjm','_editingView'];_0x137e=function(){return _0x6dfa43;};return _0x137e();}export class UploadcareImageEditFormView extends _0x18b36a{[_0x550a49(0x17e)];[_0x550a49(0x1a8)];[_0x550a49(0x1a9)];[_0x550a49(0x17d)];[_0x550a49(0x178)];constructor(_0x14dadf,_0x1cf08b,_0x2934a4){const _0x31b9ff=_0x550a49;super(_0x14dadf),this[_0x31b9ff(0x17e)]=this[_0x31b9ff(0x19f)](),this[_0x31b9ff(0x1a8)]=new _0x116a2d(_0x14dadf),this[_0x31b9ff(0x1a9)]=new _0x3cdc32(_0x14dadf),this[_0x31b9ff(0x17d)]=new _0xf526b7(_0x14dadf,_0x2934a4),this[_0x31b9ff(0x178)]=new _0x274dd3(_0x14dadf),this[_0x31b9ff(0x178)][_0x31b9ff(0x18e)](this[_0x31b9ff(0x183)]()),this[_0x31b9ff(0x19c)](_0x31b9ff(0x192),_0x1cf08b),this[_0x31b9ff(0x18e)]({'tag':_0x31b9ff(0x174),'attributes':{'class':['ck',_0x31b9ff(0x19a),_0x31b9ff(0x18d)],'tabindex':'-1'},'children':this[_0x31b9ff(0x17e)]}),this[_0x31b9ff(0x182)](),this[_0x31b9ff(0x188)](_0x31b9ff(0x194),()=>{const _0x4b1e09=_0x31b9ff;this[_0x4b1e09(0x199)](this[_0x4b1e09(0x1a4)],_0x5e6e8b=>{const _0x3989fc=_0x4b1e09;this[_0x3989fc(0x17b)](_0x5e6e8b);});}),this['on'](_0x31b9ff(0x184),()=>{const _0x2d9518=_0x31b9ff;this[_0x2d9518(0x182)]();}),this[_0x31b9ff(0x191)]();}[_0x550a49(0x197)](){const _0x45403b=_0x550a49;this[_0x45403b(0x1a4)][_0x45403b(0x197)]();}[_0x550a49(0x182)](){const _0x51a653=_0x550a49;switch(this[_0x51a653(0x17e)][_0x51a653(0x181)](),this[_0x51a653(0x192)]){case _0x51a653(0x1a0):this[_0x51a653(0x17e)][_0x51a653(0x19e)](this[_0x51a653(0x1a8)]);break;case _0x51a653(0x187):this[_0x51a653(0x17e)][_0x51a653(0x19e)](this[_0x51a653(0x1a9)]);break;case _0x51a653(0x1a6):this[_0x51a653(0x17e)][_0x51a653(0x17f)]([this[_0x51a653(0x17d)],this[_0x51a653(0x178)]]);}}[_0x550a49(0x199)](_0x591a24,_0x204921){const _0x985c5c=_0x550a49,_0x53d7f3=_0x985c5c(0x18c),_0x2e221f=_0x591a24[_0x985c5c(0x198)](_0x53d7f3);if(_0x2e221f)return _0x204921(_0x2e221f);const _0x34d282=new MutationObserver(_0x543472=>{const _0xd77d1c=_0x985c5c,_0x20dd56=_0x543472[_0xd77d1c(0x180)](_0x3add17=>_0x3add17[_0xd77d1c(0x186)]===_0x591a24&&_0x3add17[_0xd77d1c(0x196)][_0xd77d1c(0x19b)]>0x0&&_0x3add17[_0xd77d1c(0x196)][0x0][_0xd77d1c(0x1a1)][_0xd77d1c(0x1aa)]()===_0x53d7f3);_0x20dd56[_0xd77d1c(0x19b)]&&(_0x34d282[_0xd77d1c(0x193)](),_0x204921(_0x20dd56[0x0][_0xd77d1c(0x196)][0x0]));});_0x34d282[_0x985c5c(0x1ab)](_0x591a24,{'childList':!0x0,'subtree':!0x0});}[_0x550a49(0x17b)](_0x3fa2bf){const _0x5889a2=_0x550a49;_0x3fa2bf[_0x5889a2(0x18a)](_0x5889a2(0x195),_0x57a40a=>{const _0x2e8ec7=_0x5889a2;this[_0x2e8ec7(0x1a2)](_0x2e8ec7(0x195),{'imageSrc':_0x57a40a[_0x2e8ec7(0x18f)][_0x2e8ec7(0x185)]});}),_0x3fa2bf[_0x5889a2(0x18a)](_0x5889a2(0x177),()=>{const _0x3a2333=_0x5889a2;this[_0x3a2333(0x1a2)](_0x3a2333(0x177));});}[_0x550a49(0x191)](){const _0x3715ac=_0x550a49;this[_0x3715ac(0x1a9)]['on'](_0x3715ac(0x173),()=>{const _0x48681e=_0x3715ac;this[_0x48681e(0x1a2)](_0x48681e(0x173));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x97ed9d=_0xb040;function _0xb040(_0x2425fa,_0x552b07){const _0x1761a0=_0x1761();return _0xb040=function(_0xb040d6,_0x5a7ac4){_0xb040d6=_0xb040d6-0xe8;let _0x345b24=_0x1761a0[_0xb040d6];return _0x345b24;},_0xb040(_0x2425fa,_0x552b07);}function _0x1761(){const _0x2e18e4=['258Gjmfoh','execute','model','imageBlock','uploadcare.allowExternalImagesEditing','getSelectedElement','1743108lWlnZS','21380kfOqXr','plugins','refresh','requires','877368kMNIcW','_isEditable','286563PCdDUb','25080XarqqO','imageEditController','config','unbind','imageInline','selection','27682pWJEot','4775256iuFuio','1337tMDYCp','document','get','bind','editor','set','element','isActive','isEnabled'];_0x1761=function(){return _0x2e18e4;};return _0x1761();}(function(_0x4bfd5d,_0x371e20){const _0x5dd7cd=_0xb040,_0x2ede5c=_0x4bfd5d();while(!![]){try{const _0x5bee4c=-parseInt(_0x5dd7cd(0x102))/0x1+-parseInt(_0x5dd7cd(0xf9))/0x2+-parseInt(_0x5dd7cd(0xfb))/0x3+-parseInt(_0x5dd7cd(0xf4))/0x4+parseInt(_0x5dd7cd(0xf5))/0x5*(parseInt(_0x5dd7cd(0xee))/0x6)+parseInt(_0x5dd7cd(0x104))/0x7*(parseInt(_0x5dd7cd(0xfc))/0x8)+parseInt(_0x5dd7cd(0x103))/0x9;if(_0x5bee4c===_0x371e20)break;else _0x2ede5c['push'](_0x2ede5c['shift']());}catch(_0x3d0bdc){_0x2ede5c['push'](_0x2ede5c['shift']());}}}(_0x1761,0x4d0b5));import{Command as _0x3fd34e}from'ckeditor5/src/core.js';import{Dialog as _0x158865}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x304086}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3a6cca}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3fd34e{[_0x97ed9d(0xfd)];static get[_0x97ed9d(0xf8)](){return[_0x158865];}[_0x97ed9d(0xfa)];constructor(_0xc577b){const _0x50ca4b=_0x97ed9d;super(_0xc577b),this[_0x50ca4b(0xfd)]=void 0x0,this[_0x50ca4b(0xfa)]=_0x3a6cca(_0xc577b[_0x50ca4b(0xfe)][_0x50ca4b(0x106)](_0x50ca4b(0xf2))||[]),this[_0x50ca4b(0xea)]({'isActive':!0x1});}[_0x97ed9d(0xf7)](){const _0x9fd6ec=_0x97ed9d,_0x22eec4=this[_0x9fd6ec(0xe9)][_0x9fd6ec(0xf0)][_0x9fd6ec(0x105)][_0x9fd6ec(0x101)][_0x9fd6ec(0xf3)]();this[_0x9fd6ec(0xed)]=this[_0x9fd6ec(0xfa)](_0x22eec4);}[_0x97ed9d(0xef)](){const _0x4bf61a=_0x97ed9d;this[_0x4bf61a(0xfd)]&&(this[_0x4bf61a(0xff)](_0x4bf61a(0xec)),this[_0x4bf61a(0xfd)]=void 0x0);const _0x213844=this[_0x4bf61a(0xe9)][_0x4bf61a(0xf0)][_0x4bf61a(0x105)][_0x4bf61a(0x101)][_0x4bf61a(0xf3)]();_0x213844&&(_0x213844['is'](_0x4bf61a(0xeb),_0x4bf61a(0xf1))||_0x213844['is'](_0x4bf61a(0xeb),_0x4bf61a(0x100)))&&(this[_0x4bf61a(0xfd)]=new _0x304086(this[_0x4bf61a(0xe9)],this[_0x4bf61a(0xe9)][_0x4bf61a(0xf6)][_0x4bf61a(0x106)](_0x158865),_0x213844),this[_0x4bf61a(0xe8)](_0x4bf61a(0xec))['to'](this[_0x4bf61a(0xfd)],_0x4bf61a(0xec)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d3596=_0x339c;(function(_0xe39392,_0x174527){const _0x272d78=_0x339c,_0x57d66f=_0xe39392();while(!![]){try{const _0x29d64a=-parseInt(_0x272d78(0x17e))/0x1+parseInt(_0x272d78(0x17b))/0x2+-parseInt(_0x272d78(0x173))/0x3*(-parseInt(_0x272d78(0x179))/0x4)+parseInt(_0x272d78(0x178))/0x5+parseInt(_0x272d78(0x180))/0x6+parseInt(_0x272d78(0x171))/0x7*(-parseInt(_0x272d78(0x175))/0x8)+-parseInt(_0x272d78(0x176))/0x9;if(_0x29d64a===_0x174527)break;else _0x57d66f['push'](_0x57d66f['shift']());}catch(_0x35f885){_0x57d66f['push'](_0x57d66f['shift']());}}}(_0x2c33,0x5aeb9));import{Plugin as _0x39941c}from'ckeditor5/src/core.js';import{Notification as _0x49399d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xb15a27}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1b4560}from'./uploadcareimagereplacecommand.js';function _0x2c33(){const _0x28336b=['init','ImageEditing','uploadcareImageEdit','43106ZlpDHe','pluginName','352578tOGJvt','isPremiumPlugin','728NfmXwk','5464125HwynCI','ImageUtils','2041835snyJQB','16QTMoVY','UploadcareImageEditEditing','1315196iCQmhi','commands','isOfficialPlugin','434236YyKRLG','add','2628474Arihki','requires','uploadcareImageReplace'];_0x2c33=function(){return _0x28336b;};return _0x2c33();}function _0x339c(_0x347f2c,_0x111c2e){const _0x2c3385=_0x2c33();return _0x339c=function(_0x339c48,_0x37f689){_0x339c48=_0x339c48-0x16c;let _0x48c945=_0x2c3385[_0x339c48];return _0x48c945;},_0x339c(_0x347f2c,_0x111c2e);}import{UploadcareEditing as _0x56f9cd}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x39941c{static get[_0x5d3596(0x172)](){const _0x7e177=_0x5d3596;return _0x7e177(0x17a);}static get[_0x5d3596(0x16c)](){const _0x294b35=_0x5d3596;return[_0x56f9cd,_0x49399d,_0x294b35(0x177),_0x294b35(0x16f)];}static get[_0x5d3596(0x17d)](){return!0x0;}static get[_0x5d3596(0x174)](){return!0x0;}[_0x5d3596(0x16e)](){const _0x484b24=_0x5d3596,{editor:_0xca0270}=this;_0xca0270[_0x484b24(0x17c)][_0x484b24(0x17f)](_0x484b24(0x170),new _0xb15a27(_0xca0270)),_0xca0270[_0x484b24(0x17c)][_0x484b24(0x17f)](_0x484b24(0x16d),new _0x1b4560(_0xca0270));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1d1081}from'ckeditor5/src/core.js';import{ButtonView as _0x362231}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x552c9c}from'ckeditor5/src/icons.js';import{createElement as _0x2c10ec}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 _0x1d1081{['_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 _0x1dc81e=this['editor'];_0x1dc81e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x552bee=>{const _0xedbded=_0x1dc81e['commands']['get']('uploadcareImageEdit'),_0x5a8ac8=new _0x362231(_0x552bee),t=_0x552bee['t'];return _0x5a8ac8['set']({'icon':_0x552c9c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a8ac8['bind']('isEnabled')['to'](_0xedbded),_0x5a8ac8['bind']('isOn')['to'](_0xedbded,'isActive'),this['listenTo'](_0x5a8ac8,'execute',()=>{_0x1dc81e['execute']('uploadcareImageEdit'),_0x1dc81e['editing']['view']['focus']();}),_0x5a8ac8;}),this['_initConfig']();}['_initConfig'](){const _0x2daa8c=_0x2c10ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2daa8c),this['listenTo'](this['editor'],'destroy',()=>{_0x2daa8c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x77b7f9=_0x2790;(function(_0x459953,_0x5f22c5){const _0x1499e9=_0x2790,_0x52167f=_0x459953();while(!![]){try{const _0x472ba0=-parseInt(_0x1499e9(0x125))/0x1+parseInt(_0x1499e9(0x138))/0x2+parseInt(_0x1499e9(0x126))/0x3*(-parseInt(_0x1499e9(0x127))/0x4)+-parseInt(_0x1499e9(0x12e))/0x5*(parseInt(_0x1499e9(0x120))/0x6)+parseInt(_0x1499e9(0x130))/0x7*(parseInt(_0x1499e9(0x131))/0x8)+-parseInt(_0x1499e9(0x133))/0x9*(-parseInt(_0x1499e9(0x128))/0xa)+parseInt(_0x1499e9(0x129))/0xb*(parseInt(_0x1499e9(0x132))/0xc);if(_0x472ba0===_0x5f22c5)break;else _0x52167f['push'](_0x52167f['shift']());}catch(_0x3f0bd0){_0x52167f['push'](_0x52167f['shift']());}}}(_0x1f00,0xc3694));function _0x1f00(){const _0x224e31=['selection','sizes','152342ChpHEr','imageBlock','srcset','removeAttribute','8687178EsejPR','model','change','imageInline','element','567292ocKsYw','36IrLYGP','190480JZUOme','775930SlOFPo','49181JfMkIW','setAttributes','isEnabled','execute','getSelectedElement','5wJXJqW','refresh','98399tNPKGx','824jPeOxO','1668FxVQfa','144DnXjAm','editor','document'];_0x1f00=function(){return _0x224e31;};return _0x1f00();}function _0x2790(_0x383b59,_0x2dcf42){const _0x1f0001=_0x1f00();return _0x2790=function(_0x279002,_0x441754){_0x279002=_0x279002-0x120;let _0x56cbb9=_0x1f0001[_0x279002];return _0x56cbb9;},_0x2790(_0x383b59,_0x2dcf42);}import{Command as _0x56f397}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x56f397{[_0x77b7f9(0x12f)](){const _0x10dd3a=_0x77b7f9,_0x4d7d66=this[_0x10dd3a(0x134)][_0x10dd3a(0x121)][_0x10dd3a(0x135)][_0x10dd3a(0x136)][_0x10dd3a(0x12d)]();this[_0x10dd3a(0x12b)]=Boolean(_0x4d7d66&&(_0x4d7d66['is'](_0x10dd3a(0x124),_0x10dd3a(0x139))||_0x4d7d66['is'](_0x10dd3a(0x124),_0x10dd3a(0x123))));}[_0x77b7f9(0x12c)](_0x2b19bd){const _0x61f6f5=_0x77b7f9,_0x4fc30a=this[_0x61f6f5(0x134)][_0x61f6f5(0x121)][_0x61f6f5(0x135)][_0x61f6f5(0x136)][_0x61f6f5(0x12d)]();this[_0x61f6f5(0x134)][_0x61f6f5(0x121)][_0x61f6f5(0x122)](_0x2d9006=>{const _0x2572d7=_0x61f6f5;_0x2d9006[_0x2572d7(0x12a)](_0x2b19bd,_0x4fc30a),_0x2d9006[_0x2572d7(0x13b)](_0x2572d7(0x13a),_0x4fc30a),_0x2d9006[_0x2572d7(0x13b)](_0x2572d7(0x137),_0x4fc30a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5cde(_0x2cf7f8,_0x285c42){var _0x40dfbc=_0x40df();return _0x5cde=function(_0x5cdea2,_0x1abb8b){_0x5cdea2=_0x5cdea2-0xb6;var _0x2cc91f=_0x40dfbc[_0x5cdea2];return _0x2cc91f;},_0x5cde(_0x2cf7f8,_0x285c42);}var _0x283ffe=_0x5cde;(function(_0x2be8d1,_0x3806d3){var _0xfc45ee=_0x5cde,_0x5ce600=_0x2be8d1();while(!![]){try{var _0x3dc561=parseInt(_0xfc45ee(0xb8))/0x1*(-parseInt(_0xfc45ee(0xbe))/0x2)+parseInt(_0xfc45ee(0xc3))/0x3+-parseInt(_0xfc45ee(0xba))/0x4*(parseInt(_0xfc45ee(0xc0))/0x5)+parseInt(_0xfc45ee(0xc5))/0x6*(-parseInt(_0xfc45ee(0xb7))/0x7)+parseInt(_0xfc45ee(0xbc))/0x8+parseInt(_0xfc45ee(0xc2))/0x9*(-parseInt(_0xfc45ee(0xbf))/0xa)+parseInt(_0xfc45ee(0xb9))/0xb;if(_0x3dc561===_0x3806d3)break;else _0x5ce600['push'](_0x5ce600['shift']());}catch(_0xe43a1b){_0x5ce600['push'](_0x5ce600['shift']());}}}(_0x40df,0x9d92c));import{Plugin as _0x504c33}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x31f08a}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x501b58}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x504c33{static get[_0x283ffe(0xc1)](){var _0x3bcd74=_0x283ffe;return _0x3bcd74(0xb6);}static get[_0x283ffe(0xbd)](){return[_0x31f08a,_0x501b58];}static get[_0x283ffe(0xc4)](){return!0x0;}static get[_0x283ffe(0xbb)](){return!0x0;}}function _0x40df(){var _0x297143=['isPremiumPlugin','1393888uwlwwA','requires','10reXamR','30HTmLVX','53615zNrEOg','pluginName','776403vJCSfN','1268781BsLDdo','isOfficialPlugin','10086xAQHPK','UploadcareImageEdit','2499wLxlJM','112449OkHZSv','29020497YHJKDG','436jshfVv'];_0x40df=function(){return _0x297143;};return _0x40df();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbabf00=_0x571d;(function(_0x21b8aa,_0x1ae8d7){const _0x32a957=_0x571d,_0x18e558=_0x21b8aa();while(!![]){try{const _0x3e70cf=parseInt(_0x32a957(0x16f))/0x1+-parseInt(_0x32a957(0x156))/0x2*(parseInt(_0x32a957(0x165))/0x3)+parseInt(_0x32a957(0x12b))/0x4*(parseInt(_0x32a957(0x13a))/0x5)+parseInt(_0x32a957(0x143))/0x6+parseInt(_0x32a957(0x141))/0x7+-parseInt(_0x32a957(0x15f))/0x8+-parseInt(_0x32a957(0x144))/0x9*(parseInt(_0x32a957(0x12d))/0xa);if(_0x3e70cf===_0x1ae8d7)break;else _0x18e558['push'](_0x18e558['shift']());}catch(_0x207b60){_0x18e558['push'](_0x18e558['shift']());}}}(_0x347c,0xcfbaa));import{Plugin as _0x5ac221}from'ckeditor5/src/core.js';import{IconDropbox as _0x53019f,IconFacebook as _0x555344,IconGoogleDrive as _0xad4aa9,IconGooglePhotos as _0x55300e,IconUploadcareImageUpload as _0x3ea584,IconUploadcareLink as _0x469181,IconOneDrive as _0x267d7f}from'ckeditor5/src/icons.js';import{ButtonView as _0x3bdeb7,MenuBarMenuListItemButtonView as _0x138599}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x498a38}from'./uploadcareconfig.js';import{getTranslation as _0x16ade5}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x571d(_0xab3281,_0xf036a1){const _0x347ca0=_0x347c();return _0x571d=function(_0x571d90,_0x331457){_0x571d90=_0x571d90-0x123;let _0x1b88a9=_0x347ca0[_0x571d90];return _0x1b88a9;},_0x571d(_0xab3281,_0xf036a1);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x5ac221{[_0xbabf00(0x158)];[_0xbabf00(0x13e)];static get[_0xbabf00(0x124)](){const _0x5a01b4=_0xbabf00;return _0x5a01b4(0x125);}static get[_0xbabf00(0x133)](){return!0x0;}static get[_0xbabf00(0x170)](){return!0x0;}[_0xbabf00(0x127)](){const _0x177db5=_0xbabf00;this[_0x177db5(0x158)]=this[_0x177db5(0x15a)][_0x177db5(0x153)][_0x177db5(0x163)](_0x177db5(0x158));const _0x49c016=this[_0x177db5(0x15a)];this[_0x177db5(0x13e)]=setInterval(()=>{const _0x5b7bb4=_0x177db5;let _0x13fed8;for(const _0x339742 in _0x49c016){const _0x43d73d=_0x339742,_0x202eed=_0x49c016[_0x43d73d];if(_0x5b7bb4(0x15c)==_0x202eed||_0x5b7bb4(0x173)==_0x202eed||_0x5b7bb4(0x159)==_0x202eed||_0x5b7bb4(0x155)==_0x202eed||_0x5b7bb4(0x145)==_0x202eed||_0x5b7bb4(0x154)==_0x202eed||_0x5b7bb4(0x16a)==_0x202eed||_0x5b7bb4(0x161)==_0x202eed){delete _0x49c016[_0x43d73d],_0x13fed8=_0x202eed,clearInterval(this[_0x5b7bb4(0x13e)]),this[_0x5b7bb4(0x13e)]=void 0x0;break;}}_0x5b7bb4(0x173)==_0x13fed8&&_0x49c016[_0x5b7bb4(0x14f)](_0x5b7bb4(0x150)),_0x5b7bb4(0x159)==_0x13fed8&&_0x49c016[_0x5b7bb4(0x14f)](_0x5b7bb4(0x172)),_0x5b7bb4(0x155)==_0x13fed8&&_0x49c016[_0x5b7bb4(0x14f)](_0x5b7bb4(0x162)),_0x5b7bb4(0x145)==_0x13fed8&&_0x49c016[_0x5b7bb4(0x14f)](_0x5b7bb4(0x137),_0x5b7bb4(0x16c)),_0x5b7bb4(0x154)==_0x13fed8&&_0x49c016[_0x5b7bb4(0x14f)](_0x5b7bb4(0x14d)),_0x5b7bb4(0x16a)==_0x13fed8&&_0x49c016[_0x5b7bb4(0x14f)](_0x5b7bb4(0x169)),_0x5b7bb4(0x161)==_0x13fed8&&_0x49c016[_0x5b7bb4(0x14f)](_0x5b7bb4(0x12a));},0x3e8);}[_0xbabf00(0x166)](){const _0x4ad27a=_0xbabf00,{editor:_0x3e1be6}=this,_0x3dc79b=_0x3e1be6[_0x4ad27a(0x15b)][_0x4ad27a(0x163)](_0x4ad27a(0x14a));if(!_0x3dc79b)return;const _0x5ab248=this[_0x4ad27a(0x134)](_0x3e1be6[_0x4ad27a(0x153)][_0x4ad27a(0x163)](_0x4ad27a(0x13d)))[_0x4ad27a(0x164)]((_0x2f0a5b,_0x1edad2)=>{const _0x421769=_0x4ad27a,_0x4673c7=this[_0x421769(0x14e)](_0x1edad2[_0x421769(0x142)]);return _0x2f0a5b[_0x4673c7]||(_0x2f0a5b[_0x4673c7]=[]),_0x2f0a5b[_0x4673c7][_0x421769(0x132)](_0x1edad2),_0x2f0a5b;},{});_0x3e1be6[_0x4ad27a(0x168)][_0x4ad27a(0x167)](_0x4ad27a(0x171))&&_0x3e1be6[_0x4ad27a(0x15b)][_0x4ad27a(0x163)](_0x4ad27a(0x14a))&&Object[_0x4ad27a(0x147)](_0x5ab248)[_0x4ad27a(0x140)](([_0x599542,_0x4f56e6])=>{const _0x28158a=_0x4ad27a;_0x3e1be6[_0x28158a(0x168)][_0x28158a(0x163)](_0x28158a(0x171))[_0x28158a(0x129)]({'name':_0x599542,'observable':()=>_0x3dc79b,'buttonViewCreator':()=>this[_0x28158a(0x14c)](_0x4f56e6),'formViewCreator':()=>this[_0x28158a(0x135)](_0x4f56e6),'menuBarButtonViewCreator':()=>this[_0x28158a(0x16d)](_0x4f56e6),'override':_0x28158a(0x13f)!==_0x599542});});}[_0xbabf00(0x123)](){const _0x5290c0=_0xbabf00;super[_0x5290c0(0x123)](),this[_0x5290c0(0x13e)]&&clearInterval(this[_0x5290c0(0x13e)]);}[_0xbabf00(0x134)](_0x56d386){const _0x33a5a6=_0xbabf00,{locale:_0x57854e}=this[_0x33a5a6(0x15a)];return _0x56d386[_0x33a5a6(0x16b)](_0x245e6f=>{const _0x427896=_0x33a5a6,_0x567876=_0x16ade5(_0x57854e,_0x245e6f,_0x427896(0x149));switch(_0x245e6f){case _0x498a38[_0x427896(0x15d)]:return{'icon':_0x3ea584,'type':_0x498a38[_0x427896(0x15d)],..._0x567876};case _0x498a38[_0x427896(0x126)]:return{'icon':_0x469181,'type':_0x498a38[_0x427896(0x126)],..._0x567876};case _0x498a38[_0x427896(0x139)]:return{'icon':_0x53019f,'type':_0x498a38[_0x427896(0x139)],..._0x567876};case _0x498a38[_0x427896(0x12e)]:return{'icon':_0x555344,'type':_0x498a38[_0x427896(0x12e)],..._0x567876};case _0x498a38[_0x427896(0x138)]:return{'icon':_0xad4aa9,'type':_0x498a38[_0x427896(0x138)],..._0x567876};case _0x498a38[_0x427896(0x157)]:return{'icon':_0x55300e,'type':_0x498a38[_0x427896(0x157)],..._0x567876};case _0x498a38[_0x427896(0x14b)]:return{'icon':_0x267d7f,'type':_0x498a38[_0x427896(0x14b)],..._0x567876};}});}[_0xbabf00(0x14e)](_0x207927){const _0x48cdaf=_0xbabf00;switch(_0x207927){case _0x498a38[_0x48cdaf(0x15d)]:return _0x48cdaf(0x146);case _0x498a38[_0x48cdaf(0x126)]:return _0x48cdaf(0x136);default:return _0x48cdaf(0x13f);}}[_0xbabf00(0x15e)](_0x4d8f7a,_0x2d07a0){const _0x4aad4b=_0xbabf00,_0x1cf47e=this[_0x4aad4b(0x15a)],_0x1533d0=new _0x4d8f7a(_0x1cf47e[_0x4aad4b(0x16e)]),_0x4b2f65=_0x1cf47e[_0x4aad4b(0x15b)][_0x4aad4b(0x163)](_0x4aad4b(0x14a));return _0x1533d0[_0x4aad4b(0x148)](_0x4aad4b(0x12f))['to'](_0x4b2f65),_0x1533d0['on'](_0x4aad4b(0x128),()=>{const _0x55639f=_0x4aad4b;_0x4b2f65[_0x55639f(0x128)](_0x2d07a0);}),_0x1533d0;}[_0xbabf00(0x14c)](_0x310952){const _0x2caf5e=_0xbabf00,{locale:_0x3e1fb2}=this[_0x2caf5e(0x15a)],_0x4e2e9e=this[_0x2caf5e(0x15a)][_0x2caf5e(0x168)][_0x2caf5e(0x163)](_0x2caf5e(0x171)),_0x5b4ec7=_0x310952[0x0],_0x1b4c31=this[_0x2caf5e(0x15e)](_0x3bdeb7,_0x5b4ec7[_0x2caf5e(0x142)]);return _0x1b4c31[_0x2caf5e(0x151)]=_0x5b4ec7[_0x2caf5e(0x151)],_0x1b4c31[_0x2caf5e(0x148)](_0x2caf5e(0x130))['to'](_0x4e2e9e,_0x2caf5e(0x131),_0x2209c3=>_0x16ade5(_0x3e1fb2,_0x5b4ec7[_0x2caf5e(0x142)],_0x2209c3?_0x2caf5e(0x13b):_0x2caf5e(0x149))[_0x2caf5e(0x160)]),_0x1b4c31[_0x2caf5e(0x12c)]=!0x0,_0x1b4c31;}[_0xbabf00(0x135)](_0x3d7a3b){const _0x141ce1=_0xbabf00,{locale:_0x13ab48}=this[_0x141ce1(0x15a)],_0x18fafd=this[_0x141ce1(0x15a)][_0x141ce1(0x168)][_0x141ce1(0x163)](_0x141ce1(0x171));return _0x3d7a3b[_0x141ce1(0x16b)](_0x4fffe8=>{const _0x57ca17=_0x141ce1,_0x15912d=this[_0x57ca17(0x15e)](_0x3bdeb7,_0x4fffe8[_0x57ca17(0x142)]);return _0x15912d[_0x57ca17(0x152)]=!0x0,_0x15912d[_0x57ca17(0x151)]=_0x4fffe8[_0x57ca17(0x151)],_0x15912d[_0x57ca17(0x148)](_0x57ca17(0x130))['to'](_0x18fafd,_0x57ca17(0x131),_0x4e798f=>_0x16ade5(_0x13ab48,_0x4fffe8[_0x57ca17(0x142)],_0x4e798f?_0x57ca17(0x13b):_0x57ca17(0x149))[_0x57ca17(0x160)]),_0x15912d;});}[_0xbabf00(0x16d)](_0x2ac19d){const _0x337437=_0xbabf00;return _0x2ac19d[_0x337437(0x16b)](_0x5b6a35=>{const _0x280a13=_0x337437,_0x49a0ca=this[_0x280a13(0x15e)](_0x138599,_0x5b6a35[_0x280a13(0x142)]);return _0x49a0ca[_0x280a13(0x151)]=_0x5b6a35[_0x280a13(0x151)],_0x49a0ca[_0x280a13(0x130)]=_0x5b6a35[_0x280a13(0x13c)],_0x49a0ca;});}}function _0x347c(){const _0x19054b=['shortText','uploadcare.uploader.sourceList','_licenseKeyCheckInterval','assetManager','forEach','11520621MTpFgH','type','9276606isKkEp','45cFPGRX','uploadcareLicenseKeyNotAllowed','upload','entries','bind','Insert','uploadcare','OneDrive','_createToolbarButton','evaluationLimit','_getIntegrationKey','_showLicenseError','invalid','icon','withText','config','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyDomainLimit','34902gXsJxs','GPhotos','licenseKey','uploadcareLicenseKeyExpired','editor','commands','uploadcareLicenseKeyValid','Local','_createButton','9478976MMowav','text','uploadcareLicenseKeyUsageLimit','domainLimit','get','reduce','12CvtNAZ','afterInit','has','plugins','trialLimit','uploadcareLicenseKeyTrialLimit','map','Uploadcare','_createMenuBarButtons','locale','469513FQDmHF','isPremiumPlugin','ImageInsertUI','expired','uploadcareLicenseKeyInvalid','destroy','pluginName','UploadcareUI','URL','init','execute','registerIntegration','usageLimit','4wFtKjj','tooltip','3915540KiDVjc','Facebook','isEnabled','label','isImageSelected','push','isOfficialPlugin','_normalizeConfigSourceList','_createDropdownButtons','url','featureNotAllowed','GDrive','Dropbox','2009435eIgyWB','Replace'];_0x347c=function(){return _0x19054b;};return _0x347c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3faf02}from'ckeditor5/src/core.js';import{FileRepository as _0x49656a}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x3f927b}from'./uploadcareediting.js';import{UploadUtils as _0x5e7756}from'./utils/uploadutils.js';import{getImageUrls as _0x17d225}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3faf02{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49656a,_0x3f927b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x28386f=this['editor'];if(!!!_0x28386f['config']['get']('uploadcare'))return;_0x28386f['plugins']['get'](_0x49656a)['createUploadAdapter']=_0x959541=>new k(_0x959541,_0x28386f),_0x28386f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5445e9,{imageElement:_0x4dcb89,data:_0x2ea999})=>{_0x28386f['model']['change'](_0x2a682d=>{_0x2a682d['setAttribute']('uploadcareImageId',_0x2ea999['uploadcareImageId'],_0x4dcb89);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x204a24,_0x1f6c7b){this['loader']=_0x204a24,this['editor']=_0x1f6c7b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x48ad27=await this['loader']['file'];return _0x5e7756['upload']({'file':_0x48ad27,'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':_0x446de8=>{_0x446de8&&_0x446de8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x446de8['value']);}})['then'](async _0x275645=>{const {imageFallbackUrl:_0x4f9299,imageSources:_0x4a9bdd}=_0x17d225(_0x275645['cdnUrl'],_0x275645['imageInfo']['width']);return{'uploadcareImageId':_0x275645['uuid'],'default':_0x4f9299,'sources':_0x4a9bdd};})['catch'](()=>{const _0x300aa2=t('Cannot\x20upload\x20file:')+('\x20'+_0x48ad27['name']+'.');return Promise['reject'](_0x300aa2);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x40698c}from'../uploadcareconfig.js';export function getTranslation(_0x2b8c7f,_0x2ca308,_0x3114ad){const t=_0x2b8c7f['t'],_0x5bacf3=_0x2b8c7f['t'];switch(_0x2ca308){case _0x40698c['Local']:return{'text':_0x5bacf3('Insert'===_0x3114ad?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5bacf3('From\x20computer')};case _0x40698c['URL']:return{'text':'Insert'===_0x3114ad?_0x5bacf3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5bacf3('Via\x20URL')};case _0x40698c['Dropbox']:return{'text':t('Insert'===_0x3114ad?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x40698c['Facebook']:return{'text':t('Insert'===_0x3114ad?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x40698c['GDrive']:return{'text':t('Insert'===_0x3114ad?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x40698c['GPhotos']:return{'text':t('Insert'===_0x3114ad?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x40698c['OneDrive']:return{'text':t('Insert'===_0x3114ad?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2ca308;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4494c4=_0x21ce;(function(_0x287864,_0x38ab1f){var _0x5e5f7d=_0x21ce,_0x68d9e2=_0x287864();while(!![]){try{var _0x36f774=parseInt(_0x5e5f7d(0x1e2))/0x1*(-parseInt(_0x5e5f7d(0x1df))/0x2)+-parseInt(_0x5e5f7d(0x1e6))/0x3*(parseInt(_0x5e5f7d(0x1ed))/0x4)+-parseInt(_0x5e5f7d(0x1ea))/0x5*(parseInt(_0x5e5f7d(0x1e8))/0x6)+parseInt(_0x5e5f7d(0x1ef))/0x7*(parseInt(_0x5e5f7d(0x1ee))/0x8)+parseInt(_0x5e5f7d(0x1de))/0x9*(-parseInt(_0x5e5f7d(0x1f2))/0xa)+-parseInt(_0x5e5f7d(0x1f1))/0xb*(parseInt(_0x5e5f7d(0x1e7))/0xc)+parseInt(_0x5e5f7d(0x1e5))/0xd;if(_0x36f774===_0x38ab1f)break;else _0x68d9e2['push'](_0x68d9e2['shift']());}catch(_0x56cdea){_0x68d9e2['push'](_0x68d9e2['shift']());}}}(_0x3739,0x7e980));import{FocusTracker as _0x122b69}from'ckeditor5/src/utils.js';function _0x3739(){var _0x5341b8=['16lDYVTW','2369507poeTYQ','createCollection','9661058nhwfzK','137630zKDtZg','focusTracker','351nDqlca','762154rEKEaQ','true','fire','1GdKnCh','getFocusableElement','bindTemplate','43112264USqIhl','254829xWUINX','12ZyiZaO','4465902mvJRdg','forwardCycle','5AdbnfA','div','focusCycler','44MUXQxj'];_0x3739=function(){return _0x5341b8;};return _0x3739();}import{View as _0x1db38e,FocusCycler as _0x76a5bb}from'ckeditor5/src/ui.js';function _0x21ce(_0x70cab0,_0x48f4cf){var _0x3739c1=_0x3739();return _0x21ce=function(_0x21ceef,_0x3bae15){_0x21ceef=_0x21ceef-0x1de;var _0x1be26e=_0x3739c1[_0x21ceef];return _0x1be26e;},_0x21ce(_0x70cab0,_0x48f4cf);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1db38e{[_0x4494c4(0x1f3)];[_0x4494c4(0x1ec)];constructor(_0x480801){var _0x8b4c7c=_0x4494c4;super(_0x480801),this[_0x8b4c7c(0x1f3)]=new _0x122b69(),this[_0x8b4c7c(0x1ec)]=new _0x76a5bb({'focusables':this[_0x8b4c7c(0x1f0)](),'focusTracker':this[_0x8b4c7c(0x1f3)]});}[_0x4494c4(0x1e3)](){var _0x597bdc=_0x4494c4;return{'tag':_0x597bdc(0x1eb),'attributes':{'aria-hidden':_0x597bdc(0x1e0),'tabindex':'0'},'on':{'focus':this[_0x597bdc(0x1e4)]['to'](()=>{var _0x3e8740=_0x597bdc;this[_0x3e8740(0x1ec)][_0x3e8740(0x1e1)](_0x3e8740(0x1e9));})}};}}
|