@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260123.0 → 0.0.0-nightly-20260124.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 _0x25920e=_0x2141;function _0x1536(){const _0xa58882=['cleanupImage','schema','uploadcare','body','imageInline','config','2140085RDujsu','model','uc-config','for','iconHrefResolver','extend','editor','render','execute','contentLanguage','_configElement','24TvThFg','_initSchema','#uc-icon-arrow-down','data-uc-image-id','replaceImageSource','view','afterInit','imageBlock','destroy','attributeToAttribute','input[uploadcare-file-input]','isRegistered','join','_initCtx','7935130lAaACR','getSelectedElement','appendChild','682339KOQPpY','listenTo','locale','uploadcareImageId','commands','removeAttribute','_initImageProcessingIndicator','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','ctxElement','true','UploadcareEditing','isOfficialPlugin','ucContextId','204435foMORp','uploadcareImageReplace','34488WPxLnb','uploader-','closeMax','get','map','uploadcare.pubkey','_ctxElement','elementToAttribute','configElement','getAttribute','href','requires','58KUQOAP','document','editing','isPremiumPlugin','_initConversion','uploadcare.uploader','insertImage','1068qcoUvJ','99yZVlxx','uc-upload-ctx-provider','selection','remove','init','conversion','24391QGHuOK','add','_initConfig','PictureEditing','pluginName','once','fromCharCode','1107zYiORW','upcast','downcast','76852YkrSbo','querySelector'];_0x1536=function(){return _0xa58882;};return _0x1536();}(function(_0x5485e1,_0x45888c){const _0x1e1776=_0x2141,_0x2581f8=_0x5485e1();while(!![]){try{const _0xd1e7e9=parseInt(_0x1e1776(0x205))/0x1*(parseInt(_0x1e1776(0x1f7))/0x2)+parseInt(_0x1e1776(0x1ff))/0x3*(-parseInt(_0x1e1776(0x20f))/0x4)+parseInt(_0x1e1776(0x217))/0x5+parseInt(_0x1e1776(0x1cb))/0x6*(-parseInt(_0x1e1776(0x1dc))/0x7)+-parseInt(_0x1e1776(0x1eb))/0x8*(parseInt(_0x1e1776(0x20c))/0x9)+-parseInt(_0x1e1776(0x1d9))/0xa+parseInt(_0x1e1776(0x1e9))/0xb*(parseInt(_0x1e1776(0x1fe))/0xc);if(_0xd1e7e9===_0x45888c)break;else _0x2581f8['push'](_0x2581f8['shift']());}catch(_0x41158d){_0x2581f8['push'](_0x2581f8['shift']());}}}(_0x1536,0x6bd76));import{Plugin as _0x3c6390}from'ckeditor5/src/core.js';import{Dialog as _0x5672a3}from'ckeditor5/src/ui.js';import{createElement as _0x20a0a4,global as _0x2481a1,uid as _0x4fb329}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x441ade}from'./uploadcarecommand.js';function _0x2141(_0x329a7a,_0x44afd3){const _0x153600=_0x1536();return _0x2141=function(_0x2141e8,_0x3981bf){_0x2141e8=_0x2141e8-0x1c7;let _0xc35777=_0x153600[_0x2141e8];return _0xc35777;},_0x2141(_0x329a7a,_0x44afd3);}import{UploadcareUploadAdapter as _0xb199c8}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1eba8d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3c6390{[_0x25920e(0x1ca)]=null;[_0x25920e(0x1f1)]=null;static get[_0x25920e(0x209)](){const _0x1c0a7f=_0x25920e;return _0x1c0a7f(0x1e6);}static get[_0x25920e(0x1f6)](){const _0x422a45=_0x25920e;return[_0x422a45(0x208),_0xb199c8,_0x5672a3];}static get[_0x25920e(0x1e7)](){return!0x0;}static get[_0x25920e(0x1fa)](){return!0x0;}[_0x25920e(0x1e8)];get[_0x25920e(0x1f3)](){const _0x58fd94=_0x25920e;return this[_0x58fd94(0x1ca)];}get[_0x25920e(0x1e4)](){const _0x20079e=_0x25920e;return this[_0x20079e(0x1f1)];}constructor(_0x416a65){const _0x1000f0=_0x25920e;super(_0x416a65),this[_0x1000f0(0x1e8)]=_0x4fb329();}[_0x25920e(0x203)](){const _0x9a1fb0=_0x25920e,_0x426819=this[_0x9a1fb0(0x21d)];_0x426819[_0x9a1fb0(0x1e0)][_0x9a1fb0(0x206)](_0x9a1fb0(0x213),new _0x441ade(_0x426819));}[_0x25920e(0x1d1)](){const _0xb46ef=_0x25920e;this[_0xb46ef(0x1cc)](),this[_0xb46ef(0x1fb)](),this[_0xb46ef(0x207)](),this[_0xb46ef(0x1d8)](),this[_0xb46ef(0x1e2)](),this[_0xb46ef(0x1dd)](this[_0xb46ef(0x21d)],_0xb46ef(0x1d3),()=>{const _0x3ba208=_0xb46ef;this[_0x3ba208(0x1ca)]&&(this[_0x3ba208(0x1ca)][_0x3ba208(0x202)](),this[_0x3ba208(0x1ca)]=null),this[_0x3ba208(0x1f1)]&&(this[_0x3ba208(0x1f1)][_0x3ba208(0x202)](),this[_0x3ba208(0x1f1)]=null);const _0x45783d=_0x2481a1[_0x3ba208(0x1f8)][_0x3ba208(0x210)](_0x3ba208(0x1d5));_0x45783d&&_0x45783d[_0x3ba208(0x202)]();}),async function(_0x19ec68){const _0x3915cc=_0x2f2500([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3fd166=0x535f8c3a,_0x510c7b=0x5358f39a^_0x3fd166,_0x10c8b8=window[_0x2f2500([0x44,0x61,0x74,0x65])][_0x2f2500([0x6e,0x6f,0x77])](),_0x9e0134=_0x19ec68[_0x2f2500([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f3f93=new window[(_0x2f2500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d031a=>{_0x9e0134[_0x2f2500([0x6f,0x6e,0x63,0x65])](_0x2f2500([0x72,0x65,0x61,0x64,0x79]),_0x5d031a);}),_0x2e84f4={[_0x2f2500([0x6b,0x74,0x79])]:_0x2f2500([0x45,0x43]),[_0x2f2500([0x75,0x73,0x65])]:_0x2f2500([0x73,0x69,0x67]),[_0x2f2500([0x63,0x72,0x76])]:_0x2f2500([0x50,0x2d,0x32,0x35,0x36]),[_0x2f2500([0x78])]:_0x2f2500([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]),[_0x2f2500([0x79])]:_0x2f2500([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]),[_0x2f2500([0x61,0x6c,0x67])]:_0x2f2500([0x45,0x53,0x32,0x35,0x36])},_0x346a3c=_0x9e0134[_0x2f2500([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f2500([0x67,0x65,0x74])](_0x2f2500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ccb7c(){let _0x364d3f,_0x413916=null,_0x131a38=null;try{if(_0x346a3c==_0x2f2500([0x47,0x50,0x4c]))return _0x2f2500([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x364d3f=_0x32c256(),!_0x364d3f)return _0x2f2500([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x364d3f[_0x2f2500([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x131a38=_0x29370d(_0x364d3f[_0x2f2500([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x364d3f[_0x2f2500([0x6a,0x74,0x69])])),await _0x403477()?_0x236419()?_0x32d4b1()?_0x2f2500([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22123f()?(_0x364d3f[_0x2f2500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f2500([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x413916=_0x2e609a(_0x2f2500([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa5fcc0()):_0x2f2500([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f2500([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f2500([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f2500([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32d4b1(){const _0x512244=[_0x2f2500([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f2500([0x74,0x72,0x69,0x61,0x6c])][_0x2f2500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x364d3f[_0x2f2500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10c8b8/0x3e8:0xe10*_0x510c7b;return _0x364d3f[_0x2f2500([0x65,0x78,0x70])]<_0x512244;}function _0x236419(){const _0x2fd0c7=_0x364d3f[_0x2f2500([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2fd0c7&&(!!_0x2fd0c7[_0x2f2500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2500([0x2a]))||!!_0x2fd0c7[_0x2f2500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2500([0x55,0x50,0x4c,0x43])));}function _0x22123f(){const _0x56d960=_0x2141,_0x24996c=_0x364d3f[_0x2f2500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24996c||0x0==_0x24996c[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e73b3}=new URL(window[_0x2f2500([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x56d960(0x1f5)]);if(_0x24996c[_0x2f2500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e73b3))return!0x0;const _0x131e09=_0x1e73b3[_0x2f2500([0x73,0x70,0x6c,0x69,0x74])](_0x2f2500([0x2e]));return _0x24996c[_0x2f2500([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f19ba=>_0x1f19ba[_0x2f2500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2500([0x2a])))[_0x2f2500([0x6d,0x61,0x70])](_0x305be8=>_0x305be8[_0x2f2500([0x73,0x70,0x6c,0x69,0x74])](_0x2f2500([0x2e])))[_0x2f2500([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xabd937=>_0xabd937[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x131e09[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f2500([0x6d,0x61,0x70])](_0x20acfa=>Array(_0x131e09[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20acfa[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f2500([0x66,0x69,0x6c,0x6c])](_0x20acfa[0x0]===_0x2f2500([0x2a])?_0x2f2500([0x2a]):'')[_0x2f2500([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20acfa))[_0x2f2500([0x73,0x6f,0x6d,0x65])](_0x44cda5=>_0x131e09[_0x2f2500([0x65,0x76,0x65,0x72,0x79])]((_0x2dac90,_0x109c02)=>_0x44cda5[_0x109c02]===_0x2dac90||_0x44cda5[_0x109c02]===_0x2f2500([0x2a])));}function _0xa5fcc0(){return _0x413916&&_0x131a38?new window[(_0x2f2500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14883c,_0x4cef10)=>{_0x413916[_0x2f2500([0x74,0x68,0x65,0x6e])](_0x14883c,_0x4cef10),_0x131a38[_0x2f2500([0x74,0x68,0x65,0x6e])](_0x3e6630=>{_0x3e6630!=_0x2f2500([0x56,0x61,0x6c,0x69,0x64])&&_0x14883c(_0x3e6630);},_0x4cef10);}):_0x413916||_0x131a38||_0x2f2500([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29370d(_0x587ce2,_0xb61f30){return new window[(_0x2f2500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a2183=>{if(_0x224190())return _0x4a2183(_0x2f2500([0x56,0x61,0x6c,0x69,0x64]));_0x5d01a5(),_0x9e0134[_0x2f2500([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f2500([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a532d=!0x1;const _0xcba846=_0x4fb329();function _0x2d83aa(_0x247d12){return!!_0x247d12&&(typeof _0x247d12===_0x2f2500([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x247d12===_0x2f2500([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x247d12[_0x2f2500([0x74,0x68,0x65,0x6e])]===_0x2f2500([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x247d12[_0x2f2500([0x63,0x61,0x74,0x63,0x68])]===_0x2f2500([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a4dc3(_0x52a271){_0xf7b91(_0x52a271)[_0x2f2500([0x74,0x68,0x65,0x6e])](_0x220a32=>{if(!_0x220a32||_0x220a32[_0x2f2500([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f2500([0x6f,0x6b]))return _0x2f2500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2609f3(_0x2eada0(_0xcba846+_0xb61f30))!=_0x220a32[_0x2f2500([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f2500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f2500([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f2500([0x74,0x68,0x65,0x6e])](_0x3f3166=>(_0x1ca4be(),_0x3f3166),()=>{const _0x373599=_0x5f02cf();return null==_0x373599?(_0x1ca4be(),_0x2f2500([0x56,0x61,0x6c,0x69,0x64])):_0x2f2500(_0x10c8b8-_0x373599>(0x7753083a^_0x3fd166)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f2500([0x74,0x68,0x65,0x6e])](_0x4a2183)[_0x2f2500([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a2183(_0x2f2500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x260118=0x536962ba^_0x3fd166;function _0x1ca4be(){const _0x535588=_0x2f2500([0x6c,0x6c,0x63,0x74,0x2d])+_0x2609f3(_0x2eada0(_0x587ce2)),_0x296d31=_0x4c3778(_0x2609f3(window[_0x2f2500([0x4d,0x61,0x74,0x68])][_0x2f2500([0x63,0x65,0x69,0x6c])](_0x10c8b8/_0x260118)));window[_0x2f2500([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f2500([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x535588,_0x296d31);}function _0x5f02cf(){const _0x17f074=_0x2f2500([0x6c,0x6c,0x63,0x74,0x2d])+_0x2609f3(_0x2eada0(_0x587ce2)),_0xf88354=window[_0x2f2500([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f2500([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17f074);return _0xf88354?window[_0x2f2500([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c3778(_0xf88354),0x10)*_0x260118:null;}function _0xf7b91(_0x82bde4){return new window[(_0x2f2500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a70f2,_0x483d5b)=>{_0x82bde4[_0x2f2500([0x74,0x68,0x65,0x6e])](_0x4a70f2,_0x483d5b),window[_0x2f2500([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x483d5b,0x535e58fa^_0x3fd166);});}}_0x9e0134[_0x2f2500([0x6f,0x6e])](_0x2f2500([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35208b,_0x5c48f5)=>{if(_0x5c48f5[0x0]!=_0x587ce2)return _0x4a2183(_0x2f2500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c48f5[0x1]={..._0x5c48f5[0x1],[_0x2f2500([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xcba846};},{[_0x2f2500([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f2500([0x68,0x69,0x67,0x68])}),_0x9e0134[_0x2f2500([0x6f,0x6e])](_0x2f2500([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5536fd=>{_0x2d83aa(_0x5536fd[_0x2f2500([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a532d=!0x0,_0x3a4dc3(_0x5536fd[_0x2f2500([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f2500([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f2500([0x6c,0x6f,0x77])}),_0x4f3f93[_0x2f2500([0x74,0x68,0x65,0x6e])](()=>{_0x5a532d||_0x4a2183(_0x2f2500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x224190(){return _0x9e0134[_0x2f2500([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f2500([0x76,0x69,0x65,0x77])][_0x2f2500([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f2500([0x61,0x75,0x74,0x6f]);}function _0x5d01a5(){_0x9e0134[_0x2f2500([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f2500([0x76,0x69,0x65,0x77])][_0x2f2500([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f2500([0x61,0x75,0x74,0x6f]);}}function _0x2e609a(_0x46fad7){const _0x49504b=[new window[(_0x2f2500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa473db=>setTimeout(_0xa473db,0x5356b2f6^_0x3fd166)),_0x4f3f93[_0x2f2500([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f2500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1af9f5=>{let _0x4858ac=0x0;_0x9e0134[_0x2f2500([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f2500([0x6f,0x6e])](_0x2f2500([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x272834,_0x4b893f)=>{_0x4b893f[0x0][_0x2f2500([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4858ac++,_0x4858ac==(0x535f89d2^_0x3fd166)&&(_0x1af9f5(),_0x272834[_0x2f2500([0x6f,0x66,0x66])]());});}))];return window[_0x2f2500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f2500([0x72,0x61,0x63,0x65])](_0x49504b)[_0x2f2500([0x74,0x68,0x65,0x6e])](()=>_0x46fad7);}async function _0x27436e(){await _0x4f3f93,_0x9e0134[_0x2f2500([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f2500([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ea077,_0x9e0134[_0x2f2500([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f2500([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ea077,_0x9e0134[_0x2f2500([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f2500([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x320133(_0x3b5a6f){const _0x5a2da6=_0x156d54();_0x9e0134[_0x5a2da6]=_0x2f2500([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b5a6f,_0x3b5a6f!=_0x2f2500([0x56,0x61,0x6c,0x69,0x64])&&_0x27436e();}function _0x156d54(){const _0x3d3d58=window[_0x2f2500([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f2500([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f2500([0x6e,0x6f,0x77])]())[_0x2f2500([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f2500([0x2e]),'');let _0xa6aed6=_0x2f2500([0x68]);for(let _0x469811=0x0;_0x469811<_0x3d3d58[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x469811+=0x2){let _0xc22b88=window[_0x2f2500([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3d58[_0x2f2500([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469811,_0x469811+0x2));_0xc22b88>=_0x3915cc[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc22b88-=_0x3915cc[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa6aed6+=_0x3915cc[_0xc22b88];}return _0xa6aed6;}function _0x32c256(){const _0x611eed=_0x346a3c[_0x2f2500([0x73,0x70,0x6c,0x69,0x74])](_0x2f2500([0x2e]));if(0x3!=_0x611eed[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x774e76(_0x611eed[0x1]);function _0x774e76(_0x2bc85a){const _0x26fc48=_0x53ebd1(_0x2bc85a);return _0x26fc48&&_0x5975ed()?_0x26fc48:null;function _0x5975ed(){const _0x444b85=_0x26fc48[_0x2f2500([0x6a,0x74,0x69])],_0x2d51a3=window[_0x2f2500([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x444b85[_0x2f2500([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x444b85[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cd549={..._0x26fc48,[_0x2f2500([0x6a,0x74,0x69])]:_0x444b85[_0x2f2500([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x444b85[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cd549[_0x2f2500([0x76,0x63])],_0x2eada0(_0x5cd549)==_0x2d51a3;}}}async function _0x403477(){let _0xad75b8=!0x0;try{const _0x564b90=_0x346a3c[_0x2f2500([0x73,0x70,0x6c,0x69,0x74])](_0x2f2500([0x2e])),[_0xe4b347,_0x10e4ce,_0xb48e9d]=_0x564b90;return _0x15c834(_0xe4b347),await _0x19f99d(_0xe4b347,_0x10e4ce,_0xb48e9d),_0xad75b8;}catch{return!0x1;}function _0x15c834(_0x33a233){const _0xd8c852=_0x53ebd1(_0x33a233);_0xd8c852&&_0xd8c852[_0x2f2500([0x61,0x6c,0x67])]==_0x2f2500([0x45,0x53,0x32,0x35,0x36])||(_0xad75b8=!0x1);}async function _0x19f99d(_0x4f9895,_0x1958e3,_0x3ee4e7){const _0x3c6717=window[_0x2f2500([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f2500([0x66,0x72,0x6f,0x6d])](_0x5a869b(_0x3ee4e7),_0x6f184b=>_0x6f184b[_0x2f2500([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7a67d8=new window[(_0x2f2500([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f2500([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f9895+_0x2f2500([0x2e])+_0x1958e3),_0x1a3f0e=window[_0x2f2500([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f2500([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a3f0e)return;const _0x1d42bd=await _0x1a3f0e[_0x2f2500([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f2500([0x6a,0x77,0x6b]),_0x2e84f4,{[_0x2f2500([0x6e,0x61,0x6d,0x65])]:_0x2f2500([0x45,0x43,0x44,0x53,0x41]),[_0x2f2500([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f2500([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f2500([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a3f0e[_0x2f2500([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f2500([0x6e,0x61,0x6d,0x65])]:_0x2f2500([0x45,0x43,0x44,0x53,0x41]),[_0x2f2500([0x68,0x61,0x73,0x68])]:{[_0x2f2500([0x6e,0x61,0x6d,0x65])]:_0x2f2500([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d42bd,_0x3c6717,_0x7a67d8)||(_0xad75b8=!0x1);}}function _0x53ebd1(_0x2e0898){return _0x2e0898[_0x2f2500([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f2500([0x65,0x79]))?JSON[_0x2f2500([0x70,0x61,0x72,0x73,0x65])](_0x5a869b(_0x2e0898)):null;}function _0x5a869b(_0x90aa1){return window[_0x2f2500([0x61,0x74,0x6f,0x62])](_0x90aa1[_0x2f2500([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f2500([0x2b]))[_0x2f2500([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f2500([0x2f])));}function _0x2eada0(_0x5fb50){let _0x5d3b69=0x1505;function _0x1ed1ba(_0x1868e1){for(let _0x4d0136=0x0;_0x4d0136<_0x1868e1[_0x2f2500([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d0136++){const _0x2c7dde=_0x1868e1[_0x2f2500([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d0136);_0x5d3b69=(_0x5d3b69<<0x5)+_0x5d3b69+_0x2c7dde,_0x5d3b69&=_0x5d3b69;}}function _0x22ba2b(_0x16f6c3){Array[_0x2f2500([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16f6c3)?_0x16f6c3[_0x2f2500([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22ba2b):_0x16f6c3&&typeof _0x16f6c3==_0x2f2500([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f2500([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16f6c3)[_0x2f2500([0x73,0x6f,0x72,0x74])]()[_0x2f2500([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e3ec2,_0xd9ac5f])=>{_0x1ed1ba(_0x3e3ec2),_0x22ba2b(_0xd9ac5f);}):_0x1ed1ba(window[_0x2f2500([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16f6c3));}return _0x22ba2b(_0x5fb50),_0x5d3b69>>>0x0;}function _0x2609f3(_0x4fefe0){return _0x4fefe0[_0x2f2500([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f2500([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f2500([0x30]));}function _0x4c3778(_0xa6c1dc){return _0xa6c1dc[_0x2f2500([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f2500([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f2500([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ea077(){}function _0x2f2500(_0x3ca9cf){const _0x232d2b=_0x2141;return _0x3ca9cf[_0x232d2b(0x1ef)](_0x523604=>String[_0x232d2b(0x20b)](_0x523604))[_0x232d2b(0x1d7)]('');}_0x320133(await _0x5ccb7c());}(this);}[_0x25920e(0x1cc)](){const _0x3ce9dd=_0x25920e,_0x50d48e=this[_0x3ce9dd(0x21d)][_0x3ce9dd(0x218)][_0x3ce9dd(0x212)];_0x50d48e[_0x3ce9dd(0x1d6)](_0x3ce9dd(0x1d2))&&_0x50d48e[_0x3ce9dd(0x21c)](_0x3ce9dd(0x1d2),{'allowAttributes':[_0x3ce9dd(0x1df)]}),_0x50d48e[_0x3ce9dd(0x1d6)](_0x3ce9dd(0x215))&&_0x50d48e[_0x3ce9dd(0x21c)](_0x3ce9dd(0x215),{'allowAttributes':[_0x3ce9dd(0x1df)]});}[_0x25920e(0x1fb)](){const _0x35f108=_0x25920e,_0x554368=this[_0x35f108(0x21d)];_0x554368[_0x35f108(0x204)][_0x35f108(0x21a)](_0x35f108(0x20e))[_0x35f108(0x1d4)]({'model':_0x35f108(0x1df),'view':_0x35f108(0x1ce)}),_0x554368[_0x35f108(0x204)][_0x35f108(0x21a)](_0x35f108(0x20d))[_0x35f108(0x1f2)]({'model':{'key':_0x35f108(0x1df),'value':_0x569daf=>_0x569daf[_0x35f108(0x1f4)](_0x35f108(0x1ce))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1763f3=_0x554368[_0x35f108(0x1e0)][_0x35f108(0x1ee)](_0x35f108(0x1cf));_0x1763f3&&this[_0x35f108(0x1dd)](_0x1763f3,_0x35f108(0x211),(_0x4c3cf3,[_0x24e97d,_0x504bf2])=>{const _0x5b554c=_0x35f108;_0x24e97d[_0x5b554c(0x1e1)](_0x5b554c(0x1df),_0x504bf2);});}[_0x25920e(0x207)](){const _0x7be22f=_0x25920e,_0x5ded84=this[_0x7be22f(0x21d)][_0x7be22f(0x216)][_0x7be22f(0x1ee)](_0x7be22f(0x1fc))||{},_0x162167=this[_0x7be22f(0x21d)][_0x7be22f(0x216)][_0x7be22f(0x1ee)](_0x7be22f(0x1f0))||'';this[_0x7be22f(0x1ca)]=_0x20a0a4(_0x2481a1[_0x7be22f(0x1f8)],_0x7be22f(0x219),{..._0x5ded84,'pubkey':_0x162167,'ctx-name':_0x7be22f(0x1ec)+this[_0x7be22f(0x1e8)],'sourceList':'','imgOnly':_0x7be22f(0x1e5),'removeCopyright':_0x7be22f(0x1e5),'localeName':this[_0x7be22f(0x21d)][_0x7be22f(0x1de)][_0x7be22f(0x1c9)],'externalSourcesEmbedCss':_0x7be22f(0x1e3)}),this[_0x7be22f(0x1ca)][_0x7be22f(0x21b)]=_0x6bbd2=>{const _0x3a8b18=_0x7be22f;if(_0x3a8b18(0x1ed)==_0x6bbd2)return _0x3a8b18(0x1cd);},_0x2481a1[_0x7be22f(0x1f8)][_0x7be22f(0x214)][_0x7be22f(0x1db)](this[_0x7be22f(0x1ca)]);}[_0x25920e(0x1d8)](){const _0x182868=_0x25920e;this[_0x182868(0x1f1)]=_0x20a0a4(_0x2481a1[_0x182868(0x1f8)],_0x182868(0x200),{'ctx-name':_0x182868(0x1ec)+this[_0x182868(0x1e8)]}),_0x2481a1[_0x182868(0x1f8)][_0x182868(0x214)][_0x182868(0x1db)](this[_0x182868(0x1f1)]);}[_0x25920e(0x1e2)](){const _0xcef270=_0x25920e,_0x287302=this[_0xcef270(0x21d)][_0xcef270(0x1e0)][_0xcef270(0x1ee)](_0xcef270(0x1fd));_0x287302&&this[_0xcef270(0x1dd)](_0x287302,_0xcef270(0x1c8),()=>{const _0x5675a4=_0xcef270,_0x4973b1=this[_0x5675a4(0x21d)][_0x5675a4(0x218)][_0x5675a4(0x1f8)][_0x5675a4(0x201)][_0x5675a4(0x1da)]();_0x4973b1&&_0x4973b1[_0x5675a4(0x1f4)](_0x5675a4(0x1df))&&this[_0x5675a4(0x21d)][_0x5675a4(0x1f9)][_0x5675a4(0x1d0)][_0x5675a4(0x20a)](_0x5675a4(0x1c7),()=>{const _0x33cb96=_0x5675a4;_0x1eba8d(this[_0x33cb96(0x21d)],_0x4973b1);});});const _0x1770e1=this[_0xcef270(0x21d)][_0xcef270(0x1e0)][_0xcef270(0x1ee)](_0xcef270(0x1ea));_0x1770e1&&this[_0xcef270(0x1dd)](_0x1770e1,_0xcef270(0x1c8),()=>{const _0x376f57=_0xcef270,_0x3819d0=this[_0x376f57(0x21d)][_0x376f57(0x218)][_0x376f57(0x1f8)][_0x376f57(0x201)][_0x376f57(0x1da)]();_0x3819d0&&_0x3819d0[_0x376f57(0x1f4)](_0x376f57(0x1df))&&this[_0x376f57(0x21d)][_0x376f57(0x1f9)][_0x376f57(0x1d0)][_0x376f57(0x20a)](_0x376f57(0x1c7),()=>{const _0x488583=_0x376f57;_0x1eba8d(this[_0x488583(0x21d)],_0x3819d0);});});}}
|
|
23
|
+
function _0x2078(_0x4aaee1,_0x36c503){const _0x553653=_0x5536();return _0x2078=function(_0x207825,_0x8a4003){_0x207825=_0x207825-0x12f;let _0x3de4af=_0x553653[_0x207825];return _0x3de4af;},_0x2078(_0x4aaee1,_0x36c503);}const _0x324f42=_0x2078;(function(_0x48897,_0x106753){const _0x46b480=_0x2078,_0x154190=_0x48897();while(!![]){try{const _0x28ccce=parseInt(_0x46b480(0x153))/0x1+-parseInt(_0x46b480(0x172))/0x2+parseInt(_0x46b480(0x166))/0x3+-parseInt(_0x46b480(0x137))/0x4+-parseInt(_0x46b480(0x15c))/0x5*(-parseInt(_0x46b480(0x162))/0x6)+parseInt(_0x46b480(0x13b))/0x7+-parseInt(_0x46b480(0x12f))/0x8;if(_0x28ccce===_0x106753)break;else _0x154190['push'](_0x154190['shift']());}catch(_0x2e1f53){_0x154190['push'](_0x154190['shift']());}}}(_0x5536,0x41b01));import{Plugin as _0x8f194b}from'ckeditor5/src/core.js';import{Dialog as _0x511e94}from'ckeditor5/src/ui.js';import{createElement as _0x3b161b,global as _0x2b799c,uid as _0x15a5e9}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4231d6}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x484204}from'./uploadcareuploadadapter.js';function _0x5536(){const _0x53bdfc=['\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','listenTo','_initSchema','UploadcareEditing','uploadcare.uploader','join','uc-upload-ctx-provider','map','destroy','uploadcare','removeAttribute','ctxElement','schema','_initConversion','configElement','4477584nSDTOa','fromCharCode','closeMax','_ctxElement','imageInline','locale','contentLanguage','for','1183768jIjxMd','remove','_configElement','editor','2857302YPNxTZ','isOfficialPlugin','getSelectedElement','cleanupImage','appendChild','uploader-','afterInit','config','insertImage','uploadcare.pubkey','view','model','commands','#uc-icon-arrow-down','attributeToAttribute','_initCtx','ucContextId','get','_initImageProcessingIndicator','pluginName','data-uc-image-id','upcast','iconHrefResolver','conversion','188488wNYirn','isPremiumPlugin','init','getAttribute','uc-config','requires','extend','render','imageBlock','50115UNPqKC','replaceImageSource','_initConfig','input[uploadcare-file-input]','execute','selection','12kMGgoF','querySelector','PictureEditing','editing','1602342fRzgFu','once','document','isRegistered','uploadcareImageReplace','uploadcareImageId','true','elementToAttribute','add','downcast','href','body','52274UDLjuf'];_0x5536=function(){return _0x53bdfc;};return _0x5536();}import{showImageProcessingIndicator as _0x6312f9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x8f194b{[_0x324f42(0x139)]=null;[_0x324f42(0x132)]=null;static get[_0x324f42(0x14e)](){const _0x1388d8=_0x324f42;return _0x1388d8(0x176);}static get[_0x324f42(0x158)](){const _0x4d2736=_0x324f42;return[_0x4d2736(0x164),_0x484204,_0x511e94];}static get[_0x324f42(0x13c)](){return!0x0;}static get[_0x324f42(0x154)](){return!0x0;}[_0x324f42(0x14b)];get[_0x324f42(0x181)](){const _0x3220e5=_0x324f42;return this[_0x3220e5(0x139)];}get[_0x324f42(0x17e)](){const _0xdf29dd=_0x324f42;return this[_0xdf29dd(0x132)];}constructor(_0x592624){const _0xc27b91=_0x324f42;super(_0x592624),this[_0xc27b91(0x14b)]=_0x15a5e9();}[_0x324f42(0x155)](){const _0x2525ac=_0x324f42,_0x5a3a18=this[_0x2525ac(0x13a)];_0x5a3a18[_0x2525ac(0x147)][_0x2525ac(0x16e)](_0x2525ac(0x17c),new _0x4231d6(_0x5a3a18));}[_0x324f42(0x141)](){const _0x2d1b3a=_0x324f42;this[_0x2d1b3a(0x175)](),this[_0x2d1b3a(0x180)](),this[_0x2d1b3a(0x15e)](),this[_0x2d1b3a(0x14a)](),this[_0x2d1b3a(0x14d)](),this[_0x2d1b3a(0x174)](this[_0x2d1b3a(0x13a)],_0x2d1b3a(0x17b),()=>{const _0x4f8ba2=_0x2d1b3a;this[_0x4f8ba2(0x139)]&&(this[_0x4f8ba2(0x139)][_0x4f8ba2(0x138)](),this[_0x4f8ba2(0x139)]=null),this[_0x4f8ba2(0x132)]&&(this[_0x4f8ba2(0x132)][_0x4f8ba2(0x138)](),this[_0x4f8ba2(0x132)]=null);const _0xa5f218=_0x2b799c[_0x4f8ba2(0x168)][_0x4f8ba2(0x163)](_0x4f8ba2(0x15f));_0xa5f218&&_0xa5f218[_0x4f8ba2(0x138)]();}),async function(_0x15d194){const _0x4e7bf8=_0x23d65b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1ce12b=0x535f8c3a,_0x26b44e=0x5358f382^_0x1ce12b,_0x7a407f=window[_0x23d65b([0x44,0x61,0x74,0x65])][_0x23d65b([0x6e,0x6f,0x77])](),_0x8f8bc3=_0x15d194[_0x23d65b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18947e=new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51bfd8=>{_0x8f8bc3[_0x23d65b([0x6f,0x6e,0x63,0x65])](_0x23d65b([0x72,0x65,0x61,0x64,0x79]),_0x51bfd8);}),_0x536ffd={[_0x23d65b([0x6b,0x74,0x79])]:_0x23d65b([0x45,0x43]),[_0x23d65b([0x75,0x73,0x65])]:_0x23d65b([0x73,0x69,0x67]),[_0x23d65b([0x63,0x72,0x76])]:_0x23d65b([0x50,0x2d,0x32,0x35,0x36]),[_0x23d65b([0x78])]:_0x23d65b([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]),[_0x23d65b([0x79])]:_0x23d65b([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]),[_0x23d65b([0x61,0x6c,0x67])]:_0x23d65b([0x45,0x53,0x32,0x35,0x36])},_0x11ad5f=_0x8f8bc3[_0x23d65b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23d65b([0x67,0x65,0x74])](_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x374a9b(){let _0x29355a,_0x4fc087=null,_0x576360=null;try{if(_0x11ad5f==_0x23d65b([0x47,0x50,0x4c]))return _0x23d65b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29355a=_0x406ae6(),!_0x29355a)return _0x23d65b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29355a[_0x23d65b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x576360=_0x49c079(_0x29355a[_0x23d65b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29355a[_0x23d65b([0x6a,0x74,0x69])])),await _0xcde533()?_0x7c70cf()?_0x140d89()?_0x23d65b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x327116()?(_0x29355a[_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23d65b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fc087=_0x29f86f(_0x23d65b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48f107()):_0x23d65b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23d65b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23d65b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23d65b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x140d89(){const _0x4b1043=[_0x23d65b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23d65b([0x74,0x72,0x69,0x61,0x6c])][_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29355a[_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7a407f/0x3e8:0xe10*_0x26b44e;return _0x29355a[_0x23d65b([0x65,0x78,0x70])]<_0x4b1043;}function _0x7c70cf(){const _0x473338=_0x29355a[_0x23d65b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x473338&&(!!_0x473338[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d65b([0x2a]))||!!_0x473338[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d65b([0x55,0x50,0x4c,0x43])));}function _0x327116(){const _0x31aec8=_0x2078,_0x2c6ec7=_0x29355a[_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c6ec7||0x0==_0x2c6ec7[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b9ba8}=new URL(window[_0x23d65b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31aec8(0x170)]);if(_0x2c6ec7[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9ba8))return!0x0;const _0x39cc8f=_0x2b9ba8[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e]));return _0x2c6ec7[_0x23d65b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x89825b=>_0x89825b[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d65b([0x2a])))[_0x23d65b([0x6d,0x61,0x70])](_0x53d15e=>_0x53d15e[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e])))[_0x23d65b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28808f=>_0x28808f[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x39cc8f[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23d65b([0x6d,0x61,0x70])](_0x47597a=>Array(_0x39cc8f[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47597a[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23d65b([0x66,0x69,0x6c,0x6c])](_0x47597a[0x0]===_0x23d65b([0x2a])?_0x23d65b([0x2a]):'')[_0x23d65b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47597a))[_0x23d65b([0x73,0x6f,0x6d,0x65])](_0x12fc7d=>_0x39cc8f[_0x23d65b([0x65,0x76,0x65,0x72,0x79])]((_0x4b9344,_0x1fc334)=>_0x12fc7d[_0x1fc334]===_0x4b9344||_0x12fc7d[_0x1fc334]===_0x23d65b([0x2a])));}function _0x48f107(){return _0x4fc087&&_0x576360?new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c78e3,_0x322ef2)=>{_0x4fc087[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x5c78e3,_0x322ef2),_0x576360[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x26d5b8=>{_0x26d5b8!=_0x23d65b([0x56,0x61,0x6c,0x69,0x64])&&_0x5c78e3(_0x26d5b8);},_0x322ef2);}):_0x4fc087||_0x576360||_0x23d65b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49c079(_0x3f659b,_0x5a7310){return new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x380043=>{if(_0x31ffd8())return _0x380043(_0x23d65b([0x56,0x61,0x6c,0x69,0x64]));_0x2c515f(),_0x8f8bc3[_0x23d65b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23d65b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35364f=!0x1;const _0x44d73d=_0x15a5e9();function _0x1c7df3(_0x12f260){return!!_0x12f260&&(typeof _0x12f260===_0x23d65b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12f260===_0x23d65b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12f260[_0x23d65b([0x74,0x68,0x65,0x6e])]===_0x23d65b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12f260[_0x23d65b([0x63,0x61,0x74,0x63,0x68])]===_0x23d65b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdc6dc1(_0x1fe4df){_0x92e82d(_0x1fe4df)[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x2ec2f1=>{if(!_0x2ec2f1||_0x2ec2f1[_0x23d65b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23d65b([0x6f,0x6b]))return _0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6c5e81(_0x5af770(_0x44d73d+_0x5a7310))!=_0x2ec2f1[_0x23d65b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23d65b([0x56,0x61,0x6c,0x69,0x64]);})[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x4a434f=>(_0x40b147(),_0x4a434f),()=>{const _0x115064=_0x7a4b6f();return null==_0x115064?(_0x40b147(),_0x23d65b([0x56,0x61,0x6c,0x69,0x64])):_0x23d65b(_0x7a407f-_0x115064>(0x7753083a^_0x1ce12b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x380043)[_0x23d65b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x380043(_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38f00b=0x536962ba^_0x1ce12b;function _0x40b147(){const _0x5ea9e5=_0x23d65b([0x6c,0x6c,0x63,0x74,0x2d])+_0x6c5e81(_0x5af770(_0x3f659b)),_0x3e0305=_0x30dec9(_0x6c5e81(window[_0x23d65b([0x4d,0x61,0x74,0x68])][_0x23d65b([0x63,0x65,0x69,0x6c])](_0x7a407f/_0x38f00b)));window[_0x23d65b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23d65b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ea9e5,_0x3e0305);}function _0x7a4b6f(){const _0x5b2bc7=_0x23d65b([0x6c,0x6c,0x63,0x74,0x2d])+_0x6c5e81(_0x5af770(_0x3f659b)),_0x4422de=window[_0x23d65b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23d65b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b2bc7);return _0x4422de?window[_0x23d65b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30dec9(_0x4422de),0x10)*_0x38f00b:null;}function _0x92e82d(_0x956265){return new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x265f85,_0x4a34cf)=>{_0x956265[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x265f85,_0x4a34cf),window[_0x23d65b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a34cf,0x535e58fa^_0x1ce12b);});}}_0x8f8bc3[_0x23d65b([0x6f,0x6e])](_0x23d65b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xca09f9,_0x89a7b7)=>{if(_0x89a7b7[0x0]!=_0x3f659b)return _0x380043(_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x89a7b7[0x1]={..._0x89a7b7[0x1],[_0x23d65b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44d73d};},{[_0x23d65b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23d65b([0x68,0x69,0x67,0x68])}),_0x8f8bc3[_0x23d65b([0x6f,0x6e])](_0x23d65b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33bfdd=>{_0x1c7df3(_0x33bfdd[_0x23d65b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35364f=!0x0,_0xdc6dc1(_0x33bfdd[_0x23d65b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23d65b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23d65b([0x6c,0x6f,0x77])}),_0x18947e[_0x23d65b([0x74,0x68,0x65,0x6e])](()=>{_0x35364f||_0x380043(_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31ffd8(){return _0x8f8bc3[_0x23d65b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23d65b([0x76,0x69,0x65,0x77])][_0x23d65b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23d65b([0x61,0x75,0x74,0x6f]);}function _0x2c515f(){_0x8f8bc3[_0x23d65b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23d65b([0x76,0x69,0x65,0x77])][_0x23d65b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23d65b([0x61,0x75,0x74,0x6f]);}}function _0x29f86f(_0x18b35c){const _0x27d5ec=[new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ab05=>setTimeout(_0x44ab05,0x5356b2f6^_0x1ce12b)),_0x18947e[_0x23d65b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4899c8=>{let _0x51342c=0x0;_0x8f8bc3[_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c])][_0x23d65b([0x6f,0x6e])](_0x23d65b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x599a06,_0x52ee9b)=>{_0x52ee9b[0x0][_0x23d65b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51342c++,_0x51342c==(0x535f89d2^_0x1ce12b)&&(_0x4899c8(),_0x599a06[_0x23d65b([0x6f,0x66,0x66])]());});}))];return window[_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23d65b([0x72,0x61,0x63,0x65])](_0x27d5ec)[_0x23d65b([0x74,0x68,0x65,0x6e])](()=>_0x18b35c);}async function _0x68a2ca(){await _0x18947e,_0x8f8bc3[_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c])][_0x23d65b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x555139,_0x8f8bc3[_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c])][_0x23d65b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x555139,_0x8f8bc3[_0x23d65b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x355431(_0x2d1dad){const _0x516961=_0x2c8c66();_0x8f8bc3[_0x516961]=_0x23d65b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d1dad,_0x2d1dad!=_0x23d65b([0x56,0x61,0x6c,0x69,0x64])&&_0x68a2ca();}function _0x2c8c66(){const _0x380dae=window[_0x23d65b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23d65b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23d65b([0x6e,0x6f,0x77])]())[_0x23d65b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23d65b([0x2e]),'');let _0x259208=_0x23d65b([0x68]);for(let _0xcf44f3=0x0;_0xcf44f3<_0x380dae[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcf44f3+=0x2){let _0x4e8322=window[_0x23d65b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x380dae[_0x23d65b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcf44f3,_0xcf44f3+0x2));_0x4e8322>=_0x4e7bf8[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e8322-=_0x4e7bf8[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x259208+=_0x4e7bf8[_0x4e8322];}return _0x259208;}function _0x406ae6(){const _0x55ac58=_0x11ad5f[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e]));if(0x3!=_0x55ac58[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x275469(_0x55ac58[0x1]);function _0x275469(_0x25b58e){const _0x26ce4f=_0x6acab3(_0x25b58e);return _0x26ce4f&&_0x2f79a3()?_0x26ce4f:null;function _0x2f79a3(){const _0x5caba2=_0x26ce4f[_0x23d65b([0x6a,0x74,0x69])],_0x292a12=window[_0x23d65b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5caba2[_0x23d65b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5caba2[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x350caa={..._0x26ce4f,[_0x23d65b([0x6a,0x74,0x69])]:_0x5caba2[_0x23d65b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5caba2[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x350caa[_0x23d65b([0x76,0x63])],_0x5af770(_0x350caa)==_0x292a12;}}}async function _0xcde533(){let _0x59baa6=!0x0;try{const _0x5c7b06=_0x11ad5f[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e])),[_0x9511e5,_0x1b79a3,_0x4c5401]=_0x5c7b06;return _0x4a43ff(_0x9511e5),await _0x52e370(_0x9511e5,_0x1b79a3,_0x4c5401),_0x59baa6;}catch{return!0x1;}function _0x4a43ff(_0x55c8df){const _0x31388d=_0x6acab3(_0x55c8df);_0x31388d&&_0x31388d[_0x23d65b([0x61,0x6c,0x67])]==_0x23d65b([0x45,0x53,0x32,0x35,0x36])||(_0x59baa6=!0x1);}async function _0x52e370(_0x54b489,_0x488d96,_0xc3b2fd){const _0x3bce57=window[_0x23d65b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23d65b([0x66,0x72,0x6f,0x6d])](_0x3a4b73(_0xc3b2fd),_0x77f6cc=>_0x77f6cc[_0x23d65b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8ab13e=new window[(_0x23d65b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23d65b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54b489+_0x23d65b([0x2e])+_0x488d96),_0x347797=window[_0x23d65b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23d65b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x347797)return;const _0x43a3a1=await _0x347797[_0x23d65b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23d65b([0x6a,0x77,0x6b]),_0x536ffd,{[_0x23d65b([0x6e,0x61,0x6d,0x65])]:_0x23d65b([0x45,0x43,0x44,0x53,0x41]),[_0x23d65b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23d65b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23d65b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x347797[_0x23d65b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23d65b([0x6e,0x61,0x6d,0x65])]:_0x23d65b([0x45,0x43,0x44,0x53,0x41]),[_0x23d65b([0x68,0x61,0x73,0x68])]:{[_0x23d65b([0x6e,0x61,0x6d,0x65])]:_0x23d65b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43a3a1,_0x3bce57,_0x8ab13e)||(_0x59baa6=!0x1);}}function _0x6acab3(_0x15999e){return _0x15999e[_0x23d65b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23d65b([0x65,0x79]))?JSON[_0x23d65b([0x70,0x61,0x72,0x73,0x65])](_0x3a4b73(_0x15999e)):null;}function _0x3a4b73(_0x54ebc1){return window[_0x23d65b([0x61,0x74,0x6f,0x62])](_0x54ebc1[_0x23d65b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23d65b([0x2b]))[_0x23d65b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23d65b([0x2f])));}function _0x5af770(_0x3d247f){let _0x4f8c5b=0x1505;function _0x30e4fb(_0x18a13e){for(let _0x37d61d=0x0;_0x37d61d<_0x18a13e[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37d61d++){const _0x32d266=_0x18a13e[_0x23d65b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37d61d);_0x4f8c5b=(_0x4f8c5b<<0x5)+_0x4f8c5b+_0x32d266,_0x4f8c5b&=_0x4f8c5b;}}function _0x5f446a(_0x42351e){Array[_0x23d65b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42351e)?_0x42351e[_0x23d65b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f446a):_0x42351e&&typeof _0x42351e==_0x23d65b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23d65b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42351e)[_0x23d65b([0x73,0x6f,0x72,0x74])]()[_0x23d65b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d0295,_0x493f1b])=>{_0x30e4fb(_0x1d0295),_0x5f446a(_0x493f1b);}):_0x30e4fb(window[_0x23d65b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42351e));}return _0x5f446a(_0x3d247f),_0x4f8c5b>>>0x0;}function _0x6c5e81(_0x7d6293){return _0x7d6293[_0x23d65b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23d65b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23d65b([0x30]));}function _0x30dec9(_0x218aa0){return _0x218aa0[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23d65b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23d65b([0x6a,0x6f,0x69,0x6e])]('');}function _0x555139(){}function _0x23d65b(_0x3675ee){const _0x3d7f5f=_0x2078;return _0x3675ee[_0x3d7f5f(0x17a)](_0x261df0=>String[_0x3d7f5f(0x130)](_0x261df0))[_0x3d7f5f(0x178)]('');}_0x355431(await _0x374a9b());}(this);}[_0x324f42(0x175)](){const _0x582614=_0x324f42,_0x34cef5=this[_0x582614(0x13a)][_0x582614(0x146)][_0x582614(0x17f)];_0x34cef5[_0x582614(0x169)](_0x582614(0x15b))&&_0x34cef5[_0x582614(0x159)](_0x582614(0x15b),{'allowAttributes':[_0x582614(0x16b)]}),_0x34cef5[_0x582614(0x169)](_0x582614(0x133))&&_0x34cef5[_0x582614(0x159)](_0x582614(0x133),{'allowAttributes':[_0x582614(0x16b)]});}[_0x324f42(0x180)](){const _0x5241e5=_0x324f42,_0x103ad1=this[_0x5241e5(0x13a)];_0x103ad1[_0x5241e5(0x152)][_0x5241e5(0x136)](_0x5241e5(0x16f))[_0x5241e5(0x149)]({'model':_0x5241e5(0x16b),'view':_0x5241e5(0x14f)}),_0x103ad1[_0x5241e5(0x152)][_0x5241e5(0x136)](_0x5241e5(0x150))[_0x5241e5(0x16d)]({'model':{'key':_0x5241e5(0x16b),'value':_0x2c9944=>_0x2c9944[_0x5241e5(0x156)](_0x5241e5(0x14f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d3bad=_0x103ad1[_0x5241e5(0x147)][_0x5241e5(0x14c)](_0x5241e5(0x15d));_0x4d3bad&&this[_0x5241e5(0x174)](_0x4d3bad,_0x5241e5(0x13e),(_0x3c30d5,[_0xcddbfb,_0x1ae5f0])=>{const _0x255ed5=_0x5241e5;_0xcddbfb[_0x255ed5(0x17d)](_0x255ed5(0x16b),_0x1ae5f0);});}[_0x324f42(0x15e)](){const _0x36a09e=_0x324f42,_0x2ee6eb=this[_0x36a09e(0x13a)][_0x36a09e(0x142)][_0x36a09e(0x14c)](_0x36a09e(0x177))||{},_0x18fed1=this[_0x36a09e(0x13a)][_0x36a09e(0x142)][_0x36a09e(0x14c)](_0x36a09e(0x144))||'';this[_0x36a09e(0x139)]=_0x3b161b(_0x2b799c[_0x36a09e(0x168)],_0x36a09e(0x157),{..._0x2ee6eb,'pubkey':_0x18fed1,'ctx-name':_0x36a09e(0x140)+this[_0x36a09e(0x14b)],'sourceList':'','imgOnly':_0x36a09e(0x16c),'removeCopyright':_0x36a09e(0x16c),'localeName':this[_0x36a09e(0x13a)][_0x36a09e(0x134)][_0x36a09e(0x135)],'externalSourcesEmbedCss':_0x36a09e(0x173)}),this[_0x36a09e(0x139)][_0x36a09e(0x151)]=_0x39d85f=>{const _0x50289b=_0x36a09e;if(_0x50289b(0x131)==_0x39d85f)return _0x50289b(0x148);},_0x2b799c[_0x36a09e(0x168)][_0x36a09e(0x171)][_0x36a09e(0x13f)](this[_0x36a09e(0x139)]);}[_0x324f42(0x14a)](){const _0x278bd1=_0x324f42;this[_0x278bd1(0x132)]=_0x3b161b(_0x2b799c[_0x278bd1(0x168)],_0x278bd1(0x179),{'ctx-name':_0x278bd1(0x140)+this[_0x278bd1(0x14b)]}),_0x2b799c[_0x278bd1(0x168)][_0x278bd1(0x171)][_0x278bd1(0x13f)](this[_0x278bd1(0x132)]);}[_0x324f42(0x14d)](){const _0x167f07=_0x324f42,_0x44e6c1=this[_0x167f07(0x13a)][_0x167f07(0x147)][_0x167f07(0x14c)](_0x167f07(0x143));_0x44e6c1&&this[_0x167f07(0x174)](_0x44e6c1,_0x167f07(0x160),()=>{const _0x31d8df=_0x167f07,_0x59de13=this[_0x31d8df(0x13a)][_0x31d8df(0x146)][_0x31d8df(0x168)][_0x31d8df(0x161)][_0x31d8df(0x13d)]();_0x59de13&&_0x59de13[_0x31d8df(0x156)](_0x31d8df(0x16b))&&this[_0x31d8df(0x13a)][_0x31d8df(0x165)][_0x31d8df(0x145)][_0x31d8df(0x167)](_0x31d8df(0x15a),()=>{const _0x331665=_0x31d8df;_0x6312f9(this[_0x331665(0x13a)],_0x59de13);});});const _0x15de62=this[_0x167f07(0x13a)][_0x167f07(0x147)][_0x167f07(0x14c)](_0x167f07(0x16a));_0x15de62&&this[_0x167f07(0x174)](_0x15de62,_0x167f07(0x160),()=>{const _0x46a11e=_0x167f07,_0x190b85=this[_0x46a11e(0x13a)][_0x46a11e(0x146)][_0x46a11e(0x168)][_0x46a11e(0x161)][_0x46a11e(0x13d)]();_0x190b85&&_0x190b85[_0x46a11e(0x156)](_0x46a11e(0x16b))&&this[_0x46a11e(0x13a)][_0x46a11e(0x165)][_0x46a11e(0x145)][_0x46a11e(0x167)](_0x46a11e(0x15a),()=>{const _0xc42b7a=_0x46a11e;_0x6312f9(this[_0xc42b7a(0x13a)],_0x190b85);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x22ed67,ObservableMixin as _0x294730}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2bd684}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xf65e70}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5d9a2e}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2937fc}from'../../utils/uploadutils.js';import{getImageUrls as _0x37f59a,getImageDimension as _0x27c830}from'../../utils/editingutils.js';import{isAncestor as _0x51a7ce}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x294730(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3393b3,_0x27bdaa,_0x1512b3){super(),this['_editor']=_0x3393b3,this['_dialog']=_0x27bdaa,this['_imageElement']=_0x1512b3,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 _0x1592a5=this['_imageElement'],_0x905e22=_0x1592a5['getAttribute']('uploadcareImageId'),_0x4c0310=_0x1592a5['getAttribute']('src');if(_0x905e22)await this['_loadImageInfo'](_0x905e22,_0x4c0310);else{if(this['_imageCache']['has'](_0x4c0310)){const _0x1e2c73=this['_imageCache']['get'](_0x4c0310);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e2c73['url'],this['imageDimension']=_0x1e2c73['dimension'],this['imageId']=_0x1e2c73['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1309eb}=this['_editor'],t=_0x1309eb['t'],_0x254733=new _0x5d9a2e(_0x1309eb,this['imageStatus'],this['_attributes']);_0x254733['bind']('status')['to'](this,'imageStatus'),_0x254733['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x254733['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x254733['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x254733,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xf65e70,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x254733,'position':_0x2bd684['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x254733['focus']();},'onHide':()=>{_0x254733['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1315c6=>!_0x51a7ce(_0x1315c6,_0x254733['element'])}});}['_loadImageInfo'](_0x1e09d3,_0x5de284){return _0x2937fc['getInfo'](_0x1e09d3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x514dec=>{const {width:_0x42f6e9,height:_0x2d0d12}=_0x514dec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5de284,this['imageDimension']={'width':_0x42f6e9,'height':_0x2d0d12},this['imageId']=_0x1e09d3;})['catch'](_0x28143c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x28143c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x446e98,_0x314325){return this['_getImageAsFile'](_0x446e98)['then'](_0xf8c476=>_0x2937fc['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x314325['signal'],'file':_0xf8c476,'onProgress':_0x51c87f=>{_0x51c87f&&_0x51c87f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x51c87f['value']));}}))['then'](_0x5a7788=>{const {width:_0x95301c,height:_0x218be}=_0x5a7788['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a7788['cdnUrl'],this['imageDimension']={'width':_0x95301c,'height':_0x218be},this['imageId']=_0x5a7788['uuid'],this['imageUploadProgress']=null;const _0x220a03=_0x446e98['getAttribute']('src');this['_imageCache']['set'](_0x220a03,{'id':_0x5a7788['uuid'],'url':_0x5a7788['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x57675d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57675d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b3b02,_0x19507d){_0x1b3b02['on']('apply',(_0x496ca7,_0x37d450)=>{this['_replaceImage'](_0x19507d,_0x37d450['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b3b02['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b3b02['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9ba43e,_0x1ee3a6,_0x560709){const _0x4e6078=this['_editor'],{width:_0x2e4b06,height:_0x15d4e3}=_0x27c830(_0x1ee3a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d0c49,imageSources:_0xbdc45}=_0x37f59a(_0x1ee3a6,_0x2e4b06);_0x4e6078['model']['change'](_0x5a60ae=>{if('$graveyard'===_0x9ba43e['root']['rootName']){_0x4e6078['execute']('insertImage',{'imageType':_0x9ba43e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9ba43e['getAttributes']()),'uploadcareImageId':_0x560709,'src':_0x4d0c49,'sources':_0xbdc45,'width':_0x2e4b06,'height':_0x15d4e3}});const _0x3f30b1=_0x9ba43e['getChildren']();_0x9ba43e=_0x4e6078['model']['document']['selection']['getSelectedElement']();for(const _0xdc0cf of _0x3f30b1)_0x5a60ae['append'](_0x5a60ae['cloneElement'](_0xdc0cf),_0x9ba43e);}else _0x5a60ae['setSelection'](_0x9ba43e,'on'),_0x4e6078['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9ba43e['getAttributes']()),'uploadcareImageId':_0x560709,'src':_0x4d0c49,'sources':_0xbdc45,'width':_0x2e4b06,'height':_0x15d4e3},_0x9ba43e);_0x5a60ae['setSelection'](_0x9ba43e,'on');});}async['_getImageAsFile'](_0x33ea57){const _0x39883e=_0x22ed67['window'],_0x580117=_0x22ed67['document']['location']['href'],_0x15054e=new _0x39883e['URL'](_0x33ea57['getAttribute']('src'),_0x580117);if('data:'===_0x15054e['protocol']){const _0x100af4=_0x15054e['href']['split'](','),_0x46b96d=_0x100af4[0x0]['match'](/:(.*?);/)[0x1],_0x102ca0=_0x46b96d['split']('/')[0x1],_0x39b411=_0x39883e['atob'](_0x100af4[_0x100af4['length']-0x1]);let _0x5efb66=_0x39b411['length'];const _0x16fd5f=new _0x39883e['Uint8Array'](_0x5efb66);for(;_0x5efb66--;)_0x16fd5f[_0x5efb66]=_0x39b411['charCodeAt'](_0x5efb66);return new _0x39883e['File']([_0x16fd5f],'image.'+_0x102ca0,{'type':_0x46b96d});}const _0x100840=_0x15054e['href']['split']('/'),_0x393e4a=_0x100840[_0x100840['length']-0x1],_0x3f82b3=_0x393e4a['split']('.')[0x1];return _0x39883e['fetch'](_0x15054e['href'])['then'](_0x1e113e=>_0x1e113e['clone']()['blob']())['then'](_0x474f0b=>new _0x39883e['File']([_0x474f0b],_0x393e4a,{'type':'image/'+_0x3f82b3}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1eb8(_0x358989,_0x32955c){const _0x193c30=_0x193c();return _0x1eb8=function(_0x1eb8e7,_0x293541){_0x1eb8e7=_0x1eb8e7-0xef;let _0x2e54a6=_0x193c30[_0x1eb8e7];return _0x2e54a6;},_0x1eb8(_0x358989,_0x32955c);}(function(_0x5ab401,_0x5b8c0b){const _0x2e4766=_0x1eb8,_0x3114d5=_0x5ab401();while(!![]){try{const _0x3d30e2=-parseInt(_0x2e4766(0x100))/0x1*(parseInt(_0x2e4766(0xfc))/0x2)+-parseInt(_0x2e4766(0xf0))/0x3*(-parseInt(_0x2e4766(0xf9))/0x4)+parseInt(_0x2e4766(0xfd))/0x5+parseInt(_0x2e4766(0xf3))/0x6*(parseInt(_0x2e4766(0xef))/0x7)+-parseInt(_0x2e4766(0xfb))/0x8+-parseInt(_0x2e4766(0xf8))/0x9+parseInt(_0x2e4766(0xf5))/0xa;if(_0x3d30e2===_0x5b8c0b)break;else _0x3114d5['push'](_0x3114d5['shift']());}catch(_0x35b4f7){_0x3114d5['push'](_0x3114d5['shift']());}}}(_0x193c,0xaf8fa));import{View as _0x34bddc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x34bddc{constructor(_0x51b393,_0x11ee54){const _0x31555b=_0x1eb8;super(_0x51b393);const _0x2884d0=this[_0x31555b(0xfe)];this[_0x31555b(0xf2)](_0x31555b(0xf6),''),this[_0x31555b(0xf1)]({'tag':_0x31555b(0xfa),'attributes':{..._0x11ee54,'class':[_0x31555b(0xf4),_0x31555b(0xf7)],'ctx-name':_0x31555b(0xff),'cdn-url':_0x2884d0['to'](_0x31555b(0xf6))}});}}function _0x193c(){const _0x2229a8=['7031100iDDUcU','imageSrc','ck-uploadcare-theme','11489823TwTXhc','51756jpzgTB','uc-cloud-image-editor','123920QVLQft','2KfAAnc','1182870OXFbvH','bindTemplate','image-edit','6184TJynnp','7IvXJDV','90ifmfGT','setTemplate','set','4137390tfSChV','uc-light'];_0x193c=function(){return _0x2229a8;};return _0x193c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x332974}from'ckeditor5/src/icons.js';import{ButtonView as _0x2636c5,IconView as _0x336e06,View as _0x6a373e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x6a373e{constructor(_0x7b8b3){super(_0x7b8b3);const t=_0x7b8b3['t'];this['set']('errorType',null);const _0x530d0b=new _0x2636c5(_0x7b8b3);_0x530d0b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x530d0b['withText']=!0x0,_0x530d0b['class']='ck-button-action',_0x530d0b['on']('execute',()=>{this['fire']('retry');}),_0x530d0b['bind']('isVisible')['to'](this,'errorType',_0x1eba81=>'NotFound'!==_0x1eba81);const _0x373fdb=new _0x336e06();_0x373fdb['content']=_0x332974,_0x373fdb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x48464b=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':[_0x373fdb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x48464b['to']('errorType',_0x2e6d4a=>t('NotFound'!==_0x2e6d4a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x530d0b]},{'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 _0xa7bd50,View as _0x2da1ad}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x2da1ad{constructor(_0x5967d1){super(_0x5967d1);const t=_0x5967d1['t'],_0x426299=this['bindTemplate'],_0x1df762=new _0xa7bd50();_0x1df762['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':[_0x1df762,{'text':_0x426299['to']('imageUploadProgress',_0x11cb8f=>t('Loading\x20image...')+'\x20('+(_0x11cb8f||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 _0x3a16b0=_0x3b2c;(function(_0x171518,_0x2ed9c9){const _0x196df9=_0x3b2c,_0x44f34f=_0x171518();while(!![]){try{const _0xae3111=-parseInt(_0x196df9(0xb4))/0x1+parseInt(_0x196df9(0xc8))/0x2*(-parseInt(_0x196df9(0xbc))/0x3)+parseInt(_0x196df9(0xc6))/0x4*(-parseInt(_0x196df9(0xb6))/0x5)+parseInt(_0x196df9(0xa7))/0x6*(parseInt(_0x196df9(0x9c))/0x7)+-parseInt(_0x196df9(0x9a))/0x8*(-parseInt(_0x196df9(0xd2))/0x9)+parseInt(_0x196df9(0xa9))/0xa*(parseInt(_0x196df9(0xc3))/0xb)+-parseInt(_0x196df9(0xb2))/0xc*(-parseInt(_0x196df9(0xb9))/0xd);if(_0xae3111===_0x2ed9c9)break;else _0x44f34f['push'](_0x44f34f['shift']());}catch(_0x1868d1){_0x44f34f['push'](_0x44f34f['shift']());}}}(_0x133d,0x69276));import{View as _0x350fa0}from'ckeditor5/src/ui.js';function _0x3b2c(_0x3e8294,_0x29fbde){const _0x133d0a=_0x133d();return _0x3b2c=function(_0x3b2c3d,_0x115f6f){_0x3b2c3d=_0x3b2c3d-0x9a;let _0xdb7014=_0x133d0a[_0x3b2c3d];return _0xdb7014;},_0x3b2c(_0x3e8294,_0x29fbde);}import{UploadcareImageEditFormLoadingView as _0x1c83b7}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x7b881a}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3a8858}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3c4bd5}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3c4bd5{[_0x3a16b0(0xae)];[_0x3a16b0(0xd0)];[_0x3a16b0(0xb8)];[_0x3a16b0(0xd3)];[_0x3a16b0(0xaa)];constructor(_0x4d2d9c,_0x14ebc7,_0xe2255a){const _0x39cbfd=_0x3a16b0;super(_0x4d2d9c),this[_0x39cbfd(0xae)]=this[_0x39cbfd(0xad)](),this[_0x39cbfd(0xd0)]=new _0x1c83b7(_0x4d2d9c),this[_0x39cbfd(0xb8)]=new _0x7b881a(_0x4d2d9c),this[_0x39cbfd(0xd3)]=new _0x3a8858(_0x4d2d9c,_0xe2255a),this[_0x39cbfd(0xaa)]=new _0x350fa0(_0x4d2d9c),this[_0x39cbfd(0xaa)][_0x39cbfd(0xce)](this[_0x39cbfd(0xca)]()),this[_0x39cbfd(0xbf)](_0x39cbfd(0xa4),_0x14ebc7),this[_0x39cbfd(0xce)]({'tag':_0x39cbfd(0xcb),'attributes':{'class':['ck',_0x39cbfd(0xcf),_0x39cbfd(0xc4)],'tabindex':'-1'},'children':this[_0x39cbfd(0xae)]}),this[_0x39cbfd(0xaf)](),this[_0x39cbfd(0xa0)](_0x39cbfd(0xb3),()=>{const _0x5207cc=_0x39cbfd;this[_0x5207cc(0xc0)](this[_0x5207cc(0x9b)],_0x3700d9=>{const _0x1965b0=_0x5207cc;this[_0x1965b0(0xbd)](_0x3700d9);});}),this['on'](_0x39cbfd(0xb1),()=>{const _0x31c40b=_0x39cbfd;this[_0x31c40b(0xaf)]();}),this[_0x39cbfd(0xa2)]();}[_0x3a16b0(0xcc)](){const _0x4d454c=_0x3a16b0;this[_0x4d454c(0x9b)][_0x4d454c(0xcc)]();}[_0x3a16b0(0xaf)](){const _0x50605d=_0x3a16b0;switch(this[_0x50605d(0xae)][_0x50605d(0xc5)](),this[_0x50605d(0xa4)]){case _0x50605d(0x9e):this[_0x50605d(0xae)][_0x50605d(0xd1)](this[_0x50605d(0xd0)]);break;case _0x50605d(0xc2):this[_0x50605d(0xae)][_0x50605d(0xd1)](this[_0x50605d(0xb8)]);break;case _0x50605d(0xb0):this[_0x50605d(0xae)][_0x50605d(0x9d)]([this[_0x50605d(0xd3)],this[_0x50605d(0xaa)]]);}}[_0x3a16b0(0xc0)](_0x2ed208,_0x4b00e5){const _0x49b295=_0x3a16b0,_0x8ec659=_0x49b295(0xb5),_0x4009a6=_0x2ed208[_0x49b295(0xcd)](_0x8ec659);if(_0x4009a6)return _0x4b00e5(_0x4009a6);const _0x33c3ba=new MutationObserver(_0x235a54=>{const _0x3af616=_0x49b295,_0x6036ae=_0x235a54[_0x3af616(0xac)](_0x4f20ae=>_0x4f20ae[_0x3af616(0xa8)]===_0x2ed208&&_0x4f20ae[_0x3af616(0xa5)][_0x3af616(0xb7)]>0x0&&_0x4f20ae[_0x3af616(0xa5)][0x0][_0x3af616(0xa3)][_0x3af616(0xbe)]()===_0x8ec659);_0x6036ae[_0x3af616(0xb7)]&&(_0x33c3ba[_0x3af616(0x9f)](),_0x4b00e5(_0x6036ae[0x0][_0x3af616(0xa5)][0x0]));});_0x33c3ba[_0x49b295(0xab)](_0x2ed208,{'childList':!0x0,'subtree':!0x0});}[_0x3a16b0(0xbd)](_0x1fdd93){const _0x4b9071=_0x3a16b0;_0x1fdd93[_0x4b9071(0xa1)](_0x4b9071(0xbb),_0x330269=>{const _0x55b739=_0x4b9071;this[_0x55b739(0xc1)](_0x55b739(0xbb),{'imageSrc':_0x330269[_0x55b739(0xba)][_0x55b739(0xa6)]});}),_0x1fdd93[_0x4b9071(0xa1)](_0x4b9071(0xc9),()=>{const _0x24c94b=_0x4b9071;this[_0x24c94b(0xc1)](_0x24c94b(0xc9));});}[_0x3a16b0(0xa2)](){const _0x26981c=_0x3a16b0;this[_0x26981c(0xb8)]['on'](_0x26981c(0xc7),()=>{const _0x19e49e=_0x26981c;this[_0x19e49e(0xc1)](_0x19e49e(0xc7));});}}function _0x133d(){const _0x45b4eb=['_focusableView','observe','filter','createCollection','_items','_setView','ready','change:status','228xKOUEi','render','752590duiAhL','uc-cloud-image-editor','115AzqPDp','length','_errorView','1304069AjHNxp','detail','apply','1006794AwSZCR','_addUploadcareImageEditorListeners','toLowerCase','set','_waitForImageEditorComponent','fire','error','11dkRoQL','ck-uploadcare-form','clear','149596UTDScd','retry','4OrRfUq','cancel','getFocusableElement','div','focus','querySelector','setTemplate','ck-reset_all-excluded','_loadingView','add','191907CBwcco','_editingView','8OqhuYl','element','7ldMyAE','addMany','uploading','disconnect','once','addEventListener','_addErrorViewListeners','nodeName','status','addedNodes','cdnUrl','3465834jIDXLT','target','2097640SmwOgq'];_0x133d=function(){return _0x45b4eb;};return _0x133d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53d5ab=_0x5eb1;function _0x4757(){const _0x4ad624=['uploadcare.allowExternalImagesEditing','plugins','isActive','imageEditController','11281384uAQtfH','requires','9299661DOakmP','4826346iDjbTI','1377553BQUaOb','document','element','getSelectedElement','_isEditable','set','unbind','execute','get','selection','bind','model','refresh','editor','5tQLhMo','isEnabled','config','150292CmyMon','imageInline','4120920BgAXKY','imageBlock','368676sgohHz'];_0x4757=function(){return _0x4ad624;};return _0x4757();}(function(_0x2be8b5,_0x269138){const _0x128279=_0x5eb1,_0x1054ae=_0x2be8b5();while(!![]){try{const _0x1efd51=-parseInt(_0x128279(0x160))/0x1+-parseInt(_0x128279(0x157))/0x2+parseInt(_0x128279(0x15f))/0x3+-parseInt(_0x128279(0x153))/0x4*(-parseInt(_0x128279(0x150))/0x5)+parseInt(_0x128279(0x155))/0x6+-parseInt(_0x128279(0x15e))/0x7+parseInt(_0x128279(0x15c))/0x8;if(_0x1efd51===_0x269138)break;else _0x1054ae['push'](_0x1054ae['shift']());}catch(_0x2f683e){_0x1054ae['push'](_0x1054ae['shift']());}}}(_0x4757,0xd03c6));import{Command as _0x402f7e}from'ckeditor5/src/core.js';import{Dialog as _0x94d2b9}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x29c221}from'./ui/uploadcareimageeditcontroller.js';function _0x5eb1(_0x54574c,_0x1d5fd7){const _0x4757c2=_0x4757();return _0x5eb1=function(_0x5eb14d,_0xe9daec){_0x5eb14d=_0x5eb14d-0x14f;let _0x1b5dbb=_0x4757c2[_0x5eb14d];return _0x1b5dbb;},_0x5eb1(_0x54574c,_0x1d5fd7);}import{createEditabilityChecker as _0x49a6c4}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x402f7e{[_0x53d5ab(0x15b)];static get[_0x53d5ab(0x15d)](){return[_0x94d2b9];}[_0x53d5ab(0x164)];constructor(_0x1ca2f7){const _0x432607=_0x53d5ab;super(_0x1ca2f7),this[_0x432607(0x15b)]=void 0x0,this[_0x432607(0x164)]=_0x49a6c4(_0x1ca2f7[_0x432607(0x152)][_0x432607(0x168)](_0x432607(0x158))||[]),this[_0x432607(0x165)]({'isActive':!0x1});}[_0x53d5ab(0x16c)](){const _0x1ada2c=_0x53d5ab,_0x166097=this[_0x1ada2c(0x14f)][_0x1ada2c(0x16b)][_0x1ada2c(0x161)][_0x1ada2c(0x169)][_0x1ada2c(0x163)]();this[_0x1ada2c(0x151)]=this[_0x1ada2c(0x164)](_0x166097);}[_0x53d5ab(0x167)](){const _0xf7c13b=_0x53d5ab;this[_0xf7c13b(0x15b)]&&(this[_0xf7c13b(0x166)](_0xf7c13b(0x15a)),this[_0xf7c13b(0x15b)]=void 0x0);const _0x254e74=this[_0xf7c13b(0x14f)][_0xf7c13b(0x16b)][_0xf7c13b(0x161)][_0xf7c13b(0x169)][_0xf7c13b(0x163)]();_0x254e74&&(_0x254e74['is'](_0xf7c13b(0x162),_0xf7c13b(0x156))||_0x254e74['is'](_0xf7c13b(0x162),_0xf7c13b(0x154)))&&(this[_0xf7c13b(0x15b)]=new _0x29c221(this[_0xf7c13b(0x14f)],this[_0xf7c13b(0x14f)][_0xf7c13b(0x159)][_0xf7c13b(0x168)](_0x94d2b9),_0x254e74),this[_0xf7c13b(0x16a)](_0xf7c13b(0x15a))['to'](this[_0xf7c13b(0x15b)],_0xf7c13b(0x15a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x467c66=_0x13da;function _0x5c7d(){const _0x3987b0=['21bvKtbp','isPremiumPlugin','ImageUtils','31135mKCitb','init','commands','1vPGDrr','3700499gwzZOi','1212zeaICY','10qNUYLd','12YZDsoO','1069125eUybpE','1527096Wgrzpy','ImageEditing','isOfficialPlugin','6840261qrKdgV','3299552FDURQO','uploadcareImageReplace','2286406WrkOOH','uploadcareImageEdit','add','requires','UploadcareImageEditEditing','pluginName','20kYhwKU'];_0x5c7d=function(){return _0x3987b0;};return _0x5c7d();}(function(_0x40ef36,_0x475488){const _0x33829c=_0x13da,_0x4a1b48=_0x40ef36();while(!![]){try{const _0x433a82=-parseInt(_0x33829c(0x89))/0x1*(parseInt(_0x33829c(0x95))/0x2)+parseInt(_0x33829c(0x8e))/0x3*(parseInt(_0x33829c(0x8d))/0x4)+parseInt(_0x33829c(0x9b))/0x5*(-parseInt(_0x33829c(0x8f))/0x6)+parseInt(_0x33829c(0x9c))/0x7*(parseInt(_0x33829c(0x93))/0x8)+parseInt(_0x33829c(0x92))/0x9*(parseInt(_0x33829c(0x8c))/0xa)+-parseInt(_0x33829c(0x8a))/0xb+parseInt(_0x33829c(0x8b))/0xc*(parseInt(_0x33829c(0x86))/0xd);if(_0x433a82===_0x475488)break;else _0x4a1b48['push'](_0x4a1b48['shift']());}catch(_0x2cf7a1){_0x4a1b48['push'](_0x4a1b48['shift']());}}}(_0x5c7d,0xc5ed1));import{Plugin as _0x7cea4d}from'ckeditor5/src/core.js';import{Notification as _0x13ae1e}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x28bb5c}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3413c7}from'./uploadcareimagereplacecommand.js';function _0x13da(_0x3f4b7b,_0x29be6e){const _0x5c7d9a=_0x5c7d();return _0x13da=function(_0x13daef,_0x43c935){_0x13daef=_0x13daef-0x85;let _0x9be087=_0x5c7d9a[_0x13daef];return _0x9be087;},_0x13da(_0x3f4b7b,_0x29be6e);}import{UploadcareEditing as _0x1a8be3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x7cea4d{static get[_0x467c66(0x9a)](){const _0x299527=_0x467c66;return _0x299527(0x99);}static get[_0x467c66(0x98)](){const _0x10db63=_0x467c66;return[_0x1a8be3,_0x13ae1e,_0x10db63(0x85),_0x10db63(0x90)];}static get[_0x467c66(0x91)](){return!0x0;}static get[_0x467c66(0x9d)](){return!0x0;}[_0x467c66(0x87)](){const _0xd56b59=_0x467c66,{editor:_0x10b3f7}=this;_0x10b3f7[_0xd56b59(0x88)][_0xd56b59(0x97)](_0xd56b59(0x96),new _0x28bb5c(_0x10b3f7)),_0x10b3f7[_0xd56b59(0x88)][_0xd56b59(0x97)](_0xd56b59(0x94),new _0x3413c7(_0x10b3f7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x9b0a99}from'ckeditor5/src/core.js';import{ButtonView as _0x5b2927}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x51318f}from'ckeditor5/src/icons.js';import{createElement as _0x2ff3ba}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x9b0a99{['_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 _0x450cbd=this['editor'];_0x450cbd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x325693=>{const _0x139042=_0x450cbd['commands']['get']('uploadcareImageEdit'),_0x47b9c7=new _0x5b2927(_0x325693),t=_0x325693['t'];return _0x47b9c7['set']({'icon':_0x51318f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47b9c7['bind']('isEnabled')['to'](_0x139042),_0x47b9c7['bind']('isOn')['to'](_0x139042,'isActive'),this['listenTo'](_0x47b9c7,'execute',()=>{_0x450cbd['execute']('uploadcareImageEdit'),_0x450cbd['editing']['view']['focus']();}),_0x47b9c7;}),this['_initConfig']();}['_initConfig'](){const _0x4474a3=_0x2ff3ba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4474a3),this['listenTo'](this['editor'],'destroy',()=>{_0x4474a3['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3c6ed4=_0x1239;(function(_0x13da38,_0x25c762){const _0x3facbe=_0x1239,_0x48261b=_0x13da38();while(!![]){try{const _0x2755f1=-parseInt(_0x3facbe(0x1f7))/0x1*(-parseInt(_0x3facbe(0x1fa))/0x2)+parseInt(_0x3facbe(0x1f6))/0x3*(-parseInt(_0x3facbe(0x1f8))/0x4)+parseInt(_0x3facbe(0x204))/0x5*(-parseInt(_0x3facbe(0x1fb))/0x6)+-parseInt(_0x3facbe(0x1f0))/0x7*(-parseInt(_0x3facbe(0x201))/0x8)+-parseInt(_0x3facbe(0x1e8))/0x9*(-parseInt(_0x3facbe(0x203))/0xa)+-parseInt(_0x3facbe(0x1eb))/0xb*(parseInt(_0x3facbe(0x1f3))/0xc)+parseInt(_0x3facbe(0x1ea))/0xd*(-parseInt(_0x3facbe(0x1f9))/0xe);if(_0x2755f1===_0x25c762)break;else _0x48261b['push'](_0x48261b['shift']());}catch(_0x3953be){_0x48261b['push'](_0x48261b['shift']());}}}(_0x518a,0x665fb));function _0x518a(){const _0xf55352=['getSelectedElement','36NePZxS','isEnabled','refresh','423081PqqcPK','122TQSpun','4cUJUOg','14OSscBo','5306JjdFWM','6AUQfiP','selection','model','element','document','removeAttribute','152iLcPdi','change','810220jyrrJU','1217870HopNBO','execute','90SdPQGN','imageBlock','10201958gZLETX','68409atetzw','editor','srcset','setAttributes','sizes','174433MJPYLD','imageInline'];_0x518a=function(){return _0xf55352;};return _0x518a();}import{Command as _0x1aaf0a}from'ckeditor5/src/core.js';function _0x1239(_0xde33b8,_0x517c6f){const _0x518ac8=_0x518a();return _0x1239=function(_0x123909,_0x5907f1){_0x123909=_0x123909-0x1e7;let _0x2ce8a2=_0x518ac8[_0x123909];return _0x2ce8a2;},_0x1239(_0xde33b8,_0x517c6f);}export class UploadcareImageReplaceCommand extends _0x1aaf0a{[_0x3c6ed4(0x1f5)](){const _0x2b3926=_0x3c6ed4,_0x135583=this[_0x2b3926(0x1ec)][_0x2b3926(0x1fd)][_0x2b3926(0x1ff)][_0x2b3926(0x1fc)][_0x2b3926(0x1f2)]();this[_0x2b3926(0x1f4)]=Boolean(_0x135583&&(_0x135583['is'](_0x2b3926(0x1fe),_0x2b3926(0x1e9))||_0x135583['is'](_0x2b3926(0x1fe),_0x2b3926(0x1f1))));}[_0x3c6ed4(0x1e7)](_0x899617){const _0x33d533=_0x3c6ed4,_0x45efaf=this[_0x33d533(0x1ec)][_0x33d533(0x1fd)][_0x33d533(0x1ff)][_0x33d533(0x1fc)][_0x33d533(0x1f2)]();this[_0x33d533(0x1ec)][_0x33d533(0x1fd)][_0x33d533(0x202)](_0x27b8ff=>{const _0x1b6033=_0x33d533;_0x27b8ff[_0x1b6033(0x1ee)](_0x899617,_0x45efaf),_0x27b8ff[_0x1b6033(0x200)](_0x1b6033(0x1ed),_0x45efaf),_0x27b8ff[_0x1b6033(0x200)](_0x1b6033(0x1ef),_0x45efaf);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x242bb2=_0x5d8f;(function(_0x8a2855,_0x5d825c){var _0x2b328d=_0x5d8f,_0x98414=_0x8a2855();while(!![]){try{var _0x1d5b8c=-parseInt(_0x2b328d(0x147))/0x1*(-parseInt(_0x2b328d(0x146))/0x2)+-parseInt(_0x2b328d(0x14a))/0x3+-parseInt(_0x2b328d(0x140))/0x4+parseInt(_0x2b328d(0x145))/0x5*(-parseInt(_0x2b328d(0x148))/0x6)+parseInt(_0x2b328d(0x143))/0x7+parseInt(_0x2b328d(0x144))/0x8+-parseInt(_0x2b328d(0x149))/0x9;if(_0x1d5b8c===_0x5d825c)break;else _0x98414['push'](_0x98414['shift']());}catch(_0x35c27f){_0x98414['push'](_0x98414['shift']());}}}(_0x1cc7,0xeab07));import{Plugin as _0x531b4e}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x2c393c}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x3b5776}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x5d8f(_0x27dfbc,_0x590ceb){var _0x1cc738=_0x1cc7();return _0x5d8f=function(_0x5d8fd6,_0x3eee35){_0x5d8fd6=_0x5d8fd6-0x140;var _0x389627=_0x1cc738[_0x5d8fd6];return _0x389627;},_0x5d8f(_0x27dfbc,_0x590ceb);}function _0x1cc7(){var _0x2b698f=['911516glAGGD','3ginjBQ','2154TjYNsr','4202235KXaLfA','4054902aqqgto','requires','pluginName','isPremiumPlugin','65464NMTbRG','UploadcareImageEdit','isOfficialPlugin','6689795lUFUNE','14983872wmmUat','19495VOuJfz'];_0x1cc7=function(){return _0x2b698f;};return _0x1cc7();}export class UploadcareImageEdit extends _0x531b4e{static get[_0x242bb2(0x14c)](){var _0x2aa4bd=_0x242bb2;return _0x2aa4bd(0x141);}static get[_0x242bb2(0x14b)](){return[_0x2c393c,_0x3b5776];}static get[_0x242bb2(0x142)](){return!0x0;}static get[_0x242bb2(0x14d)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x521733=_0x33f1;(function(_0x27bdaa,_0x50c5f){const _0x18c140=_0x33f1,_0x2025c2=_0x27bdaa();while(!![]){try{const _0x2abc77=-parseInt(_0x18c140(0x19d))/0x1+-parseInt(_0x18c140(0x165))/0x2*(parseInt(_0x18c140(0x1a2))/0x3)+parseInt(_0x18c140(0x187))/0x4+-parseInt(_0x18c140(0x177))/0x5+-parseInt(_0x18c140(0x1a6))/0x6*(-parseInt(_0x18c140(0x19b))/0x7)+parseInt(_0x18c140(0x191))/0x8+-parseInt(_0x18c140(0x1ab))/0x9;if(_0x2abc77===_0x50c5f)break;else _0x2025c2['push'](_0x2025c2['shift']());}catch(_0x370e08){_0x2025c2['push'](_0x2025c2['shift']());}}}(_0x5397,0x3fb87));import{Plugin as _0x1bbb30}from'ckeditor5/src/core.js';import{IconDropbox as _0x18beb1,IconFacebook as _0x330216,IconGoogleDrive as _0x5048aa,IconGooglePhotos as _0x18103e,IconUploadcareImageUpload as _0x1e164d,IconUploadcareLink as _0x467b98,IconOneDrive as _0x1dc0c6}from'ckeditor5/src/icons.js';import{ButtonView as _0x2a5cf7,MenuBarMenuListItemButtonView as _0x5a3b0f}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x33708c}from'./uploadcareconfig.js';function _0x33f1(_0x1615d5,_0x424530){const _0x5397eb=_0x5397();return _0x33f1=function(_0x33f10c,_0x35589c){_0x33f10c=_0x33f10c-0x160;let _0x46027d=_0x5397eb[_0x33f10c];return _0x46027d;},_0x33f1(_0x1615d5,_0x424530);}import{getTranslation as _0x2471e1}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x1bbb30{[_0x521733(0x192)];[_0x521733(0x167)];static get[_0x521733(0x16b)](){const _0x57de05=_0x521733;return _0x57de05(0x194);}static get[_0x521733(0x163)](){return!0x0;}static get[_0x521733(0x16a)](){return!0x0;}[_0x521733(0x18e)](){const _0x6bfb2f=_0x521733;this[_0x6bfb2f(0x192)]=this[_0x6bfb2f(0x16c)][_0x6bfb2f(0x17e)][_0x6bfb2f(0x173)](_0x6bfb2f(0x192));const _0x18ba23=this[_0x6bfb2f(0x16c)];this[_0x6bfb2f(0x167)]=setInterval(()=>{const _0x50b13b=_0x6bfb2f;let _0x5a5a74;for(const _0x24b96d in _0x18ba23){const _0x338ac5=_0x24b96d,_0x57dcc8=_0x18ba23[_0x338ac5];if(_0x50b13b(0x18f)==_0x57dcc8||_0x50b13b(0x171)==_0x57dcc8||_0x50b13b(0x168)==_0x57dcc8||_0x50b13b(0x190)==_0x57dcc8||_0x50b13b(0x180)==_0x57dcc8||_0x50b13b(0x186)==_0x57dcc8||_0x50b13b(0x17c)==_0x57dcc8){delete _0x18ba23[_0x338ac5],_0x5a5a74=_0x57dcc8,clearInterval(this[_0x50b13b(0x167)]),this[_0x50b13b(0x167)]=void 0x0;break;}}_0x50b13b(0x171)==_0x5a5a74&&_0x18ba23[_0x50b13b(0x195)](_0x50b13b(0x172)),_0x50b13b(0x168)==_0x5a5a74&&_0x18ba23[_0x50b13b(0x195)](_0x50b13b(0x176)),_0x50b13b(0x190)==_0x5a5a74&&_0x18ba23[_0x50b13b(0x195)](_0x50b13b(0x183)),_0x50b13b(0x180)==_0x5a5a74&&_0x18ba23[_0x50b13b(0x195)](_0x50b13b(0x161),_0x50b13b(0x1a3)),_0x50b13b(0x186)==_0x5a5a74&&_0x18ba23[_0x50b13b(0x195)](_0x50b13b(0x19a)),_0x50b13b(0x17c)==_0x5a5a74&&_0x18ba23[_0x50b13b(0x195)](_0x50b13b(0x1aa));},0x3e8);}[_0x521733(0x170)](){const _0x377e97=_0x521733,{editor:_0x1e7432}=this,_0x557575=_0x1e7432[_0x377e97(0x1a4)][_0x377e97(0x173)](_0x377e97(0x198));if(!_0x557575)return;const _0x4f5573=this[_0x377e97(0x162)](_0x1e7432[_0x377e97(0x17e)][_0x377e97(0x173)](_0x377e97(0x175)))[_0x377e97(0x18a)]((_0x386b18,_0x16d0a4)=>{const _0x2be6b6=_0x377e97,_0x56cb64=this[_0x2be6b6(0x1a5)](_0x16d0a4[_0x2be6b6(0x17d)]);return _0x386b18[_0x56cb64]||(_0x386b18[_0x56cb64]=[]),_0x386b18[_0x56cb64][_0x2be6b6(0x188)](_0x16d0a4),_0x386b18;},{});_0x1e7432[_0x377e97(0x160)][_0x377e97(0x17b)](_0x377e97(0x182))&&_0x1e7432[_0x377e97(0x1a4)][_0x377e97(0x173)](_0x377e97(0x198))&&Object[_0x377e97(0x19e)](_0x4f5573)[_0x377e97(0x17f)](([_0x1d1a78,_0x3774d9])=>{const _0x3531a2=_0x377e97;_0x1e7432[_0x3531a2(0x160)][_0x3531a2(0x173)](_0x3531a2(0x182))[_0x3531a2(0x1a9)]({'name':_0x1d1a78,'observable':()=>_0x557575,'buttonViewCreator':()=>this[_0x3531a2(0x19f)](_0x3774d9),'formViewCreator':()=>this[_0x3531a2(0x174)](_0x3774d9),'menuBarButtonViewCreator':()=>this[_0x3531a2(0x169)](_0x3774d9),'override':_0x3531a2(0x16f)!==_0x1d1a78});});}[_0x521733(0x184)](){const _0x6613d9=_0x521733;super[_0x6613d9(0x184)](),this[_0x6613d9(0x167)]&&clearInterval(this[_0x6613d9(0x167)]);}[_0x521733(0x162)](_0x6752fa){const _0x31d061=_0x521733,{locale:_0x4ca7c8}=this[_0x31d061(0x16c)];return _0x6752fa[_0x31d061(0x193)](_0x538d76=>{const _0x49aa5f=_0x31d061,_0x340b50=_0x2471e1(_0x4ca7c8,_0x538d76,_0x49aa5f(0x17a));switch(_0x538d76){case _0x33708c[_0x49aa5f(0x1ac)]:return{'icon':_0x1e164d,'type':_0x33708c[_0x49aa5f(0x1ac)],..._0x340b50};case _0x33708c[_0x49aa5f(0x18d)]:return{'icon':_0x467b98,'type':_0x33708c[_0x49aa5f(0x18d)],..._0x340b50};case _0x33708c[_0x49aa5f(0x16d)]:return{'icon':_0x18beb1,'type':_0x33708c[_0x49aa5f(0x16d)],..._0x340b50};case _0x33708c[_0x49aa5f(0x18c)]:return{'icon':_0x330216,'type':_0x33708c[_0x49aa5f(0x18c)],..._0x340b50};case _0x33708c[_0x49aa5f(0x185)]:return{'icon':_0x5048aa,'type':_0x33708c[_0x49aa5f(0x185)],..._0x340b50};case _0x33708c[_0x49aa5f(0x1a7)]:return{'icon':_0x18103e,'type':_0x33708c[_0x49aa5f(0x1a7)],..._0x340b50};case _0x33708c[_0x49aa5f(0x1a1)]:return{'icon':_0x1dc0c6,'type':_0x33708c[_0x49aa5f(0x1a1)],..._0x340b50};}});}[_0x521733(0x1a5)](_0x8dfe3e){const _0x4df7fa=_0x521733;switch(_0x8dfe3e){case _0x33708c[_0x4df7fa(0x1ac)]:return _0x4df7fa(0x199);case _0x33708c[_0x4df7fa(0x18d)]:return _0x4df7fa(0x164);default:return _0x4df7fa(0x16f);}}[_0x521733(0x166)](_0x28bca5,_0x4fad82){const _0x1594c3=_0x521733,_0x3cf551=this[_0x1594c3(0x16c)],_0x63d28e=new _0x28bca5(_0x3cf551[_0x1594c3(0x18b)]),_0x38ee89=_0x3cf551[_0x1594c3(0x1a4)][_0x1594c3(0x173)](_0x1594c3(0x198));return _0x63d28e[_0x1594c3(0x196)](_0x1594c3(0x1a0))['to'](_0x38ee89),_0x63d28e['on'](_0x1594c3(0x1ad),()=>{const _0x104043=_0x1594c3;_0x38ee89[_0x104043(0x1ad)](_0x4fad82);}),_0x63d28e;}[_0x521733(0x19f)](_0x2a564f){const _0x1a264a=_0x521733,{locale:_0x9f0c83}=this[_0x1a264a(0x16c)],_0x1070a4=this[_0x1a264a(0x16c)][_0x1a264a(0x160)][_0x1a264a(0x173)](_0x1a264a(0x182)),_0x2266b6=_0x2a564f[0x0],_0x4a4709=this[_0x1a264a(0x166)](_0x2a5cf7,_0x2266b6[_0x1a264a(0x17d)]);return _0x4a4709[_0x1a264a(0x16e)]=_0x2266b6[_0x1a264a(0x16e)],_0x4a4709[_0x1a264a(0x196)](_0x1a264a(0x1a8))['to'](_0x1070a4,_0x1a264a(0x178),_0xe8865d=>_0x2471e1(_0x9f0c83,_0x2266b6[_0x1a264a(0x17d)],_0xe8865d?_0x1a264a(0x189):_0x1a264a(0x17a))[_0x1a264a(0x197)]),_0x4a4709[_0x1a264a(0x19c)]=!0x0,_0x4a4709;}[_0x521733(0x174)](_0x1dbcca){const _0x331d5c=_0x521733,{locale:_0x12d8ee}=this[_0x331d5c(0x16c)],_0x212796=this[_0x331d5c(0x16c)][_0x331d5c(0x160)][_0x331d5c(0x173)](_0x331d5c(0x182));return _0x1dbcca[_0x331d5c(0x193)](_0x5c51b4=>{const _0x113628=_0x331d5c,_0x29314d=this[_0x113628(0x166)](_0x2a5cf7,_0x5c51b4[_0x113628(0x17d)]);return _0x29314d[_0x113628(0x181)]=!0x0,_0x29314d[_0x113628(0x16e)]=_0x5c51b4[_0x113628(0x16e)],_0x29314d[_0x113628(0x196)](_0x113628(0x1a8))['to'](_0x212796,_0x113628(0x178),_0x2efb61=>_0x2471e1(_0x12d8ee,_0x5c51b4[_0x113628(0x17d)],_0x2efb61?_0x113628(0x189):_0x113628(0x17a))[_0x113628(0x197)]),_0x29314d;});}[_0x521733(0x169)](_0x47065e){const _0x5578d6=_0x521733;return _0x47065e[_0x5578d6(0x193)](_0xc2f73e=>{const _0x3d86d5=_0x5578d6,_0x58a227=this[_0x3d86d5(0x166)](_0x5a3b0f,_0xc2f73e[_0x3d86d5(0x17d)]);return _0x58a227[_0x3d86d5(0x16e)]=_0xc2f73e[_0x3d86d5(0x16e)],_0x58a227[_0x3d86d5(0x1a8)]=_0xc2f73e[_0x3d86d5(0x179)],_0x58a227;});}}function _0x5397(){const _0x433e27=['ImageInsertUI','domainLimit','destroy','GDrive','uploadcareLicenseKeyEvaluationLimit','1928376FzrUCl','push','Replace','reduce','locale','Facebook','URL','init','uploadcareLicenseKeyValid','uploadcareLicenseKeyDomainLimit','824072DUYpHX','licenseKey','map','UploadcareUI','_showLicenseError','bind','text','uploadcare','upload','evaluationLimit','3031196AmwBZa','tooltip','1400uIEckl','entries','_createToolbarButton','isEnabled','OneDrive','12EEMFYW','Uploadcare','commands','_getIntegrationKey','6hbpPBg','GPhotos','label','registerIntegration','usageLimit','3067083sVikEs','Local','execute','plugins','featureNotAllowed','_normalizeConfigSourceList','isOfficialPlugin','url','78194HRoNLd','_createButton','_licenseKeyCheckInterval','uploadcareLicenseKeyExpired','_createMenuBarButtons','isPremiumPlugin','pluginName','editor','Dropbox','icon','assetManager','afterInit','uploadcareLicenseKeyInvalid','invalid','get','_createDropdownButtons','uploadcare.uploader.sourceList','expired','1292785BfOwTU','isImageSelected','shortText','Insert','has','uploadcareLicenseKeyUsageLimit','type','config','forEach','uploadcareLicenseKeyNotAllowed','withText'];_0x5397=function(){return _0x433e27;};return _0x5397();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x251eb1}from'ckeditor5/src/core.js';import{FileRepository as _0x490b68}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x43d035}from'./uploadcareediting.js';import{UploadUtils as _0x50b1d1}from'./utils/uploadutils.js';import{getImageUrls as _0x142277}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x251eb1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x490b68,_0x43d035];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x52c450=this['editor'];if(!!!_0x52c450['config']['get']('uploadcare'))return;_0x52c450['plugins']['get'](_0x490b68)['createUploadAdapter']=_0x467560=>new k(_0x467560,_0x52c450),_0x52c450['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xf866a3,{imageElement:_0x3cc0e1,data:_0xd141e1})=>{_0x52c450['model']['change'](_0x49c8af=>{_0x49c8af['setAttribute']('uploadcareImageId',_0xd141e1['uploadcareImageId'],_0x3cc0e1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x154f94,_0x159e30){this['loader']=_0x154f94,this['editor']=_0x159e30,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4ad83b=await this['loader']['file'];return _0x50b1d1['upload']({'file':_0x4ad83b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x427c5b=>{_0x427c5b&&_0x427c5b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x427c5b['value']);}})['then'](async _0x24c709=>{const {imageFallbackUrl:_0x141e29,imageSources:_0x5627f5}=_0x142277(_0x24c709['cdnUrl'],_0x24c709['imageInfo']['width']);return{'uploadcareImageId':_0x24c709['uuid'],'default':_0x141e29,'sources':_0x5627f5};})['catch'](()=>{const _0x220f15=t('Cannot\x20upload\x20file:')+('\x20'+_0x4ad83b['name']+'.');return Promise['reject'](_0x220f15);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3354af}from'../uploadcareconfig.js';export function getTranslation(_0x35f297,_0x7bc237,_0x37bbfd){const t=_0x35f297['t'],_0xb18424=_0x35f297['t'];switch(_0x7bc237){case _0x3354af['Local']:return{'text':_0xb18424('Insert'===_0x37bbfd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xb18424('From\x20computer')};case _0x3354af['URL']:return{'text':'Insert'===_0x37bbfd?_0xb18424('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xb18424('Via\x20URL')};case _0x3354af['Dropbox']:return{'text':t('Insert'===_0x37bbfd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3354af['Facebook']:return{'text':t('Insert'===_0x37bbfd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3354af['GDrive']:return{'text':t('Insert'===_0x37bbfd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3354af['GPhotos']:return{'text':t('Insert'===_0x37bbfd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3354af['OneDrive']:return{'text':t('Insert'===_0x37bbfd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x7bc237;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x997046=_0x1a91;(function(_0x36f852,_0x7f69d9){var _0x3bb76b=_0x1a91,_0x500209=_0x36f852();while(!![]){try{var _0x1a8e79=-parseInt(_0x3bb76b(0x14b))/0x1*(parseInt(_0x3bb76b(0x140))/0x2)+parseInt(_0x3bb76b(0x143))/0x3*(-parseInt(_0x3bb76b(0x141))/0x4)+parseInt(_0x3bb76b(0x13d))/0x5*(-parseInt(_0x3bb76b(0x14c))/0x6)+-parseInt(_0x3bb76b(0x149))/0x7+parseInt(_0x3bb76b(0x144))/0x8+-parseInt(_0x3bb76b(0x146))/0x9*(-parseInt(_0x3bb76b(0x13e))/0xa)+parseInt(_0x3bb76b(0x142))/0xb*(parseInt(_0x3bb76b(0x13c))/0xc);if(_0x1a8e79===_0x7f69d9)break;else _0x500209['push'](_0x500209['shift']());}catch(_0x3e7edf){_0x500209['push'](_0x500209['shift']());}}}(_0x28c0,0xbd99a));import{FocusTracker as _0x41d1e8}from'ckeditor5/src/utils.js';import{View as _0x1fc5a7,FocusCycler as _0xbda4b}from'ckeditor5/src/ui.js';function _0x1a91(_0x4c5805,_0x1a7bd4){var _0x28c0d2=_0x28c0();return _0x1a91=function(_0x1a91a9,_0x5debf9){_0x1a91a9=_0x1a91a9-0x13c;var _0x59c44f=_0x28c0d2[_0x1a91a9];return _0x59c44f;},_0x1a91(_0x4c5805,_0x1a7bd4);}function _0x28c0(){var _0x57557d=['2501170wBCXuJ','focusTracker','733fodPwL','6378skzRsP','bindTemplate','div','forwardCycle','getFocusableElement','14988uTIYCY','2295WSnwvz','10570fiaVBv','fire','2210BNdSai','6116MMoGSX','12067nRpqRB','1761tdJgnU','11673624whPOWY','true','4257zziNGZ','createCollection','focusCycler'];_0x28c0=function(){return _0x57557d;};return _0x28c0();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1fc5a7{[_0x997046(0x14a)];[_0x997046(0x148)];constructor(_0x5300df){var _0x4d3e46=_0x997046;super(_0x5300df),this[_0x4d3e46(0x14a)]=new _0x41d1e8(),this[_0x4d3e46(0x148)]=new _0xbda4b({'focusables':this[_0x4d3e46(0x147)](),'focusTracker':this[_0x4d3e46(0x14a)]});}[_0x997046(0x150)](){var _0x292763=_0x997046;return{'tag':_0x292763(0x14e),'attributes':{'aria-hidden':_0x292763(0x145),'tabindex':'0'},'on':{'focus':this[_0x292763(0x14d)]['to'](()=>{var _0xda4129=_0x292763;this[_0xda4129(0x148)][_0xda4129(0x13f)](_0xda4129(0x14f));})}};}}
|