@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250525.0 → 0.0.0-nightly-20250527.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 _0x29e3cc=_0xfe76;(function(_0x2f4661,_0x3deff0){const _0x486844=_0xfe76,_0x309c19=_0x2f4661();while(!![]){try{const _0x168555=parseInt(_0x486844(0x1b5))/0x1+-parseInt(_0x486844(0x1e9))/0x2+-parseInt(_0x486844(0x1d1))/0x3+-parseInt(_0x486844(0x1ef))/0x4*(parseInt(_0x486844(0x1c4))/0x5)+-parseInt(_0x486844(0x1c9))/0x6*(-parseInt(_0x486844(0x1d5))/0x7)+-parseInt(_0x486844(0x1ca))/0x8*(-parseInt(_0x486844(0x1c1))/0x9)+-parseInt(_0x486844(0x1b7))/0xa*(-parseInt(_0x486844(0x1f9))/0xb);if(_0x168555===_0x3deff0)break;else _0x309c19['push'](_0x309c19['shift']());}catch(_0x4e3876){_0x309c19['push'](_0x309c19['shift']());}}}(_0x25ee,0x58d37));import{Plugin as _0x2aada5}from'ckeditor5/src/core.js';import{Dialog as _0x6de04d}from'ckeditor5/src/ui.js';import{createElement as _0x29c041,global as _0x1af7f9,uid as _0x35652c}from'ckeditor5/src/utils.js';import _0x371731 from'./uploadcarecommand.js';function _0xfe76(_0x4423f6,_0xb6204f){const _0x25ee12=_0x25ee();return _0xfe76=function(_0xfe76e9,_0x275a5f){_0xfe76e9=_0xfe76e9-0x1b3;let _0x25560e=_0x25ee12[_0xfe76e9];return _0x25560e;},_0xfe76(_0x4423f6,_0xb6204f);}import _0x505d87 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x522da5}from'./utils/editingutils.js';function _0x25ee(){const _0x4ffe96=['once','extend','#uc-icon-arrow-down','getSelectedElement','12cbNgTz','142504fnNHuY','commands','closeMax','true','execute','upcast','uc-config','2169456BfPjLL','document','listenTo','afterInit','2203964tHXGHw','editing','map','ctxElement','uploadcareImageId','imageBlock','removeAttribute','_initConversion','isRegistered','configElement','schema','model','getAttribute','destroy','PictureEditing','_initConfig','editor','replaceImageSource','uploadcare.pubkey','\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','1408404HSCkIy','render','data-uc-image-id','pluginName','downcast','add','4yZGuLg','locale','uploadcareImageReplace','attributeToAttribute','_initImageProcessingIndicator','href','appendChild','config','_ctxElement','view','22MhuXvf','init','_initCtx','UploadcareEditing','isOfficialPlugin','querySelector','join','uploadcare','fromCharCode','requires','cleanupImage','_configElement','isPremiumPlugin','input[uploadcare-file-input]','uc-upload-ctx-provider','get','iconHrefResolver','11750ntkuvH','uploader','8506870xGjypV','contentLanguage','_initSchema','selection','for','body','remove','imageInline','conversion','uploadcare.uploader','27peomlN','elementToAttribute','insertImage','3025410RCxBbc'];_0x25ee=function(){return _0x4ffe96;};return _0x25ee();}export default class i extends _0x2aada5{[_0x29e3cc(0x204)]=null;[_0x29e3cc(0x1f7)]=null;static get[_0x29e3cc(0x1ec)](){const _0x598999=_0x29e3cc;return _0x598999(0x1fc);}static get[_0x29e3cc(0x202)](){const _0x6bf219=_0x29e3cc;return[_0x6bf219(0x1e3),_0x505d87,_0x6de04d];}static get[_0x29e3cc(0x1fd)](){return!0x0;}static get[_0x29e3cc(0x205)](){return!0x0;}get[_0x29e3cc(0x1de)](){const _0x4259f5=_0x29e3cc;return this[_0x4259f5(0x204)];}get[_0x29e3cc(0x1d8)](){const _0x601645=_0x29e3cc;return this[_0x601645(0x1f7)];}[_0x29e3cc(0x1fa)](){const _0x83e4c3=_0x29e3cc,_0x72ab9a=this[_0x83e4c3(0x1e5)];_0x72ab9a[_0x83e4c3(0x1cb)][_0x83e4c3(0x1ee)](_0x83e4c3(0x200),new _0x371731(_0x72ab9a));}[_0x29e3cc(0x1d4)](){const _0x3a231a=_0x29e3cc;this[_0x3a231a(0x1b9)](),this[_0x3a231a(0x1dc)](),this[_0x3a231a(0x1e4)](),this[_0x3a231a(0x1fb)](),this[_0x3a231a(0x1f3)](),this[_0x3a231a(0x1d3)](this[_0x3a231a(0x1e5)],_0x3a231a(0x1e2),()=>{const _0x297e53=_0x3a231a;this[_0x297e53(0x204)]&&(this[_0x297e53(0x204)][_0x297e53(0x1bd)](),this[_0x297e53(0x204)]=null),this[_0x297e53(0x1f7)]&&(this[_0x297e53(0x1f7)][_0x297e53(0x1bd)](),this[_0x297e53(0x1f7)]=null);const _0x149283=_0x1af7f9[_0x297e53(0x1d2)][_0x297e53(0x1fe)](_0x297e53(0x206));_0x149283&&_0x149283[_0x297e53(0x1bd)]();}),async function(_0x538087){const _0x186e47=_0x5a413e([0x4e,0x42,0x6c,0x30,0x73,0x78,0x71,0x52,0x44,0x58,0x76,0x72,0x6e,0x6a,0x54,0x68,0x38,0x6d,0x79,0x69,0x4f,0x74,0x50,0x70,0x43,0x36,0x59,0x65,0x32,0x48,0x75,0x64,0x33,0x53,0x56,0x66,0x4c,0x39,0x49,0x34,0x61,0x63,0x45,0x51,0x77,0x31,0x4b,0x6b,0x46,0x55,0x4a,0x37,0x41,0x6f,0x5a,0x35,0x47,0x4d,0x62,0x7a,0x57,0x67]),_0x388419=0x169d4413,_0x63b9db=0x169a2ccb^_0x388419,_0x19a794=window[_0x5a413e([0x44,0x61,0x74,0x65])][_0x5a413e([0x6e,0x6f,0x77])](),_0x422adf=_0x538087[_0x5a413e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c94d7=new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f547a=>{_0x422adf[_0x5a413e([0x6f,0x6e,0x63,0x65])](_0x5a413e([0x72,0x65,0x61,0x64,0x79]),_0x3f547a);}),_0x49ec49={[_0x5a413e([0x6b,0x74,0x79])]:_0x5a413e([0x45,0x43]),[_0x5a413e([0x75,0x73,0x65])]:_0x5a413e([0x73,0x69,0x67]),[_0x5a413e([0x63,0x72,0x76])]:_0x5a413e([0x50,0x2d,0x32,0x35,0x36]),[_0x5a413e([0x78])]:_0x5a413e([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]),[_0x5a413e([0x79])]:_0x5a413e([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]),[_0x5a413e([0x61,0x6c,0x67])]:_0x5a413e([0x45,0x53,0x32,0x35,0x36])},_0x49b391=_0x422adf[_0x5a413e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a413e([0x67,0x65,0x74])](_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x145ec3(){let _0x69b0c4,_0x2fe12e=null,_0x2b5142=null;try{if(_0x49b391==_0x5a413e([0x47,0x50,0x4c]))return _0x5a413e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x69b0c4=_0x39c684(),!_0x69b0c4)return _0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x69b0c4[_0x5a413e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b5142=_0xfc60df(_0x69b0c4[_0x5a413e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x69b0c4[_0x5a413e([0x6a,0x74,0x69])])),await _0x3a1dd3()?_0x579ab7()?_0x2270bc()?_0x5a413e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a8723()?(_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a413e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fe12e=_0x1950cb(_0x5a413e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a413e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fe12e=_0x1950cb(_0x5a413e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16077c()):_0x5a413e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a413e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11c0e6){return _0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2270bc(){const _0x1670e0=[_0x5a413e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a413e([0x74,0x72,0x69,0x61,0x6c])][_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a794/0x3e8:0xe10*_0x63b9db;return _0x69b0c4[_0x5a413e([0x65,0x78,0x70])]<_0x1670e0;}function _0x579ab7(){const _0xe905c8=_0x69b0c4[_0x5a413e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xe905c8&&(!!_0xe905c8[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x2a]))||!!_0xe905c8[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x55,0x50,0x4c,0x43])));}function _0x5a8723(){const _0x5b9bb2=_0xfe76,_0x555e4a=_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x555e4a||0x0==_0x555e4a[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x419c3a}=new URL(window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5b9bb2(0x1f4)]);if(_0x555e4a[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x419c3a))return!0x0;const _0x320e5f=_0x419c3a[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e]));return _0x555e4a[_0x5a413e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d7a0d=>_0x3d7a0d[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x2a])))[_0x5a413e([0x6d,0x61,0x70])](_0x12616e=>_0x12616e[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e])))[_0x5a413e([0x73,0x6f,0x6d,0x65])](_0x44222d=>_0x320e5f[_0x5a413e([0x65,0x76,0x65,0x72,0x79])]((_0x2e59b5,_0x1424bc)=>_0x44222d[_0x1424bc]===_0x2e59b5||_0x44222d[_0x1424bc]===_0x5a413e([0x2a])));}function _0x16077c(){return _0x2fe12e&&_0x2b5142?new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b58e6,_0x14ac98)=>{_0x2fe12e[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x2b58e6,_0x14ac98),_0x2b5142[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x5c0f63=>{_0x5c0f63!=_0x5a413e([0x56,0x61,0x6c,0x69,0x64])&&_0x2b58e6(_0x5c0f63);},_0x14ac98);}):_0x2fe12e||_0x2b5142||_0x5a413e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfc60df(_0x47a6be,_0x313548){return new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e453=>{if(_0x43faa0())return _0x18e453(_0x5a413e([0x56,0x61,0x6c,0x69,0x64]));_0x32c803(),_0x422adf[_0x5a413e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x410416=!0x1;const _0x324c22=_0x35652c();function _0x26b822(_0x1e3268){return!!_0x1e3268&&(typeof _0x1e3268===_0x5a413e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e3268===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e3268[_0x5a413e([0x74,0x68,0x65,0x6e])]===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e3268[_0x5a413e([0x63,0x61,0x74,0x63,0x68])]===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bdf52(_0x509175){_0x41f521(_0x509175)[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x307ae2=>{if(!_0x307ae2||_0x307ae2[_0x5a413e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a413e([0x6f,0x6b]))return _0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x585dbb(_0x129a0d(_0x324c22+_0x313548))!=_0x307ae2[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a413e([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a413e([0x74,0x68,0x65,0x6e])](_0xdd70f0=>(_0x193405(),_0xdd70f0),()=>{const _0x365ebf=_0x1a696a();return null==_0x365ebf?(_0x193405(),_0x5a413e([0x56,0x61,0x6c,0x69,0x64])):_0x5a413e(_0x19a794-_0x365ebf>(0x3291c013^_0x388419)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x18e453)[_0x5a413e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x257f3a=0x16abaa93^_0x388419;function _0x193405(){const _0x16fcd0=_0x5a413e([0x6c,0x6c,0x63,0x74,0x2d])+_0x585dbb(_0x129a0d(_0x47a6be)),_0x8b6832=_0x24c7c9(_0x585dbb(window[_0x5a413e([0x4d,0x61,0x74,0x68])][_0x5a413e([0x63,0x65,0x69,0x6c])](_0x19a794/_0x257f3a)));window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a413e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16fcd0,_0x8b6832);}function _0x1a696a(){const _0x1671a5=_0x5a413e([0x6c,0x6c,0x63,0x74,0x2d])+_0x585dbb(_0x129a0d(_0x47a6be)),_0x3412a2=window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a413e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1671a5);return _0x3412a2?window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24c7c9(_0x3412a2),0x10)*_0x257f3a:null;}function _0x41f521(_0x2d50c8){return new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46cb10,_0xc8f92a)=>{_0x2d50c8[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x46cb10,_0xc8f92a),window[_0x5a413e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc8f92a,0x169c90d3^_0x388419);});}}_0x422adf[_0x5a413e([0x6f,0x6e])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36cc0f,_0x5f3e4d)=>{if(_0x5f3e4d[0x0]!=_0x47a6be)return _0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f3e4d[0x1]={..._0x5f3e4d[0x1],[_0x5a413e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x324c22};},{[_0x5a413e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a413e([0x68,0x69,0x67,0x68])}),_0x422adf[_0x5a413e([0x6f,0x6e])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ac92c=>{_0x26b822(_0x5ac92c[_0x5a413e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x410416=!0x0,_0x4bdf52(_0x5ac92c[_0x5a413e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a413e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a413e([0x6c,0x6f,0x77])}),_0x4c94d7[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>{_0x410416||_0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43faa0(){return _0x422adf[_0x5a413e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a413e([0x76,0x69,0x65,0x77])][_0x5a413e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a413e([0x61,0x75,0x74,0x6f]);}function _0x32c803(){_0x422adf[_0x5a413e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a413e([0x76,0x69,0x65,0x77])][_0x5a413e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a413e([0x61,0x75,0x74,0x6f]);}}function _0x1950cb(_0x1ff70b){const _0x25760d=[new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134963=>setTimeout(_0x134963,0x16947adf^_0x388419)),_0x4c94d7[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263ba4=>{let _0x437dc5=0x0;_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x6f,0x6e])](_0x5a413e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x423598,_0x70d773)=>{_0x70d773[0x0][_0x5a413e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x437dc5++,_0x437dc5==(0x169d45eb^_0x388419)&&(_0x263ba4(),_0x423598[_0x5a413e([0x6f,0x66,0x66])]());});}))];return window[_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a413e([0x72,0x61,0x63,0x65])](_0x25760d)[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>_0x1ff70b);}async function _0x38bac5(){await _0x4c94d7,_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd634,_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd634,_0x422adf[_0x5a413e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fb5f4(_0x5eea2a){const _0x882dc4=_0x211de9();_0x422adf[_0x882dc4]=_0x5a413e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eea2a,_0x5eea2a!=_0x5a413e([0x56,0x61,0x6c,0x69,0x64])&&_0x38bac5();}function _0x211de9(){const _0x2d738b=window[_0x5a413e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a413e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a413e([0x6e,0x6f,0x77])]())[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a413e([0x2e]),'');let _0x1fb8f5=_0x5a413e([0x4e]);for(let _0x304efd=0x0;_0x304efd<_0x2d738b[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x304efd+=0x2){let _0x5e64ed=window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d738b[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x304efd,_0x304efd+0x2));_0x5e64ed>=_0x186e47[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e64ed-=_0x186e47[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fb8f5+=_0x186e47[_0x5e64ed];}return _0x1fb8f5;}function _0x39c684(){const _0x3dffbe=_0x49b391[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e]));if(0x3!=_0x3dffbe[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26a9dd(_0x3dffbe[0x1]);function _0x26a9dd(_0x4c0013){const _0x42a871=_0x6928e3(_0x4c0013);return _0x42a871&&_0xba87bb()?_0x42a871:null;function _0xba87bb(){const _0x559709=_0x42a871[_0x5a413e([0x6a,0x74,0x69])],_0x40ecc1=window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x559709[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x559709[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2873da={..._0x42a871,[_0x5a413e([0x6a,0x74,0x69])]:_0x559709[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x559709[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2873da[_0x5a413e([0x76,0x63])],_0x129a0d(_0x2873da)==_0x40ecc1;}}}async function _0x3a1dd3(){let _0x5209db=!0x0;try{const _0x3b5057=_0x49b391[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e])),[_0x52abf9,_0xb95919,_0x4a3996]=_0x3b5057;return _0xed38fd(_0x52abf9),await _0x1f8c34(_0x52abf9,_0xb95919,_0x4a3996),_0x5209db;}catch(_0x338041){return!0x1;}function _0xed38fd(_0x325a36){const _0x256836=_0x6928e3(_0x325a36);_0x256836&&_0x256836[_0x5a413e([0x61,0x6c,0x67])]==_0x5a413e([0x45,0x53,0x32,0x35,0x36])||(_0x5209db=!0x1);}async function _0x1f8c34(_0x4b405a,_0x372340,_0x3ad948){const _0xd58150=window[_0x5a413e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a413e([0x66,0x72,0x6f,0x6d])](_0x348a5b(_0x3ad948),_0x26fc75=>_0x26fc75[_0x5a413e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5af9a6=new window[(_0x5a413e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a413e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b405a+_0x5a413e([0x2e])+_0x372340),_0x43327b=window[_0x5a413e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a413e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43327b)return;const _0x5cd80b=await _0x43327b[_0x5a413e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a413e([0x6a,0x77,0x6b]),_0x49ec49,{[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x45,0x43,0x44,0x53,0x41]),[_0x5a413e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a413e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43327b[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x45,0x43,0x44,0x53,0x41]),[_0x5a413e([0x68,0x61,0x73,0x68])]:{[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cd80b,_0xd58150,_0x5af9a6)||(_0x5209db=!0x1);}}function _0x6928e3(_0x48f642){return _0x48f642[_0x5a413e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a413e([0x65,0x79]))?JSON[_0x5a413e([0x70,0x61,0x72,0x73,0x65])](_0x348a5b(_0x48f642)):null;}function _0x348a5b(_0x12627f){return window[_0x5a413e([0x61,0x74,0x6f,0x62])](_0x12627f[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a413e([0x2b]))[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a413e([0x2f])));}function _0x129a0d(_0x14f0c6){let _0x1f88f9=0x1505;function _0x1a0e75(_0x4fbb1c){for(let _0x19038c=0x0;_0x19038c<_0x4fbb1c[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19038c++){const _0x2e3fa7=_0x4fbb1c[_0x5a413e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19038c);_0x1f88f9=(_0x1f88f9<<0x5)+_0x1f88f9+_0x2e3fa7,_0x1f88f9&=_0x1f88f9;}}function _0x3a408f(_0x1b56bd){Array[_0x5a413e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b56bd)?_0x1b56bd[_0x5a413e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a408f):_0x1b56bd&&typeof _0x1b56bd==_0x5a413e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a413e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b56bd)[_0x5a413e([0x73,0x6f,0x72,0x74])]()[_0x5a413e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fd69e,_0x178b2e])=>{_0x1a0e75(_0x4fd69e),_0x3a408f(_0x178b2e);}):_0x1a0e75(window[_0x5a413e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b56bd));}return _0x3a408f(_0x14f0c6),_0x1f88f9>>>0x0;}function _0x585dbb(_0x475785){return _0x475785[_0x5a413e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a413e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a413e([0x30]));}function _0x24c7c9(_0x2e90b4){return _0x2e90b4[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a413e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a413e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dd634(){}function _0x5a413e(_0x4256f9){const _0x13907c=_0xfe76;return _0x4256f9[_0x13907c(0x1d7)](_0x371229=>String[_0x13907c(0x201)](_0x371229))[_0x13907c(0x1ff)]('');}_0x4fb5f4(await _0x145ec3());}(this);}[_0x29e3cc(0x1b9)](){const _0x2f1943=_0x29e3cc,_0x4de793=this[_0x2f1943(0x1e5)][_0x2f1943(0x1e0)][_0x2f1943(0x1df)];_0x4de793[_0x2f1943(0x1dd)](_0x2f1943(0x1da))&&_0x4de793[_0x2f1943(0x1c6)](_0x2f1943(0x1da),{'allowAttributes':[_0x2f1943(0x1d9)]}),_0x4de793[_0x2f1943(0x1dd)](_0x2f1943(0x1be))&&_0x4de793[_0x2f1943(0x1c6)](_0x2f1943(0x1be),{'allowAttributes':[_0x2f1943(0x1d9)]});}[_0x29e3cc(0x1dc)](){const _0x354605=_0x29e3cc,_0x3bb947=this[_0x354605(0x1e5)];_0x3bb947[_0x354605(0x1bf)][_0x354605(0x1bb)](_0x354605(0x1ed))[_0x354605(0x1f2)]({'model':_0x354605(0x1d9),'view':_0x354605(0x1eb)}),_0x3bb947[_0x354605(0x1bf)][_0x354605(0x1bb)](_0x354605(0x1cf))[_0x354605(0x1c2)]({'model':{'key':_0x354605(0x1d9),'value':_0x2ec760=>_0x2ec760[_0x354605(0x1e1)](_0x354605(0x1eb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x416977=_0x3bb947[_0x354605(0x1cb)][_0x354605(0x1b3)](_0x354605(0x1e6));_0x416977&&this[_0x354605(0x1d3)](_0x416977,_0x354605(0x203),(_0x23bdaf,[_0x511594,_0x12e432])=>{const _0x4493e1=_0x354605;_0x511594[_0x4493e1(0x1db)](_0x4493e1(0x1d9),_0x12e432);});}[_0x29e3cc(0x1e4)](){const _0x1ef009=_0x29e3cc,_0x455c53=this[_0x1ef009(0x1e5)][_0x1ef009(0x1f6)][_0x1ef009(0x1b3)](_0x1ef009(0x1c0))||{},_0x3a2f43=this[_0x1ef009(0x1e5)][_0x1ef009(0x1f6)][_0x1ef009(0x1b3)](_0x1ef009(0x1e7))||'';this[_0x1ef009(0x204)]=_0x29c041(_0x1af7f9[_0x1ef009(0x1d2)],_0x1ef009(0x1d0),{..._0x455c53,'pubkey':_0x3a2f43,'ctx-name':_0x1ef009(0x1b6),'sourceList':'','imgOnly':_0x1ef009(0x1cd),'removeCopyright':_0x1ef009(0x1cd),'localeName':this[_0x1ef009(0x1e5)][_0x1ef009(0x1f0)][_0x1ef009(0x1b8)],'externalSourcesEmbedCss':_0x1ef009(0x1e8)}),this[_0x1ef009(0x204)][_0x1ef009(0x1b4)]=_0x50e72b=>{const _0x21a7f0=_0x1ef009;if(_0x21a7f0(0x1cc)==_0x50e72b)return _0x21a7f0(0x1c7);},_0x1af7f9[_0x1ef009(0x1d2)][_0x1ef009(0x1bc)][_0x1ef009(0x1f5)](this[_0x1ef009(0x204)]);}[_0x29e3cc(0x1fb)](){const _0x400b05=_0x29e3cc;this[_0x400b05(0x1f7)]=_0x29c041(_0x1af7f9[_0x400b05(0x1d2)],_0x400b05(0x207),{'ctx-name':_0x400b05(0x1b6)}),_0x1af7f9[_0x400b05(0x1d2)][_0x400b05(0x1bc)][_0x400b05(0x1f5)](this[_0x400b05(0x1f7)]);}[_0x29e3cc(0x1f3)](){const _0x511a56=_0x29e3cc,_0x4589bf=this[_0x511a56(0x1e5)][_0x511a56(0x1cb)][_0x511a56(0x1b3)](_0x511a56(0x1c3));_0x4589bf&&this[_0x511a56(0x1d3)](_0x4589bf,_0x511a56(0x1ce),()=>{const _0x33c659=_0x511a56,_0x1d4aa2=this[_0x33c659(0x1e5)][_0x33c659(0x1e0)][_0x33c659(0x1d2)][_0x33c659(0x1ba)][_0x33c659(0x1c8)]();_0x1d4aa2&&_0x1d4aa2[_0x33c659(0x1e1)](_0x33c659(0x1d9))&&this[_0x33c659(0x1e5)][_0x33c659(0x1d6)][_0x33c659(0x1f8)][_0x33c659(0x1c5)](_0x33c659(0x1ea),()=>{const _0x436f47=_0x33c659;_0x522da5(this[_0x436f47(0x1e5)],_0x1d4aa2);});});const _0x36f18a=this[_0x511a56(0x1e5)][_0x511a56(0x1cb)][_0x511a56(0x1b3)](_0x511a56(0x1f1));_0x36f18a&&this[_0x511a56(0x1d3)](_0x36f18a,_0x511a56(0x1ce),()=>{const _0x352a5a=_0x511a56,_0x4095f5=this[_0x352a5a(0x1e5)][_0x352a5a(0x1e0)][_0x352a5a(0x1d2)][_0x352a5a(0x1ba)][_0x352a5a(0x1c8)]();_0x4095f5&&_0x4095f5[_0x352a5a(0x1e1)](_0x352a5a(0x1d9))&&this[_0x352a5a(0x1e5)][_0x352a5a(0x1d6)][_0x352a5a(0x1f8)][_0x352a5a(0x1c5)](_0x352a5a(0x1ea),()=>{const _0x1b321c=_0x352a5a;_0x522da5(this[_0x1b321c(0x1e5)],_0x4095f5);});});}}
|
|
23
|
+
const _0xd0dae7=_0x415b;function _0x3909(){const _0x162bfe=['_initConfig','afterInit','configElement','\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','document','init','uc-config','_initImageProcessingIndicator','isOfficialPlugin','_ctxElement','_configElement','_initConversion','config','commands','isPremiumPlugin','removeAttribute','imageBlock','uc-upload-ctx-provider','data-uc-image-id','body','getSelectedElement','execute','elementToAttribute','ctxElement','imageInline','join','uploadcareImageReplace','destroy','uploadcare','uploader','66530ngvuXI','#uc-icon-arrow-down','PictureEditing','uploadcareImageId','_initSchema','pluginName','260782cXzaMJ','querySelector','upcast','selection','render','fromCharCode','editing','view','56GPnmWs','conversion','locale','iconHrefResolver','map','739816XVRJDL','isRegistered','appendChild','attributeToAttribute','uploadcare.pubkey','closeMax','get','157653OhVJrO','input[uploadcare-file-input]','editor','replaceImageSource','extend','82768yWRSvY','80214Ayhqsg','for','requires','schema','downcast','183303qSlKIB','listenTo','UploadcareEditing','add','36lvvKLk','once','insertImage','contentLanguage','uploadcare.uploader','model','href','_initCtx','cleanupImage','remove','getAttribute','true'];_0x3909=function(){return _0x162bfe;};return _0x3909();}function _0x415b(_0x46a3d5,_0x352436){const _0x3909ba=_0x3909();return _0x415b=function(_0x415b8d,_0xf29ce0){_0x415b8d=_0x415b8d-0x1b7;let _0x167660=_0x3909ba[_0x415b8d];return _0x167660;},_0x415b(_0x46a3d5,_0x352436);}(function(_0x25ab5b,_0x31ab7c){const _0x2f0b12=_0x415b,_0x4b9998=_0x25ab5b();while(!![]){try{const _0x3dc85b=-parseInt(_0x2f0b12(0x206))/0x1+parseInt(_0x2f0b12(0x1f2))/0x2+-parseInt(_0x2f0b12(0x1b9))/0x3+parseInt(_0x2f0b12(0x1ff))/0x4+parseInt(_0x2f0b12(0x1ec))/0x5*(parseInt(_0x2f0b12(0x1c2))/0x6)+parseInt(_0x2f0b12(0x1b8))/0x7*(-parseInt(_0x2f0b12(0x1fa))/0x8)+-parseInt(_0x2f0b12(0x1be))/0x9;if(_0x3dc85b===_0x31ab7c)break;else _0x4b9998['push'](_0x4b9998['shift']());}catch(_0x254d5c){_0x4b9998['push'](_0x4b9998['shift']());}}}(_0x3909,0x1a487));import{Plugin as _0x4bef96}from'ckeditor5/src/core.js';import{Dialog as _0x4fa3c6}from'ckeditor5/src/ui.js';import{createElement as _0x3d9fcb,global as _0x4740aa,uid as _0x1560ae}from'ckeditor5/src/utils.js';import _0x236558 from'./uploadcarecommand.js';import _0x1d5e2e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1279de}from'./utils/editingutils.js';export default class i extends _0x4bef96{[_0xd0dae7(0x1d8)]=null;[_0xd0dae7(0x1d7)]=null;static get[_0xd0dae7(0x1f1)](){const _0x5d93e7=_0xd0dae7;return _0x5d93e7(0x1c0);}static get[_0xd0dae7(0x1bb)](){const _0x14b21b=_0xd0dae7;return[_0x14b21b(0x1ee),_0x1d5e2e,_0x4fa3c6];}static get[_0xd0dae7(0x1d6)](){return!0x0;}static get[_0xd0dae7(0x1dc)](){return!0x0;}get[_0xd0dae7(0x1d0)](){const _0x41f378=_0xd0dae7;return this[_0x41f378(0x1d8)];}get[_0xd0dae7(0x1e5)](){const _0x234385=_0xd0dae7;return this[_0x234385(0x1d7)];}[_0xd0dae7(0x1d3)](){const _0x3a805a=_0xd0dae7,_0x2d5adf=this[_0x3a805a(0x208)];_0x2d5adf[_0x3a805a(0x1db)][_0x3a805a(0x1c1)](_0x3a805a(0x1ea),new _0x236558(_0x2d5adf));}[_0xd0dae7(0x1cf)](){const _0x1627f4=_0xd0dae7;this[_0x1627f4(0x1f0)](),this[_0x1627f4(0x1d9)](),this[_0x1627f4(0x1ce)](),this[_0x1627f4(0x1c9)](),this[_0x1627f4(0x1d5)](),this[_0x1627f4(0x1bf)](this[_0x1627f4(0x208)],_0x1627f4(0x1e9),()=>{const _0xee378c=_0x1627f4;this[_0xee378c(0x1d8)]&&(this[_0xee378c(0x1d8)][_0xee378c(0x1cb)](),this[_0xee378c(0x1d8)]=null),this[_0xee378c(0x1d7)]&&(this[_0xee378c(0x1d7)][_0xee378c(0x1cb)](),this[_0xee378c(0x1d7)]=null);const _0x248e56=_0x4740aa[_0xee378c(0x1d2)][_0xee378c(0x1f3)](_0xee378c(0x207));_0x248e56&&_0x248e56[_0xee378c(0x1cb)]();}),async function(_0x24ab7a){const _0x5d4f21=_0x3e235d([0x57,0x71,0x73,0x33,0x4a,0x4f,0x52,0x35,0x32,0x56,0x4d,0x51,0x67,0x47,0x69,0x54,0x74,0x4b,0x75,0x55,0x53,0x79,0x36,0x44,0x50,0x78,0x38,0x63,0x37,0x61,0x45,0x6a,0x68,0x5a,0x70,0x42,0x66,0x6b,0x41,0x34,0x76,0x4c,0x62,0x6c,0x6f,0x59,0x6d,0x58,0x64,0x31,0x4e,0x7a,0x77,0x39,0x30,0x65,0x6e,0x46,0x43,0x72,0x49,0x48]),_0x3f6725=0x3053539b,_0x52590c=0x30543a93^_0x3f6725,_0x56177d=window[_0x3e235d([0x44,0x61,0x74,0x65])][_0x3e235d([0x6e,0x6f,0x77])](),_0x168727=_0x24ab7a[_0x3e235d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cfeef=new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462ccd=>{_0x168727[_0x3e235d([0x6f,0x6e,0x63,0x65])](_0x3e235d([0x72,0x65,0x61,0x64,0x79]),_0x462ccd);}),_0x243af4={[_0x3e235d([0x6b,0x74,0x79])]:_0x3e235d([0x45,0x43]),[_0x3e235d([0x75,0x73,0x65])]:_0x3e235d([0x73,0x69,0x67]),[_0x3e235d([0x63,0x72,0x76])]:_0x3e235d([0x50,0x2d,0x32,0x35,0x36]),[_0x3e235d([0x78])]:_0x3e235d([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]),[_0x3e235d([0x79])]:_0x3e235d([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]),[_0x3e235d([0x61,0x6c,0x67])]:_0x3e235d([0x45,0x53,0x32,0x35,0x36])},_0x3a3a4e=_0x168727[_0x3e235d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e235d([0x67,0x65,0x74])](_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a0b84(){let _0x53d815,_0x81f52=null,_0x45f5fe=null;try{if(_0x3a3a4e==_0x3e235d([0x47,0x50,0x4c]))return _0x3e235d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53d815=_0x25ffe6(),!_0x53d815)return _0x3e235d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53d815[_0x3e235d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45f5fe=_0x6a96ee(_0x53d815[_0x3e235d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53d815[_0x3e235d([0x6a,0x74,0x69])])),await _0x5844c2()?_0x7f459()?_0x522fde()?_0x3e235d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa33343()?(_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e235d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x81f52=_0x2dc674(_0x3e235d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e235d([0x74,0x72,0x69,0x61,0x6c])&&(_0x81f52=_0x2dc674(_0x3e235d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d4cc7()):_0x3e235d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e235d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e235d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e235d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x522fde(){const _0x4be979=[_0x3e235d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e235d([0x74,0x72,0x69,0x61,0x6c])][_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56177d/0x3e8:0xe10*_0x52590c;return _0x53d815[_0x3e235d([0x65,0x78,0x70])]<_0x4be979;}function _0x7f459(){const _0x12db92=_0x53d815[_0x3e235d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12db92&&(!!_0x12db92[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e235d([0x2a]))||!!_0x12db92[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e235d([0x55,0x50,0x4c,0x43])));}function _0xa33343(){const _0x17843c=_0x415b,_0x5e8b1a=_0x53d815[_0x3e235d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e8b1a||0x0==_0x5e8b1a[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d3560}=new URL(window[_0x3e235d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17843c(0x1c8)]);if(_0x5e8b1a[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3560))return!0x0;const _0x10f7e3=_0x3d3560[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e]));return _0x5e8b1a[_0x3e235d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24be0f=>_0x24be0f[_0x3e235d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e235d([0x2a])))[_0x3e235d([0x6d,0x61,0x70])](_0x36e226=>_0x36e226[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e])))[_0x3e235d([0x73,0x6f,0x6d,0x65])](_0x2e7ea8=>_0x10f7e3[_0x3e235d([0x65,0x76,0x65,0x72,0x79])]((_0x7064c4,_0x4a59de)=>_0x2e7ea8[_0x4a59de]===_0x7064c4||_0x2e7ea8[_0x4a59de]===_0x3e235d([0x2a])));}function _0x1d4cc7(){return _0x81f52&&_0x45f5fe?new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cb49c,_0x19ceb4)=>{_0x81f52[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x3cb49c,_0x19ceb4),_0x45f5fe[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x47e976=>{_0x47e976!=_0x3e235d([0x56,0x61,0x6c,0x69,0x64])&&_0x3cb49c(_0x47e976);},_0x19ceb4);}):_0x81f52||_0x45f5fe||_0x3e235d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6a96ee(_0x22f82e,_0x636e8f){return new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d68d5=>{if(_0x295bf7())return _0x1d68d5(_0x3e235d([0x56,0x61,0x6c,0x69,0x64]));_0x3d7eae(),_0x168727[_0x3e235d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e235d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c7aa2=!0x1;const _0x5d34aa=_0x1560ae();function _0x3b179a(_0x1c0ce5){return!!_0x1c0ce5&&(typeof _0x1c0ce5===_0x3e235d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c0ce5===_0x3e235d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c0ce5[_0x3e235d([0x74,0x68,0x65,0x6e])]===_0x3e235d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c0ce5[_0x3e235d([0x63,0x61,0x74,0x63,0x68])]===_0x3e235d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a5ade(_0x4ecc4c){_0x661992(_0x4ecc4c)[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x33d5da=>{if(!_0x33d5da||_0x33d5da[_0x3e235d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e235d([0x6f,0x6b]))return _0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xdfaa4b(_0x2ba6f7(_0x5d34aa+_0x636e8f))!=_0x33d5da[_0x3e235d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e235d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x5dd04c=>(_0x1a5a3a(),_0x5dd04c),()=>{const _0x2e2843=_0x242a6f();return null==_0x2e2843?(_0x1a5a3a(),_0x3e235d([0x56,0x61,0x6c,0x69,0x64])):_0x3e235d(_0x56177d-_0x2e2843>(0x145fd79b^_0x3f6725)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x1d68d5)[_0x3e235d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d68d5(_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xba5658=0x3065bd1b^_0x3f6725;function _0x1a5a3a(){const _0x43d13c=_0x3e235d([0x6c,0x6c,0x63,0x74,0x2d])+_0xdfaa4b(_0x2ba6f7(_0x22f82e)),_0x22a4b0=_0x2406bd(_0xdfaa4b(window[_0x3e235d([0x4d,0x61,0x74,0x68])][_0x3e235d([0x63,0x65,0x69,0x6c])](_0x56177d/_0xba5658)));window[_0x3e235d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e235d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43d13c,_0x22a4b0);}function _0x242a6f(){const _0x33e130=_0x3e235d([0x6c,0x6c,0x63,0x74,0x2d])+_0xdfaa4b(_0x2ba6f7(_0x22f82e)),_0x55b8c6=window[_0x3e235d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e235d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33e130);return _0x55b8c6?window[_0x3e235d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2406bd(_0x55b8c6),0x10)*_0xba5658:null;}function _0x661992(_0x3242b1){return new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x76b538,_0x433e6a)=>{_0x3242b1[_0x3e235d([0x74,0x68,0x65,0x6e])](_0x76b538,_0x433e6a),window[_0x3e235d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x433e6a,0x3052875b^_0x3f6725);});}}_0x168727[_0x3e235d([0x6f,0x6e])](_0x3e235d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43fbed,_0x2d7ddb)=>{if(_0x2d7ddb[0x0]!=_0x22f82e)return _0x1d68d5(_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d7ddb[0x1]={..._0x2d7ddb[0x1],[_0x3e235d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d34aa};},{[_0x3e235d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e235d([0x68,0x69,0x67,0x68])}),_0x168727[_0x3e235d([0x6f,0x6e])](_0x3e235d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x325657=>{_0x3b179a(_0x325657[_0x3e235d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c7aa2=!0x0,_0x5a5ade(_0x325657[_0x3e235d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e235d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e235d([0x6c,0x6f,0x77])}),_0x1cfeef[_0x3e235d([0x74,0x68,0x65,0x6e])](()=>{_0x5c7aa2||_0x1d68d5(_0x3e235d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x295bf7(){return _0x168727[_0x3e235d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e235d([0x76,0x69,0x65,0x77])][_0x3e235d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e235d([0x61,0x75,0x74,0x6f]);}function _0x3d7eae(){_0x168727[_0x3e235d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e235d([0x76,0x69,0x65,0x77])][_0x3e235d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e235d([0x61,0x75,0x74,0x6f]);}}function _0x2dc674(_0x58c0f6){const _0x3e036b=[new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44a855=>setTimeout(_0x44a855,0x305a6d57^_0x3f6725)),_0x1cfeef[_0x3e235d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x565095=>{let _0x12e8ff=0x0;_0x168727[_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e235d([0x6f,0x6e])](_0x3e235d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c81e5,_0x1bfc41)=>{_0x1bfc41[0x0][_0x3e235d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12e8ff++,_0x12e8ff==(0x30535263^_0x3f6725)&&(_0x565095(),_0x4c81e5[_0x3e235d([0x6f,0x66,0x66])]());});}))];return window[_0x3e235d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e235d([0x72,0x61,0x63,0x65])](_0x3e036b)[_0x3e235d([0x74,0x68,0x65,0x6e])](()=>_0x58c0f6);}async function _0x2c1cc7(){await _0x1cfeef,_0x168727[_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e235d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45885b,_0x168727[_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e235d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45885b,_0x168727[_0x3e235d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e235d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58c122(_0x4add6c){const _0x53065f=_0x2c43ec();_0x168727[_0x53065f]=_0x3e235d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4add6c,_0x4add6c!=_0x3e235d([0x56,0x61,0x6c,0x69,0x64])&&_0x2c1cc7();}function _0x2c43ec(){const _0x344bce=window[_0x3e235d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e235d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e235d([0x6e,0x6f,0x77])]())[_0x3e235d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e235d([0x2e]),'');let _0xc0f79b=_0x3e235d([0x57]);for(let _0x372711=0x0;_0x372711<_0x344bce[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x372711+=0x2){let _0x38ac73=window[_0x3e235d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x344bce[_0x3e235d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x372711,_0x372711+0x2));_0x38ac73>=_0x5d4f21[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38ac73-=_0x5d4f21[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc0f79b+=_0x5d4f21[_0x38ac73];}return _0xc0f79b;}function _0x25ffe6(){const _0x22ced5=_0x3a3a4e[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e]));if(0x3!=_0x22ced5[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58b190(_0x22ced5[0x1]);function _0x58b190(_0x2a27cf){const _0x2cb0b5=_0x234ef1(_0x2a27cf);return _0x2cb0b5&&_0x1ec7f0()?_0x2cb0b5:null;function _0x1ec7f0(){const _0xa41a35=_0x2cb0b5[_0x3e235d([0x6a,0x74,0x69])],_0x2680b7=window[_0x3e235d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa41a35[_0x3e235d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa41a35[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x392a9c={..._0x2cb0b5,[_0x3e235d([0x6a,0x74,0x69])]:_0xa41a35[_0x3e235d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa41a35[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x392a9c[_0x3e235d([0x76,0x63])],_0x2ba6f7(_0x392a9c)==_0x2680b7;}}}async function _0x5844c2(){let _0xc8663e=!0x0;try{const _0x2766a9=_0x3a3a4e[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])](_0x3e235d([0x2e])),[_0x2dad66,_0xd6c63e,_0x54b6b2]=_0x2766a9;return _0x51dd99(_0x2dad66),await _0x203122(_0x2dad66,_0xd6c63e,_0x54b6b2),_0xc8663e;}catch{return!0x1;}function _0x51dd99(_0x4452ce){const _0x3af4c4=_0x234ef1(_0x4452ce);_0x3af4c4&&_0x3af4c4[_0x3e235d([0x61,0x6c,0x67])]==_0x3e235d([0x45,0x53,0x32,0x35,0x36])||(_0xc8663e=!0x1);}async function _0x203122(_0x392a0c,_0x3ce7b4,_0x4a5f9d){const _0x1e919e=window[_0x3e235d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e235d([0x66,0x72,0x6f,0x6d])](_0x38183f(_0x4a5f9d),_0xe883fb=>_0xe883fb[_0x3e235d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11bad5=new window[(_0x3e235d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e235d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392a0c+_0x3e235d([0x2e])+_0x3ce7b4),_0x3d528c=window[_0x3e235d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e235d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d528c)return;const _0x2fb883=await _0x3d528c[_0x3e235d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e235d([0x6a,0x77,0x6b]),_0x243af4,{[_0x3e235d([0x6e,0x61,0x6d,0x65])]:_0x3e235d([0x45,0x43,0x44,0x53,0x41]),[_0x3e235d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e235d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e235d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d528c[_0x3e235d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e235d([0x6e,0x61,0x6d,0x65])]:_0x3e235d([0x45,0x43,0x44,0x53,0x41]),[_0x3e235d([0x68,0x61,0x73,0x68])]:{[_0x3e235d([0x6e,0x61,0x6d,0x65])]:_0x3e235d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fb883,_0x1e919e,_0x11bad5)||(_0xc8663e=!0x1);}}function _0x234ef1(_0x3afb58){return _0x3afb58[_0x3e235d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e235d([0x65,0x79]))?JSON[_0x3e235d([0x70,0x61,0x72,0x73,0x65])](_0x38183f(_0x3afb58)):null;}function _0x38183f(_0x413487){return window[_0x3e235d([0x61,0x74,0x6f,0x62])](_0x413487[_0x3e235d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e235d([0x2b]))[_0x3e235d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e235d([0x2f])));}function _0x2ba6f7(_0x331e50){let _0x14060a=0x1505;function _0xabc43f(_0x5a315d){for(let _0x2e6e73=0x0;_0x2e6e73<_0x5a315d[_0x3e235d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e6e73++){const _0x172483=_0x5a315d[_0x3e235d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e6e73);_0x14060a=(_0x14060a<<0x5)+_0x14060a+_0x172483,_0x14060a&=_0x14060a;}}function _0x127f9b(_0x42b644){Array[_0x3e235d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42b644)?_0x42b644[_0x3e235d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x127f9b):_0x42b644&&typeof _0x42b644==_0x3e235d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e235d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42b644)[_0x3e235d([0x73,0x6f,0x72,0x74])]()[_0x3e235d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x591476,_0x56415d])=>{_0xabc43f(_0x591476),_0x127f9b(_0x56415d);}):_0xabc43f(window[_0x3e235d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42b644));}return _0x127f9b(_0x331e50),_0x14060a>>>0x0;}function _0xdfaa4b(_0xa15a04){return _0xa15a04[_0x3e235d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e235d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e235d([0x30]));}function _0x2406bd(_0x17f712){return _0x17f712[_0x3e235d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e235d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e235d([0x6a,0x6f,0x69,0x6e])]('');}function _0x45885b(){}function _0x3e235d(_0x35247c){const _0x24d3a9=_0x415b;return _0x35247c[_0x24d3a9(0x1fe)](_0x104575=>String[_0x24d3a9(0x1f7)](_0x104575))[_0x24d3a9(0x1e7)]('');}_0x58c122(await _0x3a0b84());}(this);}[_0xd0dae7(0x1f0)](){const _0x4f7dce=_0xd0dae7,_0x4bc754=this[_0x4f7dce(0x208)][_0x4f7dce(0x1c7)][_0x4f7dce(0x1bc)];_0x4bc754[_0x4f7dce(0x200)](_0x4f7dce(0x1de))&&_0x4bc754[_0x4f7dce(0x1b7)](_0x4f7dce(0x1de),{'allowAttributes':[_0x4f7dce(0x1ef)]}),_0x4bc754[_0x4f7dce(0x200)](_0x4f7dce(0x1e6))&&_0x4bc754[_0x4f7dce(0x1b7)](_0x4f7dce(0x1e6),{'allowAttributes':[_0x4f7dce(0x1ef)]});}[_0xd0dae7(0x1d9)](){const _0x100c01=_0xd0dae7,_0x455b42=this[_0x100c01(0x208)];_0x455b42[_0x100c01(0x1fb)][_0x100c01(0x1ba)](_0x100c01(0x1bd))[_0x100c01(0x202)]({'model':_0x100c01(0x1ef),'view':_0x100c01(0x1e0)}),_0x455b42[_0x100c01(0x1fb)][_0x100c01(0x1ba)](_0x100c01(0x1f4))[_0x100c01(0x1e4)]({'model':{'key':_0x100c01(0x1ef),'value':_0x5b8156=>_0x5b8156[_0x100c01(0x1cc)](_0x100c01(0x1e0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4abbff=_0x455b42[_0x100c01(0x1db)][_0x100c01(0x205)](_0x100c01(0x209));_0x4abbff&&this[_0x100c01(0x1bf)](_0x4abbff,_0x100c01(0x1ca),(_0x22c3b3,[_0x145dbb,_0x2658f1])=>{const _0x4def17=_0x100c01;_0x145dbb[_0x4def17(0x1dd)](_0x4def17(0x1ef),_0x2658f1);});}[_0xd0dae7(0x1ce)](){const _0x14ce97=_0xd0dae7,_0x26f0fd=this[_0x14ce97(0x208)][_0x14ce97(0x1da)][_0x14ce97(0x205)](_0x14ce97(0x1c6))||{},_0x3e4ca9=this[_0x14ce97(0x208)][_0x14ce97(0x1da)][_0x14ce97(0x205)](_0x14ce97(0x203))||'';this[_0x14ce97(0x1d8)]=_0x3d9fcb(_0x4740aa[_0x14ce97(0x1d2)],_0x14ce97(0x1d4),{..._0x26f0fd,'pubkey':_0x3e4ca9,'ctx-name':_0x14ce97(0x1eb),'sourceList':'','imgOnly':_0x14ce97(0x1cd),'removeCopyright':_0x14ce97(0x1cd),'localeName':this[_0x14ce97(0x208)][_0x14ce97(0x1fc)][_0x14ce97(0x1c5)],'externalSourcesEmbedCss':_0x14ce97(0x1d1)}),this[_0x14ce97(0x1d8)][_0x14ce97(0x1fd)]=_0x5a54ad=>{const _0xce261b=_0x14ce97;if(_0xce261b(0x204)==_0x5a54ad)return _0xce261b(0x1ed);},_0x4740aa[_0x14ce97(0x1d2)][_0x14ce97(0x1e1)][_0x14ce97(0x201)](this[_0x14ce97(0x1d8)]);}[_0xd0dae7(0x1c9)](){const _0x4e5cc1=_0xd0dae7;this[_0x4e5cc1(0x1d7)]=_0x3d9fcb(_0x4740aa[_0x4e5cc1(0x1d2)],_0x4e5cc1(0x1df),{'ctx-name':_0x4e5cc1(0x1eb)}),_0x4740aa[_0x4e5cc1(0x1d2)][_0x4e5cc1(0x1e1)][_0x4e5cc1(0x201)](this[_0x4e5cc1(0x1d7)]);}[_0xd0dae7(0x1d5)](){const _0x4bb7b0=_0xd0dae7,_0x13fb9f=this[_0x4bb7b0(0x208)][_0x4bb7b0(0x1db)][_0x4bb7b0(0x205)](_0x4bb7b0(0x1c4));_0x13fb9f&&this[_0x4bb7b0(0x1bf)](_0x13fb9f,_0x4bb7b0(0x1e3),()=>{const _0x45a08e=_0x4bb7b0,_0x4f5ba9=this[_0x45a08e(0x208)][_0x45a08e(0x1c7)][_0x45a08e(0x1d2)][_0x45a08e(0x1f5)][_0x45a08e(0x1e2)]();_0x4f5ba9&&_0x4f5ba9[_0x45a08e(0x1cc)](_0x45a08e(0x1ef))&&this[_0x45a08e(0x208)][_0x45a08e(0x1f8)][_0x45a08e(0x1f9)][_0x45a08e(0x1c3)](_0x45a08e(0x1f6),()=>{const _0x3fdb49=_0x45a08e;_0x1279de(this[_0x3fdb49(0x208)],_0x4f5ba9);});});const _0x211306=this[_0x4bb7b0(0x208)][_0x4bb7b0(0x1db)][_0x4bb7b0(0x205)](_0x4bb7b0(0x1e8));_0x211306&&this[_0x4bb7b0(0x1bf)](_0x211306,_0x4bb7b0(0x1e3),()=>{const _0x3f0d27=_0x4bb7b0,_0x31e165=this[_0x3f0d27(0x208)][_0x3f0d27(0x1c7)][_0x3f0d27(0x1d2)][_0x3f0d27(0x1f5)][_0x3f0d27(0x1e2)]();_0x31e165&&_0x31e165[_0x3f0d27(0x1cc)](_0x3f0d27(0x1ef))&&this[_0x3f0d27(0x208)][_0x3f0d27(0x1f8)][_0x3f0d27(0x1f9)][_0x3f0d27(0x1c3)](_0x3f0d27(0x1f6),()=>{const _0x429356=_0x3f0d27;_0x1279de(this[_0x429356(0x208)],_0x31e165);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2045be,ObservableMixin as _0x24689e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x219ae9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4c65b1}from'ckeditor5/src/icons.js';import _0x480c2d from'./uploadcareimageeditformview.js';import _0x263547 from'../../utils/uploadutils.js';import{getImageUrls as _0x4f4c49,getImageDimension as _0x541ac1}from'../../utils/editingutils.js';import{isAncestor as _0x5099a6}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x24689e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3218a5,_0x27ccff,_0xe2582){super(),this['_editor']=_0x3218a5,this['_dialog']=_0x27ccff,this['_imageElement']=_0xe2582,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 _0xeddb41=this['_imageElement'],_0xf74147=_0xeddb41['getAttribute']('uploadcareImageId'),_0x9b47ea=_0xeddb41['getAttribute']('src');if(_0xf74147)await this['_loadImageInfo'](_0xf74147,_0x9b47ea);else{if(this['_imageCache']['has'](_0x9b47ea)){const _0x5097f6=this['_imageCache']['get'](_0x9b47ea);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5097f6['url'],this['imageDimension']=_0x5097f6['dimension'],this['imageId']=_0x5097f6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x916732}=this['_editor'],t=_0x916732['t'],_0x1daab2=new _0x480c2d(_0x916732,this['imageStatus'],this['_attributes']);_0x1daab2['bind']('status')['to'](this,'imageStatus'),_0x1daab2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1daab2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1daab2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1daab2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4c65b1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1daab2,'position':_0x219ae9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1daab2['focus']();},'onHide':()=>{_0x1daab2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bb227=>!_0x5099a6(_0x2bb227,_0x1daab2['element'])}});}['_loadImageInfo'](_0x25c9b8,_0xfe48cf){return _0x263547['getInfo'](_0x25c9b8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2c502e=>{const {width:_0x274439,height:_0x5af032}=_0x2c502e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfe48cf,this['imageDimension']={'width':_0x274439,'height':_0x5af032},this['imageId']=_0x25c9b8;})['catch'](_0x5b0c72=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b0c72['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x33564b,_0x2e622f){return this['_getImageAsFile'](_0x33564b)['then'](_0x2042a6=>_0x263547['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2e622f['signal'],'file':_0x2042a6,'onProgress':_0x2fc1dd=>{_0x2fc1dd&&_0x2fc1dd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2fc1dd['value']));}}))['then'](_0x4984b6=>{const {width:_0x4350e2,height:_0x462210}=_0x4984b6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4984b6['cdnUrl'],this['imageDimension']={'width':_0x4350e2,'height':_0x462210},this['imageId']=_0x4984b6['uuid'],this['imageUploadProgress']=null;const _0x503533=_0x33564b['getAttribute']('src');this['_imageCache']['set'](_0x503533,{'id':_0x4984b6['uuid'],'url':_0x4984b6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x494d44=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x494d44['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa53a02,_0x5eb087){_0xa53a02['on']('apply',(_0x3f0123,_0x33b039)=>{this['_replaceImage'](_0x5eb087,_0x33b039['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa53a02['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa53a02['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x443377,_0x1fd054,_0x4d4374){const _0x192dd4=this['_editor'],{width:_0x2ab651,height:_0x79d1a3}=_0x541ac1(_0x1fd054,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x195444,imageSources:_0x45df45}=_0x4f4c49(_0x1fd054,_0x2ab651);_0x192dd4['model']['change'](_0xc731ac=>{if('$graveyard'===_0x443377['root']['rootName']){_0x192dd4['execute']('insertImage',{'imageType':_0x443377['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x443377['getAttributes']()),'uploadcareImageId':_0x4d4374,'src':_0x195444,'sources':_0x45df45,'width':_0x2ab651,'height':_0x79d1a3}});const _0x179688=_0x443377['getChildren']();_0x443377=_0x192dd4['model']['document']['selection']['getSelectedElement']();for(const _0x440517 of _0x179688)_0xc731ac['append'](_0xc731ac['cloneElement'](_0x440517),_0x443377);}else _0xc731ac['setSelection'](_0x443377,'on'),_0x192dd4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x443377['getAttributes']()),'uploadcareImageId':_0x4d4374,'src':_0x195444,'sources':_0x45df45,'width':_0x2ab651,'height':_0x79d1a3},_0x443377);_0xc731ac['setSelection'](_0x443377,'on');});}async['_getImageAsFile'](_0xbd7ef5){const _0x32bebc=_0x2045be['window'],_0x5e23a9=_0x2045be['document']['location']['href'],_0x2cff9a=new _0x32bebc['URL'](_0xbd7ef5['getAttribute']('src'),_0x5e23a9);if('data:'===_0x2cff9a['protocol']){const _0x5388fb=_0x2cff9a['href']['split'](','),_0x15fe68=_0x5388fb[0x0]['match'](/:(.*?);/)[0x1],_0x2a5b22=_0x15fe68['split']('/')[0x1],_0x34f38b=_0x32bebc['atob'](_0x5388fb[_0x5388fb['length']-0x1]);let _0x5ea81a=_0x34f38b['length'];const _0x1a33b5=new _0x32bebc['Uint8Array'](_0x5ea81a);for(;_0x5ea81a--;)_0x1a33b5[_0x5ea81a]=_0x34f38b['charCodeAt'](_0x5ea81a);return new _0x32bebc['File']([_0x1a33b5],'image.'+_0x2a5b22,{'type':_0x15fe68});}const _0x5a7caa=_0x2cff9a['href']['split']('/'),_0x5ab290=_0x5a7caa[_0x5a7caa['length']-0x1],_0x179ed8=_0x5ab290['split']('.')[0x1];return _0x32bebc['fetch'](_0x2cff9a['href'])['then'](_0x5504e6=>_0x5504e6['clone']()['blob']())['then'](_0x548af0=>new _0x32bebc['File']([_0x548af0],_0x5ab290,{'type':'image/'+_0x179ed8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x11d2(){const _0x3f548c=['uc-light','uc-cloud-image-editor','2181448LPOwve','imageSrc','setTemplate','510JmWaWg','11349rQlxdG','11xqcSBL','2052114BFDWId','set','7LoBIWz','bindTemplate','ck-uploadcare-theme','36DNLwdl','733340TQwOYM','87063zUyuGc','201529ZhtJUn','image-edit','5047356QPdnSY','2HpfpVS'];_0x11d2=function(){return _0x3f548c;};return _0x11d2();}function _0x5581(_0xf1f335,_0xa95721){const _0x11d28a=_0x11d2();return _0x5581=function(_0x558141,_0x5e7e92){_0x558141=_0x558141-0x101;let _0x528ac7=_0x11d28a[_0x558141];return _0x528ac7;},_0x5581(_0xf1f335,_0xa95721);}(function(_0x56b04d,_0x473898){const _0x4eec6f=_0x5581,_0x4b40c8=_0x56b04d();while(!![]){try{const _0x3d2508=-parseInt(_0x4eec6f(0x101))/0x1*(-parseInt(_0x4eec6f(0x104))/0x2)+parseInt(_0x4eec6f(0x114))/0x3*(parseInt(_0x4eec6f(0x112))/0x4)+parseInt(_0x4eec6f(0x113))/0x5+-parseInt(_0x4eec6f(0x10d))/0x6*(-parseInt(_0x4eec6f(0x10f))/0x7)+-parseInt(_0x4eec6f(0x107))/0x8+parseInt(_0x4eec6f(0x10b))/0x9*(-parseInt(_0x4eec6f(0x10a))/0xa)+-parseInt(_0x4eec6f(0x10c))/0xb*(parseInt(_0x4eec6f(0x103))/0xc);if(_0x3d2508===_0x473898)break;else _0x4b40c8['push'](_0x4b40c8['shift']());}catch(_0x1201cf){_0x4b40c8['push'](_0x4b40c8['shift']());}}}(_0x11d2,0x2f508));import{View as _0x5bf394}from'ckeditor5/src/ui.js';export default class tt extends _0x5bf394{constructor(_0x5396bd,_0x4508cd){const _0x54fd13=_0x5581;super(_0x5396bd);const _0x248e5e=this[_0x54fd13(0x110)];this[_0x54fd13(0x10e)](_0x54fd13(0x108),''),this[_0x54fd13(0x109)]({'tag':_0x54fd13(0x106),'attributes':{..._0x4508cd,'class':[_0x54fd13(0x105),_0x54fd13(0x111)],'ctx-name':_0x54fd13(0x102),'cdn-url':_0x248e5e['to'](_0x54fd13(0x108))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x141e56,IconView as at,View as _0xc4fb45}from'ckeditor5/src/ui.js';export default class rt extends _0xc4fb45{constructor(_0x3f4184){super(_0x3f4184);const t=_0x3f4184['t'];this['set']('errorType',null);const _0x60e2e0=new _0x141e56(_0x3f4184);_0x60e2e0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x60e2e0['withText']=!0x0,_0x60e2e0['class']='ck-button-action',_0x60e2e0['on']('execute',()=>{this['fire']('retry');}),_0x60e2e0['bind']('isVisible')['to'](this,'errorType',_0x42b29e=>'NotFound'!==_0x42b29e);const _0x4a182a=new at();_0x4a182a['content']=et,_0x4a182a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x35f951=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':[_0x4a182a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x35f951['to']('errorType',_0x54bf50=>t('NotFound'!==_0x54bf50?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x60e2e0]},{'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 _0x5d3daf,View as _0x440633}from'ckeditor5/src/ui.js';export default class ta extends _0x440633{constructor(_0x7d7428){super(_0x7d7428);const t=_0x7d7428['t'],_0x146d68=this['bindTemplate'],_0x2f11fc=new _0x5d3daf();_0x2f11fc['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':[_0x2f11fc,{'text':_0x146d68['to']('imageUploadProgress',_0x50f875=>t('Loading\x20image...')+'\x20('+(_0x50f875||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 _0x1ac4f4=_0x28aa;(function(_0x2d9867,_0x2e69b6){const _0x2284e3=_0x28aa,_0x57dfe6=_0x2d9867();while(!![]){try{const _0x39d1a1=parseInt(_0x2284e3(0x1a2))/0x1*(parseInt(_0x2284e3(0x1bc))/0x2)+-parseInt(_0x2284e3(0x1a1))/0x3*(parseInt(_0x2284e3(0x1bb))/0x4)+-parseInt(_0x2284e3(0x1cc))/0x5*(-parseInt(_0x2284e3(0x1c3))/0x6)+-parseInt(_0x2284e3(0x1af))/0x7*(parseInt(_0x2284e3(0x1cb))/0x8)+-parseInt(_0x2284e3(0x1a8))/0x9+parseInt(_0x2284e3(0x1b6))/0xa+parseInt(_0x2284e3(0x1ad))/0xb*(-parseInt(_0x2284e3(0x19f))/0xc);if(_0x39d1a1===_0x2e69b6)break;else _0x57dfe6['push'](_0x57dfe6['shift']());}catch(_0x35a5a7){_0x57dfe6['push'](_0x57dfe6['shift']());}}}(_0x28f2,0x82f0b));function _0x28aa(_0x1d257e,_0x4a95c3){const _0x28f2a5=_0x28f2();return _0x28aa=function(_0x28aae1,_0x3e7d98){_0x28aae1=_0x28aae1-0x194;let _0x37c553=_0x28f2a5[_0x28aae1];return _0x37c553;},_0x28aa(_0x1d257e,_0x4a95c3);}import{View as _0x25add9}from'ckeditor5/src/ui.js';function _0x28f2(){const _0xb117=['fire','element','target','270012Mpgzje','set','135TTuWxV','210779GqvgUn','_items','disconnect','_errorView','detail','ck-reset_all-excluded','931050iClkxh','once','retry','add','_loadingView','22OWZVSw','setTemplate','7peQMNS','_setView','change:status','_editingView','querySelector','toLowerCase','status','5092520jkJMvi','ck-uploadcare-form','apply','cancel','uc-cloud-image-editor','41908YOVLYX','6WpMaHw','render','cdnUrl','uploading','ready','observe','nodeName','6bEftFj','clear','_addErrorViewListeners','focus','_addUploadcareImageEditorListeners','_waitForImageEditorComponent','addedNodes','div','7177184nxhYIW','4559035zCQzSy','error','addEventListener','_focusableView','getFocusableElement','length','filter','createCollection','addMany'];_0x28f2=function(){return _0xb117;};return _0x28f2();}import _0x2d5bf5 from'./uploadcareimageeditformloadingview.js';import _0x3fac18 from'./uploadcareimageeditformerrorview.js';import _0x4ec107 from'./uploadcareimageeditformeditingview.js';import _0x134729 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x134729{[_0x1ac4f4(0x1a3)];[_0x1ac4f4(0x1ac)];[_0x1ac4f4(0x1a5)];[_0x1ac4f4(0x1b2)];[_0x1ac4f4(0x196)];constructor(_0x249d3a,_0xcd2a4a,_0x49200e){const _0x4a46d5=_0x1ac4f4;super(_0x249d3a),this[_0x4a46d5(0x1a3)]=this[_0x4a46d5(0x19a)](),this[_0x4a46d5(0x1ac)]=new _0x2d5bf5(_0x249d3a),this[_0x4a46d5(0x1a5)]=new _0x3fac18(_0x249d3a),this[_0x4a46d5(0x1b2)]=new _0x4ec107(_0x249d3a,_0x49200e),this[_0x4a46d5(0x196)]=new _0x25add9(_0x249d3a),this[_0x4a46d5(0x196)][_0x4a46d5(0x1ae)](this[_0x4a46d5(0x197)]()),this[_0x4a46d5(0x1a0)](_0x4a46d5(0x1b5),_0xcd2a4a),this[_0x4a46d5(0x1ae)]({'tag':_0x4a46d5(0x1ca),'attributes':{'class':['ck',_0x4a46d5(0x1a7),_0x4a46d5(0x1b7)],'tabindex':'-1'},'children':this[_0x4a46d5(0x1a3)]}),this[_0x4a46d5(0x1b0)](),this[_0x4a46d5(0x1a9)](_0x4a46d5(0x1bd),()=>{const _0x1445c3=_0x4a46d5;this[_0x1445c3(0x1c8)](this[_0x1445c3(0x19d)],_0x2c360c=>{const _0xb2a503=_0x1445c3;this[_0xb2a503(0x1c7)](_0x2c360c);});}),this['on'](_0x4a46d5(0x1b1),()=>{const _0x1986c8=_0x4a46d5;this[_0x1986c8(0x1b0)]();}),this[_0x4a46d5(0x1c5)]();}[_0x1ac4f4(0x1c6)](){const _0x310c8a=_0x1ac4f4;this[_0x310c8a(0x19d)][_0x310c8a(0x1c6)]();}[_0x1ac4f4(0x1b0)](){const _0x28b059=_0x1ac4f4;switch(this[_0x28b059(0x1a3)][_0x28b059(0x1c4)](),this[_0x28b059(0x1b5)]){case _0x28b059(0x1bf):this[_0x28b059(0x1a3)][_0x28b059(0x1ab)](this[_0x28b059(0x1ac)]);break;case _0x28b059(0x194):this[_0x28b059(0x1a3)][_0x28b059(0x1ab)](this[_0x28b059(0x1a5)]);break;case _0x28b059(0x1c0):this[_0x28b059(0x1a3)][_0x28b059(0x19b)]([this[_0x28b059(0x1b2)],this[_0x28b059(0x196)]]);}}[_0x1ac4f4(0x1c8)](_0x59e22d,_0x4fe33b){const _0x5848f9=_0x1ac4f4,_0x4b6b0e=_0x5848f9(0x1ba),_0x511c1a=_0x59e22d[_0x5848f9(0x1b3)](_0x4b6b0e);if(_0x511c1a)return _0x4fe33b(_0x511c1a);const _0x4e0bd0=new MutationObserver(_0x500cc8=>{const _0x51391e=_0x5848f9,_0x1bddb1=_0x500cc8[_0x51391e(0x199)](_0x37bc47=>_0x37bc47[_0x51391e(0x19e)]===_0x59e22d&&_0x37bc47[_0x51391e(0x1c9)][_0x51391e(0x198)]>0x0&&_0x37bc47[_0x51391e(0x1c9)][0x0][_0x51391e(0x1c2)][_0x51391e(0x1b4)]()===_0x4b6b0e);_0x1bddb1[_0x51391e(0x198)]&&(_0x4e0bd0[_0x51391e(0x1a4)](),_0x4fe33b(_0x1bddb1[0x0][_0x51391e(0x1c9)][0x0]));});_0x4e0bd0[_0x5848f9(0x1c1)](_0x59e22d,{'childList':!0x0,'subtree':!0x0});}[_0x1ac4f4(0x1c7)](_0x3a7748){const _0x5a3064=_0x1ac4f4;_0x3a7748[_0x5a3064(0x195)](_0x5a3064(0x1b8),_0x2ec895=>{const _0x50a6c7=_0x5a3064;this[_0x50a6c7(0x19c)](_0x50a6c7(0x1b8),{'imageSrc':_0x2ec895[_0x50a6c7(0x1a6)][_0x50a6c7(0x1be)]});}),_0x3a7748[_0x5a3064(0x195)](_0x5a3064(0x1b9),()=>{const _0x586130=_0x5a3064;this[_0x586130(0x19c)](_0x586130(0x1b9));});}[_0x1ac4f4(0x1c5)](){const _0x595d57=_0x1ac4f4;this[_0x595d57(0x1a5)]['on'](_0x595d57(0x1aa),()=>{const _0x10c6f=_0x595d57;this[_0x10c6f(0x19c)](_0x10c6f(0x1aa));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x330fa9=_0x3449;(function(_0x16ffcf,_0x54a7e4){const _0x2f1dac=_0x3449,_0x1cb48b=_0x16ffcf();while(!![]){try{const _0x3a8f2d=parseInt(_0x2f1dac(0x1f5))/0x1*(-parseInt(_0x2f1dac(0x1ff))/0x2)+parseInt(_0x2f1dac(0x1fe))/0x3+-parseInt(_0x2f1dac(0x200))/0x4+-parseInt(_0x2f1dac(0x1e9))/0x5+-parseInt(_0x2f1dac(0x1fd))/0x6*(parseInt(_0x2f1dac(0x1f2))/0x7)+parseInt(_0x2f1dac(0x1f3))/0x8+parseInt(_0x2f1dac(0x1fa))/0x9;if(_0x3a8f2d===_0x54a7e4)break;else _0x1cb48b['push'](_0x1cb48b['shift']());}catch(_0x1f581a){_0x1cb48b['push'](_0x1cb48b['shift']());}}}(_0x53c4,0x1ab86));import{Command as _0xe73a27}from'ckeditor5/src/core.js';import{Dialog as _0x8dbe7b}from'ckeditor5/src/ui.js';import _0x4821e2 from'./ui/uploadcareimageeditcontroller.js';function _0x53c4(){const _0x1b2e28=['bind','execute','document','_isEditable','imageEditController','plugins','413uCYHkn','1269992xqaIRa','config','503gycAOr','isEnabled','get','set','uploadcare.allowExternalImagesEditing','3016224TcWqJk','element','imageBlock','9258sBnKmW','88083GSpIGB','666eNOywA','484864RlbLXv','unbind','imageInline','requires','selection','editor','model','getSelectedElement','170240VQYjMo','isActive','refresh'];_0x53c4=function(){return _0x1b2e28;};return _0x53c4();}function _0x3449(_0x5cdc6f,_0x3d5742){const _0x53c4e1=_0x53c4();return _0x3449=function(_0x3449a6,_0xae34b4){_0x3449a6=_0x3449a6-0x1e2;let _0x39df03=_0x53c4e1[_0x3449a6];return _0x39df03;},_0x3449(_0x5cdc6f,_0x3d5742);}import{createEditabilityChecker as _0x1fb271}from'../utils/editingutils.js';export default class J extends _0xe73a27{[_0x330fa9(0x1f0)];static get[_0x330fa9(0x1e4)](){return[_0x8dbe7b];}[_0x330fa9(0x1ef)];constructor(_0x483288){const _0x558d01=_0x330fa9;super(_0x483288),this[_0x558d01(0x1f0)]=void 0x0,this[_0x558d01(0x1ef)]=_0x1fb271(_0x483288[_0x558d01(0x1f4)][_0x558d01(0x1f7)](_0x558d01(0x1f9))||[]),this[_0x558d01(0x1f8)]({'isActive':!0x1});}[_0x330fa9(0x1eb)](){const _0x546015=_0x330fa9,_0x1c1dcd=this[_0x546015(0x1e6)][_0x546015(0x1e7)][_0x546015(0x1ee)][_0x546015(0x1e5)][_0x546015(0x1e8)]();this[_0x546015(0x1f6)]=this[_0x546015(0x1ef)](_0x1c1dcd);}[_0x330fa9(0x1ed)](){const _0x2afa81=_0x330fa9;this[_0x2afa81(0x1f0)]&&(this[_0x2afa81(0x1e2)](_0x2afa81(0x1ea)),this[_0x2afa81(0x1f0)]=void 0x0);const _0x1bb475=this[_0x2afa81(0x1e6)][_0x2afa81(0x1e7)][_0x2afa81(0x1ee)][_0x2afa81(0x1e5)][_0x2afa81(0x1e8)]();_0x1bb475&&(_0x1bb475['is'](_0x2afa81(0x1fb),_0x2afa81(0x1fc))||_0x1bb475['is'](_0x2afa81(0x1fb),_0x2afa81(0x1e3)))&&(this[_0x2afa81(0x1f0)]=new _0x4821e2(this[_0x2afa81(0x1e6)],this[_0x2afa81(0x1e6)][_0x2afa81(0x1f1)][_0x2afa81(0x1f7)](_0x8dbe7b),_0x1bb475),this[_0x2afa81(0x1ec)](_0x2afa81(0x1ea))['to'](this[_0x2afa81(0x1f0)],_0x2afa81(0x1ea)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xac556a=_0x4cc2;function _0x4036(){const _0x1352fa=['add','init','2088093PdcDjt','3215230XDwxFn','20gqWzvj','937524jTgvfB','pluginName','2whulpN','UploadcareImageEditEditing','2345568HzysBx','uploadcareImageReplace','uploadcareImageEdit','220140XYyrQA','15253ZXZrzc','isPremiumPlugin','1578HuWxao','ImageUtils','requires','isOfficialPlugin','11160846dzuiQz','commands','ImageEditing'];_0x4036=function(){return _0x1352fa;};return _0x4036();}(function(_0x3b07d1,_0x1493bf){const _0x1036fb=_0x4cc2,_0x4c0b0e=_0x3b07d1();while(!![]){try{const _0x2f00e3=-parseInt(_0x1036fb(0x18e))/0x1*(parseInt(_0x1036fb(0x18c))/0x2)+parseInt(_0x1036fb(0x189))/0x3+parseInt(_0x1036fb(0x193))/0x4*(parseInt(_0x1036fb(0x18b))/0x5)+parseInt(_0x1036fb(0x180))/0x6*(-parseInt(_0x1036fb(0x194))/0x7)+-parseInt(_0x1036fb(0x190))/0x8+parseInt(_0x1036fb(0x184))/0x9+parseInt(_0x1036fb(0x18a))/0xa;if(_0x2f00e3===_0x1493bf)break;else _0x4c0b0e['push'](_0x4c0b0e['shift']());}catch(_0x530499){_0x4c0b0e['push'](_0x4c0b0e['shift']());}}}(_0x4036,0xa48c7));import{Plugin as _0x148599}from'ckeditor5/src/core.js';import{Notification as _0x24181b}from'ckeditor5/src/ui.js';import _0x27b5ae from'./uploadcareimageeditcommand.js';import _0x5e91ba from'./uploadcareimagereplacecommand.js';import _0x547b38 from'../uploadcareediting.js';function _0x4cc2(_0x2e9adc,_0x24f817){const _0x4036d2=_0x4036();return _0x4cc2=function(_0x4cc265,_0x1476c1){_0x4cc265=_0x4cc265-0x180;let _0x180a81=_0x4036d2[_0x4cc265];return _0x180a81;},_0x4cc2(_0x2e9adc,_0x24f817);}export default class g extends _0x148599{static get[_0xac556a(0x18d)](){const _0x46ba23=_0xac556a;return _0x46ba23(0x18f);}static get[_0xac556a(0x182)](){const _0x38ad7f=_0xac556a;return[_0x547b38,_0x24181b,_0x38ad7f(0x181),_0x38ad7f(0x186)];}static get[_0xac556a(0x183)](){return!0x0;}static get[_0xac556a(0x195)](){return!0x0;}[_0xac556a(0x188)](){const _0x86f9e0=_0xac556a,{editor:_0x10f43a}=this;_0x10f43a[_0x86f9e0(0x185)][_0x86f9e0(0x187)](_0x86f9e0(0x192),new _0x27b5ae(_0x10f43a)),_0x10f43a[_0x86f9e0(0x185)][_0x86f9e0(0x187)](_0x86f9e0(0x191),new _0x5e91ba(_0x10f43a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x10a930}from'ckeditor5/src/core.js';import{ButtonView as _0x2a833a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4a1012}from'ckeditor5/src/icons.js';import{createElement as _0x5798c4}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x10a930{['_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 _0x15a312=this['editor'];_0x15a312['ui']['componentFactory']['add']('uploadcareImageEdit',_0x153fa1=>{const _0x1b4b31=_0x15a312['commands']['get']('uploadcareImageEdit'),_0xba0fa4=new _0x2a833a(_0x153fa1),t=_0x153fa1['t'];return _0xba0fa4['set']({'icon':_0x4a1012,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xba0fa4['bind']('isEnabled')['to'](_0x1b4b31),_0xba0fa4['bind']('isOn')['to'](_0x1b4b31,'isActive'),this['listenTo'](_0xba0fa4,'execute',()=>{_0x15a312['execute']('uploadcareImageEdit'),_0x15a312['editing']['view']['focus']();}),_0xba0fa4;}),this['_initConfig']();}['_initConfig'](){const _0x2c7aee=_0x5798c4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c7aee),this['listenTo'](this['editor'],'destroy',()=>{_0x2c7aee['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2f02(){const _0x5caa92=['execute','isEnabled','editor','10YTeRaA','removeAttribute','model','520754EseLxh','selection','13576IRGDMv','344234xtiHNP','srcset','710335OPDbaY','24fMWMzP','sizes','imageBlock','4pVAERq','995487IClMFo','6799419nvEBCM','element','1TxnlPI','document','change','12osHbzI','getSelectedElement','217aqmkam','refresh','3732444FEmSfM','setAttributes','imageInline'];_0x2f02=function(){return _0x5caa92;};return _0x2f02();}const _0x138467=_0x4441;(function(_0x1dab17,_0x1bb44e){const _0x1b0ae4=_0x4441,_0x23f6f4=_0x1dab17();while(!![]){try{const _0x3495ad=-parseInt(_0x1b0ae4(0x181))/0x1*(parseInt(_0x1b0ae4(0x177))/0x2)+parseInt(_0x1b0ae4(0x17e))/0x3*(parseInt(_0x1b0ae4(0x17d))/0x4)+parseInt(_0x1b0ae4(0x179))/0x5*(parseInt(_0x1b0ae4(0x184))/0x6)+parseInt(_0x1b0ae4(0x186))/0x7*(parseInt(_0x1b0ae4(0x176))/0x8)+-parseInt(_0x1b0ae4(0x188))/0x9*(-parseInt(_0x1b0ae4(0x18e))/0xa)+-parseInt(_0x1b0ae4(0x17f))/0xb+-parseInt(_0x1b0ae4(0x17a))/0xc*(-parseInt(_0x1b0ae4(0x174))/0xd);if(_0x3495ad===_0x1bb44e)break;else _0x23f6f4['push'](_0x23f6f4['shift']());}catch(_0x12459d){_0x23f6f4['push'](_0x23f6f4['shift']());}}}(_0x2f02,0x5b1a4));function _0x4441(_0x2753fa,_0x1877b7){const _0x2f0288=_0x2f02();return _0x4441=function(_0x44418c,_0x931039){_0x44418c=_0x44418c-0x173;let _0x58042e=_0x2f0288[_0x44418c];return _0x58042e;},_0x4441(_0x2753fa,_0x1877b7);}import{Command as _0x47b007}from'ckeditor5/src/core.js';export default class O extends _0x47b007{[_0x138467(0x187)](){const _0xf55979=_0x138467,_0x15b290=this[_0xf55979(0x18d)][_0xf55979(0x173)][_0xf55979(0x182)][_0xf55979(0x175)][_0xf55979(0x185)]();this[_0xf55979(0x18c)]=Boolean(_0x15b290&&(_0x15b290['is'](_0xf55979(0x180),_0xf55979(0x17c))||_0x15b290['is'](_0xf55979(0x180),_0xf55979(0x18a))));}[_0x138467(0x18b)](_0x4e3801){const _0x56caad=_0x138467,_0x38467e=this[_0x56caad(0x18d)][_0x56caad(0x173)][_0x56caad(0x182)][_0x56caad(0x175)][_0x56caad(0x185)]();this[_0x56caad(0x18d)][_0x56caad(0x173)][_0x56caad(0x183)](_0x1c397a=>{const _0xa3b84e=_0x56caad;_0x1c397a[_0xa3b84e(0x189)](_0x4e3801,_0x38467e),_0x1c397a[_0xa3b84e(0x18f)](_0xa3b84e(0x178),_0x38467e),_0x1c397a[_0xa3b84e(0x18f)](_0xa3b84e(0x17b),_0x38467e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x323967=_0x47d7;(function(_0x258f89,_0xe9a88c){var _0x34d8e7=_0x47d7,_0x1522f8=_0x258f89();while(!![]){try{var _0x1008e7=parseInt(_0x34d8e7(0x178))/0x1*(parseInt(_0x34d8e7(0x17b))/0x2)+parseInt(_0x34d8e7(0x173))/0x3+parseInt(_0x34d8e7(0x170))/0x4*(parseInt(_0x34d8e7(0x175))/0x5)+parseInt(_0x34d8e7(0x176))/0x6*(parseInt(_0x34d8e7(0x179))/0x7)+parseInt(_0x34d8e7(0x174))/0x8+parseInt(_0x34d8e7(0x16e))/0x9+-parseInt(_0x34d8e7(0x172))/0xa;if(_0x1008e7===_0xe9a88c)break;else _0x1522f8['push'](_0x1522f8['shift']());}catch(_0x5e84ce){_0x1522f8['push'](_0x1522f8['shift']());}}}(_0x1c26,0xacd87));import{Plugin as _0x293cdf}from'ckeditor5/src/core.js';function _0x1c26(){var _0x2df0da=['requires','22810410QivHqD','2232741OElAOy','8545800eeaJlG','1229325eNWccw','6dezjWy','isOfficialPlugin','729483fiLeEm','863653OlKztA','pluginName','2eKdfGR','isPremiumPlugin','700353ljJSNy','UploadcareImageEdit','4giKvsr'];_0x1c26=function(){return _0x2df0da;};return _0x1c26();}import _0x70e961 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x606db4 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x47d7(_0x16b8c8,_0x354c9d){var _0x1c2667=_0x1c26();return _0x47d7=function(_0x47d745,_0x4a1373){_0x47d745=_0x47d745-0x16e;var _0x4fabb3=_0x1c2667[_0x47d745];return _0x4fabb3;},_0x47d7(_0x16b8c8,_0x354c9d);}export default class P extends _0x293cdf{static get[_0x323967(0x17a)](){var _0x26b852=_0x323967;return _0x26b852(0x16f);}static get[_0x323967(0x171)](){return[_0x70e961,_0x606db4];}static get[_0x323967(0x177)](){return!0x0;}static get[_0x323967(0x17c)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3a29(){const _0x48f183=['destroy','isOfficialPlugin','uploadcareLicenseKeyDomainLimit','uploadcare.uploader.sourceList','config','24bqcODL','pluginName','commands','Facebook','expired','URL','_getIntegrationKey','Local','reduce','evaluationLimit','ImageInsertUI','OneDrive','uploadcareLicenseKeyExpired','_showLicenseError','shortText','usageLimit','uploadcare','_normalizeConfigSourceList','_createToolbarButton','init','_createMenuBarButtons','30eWqMPT','2811096cSMXGV','plugins','_createDropdownButtons','afterInit','uploadcareLicenseKeyUsageLimit','type','tooltip','editor','featureNotAllowed','uploadcareLicenseKeyNotAllowed','bind','isImageSelected','455lWZjka','8ByyUfN','url','104042VPiihQ','1363299bzIsFA','entries','5292644NBSkeh','_licenseKeyCheckInterval','uploadcareLicenseKeyInvalid','GDrive','uploadcareLicenseKeyValid','6369759nyYcEP','licenseKey','trialLimit','_createButton','domainLimit','map','label','execute','58638kVcWzS','isEnabled','uploadcareLicenseKeyTrialLimit','isPremiumPlugin','get','withText','GPhotos','locale','invalid','Uploadcare','UploadcareUI','3719527yryALH','uploadcareLicenseKeyEvaluationLimit','has','registerIntegration','icon','forEach','push','assetManager','upload','Insert','text','Dropbox','Replace'];_0x3a29=function(){return _0x48f183;};return _0x3a29();}const _0x359119=_0x48b7;(function(_0x5dcdae,_0x2916e9){const _0x3522a5=_0x48b7,_0x31db9b=_0x5dcdae();while(!![]){try{const _0x327e60=parseInt(_0x3522a5(0x1f6))/0x1*(-parseInt(_0x3522a5(0x21b))/0x2)+-parseInt(_0x3522a5(0x21c))/0x3+parseInt(_0x3522a5(0x21e))/0x4+parseInt(_0x3522a5(0x218))/0x5*(parseInt(_0x3522a5(0x22b))/0x6)+-parseInt(_0x3522a5(0x236))/0x7*(-parseInt(_0x3522a5(0x219))/0x8)+-parseInt(_0x3522a5(0x20c))/0x9*(parseInt(_0x3522a5(0x20b))/0xa)+parseInt(_0x3522a5(0x223))/0xb;if(_0x327e60===_0x2916e9)break;else _0x31db9b['push'](_0x31db9b['shift']());}catch(_0x490411){_0x31db9b['push'](_0x31db9b['shift']());}}}(_0x3a29,0xa6bd5));import{Plugin as _0x51e5b8}from'ckeditor5/src/core.js';import{IconDropbox as _0x4d3c37,IconFacebook as _0x57ceff,IconGoogleDrive as _0x249617,IconGooglePhotos as _0x3d80df,IconUploadcareImageUpload as _0x38c18a,IconUploadcareLink as _0x257d49,IconOneDrive as _0x11c6bd}from'ckeditor5/src/icons.js';import{ButtonView as _0x58a78b,MenuBarMenuListItemButtonView as _0x893fbc}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x9f1651}from'./uploadcareconfig.js';import{getTranslation as _0x5eefc0}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x48b7(_0x487660,_0x65e713){const _0x3a2928=_0x3a29();return _0x48b7=function(_0x48b7bd,_0x240b77){_0x48b7bd=_0x48b7bd-0x1ea;let _0x4a4006=_0x3a2928[_0x48b7bd];return _0x4a4006;},_0x48b7(_0x487660,_0x65e713);}export default class e extends _0x51e5b8{[_0x359119(0x224)];[_0x359119(0x21f)];static get[_0x359119(0x1f7)](){const _0x19b6e7=_0x359119;return _0x19b6e7(0x235);}static get[_0x359119(0x1f2)](){return!0x0;}static get[_0x359119(0x22e)](){return!0x0;}[_0x359119(0x209)](){const _0x13c4b7=_0x359119;this[_0x13c4b7(0x224)]=this[_0x13c4b7(0x213)][_0x13c4b7(0x1f5)][_0x13c4b7(0x22f)](_0x13c4b7(0x224));const _0x2a5382=this[_0x13c4b7(0x213)];this[_0x13c4b7(0x21f)]=setInterval(()=>{const _0x4a8112=_0x13c4b7;let _0x420cdf;for(const _0x798689 in _0x2a5382){const _0xceddb1=_0x798689,_0x4a7b1a=_0x2a5382[_0xceddb1];if(_0x4a8112(0x222)==_0x4a7b1a||_0x4a8112(0x220)==_0x4a7b1a||_0x4a8112(0x202)==_0x4a7b1a||_0x4a8112(0x1f3)==_0x4a7b1a||_0x4a8112(0x215)==_0x4a7b1a||_0x4a8112(0x237)==_0x4a7b1a||_0x4a8112(0x22d)==_0x4a7b1a||_0x4a8112(0x210)==_0x4a7b1a){delete _0x2a5382[_0xceddb1],_0x420cdf=_0x4a7b1a,clearInterval(this[_0x4a8112(0x21f)]),this[_0x4a8112(0x21f)]=void 0x0;break;}}_0x4a8112(0x220)==_0x420cdf&&_0x2a5382[_0x4a8112(0x203)](_0x4a8112(0x233)),_0x4a8112(0x202)==_0x420cdf&&_0x2a5382[_0x4a8112(0x203)](_0x4a8112(0x1fa)),_0x4a8112(0x1f3)==_0x420cdf&&_0x2a5382[_0x4a8112(0x203)](_0x4a8112(0x227)),_0x4a8112(0x215)==_0x420cdf&&_0x2a5382[_0x4a8112(0x203)](_0x4a8112(0x214),_0x4a8112(0x234)),_0x4a8112(0x237)==_0x420cdf&&_0x2a5382[_0x4a8112(0x203)](_0x4a8112(0x1ff)),_0x4a8112(0x22d)==_0x420cdf&&_0x2a5382[_0x4a8112(0x203)](_0x4a8112(0x225)),_0x4a8112(0x210)==_0x420cdf&&_0x2a5382[_0x4a8112(0x203)](_0x4a8112(0x205));},0x3e8);}[_0x359119(0x20f)](){const _0x3a4f44=_0x359119,{editor:_0x94c826}=this,_0x2dafde=_0x94c826[_0x3a4f44(0x1f8)][_0x3a4f44(0x22f)](_0x3a4f44(0x206));if(!_0x2dafde)return;const _0x47ef05=this[_0x3a4f44(0x207)](_0x94c826[_0x3a4f44(0x1f5)][_0x3a4f44(0x22f)](_0x3a4f44(0x1f4)))[_0x3a4f44(0x1fe)]((_0x1b9a78,_0x1d8a0b)=>{const _0x12b0b2=_0x3a4f44,_0x15c77c=this[_0x12b0b2(0x1fc)](_0x1d8a0b[_0x12b0b2(0x211)]);return _0x1b9a78[_0x15c77c]||(_0x1b9a78[_0x15c77c]=[]),_0x1b9a78[_0x15c77c][_0x12b0b2(0x1ea)](_0x1d8a0b),_0x1b9a78;},{});_0x94c826[_0x3a4f44(0x20d)][_0x3a4f44(0x238)](_0x3a4f44(0x200))&&_0x94c826[_0x3a4f44(0x1f8)][_0x3a4f44(0x22f)](_0x3a4f44(0x206))&&Object[_0x3a4f44(0x21d)](_0x47ef05)[_0x3a4f44(0x23b)](([_0x3d1609,_0xd794a8])=>{const _0x528eb7=_0x3a4f44;_0x94c826[_0x528eb7(0x20d)][_0x528eb7(0x22f)](_0x528eb7(0x200))[_0x528eb7(0x239)]({'name':_0x3d1609,'observable':()=>_0x2dafde,'buttonViewCreator':()=>this[_0x528eb7(0x208)](_0xd794a8),'formViewCreator':()=>this[_0x528eb7(0x20e)](_0xd794a8),'menuBarButtonViewCreator':()=>this[_0x528eb7(0x20a)](_0xd794a8),'override':_0x528eb7(0x1eb)!==_0x3d1609});});}[_0x359119(0x1f1)](){const _0x3b8bc0=_0x359119;super[_0x3b8bc0(0x1f1)](),this[_0x3b8bc0(0x21f)]&&clearInterval(this[_0x3b8bc0(0x21f)]);}[_0x359119(0x207)](_0x126793){const _0x58b81f=_0x359119,{locale:_0x4f117e}=this[_0x58b81f(0x213)];return _0x126793[_0x58b81f(0x228)](_0x2d09c6=>{const _0x260b08=_0x58b81f,_0x50fba6=_0x5eefc0(_0x4f117e,_0x2d09c6,_0x260b08(0x1ed));switch(_0x2d09c6){case _0x9f1651[_0x260b08(0x1fd)]:return{'icon':_0x38c18a,'type':_0x9f1651[_0x260b08(0x1fd)],..._0x50fba6};case _0x9f1651[_0x260b08(0x1fb)]:return{'icon':_0x257d49,'type':_0x9f1651[_0x260b08(0x1fb)],..._0x50fba6};case _0x9f1651[_0x260b08(0x1ef)]:return{'icon':_0x4d3c37,'type':_0x9f1651[_0x260b08(0x1ef)],..._0x50fba6};case _0x9f1651[_0x260b08(0x1f9)]:return{'icon':_0x57ceff,'type':_0x9f1651[_0x260b08(0x1f9)],..._0x50fba6};case _0x9f1651[_0x260b08(0x221)]:return{'icon':_0x249617,'type':_0x9f1651[_0x260b08(0x221)],..._0x50fba6};case _0x9f1651[_0x260b08(0x231)]:return{'icon':_0x3d80df,'type':_0x9f1651[_0x260b08(0x231)],..._0x50fba6};case _0x9f1651[_0x260b08(0x201)]:return{'icon':_0x11c6bd,'type':_0x9f1651[_0x260b08(0x201)],..._0x50fba6};}});}[_0x359119(0x1fc)](_0x1b2bca){const _0x13495b=_0x359119;switch(_0x1b2bca){case _0x9f1651[_0x13495b(0x1fd)]:return _0x13495b(0x1ec);case _0x9f1651[_0x13495b(0x1fb)]:return _0x13495b(0x21a);default:return _0x13495b(0x1eb);}}[_0x359119(0x226)](_0x229f07,_0x420b7e){const _0x59eba5=_0x359119,_0x5d0d1d=this[_0x59eba5(0x213)],_0x4cc850=new _0x229f07(_0x5d0d1d[_0x59eba5(0x232)]),_0x3ab39c=_0x5d0d1d[_0x59eba5(0x1f8)][_0x59eba5(0x22f)](_0x59eba5(0x206));return _0x4cc850[_0x59eba5(0x216)](_0x59eba5(0x22c))['to'](_0x3ab39c),_0x4cc850['on'](_0x59eba5(0x22a),()=>{const _0x2b3470=_0x59eba5;_0x3ab39c[_0x2b3470(0x22a)](_0x420b7e);}),_0x4cc850;}[_0x359119(0x208)](_0x2ca3a4){const _0x5c1a77=_0x359119,{locale:_0x2896bf}=this[_0x5c1a77(0x213)],_0x25a933=this[_0x5c1a77(0x213)][_0x5c1a77(0x20d)][_0x5c1a77(0x22f)](_0x5c1a77(0x200)),_0x1e7783=_0x2ca3a4[0x0],_0x4c1d69=this[_0x5c1a77(0x226)](_0x58a78b,_0x1e7783[_0x5c1a77(0x211)]);return _0x4c1d69[_0x5c1a77(0x23a)]=_0x1e7783[_0x5c1a77(0x23a)],_0x4c1d69[_0x5c1a77(0x216)](_0x5c1a77(0x229))['to'](_0x25a933,_0x5c1a77(0x217),_0x5885bb=>_0x5eefc0(_0x2896bf,_0x1e7783[_0x5c1a77(0x211)],_0x5885bb?_0x5c1a77(0x1f0):_0x5c1a77(0x1ed))[_0x5c1a77(0x1ee)]),_0x4c1d69[_0x5c1a77(0x212)]=!0x0,_0x4c1d69;}[_0x359119(0x20e)](_0x15b00a){const _0x555891=_0x359119,{locale:_0x2b90b2}=this[_0x555891(0x213)],_0x1100d8=this[_0x555891(0x213)][_0x555891(0x20d)][_0x555891(0x22f)](_0x555891(0x200));return _0x15b00a[_0x555891(0x228)](_0x30e809=>{const _0x258c62=_0x555891,_0x17f563=this[_0x258c62(0x226)](_0x58a78b,_0x30e809[_0x258c62(0x211)]);return _0x17f563[_0x258c62(0x230)]=!0x0,_0x17f563[_0x258c62(0x23a)]=_0x30e809[_0x258c62(0x23a)],_0x17f563[_0x258c62(0x216)](_0x258c62(0x229))['to'](_0x1100d8,_0x258c62(0x217),_0x4058a6=>_0x5eefc0(_0x2b90b2,_0x30e809[_0x258c62(0x211)],_0x4058a6?_0x258c62(0x1f0):_0x258c62(0x1ed))[_0x258c62(0x1ee)]),_0x17f563;});}[_0x359119(0x20a)](_0x486350){const _0x43bb7e=_0x359119;return _0x486350[_0x43bb7e(0x228)](_0x59e44b=>{const _0x24cb13=_0x43bb7e,_0x42c488=this[_0x24cb13(0x226)](_0x893fbc,_0x59e44b[_0x24cb13(0x211)]);return _0x42c488[_0x24cb13(0x23a)]=_0x59e44b[_0x24cb13(0x23a)],_0x42c488[_0x24cb13(0x229)]=_0x59e44b[_0x24cb13(0x204)],_0x42c488;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4eb72f}from'ckeditor5/src/core.js';import{FileRepository as _0x268961}from'ckeditor5/src/upload.js';import _0x9cfa98 from'./uploadcareediting.js';import _0x233d43 from'./utils/uploadutils.js';import{getImageUrls as _0x325bf1}from'./utils/editingutils.js';export default class p extends _0x4eb72f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x268961,_0x9cfa98];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bef4a=this['editor'];if(!!!_0x3bef4a['config']['get']('uploadcare'))return;_0x3bef4a['plugins']['get'](_0x268961)['createUploadAdapter']=_0x4d594b=>new x(_0x4d594b,_0x3bef4a),_0x3bef4a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x35c5b2,{imageElement:_0x1aa966,data:_0x56e156})=>{_0x3bef4a['model']['change'](_0x1ee021=>{_0x1ee021['setAttribute']('uploadcareImageId',_0x56e156['uploadcareImageId'],_0x1aa966);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3e0b08,_0x25c9e8){this['loader']=_0x3e0b08,this['editor']=_0x25c9e8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x153dd2=this['editor']['config']['get']('uploadcare.pubkey'),_0x181fab=await this['loader']['file'];return _0x233d43['upload']({'file':_0x181fab,'publicKey':_0x153dd2,'signal':this['controller']['signal'],'onProgress':_0x3596d4=>{_0x3596d4&&_0x3596d4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3596d4['value']);}})['then'](async _0x42fb09=>{const {imageFallbackUrl:_0x92fd72,imageSources:_0x27ccfb}=_0x325bf1(_0x42fb09['cdnUrl'],_0x42fb09['imageInfo']['width']);return{'uploadcareImageId':_0x42fb09['uuid'],'default':_0x92fd72,'sources':_0x27ccfb};})['catch'](()=>{const _0x41b8f8=t('Cannot\x20upload\x20file:')+('\x20'+_0x181fab['name']+'.');return Promise['reject'](_0x41b8f8);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5dce15}from'../uploadcareconfig.js';export function getTranslation(_0x4cc531,_0x55429f,_0x16cb8f){const t=_0x4cc531['t'],_0x5e4fb0=_0x4cc531['t'];switch(_0x55429f){case _0x5dce15['Local']:return{'text':_0x5e4fb0('Insert'===_0x16cb8f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5e4fb0('From\x20computer')};case _0x5dce15['URL']:return{'text':'Insert'===_0x16cb8f?_0x5e4fb0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5e4fb0('Via\x20URL')};case _0x5dce15['Dropbox']:return{'text':t('Insert'===_0x16cb8f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5dce15['Facebook']:return{'text':t('Insert'===_0x16cb8f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5dce15['GDrive']:return{'text':t('Insert'===_0x16cb8f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5dce15['GPhotos']:return{'text':t('Insert'===_0x16cb8f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5dce15['OneDrive']:return{'text':t('Insert'===_0x16cb8f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x55429f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1cd633=_0x2d67;(function(_0x17bdbc,_0x40aef9){var _0x4fa219=_0x2d67,_0x3bf4f1=_0x17bdbc();while(!![]){try{var _0x5c741d=-parseInt(_0x4fa219(0x1e3))/0x1*(-parseInt(_0x4fa219(0x1df))/0x2)+-parseInt(_0x4fa219(0x1e2))/0x3*(-parseInt(_0x4fa219(0x1da))/0x4)+parseInt(_0x4fa219(0x1e0))/0x5*(parseInt(_0x4fa219(0x1d5))/0x6)+parseInt(_0x4fa219(0x1d3))/0x7*(-parseInt(_0x4fa219(0x1d7))/0x8)+-parseInt(_0x4fa219(0x1d1))/0x9+-parseInt(_0x4fa219(0x1e1))/0xa+parseInt(_0x4fa219(0x1d9))/0xb;if(_0x5c741d===_0x40aef9)break;else _0x3bf4f1['push'](_0x3bf4f1['shift']());}catch(_0x40fef0){_0x3bf4f1['push'](_0x3bf4f1['shift']());}}}(_0x32ae,0x5cb4d));import{FocusTracker as _0xe860d1}from'ckeditor5/src/utils.js';function _0x2d67(_0x426bb2,_0x1fb542){var _0x32ae47=_0x32ae();return _0x2d67=function(_0x2d6756,_0x7233b3){_0x2d6756=_0x2d6756-0x1d0;var _0x2854e2=_0x32ae47[_0x2d6756];return _0x2854e2;},_0x2d67(_0x426bb2,_0x1fb542);}import{View as _0x4e77ac,FocusCycler as _0x512927}from'ckeditor5/src/ui.js';function _0x32ae(){var _0x34ebf2=['1384JLOOSw','focusCycler','2979680PvPGDl','292700IDpULS','forwardCycle','focusTracker','div','fire','34wMWDPi','30CrKOBj','4193700rkUuMh','21XsiBTh','1751FNcuXD','getFocusableElement','4541796OjLMTv','bindTemplate','5257OXbBaJ','createCollection','620790qqdxWJ','true'];_0x32ae=function(){return _0x34ebf2;};return _0x32ae();}import'../../theme/uploadcare-form.css';export default class q extends _0x4e77ac{[_0x1cd633(0x1dc)];[_0x1cd633(0x1d8)];constructor(_0x5d097d){var _0xcd45ee=_0x1cd633;super(_0x5d097d),this[_0xcd45ee(0x1dc)]=new _0xe860d1(),this[_0xcd45ee(0x1d8)]=new _0x512927({'focusables':this[_0xcd45ee(0x1d4)](),'focusTracker':this[_0xcd45ee(0x1dc)]});}[_0x1cd633(0x1d0)](){var _0x178121=_0x1cd633;return{'tag':_0x178121(0x1dd),'attributes':{'aria-hidden':_0x178121(0x1d6),'tabindex':'0'},'on':{'focus':this[_0x178121(0x1d2)]['to'](()=>{var _0xd09c30=_0x178121;this[_0xd09c30(0x1d8)][_0xd09c30(0x1de)](_0xd09c30(0x1db));})}};}}
|