@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.2 → 47.3.0-alpha.4
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 _0x5c59df=_0x2536;(function(_0x35b5d9,_0xc98eeb){const _0x55f21e=_0x2536,_0x48e97f=_0x35b5d9();while(!![]){try{const _0x16a8da=parseInt(_0x55f21e(0x1d2))/0x1+-parseInt(_0x55f21e(0x1f1))/0x2*(parseInt(_0x55f21e(0x209))/0x3)+-parseInt(_0x55f21e(0x1f4))/0x4+parseInt(_0x55f21e(0x1de))/0x5+-parseInt(_0x55f21e(0x214))/0x6+-parseInt(_0x55f21e(0x1d1))/0x7*(parseInt(_0x55f21e(0x206))/0x8)+parseInt(_0x55f21e(0x21c))/0x9*(parseInt(_0x55f21e(0x20a))/0xa);if(_0x16a8da===_0xc98eeb)break;else _0x48e97f['push'](_0x48e97f['shift']());}catch(_0x32254b){_0x48e97f['push'](_0x48e97f['shift']());}}}(_0x5759,0xebc68));import{Plugin as _0x35929d}from'ckeditor5/src/core.js';function _0x2536(_0x359798,_0x56ae67){const _0x57593c=_0x5759();return _0x2536=function(_0x25368f,_0x369271){_0x25368f=_0x25368f-0x1cf;let _0x3a56d4=_0x57593c[_0x25368f];return _0x3a56d4;},_0x2536(_0x359798,_0x56ae67);}import{Dialog as _0xd360df}from'ckeditor5/src/ui.js';import{createElement as _0x22c3dc,global as _0x3c9ee4,uid as _0x2b9c32}from'ckeditor5/src/utils.js';function _0x5759(){const _0x1e4e00=['elementToAttribute','uploader-','view','uc-upload-ctx-provider','uploadcare.pubkey','execute','isOfficialPlugin','7qpmlbL','4239fCCOuu','input[uploadcare-file-input]','attributeToAttribute','config','render','upcast','UploadcareEditing','cleanupImage','_configElement','document','data-uc-image-id','removeAttribute','7082365nGixca','remove','locale','get','closeMax','commands','uploadcareImageId','insertImage','requires','ctxElement','model','href','replaceImageSource','map','_initConversion','getAttribute','editing','#uc-icon-arrow-down','_initImageProcessingIndicator','91074bdosec','querySelector','imageInline','660592yvxROm','getSelectedElement','uploadcare.uploader','_initSchema','uploadcareImageReplace','init','imageBlock','selection','_initConfig','afterInit','appendChild','pluginName','schema','ucContextId','_initCtx','PictureEditing','for','isPremiumPlugin','14222456RuEUKc','_ctxElement','uploadcare','42xPqjek','150CckaFg','editor','configElement','downcast','contentLanguage','fromCharCode','join','uc-config','iconHrefResolver','once','464868PsyOkF','true','add','conversion','body','destroy','isRegistered','listenTo','1321785AUwtsN','\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'];_0x5759=function(){return _0x1e4e00;};return _0x5759();}import{UploadcareCommand as _0x3b1c6e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x40c9a8}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1a8720}from'./utils/editingutils.js';export class UploadcareEditing extends _0x35929d{[_0x5c59df(0x1da)]=null;[_0x5c59df(0x207)]=null;static get[_0x5c59df(0x1ff)](){const _0x4185ff=_0x5c59df;return _0x4185ff(0x1d8);}static get[_0x5c59df(0x1e6)](){const _0x3eb328=_0x5c59df;return[_0x3eb328(0x203),_0x40c9a8,_0xd360df];}static get[_0x5c59df(0x1d0)](){return!0x0;}static get[_0x5c59df(0x205)](){return!0x0;}[_0x5c59df(0x201)];get[_0x5c59df(0x20c)](){const _0x500c92=_0x5c59df;return this[_0x500c92(0x1da)];}get[_0x5c59df(0x1e7)](){const _0x5dd4b1=_0x5c59df;return this[_0x5dd4b1(0x207)];}constructor(_0x4e491a){const _0x565fa6=_0x5c59df;super(_0x4e491a),this[_0x565fa6(0x201)]=_0x2b9c32();}[_0x5c59df(0x1f9)](){const _0x344d49=_0x5c59df,_0x5a85da=this[_0x344d49(0x20b)];_0x5a85da[_0x344d49(0x1e3)][_0x344d49(0x216)](_0x344d49(0x208),new _0x3b1c6e(_0x5a85da));}[_0x5c59df(0x1fd)](){const _0x334ed2=_0x5c59df;this[_0x334ed2(0x1f7)](),this[_0x334ed2(0x1ec)](),this[_0x334ed2(0x1fc)](),this[_0x334ed2(0x202)](),this[_0x334ed2(0x1f0)](),this[_0x334ed2(0x21b)](this[_0x334ed2(0x20b)],_0x334ed2(0x219),()=>{const _0x2336ac=_0x334ed2;this[_0x2336ac(0x1da)]&&(this[_0x2336ac(0x1da)][_0x2336ac(0x1df)](),this[_0x2336ac(0x1da)]=null),this[_0x2336ac(0x207)]&&(this[_0x2336ac(0x207)][_0x2336ac(0x1df)](),this[_0x2336ac(0x207)]=null);const _0xaa1547=_0x3c9ee4[_0x2336ac(0x1db)][_0x2336ac(0x1f2)](_0x2336ac(0x1d3));_0xaa1547&&_0xaa1547[_0x2336ac(0x1df)]();}),async function(_0x5525e5){const _0x4e05f3=_0x1c6f0f([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]),_0x34673c=0x535f8c3a,_0x1fd297=0x5358f65a^_0x34673c,_0x444440=window[_0x1c6f0f([0x44,0x61,0x74,0x65])][_0x1c6f0f([0x6e,0x6f,0x77])](),_0x9728f3=_0x5525e5[_0x1c6f0f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3aff57=new window[(_0x1c6f0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c781=>{_0x9728f3[_0x1c6f0f([0x6f,0x6e,0x63,0x65])](_0x1c6f0f([0x72,0x65,0x61,0x64,0x79]),_0x47c781);}),_0x436be4={[_0x1c6f0f([0x6b,0x74,0x79])]:_0x1c6f0f([0x45,0x43]),[_0x1c6f0f([0x75,0x73,0x65])]:_0x1c6f0f([0x73,0x69,0x67]),[_0x1c6f0f([0x63,0x72,0x76])]:_0x1c6f0f([0x50,0x2d,0x32,0x35,0x36]),[_0x1c6f0f([0x78])]:_0x1c6f0f([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]),[_0x1c6f0f([0x79])]:_0x1c6f0f([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]),[_0x1c6f0f([0x61,0x6c,0x67])]:_0x1c6f0f([0x45,0x53,0x32,0x35,0x36])},_0xca37d5=_0x9728f3[_0x1c6f0f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c6f0f([0x67,0x65,0x74])](_0x1c6f0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xde6b7c(){let _0x1b4ca0,_0x577749=null,_0x64f40a=null;try{if(_0xca37d5==_0x1c6f0f([0x47,0x50,0x4c]))return _0x1c6f0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b4ca0=_0x5a84f6(),!_0x1b4ca0)return _0x1c6f0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b4ca0[_0x1c6f0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x64f40a=_0x5d8d2a(_0x1b4ca0[_0x1c6f0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b4ca0[_0x1c6f0f([0x6a,0x74,0x69])])),await _0x3cb170()?_0x11368b()?_0x1186fb()?_0x1c6f0f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4802fb()?(_0x1b4ca0[_0x1c6f0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c6f0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x577749=_0x17dd76(_0x1c6f0f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b4ca0[_0x1c6f0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c6f0f([0x74,0x72,0x69,0x61,0x6c])&&(_0x577749=_0x17dd76(_0x1c6f0f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fd2ed()):_0x1c6f0f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c6f0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c6f0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c6f0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1186fb(){const _0x2288c2=[_0x1c6f0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c6f0f([0x74,0x72,0x69,0x61,0x6c])][_0x1c6f0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b4ca0[_0x1c6f0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x444440/0x3e8:0xe10*_0x1fd297;return _0x1b4ca0[_0x1c6f0f([0x65,0x78,0x70])]<_0x2288c2;}function _0x11368b(){const _0x26eff5=_0x1b4ca0[_0x1c6f0f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26eff5&&(!!_0x26eff5[_0x1c6f0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6f0f([0x2a]))||!!_0x26eff5[_0x1c6f0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6f0f([0x55,0x50,0x4c,0x43])));}function _0x4802fb(){const _0x2a3405=_0x2536,_0x23f0a3=_0x1b4ca0[_0x1c6f0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23f0a3||0x0==_0x23f0a3[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x777cb8}=new URL(window[_0x1c6f0f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2a3405(0x1e9)]);if(_0x23f0a3[_0x1c6f0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x777cb8))return!0x0;const _0x38ae16=_0x777cb8[_0x1c6f0f([0x73,0x70,0x6c,0x69,0x74])](_0x1c6f0f([0x2e]));return _0x23f0a3[_0x1c6f0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3548b4=>_0x3548b4[_0x1c6f0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6f0f([0x2a])))[_0x1c6f0f([0x6d,0x61,0x70])](_0x4624a2=>_0x4624a2[_0x1c6f0f([0x73,0x70,0x6c,0x69,0x74])](_0x1c6f0f([0x2e])))[_0x1c6f0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b2f9f=>_0x2b2f9f[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38ae16[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c6f0f([0x6d,0x61,0x70])](_0x6e1d7c=>Array(_0x38ae16[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6e1d7c[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c6f0f([0x66,0x69,0x6c,0x6c])](_0x6e1d7c[0x0]===_0x1c6f0f([0x2a])?_0x1c6f0f([0x2a]):'')[_0x1c6f0f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6e1d7c))[_0x1c6f0f([0x73,0x6f,0x6d,0x65])](_0x13fb8d=>_0x38ae16[_0x1c6f0f([0x65,0x76,0x65,0x72,0x79])]((_0x5ed09e,_0x3a6a92)=>_0x13fb8d[_0x3a6a92]===_0x5ed09e||_0x13fb8d[_0x3a6a92]===_0x1c6f0f([0x2a])));}function _0x3fd2ed(){return _0x577749&&_0x64f40a?new window[(_0x1c6f0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x188b20,_0x609538)=>{_0x577749[_0x1c6f0f([0x74,0x68,0x65,0x6e])](_0x188b20,_0x609538),_0x64f40a[_0x1c6f0f([0x74,0x68,0x65,0x6e])](_0x11b629=>{_0x11b629!=_0x1c6f0f([0x56,0x61,0x6c,0x69,0x64])&&_0x188b20(_0x11b629);},_0x609538);}):_0x577749||_0x64f40a||_0x1c6f0f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d8d2a(_0x2f2181,_0x58cd0a){return new window[(_0x1c6f0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaf9ee9=>{if(_0x4d9e02())return _0xaf9ee9(_0x1c6f0f([0x56,0x61,0x6c,0x69,0x64]));_0x19fa96(),_0x9728f3[_0x1c6f0f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c6f0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1bee91=!0x1;const _0x195600=_0x2b9c32();function _0x38ee2b(_0x23a584){return!!_0x23a584&&(typeof _0x23a584===_0x1c6f0f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23a584===_0x1c6f0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23a584[_0x1c6f0f([0x74,0x68,0x65,0x6e])]===_0x1c6f0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23a584[_0x1c6f0f([0x63,0x61,0x74,0x63,0x68])]===_0x1c6f0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d579a(_0x4fed9d){_0x418996(_0x4fed9d)[_0x1c6f0f([0x74,0x68,0x65,0x6e])](_0x350de9=>{if(!_0x350de9||_0x350de9[_0x1c6f0f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c6f0f([0x6f,0x6b]))return _0x1c6f0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3edff7(_0x5580fc(_0x195600+_0x58cd0a))!=_0x350de9[_0x1c6f0f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c6f0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c6f0f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c6f0f([0x74,0x68,0x65,0x6e])](_0xf5d819=>(_0x152e10(),_0xf5d819),()=>{const _0xb2cb0c=_0x3e042d();return null==_0xb2cb0c?(_0x152e10(),_0x1c6f0f([0x56,0x61,0x6c,0x69,0x64])):_0x1c6f0f(_0x444440-_0xb2cb0c>(0x7753083a^_0x34673c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c6f0f([0x74,0x68,0x65,0x6e])](_0xaf9ee9)[_0x1c6f0f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xaf9ee9(_0x1c6f0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15f7cb=0x536962ba^_0x34673c;function _0x152e10(){const _0x36daef=_0x1c6f0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3edff7(_0x5580fc(_0x2f2181)),_0x248db3=_0x101e6f(_0x3edff7(window[_0x1c6f0f([0x4d,0x61,0x74,0x68])][_0x1c6f0f([0x63,0x65,0x69,0x6c])](_0x444440/_0x15f7cb)));window[_0x1c6f0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c6f0f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36daef,_0x248db3);}function _0x3e042d(){const _0xc5e4e1=_0x1c6f0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3edff7(_0x5580fc(_0x2f2181)),_0x33d844=window[_0x1c6f0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c6f0f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc5e4e1);return _0x33d844?window[_0x1c6f0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x101e6f(_0x33d844),0x10)*_0x15f7cb:null;}function _0x418996(_0x2a05cf){return new window[(_0x1c6f0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x173fbb,_0x28e4eb)=>{_0x2a05cf[_0x1c6f0f([0x74,0x68,0x65,0x6e])](_0x173fbb,_0x28e4eb),window[_0x1c6f0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28e4eb,0x535e58fa^_0x34673c);});}}_0x9728f3[_0x1c6f0f([0x6f,0x6e])](_0x1c6f0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x579054,_0x26b5fc)=>{if(_0x26b5fc[0x0]!=_0x2f2181)return _0xaf9ee9(_0x1c6f0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26b5fc[0x1]={..._0x26b5fc[0x1],[_0x1c6f0f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x195600};},{[_0x1c6f0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c6f0f([0x68,0x69,0x67,0x68])}),_0x9728f3[_0x1c6f0f([0x6f,0x6e])](_0x1c6f0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3430ec=>{_0x38ee2b(_0x3430ec[_0x1c6f0f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1bee91=!0x0,_0x2d579a(_0x3430ec[_0x1c6f0f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c6f0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c6f0f([0x6c,0x6f,0x77])}),_0x3aff57[_0x1c6f0f([0x74,0x68,0x65,0x6e])](()=>{_0x1bee91||_0xaf9ee9(_0x1c6f0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d9e02(){return _0x9728f3[_0x1c6f0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c6f0f([0x76,0x69,0x65,0x77])][_0x1c6f0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c6f0f([0x61,0x75,0x74,0x6f]);}function _0x19fa96(){_0x9728f3[_0x1c6f0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c6f0f([0x76,0x69,0x65,0x77])][_0x1c6f0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c6f0f([0x61,0x75,0x74,0x6f]);}}function _0x17dd76(_0x3caf16){const _0x55eef8=[new window[(_0x1c6f0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56eb29=>setTimeout(_0x56eb29,0x5356b2f6^_0x34673c)),_0x3aff57[_0x1c6f0f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c6f0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efa70=>{let _0x34f431=0x0;_0x9728f3[_0x1c6f0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c6f0f([0x6f,0x6e])](_0x1c6f0f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf8d6bf,_0x522591)=>{_0x522591[0x0][_0x1c6f0f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34f431++,_0x34f431==(0x535f8dc2^_0x34673c)&&(_0x2efa70(),_0xf8d6bf[_0x1c6f0f([0x6f,0x66,0x66])]());});}))];return window[_0x1c6f0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c6f0f([0x72,0x61,0x63,0x65])](_0x55eef8)[_0x1c6f0f([0x74,0x68,0x65,0x6e])](()=>_0x3caf16);}async function _0x492fad(){await _0x3aff57,_0x9728f3[_0x1c6f0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c6f0f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x161235,_0x9728f3[_0x1c6f0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c6f0f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x161235,_0x9728f3[_0x1c6f0f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c6f0f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b657e(_0x3cb464){const _0x5057e4=_0x1a006a();_0x9728f3[_0x5057e4]=_0x1c6f0f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cb464,_0x3cb464!=_0x1c6f0f([0x56,0x61,0x6c,0x69,0x64])&&_0x492fad();}function _0x1a006a(){const _0x309caa=window[_0x1c6f0f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c6f0f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c6f0f([0x6e,0x6f,0x77])]())[_0x1c6f0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c6f0f([0x2e]),'');let _0x117b49=_0x1c6f0f([0x68]);for(let _0x30f924=0x0;_0x30f924<_0x309caa[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30f924+=0x2){let _0x5c6a24=window[_0x1c6f0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309caa[_0x1c6f0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30f924,_0x30f924+0x2));_0x5c6a24>=_0x4e05f3[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c6a24-=_0x4e05f3[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x117b49+=_0x4e05f3[_0x5c6a24];}return _0x117b49;}function _0x5a84f6(){const _0x50a943=_0xca37d5[_0x1c6f0f([0x73,0x70,0x6c,0x69,0x74])](_0x1c6f0f([0x2e]));if(0x3!=_0x50a943[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39e3d6(_0x50a943[0x1]);function _0x39e3d6(_0x1c027a){const _0x2ea077=_0x6f5439(_0x1c027a);return _0x2ea077&&_0x51821b()?_0x2ea077:null;function _0x51821b(){const _0x4eb984=_0x2ea077[_0x1c6f0f([0x6a,0x74,0x69])],_0x957608=window[_0x1c6f0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eb984[_0x1c6f0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eb984[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49eb9e={..._0x2ea077,[_0x1c6f0f([0x6a,0x74,0x69])]:_0x4eb984[_0x1c6f0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4eb984[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49eb9e[_0x1c6f0f([0x76,0x63])],_0x5580fc(_0x49eb9e)==_0x957608;}}}async function _0x3cb170(){let _0x30fdb9=!0x0;try{const _0x3ff8f1=_0xca37d5[_0x1c6f0f([0x73,0x70,0x6c,0x69,0x74])](_0x1c6f0f([0x2e])),[_0x15edd0,_0x36c5b0,_0x86a251]=_0x3ff8f1;return _0x9cc37c(_0x15edd0),await _0x3cbafb(_0x15edd0,_0x36c5b0,_0x86a251),_0x30fdb9;}catch{return!0x1;}function _0x9cc37c(_0x347511){const _0x3a54bd=_0x6f5439(_0x347511);_0x3a54bd&&_0x3a54bd[_0x1c6f0f([0x61,0x6c,0x67])]==_0x1c6f0f([0x45,0x53,0x32,0x35,0x36])||(_0x30fdb9=!0x1);}async function _0x3cbafb(_0x16a74d,_0x139f76,_0x5175ff){const _0x13234e=window[_0x1c6f0f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c6f0f([0x66,0x72,0x6f,0x6d])](_0x50e523(_0x5175ff),_0x1c50c7=>_0x1c50c7[_0x1c6f0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x496ed0=new window[(_0x1c6f0f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c6f0f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16a74d+_0x1c6f0f([0x2e])+_0x139f76),_0x3108d9=window[_0x1c6f0f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c6f0f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3108d9)return;const _0x5ce866=await _0x3108d9[_0x1c6f0f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c6f0f([0x6a,0x77,0x6b]),_0x436be4,{[_0x1c6f0f([0x6e,0x61,0x6d,0x65])]:_0x1c6f0f([0x45,0x43,0x44,0x53,0x41]),[_0x1c6f0f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c6f0f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c6f0f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3108d9[_0x1c6f0f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c6f0f([0x6e,0x61,0x6d,0x65])]:_0x1c6f0f([0x45,0x43,0x44,0x53,0x41]),[_0x1c6f0f([0x68,0x61,0x73,0x68])]:{[_0x1c6f0f([0x6e,0x61,0x6d,0x65])]:_0x1c6f0f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ce866,_0x13234e,_0x496ed0)||(_0x30fdb9=!0x1);}}function _0x6f5439(_0x2b6cfa){return _0x2b6cfa[_0x1c6f0f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c6f0f([0x65,0x79]))?JSON[_0x1c6f0f([0x70,0x61,0x72,0x73,0x65])](_0x50e523(_0x2b6cfa)):null;}function _0x50e523(_0x55faaf){return window[_0x1c6f0f([0x61,0x74,0x6f,0x62])](_0x55faaf[_0x1c6f0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c6f0f([0x2b]))[_0x1c6f0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c6f0f([0x2f])));}function _0x5580fc(_0x1c9b09){let _0x5f2e4c=0x1505;function _0x39dc57(_0x5a7f63){for(let _0x3bec3f=0x0;_0x3bec3f<_0x5a7f63[_0x1c6f0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bec3f++){const _0x41427b=_0x5a7f63[_0x1c6f0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bec3f);_0x5f2e4c=(_0x5f2e4c<<0x5)+_0x5f2e4c+_0x41427b,_0x5f2e4c&=_0x5f2e4c;}}function _0xd04abb(_0x5d0b40){Array[_0x1c6f0f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d0b40)?_0x5d0b40[_0x1c6f0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd04abb):_0x5d0b40&&typeof _0x5d0b40==_0x1c6f0f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c6f0f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d0b40)[_0x1c6f0f([0x73,0x6f,0x72,0x74])]()[_0x1c6f0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cc9bf,_0x3a37df])=>{_0x39dc57(_0x5cc9bf),_0xd04abb(_0x3a37df);}):_0x39dc57(window[_0x1c6f0f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d0b40));}return _0xd04abb(_0x1c9b09),_0x5f2e4c>>>0x0;}function _0x3edff7(_0x58ea78){return _0x58ea78[_0x1c6f0f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c6f0f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c6f0f([0x30]));}function _0x101e6f(_0x36cfe3){return _0x36cfe3[_0x1c6f0f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c6f0f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c6f0f([0x6a,0x6f,0x69,0x6e])]('');}function _0x161235(){}function _0x1c6f0f(_0xa961cb){const _0x568499=_0x2536;return _0xa961cb[_0x568499(0x1eb)](_0x1bc498=>String[_0x568499(0x20f)](_0x1bc498))[_0x568499(0x210)]('');}_0x4b657e(await _0xde6b7c());}(this);}[_0x5c59df(0x1f7)](){const _0x482261=_0x5c59df,_0x34c48a=this[_0x482261(0x20b)][_0x482261(0x1e8)][_0x482261(0x200)];_0x34c48a[_0x482261(0x21a)](_0x482261(0x1fa))&&_0x34c48a[_0x482261(0x21e)](_0x482261(0x1fa),{'allowAttributes':[_0x482261(0x1e4)]}),_0x34c48a[_0x482261(0x21a)](_0x482261(0x1f3))&&_0x34c48a[_0x482261(0x21e)](_0x482261(0x1f3),{'allowAttributes':[_0x482261(0x1e4)]});}[_0x5c59df(0x1ec)](){const _0x329eb7=_0x5c59df,_0x2b7a41=this[_0x329eb7(0x20b)];_0x2b7a41[_0x329eb7(0x217)][_0x329eb7(0x204)](_0x329eb7(0x20d))[_0x329eb7(0x1d4)]({'model':_0x329eb7(0x1e4),'view':_0x329eb7(0x1dc)}),_0x2b7a41[_0x329eb7(0x217)][_0x329eb7(0x204)](_0x329eb7(0x1d7))[_0x329eb7(0x21f)]({'model':{'key':_0x329eb7(0x1e4),'value':_0x385e8a=>_0x385e8a[_0x329eb7(0x1ed)](_0x329eb7(0x1dc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x46ba99=_0x2b7a41[_0x329eb7(0x1e3)][_0x329eb7(0x1e1)](_0x329eb7(0x1ea));_0x46ba99&&this[_0x329eb7(0x21b)](_0x46ba99,_0x329eb7(0x1d9),(_0x1d8860,[_0x19d4fd,_0x40ead2])=>{const _0x21c93f=_0x329eb7;_0x19d4fd[_0x21c93f(0x1dd)](_0x21c93f(0x1e4),_0x40ead2);});}[_0x5c59df(0x1fc)](){const _0x3804de=_0x5c59df,_0x358e09=this[_0x3804de(0x20b)][_0x3804de(0x1d5)][_0x3804de(0x1e1)](_0x3804de(0x1f6))||{},_0x905d67=this[_0x3804de(0x20b)][_0x3804de(0x1d5)][_0x3804de(0x1e1)](_0x3804de(0x223))||'';this[_0x3804de(0x1da)]=_0x22c3dc(_0x3c9ee4[_0x3804de(0x1db)],_0x3804de(0x211),{..._0x358e09,'pubkey':_0x905d67,'ctx-name':_0x3804de(0x220)+this[_0x3804de(0x201)],'sourceList':'','imgOnly':_0x3804de(0x215),'removeCopyright':_0x3804de(0x215),'localeName':this[_0x3804de(0x20b)][_0x3804de(0x1e0)][_0x3804de(0x20e)],'externalSourcesEmbedCss':_0x3804de(0x21d)}),this[_0x3804de(0x1da)][_0x3804de(0x212)]=_0x478046=>{const _0x341db4=_0x3804de;if(_0x341db4(0x1e2)==_0x478046)return _0x341db4(0x1ef);},_0x3c9ee4[_0x3804de(0x1db)][_0x3804de(0x218)][_0x3804de(0x1fe)](this[_0x3804de(0x1da)]);}[_0x5c59df(0x202)](){const _0x1e9ce1=_0x5c59df;this[_0x1e9ce1(0x207)]=_0x22c3dc(_0x3c9ee4[_0x1e9ce1(0x1db)],_0x1e9ce1(0x222),{'ctx-name':_0x1e9ce1(0x220)+this[_0x1e9ce1(0x201)]}),_0x3c9ee4[_0x1e9ce1(0x1db)][_0x1e9ce1(0x218)][_0x1e9ce1(0x1fe)](this[_0x1e9ce1(0x207)]);}[_0x5c59df(0x1f0)](){const _0x4b6dcc=_0x5c59df,_0x37e04b=this[_0x4b6dcc(0x20b)][_0x4b6dcc(0x1e3)][_0x4b6dcc(0x1e1)](_0x4b6dcc(0x1e5));_0x37e04b&&this[_0x4b6dcc(0x21b)](_0x37e04b,_0x4b6dcc(0x1cf),()=>{const _0x4a8f87=_0x4b6dcc,_0x4b7120=this[_0x4a8f87(0x20b)][_0x4a8f87(0x1e8)][_0x4a8f87(0x1db)][_0x4a8f87(0x1fb)][_0x4a8f87(0x1f5)]();_0x4b7120&&_0x4b7120[_0x4a8f87(0x1ed)](_0x4a8f87(0x1e4))&&this[_0x4a8f87(0x20b)][_0x4a8f87(0x1ee)][_0x4a8f87(0x221)][_0x4a8f87(0x213)](_0x4a8f87(0x1d6),()=>{const _0x3c0392=_0x4a8f87;_0x1a8720(this[_0x3c0392(0x20b)],_0x4b7120);});});const _0x189eb9=this[_0x4b6dcc(0x20b)][_0x4b6dcc(0x1e3)][_0x4b6dcc(0x1e1)](_0x4b6dcc(0x1f8));_0x189eb9&&this[_0x4b6dcc(0x21b)](_0x189eb9,_0x4b6dcc(0x1cf),()=>{const _0x55af8b=_0x4b6dcc,_0x2716e2=this[_0x55af8b(0x20b)][_0x55af8b(0x1e8)][_0x55af8b(0x1db)][_0x55af8b(0x1fb)][_0x55af8b(0x1f5)]();_0x2716e2&&_0x2716e2[_0x55af8b(0x1ed)](_0x55af8b(0x1e4))&&this[_0x55af8b(0x20b)][_0x55af8b(0x1ee)][_0x55af8b(0x221)][_0x55af8b(0x213)](_0x55af8b(0x1d6),()=>{const _0x2ef410=_0x55af8b;_0x1a8720(this[_0x2ef410(0x20b)],_0x2716e2);});});}}
|
|
23
|
+
const _0x11732d=_0x5e8b;function _0x1abc(){const _0x5b3abb=['init','uc-upload-ctx-provider','for','document','uploadcare.pubkey','locale','uploadcare.uploader','getSelectedElement','commands','once','downcast','attributeToAttribute','isPremiumPlugin','destroy','_initImageProcessingIndicator','imageBlock','8055880tcUUsW','elementToAttribute','view','_initSchema','#uc-icon-arrow-down','render','closeMax','data-uc-image-id','uc-config','extend','fromCharCode','8990720TxulOz','configElement','insertImage','removeAttribute','2571682aeYnkk','ctxElement','editing','input[uploadcare-file-input]','config','true','_configElement','listenTo','4507988svPRXn','contentLanguage','uploadcareImageId','_initCtx','isOfficialPlugin','_ctxElement','editor','cleanupImage','_initConversion','map','1flEwbP','391038UKZsIg','model','href','_initConfig','\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','getAttribute','replaceImageSource','uploadcareImageReplace','PictureEditing','UploadcareEditing','requires','join','28264671WSqoiW','add','selection','pluginName','uploader-','remove','body','execute','conversion','appendChild','querySelector','ucContextId','imageInline','isRegistered','uploadcare','45byyrqQ','iconHrefResolver','1894122KkHBPM','get','upcast','afterInit','schema'];_0x1abc=function(){return _0x5b3abb;};return _0x1abc();}(function(_0x252785,_0x22fe42){const _0x350c6e=_0x5e8b,_0x4f7ca9=_0x252785();while(!![]){try{const _0x408a20=-parseInt(_0x350c6e(0xb8))/0x1*(parseInt(_0x350c6e(0xa6))/0x2)+-parseInt(_0x350c6e(0xd6))/0x3+-parseInt(_0x350c6e(0xae))/0x4+parseInt(_0x350c6e(0xd4))/0x5*(parseInt(_0x350c6e(0xb9))/0x6)+-parseInt(_0x350c6e(0xeb))/0x7+parseInt(_0x350c6e(0xf6))/0x8+parseInt(_0x350c6e(0xc5))/0x9;if(_0x408a20===_0x22fe42)break;else _0x4f7ca9['push'](_0x4f7ca9['shift']());}catch(_0x4fbdeb){_0x4f7ca9['push'](_0x4f7ca9['shift']());}}}(_0x1abc,0xa01f8));import{Plugin as _0x1d0116}from'ckeditor5/src/core.js';import{Dialog as _0x135e8b}from'ckeditor5/src/ui.js';import{createElement as _0x2cfefd,global as _0x3cbf60,uid as _0x2d38d6}from'ckeditor5/src/utils.js';function _0x5e8b(_0x297e99,_0x3d8826){const _0x1abcf6=_0x1abc();return _0x5e8b=function(_0x5e8bda,_0x59593a){_0x5e8bda=_0x5e8bda-0xa4;let _0x33f60d=_0x1abcf6[_0x5e8bda];return _0x33f60d;},_0x5e8b(_0x297e99,_0x3d8826);}import{UploadcareCommand as _0xa6a0f4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x9b1604}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x303042}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1d0116{[_0x11732d(0xac)]=null;[_0x11732d(0xb3)]=null;static get[_0x11732d(0xc8)](){const _0x5dce35=_0x11732d;return _0x5dce35(0xc2);}static get[_0x11732d(0xc3)](){const _0x47791d=_0x11732d;return[_0x47791d(0xc1),_0x9b1604,_0x135e8b];}static get[_0x11732d(0xb2)](){return!0x0;}static get[_0x11732d(0xe7)](){return!0x0;}[_0x11732d(0xd0)];get[_0x11732d(0xf7)](){const _0x11d7a5=_0x11732d;return this[_0x11d7a5(0xac)];}get[_0x11732d(0xa7)](){const _0xd3eed9=_0x11732d;return this[_0xd3eed9(0xb3)];}constructor(_0x18b6a8){const _0x42e6ac=_0x11732d;super(_0x18b6a8),this[_0x42e6ac(0xd0)]=_0x2d38d6();}[_0x11732d(0xdb)](){const _0x1fc402=_0x11732d,_0x3bf70e=this[_0x1fc402(0xb4)];_0x3bf70e[_0x1fc402(0xe3)][_0x1fc402(0xc6)](_0x1fc402(0xd3),new _0xa6a0f4(_0x3bf70e));}[_0x11732d(0xd9)](){const _0x16f861=_0x11732d;this[_0x16f861(0xee)](),this[_0x16f861(0xb6)](),this[_0x16f861(0xbc)](),this[_0x16f861(0xb1)](),this[_0x16f861(0xe9)](),this[_0x16f861(0xad)](this[_0x16f861(0xb4)],_0x16f861(0xe8),()=>{const _0x28c89d=_0x16f861;this[_0x28c89d(0xac)]&&(this[_0x28c89d(0xac)][_0x28c89d(0xca)](),this[_0x28c89d(0xac)]=null),this[_0x28c89d(0xb3)]&&(this[_0x28c89d(0xb3)][_0x28c89d(0xca)](),this[_0x28c89d(0xb3)]=null);const _0x23b684=_0x3cbf60[_0x28c89d(0xde)][_0x28c89d(0xcf)](_0x28c89d(0xa9));_0x23b684&&_0x23b684[_0x28c89d(0xca)]();}),async function(_0x5cae09){const _0x180f30=_0x1e5c0b([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]),_0x3b7edd=0x535f8c3a,_0x565a63=0x5358f6aa^_0x3b7edd,_0x51f361=window[_0x1e5c0b([0x44,0x61,0x74,0x65])][_0x1e5c0b([0x6e,0x6f,0x77])](),_0x29a792=_0x5cae09[_0x1e5c0b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10caab=new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30058a=>{_0x29a792[_0x1e5c0b([0x6f,0x6e,0x63,0x65])](_0x1e5c0b([0x72,0x65,0x61,0x64,0x79]),_0x30058a);}),_0x105748={[_0x1e5c0b([0x6b,0x74,0x79])]:_0x1e5c0b([0x45,0x43]),[_0x1e5c0b([0x75,0x73,0x65])]:_0x1e5c0b([0x73,0x69,0x67]),[_0x1e5c0b([0x63,0x72,0x76])]:_0x1e5c0b([0x50,0x2d,0x32,0x35,0x36]),[_0x1e5c0b([0x78])]:_0x1e5c0b([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]),[_0x1e5c0b([0x79])]:_0x1e5c0b([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]),[_0x1e5c0b([0x61,0x6c,0x67])]:_0x1e5c0b([0x45,0x53,0x32,0x35,0x36])},_0x48b1cc=_0x29a792[_0x1e5c0b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e5c0b([0x67,0x65,0x74])](_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3be5f9(){let _0x14d983,_0x57e8b3=null,_0x4d1c8f=null;try{if(_0x48b1cc==_0x1e5c0b([0x47,0x50,0x4c]))return _0x1e5c0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14d983=_0x49b675(),!_0x14d983)return _0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14d983[_0x1e5c0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d1c8f=_0x190e4c(_0x14d983[_0x1e5c0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14d983[_0x1e5c0b([0x6a,0x74,0x69])])),await _0x585ef8()?_0x326760()?_0x93c5fe()?_0x1e5c0b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x537f95()?(_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e5c0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57e8b3=_0x1880cd(_0x1e5c0b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e5c0b([0x74,0x72,0x69,0x61,0x6c])&&(_0x57e8b3=_0x1880cd(_0x1e5c0b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x765ce0()):_0x1e5c0b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e5c0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x93c5fe(){const _0x54519d=[_0x1e5c0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e5c0b([0x74,0x72,0x69,0x61,0x6c])][_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51f361/0x3e8:0xe10*_0x565a63;return _0x14d983[_0x1e5c0b([0x65,0x78,0x70])]<_0x54519d;}function _0x326760(){const _0x538abf=_0x14d983[_0x1e5c0b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x538abf&&(!!_0x538abf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x2a]))||!!_0x538abf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x55,0x50,0x4c,0x43])));}function _0x537f95(){const _0x5821f2=_0x5e8b,_0x4097bf=_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4097bf||0x0==_0x4097bf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29f744}=new URL(window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5821f2(0xbb)]);if(_0x4097bf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f744))return!0x0;const _0xf629c4=_0x29f744[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e]));return _0x4097bf[_0x1e5c0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43a042=>_0x43a042[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x2a])))[_0x1e5c0b([0x6d,0x61,0x70])](_0x27c85f=>_0x27c85f[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e])))[_0x1e5c0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a86e=>_0x52a86e[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf629c4[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e5c0b([0x6d,0x61,0x70])](_0x44c036=>Array(_0xf629c4[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44c036[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e5c0b([0x66,0x69,0x6c,0x6c])](_0x44c036[0x0]===_0x1e5c0b([0x2a])?_0x1e5c0b([0x2a]):'')[_0x1e5c0b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44c036))[_0x1e5c0b([0x73,0x6f,0x6d,0x65])](_0x1d3d34=>_0xf629c4[_0x1e5c0b([0x65,0x76,0x65,0x72,0x79])]((_0x5dceed,_0x1047a3)=>_0x1d3d34[_0x1047a3]===_0x5dceed||_0x1d3d34[_0x1047a3]===_0x1e5c0b([0x2a])));}function _0x765ce0(){return _0x57e8b3&&_0x4d1c8f?new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x135a3b,_0x4439f)=>{_0x57e8b3[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x135a3b,_0x4439f),_0x4d1c8f[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x5f013a=>{_0x5f013a!=_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])&&_0x135a3b(_0x5f013a);},_0x4439f);}):_0x57e8b3||_0x4d1c8f||_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x190e4c(_0x4c8093,_0x575476){return new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d5066=>{if(_0x5ac28f())return _0x1d5066(_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]));_0x5cb8cd(),_0x29a792[_0x1e5c0b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533327=!0x1;const _0x4062f4=_0x2d38d6();function _0x128796(_0x453907){return!!_0x453907&&(typeof _0x453907===_0x1e5c0b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x453907===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x453907[_0x1e5c0b([0x74,0x68,0x65,0x6e])]===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x453907[_0x1e5c0b([0x63,0x61,0x74,0x63,0x68])]===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x487881(_0x5886ac){_0x38bf18(_0x5886ac)[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x2efe62=>{if(!_0x2efe62||_0x2efe62[_0x1e5c0b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e5c0b([0x6f,0x6b]))return _0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e6c4b(_0x31e29c(_0x4062f4+_0x575476))!=_0x2efe62[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x35d928=>(_0x19bf82(),_0x35d928),()=>{const _0x5eb4f0=_0x2b4e69();return null==_0x5eb4f0?(_0x19bf82(),_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])):_0x1e5c0b(_0x51f361-_0x5eb4f0>(0x7753083a^_0x3b7edd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x1d5066)[_0x1e5c0b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bfd37=0x536962ba^_0x3b7edd;function _0x19bf82(){const _0x4fcd0f=_0x1e5c0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e6c4b(_0x31e29c(_0x4c8093)),_0x3f5d9d=_0x525ebb(_0x1e6c4b(window[_0x1e5c0b([0x4d,0x61,0x74,0x68])][_0x1e5c0b([0x63,0x65,0x69,0x6c])](_0x51f361/_0x2bfd37)));window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e5c0b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fcd0f,_0x3f5d9d);}function _0x2b4e69(){const _0x54d8a5=_0x1e5c0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e6c4b(_0x31e29c(_0x4c8093)),_0x42cdda=window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e5c0b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d8a5);return _0x42cdda?window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x525ebb(_0x42cdda),0x10)*_0x2bfd37:null;}function _0x38bf18(_0x42f408){return new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x438822,_0x14b82b)=>{_0x42f408[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x438822,_0x14b82b),window[_0x1e5c0b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14b82b,0x535e58fa^_0x3b7edd);});}}_0x29a792[_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f0168,_0xba0f73)=>{if(_0xba0f73[0x0]!=_0x4c8093)return _0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba0f73[0x1]={..._0xba0f73[0x1],[_0x1e5c0b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4062f4};},{[_0x1e5c0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e5c0b([0x68,0x69,0x67,0x68])}),_0x29a792[_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5be508=>{_0x128796(_0x5be508[_0x1e5c0b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533327=!0x0,_0x487881(_0x5be508[_0x1e5c0b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e5c0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e5c0b([0x6c,0x6f,0x77])}),_0x10caab[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>{_0x533327||_0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ac28f(){return _0x29a792[_0x1e5c0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e5c0b([0x76,0x69,0x65,0x77])][_0x1e5c0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e5c0b([0x61,0x75,0x74,0x6f]);}function _0x5cb8cd(){_0x29a792[_0x1e5c0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e5c0b([0x76,0x69,0x65,0x77])][_0x1e5c0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e5c0b([0x61,0x75,0x74,0x6f]);}}function _0x1880cd(_0x3bb85e){const _0x5c321b=[new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c3160=>setTimeout(_0x2c3160,0x5356b2f6^_0x3b7edd)),_0x10caab[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504b84=>{let _0x3719fe=0x0;_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x465faa,_0x21641f)=>{_0x21641f[0x0][_0x1e5c0b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3719fe++,_0x3719fe==(0x535f8dc2^_0x3b7edd)&&(_0x504b84(),_0x465faa[_0x1e5c0b([0x6f,0x66,0x66])]());});}))];return window[_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e5c0b([0x72,0x61,0x63,0x65])](_0x5c321b)[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>_0x3bb85e);}async function _0x5f39bc(){await _0x10caab,_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b781c,_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b781c,_0x29a792[_0x1e5c0b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x200f11(_0x1cad54){const _0x3eb342=_0xcc7a95();_0x29a792[_0x3eb342]=_0x1e5c0b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cad54,_0x1cad54!=_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])&&_0x5f39bc();}function _0xcc7a95(){const _0x3f876d=window[_0x1e5c0b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e5c0b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e5c0b([0x6e,0x6f,0x77])]())[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e5c0b([0x2e]),'');let _0x4180b0=_0x1e5c0b([0x68]);for(let _0x253294=0x0;_0x253294<_0x3f876d[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253294+=0x2){let _0x4c0e9e=window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f876d[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x253294,_0x253294+0x2));_0x4c0e9e>=_0x180f30[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c0e9e-=_0x180f30[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4180b0+=_0x180f30[_0x4c0e9e];}return _0x4180b0;}function _0x49b675(){const _0x295592=_0x48b1cc[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e]));if(0x3!=_0x295592[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x598673(_0x295592[0x1]);function _0x598673(_0x5d9b72){const _0x5d0019=_0x3d5197(_0x5d9b72);return _0x5d0019&&_0x5ebf68()?_0x5d0019:null;function _0x5ebf68(){const _0x31ffaf=_0x5d0019[_0x1e5c0b([0x6a,0x74,0x69])],_0x4f0a43=window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31ffaf[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31ffaf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48b37c={..._0x5d0019,[_0x1e5c0b([0x6a,0x74,0x69])]:_0x31ffaf[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31ffaf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48b37c[_0x1e5c0b([0x76,0x63])],_0x31e29c(_0x48b37c)==_0x4f0a43;}}}async function _0x585ef8(){let _0x127395=!0x0;try{const _0x3a56a6=_0x48b1cc[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e])),[_0x15db5a,_0x504dd9,_0x288e75]=_0x3a56a6;return _0x45410d(_0x15db5a),await _0x1974e0(_0x15db5a,_0x504dd9,_0x288e75),_0x127395;}catch{return!0x1;}function _0x45410d(_0x1f51e7){const _0x3154e3=_0x3d5197(_0x1f51e7);_0x3154e3&&_0x3154e3[_0x1e5c0b([0x61,0x6c,0x67])]==_0x1e5c0b([0x45,0x53,0x32,0x35,0x36])||(_0x127395=!0x1);}async function _0x1974e0(_0x202f89,_0x5030bd,_0x2f61c6){const _0x3d40f7=window[_0x1e5c0b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e5c0b([0x66,0x72,0x6f,0x6d])](_0x36e9ac(_0x2f61c6),_0x43abb0=>_0x43abb0[_0x1e5c0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32fb7e=new window[(_0x1e5c0b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e5c0b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x202f89+_0x1e5c0b([0x2e])+_0x5030bd),_0x3f0a53=window[_0x1e5c0b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e5c0b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f0a53)return;const _0x35489c=await _0x3f0a53[_0x1e5c0b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e5c0b([0x6a,0x77,0x6b]),_0x105748,{[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x45,0x43,0x44,0x53,0x41]),[_0x1e5c0b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e5c0b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f0a53[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x45,0x43,0x44,0x53,0x41]),[_0x1e5c0b([0x68,0x61,0x73,0x68])]:{[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35489c,_0x3d40f7,_0x32fb7e)||(_0x127395=!0x1);}}function _0x3d5197(_0x304d13){return _0x304d13[_0x1e5c0b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e5c0b([0x65,0x79]))?JSON[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65])](_0x36e9ac(_0x304d13)):null;}function _0x36e9ac(_0x24c461){return window[_0x1e5c0b([0x61,0x74,0x6f,0x62])](_0x24c461[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e5c0b([0x2b]))[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e5c0b([0x2f])));}function _0x31e29c(_0x5731ea){let _0x271eb7=0x1505;function _0x326c02(_0x5d3540){for(let _0x18a321=0x0;_0x18a321<_0x5d3540[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18a321++){const _0x1b914c=_0x5d3540[_0x1e5c0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18a321);_0x271eb7=(_0x271eb7<<0x5)+_0x271eb7+_0x1b914c,_0x271eb7&=_0x271eb7;}}function _0x285c65(_0x5ddcac){Array[_0x1e5c0b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ddcac)?_0x5ddcac[_0x1e5c0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x285c65):_0x5ddcac&&typeof _0x5ddcac==_0x1e5c0b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e5c0b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ddcac)[_0x1e5c0b([0x73,0x6f,0x72,0x74])]()[_0x1e5c0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x139f2e,_0x20f333])=>{_0x326c02(_0x139f2e),_0x285c65(_0x20f333);}):_0x326c02(window[_0x1e5c0b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ddcac));}return _0x285c65(_0x5731ea),_0x271eb7>>>0x0;}function _0x1e6c4b(_0x230b40){return _0x230b40[_0x1e5c0b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e5c0b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e5c0b([0x30]));}function _0x525ebb(_0x5eff9f){return _0x5eff9f[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e5c0b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e5c0b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b781c(){}function _0x1e5c0b(_0x379d9a){const _0x3ee5e0=_0x5e8b;return _0x379d9a[_0x3ee5e0(0xb7)](_0x5aa344=>String[_0x3ee5e0(0xf5)](_0x5aa344))[_0x3ee5e0(0xc4)]('');}_0x200f11(await _0x3be5f9());}(this);}[_0x11732d(0xee)](){const _0x2f7141=_0x11732d,_0x2e2642=this[_0x2f7141(0xb4)][_0x2f7141(0xba)][_0x2f7141(0xda)];_0x2e2642[_0x2f7141(0xd2)](_0x2f7141(0xea))&&_0x2e2642[_0x2f7141(0xf4)](_0x2f7141(0xea),{'allowAttributes':[_0x2f7141(0xb0)]}),_0x2e2642[_0x2f7141(0xd2)](_0x2f7141(0xd1))&&_0x2e2642[_0x2f7141(0xf4)](_0x2f7141(0xd1),{'allowAttributes':[_0x2f7141(0xb0)]});}[_0x11732d(0xb6)](){const _0xf87474=_0x11732d,_0x6c568c=this[_0xf87474(0xb4)];_0x6c568c[_0xf87474(0xcd)][_0xf87474(0xdd)](_0xf87474(0xe5))[_0xf87474(0xe6)]({'model':_0xf87474(0xb0),'view':_0xf87474(0xf2)}),_0x6c568c[_0xf87474(0xcd)][_0xf87474(0xdd)](_0xf87474(0xd8))[_0xf87474(0xec)]({'model':{'key':_0xf87474(0xb0),'value':_0x308845=>_0x308845[_0xf87474(0xbe)](_0xf87474(0xf2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29e33d=_0x6c568c[_0xf87474(0xe3)][_0xf87474(0xd7)](_0xf87474(0xbf));_0x29e33d&&this[_0xf87474(0xad)](_0x29e33d,_0xf87474(0xb5),(_0x1338c5,[_0x556f34,_0x3dfa0e])=>{const _0x4ff0e1=_0xf87474;_0x556f34[_0x4ff0e1(0xa5)](_0x4ff0e1(0xb0),_0x3dfa0e);});}[_0x11732d(0xbc)](){const _0x4b21cd=_0x11732d,_0x7b1ae6=this[_0x4b21cd(0xb4)][_0x4b21cd(0xaa)][_0x4b21cd(0xd7)](_0x4b21cd(0xe1))||{},_0x1cad1c=this[_0x4b21cd(0xb4)][_0x4b21cd(0xaa)][_0x4b21cd(0xd7)](_0x4b21cd(0xdf))||'';this[_0x4b21cd(0xac)]=_0x2cfefd(_0x3cbf60[_0x4b21cd(0xde)],_0x4b21cd(0xf3),{..._0x7b1ae6,'pubkey':_0x1cad1c,'ctx-name':_0x4b21cd(0xc9)+this[_0x4b21cd(0xd0)],'sourceList':'','imgOnly':_0x4b21cd(0xab),'removeCopyright':_0x4b21cd(0xab),'localeName':this[_0x4b21cd(0xb4)][_0x4b21cd(0xe0)][_0x4b21cd(0xaf)],'externalSourcesEmbedCss':_0x4b21cd(0xbd)}),this[_0x4b21cd(0xac)][_0x4b21cd(0xd5)]=_0x57df33=>{const _0x4f2290=_0x4b21cd;if(_0x4f2290(0xf1)==_0x57df33)return _0x4f2290(0xef);},_0x3cbf60[_0x4b21cd(0xde)][_0x4b21cd(0xcb)][_0x4b21cd(0xce)](this[_0x4b21cd(0xac)]);}[_0x11732d(0xb1)](){const _0x3c86f5=_0x11732d;this[_0x3c86f5(0xb3)]=_0x2cfefd(_0x3cbf60[_0x3c86f5(0xde)],_0x3c86f5(0xdc),{'ctx-name':_0x3c86f5(0xc9)+this[_0x3c86f5(0xd0)]}),_0x3cbf60[_0x3c86f5(0xde)][_0x3c86f5(0xcb)][_0x3c86f5(0xce)](this[_0x3c86f5(0xb3)]);}[_0x11732d(0xe9)](){const _0x184960=_0x11732d,_0xfd63c7=this[_0x184960(0xb4)][_0x184960(0xe3)][_0x184960(0xd7)](_0x184960(0xa4));_0xfd63c7&&this[_0x184960(0xad)](_0xfd63c7,_0x184960(0xcc),()=>{const _0x285d3f=_0x184960,_0x336df3=this[_0x285d3f(0xb4)][_0x285d3f(0xba)][_0x285d3f(0xde)][_0x285d3f(0xc7)][_0x285d3f(0xe2)]();_0x336df3&&_0x336df3[_0x285d3f(0xbe)](_0x285d3f(0xb0))&&this[_0x285d3f(0xb4)][_0x285d3f(0xa8)][_0x285d3f(0xed)][_0x285d3f(0xe4)](_0x285d3f(0xf0),()=>{const _0x257b88=_0x285d3f;_0x303042(this[_0x257b88(0xb4)],_0x336df3);});});const _0x2f712f=this[_0x184960(0xb4)][_0x184960(0xe3)][_0x184960(0xd7)](_0x184960(0xc0));_0x2f712f&&this[_0x184960(0xad)](_0x2f712f,_0x184960(0xcc),()=>{const _0xadb8b1=_0x184960,_0x5218c6=this[_0xadb8b1(0xb4)][_0xadb8b1(0xba)][_0xadb8b1(0xde)][_0xadb8b1(0xc7)][_0xadb8b1(0xe2)]();_0x5218c6&&_0x5218c6[_0xadb8b1(0xbe)](_0xadb8b1(0xb0))&&this[_0xadb8b1(0xb4)][_0xadb8b1(0xa8)][_0xadb8b1(0xed)][_0xadb8b1(0xe4)](_0xadb8b1(0xf0),()=>{const _0x5c7193=_0xadb8b1;_0x303042(this[_0x5c7193(0xb4)],_0x5218c6);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xea112e,ObservableMixin as _0x228abd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x578421}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x40b554}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4cee5a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x53577d}from'../../utils/uploadutils.js';import{getImageUrls as _0xb4eacc,getImageDimension as _0x2d2b98}from'../../utils/editingutils.js';import{isAncestor as _0x173def}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x228abd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x6b8377,_0xe55e46,_0x4e022a){super(),this['_editor']=_0x6b8377,this['_dialog']=_0xe55e46,this['_imageElement']=_0x4e022a,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 _0x57058b=this['_imageElement'],_0x1407aa=_0x57058b['getAttribute']('uploadcareImageId'),_0x35d165=_0x57058b['getAttribute']('src');if(_0x1407aa)await this['_loadImageInfo'](_0x1407aa,_0x35d165);else{if(this['_imageCache']['has'](_0x35d165)){const _0x189bc7=this['_imageCache']['get'](_0x35d165);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x189bc7['url'],this['imageDimension']=_0x189bc7['dimension'],this['imageId']=_0x189bc7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1787a9}=this['_editor'],t=_0x1787a9['t'],_0x559f2c=new _0x4cee5a(_0x1787a9,this['imageStatus'],this['_attributes']);_0x559f2c['bind']('status')['to'](this,'imageStatus'),_0x559f2c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x559f2c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x559f2c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x559f2c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x40b554,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x559f2c,'position':_0x578421['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x559f2c['focus']();},'onHide':()=>{_0x559f2c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x305ec5=>!_0x173def(_0x305ec5,_0x559f2c['element'])}});}['_loadImageInfo'](_0x6169d8,_0x29affd){return _0x53577d['getInfo'](_0x6169d8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x565485=>{const {width:_0x1f6d42,height:_0x18ce34}=_0x565485['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29affd,this['imageDimension']={'width':_0x1f6d42,'height':_0x18ce34},this['imageId']=_0x6169d8;})['catch'](_0x1e4f57=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e4f57['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x47f705,_0x153dab){return this['_getImageAsFile'](_0x47f705)['then'](_0x98c9dc=>_0x53577d['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':_0x153dab['signal'],'file':_0x98c9dc,'onProgress':_0x498c88=>{_0x498c88&&_0x498c88['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x498c88['value']));}}))['then'](_0x4d4928=>{const {width:_0x16c4a3,height:_0xe536c5}=_0x4d4928['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d4928['cdnUrl'],this['imageDimension']={'width':_0x16c4a3,'height':_0xe536c5},this['imageId']=_0x4d4928['uuid'],this['imageUploadProgress']=null;const _0x158f8c=_0x47f705['getAttribute']('src');this['_imageCache']['set'](_0x158f8c,{'id':_0x4d4928['uuid'],'url':_0x4d4928['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x329584=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x329584['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cf824,_0x38f250){_0x4cf824['on']('apply',(_0x3503ee,_0x193bd1)=>{this['_replaceImage'](_0x38f250,_0x193bd1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cf824['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cf824['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x45844f,_0x136c31,_0x1abc25){const _0x2524a1=this['_editor'],{width:_0x47aea0,height:_0x5ab43b}=_0x2d2b98(_0x136c31,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x417237,imageSources:_0x5f0f6b}=_0xb4eacc(_0x136c31,_0x47aea0);_0x2524a1['model']['change'](_0x3aee80=>{if('$graveyard'===_0x45844f['root']['rootName']){_0x2524a1['execute']('insertImage',{'imageType':_0x45844f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x45844f['getAttributes']()),'uploadcareImageId':_0x1abc25,'src':_0x417237,'sources':_0x5f0f6b,'width':_0x47aea0,'height':_0x5ab43b}});const _0x365f20=_0x45844f['getChildren']();_0x45844f=_0x2524a1['model']['document']['selection']['getSelectedElement']();for(const _0x397ae8 of _0x365f20)_0x3aee80['append'](_0x3aee80['cloneElement'](_0x397ae8),_0x45844f);}else _0x3aee80['setSelection'](_0x45844f,'on'),_0x2524a1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x45844f['getAttributes']()),'uploadcareImageId':_0x1abc25,'src':_0x417237,'sources':_0x5f0f6b,'width':_0x47aea0,'height':_0x5ab43b},_0x45844f);_0x3aee80['setSelection'](_0x45844f,'on');});}async['_getImageAsFile'](_0x42de77){const _0x537533=_0xea112e['window'],_0x4baedf=_0xea112e['document']['location']['href'],_0x5b7440=new _0x537533['URL'](_0x42de77['getAttribute']('src'),_0x4baedf);if('data:'===_0x5b7440['protocol']){const _0x248239=_0x5b7440['href']['split'](','),_0x49477e=_0x248239[0x0]['match'](/:(.*?);/)[0x1],_0x3073f7=_0x49477e['split']('/')[0x1],_0x456fcd=_0x537533['atob'](_0x248239[_0x248239['length']-0x1]);let _0x45f247=_0x456fcd['length'];const _0x168997=new _0x537533['Uint8Array'](_0x45f247);for(;_0x45f247--;)_0x168997[_0x45f247]=_0x456fcd['charCodeAt'](_0x45f247);return new _0x537533['File']([_0x168997],'image.'+_0x3073f7,{'type':_0x49477e});}const _0x30f544=_0x5b7440['href']['split']('/'),_0x3f428c=_0x30f544[_0x30f544['length']-0x1],_0x259c2e=_0x3f428c['split']('.')[0x1];return _0x537533['fetch'](_0x5b7440['href'])['then'](_0xb801d=>_0xb801d['clone']()['blob']())['then'](_0x1fec3b=>new _0x537533['File']([_0x1fec3b],_0x3f428c,{'type':'image/'+_0x259c2e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x590337,_0x242c46){const _0x50dc00=_0x4e58,_0x29b98b=_0x590337();while(!![]){try{const _0x2df4d4=-parseInt(_0x50dc00(0x1ea))/0x1+parseInt(_0x50dc00(0x1de))/0x2*(parseInt(_0x50dc00(0x1db))/0x3)+parseInt(_0x50dc00(0x1e6))/0x4+parseInt(_0x50dc00(0x1df))/0x5*(-parseInt(_0x50dc00(0x1d9))/0x6)+parseInt(_0x50dc00(0x1e0))/0x7+-parseInt(_0x50dc00(0x1d8))/0x8*(-parseInt(_0x50dc00(0x1e2))/0x9)+-parseInt(_0x50dc00(0x1e4))/0xa*(parseInt(_0x50dc00(0x1e9))/0xb);if(_0x2df4d4===_0x242c46)break;else _0x29b98b['push'](_0x29b98b['shift']());}catch(_0x51d362){_0x29b98b['push'](_0x29b98b['shift']());}}}(_0x3559,0xc57ca));function _0x4e58(_0x4ac1a5,_0x259536){const _0x3559e2=_0x3559();return _0x4e58=function(_0x4e5891,_0x27c95d){_0x4e5891=_0x4e5891-0x1d8;let _0x39fcbc=_0x3559e2[_0x4e5891];return _0x39fcbc;},_0x4e58(_0x4ac1a5,_0x259536);}function _0x3559(){const _0x1d1894=['setTemplate','image-edit','11eMEXoK','409593fdTHze','9844152BPRwAk','41526pfZlOc','set','9459PxYbWz','bindTemplate','uc-cloud-image-editor','484iSONXP','240HJnQUa','5142158kheavX','imageSrc','9lLZhfu','uc-light','21173870rdcUOW','ck-uploadcare-theme','3759820vjfZwr'];_0x3559=function(){return _0x1d1894;};return _0x3559();}import{View as _0xe224ad}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xe224ad{constructor(_0x1c715f,_0x194c59){const _0x9758c5=_0x4e58;super(_0x1c715f);const _0xce1930=this[_0x9758c5(0x1dc)];this[_0x9758c5(0x1da)](_0x9758c5(0x1e1),''),this[_0x9758c5(0x1e7)]({'tag':_0x9758c5(0x1dd),'attributes':{..._0x194c59,'class':[_0x9758c5(0x1e3),_0x9758c5(0x1e5)],'ctx-name':_0x9758c5(0x1e8),'cdn-url':_0xce1930['to'](_0x9758c5(0x1e1))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4f8c25}from'ckeditor5/src/icons.js';import{ButtonView as _0x5801db,IconView as _0x27d747,View as _0xc6aa9a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xc6aa9a{constructor(_0x3fac1a){super(_0x3fac1a);const t=_0x3fac1a['t'];this['set']('errorType',null);const _0xc1ded=new _0x5801db(_0x3fac1a);_0xc1ded['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc1ded['withText']=!0x0,_0xc1ded['class']='ck-button-action',_0xc1ded['on']('execute',()=>{this['fire']('retry');}),_0xc1ded['bind']('isVisible')['to'](this,'errorType',_0x514f89=>'NotFound'!==_0x514f89);const _0x427812=new _0x27d747();_0x427812['content']=_0x4f8c25,_0x427812['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1986c1=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':[_0x427812,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1986c1['to']('errorType',_0x2170d6=>t('NotFound'!==_0x2170d6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc1ded]},{'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 _0x2f81c8,View as _0x1b82b7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1b82b7{constructor(_0x25caa7){super(_0x25caa7);const t=_0x25caa7['t'],_0x15dbbe=this['bindTemplate'],_0x24be96=new _0x2f81c8();_0x24be96['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':[_0x24be96,{'text':_0x15dbbe['to']('imageUploadProgress',_0x244f69=>t('Loading\x20image...')+'\x20('+(_0x244f69||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
|
-
function
|
|
23
|
+
const _0x3f5225=_0x4d28;function _0x4d28(_0x2b4d58,_0x4a340f){const _0x290518=_0x2905();return _0x4d28=function(_0x4d2898,_0x36c50f){_0x4d2898=_0x4d2898-0x80;let _0x39ec96=_0x290518[_0x4d2898];return _0x39ec96;},_0x4d28(_0x2b4d58,_0x4a340f);}(function(_0x245bc7,_0x3d95ce){const _0x46c9f5=_0x4d28,_0x11e761=_0x245bc7();while(!![]){try{const _0x289eeb=-parseInt(_0x46c9f5(0x8a))/0x1*(-parseInt(_0x46c9f5(0xad))/0x2)+-parseInt(_0x46c9f5(0xae))/0x3*(parseInt(_0x46c9f5(0x82))/0x4)+-parseInt(_0x46c9f5(0x80))/0x5*(parseInt(_0x46c9f5(0x87))/0x6)+parseInt(_0x46c9f5(0x88))/0x7*(-parseInt(_0x46c9f5(0xb5))/0x8)+parseInt(_0x46c9f5(0x84))/0x9*(parseInt(_0x46c9f5(0x90))/0xa)+parseInt(_0x46c9f5(0x97))/0xb*(-parseInt(_0x46c9f5(0xa0))/0xc)+parseInt(_0x46c9f5(0xa6))/0xd;if(_0x289eeb===_0x3d95ce)break;else _0x11e761['push'](_0x11e761['shift']());}catch(_0x318795){_0x11e761['push'](_0x11e761['shift']());}}}(_0x2905,0xb415e));import{View as _0x168a17}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1e8075}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x34ab50}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x40914a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1c6c19}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1c6c19{[_0x3f5225(0x98)];[_0x3f5225(0xa9)];[_0x3f5225(0x9e)];[_0x3f5225(0x9f)];[_0x3f5225(0x81)];constructor(_0x28b43f,_0x1d9547,_0x13989a){const _0x1ae3d8=_0x3f5225;super(_0x28b43f),this[_0x1ae3d8(0x98)]=this[_0x1ae3d8(0xab)](),this[_0x1ae3d8(0xa9)]=new _0x1e8075(_0x28b43f),this[_0x1ae3d8(0x9e)]=new _0x34ab50(_0x28b43f),this[_0x1ae3d8(0x9f)]=new _0x40914a(_0x28b43f,_0x13989a),this[_0x1ae3d8(0x81)]=new _0x168a17(_0x28b43f),this[_0x1ae3d8(0x81)][_0x1ae3d8(0x8c)](this[_0x1ae3d8(0xb8)]()),this[_0x1ae3d8(0x9a)](_0x1ae3d8(0xa1),_0x1d9547),this[_0x1ae3d8(0x8c)]({'tag':_0x1ae3d8(0x9d),'attributes':{'class':['ck',_0x1ae3d8(0x83),_0x1ae3d8(0x93)],'tabindex':'-1'},'children':this[_0x1ae3d8(0x98)]}),this[_0x1ae3d8(0xb0)](),this[_0x1ae3d8(0xb3)](_0x1ae3d8(0xaa),()=>{const _0xbb3bd0=_0x1ae3d8;this[_0xbb3bd0(0xa8)](this[_0xbb3bd0(0x94)],_0x386af8=>{const _0x3b0dc9=_0xbb3bd0;this[_0x3b0dc9(0xb7)](_0x386af8);});}),this['on'](_0x1ae3d8(0xb9),()=>{const _0x4f2003=_0x1ae3d8;this[_0x4f2003(0xb0)]();}),this[_0x1ae3d8(0x96)]();}[_0x3f5225(0x8f)](){const _0x172a26=_0x3f5225;this[_0x172a26(0x94)][_0x172a26(0x8f)]();}[_0x3f5225(0xb0)](){const _0x5e1efc=_0x3f5225;switch(this[_0x5e1efc(0x98)][_0x5e1efc(0xa7)](),this[_0x5e1efc(0xa1)]){case _0x5e1efc(0xac):this[_0x5e1efc(0x98)][_0x5e1efc(0x99)](this[_0x5e1efc(0xa9)]);break;case _0x5e1efc(0x8b):this[_0x5e1efc(0x98)][_0x5e1efc(0x99)](this[_0x5e1efc(0x9e)]);break;case _0x5e1efc(0xb4):this[_0x5e1efc(0x98)][_0x5e1efc(0x9c)]([this[_0x5e1efc(0x9f)],this[_0x5e1efc(0x81)]]);}}[_0x3f5225(0xa8)](_0x1f881d,_0x34e61e){const _0x43b54a=_0x3f5225,_0x53db0b=_0x43b54a(0x9b),_0x1ce041=_0x1f881d[_0x43b54a(0xa3)](_0x53db0b);if(_0x1ce041)return _0x34e61e(_0x1ce041);const _0x1c781d=new MutationObserver(_0x329f13=>{const _0x4934fe=_0x43b54a,_0x2b0581=_0x329f13[_0x4934fe(0x8e)](_0x18eafe=>_0x18eafe[_0x4934fe(0xa2)]===_0x1f881d&&_0x18eafe[_0x4934fe(0xaf)][_0x4934fe(0x92)]>0x0&&_0x18eafe[_0x4934fe(0xaf)][0x0][_0x4934fe(0x91)][_0x4934fe(0xb1)]()===_0x53db0b);_0x2b0581[_0x4934fe(0x92)]&&(_0x1c781d[_0x4934fe(0x8d)](),_0x34e61e(_0x2b0581[0x0][_0x4934fe(0xaf)][0x0]));});_0x1c781d[_0x43b54a(0xa4)](_0x1f881d,{'childList':!0x0,'subtree':!0x0});}[_0x3f5225(0xb7)](_0x47945f){const _0x29bff1=_0x3f5225;_0x47945f[_0x29bff1(0xb6)](_0x29bff1(0x89),_0x4cdc7f=>{const _0x22c55a=_0x29bff1;this[_0x22c55a(0x86)](_0x22c55a(0x89),{'imageSrc':_0x4cdc7f[_0x22c55a(0xb2)][_0x22c55a(0xa5)]});}),_0x47945f[_0x29bff1(0xb6)](_0x29bff1(0x85),()=>{const _0x23e943=_0x29bff1;this[_0x23e943(0x86)](_0x23e943(0x85));});}[_0x3f5225(0x96)](){const _0x27319c=_0x3f5225;this[_0x27319c(0x9e)]['on'](_0x27319c(0x95),()=>{const _0x3a93b4=_0x27319c;this[_0x3a93b4(0x86)](_0x3a93b4(0x95));});}}function _0x2905(){const _0xe1b789=['16540nNjXlL','nodeName','length','ck-uploadcare-form','element','retry','_addErrorViewListeners','3443DvtaTN','_items','add','set','uc-cloud-image-editor','addMany','div','_errorView','_editingView','10884fDzsRB','status','target','querySelector','observe','cdnUrl','31292846AkhtUm','clear','_waitForImageEditorComponent','_loadingView','render','createCollection','uploading','13652IEBUWM','1398ZxvUvA','addedNodes','_setView','toLowerCase','detail','once','ready','1571336TSgEOu','addEventListener','_addUploadcareImageEditorListeners','getFocusableElement','change:status','935140uPlAYT','_focusableView','11920NMNmRd','ck-reset_all-excluded','4131peEpvE','cancel','fire','30wopQTA','7YUNpFK','apply','55vngtlR','error','setTemplate','disconnect','filter','focus'];_0x2905=function(){return _0xe1b789;};return _0x2905();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x53ca(){const _0x3836ed=['uploadcare.allowExternalImagesEditing','refresh','getSelectedElement','_isEditable','1771748IuXHUK','isEnabled','bind','set','1062wRzuMT','10035IHtFGm','26081TAIEvW','execute','model','unbind','591039zzoinw','2954646yriKkm','imageEditController','16pPnVfN','10fnTYWY','plugins','document','586377eibZbc','element','isActive','107472ADbfge','imageInline','imageBlock','42UtBipa','get','24RbAbIA','selection','config','editor','requires'];_0x53ca=function(){return _0x3836ed;};return _0x53ca();}function _0x3588(_0x511376,_0x108f42){const _0x53ca5f=_0x53ca();return _0x3588=function(_0x358837,_0x2358fe){_0x358837=_0x358837-0x1f0;let _0x59b21e=_0x53ca5f[_0x358837];return _0x59b21e;},_0x3588(_0x511376,_0x108f42);}const _0xebc598=_0x3588;(function(_0x74fa55,_0x568f69){const _0x209f13=_0x3588,_0x508490=_0x74fa55();while(!![]){try{const _0x51a406=-parseInt(_0x209f13(0x206))/0x1*(parseInt(_0x209f13(0x20d))/0x2)+-parseInt(_0x209f13(0x20a))/0x3+parseInt(_0x209f13(0x200))/0x4+parseInt(_0x209f13(0x205))/0x5*(parseInt(_0x209f13(0x204))/0x6)+parseInt(_0x209f13(0x1f5))/0x7*(parseInt(_0x209f13(0x1f2))/0x8)+parseInt(_0x209f13(0x20b))/0x9*(-parseInt(_0x209f13(0x20e))/0xa)+-parseInt(_0x209f13(0x211))/0xb*(-parseInt(_0x209f13(0x1f7))/0xc);if(_0x51a406===_0x568f69)break;else _0x508490['push'](_0x508490['shift']());}catch(_0x170eba){_0x508490['push'](_0x508490['shift']());}}}(_0x53ca,0x3d62f));import{Command as _0x55f2d7}from'ckeditor5/src/core.js';import{Dialog as _0x4f3ed5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3f853c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1cf366}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x55f2d7{[_0xebc598(0x20c)];static get[_0xebc598(0x1fb)](){return[_0x4f3ed5];}[_0xebc598(0x1ff)];constructor(_0x19f850){const _0x61dea2=_0xebc598;super(_0x19f850),this[_0x61dea2(0x20c)]=void 0x0,this[_0x61dea2(0x1ff)]=_0x1cf366(_0x19f850[_0x61dea2(0x1f9)][_0x61dea2(0x1f6)](_0x61dea2(0x1fc))||[]),this[_0x61dea2(0x203)]({'isActive':!0x1});}[_0xebc598(0x1fd)](){const _0x463121=_0xebc598,_0x127a56=this[_0x463121(0x1fa)][_0x463121(0x208)][_0x463121(0x210)][_0x463121(0x1f8)][_0x463121(0x1fe)]();this[_0x463121(0x201)]=this[_0x463121(0x1ff)](_0x127a56);}[_0xebc598(0x207)](){const _0x2d97c0=_0xebc598;this[_0x2d97c0(0x20c)]&&(this[_0x2d97c0(0x209)](_0x2d97c0(0x1f1)),this[_0x2d97c0(0x20c)]=void 0x0);const _0x3b8d19=this[_0x2d97c0(0x1fa)][_0x2d97c0(0x208)][_0x2d97c0(0x210)][_0x2d97c0(0x1f8)][_0x2d97c0(0x1fe)]();_0x3b8d19&&(_0x3b8d19['is'](_0x2d97c0(0x1f0),_0x2d97c0(0x1f4))||_0x3b8d19['is'](_0x2d97c0(0x1f0),_0x2d97c0(0x1f3)))&&(this[_0x2d97c0(0x20c)]=new _0x3f853c(this[_0x2d97c0(0x1fa)],this[_0x2d97c0(0x1fa)][_0x2d97c0(0x20f)][_0x2d97c0(0x1f6)](_0x4f3ed5),_0x3b8d19),this[_0x2d97c0(0x202)](_0x2d97c0(0x1f1))['to'](this[_0x2d97c0(0x20c)],_0x2d97c0(0x1f1)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e4ec3=_0x369b;function _0x369b(_0x551296,_0x5f4ccc){const _0x151e50=_0x151e();return _0x369b=function(_0x369b5d,_0x31476c){_0x369b5d=_0x369b5d-0xaa;let _0x476a68=_0x151e50[_0x369b5d];return _0x476a68;},_0x369b(_0x551296,_0x5f4ccc);}(function(_0x9fc339,_0x26f013){const _0x7764da=_0x369b,_0x3d3e13=_0x9fc339();while(!![]){try{const _0x190448=parseInt(_0x7764da(0xb3))/0x1*(-parseInt(_0x7764da(0xb5))/0x2)+parseInt(_0x7764da(0xae))/0x3+parseInt(_0x7764da(0xb7))/0x4*(-parseInt(_0x7764da(0xb9))/0x5)+-parseInt(_0x7764da(0xaf))/0x6*(-parseInt(_0x7764da(0xad))/0x7)+-parseInt(_0x7764da(0xb0))/0x8*(-parseInt(_0x7764da(0xc2))/0x9)+parseInt(_0x7764da(0xac))/0xa*(-parseInt(_0x7764da(0xb1))/0xb)+parseInt(_0x7764da(0xab))/0xc*(parseInt(_0x7764da(0xbb))/0xd);if(_0x190448===_0x26f013)break;else _0x3d3e13['push'](_0x3d3e13['shift']());}catch(_0x495247){_0x3d3e13['push'](_0x3d3e13['shift']());}}}(_0x151e,0x23457));import{Plugin as _0x31d29b}from'ckeditor5/src/core.js';import{Notification as _0x1106ef}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5d073a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3bc88a}from'./uploadcareimagereplacecommand.js';function _0x151e(){const _0x48493b=['ImageUtils','95PTskSx','init','13RRxgEN','commands','UploadcareImageEditEditing','ImageEditing','pluginName','isPremiumPlugin','add','3096DOHvOZ','uploadcareImageEdit','5388912FMKDWL','1625390DxMXTF','161CjwfGv','615213rpVtCO','5388kCgkvy','472IhRuZr','11LIwdhD','requires','5YBMSgL','isOfficialPlugin','86736gqlBGI','uploadcareImageReplace','36052dmWPzu'];_0x151e=function(){return _0x48493b;};return _0x151e();}import{UploadcareEditing as _0x4ad7db}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x31d29b{static get[_0x4e4ec3(0xbf)](){const _0x4b20da=_0x4e4ec3;return _0x4b20da(0xbd);}static get[_0x4e4ec3(0xb2)](){const _0x3ce935=_0x4e4ec3;return[_0x4ad7db,_0x1106ef,_0x3ce935(0xb8),_0x3ce935(0xbe)];}static get[_0x4e4ec3(0xb4)](){return!0x0;}static get[_0x4e4ec3(0xc0)](){return!0x0;}[_0x4e4ec3(0xba)](){const _0x20e05c=_0x4e4ec3,{editor:_0x48295d}=this;_0x48295d[_0x20e05c(0xbc)][_0x20e05c(0xc1)](_0x20e05c(0xaa),new _0x5d073a(_0x48295d)),_0x48295d[_0x20e05c(0xbc)][_0x20e05c(0xc1)](_0x20e05c(0xb6),new _0x3bc88a(_0x48295d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x174816}from'ckeditor5/src/core.js';import{ButtonView as _0x530024}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xb2cb68}from'ckeditor5/src/icons.js';import{createElement as _0x1c2788}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 _0x174816{['_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 _0x4a0793=this['editor'];_0x4a0793['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4fb477=>{const _0x2e906c=_0x4a0793['commands']['get']('uploadcareImageEdit'),_0x63a14a=new _0x530024(_0x4fb477),t=_0x4fb477['t'];return _0x63a14a['set']({'icon':_0xb2cb68,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x63a14a['bind']('isEnabled')['to'](_0x2e906c),_0x63a14a['bind']('isOn')['to'](_0x2e906c,'isActive'),this['listenTo'](_0x63a14a,'execute',()=>{_0x4a0793['execute']('uploadcareImageEdit'),_0x4a0793['editing']['view']['focus']();}),_0x63a14a;}),this['_initConfig']();}['_initConfig'](){const _0x5c349a=_0x1c2788(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5c349a),this['listenTo'](this['editor'],'destroy',()=>{_0x5c349a['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x10f1ed=_0x1f3b;function _0x1f3b(_0xa10e9,_0x30bd37){const _0x7f7883=_0x7f78();return _0x1f3b=function(_0x1f3b5f,_0x13489a){_0x1f3b5f=_0x1f3b5f-0x160;let _0x218199=_0x7f7883[_0x1f3b5f];return _0x218199;},_0x1f3b(_0xa10e9,_0x30bd37);}(function(_0x5ae0b2,_0x340f42){const _0x494484=_0x1f3b,_0x4f91f0=_0x5ae0b2();while(!![]){try{const _0x231560=parseInt(_0x494484(0x164))/0x1*(parseInt(_0x494484(0x176))/0x2)+-parseInt(_0x494484(0x166))/0x3+parseInt(_0x494484(0x16d))/0x4*(-parseInt(_0x494484(0x17b))/0x5)+parseInt(_0x494484(0x172))/0x6*(parseInt(_0x494484(0x17a))/0x7)+-parseInt(_0x494484(0x16e))/0x8*(-parseInt(_0x494484(0x170))/0x9)+parseInt(_0x494484(0x167))/0xa*(parseInt(_0x494484(0x169))/0xb)+-parseInt(_0x494484(0x16c))/0xc;if(_0x231560===_0x340f42)break;else _0x4f91f0['push'](_0x4f91f0['shift']());}catch(_0x4f5b06){_0x4f91f0['push'](_0x4f91f0['shift']());}}}(_0x7f78,0xbd9bb));import{Command as _0xd7decd}from'ckeditor5/src/core.js';function _0x7f78(){const _0x565330=['5zJvUwj','refresh','getSelectedElement','sizes','setAttributes','357849IXgLMI','model','1431984lenNvK','10fECwGF','editor','11270809saFTrn','change','selection','42634872Drjcbl','1141784oyUkJn','651192SzyyHI','srcset','126ZxJBIf','document','6KnzjkR','isEnabled','imageInline','imageBlock','8SiQeJr','removeAttribute','execute','element','10476998hwlxqx'];_0x7f78=function(){return _0x565330;};return _0x7f78();}export class UploadcareImageReplaceCommand extends _0xd7decd{[_0x10f1ed(0x160)](){const _0x2627b8=_0x10f1ed,_0x2206d3=this[_0x2627b8(0x168)][_0x2627b8(0x165)][_0x2627b8(0x171)][_0x2627b8(0x16b)][_0x2627b8(0x161)]();this[_0x2627b8(0x173)]=Boolean(_0x2206d3&&(_0x2206d3['is'](_0x2627b8(0x179),_0x2627b8(0x175))||_0x2206d3['is'](_0x2627b8(0x179),_0x2627b8(0x174))));}[_0x10f1ed(0x178)](_0x4965a9){const _0x11aed1=_0x10f1ed,_0x3b6711=this[_0x11aed1(0x168)][_0x11aed1(0x165)][_0x11aed1(0x171)][_0x11aed1(0x16b)][_0x11aed1(0x161)]();this[_0x11aed1(0x168)][_0x11aed1(0x165)][_0x11aed1(0x16a)](_0x30e51f=>{const _0x3cbbdf=_0x11aed1;_0x30e51f[_0x3cbbdf(0x163)](_0x4965a9,_0x3b6711),_0x30e51f[_0x3cbbdf(0x177)](_0x3cbbdf(0x16f),_0x3b6711),_0x30e51f[_0x3cbbdf(0x177)](_0x3cbbdf(0x162),_0x3b6711);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xe904(_0x136250,_0x5604ba){var _0x3af8cc=_0x3af8();return _0xe904=function(_0xe90478,_0x37af29){_0xe90478=_0xe90478-0xfd;var _0xbedd1c=_0x3af8cc[_0xe90478];return _0xbedd1c;},_0xe904(_0x136250,_0x5604ba);}var _0x5998b0=_0xe904;(function(_0x546ac1,_0x5bbbee){var _0x4b4d5f=_0xe904,_0x483562=_0x546ac1();while(!![]){try{var _0x48c83f=-parseInt(_0x4b4d5f(0x107))/0x1+-parseInt(_0x4b4d5f(0x10b))/0x2*(parseInt(_0x4b4d5f(0x106))/0x3)+-parseInt(_0x4b4d5f(0x109))/0x4*(parseInt(_0x4b4d5f(0x10d))/0x5)+-parseInt(_0x4b4d5f(0x10a))/0x6*(-parseInt(_0x4b4d5f(0xff))/0x7)+-parseInt(_0x4b4d5f(0x108))/0x8*(parseInt(_0x4b4d5f(0x104))/0x9)+-parseInt(_0x4b4d5f(0x102))/0xa+parseInt(_0x4b4d5f(0x101))/0xb*(parseInt(_0x4b4d5f(0x105))/0xc);if(_0x48c83f===_0x5bbbee)break;else _0x483562['push'](_0x483562['shift']());}catch(_0x5ab721){_0x483562['push'](_0x483562['shift']());}}}(_0x3af8,0x1eea4));import{Plugin as _0xcb5cf}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x3e8a8}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x3af8(){var _0x384ea9=['UploadcareImageEdit','94212bDRvrj','108ZjehqB','258276BPcUDE','19994ezdPcz','40kzCaul','106828IWbnqE','12ltQISE','2TbyJWH','requires','5maeBIL','pluginName','isPremiumPlugin','864199FHCuQt','isOfficialPlugin','388069hzbhJH','2526640PmceYn'];_0x3af8=function(){return _0x384ea9;};return _0x3af8();}import{UploadcareImageEditUI as _0xb2bbe2}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0xcb5cf{static get[_0x5998b0(0xfd)](){var _0x257260=_0x5998b0;return _0x257260(0x103);}static get[_0x5998b0(0x10c)](){return[_0x3e8a8,_0xb2bbe2];}static get[_0x5998b0(0x100)](){return!0x0;}static get[_0x5998b0(0xfe)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4baa4c=_0x1245;(function(_0x1a0591,_0x3d1dae){const _0xedd9f4=_0x1245,_0x55139d=_0x1a0591();while(!![]){try{const _0x403148=parseInt(_0xedd9f4(0x191))/0x1+parseInt(_0xedd9f4(0x192))/0x2+-parseInt(_0xedd9f4(0x1cc))/0x3+parseInt(_0xedd9f4(0x1ca))/0x4+parseInt(_0xedd9f4(0x1bd))/0x5*(parseInt(_0xedd9f4(0x1be))/0x6)+-parseInt(_0xedd9f4(0x1c9))/0x7+-parseInt(_0xedd9f4(0x1c4))/0x8;if(_0x403148===_0x3d1dae)break;else _0x55139d['push'](_0x55139d['shift']());}catch(_0x125653){_0x55139d['push'](_0x55139d['shift']());}}}(_0x5d04,0x65699));import{Plugin as _0x515f42}from'ckeditor5/src/core.js';import{IconDropbox as _0x33e7a3,IconFacebook as _0x101384,IconGoogleDrive as _0x4a1f6f,IconGooglePhotos as _0x484210,IconUploadcareImageUpload as _0x52c552,IconUploadcareLink as _0x48ea1f,IconOneDrive as _0x40d5cc}from'ckeditor5/src/icons.js';import{ButtonView as _0x13aa1a,MenuBarMenuListItemButtonView as _0x386f44}from'ckeditor5/src/ui.js';function _0x1245(_0x424c86,_0x45fa9b){const _0x5d0416=_0x5d04();return _0x1245=function(_0x12458f,_0x3d69ee){_0x12458f=_0x12458f-0x185;let _0x2d64b0=_0x5d0416[_0x12458f];return _0x2d64b0;},_0x1245(_0x424c86,_0x45fa9b);}import{UploadcareSource as _0x2c84e0}from'./uploadcareconfig.js';import{getTranslation as _0x3c8c03}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x5d04(){const _0x1aba7b=['withText','invalid','isEnabled','uploadcareLicenseKeyDomainLimit','Uploadcare','config','locale','819126iKUvCD','836020cpRvof','uploadcare','uploadcareLicenseKeyUsageLimit','GPhotos','forEach','_createToolbarButton','Facebook','destroy','editor','domainLimit','_getIntegrationKey','licenseKey','Local','UploadcareUI','plugins','icon','init','uploadcareLicenseKeyInvalid','expired','isOfficialPlugin','featureNotAllowed','evaluationLimit','entries','label','uploadcareLicenseKeyValid','tooltip','upload','Dropbox','uploadcareLicenseKeyNotAllowed','trialLimit','type','get','uploadcare.uploader.sourceList','Replace','isImageSelected','uploadcareLicenseKeyEvaluationLimit','url','commands','pluginName','GDrive','has','reduce','push','20GvKKbb','864618cTfbuK','_normalizeConfigSourceList','isPremiumPlugin','_createDropdownButtons','bind','afterInit','7775048KAzlSl','text','shortText','_showLicenseError','_createButton','2714054QpBXwD','1623576zofxUp','execute','1333362JVXSgk','_licenseKeyCheckInterval','Insert','uploadcareLicenseKeyTrialLimit','usageLimit','assetManager','URL','ImageInsertUI','OneDrive','registerIntegration','uploadcareLicenseKeyExpired','map','_createMenuBarButtons'];_0x5d04=function(){return _0x1aba7b;};return _0x5d04();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x515f42{[_0x4baa4c(0x19d)];[_0x4baa4c(0x1cd)];static get[_0x4baa4c(0x1b8)](){const _0x1b3e56=_0x4baa4c;return _0x1b3e56(0x19f);}static get[_0x4baa4c(0x1a5)](){return!0x0;}static get[_0x4baa4c(0x1c0)](){return!0x0;}[_0x4baa4c(0x1a2)](){const _0x4082ce=_0x4baa4c;this[_0x4082ce(0x19d)]=this[_0x4082ce(0x19a)][_0x4082ce(0x18f)][_0x4082ce(0x1b1)](_0x4082ce(0x19d));const _0x58c6f3=this[_0x4082ce(0x19a)];this[_0x4082ce(0x1cd)]=setInterval(()=>{const _0x2422eb=_0x4082ce;let _0x583006;for(const _0x1c0cde in _0x58c6f3){const _0x29ab40=_0x1c0cde,_0x49d4c1=_0x58c6f3[_0x29ab40];if(_0x2422eb(0x1aa)==_0x49d4c1||_0x2422eb(0x1a3)==_0x49d4c1||_0x2422eb(0x187)==_0x49d4c1||_0x2422eb(0x18d)==_0x49d4c1||_0x2422eb(0x1ae)==_0x49d4c1||_0x2422eb(0x1b5)==_0x49d4c1||_0x2422eb(0x1cf)==_0x49d4c1||_0x2422eb(0x194)==_0x49d4c1){delete _0x58c6f3[_0x29ab40],_0x583006=_0x49d4c1,clearInterval(this[_0x2422eb(0x1cd)]),this[_0x2422eb(0x1cd)]=void 0x0;break;}}_0x2422eb(0x1a3)==_0x583006&&_0x58c6f3[_0x2422eb(0x1c7)](_0x2422eb(0x18b)),_0x2422eb(0x187)==_0x583006&&_0x58c6f3[_0x2422eb(0x1c7)](_0x2422eb(0x1a4)),_0x2422eb(0x18d)==_0x583006&&_0x58c6f3[_0x2422eb(0x1c7)](_0x2422eb(0x19b)),_0x2422eb(0x1ae)==_0x583006&&_0x58c6f3[_0x2422eb(0x1c7)](_0x2422eb(0x1a6),_0x2422eb(0x18e)),_0x2422eb(0x1b5)==_0x583006&&_0x58c6f3[_0x2422eb(0x1c7)](_0x2422eb(0x1a7)),_0x2422eb(0x1cf)==_0x583006&&_0x58c6f3[_0x2422eb(0x1c7)](_0x2422eb(0x1af)),_0x2422eb(0x194)==_0x583006&&_0x58c6f3[_0x2422eb(0x1c7)](_0x2422eb(0x1d0));},0x3e8);}[_0x4baa4c(0x1c3)](){const _0x4b3d06=_0x4baa4c,{editor:_0x356310}=this,_0x98fd07=_0x356310[_0x4b3d06(0x1b7)][_0x4b3d06(0x1b1)](_0x4b3d06(0x193));if(!_0x98fd07)return;const _0x54c9e5=this[_0x4b3d06(0x1bf)](_0x356310[_0x4b3d06(0x18f)][_0x4b3d06(0x1b1)](_0x4b3d06(0x1b2)))[_0x4b3d06(0x1bb)]((_0xadb536,_0x106d8f)=>{const _0x3fde3e=_0x4b3d06,_0x5272a7=this[_0x3fde3e(0x19c)](_0x106d8f[_0x3fde3e(0x1b0)]);return _0xadb536[_0x5272a7]||(_0xadb536[_0x5272a7]=[]),_0xadb536[_0x5272a7][_0x3fde3e(0x1bc)](_0x106d8f),_0xadb536;},{});_0x356310[_0x4b3d06(0x1a0)][_0x4b3d06(0x1ba)](_0x4b3d06(0x1d3))&&_0x356310[_0x4b3d06(0x1b7)][_0x4b3d06(0x1b1)](_0x4b3d06(0x193))&&Object[_0x4b3d06(0x1a8)](_0x54c9e5)[_0x4b3d06(0x196)](([_0x2c9400,_0x33d047])=>{const _0x5bd495=_0x4b3d06;_0x356310[_0x5bd495(0x1a0)][_0x5bd495(0x1b1)](_0x5bd495(0x1d3))[_0x5bd495(0x186)]({'name':_0x2c9400,'observable':()=>_0x98fd07,'buttonViewCreator':()=>this[_0x5bd495(0x197)](_0x33d047),'formViewCreator':()=>this[_0x5bd495(0x1c1)](_0x33d047),'menuBarButtonViewCreator':()=>this[_0x5bd495(0x189)](_0x33d047),'override':_0x5bd495(0x1d1)!==_0x2c9400});});}[_0x4baa4c(0x199)](){const _0x2b6f47=_0x4baa4c;super[_0x2b6f47(0x199)](),this[_0x2b6f47(0x1cd)]&&clearInterval(this[_0x2b6f47(0x1cd)]);}[_0x4baa4c(0x1bf)](_0x227c6b){const _0x2937de=_0x4baa4c,{locale:_0x160003}=this[_0x2937de(0x19a)];return _0x227c6b[_0x2937de(0x188)](_0x55c464=>{const _0x164890=_0x2937de,_0x2f1701=_0x3c8c03(_0x160003,_0x55c464,_0x164890(0x1ce));switch(_0x55c464){case _0x2c84e0[_0x164890(0x19e)]:return{'icon':_0x52c552,'type':_0x2c84e0[_0x164890(0x19e)],..._0x2f1701};case _0x2c84e0[_0x164890(0x1d2)]:return{'icon':_0x48ea1f,'type':_0x2c84e0[_0x164890(0x1d2)],..._0x2f1701};case _0x2c84e0[_0x164890(0x1ad)]:return{'icon':_0x33e7a3,'type':_0x2c84e0[_0x164890(0x1ad)],..._0x2f1701};case _0x2c84e0[_0x164890(0x198)]:return{'icon':_0x101384,'type':_0x2c84e0[_0x164890(0x198)],..._0x2f1701};case _0x2c84e0[_0x164890(0x1b9)]:return{'icon':_0x4a1f6f,'type':_0x2c84e0[_0x164890(0x1b9)],..._0x2f1701};case _0x2c84e0[_0x164890(0x195)]:return{'icon':_0x484210,'type':_0x2c84e0[_0x164890(0x195)],..._0x2f1701};case _0x2c84e0[_0x164890(0x185)]:return{'icon':_0x40d5cc,'type':_0x2c84e0[_0x164890(0x185)],..._0x2f1701};}});}[_0x4baa4c(0x19c)](_0x3a90ff){const _0x5c4956=_0x4baa4c;switch(_0x3a90ff){case _0x2c84e0[_0x5c4956(0x19e)]:return _0x5c4956(0x1ac);case _0x2c84e0[_0x5c4956(0x1d2)]:return _0x5c4956(0x1b6);default:return _0x5c4956(0x1d1);}}[_0x4baa4c(0x1c8)](_0x164083,_0x40d4dc){const _0x57ce42=_0x4baa4c,_0x611e23=this[_0x57ce42(0x19a)],_0x28426b=new _0x164083(_0x611e23[_0x57ce42(0x190)]),_0x137697=_0x611e23[_0x57ce42(0x1b7)][_0x57ce42(0x1b1)](_0x57ce42(0x193));return _0x28426b[_0x57ce42(0x1c2)](_0x57ce42(0x18c))['to'](_0x137697),_0x28426b['on'](_0x57ce42(0x1cb),()=>{const _0x3458ca=_0x57ce42;_0x137697[_0x3458ca(0x1cb)](_0x40d4dc);}),_0x28426b;}[_0x4baa4c(0x197)](_0x198794){const _0x186e56=_0x4baa4c,{locale:_0x38d52e}=this[_0x186e56(0x19a)],_0x43b6fd=this[_0x186e56(0x19a)][_0x186e56(0x1a0)][_0x186e56(0x1b1)](_0x186e56(0x1d3)),_0x12695e=_0x198794[0x0],_0x49428e=this[_0x186e56(0x1c8)](_0x13aa1a,_0x12695e[_0x186e56(0x1b0)]);return _0x49428e[_0x186e56(0x1a1)]=_0x12695e[_0x186e56(0x1a1)],_0x49428e[_0x186e56(0x1c2)](_0x186e56(0x1a9))['to'](_0x43b6fd,_0x186e56(0x1b4),_0x2a3ca8=>_0x3c8c03(_0x38d52e,_0x12695e[_0x186e56(0x1b0)],_0x2a3ca8?_0x186e56(0x1b3):_0x186e56(0x1ce))[_0x186e56(0x1c5)]),_0x49428e[_0x186e56(0x1ab)]=!0x0,_0x49428e;}[_0x4baa4c(0x1c1)](_0x549b01){const _0x353602=_0x4baa4c,{locale:_0x14bb03}=this[_0x353602(0x19a)],_0x3a7ddb=this[_0x353602(0x19a)][_0x353602(0x1a0)][_0x353602(0x1b1)](_0x353602(0x1d3));return _0x549b01[_0x353602(0x188)](_0x24240c=>{const _0x48348a=_0x353602,_0x1af6fa=this[_0x48348a(0x1c8)](_0x13aa1a,_0x24240c[_0x48348a(0x1b0)]);return _0x1af6fa[_0x48348a(0x18a)]=!0x0,_0x1af6fa[_0x48348a(0x1a1)]=_0x24240c[_0x48348a(0x1a1)],_0x1af6fa[_0x48348a(0x1c2)](_0x48348a(0x1a9))['to'](_0x3a7ddb,_0x48348a(0x1b4),_0x9ef7c6=>_0x3c8c03(_0x14bb03,_0x24240c[_0x48348a(0x1b0)],_0x9ef7c6?_0x48348a(0x1b3):_0x48348a(0x1ce))[_0x48348a(0x1c5)]),_0x1af6fa;});}[_0x4baa4c(0x189)](_0x37e4c8){const _0x1054d8=_0x4baa4c;return _0x37e4c8[_0x1054d8(0x188)](_0x2cadcc=>{const _0x5a648e=_0x1054d8,_0x1881af=this[_0x5a648e(0x1c8)](_0x386f44,_0x2cadcc[_0x5a648e(0x1b0)]);return _0x1881af[_0x5a648e(0x1a1)]=_0x2cadcc[_0x5a648e(0x1a1)],_0x1881af[_0x5a648e(0x1a9)]=_0x2cadcc[_0x5a648e(0x1c6)],_0x1881af;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x222e34}from'ckeditor5/src/core.js';import{FileRepository as _0x48df18}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x38f98d}from'./uploadcareediting.js';import{UploadUtils as _0x311976}from'./utils/uploadutils.js';import{getImageUrls as _0x2b7c2e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x222e34{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x48df18,_0x38f98d];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b2070=this['editor'];if(!!!_0x3b2070['config']['get']('uploadcare'))return;_0x3b2070['plugins']['get'](_0x48df18)['createUploadAdapter']=_0x318e14=>new k(_0x318e14,_0x3b2070),_0x3b2070['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1be1ee,{imageElement:_0x39de69,data:_0x1ed256})=>{_0x3b2070['model']['change'](_0x5365b6=>{_0x5365b6['setAttribute']('uploadcareImageId',_0x1ed256['uploadcareImageId'],_0x39de69);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xe0a16f,_0x14007c){this['loader']=_0xe0a16f,this['editor']=_0x14007c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4ff394=await this['loader']['file'];return _0x311976['upload']({'file':_0x4ff394,'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':_0x1d70ff=>{_0x1d70ff&&_0x1d70ff['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d70ff['value']);}})['then'](async _0xc67cd6=>{const {imageFallbackUrl:_0x23a68f,imageSources:_0x3acc9b}=_0x2b7c2e(_0xc67cd6['cdnUrl'],_0xc67cd6['imageInfo']['width']);return{'uploadcareImageId':_0xc67cd6['uuid'],'default':_0x23a68f,'sources':_0x3acc9b};})['catch'](()=>{const _0x570d37=t('Cannot\x20upload\x20file:')+('\x20'+_0x4ff394['name']+'.');return Promise['reject'](_0x570d37);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x106708}from'../uploadcareconfig.js';export function getTranslation(_0x107743,_0x554b24,_0x25837f){const t=_0x107743['t'],_0x4a6d57=_0x107743['t'];switch(_0x554b24){case _0x106708['Local']:return{'text':_0x4a6d57('Insert'===_0x25837f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4a6d57('From\x20computer')};case _0x106708['URL']:return{'text':'Insert'===_0x25837f?_0x4a6d57('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4a6d57('Via\x20URL')};case _0x106708['Dropbox']:return{'text':t('Insert'===_0x25837f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x106708['Facebook']:return{'text':t('Insert'===_0x25837f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x106708['GDrive']:return{'text':t('Insert'===_0x25837f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x106708['GPhotos']:return{'text':t('Insert'===_0x25837f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x106708['OneDrive']:return{'text':t('Insert'===_0x25837f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x554b24;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ca781=_0x38cf;(function(_0x92297b,_0x4936c8){var _0x41a2be=_0x38cf,_0x2431ba=_0x92297b();while(!![]){try{var _0x25d462=parseInt(_0x41a2be(0x123))/0x1*(-parseInt(_0x41a2be(0x11c))/0x2)+parseInt(_0x41a2be(0x11f))/0x3+parseInt(_0x41a2be(0x115))/0x4*(parseInt(_0x41a2be(0x116))/0x5)+-parseInt(_0x41a2be(0x114))/0x6+parseInt(_0x41a2be(0x124))/0x7+-parseInt(_0x41a2be(0x119))/0x8+parseInt(_0x41a2be(0x121))/0x9;if(_0x25d462===_0x4936c8)break;else _0x2431ba['push'](_0x2431ba['shift']());}catch(_0x1c85ff){_0x2431ba['push'](_0x2431ba['shift']());}}}(_0xe666,0xdafd0));import{FocusTracker as _0x1d0d11}from'ckeditor5/src/utils.js';import{View as _0x32199c,FocusCycler as _0x4f181c}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x32199c{[_0x5ca781(0x11b)];[_0x5ca781(0x11e)];constructor(_0x11d7fd){var _0x2b0484=_0x5ca781;super(_0x11d7fd),this[_0x2b0484(0x11b)]=new _0x1d0d11(),this[_0x2b0484(0x11e)]=new _0x4f181c({'focusables':this[_0x2b0484(0x11a)](),'focusTracker':this[_0x2b0484(0x11b)]});}[_0x5ca781(0x11d)](){var _0x1dad65=_0x5ca781;return{'tag':_0x1dad65(0x118),'attributes':{'aria-hidden':_0x1dad65(0x122),'tabindex':'0'},'on':{'focus':this[_0x1dad65(0x117)]['to'](()=>{var _0x43fc8c=_0x1dad65;this[_0x43fc8c(0x11e)][_0x43fc8c(0x113)](_0x43fc8c(0x120));})}};}}function _0x38cf(_0x4031e8,_0x5e0db5){var _0xe66661=_0xe666();return _0x38cf=function(_0x38cfc0,_0x21a5c9){_0x38cfc0=_0x38cfc0-0x113;var _0xb52ecd=_0xe66661[_0x38cfc0];return _0xb52ecd;},_0x38cf(_0x4031e8,_0x5e0db5);}function _0xe666(){var _0x33f090=['36454pxNxmr','getFocusableElement','focusCycler','2193270woChBf','forwardCycle','7827291NZsUIj','true','6BoChla','916734MobAub','fire','3099222wwLtPn','61604VPHxEd','305ibUDGd','bindTemplate','div','9186696IpbAxd','createCollection','focusTracker'];_0xe666=function(){return _0x33f090;};return _0xe666();}
|