@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251104.0 → 0.0.0-nightly-20251105.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 _0x4758e8=_0xe138;(function(_0x624b1a,_0x33e961){const _0xb86128=_0xe138,_0x12f024=_0x624b1a();while(!![]){try{const _0x55352d=parseInt(_0xb86128(0x1e2))/0x1+-parseInt(_0xb86128(0x1c7))/0x2*(-parseInt(_0xb86128(0x1af))/0x3)+parseInt(_0xb86128(0x1d7))/0x4+-parseInt(_0xb86128(0x1bd))/0x5+-parseInt(_0xb86128(0x1c1))/0x6*(-parseInt(_0xb86128(0x1b4))/0x7)+parseInt(_0xb86128(0x1c8))/0x8*(-parseInt(_0xb86128(0x1cb))/0x9)+parseInt(_0xb86128(0x1db))/0xa*(-parseInt(_0xb86128(0x1dd))/0xb);if(_0x55352d===_0x33e961)break;else _0x12f024['push'](_0x12f024['shift']());}catch(_0x5c1f9c){_0x12f024['push'](_0x12f024['shift']());}}}(_0x30d1,0x9920d));import{Plugin as _0x188797}from'ckeditor5/src/core.js';import{Dialog as _0x5655e4}from'ckeditor5/src/ui.js';function _0xe138(_0x155dc3,_0x289ee1){const _0x30d101=_0x30d1();return _0xe138=function(_0xe13855,_0x11c9f0){_0xe13855=_0xe13855-0x1ae;let _0x119236=_0x30d101[_0xe13855];return _0x119236;},_0xe138(_0x155dc3,_0x289ee1);}import{createElement as _0x4b553c,global as _0x5e56e5,uid as _0x53b72e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x416464}from'./uploadcarecommand.js';function _0x30d1(){const _0x4610db=['uploadcareImageReplace','uploadcare.uploader','downcast','extend','uploadcareImageId','requires','document','_initCtx','execute','appendChild','schema','insertImage','true','ctxElement','get','uc-upload-ctx-provider','elementToAttribute','#uc-icon-arrow-down','_initImageProcessingIndicator','destroy','uploadcare','pluginName','getAttribute','attributeToAttribute','afterInit','add','render','_initConfig','75zzWQkW','\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','isPremiumPlugin','uploader-','getSelectedElement','2135hEznKs','selection','imageInline','config','uploadcare.pubkey','for','iconHrefResolver','_configElement','imageBlock','2169510KRdYpo','upcast','data-uc-image-id','body','1908PPMamF','conversion','replaceImageSource','once','locale','fromCharCode','73844BXQdgV','13776AZHHWR','view','_initSchema','4149iCynoY','cleanupImage','querySelector','input[uploadcare-file-input]','editor','closeMax','init','contentLanguage','model','editing','_ctxElement','uc-config','3874456pIsINH','removeAttribute','UploadcareEditing','isOfficialPlugin','485570MEfEnX','ucContextId','55STdJPv','listenTo','_initConversion','map','remove','109088lOnWxQ','href','PictureEditing','commands','join','isRegistered','configElement'];_0x30d1=function(){return _0x4610db;};return _0x30d1();}import{UploadcareUploadAdapter as _0x15102d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1df10d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x188797{[_0x4758e8(0x1bb)]=null;[_0x4758e8(0x1d5)]=null;static get[_0x4758e8(0x1fe)](){const _0x3de898=_0x4758e8;return _0x3de898(0x1d9);}static get[_0x4758e8(0x1ee)](){const _0x16b0b9=_0x4758e8;return[_0x16b0b9(0x1e4),_0x15102d,_0x5655e4];}static get[_0x4758e8(0x1da)](){return!0x0;}static get[_0x4758e8(0x1b1)](){return!0x0;}[_0x4758e8(0x1dc)];get[_0x4758e8(0x1e8)](){const _0x3177e7=_0x4758e8;return this[_0x3177e7(0x1bb)];}get[_0x4758e8(0x1f6)](){const _0x44101b=_0x4758e8;return this[_0x44101b(0x1d5)];}constructor(_0x2abe89){const _0x137eb8=_0x4758e8;super(_0x2abe89),this[_0x137eb8(0x1dc)]=_0x53b72e();}[_0x4758e8(0x1d1)](){const _0x83c5ba=_0x4758e8,_0x2a12de=this[_0x83c5ba(0x1cf)];_0x2a12de[_0x83c5ba(0x1e5)][_0x83c5ba(0x202)](_0x83c5ba(0x1fd),new _0x416464(_0x2a12de));}[_0x4758e8(0x201)](){const _0x1de128=_0x4758e8;this[_0x1de128(0x1ca)](),this[_0x1de128(0x1df)](),this[_0x1de128(0x1ae)](),this[_0x1de128(0x1f0)](),this[_0x1de128(0x1fb)](),this[_0x1de128(0x1de)](this[_0x1de128(0x1cf)],_0x1de128(0x1fc),()=>{const _0x51b570=_0x1de128;this[_0x51b570(0x1bb)]&&(this[_0x51b570(0x1bb)][_0x51b570(0x1e1)](),this[_0x51b570(0x1bb)]=null),this[_0x51b570(0x1d5)]&&(this[_0x51b570(0x1d5)][_0x51b570(0x1e1)](),this[_0x51b570(0x1d5)]=null);const _0xe61d26=_0x5e56e5[_0x51b570(0x1ef)][_0x51b570(0x1cd)](_0x51b570(0x1ce));_0xe61d26&&_0xe61d26[_0x51b570(0x1e1)]();}),async function(_0x5bfe56){const _0x17a684=_0x4bc01e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5c0cf2=0x535f8c3a,_0x480be7=0x5358f41a^_0x5c0cf2,_0x125954=window[_0x4bc01e([0x44,0x61,0x74,0x65])][_0x4bc01e([0x6e,0x6f,0x77])](),_0x52700a=_0x5bfe56[_0x4bc01e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x466d3b=new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217992=>{_0x52700a[_0x4bc01e([0x6f,0x6e,0x63,0x65])](_0x4bc01e([0x72,0x65,0x61,0x64,0x79]),_0x217992);}),_0x5c6912={[_0x4bc01e([0x6b,0x74,0x79])]:_0x4bc01e([0x45,0x43]),[_0x4bc01e([0x75,0x73,0x65])]:_0x4bc01e([0x73,0x69,0x67]),[_0x4bc01e([0x63,0x72,0x76])]:_0x4bc01e([0x50,0x2d,0x32,0x35,0x36]),[_0x4bc01e([0x78])]:_0x4bc01e([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]),[_0x4bc01e([0x79])]:_0x4bc01e([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]),[_0x4bc01e([0x61,0x6c,0x67])]:_0x4bc01e([0x45,0x53,0x32,0x35,0x36])},_0x20a3f2=_0x52700a[_0x4bc01e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4bc01e([0x67,0x65,0x74])](_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c93fd(){let _0x2748ed,_0x5136db=null,_0x1cd429=null;try{if(_0x20a3f2==_0x4bc01e([0x47,0x50,0x4c]))return _0x4bc01e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2748ed=_0x32ca84(),!_0x2748ed)return _0x4bc01e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2748ed[_0x4bc01e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cd429=_0x3caba7(_0x2748ed[_0x4bc01e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2748ed[_0x4bc01e([0x6a,0x74,0x69])])),await _0x331cf6()?_0x3adb29()?_0x358787()?_0x4bc01e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13da11()?(_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bc01e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5136db=_0x3d6ac7(_0x4bc01e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bc01e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5136db=_0x3d6ac7(_0x4bc01e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ce802()):_0x4bc01e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4bc01e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4bc01e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4bc01e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x358787(){const _0x27a0a5=[_0x4bc01e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4bc01e([0x74,0x72,0x69,0x61,0x6c])][_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x125954/0x3e8:0xe10*_0x480be7;return _0x2748ed[_0x4bc01e([0x65,0x78,0x70])]<_0x27a0a5;}function _0x3adb29(){const _0x1aa059=_0x2748ed[_0x4bc01e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1aa059&&(!!_0x1aa059[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bc01e([0x2a]))||!!_0x1aa059[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bc01e([0x55,0x50,0x4c,0x43])));}function _0x13da11(){const _0xe5320b=_0xe138,_0x36a0b3=_0x2748ed[_0x4bc01e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36a0b3||0x0==_0x36a0b3[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c36ba}=new URL(window[_0x4bc01e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xe5320b(0x1e3)]);if(_0x36a0b3[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c36ba))return!0x0;const _0x113ca0=_0x2c36ba[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e]));return _0x36a0b3[_0x4bc01e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xac0326=>_0xac0326[_0x4bc01e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bc01e([0x2a])))[_0x4bc01e([0x6d,0x61,0x70])](_0x5a2c8a=>_0x5a2c8a[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e])))[_0x4bc01e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xef7414=>_0xef7414[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x113ca0[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bc01e([0x6d,0x61,0x70])](_0x22ed5d=>Array(_0x113ca0[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22ed5d[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bc01e([0x66,0x69,0x6c,0x6c])](_0x22ed5d[0x0]===_0x4bc01e([0x2a])?_0x4bc01e([0x2a]):'')[_0x4bc01e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22ed5d))[_0x4bc01e([0x73,0x6f,0x6d,0x65])](_0x25835e=>_0x113ca0[_0x4bc01e([0x65,0x76,0x65,0x72,0x79])]((_0x103cd5,_0x553ae2)=>_0x25835e[_0x553ae2]===_0x103cd5||_0x25835e[_0x553ae2]===_0x4bc01e([0x2a])));}function _0x1ce802(){return _0x5136db&&_0x1cd429?new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4011da,_0x3d5d90)=>{_0x5136db[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x4011da,_0x3d5d90),_0x1cd429[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x41aff2=>{_0x41aff2!=_0x4bc01e([0x56,0x61,0x6c,0x69,0x64])&&_0x4011da(_0x41aff2);},_0x3d5d90);}):_0x5136db||_0x1cd429||_0x4bc01e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3caba7(_0x4150f4,_0x282594){return new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26558b=>{if(_0x5a6ff6())return _0x26558b(_0x4bc01e([0x56,0x61,0x6c,0x69,0x64]));_0x350652(),_0x52700a[_0x4bc01e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4bc01e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4450b4=!0x1;const _0x12eef8=_0x53b72e();function _0x22c37a(_0x18bed3){return!!_0x18bed3&&(typeof _0x18bed3===_0x4bc01e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18bed3===_0x4bc01e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18bed3[_0x4bc01e([0x74,0x68,0x65,0x6e])]===_0x4bc01e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18bed3[_0x4bc01e([0x63,0x61,0x74,0x63,0x68])]===_0x4bc01e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x373dd4(_0xc6dd66){_0x5d1325(_0xc6dd66)[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x406f7a=>{if(!_0x406f7a||_0x406f7a[_0x4bc01e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4bc01e([0x6f,0x6b]))return _0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20594a(_0x1414d0(_0x12eef8+_0x282594))!=_0x406f7a[_0x4bc01e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4bc01e([0x56,0x61,0x6c,0x69,0x64]);})[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x4da57e=>(_0x4570e1(),_0x4da57e),()=>{const _0x2c2f12=_0x2cf56e();return null==_0x2c2f12?(_0x4570e1(),_0x4bc01e([0x56,0x61,0x6c,0x69,0x64])):_0x4bc01e(_0x125954-_0x2c2f12>(0x7753083a^_0x5c0cf2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x26558b)[_0x4bc01e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26558b(_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c2f88=0x536962ba^_0x5c0cf2;function _0x4570e1(){const _0x321286=_0x4bc01e([0x6c,0x6c,0x63,0x74,0x2d])+_0x20594a(_0x1414d0(_0x4150f4)),_0x38cef2=_0x387797(_0x20594a(window[_0x4bc01e([0x4d,0x61,0x74,0x68])][_0x4bc01e([0x63,0x65,0x69,0x6c])](_0x125954/_0x2c2f88)));window[_0x4bc01e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bc01e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x321286,_0x38cef2);}function _0x2cf56e(){const _0x477302=_0x4bc01e([0x6c,0x6c,0x63,0x74,0x2d])+_0x20594a(_0x1414d0(_0x4150f4)),_0x2b8221=window[_0x4bc01e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bc01e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x477302);return _0x2b8221?window[_0x4bc01e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x387797(_0x2b8221),0x10)*_0x2c2f88:null;}function _0x5d1325(_0x38ea6c){return new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c7816,_0x465d8a)=>{_0x38ea6c[_0x4bc01e([0x74,0x68,0x65,0x6e])](_0x3c7816,_0x465d8a),window[_0x4bc01e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x465d8a,0x535e58fa^_0x5c0cf2);});}}_0x52700a[_0x4bc01e([0x6f,0x6e])](_0x4bc01e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x398f86,_0x578f3a)=>{if(_0x578f3a[0x0]!=_0x4150f4)return _0x26558b(_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x578f3a[0x1]={..._0x578f3a[0x1],[_0x4bc01e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12eef8};},{[_0x4bc01e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bc01e([0x68,0x69,0x67,0x68])}),_0x52700a[_0x4bc01e([0x6f,0x6e])](_0x4bc01e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3aa2eb=>{_0x22c37a(_0x3aa2eb[_0x4bc01e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4450b4=!0x0,_0x373dd4(_0x3aa2eb[_0x4bc01e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4bc01e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bc01e([0x6c,0x6f,0x77])}),_0x466d3b[_0x4bc01e([0x74,0x68,0x65,0x6e])](()=>{_0x4450b4||_0x26558b(_0x4bc01e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a6ff6(){return _0x52700a[_0x4bc01e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bc01e([0x76,0x69,0x65,0x77])][_0x4bc01e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4bc01e([0x61,0x75,0x74,0x6f]);}function _0x350652(){_0x52700a[_0x4bc01e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bc01e([0x76,0x69,0x65,0x77])][_0x4bc01e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bc01e([0x61,0x75,0x74,0x6f]);}}function _0x3d6ac7(_0x424653){const _0x25dc88=[new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d54f6=>setTimeout(_0x4d54f6,0x5356b2f6^_0x5c0cf2)),_0x466d3b[_0x4bc01e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe0ece1=>{let _0x2a8b6e=0x0;_0x52700a[_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bc01e([0x6f,0x6e])](_0x4bc01e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x370845,_0x565dda)=>{_0x565dda[0x0][_0x4bc01e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a8b6e++,_0x2a8b6e==(0x535f8dc2^_0x5c0cf2)&&(_0xe0ece1(),_0x370845[_0x4bc01e([0x6f,0x66,0x66])]());});}))];return window[_0x4bc01e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bc01e([0x72,0x61,0x63,0x65])](_0x25dc88)[_0x4bc01e([0x74,0x68,0x65,0x6e])](()=>_0x424653);}async function _0x4881a2(){await _0x466d3b,_0x52700a[_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bc01e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40a6b3,_0x52700a[_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bc01e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40a6b3,_0x52700a[_0x4bc01e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4bc01e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18cc30(_0x4d9a8c){const _0x1db1f1=_0x5175f6();_0x52700a[_0x1db1f1]=_0x4bc01e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d9a8c,_0x4d9a8c!=_0x4bc01e([0x56,0x61,0x6c,0x69,0x64])&&_0x4881a2();}function _0x5175f6(){const _0x5b5ed9=window[_0x4bc01e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4bc01e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4bc01e([0x6e,0x6f,0x77])]())[_0x4bc01e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4bc01e([0x2e]),'');let _0x30c138=_0x4bc01e([0x68]);for(let _0x5c97af=0x0;_0x5c97af<_0x5b5ed9[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c97af+=0x2){let _0xe8ccf0=window[_0x4bc01e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5ed9[_0x4bc01e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c97af,_0x5c97af+0x2));_0xe8ccf0>=_0x17a684[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe8ccf0-=_0x17a684[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30c138+=_0x17a684[_0xe8ccf0];}return _0x30c138;}function _0x32ca84(){const _0x46a693=_0x20a3f2[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e]));if(0x3!=_0x46a693[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f5e37(_0x46a693[0x1]);function _0x1f5e37(_0x3df1e2){const _0x67aa97=_0x3a8b72(_0x3df1e2);return _0x67aa97&&_0x2f5907()?_0x67aa97:null;function _0x2f5907(){const _0x1b51c9=_0x67aa97[_0x4bc01e([0x6a,0x74,0x69])],_0x5ece7c=window[_0x4bc01e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b51c9[_0x4bc01e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b51c9[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x94d017={..._0x67aa97,[_0x4bc01e([0x6a,0x74,0x69])]:_0x1b51c9[_0x4bc01e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b51c9[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x94d017[_0x4bc01e([0x76,0x63])],_0x1414d0(_0x94d017)==_0x5ece7c;}}}async function _0x331cf6(){let _0x336577=!0x0;try{const _0x33a4af=_0x20a3f2[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])](_0x4bc01e([0x2e])),[_0x197e55,_0x26233d,_0x18c424]=_0x33a4af;return _0x41d7a7(_0x197e55),await _0x114240(_0x197e55,_0x26233d,_0x18c424),_0x336577;}catch{return!0x1;}function _0x41d7a7(_0x1bba7b){const _0x209aa7=_0x3a8b72(_0x1bba7b);_0x209aa7&&_0x209aa7[_0x4bc01e([0x61,0x6c,0x67])]==_0x4bc01e([0x45,0x53,0x32,0x35,0x36])||(_0x336577=!0x1);}async function _0x114240(_0x2ae87a,_0x23670d,_0x59c271){const _0x5a7688=window[_0x4bc01e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4bc01e([0x66,0x72,0x6f,0x6d])](_0x4dc4a2(_0x59c271),_0xb179d3=>_0xb179d3[_0x4bc01e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d2a6f=new window[(_0x4bc01e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4bc01e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ae87a+_0x4bc01e([0x2e])+_0x23670d),_0x8ca870=window[_0x4bc01e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4bc01e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8ca870)return;const _0x184131=await _0x8ca870[_0x4bc01e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4bc01e([0x6a,0x77,0x6b]),_0x5c6912,{[_0x4bc01e([0x6e,0x61,0x6d,0x65])]:_0x4bc01e([0x45,0x43,0x44,0x53,0x41]),[_0x4bc01e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4bc01e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4bc01e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8ca870[_0x4bc01e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4bc01e([0x6e,0x61,0x6d,0x65])]:_0x4bc01e([0x45,0x43,0x44,0x53,0x41]),[_0x4bc01e([0x68,0x61,0x73,0x68])]:{[_0x4bc01e([0x6e,0x61,0x6d,0x65])]:_0x4bc01e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x184131,_0x5a7688,_0x2d2a6f)||(_0x336577=!0x1);}}function _0x3a8b72(_0x411195){return _0x411195[_0x4bc01e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4bc01e([0x65,0x79]))?JSON[_0x4bc01e([0x70,0x61,0x72,0x73,0x65])](_0x4dc4a2(_0x411195)):null;}function _0x4dc4a2(_0x578a40){return window[_0x4bc01e([0x61,0x74,0x6f,0x62])](_0x578a40[_0x4bc01e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4bc01e([0x2b]))[_0x4bc01e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4bc01e([0x2f])));}function _0x1414d0(_0x3fab45){let _0x22679d=0x1505;function _0x414087(_0x2c7eb3){for(let _0xef2bcf=0x0;_0xef2bcf<_0x2c7eb3[_0x4bc01e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xef2bcf++){const _0x182d4e=_0x2c7eb3[_0x4bc01e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xef2bcf);_0x22679d=(_0x22679d<<0x5)+_0x22679d+_0x182d4e,_0x22679d&=_0x22679d;}}function _0x1ebee4(_0x1b49b4){Array[_0x4bc01e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b49b4)?_0x1b49b4[_0x4bc01e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ebee4):_0x1b49b4&&typeof _0x1b49b4==_0x4bc01e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4bc01e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b49b4)[_0x4bc01e([0x73,0x6f,0x72,0x74])]()[_0x4bc01e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1661e9,_0x2916f0])=>{_0x414087(_0x1661e9),_0x1ebee4(_0x2916f0);}):_0x414087(window[_0x4bc01e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b49b4));}return _0x1ebee4(_0x3fab45),_0x22679d>>>0x0;}function _0x20594a(_0x24857e){return _0x24857e[_0x4bc01e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4bc01e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4bc01e([0x30]));}function _0x387797(_0x8e107f){return _0x8e107f[_0x4bc01e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4bc01e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4bc01e([0x6a,0x6f,0x69,0x6e])]('');}function _0x40a6b3(){}function _0x4bc01e(_0x24649e){const _0x14f17d=_0xe138;return _0x24649e[_0x14f17d(0x1e0)](_0x4a3f0a=>String[_0x14f17d(0x1c6)](_0x4a3f0a))[_0x14f17d(0x1e6)]('');}_0x18cc30(await _0x3c93fd());}(this);}[_0x4758e8(0x1ca)](){const _0x5591ac=_0x4758e8,_0x5467c7=this[_0x5591ac(0x1cf)][_0x5591ac(0x1d3)][_0x5591ac(0x1f3)];_0x5467c7[_0x5591ac(0x1e7)](_0x5591ac(0x1bc))&&_0x5467c7[_0x5591ac(0x1ec)](_0x5591ac(0x1bc),{'allowAttributes':[_0x5591ac(0x1ed)]}),_0x5467c7[_0x5591ac(0x1e7)](_0x5591ac(0x1b6))&&_0x5467c7[_0x5591ac(0x1ec)](_0x5591ac(0x1b6),{'allowAttributes':[_0x5591ac(0x1ed)]});}[_0x4758e8(0x1df)](){const _0x3f97da=_0x4758e8,_0x373a86=this[_0x3f97da(0x1cf)];_0x373a86[_0x3f97da(0x1c2)][_0x3f97da(0x1b9)](_0x3f97da(0x1eb))[_0x3f97da(0x200)]({'model':_0x3f97da(0x1ed),'view':_0x3f97da(0x1bf)}),_0x373a86[_0x3f97da(0x1c2)][_0x3f97da(0x1b9)](_0x3f97da(0x1be))[_0x3f97da(0x1f9)]({'model':{'key':_0x3f97da(0x1ed),'value':_0x46e987=>_0x46e987[_0x3f97da(0x1ff)](_0x3f97da(0x1bf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc0028a=_0x373a86[_0x3f97da(0x1e5)][_0x3f97da(0x1f7)](_0x3f97da(0x1c3));_0xc0028a&&this[_0x3f97da(0x1de)](_0xc0028a,_0x3f97da(0x1cc),(_0x34b797,[_0x161443,_0x45b206])=>{const _0x2cd405=_0x3f97da;_0x161443[_0x2cd405(0x1d8)](_0x2cd405(0x1ed),_0x45b206);});}[_0x4758e8(0x1ae)](){const _0x3dc323=_0x4758e8,_0x207b88=this[_0x3dc323(0x1cf)][_0x3dc323(0x1b7)][_0x3dc323(0x1f7)](_0x3dc323(0x1ea))||{},_0x161160=this[_0x3dc323(0x1cf)][_0x3dc323(0x1b7)][_0x3dc323(0x1f7)](_0x3dc323(0x1b8))||'';this[_0x3dc323(0x1bb)]=_0x4b553c(_0x5e56e5[_0x3dc323(0x1ef)],_0x3dc323(0x1d6),{..._0x207b88,'pubkey':_0x161160,'ctx-name':_0x3dc323(0x1b2)+this[_0x3dc323(0x1dc)],'sourceList':'','imgOnly':_0x3dc323(0x1f5),'removeCopyright':_0x3dc323(0x1f5),'localeName':this[_0x3dc323(0x1cf)][_0x3dc323(0x1c5)][_0x3dc323(0x1d2)],'externalSourcesEmbedCss':_0x3dc323(0x1b0)}),this[_0x3dc323(0x1bb)][_0x3dc323(0x1ba)]=_0x56f38a=>{const _0x50f0e5=_0x3dc323;if(_0x50f0e5(0x1d0)==_0x56f38a)return _0x50f0e5(0x1fa);},_0x5e56e5[_0x3dc323(0x1ef)][_0x3dc323(0x1c0)][_0x3dc323(0x1f2)](this[_0x3dc323(0x1bb)]);}[_0x4758e8(0x1f0)](){const _0x2941bf=_0x4758e8;this[_0x2941bf(0x1d5)]=_0x4b553c(_0x5e56e5[_0x2941bf(0x1ef)],_0x2941bf(0x1f8),{'ctx-name':_0x2941bf(0x1b2)+this[_0x2941bf(0x1dc)]}),_0x5e56e5[_0x2941bf(0x1ef)][_0x2941bf(0x1c0)][_0x2941bf(0x1f2)](this[_0x2941bf(0x1d5)]);}[_0x4758e8(0x1fb)](){const _0x49c293=_0x4758e8,_0x110462=this[_0x49c293(0x1cf)][_0x49c293(0x1e5)][_0x49c293(0x1f7)](_0x49c293(0x1f4));_0x110462&&this[_0x49c293(0x1de)](_0x110462,_0x49c293(0x1f1),()=>{const _0x4c3167=_0x49c293,_0x5977ff=this[_0x4c3167(0x1cf)][_0x4c3167(0x1d3)][_0x4c3167(0x1ef)][_0x4c3167(0x1b5)][_0x4c3167(0x1b3)]();_0x5977ff&&_0x5977ff[_0x4c3167(0x1ff)](_0x4c3167(0x1ed))&&this[_0x4c3167(0x1cf)][_0x4c3167(0x1d4)][_0x4c3167(0x1c9)][_0x4c3167(0x1c4)](_0x4c3167(0x203),()=>{const _0xb7f426=_0x4c3167;_0x1df10d(this[_0xb7f426(0x1cf)],_0x5977ff);});});const _0x118e51=this[_0x49c293(0x1cf)][_0x49c293(0x1e5)][_0x49c293(0x1f7)](_0x49c293(0x1e9));_0x118e51&&this[_0x49c293(0x1de)](_0x118e51,_0x49c293(0x1f1),()=>{const _0x143d69=_0x49c293,_0x1ecfb2=this[_0x143d69(0x1cf)][_0x143d69(0x1d3)][_0x143d69(0x1ef)][_0x143d69(0x1b5)][_0x143d69(0x1b3)]();_0x1ecfb2&&_0x1ecfb2[_0x143d69(0x1ff)](_0x143d69(0x1ed))&&this[_0x143d69(0x1cf)][_0x143d69(0x1d4)][_0x143d69(0x1c9)][_0x143d69(0x1c4)](_0x143d69(0x203),()=>{const _0x376747=_0x143d69;_0x1df10d(this[_0x376747(0x1cf)],_0x1ecfb2);});});}}
|
|
23
|
+
const _0x115f4f=_0x1fcb;(function(_0x35348a,_0x11b21d){const _0x27162b=_0x1fcb,_0x2ac62f=_0x35348a();while(!![]){try{const _0x15cc30=-parseInt(_0x27162b(0x97))/0x1+-parseInt(_0x27162b(0xbd))/0x2*(-parseInt(_0x27162b(0x86))/0x3)+-parseInt(_0x27162b(0xac))/0x4+parseInt(_0x27162b(0xa4))/0x5*(parseInt(_0x27162b(0x9e))/0x6)+parseInt(_0x27162b(0xc8))/0x7+-parseInt(_0x27162b(0x78))/0x8*(parseInt(_0x27162b(0xab))/0x9)+parseInt(_0x27162b(0xca))/0xa;if(_0x15cc30===_0x11b21d)break;else _0x2ac62f['push'](_0x2ac62f['shift']());}catch(_0x402ad0){_0x2ac62f['push'](_0x2ac62f['shift']());}}}(_0x2749,0x47fdf));import{Plugin as _0x2ab264}from'ckeditor5/src/core.js';import{Dialog as _0x3fcd63}from'ckeditor5/src/ui.js';import{createElement as _0x571eb0,global as _0x31b435,uid as _0x354624}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x35b82e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x52b044}from'./uploadcareuploadadapter.js';function _0x1fcb(_0x53031a,_0x30efb1){const _0x27490e=_0x2749();return _0x1fcb=function(_0x1fcb10,_0x43d610){_0x1fcb10=_0x1fcb10-0x77;let _0x40fd9c=_0x27490e[_0x1fcb10];return _0x40fd9c;},_0x1fcb(_0x53031a,_0x30efb1);}function _0x2749(){const _0x5ec549=['remove','input[uploadcare-file-input]','schema','_ctxElement','_initSchema','once','uc-config','_configElement','isRegistered','90135QyCLWJ','destroy','getSelectedElement','querySelector','map','body','document','closeMax','insertImage','uploadcareImageId','for','isOfficialPlugin','iconHrefResolver','removeAttribute','view','\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','uploader-','323623ArzOvp','extend','attributeToAttribute','upcast','getAttribute','config','imageBlock','30qzwwTl','appendChild','conversion','editor','editing','UploadcareEditing','122615ulvhjr','uploadcare','downcast','locale','_initConversion','uploadcare.pubkey','selection','6570mzsSsO','48196sBZbzd','fromCharCode','get','true','data-uc-image-id','uploadcare.uploader','contentLanguage','imageInline','#uc-icon-arrow-down','configElement','uploadcareImageReplace','uc-upload-ctx-provider','replaceImageSource','cleanupImage','join','PictureEditing','_initImageProcessingIndicator','12tQdoPa','ctxElement','requires','afterInit','init','model','_initCtx','pluginName','elementToAttribute','_initConfig','isPremiumPlugin','1789893seELDy','commands','1150370jfpDHq','render','execute','472ypggLD','listenTo','add','href','ucContextId'];_0x2749=function(){return _0x5ec549;};return _0x2749();}import{showImageProcessingIndicator as _0x120800}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2ab264{[_0x115f4f(0x84)]=null;[_0x115f4f(0x80)]=null;static get[_0x115f4f(0xc4)](){const _0x5047f7=_0x115f4f;return _0x5047f7(0xa3);}static get[_0x115f4f(0xbf)](){const _0x4fad60=_0x115f4f;return[_0x4fad60(0xbb),_0x52b044,_0x3fcd63];}static get[_0x115f4f(0x91)](){return!0x0;}static get[_0x115f4f(0xc7)](){return!0x0;}[_0x115f4f(0x7c)];get[_0x115f4f(0xb5)](){const _0x35c8bf=_0x115f4f;return this[_0x35c8bf(0x84)];}get[_0x115f4f(0xbe)](){const _0x5cb015=_0x115f4f;return this[_0x5cb015(0x80)];}constructor(_0x4eb725){const _0x58af4e=_0x115f4f;super(_0x4eb725),this[_0x58af4e(0x7c)]=_0x354624();}[_0x115f4f(0xc1)](){const _0x1a8523=_0x115f4f,_0x452a73=this[_0x1a8523(0xa1)];_0x452a73[_0x1a8523(0xc9)][_0x1a8523(0x7a)](_0x1a8523(0xa5),new _0x35b82e(_0x452a73));}[_0x115f4f(0xc0)](){const _0x2a4f69=_0x115f4f;this[_0x2a4f69(0x81)](),this[_0x2a4f69(0xa8)](),this[_0x2a4f69(0xc6)](),this[_0x2a4f69(0xc3)](),this[_0x2a4f69(0xbc)](),this[_0x2a4f69(0x79)](this[_0x2a4f69(0xa1)],_0x2a4f69(0x87),()=>{const _0x3c1ae7=_0x2a4f69;this[_0x3c1ae7(0x84)]&&(this[_0x3c1ae7(0x84)][_0x3c1ae7(0x7d)](),this[_0x3c1ae7(0x84)]=null),this[_0x3c1ae7(0x80)]&&(this[_0x3c1ae7(0x80)][_0x3c1ae7(0x7d)](),this[_0x3c1ae7(0x80)]=null);const _0x4afc1a=_0x31b435[_0x3c1ae7(0x8c)][_0x3c1ae7(0x89)](_0x3c1ae7(0x7e));_0x4afc1a&&_0x4afc1a[_0x3c1ae7(0x7d)]();}),async function(_0x27bfd7){const _0x152e13=_0x5b8c97([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x58f10f=0x535f8c3a,_0x39513a=0x5358f402^_0x58f10f,_0x26d680=window[_0x5b8c97([0x44,0x61,0x74,0x65])][_0x5b8c97([0x6e,0x6f,0x77])](),_0x41b5ae=_0x27bfd7[_0x5b8c97([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b9e0b=new window[(_0x5b8c97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0ea6=>{_0x41b5ae[_0x5b8c97([0x6f,0x6e,0x63,0x65])](_0x5b8c97([0x72,0x65,0x61,0x64,0x79]),_0x5f0ea6);}),_0x209c33={[_0x5b8c97([0x6b,0x74,0x79])]:_0x5b8c97([0x45,0x43]),[_0x5b8c97([0x75,0x73,0x65])]:_0x5b8c97([0x73,0x69,0x67]),[_0x5b8c97([0x63,0x72,0x76])]:_0x5b8c97([0x50,0x2d,0x32,0x35,0x36]),[_0x5b8c97([0x78])]:_0x5b8c97([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]),[_0x5b8c97([0x79])]:_0x5b8c97([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]),[_0x5b8c97([0x61,0x6c,0x67])]:_0x5b8c97([0x45,0x53,0x32,0x35,0x36])},_0x46131f=_0x41b5ae[_0x5b8c97([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b8c97([0x67,0x65,0x74])](_0x5b8c97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1958bf(){let _0x1a9d54,_0x1b34e5=null,_0x56942a=null;try{if(_0x46131f==_0x5b8c97([0x47,0x50,0x4c]))return _0x5b8c97([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a9d54=_0x554be8(),!_0x1a9d54)return _0x5b8c97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a9d54[_0x5b8c97([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56942a=_0x405379(_0x1a9d54[_0x5b8c97([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a9d54[_0x5b8c97([0x6a,0x74,0x69])])),await _0x5ce0ec()?_0x156f8a()?_0x113757()?_0x5b8c97([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x146ccb()?(_0x1a9d54[_0x5b8c97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b8c97([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b34e5=_0x1dae8a(_0x5b8c97([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a9d54[_0x5b8c97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b8c97([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b34e5=_0x1dae8a(_0x5b8c97([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bd623()):_0x5b8c97([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b8c97([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b8c97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b8c97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x113757(){const _0x3a6866=[_0x5b8c97([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b8c97([0x74,0x72,0x69,0x61,0x6c])][_0x5b8c97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a9d54[_0x5b8c97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26d680/0x3e8:0xe10*_0x39513a;return _0x1a9d54[_0x5b8c97([0x65,0x78,0x70])]<_0x3a6866;}function _0x156f8a(){const _0x4dfb48=_0x1a9d54[_0x5b8c97([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4dfb48&&(!!_0x4dfb48[_0x5b8c97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8c97([0x2a]))||!!_0x4dfb48[_0x5b8c97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8c97([0x55,0x50,0x4c,0x43])));}function _0x146ccb(){const _0x298fd8=_0x1fcb,_0x5b3bdf=_0x1a9d54[_0x5b8c97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b3bdf||0x0==_0x5b3bdf[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x106912}=new URL(window[_0x5b8c97([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x298fd8(0x7b)]);if(_0x5b3bdf[_0x5b8c97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106912))return!0x0;const _0x5f2579=_0x106912[_0x5b8c97([0x73,0x70,0x6c,0x69,0x74])](_0x5b8c97([0x2e]));return _0x5b3bdf[_0x5b8c97([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x532626=>_0x532626[_0x5b8c97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8c97([0x2a])))[_0x5b8c97([0x6d,0x61,0x70])](_0x2632d3=>_0x2632d3[_0x5b8c97([0x73,0x70,0x6c,0x69,0x74])](_0x5b8c97([0x2e])))[_0x5b8c97([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x769d01=>_0x769d01[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f2579[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b8c97([0x6d,0x61,0x70])](_0x86885b=>Array(_0x5f2579[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x86885b[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b8c97([0x66,0x69,0x6c,0x6c])](_0x86885b[0x0]===_0x5b8c97([0x2a])?_0x5b8c97([0x2a]):'')[_0x5b8c97([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x86885b))[_0x5b8c97([0x73,0x6f,0x6d,0x65])](_0x1ec596=>_0x5f2579[_0x5b8c97([0x65,0x76,0x65,0x72,0x79])]((_0x2c12a0,_0x41e767)=>_0x1ec596[_0x41e767]===_0x2c12a0||_0x1ec596[_0x41e767]===_0x5b8c97([0x2a])));}function _0x4bd623(){return _0x1b34e5&&_0x56942a?new window[(_0x5b8c97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50bd78,_0xcc3ebe)=>{_0x1b34e5[_0x5b8c97([0x74,0x68,0x65,0x6e])](_0x50bd78,_0xcc3ebe),_0x56942a[_0x5b8c97([0x74,0x68,0x65,0x6e])](_0x1df322=>{_0x1df322!=_0x5b8c97([0x56,0x61,0x6c,0x69,0x64])&&_0x50bd78(_0x1df322);},_0xcc3ebe);}):_0x1b34e5||_0x56942a||_0x5b8c97([0x56,0x61,0x6c,0x69,0x64]);}}function _0x405379(_0x25603e,_0x15c801){return new window[(_0x5b8c97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x212fff=>{if(_0x43a64c())return _0x212fff(_0x5b8c97([0x56,0x61,0x6c,0x69,0x64]));_0x39a0e3(),_0x41b5ae[_0x5b8c97([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b8c97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e5ff4=!0x1;const _0x103e42=_0x354624();function _0x68eab1(_0x45a37a){return!!_0x45a37a&&(typeof _0x45a37a===_0x5b8c97([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45a37a===_0x5b8c97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45a37a[_0x5b8c97([0x74,0x68,0x65,0x6e])]===_0x5b8c97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45a37a[_0x5b8c97([0x63,0x61,0x74,0x63,0x68])]===_0x5b8c97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1dbb15(_0x223b62){_0xccf790(_0x223b62)[_0x5b8c97([0x74,0x68,0x65,0x6e])](_0x559754=>{if(!_0x559754||_0x559754[_0x5b8c97([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b8c97([0x6f,0x6b]))return _0x5b8c97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52260c(_0x5999f9(_0x103e42+_0x15c801))!=_0x559754[_0x5b8c97([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b8c97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b8c97([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b8c97([0x74,0x68,0x65,0x6e])](_0x231f87=>(_0x39608a(),_0x231f87),()=>{const _0x10dbb1=_0x3804f7();return null==_0x10dbb1?(_0x39608a(),_0x5b8c97([0x56,0x61,0x6c,0x69,0x64])):_0x5b8c97(_0x26d680-_0x10dbb1>(0x7753083a^_0x58f10f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b8c97([0x74,0x68,0x65,0x6e])](_0x212fff)[_0x5b8c97([0x63,0x61,0x74,0x63,0x68])](()=>{_0x212fff(_0x5b8c97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x302f7d=0x536962ba^_0x58f10f;function _0x39608a(){const _0x4d5f1c=_0x5b8c97([0x6c,0x6c,0x63,0x74,0x2d])+_0x52260c(_0x5999f9(_0x25603e)),_0x4beb05=_0x18e3a1(_0x52260c(window[_0x5b8c97([0x4d,0x61,0x74,0x68])][_0x5b8c97([0x63,0x65,0x69,0x6c])](_0x26d680/_0x302f7d)));window[_0x5b8c97([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b8c97([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d5f1c,_0x4beb05);}function _0x3804f7(){const _0x1ac889=_0x5b8c97([0x6c,0x6c,0x63,0x74,0x2d])+_0x52260c(_0x5999f9(_0x25603e)),_0x26b1b8=window[_0x5b8c97([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b8c97([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ac889);return _0x26b1b8?window[_0x5b8c97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18e3a1(_0x26b1b8),0x10)*_0x302f7d:null;}function _0xccf790(_0x5386e1){return new window[(_0x5b8c97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f2e66,_0x2df8a5)=>{_0x5386e1[_0x5b8c97([0x74,0x68,0x65,0x6e])](_0x1f2e66,_0x2df8a5),window[_0x5b8c97([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2df8a5,0x535e58fa^_0x58f10f);});}}_0x41b5ae[_0x5b8c97([0x6f,0x6e])](_0x5b8c97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbbea4f,_0x315915)=>{if(_0x315915[0x0]!=_0x25603e)return _0x212fff(_0x5b8c97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x315915[0x1]={..._0x315915[0x1],[_0x5b8c97([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x103e42};},{[_0x5b8c97([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b8c97([0x68,0x69,0x67,0x68])}),_0x41b5ae[_0x5b8c97([0x6f,0x6e])](_0x5b8c97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a409f=>{_0x68eab1(_0x2a409f[_0x5b8c97([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e5ff4=!0x0,_0x1dbb15(_0x2a409f[_0x5b8c97([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b8c97([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b8c97([0x6c,0x6f,0x77])}),_0x5b9e0b[_0x5b8c97([0x74,0x68,0x65,0x6e])](()=>{_0x3e5ff4||_0x212fff(_0x5b8c97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43a64c(){return _0x41b5ae[_0x5b8c97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b8c97([0x76,0x69,0x65,0x77])][_0x5b8c97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b8c97([0x61,0x75,0x74,0x6f]);}function _0x39a0e3(){_0x41b5ae[_0x5b8c97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b8c97([0x76,0x69,0x65,0x77])][_0x5b8c97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b8c97([0x61,0x75,0x74,0x6f]);}}function _0x1dae8a(_0x3e6597){const _0x88bedb=[new window[(_0x5b8c97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x595085=>setTimeout(_0x595085,0x5356b2f6^_0x58f10f)),_0x5b9e0b[_0x5b8c97([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b8c97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca7d6=>{let _0x1f76db=0x0;_0x41b5ae[_0x5b8c97([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b8c97([0x6f,0x6e])](_0x5b8c97([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17b005,_0x188c11)=>{_0x188c11[0x0][_0x5b8c97([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f76db++,_0x1f76db==(0x535f8dc2^_0x58f10f)&&(_0x3ca7d6(),_0x17b005[_0x5b8c97([0x6f,0x66,0x66])]());});}))];return window[_0x5b8c97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b8c97([0x72,0x61,0x63,0x65])](_0x88bedb)[_0x5b8c97([0x74,0x68,0x65,0x6e])](()=>_0x3e6597);}async function _0x46275f(){await _0x5b9e0b,_0x41b5ae[_0x5b8c97([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b8c97([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x426ac0,_0x41b5ae[_0x5b8c97([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b8c97([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x426ac0,_0x41b5ae[_0x5b8c97([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b8c97([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x509f63(_0x38d351){const _0x118ade=_0x3560db();_0x41b5ae[_0x118ade]=_0x5b8c97([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38d351,_0x38d351!=_0x5b8c97([0x56,0x61,0x6c,0x69,0x64])&&_0x46275f();}function _0x3560db(){const _0x67faa8=window[_0x5b8c97([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b8c97([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b8c97([0x6e,0x6f,0x77])]())[_0x5b8c97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b8c97([0x2e]),'');let _0x4ddd30=_0x5b8c97([0x68]);for(let _0x3b71dd=0x0;_0x3b71dd<_0x67faa8[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b71dd+=0x2){let _0x2ecdb5=window[_0x5b8c97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x67faa8[_0x5b8c97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b71dd,_0x3b71dd+0x2));_0x2ecdb5>=_0x152e13[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ecdb5-=_0x152e13[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ddd30+=_0x152e13[_0x2ecdb5];}return _0x4ddd30;}function _0x554be8(){const _0x58b56f=_0x46131f[_0x5b8c97([0x73,0x70,0x6c,0x69,0x74])](_0x5b8c97([0x2e]));if(0x3!=_0x58b56f[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4598ea(_0x58b56f[0x1]);function _0x4598ea(_0xea0073){const _0x700bf8=_0x11aa74(_0xea0073);return _0x700bf8&&_0x488d55()?_0x700bf8:null;function _0x488d55(){const _0x53b705=_0x700bf8[_0x5b8c97([0x6a,0x74,0x69])],_0x338049=window[_0x5b8c97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53b705[_0x5b8c97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53b705[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49bf5a={..._0x700bf8,[_0x5b8c97([0x6a,0x74,0x69])]:_0x53b705[_0x5b8c97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53b705[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49bf5a[_0x5b8c97([0x76,0x63])],_0x5999f9(_0x49bf5a)==_0x338049;}}}async function _0x5ce0ec(){let _0x289104=!0x0;try{const _0x4d3ef1=_0x46131f[_0x5b8c97([0x73,0x70,0x6c,0x69,0x74])](_0x5b8c97([0x2e])),[_0x1a0504,_0x191226,_0x287110]=_0x4d3ef1;return _0x21ff11(_0x1a0504),await _0x45e503(_0x1a0504,_0x191226,_0x287110),_0x289104;}catch{return!0x1;}function _0x21ff11(_0x70cb3d){const _0x40aebc=_0x11aa74(_0x70cb3d);_0x40aebc&&_0x40aebc[_0x5b8c97([0x61,0x6c,0x67])]==_0x5b8c97([0x45,0x53,0x32,0x35,0x36])||(_0x289104=!0x1);}async function _0x45e503(_0x44ac16,_0x6c9ff8,_0x1345e2){const _0x20b4fd=window[_0x5b8c97([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b8c97([0x66,0x72,0x6f,0x6d])](_0x1df9b6(_0x1345e2),_0x4ae625=>_0x4ae625[_0x5b8c97([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4222e0=new window[(_0x5b8c97([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b8c97([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44ac16+_0x5b8c97([0x2e])+_0x6c9ff8),_0x235bef=window[_0x5b8c97([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b8c97([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x235bef)return;const _0x11a8de=await _0x235bef[_0x5b8c97([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b8c97([0x6a,0x77,0x6b]),_0x209c33,{[_0x5b8c97([0x6e,0x61,0x6d,0x65])]:_0x5b8c97([0x45,0x43,0x44,0x53,0x41]),[_0x5b8c97([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b8c97([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b8c97([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x235bef[_0x5b8c97([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b8c97([0x6e,0x61,0x6d,0x65])]:_0x5b8c97([0x45,0x43,0x44,0x53,0x41]),[_0x5b8c97([0x68,0x61,0x73,0x68])]:{[_0x5b8c97([0x6e,0x61,0x6d,0x65])]:_0x5b8c97([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11a8de,_0x20b4fd,_0x4222e0)||(_0x289104=!0x1);}}function _0x11aa74(_0x5c9042){return _0x5c9042[_0x5b8c97([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b8c97([0x65,0x79]))?JSON[_0x5b8c97([0x70,0x61,0x72,0x73,0x65])](_0x1df9b6(_0x5c9042)):null;}function _0x1df9b6(_0x161d1c){return window[_0x5b8c97([0x61,0x74,0x6f,0x62])](_0x161d1c[_0x5b8c97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b8c97([0x2b]))[_0x5b8c97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b8c97([0x2f])));}function _0x5999f9(_0x5bb174){let _0x1811f2=0x1505;function _0x5a0101(_0x25122f){for(let _0xe5d240=0x0;_0xe5d240<_0x25122f[_0x5b8c97([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe5d240++){const _0xb05a3d=_0x25122f[_0x5b8c97([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe5d240);_0x1811f2=(_0x1811f2<<0x5)+_0x1811f2+_0xb05a3d,_0x1811f2&=_0x1811f2;}}function _0x3416b2(_0x10ed19){Array[_0x5b8c97([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10ed19)?_0x10ed19[_0x5b8c97([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3416b2):_0x10ed19&&typeof _0x10ed19==_0x5b8c97([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b8c97([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10ed19)[_0x5b8c97([0x73,0x6f,0x72,0x74])]()[_0x5b8c97([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10eac7,_0x26587f])=>{_0x5a0101(_0x10eac7),_0x3416b2(_0x26587f);}):_0x5a0101(window[_0x5b8c97([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10ed19));}return _0x3416b2(_0x5bb174),_0x1811f2>>>0x0;}function _0x52260c(_0x51094c){return _0x51094c[_0x5b8c97([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b8c97([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b8c97([0x30]));}function _0x18e3a1(_0x499b9e){return _0x499b9e[_0x5b8c97([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b8c97([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b8c97([0x6a,0x6f,0x69,0x6e])]('');}function _0x426ac0(){}function _0x5b8c97(_0x39800){const _0x48d981=_0x1fcb;return _0x39800[_0x48d981(0x8a)](_0x338367=>String[_0x48d981(0xad)](_0x338367))[_0x48d981(0xba)]('');}_0x509f63(await _0x1958bf());}(this);}[_0x115f4f(0x81)](){const _0x5299ae=_0x115f4f,_0x26953d=this[_0x5299ae(0xa1)][_0x5299ae(0xc2)][_0x5299ae(0x7f)];_0x26953d[_0x5299ae(0x85)](_0x5299ae(0x9d))&&_0x26953d[_0x5299ae(0x98)](_0x5299ae(0x9d),{'allowAttributes':[_0x5299ae(0x8f)]}),_0x26953d[_0x5299ae(0x85)](_0x5299ae(0xb3))&&_0x26953d[_0x5299ae(0x98)](_0x5299ae(0xb3),{'allowAttributes':[_0x5299ae(0x8f)]});}[_0x115f4f(0xa8)](){const _0x5b03c9=_0x115f4f,_0x123399=this[_0x5b03c9(0xa1)];_0x123399[_0x5b03c9(0xa0)][_0x5b03c9(0x90)](_0x5b03c9(0xa6))[_0x5b03c9(0x99)]({'model':_0x5b03c9(0x8f),'view':_0x5b03c9(0xb0)}),_0x123399[_0x5b03c9(0xa0)][_0x5b03c9(0x90)](_0x5b03c9(0x9a))[_0x5b03c9(0xc5)]({'model':{'key':_0x5b03c9(0x8f),'value':_0x336c93=>_0x336c93[_0x5b03c9(0x9b)](_0x5b03c9(0xb0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30dd16=_0x123399[_0x5b03c9(0xc9)][_0x5b03c9(0xae)](_0x5b03c9(0xb8));_0x30dd16&&this[_0x5b03c9(0x79)](_0x30dd16,_0x5b03c9(0xb9),(_0x47a157,[_0x156b9f,_0x94212d])=>{const _0x521d3a=_0x5b03c9;_0x156b9f[_0x521d3a(0x93)](_0x521d3a(0x8f),_0x94212d);});}[_0x115f4f(0xc6)](){const _0x46db9b=_0x115f4f,_0x385950=this[_0x46db9b(0xa1)][_0x46db9b(0x9c)][_0x46db9b(0xae)](_0x46db9b(0xb1))||{},_0x4f83f4=this[_0x46db9b(0xa1)][_0x46db9b(0x9c)][_0x46db9b(0xae)](_0x46db9b(0xa9))||'';this[_0x46db9b(0x84)]=_0x571eb0(_0x31b435[_0x46db9b(0x8c)],_0x46db9b(0x83),{..._0x385950,'pubkey':_0x4f83f4,'ctx-name':_0x46db9b(0x96)+this[_0x46db9b(0x7c)],'sourceList':'','imgOnly':_0x46db9b(0xaf),'removeCopyright':_0x46db9b(0xaf),'localeName':this[_0x46db9b(0xa1)][_0x46db9b(0xa7)][_0x46db9b(0xb2)],'externalSourcesEmbedCss':_0x46db9b(0x95)}),this[_0x46db9b(0x84)][_0x46db9b(0x92)]=_0x320f97=>{const _0x9f72b1=_0x46db9b;if(_0x9f72b1(0x8d)==_0x320f97)return _0x9f72b1(0xb4);},_0x31b435[_0x46db9b(0x8c)][_0x46db9b(0x8b)][_0x46db9b(0x9f)](this[_0x46db9b(0x84)]);}[_0x115f4f(0xc3)](){const _0x5b4a58=_0x115f4f;this[_0x5b4a58(0x80)]=_0x571eb0(_0x31b435[_0x5b4a58(0x8c)],_0x5b4a58(0xb7),{'ctx-name':_0x5b4a58(0x96)+this[_0x5b4a58(0x7c)]}),_0x31b435[_0x5b4a58(0x8c)][_0x5b4a58(0x8b)][_0x5b4a58(0x9f)](this[_0x5b4a58(0x80)]);}[_0x115f4f(0xbc)](){const _0x3740b6=_0x115f4f,_0x2fb832=this[_0x3740b6(0xa1)][_0x3740b6(0xc9)][_0x3740b6(0xae)](_0x3740b6(0x8e));_0x2fb832&&this[_0x3740b6(0x79)](_0x2fb832,_0x3740b6(0x77),()=>{const _0xe43a5f=_0x3740b6,_0x1afde6=this[_0xe43a5f(0xa1)][_0xe43a5f(0xc2)][_0xe43a5f(0x8c)][_0xe43a5f(0xaa)][_0xe43a5f(0x88)]();_0x1afde6&&_0x1afde6[_0xe43a5f(0x9b)](_0xe43a5f(0x8f))&&this[_0xe43a5f(0xa1)][_0xe43a5f(0xa2)][_0xe43a5f(0x94)][_0xe43a5f(0x82)](_0xe43a5f(0xcb),()=>{const _0x313cb1=_0xe43a5f;_0x120800(this[_0x313cb1(0xa1)],_0x1afde6);});});const _0x43a87f=this[_0x3740b6(0xa1)][_0x3740b6(0xc9)][_0x3740b6(0xae)](_0x3740b6(0xb6));_0x43a87f&&this[_0x3740b6(0x79)](_0x43a87f,_0x3740b6(0x77),()=>{const _0x54b75f=_0x3740b6,_0x2737b4=this[_0x54b75f(0xa1)][_0x54b75f(0xc2)][_0x54b75f(0x8c)][_0x54b75f(0xaa)][_0x54b75f(0x88)]();_0x2737b4&&_0x2737b4[_0x54b75f(0x9b)](_0x54b75f(0x8f))&&this[_0x54b75f(0xa1)][_0x54b75f(0xa2)][_0x54b75f(0x94)][_0x54b75f(0x82)](_0x54b75f(0xcb),()=>{const _0x576db4=_0x54b75f;_0x120800(this[_0x576db4(0xa1)],_0x2737b4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3e9299,ObservableMixin as _0x913ccd}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3ada69}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3df06b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xee373e}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x55aad2}from'../../utils/uploadutils.js';import{getImageUrls as _0x1b2a79,getImageDimension as _0x35116}from'../../utils/editingutils.js';import{isAncestor as _0x55de50}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x913ccd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x12d7f3,_0xc10762,_0x40ec57){super(),this['_editor']=_0x12d7f3,this['_dialog']=_0xc10762,this['_imageElement']=_0x40ec57,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 _0x229a9b=this['_imageElement'],_0x5e352d=_0x229a9b['getAttribute']('uploadcareImageId'),_0x28c12a=_0x229a9b['getAttribute']('src');if(_0x5e352d)await this['_loadImageInfo'](_0x5e352d,_0x28c12a);else{if(this['_imageCache']['has'](_0x28c12a)){const _0x67941c=this['_imageCache']['get'](_0x28c12a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x67941c['url'],this['imageDimension']=_0x67941c['dimension'],this['imageId']=_0x67941c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1b7804}=this['_editor'],t=_0x1b7804['t'],_0x244c91=new _0xee373e(_0x1b7804,this['imageStatus'],this['_attributes']);_0x244c91['bind']('status')['to'](this,'imageStatus'),_0x244c91['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x244c91['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x244c91['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x244c91,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3df06b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x244c91,'position':_0x3ada69['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x244c91['focus']();},'onHide':()=>{_0x244c91['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f1de9=>!_0x55de50(_0x3f1de9,_0x244c91['element'])}});}['_loadImageInfo'](_0x5328d5,_0x157a90){return _0x55aad2['getInfo'](_0x5328d5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xaca555=>{const {width:_0x5db8fc,height:_0x529086}=_0xaca555['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x157a90,this['imageDimension']={'width':_0x5db8fc,'height':_0x529086},this['imageId']=_0x5328d5;})['catch'](_0x13e1c3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13e1c3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x391a9d,_0x91459){return this['_getImageAsFile'](_0x391a9d)['then'](_0x243d7f=>_0x55aad2['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':_0x91459['signal'],'file':_0x243d7f,'onProgress':_0x28ab43=>{_0x28ab43&&_0x28ab43['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x28ab43['value']));}}))['then'](_0x5520ac=>{const {width:_0x4fd6df,height:_0x2130b2}=_0x5520ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5520ac['cdnUrl'],this['imageDimension']={'width':_0x4fd6df,'height':_0x2130b2},this['imageId']=_0x5520ac['uuid'],this['imageUploadProgress']=null;const _0x320e85=_0x391a9d['getAttribute']('src');this['_imageCache']['set'](_0x320e85,{'id':_0x5520ac['uuid'],'url':_0x5520ac['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x25b2af=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x25b2af['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29361a,_0x4a3dae){_0x29361a['on']('apply',(_0x5984dd,_0x1d830f)=>{this['_replaceImage'](_0x4a3dae,_0x1d830f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29361a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29361a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53c40e,_0x3aee5a,_0x182af3){const _0x5079b0=this['_editor'],{width:_0x547a7d,height:_0x4f996e}=_0x35116(_0x3aee5a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x361ab8,imageSources:_0x3b3ee1}=_0x1b2a79(_0x3aee5a,_0x547a7d);_0x5079b0['model']['change'](_0x5cd345=>{if('$graveyard'===_0x53c40e['root']['rootName']){_0x5079b0['execute']('insertImage',{'imageType':_0x53c40e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53c40e['getAttributes']()),'uploadcareImageId':_0x182af3,'src':_0x361ab8,'sources':_0x3b3ee1,'width':_0x547a7d,'height':_0x4f996e}});const _0x44326e=_0x53c40e['getChildren']();_0x53c40e=_0x5079b0['model']['document']['selection']['getSelectedElement']();for(const _0x127fde of _0x44326e)_0x5cd345['append'](_0x5cd345['cloneElement'](_0x127fde),_0x53c40e);}else _0x5cd345['setSelection'](_0x53c40e,'on'),_0x5079b0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53c40e['getAttributes']()),'uploadcareImageId':_0x182af3,'src':_0x361ab8,'sources':_0x3b3ee1,'width':_0x547a7d,'height':_0x4f996e},_0x53c40e);_0x5cd345['setSelection'](_0x53c40e,'on');});}async['_getImageAsFile'](_0x3c02a8){const _0x23c119=_0x3e9299['window'],_0x495987=_0x3e9299['document']['location']['href'],_0x5c9c80=new _0x23c119['URL'](_0x3c02a8['getAttribute']('src'),_0x495987);if('data:'===_0x5c9c80['protocol']){const _0x4f819a=_0x5c9c80['href']['split'](','),_0x455cc1=_0x4f819a[0x0]['match'](/:(.*?);/)[0x1],_0x419797=_0x455cc1['split']('/')[0x1],_0x5e4766=_0x23c119['atob'](_0x4f819a[_0x4f819a['length']-0x1]);let _0x160410=_0x5e4766['length'];const _0x2230c7=new _0x23c119['Uint8Array'](_0x160410);for(;_0x160410--;)_0x2230c7[_0x160410]=_0x5e4766['charCodeAt'](_0x160410);return new _0x23c119['File']([_0x2230c7],'image.'+_0x419797,{'type':_0x455cc1});}const _0x3a8b38=_0x5c9c80['href']['split']('/'),_0x4ee4ff=_0x3a8b38[_0x3a8b38['length']-0x1],_0x51e14d=_0x4ee4ff['split']('.')[0x1];return _0x23c119['fetch'](_0x5c9c80['href'])['then'](_0x164952=>_0x164952['clone']()['blob']())['then'](_0x42dcbe=>new _0x23c119['File']([_0x42dcbe],_0x4ee4ff,{'type':'image/'+_0x51e14d}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3afd(){const _0x4d3e07=['12752mBqGxp','37968SbILIr','39UqMkJC','ck-uploadcare-theme','472452fBjWdQ','imageSrc','set','620160iIWfuB','setTemplate','image-edit','bindTemplate','92526lcLSIf','uc-light','936270lUgSDV','uc-cloud-image-editor','644MNahOM','27764jFIeWe'];_0x3afd=function(){return _0x4d3e07;};return _0x3afd();}(function(_0xd2ad97,_0x1eb0c6){const _0x40d556=_0x4045,_0x1cfb4e=_0xd2ad97();while(!![]){try{const _0x31008d=parseInt(_0x40d556(0x11d))/0x1+parseInt(_0x40d556(0x124))/0x2+-parseInt(_0x40d556(0x11b))/0x3*(parseInt(_0x40d556(0x129))/0x4)+parseInt(_0x40d556(0x120))/0x5+-parseInt(_0x40d556(0x11a))/0x6+parseInt(_0x40d556(0x128))/0x7*(-parseInt(_0x40d556(0x119))/0x8)+-parseInt(_0x40d556(0x126))/0x9;if(_0x31008d===_0x1eb0c6)break;else _0x1cfb4e['push'](_0x1cfb4e['shift']());}catch(_0x2e0cb4){_0x1cfb4e['push'](_0x1cfb4e['shift']());}}}(_0x3afd,0x48254));import{View as _0x220073}from'ckeditor5/src/ui.js';function _0x4045(_0x2bb9fa,_0x135f87){const _0x3afd79=_0x3afd();return _0x4045=function(_0x404521,_0xccbcfe){_0x404521=_0x404521-0x119;let _0x27ddc8=_0x3afd79[_0x404521];return _0x27ddc8;},_0x4045(_0x2bb9fa,_0x135f87);}export class UploadcareImageEditFormEditingView extends _0x220073{constructor(_0x1cf851,_0x35b149){const _0x47ce8e=_0x4045;super(_0x1cf851);const _0x59dafc=this[_0x47ce8e(0x123)];this[_0x47ce8e(0x11f)](_0x47ce8e(0x11e),''),this[_0x47ce8e(0x121)]({'tag':_0x47ce8e(0x127),'attributes':{..._0x35b149,'class':[_0x47ce8e(0x125),_0x47ce8e(0x11c)],'ctx-name':_0x47ce8e(0x122),'cdn-url':_0x59dafc['to'](_0x47ce8e(0x11e))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x44c45b}from'ckeditor5/src/icons.js';import{ButtonView as _0x3e32b7,IconView as _0x2793b5,View as _0x3d1da7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3d1da7{constructor(_0x16eab7){super(_0x16eab7);const t=_0x16eab7['t'];this['set']('errorType',null);const _0x2ecb6a=new _0x3e32b7(_0x16eab7);_0x2ecb6a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2ecb6a['withText']=!0x0,_0x2ecb6a['class']='ck-button-action',_0x2ecb6a['on']('execute',()=>{this['fire']('retry');}),_0x2ecb6a['bind']('isVisible')['to'](this,'errorType',_0x56d397=>'NotFound'!==_0x56d397);const _0x3dddb1=new _0x2793b5();_0x3dddb1['content']=_0x44c45b,_0x3dddb1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c4ecc=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':[_0x3dddb1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c4ecc['to']('errorType',_0x10c0f6=>t('NotFound'!==_0x10c0f6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2ecb6a]},{'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 _0x5194bb,View as _0x44203b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x44203b{constructor(_0xbbc49a){super(_0xbbc49a);const t=_0xbbc49a['t'],_0x56be8a=this['bindTemplate'],_0x42179a=new _0x5194bb();_0x42179a['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':[_0x42179a,{'text':_0x56be8a['to']('imageUploadProgress',_0x1c039d=>t('Loading\x20image...')+'\x20('+(_0x1c039d||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 _0x29ff14=_0x5d94;(function(_0x24f413,_0x46d30c){const _0x50425d=_0x5d94,_0x11667a=_0x24f413();while(!![]){try{const _0x4b668e=parseInt(_0x50425d(0x209))/0x1*(-parseInt(_0x50425d(0x1f9))/0x2)+parseInt(_0x50425d(0x20c))/0x3+-parseInt(_0x50425d(0x1f8))/0x4*(-parseInt(_0x50425d(0x22a))/0x5)+parseInt(_0x50425d(0x223))/0x6*(parseInt(_0x50425d(0x220))/0x7)+-parseInt(_0x50425d(0x21a))/0x8+-parseInt(_0x50425d(0x20e))/0x9*(parseInt(_0x50425d(0x200))/0xa)+parseInt(_0x50425d(0x21d))/0xb;if(_0x4b668e===_0x46d30c)break;else _0x11667a['push'](_0x11667a['shift']());}catch(_0x46848c){_0x11667a['push'](_0x11667a['shift']());}}}(_0x3af7,0x392c4));import{View as _0x51d3c9}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x42cd55}from'./uploadcareimageeditformloadingview.js';function _0x3af7(){const _0x958870=['363124baohSj','addMany','div','observe','add','retry','focus','50NnxNkY','_editingView','once','toLowerCase','element','length','_addErrorViewListeners','cancel','cdnUrl','1FBeKRM','_waitForImageEditorComponent','_loadingView','1004358ttfjkU','_focusableView','322785QIgPkc','_errorView','setTemplate','disconnect','querySelector','fire','detail','status','_items','render','_setView','target','2850096FXmfwE','ck-uploadcare-form','change:status','1326765bFKEZx','ready','apply','2621843NDLlFx','ck-reset_all-excluded','filter','6NGjaGx','uploading','createCollection','_addUploadcareImageEditorListeners','nodeName','addEventListener','uc-cloud-image-editor','606895DyRmZz','error','set','addedNodes','clear','getFocusableElement','4mLQyWm'];_0x3af7=function(){return _0x958870;};return _0x3af7();}import{UploadcareImageEditFormErrorView as _0x584e0c}from'./uploadcareimageeditformerrorview.js';function _0x5d94(_0x4014dc,_0x45812f){const _0x3af73f=_0x3af7();return _0x5d94=function(_0x5d94fb,_0x1bfc8f){_0x5d94fb=_0x5d94fb-0x1f3;let _0x2c8653=_0x3af73f[_0x5d94fb];return _0x2c8653;},_0x5d94(_0x4014dc,_0x45812f);}import{UploadcareImageEditFormEditingView as _0x3494e9}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x35c8f4}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x35c8f4{[_0x29ff14(0x216)];[_0x29ff14(0x20b)];[_0x29ff14(0x20f)];[_0x29ff14(0x201)];[_0x29ff14(0x20d)];constructor(_0x26f3b7,_0x244dde,_0x4d068c){const _0x5032bf=_0x29ff14;super(_0x26f3b7),this[_0x5032bf(0x216)]=this[_0x5032bf(0x225)](),this[_0x5032bf(0x20b)]=new _0x42cd55(_0x26f3b7),this[_0x5032bf(0x20f)]=new _0x584e0c(_0x26f3b7),this[_0x5032bf(0x201)]=new _0x3494e9(_0x26f3b7,_0x4d068c),this[_0x5032bf(0x20d)]=new _0x51d3c9(_0x26f3b7),this[_0x5032bf(0x20d)][_0x5032bf(0x210)](this[_0x5032bf(0x1f7)]()),this[_0x5032bf(0x1f4)](_0x5032bf(0x215),_0x244dde),this[_0x5032bf(0x210)]({'tag':_0x5032bf(0x1fb),'attributes':{'class':['ck',_0x5032bf(0x221),_0x5032bf(0x21b)],'tabindex':'-1'},'children':this[_0x5032bf(0x216)]}),this[_0x5032bf(0x218)](),this[_0x5032bf(0x202)](_0x5032bf(0x217),()=>{const _0x2dc983=_0x5032bf;this[_0x2dc983(0x20a)](this[_0x2dc983(0x204)],_0x3b3f74=>{const _0x1ae22f=_0x2dc983;this[_0x1ae22f(0x226)](_0x3b3f74);});}),this['on'](_0x5032bf(0x21c),()=>{const _0x370e51=_0x5032bf;this[_0x370e51(0x218)]();}),this[_0x5032bf(0x206)]();}[_0x29ff14(0x1ff)](){const _0xe50a56=_0x29ff14;this[_0xe50a56(0x204)][_0xe50a56(0x1ff)]();}[_0x29ff14(0x218)](){const _0x3da300=_0x29ff14;switch(this[_0x3da300(0x216)][_0x3da300(0x1f6)](),this[_0x3da300(0x215)]){case _0x3da300(0x224):this[_0x3da300(0x216)][_0x3da300(0x1fd)](this[_0x3da300(0x20b)]);break;case _0x3da300(0x1f3):this[_0x3da300(0x216)][_0x3da300(0x1fd)](this[_0x3da300(0x20f)]);break;case _0x3da300(0x21e):this[_0x3da300(0x216)][_0x3da300(0x1fa)]([this[_0x3da300(0x201)],this[_0x3da300(0x20d)]]);}}[_0x29ff14(0x20a)](_0x2839b8,_0x187cb1){const _0x42fb41=_0x29ff14,_0x2ef33c=_0x42fb41(0x229),_0x40dd70=_0x2839b8[_0x42fb41(0x212)](_0x2ef33c);if(_0x40dd70)return _0x187cb1(_0x40dd70);const _0x55f067=new MutationObserver(_0x3d8c09=>{const _0x585b6e=_0x42fb41,_0xc3b34b=_0x3d8c09[_0x585b6e(0x222)](_0x35a8bd=>_0x35a8bd[_0x585b6e(0x219)]===_0x2839b8&&_0x35a8bd[_0x585b6e(0x1f5)][_0x585b6e(0x205)]>0x0&&_0x35a8bd[_0x585b6e(0x1f5)][0x0][_0x585b6e(0x227)][_0x585b6e(0x203)]()===_0x2ef33c);_0xc3b34b[_0x585b6e(0x205)]&&(_0x55f067[_0x585b6e(0x211)](),_0x187cb1(_0xc3b34b[0x0][_0x585b6e(0x1f5)][0x0]));});_0x55f067[_0x42fb41(0x1fc)](_0x2839b8,{'childList':!0x0,'subtree':!0x0});}[_0x29ff14(0x226)](_0x6d9744){const _0x2f39b9=_0x29ff14;_0x6d9744[_0x2f39b9(0x228)](_0x2f39b9(0x21f),_0x3e8dcb=>{const _0x444563=_0x2f39b9;this[_0x444563(0x213)](_0x444563(0x21f),{'imageSrc':_0x3e8dcb[_0x444563(0x214)][_0x444563(0x208)]});}),_0x6d9744[_0x2f39b9(0x228)](_0x2f39b9(0x207),()=>{const _0x6a9137=_0x2f39b9;this[_0x6a9137(0x213)](_0x6a9137(0x207));});}[_0x29ff14(0x206)](){const _0x37f87b=_0x29ff14;this[_0x37f87b(0x20f)]['on'](_0x37f87b(0x1fe),()=>{const _0x57158f=_0x37f87b;this[_0x57158f(0x213)](_0x57158f(0x1fe));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f1ee7=_0x5060;(function(_0x4278f4,_0x25fcf8){const _0x2fc187=_0x5060,_0x373072=_0x4278f4();while(!![]){try{const _0x390a29=-parseInt(_0x2fc187(0x1c6))/0x1+parseInt(_0x2fc187(0x1d3))/0x2*(parseInt(_0x2fc187(0x1c8))/0x3)+-parseInt(_0x2fc187(0x1c2))/0x4*(-parseInt(_0x2fc187(0x1cf))/0x5)+-parseInt(_0x2fc187(0x1bc))/0x6*(parseInt(_0x2fc187(0x1d4))/0x7)+parseInt(_0x2fc187(0x1ba))/0x8+-parseInt(_0x2fc187(0x1bb))/0x9+-parseInt(_0x2fc187(0x1cc))/0xa*(-parseInt(_0x2fc187(0x1b8))/0xb);if(_0x390a29===_0x25fcf8)break;else _0x373072['push'](_0x373072['shift']());}catch(_0x8c243d){_0x373072['push'](_0x373072['shift']());}}}(_0xbc0d,0xd331b));import{Command as _0x26de07}from'ckeditor5/src/core.js';function _0xbc0d(){const _0x2da70a=['plugins','isEnabled','2imqVWR','21WqosVA','get','getSelectedElement','bind','imageInline','8190567RDcYlT','imageEditController','2241240Usqeqm','4837302NDULHF','385278ZukkAx','imageBlock','unbind','config','isActive','document','12AIDIYl','_isEditable','uploadcare.allowExternalImagesEditing','execute','1162440UPBGZB','selection','561543YeOaFL','refresh','model','element','10SAXvbF','editor','requires','2576125CdKDOY','set'];_0xbc0d=function(){return _0x2da70a;};return _0xbc0d();}import{Dialog as _0x33ebc}from'ckeditor5/src/ui.js';function _0x5060(_0x4ed7ef,_0x4d6fad){const _0xbc0d2c=_0xbc0d();return _0x5060=function(_0x50603e,_0x26926c){_0x50603e=_0x50603e-0x1b6;let _0x4c177c=_0xbc0d2c[_0x50603e];return _0x4c177c;},_0x5060(_0x4ed7ef,_0x4d6fad);}import{UploadcareImageEditController as _0x2123fd}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5724d8}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x26de07{[_0x2f1ee7(0x1b9)];static get[_0x2f1ee7(0x1ce)](){return[_0x33ebc];}[_0x2f1ee7(0x1c3)];constructor(_0x2264f1){const _0x431af4=_0x2f1ee7;super(_0x2264f1),this[_0x431af4(0x1b9)]=void 0x0,this[_0x431af4(0x1c3)]=_0x5724d8(_0x2264f1[_0x431af4(0x1bf)][_0x431af4(0x1d5)](_0x431af4(0x1c4))||[]),this[_0x431af4(0x1d0)]({'isActive':!0x1});}[_0x2f1ee7(0x1c9)](){const _0x1bc4fe=_0x2f1ee7,_0x8edcb=this[_0x1bc4fe(0x1cd)][_0x1bc4fe(0x1ca)][_0x1bc4fe(0x1c1)][_0x1bc4fe(0x1c7)][_0x1bc4fe(0x1d6)]();this[_0x1bc4fe(0x1d2)]=this[_0x1bc4fe(0x1c3)](_0x8edcb);}[_0x2f1ee7(0x1c5)](){const _0x558e25=_0x2f1ee7;this[_0x558e25(0x1b9)]&&(this[_0x558e25(0x1be)](_0x558e25(0x1c0)),this[_0x558e25(0x1b9)]=void 0x0);const _0x107645=this[_0x558e25(0x1cd)][_0x558e25(0x1ca)][_0x558e25(0x1c1)][_0x558e25(0x1c7)][_0x558e25(0x1d6)]();_0x107645&&(_0x107645['is'](_0x558e25(0x1cb),_0x558e25(0x1bd))||_0x107645['is'](_0x558e25(0x1cb),_0x558e25(0x1b7)))&&(this[_0x558e25(0x1b9)]=new _0x2123fd(this[_0x558e25(0x1cd)],this[_0x558e25(0x1cd)][_0x558e25(0x1d1)][_0x558e25(0x1d5)](_0x33ebc),_0x107645),this[_0x558e25(0x1b6)](_0x558e25(0x1c0))['to'](this[_0x558e25(0x1b9)],_0x558e25(0x1c0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x571765=_0x10a9;(function(_0x23a14d,_0x1761cf){const _0x596d1b=_0x10a9,_0x42508c=_0x23a14d();while(!![]){try{const _0x47cd9c=parseInt(_0x596d1b(0x7a))/0x1+-parseInt(_0x596d1b(0x83))/0x2+parseInt(_0x596d1b(0x75))/0x3+parseInt(_0x596d1b(0x71))/0x4*(-parseInt(_0x596d1b(0x73))/0x5)+parseInt(_0x596d1b(0x79))/0x6*(-parseInt(_0x596d1b(0x77))/0x7)+parseInt(_0x596d1b(0x72))/0x8+parseInt(_0x596d1b(0x84))/0x9;if(_0x47cd9c===_0x1761cf)break;else _0x42508c['push'](_0x42508c['shift']());}catch(_0x20ce50){_0x42508c['push'](_0x42508c['shift']());}}}(_0x5d24,0x29d02));import{Plugin as _0x340730}from'ckeditor5/src/core.js';import{Notification as _0x4afd0f}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x43f3c8}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x434929}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1a4894}from'../uploadcareediting.js';function _0x10a9(_0x25ef81,_0x5cca40){const _0x5d24bc=_0x5d24();return _0x10a9=function(_0x10a9ea,_0x4007d1){_0x10a9ea=_0x10a9ea-0x71;let _0x1d0646=_0x5d24bc[_0x10a9ea];return _0x1d0646;},_0x10a9(_0x25ef81,_0x5cca40);}function _0x5d24(){const _0x50ddf0=['pluginName','641754JDRaMl','uploadcareImageReplace','658091XvjDAC','uploadcareImageEdit','12cxNZqm','52174EeUliM','ImageUtils','init','requires','isOfficialPlugin','add','commands','ImageEditing','UploadcareImageEditEditing','501482bKFyiM','2087901DGrUoW','isPremiumPlugin','184lxIwIO','2568912DtaEiO','22735WliTxB'];_0x5d24=function(){return _0x50ddf0;};return _0x5d24();}export class UploadcareImageEditEditing extends _0x340730{static get[_0x571765(0x74)](){const _0xc13af3=_0x571765;return _0xc13af3(0x82);}static get[_0x571765(0x7d)](){const _0x3943c4=_0x571765;return[_0x1a4894,_0x4afd0f,_0x3943c4(0x7b),_0x3943c4(0x81)];}static get[_0x571765(0x7e)](){return!0x0;}static get[_0x571765(0x85)](){return!0x0;}[_0x571765(0x7c)](){const _0x9a1d7d=_0x571765,{editor:_0x2e4ef1}=this;_0x2e4ef1[_0x9a1d7d(0x80)][_0x9a1d7d(0x7f)](_0x9a1d7d(0x78),new _0x43f3c8(_0x2e4ef1)),_0x2e4ef1[_0x9a1d7d(0x80)][_0x9a1d7d(0x7f)](_0x9a1d7d(0x76),new _0x434929(_0x2e4ef1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x40e4c4}from'ckeditor5/src/core.js';import{ButtonView as _0x58809a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2986a6}from'ckeditor5/src/icons.js';import{createElement as _0x3517ba}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 _0x40e4c4{['_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 _0x2a0b7b=this['editor'];_0x2a0b7b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ccd99=>{const _0xa696f4=_0x2a0b7b['commands']['get']('uploadcareImageEdit'),_0x196298=new _0x58809a(_0x4ccd99),t=_0x4ccd99['t'];return _0x196298['set']({'icon':_0x2986a6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x196298['bind']('isEnabled')['to'](_0xa696f4),_0x196298['bind']('isOn')['to'](_0xa696f4,'isActive'),this['listenTo'](_0x196298,'execute',()=>{_0x2a0b7b['execute']('uploadcareImageEdit'),_0x2a0b7b['editing']['view']['focus']();}),_0x196298;}),this['_initConfig']();}['_initConfig'](){const _0x15706d=_0x3517ba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x15706d),this['listenTo'](this['editor'],'destroy',()=>{_0x15706d['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3a69(){const _0x226d1d=['selection','change','imageBlock','6073fpdrkN','imageInline','getSelectedElement','isEnabled','35528IgkdWF','element','srcset','document','763zSAnAS','5936340FZAUHG','editor','model','12955460qfVIGt','sizes','removeAttribute','2076mAmRyO','10570707zYBeDr','refresh','2361174oXVCiV','140EcNnvM','setAttributes','execute','6906GSGIVM'];_0x3a69=function(){return _0x226d1d;};return _0x3a69();}const _0x4958a0=_0x418b;function _0x418b(_0x1b4708,_0x172073){const _0x3a6900=_0x3a69();return _0x418b=function(_0x418bf9,_0x32d68c){_0x418bf9=_0x418bf9-0x6b;let _0x2deece=_0x3a6900[_0x418bf9];return _0x2deece;},_0x418b(_0x1b4708,_0x172073);}(function(_0x5c14eb,_0x229fd6){const _0x45101f=_0x418b,_0xbb9ecc=_0x5c14eb();while(!![]){try{const _0x55ac1e=parseInt(_0x45101f(0x7a))/0x1*(parseInt(_0x45101f(0x73))/0x2)+parseInt(_0x45101f(0x76))/0x3*(-parseInt(_0x45101f(0x6f))/0x4)+parseInt(_0x45101f(0x83))/0x5+-parseInt(_0x45101f(0x72))/0x6+parseInt(_0x45101f(0x82))/0x7*(parseInt(_0x45101f(0x7e))/0x8)+-parseInt(_0x45101f(0x70))/0x9+parseInt(_0x45101f(0x6c))/0xa;if(_0x55ac1e===_0x229fd6)break;else _0xbb9ecc['push'](_0xbb9ecc['shift']());}catch(_0x4d35f2){_0xbb9ecc['push'](_0xbb9ecc['shift']());}}}(_0x3a69,0x999d3));import{Command as _0x5bac6a}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x5bac6a{[_0x4958a0(0x71)](){const _0x2eda9c=_0x4958a0,_0x528fbf=this[_0x2eda9c(0x84)][_0x2eda9c(0x6b)][_0x2eda9c(0x81)][_0x2eda9c(0x77)][_0x2eda9c(0x7c)]();this[_0x2eda9c(0x7d)]=Boolean(_0x528fbf&&(_0x528fbf['is'](_0x2eda9c(0x7f),_0x2eda9c(0x79))||_0x528fbf['is'](_0x2eda9c(0x7f),_0x2eda9c(0x7b))));}[_0x4958a0(0x75)](_0x42918a){const _0x49f8f9=_0x4958a0,_0x128569=this[_0x49f8f9(0x84)][_0x49f8f9(0x6b)][_0x49f8f9(0x81)][_0x49f8f9(0x77)][_0x49f8f9(0x7c)]();this[_0x49f8f9(0x84)][_0x49f8f9(0x6b)][_0x49f8f9(0x78)](_0xf0764a=>{const _0x19f3ac=_0x49f8f9;_0xf0764a[_0x19f3ac(0x74)](_0x42918a,_0x128569),_0xf0764a[_0x19f3ac(0x6e)](_0x19f3ac(0x80),_0x128569),_0xf0764a[_0x19f3ac(0x6e)](_0x19f3ac(0x6d),_0x128569);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3c1d0b=_0x599c;function _0x599c(_0x4b0e7b,_0x29bb97){var _0xcdcda0=_0xcdcd();return _0x599c=function(_0x599cf9,_0x3ca804){_0x599cf9=_0x599cf9-0x15e;var _0x2a6078=_0xcdcda0[_0x599cf9];return _0x2a6078;},_0x599c(_0x4b0e7b,_0x29bb97);}(function(_0x43fe8d,_0x393ff2){var _0x24e3e7=_0x599c,_0x1df22d=_0x43fe8d();while(!![]){try{var _0x38f07f=-parseInt(_0x24e3e7(0x15e))/0x1*(parseInt(_0x24e3e7(0x167))/0x2)+-parseInt(_0x24e3e7(0x162))/0x3*(-parseInt(_0x24e3e7(0x16e))/0x4)+-parseInt(_0x24e3e7(0x169))/0x5*(-parseInt(_0x24e3e7(0x161))/0x6)+-parseInt(_0x24e3e7(0x15f))/0x7+parseInt(_0x24e3e7(0x165))/0x8*(-parseInt(_0x24e3e7(0x16b))/0x9)+-parseInt(_0x24e3e7(0x16a))/0xa+parseInt(_0x24e3e7(0x16d))/0xb*(parseInt(_0x24e3e7(0x16c))/0xc);if(_0x38f07f===_0x393ff2)break;else _0x1df22d['push'](_0x1df22d['shift']());}catch(_0x170066){_0x1df22d['push'](_0x1df22d['shift']());}}}(_0xcdcd,0xe63ec));import{Plugin as _0x2fbb2e}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x17f79f}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0xcdcd(){var _0x23629e=['requires','222KpCedn','isPremiumPlugin','5hIPHTb','6836110PUqIQL','9929979MnODXC','12732024CwzAHw','22ZfmOwi','8348GijWmJ','6561bWuqwx','6424005xIfOGK','isOfficialPlugin','7400790MFxvVp','1467XFBimz','pluginName','UploadcareImageEdit','8twfnLD'];_0xcdcd=function(){return _0x23629e;};return _0xcdcd();}import{UploadcareImageEditUI as _0x92abf2}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2fbb2e{static get[_0x3c1d0b(0x163)](){var _0x5711cf=_0x3c1d0b;return _0x5711cf(0x164);}static get[_0x3c1d0b(0x166)](){return[_0x17f79f,_0x92abf2];}static get[_0x3c1d0b(0x160)](){return!0x0;}static get[_0x3c1d0b(0x168)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23f8c6=_0x3d88;(function(_0x10335a,_0x1c2e6c){const _0xe6451f=_0x3d88,_0x220d43=_0x10335a();while(!![]){try{const _0x35e930=-parseInt(_0xe6451f(0x1bb))/0x1+parseInt(_0xe6451f(0x1b5))/0x2*(parseInt(_0xe6451f(0x1e3))/0x3)+-parseInt(_0xe6451f(0x1d3))/0x4*(parseInt(_0xe6451f(0x1d4))/0x5)+-parseInt(_0xe6451f(0x1ce))/0x6+-parseInt(_0xe6451f(0x1f2))/0x7+parseInt(_0xe6451f(0x1f4))/0x8*(-parseInt(_0xe6451f(0x1c7))/0x9)+-parseInt(_0xe6451f(0x1f9))/0xa*(-parseInt(_0xe6451f(0x1b1))/0xb);if(_0x35e930===_0x1c2e6c)break;else _0x220d43['push'](_0x220d43['shift']());}catch(_0xbcf23a){_0x220d43['push'](_0x220d43['shift']());}}}(_0x3d67,0x91bf2));import{Plugin as _0x581abd}from'ckeditor5/src/core.js';function _0x3d67(){const _0x39b32f=['locale','isEnabled','uploadcare.uploader.sourceList','_normalizeConfigSourceList','_createButton','isPremiumPlugin','1135746OvnsxC','uploadcareLicenseKeyNotAllowed','assetManager','destroy','domainLimit','4TqjJyj','3829255VXmPHF','uploadcareLicenseKeyExpired','uploadcareLicenseKeyTrialLimit','map','shortText','Facebook','Dropbox','editor','_createMenuBarButtons','type','url','label','uploadcareLicenseKeyUsageLimit','featureNotAllowed','pluginName','2162172GsOjks','config','usageLimit','execute','isOfficialPlugin','uploadcareLicenseKeyInvalid','tooltip','evaluationLimit','isImageSelected','ImageInsertUI','uploadcareLicenseKeyDomainLimit','_createDropdownButtons','_showLicenseError','reduce','_getIntegrationKey','5932780ShUmkQ','GPhotos','56HoOabr','_licenseKeyCheckInterval','UploadcareUI','expired','icon','1810ZPehMC','trialLimit','text','invalid','URL','Uploadcare','uploadcareLicenseKeyEvaluationLimit','forEach','Insert','Local','228965NlDXRY','upload','Replace','registerIntegration','2CASUZq','OneDrive','afterInit','init','get','commands','1191165aLnTTa','withText','push','uploadcareLicenseKeyValid','entries','plugins','has','licenseKey','_createToolbarButton','GDrive','bind','uploadcare','1153818WEuGcx'];_0x3d67=function(){return _0x39b32f;};return _0x3d67();}import{IconDropbox as _0x420dc7,IconFacebook as _0x6b2c72,IconGoogleDrive as _0x453670,IconGooglePhotos as _0x376e3f,IconUploadcareImageUpload as _0x440523,IconUploadcareLink as _0x1c645d,IconOneDrive as _0x2c7a7c}from'ckeditor5/src/icons.js';function _0x3d88(_0x589ac4,_0x396910){const _0x3d67e4=_0x3d67();return _0x3d88=function(_0x3d88da,_0x1e0ee0){_0x3d88da=_0x3d88da-0x1ac;let _0x2f44b9=_0x3d67e4[_0x3d88da];return _0x2f44b9;},_0x3d88(_0x589ac4,_0x396910);}import{ButtonView as _0x28500e,MenuBarMenuListItemButtonView as _0x3de252}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x6a0990}from'./uploadcareconfig.js';import{getTranslation as _0x2ae3da}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x581abd{[_0x23f8c6(0x1c2)];[_0x23f8c6(0x1f5)];static get[_0x23f8c6(0x1e2)](){const _0x3cb8e9=_0x23f8c6;return _0x3cb8e9(0x1f6);}static get[_0x23f8c6(0x1e7)](){return!0x0;}static get[_0x23f8c6(0x1cd)](){return!0x0;}[_0x23f8c6(0x1b8)](){const _0x3f1b71=_0x23f8c6;this[_0x3f1b71(0x1c2)]=this[_0x3f1b71(0x1db)][_0x3f1b71(0x1e4)][_0x3f1b71(0x1b9)](_0x3f1b71(0x1c2));const _0x3d9fee=this[_0x3f1b71(0x1db)];this[_0x3f1b71(0x1f5)]=setInterval(()=>{const _0xa52964=_0x3f1b71;let _0xb801a6;for(const _0xe728e3 in _0x3d9fee){const _0x585949=_0xe728e3,_0x50bd20=_0x3d9fee[_0x585949];if(_0xa52964(0x1be)==_0x50bd20||_0xa52964(0x1e8)==_0x50bd20||_0xa52964(0x1d5)==_0x50bd20||_0xa52964(0x1ed)==_0x50bd20||_0xa52964(0x1cf)==_0x50bd20||_0xa52964(0x1ad)==_0x50bd20||_0xa52964(0x1d6)==_0x50bd20||_0xa52964(0x1e0)==_0x50bd20){delete _0x3d9fee[_0x585949],_0xb801a6=_0x50bd20,clearInterval(this[_0xa52964(0x1f5)]),this[_0xa52964(0x1f5)]=void 0x0;break;}}_0xa52964(0x1e8)==_0xb801a6&&_0x3d9fee[_0xa52964(0x1ef)](_0xa52964(0x1fc)),_0xa52964(0x1d5)==_0xb801a6&&_0x3d9fee[_0xa52964(0x1ef)](_0xa52964(0x1f7)),_0xa52964(0x1ed)==_0xb801a6&&_0x3d9fee[_0xa52964(0x1ef)](_0xa52964(0x1d2)),_0xa52964(0x1cf)==_0xb801a6&&_0x3d9fee[_0xa52964(0x1ef)](_0xa52964(0x1e1),_0xa52964(0x1ac)),_0xa52964(0x1ad)==_0xb801a6&&_0x3d9fee[_0xa52964(0x1ef)](_0xa52964(0x1ea)),_0xa52964(0x1d6)==_0xb801a6&&_0x3d9fee[_0xa52964(0x1ef)](_0xa52964(0x1fa)),_0xa52964(0x1e0)==_0xb801a6&&_0x3d9fee[_0xa52964(0x1ef)](_0xa52964(0x1e5));},0x3e8);}[_0x23f8c6(0x1b7)](){const _0x39ef64=_0x23f8c6,{editor:_0x35fd3b}=this,_0x23d897=_0x35fd3b[_0x39ef64(0x1ba)][_0x39ef64(0x1b9)](_0x39ef64(0x1c6));if(!_0x23d897)return;const _0x2093ed=this[_0x39ef64(0x1cb)](_0x35fd3b[_0x39ef64(0x1e4)][_0x39ef64(0x1b9)](_0x39ef64(0x1ca)))[_0x39ef64(0x1f0)]((_0x8a0ecf,_0xcf7354)=>{const _0x2b2172=_0x39ef64,_0x290ebb=this[_0x2b2172(0x1f1)](_0xcf7354[_0x2b2172(0x1dd)]);return _0x8a0ecf[_0x290ebb]||(_0x8a0ecf[_0x290ebb]=[]),_0x8a0ecf[_0x290ebb][_0x2b2172(0x1bd)](_0xcf7354),_0x8a0ecf;},{});_0x35fd3b[_0x39ef64(0x1c0)][_0x39ef64(0x1c1)](_0x39ef64(0x1ec))&&_0x35fd3b[_0x39ef64(0x1ba)][_0x39ef64(0x1b9)](_0x39ef64(0x1c6))&&Object[_0x39ef64(0x1bf)](_0x2093ed)[_0x39ef64(0x1ae)](([_0x2e6019,_0x4e0cf9])=>{const _0x38340c=_0x39ef64;_0x35fd3b[_0x38340c(0x1c0)][_0x38340c(0x1b9)](_0x38340c(0x1ec))[_0x38340c(0x1b4)]({'name':_0x2e6019,'observable':()=>_0x23d897,'buttonViewCreator':()=>this[_0x38340c(0x1c3)](_0x4e0cf9),'formViewCreator':()=>this[_0x38340c(0x1ee)](_0x4e0cf9),'menuBarButtonViewCreator':()=>this[_0x38340c(0x1dc)](_0x4e0cf9),'override':_0x38340c(0x1d0)!==_0x2e6019});});}[_0x23f8c6(0x1d1)](){const _0x5df97a=_0x23f8c6;super[_0x5df97a(0x1d1)](),this[_0x5df97a(0x1f5)]&&clearInterval(this[_0x5df97a(0x1f5)]);}[_0x23f8c6(0x1cb)](_0x442341){const _0x54b6a2=_0x23f8c6,{locale:_0xcc256c}=this[_0x54b6a2(0x1db)];return _0x442341[_0x54b6a2(0x1d7)](_0x32d195=>{const _0x11ee1a=_0x54b6a2,_0x205d5d=_0x2ae3da(_0xcc256c,_0x32d195,_0x11ee1a(0x1af));switch(_0x32d195){case _0x6a0990[_0x11ee1a(0x1b0)]:return{'icon':_0x440523,'type':_0x6a0990[_0x11ee1a(0x1b0)],..._0x205d5d};case _0x6a0990[_0x11ee1a(0x1fd)]:return{'icon':_0x1c645d,'type':_0x6a0990[_0x11ee1a(0x1fd)],..._0x205d5d};case _0x6a0990[_0x11ee1a(0x1da)]:return{'icon':_0x420dc7,'type':_0x6a0990[_0x11ee1a(0x1da)],..._0x205d5d};case _0x6a0990[_0x11ee1a(0x1d9)]:return{'icon':_0x6b2c72,'type':_0x6a0990[_0x11ee1a(0x1d9)],..._0x205d5d};case _0x6a0990[_0x11ee1a(0x1c4)]:return{'icon':_0x453670,'type':_0x6a0990[_0x11ee1a(0x1c4)],..._0x205d5d};case _0x6a0990[_0x11ee1a(0x1f3)]:return{'icon':_0x376e3f,'type':_0x6a0990[_0x11ee1a(0x1f3)],..._0x205d5d};case _0x6a0990[_0x11ee1a(0x1b6)]:return{'icon':_0x2c7a7c,'type':_0x6a0990[_0x11ee1a(0x1b6)],..._0x205d5d};}});}[_0x23f8c6(0x1f1)](_0x464896){const _0x1d4398=_0x23f8c6;switch(_0x464896){case _0x6a0990[_0x1d4398(0x1b0)]:return _0x1d4398(0x1b2);case _0x6a0990[_0x1d4398(0x1fd)]:return _0x1d4398(0x1de);default:return _0x1d4398(0x1d0);}}[_0x23f8c6(0x1cc)](_0x1d2f4f,_0x2db1e9){const _0x1abea9=_0x23f8c6,_0x410f9e=this[_0x1abea9(0x1db)],_0x738bb9=new _0x1d2f4f(_0x410f9e[_0x1abea9(0x1c8)]),_0x5ee874=_0x410f9e[_0x1abea9(0x1ba)][_0x1abea9(0x1b9)](_0x1abea9(0x1c6));return _0x738bb9[_0x1abea9(0x1c5)](_0x1abea9(0x1c9))['to'](_0x5ee874),_0x738bb9['on'](_0x1abea9(0x1e6),()=>{const _0x27d2b1=_0x1abea9;_0x5ee874[_0x27d2b1(0x1e6)](_0x2db1e9);}),_0x738bb9;}[_0x23f8c6(0x1c3)](_0x576284){const _0x3bcbea=_0x23f8c6,{locale:_0x77f4a2}=this[_0x3bcbea(0x1db)],_0xa04824=this[_0x3bcbea(0x1db)][_0x3bcbea(0x1c0)][_0x3bcbea(0x1b9)](_0x3bcbea(0x1ec)),_0x5ab9a3=_0x576284[0x0],_0x175c0c=this[_0x3bcbea(0x1cc)](_0x28500e,_0x5ab9a3[_0x3bcbea(0x1dd)]);return _0x175c0c[_0x3bcbea(0x1f8)]=_0x5ab9a3[_0x3bcbea(0x1f8)],_0x175c0c[_0x3bcbea(0x1c5)](_0x3bcbea(0x1df))['to'](_0xa04824,_0x3bcbea(0x1eb),_0x42cf97=>_0x2ae3da(_0x77f4a2,_0x5ab9a3[_0x3bcbea(0x1dd)],_0x42cf97?_0x3bcbea(0x1b3):_0x3bcbea(0x1af))[_0x3bcbea(0x1fb)]),_0x175c0c[_0x3bcbea(0x1e9)]=!0x0,_0x175c0c;}[_0x23f8c6(0x1ee)](_0x1a52fc){const _0x5839c1=_0x23f8c6,{locale:_0x568524}=this[_0x5839c1(0x1db)],_0x2ee961=this[_0x5839c1(0x1db)][_0x5839c1(0x1c0)][_0x5839c1(0x1b9)](_0x5839c1(0x1ec));return _0x1a52fc[_0x5839c1(0x1d7)](_0x33f7d6=>{const _0x3c27db=_0x5839c1,_0x165427=this[_0x3c27db(0x1cc)](_0x28500e,_0x33f7d6[_0x3c27db(0x1dd)]);return _0x165427[_0x3c27db(0x1bc)]=!0x0,_0x165427[_0x3c27db(0x1f8)]=_0x33f7d6[_0x3c27db(0x1f8)],_0x165427[_0x3c27db(0x1c5)](_0x3c27db(0x1df))['to'](_0x2ee961,_0x3c27db(0x1eb),_0x31254b=>_0x2ae3da(_0x568524,_0x33f7d6[_0x3c27db(0x1dd)],_0x31254b?_0x3c27db(0x1b3):_0x3c27db(0x1af))[_0x3c27db(0x1fb)]),_0x165427;});}[_0x23f8c6(0x1dc)](_0x4a75b4){const _0x2b7121=_0x23f8c6;return _0x4a75b4[_0x2b7121(0x1d7)](_0x1ca3a2=>{const _0x11d0d0=_0x2b7121,_0x29b4da=this[_0x11d0d0(0x1cc)](_0x3de252,_0x1ca3a2[_0x11d0d0(0x1dd)]);return _0x29b4da[_0x11d0d0(0x1f8)]=_0x1ca3a2[_0x11d0d0(0x1f8)],_0x29b4da[_0x11d0d0(0x1df)]=_0x1ca3a2[_0x11d0d0(0x1d8)],_0x29b4da;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1a8df3}from'ckeditor5/src/core.js';import{FileRepository as _0x625b0}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1e5373}from'./uploadcareediting.js';import{UploadUtils as _0x4d3260}from'./utils/uploadutils.js';import{getImageUrls as _0x47da56}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1a8df3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x625b0,_0x1e5373];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5436c3=this['editor'];if(!!!_0x5436c3['config']['get']('uploadcare'))return;_0x5436c3['plugins']['get'](_0x625b0)['createUploadAdapter']=_0x2dd7fe=>new k(_0x2dd7fe,_0x5436c3),_0x5436c3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2f4ccd,{imageElement:_0xc727d2,data:_0x641956})=>{_0x5436c3['model']['change'](_0x23dc2a=>{_0x23dc2a['setAttribute']('uploadcareImageId',_0x641956['uploadcareImageId'],_0xc727d2);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xd6f46c,_0x3b2d83){this['loader']=_0xd6f46c,this['editor']=_0x3b2d83,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x42dea0=await this['loader']['file'];return _0x4d3260['upload']({'file':_0x42dea0,'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':_0x1b283d=>{_0x1b283d&&_0x1b283d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b283d['value']);}})['then'](async _0x397b1d=>{const {imageFallbackUrl:_0x4d6783,imageSources:_0x25fd25}=_0x47da56(_0x397b1d['cdnUrl'],_0x397b1d['imageInfo']['width']);return{'uploadcareImageId':_0x397b1d['uuid'],'default':_0x4d6783,'sources':_0x25fd25};})['catch'](()=>{const _0x16183f=t('Cannot\x20upload\x20file:')+('\x20'+_0x42dea0['name']+'.');return Promise['reject'](_0x16183f);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x12ee8f}from'../uploadcareconfig.js';export function getTranslation(_0x4e234d,_0x5aca1e,_0x16772e){const t=_0x4e234d['t'],_0x21d356=_0x4e234d['t'];switch(_0x5aca1e){case _0x12ee8f['Local']:return{'text':_0x21d356('Insert'===_0x16772e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x21d356('From\x20computer')};case _0x12ee8f['URL']:return{'text':'Insert'===_0x16772e?_0x21d356('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x21d356('Via\x20URL')};case _0x12ee8f['Dropbox']:return{'text':t('Insert'===_0x16772e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x12ee8f['Facebook']:return{'text':t('Insert'===_0x16772e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x12ee8f['GDrive']:return{'text':t('Insert'===_0x16772e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x12ee8f['GPhotos']:return{'text':t('Insert'===_0x16772e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x12ee8f['OneDrive']:return{'text':t('Insert'===_0x16772e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5aca1e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1e4c56=_0x2ab8;(function(_0x412471,_0x2cd5ee){var _0x50888b=_0x2ab8,_0x4d4d8b=_0x412471();while(!![]){try{var _0x163708=-parseInt(_0x50888b(0x14e))/0x1*(parseInt(_0x50888b(0x14a))/0x2)+parseInt(_0x50888b(0x142))/0x3*(parseInt(_0x50888b(0x141))/0x4)+-parseInt(_0x50888b(0x13b))/0x5*(parseInt(_0x50888b(0x143))/0x6)+-parseInt(_0x50888b(0x144))/0x7*(-parseInt(_0x50888b(0x13d))/0x8)+-parseInt(_0x50888b(0x13a))/0x9*(-parseInt(_0x50888b(0x145))/0xa)+-parseInt(_0x50888b(0x146))/0xb*(parseInt(_0x50888b(0x139))/0xc)+parseInt(_0x50888b(0x13e))/0xd;if(_0x163708===_0x2cd5ee)break;else _0x4d4d8b['push'](_0x4d4d8b['shift']());}catch(_0x3da2de){_0x4d4d8b['push'](_0x4d4d8b['shift']());}}}(_0x29b2,0xebfe1));import{FocusTracker as _0x4227a9}from'ckeditor5/src/utils.js';function _0x29b2(){var _0x29c0ef=['27rNsfbV','4327182WDqwsA','343lgODIK','10veTlEl','3788521PFqVIM','focusTracker','focusCycler','fire','179488XOGUHh','createCollection','true','div','18QMeLBF','60BNfvQz','825534vMAXzn','10ceibVj','forwardCycle','151904OOtgGr','47475597YcVvJk','bindTemplate','getFocusableElement','476604jNfuzw'];_0x29b2=function(){return _0x29c0ef;};return _0x29b2();}import{View as _0x28361f,FocusCycler as _0x12805d}from'ckeditor5/src/ui.js';function _0x2ab8(_0x4b11ac,_0x325682){var _0x29b288=_0x29b2();return _0x2ab8=function(_0x2ab83d,_0x5bd130){_0x2ab83d=_0x2ab83d-0x139;var _0x12b430=_0x29b288[_0x2ab83d];return _0x12b430;},_0x2ab8(_0x4b11ac,_0x325682);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x28361f{[_0x1e4c56(0x147)];[_0x1e4c56(0x148)];constructor(_0x865e09){var _0x22742e=_0x1e4c56;super(_0x865e09),this[_0x22742e(0x147)]=new _0x4227a9(),this[_0x22742e(0x148)]=new _0x12805d({'focusables':this[_0x22742e(0x14b)](),'focusTracker':this[_0x22742e(0x147)]});}[_0x1e4c56(0x140)](){var _0x178e56=_0x1e4c56;return{'tag':_0x178e56(0x14d),'attributes':{'aria-hidden':_0x178e56(0x14c),'tabindex':'0'},'on':{'focus':this[_0x178e56(0x13f)]['to'](()=>{var _0xc04f73=_0x178e56;this[_0xc04f73(0x148)][_0xc04f73(0x149)](_0xc04f73(0x13c));})}};}}
|