@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260115.0 → 0.0.0-nightly-20260116.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 _0x234e1e=_0x2c40;(function(_0x2d4eb2,_0x257aa3){const _0xc5aecb=_0x2c40,_0x3623d9=_0x2d4eb2();while(!![]){try{const _0x517236=parseInt(_0xc5aecb(0x243))/0x1+-parseInt(_0xc5aecb(0x247))/0x2*(-parseInt(_0xc5aecb(0x21f))/0x3)+parseInt(_0xc5aecb(0x20f))/0x4+parseInt(_0xc5aecb(0x21b))/0x5*(parseInt(_0xc5aecb(0x1fb))/0x6)+parseInt(_0xc5aecb(0x22a))/0x7+parseInt(_0xc5aecb(0x223))/0x8*(parseInt(_0xc5aecb(0x206))/0x9)+-parseInt(_0xc5aecb(0x234))/0xa;if(_0x517236===_0x257aa3)break;else _0x3623d9['push'](_0x3623d9['shift']());}catch(_0x50e477){_0x3623d9['push'](_0x3623d9['shift']());}}}(_0x11fc,0xe8c8b));function _0x11fc(){const _0x10c0a2=['get','document','ctxElement','5660676FAmLCj','downcast','destroy','model','uploadcare','commands','querySelector','uploadcare.uploader','init','remove','isPremiumPlugin','ucContextId','20ZYrRpi','execute','fromCharCode','_initConfig','4192473IOmlVS','contentLanguage','uc-config','_configElement','77120QSYxIA','for','_initImageProcessingIndicator','getSelectedElement','extend','_ctxElement','data-uc-image-id','12181295pSWDsD','_initSchema','\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','join','body','uc-upload-ctx-provider','insertImage','getAttribute','PictureEditing','attributeToAttribute','66641370MqLnrs','pluginName','imageInline','#uc-icon-arrow-down','isRegistered','configElement','map','imageBlock','removeAttribute','view','closeMax','uploadcare.pubkey','conversion','requires','schema','1219275aVIczB','_initConversion','true','listenTo','2JUSmEE','upcast','uploadcareImageId','editor','appendChild','once','selection','add','uploadcareImageReplace','1712670jKVyRR','elementToAttribute','UploadcareEditing','_initCtx','locale','cleanupImage','editing','iconHrefResolver','afterInit','render','replaceImageSource','657WRmqgf','config','uploader-','input[uploadcare-file-input]','isOfficialPlugin','href'];_0x11fc=function(){return _0x10c0a2;};return _0x11fc();}import{Plugin as _0x24eab6}from'ckeditor5/src/core.js';import{Dialog as _0x1a9713}from'ckeditor5/src/ui.js';import{createElement as _0x4eefc2,global as _0x2b6193,uid as _0x4be08a}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x23ebf8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x578a72}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xbdd91f}from'./utils/editingutils.js';function _0x2c40(_0x3cfbdc,_0x57d038){const _0x11fc86=_0x11fc();return _0x2c40=function(_0x2c4021,_0x439046){_0x2c4021=_0x2c4021-0x1f3;let _0x496160=_0x11fc86[_0x2c4021];return _0x496160;},_0x2c40(_0x3cfbdc,_0x57d038);}export class UploadcareEditing extends _0x24eab6{[_0x234e1e(0x222)]=null;[_0x234e1e(0x228)]=null;static get[_0x234e1e(0x235)](){const _0x7b79be=_0x234e1e;return _0x7b79be(0x1fd);}static get[_0x234e1e(0x241)](){const _0x461218=_0x234e1e;return[_0x461218(0x232),_0x578a72,_0x1a9713];}static get[_0x234e1e(0x20a)](){return!0x0;}static get[_0x234e1e(0x219)](){return!0x0;}[_0x234e1e(0x21a)];get[_0x234e1e(0x239)](){const _0x925f06=_0x234e1e;return this[_0x925f06(0x222)];}get[_0x234e1e(0x20e)](){const _0x293353=_0x234e1e;return this[_0x293353(0x228)];}constructor(_0x5e2d5c){const _0x3738cd=_0x234e1e;super(_0x5e2d5c),this[_0x3738cd(0x21a)]=_0x4be08a();}[_0x234e1e(0x217)](){const _0x4d9a9a=_0x234e1e,_0x41d3a7=this[_0x4d9a9a(0x1f5)];_0x41d3a7[_0x4d9a9a(0x214)][_0x4d9a9a(0x1f9)](_0x4d9a9a(0x213),new _0x23ebf8(_0x41d3a7));}[_0x234e1e(0x203)](){const _0x5a67ad=_0x234e1e;this[_0x5a67ad(0x22b)](),this[_0x5a67ad(0x244)](),this[_0x5a67ad(0x21e)](),this[_0x5a67ad(0x1fe)](),this[_0x5a67ad(0x225)](),this[_0x5a67ad(0x246)](this[_0x5a67ad(0x1f5)],_0x5a67ad(0x211),()=>{const _0x8a9a95=_0x5a67ad;this[_0x8a9a95(0x222)]&&(this[_0x8a9a95(0x222)][_0x8a9a95(0x218)](),this[_0x8a9a95(0x222)]=null),this[_0x8a9a95(0x228)]&&(this[_0x8a9a95(0x228)][_0x8a9a95(0x218)](),this[_0x8a9a95(0x228)]=null);const _0x32db82=_0x2b6193[_0x8a9a95(0x20d)][_0x8a9a95(0x215)](_0x8a9a95(0x209));_0x32db82&&_0x32db82[_0x8a9a95(0x218)]();}),async function(_0x4b1b37){const _0x2f9be2=_0x13d60e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5d478f=0x535f8c3a,_0x51163a=0x5358f2da^_0x5d478f,_0x3dcba6=window[_0x13d60e([0x44,0x61,0x74,0x65])][_0x13d60e([0x6e,0x6f,0x77])](),_0x570ae9=_0x4b1b37[_0x13d60e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4319ed=new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aa954=>{_0x570ae9[_0x13d60e([0x6f,0x6e,0x63,0x65])](_0x13d60e([0x72,0x65,0x61,0x64,0x79]),_0x2aa954);}),_0x305a7a={[_0x13d60e([0x6b,0x74,0x79])]:_0x13d60e([0x45,0x43]),[_0x13d60e([0x75,0x73,0x65])]:_0x13d60e([0x73,0x69,0x67]),[_0x13d60e([0x63,0x72,0x76])]:_0x13d60e([0x50,0x2d,0x32,0x35,0x36]),[_0x13d60e([0x78])]:_0x13d60e([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]),[_0x13d60e([0x79])]:_0x13d60e([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]),[_0x13d60e([0x61,0x6c,0x67])]:_0x13d60e([0x45,0x53,0x32,0x35,0x36])},_0x58f936=_0x570ae9[_0x13d60e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13d60e([0x67,0x65,0x74])](_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f502(){let _0x5a31f,_0xa32cde=null,_0x1a6a8f=null;try{if(_0x58f936==_0x13d60e([0x47,0x50,0x4c]))return _0x13d60e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a31f=_0x3cc5d4(),!_0x5a31f)return _0x13d60e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a31f[_0x13d60e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a6a8f=_0xd55745(_0x5a31f[_0x13d60e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a31f[_0x13d60e([0x6a,0x74,0x69])])),await _0x1819ca()?_0x385f9c()?_0x239c02()?_0x13d60e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x99b395()?(_0x5a31f[_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13d60e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa32cde=_0x238cbb(_0x13d60e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29b6b9()):_0x13d60e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13d60e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13d60e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13d60e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x239c02(){const _0x250f02=[_0x13d60e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13d60e([0x74,0x72,0x69,0x61,0x6c])][_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a31f[_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dcba6/0x3e8:0xe10*_0x51163a;return _0x5a31f[_0x13d60e([0x65,0x78,0x70])]<_0x250f02;}function _0x385f9c(){const _0x1e37f0=_0x5a31f[_0x13d60e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e37f0&&(!!_0x1e37f0[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d60e([0x2a]))||!!_0x1e37f0[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d60e([0x55,0x50,0x4c,0x43])));}function _0x99b395(){const _0x51c759=_0x2c40,_0x165e36=_0x5a31f[_0x13d60e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x165e36||0x0==_0x165e36[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x181c07}=new URL(window[_0x13d60e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x51c759(0x20b)]);if(_0x165e36[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x181c07))return!0x0;const _0x8f79e4=_0x181c07[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e]));return _0x165e36[_0x13d60e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x905cdb=>_0x905cdb[_0x13d60e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13d60e([0x2a])))[_0x13d60e([0x6d,0x61,0x70])](_0x58c68f=>_0x58c68f[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e])))[_0x13d60e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x447ec3=>_0x447ec3[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8f79e4[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13d60e([0x6d,0x61,0x70])](_0x4ba86f=>Array(_0x8f79e4[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ba86f[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13d60e([0x66,0x69,0x6c,0x6c])](_0x4ba86f[0x0]===_0x13d60e([0x2a])?_0x13d60e([0x2a]):'')[_0x13d60e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ba86f))[_0x13d60e([0x73,0x6f,0x6d,0x65])](_0xbc8e62=>_0x8f79e4[_0x13d60e([0x65,0x76,0x65,0x72,0x79])]((_0x4eb92f,_0x37bb41)=>_0xbc8e62[_0x37bb41]===_0x4eb92f||_0xbc8e62[_0x37bb41]===_0x13d60e([0x2a])));}function _0x29b6b9(){return _0xa32cde&&_0x1a6a8f?new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4298a3,_0x20713b)=>{_0xa32cde[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x4298a3,_0x20713b),_0x1a6a8f[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x420913=>{_0x420913!=_0x13d60e([0x56,0x61,0x6c,0x69,0x64])&&_0x4298a3(_0x420913);},_0x20713b);}):_0xa32cde||_0x1a6a8f||_0x13d60e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd55745(_0x3ba510,_0x35201b){return new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4deff8=>{if(_0x105e0c())return _0x4deff8(_0x13d60e([0x56,0x61,0x6c,0x69,0x64]));_0x3b8248(),_0x570ae9[_0x13d60e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13d60e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ab3cb=!0x1;const _0x391a90=_0x4be08a();function _0x952f2b(_0x221a61){return!!_0x221a61&&(typeof _0x221a61===_0x13d60e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x221a61===_0x13d60e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x221a61[_0x13d60e([0x74,0x68,0x65,0x6e])]===_0x13d60e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x221a61[_0x13d60e([0x63,0x61,0x74,0x63,0x68])]===_0x13d60e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f45fc(_0x1df513){_0x1ac796(_0x1df513)[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x3d789b=>{if(!_0x3d789b||_0x3d789b[_0x13d60e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13d60e([0x6f,0x6b]))return _0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cbb7e(_0x4b2645(_0x391a90+_0x35201b))!=_0x3d789b[_0x13d60e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13d60e([0x56,0x61,0x6c,0x69,0x64]);})[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x11639a=>(_0x3d47b4(),_0x11639a),()=>{const _0x339416=_0x38d4c1();return null==_0x339416?(_0x3d47b4(),_0x13d60e([0x56,0x61,0x6c,0x69,0x64])):_0x13d60e(_0x3dcba6-_0x339416>(0x7753083a^_0x5d478f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x4deff8)[_0x13d60e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4deff8(_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e9a99=0x536962ba^_0x5d478f;function _0x3d47b4(){const _0x4f0e2f=_0x13d60e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cbb7e(_0x4b2645(_0x3ba510)),_0x361a75=_0x547da1(_0x5cbb7e(window[_0x13d60e([0x4d,0x61,0x74,0x68])][_0x13d60e([0x63,0x65,0x69,0x6c])](_0x3dcba6/_0x2e9a99)));window[_0x13d60e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13d60e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f0e2f,_0x361a75);}function _0x38d4c1(){const _0x14498d=_0x13d60e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cbb7e(_0x4b2645(_0x3ba510)),_0x2840cc=window[_0x13d60e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13d60e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14498d);return _0x2840cc?window[_0x13d60e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547da1(_0x2840cc),0x10)*_0x2e9a99:null;}function _0x1ac796(_0x229468){return new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x290b5c,_0x4e018b)=>{_0x229468[_0x13d60e([0x74,0x68,0x65,0x6e])](_0x290b5c,_0x4e018b),window[_0x13d60e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e018b,0x535e58fa^_0x5d478f);});}}_0x570ae9[_0x13d60e([0x6f,0x6e])](_0x13d60e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x401679,_0x1b1f92)=>{if(_0x1b1f92[0x0]!=_0x3ba510)return _0x4deff8(_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b1f92[0x1]={..._0x1b1f92[0x1],[_0x13d60e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x391a90};},{[_0x13d60e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13d60e([0x68,0x69,0x67,0x68])}),_0x570ae9[_0x13d60e([0x6f,0x6e])](_0x13d60e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6d139a=>{_0x952f2b(_0x6d139a[_0x13d60e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ab3cb=!0x0,_0x4f45fc(_0x6d139a[_0x13d60e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13d60e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13d60e([0x6c,0x6f,0x77])}),_0x4319ed[_0x13d60e([0x74,0x68,0x65,0x6e])](()=>{_0x3ab3cb||_0x4deff8(_0x13d60e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x105e0c(){return _0x570ae9[_0x13d60e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13d60e([0x76,0x69,0x65,0x77])][_0x13d60e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13d60e([0x61,0x75,0x74,0x6f]);}function _0x3b8248(){_0x570ae9[_0x13d60e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13d60e([0x76,0x69,0x65,0x77])][_0x13d60e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13d60e([0x61,0x75,0x74,0x6f]);}}function _0x238cbb(_0x5956f4){const _0x20a124=[new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d4eb5=>setTimeout(_0x1d4eb5,0x5356b2f6^_0x5d478f)),_0x4319ed[_0x13d60e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d09b=>{let _0xee59fe=0x0;_0x570ae9[_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d60e([0x6f,0x6e])](_0x13d60e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51d5f5,_0x2b9ce4)=>{_0x2b9ce4[0x0][_0x13d60e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xee59fe++,_0xee59fe==(0x535f89d2^_0x5d478f)&&(_0x54d09b(),_0x51d5f5[_0x13d60e([0x6f,0x66,0x66])]());});}))];return window[_0x13d60e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13d60e([0x72,0x61,0x63,0x65])](_0x20a124)[_0x13d60e([0x74,0x68,0x65,0x6e])](()=>_0x5956f4);}async function _0x5d1165(){await _0x4319ed,_0x570ae9[_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d60e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55cc5c,_0x570ae9[_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13d60e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55cc5c,_0x570ae9[_0x13d60e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13d60e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x358b01(_0x30341c){const _0x49698f=_0x2b31c8();_0x570ae9[_0x49698f]=_0x13d60e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30341c,_0x30341c!=_0x13d60e([0x56,0x61,0x6c,0x69,0x64])&&_0x5d1165();}function _0x2b31c8(){const _0x28464c=window[_0x13d60e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13d60e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13d60e([0x6e,0x6f,0x77])]())[_0x13d60e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13d60e([0x2e]),'');let _0x1b6aeb=_0x13d60e([0x68]);for(let _0x27dd28=0x0;_0x27dd28<_0x28464c[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27dd28+=0x2){let _0x3963c4=window[_0x13d60e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28464c[_0x13d60e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27dd28,_0x27dd28+0x2));_0x3963c4>=_0x2f9be2[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3963c4-=_0x2f9be2[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b6aeb+=_0x2f9be2[_0x3963c4];}return _0x1b6aeb;}function _0x3cc5d4(){const _0x104390=_0x58f936[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e]));if(0x3!=_0x104390[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31e81b(_0x104390[0x1]);function _0x31e81b(_0x13a6b6){const _0x35490c=_0x403272(_0x13a6b6);return _0x35490c&&_0x2ebbd1()?_0x35490c:null;function _0x2ebbd1(){const _0x4c05fb=_0x35490c[_0x13d60e([0x6a,0x74,0x69])],_0x5d14e6=window[_0x13d60e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c05fb[_0x13d60e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c05fb[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20b46a={..._0x35490c,[_0x13d60e([0x6a,0x74,0x69])]:_0x4c05fb[_0x13d60e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c05fb[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20b46a[_0x13d60e([0x76,0x63])],_0x4b2645(_0x20b46a)==_0x5d14e6;}}}async function _0x1819ca(){let _0x2ea068=!0x0;try{const _0x34e101=_0x58f936[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])](_0x13d60e([0x2e])),[_0x52478a,_0x32819d,_0x1c5d17]=_0x34e101;return _0x5a7eb0(_0x52478a),await _0x341b8f(_0x52478a,_0x32819d,_0x1c5d17),_0x2ea068;}catch{return!0x1;}function _0x5a7eb0(_0x52ca99){const _0x168d20=_0x403272(_0x52ca99);_0x168d20&&_0x168d20[_0x13d60e([0x61,0x6c,0x67])]==_0x13d60e([0x45,0x53,0x32,0x35,0x36])||(_0x2ea068=!0x1);}async function _0x341b8f(_0xaa078b,_0x225943,_0x2d7700){const _0x537edf=window[_0x13d60e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13d60e([0x66,0x72,0x6f,0x6d])](_0x44f926(_0x2d7700),_0x1e3b22=>_0x1e3b22[_0x13d60e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x176cb9=new window[(_0x13d60e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13d60e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaa078b+_0x13d60e([0x2e])+_0x225943),_0x43c044=window[_0x13d60e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13d60e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43c044)return;const _0x15f187=await _0x43c044[_0x13d60e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13d60e([0x6a,0x77,0x6b]),_0x305a7a,{[_0x13d60e([0x6e,0x61,0x6d,0x65])]:_0x13d60e([0x45,0x43,0x44,0x53,0x41]),[_0x13d60e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13d60e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13d60e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43c044[_0x13d60e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13d60e([0x6e,0x61,0x6d,0x65])]:_0x13d60e([0x45,0x43,0x44,0x53,0x41]),[_0x13d60e([0x68,0x61,0x73,0x68])]:{[_0x13d60e([0x6e,0x61,0x6d,0x65])]:_0x13d60e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15f187,_0x537edf,_0x176cb9)||(_0x2ea068=!0x1);}}function _0x403272(_0x104cf1){return _0x104cf1[_0x13d60e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13d60e([0x65,0x79]))?JSON[_0x13d60e([0x70,0x61,0x72,0x73,0x65])](_0x44f926(_0x104cf1)):null;}function _0x44f926(_0x55e79a){return window[_0x13d60e([0x61,0x74,0x6f,0x62])](_0x55e79a[_0x13d60e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13d60e([0x2b]))[_0x13d60e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13d60e([0x2f])));}function _0x4b2645(_0x6ce3e7){let _0x2e35ef=0x1505;function _0x204786(_0x3ae2e8){for(let _0x131304=0x0;_0x131304<_0x3ae2e8[_0x13d60e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x131304++){const _0x1456f=_0x3ae2e8[_0x13d60e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x131304);_0x2e35ef=(_0x2e35ef<<0x5)+_0x2e35ef+_0x1456f,_0x2e35ef&=_0x2e35ef;}}function _0x3a7e7b(_0x4d056c){Array[_0x13d60e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d056c)?_0x4d056c[_0x13d60e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a7e7b):_0x4d056c&&typeof _0x4d056c==_0x13d60e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13d60e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d056c)[_0x13d60e([0x73,0x6f,0x72,0x74])]()[_0x13d60e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x546212,_0x222b58])=>{_0x204786(_0x546212),_0x3a7e7b(_0x222b58);}):_0x204786(window[_0x13d60e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d056c));}return _0x3a7e7b(_0x6ce3e7),_0x2e35ef>>>0x0;}function _0x5cbb7e(_0x581d48){return _0x581d48[_0x13d60e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13d60e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13d60e([0x30]));}function _0x547da1(_0x140430){return _0x140430[_0x13d60e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13d60e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13d60e([0x6a,0x6f,0x69,0x6e])]('');}function _0x55cc5c(){}function _0x13d60e(_0x7687c9){const _0x4eb30a=_0x2c40;return _0x7687c9[_0x4eb30a(0x23a)](_0x11c7b3=>String[_0x4eb30a(0x21d)](_0x11c7b3))[_0x4eb30a(0x22d)]('');}_0x358b01(await _0x31f502());}(this);}[_0x234e1e(0x22b)](){const _0x183c12=_0x234e1e,_0x4733cf=this[_0x183c12(0x1f5)][_0x183c12(0x212)][_0x183c12(0x242)];_0x4733cf[_0x183c12(0x238)](_0x183c12(0x23b))&&_0x4733cf[_0x183c12(0x227)](_0x183c12(0x23b),{'allowAttributes':[_0x183c12(0x1f4)]}),_0x4733cf[_0x183c12(0x238)](_0x183c12(0x236))&&_0x4733cf[_0x183c12(0x227)](_0x183c12(0x236),{'allowAttributes':[_0x183c12(0x1f4)]});}[_0x234e1e(0x244)](){const _0x46714e=_0x234e1e,_0x52a3ac=this[_0x46714e(0x1f5)];_0x52a3ac[_0x46714e(0x240)][_0x46714e(0x224)](_0x46714e(0x210))[_0x46714e(0x233)]({'model':_0x46714e(0x1f4),'view':_0x46714e(0x229)}),_0x52a3ac[_0x46714e(0x240)][_0x46714e(0x224)](_0x46714e(0x1f3))[_0x46714e(0x1fc)]({'model':{'key':_0x46714e(0x1f4),'value':_0x23aaf6=>_0x23aaf6[_0x46714e(0x231)](_0x46714e(0x229))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30dcf3=_0x52a3ac[_0x46714e(0x214)][_0x46714e(0x20c)](_0x46714e(0x205));_0x30dcf3&&this[_0x46714e(0x246)](_0x30dcf3,_0x46714e(0x200),(_0xc2148d,[_0xbe1032,_0xe3b95b])=>{const _0x25931f=_0x46714e;_0xbe1032[_0x25931f(0x23c)](_0x25931f(0x1f4),_0xe3b95b);});}[_0x234e1e(0x21e)](){const _0x3d1589=_0x234e1e,_0x5ec2f5=this[_0x3d1589(0x1f5)][_0x3d1589(0x207)][_0x3d1589(0x20c)](_0x3d1589(0x216))||{},_0xba8902=this[_0x3d1589(0x1f5)][_0x3d1589(0x207)][_0x3d1589(0x20c)](_0x3d1589(0x23f))||'';this[_0x3d1589(0x222)]=_0x4eefc2(_0x2b6193[_0x3d1589(0x20d)],_0x3d1589(0x221),{..._0x5ec2f5,'pubkey':_0xba8902,'ctx-name':_0x3d1589(0x208)+this[_0x3d1589(0x21a)],'sourceList':'','imgOnly':_0x3d1589(0x245),'removeCopyright':_0x3d1589(0x245),'localeName':this[_0x3d1589(0x1f5)][_0x3d1589(0x1ff)][_0x3d1589(0x220)],'externalSourcesEmbedCss':_0x3d1589(0x22c)}),this[_0x3d1589(0x222)][_0x3d1589(0x202)]=_0x55ff2b=>{const _0x242e83=_0x3d1589;if(_0x242e83(0x23e)==_0x55ff2b)return _0x242e83(0x237);},_0x2b6193[_0x3d1589(0x20d)][_0x3d1589(0x22e)][_0x3d1589(0x1f6)](this[_0x3d1589(0x222)]);}[_0x234e1e(0x1fe)](){const _0xf0b367=_0x234e1e;this[_0xf0b367(0x228)]=_0x4eefc2(_0x2b6193[_0xf0b367(0x20d)],_0xf0b367(0x22f),{'ctx-name':_0xf0b367(0x208)+this[_0xf0b367(0x21a)]}),_0x2b6193[_0xf0b367(0x20d)][_0xf0b367(0x22e)][_0xf0b367(0x1f6)](this[_0xf0b367(0x228)]);}[_0x234e1e(0x225)](){const _0x52470a=_0x234e1e,_0x359f49=this[_0x52470a(0x1f5)][_0x52470a(0x214)][_0x52470a(0x20c)](_0x52470a(0x230));_0x359f49&&this[_0x52470a(0x246)](_0x359f49,_0x52470a(0x21c),()=>{const _0x486a54=_0x52470a,_0x53270f=this[_0x486a54(0x1f5)][_0x486a54(0x212)][_0x486a54(0x20d)][_0x486a54(0x1f8)][_0x486a54(0x226)]();_0x53270f&&_0x53270f[_0x486a54(0x231)](_0x486a54(0x1f4))&&this[_0x486a54(0x1f5)][_0x486a54(0x201)][_0x486a54(0x23d)][_0x486a54(0x1f7)](_0x486a54(0x204),()=>{const _0x574221=_0x486a54;_0xbdd91f(this[_0x574221(0x1f5)],_0x53270f);});});const _0x2dee23=this[_0x52470a(0x1f5)][_0x52470a(0x214)][_0x52470a(0x20c)](_0x52470a(0x1fa));_0x2dee23&&this[_0x52470a(0x246)](_0x2dee23,_0x52470a(0x21c),()=>{const _0x59cefc=_0x52470a,_0x2501d2=this[_0x59cefc(0x1f5)][_0x59cefc(0x212)][_0x59cefc(0x20d)][_0x59cefc(0x1f8)][_0x59cefc(0x226)]();_0x2501d2&&_0x2501d2[_0x59cefc(0x231)](_0x59cefc(0x1f4))&&this[_0x59cefc(0x1f5)][_0x59cefc(0x201)][_0x59cefc(0x23d)][_0x59cefc(0x1f7)](_0x59cefc(0x204),()=>{const _0x40878d=_0x59cefc;_0xbdd91f(this[_0x40878d(0x1f5)],_0x2501d2);});});}}
|
|
23
|
+
const _0x37deec=_0x5594;(function(_0x58ab8,_0x3deaa8){const _0x1dace6=_0x5594,_0x524d1d=_0x58ab8();while(!![]){try{const _0x567477=parseInt(_0x1dace6(0xad))/0x1*(-parseInt(_0x1dace6(0xf0))/0x2)+parseInt(_0x1dace6(0xf3))/0x3*(-parseInt(_0x1dace6(0xda))/0x4)+parseInt(_0x1dace6(0xe4))/0x5*(parseInt(_0x1dace6(0xb7))/0x6)+-parseInt(_0x1dace6(0xb4))/0x7+parseInt(_0x1dace6(0x9f))/0x8*(parseInt(_0x1dace6(0xb2))/0x9)+-parseInt(_0x1dace6(0xc0))/0xa*(parseInt(_0x1dace6(0xde))/0xb)+parseInt(_0x1dace6(0xa4))/0xc;if(_0x567477===_0x3deaa8)break;else _0x524d1d['push'](_0x524d1d['shift']());}catch(_0x1bbbac){_0x524d1d['push'](_0x524d1d['shift']());}}}(_0x33c1,0xb9c9e));import{Plugin as _0x51dc4f}from'ckeditor5/src/core.js';import{Dialog as _0x2ae7c8}from'ckeditor5/src/ui.js';import{createElement as _0x530af2,global as _0x1b2f9a,uid as _0x5b697c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xaa4555}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5791b7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xd90381}from'./utils/editingutils.js';function _0x5594(_0x9ebd51,_0x2366fa){const _0x33c1a0=_0x33c1();return _0x5594=function(_0x5594bf,_0x14841a){_0x5594bf=_0x5594bf-0x9e;let _0xf5573e=_0x33c1a0[_0x5594bf];return _0xf5573e;},_0x5594(_0x9ebd51,_0x2366fa);}function _0x33c1(){const _0x5a5b07=['2WnHgRK','for','conversion','locale','contentLanguage','732222lnGRDs','imageInline','3757523uUTYQU','isPremiumPlugin','selection','8473266IyXsjk','editing','PictureEditing','model','attributeToAttribute','document','input[uploadcare-file-input]','_initConversion','cleanupImage','24410OLnNJg','map','elementToAttribute','configElement','isOfficialPlugin','join','editor','data-uc-image-id','_ctxElement','\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','afterInit','listenTo','get','getSelectedElement','isRegistered','_initCtx','add','schema','_initSchema','iconHrefResolver','href','pluginName','remove','imageBlock','uploadcareImageId','128720ZnzDOi','ctxElement','destroy','body','1947BySrYT','_initImageProcessingIndicator','uploadcare.uploader','config','uc-upload-ctx-provider','fromCharCode','5BWLWkH','init','true','uploadcare.pubkey','_configElement','insertImage','render','closeMax','ucContextId','once','replaceImageSource','uc-config','1387624ZqOvqI','_initConfig','#uc-icon-arrow-down','114ukTdaz','appendChild','commands','88eNEpnP','requires','uploadcare','view','upcast','24397812yXJdvs','getAttribute','UploadcareEditing','uploader-','removeAttribute','uploadcareImageReplace','downcast','querySelector','execute'];_0x33c1=function(){return _0x5a5b07;};return _0x33c1();}export class UploadcareEditing extends _0x51dc4f{[_0x37deec(0xe8)]=null;[_0x37deec(0xc8)]=null;static get[_0x37deec(0xd6)](){const _0x145463=_0x37deec;return _0x145463(0xa6);}static get[_0x37deec(0xa0)](){const _0xfd8ee7=_0x37deec;return[_0xfd8ee7(0xb9),_0x5791b7,_0x2ae7c8];}static get[_0x37deec(0xc4)](){return!0x0;}static get[_0x37deec(0xb5)](){return!0x0;}[_0x37deec(0xec)];get[_0x37deec(0xc3)](){const _0x43bb32=_0x37deec;return this[_0x43bb32(0xe8)];}get[_0x37deec(0xdb)](){const _0x3f9b96=_0x37deec;return this[_0x3f9b96(0xc8)];}constructor(_0x529205){const _0x5ca39c=_0x37deec;super(_0x529205),this[_0x5ca39c(0xec)]=_0x5b697c();}[_0x37deec(0xe5)](){const _0x5a1c88=_0x37deec,_0x1b9796=this[_0x5a1c88(0xc6)];_0x1b9796[_0x5a1c88(0x9e)][_0x5a1c88(0xd1)](_0x5a1c88(0xa1),new _0xaa4555(_0x1b9796));}[_0x37deec(0xcb)](){const _0x59638d=_0x37deec;this[_0x59638d(0xd3)](),this[_0x59638d(0xbe)](),this[_0x59638d(0xf1)](),this[_0x59638d(0xd0)](),this[_0x59638d(0xdf)](),this[_0x59638d(0xcc)](this[_0x59638d(0xc6)],_0x59638d(0xdc),()=>{const _0x2dc6ef=_0x59638d;this[_0x2dc6ef(0xe8)]&&(this[_0x2dc6ef(0xe8)][_0x2dc6ef(0xd7)](),this[_0x2dc6ef(0xe8)]=null),this[_0x2dc6ef(0xc8)]&&(this[_0x2dc6ef(0xc8)][_0x2dc6ef(0xd7)](),this[_0x2dc6ef(0xc8)]=null);const _0x173c20=_0x1b2f9a[_0x2dc6ef(0xbc)][_0x2dc6ef(0xab)](_0x2dc6ef(0xbd));_0x173c20&&_0x173c20[_0x2dc6ef(0xd7)]();}),async function(_0x5d1d52){const _0x323d87=_0x3039ea([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4541ce=0x535f8c3a,_0xc4f361=0x5358f2c2^_0x4541ce,_0x2fd8e8=window[_0x3039ea([0x44,0x61,0x74,0x65])][_0x3039ea([0x6e,0x6f,0x77])](),_0xc347d8=_0x5d1d52[_0x3039ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cc999=new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x273bc3=>{_0xc347d8[_0x3039ea([0x6f,0x6e,0x63,0x65])](_0x3039ea([0x72,0x65,0x61,0x64,0x79]),_0x273bc3);}),_0x31710a={[_0x3039ea([0x6b,0x74,0x79])]:_0x3039ea([0x45,0x43]),[_0x3039ea([0x75,0x73,0x65])]:_0x3039ea([0x73,0x69,0x67]),[_0x3039ea([0x63,0x72,0x76])]:_0x3039ea([0x50,0x2d,0x32,0x35,0x36]),[_0x3039ea([0x78])]:_0x3039ea([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]),[_0x3039ea([0x79])]:_0x3039ea([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]),[_0x3039ea([0x61,0x6c,0x67])]:_0x3039ea([0x45,0x53,0x32,0x35,0x36])},_0x3ab3c8=_0xc347d8[_0x3039ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3039ea([0x67,0x65,0x74])](_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a7db0(){let _0x2a76d2,_0x5982d1=null,_0x11305d=null;try{if(_0x3ab3c8==_0x3039ea([0x47,0x50,0x4c]))return _0x3039ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a76d2=_0x162d23(),!_0x2a76d2)return _0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a76d2[_0x3039ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11305d=_0x180804(_0x2a76d2[_0x3039ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a76d2[_0x3039ea([0x6a,0x74,0x69])])),await _0x195a05()?_0x1a6556()?_0x5d504b()?_0x3039ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7c863a()?(_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3039ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5982d1=_0x66f322(_0x3039ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25a05c()):_0x3039ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3039ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d504b(){const _0x5aadad=[_0x3039ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3039ea([0x74,0x72,0x69,0x61,0x6c])][_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fd8e8/0x3e8:0xe10*_0xc4f361;return _0x2a76d2[_0x3039ea([0x65,0x78,0x70])]<_0x5aadad;}function _0x1a6556(){const _0x113163=_0x2a76d2[_0x3039ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x113163&&(!!_0x113163[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x2a]))||!!_0x113163[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x55,0x50,0x4c,0x43])));}function _0x7c863a(){const _0x3baab0=_0x5594,_0x2e58bd=_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e58bd||0x0==_0x2e58bd[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6a2937}=new URL(window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3baab0(0xd5)]);if(_0x2e58bd[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6a2937))return!0x0;const _0xc92079=_0x6a2937[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e]));return _0x2e58bd[_0x3039ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10ce27=>_0x10ce27[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x2a])))[_0x3039ea([0x6d,0x61,0x70])](_0x58da63=>_0x58da63[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e])))[_0x3039ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7c0a0f=>_0x7c0a0f[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc92079[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039ea([0x6d,0x61,0x70])](_0x1a3851=>Array(_0xc92079[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3851[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039ea([0x66,0x69,0x6c,0x6c])](_0x1a3851[0x0]===_0x3039ea([0x2a])?_0x3039ea([0x2a]):'')[_0x3039ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3851))[_0x3039ea([0x73,0x6f,0x6d,0x65])](_0x4f6c8b=>_0xc92079[_0x3039ea([0x65,0x76,0x65,0x72,0x79])]((_0x37e511,_0x138be7)=>_0x4f6c8b[_0x138be7]===_0x37e511||_0x4f6c8b[_0x138be7]===_0x3039ea([0x2a])));}function _0x25a05c(){return _0x5982d1&&_0x11305d?new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cc75c,_0x166e9c)=>{_0x5982d1[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x5cc75c,_0x166e9c),_0x11305d[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x3e7953=>{_0x3e7953!=_0x3039ea([0x56,0x61,0x6c,0x69,0x64])&&_0x5cc75c(_0x3e7953);},_0x166e9c);}):_0x5982d1||_0x11305d||_0x3039ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x180804(_0x49479b,_0x57cba8){return new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2e13=>{if(_0x15cd64())return _0x3d2e13(_0x3039ea([0x56,0x61,0x6c,0x69,0x64]));_0x28188a(),_0xc347d8[_0x3039ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16ba07=!0x1;const _0x5ae2d1=_0x5b697c();function _0x218ee9(_0x38a599){return!!_0x38a599&&(typeof _0x38a599===_0x3039ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38a599===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38a599[_0x3039ea([0x74,0x68,0x65,0x6e])]===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38a599[_0x3039ea([0x63,0x61,0x74,0x63,0x68])]===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b486c(_0x35d38e){_0x3afb4f(_0x35d38e)[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x1cab00=>{if(!_0x1cab00||_0x1cab00[_0x3039ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3039ea([0x6f,0x6b]))return _0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x74048(_0x332680(_0x5ae2d1+_0x57cba8))!=_0x1cab00[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3039ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x4dae67=>(_0x49b82c(),_0x4dae67),()=>{const _0x56db01=_0x5f5597();return null==_0x56db01?(_0x49b82c(),_0x3039ea([0x56,0x61,0x6c,0x69,0x64])):_0x3039ea(_0x2fd8e8-_0x56db01>(0x7753083a^_0x4541ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x3d2e13)[_0x3039ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a8e45=0x536962ba^_0x4541ce;function _0x49b82c(){const _0x15e8c2=_0x3039ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x74048(_0x332680(_0x49479b)),_0x31d890=_0x7355c9(_0x74048(window[_0x3039ea([0x4d,0x61,0x74,0x68])][_0x3039ea([0x63,0x65,0x69,0x6c])](_0x2fd8e8/_0x1a8e45)));window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15e8c2,_0x31d890);}function _0x5f5597(){const _0x25bf8d=_0x3039ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x74048(_0x332680(_0x49479b)),_0x1cd3ee=window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25bf8d);return _0x1cd3ee?window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7355c9(_0x1cd3ee),0x10)*_0x1a8e45:null;}function _0x3afb4f(_0x550d3a){return new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc2c3,_0x513743)=>{_0x550d3a[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x1dc2c3,_0x513743),window[_0x3039ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x513743,0x535e58fa^_0x4541ce);});}}_0xc347d8[_0x3039ea([0x6f,0x6e])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46419a,_0x4a4318)=>{if(_0x4a4318[0x0]!=_0x49479b)return _0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a4318[0x1]={..._0x4a4318[0x1],[_0x3039ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ae2d1};},{[_0x3039ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039ea([0x68,0x69,0x67,0x68])}),_0xc347d8[_0x3039ea([0x6f,0x6e])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x238deb=>{_0x218ee9(_0x238deb[_0x3039ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16ba07=!0x0,_0x2b486c(_0x238deb[_0x3039ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3039ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039ea([0x6c,0x6f,0x77])}),_0x3cc999[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>{_0x16ba07||_0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15cd64(){return _0xc347d8[_0x3039ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039ea([0x76,0x69,0x65,0x77])][_0x3039ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3039ea([0x61,0x75,0x74,0x6f]);}function _0x28188a(){_0xc347d8[_0x3039ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039ea([0x76,0x69,0x65,0x77])][_0x3039ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3039ea([0x61,0x75,0x74,0x6f]);}}function _0x66f322(_0x284cdb){const _0x4edb39=[new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3239d=>setTimeout(_0x3239d,0x5356b2f6^_0x4541ce)),_0x3cc999[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab921=>{let _0x3e1d9d=0x0;_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x6f,0x6e])](_0x3039ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52be21,_0x28cd54)=>{_0x28cd54[0x0][_0x3039ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e1d9d++,_0x3e1d9d==(0x535f89d2^_0x4541ce)&&(_0x5ab921(),_0x52be21[_0x3039ea([0x6f,0x66,0x66])]());});}))];return window[_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3039ea([0x72,0x61,0x63,0x65])](_0x4edb39)[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>_0x284cdb);}async function _0x41da02(){await _0x3cc999,_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41cc37,_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41cc37,_0xc347d8[_0x3039ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7e1707(_0x597936){const _0x56a4e5=_0x268afb();_0xc347d8[_0x56a4e5]=_0x3039ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x597936,_0x597936!=_0x3039ea([0x56,0x61,0x6c,0x69,0x64])&&_0x41da02();}function _0x268afb(){const _0x350c29=window[_0x3039ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3039ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3039ea([0x6e,0x6f,0x77])]())[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3039ea([0x2e]),'');let _0x26163e=_0x3039ea([0x68]);for(let _0x5ee444=0x0;_0x5ee444<_0x350c29[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ee444+=0x2){let _0x53665=window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x350c29[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ee444,_0x5ee444+0x2));_0x53665>=_0x323d87[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53665-=_0x323d87[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26163e+=_0x323d87[_0x53665];}return _0x26163e;}function _0x162d23(){const _0x19aff6=_0x3ab3c8[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e]));if(0x3!=_0x19aff6[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58eed5(_0x19aff6[0x1]);function _0x58eed5(_0x28d7f5){const _0x5861cc=_0xa90b74(_0x28d7f5);return _0x5861cc&&_0xf2de24()?_0x5861cc:null;function _0xf2de24(){const _0x5a262b=_0x5861cc[_0x3039ea([0x6a,0x74,0x69])],_0x56f1fd=window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a262b[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a262b[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ff20e={..._0x5861cc,[_0x3039ea([0x6a,0x74,0x69])]:_0x5a262b[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a262b[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ff20e[_0x3039ea([0x76,0x63])],_0x332680(_0x4ff20e)==_0x56f1fd;}}}async function _0x195a05(){let _0x2fc717=!0x0;try{const _0x30235d=_0x3ab3c8[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e])),[_0x2b54dd,_0x121916,_0x4b7d0c]=_0x30235d;return _0x5c629d(_0x2b54dd),await _0x2b4e9c(_0x2b54dd,_0x121916,_0x4b7d0c),_0x2fc717;}catch{return!0x1;}function _0x5c629d(_0xd6f028){const _0x11825b=_0xa90b74(_0xd6f028);_0x11825b&&_0x11825b[_0x3039ea([0x61,0x6c,0x67])]==_0x3039ea([0x45,0x53,0x32,0x35,0x36])||(_0x2fc717=!0x1);}async function _0x2b4e9c(_0x49fecf,_0x59f8e7,_0x423313){const _0x5a6635=window[_0x3039ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3039ea([0x66,0x72,0x6f,0x6d])](_0x1e1f1f(_0x423313),_0x5bc9ce=>_0x5bc9ce[_0x3039ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf4d78=new window[(_0x3039ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3039ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49fecf+_0x3039ea([0x2e])+_0x59f8e7),_0xdd8358=window[_0x3039ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3039ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdd8358)return;const _0x4a80c8=await _0xdd8358[_0x3039ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3039ea([0x6a,0x77,0x6b]),_0x31710a,{[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x45,0x43,0x44,0x53,0x41]),[_0x3039ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3039ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdd8358[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x45,0x43,0x44,0x53,0x41]),[_0x3039ea([0x68,0x61,0x73,0x68])]:{[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a80c8,_0x5a6635,_0xf4d78)||(_0x2fc717=!0x1);}}function _0xa90b74(_0x1d1b2a){return _0x1d1b2a[_0x3039ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3039ea([0x65,0x79]))?JSON[_0x3039ea([0x70,0x61,0x72,0x73,0x65])](_0x1e1f1f(_0x1d1b2a)):null;}function _0x1e1f1f(_0x57ae3a){return window[_0x3039ea([0x61,0x74,0x6f,0x62])](_0x57ae3a[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3039ea([0x2b]))[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3039ea([0x2f])));}function _0x332680(_0x1403c8){let _0x2ed575=0x1505;function _0x2f5444(_0x5b49d8){for(let _0x5bd8cd=0x0;_0x5bd8cd<_0x5b49d8[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bd8cd++){const _0x42e78e=_0x5b49d8[_0x3039ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bd8cd);_0x2ed575=(_0x2ed575<<0x5)+_0x2ed575+_0x42e78e,_0x2ed575&=_0x2ed575;}}function _0x19518c(_0x342c4c){Array[_0x3039ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x342c4c)?_0x342c4c[_0x3039ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19518c):_0x342c4c&&typeof _0x342c4c==_0x3039ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3039ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x342c4c)[_0x3039ea([0x73,0x6f,0x72,0x74])]()[_0x3039ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cd065,_0x4ef3ff])=>{_0x2f5444(_0x1cd065),_0x19518c(_0x4ef3ff);}):_0x2f5444(window[_0x3039ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x342c4c));}return _0x19518c(_0x1403c8),_0x2ed575>>>0x0;}function _0x74048(_0x3594eb){return _0x3594eb[_0x3039ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3039ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3039ea([0x30]));}function _0x7355c9(_0x10e8f2){return _0x10e8f2[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3039ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3039ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x41cc37(){}function _0x3039ea(_0x2cfbc4){const _0x1af3ce=_0x5594;return _0x2cfbc4[_0x1af3ce(0xc1)](_0x19a2ef=>String[_0x1af3ce(0xe3)](_0x19a2ef))[_0x1af3ce(0xc5)]('');}_0x7e1707(await _0x3a7db0());}(this);}[_0x37deec(0xd3)](){const _0x455e10=_0x37deec,_0x4c6dee=this[_0x455e10(0xc6)][_0x455e10(0xba)][_0x455e10(0xd2)];_0x4c6dee[_0x455e10(0xcf)](_0x455e10(0xd8))&&_0x4c6dee[_0x455e10(0xca)](_0x455e10(0xd8),{'allowAttributes':[_0x455e10(0xd9)]}),_0x4c6dee[_0x455e10(0xcf)](_0x455e10(0xb3))&&_0x4c6dee[_0x455e10(0xca)](_0x455e10(0xb3),{'allowAttributes':[_0x455e10(0xd9)]});}[_0x37deec(0xbe)](){const _0x3b428d=_0x37deec,_0x43d69d=this[_0x3b428d(0xc6)];_0x43d69d[_0x3b428d(0xaf)][_0x3b428d(0xae)](_0x3b428d(0xaa))[_0x3b428d(0xbb)]({'model':_0x3b428d(0xd9),'view':_0x3b428d(0xc7)}),_0x43d69d[_0x3b428d(0xaf)][_0x3b428d(0xae)](_0x3b428d(0xa3))[_0x3b428d(0xc2)]({'model':{'key':_0x3b428d(0xd9),'value':_0x125383=>_0x125383[_0x3b428d(0xa5)](_0x3b428d(0xc7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54bcf5=_0x43d69d[_0x3b428d(0x9e)][_0x3b428d(0xcd)](_0x3b428d(0xee));_0x54bcf5&&this[_0x3b428d(0xcc)](_0x54bcf5,_0x3b428d(0xbf),(_0x4b03f7,[_0x8b0105,_0x23b864])=>{const _0x804850=_0x3b428d;_0x8b0105[_0x804850(0xa8)](_0x804850(0xd9),_0x23b864);});}[_0x37deec(0xf1)](){const _0xe9ed60=_0x37deec,_0x894ea=this[_0xe9ed60(0xc6)][_0xe9ed60(0xe1)][_0xe9ed60(0xcd)](_0xe9ed60(0xe0))||{},_0x47981a=this[_0xe9ed60(0xc6)][_0xe9ed60(0xe1)][_0xe9ed60(0xcd)](_0xe9ed60(0xe7))||'';this[_0xe9ed60(0xe8)]=_0x530af2(_0x1b2f9a[_0xe9ed60(0xbc)],_0xe9ed60(0xef),{..._0x894ea,'pubkey':_0x47981a,'ctx-name':_0xe9ed60(0xa7)+this[_0xe9ed60(0xec)],'sourceList':'','imgOnly':_0xe9ed60(0xe6),'removeCopyright':_0xe9ed60(0xe6),'localeName':this[_0xe9ed60(0xc6)][_0xe9ed60(0xb0)][_0xe9ed60(0xb1)],'externalSourcesEmbedCss':_0xe9ed60(0xc9)}),this[_0xe9ed60(0xe8)][_0xe9ed60(0xd4)]=_0x50d322=>{const _0x253e55=_0xe9ed60;if(_0x253e55(0xeb)==_0x50d322)return _0x253e55(0xf2);},_0x1b2f9a[_0xe9ed60(0xbc)][_0xe9ed60(0xdd)][_0xe9ed60(0xf4)](this[_0xe9ed60(0xe8)]);}[_0x37deec(0xd0)](){const _0x333057=_0x37deec;this[_0x333057(0xc8)]=_0x530af2(_0x1b2f9a[_0x333057(0xbc)],_0x333057(0xe2),{'ctx-name':_0x333057(0xa7)+this[_0x333057(0xec)]}),_0x1b2f9a[_0x333057(0xbc)][_0x333057(0xdd)][_0x333057(0xf4)](this[_0x333057(0xc8)]);}[_0x37deec(0xdf)](){const _0x4b739b=_0x37deec,_0x305be6=this[_0x4b739b(0xc6)][_0x4b739b(0x9e)][_0x4b739b(0xcd)](_0x4b739b(0xe9));_0x305be6&&this[_0x4b739b(0xcc)](_0x305be6,_0x4b739b(0xac),()=>{const _0x350e14=_0x4b739b,_0x3fe8e2=this[_0x350e14(0xc6)][_0x350e14(0xba)][_0x350e14(0xbc)][_0x350e14(0xb6)][_0x350e14(0xce)]();_0x3fe8e2&&_0x3fe8e2[_0x350e14(0xa5)](_0x350e14(0xd9))&&this[_0x350e14(0xc6)][_0x350e14(0xb8)][_0x350e14(0xa2)][_0x350e14(0xed)](_0x350e14(0xea),()=>{const _0x5ccfb9=_0x350e14;_0xd90381(this[_0x5ccfb9(0xc6)],_0x3fe8e2);});});const _0x2c0b56=this[_0x4b739b(0xc6)][_0x4b739b(0x9e)][_0x4b739b(0xcd)](_0x4b739b(0xa9));_0x2c0b56&&this[_0x4b739b(0xcc)](_0x2c0b56,_0x4b739b(0xac),()=>{const _0x89a103=_0x4b739b,_0x48f37b=this[_0x89a103(0xc6)][_0x89a103(0xba)][_0x89a103(0xbc)][_0x89a103(0xb6)][_0x89a103(0xce)]();_0x48f37b&&_0x48f37b[_0x89a103(0xa5)](_0x89a103(0xd9))&&this[_0x89a103(0xc6)][_0x89a103(0xb8)][_0x89a103(0xa2)][_0x89a103(0xed)](_0x89a103(0xea),()=>{const _0x46fddc=_0x89a103;_0xd90381(this[_0x46fddc(0xc6)],_0x48f37b);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5d0e2d,ObservableMixin as _0x57c09a}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5a6e09}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x481622}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x13a954}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3a52ba}from'../../utils/uploadutils.js';import{getImageUrls as _0x46c1e5,getImageDimension as _0x1d6461}from'../../utils/editingutils.js';import{isAncestor as _0x4c863b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x57c09a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xfd8347,_0x44aed3,_0x144fcc){super(),this['_editor']=_0xfd8347,this['_dialog']=_0x44aed3,this['_imageElement']=_0x144fcc,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 _0x59d622=this['_imageElement'],_0xbfebf5=_0x59d622['getAttribute']('uploadcareImageId'),_0x362ee6=_0x59d622['getAttribute']('src');if(_0xbfebf5)await this['_loadImageInfo'](_0xbfebf5,_0x362ee6);else{if(this['_imageCache']['has'](_0x362ee6)){const _0x3aaa0e=this['_imageCache']['get'](_0x362ee6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3aaa0e['url'],this['imageDimension']=_0x3aaa0e['dimension'],this['imageId']=_0x3aaa0e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xb7484d}=this['_editor'],t=_0xb7484d['t'],_0x4f6aa9=new _0x13a954(_0xb7484d,this['imageStatus'],this['_attributes']);_0x4f6aa9['bind']('status')['to'](this,'imageStatus'),_0x4f6aa9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f6aa9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f6aa9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f6aa9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x481622,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f6aa9,'position':_0x5a6e09['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f6aa9['focus']();},'onHide':()=>{_0x4f6aa9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46f6ef=>!_0x4c863b(_0x46f6ef,_0x4f6aa9['element'])}});}['_loadImageInfo'](_0x55bcb8,_0xda16ab){return _0x3a52ba['getInfo'](_0x55bcb8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4a41a8=>{const {width:_0x5dac93,height:_0x16d08a}=_0x4a41a8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xda16ab,this['imageDimension']={'width':_0x5dac93,'height':_0x16d08a},this['imageId']=_0x55bcb8;})['catch'](_0x35d8ef=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35d8ef['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x11048a,_0x5cbc3b){return this['_getImageAsFile'](_0x11048a)['then'](_0x8d548a=>_0x3a52ba['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':_0x5cbc3b['signal'],'file':_0x8d548a,'onProgress':_0x3c310f=>{_0x3c310f&&_0x3c310f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3c310f['value']));}}))['then'](_0xb7ee8b=>{const {width:_0x2ec7e3,height:_0x1cd5d3}=_0xb7ee8b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb7ee8b['cdnUrl'],this['imageDimension']={'width':_0x2ec7e3,'height':_0x1cd5d3},this['imageId']=_0xb7ee8b['uuid'],this['imageUploadProgress']=null;const _0x570684=_0x11048a['getAttribute']('src');this['_imageCache']['set'](_0x570684,{'id':_0xb7ee8b['uuid'],'url':_0xb7ee8b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2f9b91=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f9b91['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a4503,_0x320a16){_0x1a4503['on']('apply',(_0x3ee266,_0x1204c1)=>{this['_replaceImage'](_0x320a16,_0x1204c1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a4503['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a4503['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2bf211,_0x4afa8a,_0x14ddde){const _0x467462=this['_editor'],{width:_0x32623b,height:_0x2fffa5}=_0x1d6461(_0x4afa8a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16784b,imageSources:_0x3b6150}=_0x46c1e5(_0x4afa8a,_0x32623b);_0x467462['model']['change'](_0xda92f8=>{if('$graveyard'===_0x2bf211['root']['rootName']){_0x467462['execute']('insertImage',{'imageType':_0x2bf211['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2bf211['getAttributes']()),'uploadcareImageId':_0x14ddde,'src':_0x16784b,'sources':_0x3b6150,'width':_0x32623b,'height':_0x2fffa5}});const _0x16940c=_0x2bf211['getChildren']();_0x2bf211=_0x467462['model']['document']['selection']['getSelectedElement']();for(const _0x2bb226 of _0x16940c)_0xda92f8['append'](_0xda92f8['cloneElement'](_0x2bb226),_0x2bf211);}else _0xda92f8['setSelection'](_0x2bf211,'on'),_0x467462['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2bf211['getAttributes']()),'uploadcareImageId':_0x14ddde,'src':_0x16784b,'sources':_0x3b6150,'width':_0x32623b,'height':_0x2fffa5},_0x2bf211);_0xda92f8['setSelection'](_0x2bf211,'on');});}async['_getImageAsFile'](_0x2a7185){const _0x5847dc=_0x5d0e2d['window'],_0x3f9451=_0x5d0e2d['document']['location']['href'],_0x462f1e=new _0x5847dc['URL'](_0x2a7185['getAttribute']('src'),_0x3f9451);if('data:'===_0x462f1e['protocol']){const _0x316da6=_0x462f1e['href']['split'](','),_0x407172=_0x316da6[0x0]['match'](/:(.*?);/)[0x1],_0x2ed529=_0x407172['split']('/')[0x1],_0x27133a=_0x5847dc['atob'](_0x316da6[_0x316da6['length']-0x1]);let _0x43ef77=_0x27133a['length'];const _0x5126e9=new _0x5847dc['Uint8Array'](_0x43ef77);for(;_0x43ef77--;)_0x5126e9[_0x43ef77]=_0x27133a['charCodeAt'](_0x43ef77);return new _0x5847dc['File']([_0x5126e9],'image.'+_0x2ed529,{'type':_0x407172});}const _0xe7d946=_0x462f1e['href']['split']('/'),_0x3d383f=_0xe7d946[_0xe7d946['length']-0x1],_0x103f1=_0x3d383f['split']('.')[0x1];return _0x5847dc['fetch'](_0x462f1e['href'])['then'](_0x429a3c=>_0x429a3c['clone']()['blob']())['then'](_0x1c0e16=>new _0x5847dc['File']([_0x1c0e16],_0x3d383f,{'type':'image/'+_0x103f1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x50861b,_0x241ef2){const _0x57309b=_0x5cff,_0x4d8d29=_0x50861b();while(!![]){try{const _0x41aea7=-parseInt(_0x57309b(0x17d))/0x1*(parseInt(_0x57309b(0x170))/0x2)+-parseInt(_0x57309b(0x175))/0x3*(parseInt(_0x57309b(0x180))/0x4)+-parseInt(_0x57309b(0x174))/0x5+-parseInt(_0x57309b(0x17f))/0x6+parseInt(_0x57309b(0x178))/0x7+parseInt(_0x57309b(0x172))/0x8*(parseInt(_0x57309b(0x176))/0x9)+parseInt(_0x57309b(0x17a))/0xa;if(_0x41aea7===_0x241ef2)break;else _0x4d8d29['push'](_0x4d8d29['shift']());}catch(_0x2a8bed){_0x4d8d29['push'](_0x4d8d29['shift']());}}}(_0x6697,0xac83f));import{View as _0x39cb4b}from'ckeditor5/src/ui.js';function _0x6697(){const _0x13f95e=['684250nXkCGd','806934ZGfAPS','18BeKmdc','image-edit','4031846gPeopd','uc-light','12610340bBOJKC','bindTemplate','uc-cloud-image-editor','424747RhICYM','setTemplate','3885648MKlmMd','4WVblkS','set','2betiem','ck-uploadcare-theme','1391176igbXgX','imageSrc'];_0x6697=function(){return _0x13f95e;};return _0x6697();}function _0x5cff(_0x3b7c56,_0x4b7917){const _0x66972f=_0x6697();return _0x5cff=function(_0x5cff34,_0x34c4d5){_0x5cff34=_0x5cff34-0x170;let _0x2db796=_0x66972f[_0x5cff34];return _0x2db796;},_0x5cff(_0x3b7c56,_0x4b7917);}export class UploadcareImageEditFormEditingView extends _0x39cb4b{constructor(_0x19625c,_0x4432de){const _0x315f57=_0x5cff;super(_0x19625c);const _0x188ba7=this[_0x315f57(0x17b)];this[_0x315f57(0x181)](_0x315f57(0x173),''),this[_0x315f57(0x17e)]({'tag':_0x315f57(0x17c),'attributes':{..._0x4432de,'class':[_0x315f57(0x179),_0x315f57(0x171)],'ctx-name':_0x315f57(0x177),'cdn-url':_0x188ba7['to'](_0x315f57(0x173))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x5c5468}from'ckeditor5/src/icons.js';import{ButtonView as _0x2192cc,IconView as _0x34c13a,View as _0x10e161}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x10e161{constructor(_0x7131ec){super(_0x7131ec);const t=_0x7131ec['t'];this['set']('errorType',null);const _0x52f168=new _0x2192cc(_0x7131ec);_0x52f168['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x52f168['withText']=!0x0,_0x52f168['class']='ck-button-action',_0x52f168['on']('execute',()=>{this['fire']('retry');}),_0x52f168['bind']('isVisible')['to'](this,'errorType',_0x269fd2=>'NotFound'!==_0x269fd2);const _0x1d2670=new _0x34c13a();_0x1d2670['content']=_0x5c5468,_0x1d2670['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xf9b286=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':[_0x1d2670,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xf9b286['to']('errorType',_0x1a9904=>t('NotFound'!==_0x1a9904?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x52f168]},{'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 _0x9abc5e,View as _0x283085}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x283085{constructor(_0x19b369){super(_0x19b369);const t=_0x19b369['t'],_0x7f7ebd=this['bindTemplate'],_0x239082=new _0x9abc5e();_0x239082['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':[_0x239082,{'text':_0x7f7ebd['to']('imageUploadProgress',_0xd4cb59=>t('Loading\x20image...')+'\x20('+(_0xd4cb59||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x247750=_0x40f8;(function(_0x5df9c6,_0x2c6551){const _0x519ec9=_0x40f8,_0x56d681=_0x5df9c6();while(!![]){try{const _0x1bea48=parseInt(_0x519ec9(0xda))/0x1+-parseInt(_0x519ec9(0xb4))/0x2*(-parseInt(_0x519ec9(0xba))/0x3)+parseInt(_0x519ec9(0xdb))/0x4+parseInt(_0x519ec9(0xd4))/0x5*(parseInt(_0x519ec9(0xbf))/0x6)+parseInt(_0x519ec9(0xbc))/0x7*(-parseInt(_0x519ec9(0xd7))/0x8)+-parseInt(_0x519ec9(0xb6))/0x9*(-parseInt(_0x519ec9(0xc5))/0xa)+parseInt(_0x519ec9(0xbe))/0xb*(-parseInt(_0x519ec9(0xc7))/0xc);if(_0x1bea48===_0x2c6551)break;else _0x56d681['push'](_0x56d681['shift']());}catch(_0x24eb63){_0x56d681['push'](_0x56d681['shift']());}}}(_0x5a26,0x8517e));import{View as _0x53f6db}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1c10d8}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3fc219}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x518257}from'./uploadcareimageeditformeditingview.js';function _0x40f8(_0x36cccf,_0x1de029){const _0x5a26c6=_0x5a26();return _0x40f8=function(_0x40f8ea,_0x29c315){_0x40f8ea=_0x40f8ea-0xaa;let _0x27373e=_0x5a26c6[_0x40f8ea];return _0x27373e;},_0x40f8(_0x36cccf,_0x1de029);}import{DialogFocusManagerView as _0x40e622}from'../../utils/dialogfocusmanagerview.js';function _0x5a26(){const _0x217e95=['target','_setView','nodeName','change:status','element','80116VVSvWT','ck-reset_all-excluded','23121KcSgvG','uc-cloud-image-editor','div','_focusableView','18RqPSDr','cdnUrl','11858flbEFe','error','130009UjXehO','594rSvrlq','cancel','querySelector','filter','render','once','3140CMtVoY','detail','2052BpaolA','getFocusableElement','apply','length','addedNodes','_waitForImageEditorComponent','set','ready','_addErrorViewListeners','add','ck-uploadcare-form','createCollection','addMany','28550SqOpqZ','fire','addEventListener','64XZQlTM','retry','toLowerCase','832616csmKwZ','539324Hatvhd','focus','disconnect','_addUploadcareImageEditorListeners','_items','observe','_editingView','setTemplate','status','clear','uploading','_errorView','_loadingView'];_0x5a26=function(){return _0x217e95;};return _0x5a26();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x40e622{[_0x247750(0xdf)];[_0x247750(0xae)];[_0x247750(0xad)];[_0x247750(0xe1)];[_0x247750(0xb9)];constructor(_0x265833,_0x4fcf3c,_0xd516ad){const _0x24ccb0=_0x247750;super(_0x265833),this[_0x24ccb0(0xdf)]=this[_0x24ccb0(0xd2)](),this[_0x24ccb0(0xae)]=new _0x1c10d8(_0x265833),this[_0x24ccb0(0xad)]=new _0x3fc219(_0x265833),this[_0x24ccb0(0xe1)]=new _0x518257(_0x265833,_0xd516ad),this[_0x24ccb0(0xb9)]=new _0x53f6db(_0x265833),this[_0x24ccb0(0xb9)][_0x24ccb0(0xe2)](this[_0x24ccb0(0xc8)]()),this[_0x24ccb0(0xcd)](_0x24ccb0(0xaa),_0x4fcf3c),this[_0x24ccb0(0xe2)]({'tag':_0x24ccb0(0xb8),'attributes':{'class':['ck',_0x24ccb0(0xb5),_0x24ccb0(0xd1)],'tabindex':'-1'},'children':this[_0x24ccb0(0xdf)]}),this[_0x24ccb0(0xb0)](),this[_0x24ccb0(0xc4)](_0x24ccb0(0xc3),()=>{const _0x5f3637=_0x24ccb0;this[_0x5f3637(0xcc)](this[_0x5f3637(0xb3)],_0x5284db=>{const _0x5d83bd=_0x5f3637;this[_0x5d83bd(0xde)](_0x5284db);});}),this['on'](_0x24ccb0(0xb2),()=>{const _0x1dd25d=_0x24ccb0;this[_0x1dd25d(0xb0)]();}),this[_0x24ccb0(0xcf)]();}[_0x247750(0xdc)](){const _0x776347=_0x247750;this[_0x776347(0xb3)][_0x776347(0xdc)]();}[_0x247750(0xb0)](){const _0x106851=_0x247750;switch(this[_0x106851(0xdf)][_0x106851(0xab)](),this[_0x106851(0xaa)]){case _0x106851(0xac):this[_0x106851(0xdf)][_0x106851(0xd0)](this[_0x106851(0xae)]);break;case _0x106851(0xbd):this[_0x106851(0xdf)][_0x106851(0xd0)](this[_0x106851(0xad)]);break;case _0x106851(0xce):this[_0x106851(0xdf)][_0x106851(0xd3)]([this[_0x106851(0xe1)],this[_0x106851(0xb9)]]);}}[_0x247750(0xcc)](_0x27de64,_0xae4477){const _0x22fb14=_0x247750,_0x1f4cb4=_0x22fb14(0xb7),_0x45cf4e=_0x27de64[_0x22fb14(0xc1)](_0x1f4cb4);if(_0x45cf4e)return _0xae4477(_0x45cf4e);const _0x3c9efd=new MutationObserver(_0x486fd4=>{const _0x55813a=_0x22fb14,_0x2ef09e=_0x486fd4[_0x55813a(0xc2)](_0xda9c8a=>_0xda9c8a[_0x55813a(0xaf)]===_0x27de64&&_0xda9c8a[_0x55813a(0xcb)][_0x55813a(0xca)]>0x0&&_0xda9c8a[_0x55813a(0xcb)][0x0][_0x55813a(0xb1)][_0x55813a(0xd9)]()===_0x1f4cb4);_0x2ef09e[_0x55813a(0xca)]&&(_0x3c9efd[_0x55813a(0xdd)](),_0xae4477(_0x2ef09e[0x0][_0x55813a(0xcb)][0x0]));});_0x3c9efd[_0x22fb14(0xe0)](_0x27de64,{'childList':!0x0,'subtree':!0x0});}[_0x247750(0xde)](_0x568707){const _0x3fdfa9=_0x247750;_0x568707[_0x3fdfa9(0xd6)](_0x3fdfa9(0xc9),_0x3607de=>{const _0xe13362=_0x3fdfa9;this[_0xe13362(0xd5)](_0xe13362(0xc9),{'imageSrc':_0x3607de[_0xe13362(0xc6)][_0xe13362(0xbb)]});}),_0x568707[_0x3fdfa9(0xd6)](_0x3fdfa9(0xc0),()=>{const _0x6c327c=_0x3fdfa9;this[_0x6c327c(0xd5)](_0x6c327c(0xc0));});}[_0x247750(0xcf)](){const _0x540068=_0x247750;this[_0x540068(0xad)]['on'](_0x540068(0xd8),()=>{const _0x561e5e=_0x540068;this[_0x561e5e(0xd5)](_0x561e5e(0xd8));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x406e8b=_0x5580;function _0x5580(_0x408f8f,_0x500e90){const _0x4d9d6d=_0x4d9d();return _0x5580=function(_0x55802c,_0x110705){_0x55802c=_0x55802c-0x140;let _0x5f1a74=_0x4d9d6d[_0x55802c];return _0x5f1a74;},_0x5580(_0x408f8f,_0x500e90);}(function(_0x4a56e3,_0x393c97){const _0x180fd1=_0x5580,_0x5ca75d=_0x4a56e3();while(!![]){try{const _0x222bfa=parseInt(_0x180fd1(0x145))/0x1*(parseInt(_0x180fd1(0x14f))/0x2)+-parseInt(_0x180fd1(0x147))/0x3*(parseInt(_0x180fd1(0x14b))/0x4)+-parseInt(_0x180fd1(0x15e))/0x5*(parseInt(_0x180fd1(0x155))/0x6)+-parseInt(_0x180fd1(0x153))/0x7+-parseInt(_0x180fd1(0x151))/0x8+-parseInt(_0x180fd1(0x160))/0x9+parseInt(_0x180fd1(0x156))/0xa*(parseInt(_0x180fd1(0x14d))/0xb);if(_0x222bfa===_0x393c97)break;else _0x5ca75d['push'](_0x5ca75d['shift']());}catch(_0x48d4ec){_0x5ca75d['push'](_0x5ca75d['shift']());}}}(_0x4d9d,0x326c0));import{Command as _0x43cc66}from'ckeditor5/src/core.js';import{Dialog as _0x429de9}from'ckeditor5/src/ui.js';function _0x4d9d(){const _0x92667c=['uploadcare.allowExternalImagesEditing','77FMFlsI','document','239554RkqfqR','element','362392AcAjVs','selection','453908JFrKcH','editor','85674SMGSSL','1111670JxoyWr','unbind','imageBlock','refresh','model','plugins','config','imageInline','115gordSn','get','793395ADAmwR','execute','getSelectedElement','set','isActive','imageEditController','1krhGCw','bind','6417kALEJK','isEnabled','_isEditable','requires','308JLxGXB'];_0x4d9d=function(){return _0x92667c;};return _0x4d9d();}import{UploadcareImageEditController as _0x3c9d9b}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x8a2baa}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x43cc66{[_0x406e8b(0x144)];static get[_0x406e8b(0x14a)](){return[_0x429de9];}[_0x406e8b(0x149)];constructor(_0x1de2e4){const _0xb2ac0d=_0x406e8b;super(_0x1de2e4),this[_0xb2ac0d(0x144)]=void 0x0,this[_0xb2ac0d(0x149)]=_0x8a2baa(_0x1de2e4[_0xb2ac0d(0x15c)][_0xb2ac0d(0x15f)](_0xb2ac0d(0x14c))||[]),this[_0xb2ac0d(0x142)]({'isActive':!0x1});}[_0x406e8b(0x159)](){const _0x510f6a=_0x406e8b,_0x391e17=this[_0x510f6a(0x154)][_0x510f6a(0x15a)][_0x510f6a(0x14e)][_0x510f6a(0x152)][_0x510f6a(0x141)]();this[_0x510f6a(0x148)]=this[_0x510f6a(0x149)](_0x391e17);}[_0x406e8b(0x140)](){const _0x2d8ea4=_0x406e8b;this[_0x2d8ea4(0x144)]&&(this[_0x2d8ea4(0x157)](_0x2d8ea4(0x143)),this[_0x2d8ea4(0x144)]=void 0x0);const _0x1a8116=this[_0x2d8ea4(0x154)][_0x2d8ea4(0x15a)][_0x2d8ea4(0x14e)][_0x2d8ea4(0x152)][_0x2d8ea4(0x141)]();_0x1a8116&&(_0x1a8116['is'](_0x2d8ea4(0x150),_0x2d8ea4(0x158))||_0x1a8116['is'](_0x2d8ea4(0x150),_0x2d8ea4(0x15d)))&&(this[_0x2d8ea4(0x144)]=new _0x3c9d9b(this[_0x2d8ea4(0x154)],this[_0x2d8ea4(0x154)][_0x2d8ea4(0x15b)][_0x2d8ea4(0x15f)](_0x429de9),_0x1a8116),this[_0x2d8ea4(0x146)](_0x2d8ea4(0x143))['to'](this[_0x2d8ea4(0x144)],_0x2d8ea4(0x143)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34ccb9=_0x91cf;(function(_0x2c8eea,_0x4c7f03){const _0x5a6039=_0x91cf,_0x5365ce=_0x2c8eea();while(!![]){try{const _0x46dab7=parseInt(_0x5a6039(0x18f))/0x1+parseInt(_0x5a6039(0x191))/0x2*(-parseInt(_0x5a6039(0x18e))/0x3)+parseInt(_0x5a6039(0x188))/0x4+parseInt(_0x5a6039(0x195))/0x5*(-parseInt(_0x5a6039(0x180))/0x6)+parseInt(_0x5a6039(0x18c))/0x7+-parseInt(_0x5a6039(0x192))/0x8*(parseInt(_0x5a6039(0x193))/0x9)+-parseInt(_0x5a6039(0x189))/0xa;if(_0x46dab7===_0x4c7f03)break;else _0x5365ce['push'](_0x5365ce['shift']());}catch(_0x5cb575){_0x5365ce['push'](_0x5365ce['shift']());}}}(_0x1ad4,0x2cb4c));import{Plugin as _0x1f6e85}from'ckeditor5/src/core.js';import{Notification as _0x2f8f98}from'ckeditor5/src/ui.js';function _0x1ad4(){const _0x1765bd=['requires','742SKMRLb','312FlmnrP','32139LwRJwT','uploadcareImageEdit','7050LeViNy','444TdoATH','UploadcareImageEditEditing','pluginName','add','commands','isPremiumPlugin','ImageEditing','ImageUtils','1368200rwbVhi','2219450dwBXwT','init','uploadcareImageReplace','2017351lppPhO','isOfficialPlugin','1959nzuaKf','260690HiCkBv'];_0x1ad4=function(){return _0x1765bd;};return _0x1ad4();}function _0x91cf(_0x392e7c,_0x1566a0){const _0x1ad4af=_0x1ad4();return _0x91cf=function(_0x91cfa0,_0x38cb5d){_0x91cfa0=_0x91cfa0-0x180;let _0x5f8cc9=_0x1ad4af[_0x91cfa0];return _0x5f8cc9;},_0x91cf(_0x392e7c,_0x1566a0);}import{UploadcareImageEditCommand as _0xa2599a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x15848a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2f9b49}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1f6e85{static get[_0x34ccb9(0x182)](){const _0x3097e6=_0x34ccb9;return _0x3097e6(0x181);}static get[_0x34ccb9(0x190)](){const _0x3bbbd9=_0x34ccb9;return[_0x2f9b49,_0x2f8f98,_0x3bbbd9(0x187),_0x3bbbd9(0x186)];}static get[_0x34ccb9(0x18d)](){return!0x0;}static get[_0x34ccb9(0x185)](){return!0x0;}[_0x34ccb9(0x18a)](){const _0x1c67b0=_0x34ccb9,{editor:_0xea43ee}=this;_0xea43ee[_0x1c67b0(0x184)][_0x1c67b0(0x183)](_0x1c67b0(0x194),new _0xa2599a(_0xea43ee)),_0xea43ee[_0x1c67b0(0x184)][_0x1c67b0(0x183)](_0x1c67b0(0x18b),new _0x15848a(_0xea43ee));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3c6d52}from'ckeditor5/src/core.js';import{ButtonView as _0x1c58ef}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2a0908}from'ckeditor5/src/icons.js';import{createElement as _0x9a5566}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 _0x3c6d52{['_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 _0x3f556b=this['editor'];_0x3f556b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a4640=>{const _0x178218=_0x3f556b['commands']['get']('uploadcareImageEdit'),_0x5b4d86=new _0x1c58ef(_0x5a4640),t=_0x5a4640['t'];return _0x5b4d86['set']({'icon':_0x2a0908,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5b4d86['bind']('isEnabled')['to'](_0x178218),_0x5b4d86['bind']('isOn')['to'](_0x178218,'isActive'),this['listenTo'](_0x5b4d86,'execute',()=>{_0x3f556b['execute']('uploadcareImageEdit'),_0x3f556b['editing']['view']['focus']();}),_0x5b4d86;}),this['_initConfig']();}['_initConfig'](){const _0x49b9e3=_0x9a5566(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49b9e3),this['listenTo'](this['editor'],'destroy',()=>{_0x49b9e3['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f2c60=_0xf75e;function _0x122f(){const _0x1b0645=['srcset','6246oyGoTI','getSelectedElement','selection','isEnabled','execute','refresh','23BOIduc','15134KMOBHm','editor','sizes','change','663441BWApiL','setAttributes','1776iyMsLG','312095DZTeHc','imageBlock','element','893540IEyKdC','557872QdQSjC','905748ikItNX','model','removeAttribute','document','imageInline'];_0x122f=function(){return _0x1b0645;};return _0x122f();}(function(_0x22f163,_0xcbc29e){const _0x24b564=_0xf75e,_0x22fdcd=_0x22f163();while(!![]){try{const _0x4773f5=-parseInt(_0x24b564(0x128))/0x1*(parseInt(_0x24b564(0x129))/0x2)+parseInt(_0x24b564(0x12d))/0x3+parseInt(_0x24b564(0x11a))/0x4+-parseInt(_0x24b564(0x117))/0x5+-parseInt(_0x24b564(0x11c))/0x6+-parseInt(_0x24b564(0x11b))/0x7+-parseInt(_0x24b564(0x12f))/0x8*(-parseInt(_0x24b564(0x122))/0x9);if(_0x4773f5===_0xcbc29e)break;else _0x22fdcd['push'](_0x22fdcd['shift']());}catch(_0x461473){_0x22fdcd['push'](_0x22fdcd['shift']());}}}(_0x122f,0x2019e));import{Command as _0xa19752}from'ckeditor5/src/core.js';function _0xf75e(_0x2a3553,_0x76f1c0){const _0x122f00=_0x122f();return _0xf75e=function(_0xf75e7,_0x38b5b9){_0xf75e7=_0xf75e7-0x117;let _0x233630=_0x122f00[_0xf75e7];return _0x233630;},_0xf75e(_0x2a3553,_0x76f1c0);}export class UploadcareImageReplaceCommand extends _0xa19752{[_0x5f2c60(0x127)](){const _0x4e73d5=_0x5f2c60,_0x1abfc0=this[_0x4e73d5(0x12a)][_0x4e73d5(0x11d)][_0x4e73d5(0x11f)][_0x4e73d5(0x124)][_0x4e73d5(0x123)]();this[_0x4e73d5(0x125)]=Boolean(_0x1abfc0&&(_0x1abfc0['is'](_0x4e73d5(0x119),_0x4e73d5(0x118))||_0x1abfc0['is'](_0x4e73d5(0x119),_0x4e73d5(0x120))));}[_0x5f2c60(0x126)](_0x19fe80){const _0x358c4a=_0x5f2c60,_0x42022b=this[_0x358c4a(0x12a)][_0x358c4a(0x11d)][_0x358c4a(0x11f)][_0x358c4a(0x124)][_0x358c4a(0x123)]();this[_0x358c4a(0x12a)][_0x358c4a(0x11d)][_0x358c4a(0x12c)](_0x5bad82=>{const _0x69d403=_0x358c4a;_0x5bad82[_0x69d403(0x12e)](_0x19fe80,_0x42022b),_0x5bad82[_0x69d403(0x11e)](_0x69d403(0x121),_0x42022b),_0x5bad82[_0x69d403(0x11e)](_0x69d403(0x12b),_0x42022b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5cb4c4=_0x1a2d;(function(_0x2fe88a,_0x5954f9){var _0x2cbc88=_0x1a2d,_0x2e4418=_0x2fe88a();while(!![]){try{var _0x5a468c=-parseInt(_0x2cbc88(0x112))/0x1*(parseInt(_0x2cbc88(0x113))/0x2)+-parseInt(_0x2cbc88(0x111))/0x3*(-parseInt(_0x2cbc88(0x114))/0x4)+parseInt(_0x2cbc88(0x116))/0x5+-parseInt(_0x2cbc88(0x11c))/0x6+parseInt(_0x2cbc88(0x118))/0x7*(parseInt(_0x2cbc88(0x110))/0x8)+-parseInt(_0x2cbc88(0x11a))/0x9*(parseInt(_0x2cbc88(0x10f))/0xa)+parseInt(_0x2cbc88(0x117))/0xb;if(_0x5a468c===_0x5954f9)break;else _0x2e4418['push'](_0x2e4418['shift']());}catch(_0x458f57){_0x2e4418['push'](_0x2e4418['shift']());}}}(_0x61da,0xafa8c));import{Plugin as _0x197469}from'ckeditor5/src/core.js';function _0x61da(){var _0x18c4e8=['3888kqjjqA','80994yGpVkK','404bjUhoo','4462pwtfRA','24NHEDaO','isOfficialPlugin','1653780EMxKeD','24604877tpdwFR','11214nBRioI','pluginName','10539783yuzjnn','isPremiumPlugin','4297272eRNjOz','requires','UploadcareImageEdit','10mHDazF'];_0x61da=function(){return _0x18c4e8;};return _0x61da();}import{UploadcareImageEditEditing as _0x53ecdd}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x48db2d}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x1a2d(_0x204d0d,_0x35307f){var _0x61da7f=_0x61da();return _0x1a2d=function(_0x1a2dd4,_0x3b77dd){_0x1a2dd4=_0x1a2dd4-0x10f;var _0x4bbe6b=_0x61da7f[_0x1a2dd4];return _0x4bbe6b;},_0x1a2d(_0x204d0d,_0x35307f);}export class UploadcareImageEdit extends _0x197469{static get[_0x5cb4c4(0x119)](){var _0x127b1e=_0x5cb4c4;return _0x127b1e(0x11e);}static get[_0x5cb4c4(0x11d)](){return[_0x53ecdd,_0x48db2d];}static get[_0x5cb4c4(0x115)](){return!0x0;}static get[_0x5cb4c4(0x11b)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c4766=_0x5b59;function _0xff01(){const _0x20d2c1=['map','pluginName','withText','uploadcare','domainLimit','has','locale','ImageInsertUI','GDrive','bind','_normalizeConfigSourceList','icon','uploadcareLicenseKeyEvaluationLimit','entries','commands','push','afterInit','usageLimit','expired','7WeJcLr','20gBftCJ','45035rKmHHp','OneDrive','_getIntegrationKey','2153655HNzVje','reduce','_licenseKeyCheckInterval','upload','label','uploadcare.uploader.sourceList','GPhotos','get','4212042epIcFR','registerIntegration','_createToolbarButton','isOfficialPlugin','plugins','editor','featureNotAllowed','Facebook','_createButton','isImageSelected','Dropbox','licenseKey','destroy','uploadcareLicenseKeyUsageLimit','config','176MNZxXS','Local','uploadcareLicenseKeyValid','forEach','init','url','_createMenuBarButtons','evaluationLimit','_showLicenseError','75814Srdzvc','3260912YiaIus','18672580upLqdb','UploadcareUI','execute','isEnabled','uploadcareLicenseKeyDomainLimit','URL','tooltip','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyNotAllowed','_createDropdownButtons','assetManager','invalid','6310467cYSmaE','text','Uploadcare','Replace','isPremiumPlugin','uploadcareLicenseKeyExpired','shortText','type','Insert'];_0xff01=function(){return _0x20d2c1;};return _0xff01();}(function(_0x2740a7,_0x16f65d){const _0x16855b=_0x5b59,_0x478d23=_0x2740a7();while(!![]){try{const _0x35df25=parseInt(_0x16855b(0x19b))/0x1*(-parseInt(_0x16855b(0x1c6))/0x2)+parseInt(_0x16855b(0x17b))/0x3+parseInt(_0x16855b(0x192))/0x4*(parseInt(_0x16855b(0x178))/0x5)+-parseInt(_0x16855b(0x183))/0x6*(parseInt(_0x16855b(0x1c5))/0x7)+-parseInt(_0x16855b(0x19c))/0x8+-parseInt(_0x16855b(0x1a9))/0x9+parseInt(_0x16855b(0x19d))/0xa;if(_0x35df25===_0x16f65d)break;else _0x478d23['push'](_0x478d23['shift']());}catch(_0x43b5fc){_0x478d23['push'](_0x478d23['shift']());}}}(_0xff01,0x64b6f));import{Plugin as _0x535831}from'ckeditor5/src/core.js';import{IconDropbox as _0x245df5,IconFacebook as _0x59172f,IconGoogleDrive as _0x2c9040,IconGooglePhotos as _0x5e0e07,IconUploadcareImageUpload as _0x4d0d66,IconUploadcareLink as _0x411521,IconOneDrive as _0x414697}from'ckeditor5/src/icons.js';import{ButtonView as _0x463ebb,MenuBarMenuListItemButtonView as _0x6ba93c}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x20d09f}from'./uploadcareconfig.js';import{getTranslation as _0x34d825}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x5b59(_0x591287,_0x4f3d51){const _0xff011a=_0xff01();return _0x5b59=function(_0x5b5914,_0x4652ab){_0x5b5914=_0x5b5914-0x178;let _0x5e199c=_0xff011a[_0x5b5914];return _0x5e199c;},_0x5b59(_0x591287,_0x4f3d51);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x535831{[_0x3c4766(0x18e)];[_0x3c4766(0x17d)];static get[_0x3c4766(0x1b3)](){const _0x5396a6=_0x3c4766;return _0x5396a6(0x19e);}static get[_0x3c4766(0x186)](){return!0x0;}static get[_0x3c4766(0x1ad)](){return!0x0;}[_0x3c4766(0x196)](){const _0x287a3a=_0x3c4766;this[_0x287a3a(0x18e)]=this[_0x287a3a(0x188)][_0x287a3a(0x191)][_0x287a3a(0x182)](_0x287a3a(0x18e));const _0x2754e3=this[_0x287a3a(0x188)];this[_0x287a3a(0x17d)]=setInterval(()=>{const _0xfee351=_0x287a3a;let _0x5d2be5;for(const _0x3bd740 in _0x2754e3){const _0x19e7b2=_0x3bd740,_0x3d52e8=_0x2754e3[_0x19e7b2];if(_0xfee351(0x194)==_0x3d52e8||_0xfee351(0x1a4)==_0x3d52e8||_0xfee351(0x1ae)==_0x3d52e8||_0xfee351(0x1a1)==_0x3d52e8||_0xfee351(0x1a5)==_0x3d52e8||_0xfee351(0x1be)==_0x3d52e8||_0xfee351(0x190)==_0x3d52e8){delete _0x2754e3[_0x19e7b2],_0x5d2be5=_0x3d52e8,clearInterval(this[_0xfee351(0x17d)]),this[_0xfee351(0x17d)]=void 0x0;break;}}_0xfee351(0x1a4)==_0x5d2be5&&_0x2754e3[_0xfee351(0x19a)](_0xfee351(0x1a8)),_0xfee351(0x1ae)==_0x5d2be5&&_0x2754e3[_0xfee351(0x19a)](_0xfee351(0x1c4)),_0xfee351(0x1a1)==_0x5d2be5&&_0x2754e3[_0xfee351(0x19a)](_0xfee351(0x1b6)),_0xfee351(0x1a5)==_0x5d2be5&&_0x2754e3[_0xfee351(0x19a)](_0xfee351(0x189),_0xfee351(0x1ab)),_0xfee351(0x1be)==_0x5d2be5&&_0x2754e3[_0xfee351(0x19a)](_0xfee351(0x199)),_0xfee351(0x190)==_0x5d2be5&&_0x2754e3[_0xfee351(0x19a)](_0xfee351(0x1c3));},0x3e8);}[_0x3c4766(0x1c2)](){const _0x595fff=_0x3c4766,{editor:_0x16fac3}=this,_0x4d8937=_0x16fac3[_0x595fff(0x1c0)][_0x595fff(0x182)](_0x595fff(0x1b5));if(!_0x4d8937)return;const _0x2c9583=this[_0x595fff(0x1bc)](_0x16fac3[_0x595fff(0x191)][_0x595fff(0x182)](_0x595fff(0x180)))[_0x595fff(0x17c)]((_0x1a75b6,_0x1a19f2)=>{const _0x2aade0=_0x595fff,_0x26088a=this[_0x2aade0(0x17a)](_0x1a19f2[_0x2aade0(0x1b0)]);return _0x1a75b6[_0x26088a]||(_0x1a75b6[_0x26088a]=[]),_0x1a75b6[_0x26088a][_0x2aade0(0x1c1)](_0x1a19f2),_0x1a75b6;},{});_0x16fac3[_0x595fff(0x187)][_0x595fff(0x1b7)](_0x595fff(0x1b9))&&_0x16fac3[_0x595fff(0x1c0)][_0x595fff(0x182)](_0x595fff(0x1b5))&&Object[_0x595fff(0x1bf)](_0x2c9583)[_0x595fff(0x195)](([_0x5c9c4f,_0x13ce9f])=>{const _0x15d28d=_0x595fff;_0x16fac3[_0x15d28d(0x187)][_0x15d28d(0x182)](_0x15d28d(0x1b9))[_0x15d28d(0x184)]({'name':_0x5c9c4f,'observable':()=>_0x4d8937,'buttonViewCreator':()=>this[_0x15d28d(0x185)](_0x13ce9f),'formViewCreator':()=>this[_0x15d28d(0x1a6)](_0x13ce9f),'menuBarButtonViewCreator':()=>this[_0x15d28d(0x198)](_0x13ce9f),'override':_0x15d28d(0x1a7)!==_0x5c9c4f});});}[_0x3c4766(0x18f)](){const _0x17ccbd=_0x3c4766;super[_0x17ccbd(0x18f)](),this[_0x17ccbd(0x17d)]&&clearInterval(this[_0x17ccbd(0x17d)]);}[_0x3c4766(0x1bc)](_0x389142){const _0x20311c=_0x3c4766,{locale:_0x3f19c5}=this[_0x20311c(0x188)];return _0x389142[_0x20311c(0x1b2)](_0x237ec3=>{const _0x2f19eb=_0x20311c,_0x19e42d=_0x34d825(_0x3f19c5,_0x237ec3,_0x2f19eb(0x1b1));switch(_0x237ec3){case _0x20d09f[_0x2f19eb(0x193)]:return{'icon':_0x4d0d66,'type':_0x20d09f[_0x2f19eb(0x193)],..._0x19e42d};case _0x20d09f[_0x2f19eb(0x1a2)]:return{'icon':_0x411521,'type':_0x20d09f[_0x2f19eb(0x1a2)],..._0x19e42d};case _0x20d09f[_0x2f19eb(0x18d)]:return{'icon':_0x245df5,'type':_0x20d09f[_0x2f19eb(0x18d)],..._0x19e42d};case _0x20d09f[_0x2f19eb(0x18a)]:return{'icon':_0x59172f,'type':_0x20d09f[_0x2f19eb(0x18a)],..._0x19e42d};case _0x20d09f[_0x2f19eb(0x1ba)]:return{'icon':_0x2c9040,'type':_0x20d09f[_0x2f19eb(0x1ba)],..._0x19e42d};case _0x20d09f[_0x2f19eb(0x181)]:return{'icon':_0x5e0e07,'type':_0x20d09f[_0x2f19eb(0x181)],..._0x19e42d};case _0x20d09f[_0x2f19eb(0x179)]:return{'icon':_0x414697,'type':_0x20d09f[_0x2f19eb(0x179)],..._0x19e42d};}});}[_0x3c4766(0x17a)](_0xcfb7dc){const _0x3c42b4=_0x3c4766;switch(_0xcfb7dc){case _0x20d09f[_0x3c42b4(0x193)]:return _0x3c42b4(0x17e);case _0x20d09f[_0x3c42b4(0x1a2)]:return _0x3c42b4(0x197);default:return _0x3c42b4(0x1a7);}}[_0x3c4766(0x18b)](_0x2fb38b,_0xbdf61e){const _0x402c5a=_0x3c4766,_0x45b899=this[_0x402c5a(0x188)],_0x1888bb=new _0x2fb38b(_0x45b899[_0x402c5a(0x1b8)]),_0x17e5f3=_0x45b899[_0x402c5a(0x1c0)][_0x402c5a(0x182)](_0x402c5a(0x1b5));return _0x1888bb[_0x402c5a(0x1bb)](_0x402c5a(0x1a0))['to'](_0x17e5f3),_0x1888bb['on'](_0x402c5a(0x19f),()=>{const _0x339ad9=_0x402c5a;_0x17e5f3[_0x339ad9(0x19f)](_0xbdf61e);}),_0x1888bb;}[_0x3c4766(0x185)](_0x48f7c5){const _0x40821b=_0x3c4766,{locale:_0x11873e}=this[_0x40821b(0x188)],_0x3c2b22=this[_0x40821b(0x188)][_0x40821b(0x187)][_0x40821b(0x182)](_0x40821b(0x1b9)),_0x16ca5f=_0x48f7c5[0x0],_0x184b04=this[_0x40821b(0x18b)](_0x463ebb,_0x16ca5f[_0x40821b(0x1b0)]);return _0x184b04[_0x40821b(0x1bd)]=_0x16ca5f[_0x40821b(0x1bd)],_0x184b04[_0x40821b(0x1bb)](_0x40821b(0x17f))['to'](_0x3c2b22,_0x40821b(0x18c),_0x36591a=>_0x34d825(_0x11873e,_0x16ca5f[_0x40821b(0x1b0)],_0x36591a?_0x40821b(0x1ac):_0x40821b(0x1b1))[_0x40821b(0x1aa)]),_0x184b04[_0x40821b(0x1a3)]=!0x0,_0x184b04;}[_0x3c4766(0x1a6)](_0x41eb5c){const _0x548413=_0x3c4766,{locale:_0x364e6b}=this[_0x548413(0x188)],_0x2f0a0b=this[_0x548413(0x188)][_0x548413(0x187)][_0x548413(0x182)](_0x548413(0x1b9));return _0x41eb5c[_0x548413(0x1b2)](_0x2013e7=>{const _0x34a8d6=_0x548413,_0x2d3515=this[_0x34a8d6(0x18b)](_0x463ebb,_0x2013e7[_0x34a8d6(0x1b0)]);return _0x2d3515[_0x34a8d6(0x1b4)]=!0x0,_0x2d3515[_0x34a8d6(0x1bd)]=_0x2013e7[_0x34a8d6(0x1bd)],_0x2d3515[_0x34a8d6(0x1bb)](_0x34a8d6(0x17f))['to'](_0x2f0a0b,_0x34a8d6(0x18c),_0x5363a8=>_0x34d825(_0x364e6b,_0x2013e7[_0x34a8d6(0x1b0)],_0x5363a8?_0x34a8d6(0x1ac):_0x34a8d6(0x1b1))[_0x34a8d6(0x1aa)]),_0x2d3515;});}[_0x3c4766(0x198)](_0x41c81a){const _0x383f30=_0x3c4766;return _0x41c81a[_0x383f30(0x1b2)](_0x24cbac=>{const _0x4286ca=_0x383f30,_0x2f9929=this[_0x4286ca(0x18b)](_0x6ba93c,_0x24cbac[_0x4286ca(0x1b0)]);return _0x2f9929[_0x4286ca(0x1bd)]=_0x24cbac[_0x4286ca(0x1bd)],_0x2f9929[_0x4286ca(0x17f)]=_0x24cbac[_0x4286ca(0x1af)],_0x2f9929;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4a19ec}from'ckeditor5/src/core.js';import{FileRepository as _0x1df950}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x242bf3}from'./uploadcareediting.js';import{UploadUtils as _0x46bfe2}from'./utils/uploadutils.js';import{getImageUrls as _0x42c263}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4a19ec{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1df950,_0x242bf3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2590fb=this['editor'];if(!!!_0x2590fb['config']['get']('uploadcare'))return;_0x2590fb['plugins']['get'](_0x1df950)['createUploadAdapter']=_0x2559d6=>new k(_0x2559d6,_0x2590fb),_0x2590fb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x18695b,{imageElement:_0x3244f6,data:_0x14aad9})=>{_0x2590fb['model']['change'](_0x5d7f78=>{_0x5d7f78['setAttribute']('uploadcareImageId',_0x14aad9['uploadcareImageId'],_0x3244f6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3e7e31,_0x124981){this['loader']=_0x3e7e31,this['editor']=_0x124981,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3997ee=await this['loader']['file'];return _0x46bfe2['upload']({'file':_0x3997ee,'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':_0x595063=>{_0x595063&&_0x595063['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x595063['value']);}})['then'](async _0x32c6a4=>{const {imageFallbackUrl:_0x2176b5,imageSources:_0x387ef2}=_0x42c263(_0x32c6a4['cdnUrl'],_0x32c6a4['imageInfo']['width']);return{'uploadcareImageId':_0x32c6a4['uuid'],'default':_0x2176b5,'sources':_0x387ef2};})['catch'](()=>{const _0x3c72bb=t('Cannot\x20upload\x20file:')+('\x20'+_0x3997ee['name']+'.');return Promise['reject'](_0x3c72bb);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x53fab6}from'../uploadcareconfig.js';export function getTranslation(_0x42f49c,_0x18afca,_0x3546d8){const t=_0x42f49c['t'],_0x3d5017=_0x42f49c['t'];switch(_0x18afca){case _0x53fab6['Local']:return{'text':_0x3d5017('Insert'===_0x3546d8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d5017('From\x20computer')};case _0x53fab6['URL']:return{'text':'Insert'===_0x3546d8?_0x3d5017('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d5017('Via\x20URL')};case _0x53fab6['Dropbox']:return{'text':t('Insert'===_0x3546d8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x53fab6['Facebook']:return{'text':t('Insert'===_0x3546d8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x53fab6['GDrive']:return{'text':t('Insert'===_0x3546d8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x53fab6['GPhotos']:return{'text':t('Insert'===_0x3546d8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x53fab6['OneDrive']:return{'text':t('Insert'===_0x3546d8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x18afca;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4b8af2=_0x4694;(function(_0x34a847,_0x2ad5a6){var _0x3334d4=_0x4694,_0x2199ba=_0x34a847();while(!![]){try{var _0x3c7358=-parseInt(_0x3334d4(0x8c))/0x1+parseInt(_0x3334d4(0x8f))/0x2+parseInt(_0x3334d4(0x8a))/0x3+parseInt(_0x3334d4(0x95))/0x4+parseInt(_0x3334d4(0x92))/0x5*(-parseInt(_0x3334d4(0x93))/0x6)+-parseInt(_0x3334d4(0x8e))/0x7*(parseInt(_0x3334d4(0x86))/0x8)+-parseInt(_0x3334d4(0x88))/0x9*(-parseInt(_0x3334d4(0x87))/0xa);if(_0x3c7358===_0x2ad5a6)break;else _0x2199ba['push'](_0x2199ba['shift']());}catch(_0x5a353f){_0x2199ba['push'](_0x2199ba['shift']());}}}(_0x54fb,0x787b2));import{FocusTracker as _0x4a9364}from'ckeditor5/src/utils.js';import{View as _0x5ad899,FocusCycler as _0x102056}from'ckeditor5/src/ui.js';function _0x54fb(){var _0x2442d7=['465804udklWi','div','2480312aWazHP','getFocusableElement','bindTemplate','fire','104eMnvpR','4790HiUMOn','19287okQqBr','forwardCycle','1377009opiDVb','true','196042fmwNMq','focusCycler','456001QszouM','569574NGBnam','focusTracker','createCollection','55NKyXSC'];_0x54fb=function(){return _0x2442d7;};return _0x54fb();}import'../../theme/uploadcare-form.css';function _0x4694(_0x4db407,_0x180150){var _0x54fb46=_0x54fb();return _0x4694=function(_0x4694a7,_0x387670){_0x4694a7=_0x4694a7-0x84;var _0x424984=_0x54fb46[_0x4694a7];return _0x424984;},_0x4694(_0x4db407,_0x180150);}export class DialogFocusManagerView extends _0x5ad899{[_0x4b8af2(0x90)];[_0x4b8af2(0x8d)];constructor(_0x506646){var _0x20dab8=_0x4b8af2;super(_0x506646),this[_0x20dab8(0x90)]=new _0x4a9364(),this[_0x20dab8(0x8d)]=new _0x102056({'focusables':this[_0x20dab8(0x91)](),'focusTracker':this[_0x20dab8(0x90)]});}[_0x4b8af2(0x96)](){var _0x2d7f40=_0x4b8af2;return{'tag':_0x2d7f40(0x94),'attributes':{'aria-hidden':_0x2d7f40(0x8b),'tabindex':'0'},'on':{'focus':this[_0x2d7f40(0x84)]['to'](()=>{var _0xb040cf=_0x2d7f40;this[_0xb040cf(0x8d)][_0xb040cf(0x85)](_0xb040cf(0x89));})}};}}
|