@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250824.0 → 0.0.0-nightly-20250826.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x515179=_0x1670;(function(_0x36d016,_0x2eba78){const _0x3a856e=_0x1670,_0x1b3575=_0x36d016();while(!![]){try{const _0x1678b4=-parseInt(_0x3a856e(0x1df))/0x1*(parseInt(_0x3a856e(0x1bf))/0x2)+parseInt(_0x3a856e(0x1f6))/0x3*(parseInt(_0x3a856e(0x1cb))/0x4)+parseInt(_0x3a856e(0x1e2))/0x5+parseInt(_0x3a856e(0x200))/0x6+parseInt(_0x3a856e(0x1c2))/0x7*(-parseInt(_0x3a856e(0x1ed))/0x8)+parseInt(_0x3a856e(0x1d4))/0x9*(-parseInt(_0x3a856e(0x1fd))/0xa)+-parseInt(_0x3a856e(0x1e3))/0xb;if(_0x1678b4===_0x2eba78)break;else _0x1b3575['push'](_0x1b3575['shift']());}catch(_0x459001){_0x1b3575['push'](_0x1b3575['shift']());}}}(_0x3ae0,0x592e6));function _0x1670(_0x53ff42,_0xfc36bf){const _0x3ae0ab=_0x3ae0();return _0x1670=function(_0x167014,_0x238b32){_0x167014=_0x167014-0x1b3;let _0x1b9eeb=_0x3ae0ab[_0x167014];return _0x1b9eeb;},_0x1670(_0x53ff42,_0xfc36bf);}import{Plugin as _0x1d26e2}from'ckeditor5/src/core.js';import{Dialog as _0x454e09}from'ckeditor5/src/ui.js';import{createElement as _0x91ffd8,global as _0x566566,uid as _0x1f8674}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3faf13}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5377f1}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xc436b0}from'./utils/editingutils.js';function _0x3ae0(){const _0x3dac45=['execute','fromCharCode','render','iconHrefResolver','destroy','imageInline','requires','2165224KNnWSm','attributeToAttribute','conversion','uploadcareImageReplace','listenTo','editing','model','uploadcareImageId','appendChild','20745pQGuby','_initImageProcessingIndicator','isOfficialPlugin','selection','getSelectedElement','true','uploadcare.uploader','editor','config','upcast','UploadcareEditing','1YKAajn','insertImage','ctxElement','2371520qJETNZ','4590410tweDGd','\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','for','_configElement','removeAttribute','_initConversion','remove','map','href','document','784zgrUWi','cleanupImage','once','body','configElement','data-uc-image-id','ucContextId','afterInit','downcast','3pQAhYS','PictureEditing','closeMax','input[uploadcare-file-input]','isRegistered','imageBlock','pluginName','510vWBkBK','uploadcare.pubkey','querySelector','1211886RoFFbK','replaceImageSource','getAttribute','add','init','_initConfig','uploadcare','uc-upload-ctx-provider','extend','commands','_ctxElement','isPremiumPlugin','uploader-','#uc-icon-arrow-down','_initCtx','view','contentLanguage','locale','elementToAttribute','get','join','227396krtAWU','uc-config','schema','14553EjtwOe','_initSchema'];_0x3ae0=function(){return _0x3dac45;};return _0x3ae0();}export class UploadcareEditing extends _0x1d26e2{[_0x515179(0x1e6)]=null;[_0x515179(0x1b4)]=null;static get[_0x515179(0x1fc)](){const _0x510790=_0x515179;return _0x510790(0x1de);}static get[_0x515179(0x1ca)](){const _0x1e9ba7=_0x515179;return[_0x1e9ba7(0x1f7),_0x5377f1,_0x454e09];}static get[_0x515179(0x1d6)](){return!0x0;}static get[_0x515179(0x1b5)](){return!0x0;}[_0x515179(0x1f3)];get[_0x515179(0x1f1)](){const _0x1f7e0e=_0x515179;return this[_0x1f7e0e(0x1e6)];}get[_0x515179(0x1e1)](){const _0x10d44a=_0x515179;return this[_0x10d44a(0x1b4)];}constructor(_0x59980e){const _0x3e5202=_0x515179;super(_0x59980e),this[_0x3e5202(0x1f3)]=_0x1f8674();}[_0x515179(0x204)](){const _0x55ff8e=_0x515179,_0x10f2a7=this[_0x55ff8e(0x1db)];_0x10f2a7[_0x55ff8e(0x1b3)][_0x55ff8e(0x203)](_0x55ff8e(0x206),new _0x3faf13(_0x10f2a7));}[_0x515179(0x1f4)](){const _0x2d1dc8=_0x515179;this[_0x2d1dc8(0x1c3)](),this[_0x2d1dc8(0x1e8)](),this[_0x2d1dc8(0x205)](),this[_0x2d1dc8(0x1b8)](),this[_0x2d1dc8(0x1d5)](),this[_0x2d1dc8(0x1cf)](this[_0x2d1dc8(0x1db)],_0x2d1dc8(0x1c8),()=>{const _0x6dbe7b=_0x2d1dc8;this[_0x6dbe7b(0x1e6)]&&(this[_0x6dbe7b(0x1e6)][_0x6dbe7b(0x1e9)](),this[_0x6dbe7b(0x1e6)]=null),this[_0x6dbe7b(0x1b4)]&&(this[_0x6dbe7b(0x1b4)][_0x6dbe7b(0x1e9)](),this[_0x6dbe7b(0x1b4)]=null);const _0x15dd06=_0x566566[_0x6dbe7b(0x1ec)][_0x6dbe7b(0x1ff)](_0x6dbe7b(0x1f9));_0x15dd06&&_0x15dd06[_0x6dbe7b(0x1e9)]();}),async function(_0x1a64a3){const _0x592258=_0x4ba973([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x332de8=0x3d8d0df,_0x454abf=0x3dfa1bf^_0x332de8,_0x455390=window[_0x4ba973([0x44,0x61,0x74,0x65])][_0x4ba973([0x6e,0x6f,0x77])](),_0x5efcee=_0x1a64a3[_0x4ba973([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fbd28=new window[(_0x4ba973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290fbb=>{_0x5efcee[_0x4ba973([0x6f,0x6e,0x63,0x65])](_0x4ba973([0x72,0x65,0x61,0x64,0x79]),_0x290fbb);}),_0x296b91={[_0x4ba973([0x6b,0x74,0x79])]:_0x4ba973([0x45,0x43]),[_0x4ba973([0x75,0x73,0x65])]:_0x4ba973([0x73,0x69,0x67]),[_0x4ba973([0x63,0x72,0x76])]:_0x4ba973([0x50,0x2d,0x32,0x35,0x36]),[_0x4ba973([0x78])]:_0x4ba973([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]),[_0x4ba973([0x79])]:_0x4ba973([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]),[_0x4ba973([0x61,0x6c,0x67])]:_0x4ba973([0x45,0x53,0x32,0x35,0x36])},_0x3c9df4=_0x5efcee[_0x4ba973([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ba973([0x67,0x65,0x74])](_0x4ba973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x90bdc4(){let _0x5bd36,_0x258007=null,_0x269b0c=null;try{if(_0x3c9df4==_0x4ba973([0x47,0x50,0x4c]))return _0x4ba973([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bd36=_0x240309(),!_0x5bd36)return _0x4ba973([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bd36[_0x4ba973([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x269b0c=_0x27592c(_0x5bd36[_0x4ba973([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bd36[_0x4ba973([0x6a,0x74,0x69])])),await _0x45a5c8()?_0x34a56d()?_0x5939af()?_0x4ba973([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c71b7()?(_0x5bd36[_0x4ba973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ba973([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x258007=_0x5b6a7d(_0x4ba973([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bd36[_0x4ba973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ba973([0x74,0x72,0x69,0x61,0x6c])&&(_0x258007=_0x5b6a7d(_0x4ba973([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e2baf()):_0x4ba973([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ba973([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ba973([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ba973([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5939af(){const _0xdd90fe=[_0x4ba973([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ba973([0x74,0x72,0x69,0x61,0x6c])][_0x4ba973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bd36[_0x4ba973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x455390/0x3e8:0xe10*_0x454abf;return _0x5bd36[_0x4ba973([0x65,0x78,0x70])]<_0xdd90fe;}function _0x34a56d(){const _0x1ffb6b=_0x5bd36[_0x4ba973([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ffb6b&&(!!_0x1ffb6b[_0x4ba973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba973([0x2a]))||!!_0x1ffb6b[_0x4ba973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba973([0x55,0x50,0x4c,0x43])));}function _0x5c71b7(){const _0x42d120=_0x1670,_0x2c948e=_0x5bd36[_0x4ba973([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c948e||0x0==_0x2c948e[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x249caf}=new URL(window[_0x4ba973([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x42d120(0x1eb)]);if(_0x2c948e[_0x4ba973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249caf))return!0x0;const _0x46b09c=_0x249caf[_0x4ba973([0x73,0x70,0x6c,0x69,0x74])](_0x4ba973([0x2e]));return _0x2c948e[_0x4ba973([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57464d=>_0x57464d[_0x4ba973([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba973([0x2a])))[_0x4ba973([0x6d,0x61,0x70])](_0x7269cf=>_0x7269cf[_0x4ba973([0x73,0x70,0x6c,0x69,0x74])](_0x4ba973([0x2e])))[_0x4ba973([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2aef1b=>_0x2aef1b[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46b09c[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ba973([0x6d,0x61,0x70])](_0x3c78c5=>Array(_0x46b09c[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c78c5[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ba973([0x66,0x69,0x6c,0x6c])](_0x3c78c5[0x0]===_0x4ba973([0x2a])?_0x4ba973([0x2a]):'')[_0x4ba973([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c78c5))[_0x4ba973([0x73,0x6f,0x6d,0x65])](_0x1bb0e7=>_0x46b09c[_0x4ba973([0x65,0x76,0x65,0x72,0x79])]((_0x1cacf8,_0x252df5)=>_0x1bb0e7[_0x252df5]===_0x1cacf8||_0x1bb0e7[_0x252df5]===_0x4ba973([0x2a])));}function _0x5e2baf(){return _0x258007&&_0x269b0c?new window[(_0x4ba973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50aa7c,_0x2a4c0a)=>{_0x258007[_0x4ba973([0x74,0x68,0x65,0x6e])](_0x50aa7c,_0x2a4c0a),_0x269b0c[_0x4ba973([0x74,0x68,0x65,0x6e])](_0x311e3b=>{_0x311e3b!=_0x4ba973([0x56,0x61,0x6c,0x69,0x64])&&_0x50aa7c(_0x311e3b);},_0x2a4c0a);}):_0x258007||_0x269b0c||_0x4ba973([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27592c(_0x517b05,_0x264bd6){return new window[(_0x4ba973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d38e=>{if(_0x504481())return _0x46d38e(_0x4ba973([0x56,0x61,0x6c,0x69,0x64]));_0x1bf07d(),_0x5efcee[_0x4ba973([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ba973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x374c9a=!0x1;const _0x58e376=_0x1f8674();function _0x3178a9(_0x3bbfb2){return!!_0x3bbfb2&&(typeof _0x3bbfb2===_0x4ba973([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3bbfb2===_0x4ba973([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3bbfb2[_0x4ba973([0x74,0x68,0x65,0x6e])]===_0x4ba973([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3bbfb2[_0x4ba973([0x63,0x61,0x74,0x63,0x68])]===_0x4ba973([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x160843(_0x5cc0ee){_0x500209(_0x5cc0ee)[_0x4ba973([0x74,0x68,0x65,0x6e])](_0x29a76a=>{if(!_0x29a76a||_0x29a76a[_0x4ba973([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ba973([0x6f,0x6b]))return _0x4ba973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2439f8(_0x429a62(_0x58e376+_0x264bd6))!=_0x29a76a[_0x4ba973([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ba973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ba973([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ba973([0x74,0x68,0x65,0x6e])](_0x4f9311=>(_0x381a7e(),_0x4f9311),()=>{const _0x9de9e=_0x17ece1();return null==_0x9de9e?(_0x381a7e(),_0x4ba973([0x56,0x61,0x6c,0x69,0x64])):_0x4ba973(_0x455390-_0x9de9e>(0x27d454df^_0x332de8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ba973([0x74,0x68,0x65,0x6e])](_0x46d38e)[_0x4ba973([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46d38e(_0x4ba973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6de048=0x3ee3e5f^_0x332de8;function _0x381a7e(){const _0x2aaa97=_0x4ba973([0x6c,0x6c,0x63,0x74,0x2d])+_0x2439f8(_0x429a62(_0x517b05)),_0x369d3f=_0x280870(_0x2439f8(window[_0x4ba973([0x4d,0x61,0x74,0x68])][_0x4ba973([0x63,0x65,0x69,0x6c])](_0x455390/_0x6de048)));window[_0x4ba973([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ba973([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2aaa97,_0x369d3f);}function _0x17ece1(){const _0x12577d=_0x4ba973([0x6c,0x6c,0x63,0x74,0x2d])+_0x2439f8(_0x429a62(_0x517b05)),_0x4c7cb2=window[_0x4ba973([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ba973([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12577d);return _0x4c7cb2?window[_0x4ba973([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280870(_0x4c7cb2),0x10)*_0x6de048:null;}function _0x500209(_0xbae7e0){return new window[(_0x4ba973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bfb94,_0x57c265)=>{_0xbae7e0[_0x4ba973([0x74,0x68,0x65,0x6e])](_0x1bfb94,_0x57c265),window[_0x4ba973([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57c265,0x3d9041f^_0x332de8);});}}_0x5efcee[_0x4ba973([0x6f,0x6e])](_0x4ba973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6f2808,_0x17305a)=>{if(_0x17305a[0x0]!=_0x517b05)return _0x46d38e(_0x4ba973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17305a[0x1]={..._0x17305a[0x1],[_0x4ba973([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58e376};},{[_0x4ba973([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ba973([0x68,0x69,0x67,0x68])}),_0x5efcee[_0x4ba973([0x6f,0x6e])](_0x4ba973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ae7f9=>{_0x3178a9(_0x1ae7f9[_0x4ba973([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x374c9a=!0x0,_0x160843(_0x1ae7f9[_0x4ba973([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ba973([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ba973([0x6c,0x6f,0x77])}),_0x1fbd28[_0x4ba973([0x74,0x68,0x65,0x6e])](()=>{_0x374c9a||_0x46d38e(_0x4ba973([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x504481(){return _0x5efcee[_0x4ba973([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ba973([0x76,0x69,0x65,0x77])][_0x4ba973([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ba973([0x61,0x75,0x74,0x6f]);}function _0x1bf07d(){_0x5efcee[_0x4ba973([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ba973([0x76,0x69,0x65,0x77])][_0x4ba973([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ba973([0x61,0x75,0x74,0x6f]);}}function _0x5b6a7d(_0x1a0718){const _0xa86f8b=[new window[(_0x4ba973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cfcc2=>setTimeout(_0x5cfcc2,0x3d1ee13^_0x332de8)),_0x1fbd28[_0x4ba973([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ba973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaaeaa7=>{let _0x579c31=0x0;_0x5efcee[_0x4ba973([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ba973([0x6f,0x6e])](_0x4ba973([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x460b06,_0x56bc88)=>{_0x56bc88[0x0][_0x4ba973([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x579c31++,_0x579c31==(0x3d8d127^_0x332de8)&&(_0xaaeaa7(),_0x460b06[_0x4ba973([0x6f,0x66,0x66])]());});}))];return window[_0x4ba973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ba973([0x72,0x61,0x63,0x65])](_0xa86f8b)[_0x4ba973([0x74,0x68,0x65,0x6e])](()=>_0x1a0718);}async function _0x3c1eeb(){await _0x1fbd28,_0x5efcee[_0x4ba973([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ba973([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54dd97,_0x5efcee[_0x4ba973([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ba973([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54dd97,_0x5efcee[_0x4ba973([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ba973([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x392ec0(_0x251907){const _0x9dd6aa=_0x381ea9();_0x5efcee[_0x9dd6aa]=_0x4ba973([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x251907,_0x251907!=_0x4ba973([0x56,0x61,0x6c,0x69,0x64])&&_0x3c1eeb();}function _0x381ea9(){const _0x5a00ff=window[_0x4ba973([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ba973([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ba973([0x6e,0x6f,0x77])]())[_0x4ba973([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ba973([0x2e]),'');let _0x57a680=_0x4ba973([0x52]);for(let _0x12708e=0x0;_0x12708e<_0x5a00ff[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12708e+=0x2){let _0x5809b7=window[_0x4ba973([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a00ff[_0x4ba973([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12708e,_0x12708e+0x2));_0x5809b7>=_0x592258[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5809b7-=_0x592258[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57a680+=_0x592258[_0x5809b7];}return _0x57a680;}function _0x240309(){const _0x3b08cb=_0x3c9df4[_0x4ba973([0x73,0x70,0x6c,0x69,0x74])](_0x4ba973([0x2e]));if(0x3!=_0x3b08cb[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a85a6(_0x3b08cb[0x1]);function _0x2a85a6(_0x37ebc4){const _0x45c83b=_0x202e68(_0x37ebc4);return _0x45c83b&&_0x4eff9a()?_0x45c83b:null;function _0x4eff9a(){const _0x56f81f=_0x45c83b[_0x4ba973([0x6a,0x74,0x69])],_0x2192c6=window[_0x4ba973([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56f81f[_0x4ba973([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56f81f[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28d6c2={..._0x45c83b,[_0x4ba973([0x6a,0x74,0x69])]:_0x56f81f[_0x4ba973([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56f81f[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28d6c2[_0x4ba973([0x76,0x63])],_0x429a62(_0x28d6c2)==_0x2192c6;}}}async function _0x45a5c8(){let _0x3be084=!0x0;try{const _0x2eaee5=_0x3c9df4[_0x4ba973([0x73,0x70,0x6c,0x69,0x74])](_0x4ba973([0x2e])),[_0xe23905,_0xf45086,_0x26814d]=_0x2eaee5;return _0xe41794(_0xe23905),await _0xe3e5d2(_0xe23905,_0xf45086,_0x26814d),_0x3be084;}catch{return!0x1;}function _0xe41794(_0x8fb99){const _0x478c3d=_0x202e68(_0x8fb99);_0x478c3d&&_0x478c3d[_0x4ba973([0x61,0x6c,0x67])]==_0x4ba973([0x45,0x53,0x32,0x35,0x36])||(_0x3be084=!0x1);}async function _0xe3e5d2(_0x26d6da,_0x1ac0a9,_0x5d354c){const _0x3d1c04=window[_0x4ba973([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ba973([0x66,0x72,0x6f,0x6d])](_0x2a1a3a(_0x5d354c),_0x16f99a=>_0x16f99a[_0x4ba973([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5efb7d=new window[(_0x4ba973([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ba973([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26d6da+_0x4ba973([0x2e])+_0x1ac0a9),_0x3c979f=window[_0x4ba973([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ba973([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c979f)return;const _0x1166da=await _0x3c979f[_0x4ba973([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ba973([0x6a,0x77,0x6b]),_0x296b91,{[_0x4ba973([0x6e,0x61,0x6d,0x65])]:_0x4ba973([0x45,0x43,0x44,0x53,0x41]),[_0x4ba973([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ba973([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ba973([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c979f[_0x4ba973([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ba973([0x6e,0x61,0x6d,0x65])]:_0x4ba973([0x45,0x43,0x44,0x53,0x41]),[_0x4ba973([0x68,0x61,0x73,0x68])]:{[_0x4ba973([0x6e,0x61,0x6d,0x65])]:_0x4ba973([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1166da,_0x3d1c04,_0x5efb7d)||(_0x3be084=!0x1);}}function _0x202e68(_0x371723){return _0x371723[_0x4ba973([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ba973([0x65,0x79]))?JSON[_0x4ba973([0x70,0x61,0x72,0x73,0x65])](_0x2a1a3a(_0x371723)):null;}function _0x2a1a3a(_0x4d0315){return window[_0x4ba973([0x61,0x74,0x6f,0x62])](_0x4d0315[_0x4ba973([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ba973([0x2b]))[_0x4ba973([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ba973([0x2f])));}function _0x429a62(_0x53c7ee){let _0x2d6cfc=0x1505;function _0x245ae0(_0x23d0b1){for(let _0x3798eb=0x0;_0x3798eb<_0x23d0b1[_0x4ba973([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3798eb++){const _0x4c6fc7=_0x23d0b1[_0x4ba973([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3798eb);_0x2d6cfc=(_0x2d6cfc<<0x5)+_0x2d6cfc+_0x4c6fc7,_0x2d6cfc&=_0x2d6cfc;}}function _0x2e8c97(_0x3832cc){Array[_0x4ba973([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3832cc)?_0x3832cc[_0x4ba973([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e8c97):_0x3832cc&&typeof _0x3832cc==_0x4ba973([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ba973([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3832cc)[_0x4ba973([0x73,0x6f,0x72,0x74])]()[_0x4ba973([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43b40e,_0xbaf75f])=>{_0x245ae0(_0x43b40e),_0x2e8c97(_0xbaf75f);}):_0x245ae0(window[_0x4ba973([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3832cc));}return _0x2e8c97(_0x53c7ee),_0x2d6cfc>>>0x0;}function _0x2439f8(_0x1e17d5){return _0x1e17d5[_0x4ba973([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ba973([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ba973([0x30]));}function _0x280870(_0x2da17c){return _0x2da17c[_0x4ba973([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ba973([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ba973([0x6a,0x6f,0x69,0x6e])]('');}function _0x54dd97(){}function _0x4ba973(_0x5d4d57){const _0x4ea150=_0x1670;return _0x5d4d57[_0x4ea150(0x1ea)](_0x250680=>String[_0x4ea150(0x1c5)](_0x250680))[_0x4ea150(0x1be)]('');}_0x392ec0(await _0x90bdc4());}(this);}[_0x515179(0x1c3)](){const _0x2d37b1=_0x515179,_0x1a929b=this[_0x2d37b1(0x1db)][_0x2d37b1(0x1d1)][_0x2d37b1(0x1c1)];_0x1a929b[_0x2d37b1(0x1fa)](_0x2d37b1(0x1fb))&&_0x1a929b[_0x2d37b1(0x208)](_0x2d37b1(0x1fb),{'allowAttributes':[_0x2d37b1(0x1d2)]}),_0x1a929b[_0x2d37b1(0x1fa)](_0x2d37b1(0x1c9))&&_0x1a929b[_0x2d37b1(0x208)](_0x2d37b1(0x1c9),{'allowAttributes':[_0x2d37b1(0x1d2)]});}[_0x515179(0x1e8)](){const _0x33bc19=_0x515179,_0x2e2f1d=this[_0x33bc19(0x1db)];_0x2e2f1d[_0x33bc19(0x1cd)][_0x33bc19(0x1e5)](_0x33bc19(0x1f5))[_0x33bc19(0x1cc)]({'model':_0x33bc19(0x1d2),'view':_0x33bc19(0x1f2)}),_0x2e2f1d[_0x33bc19(0x1cd)][_0x33bc19(0x1e5)](_0x33bc19(0x1dd))[_0x33bc19(0x1bc)]({'model':{'key':_0x33bc19(0x1d2),'value':_0x24e037=>_0x24e037[_0x33bc19(0x202)](_0x33bc19(0x1f2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x360eb9=_0x2e2f1d[_0x33bc19(0x1b3)][_0x33bc19(0x1bd)](_0x33bc19(0x201));_0x360eb9&&this[_0x33bc19(0x1cf)](_0x360eb9,_0x33bc19(0x1ee),(_0x4efa09,[_0x5b753e,_0x5322cd])=>{const _0x4dcf77=_0x33bc19;_0x5b753e[_0x4dcf77(0x1e7)](_0x4dcf77(0x1d2),_0x5322cd);});}[_0x515179(0x205)](){const _0x4f3972=_0x515179,_0x2a6f63=this[_0x4f3972(0x1db)][_0x4f3972(0x1dc)][_0x4f3972(0x1bd)](_0x4f3972(0x1da))||{},_0x14811d=this[_0x4f3972(0x1db)][_0x4f3972(0x1dc)][_0x4f3972(0x1bd)](_0x4f3972(0x1fe))||'';this[_0x4f3972(0x1e6)]=_0x91ffd8(_0x566566[_0x4f3972(0x1ec)],_0x4f3972(0x1c0),{..._0x2a6f63,'pubkey':_0x14811d,'ctx-name':_0x4f3972(0x1b6)+this[_0x4f3972(0x1f3)],'sourceList':'','imgOnly':_0x4f3972(0x1d9),'removeCopyright':_0x4f3972(0x1d9),'localeName':this[_0x4f3972(0x1db)][_0x4f3972(0x1bb)][_0x4f3972(0x1ba)],'externalSourcesEmbedCss':_0x4f3972(0x1e4)}),this[_0x4f3972(0x1e6)][_0x4f3972(0x1c7)]=_0x7840d7=>{const _0x7d3ff0=_0x4f3972;if(_0x7d3ff0(0x1f8)==_0x7840d7)return _0x7d3ff0(0x1b7);},_0x566566[_0x4f3972(0x1ec)][_0x4f3972(0x1f0)][_0x4f3972(0x1d3)](this[_0x4f3972(0x1e6)]);}[_0x515179(0x1b8)](){const _0x3e912c=_0x515179;this[_0x3e912c(0x1b4)]=_0x91ffd8(_0x566566[_0x3e912c(0x1ec)],_0x3e912c(0x207),{'ctx-name':_0x3e912c(0x1b6)+this[_0x3e912c(0x1f3)]}),_0x566566[_0x3e912c(0x1ec)][_0x3e912c(0x1f0)][_0x3e912c(0x1d3)](this[_0x3e912c(0x1b4)]);}[_0x515179(0x1d5)](){const _0x4d230f=_0x515179,_0x139a06=this[_0x4d230f(0x1db)][_0x4d230f(0x1b3)][_0x4d230f(0x1bd)](_0x4d230f(0x1e0));_0x139a06&&this[_0x4d230f(0x1cf)](_0x139a06,_0x4d230f(0x1c4),()=>{const _0xb3e925=_0x4d230f,_0x1e7f49=this[_0xb3e925(0x1db)][_0xb3e925(0x1d1)][_0xb3e925(0x1ec)][_0xb3e925(0x1d7)][_0xb3e925(0x1d8)]();_0x1e7f49&&_0x1e7f49[_0xb3e925(0x202)](_0xb3e925(0x1d2))&&this[_0xb3e925(0x1db)][_0xb3e925(0x1d0)][_0xb3e925(0x1b9)][_0xb3e925(0x1ef)](_0xb3e925(0x1c6),()=>{const _0xb5db35=_0xb3e925;_0xc436b0(this[_0xb5db35(0x1db)],_0x1e7f49);});});const _0x5e012a=this[_0x4d230f(0x1db)][_0x4d230f(0x1b3)][_0x4d230f(0x1bd)](_0x4d230f(0x1ce));_0x5e012a&&this[_0x4d230f(0x1cf)](_0x5e012a,_0x4d230f(0x1c4),()=>{const _0x7f6987=_0x4d230f,_0x19931c=this[_0x7f6987(0x1db)][_0x7f6987(0x1d1)][_0x7f6987(0x1ec)][_0x7f6987(0x1d7)][_0x7f6987(0x1d8)]();_0x19931c&&_0x19931c[_0x7f6987(0x202)](_0x7f6987(0x1d2))&&this[_0x7f6987(0x1db)][_0x7f6987(0x1d0)][_0x7f6987(0x1b9)][_0x7f6987(0x1ef)](_0x7f6987(0x1c6),()=>{const _0x26874b=_0x7f6987;_0xc436b0(this[_0x26874b(0x1db)],_0x19931c);});});}}
|
|
23
|
+
const _0x352743=_0x2823;(function(_0x33b8f3,_0xa61102){const _0x2cb74f=_0x2823,_0x2377ac=_0x33b8f3();while(!![]){try{const _0x184899=parseInt(_0x2cb74f(0x191))/0x1*(parseInt(_0x2cb74f(0x198))/0x2)+-parseInt(_0x2cb74f(0x18f))/0x3+-parseInt(_0x2cb74f(0x1c1))/0x4+-parseInt(_0x2cb74f(0x1d7))/0x5+parseInt(_0x2cb74f(0x190))/0x6+parseInt(_0x2cb74f(0x197))/0x7+parseInt(_0x2cb74f(0x192))/0x8;if(_0x184899===_0xa61102)break;else _0x2377ac['push'](_0x2377ac['shift']());}catch(_0x8da0a8){_0x2377ac['push'](_0x2377ac['shift']());}}}(_0x4e39,0x637c9));import{Plugin as _0x2077e6}from'ckeditor5/src/core.js';import{Dialog as _0x130ade}from'ckeditor5/src/ui.js';import{createElement as _0x4f0d49,global as _0x1d6f82,uid as _0x24d462}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2399d6}from'./uploadcarecommand.js';function _0x4e39(){const _0x24d5b3=['href','imageInline','PictureEditing','input[uploadcare-file-input]','add','uploadcare.pubkey','getAttribute','removeAttribute','1188846zqyMxv','2597622VKWdYI','1CjhBKf','3706520YohbcO','pluginName','get','uploadcare','uploadcare.uploader','2854495IXSdSy','1364468PCacfG','requires','_initImageProcessingIndicator','_configElement','editing','iconHrefResolver','_initSchema','UploadcareEditing','for','contentLanguage','attributeToAttribute','uc-upload-ctx-provider','view','replaceImageSource','afterInit','isOfficialPlugin','#uc-icon-arrow-down','model','uploader-','remove','uc-config','_ctxElement','body','commands','map','ucContextId','destroy','isPremiumPlugin','cleanupImage','schema','getSelectedElement','document','isRegistered','downcast','_initConfig','insertImage','_initCtx','ctxElement','execute','fromCharCode','once','2818444NoTXMf','configElement','elementToAttribute','extend','uploadcareImageId','conversion','true','_initConversion','uploadcareImageReplace','selection','editor','locale','imageBlock','join','init','querySelector','\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','render','upcast','data-uc-image-id','config','appendChild','2389405UYRhEo','listenTo','closeMax'];_0x4e39=function(){return _0x24d5b3;};return _0x4e39();}function _0x2823(_0x55d745,_0x141ec2){const _0x4e3959=_0x4e39();return _0x2823=function(_0x2823fb,_0x102ea2){_0x2823fb=_0x2823fb-0x189;let _0x4f1e95=_0x4e3959[_0x2823fb];return _0x4f1e95;},_0x2823(_0x55d745,_0x141ec2);}import{UploadcareUploadAdapter as _0x55e88c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x403854}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2077e6{[_0x352743(0x19b)]=null;[_0x352743(0x1ad)]=null;static get[_0x352743(0x193)](){const _0x1b845a=_0x352743;return _0x1b845a(0x19f);}static get[_0x352743(0x199)](){const _0x82628e=_0x352743;return[_0x82628e(0x189),_0x55e88c,_0x130ade];}static get[_0x352743(0x1a7)](){return!0x0;}static get[_0x352743(0x1b3)](){return!0x0;}[_0x352743(0x1b1)];get[_0x352743(0x1c2)](){const _0x870fe8=_0x352743;return this[_0x870fe8(0x19b)];}get[_0x352743(0x1bd)](){const _0x2c5968=_0x352743;return this[_0x2c5968(0x1ad)];}constructor(_0x10e066){const _0x434b4f=_0x352743;super(_0x10e066),this[_0x434b4f(0x1b1)]=_0x24d462();}[_0x352743(0x1cf)](){const _0x2aa446=_0x352743,_0x4a7d5b=this[_0x2aa446(0x1cb)];_0x4a7d5b[_0x2aa446(0x1af)][_0x2aa446(0x18b)](_0x2aa446(0x195),new _0x2399d6(_0x4a7d5b));}[_0x352743(0x1a6)](){const _0x108a81=_0x352743;this[_0x108a81(0x19e)](),this[_0x108a81(0x1c8)](),this[_0x108a81(0x1ba)](),this[_0x108a81(0x1bc)](),this[_0x108a81(0x19a)](),this[_0x108a81(0x1d8)](this[_0x108a81(0x1cb)],_0x108a81(0x1b2),()=>{const _0x2d80e9=_0x108a81;this[_0x2d80e9(0x19b)]&&(this[_0x2d80e9(0x19b)][_0x2d80e9(0x1ab)](),this[_0x2d80e9(0x19b)]=null),this[_0x2d80e9(0x1ad)]&&(this[_0x2d80e9(0x1ad)][_0x2d80e9(0x1ab)](),this[_0x2d80e9(0x1ad)]=null);const _0x5aa450=_0x1d6f82[_0x2d80e9(0x1b7)][_0x2d80e9(0x1d0)](_0x2d80e9(0x18a));_0x5aa450&&_0x5aa450[_0x2d80e9(0x1ab)]();}),async function(_0x5bdd0d){const _0x5e6852=_0x8c6017([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2645c2=0x3d8d0df,_0x1821bc=0x3dfa14f^_0x2645c2,_0x4cf76c=window[_0x8c6017([0x44,0x61,0x74,0x65])][_0x8c6017([0x6e,0x6f,0x77])](),_0x14e27a=_0x5bdd0d[_0x8c6017([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44f2be=new window[(_0x8c6017([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2af401=>{_0x14e27a[_0x8c6017([0x6f,0x6e,0x63,0x65])](_0x8c6017([0x72,0x65,0x61,0x64,0x79]),_0x2af401);}),_0x314f46={[_0x8c6017([0x6b,0x74,0x79])]:_0x8c6017([0x45,0x43]),[_0x8c6017([0x75,0x73,0x65])]:_0x8c6017([0x73,0x69,0x67]),[_0x8c6017([0x63,0x72,0x76])]:_0x8c6017([0x50,0x2d,0x32,0x35,0x36]),[_0x8c6017([0x78])]:_0x8c6017([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]),[_0x8c6017([0x79])]:_0x8c6017([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]),[_0x8c6017([0x61,0x6c,0x67])]:_0x8c6017([0x45,0x53,0x32,0x35,0x36])},_0x4ee010=_0x14e27a[_0x8c6017([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8c6017([0x67,0x65,0x74])](_0x8c6017([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x125fde(){let _0x521aa0,_0x464a81=null,_0x57db1e=null;try{if(_0x4ee010==_0x8c6017([0x47,0x50,0x4c]))return _0x8c6017([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x521aa0=_0x18b378(),!_0x521aa0)return _0x8c6017([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x521aa0[_0x8c6017([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57db1e=_0x257053(_0x521aa0[_0x8c6017([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x521aa0[_0x8c6017([0x6a,0x74,0x69])])),await _0x45e828()?_0x146b09()?_0x2b9927()?_0x8c6017([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d2bc0()?(_0x521aa0[_0x8c6017([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8c6017([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x464a81=_0x3dabb1(_0x8c6017([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x521aa0[_0x8c6017([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8c6017([0x74,0x72,0x69,0x61,0x6c])&&(_0x464a81=_0x3dabb1(_0x8c6017([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b4364()):_0x8c6017([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8c6017([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8c6017([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8c6017([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b9927(){const _0x3ef5c5=[_0x8c6017([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8c6017([0x74,0x72,0x69,0x61,0x6c])][_0x8c6017([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521aa0[_0x8c6017([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cf76c/0x3e8:0xe10*_0x1821bc;return _0x521aa0[_0x8c6017([0x65,0x78,0x70])]<_0x3ef5c5;}function _0x146b09(){const _0x2267b3=_0x521aa0[_0x8c6017([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2267b3&&(!!_0x2267b3[_0x8c6017([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c6017([0x2a]))||!!_0x2267b3[_0x8c6017([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c6017([0x55,0x50,0x4c,0x43])));}function _0x2d2bc0(){const _0x2ff729=_0x2823,_0x5df096=_0x521aa0[_0x8c6017([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5df096||0x0==_0x5df096[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c8ce3}=new URL(window[_0x8c6017([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ff729(0x1da)]);if(_0x5df096[_0x8c6017([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c8ce3))return!0x0;const _0x150b07=_0x4c8ce3[_0x8c6017([0x73,0x70,0x6c,0x69,0x74])](_0x8c6017([0x2e]));return _0x5df096[_0x8c6017([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4becfd=>_0x4becfd[_0x8c6017([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c6017([0x2a])))[_0x8c6017([0x6d,0x61,0x70])](_0x103f78=>_0x103f78[_0x8c6017([0x73,0x70,0x6c,0x69,0x74])](_0x8c6017([0x2e])))[_0x8c6017([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51a50c=>_0x51a50c[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x150b07[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8c6017([0x6d,0x61,0x70])](_0x3a7f24=>Array(_0x150b07[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a7f24[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8c6017([0x66,0x69,0x6c,0x6c])](_0x3a7f24[0x0]===_0x8c6017([0x2a])?_0x8c6017([0x2a]):'')[_0x8c6017([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a7f24))[_0x8c6017([0x73,0x6f,0x6d,0x65])](_0x3d3473=>_0x150b07[_0x8c6017([0x65,0x76,0x65,0x72,0x79])]((_0x3e3898,_0x189cac)=>_0x3d3473[_0x189cac]===_0x3e3898||_0x3d3473[_0x189cac]===_0x8c6017([0x2a])));}function _0x2b4364(){return _0x464a81&&_0x57db1e?new window[(_0x8c6017([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cbb38,_0x39aa8b)=>{_0x464a81[_0x8c6017([0x74,0x68,0x65,0x6e])](_0x1cbb38,_0x39aa8b),_0x57db1e[_0x8c6017([0x74,0x68,0x65,0x6e])](_0x3e5607=>{_0x3e5607!=_0x8c6017([0x56,0x61,0x6c,0x69,0x64])&&_0x1cbb38(_0x3e5607);},_0x39aa8b);}):_0x464a81||_0x57db1e||_0x8c6017([0x56,0x61,0x6c,0x69,0x64]);}}function _0x257053(_0x444697,_0x52dafa){return new window[(_0x8c6017([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216e8d=>{if(_0xd8e7c5())return _0x216e8d(_0x8c6017([0x56,0x61,0x6c,0x69,0x64]));_0x58dbb3(),_0x14e27a[_0x8c6017([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8c6017([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x297818=!0x1;const _0x9ad758=_0x24d462();function _0x25300f(_0x51980c){return!!_0x51980c&&(typeof _0x51980c===_0x8c6017([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51980c===_0x8c6017([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51980c[_0x8c6017([0x74,0x68,0x65,0x6e])]===_0x8c6017([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51980c[_0x8c6017([0x63,0x61,0x74,0x63,0x68])]===_0x8c6017([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f5a1e(_0x2bdfd8){_0x4655e0(_0x2bdfd8)[_0x8c6017([0x74,0x68,0x65,0x6e])](_0x30295e=>{if(!_0x30295e||_0x30295e[_0x8c6017([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8c6017([0x6f,0x6b]))return _0x8c6017([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x381bf6(_0x462099(_0x9ad758+_0x52dafa))!=_0x30295e[_0x8c6017([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8c6017([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8c6017([0x56,0x61,0x6c,0x69,0x64]);})[_0x8c6017([0x74,0x68,0x65,0x6e])](_0x4d716f=>(_0x28e0da(),_0x4d716f),()=>{const _0x5cec16=_0x500396();return null==_0x5cec16?(_0x28e0da(),_0x8c6017([0x56,0x61,0x6c,0x69,0x64])):_0x8c6017(_0x4cf76c-_0x5cec16>(0x27d454df^_0x2645c2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8c6017([0x74,0x68,0x65,0x6e])](_0x216e8d)[_0x8c6017([0x63,0x61,0x74,0x63,0x68])](()=>{_0x216e8d(_0x8c6017([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x177431=0x3ee3e5f^_0x2645c2;function _0x28e0da(){const _0x3d4890=_0x8c6017([0x6c,0x6c,0x63,0x74,0x2d])+_0x381bf6(_0x462099(_0x444697)),_0x89b1e8=_0x255a83(_0x381bf6(window[_0x8c6017([0x4d,0x61,0x74,0x68])][_0x8c6017([0x63,0x65,0x69,0x6c])](_0x4cf76c/_0x177431)));window[_0x8c6017([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8c6017([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d4890,_0x89b1e8);}function _0x500396(){const _0x3d1a9b=_0x8c6017([0x6c,0x6c,0x63,0x74,0x2d])+_0x381bf6(_0x462099(_0x444697)),_0x57f2ba=window[_0x8c6017([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8c6017([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d1a9b);return _0x57f2ba?window[_0x8c6017([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255a83(_0x57f2ba),0x10)*_0x177431:null;}function _0x4655e0(_0xb5d07){return new window[(_0x8c6017([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x261fe6,_0x4728c6)=>{_0xb5d07[_0x8c6017([0x74,0x68,0x65,0x6e])](_0x261fe6,_0x4728c6),window[_0x8c6017([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4728c6,0x3d9041f^_0x2645c2);});}}_0x14e27a[_0x8c6017([0x6f,0x6e])](_0x8c6017([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1723c5,_0x4861a1)=>{if(_0x4861a1[0x0]!=_0x444697)return _0x216e8d(_0x8c6017([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4861a1[0x1]={..._0x4861a1[0x1],[_0x8c6017([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9ad758};},{[_0x8c6017([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8c6017([0x68,0x69,0x67,0x68])}),_0x14e27a[_0x8c6017([0x6f,0x6e])](_0x8c6017([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34bdcf=>{_0x25300f(_0x34bdcf[_0x8c6017([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x297818=!0x0,_0x2f5a1e(_0x34bdcf[_0x8c6017([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8c6017([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8c6017([0x6c,0x6f,0x77])}),_0x44f2be[_0x8c6017([0x74,0x68,0x65,0x6e])](()=>{_0x297818||_0x216e8d(_0x8c6017([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd8e7c5(){return _0x14e27a[_0x8c6017([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8c6017([0x76,0x69,0x65,0x77])][_0x8c6017([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8c6017([0x61,0x75,0x74,0x6f]);}function _0x58dbb3(){_0x14e27a[_0x8c6017([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8c6017([0x76,0x69,0x65,0x77])][_0x8c6017([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8c6017([0x61,0x75,0x74,0x6f]);}}function _0x3dabb1(_0x58b734){const _0x178989=[new window[(_0x8c6017([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbe5acf=>setTimeout(_0xbe5acf,0x3d1ee13^_0x2645c2)),_0x44f2be[_0x8c6017([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8c6017([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x487064=>{let _0x318a85=0x0;_0x14e27a[_0x8c6017([0x6d,0x6f,0x64,0x65,0x6c])][_0x8c6017([0x6f,0x6e])](_0x8c6017([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x251820,_0x23af51)=>{_0x23af51[0x0][_0x8c6017([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x318a85++,_0x318a85==(0x3d8d127^_0x2645c2)&&(_0x487064(),_0x251820[_0x8c6017([0x6f,0x66,0x66])]());});}))];return window[_0x8c6017([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8c6017([0x72,0x61,0x63,0x65])](_0x178989)[_0x8c6017([0x74,0x68,0x65,0x6e])](()=>_0x58b734);}async function _0x4fdeaf(){await _0x44f2be,_0x14e27a[_0x8c6017([0x6d,0x6f,0x64,0x65,0x6c])][_0x8c6017([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d5920,_0x14e27a[_0x8c6017([0x6d,0x6f,0x64,0x65,0x6c])][_0x8c6017([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d5920,_0x14e27a[_0x8c6017([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8c6017([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46c317(_0x33c7db){const _0x4a11fd=_0x55b48a();_0x14e27a[_0x4a11fd]=_0x8c6017([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33c7db,_0x33c7db!=_0x8c6017([0x56,0x61,0x6c,0x69,0x64])&&_0x4fdeaf();}function _0x55b48a(){const _0x295c33=window[_0x8c6017([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8c6017([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8c6017([0x6e,0x6f,0x77])]())[_0x8c6017([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8c6017([0x2e]),'');let _0xfb788a=_0x8c6017([0x52]);for(let _0x447fc6=0x0;_0x447fc6<_0x295c33[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x447fc6+=0x2){let _0x408208=window[_0x8c6017([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x295c33[_0x8c6017([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x447fc6,_0x447fc6+0x2));_0x408208>=_0x5e6852[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x408208-=_0x5e6852[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfb788a+=_0x5e6852[_0x408208];}return _0xfb788a;}function _0x18b378(){const _0x3d0e5f=_0x4ee010[_0x8c6017([0x73,0x70,0x6c,0x69,0x74])](_0x8c6017([0x2e]));if(0x3!=_0x3d0e5f[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5caaca(_0x3d0e5f[0x1]);function _0x5caaca(_0x282430){const _0x4c3d38=_0x2c3baa(_0x282430);return _0x4c3d38&&_0x4238df()?_0x4c3d38:null;function _0x4238df(){const _0x5dfb6f=_0x4c3d38[_0x8c6017([0x6a,0x74,0x69])],_0x1cbe45=window[_0x8c6017([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dfb6f[_0x8c6017([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dfb6f[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x318fd5={..._0x4c3d38,[_0x8c6017([0x6a,0x74,0x69])]:_0x5dfb6f[_0x8c6017([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dfb6f[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x318fd5[_0x8c6017([0x76,0x63])],_0x462099(_0x318fd5)==_0x1cbe45;}}}async function _0x45e828(){let _0x28553a=!0x0;try{const _0xd7b695=_0x4ee010[_0x8c6017([0x73,0x70,0x6c,0x69,0x74])](_0x8c6017([0x2e])),[_0x79b0a2,_0x4cb242,_0x2df9fa]=_0xd7b695;return _0x57cecd(_0x79b0a2),await _0xdc5d92(_0x79b0a2,_0x4cb242,_0x2df9fa),_0x28553a;}catch{return!0x1;}function _0x57cecd(_0x2304c0){const _0x373245=_0x2c3baa(_0x2304c0);_0x373245&&_0x373245[_0x8c6017([0x61,0x6c,0x67])]==_0x8c6017([0x45,0x53,0x32,0x35,0x36])||(_0x28553a=!0x1);}async function _0xdc5d92(_0x54878b,_0x45b7b7,_0x4c2d6c){const _0x81f0c8=window[_0x8c6017([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8c6017([0x66,0x72,0x6f,0x6d])](_0x2a9bd3(_0x4c2d6c),_0x47b861=>_0x47b861[_0x8c6017([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cbe1b=new window[(_0x8c6017([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8c6017([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54878b+_0x8c6017([0x2e])+_0x45b7b7),_0x126bc3=window[_0x8c6017([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8c6017([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x126bc3)return;const _0x3c99ab=await _0x126bc3[_0x8c6017([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8c6017([0x6a,0x77,0x6b]),_0x314f46,{[_0x8c6017([0x6e,0x61,0x6d,0x65])]:_0x8c6017([0x45,0x43,0x44,0x53,0x41]),[_0x8c6017([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8c6017([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8c6017([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x126bc3[_0x8c6017([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8c6017([0x6e,0x61,0x6d,0x65])]:_0x8c6017([0x45,0x43,0x44,0x53,0x41]),[_0x8c6017([0x68,0x61,0x73,0x68])]:{[_0x8c6017([0x6e,0x61,0x6d,0x65])]:_0x8c6017([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c99ab,_0x81f0c8,_0x3cbe1b)||(_0x28553a=!0x1);}}function _0x2c3baa(_0x4edfe4){return _0x4edfe4[_0x8c6017([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8c6017([0x65,0x79]))?JSON[_0x8c6017([0x70,0x61,0x72,0x73,0x65])](_0x2a9bd3(_0x4edfe4)):null;}function _0x2a9bd3(_0x32f5df){return window[_0x8c6017([0x61,0x74,0x6f,0x62])](_0x32f5df[_0x8c6017([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8c6017([0x2b]))[_0x8c6017([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8c6017([0x2f])));}function _0x462099(_0x38ec6a){let _0x111a1d=0x1505;function _0x332399(_0x2c064f){for(let _0x2b1500=0x0;_0x2b1500<_0x2c064f[_0x8c6017([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b1500++){const _0x258671=_0x2c064f[_0x8c6017([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b1500);_0x111a1d=(_0x111a1d<<0x5)+_0x111a1d+_0x258671,_0x111a1d&=_0x111a1d;}}function _0x4c5018(_0x3cdbb4){Array[_0x8c6017([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3cdbb4)?_0x3cdbb4[_0x8c6017([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c5018):_0x3cdbb4&&typeof _0x3cdbb4==_0x8c6017([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8c6017([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3cdbb4)[_0x8c6017([0x73,0x6f,0x72,0x74])]()[_0x8c6017([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x415922,_0x386f9b])=>{_0x332399(_0x415922),_0x4c5018(_0x386f9b);}):_0x332399(window[_0x8c6017([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3cdbb4));}return _0x4c5018(_0x38ec6a),_0x111a1d>>>0x0;}function _0x381bf6(_0x2c8b97){return _0x2c8b97[_0x8c6017([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8c6017([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8c6017([0x30]));}function _0x255a83(_0x3e49b5){return _0x3e49b5[_0x8c6017([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8c6017([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8c6017([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d5920(){}function _0x8c6017(_0x4f6984){const _0x599c4a=_0x2823;return _0x4f6984[_0x599c4a(0x1b0)](_0x24f122=>String[_0x599c4a(0x1bf)](_0x24f122))[_0x599c4a(0x1ce)]('');}_0x46c317(await _0x125fde());}(this);}[_0x352743(0x19e)](){const _0x1af1f7=_0x352743,_0x596e54=this[_0x1af1f7(0x1cb)][_0x1af1f7(0x1a9)][_0x1af1f7(0x1b5)];_0x596e54[_0x1af1f7(0x1b8)](_0x1af1f7(0x1cd))&&_0x596e54[_0x1af1f7(0x1c4)](_0x1af1f7(0x1cd),{'allowAttributes':[_0x1af1f7(0x1c5)]}),_0x596e54[_0x1af1f7(0x1b8)](_0x1af1f7(0x1db))&&_0x596e54[_0x1af1f7(0x1c4)](_0x1af1f7(0x1db),{'allowAttributes':[_0x1af1f7(0x1c5)]});}[_0x352743(0x1c8)](){const _0x187c38=_0x352743,_0x3cb02b=this[_0x187c38(0x1cb)];_0x3cb02b[_0x187c38(0x1c6)][_0x187c38(0x1a0)](_0x187c38(0x1b9))[_0x187c38(0x1a2)]({'model':_0x187c38(0x1c5),'view':_0x187c38(0x1d4)}),_0x3cb02b[_0x187c38(0x1c6)][_0x187c38(0x1a0)](_0x187c38(0x1d3))[_0x187c38(0x1c3)]({'model':{'key':_0x187c38(0x1c5),'value':_0x5619ca=>_0x5619ca[_0x187c38(0x18d)](_0x187c38(0x1d4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa6535c=_0x3cb02b[_0x187c38(0x1af)][_0x187c38(0x194)](_0x187c38(0x1a5));_0xa6535c&&this[_0x187c38(0x1d8)](_0xa6535c,_0x187c38(0x1b4),(_0x27ebf3,[_0x137bed,_0x4697f1])=>{const _0x5e2ece=_0x187c38;_0x137bed[_0x5e2ece(0x18e)](_0x5e2ece(0x1c5),_0x4697f1);});}[_0x352743(0x1ba)](){const _0x2dff63=_0x352743,_0x27f2e3=this[_0x2dff63(0x1cb)][_0x2dff63(0x1d5)][_0x2dff63(0x194)](_0x2dff63(0x196))||{},_0x5b20cb=this[_0x2dff63(0x1cb)][_0x2dff63(0x1d5)][_0x2dff63(0x194)](_0x2dff63(0x18c))||'';this[_0x2dff63(0x19b)]=_0x4f0d49(_0x1d6f82[_0x2dff63(0x1b7)],_0x2dff63(0x1ac),{..._0x27f2e3,'pubkey':_0x5b20cb,'ctx-name':_0x2dff63(0x1aa)+this[_0x2dff63(0x1b1)],'sourceList':'','imgOnly':_0x2dff63(0x1c7),'removeCopyright':_0x2dff63(0x1c7),'localeName':this[_0x2dff63(0x1cb)][_0x2dff63(0x1cc)][_0x2dff63(0x1a1)],'externalSourcesEmbedCss':_0x2dff63(0x1d1)}),this[_0x2dff63(0x19b)][_0x2dff63(0x19d)]=_0x453866=>{const _0x2b70ea=_0x2dff63;if(_0x2b70ea(0x1d9)==_0x453866)return _0x2b70ea(0x1a8);},_0x1d6f82[_0x2dff63(0x1b7)][_0x2dff63(0x1ae)][_0x2dff63(0x1d6)](this[_0x2dff63(0x19b)]);}[_0x352743(0x1bc)](){const _0x5d2c8d=_0x352743;this[_0x5d2c8d(0x1ad)]=_0x4f0d49(_0x1d6f82[_0x5d2c8d(0x1b7)],_0x5d2c8d(0x1a3),{'ctx-name':_0x5d2c8d(0x1aa)+this[_0x5d2c8d(0x1b1)]}),_0x1d6f82[_0x5d2c8d(0x1b7)][_0x5d2c8d(0x1ae)][_0x5d2c8d(0x1d6)](this[_0x5d2c8d(0x1ad)]);}[_0x352743(0x19a)](){const _0x3b2ce5=_0x352743,_0x4463e2=this[_0x3b2ce5(0x1cb)][_0x3b2ce5(0x1af)][_0x3b2ce5(0x194)](_0x3b2ce5(0x1bb));_0x4463e2&&this[_0x3b2ce5(0x1d8)](_0x4463e2,_0x3b2ce5(0x1be),()=>{const _0x1c1927=_0x3b2ce5,_0x418a38=this[_0x1c1927(0x1cb)][_0x1c1927(0x1a9)][_0x1c1927(0x1b7)][_0x1c1927(0x1ca)][_0x1c1927(0x1b6)]();_0x418a38&&_0x418a38[_0x1c1927(0x18d)](_0x1c1927(0x1c5))&&this[_0x1c1927(0x1cb)][_0x1c1927(0x19c)][_0x1c1927(0x1a4)][_0x1c1927(0x1c0)](_0x1c1927(0x1d2),()=>{const _0x267a85=_0x1c1927;_0x403854(this[_0x267a85(0x1cb)],_0x418a38);});});const _0xd496cf=this[_0x3b2ce5(0x1cb)][_0x3b2ce5(0x1af)][_0x3b2ce5(0x194)](_0x3b2ce5(0x1c9));_0xd496cf&&this[_0x3b2ce5(0x1d8)](_0xd496cf,_0x3b2ce5(0x1be),()=>{const _0x2720a8=_0x3b2ce5,_0x5c1ccc=this[_0x2720a8(0x1cb)][_0x2720a8(0x1a9)][_0x2720a8(0x1b7)][_0x2720a8(0x1ca)][_0x2720a8(0x1b6)]();_0x5c1ccc&&_0x5c1ccc[_0x2720a8(0x18d)](_0x2720a8(0x1c5))&&this[_0x2720a8(0x1cb)][_0x2720a8(0x19c)][_0x2720a8(0x1a4)][_0x2720a8(0x1c0)](_0x2720a8(0x1d2),()=>{const _0x2ee25d=_0x2720a8;_0x403854(this[_0x2ee25d(0x1cb)],_0x5c1ccc);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x18701b,ObservableMixin as _0x467187}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3501bb}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x40f347}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5e530b}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x27f304}from'../../utils/uploadutils.js';import{getImageUrls as _0x2ff105,getImageDimension as _0x407902}from'../../utils/editingutils.js';import{isAncestor as _0x1045f1}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x467187(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5a740f,_0x4d52b7,_0x148f47){super(),this['_editor']=_0x5a740f,this['_dialog']=_0x4d52b7,this['_imageElement']=_0x148f47,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 _0xea2b88=this['_imageElement'],_0x35bc74=_0xea2b88['getAttribute']('uploadcareImageId'),_0x34cfe9=_0xea2b88['getAttribute']('src');if(_0x35bc74)await this['_loadImageInfo'](_0x35bc74,_0x34cfe9);else{if(this['_imageCache']['has'](_0x34cfe9)){const _0x2509ad=this['_imageCache']['get'](_0x34cfe9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2509ad['url'],this['imageDimension']=_0x2509ad['dimension'],this['imageId']=_0x2509ad['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xd3fb2}=this['_editor'],t=_0xd3fb2['t'],_0x3959c3=new _0x5e530b(_0xd3fb2,this['imageStatus'],this['_attributes']);_0x3959c3['bind']('status')['to'](this,'imageStatus'),_0x3959c3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3959c3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3959c3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3959c3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x40f347,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3959c3,'position':_0x3501bb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3959c3['focus']();},'onHide':()=>{_0x3959c3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cc0c5=>!_0x1045f1(_0x4cc0c5,_0x3959c3['element'])}});}['_loadImageInfo'](_0x14b365,_0x2d2abb){return _0x27f304['getInfo'](_0x14b365,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x331649=>{const {width:_0x1bfa80,height:_0xd911f8}=_0x331649['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2abb,this['imageDimension']={'width':_0x1bfa80,'height':_0xd911f8},this['imageId']=_0x14b365;})['catch'](_0x56f67c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56f67c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2ab39d,_0x19387f){return this['_getImageAsFile'](_0x2ab39d)['then'](_0x1b0e50=>_0x27f304['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x19387f['signal'],'file':_0x1b0e50,'onProgress':_0x28b33b=>{_0x28b33b&&_0x28b33b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x28b33b['value']));}}))['then'](_0x2a384a=>{const {width:_0x1ceb4e,height:_0x206fe3}=_0x2a384a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a384a['cdnUrl'],this['imageDimension']={'width':_0x1ceb4e,'height':_0x206fe3},this['imageId']=_0x2a384a['uuid'],this['imageUploadProgress']=null;const _0x305104=_0x2ab39d['getAttribute']('src');this['_imageCache']['set'](_0x305104,{'id':_0x2a384a['uuid'],'url':_0x2a384a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5149de=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5149de['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3c4b37,_0x1d48f8){_0x3c4b37['on']('apply',(_0x55d2ae,_0x1c68a5)=>{this['_replaceImage'](_0x1d48f8,_0x1c68a5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3c4b37['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3c4b37['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x331708,_0x3b5727,_0x3b0ade){const _0x99770f=this['_editor'],{width:_0x481c6d,height:_0x21fda8}=_0x407902(_0x3b5727,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xb6b3b2,imageSources:_0x58d6a1}=_0x2ff105(_0x3b5727,_0x481c6d);_0x99770f['model']['change'](_0x15b2e2=>{if('$graveyard'===_0x331708['root']['rootName']){_0x99770f['execute']('insertImage',{'imageType':_0x331708['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x331708['getAttributes']()),'uploadcareImageId':_0x3b0ade,'src':_0xb6b3b2,'sources':_0x58d6a1,'width':_0x481c6d,'height':_0x21fda8}});const _0x1411e3=_0x331708['getChildren']();_0x331708=_0x99770f['model']['document']['selection']['getSelectedElement']();for(const _0x55d69e of _0x1411e3)_0x15b2e2['append'](_0x15b2e2['cloneElement'](_0x55d69e),_0x331708);}else _0x15b2e2['setSelection'](_0x331708,'on'),_0x99770f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x331708['getAttributes']()),'uploadcareImageId':_0x3b0ade,'src':_0xb6b3b2,'sources':_0x58d6a1,'width':_0x481c6d,'height':_0x21fda8},_0x331708);_0x15b2e2['setSelection'](_0x331708,'on');});}async['_getImageAsFile'](_0x3506c1){const _0x4e9c63=_0x18701b['window'],_0x205aca=_0x18701b['document']['location']['href'],_0x333e63=new _0x4e9c63['URL'](_0x3506c1['getAttribute']('src'),_0x205aca);if('data:'===_0x333e63['protocol']){const _0x2474b3=_0x333e63['href']['split'](','),_0x1ad745=_0x2474b3[0x0]['match'](/:(.*?);/)[0x1],_0x2ecd8f=_0x1ad745['split']('/')[0x1],_0x369251=_0x4e9c63['atob'](_0x2474b3[_0x2474b3['length']-0x1]);let _0x2dfb7e=_0x369251['length'];const _0x19ea05=new _0x4e9c63['Uint8Array'](_0x2dfb7e);for(;_0x2dfb7e--;)_0x19ea05[_0x2dfb7e]=_0x369251['charCodeAt'](_0x2dfb7e);return new _0x4e9c63['File']([_0x19ea05],'image.'+_0x2ecd8f,{'type':_0x1ad745});}const _0x1b1ec1=_0x333e63['href']['split']('/'),_0x5ac04b=_0x1b1ec1[_0x1b1ec1['length']-0x1],_0x129f2b=_0x5ac04b['split']('.')[0x1];return _0x4e9c63['fetch'](_0x333e63['href'])['then'](_0x107de0=>_0x107de0['clone']()['blob']())['then'](_0x2c7d83=>new _0x4e9c63['File']([_0x2c7d83],_0x5ac04b,{'type':'image/'+_0x129f2b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x19e7(_0x499ea5,_0x20d847){const _0x3eeb0b=_0x3eeb();return _0x19e7=function(_0x19e768,_0x55516f){_0x19e768=_0x19e768-0x18a;let _0x23ed75=_0x3eeb0b[_0x19e768];return _0x23ed75;},_0x19e7(_0x499ea5,_0x20d847);}(function(_0xf51f78,_0x366c9b){const _0x2b457d=_0x19e7,_0x340202=_0xf51f78();while(!![]){try{const _0x5bab36=-parseInt(_0x2b457d(0x199))/0x1+-parseInt(_0x2b457d(0x18d))/0x2*(parseInt(_0x2b457d(0x19c))/0x3)+parseInt(_0x2b457d(0x197))/0x4+parseInt(_0x2b457d(0x19b))/0x5+parseInt(_0x2b457d(0x18e))/0x6*(-parseInt(_0x2b457d(0x18b))/0x7)+parseInt(_0x2b457d(0x18a))/0x8*(parseInt(_0x2b457d(0x195))/0x9)+-parseInt(_0x2b457d(0x192))/0xa*(-parseInt(_0x2b457d(0x198))/0xb);if(_0x5bab36===_0x366c9b)break;else _0x340202['push'](_0x340202['shift']());}catch(_0x1180bb){_0x340202['push'](_0x340202['shift']());}}}(_0x3eeb,0x6aff8));import{View as _0x3ad614}from'ckeditor5/src/ui.js';function _0x3eeb(){const _0x555628=['377172uhrVyS','image-edit','703288npSVOE','165RsIrMY','480385tqJbUv','imageSrc','2573600SqEZjv','1575VZrxYX','40tcpJVK','14CycJkK','bindTemplate','2392HHoouP','49104FKIZbj','setTemplate','uc-cloud-image-editor','set','441890YxisrY','uc-light','ck-uploadcare-theme'];_0x3eeb=function(){return _0x555628;};return _0x3eeb();}export class UploadcareImageEditFormEditingView extends _0x3ad614{constructor(_0x53623a,_0x4c1d02){const _0x1cd425=_0x19e7;super(_0x53623a);const _0xd261ce=this[_0x1cd425(0x18c)];this[_0x1cd425(0x191)](_0x1cd425(0x19a),''),this[_0x1cd425(0x18f)]({'tag':_0x1cd425(0x190),'attributes':{..._0x4c1d02,'class':[_0x1cd425(0x193),_0x1cd425(0x194)],'ctx-name':_0x1cd425(0x196),'cdn-url':_0xd261ce['to'](_0x1cd425(0x19a))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2108c3}from'ckeditor5/src/icons.js';import{ButtonView as _0x4d90e3,IconView as _0x3956b0,View as _0x150153}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x150153{constructor(_0x509697){super(_0x509697);const t=_0x509697['t'];this['set']('errorType',null);const _0x53a5e8=new _0x4d90e3(_0x509697);_0x53a5e8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x53a5e8['withText']=!0x0,_0x53a5e8['class']='ck-button-action',_0x53a5e8['on']('execute',()=>{this['fire']('retry');}),_0x53a5e8['bind']('isVisible')['to'](this,'errorType',_0x2d3193=>'NotFound'!==_0x2d3193);const _0x5af8d3=new _0x3956b0();_0x5af8d3['content']=_0x2108c3,_0x5af8d3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1066b4=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':[_0x5af8d3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1066b4['to']('errorType',_0x293fe1=>t('NotFound'!==_0x293fe1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x53a5e8]},{'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 _0x28af5d,View as _0x4655f5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4655f5{constructor(_0x4b1749){super(_0x4b1749);const t=_0x4b1749['t'],_0x5d6693=this['bindTemplate'],_0x235a54=new _0x28af5d();_0x235a54['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':[_0x235a54,{'text':_0x5d6693['to']('imageUploadProgress',_0x45055f=>t('Loading\x20image...')+'\x20('+(_0x45055f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1377ea=_0x5b6d;function _0x66c8(){const _0x350c1f=['nodeName','_waitForImageEditorComponent','once','div','fire','cancel','9LvWMkp','render','add','addedNodes','set','10QhlTBx','ck-uploadcare-form','_items','focus','cdnUrl','querySelector','uploading','target','_addErrorViewListeners','status','32NbCzrW','uc-cloud-image-editor','retry','_focusableView','_loadingView','filter','1258218FQpiFP','length','observe','28671rpSxBC','1226350eWOEdZ','ready','_errorView','clear','change:status','getFocusableElement','error','detail','createCollection','setTemplate','addMany','200astgtl','10617387AeIaYn','_addUploadcareImageEditorListeners','apply','toLowerCase','16612BdCdeO','addEventListener','ck-reset_all-excluded','2870497OpbGRb','_editingView','454424rRRofC','disconnect','_setView','element'];_0x66c8=function(){return _0x350c1f;};return _0x66c8();}(function(_0x3b28d7,_0x1d9028){const _0x205ca3=_0x5b6d,_0x12b9cf=_0x3b28d7();while(!![]){try{const _0x472527=parseInt(_0x205ca3(0x10d))/0x1*(-parseInt(_0x205ca3(0xf3))/0x2)+parseInt(_0x205ca3(0xfc))/0x3*(parseInt(_0x205ca3(0x108))/0x4)+-parseInt(_0x205ca3(0xfd))/0x5+-parseInt(_0x205ca3(0xf9))/0x6+-parseInt(_0x205ca3(0x110))/0x7+parseInt(_0x205ca3(0xda))/0x8*(-parseInt(_0x205ca3(0xe4))/0x9)+parseInt(_0x205ca3(0xe9))/0xa*(parseInt(_0x205ca3(0x109))/0xb);if(_0x472527===_0x1d9028)break;else _0x12b9cf['push'](_0x12b9cf['shift']());}catch(_0x48c9cd){_0x12b9cf['push'](_0x12b9cf['shift']());}}}(_0x66c8,0x3e5c4));import{View as _0x55a31c}from'ckeditor5/src/ui.js';function _0x5b6d(_0x5eec18,_0x41f6b5){const _0x66c820=_0x66c8();return _0x5b6d=function(_0x5b6d7c,_0x2aea2e){_0x5b6d7c=_0x5b6d7c-0xd9;let _0x50e8f4=_0x66c820[_0x5b6d7c];return _0x50e8f4;},_0x5b6d(_0x5eec18,_0x41f6b5);}import{UploadcareImageEditFormLoadingView as _0x12cd86}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x529ecb}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xdb2a90}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xcc6e4a}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xcc6e4a{[_0x1377ea(0xeb)];[_0x1377ea(0xf7)];[_0x1377ea(0xff)];[_0x1377ea(0xd9)];[_0x1377ea(0xf6)];constructor(_0x4fb56a,_0x2bd665,_0x545851){const _0x56b354=_0x1377ea;super(_0x4fb56a),this[_0x56b354(0xeb)]=this[_0x56b354(0x105)](),this[_0x56b354(0xf7)]=new _0x12cd86(_0x4fb56a),this[_0x56b354(0xff)]=new _0x529ecb(_0x4fb56a),this[_0x56b354(0xd9)]=new _0xdb2a90(_0x4fb56a,_0x545851),this[_0x56b354(0xf6)]=new _0x55a31c(_0x4fb56a),this[_0x56b354(0xf6)][_0x56b354(0x106)](this[_0x56b354(0x102)]()),this[_0x56b354(0xe8)](_0x56b354(0xf2),_0x2bd665),this[_0x56b354(0x106)]({'tag':_0x56b354(0xe1),'attributes':{'class':['ck',_0x56b354(0x10f),_0x56b354(0xea)],'tabindex':'-1'},'children':this[_0x56b354(0xeb)]}),this[_0x56b354(0xdc)](),this[_0x56b354(0xe0)](_0x56b354(0xe5),()=>{const _0x64a917=_0x56b354;this[_0x64a917(0xdf)](this[_0x64a917(0xdd)],_0x6c8cf6=>{const _0x1974a4=_0x64a917;this[_0x1974a4(0x10a)](_0x6c8cf6);});}),this['on'](_0x56b354(0x101),()=>{const _0x8b8688=_0x56b354;this[_0x8b8688(0xdc)]();}),this[_0x56b354(0xf1)]();}[_0x1377ea(0xec)](){const _0x4a6c86=_0x1377ea;this[_0x4a6c86(0xdd)][_0x4a6c86(0xec)]();}[_0x1377ea(0xdc)](){const _0x2fe122=_0x1377ea;switch(this[_0x2fe122(0xeb)][_0x2fe122(0x100)](),this[_0x2fe122(0xf2)]){case _0x2fe122(0xef):this[_0x2fe122(0xeb)][_0x2fe122(0xe6)](this[_0x2fe122(0xf7)]);break;case _0x2fe122(0x103):this[_0x2fe122(0xeb)][_0x2fe122(0xe6)](this[_0x2fe122(0xff)]);break;case _0x2fe122(0xfe):this[_0x2fe122(0xeb)][_0x2fe122(0x107)]([this[_0x2fe122(0xd9)],this[_0x2fe122(0xf6)]]);}}[_0x1377ea(0xdf)](_0x46ee36,_0x1e6207){const _0x559f72=_0x1377ea,_0x107261=_0x559f72(0xf4),_0x5a68a7=_0x46ee36[_0x559f72(0xee)](_0x107261);if(_0x5a68a7)return _0x1e6207(_0x5a68a7);const _0x5d4c32=new MutationObserver(_0x2ffa59=>{const _0x57d8b9=_0x559f72,_0x459597=_0x2ffa59[_0x57d8b9(0xf8)](_0x97d1d8=>_0x97d1d8[_0x57d8b9(0xf0)]===_0x46ee36&&_0x97d1d8[_0x57d8b9(0xe7)][_0x57d8b9(0xfa)]>0x0&&_0x97d1d8[_0x57d8b9(0xe7)][0x0][_0x57d8b9(0xde)][_0x57d8b9(0x10c)]()===_0x107261);_0x459597[_0x57d8b9(0xfa)]&&(_0x5d4c32[_0x57d8b9(0xdb)](),_0x1e6207(_0x459597[0x0][_0x57d8b9(0xe7)][0x0]));});_0x5d4c32[_0x559f72(0xfb)](_0x46ee36,{'childList':!0x0,'subtree':!0x0});}[_0x1377ea(0x10a)](_0x2c6a97){const _0x28a931=_0x1377ea;_0x2c6a97[_0x28a931(0x10e)](_0x28a931(0x10b),_0x1b1ccc=>{const _0x3bf9f3=_0x28a931;this[_0x3bf9f3(0xe2)](_0x3bf9f3(0x10b),{'imageSrc':_0x1b1ccc[_0x3bf9f3(0x104)][_0x3bf9f3(0xed)]});}),_0x2c6a97[_0x28a931(0x10e)](_0x28a931(0xe3),()=>{const _0x31e45b=_0x28a931;this[_0x31e45b(0xe2)](_0x31e45b(0xe3));});}[_0x1377ea(0xf1)](){const _0x2a4fd3=_0x1377ea;this[_0x2a4fd3(0xff)]['on'](_0x2a4fd3(0xf5),()=>{const _0x1236a9=_0x2a4fd3;this[_0x1236a9(0xe2)](_0x1236a9(0xf5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5171c3=_0x2a9c;function _0x1253(){const _0x7acbe7=['744474IqlCjL','imageEditController','set','selection','element','document','4386184PMJFRB','requires','plugins','refresh','uploadcare.allowExternalImagesEditing','isActive','isEnabled','imageInline','execute','6kYblJo','unbind','746456EbiVgm','config','getSelectedElement','model','2736685TFAmie','_isEditable','3691728bQCwxV','get','bind','editor','imageBlock','7720993mymvvG','4780340xCpeNP'];_0x1253=function(){return _0x7acbe7;};return _0x1253();}(function(_0x4c535d,_0x1ba704){const _0x24ddf4=_0x2a9c,_0x638813=_0x4c535d();while(!![]){try{const _0x2217ac=-parseInt(_0x24ddf4(0x113))/0x1+parseInt(_0x24ddf4(0x120))/0x2+parseInt(_0x24ddf4(0x119))/0x3+-parseInt(_0x24ddf4(0x11f))/0x4+parseInt(_0x24ddf4(0x117))/0x5+-parseInt(_0x24ddf4(0x111))/0x6*(-parseInt(_0x24ddf4(0x11e))/0x7)+-parseInt(_0x24ddf4(0x126))/0x8;if(_0x2217ac===_0x1ba704)break;else _0x638813['push'](_0x638813['shift']());}catch(_0x1dc5d6){_0x638813['push'](_0x638813['shift']());}}}(_0x1253,0xba5c7));function _0x2a9c(_0x54839a,_0x4c152e){const _0x1253ad=_0x1253();return _0x2a9c=function(_0x2a9ca9,_0x4cbcab){_0x2a9ca9=_0x2a9ca9-0x10e;let _0x5d9c6b=_0x1253ad[_0x2a9ca9];return _0x5d9c6b;},_0x2a9c(_0x54839a,_0x4c152e);}import{Command as _0x12bf59}from'ckeditor5/src/core.js';import{Dialog as _0x3cbc18}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x115269}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x188b91}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x12bf59{[_0x5171c3(0x121)];static get[_0x5171c3(0x127)](){return[_0x3cbc18];}[_0x5171c3(0x118)];constructor(_0x56234d){const _0x4ce583=_0x5171c3;super(_0x56234d),this[_0x4ce583(0x121)]=void 0x0,this[_0x4ce583(0x118)]=_0x188b91(_0x56234d[_0x4ce583(0x114)][_0x4ce583(0x11a)](_0x4ce583(0x12a))||[]),this[_0x4ce583(0x122)]({'isActive':!0x1});}[_0x5171c3(0x129)](){const _0x40ff4e=_0x5171c3,_0x1fe996=this[_0x40ff4e(0x11c)][_0x40ff4e(0x116)][_0x40ff4e(0x125)][_0x40ff4e(0x123)][_0x40ff4e(0x115)]();this[_0x40ff4e(0x10e)]=this[_0x40ff4e(0x118)](_0x1fe996);}[_0x5171c3(0x110)](){const _0x3777c6=_0x5171c3;this[_0x3777c6(0x121)]&&(this[_0x3777c6(0x112)](_0x3777c6(0x12b)),this[_0x3777c6(0x121)]=void 0x0);const _0x947767=this[_0x3777c6(0x11c)][_0x3777c6(0x116)][_0x3777c6(0x125)][_0x3777c6(0x123)][_0x3777c6(0x115)]();_0x947767&&(_0x947767['is'](_0x3777c6(0x124),_0x3777c6(0x11d))||_0x947767['is'](_0x3777c6(0x124),_0x3777c6(0x10f)))&&(this[_0x3777c6(0x121)]=new _0x115269(this[_0x3777c6(0x11c)],this[_0x3777c6(0x11c)][_0x3777c6(0x128)][_0x3777c6(0x11a)](_0x3cbc18),_0x947767),this[_0x3777c6(0x11b)](_0x3777c6(0x12b))['to'](this[_0x3777c6(0x121)],_0x3777c6(0x12b)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x571928=_0x1349;function _0x1349(_0x50c198,_0x291953){const _0xb727f4=_0xb727();return _0x1349=function(_0x13494e,_0x1a88b3){_0x13494e=_0x13494e-0x17f;let _0x2fe8a4=_0xb727f4[_0x13494e];return _0x2fe8a4;},_0x1349(_0x50c198,_0x291953);}(function(_0x5aff4e,_0x1ff02a){const _0x35e1fd=_0x1349,_0x28d00e=_0x5aff4e();while(!![]){try{const _0x3275b1=-parseInt(_0x35e1fd(0x17f))/0x1+parseInt(_0x35e1fd(0x18f))/0x2+parseInt(_0x35e1fd(0x180))/0x3*(-parseInt(_0x35e1fd(0x192))/0x4)+-parseInt(_0x35e1fd(0x18e))/0x5+parseInt(_0x35e1fd(0x188))/0x6+-parseInt(_0x35e1fd(0x189))/0x7+parseInt(_0x35e1fd(0x191))/0x8*(parseInt(_0x35e1fd(0x186))/0x9);if(_0x3275b1===_0x1ff02a)break;else _0x28d00e['push'](_0x28d00e['shift']());}catch(_0x425966){_0x28d00e['push'](_0x28d00e['shift']());}}}(_0xb727,0x67daf));import{Plugin as _0x293fac}from'ckeditor5/src/core.js';import{Notification as _0x2d6169}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x29f134}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0xd9c8d6}from'./uploadcareimagereplacecommand.js';function _0xb727(){const _0x747d73=['isOfficialPlugin','ImageEditing','requires','12870612uHGSWd','add','3202464LhycFs','5872713ApSpfI','uploadcareImageEdit','UploadcareImageEditEditing','pluginName','init','1777920UfiNKH','510346FRjWDc','commands','8rEecEA','4kPSuNP','isPremiumPlugin','318448WyRDwp','841809vCtbdK','uploadcareImageReplace','ImageUtils'];_0xb727=function(){return _0x747d73;};return _0xb727();}import{UploadcareEditing as _0x289e9f}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x293fac{static get[_0x571928(0x18c)](){const _0x35b595=_0x571928;return _0x35b595(0x18b);}static get[_0x571928(0x185)](){const _0x42df53=_0x571928;return[_0x289e9f,_0x2d6169,_0x42df53(0x182),_0x42df53(0x184)];}static get[_0x571928(0x183)](){return!0x0;}static get[_0x571928(0x193)](){return!0x0;}[_0x571928(0x18d)](){const _0x13c5c3=_0x571928,{editor:_0x17849b}=this;_0x17849b[_0x13c5c3(0x190)][_0x13c5c3(0x187)](_0x13c5c3(0x18a),new _0x29f134(_0x17849b)),_0x17849b[_0x13c5c3(0x190)][_0x13c5c3(0x187)](_0x13c5c3(0x181),new _0xd9c8d6(_0x17849b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x234efa}from'ckeditor5/src/core.js';import{ButtonView as _0xbfc5fa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x570015}from'ckeditor5/src/icons.js';import{createElement as _0x454c15}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 _0x234efa{['_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 _0x1b721f=this['editor'];_0x1b721f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1bf6cc=>{const _0x212c2c=_0x1b721f['commands']['get']('uploadcareImageEdit'),_0x78ad05=new _0xbfc5fa(_0x1bf6cc),t=_0x1bf6cc['t'];return _0x78ad05['set']({'icon':_0x570015,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x78ad05['bind']('isEnabled')['to'](_0x212c2c),_0x78ad05['bind']('isOn')['to'](_0x212c2c,'isActive'),this['listenTo'](_0x78ad05,'execute',()=>{_0x1b721f['execute']('uploadcareImageEdit'),_0x1b721f['editing']['view']['focus']();}),_0x78ad05;}),this['_initConfig']();}['_initConfig'](){const _0x1e9b5e=_0x454c15(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e9b5e),this['listenTo'](this['editor'],'destroy',()=>{_0x1e9b5e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x36a5(_0x330c9e,_0x1d1b93){const _0x50cadf=_0x50ca();return _0x36a5=function(_0x36a599,_0x269d60){_0x36a599=_0x36a599-0x1d3;let _0x39d3e7=_0x50cadf[_0x36a599];return _0x39d3e7;},_0x36a5(_0x330c9e,_0x1d1b93);}const _0x576b62=_0x36a5;(function(_0x417b70,_0x4bf8cd){const _0x68a92c=_0x36a5,_0xcbc1ed=_0x417b70();while(!![]){try{const _0x40dcf3=-parseInt(_0x68a92c(0x1e4))/0x1*(-parseInt(_0x68a92c(0x1d8))/0x2)+parseInt(_0x68a92c(0x1db))/0x3+parseInt(_0x68a92c(0x1d4))/0x4+-parseInt(_0x68a92c(0x1e0))/0x5*(parseInt(_0x68a92c(0x1e1))/0x6)+-parseInt(_0x68a92c(0x1ea))/0x7+parseInt(_0x68a92c(0x1da))/0x8+-parseInt(_0x68a92c(0x1e2))/0x9*(parseInt(_0x68a92c(0x1eb))/0xa);if(_0x40dcf3===_0x4bf8cd)break;else _0xcbc1ed['push'](_0xcbc1ed['shift']());}catch(_0x24d1bd){_0xcbc1ed['push'](_0xcbc1ed['shift']());}}}(_0x50ca,0xe7d3f));function _0x50ca(){const _0x2efe97=['editor','element','document','4362680WSOMhl','10kWKjzj','getSelectedElement','refresh','5337528vKVoPt','removeAttribute','selection','isEnabled','22mCLVpR','imageInline','12833248IZHBra','2749575ZLhnmx','imageBlock','setAttributes','execute','model','6028180MkOvuw','6BSFVQu','18485235vTKZGA','change','88845YiInWO','sizes','srcset'];_0x50ca=function(){return _0x2efe97;};return _0x50ca();}import{Command as _0x19c76b}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x19c76b{[_0x576b62(0x1d3)](){const _0x121a5c=_0x576b62,_0x80c711=this[_0x121a5c(0x1e7)][_0x121a5c(0x1df)][_0x121a5c(0x1e9)][_0x121a5c(0x1d6)][_0x121a5c(0x1ec)]();this[_0x121a5c(0x1d7)]=Boolean(_0x80c711&&(_0x80c711['is'](_0x121a5c(0x1e8),_0x121a5c(0x1dc))||_0x80c711['is'](_0x121a5c(0x1e8),_0x121a5c(0x1d9))));}[_0x576b62(0x1de)](_0x332221){const _0x412c89=_0x576b62,_0x483b92=this[_0x412c89(0x1e7)][_0x412c89(0x1df)][_0x412c89(0x1e9)][_0x412c89(0x1d6)][_0x412c89(0x1ec)]();this[_0x412c89(0x1e7)][_0x412c89(0x1df)][_0x412c89(0x1e3)](_0x11e3c1=>{const _0x838bc0=_0x412c89;_0x11e3c1[_0x838bc0(0x1dd)](_0x332221,_0x483b92),_0x11e3c1[_0x838bc0(0x1d5)](_0x838bc0(0x1e6),_0x483b92),_0x11e3c1[_0x838bc0(0x1d5)](_0x838bc0(0x1e5),_0x483b92);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x53e6bf=_0x468e;function _0x2126(){var _0x407b81=['380ABROfd','isPremiumPlugin','54IBsbav','1945936ZmVxYY','isOfficialPlugin','3949dfGGsL','22503648fEAAjm','2432442FhkHzu','1801GzbFQu','395STKmTE','313691ziyIfW','pluginName','requires','19204fmsVBL','UploadcareImageEdit','36GKTsST','160aWwEII'];_0x2126=function(){return _0x407b81;};return _0x2126();}(function(_0x4313dd,_0x14df46){var _0x37c635=_0x468e,_0x67c1f0=_0x4313dd();while(!![]){try{var _0x4bbfd1=-parseInt(_0x37c635(0x112))/0x1*(parseInt(_0x37c635(0x11a))/0x2)+parseInt(_0x37c635(0x111))/0x3+-parseInt(_0x37c635(0x117))/0x4*(-parseInt(_0x37c635(0x113))/0x5)+-parseInt(_0x37c635(0x11d))/0x6*(-parseInt(_0x37c635(0x114))/0x7)+-parseInt(_0x37c635(0x10d))/0x8*(-parseInt(_0x37c635(0x119))/0x9)+-parseInt(_0x37c635(0x11b))/0xa*(parseInt(_0x37c635(0x10f))/0xb)+-parseInt(_0x37c635(0x110))/0xc;if(_0x4bbfd1===_0x14df46)break;else _0x67c1f0['push'](_0x67c1f0['shift']());}catch(_0x2c07bc){_0x67c1f0['push'](_0x67c1f0['shift']());}}}(_0x2126,0x82368));import{Plugin as _0x25d2e6}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x45303e}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x468e(_0x5a00a0,_0x3d97ff){var _0x212690=_0x2126();return _0x468e=function(_0x468ed3,_0x2731bb){_0x468ed3=_0x468ed3-0x10d;var _0x53c410=_0x212690[_0x468ed3];return _0x53c410;},_0x468e(_0x5a00a0,_0x3d97ff);}import{UploadcareImageEditUI as _0x2b2a0c}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x25d2e6{static get[_0x53e6bf(0x115)](){var _0x371465=_0x53e6bf;return _0x371465(0x118);}static get[_0x53e6bf(0x116)](){return[_0x45303e,_0x2b2a0c];}static get[_0x53e6bf(0x10e)](){return!0x0;}static get[_0x53e6bf(0x11c)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3081(){const _0x43709a=['init','UploadcareUI','_createToolbarButton','271LptlzO','invalid','afterInit','_normalizeConfigSourceList','29004KuIXMH','trialLimit','icon','url','locale','upload','tooltip','domainLimit','isImageSelected','entries','uploadcareLicenseKeyUsageLimit','_createDropdownButtons','map','get','GPhotos','assetManager','isPremiumPlugin','13368MxRwql','GDrive','4124500revdVU','evaluationLimit','4761zPqadw','featureNotAllowed','URL','destroy','uploadcareLicenseKeyDomainLimit','Uploadcare','text','uploadcareLicenseKeyValid','2990zKwSwE','withText','_licenseKeyCheckInterval','pluginName','label','Replace','push','type','usageLimit','execute','reduce','expired','uploadcareLicenseKeyTrialLimit','isOfficialPlugin','editor','_getIntegrationKey','uploadcare.uploader.sourceList','Insert','registerIntegration','2446976waamZy','bind','_showLicenseError','2706240JuIsHZ','Local','440rOvAzP','licenseKey','config','plugins','OneDrive','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyNotAllowed','commands','isEnabled','Dropbox','40335qsSjzJ','forEach','has','_createMenuBarButtons','shortText','uploadcareLicenseKeyEvaluationLimit','uploadcare','Facebook','_createButton','uploadcareLicenseKeyExpired','ImageInsertUI'];_0x3081=function(){return _0x43709a;};return _0x3081();}const _0x823d78=_0x4f62;(function(_0x412960,_0x57d9bb){const _0x4ff312=_0x4f62,_0x528d9b=_0x412960();while(!![]){try{const _0x5dfb1c=-parseInt(_0x4ff312(0x168))/0x1*(-parseInt(_0x4ff312(0x189))/0x2)+-parseInt(_0x4ff312(0x1ab))/0x3+parseInt(_0x4ff312(0x17f))/0x4+parseInt(_0x4ff312(0x1a1))/0x5*(-parseInt(_0x4ff312(0x16c))/0x6)+parseInt(_0x4ff312(0x19c))/0x7+parseInt(_0x4ff312(0x17d))/0x8*(-parseInt(_0x4ff312(0x181))/0x9)+parseInt(_0x4ff312(0x19f))/0xa;if(_0x5dfb1c===_0x57d9bb)break;else _0x528d9b['push'](_0x528d9b['shift']());}catch(_0x6d9382){_0x528d9b['push'](_0x528d9b['shift']());}}}(_0x3081,0xb31e2));import{Plugin as _0x36393c}from'ckeditor5/src/core.js';import{IconDropbox as _0x1185ff,IconFacebook as _0x311278,IconGoogleDrive as _0x179742,IconGooglePhotos as _0xf5efc2,IconUploadcareImageUpload as _0x33b935,IconUploadcareLink as _0x29e391,IconOneDrive as _0x131bdb}from'ckeditor5/src/icons.js';import{ButtonView as _0x4b684c,MenuBarMenuListItemButtonView as _0xd90acd}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xc81012}from'./uploadcareconfig.js';function _0x4f62(_0x2fd6bd,_0x523e27){const _0x308136=_0x3081();return _0x4f62=function(_0x4f6289,_0x35de5f){_0x4f6289=_0x4f6289-0x161;let _0x1e2f9a=_0x308136[_0x4f6289];return _0x1e2f9a;},_0x4f62(_0x2fd6bd,_0x523e27);}import{getTranslation as _0x238b7f}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x36393c{[_0x823d78(0x1a2)];[_0x823d78(0x18b)];static get[_0x823d78(0x18c)](){const _0x54b4f4=_0x823d78;return _0x54b4f4(0x166);}static get[_0x823d78(0x196)](){return!0x0;}static get[_0x823d78(0x17c)](){return!0x0;}[_0x823d78(0x165)](){const _0x4034c9=_0x823d78;this[_0x4034c9(0x1a2)]=this[_0x4034c9(0x197)][_0x4034c9(0x1a3)][_0x4034c9(0x179)](_0x4034c9(0x1a2));const _0x1c1272=this[_0x4034c9(0x197)];this[_0x4034c9(0x18b)]=setInterval(()=>{const _0x213227=_0x4034c9;let _0x30fdb8;for(const _0x572066 in _0x1c1272){const _0x178588=_0x572066,_0x3e76b8=_0x1c1272[_0x178588];if(_0x213227(0x188)==_0x3e76b8||_0x213227(0x1a6)==_0x3e76b8||_0x213227(0x163)==_0x3e76b8||_0x213227(0x185)==_0x3e76b8||_0x213227(0x1a7)==_0x3e76b8||_0x213227(0x1b0)==_0x3e76b8||_0x213227(0x195)==_0x3e76b8||_0x213227(0x176)==_0x3e76b8){delete _0x1c1272[_0x178588],_0x30fdb8=_0x3e76b8,clearInterval(this[_0x213227(0x18b)]),this[_0x213227(0x18b)]=void 0x0;break;}}_0x213227(0x1a6)==_0x30fdb8&&_0x1c1272[_0x213227(0x19e)](_0x213227(0x169)),_0x213227(0x163)==_0x30fdb8&&_0x1c1272[_0x213227(0x19e)](_0x213227(0x194)),_0x213227(0x185)==_0x30fdb8&&_0x1c1272[_0x213227(0x19e)](_0x213227(0x173)),_0x213227(0x1a7)==_0x30fdb8&&_0x1c1272[_0x213227(0x19e)](_0x213227(0x182),_0x213227(0x186)),_0x213227(0x1b0)==_0x30fdb8&&_0x1c1272[_0x213227(0x19e)](_0x213227(0x180)),_0x213227(0x195)==_0x30fdb8&&_0x1c1272[_0x213227(0x19e)](_0x213227(0x16d)),_0x213227(0x176)==_0x30fdb8&&_0x1c1272[_0x213227(0x19e)](_0x213227(0x191));},0x3e8);}[_0x823d78(0x16a)](){const _0x4e5d52=_0x823d78,{editor:_0x2e7d5d}=this,_0x42b343=_0x2e7d5d[_0x4e5d52(0x1a8)][_0x4e5d52(0x179)](_0x4e5d52(0x1b1));if(!_0x42b343)return;const _0x27276f=this[_0x4e5d52(0x16b)](_0x2e7d5d[_0x4e5d52(0x1a3)][_0x4e5d52(0x179)](_0x4e5d52(0x199)))[_0x4e5d52(0x193)]((_0x116aab,_0x40d616)=>{const _0x34c5ba=_0x4e5d52,_0x592267=this[_0x34c5ba(0x198)](_0x40d616[_0x34c5ba(0x190)]);return _0x116aab[_0x592267]||(_0x116aab[_0x592267]=[]),_0x116aab[_0x592267][_0x34c5ba(0x18f)](_0x40d616),_0x116aab;},{});_0x2e7d5d[_0x4e5d52(0x1a4)][_0x4e5d52(0x1ad)](_0x4e5d52(0x164))&&_0x2e7d5d[_0x4e5d52(0x1a8)][_0x4e5d52(0x179)](_0x4e5d52(0x1b1))&&Object[_0x4e5d52(0x175)](_0x27276f)[_0x4e5d52(0x1ac)](([_0x2df8f3,_0xe8e542])=>{const _0x50c9e5=_0x4e5d52;_0x2e7d5d[_0x50c9e5(0x1a4)][_0x50c9e5(0x179)](_0x50c9e5(0x164))[_0x50c9e5(0x19b)]({'name':_0x2df8f3,'observable':()=>_0x42b343,'buttonViewCreator':()=>this[_0x50c9e5(0x167)](_0xe8e542),'formViewCreator':()=>this[_0x50c9e5(0x177)](_0xe8e542),'menuBarButtonViewCreator':()=>this[_0x50c9e5(0x1ae)](_0xe8e542),'override':_0x50c9e5(0x17b)!==_0x2df8f3});});}[_0x823d78(0x184)](){const _0x3ada73=_0x823d78;super[_0x3ada73(0x184)](),this[_0x3ada73(0x18b)]&&clearInterval(this[_0x3ada73(0x18b)]);}[_0x823d78(0x16b)](_0x595747){const _0x456f77=_0x823d78,{locale:_0x3a1d42}=this[_0x456f77(0x197)];return _0x595747[_0x456f77(0x178)](_0x12678f=>{const _0x53de57=_0x456f77,_0x1b8122=_0x238b7f(_0x3a1d42,_0x12678f,_0x53de57(0x19a));switch(_0x12678f){case _0xc81012[_0x53de57(0x1a0)]:return{'icon':_0x33b935,'type':_0xc81012[_0x53de57(0x1a0)],..._0x1b8122};case _0xc81012[_0x53de57(0x183)]:return{'icon':_0x29e391,'type':_0xc81012[_0x53de57(0x183)],..._0x1b8122};case _0xc81012[_0x53de57(0x1aa)]:return{'icon':_0x1185ff,'type':_0xc81012[_0x53de57(0x1aa)],..._0x1b8122};case _0xc81012[_0x53de57(0x161)]:return{'icon':_0x311278,'type':_0xc81012[_0x53de57(0x161)],..._0x1b8122};case _0xc81012[_0x53de57(0x17e)]:return{'icon':_0x179742,'type':_0xc81012[_0x53de57(0x17e)],..._0x1b8122};case _0xc81012[_0x53de57(0x17a)]:return{'icon':_0xf5efc2,'type':_0xc81012[_0x53de57(0x17a)],..._0x1b8122};case _0xc81012[_0x53de57(0x1a5)]:return{'icon':_0x131bdb,'type':_0xc81012[_0x53de57(0x1a5)],..._0x1b8122};}});}[_0x823d78(0x198)](_0x445a78){const _0x4fa9fd=_0x823d78;switch(_0x445a78){case _0xc81012[_0x4fa9fd(0x1a0)]:return _0x4fa9fd(0x171);case _0xc81012[_0x4fa9fd(0x183)]:return _0x4fa9fd(0x16f);default:return _0x4fa9fd(0x17b);}}[_0x823d78(0x162)](_0xbe79f2,_0x3dd958){const _0xbb1576=_0x823d78,_0x395244=this[_0xbb1576(0x197)],_0x3ddcc5=new _0xbe79f2(_0x395244[_0xbb1576(0x170)]),_0x5abc72=_0x395244[_0xbb1576(0x1a8)][_0xbb1576(0x179)](_0xbb1576(0x1b1));return _0x3ddcc5[_0xbb1576(0x19d)](_0xbb1576(0x1a9))['to'](_0x5abc72),_0x3ddcc5['on'](_0xbb1576(0x192),()=>{const _0x38b7f2=_0xbb1576;_0x5abc72[_0x38b7f2(0x192)](_0x3dd958);}),_0x3ddcc5;}[_0x823d78(0x167)](_0xc81799){const _0x20f5a7=_0x823d78,{locale:_0x9ae1de}=this[_0x20f5a7(0x197)],_0x17a702=this[_0x20f5a7(0x197)][_0x20f5a7(0x1a4)][_0x20f5a7(0x179)](_0x20f5a7(0x164)),_0x202b44=_0xc81799[0x0],_0xa21a21=this[_0x20f5a7(0x162)](_0x4b684c,_0x202b44[_0x20f5a7(0x190)]);return _0xa21a21[_0x20f5a7(0x16e)]=_0x202b44[_0x20f5a7(0x16e)],_0xa21a21[_0x20f5a7(0x19d)](_0x20f5a7(0x18d))['to'](_0x17a702,_0x20f5a7(0x174),_0xf91588=>_0x238b7f(_0x9ae1de,_0x202b44[_0x20f5a7(0x190)],_0xf91588?_0x20f5a7(0x18e):_0x20f5a7(0x19a))[_0x20f5a7(0x187)]),_0xa21a21[_0x20f5a7(0x172)]=!0x0,_0xa21a21;}[_0x823d78(0x177)](_0x536567){const _0x27dfa1=_0x823d78,{locale:_0x1be002}=this[_0x27dfa1(0x197)],_0x7f5781=this[_0x27dfa1(0x197)][_0x27dfa1(0x1a4)][_0x27dfa1(0x179)](_0x27dfa1(0x164));return _0x536567[_0x27dfa1(0x178)](_0x531fa4=>{const _0x3d28fb=_0x27dfa1,_0x4cc7d4=this[_0x3d28fb(0x162)](_0x4b684c,_0x531fa4[_0x3d28fb(0x190)]);return _0x4cc7d4[_0x3d28fb(0x18a)]=!0x0,_0x4cc7d4[_0x3d28fb(0x16e)]=_0x531fa4[_0x3d28fb(0x16e)],_0x4cc7d4[_0x3d28fb(0x19d)](_0x3d28fb(0x18d))['to'](_0x7f5781,_0x3d28fb(0x174),_0x41ec2a=>_0x238b7f(_0x1be002,_0x531fa4[_0x3d28fb(0x190)],_0x41ec2a?_0x3d28fb(0x18e):_0x3d28fb(0x19a))[_0x3d28fb(0x187)]),_0x4cc7d4;});}[_0x823d78(0x1ae)](_0x473072){const _0x1e2371=_0x823d78;return _0x473072[_0x1e2371(0x178)](_0x45d6bd=>{const _0x47ac06=_0x1e2371,_0x659b05=this[_0x47ac06(0x162)](_0xd90acd,_0x45d6bd[_0x47ac06(0x190)]);return _0x659b05[_0x47ac06(0x16e)]=_0x45d6bd[_0x47ac06(0x16e)],_0x659b05[_0x47ac06(0x18d)]=_0x45d6bd[_0x47ac06(0x1af)],_0x659b05;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x188858}from'ckeditor5/src/core.js';import{FileRepository as _0x312ad2}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4ca976}from'./uploadcareediting.js';import{UploadUtils as _0x2bb2d9}from'./utils/uploadutils.js';import{getImageUrls as _0x1f39aa}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x188858{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x312ad2,_0x4ca976];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3d1e97=this['editor'];if(!!!_0x3d1e97['config']['get']('uploadcare'))return;_0x3d1e97['plugins']['get'](_0x312ad2)['createUploadAdapter']=_0x133ca0=>new A(_0x133ca0,_0x3d1e97),_0x3d1e97['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4cb2cb,{imageElement:_0xf43822,data:_0x1ed4d1})=>{_0x3d1e97['model']['change'](_0x387b3b=>{_0x387b3b['setAttribute']('uploadcareImageId',_0x1ed4d1['uploadcareImageId'],_0xf43822);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x49e136,_0x576c35){this['loader']=_0x49e136,this['editor']=_0x576c35,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x962178=this['editor']['config']['get']('uploadcare.pubkey'),_0x4a973f=await this['loader']['file'];return _0x2bb2d9['upload']({'file':_0x4a973f,'publicKey':_0x962178,'signal':this['controller']['signal'],'onProgress':_0x5ce6d3=>{_0x5ce6d3&&_0x5ce6d3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5ce6d3['value']);}})['then'](async _0x5e8ee1=>{const {imageFallbackUrl:_0x50fadd,imageSources:_0x3e8bec}=_0x1f39aa(_0x5e8ee1['cdnUrl'],_0x5e8ee1['imageInfo']['width']);return{'uploadcareImageId':_0x5e8ee1['uuid'],'default':_0x50fadd,'sources':_0x3e8bec};})['catch'](()=>{const _0x1eb5a5=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a973f['name']+'.');return Promise['reject'](_0x1eb5a5);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x12c38c}from'../uploadcareconfig.js';export function getTranslation(_0x383422,_0x4563e0,_0x3d42cf){const t=_0x383422['t'],_0x6b6638=_0x383422['t'];switch(_0x4563e0){case _0x12c38c['Local']:return{'text':_0x6b6638('Insert'===_0x3d42cf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x6b6638('From\x20computer')};case _0x12c38c['URL']:return{'text':'Insert'===_0x3d42cf?_0x6b6638('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x6b6638('Via\x20URL')};case _0x12c38c['Dropbox']:return{'text':t('Insert'===_0x3d42cf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x12c38c['Facebook']:return{'text':t('Insert'===_0x3d42cf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x12c38c['GDrive']:return{'text':t('Insert'===_0x3d42cf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x12c38c['GPhotos']:return{'text':t('Insert'===_0x3d42cf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x12c38c['OneDrive']:return{'text':t('Insert'===_0x3d42cf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4563e0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4ce466=_0x298b;function _0x298b(_0x175b66,_0x5cb7d3){var _0x3817ac=_0x3817();return _0x298b=function(_0x298b81,_0x334017){_0x298b81=_0x298b81-0xab;var _0x43e31e=_0x3817ac[_0x298b81];return _0x43e31e;},_0x298b(_0x175b66,_0x5cb7d3);}(function(_0x13c4e3,_0x49e8ec){var _0x2c914b=_0x298b,_0x3f04fa=_0x13c4e3();while(!![]){try{var _0x5d57ed=parseInt(_0x2c914b(0xae))/0x1+-parseInt(_0x2c914b(0xb4))/0x2*(-parseInt(_0x2c914b(0xb3))/0x3)+-parseInt(_0x2c914b(0xb2))/0x4*(parseInt(_0x2c914b(0xb8))/0x5)+-parseInt(_0x2c914b(0xb0))/0x6*(parseInt(_0x2c914b(0xab))/0x7)+parseInt(_0x2c914b(0xbd))/0x8+-parseInt(_0x2c914b(0xb6))/0x9+-parseInt(_0x2c914b(0xac))/0xa*(-parseInt(_0x2c914b(0xb9))/0xb);if(_0x5d57ed===_0x49e8ec)break;else _0x3f04fa['push'](_0x3f04fa['shift']());}catch(_0x19e89d){_0x3f04fa['push'](_0x3f04fa['shift']());}}}(_0x3817,0xd487d));import{FocusTracker as _0x99bae4}from'ckeditor5/src/utils.js';function _0x3817(){var _0x367e57=['1892231mfgnwa','createCollection','true','bindTemplate','3453520GdCwOf','forwardCycle','4742129PCqCHV','90kaRmEk','div','1420627IIrqDr','focusTracker','6KXGRlB','getFocusableElement','6056nOfAOR','16053dsUCDi','2ToeKqg','focusCycler','11910987rFwsAh','fire','1765xDMrmg'];_0x3817=function(){return _0x367e57;};return _0x3817();}import{View as _0x571bb8,FocusCycler as _0x4b0776}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x571bb8{[_0x4ce466(0xaf)];[_0x4ce466(0xb5)];constructor(_0x12768d){var _0x401673=_0x4ce466;super(_0x12768d),this[_0x401673(0xaf)]=new _0x99bae4(),this[_0x401673(0xb5)]=new _0x4b0776({'focusables':this[_0x401673(0xba)](),'focusTracker':this[_0x401673(0xaf)]});}[_0x4ce466(0xb1)](){var _0xc31f79=_0x4ce466;return{'tag':_0xc31f79(0xad),'attributes':{'aria-hidden':_0xc31f79(0xbb),'tabindex':'0'},'on':{'focus':this[_0xc31f79(0xbc)]['to'](()=>{var _0x4f153f=_0xc31f79;this[_0x4f153f(0xb5)][_0x4f153f(0xb7)](_0x4f153f(0xbe));})}};}}
|