@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250914.0 → 0.0.0-nightly-20250916.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 _0x1e3100=_0x1ff5;(function(_0x3a5428,_0xe341ee){const _0x3ea184=_0x1ff5,_0x550f05=_0x3a5428();while(!![]){try{const _0x10c05d=-parseInt(_0x3ea184(0x150))/0x1*(-parseInt(_0x3ea184(0x11e))/0x2)+parseInt(_0x3ea184(0x10e))/0x3*(-parseInt(_0x3ea184(0x113))/0x4)+parseInt(_0x3ea184(0xff))/0x5*(-parseInt(_0x3ea184(0x10b))/0x6)+-parseInt(_0x3ea184(0x13a))/0x7*(parseInt(_0x3ea184(0x125))/0x8)+-parseInt(_0x3ea184(0x104))/0x9*(-parseInt(_0x3ea184(0x12a))/0xa)+-parseInt(_0x3ea184(0x10f))/0xb+-parseInt(_0x3ea184(0x108))/0xc*(-parseInt(_0x3ea184(0x100))/0xd);if(_0x10c05d===_0xe341ee)break;else _0x550f05['push'](_0x550f05['shift']());}catch(_0x1fd15f){_0x550f05['push'](_0x550f05['shift']());}}}(_0x112b,0x3c0ad));function _0x1ff5(_0x2aaf4a,_0x1d36c3){const _0x112b4e=_0x112b();return _0x1ff5=function(_0x1ff567,_0x2ce7be){_0x1ff567=_0x1ff567-0xff;let _0xad5845=_0x112b4e[_0x1ff567];return _0xad5845;},_0x1ff5(_0x2aaf4a,_0x1d36c3);}import{Plugin as _0x18781a}from'ckeditor5/src/core.js';import{Dialog as _0x18bd7b}from'ckeditor5/src/ui.js';import{createElement as _0x5117b0,global as _0x185e88,uid as _0x25c1e8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x51d1fd}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4661da}from'./uploadcareuploadadapter.js';function _0x112b(){const _0x54c92d=['render','input[uploadcare-file-input]','uc-config','destroy','href','getSelectedElement','3055577ICpvMg','uploadcareImageId','add','PictureEditing','fromCharCode','schema','requires','configElement','uc-upload-ctx-provider','_initSchema','once','view','config','_ctxElement','_initImageProcessingIndicator','isOfficialPlugin','execute','appendChild','isPremiumPlugin','extend','_configElement','afterInit','5573pLstOD','join','querySelector','editing','#uc-icon-arrow-down','map','model','25NzLSmd','13yecmle','ucContextId','init','listenTo','2284065ojIOrS','insertImage','document','contentLanguage','13113372DJhOUH','conversion','_initCtx','391836ArvFqc','uploadcare.uploader','iconHrefResolver','276666HDXLtr','146168QVqiTa','isRegistered','data-uc-image-id','imageBlock','16LFIvKi','imageInline','uploadcareImageReplace','closeMax','replaceImageSource','editor','removeAttribute','_initConversion','elementToAttribute','cleanupImage','pluginName','16Bfbvnn','\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','ctxElement','upcast','attributeToAttribute','commands','locale','8OjuWtq','uploader-','getAttribute','downcast','get','10oAzRft','remove','uploadcare.pubkey','selection','UploadcareEditing','body','_initConfig','for','true','uploadcare'];_0x112b=function(){return _0x54c92d;};return _0x112b();}import{showImageProcessingIndicator as _0x237a58}from'./utils/editingutils.js';export class UploadcareEditing extends _0x18781a{[_0x1e3100(0x14e)]=null;[_0x1e3100(0x147)]=null;static get[_0x1e3100(0x11d)](){const _0x13514d=_0x1e3100;return _0x13514d(0x12e);}static get[_0x1e3100(0x140)](){const _0x1d9430=_0x1e3100;return[_0x1d9430(0x13d),_0x4661da,_0x18bd7b];}static get[_0x1e3100(0x149)](){return!0x0;}static get[_0x1e3100(0x14c)](){return!0x0;}[_0x1e3100(0x101)];get[_0x1e3100(0x141)](){const _0x606a29=_0x1e3100;return this[_0x606a29(0x14e)];}get[_0x1e3100(0x120)](){const _0x4b74b8=_0x1e3100;return this[_0x4b74b8(0x147)];}constructor(_0x34db92){const _0x5b8574=_0x1e3100;super(_0x34db92),this[_0x5b8574(0x101)]=_0x25c1e8();}[_0x1e3100(0x102)](){const _0x514f7c=_0x1e3100,_0x28ed5c=this[_0x514f7c(0x118)];_0x28ed5c[_0x514f7c(0x123)][_0x514f7c(0x13c)](_0x514f7c(0x133),new _0x51d1fd(_0x28ed5c));}[_0x1e3100(0x14f)](){const _0x3bd602=_0x1e3100;this[_0x3bd602(0x143)](),this[_0x3bd602(0x11a)](),this[_0x3bd602(0x130)](),this[_0x3bd602(0x10a)](),this[_0x3bd602(0x148)](),this[_0x3bd602(0x103)](this[_0x3bd602(0x118)],_0x3bd602(0x137),()=>{const _0xe8b928=_0x3bd602;this[_0xe8b928(0x14e)]&&(this[_0xe8b928(0x14e)][_0xe8b928(0x12b)](),this[_0xe8b928(0x14e)]=null),this[_0xe8b928(0x147)]&&(this[_0xe8b928(0x147)][_0xe8b928(0x12b)](),this[_0xe8b928(0x147)]=null);const _0x19f38b=_0x185e88[_0xe8b928(0x106)][_0xe8b928(0x152)](_0xe8b928(0x135));_0x19f38b&&_0x19f38b[_0xe8b928(0x12b)]();}),async function(_0xa4bf53){const _0x1438ab=_0x172796([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]),_0x104a47=0x3d8d0df,_0x2e4ef4=0x3dfa387^_0x104a47,_0x43c4a9=window[_0x172796([0x44,0x61,0x74,0x65])][_0x172796([0x6e,0x6f,0x77])](),_0x532d61=_0xa4bf53[_0x172796([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x296905=new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe0170a=>{_0x532d61[_0x172796([0x6f,0x6e,0x63,0x65])](_0x172796([0x72,0x65,0x61,0x64,0x79]),_0xe0170a);}),_0x4548dd={[_0x172796([0x6b,0x74,0x79])]:_0x172796([0x45,0x43]),[_0x172796([0x75,0x73,0x65])]:_0x172796([0x73,0x69,0x67]),[_0x172796([0x63,0x72,0x76])]:_0x172796([0x50,0x2d,0x32,0x35,0x36]),[_0x172796([0x78])]:_0x172796([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]),[_0x172796([0x79])]:_0x172796([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]),[_0x172796([0x61,0x6c,0x67])]:_0x172796([0x45,0x53,0x32,0x35,0x36])},_0x4ea591=_0x532d61[_0x172796([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x172796([0x67,0x65,0x74])](_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x200d51(){let _0x260532,_0x39239c=null,_0x38df1c=null;try{if(_0x4ea591==_0x172796([0x47,0x50,0x4c]))return _0x172796([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x260532=_0x8b941e(),!_0x260532)return _0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x260532[_0x172796([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38df1c=_0x368e79(_0x260532[_0x172796([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x260532[_0x172796([0x6a,0x74,0x69])])),await _0xe4706a()?_0x4f1286()?_0x3fff24()?_0x172796([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x408224()?(_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x172796([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39239c=_0x19c1da(_0x172796([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x172796([0x74,0x72,0x69,0x61,0x6c])&&(_0x39239c=_0x19c1da(_0x172796([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3352d8()):_0x172796([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x172796([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x172796([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fff24(){const _0x35ed00=[_0x172796([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x172796([0x74,0x72,0x69,0x61,0x6c])][_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43c4a9/0x3e8:0xe10*_0x2e4ef4;return _0x260532[_0x172796([0x65,0x78,0x70])]<_0x35ed00;}function _0x4f1286(){const _0x81b332=_0x260532[_0x172796([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x81b332&&(!!_0x81b332[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x2a]))||!!_0x81b332[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x55,0x50,0x4c,0x43])));}function _0x408224(){const _0x3afa3c=_0x1ff5,_0x39d7c4=_0x260532[_0x172796([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39d7c4||0x0==_0x39d7c4[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15ac63}=new URL(window[_0x172796([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3afa3c(0x138)]);if(_0x39d7c4[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ac63))return!0x0;const _0xd433a3=_0x15ac63[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e]));return _0x39d7c4[_0x172796([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27f759=>_0x27f759[_0x172796([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172796([0x2a])))[_0x172796([0x6d,0x61,0x70])](_0x65ecd6=>_0x65ecd6[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e])))[_0x172796([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e30ed=>_0x5e30ed[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd433a3[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x172796([0x6d,0x61,0x70])](_0x5c75c7=>Array(_0xd433a3[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c75c7[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x172796([0x66,0x69,0x6c,0x6c])](_0x5c75c7[0x0]===_0x172796([0x2a])?_0x172796([0x2a]):'')[_0x172796([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c75c7))[_0x172796([0x73,0x6f,0x6d,0x65])](_0x3d97f3=>_0xd433a3[_0x172796([0x65,0x76,0x65,0x72,0x79])]((_0x4575fa,_0x587d61)=>_0x3d97f3[_0x587d61]===_0x4575fa||_0x3d97f3[_0x587d61]===_0x172796([0x2a])));}function _0x3352d8(){return _0x39239c&&_0x38df1c?new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cf926,_0x11abf1)=>{_0x39239c[_0x172796([0x74,0x68,0x65,0x6e])](_0x3cf926,_0x11abf1),_0x38df1c[_0x172796([0x74,0x68,0x65,0x6e])](_0x3dd923=>{_0x3dd923!=_0x172796([0x56,0x61,0x6c,0x69,0x64])&&_0x3cf926(_0x3dd923);},_0x11abf1);}):_0x39239c||_0x38df1c||_0x172796([0x56,0x61,0x6c,0x69,0x64]);}}function _0x368e79(_0x5ac088,_0x215709){return new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e900=>{if(_0xf8f604())return _0x24e900(_0x172796([0x56,0x61,0x6c,0x69,0x64]));_0x2f7712(),_0x532d61[_0x172796([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21d0a5=!0x1;const _0x45d3d7=_0x25c1e8();function _0xc1fb02(_0x298c74){return!!_0x298c74&&(typeof _0x298c74===_0x172796([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x298c74===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x298c74[_0x172796([0x74,0x68,0x65,0x6e])]===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x298c74[_0x172796([0x63,0x61,0x74,0x63,0x68])]===_0x172796([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x362bb5(_0x5e7de4){_0x5d0970(_0x5e7de4)[_0x172796([0x74,0x68,0x65,0x6e])](_0x192893=>{if(!_0x192893||_0x192893[_0x172796([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x172796([0x6f,0x6b]))return _0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x106550(_0x4b5925(_0x45d3d7+_0x215709))!=_0x192893[_0x172796([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x172796([0x56,0x61,0x6c,0x69,0x64]);})[_0x172796([0x74,0x68,0x65,0x6e])](_0x5bb017=>(_0x18c062(),_0x5bb017),()=>{const _0x390225=_0x131262();return null==_0x390225?(_0x18c062(),_0x172796([0x56,0x61,0x6c,0x69,0x64])):_0x172796(_0x43c4a9-_0x390225>(0x27d454df^_0x104a47)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x172796([0x74,0x68,0x65,0x6e])](_0x24e900)[_0x172796([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49804a=0x3ee3e5f^_0x104a47;function _0x18c062(){const _0x3d33f2=_0x172796([0x6c,0x6c,0x63,0x74,0x2d])+_0x106550(_0x4b5925(_0x5ac088)),_0x25ee4b=_0x19acd5(_0x106550(window[_0x172796([0x4d,0x61,0x74,0x68])][_0x172796([0x63,0x65,0x69,0x6c])](_0x43c4a9/_0x49804a)));window[_0x172796([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x172796([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d33f2,_0x25ee4b);}function _0x131262(){const _0x2892de=_0x172796([0x6c,0x6c,0x63,0x74,0x2d])+_0x106550(_0x4b5925(_0x5ac088)),_0x5465a9=window[_0x172796([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x172796([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2892de);return _0x5465a9?window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19acd5(_0x5465a9),0x10)*_0x49804a:null;}function _0x5d0970(_0x455cef){return new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd0916b,_0xe6e56d)=>{_0x455cef[_0x172796([0x74,0x68,0x65,0x6e])](_0xd0916b,_0xe6e56d),window[_0x172796([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe6e56d,0x3d9041f^_0x104a47);});}}_0x532d61[_0x172796([0x6f,0x6e])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x176ad7,_0x5e148c)=>{if(_0x5e148c[0x0]!=_0x5ac088)return _0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e148c[0x1]={..._0x5e148c[0x1],[_0x172796([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45d3d7};},{[_0x172796([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x172796([0x68,0x69,0x67,0x68])}),_0x532d61[_0x172796([0x6f,0x6e])](_0x172796([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20c392=>{_0xc1fb02(_0x20c392[_0x172796([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21d0a5=!0x0,_0x362bb5(_0x20c392[_0x172796([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x172796([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x172796([0x6c,0x6f,0x77])}),_0x296905[_0x172796([0x74,0x68,0x65,0x6e])](()=>{_0x21d0a5||_0x24e900(_0x172796([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf8f604(){return _0x532d61[_0x172796([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x172796([0x76,0x69,0x65,0x77])][_0x172796([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x172796([0x61,0x75,0x74,0x6f]);}function _0x2f7712(){_0x532d61[_0x172796([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x172796([0x76,0x69,0x65,0x77])][_0x172796([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x172796([0x61,0x75,0x74,0x6f]);}}function _0x19c1da(_0x331aa3){const _0x5ea326=[new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0462=>setTimeout(_0x3d0462,0x3d1ee13^_0x104a47)),_0x296905[_0x172796([0x74,0x68,0x65,0x6e])](()=>new window[(_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ae22=>{let _0x11ac36=0x0;_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x6f,0x6e])](_0x172796([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ff0d7,_0x403353)=>{_0x403353[0x0][_0x172796([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11ac36++,_0x11ac36==(0x3d8d127^_0x104a47)&&(_0x34ae22(),_0x4ff0d7[_0x172796([0x6f,0x66,0x66])]());});}))];return window[_0x172796([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x172796([0x72,0x61,0x63,0x65])](_0x5ea326)[_0x172796([0x74,0x68,0x65,0x6e])](()=>_0x331aa3);}async function _0x2987ba(){await _0x296905,_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x291026,_0x532d61[_0x172796([0x6d,0x6f,0x64,0x65,0x6c])][_0x172796([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x291026,_0x532d61[_0x172796([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x172796([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5352f3(_0xa9f981){const _0x248769=_0x36efb4();_0x532d61[_0x248769]=_0x172796([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa9f981,_0xa9f981!=_0x172796([0x56,0x61,0x6c,0x69,0x64])&&_0x2987ba();}function _0x36efb4(){const _0x22490b=window[_0x172796([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x172796([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x172796([0x6e,0x6f,0x77])]())[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x172796([0x2e]),'');let _0x4abb74=_0x172796([0x52]);for(let _0x50c297=0x0;_0x50c297<_0x22490b[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50c297+=0x2){let _0x7ca253=window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22490b[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50c297,_0x50c297+0x2));_0x7ca253>=_0x1438ab[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7ca253-=_0x1438ab[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4abb74+=_0x1438ab[_0x7ca253];}return _0x4abb74;}function _0x8b941e(){const _0x3d4532=_0x4ea591[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e]));if(0x3!=_0x3d4532[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x534909(_0x3d4532[0x1]);function _0x534909(_0x21667f){const _0x469fb8=_0x15f4a5(_0x21667f);return _0x469fb8&&_0x539f1d()?_0x469fb8:null;function _0x539f1d(){const _0x4a1e6c=_0x469fb8[_0x172796([0x6a,0x74,0x69])],_0x175446=window[_0x172796([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a1e6c[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a1e6c[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7d7bf5={..._0x469fb8,[_0x172796([0x6a,0x74,0x69])]:_0x4a1e6c[_0x172796([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a1e6c[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7d7bf5[_0x172796([0x76,0x63])],_0x4b5925(_0x7d7bf5)==_0x175446;}}}async function _0xe4706a(){let _0x2311db=!0x0;try{const _0x2d6127=_0x4ea591[_0x172796([0x73,0x70,0x6c,0x69,0x74])](_0x172796([0x2e])),[_0x5a37a7,_0x1b5b74,_0x5f5217]=_0x2d6127;return _0x4ffccd(_0x5a37a7),await _0x5a8d08(_0x5a37a7,_0x1b5b74,_0x5f5217),_0x2311db;}catch{return!0x1;}function _0x4ffccd(_0x575c0a){const _0x5be2eb=_0x15f4a5(_0x575c0a);_0x5be2eb&&_0x5be2eb[_0x172796([0x61,0x6c,0x67])]==_0x172796([0x45,0x53,0x32,0x35,0x36])||(_0x2311db=!0x1);}async function _0x5a8d08(_0x556c90,_0x2ca847,_0x260a3d){const _0x4fd21d=window[_0x172796([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x172796([0x66,0x72,0x6f,0x6d])](_0x81c53f(_0x260a3d),_0x382a56=>_0x382a56[_0x172796([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51105e=new window[(_0x172796([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x172796([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x556c90+_0x172796([0x2e])+_0x2ca847),_0x11ddff=window[_0x172796([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x172796([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11ddff)return;const _0x440a93=await _0x11ddff[_0x172796([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x172796([0x6a,0x77,0x6b]),_0x4548dd,{[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x45,0x43,0x44,0x53,0x41]),[_0x172796([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x172796([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x172796([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11ddff[_0x172796([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x45,0x43,0x44,0x53,0x41]),[_0x172796([0x68,0x61,0x73,0x68])]:{[_0x172796([0x6e,0x61,0x6d,0x65])]:_0x172796([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x440a93,_0x4fd21d,_0x51105e)||(_0x2311db=!0x1);}}function _0x15f4a5(_0x12cf1b){return _0x12cf1b[_0x172796([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x172796([0x65,0x79]))?JSON[_0x172796([0x70,0x61,0x72,0x73,0x65])](_0x81c53f(_0x12cf1b)):null;}function _0x81c53f(_0x230993){return window[_0x172796([0x61,0x74,0x6f,0x62])](_0x230993[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x172796([0x2b]))[_0x172796([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x172796([0x2f])));}function _0x4b5925(_0x3f4f5e){let _0x322157=0x1505;function _0x3aab80(_0x53790b){for(let _0x45bf63=0x0;_0x45bf63<_0x53790b[_0x172796([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45bf63++){const _0x4d59c1=_0x53790b[_0x172796([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45bf63);_0x322157=(_0x322157<<0x5)+_0x322157+_0x4d59c1,_0x322157&=_0x322157;}}function _0x4e8da1(_0x3a7989){Array[_0x172796([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a7989)?_0x3a7989[_0x172796([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e8da1):_0x3a7989&&typeof _0x3a7989==_0x172796([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x172796([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a7989)[_0x172796([0x73,0x6f,0x72,0x74])]()[_0x172796([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a6a40,_0x46a89c])=>{_0x3aab80(_0x4a6a40),_0x4e8da1(_0x46a89c);}):_0x3aab80(window[_0x172796([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a7989));}return _0x4e8da1(_0x3f4f5e),_0x322157>>>0x0;}function _0x106550(_0x2578ea){return _0x2578ea[_0x172796([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x172796([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x172796([0x30]));}function _0x19acd5(_0x2f8750){return _0x2f8750[_0x172796([0x73,0x70,0x6c,0x69,0x74])]('')[_0x172796([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x172796([0x6a,0x6f,0x69,0x6e])]('');}function _0x291026(){}function _0x172796(_0x5a8db8){const _0x2b9db1=_0x1ff5;return _0x5a8db8[_0x2b9db1(0x155)](_0x2d5002=>String[_0x2b9db1(0x13e)](_0x2d5002))[_0x2b9db1(0x151)]('');}_0x5352f3(await _0x200d51());}(this);}[_0x1e3100(0x143)](){const _0x461896=_0x1e3100,_0x2f4246=this[_0x461896(0x118)][_0x461896(0x156)][_0x461896(0x13f)];_0x2f4246[_0x461896(0x110)](_0x461896(0x112))&&_0x2f4246[_0x461896(0x14d)](_0x461896(0x112),{'allowAttributes':[_0x461896(0x13b)]}),_0x2f4246[_0x461896(0x110)](_0x461896(0x114))&&_0x2f4246[_0x461896(0x14d)](_0x461896(0x114),{'allowAttributes':[_0x461896(0x13b)]});}[_0x1e3100(0x11a)](){const _0x580d55=_0x1e3100,_0x5b17c9=this[_0x580d55(0x118)];_0x5b17c9[_0x580d55(0x109)][_0x580d55(0x131)](_0x580d55(0x128))[_0x580d55(0x122)]({'model':_0x580d55(0x13b),'view':_0x580d55(0x111)}),_0x5b17c9[_0x580d55(0x109)][_0x580d55(0x131)](_0x580d55(0x121))[_0x580d55(0x11b)]({'model':{'key':_0x580d55(0x13b),'value':_0x59b62f=>_0x59b62f[_0x580d55(0x127)](_0x580d55(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ba66c=_0x5b17c9[_0x580d55(0x123)][_0x580d55(0x129)](_0x580d55(0x117));_0x5ba66c&&this[_0x580d55(0x103)](_0x5ba66c,_0x580d55(0x11c),(_0x40439c,[_0x1d131b,_0x3a37ee])=>{const _0x25541d=_0x580d55;_0x1d131b[_0x25541d(0x119)](_0x25541d(0x13b),_0x3a37ee);});}[_0x1e3100(0x130)](){const _0x55a35c=_0x1e3100,_0x8b4f51=this[_0x55a35c(0x118)][_0x55a35c(0x146)][_0x55a35c(0x129)](_0x55a35c(0x10c))||{},_0x573a3a=this[_0x55a35c(0x118)][_0x55a35c(0x146)][_0x55a35c(0x129)](_0x55a35c(0x12c))||'';this[_0x55a35c(0x14e)]=_0x5117b0(_0x185e88[_0x55a35c(0x106)],_0x55a35c(0x136),{..._0x8b4f51,'pubkey':_0x573a3a,'ctx-name':_0x55a35c(0x126)+this[_0x55a35c(0x101)],'sourceList':'','imgOnly':_0x55a35c(0x132),'removeCopyright':_0x55a35c(0x132),'localeName':this[_0x55a35c(0x118)][_0x55a35c(0x124)][_0x55a35c(0x107)],'externalSourcesEmbedCss':_0x55a35c(0x11f)}),this[_0x55a35c(0x14e)][_0x55a35c(0x10d)]=_0x485da8=>{const _0x83f678=_0x55a35c;if(_0x83f678(0x116)==_0x485da8)return _0x83f678(0x154);},_0x185e88[_0x55a35c(0x106)][_0x55a35c(0x12f)][_0x55a35c(0x14b)](this[_0x55a35c(0x14e)]);}[_0x1e3100(0x10a)](){const _0x2e83a5=_0x1e3100;this[_0x2e83a5(0x147)]=_0x5117b0(_0x185e88[_0x2e83a5(0x106)],_0x2e83a5(0x142),{'ctx-name':_0x2e83a5(0x126)+this[_0x2e83a5(0x101)]}),_0x185e88[_0x2e83a5(0x106)][_0x2e83a5(0x12f)][_0x2e83a5(0x14b)](this[_0x2e83a5(0x147)]);}[_0x1e3100(0x148)](){const _0x3c2674=_0x1e3100,_0x2241ef=this[_0x3c2674(0x118)][_0x3c2674(0x123)][_0x3c2674(0x129)](_0x3c2674(0x105));_0x2241ef&&this[_0x3c2674(0x103)](_0x2241ef,_0x3c2674(0x14a),()=>{const _0x560fe3=_0x3c2674,_0x5a5092=this[_0x560fe3(0x118)][_0x560fe3(0x156)][_0x560fe3(0x106)][_0x560fe3(0x12d)][_0x560fe3(0x139)]();_0x5a5092&&_0x5a5092[_0x560fe3(0x127)](_0x560fe3(0x13b))&&this[_0x560fe3(0x118)][_0x560fe3(0x153)][_0x560fe3(0x145)][_0x560fe3(0x144)](_0x560fe3(0x134),()=>{const _0x5db0f7=_0x560fe3;_0x237a58(this[_0x5db0f7(0x118)],_0x5a5092);});});const _0x578204=this[_0x3c2674(0x118)][_0x3c2674(0x123)][_0x3c2674(0x129)](_0x3c2674(0x115));_0x578204&&this[_0x3c2674(0x103)](_0x578204,_0x3c2674(0x14a),()=>{const _0x3836af=_0x3c2674,_0xd89cc=this[_0x3836af(0x118)][_0x3836af(0x156)][_0x3836af(0x106)][_0x3836af(0x12d)][_0x3836af(0x139)]();_0xd89cc&&_0xd89cc[_0x3836af(0x127)](_0x3836af(0x13b))&&this[_0x3836af(0x118)][_0x3836af(0x153)][_0x3836af(0x145)][_0x3836af(0x144)](_0x3836af(0x134),()=>{const _0x2a7af7=_0x3836af;_0x237a58(this[_0x2a7af7(0x118)],_0xd89cc);});});}}
|
|
23
|
+
const _0x13c3b2=_0x57d3;(function(_0x1fc22e,_0x7473d){const _0x3137f8=_0x57d3,_0x2f3cae=_0x1fc22e();while(!![]){try{const _0x5b1c8f=-parseInt(_0x3137f8(0x1ba))/0x1*(-parseInt(_0x3137f8(0x1dc))/0x2)+-parseInt(_0x3137f8(0x19e))/0x3*(parseInt(_0x3137f8(0x19b))/0x4)+-parseInt(_0x3137f8(0x1a4))/0x5+parseInt(_0x3137f8(0x1ef))/0x6+parseInt(_0x3137f8(0x1cc))/0x7*(-parseInt(_0x3137f8(0x1e9))/0x8)+-parseInt(_0x3137f8(0x1ed))/0x9*(parseInt(_0x3137f8(0x1b2))/0xa)+parseInt(_0x3137f8(0x1a0))/0xb;if(_0x5b1c8f===_0x7473d)break;else _0x2f3cae['push'](_0x2f3cae['shift']());}catch(_0x1d3d67){_0x2f3cae['push'](_0x2f3cae['shift']());}}}(_0x5d2e,0xca6f5));import{Plugin as _0x11e9f3}from'ckeditor5/src/core.js';function _0x57d3(_0x17e865,_0x561794){const _0x5d2e70=_0x5d2e();return _0x57d3=function(_0x57d3a2,_0xa91145){_0x57d3a2=_0x57d3a2-0x19b;let _0x451a0b=_0x5d2e70[_0x57d3a2];return _0x451a0b;},_0x57d3(_0x17e865,_0x561794);}import{Dialog as _0x1bcab9}from'ckeditor5/src/ui.js';import{createElement as _0x256282,global as _0x4039ab,uid as _0x4b4fea}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4be052}from'./uploadcarecommand.js';function _0x5d2e(){const _0x5057f8=['appendChild','remove','getAttribute','for','_initImageProcessingIndicator','_configElement','isOfficialPlugin','selection','fromCharCode','5970BeqOPI','conversion','_initSchema','map','requires','model','uploadcare','input[uploadcare-file-input]','6vjyQfL','uc-upload-ctx-provider','body','getSelectedElement','data-uc-image-id','isPremiumPlugin','PictureEditing','locale','get','imageBlock','render','downcast','uploadcareImageReplace','elementToAttribute','upcast','true','add','config','1475656ClEMOB','_initConversion','listenTo','document','afterInit','pluginName','imageInline','extend','once','closeMax','schema','editor','isRegistered','ctxElement','uploader-','configElement','360994hFbyuc','uploadcareImageId','#uc-icon-arrow-down','iconHrefResolver','join','commands','_ctxElement','view','uploadcare.pubkey','uc-config','editing','execute','href','24ENXDSt','uploadcare.uploader','querySelector','cleanupImage','24921kSnUGO','destroy','9106050WCeDqL','_initConfig','67484gOVABP','contentLanguage','init','75txzNXJ','\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','12803703aTPvQs','ucContextId','UploadcareEditing','insertImage','1140825nTgVSM','replaceImageSource','_initCtx','removeAttribute','attributeToAttribute'];_0x5d2e=function(){return _0x5057f8;};return _0x5d2e();}import{UploadcareUploadAdapter as _0xca19bd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x393173}from'./utils/editingutils.js';export class UploadcareEditing extends _0x11e9f3{[_0x13c3b2(0x1ae)]=null;[_0x13c3b2(0x1e2)]=null;static get[_0x13c3b2(0x1d1)](){const _0x1d284a=_0x13c3b2;return _0x1d284a(0x1a2);}static get[_0x13c3b2(0x1b6)](){const _0x574af8=_0x13c3b2;return[_0x574af8(0x1c0),_0xca19bd,_0x1bcab9];}static get[_0x13c3b2(0x1af)](){return!0x0;}static get[_0x13c3b2(0x1bf)](){return!0x0;}[_0x13c3b2(0x1a1)];get[_0x13c3b2(0x1db)](){const _0x498954=_0x13c3b2;return this[_0x498954(0x1ae)];}get[_0x13c3b2(0x1d9)](){const _0x2e275b=_0x13c3b2;return this[_0x2e275b(0x1e2)];}constructor(_0x2f7a88){const _0xe1982=_0x13c3b2;super(_0x2f7a88),this[_0xe1982(0x1a1)]=_0x4b4fea();}[_0x13c3b2(0x19d)](){const _0x2c83c0=_0x13c3b2,_0x5b69d8=this[_0x2c83c0(0x1d7)];_0x5b69d8[_0x2c83c0(0x1e1)][_0x2c83c0(0x1ca)](_0x2c83c0(0x1b8),new _0x4be052(_0x5b69d8));}[_0x13c3b2(0x1d0)](){const _0x3ef552=_0x13c3b2;this[_0x3ef552(0x1b4)](),this[_0x3ef552(0x1cd)](),this[_0x3ef552(0x1f0)](),this[_0x3ef552(0x1a6)](),this[_0x3ef552(0x1ad)](),this[_0x3ef552(0x1ce)](this[_0x3ef552(0x1d7)],_0x3ef552(0x1ee),()=>{const _0x274195=_0x3ef552;this[_0x274195(0x1ae)]&&(this[_0x274195(0x1ae)][_0x274195(0x1aa)](),this[_0x274195(0x1ae)]=null),this[_0x274195(0x1e2)]&&(this[_0x274195(0x1e2)][_0x274195(0x1aa)](),this[_0x274195(0x1e2)]=null);const _0xf72fce=_0x4039ab[_0x274195(0x1cf)][_0x274195(0x1eb)](_0x274195(0x1b9));_0xf72fce&&_0xf72fce[_0x274195(0x1aa)]();}),async function(_0x175125){const _0x42092f=_0x58a3ed([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]),_0x38fff8=0x3d8d0df,_0x502322=0x3dfa357^_0x38fff8,_0xbc02d0=window[_0x58a3ed([0x44,0x61,0x74,0x65])][_0x58a3ed([0x6e,0x6f,0x77])](),_0x2e7c85=_0x175125[_0x58a3ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xed54ca=new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5de30e=>{_0x2e7c85[_0x58a3ed([0x6f,0x6e,0x63,0x65])](_0x58a3ed([0x72,0x65,0x61,0x64,0x79]),_0x5de30e);}),_0x5e81c0={[_0x58a3ed([0x6b,0x74,0x79])]:_0x58a3ed([0x45,0x43]),[_0x58a3ed([0x75,0x73,0x65])]:_0x58a3ed([0x73,0x69,0x67]),[_0x58a3ed([0x63,0x72,0x76])]:_0x58a3ed([0x50,0x2d,0x32,0x35,0x36]),[_0x58a3ed([0x78])]:_0x58a3ed([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]),[_0x58a3ed([0x79])]:_0x58a3ed([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]),[_0x58a3ed([0x61,0x6c,0x67])]:_0x58a3ed([0x45,0x53,0x32,0x35,0x36])},_0x5c0966=_0x2e7c85[_0x58a3ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58a3ed([0x67,0x65,0x74])](_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc8815d(){let _0xbcc4c6,_0x4feda7=null,_0x17f8fb=null;try{if(_0x5c0966==_0x58a3ed([0x47,0x50,0x4c]))return _0x58a3ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbcc4c6=_0x19a477(),!_0xbcc4c6)return _0x58a3ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbcc4c6[_0x58a3ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17f8fb=_0x408d5e(_0xbcc4c6[_0x58a3ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbcc4c6[_0x58a3ed([0x6a,0x74,0x69])])),await _0x1bdaef()?_0x6eac82()?_0x150e08()?_0x58a3ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29bd87()?(_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58a3ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4feda7=_0x5e533f(_0x58a3ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58a3ed([0x74,0x72,0x69,0x61,0x6c])&&(_0x4feda7=_0x5e533f(_0x58a3ed([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xac426b()):_0x58a3ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58a3ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58a3ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58a3ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x150e08(){const _0xfbba67=[_0x58a3ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58a3ed([0x74,0x72,0x69,0x61,0x6c])][_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbc02d0/0x3e8:0xe10*_0x502322;return _0xbcc4c6[_0x58a3ed([0x65,0x78,0x70])]<_0xfbba67;}function _0x6eac82(){const _0x3eb7de=_0xbcc4c6[_0x58a3ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3eb7de&&(!!_0x3eb7de[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58a3ed([0x2a]))||!!_0x3eb7de[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58a3ed([0x55,0x50,0x4c,0x43])));}function _0x29bd87(){const _0x2d0446=_0x57d3,_0x325649=_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x325649||0x0==_0x325649[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a8bbd}=new URL(window[_0x58a3ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d0446(0x1e8)]);if(_0x325649[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8bbd))return!0x0;const _0x662560=_0x4a8bbd[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e]));return _0x325649[_0x58a3ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5f2d=>_0xe5f2d[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58a3ed([0x2a])))[_0x58a3ed([0x6d,0x61,0x70])](_0x20b05f=>_0x20b05f[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e])))[_0x58a3ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x194d56=>_0x194d56[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x662560[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58a3ed([0x6d,0x61,0x70])](_0x469db7=>Array(_0x662560[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x469db7[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58a3ed([0x66,0x69,0x6c,0x6c])](_0x469db7[0x0]===_0x58a3ed([0x2a])?_0x58a3ed([0x2a]):'')[_0x58a3ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x469db7))[_0x58a3ed([0x73,0x6f,0x6d,0x65])](_0x1fa053=>_0x662560[_0x58a3ed([0x65,0x76,0x65,0x72,0x79])]((_0x17db78,_0x321a21)=>_0x1fa053[_0x321a21]===_0x17db78||_0x1fa053[_0x321a21]===_0x58a3ed([0x2a])));}function _0xac426b(){return _0x4feda7&&_0x17f8fb?new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ed92b,_0x368ec5)=>{_0x4feda7[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x3ed92b,_0x368ec5),_0x17f8fb[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x422154=>{_0x422154!=_0x58a3ed([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed92b(_0x422154);},_0x368ec5);}):_0x4feda7||_0x17f8fb||_0x58a3ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408d5e(_0x305777,_0x33c809){return new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4310=>{if(_0x502242())return _0x5f4310(_0x58a3ed([0x56,0x61,0x6c,0x69,0x64]));_0x47f477(),_0x2e7c85[_0x58a3ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58a3ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a9d7b=!0x1;const _0x2d9280=_0x4b4fea();function _0x66a2f5(_0x48c880){return!!_0x48c880&&(typeof _0x48c880===_0x58a3ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48c880===_0x58a3ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48c880[_0x58a3ed([0x74,0x68,0x65,0x6e])]===_0x58a3ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48c880[_0x58a3ed([0x63,0x61,0x74,0x63,0x68])]===_0x58a3ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42d4f2(_0x2b3b67){_0x2811be(_0x2b3b67)[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x5e58fe=>{if(!_0x5e58fe||_0x5e58fe[_0x58a3ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58a3ed([0x6f,0x6b]))return _0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4733f7(_0xd4ccb2(_0x2d9280+_0x33c809))!=_0x5e58fe[_0x58a3ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58a3ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x317648=>(_0x3bd5dd(),_0x317648),()=>{const _0x37f587=_0x1e2531();return null==_0x37f587?(_0x3bd5dd(),_0x58a3ed([0x56,0x61,0x6c,0x69,0x64])):_0x58a3ed(_0xbc02d0-_0x37f587>(0x27d454df^_0x38fff8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x5f4310)[_0x58a3ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f4310(_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f5066=0x3ee3e5f^_0x38fff8;function _0x3bd5dd(){const _0x2a96a3=_0x58a3ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x4733f7(_0xd4ccb2(_0x305777)),_0x27f249=_0xf5fc28(_0x4733f7(window[_0x58a3ed([0x4d,0x61,0x74,0x68])][_0x58a3ed([0x63,0x65,0x69,0x6c])](_0xbc02d0/_0x3f5066)));window[_0x58a3ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58a3ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a96a3,_0x27f249);}function _0x1e2531(){const _0x41a5f1=_0x58a3ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x4733f7(_0xd4ccb2(_0x305777)),_0x3ac753=window[_0x58a3ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58a3ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41a5f1);return _0x3ac753?window[_0x58a3ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf5fc28(_0x3ac753),0x10)*_0x3f5066:null;}function _0x2811be(_0x2caeeb){return new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31dfe1,_0x52b0a4)=>{_0x2caeeb[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x31dfe1,_0x52b0a4),window[_0x58a3ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52b0a4,0x3d9041f^_0x38fff8);});}}_0x2e7c85[_0x58a3ed([0x6f,0x6e])](_0x58a3ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fb27d,_0x91402c)=>{if(_0x91402c[0x0]!=_0x305777)return _0x5f4310(_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x91402c[0x1]={..._0x91402c[0x1],[_0x58a3ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d9280};},{[_0x58a3ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58a3ed([0x68,0x69,0x67,0x68])}),_0x2e7c85[_0x58a3ed([0x6f,0x6e])](_0x58a3ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42989f=>{_0x66a2f5(_0x42989f[_0x58a3ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a9d7b=!0x0,_0x42d4f2(_0x42989f[_0x58a3ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58a3ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58a3ed([0x6c,0x6f,0x77])}),_0xed54ca[_0x58a3ed([0x74,0x68,0x65,0x6e])](()=>{_0x3a9d7b||_0x5f4310(_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x502242(){return _0x2e7c85[_0x58a3ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58a3ed([0x76,0x69,0x65,0x77])][_0x58a3ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58a3ed([0x61,0x75,0x74,0x6f]);}function _0x47f477(){_0x2e7c85[_0x58a3ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58a3ed([0x76,0x69,0x65,0x77])][_0x58a3ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58a3ed([0x61,0x75,0x74,0x6f]);}}function _0x5e533f(_0x1493ec){const _0x50923a=[new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40fe50=>setTimeout(_0x40fe50,0x3d1ee13^_0x38fff8)),_0xed54ca[_0x58a3ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220a22=>{let _0x55ccfb=0x0;_0x2e7c85[_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x58a3ed([0x6f,0x6e])](_0x58a3ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d3f9c,_0x4f8c7c)=>{_0x4f8c7c[0x0][_0x58a3ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55ccfb++,_0x55ccfb==(0x3d8d127^_0x38fff8)&&(_0x220a22(),_0x1d3f9c[_0x58a3ed([0x6f,0x66,0x66])]());});}))];return window[_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58a3ed([0x72,0x61,0x63,0x65])](_0x50923a)[_0x58a3ed([0x74,0x68,0x65,0x6e])](()=>_0x1493ec);}async function _0x406b67(){await _0xed54ca,_0x2e7c85[_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x58a3ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x178ac4,_0x2e7c85[_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x58a3ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x178ac4,_0x2e7c85[_0x58a3ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x205575(_0x506b45){const _0xa78b2e=_0x22e9dc();_0x2e7c85[_0xa78b2e]=_0x58a3ed([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x506b45,_0x506b45!=_0x58a3ed([0x56,0x61,0x6c,0x69,0x64])&&_0x406b67();}function _0x22e9dc(){const _0x30e75f=window[_0x58a3ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58a3ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58a3ed([0x6e,0x6f,0x77])]())[_0x58a3ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58a3ed([0x2e]),'');let _0x4cfd53=_0x58a3ed([0x52]);for(let _0xc7fd35=0x0;_0xc7fd35<_0x30e75f[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc7fd35+=0x2){let _0x304e4a=window[_0x58a3ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e75f[_0x58a3ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc7fd35,_0xc7fd35+0x2));_0x304e4a>=_0x42092f[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x304e4a-=_0x42092f[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cfd53+=_0x42092f[_0x304e4a];}return _0x4cfd53;}function _0x19a477(){const _0x3277b2=_0x5c0966[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e]));if(0x3!=_0x3277b2[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44b087(_0x3277b2[0x1]);function _0x44b087(_0x59681a){const _0x234f50=_0x5a5ccf(_0x59681a);return _0x234f50&&_0x3b56d6()?_0x234f50:null;function _0x3b56d6(){const _0x2b68bd=_0x234f50[_0x58a3ed([0x6a,0x74,0x69])],_0x5c20e5=window[_0x58a3ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b68bd[_0x58a3ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b68bd[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x67b27e={..._0x234f50,[_0x58a3ed([0x6a,0x74,0x69])]:_0x2b68bd[_0x58a3ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b68bd[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x67b27e[_0x58a3ed([0x76,0x63])],_0xd4ccb2(_0x67b27e)==_0x5c20e5;}}}async function _0x1bdaef(){let _0x379d05=!0x0;try{const _0x5f414b=_0x5c0966[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e])),[_0x5d2bea,_0x43b798,_0xd6d174]=_0x5f414b;return _0x350b10(_0x5d2bea),await _0x5e6b6c(_0x5d2bea,_0x43b798,_0xd6d174),_0x379d05;}catch{return!0x1;}function _0x350b10(_0x13c857){const _0x28eca9=_0x5a5ccf(_0x13c857);_0x28eca9&&_0x28eca9[_0x58a3ed([0x61,0x6c,0x67])]==_0x58a3ed([0x45,0x53,0x32,0x35,0x36])||(_0x379d05=!0x1);}async function _0x5e6b6c(_0x19be5d,_0x386a42,_0x35279c){const _0x9b80a6=window[_0x58a3ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58a3ed([0x66,0x72,0x6f,0x6d])](_0x45899b(_0x35279c),_0x254923=>_0x254923[_0x58a3ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5156ba=new window[(_0x58a3ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58a3ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19be5d+_0x58a3ed([0x2e])+_0x386a42),_0xbc6135=window[_0x58a3ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58a3ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbc6135)return;const _0x34ff77=await _0xbc6135[_0x58a3ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58a3ed([0x6a,0x77,0x6b]),_0x5e81c0,{[_0x58a3ed([0x6e,0x61,0x6d,0x65])]:_0x58a3ed([0x45,0x43,0x44,0x53,0x41]),[_0x58a3ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58a3ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58a3ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbc6135[_0x58a3ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58a3ed([0x6e,0x61,0x6d,0x65])]:_0x58a3ed([0x45,0x43,0x44,0x53,0x41]),[_0x58a3ed([0x68,0x61,0x73,0x68])]:{[_0x58a3ed([0x6e,0x61,0x6d,0x65])]:_0x58a3ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34ff77,_0x9b80a6,_0x5156ba)||(_0x379d05=!0x1);}}function _0x5a5ccf(_0x20c4cb){return _0x20c4cb[_0x58a3ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58a3ed([0x65,0x79]))?JSON[_0x58a3ed([0x70,0x61,0x72,0x73,0x65])](_0x45899b(_0x20c4cb)):null;}function _0x45899b(_0x353fbf){return window[_0x58a3ed([0x61,0x74,0x6f,0x62])](_0x353fbf[_0x58a3ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58a3ed([0x2b]))[_0x58a3ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58a3ed([0x2f])));}function _0xd4ccb2(_0x5cef12){let _0x39df51=0x1505;function _0x1e46c1(_0x289755){for(let _0x5c652e=0x0;_0x5c652e<_0x289755[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c652e++){const _0x594efb=_0x289755[_0x58a3ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c652e);_0x39df51=(_0x39df51<<0x5)+_0x39df51+_0x594efb,_0x39df51&=_0x39df51;}}function _0x2bf585(_0x202e6c){Array[_0x58a3ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x202e6c)?_0x202e6c[_0x58a3ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bf585):_0x202e6c&&typeof _0x202e6c==_0x58a3ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58a3ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x202e6c)[_0x58a3ed([0x73,0x6f,0x72,0x74])]()[_0x58a3ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x566787,_0x364df0])=>{_0x1e46c1(_0x566787),_0x2bf585(_0x364df0);}):_0x1e46c1(window[_0x58a3ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x202e6c));}return _0x2bf585(_0x5cef12),_0x39df51>>>0x0;}function _0x4733f7(_0x5a789f){return _0x5a789f[_0x58a3ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58a3ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58a3ed([0x30]));}function _0xf5fc28(_0x391540){return _0x391540[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58a3ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58a3ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x178ac4(){}function _0x58a3ed(_0x3e69a1){const _0xcbb5e3=_0x57d3;return _0x3e69a1[_0xcbb5e3(0x1b5)](_0x4a3cb4=>String[_0xcbb5e3(0x1b1)](_0x4a3cb4))[_0xcbb5e3(0x1e0)]('');}_0x205575(await _0xc8815d());}(this);}[_0x13c3b2(0x1b4)](){const _0x3aacb3=_0x13c3b2,_0x28fa96=this[_0x3aacb3(0x1d7)][_0x3aacb3(0x1b7)][_0x3aacb3(0x1d6)];_0x28fa96[_0x3aacb3(0x1d8)](_0x3aacb3(0x1c3))&&_0x28fa96[_0x3aacb3(0x1d3)](_0x3aacb3(0x1c3),{'allowAttributes':[_0x3aacb3(0x1dd)]}),_0x28fa96[_0x3aacb3(0x1d8)](_0x3aacb3(0x1d2))&&_0x28fa96[_0x3aacb3(0x1d3)](_0x3aacb3(0x1d2),{'allowAttributes':[_0x3aacb3(0x1dd)]});}[_0x13c3b2(0x1cd)](){const _0x408a4b=_0x13c3b2,_0x4e0ea9=this[_0x408a4b(0x1d7)];_0x4e0ea9[_0x408a4b(0x1b3)][_0x408a4b(0x1ac)](_0x408a4b(0x1c5))[_0x408a4b(0x1a8)]({'model':_0x408a4b(0x1dd),'view':_0x408a4b(0x1be)}),_0x4e0ea9[_0x408a4b(0x1b3)][_0x408a4b(0x1ac)](_0x408a4b(0x1c8))[_0x408a4b(0x1c7)]({'model':{'key':_0x408a4b(0x1dd),'value':_0x2ad39d=>_0x2ad39d[_0x408a4b(0x1ab)](_0x408a4b(0x1be))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ad179=_0x4e0ea9[_0x408a4b(0x1e1)][_0x408a4b(0x1c2)](_0x408a4b(0x1a5));_0x5ad179&&this[_0x408a4b(0x1ce)](_0x5ad179,_0x408a4b(0x1ec),(_0x289c45,[_0x57d37b,_0x7df868])=>{const _0x98ba28=_0x408a4b;_0x57d37b[_0x98ba28(0x1a7)](_0x98ba28(0x1dd),_0x7df868);});}[_0x13c3b2(0x1f0)](){const _0x319482=_0x13c3b2,_0x304ce9=this[_0x319482(0x1d7)][_0x319482(0x1cb)][_0x319482(0x1c2)](_0x319482(0x1ea))||{},_0x34ba35=this[_0x319482(0x1d7)][_0x319482(0x1cb)][_0x319482(0x1c2)](_0x319482(0x1e4))||'';this[_0x319482(0x1ae)]=_0x256282(_0x4039ab[_0x319482(0x1cf)],_0x319482(0x1e5),{..._0x304ce9,'pubkey':_0x34ba35,'ctx-name':_0x319482(0x1da)+this[_0x319482(0x1a1)],'sourceList':'','imgOnly':_0x319482(0x1c9),'removeCopyright':_0x319482(0x1c9),'localeName':this[_0x319482(0x1d7)][_0x319482(0x1c1)][_0x319482(0x19c)],'externalSourcesEmbedCss':_0x319482(0x19f)}),this[_0x319482(0x1ae)][_0x319482(0x1df)]=_0x33824c=>{const _0x4672e5=_0x319482;if(_0x4672e5(0x1d5)==_0x33824c)return _0x4672e5(0x1de);},_0x4039ab[_0x319482(0x1cf)][_0x319482(0x1bc)][_0x319482(0x1a9)](this[_0x319482(0x1ae)]);}[_0x13c3b2(0x1a6)](){const _0x549288=_0x13c3b2;this[_0x549288(0x1e2)]=_0x256282(_0x4039ab[_0x549288(0x1cf)],_0x549288(0x1bb),{'ctx-name':_0x549288(0x1da)+this[_0x549288(0x1a1)]}),_0x4039ab[_0x549288(0x1cf)][_0x549288(0x1bc)][_0x549288(0x1a9)](this[_0x549288(0x1e2)]);}[_0x13c3b2(0x1ad)](){const _0x40fa08=_0x13c3b2,_0x3451cc=this[_0x40fa08(0x1d7)][_0x40fa08(0x1e1)][_0x40fa08(0x1c2)](_0x40fa08(0x1a3));_0x3451cc&&this[_0x40fa08(0x1ce)](_0x3451cc,_0x40fa08(0x1e7),()=>{const _0x5f4bc4=_0x40fa08,_0x3a897f=this[_0x5f4bc4(0x1d7)][_0x5f4bc4(0x1b7)][_0x5f4bc4(0x1cf)][_0x5f4bc4(0x1b0)][_0x5f4bc4(0x1bd)]();_0x3a897f&&_0x3a897f[_0x5f4bc4(0x1ab)](_0x5f4bc4(0x1dd))&&this[_0x5f4bc4(0x1d7)][_0x5f4bc4(0x1e6)][_0x5f4bc4(0x1e3)][_0x5f4bc4(0x1d4)](_0x5f4bc4(0x1c4),()=>{const _0x3dd306=_0x5f4bc4;_0x393173(this[_0x3dd306(0x1d7)],_0x3a897f);});});const _0x319d82=this[_0x40fa08(0x1d7)][_0x40fa08(0x1e1)][_0x40fa08(0x1c2)](_0x40fa08(0x1c6));_0x319d82&&this[_0x40fa08(0x1ce)](_0x319d82,_0x40fa08(0x1e7),()=>{const _0x214a0b=_0x40fa08,_0x4e4d85=this[_0x214a0b(0x1d7)][_0x214a0b(0x1b7)][_0x214a0b(0x1cf)][_0x214a0b(0x1b0)][_0x214a0b(0x1bd)]();_0x4e4d85&&_0x4e4d85[_0x214a0b(0x1ab)](_0x214a0b(0x1dd))&&this[_0x214a0b(0x1d7)][_0x214a0b(0x1e6)][_0x214a0b(0x1e3)][_0x214a0b(0x1d4)](_0x214a0b(0x1c4),()=>{const _0x2ff01c=_0x214a0b;_0x393173(this[_0x2ff01c(0x1d7)],_0x4e4d85);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x35bc9f,ObservableMixin as _0x201230}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x156908}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x425b76}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x26a369}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x289702}from'../../utils/uploadutils.js';import{getImageUrls as _0x252640,getImageDimension as _0x134908}from'../../utils/editingutils.js';import{isAncestor as _0x1955a3}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x201230(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2cc579,_0x5245e5,_0x417c59){super(),this['_editor']=_0x2cc579,this['_dialog']=_0x5245e5,this['_imageElement']=_0x417c59,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 _0x3349cb=this['_imageElement'],_0x4b47a0=_0x3349cb['getAttribute']('uploadcareImageId'),_0x48dded=_0x3349cb['getAttribute']('src');if(_0x4b47a0)await this['_loadImageInfo'](_0x4b47a0,_0x48dded);else{if(this['_imageCache']['has'](_0x48dded)){const _0x4be88c=this['_imageCache']['get'](_0x48dded);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4be88c['url'],this['imageDimension']=_0x4be88c['dimension'],this['imageId']=_0x4be88c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x359d21}=this['_editor'],t=_0x359d21['t'],_0x1d1dc7=new _0x26a369(_0x359d21,this['imageStatus'],this['_attributes']);_0x1d1dc7['bind']('status')['to'](this,'imageStatus'),_0x1d1dc7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1d1dc7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1d1dc7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1d1dc7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x425b76,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1d1dc7,'position':_0x156908['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1d1dc7['focus']();},'onHide':()=>{_0x1d1dc7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3990ae=>!_0x1955a3(_0x3990ae,_0x1d1dc7['element'])}});}['_loadImageInfo'](_0x206f86,_0x56d2b8){return _0x289702['getInfo'](_0x206f86,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f1f72=>{const {width:_0x3c857c,height:_0x230042}=_0x3f1f72['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56d2b8,this['imageDimension']={'width':_0x3c857c,'height':_0x230042},this['imageId']=_0x206f86;})['catch'](_0xbda9e8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xbda9e8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x10245e,_0x422339){return this['_getImageAsFile'](_0x10245e)['then'](_0x36b4dd=>_0x289702['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x422339['signal'],'file':_0x36b4dd,'onProgress':_0x2f4f12=>{_0x2f4f12&&_0x2f4f12['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2f4f12['value']));}}))['then'](_0x3004d7=>{const {width:_0x35cfba,height:_0x1e4692}=_0x3004d7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3004d7['cdnUrl'],this['imageDimension']={'width':_0x35cfba,'height':_0x1e4692},this['imageId']=_0x3004d7['uuid'],this['imageUploadProgress']=null;const _0x38f6b1=_0x10245e['getAttribute']('src');this['_imageCache']['set'](_0x38f6b1,{'id':_0x3004d7['uuid'],'url':_0x3004d7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x34aa80=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34aa80['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x45ce16,_0x1b5a04){_0x45ce16['on']('apply',(_0xdcc4f8,_0x58730b)=>{this['_replaceImage'](_0x1b5a04,_0x58730b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x45ce16['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x45ce16['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x391779,_0x56c23c,_0x136843){const _0x16e338=this['_editor'],{width:_0x27b1df,height:_0x5a0b1}=_0x134908(_0x56c23c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x556078,imageSources:_0x4418ae}=_0x252640(_0x56c23c,_0x27b1df);_0x16e338['model']['change'](_0x1079b5=>{if('$graveyard'===_0x391779['root']['rootName']){_0x16e338['execute']('insertImage',{'imageType':_0x391779['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x391779['getAttributes']()),'uploadcareImageId':_0x136843,'src':_0x556078,'sources':_0x4418ae,'width':_0x27b1df,'height':_0x5a0b1}});const _0x117529=_0x391779['getChildren']();_0x391779=_0x16e338['model']['document']['selection']['getSelectedElement']();for(const _0xa84078 of _0x117529)_0x1079b5['append'](_0x1079b5['cloneElement'](_0xa84078),_0x391779);}else _0x1079b5['setSelection'](_0x391779,'on'),_0x16e338['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x391779['getAttributes']()),'uploadcareImageId':_0x136843,'src':_0x556078,'sources':_0x4418ae,'width':_0x27b1df,'height':_0x5a0b1},_0x391779);_0x1079b5['setSelection'](_0x391779,'on');});}async['_getImageAsFile'](_0x50a895){const _0x44c24c=_0x35bc9f['window'],_0x191841=_0x35bc9f['document']['location']['href'],_0x366602=new _0x44c24c['URL'](_0x50a895['getAttribute']('src'),_0x191841);if('data:'===_0x366602['protocol']){const _0x538214=_0x366602['href']['split'](','),_0x7522d7=_0x538214[0x0]['match'](/:(.*?);/)[0x1],_0x4c6afb=_0x7522d7['split']('/')[0x1],_0x45abf3=_0x44c24c['atob'](_0x538214[_0x538214['length']-0x1]);let _0x5829fd=_0x45abf3['length'];const _0x43bcef=new _0x44c24c['Uint8Array'](_0x5829fd);for(;_0x5829fd--;)_0x43bcef[_0x5829fd]=_0x45abf3['charCodeAt'](_0x5829fd);return new _0x44c24c['File']([_0x43bcef],'image.'+_0x4c6afb,{'type':_0x7522d7});}const _0x15560d=_0x366602['href']['split']('/'),_0x3b7764=_0x15560d[_0x15560d['length']-0x1],_0x3944c5=_0x3b7764['split']('.')[0x1];return _0x44c24c['fetch'](_0x366602['href'])['then'](_0x416d1f=>_0x416d1f['clone']()['blob']())['then'](_0x34490a=>new _0x44c24c['File']([_0x34490a],_0x3b7764,{'type':'image/'+_0x3944c5}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3d6a(){const _0x12ce2a=['2286732XbYAji','ck-uploadcare-theme','bindTemplate','1152981OOkCfW','694302JqqAoP','416720WwYBxw','28NhUYzz','uc-cloud-image-editor','image-edit','setTemplate','10297096ZbHlzf','uc-light','imageSrc','9neCRMM','set','217818AXcVnq','3476291EXbTnh'];_0x3d6a=function(){return _0x12ce2a;};return _0x3d6a();}function _0x4e28(_0x5b1548,_0x3871cc){const _0x3d6a99=_0x3d6a();return _0x4e28=function(_0x4e28fb,_0x63d72){_0x4e28fb=_0x4e28fb-0x76;let _0x286e33=_0x3d6a99[_0x4e28fb];return _0x286e33;},_0x4e28(_0x5b1548,_0x3871cc);}(function(_0x363c5f,_0x4e5839){const _0x59d317=_0x4e28,_0x4a546b=_0x363c5f();while(!![]){try{const _0x14191c=parseInt(_0x59d317(0x84))/0x1+parseInt(_0x59d317(0x7e))/0x2+parseInt(_0x59d317(0x83))/0x3+-parseInt(_0x59d317(0x86))/0x4*(-parseInt(_0x59d317(0x85))/0x5)+parseInt(_0x59d317(0x80))/0x6+-parseInt(_0x59d317(0x7f))/0x7+-parseInt(_0x59d317(0x79))/0x8*(parseInt(_0x59d317(0x7c))/0x9);if(_0x14191c===_0x4e5839)break;else _0x4a546b['push'](_0x4a546b['shift']());}catch(_0x19523b){_0x4a546b['push'](_0x4a546b['shift']());}}}(_0x3d6a,0x59ebe));import{View as _0x21ebfc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x21ebfc{constructor(_0x2edf99,_0x13390e){const _0x9e30c6=_0x4e28;super(_0x2edf99);const _0x16cb89=this[_0x9e30c6(0x82)];this[_0x9e30c6(0x7d)](_0x9e30c6(0x7b),''),this[_0x9e30c6(0x78)]({'tag':_0x9e30c6(0x76),'attributes':{..._0x13390e,'class':[_0x9e30c6(0x7a),_0x9e30c6(0x81)],'ctx-name':_0x9e30c6(0x77),'cdn-url':_0x16cb89['to'](_0x9e30c6(0x7b))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x5a9fcb}from'ckeditor5/src/icons.js';import{ButtonView as _0x37e4c,IconView as _0x36d140,View as _0x3da01e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3da01e{constructor(_0x5e8028){super(_0x5e8028);const t=_0x5e8028['t'];this['set']('errorType',null);const _0x582223=new _0x37e4c(_0x5e8028);_0x582223['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x582223['withText']=!0x0,_0x582223['class']='ck-button-action',_0x582223['on']('execute',()=>{this['fire']('retry');}),_0x582223['bind']('isVisible')['to'](this,'errorType',_0x2fe4ef=>'NotFound'!==_0x2fe4ef);const _0x414367=new _0x36d140();_0x414367['content']=_0x5a9fcb,_0x414367['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe02c2b=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':[_0x414367,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe02c2b['to']('errorType',_0x4ad2e3=>t('NotFound'!==_0x4ad2e3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x582223]},{'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 _0x509a4a,View as _0x116f77}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x116f77{constructor(_0x7c56ea){super(_0x7c56ea);const t=_0x7c56ea['t'],_0x22d7ad=this['bindTemplate'],_0x1255ba=new _0x509a4a();_0x1255ba['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':[_0x1255ba,{'text':_0x22d7ad['to']('imageUploadProgress',_0x48eb91=>t('Loading\x20image...')+'\x20('+(_0x48eb91||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 _0x475dd8=_0x373d;(function(_0x570b62,_0x27478f){const _0x1aac29=_0x373d,_0x3380d4=_0x570b62();while(!![]){try{const _0x167e46=parseInt(_0x1aac29(0xc3))/0x1*(parseInt(_0x1aac29(0xd1))/0x2)+parseInt(_0x1aac29(0xca))/0x3*(-parseInt(_0x1aac29(0xd7))/0x4)+parseInt(_0x1aac29(0xe7))/0x5*(parseInt(_0x1aac29(0xb5))/0x6)+-parseInt(_0x1aac29(0xc7))/0x7*(-parseInt(_0x1aac29(0xe2))/0x8)+-parseInt(_0x1aac29(0xb4))/0x9*(-parseInt(_0x1aac29(0xe1))/0xa)+-parseInt(_0x1aac29(0xcc))/0xb+-parseInt(_0x1aac29(0xbb))/0xc;if(_0x167e46===_0x27478f)break;else _0x3380d4['push'](_0x3380d4['shift']());}catch(_0x157eb0){_0x3380d4['push'](_0x3380d4['shift']());}}}(_0x37f8,0x223db));import{View as _0x4d72fa}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x39423e}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3786c8}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3fec13}from'./uploadcareimageeditformeditingview.js';function _0x37f8(){const _0x2794c3=['set','_errorView','error','filter','43947hlybGu','_addErrorViewListeners','uc-cloud-image-editor','change:status','49JaejhF','addEventListener','fire','582PaEIEX','querySelector','531487pUyvRk','nodeName','addMany','ready','toLowerCase','8qanmYl','element','observe','disconnect','render','cancel','2236OkkAXp','ck-uploadcare-form','_setView','cdnUrl','_focusableView','_addUploadcareImageEditorListeners','status','_editingView','getFocusableElement','detail','16730dqauJD','174072HUWcFW','uploading','setTemplate','ck-reset_all-excluded','_loadingView','980ilpbUz','length','addedNodes','div','apply','clear','891OAfccr','2244mpktnS','focus','add','createCollection','once','_items','3240216WWbrIu','retry','_waitForImageEditorComponent','target'];_0x37f8=function(){return _0x2794c3;};return _0x37f8();}function _0x373d(_0x53e634,_0x327671){const _0x37f8e7=_0x37f8();return _0x373d=function(_0x373d1c,_0x46f10e){_0x373d1c=_0x373d1c-0xb4;let _0x57a035=_0x37f8e7[_0x373d1c];return _0x57a035;},_0x373d(_0x53e634,_0x327671);}import{DialogFocusManagerView as _0x577a0b}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x577a0b{[_0x475dd8(0xba)];[_0x475dd8(0xe6)];[_0x475dd8(0xc0)];[_0x475dd8(0xde)];[_0x475dd8(0xdb)];constructor(_0x67e717,_0x2c64a6,_0x24f0cb){const _0x992814=_0x475dd8;super(_0x67e717),this[_0x992814(0xba)]=this[_0x992814(0xb8)](),this[_0x992814(0xe6)]=new _0x39423e(_0x67e717),this[_0x992814(0xc0)]=new _0x3786c8(_0x67e717),this[_0x992814(0xde)]=new _0x3fec13(_0x67e717,_0x24f0cb),this[_0x992814(0xdb)]=new _0x4d72fa(_0x67e717),this[_0x992814(0xdb)][_0x992814(0xe4)](this[_0x992814(0xdf)]()),this[_0x992814(0xbf)](_0x992814(0xdd),_0x2c64a6),this[_0x992814(0xe4)]({'tag':_0x992814(0xea),'attributes':{'class':['ck',_0x992814(0xe5),_0x992814(0xd8)],'tabindex':'-1'},'children':this[_0x992814(0xba)]}),this[_0x992814(0xd9)](),this[_0x992814(0xb9)](_0x992814(0xd5),()=>{const _0x5fb18f=_0x992814;this[_0x5fb18f(0xbd)](this[_0x5fb18f(0xd2)],_0xa7b870=>{const _0x36b6d6=_0x5fb18f;this[_0x36b6d6(0xdc)](_0xa7b870);});}),this['on'](_0x992814(0xc6),()=>{const _0x49bd26=_0x992814;this[_0x49bd26(0xd9)]();}),this[_0x992814(0xc4)]();}[_0x475dd8(0xb6)](){const _0x3c00c5=_0x475dd8;this[_0x3c00c5(0xd2)][_0x3c00c5(0xb6)]();}[_0x475dd8(0xd9)](){const _0x32c106=_0x475dd8;switch(this[_0x32c106(0xba)][_0x32c106(0xec)](),this[_0x32c106(0xdd)]){case _0x32c106(0xe3):this[_0x32c106(0xba)][_0x32c106(0xb7)](this[_0x32c106(0xe6)]);break;case _0x32c106(0xc1):this[_0x32c106(0xba)][_0x32c106(0xb7)](this[_0x32c106(0xc0)]);break;case _0x32c106(0xcf):this[_0x32c106(0xba)][_0x32c106(0xce)]([this[_0x32c106(0xde)],this[_0x32c106(0xdb)]]);}}[_0x475dd8(0xbd)](_0x29f98a,_0x5c834d){const _0x2a3a24=_0x475dd8,_0x5d724=_0x2a3a24(0xc5),_0x5b54cc=_0x29f98a[_0x2a3a24(0xcb)](_0x5d724);if(_0x5b54cc)return _0x5c834d(_0x5b54cc);const _0x438877=new MutationObserver(_0x56eb6=>{const _0x9886e5=_0x2a3a24,_0x16a0cd=_0x56eb6[_0x9886e5(0xc2)](_0x56fe1e=>_0x56fe1e[_0x9886e5(0xbe)]===_0x29f98a&&_0x56fe1e[_0x9886e5(0xe9)][_0x9886e5(0xe8)]>0x0&&_0x56fe1e[_0x9886e5(0xe9)][0x0][_0x9886e5(0xcd)][_0x9886e5(0xd0)]()===_0x5d724);_0x16a0cd[_0x9886e5(0xe8)]&&(_0x438877[_0x9886e5(0xd4)](),_0x5c834d(_0x16a0cd[0x0][_0x9886e5(0xe9)][0x0]));});_0x438877[_0x2a3a24(0xd3)](_0x29f98a,{'childList':!0x0,'subtree':!0x0});}[_0x475dd8(0xdc)](_0x3c960e){const _0x11476d=_0x475dd8;_0x3c960e[_0x11476d(0xc8)](_0x11476d(0xeb),_0x34fd58=>{const _0x13a12b=_0x11476d;this[_0x13a12b(0xc9)](_0x13a12b(0xeb),{'imageSrc':_0x34fd58[_0x13a12b(0xe0)][_0x13a12b(0xda)]});}),_0x3c960e[_0x11476d(0xc8)](_0x11476d(0xd6),()=>{const _0x355858=_0x11476d;this[_0x355858(0xc9)](_0x355858(0xd6));});}[_0x475dd8(0xc4)](){const _0x424503=_0x475dd8;this[_0x424503(0xc0)]['on'](_0x424503(0xbc),()=>{const _0xbaeb02=_0x424503;this[_0xbaeb02(0xc9)](_0xbaeb02(0xbc));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f2315=_0x138f;function _0x138f(_0xab6e90,_0x1aeb29){const _0x1ed57a=_0x1ed5();return _0x138f=function(_0x138f12,_0x55a437){_0x138f12=_0x138f12-0x1a7;let _0x1d7151=_0x1ed57a[_0x138f12];return _0x1d7151;},_0x138f(_0xab6e90,_0x1aeb29);}(function(_0x4c62bb,_0x5d2a59){const _0x3d11cb=_0x138f,_0x518c0d=_0x4c62bb();while(!![]){try{const _0x54fb90=-parseInt(_0x3d11cb(0x1c0))/0x1+parseInt(_0x3d11cb(0x1b5))/0x2+-parseInt(_0x3d11cb(0x1aa))/0x3+-parseInt(_0x3d11cb(0x1ba))/0x4+parseInt(_0x3d11cb(0x1b4))/0x5+parseInt(_0x3d11cb(0x1af))/0x6+parseInt(_0x3d11cb(0x1bf))/0x7*(-parseInt(_0x3d11cb(0x1b2))/0x8);if(_0x54fb90===_0x5d2a59)break;else _0x518c0d['push'](_0x518c0d['shift']());}catch(_0x8108ce){_0x518c0d['push'](_0x518c0d['shift']());}}}(_0x1ed5,0x3215c));import{Command as _0x5f1aec}from'ckeditor5/src/core.js';function _0x1ed5(){const _0x22c80a=['isEnabled','2104296ipLsgv','_isEditable','872545UjbpTf','646398JqLhzt','element','execute','imageBlock','imageInline','642272FdASOf','unbind','uploadcare.allowExternalImagesEditing','editor','get','7MxWAFL','28714YCIenK','document','imageEditController','plugins','refresh','bind','set','config','597300fSNshN','model','isActive','selection','requires','2153154HhXWyC','getSelectedElement'];_0x1ed5=function(){return _0x22c80a;};return _0x1ed5();}import{Dialog as _0x712beb}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1f8906}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x351836}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5f1aec{[_0x3f2315(0x1c2)];static get[_0x3f2315(0x1ae)](){return[_0x712beb];}[_0x3f2315(0x1b3)];constructor(_0x21f80c){const _0x3f26bb=_0x3f2315;super(_0x21f80c),this[_0x3f26bb(0x1c2)]=void 0x0,this[_0x3f26bb(0x1b3)]=_0x351836(_0x21f80c[_0x3f26bb(0x1a9)][_0x3f26bb(0x1be)](_0x3f26bb(0x1bc))||[]),this[_0x3f26bb(0x1a8)]({'isActive':!0x1});}[_0x3f2315(0x1c4)](){const _0x1dcbfe=_0x3f2315,_0x3a28b6=this[_0x1dcbfe(0x1bd)][_0x1dcbfe(0x1ab)][_0x1dcbfe(0x1c1)][_0x1dcbfe(0x1ad)][_0x1dcbfe(0x1b0)]();this[_0x1dcbfe(0x1b1)]=this[_0x1dcbfe(0x1b3)](_0x3a28b6);}[_0x3f2315(0x1b7)](){const _0x11edd2=_0x3f2315;this[_0x11edd2(0x1c2)]&&(this[_0x11edd2(0x1bb)](_0x11edd2(0x1ac)),this[_0x11edd2(0x1c2)]=void 0x0);const _0x2400a9=this[_0x11edd2(0x1bd)][_0x11edd2(0x1ab)][_0x11edd2(0x1c1)][_0x11edd2(0x1ad)][_0x11edd2(0x1b0)]();_0x2400a9&&(_0x2400a9['is'](_0x11edd2(0x1b6),_0x11edd2(0x1b8))||_0x2400a9['is'](_0x11edd2(0x1b6),_0x11edd2(0x1b9)))&&(this[_0x11edd2(0x1c2)]=new _0x1f8906(this[_0x11edd2(0x1bd)],this[_0x11edd2(0x1bd)][_0x11edd2(0x1c3)][_0x11edd2(0x1be)](_0x712beb),_0x2400a9),this[_0x11edd2(0x1a7)](_0x11edd2(0x1ac))['to'](this[_0x11edd2(0x1c2)],_0x11edd2(0x1ac)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5440ce=_0x177d;function _0x8be0(){const _0x5b1906=['5632440xOMtcF','pluginName','UploadcareImageEditEditing','commands','requires','42jkVbas','isPremiumPlugin','4580LiFMYZ','uploadcareImageEdit','8877379ASpvxO','329915fOVQQY','ImageUtils','517756sGiIIM','10936NCdKMl','3627292OWINvY','init','add','isOfficialPlugin','468PaVJyF','ImageEditing','59418Huehql','uploadcareImageReplace'];_0x8be0=function(){return _0x5b1906;};return _0x8be0();}(function(_0x5df8f9,_0x2e8a09){const _0x1db477=_0x177d,_0x29d11e=_0x5df8f9();while(!![]){try{const _0x5b95cd=-parseInt(_0x1db477(0x13c))/0x1+parseInt(_0x1db477(0x13d))/0x2*(-parseInt(_0x1db477(0x142))/0x3)+-parseInt(_0x1db477(0x13e))/0x4+parseInt(_0x1db477(0x13a))/0x5*(parseInt(_0x1db477(0x14b))/0x6)+-parseInt(_0x1db477(0x139))/0x7+parseInt(_0x1db477(0x146))/0x8+-parseInt(_0x1db477(0x144))/0x9*(-parseInt(_0x1db477(0x137))/0xa);if(_0x5b95cd===_0x2e8a09)break;else _0x29d11e['push'](_0x29d11e['shift']());}catch(_0x344486){_0x29d11e['push'](_0x29d11e['shift']());}}}(_0x8be0,0x9d31c));import{Plugin as _0x3add16}from'ckeditor5/src/core.js';function _0x177d(_0x117819,_0x43f960){const _0x8be0c7=_0x8be0();return _0x177d=function(_0x177d38,_0x55c5e7){_0x177d38=_0x177d38-0x137;let _0x4b9c08=_0x8be0c7[_0x177d38];return _0x4b9c08;},_0x177d(_0x117819,_0x43f960);}import{Notification as _0x4c4ce3}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x595653}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x20eed5}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x519ca5}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3add16{static get[_0x5440ce(0x147)](){const _0x56c727=_0x5440ce;return _0x56c727(0x148);}static get[_0x5440ce(0x14a)](){const _0x4a584a=_0x5440ce;return[_0x519ca5,_0x4c4ce3,_0x4a584a(0x13b),_0x4a584a(0x143)];}static get[_0x5440ce(0x141)](){return!0x0;}static get[_0x5440ce(0x14c)](){return!0x0;}[_0x5440ce(0x13f)](){const _0x5c51f3=_0x5440ce,{editor:_0x45263e}=this;_0x45263e[_0x5c51f3(0x149)][_0x5c51f3(0x140)](_0x5c51f3(0x138),new _0x595653(_0x45263e)),_0x45263e[_0x5c51f3(0x149)][_0x5c51f3(0x140)](_0x5c51f3(0x145),new _0x20eed5(_0x45263e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1d4436}from'ckeditor5/src/core.js';import{ButtonView as _0x28f6ce}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x454510}from'ckeditor5/src/icons.js';import{createElement as _0x2f08a7}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 _0x1d4436{['_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 _0x13ff21=this['editor'];_0x13ff21['ui']['componentFactory']['add']('uploadcareImageEdit',_0xedc741=>{const _0x68bcdd=_0x13ff21['commands']['get']('uploadcareImageEdit'),_0x28ca0a=new _0x28f6ce(_0xedc741),t=_0xedc741['t'];return _0x28ca0a['set']({'icon':_0x454510,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x28ca0a['bind']('isEnabled')['to'](_0x68bcdd),_0x28ca0a['bind']('isOn')['to'](_0x68bcdd,'isActive'),this['listenTo'](_0x28ca0a,'execute',()=>{_0x13ff21['execute']('uploadcareImageEdit'),_0x13ff21['editing']['view']['focus']();}),_0x28ca0a;}),this['_initConfig']();}['_initConfig'](){const _0x131c9c=_0x2f08a7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x131c9c),this['listenTo'](this['editor'],'destroy',()=>{_0x131c9c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x329e3e=_0x36f3;function _0x36f3(_0x1bb7f9,_0x26ce33){const _0x57b909=_0x57b9();return _0x36f3=function(_0x36f3b9,_0xe8fcca){_0x36f3b9=_0x36f3b9-0x1da;let _0x485686=_0x57b909[_0x36f3b9];return _0x485686;},_0x36f3(_0x1bb7f9,_0x26ce33);}(function(_0x1262da,_0x5f0857){const _0x5ae7b3=_0x36f3,_0x3b4e01=_0x1262da();while(!![]){try{const _0x125e49=-parseInt(_0x5ae7b3(0x1e9))/0x1*(parseInt(_0x5ae7b3(0x1f3))/0x2)+-parseInt(_0x5ae7b3(0x1e4))/0x3+-parseInt(_0x5ae7b3(0x1e2))/0x4*(parseInt(_0x5ae7b3(0x1dc))/0x5)+-parseInt(_0x5ae7b3(0x1e6))/0x6+parseInt(_0x5ae7b3(0x1f2))/0x7*(-parseInt(_0x5ae7b3(0x1e7))/0x8)+-parseInt(_0x5ae7b3(0x1db))/0x9+-parseInt(_0x5ae7b3(0x1e5))/0xa*(-parseInt(_0x5ae7b3(0x1f4))/0xb);if(_0x125e49===_0x5f0857)break;else _0x3b4e01['push'](_0x3b4e01['shift']());}catch(_0x25f7a6){_0x3b4e01['push'](_0x3b4e01['shift']());}}}(_0x57b9,0xa44d3));import{Command as _0x31e87d}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x31e87d{[_0x329e3e(0x1dd)](){const _0x5c8a50=_0x329e3e,_0x4733e1=this[_0x5c8a50(0x1de)][_0x5c8a50(0x1e1)][_0x5c8a50(0x1ee)][_0x5c8a50(0x1ea)][_0x5c8a50(0x1da)]();this[_0x5c8a50(0x1ed)]=Boolean(_0x4733e1&&(_0x4733e1['is'](_0x5c8a50(0x1eb),_0x5c8a50(0x1df))||_0x4733e1['is'](_0x5c8a50(0x1eb),_0x5c8a50(0x1f1))));}[_0x329e3e(0x1ef)](_0x43d33c){const _0x33b2bf=_0x329e3e,_0x3c5fd6=this[_0x33b2bf(0x1de)][_0x33b2bf(0x1e1)][_0x33b2bf(0x1ee)][_0x33b2bf(0x1ea)][_0x33b2bf(0x1da)]();this[_0x33b2bf(0x1de)][_0x33b2bf(0x1e1)][_0x33b2bf(0x1f0)](_0x59725b=>{const _0x1fa34a=_0x33b2bf;_0x59725b[_0x1fa34a(0x1ec)](_0x43d33c,_0x3c5fd6),_0x59725b[_0x1fa34a(0x1e0)](_0x1fa34a(0x1e3),_0x3c5fd6),_0x59725b[_0x1fa34a(0x1e0)](_0x1fa34a(0x1e8),_0x3c5fd6);});}}function _0x57b9(){const _0x5c64b0=['removeAttribute','model','4ddzMfL','srcset','197262NjMVAK','49060630FdHaZl','5659464ECQpmU','9513992LBkYKZ','sizes','104359BOwumP','selection','element','setAttributes','isEnabled','document','execute','change','imageInline','7mTULLw','10zzVMRz','11IcTqEC','getSelectedElement','8690787TbUdaa','2736995auprqJ','refresh','editor','imageBlock'];_0x57b9=function(){return _0x5c64b0;};return _0x57b9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x558d11=_0x5665;(function(_0x140cb0,_0x6be7e2){var _0x142a32=_0x5665,_0x2994d7=_0x140cb0();while(!![]){try{var _0x2e08e6=-parseInt(_0x142a32(0xdd))/0x1+parseInt(_0x142a32(0xe7))/0x2+-parseInt(_0x142a32(0xe0))/0x3+parseInt(_0x142a32(0xe4))/0x4+-parseInt(_0x142a32(0xdf))/0x5*(-parseInt(_0x142a32(0xde))/0x6)+parseInt(_0x142a32(0xda))/0x7+parseInt(_0x142a32(0xdc))/0x8*(parseInt(_0x142a32(0xe1))/0x9);if(_0x2e08e6===_0x6be7e2)break;else _0x2994d7['push'](_0x2994d7['shift']());}catch(_0xe2b72b){_0x2994d7['push'](_0x2994d7['shift']());}}}(_0x523e,0x48dfa));import{Plugin as _0x40a3cb}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x25704a}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x523e(){var _0x241f68=['69186HcbxJq','34790omIzpz','pluginName','4193000ZLOSKV','572366brJqXI','12ZzcpYY','88790woaqzg','545007tanpbR','9UfnGdn','isPremiumPlugin','requires','1813284iZGhhz','isOfficialPlugin','UploadcareImageEdit'];_0x523e=function(){return _0x241f68;};return _0x523e();}function _0x5665(_0x261129,_0x2cf182){var _0x523e3f=_0x523e();return _0x5665=function(_0x5665d5,_0x1e953b){_0x5665d5=_0x5665d5-0xda;var _0x44c038=_0x523e3f[_0x5665d5];return _0x44c038;},_0x5665(_0x261129,_0x2cf182);}import{UploadcareImageEditUI as _0x1dc1e2}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x40a3cb{static get[_0x558d11(0xdb)](){var _0x3922db=_0x558d11;return _0x3922db(0xe6);}static get[_0x558d11(0xe3)](){return[_0x25704a,_0x1dc1e2];}static get[_0x558d11(0xe5)](){return!0x0;}static get[_0x558d11(0xe2)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12cf9e=_0x47d6;(function(_0x888f1f,_0xcab3ad){const _0x1ff21b=_0x47d6,_0x4420ed=_0x888f1f();while(!![]){try{const _0x356424=parseInt(_0x1ff21b(0xfb))/0x1*(-parseInt(_0x1ff21b(0xf8))/0x2)+parseInt(_0x1ff21b(0xee))/0x3*(-parseInt(_0x1ff21b(0xde))/0x4)+-parseInt(_0x1ff21b(0xf9))/0x5*(parseInt(_0x1ff21b(0xd1))/0x6)+-parseInt(_0x1ff21b(0xd4))/0x7+parseInt(_0x1ff21b(0xf4))/0x8+-parseInt(_0x1ff21b(0xe7))/0x9+-parseInt(_0x1ff21b(0xb7))/0xa*(-parseInt(_0x1ff21b(0xdb))/0xb);if(_0x356424===_0xcab3ad)break;else _0x4420ed['push'](_0x4420ed['shift']());}catch(_0x2bca53){_0x4420ed['push'](_0x4420ed['shift']());}}}(_0x26a3,0x6c8be));import{Plugin as _0x32b63e}from'ckeditor5/src/core.js';import{IconDropbox as _0x297588,IconFacebook as _0x35e0f4,IconGoogleDrive as _0x3f0ecd,IconGooglePhotos as _0x72460d,IconUploadcareImageUpload as _0x19c3e0,IconUploadcareLink as _0x3755e7,IconOneDrive as _0x51ee40}from'ckeditor5/src/icons.js';import{ButtonView as _0x4c5438,MenuBarMenuListItemButtonView as _0xd86c7a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5e8753}from'./uploadcareconfig.js';import{getTranslation as _0x3ec9fa}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';function _0x47d6(_0x382d58,_0x84fd1){const _0x26a369=_0x26a3();return _0x47d6=function(_0x47d60c,_0xc5b30d){_0x47d60c=_0x47d60c-0xb3;let _0x29fc38=_0x26a369[_0x47d60c];return _0x29fc38;},_0x47d6(_0x382d58,_0x84fd1);}export class UploadcareUI extends _0x32b63e{[_0x12cf9e(0xd8)];[_0x12cf9e(0xd2)];static get[_0x12cf9e(0xc1)](){const _0x42c129=_0x12cf9e;return _0x42c129(0xbb);}static get[_0x12cf9e(0xb3)](){return!0x0;}static get[_0x12cf9e(0xf0)](){return!0x0;}[_0x12cf9e(0x102)](){const _0x34a0c1=_0x12cf9e;this[_0x34a0c1(0xd8)]=this[_0x34a0c1(0xe4)][_0x34a0c1(0xfc)][_0x34a0c1(0xb6)](_0x34a0c1(0xd8));const _0x44780e=this[_0x34a0c1(0xe4)];this[_0x34a0c1(0xd2)]=setInterval(()=>{const _0x41de61=_0x34a0c1;let _0x382826;for(const _0x2512b8 in _0x44780e){const _0x2afbcf=_0x2512b8,_0x11254b=_0x44780e[_0x2afbcf];if(_0x41de61(0xcc)==_0x11254b||_0x41de61(0xef)==_0x11254b||_0x41de61(0xe6)==_0x11254b||_0x41de61(0xf6)==_0x11254b||_0x41de61(0xe1)==_0x11254b||_0x41de61(0xbf)==_0x11254b||_0x41de61(0xdf)==_0x11254b||_0x41de61(0xca)==_0x11254b){delete _0x44780e[_0x2afbcf],_0x382826=_0x11254b,clearInterval(this[_0x41de61(0xd2)]),this[_0x41de61(0xd2)]=void 0x0;break;}}_0x41de61(0xef)==_0x382826&&_0x44780e[_0x41de61(0xce)](_0x41de61(0xec)),_0x41de61(0xe6)==_0x382826&&_0x44780e[_0x41de61(0xce)](_0x41de61(0xb9)),_0x41de61(0xf6)==_0x382826&&_0x44780e[_0x41de61(0xce)](_0x41de61(0xf7)),_0x41de61(0xe1)==_0x382826&&_0x44780e[_0x41de61(0xce)](_0x41de61(0xbd),_0x41de61(0xea)),_0x41de61(0xbf)==_0x382826&&_0x44780e[_0x41de61(0xce)](_0x41de61(0xc4)),_0x41de61(0xdf)==_0x382826&&_0x44780e[_0x41de61(0xce)](_0x41de61(0xcd)),_0x41de61(0xca)==_0x382826&&_0x44780e[_0x41de61(0xce)](_0x41de61(0xc6));},0x3e8);}[_0x12cf9e(0xd3)](){const _0x4b9cc6=_0x12cf9e,{editor:_0x3eb6c8}=this,_0xccc1ff=_0x3eb6c8[_0x4b9cc6(0xe5)][_0x4b9cc6(0xb6)](_0x4b9cc6(0xb5));if(!_0xccc1ff)return;const _0x5ea35a=this[_0x4b9cc6(0xbc)](_0x3eb6c8[_0x4b9cc6(0xfc)][_0x4b9cc6(0xb6)](_0x4b9cc6(0xed)))[_0x4b9cc6(0xeb)]((_0x134804,_0x32e2ed)=>{const _0x3701f1=_0x4b9cc6,_0xec943b=this[_0x3701f1(0xf5)](_0x32e2ed[_0x3701f1(0xc0)]);return _0x134804[_0xec943b]||(_0x134804[_0xec943b]=[]),_0x134804[_0xec943b][_0x3701f1(0xba)](_0x32e2ed),_0x134804;},{});_0x3eb6c8[_0x4b9cc6(0xd7)][_0x4b9cc6(0xc5)](_0x4b9cc6(0xfd))&&_0x3eb6c8[_0x4b9cc6(0xe5)][_0x4b9cc6(0xb6)](_0x4b9cc6(0xb5))&&Object[_0x4b9cc6(0xbe)](_0x5ea35a)[_0x4b9cc6(0xd0)](([_0x4b716a,_0x4ee13a])=>{const _0x2e8949=_0x4b9cc6;_0x3eb6c8[_0x2e8949(0xd7)][_0x2e8949(0xb6)](_0x2e8949(0xfd))[_0x2e8949(0xf3)]({'name':_0x4b716a,'observable':()=>_0xccc1ff,'buttonViewCreator':()=>this[_0x2e8949(0xb8)](_0x4ee13a),'formViewCreator':()=>this[_0x2e8949(0xfe)](_0x4ee13a),'menuBarButtonViewCreator':()=>this[_0x2e8949(0x104)](_0x4ee13a),'override':_0x2e8949(0x101)!==_0x4b716a});});}[_0x12cf9e(0xd6)](){const _0x52e62e=_0x12cf9e;super[_0x52e62e(0xd6)](),this[_0x52e62e(0xd2)]&&clearInterval(this[_0x52e62e(0xd2)]);}[_0x12cf9e(0xbc)](_0x95b75e){const _0x24c664=_0x12cf9e,{locale:_0x27dbab}=this[_0x24c664(0xe4)];return _0x95b75e[_0x24c664(0xe2)](_0x134828=>{const _0x119ad3=_0x24c664,_0x5ef658=_0x3ec9fa(_0x27dbab,_0x134828,_0x119ad3(0xe9));switch(_0x134828){case _0x5e8753[_0x119ad3(0xcf)]:return{'icon':_0x19c3e0,'type':_0x5e8753[_0x119ad3(0xcf)],..._0x5ef658};case _0x5e8753[_0x119ad3(0xdc)]:return{'icon':_0x3755e7,'type':_0x5e8753[_0x119ad3(0xdc)],..._0x5ef658};case _0x5e8753[_0x119ad3(0xc3)]:return{'icon':_0x297588,'type':_0x5e8753[_0x119ad3(0xc3)],..._0x5ef658};case _0x5e8753[_0x119ad3(0xff)]:return{'icon':_0x35e0f4,'type':_0x5e8753[_0x119ad3(0xff)],..._0x5ef658};case _0x5e8753[_0x119ad3(0xcb)]:return{'icon':_0x3f0ecd,'type':_0x5e8753[_0x119ad3(0xcb)],..._0x5ef658};case _0x5e8753[_0x119ad3(0xc8)]:return{'icon':_0x72460d,'type':_0x5e8753[_0x119ad3(0xc8)],..._0x5ef658};case _0x5e8753[_0x119ad3(0xfa)]:return{'icon':_0x51ee40,'type':_0x5e8753[_0x119ad3(0xfa)],..._0x5ef658};}});}[_0x12cf9e(0xf5)](_0x5b3975){const _0x45a5d7=_0x12cf9e;switch(_0x5b3975){case _0x5e8753[_0x45a5d7(0xcf)]:return _0x45a5d7(0xf1);case _0x5e8753[_0x45a5d7(0xdc)]:return _0x45a5d7(0xc7);default:return _0x45a5d7(0x101);}}[_0x12cf9e(0x100)](_0x2af146,_0x19d09b){const _0x39453a=_0x12cf9e,_0x422a64=this[_0x39453a(0xe4)],_0x2df553=new _0x2af146(_0x422a64[_0x39453a(0xe8)]),_0x35464d=_0x422a64[_0x39453a(0xe5)][_0x39453a(0xb6)](_0x39453a(0xb5));return _0x2df553[_0x39453a(0xdd)](_0x39453a(0xb4))['to'](_0x35464d),_0x2df553['on'](_0x39453a(0xc2),()=>{const _0x5ae2b5=_0x39453a;_0x35464d[_0x5ae2b5(0xc2)](_0x19d09b);}),_0x2df553;}[_0x12cf9e(0xb8)](_0x507d7f){const _0x2e7fca=_0x12cf9e,{locale:_0x2732f3}=this[_0x2e7fca(0xe4)],_0x52d538=this[_0x2e7fca(0xe4)][_0x2e7fca(0xd7)][_0x2e7fca(0xb6)](_0x2e7fca(0xfd)),_0x59eaf3=_0x507d7f[0x0],_0x4886bd=this[_0x2e7fca(0x100)](_0x4c5438,_0x59eaf3[_0x2e7fca(0xc0)]);return _0x4886bd[_0x2e7fca(0xf2)]=_0x59eaf3[_0x2e7fca(0xf2)],_0x4886bd[_0x2e7fca(0xdd)](_0x2e7fca(0xda))['to'](_0x52d538,_0x2e7fca(0xd9),_0x4e645d=>_0x3ec9fa(_0x2732f3,_0x59eaf3[_0x2e7fca(0xc0)],_0x4e645d?_0x2e7fca(0xc9):_0x2e7fca(0xe9))[_0x2e7fca(0x103)]),_0x4886bd[_0x2e7fca(0xd5)]=!0x0,_0x4886bd;}[_0x12cf9e(0xfe)](_0x4fa014){const _0x52b60d=_0x12cf9e,{locale:_0xe76f36}=this[_0x52b60d(0xe4)],_0x5d68b4=this[_0x52b60d(0xe4)][_0x52b60d(0xd7)][_0x52b60d(0xb6)](_0x52b60d(0xfd));return _0x4fa014[_0x52b60d(0xe2)](_0x2fbb94=>{const _0x4cb0ee=_0x52b60d,_0x30daa5=this[_0x4cb0ee(0x100)](_0x4c5438,_0x2fbb94[_0x4cb0ee(0xc0)]);return _0x30daa5[_0x4cb0ee(0xe0)]=!0x0,_0x30daa5[_0x4cb0ee(0xf2)]=_0x2fbb94[_0x4cb0ee(0xf2)],_0x30daa5[_0x4cb0ee(0xdd)](_0x4cb0ee(0xda))['to'](_0x5d68b4,_0x4cb0ee(0xd9),_0x41ba0f=>_0x3ec9fa(_0xe76f36,_0x2fbb94[_0x4cb0ee(0xc0)],_0x41ba0f?_0x4cb0ee(0xc9):_0x4cb0ee(0xe9))[_0x4cb0ee(0x103)]),_0x30daa5;});}[_0x12cf9e(0x104)](_0x29bb5e){const _0x559a9b=_0x12cf9e;return _0x29bb5e[_0x559a9b(0xe2)](_0x3902f3=>{const _0x28f2ac=_0x559a9b,_0x144dea=this[_0x28f2ac(0x100)](_0xd86c7a,_0x3902f3[_0x28f2ac(0xc0)]);return _0x144dea[_0x28f2ac(0xf2)]=_0x3902f3[_0x28f2ac(0xf2)],_0x144dea[_0x28f2ac(0xda)]=_0x3902f3[_0x28f2ac(0xe3)],_0x144dea;});}}function _0x26a3(){const _0x4761e0=['_licenseKeyCheckInterval','afterInit','4787685LJvRrz','tooltip','destroy','plugins','licenseKey','isImageSelected','label','160028IOPBrs','URL','bind','349036xCkHcg','uploadcareLicenseKeyTrialLimit','withText','uploadcareLicenseKeyNotAllowed','map','shortText','editor','commands','uploadcareLicenseKeyExpired','4008906xNFTmA','locale','Insert','Uploadcare','reduce','invalid','uploadcare.uploader.sourceList','27hTVbWD','uploadcareLicenseKeyInvalid','isPremiumPlugin','upload','icon','registerIntegration','2047736VkQPQW','_getIntegrationKey','uploadcareLicenseKeyDomainLimit','domainLimit','312318KSbEgj','25rWLWWp','OneDrive','3lWLEUt','config','ImageInsertUI','_createDropdownButtons','Facebook','_createButton','assetManager','init','text','_createMenuBarButtons','isOfficialPlugin','isEnabled','uploadcare','get','2370XSbrnX','_createToolbarButton','expired','push','UploadcareUI','_normalizeConfigSourceList','featureNotAllowed','entries','uploadcareLicenseKeyEvaluationLimit','type','pluginName','execute','Dropbox','evaluationLimit','has','usageLimit','url','GPhotos','Replace','uploadcareLicenseKeyUsageLimit','GDrive','uploadcareLicenseKeyValid','trialLimit','_showLicenseError','Local','forEach','1051248VGffUZ'];_0x26a3=function(){return _0x4761e0;};return _0x26a3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2a34d4}from'ckeditor5/src/core.js';import{FileRepository as _0x4141b0}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xc8dd0a}from'./uploadcareediting.js';import{UploadUtils as _0x52f058}from'./utils/uploadutils.js';import{getImageUrls as _0xdeefa0}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2a34d4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4141b0,_0xc8dd0a];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x51ff7c=this['editor'];if(!!!_0x51ff7c['config']['get']('uploadcare'))return;_0x51ff7c['plugins']['get'](_0x4141b0)['createUploadAdapter']=_0xed32e=>new k(_0xed32e,_0x51ff7c),_0x51ff7c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x18cb72,{imageElement:_0x1f9e22,data:_0x26f4da})=>{_0x51ff7c['model']['change'](_0x40b6fc=>{_0x40b6fc['setAttribute']('uploadcareImageId',_0x26f4da['uploadcareImageId'],_0x1f9e22);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x118fa7,_0x2021c0){this['loader']=_0x118fa7,this['editor']=_0x2021c0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x25b1e2=await this['loader']['file'];return _0x52f058['upload']({'file':_0x25b1e2,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x152909=>{_0x152909&&_0x152909['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x152909['value']);}})['then'](async _0x2c118f=>{const {imageFallbackUrl:_0x3ac157,imageSources:_0x1600fb}=_0xdeefa0(_0x2c118f['cdnUrl'],_0x2c118f['imageInfo']['width']);return{'uploadcareImageId':_0x2c118f['uuid'],'default':_0x3ac157,'sources':_0x1600fb};})['catch'](()=>{const _0x3f1e93=t('Cannot\x20upload\x20file:')+('\x20'+_0x25b1e2['name']+'.');return Promise['reject'](_0x3f1e93);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x2e266d}from'../uploadcareconfig.js';export function getTranslation(_0x168519,_0x4a9333,_0x18705f){const t=_0x168519['t'],_0x2a6682=_0x168519['t'];switch(_0x4a9333){case _0x2e266d['Local']:return{'text':_0x2a6682('Insert'===_0x18705f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a6682('From\x20computer')};case _0x2e266d['URL']:return{'text':'Insert'===_0x18705f?_0x2a6682('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a6682('Via\x20URL')};case _0x2e266d['Dropbox']:return{'text':t('Insert'===_0x18705f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2e266d['Facebook']:return{'text':t('Insert'===_0x18705f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2e266d['GDrive']:return{'text':t('Insert'===_0x18705f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2e266d['GPhotos']:return{'text':t('Insert'===_0x18705f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2e266d['OneDrive']:return{'text':t('Insert'===_0x18705f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a9333;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0xbf1a83=_0x5a1c;(function(_0x4e5bf1,_0x795699){var _0x47bcdf=_0x5a1c,_0x1994c3=_0x4e5bf1();while(!![]){try{var _0x4dc4d9=-parseInt(_0x47bcdf(0x16e))/0x1+-parseInt(_0x47bcdf(0x167))/0x2+parseInt(_0x47bcdf(0x161))/0x3+-parseInt(_0x47bcdf(0x166))/0x4+parseInt(_0x47bcdf(0x171))/0x5*(parseInt(_0x47bcdf(0x164))/0x6)+-parseInt(_0x47bcdf(0x168))/0x7*(parseInt(_0x47bcdf(0x162))/0x8)+-parseInt(_0x47bcdf(0x16a))/0x9*(-parseInt(_0x47bcdf(0x160))/0xa);if(_0x4dc4d9===_0x795699)break;else _0x1994c3['push'](_0x1994c3['shift']());}catch(_0x243602){_0x1994c3['push'](_0x1994c3['shift']());}}}(_0x2be4,0x3a940));function _0x5a1c(_0x1a6133,_0xff3a64){var _0x2be4bf=_0x2be4();return _0x5a1c=function(_0x5a1cef,_0x5914dc){_0x5a1cef=_0x5a1cef-0x160;var _0x305cf5=_0x2be4bf[_0x5a1cef];return _0x305cf5;},_0x5a1c(_0x1a6133,_0xff3a64);}import{FocusTracker as _0x2f0760}from'ckeditor5/src/utils.js';import{View as _0xe2531e,FocusCycler as _0x463702}from'ckeditor5/src/ui.js';function _0x2be4(){var _0x167304=['focusCycler','div','498235ObzZyO','true','2043980LZsVNV','604383SFVEZd','3479864uwDIfN','focusTracker','24PJGnjC','forwardCycle','582572iFCroi','367060tJloGC','7yOxffi','fire','27VuIfZl','bindTemplate','createCollection','getFocusableElement','209151SAdWgW'];_0x2be4=function(){return _0x167304;};return _0x2be4();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xe2531e{[_0xbf1a83(0x163)];[_0xbf1a83(0x16f)];constructor(_0x2258e9){var _0x443c74=_0xbf1a83;super(_0x2258e9),this[_0x443c74(0x163)]=new _0x2f0760(),this[_0x443c74(0x16f)]=new _0x463702({'focusables':this[_0x443c74(0x16c)](),'focusTracker':this[_0x443c74(0x163)]});}[_0xbf1a83(0x16d)](){var _0x1ebb8b=_0xbf1a83;return{'tag':_0x1ebb8b(0x170),'attributes':{'aria-hidden':_0x1ebb8b(0x172),'tabindex':'0'},'on':{'focus':this[_0x1ebb8b(0x16b)]['to'](()=>{var _0x4c9943=_0x1ebb8b;this[_0x4c9943(0x16f)][_0x4c9943(0x169)](_0x4c9943(0x165));})}};}}
|