@ckeditor/ckeditor5-uploadcare 47.7.5-alpha.0 → 47.7.5
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 _0x20991d=_0x514e;function _0x54bf(){const _0xc45661=['getSelectedElement','uc-upload-ctx-provider','listenTo','view','model','elementToAttribute','_initImageProcessingIndicator','376oyGtrR','attributeToAttribute','add','imageBlock','href','228kZVJXR','_initSchema','uc-config','uploadcare.pubkey','getAttribute','selection','for','closeMax','2421104gHJtaG','execute','config','replaceImageSource','map','_initConversion','render','requires','configElement','imageInline','pluginName','uploadcareImageReplace','extend','insertImage','uploader-','UploadcareEditing','uploadcareImageId','destroy','1400003qnlJEi','conversion','schema','6xLFqeO','PictureEditing','downcast','remove','5821630vewIpR','#uc-icon-arrow-down','locale','_ctxElement','13AueJEj','init','join','document','body','input[uploadcare-file-input]','contentLanguage','177854QYahZe','data-uc-image-id','isRegistered','fromCharCode','isPremiumPlugin','commands','true','iconHrefResolver','27705rMfJIH','isOfficialPlugin','afterInit','removeAttribute','upcast','ctxElement','1050505lcNoPu','\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','querySelector','get','ucContextId','once','uploadcare.uploader','appendChild','editor','_initCtx','uploadcare','685062dCrWLC','_configElement','56pikEkA','editing','_initConfig','cleanupImage'];_0x54bf=function(){return _0xc45661;};return _0x54bf();}(function(_0x5494a2,_0x51f67a){const _0x813353=_0x514e,_0x478036=_0x5494a2();while(!![]){try{const _0x507da7=parseInt(_0x813353(0x1de))/0x1*(parseInt(_0x813353(0x1e5))/0x2)+-parseInt(_0x813353(0x1ed))/0x3*(-parseInt(_0x813353(0x20b))/0x4)+parseInt(_0x813353(0x1f3))/0x5*(parseInt(_0x813353(0x1d6))/0x6)+-parseInt(_0x813353(0x218))/0x7+-parseInt(_0x813353(0x200))/0x8*(-parseInt(_0x813353(0x1fe))/0x9)+parseInt(_0x813353(0x1da))/0xa+parseInt(_0x813353(0x1d3))/0xb*(-parseInt(_0x813353(0x210))/0xc);if(_0x507da7===_0x51f67a)break;else _0x478036['push'](_0x478036['shift']());}catch(_0x28708f){_0x478036['push'](_0x478036['shift']());}}}(_0x54bf,0x8edd4));import{Plugin as _0x8263d9}from'ckeditor5/src/core.js';import{Dialog as _0x20b12a}from'ckeditor5/src/ui.js';import{createElement as _0x15418e,global as _0x21ffa7,uid as _0x2823ae}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3e166f}from'./uploadcarecommand.js';function _0x514e(_0x41f2ca,_0x532d4a){const _0x54bfa6=_0x54bf();return _0x514e=function(_0x514ef8,_0x4f2b96){_0x514ef8=_0x514ef8-0x1c9;let _0x44ec4e=_0x54bfa6[_0x514ef8];return _0x44ec4e;},_0x514e(_0x41f2ca,_0x532d4a);}import{UploadcareUploadAdapter as _0x5225f9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b43a5}from'./utils/editingutils.js';export class UploadcareEditing extends _0x8263d9{[_0x20991d(0x1ff)]=null;[_0x20991d(0x1dd)]=null;static get[_0x20991d(0x1cb)](){const _0x2b2946=_0x20991d;return _0x2b2946(0x1d0);}static get[_0x20991d(0x21f)](){const _0x267b3b=_0x20991d;return[_0x267b3b(0x1d7),_0x5225f9,_0x20b12a];}static get[_0x20991d(0x1ee)](){return!0x0;}static get[_0x20991d(0x1e9)](){return!0x0;}[_0x20991d(0x1f7)];get[_0x20991d(0x1c9)](){const _0x3fa0c0=_0x20991d;return this[_0x3fa0c0(0x1ff)];}get[_0x20991d(0x1f2)](){const _0x26234c=_0x20991d;return this[_0x26234c(0x1dd)];}constructor(_0x5db287){const _0x1e371a=_0x20991d;super(_0x5db287),this[_0x1e371a(0x1f7)]=_0x2823ae();}[_0x20991d(0x1df)](){const _0x4bc7e5=_0x20991d,_0x4aefb1=this[_0x4bc7e5(0x1fb)];_0x4aefb1[_0x4bc7e5(0x1ea)][_0x4bc7e5(0x20d)](_0x4bc7e5(0x1fd),new _0x3e166f(_0x4aefb1));}[_0x20991d(0x1ef)](){const _0x5c71c7=_0x20991d;this[_0x5c71c7(0x211)](),this[_0x5c71c7(0x21d)](),this[_0x5c71c7(0x202)](),this[_0x5c71c7(0x1fc)](),this[_0x5c71c7(0x20a)](),this[_0x5c71c7(0x206)](this[_0x5c71c7(0x1fb)],_0x5c71c7(0x1d2),()=>{const _0x1f7267=_0x5c71c7;this[_0x1f7267(0x1ff)]&&(this[_0x1f7267(0x1ff)][_0x1f7267(0x1d9)](),this[_0x1f7267(0x1ff)]=null),this[_0x1f7267(0x1dd)]&&(this[_0x1f7267(0x1dd)][_0x1f7267(0x1d9)](),this[_0x1f7267(0x1dd)]=null);const _0x936c0a=_0x21ffa7[_0x1f7267(0x1e1)][_0x1f7267(0x1f5)](_0x1f7267(0x1e3));_0x936c0a&&_0x936c0a[_0x1f7267(0x1d9)]();}),async function(_0x5809ff){const _0xf53a01=_0x2249f1([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]),_0x3df2a0=0x535f8c3a,_0x8225f1=0x535819ca^_0x3df2a0,_0x44a37b=window[_0x2249f1([0x44,0x61,0x74,0x65])][_0x2249f1([0x6e,0x6f,0x77])](),_0x24e441=_0x5809ff[_0x2249f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39ab6f=new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c41fc=>{_0x24e441[_0x2249f1([0x6f,0x6e,0x63,0x65])](_0x2249f1([0x72,0x65,0x61,0x64,0x79]),_0x5c41fc);}),_0x3c54a6={[_0x2249f1([0x6b,0x74,0x79])]:_0x2249f1([0x45,0x43]),[_0x2249f1([0x75,0x73,0x65])]:_0x2249f1([0x73,0x69,0x67]),[_0x2249f1([0x63,0x72,0x76])]:_0x2249f1([0x50,0x2d,0x32,0x35,0x36]),[_0x2249f1([0x78])]:_0x2249f1([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]),[_0x2249f1([0x79])]:_0x2249f1([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]),[_0x2249f1([0x61,0x6c,0x67])]:_0x2249f1([0x45,0x53,0x32,0x35,0x36])},_0x28093c=_0x24e441[_0x2249f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2249f1([0x67,0x65,0x74])](_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bad67(){let _0x51439d,_0x56aeca=null,_0x178727=null;try{if(_0x28093c==_0x2249f1([0x47,0x50,0x4c]))return _0x2249f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51439d=_0xb1a0b1(),!_0x51439d)return _0x2249f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51439d[_0x2249f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x178727=_0x141c53(_0x51439d[_0x2249f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51439d[_0x2249f1([0x6a,0x74,0x69])])),await _0x582380()?_0x6310f2()?_0x34f070()?_0x2249f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x325885()?(_0x51439d[_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2249f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56aeca=_0x409cc7(_0x2249f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40c51a()):_0x2249f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2249f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2249f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2249f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34f070(){const _0x5d7c7d=[_0x2249f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2249f1([0x74,0x72,0x69,0x61,0x6c])][_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51439d[_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a37b/0x3e8:0xe10*_0x8225f1;return _0x51439d[_0x2249f1([0x65,0x78,0x70])]<_0x5d7c7d;}function _0x6310f2(){const _0x288353=_0x51439d[_0x2249f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x288353&&(!!_0x288353[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249f1([0x2a]))||!!_0x288353[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249f1([0x55,0x50,0x4c,0x43])));}function _0x325885(){const _0x3a25fd=_0x514e,_0x5304f4=_0x51439d[_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5304f4||0x0==_0x5304f4[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31de06}=new URL(window[_0x2249f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a25fd(0x20f)]);if(_0x5304f4[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31de06))return!0x0;const _0x1c6e6a=_0x31de06[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e]));return _0x5304f4[_0x2249f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ba900=>_0x1ba900[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249f1([0x2a])))[_0x2249f1([0x6d,0x61,0x70])](_0x3db10e=>_0x3db10e[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e])))[_0x2249f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c7f68=>_0x3c7f68[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c6e6a[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2249f1([0x6d,0x61,0x70])](_0x5bffa9=>Array(_0x1c6e6a[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bffa9[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2249f1([0x66,0x69,0x6c,0x6c])](_0x5bffa9[0x0]===_0x2249f1([0x2a])?_0x2249f1([0x2a]):'')[_0x2249f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bffa9))[_0x2249f1([0x73,0x6f,0x6d,0x65])](_0x656ef=>_0x1c6e6a[_0x2249f1([0x65,0x76,0x65,0x72,0x79])]((_0x3b6656,_0x4cf830)=>_0x656ef[_0x4cf830]===_0x3b6656||_0x656ef[_0x4cf830]===_0x2249f1([0x2a])));}function _0x40c51a(){return _0x56aeca&&_0x178727?new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x544b66,_0x18aa4b)=>{_0x56aeca[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x544b66,_0x18aa4b),_0x178727[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x55fced=>{_0x55fced!=_0x2249f1([0x56,0x61,0x6c,0x69,0x64])&&_0x544b66(_0x55fced);},_0x18aa4b);}):_0x56aeca||_0x178727||_0x2249f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x141c53(_0xbb8d00,_0x2c9a36){return new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58170c=>{if(_0x5b32f1())return _0x58170c(_0x2249f1([0x56,0x61,0x6c,0x69,0x64]));_0x1b5e68(),_0x24e441[_0x2249f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2249f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x411482=!0x1;const _0x1d2d61=_0x2823ae();function _0xc468c4(_0xa2b103){return!!_0xa2b103&&(typeof _0xa2b103===_0x2249f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa2b103===_0x2249f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa2b103[_0x2249f1([0x74,0x68,0x65,0x6e])]===_0x2249f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa2b103[_0x2249f1([0x63,0x61,0x74,0x63,0x68])]===_0x2249f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x307f47(_0x66ecc4){_0x4c7395(_0x66ecc4)[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x1d09a1=>{if(!_0x1d09a1||_0x1d09a1[_0x2249f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2249f1([0x6f,0x6b]))return _0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dc924(_0x58aea3(_0x1d2d61+_0x2c9a36))!=_0x1d09a1[_0x2249f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2249f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x25d338=>(_0x18e456(),_0x25d338),()=>{const _0x2cb4dc=_0x424c6a();return null==_0x2cb4dc?(_0x18e456(),_0x2249f1([0x56,0x61,0x6c,0x69,0x64])):_0x2249f1(_0x44a37b-_0x2cb4dc>(0x7753083a^_0x3df2a0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x58170c)[_0x2249f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58170c(_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x582310=0x536962ba^_0x3df2a0;function _0x18e456(){const _0x481fe1=_0x2249f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dc924(_0x58aea3(_0xbb8d00)),_0x108722=_0x8f4fa4(_0x1dc924(window[_0x2249f1([0x4d,0x61,0x74,0x68])][_0x2249f1([0x63,0x65,0x69,0x6c])](_0x44a37b/_0x582310)));window[_0x2249f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2249f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x481fe1,_0x108722);}function _0x424c6a(){const _0x14ab89=_0x2249f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dc924(_0x58aea3(_0xbb8d00)),_0x50d948=window[_0x2249f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2249f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14ab89);return _0x50d948?window[_0x2249f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f4fa4(_0x50d948),0x10)*_0x582310:null;}function _0x4c7395(_0x5a2ef4){return new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21b938,_0x8d29)=>{_0x5a2ef4[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x21b938,_0x8d29),window[_0x2249f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8d29,0x535e58fa^_0x3df2a0);});}}_0x24e441[_0x2249f1([0x6f,0x6e])](_0x2249f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x479f6f,_0x283217)=>{if(_0x283217[0x0]!=_0xbb8d00)return _0x58170c(_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x283217[0x1]={..._0x283217[0x1],[_0x2249f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d2d61};},{[_0x2249f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2249f1([0x68,0x69,0x67,0x68])}),_0x24e441[_0x2249f1([0x6f,0x6e])](_0x2249f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ca281=>{_0xc468c4(_0x4ca281[_0x2249f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x411482=!0x0,_0x307f47(_0x4ca281[_0x2249f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2249f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2249f1([0x6c,0x6f,0x77])}),_0x39ab6f[_0x2249f1([0x74,0x68,0x65,0x6e])](()=>{_0x411482||_0x58170c(_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b32f1(){return _0x24e441[_0x2249f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2249f1([0x76,0x69,0x65,0x77])][_0x2249f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2249f1([0x61,0x75,0x74,0x6f]);}function _0x1b5e68(){_0x24e441[_0x2249f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2249f1([0x76,0x69,0x65,0x77])][_0x2249f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2249f1([0x61,0x75,0x74,0x6f]);}}function _0x409cc7(_0x177b1b){const _0x5c0bf3=[new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52d9e5=>setTimeout(_0x52d9e5,0x5356b2f6^_0x3df2a0)),_0x39ab6f[_0x2249f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f525=>{let _0x29c9c8=0x0;_0x24e441[_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2249f1([0x6f,0x6e])](_0x2249f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25a3af,_0x4c0ea4)=>{_0x4c0ea4[0x0][_0x2249f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29c9c8++,_0x29c9c8==(0x535f89d2^_0x3df2a0)&&(_0x24f525(),_0x25a3af[_0x2249f1([0x6f,0x66,0x66])]());});}))];return window[_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2249f1([0x72,0x61,0x63,0x65])](_0x5c0bf3)[_0x2249f1([0x74,0x68,0x65,0x6e])](()=>_0x177b1b);}async function _0x573adc(){await _0x39ab6f,_0x24e441[_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2249f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b4590,_0x24e441[_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2249f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b4590,_0x24e441[_0x2249f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35bdc2(_0x280a42){const _0x4d33ae=_0x29cad4();_0x24e441[_0x4d33ae]=_0x2249f1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x280a42,_0x280a42!=_0x2249f1([0x56,0x61,0x6c,0x69,0x64])&&_0x573adc();}function _0x29cad4(){const _0x283c32=window[_0x2249f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2249f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2249f1([0x6e,0x6f,0x77])]())[_0x2249f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2249f1([0x2e]),'');let _0x116f18=_0x2249f1([0x68]);for(let _0xf34095=0x0;_0xf34095<_0x283c32[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf34095+=0x2){let _0x3cbef3=window[_0x2249f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x283c32[_0x2249f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf34095,_0xf34095+0x2));_0x3cbef3>=_0xf53a01[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cbef3-=_0xf53a01[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x116f18+=_0xf53a01[_0x3cbef3];}return _0x116f18;}function _0xb1a0b1(){const _0x382357=_0x28093c[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e]));if(0x3!=_0x382357[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfa4dc9(_0x382357[0x1]);function _0xfa4dc9(_0x48b0a3){const _0x18c85b=_0x43554d(_0x48b0a3);return _0x18c85b&&_0x5bcc28()?_0x18c85b:null;function _0x5bcc28(){const _0x101db7=_0x18c85b[_0x2249f1([0x6a,0x74,0x69])],_0x5b0b2e=window[_0x2249f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x101db7[_0x2249f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x101db7[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bef9a={..._0x18c85b,[_0x2249f1([0x6a,0x74,0x69])]:_0x101db7[_0x2249f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x101db7[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bef9a[_0x2249f1([0x76,0x63])],_0x58aea3(_0x3bef9a)==_0x5b0b2e;}}}async function _0x582380(){let _0x50d8a3=!0x0;try{const _0x2cb865=_0x28093c[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e])),[_0x14d97b,_0x74bbc3,_0x35e2b5]=_0x2cb865;return _0x4f01e4(_0x14d97b),await _0x32cbe9(_0x14d97b,_0x74bbc3,_0x35e2b5),_0x50d8a3;}catch{return!0x1;}function _0x4f01e4(_0x24406c){const _0x39b2f9=_0x43554d(_0x24406c);_0x39b2f9&&_0x39b2f9[_0x2249f1([0x61,0x6c,0x67])]==_0x2249f1([0x45,0x53,0x32,0x35,0x36])||(_0x50d8a3=!0x1);}async function _0x32cbe9(_0x2c9dd7,_0x143dc4,_0x27f5ff){const _0x5f4313=window[_0x2249f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2249f1([0x66,0x72,0x6f,0x6d])](_0x1525d9(_0x27f5ff),_0x121029=>_0x121029[_0x2249f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43bc52=new window[(_0x2249f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2249f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c9dd7+_0x2249f1([0x2e])+_0x143dc4),_0x723150=window[_0x2249f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2249f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x723150)return;const _0x61fa32=await _0x723150[_0x2249f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2249f1([0x6a,0x77,0x6b]),_0x3c54a6,{[_0x2249f1([0x6e,0x61,0x6d,0x65])]:_0x2249f1([0x45,0x43,0x44,0x53,0x41]),[_0x2249f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2249f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2249f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x723150[_0x2249f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2249f1([0x6e,0x61,0x6d,0x65])]:_0x2249f1([0x45,0x43,0x44,0x53,0x41]),[_0x2249f1([0x68,0x61,0x73,0x68])]:{[_0x2249f1([0x6e,0x61,0x6d,0x65])]:_0x2249f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x61fa32,_0x5f4313,_0x43bc52)||(_0x50d8a3=!0x1);}}function _0x43554d(_0x5cd9b6){return _0x5cd9b6[_0x2249f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2249f1([0x65,0x79]))?JSON[_0x2249f1([0x70,0x61,0x72,0x73,0x65])](_0x1525d9(_0x5cd9b6)):null;}function _0x1525d9(_0x95d6d6){return window[_0x2249f1([0x61,0x74,0x6f,0x62])](_0x95d6d6[_0x2249f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2249f1([0x2b]))[_0x2249f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2249f1([0x2f])));}function _0x58aea3(_0x13fe3d){let _0x29f4ba=0x1505;function _0x52ec5b(_0xf15ba8){for(let _0x250b83=0x0;_0x250b83<_0xf15ba8[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x250b83++){const _0x1c110a=_0xf15ba8[_0x2249f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x250b83);_0x29f4ba=(_0x29f4ba<<0x5)+_0x29f4ba+_0x1c110a,_0x29f4ba&=_0x29f4ba;}}function _0x4f1339(_0x1f9bda){Array[_0x2249f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f9bda)?_0x1f9bda[_0x2249f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f1339):_0x1f9bda&&typeof _0x1f9bda==_0x2249f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2249f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f9bda)[_0x2249f1([0x73,0x6f,0x72,0x74])]()[_0x2249f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21a26b,_0x5773ee])=>{_0x52ec5b(_0x21a26b),_0x4f1339(_0x5773ee);}):_0x52ec5b(window[_0x2249f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f9bda));}return _0x4f1339(_0x13fe3d),_0x29f4ba>>>0x0;}function _0x1dc924(_0x1a0561){return _0x1a0561[_0x2249f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2249f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2249f1([0x30]));}function _0x8f4fa4(_0xf64ee9){return _0xf64ee9[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2249f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2249f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b4590(){}function _0x2249f1(_0x589e82){const _0x1a85e2=_0x514e;return _0x589e82[_0x1a85e2(0x21c)](_0x3dcf20=>String[_0x1a85e2(0x1e8)](_0x3dcf20))[_0x1a85e2(0x1e0)]('');}_0x35bdc2(await _0x3bad67());}(this);}[_0x20991d(0x211)](){const _0x1c977d=_0x20991d,_0x388579=this[_0x1c977d(0x1fb)][_0x1c977d(0x208)][_0x1c977d(0x1d5)];_0x388579[_0x1c977d(0x1e7)](_0x1c977d(0x20e))&&_0x388579[_0x1c977d(0x1cd)](_0x1c977d(0x20e),{'allowAttributes':[_0x1c977d(0x1d1)]}),_0x388579[_0x1c977d(0x1e7)](_0x1c977d(0x1ca))&&_0x388579[_0x1c977d(0x1cd)](_0x1c977d(0x1ca),{'allowAttributes':[_0x1c977d(0x1d1)]});}[_0x20991d(0x21d)](){const _0x31c872=_0x20991d,_0xa21746=this[_0x31c872(0x1fb)];_0xa21746[_0x31c872(0x1d4)][_0x31c872(0x216)](_0x31c872(0x1d8))[_0x31c872(0x20c)]({'model':_0x31c872(0x1d1),'view':_0x31c872(0x1e6)}),_0xa21746[_0x31c872(0x1d4)][_0x31c872(0x216)](_0x31c872(0x1f1))[_0x31c872(0x209)]({'model':{'key':_0x31c872(0x1d1),'value':_0x584f6b=>_0x584f6b[_0x31c872(0x214)](_0x31c872(0x1e6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x291931=_0xa21746[_0x31c872(0x1ea)][_0x31c872(0x1f6)](_0x31c872(0x21b));_0x291931&&this[_0x31c872(0x206)](_0x291931,_0x31c872(0x203),(_0x5c4b63,[_0x2d17b4,_0x541276])=>{const _0x162795=_0x31c872;_0x2d17b4[_0x162795(0x1f0)](_0x162795(0x1d1),_0x541276);});}[_0x20991d(0x202)](){const _0x3ac2e4=_0x20991d,_0x154e2b=this[_0x3ac2e4(0x1fb)][_0x3ac2e4(0x21a)][_0x3ac2e4(0x1f6)](_0x3ac2e4(0x1f9))||{},_0xc3fa69=this[_0x3ac2e4(0x1fb)][_0x3ac2e4(0x21a)][_0x3ac2e4(0x1f6)](_0x3ac2e4(0x213))||'';this[_0x3ac2e4(0x1ff)]=_0x15418e(_0x21ffa7[_0x3ac2e4(0x1e1)],_0x3ac2e4(0x212),{..._0x154e2b,'pubkey':_0xc3fa69,'ctx-name':_0x3ac2e4(0x1cf)+this[_0x3ac2e4(0x1f7)],'sourceList':'','imgOnly':_0x3ac2e4(0x1eb),'removeCopyright':_0x3ac2e4(0x1eb),'localeName':this[_0x3ac2e4(0x1fb)][_0x3ac2e4(0x1dc)][_0x3ac2e4(0x1e4)],'externalSourcesEmbedCss':_0x3ac2e4(0x1f4)}),this[_0x3ac2e4(0x1ff)][_0x3ac2e4(0x1ec)]=_0x2847be=>{const _0xe0c924=_0x3ac2e4;if(_0xe0c924(0x217)==_0x2847be)return _0xe0c924(0x1db);},_0x21ffa7[_0x3ac2e4(0x1e1)][_0x3ac2e4(0x1e2)][_0x3ac2e4(0x1fa)](this[_0x3ac2e4(0x1ff)]);}[_0x20991d(0x1fc)](){const _0x47f89e=_0x20991d;this[_0x47f89e(0x1dd)]=_0x15418e(_0x21ffa7[_0x47f89e(0x1e1)],_0x47f89e(0x205),{'ctx-name':_0x47f89e(0x1cf)+this[_0x47f89e(0x1f7)]}),_0x21ffa7[_0x47f89e(0x1e1)][_0x47f89e(0x1e2)][_0x47f89e(0x1fa)](this[_0x47f89e(0x1dd)]);}[_0x20991d(0x20a)](){const _0xe6afdd=_0x20991d,_0x3cb620=this[_0xe6afdd(0x1fb)][_0xe6afdd(0x1ea)][_0xe6afdd(0x1f6)](_0xe6afdd(0x1ce));_0x3cb620&&this[_0xe6afdd(0x206)](_0x3cb620,_0xe6afdd(0x219),()=>{const _0x35cf1f=_0xe6afdd,_0x2aee81=this[_0x35cf1f(0x1fb)][_0x35cf1f(0x208)][_0x35cf1f(0x1e1)][_0x35cf1f(0x215)][_0x35cf1f(0x204)]();_0x2aee81&&_0x2aee81[_0x35cf1f(0x214)](_0x35cf1f(0x1d1))&&this[_0x35cf1f(0x1fb)][_0x35cf1f(0x201)][_0x35cf1f(0x207)][_0x35cf1f(0x1f8)](_0x35cf1f(0x21e),()=>{const _0x19026b=_0x35cf1f;_0x2b43a5(this[_0x19026b(0x1fb)],_0x2aee81);});});const _0x2a5a78=this[_0xe6afdd(0x1fb)][_0xe6afdd(0x1ea)][_0xe6afdd(0x1f6)](_0xe6afdd(0x1cc));_0x2a5a78&&this[_0xe6afdd(0x206)](_0x2a5a78,_0xe6afdd(0x219),()=>{const _0x40fe31=_0xe6afdd,_0xc6e939=this[_0x40fe31(0x1fb)][_0x40fe31(0x208)][_0x40fe31(0x1e1)][_0x40fe31(0x215)][_0x40fe31(0x204)]();_0xc6e939&&_0xc6e939[_0x40fe31(0x214)](_0x40fe31(0x1d1))&&this[_0x40fe31(0x1fb)][_0x40fe31(0x201)][_0x40fe31(0x207)][_0x40fe31(0x1f8)](_0x40fe31(0x21e),()=>{const _0x25c338=_0x40fe31;_0x2b43a5(this[_0x25c338(0x1fb)],_0xc6e939);});});}}
|
|
23
|
+
function _0x4172(_0x5a1efc,_0x327979){const _0x213d42=_0x213d();return _0x4172=function(_0x41722b,_0x5787e4){_0x41722b=_0x41722b-0x16e;let _0x523f19=_0x213d42[_0x41722b];return _0x523f19;},_0x4172(_0x5a1efc,_0x327979);}const _0x3c1f60=_0x4172;(function(_0x103228,_0x4ea9ac){const _0x22a3af=_0x4172,_0xb80dff=_0x103228();while(!![]){try{const _0x1957f6=-parseInt(_0x22a3af(0x17f))/0x1*(parseInt(_0x22a3af(0x1a8))/0x2)+parseInt(_0x22a3af(0x1a4))/0x3*(parseInt(_0x22a3af(0x185))/0x4)+-parseInt(_0x22a3af(0x1b5))/0x5*(-parseInt(_0x22a3af(0x1be))/0x6)+-parseInt(_0x22a3af(0x19d))/0x7+-parseInt(_0x22a3af(0x17a))/0x8*(-parseInt(_0x22a3af(0x191))/0x9)+parseInt(_0x22a3af(0x177))/0xa*(parseInt(_0x22a3af(0x1af))/0xb)+-parseInt(_0x22a3af(0x1b0))/0xc;if(_0x1957f6===_0x4ea9ac)break;else _0xb80dff['push'](_0xb80dff['shift']());}catch(_0x114ce6){_0xb80dff['push'](_0xb80dff['shift']());}}}(_0x213d,0xbfba7));import{Plugin as _0x24ad69}from'ckeditor5/src/core.js';import{Dialog as _0x468366}from'ckeditor5/src/ui.js';import{createElement as _0xb0520d,global as _0x3263c2,uid as _0x482733}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5a59cd}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1907f0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4845d9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x24ad69{[_0x3c1f60(0x1ac)]=null;[_0x3c1f60(0x1b1)]=null;static get[_0x3c1f60(0x170)](){const _0x3a33f7=_0x3c1f60;return _0x3a33f7(0x1b2);}static get[_0x3c1f60(0x18d)](){const _0x57a1ad=_0x3c1f60;return[_0x57a1ad(0x190),_0x1907f0,_0x468366];}static get[_0x3c1f60(0x175)](){return!0x0;}static get[_0x3c1f60(0x18a)](){return!0x0;}[_0x3c1f60(0x1b7)];get[_0x3c1f60(0x1ab)](){const _0x123d5a=_0x3c1f60;return this[_0x123d5a(0x1ac)];}get[_0x3c1f60(0x19b)](){const _0x2aca9e=_0x3c1f60;return this[_0x2aca9e(0x1b1)];}constructor(_0x4f55f4){const _0x291b2d=_0x3c1f60;super(_0x4f55f4),this[_0x291b2d(0x1b7)]=_0x482733();}[_0x3c1f60(0x16f)](){const _0x4fbd2c=_0x3c1f60,_0xc47c1f=this[_0x4fbd2c(0x178)];_0xc47c1f[_0x4fbd2c(0x1bf)][_0x4fbd2c(0x194)](_0x4fbd2c(0x171),new _0x5a59cd(_0xc47c1f));}[_0x3c1f60(0x19c)](){const _0x11df7a=_0x3c1f60;this[_0x11df7a(0x176)](),this[_0x11df7a(0x1b3)](),this[_0x11df7a(0x18c)](),this[_0x11df7a(0x1c0)](),this[_0x11df7a(0x1a1)](),this[_0x11df7a(0x179)](this[_0x11df7a(0x178)],_0x11df7a(0x1bc),()=>{const _0x1c82a9=_0x11df7a;this[_0x1c82a9(0x1ac)]&&(this[_0x1c82a9(0x1ac)][_0x1c82a9(0x173)](),this[_0x1c82a9(0x1ac)]=null),this[_0x1c82a9(0x1b1)]&&(this[_0x1c82a9(0x1b1)][_0x1c82a9(0x173)](),this[_0x1c82a9(0x1b1)]=null);const _0x1af7f5=_0x3263c2[_0x1c82a9(0x192)][_0x1c82a9(0x18b)](_0x1c82a9(0x19f));_0x1af7f5&&_0x1af7f5[_0x1c82a9(0x173)]();}),async function(_0x31249d){const _0x58f0f3=_0x328cc5([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]),_0x50903b=0x535f8c3a,_0xb6606=0x53581a6a^_0x50903b,_0x4ef9f7=window[_0x328cc5([0x44,0x61,0x74,0x65])][_0x328cc5([0x6e,0x6f,0x77])](),_0x5db8b1=_0x31249d[_0x328cc5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37002b=new window[(_0x328cc5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50a3b8=>{_0x5db8b1[_0x328cc5([0x6f,0x6e,0x63,0x65])](_0x328cc5([0x72,0x65,0x61,0x64,0x79]),_0x50a3b8);}),_0x527818={[_0x328cc5([0x6b,0x74,0x79])]:_0x328cc5([0x45,0x43]),[_0x328cc5([0x75,0x73,0x65])]:_0x328cc5([0x73,0x69,0x67]),[_0x328cc5([0x63,0x72,0x76])]:_0x328cc5([0x50,0x2d,0x32,0x35,0x36]),[_0x328cc5([0x78])]:_0x328cc5([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]),[_0x328cc5([0x79])]:_0x328cc5([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]),[_0x328cc5([0x61,0x6c,0x67])]:_0x328cc5([0x45,0x53,0x32,0x35,0x36])},_0x54d6fa=_0x5db8b1[_0x328cc5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x328cc5([0x67,0x65,0x74])](_0x328cc5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x313260(){let _0x40ea38,_0x2184df=null,_0x482151=null;try{if(_0x54d6fa==_0x328cc5([0x47,0x50,0x4c]))return _0x328cc5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40ea38=_0x4fc773(),!_0x40ea38)return _0x328cc5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40ea38[_0x328cc5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x482151=_0x197899(_0x40ea38[_0x328cc5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40ea38[_0x328cc5([0x6a,0x74,0x69])])),await _0x5815a3()?_0x2ad380()?_0x2a48cf()?_0x328cc5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b8967()?(_0x40ea38[_0x328cc5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x328cc5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2184df=_0x1690e5(_0x328cc5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b3f4e()):_0x328cc5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x328cc5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x328cc5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x328cc5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a48cf(){const _0x344db=[_0x328cc5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x328cc5([0x74,0x72,0x69,0x61,0x6c])][_0x328cc5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ea38[_0x328cc5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ef9f7/0x3e8:0xe10*_0xb6606;return _0x40ea38[_0x328cc5([0x65,0x78,0x70])]<_0x344db;}function _0x2ad380(){const _0xfe8097=_0x40ea38[_0x328cc5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfe8097&&(!!_0xfe8097[_0x328cc5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x328cc5([0x2a]))||!!_0xfe8097[_0x328cc5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x328cc5([0x55,0x50,0x4c,0x43])));}function _0x5b8967(){const _0x408996=_0x4172,_0x5c0ffd=_0x40ea38[_0x328cc5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c0ffd||0x0==_0x5c0ffd[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x483194}=new URL(window[_0x328cc5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x408996(0x19e)]);if(_0x5c0ffd[_0x328cc5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483194))return!0x0;const _0x8294da=_0x483194[_0x328cc5([0x73,0x70,0x6c,0x69,0x74])](_0x328cc5([0x2e]));return _0x5c0ffd[_0x328cc5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b0bad=>_0x1b0bad[_0x328cc5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x328cc5([0x2a])))[_0x328cc5([0x6d,0x61,0x70])](_0x29f203=>_0x29f203[_0x328cc5([0x73,0x70,0x6c,0x69,0x74])](_0x328cc5([0x2e])))[_0x328cc5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x188e2c=>_0x188e2c[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8294da[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x328cc5([0x6d,0x61,0x70])](_0x4b0ee3=>Array(_0x8294da[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b0ee3[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x328cc5([0x66,0x69,0x6c,0x6c])](_0x4b0ee3[0x0]===_0x328cc5([0x2a])?_0x328cc5([0x2a]):'')[_0x328cc5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b0ee3))[_0x328cc5([0x73,0x6f,0x6d,0x65])](_0x1ea3a8=>_0x8294da[_0x328cc5([0x65,0x76,0x65,0x72,0x79])]((_0xb673b4,_0xe1f8a8)=>_0x1ea3a8[_0xe1f8a8]===_0xb673b4||_0x1ea3a8[_0xe1f8a8]===_0x328cc5([0x2a])));}function _0x5b3f4e(){return _0x2184df&&_0x482151?new window[(_0x328cc5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb1cd0c,_0x10f228)=>{_0x2184df[_0x328cc5([0x74,0x68,0x65,0x6e])](_0xb1cd0c,_0x10f228),_0x482151[_0x328cc5([0x74,0x68,0x65,0x6e])](_0x1bfc58=>{_0x1bfc58!=_0x328cc5([0x56,0x61,0x6c,0x69,0x64])&&_0xb1cd0c(_0x1bfc58);},_0x10f228);}):_0x2184df||_0x482151||_0x328cc5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x197899(_0x630a9b,_0x46a00d){return new window[(_0x328cc5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x186709=>{if(_0x6e6112())return _0x186709(_0x328cc5([0x56,0x61,0x6c,0x69,0x64]));_0x4ed4ec(),_0x5db8b1[_0x328cc5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x328cc5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e7f4a=!0x1;const _0x4289c0=_0x482733();function _0x374153(_0x36b5fa){return!!_0x36b5fa&&(typeof _0x36b5fa===_0x328cc5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36b5fa===_0x328cc5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36b5fa[_0x328cc5([0x74,0x68,0x65,0x6e])]===_0x328cc5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36b5fa[_0x328cc5([0x63,0x61,0x74,0x63,0x68])]===_0x328cc5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d7909(_0x1c97f8){_0x1ee76e(_0x1c97f8)[_0x328cc5([0x74,0x68,0x65,0x6e])](_0x43df70=>{if(!_0x43df70||_0x43df70[_0x328cc5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x328cc5([0x6f,0x6b]))return _0x328cc5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dd375(_0x3b14f5(_0x4289c0+_0x46a00d))!=_0x43df70[_0x328cc5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x328cc5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x328cc5([0x56,0x61,0x6c,0x69,0x64]);})[_0x328cc5([0x74,0x68,0x65,0x6e])](_0x2f2b40=>(_0x1436b7(),_0x2f2b40),()=>{const _0x30022a=_0x4344c0();return null==_0x30022a?(_0x1436b7(),_0x328cc5([0x56,0x61,0x6c,0x69,0x64])):_0x328cc5(_0x4ef9f7-_0x30022a>(0x7753083a^_0x50903b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x328cc5([0x74,0x68,0x65,0x6e])](_0x186709)[_0x328cc5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x186709(_0x328cc5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x164fd7=0x536962ba^_0x50903b;function _0x1436b7(){const _0x27b89c=_0x328cc5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dd375(_0x3b14f5(_0x630a9b)),_0x4f4257=_0x42a197(_0x3dd375(window[_0x328cc5([0x4d,0x61,0x74,0x68])][_0x328cc5([0x63,0x65,0x69,0x6c])](_0x4ef9f7/_0x164fd7)));window[_0x328cc5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x328cc5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27b89c,_0x4f4257);}function _0x4344c0(){const _0x387cd4=_0x328cc5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dd375(_0x3b14f5(_0x630a9b)),_0x227486=window[_0x328cc5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x328cc5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x387cd4);return _0x227486?window[_0x328cc5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42a197(_0x227486),0x10)*_0x164fd7:null;}function _0x1ee76e(_0xb858d9){return new window[(_0x328cc5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58b9d3,_0xa0426f)=>{_0xb858d9[_0x328cc5([0x74,0x68,0x65,0x6e])](_0x58b9d3,_0xa0426f),window[_0x328cc5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa0426f,0x535e58fa^_0x50903b);});}}_0x5db8b1[_0x328cc5([0x6f,0x6e])](_0x328cc5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6cf319,_0x354de1)=>{if(_0x354de1[0x0]!=_0x630a9b)return _0x186709(_0x328cc5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x354de1[0x1]={..._0x354de1[0x1],[_0x328cc5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4289c0};},{[_0x328cc5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x328cc5([0x68,0x69,0x67,0x68])}),_0x5db8b1[_0x328cc5([0x6f,0x6e])](_0x328cc5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d7060=>{_0x374153(_0x5d7060[_0x328cc5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e7f4a=!0x0,_0x2d7909(_0x5d7060[_0x328cc5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x328cc5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x328cc5([0x6c,0x6f,0x77])}),_0x37002b[_0x328cc5([0x74,0x68,0x65,0x6e])](()=>{_0x3e7f4a||_0x186709(_0x328cc5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6e6112(){return _0x5db8b1[_0x328cc5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x328cc5([0x76,0x69,0x65,0x77])][_0x328cc5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x328cc5([0x61,0x75,0x74,0x6f]);}function _0x4ed4ec(){_0x5db8b1[_0x328cc5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x328cc5([0x76,0x69,0x65,0x77])][_0x328cc5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x328cc5([0x61,0x75,0x74,0x6f]);}}function _0x1690e5(_0x2102bb){const _0x1a17db=[new window[(_0x328cc5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6e675f=>setTimeout(_0x6e675f,0x5356b2f6^_0x50903b)),_0x37002b[_0x328cc5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x328cc5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff228=>{let _0x11f3b0=0x0;_0x5db8b1[_0x328cc5([0x6d,0x6f,0x64,0x65,0x6c])][_0x328cc5([0x6f,0x6e])](_0x328cc5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x473fae,_0xdec5f5)=>{_0xdec5f5[0x0][_0x328cc5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11f3b0++,_0x11f3b0==(0x535f89d2^_0x50903b)&&(_0x4ff228(),_0x473fae[_0x328cc5([0x6f,0x66,0x66])]());});}))];return window[_0x328cc5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x328cc5([0x72,0x61,0x63,0x65])](_0x1a17db)[_0x328cc5([0x74,0x68,0x65,0x6e])](()=>_0x2102bb);}async function _0x1d04f5(){await _0x37002b,_0x5db8b1[_0x328cc5([0x6d,0x6f,0x64,0x65,0x6c])][_0x328cc5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19f380,_0x5db8b1[_0x328cc5([0x6d,0x6f,0x64,0x65,0x6c])][_0x328cc5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19f380,_0x5db8b1[_0x328cc5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x328cc5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e5b06(_0x5ad192){const _0x1ddda4=_0x4da44d();_0x5db8b1[_0x1ddda4]=_0x328cc5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ad192,_0x5ad192!=_0x328cc5([0x56,0x61,0x6c,0x69,0x64])&&_0x1d04f5();}function _0x4da44d(){const _0x5bc0b1=window[_0x328cc5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x328cc5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x328cc5([0x6e,0x6f,0x77])]())[_0x328cc5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x328cc5([0x2e]),'');let _0xf11df3=_0x328cc5([0x68]);for(let _0x5132e8=0x0;_0x5132e8<_0x5bc0b1[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5132e8+=0x2){let _0x33f6fd=window[_0x328cc5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bc0b1[_0x328cc5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5132e8,_0x5132e8+0x2));_0x33f6fd>=_0x58f0f3[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33f6fd-=_0x58f0f3[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf11df3+=_0x58f0f3[_0x33f6fd];}return _0xf11df3;}function _0x4fc773(){const _0x3e55ae=_0x54d6fa[_0x328cc5([0x73,0x70,0x6c,0x69,0x74])](_0x328cc5([0x2e]));if(0x3!=_0x3e55ae[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xbe3704(_0x3e55ae[0x1]);function _0xbe3704(_0x594586){const _0x7fffaa=_0x51944e(_0x594586);return _0x7fffaa&&_0x2ed01d()?_0x7fffaa:null;function _0x2ed01d(){const _0x50758f=_0x7fffaa[_0x328cc5([0x6a,0x74,0x69])],_0x2b8028=window[_0x328cc5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50758f[_0x328cc5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50758f[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bb131={..._0x7fffaa,[_0x328cc5([0x6a,0x74,0x69])]:_0x50758f[_0x328cc5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50758f[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bb131[_0x328cc5([0x76,0x63])],_0x3b14f5(_0x5bb131)==_0x2b8028;}}}async function _0x5815a3(){let _0xc6ee45=!0x0;try{const _0x166423=_0x54d6fa[_0x328cc5([0x73,0x70,0x6c,0x69,0x74])](_0x328cc5([0x2e])),[_0x409916,_0x4deb8f,_0x210ef4]=_0x166423;return _0x1044dd(_0x409916),await _0x481859(_0x409916,_0x4deb8f,_0x210ef4),_0xc6ee45;}catch{return!0x1;}function _0x1044dd(_0x4398b0){const _0x497c6b=_0x51944e(_0x4398b0);_0x497c6b&&_0x497c6b[_0x328cc5([0x61,0x6c,0x67])]==_0x328cc5([0x45,0x53,0x32,0x35,0x36])||(_0xc6ee45=!0x1);}async function _0x481859(_0x1916aa,_0x1ac865,_0x424076){const _0x218fd7=window[_0x328cc5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x328cc5([0x66,0x72,0x6f,0x6d])](_0x23cc8f(_0x424076),_0x5af781=>_0x5af781[_0x328cc5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x533ac3=new window[(_0x328cc5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x328cc5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1916aa+_0x328cc5([0x2e])+_0x1ac865),_0x2b4ce3=window[_0x328cc5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x328cc5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b4ce3)return;const _0x1f8ddf=await _0x2b4ce3[_0x328cc5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x328cc5([0x6a,0x77,0x6b]),_0x527818,{[_0x328cc5([0x6e,0x61,0x6d,0x65])]:_0x328cc5([0x45,0x43,0x44,0x53,0x41]),[_0x328cc5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x328cc5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x328cc5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b4ce3[_0x328cc5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x328cc5([0x6e,0x61,0x6d,0x65])]:_0x328cc5([0x45,0x43,0x44,0x53,0x41]),[_0x328cc5([0x68,0x61,0x73,0x68])]:{[_0x328cc5([0x6e,0x61,0x6d,0x65])]:_0x328cc5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f8ddf,_0x218fd7,_0x533ac3)||(_0xc6ee45=!0x1);}}function _0x51944e(_0x13e66b){return _0x13e66b[_0x328cc5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x328cc5([0x65,0x79]))?JSON[_0x328cc5([0x70,0x61,0x72,0x73,0x65])](_0x23cc8f(_0x13e66b)):null;}function _0x23cc8f(_0x158048){return window[_0x328cc5([0x61,0x74,0x6f,0x62])](_0x158048[_0x328cc5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x328cc5([0x2b]))[_0x328cc5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x328cc5([0x2f])));}function _0x3b14f5(_0x3e2f64){let _0x3a9967=0x1505;function _0x273536(_0x5e8b40){for(let _0x9036d2=0x0;_0x9036d2<_0x5e8b40[_0x328cc5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9036d2++){const _0xda3add=_0x5e8b40[_0x328cc5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9036d2);_0x3a9967=(_0x3a9967<<0x5)+_0x3a9967+_0xda3add,_0x3a9967&=_0x3a9967;}}function _0x50819e(_0x136f12){Array[_0x328cc5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x136f12)?_0x136f12[_0x328cc5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50819e):_0x136f12&&typeof _0x136f12==_0x328cc5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x328cc5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x136f12)[_0x328cc5([0x73,0x6f,0x72,0x74])]()[_0x328cc5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b2a97,_0x3c9773])=>{_0x273536(_0x1b2a97),_0x50819e(_0x3c9773);}):_0x273536(window[_0x328cc5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x136f12));}return _0x50819e(_0x3e2f64),_0x3a9967>>>0x0;}function _0x3dd375(_0x15e0cd){return _0x15e0cd[_0x328cc5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x328cc5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x328cc5([0x30]));}function _0x42a197(_0x1e392e){return _0x1e392e[_0x328cc5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x328cc5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x328cc5([0x6a,0x6f,0x69,0x6e])]('');}function _0x19f380(){}function _0x328cc5(_0xa2e893){const _0x3f8d6f=_0x4172;return _0xa2e893[_0x3f8d6f(0x186)](_0x4824f6=>String[_0x3f8d6f(0x17b)](_0x4824f6))[_0x3f8d6f(0x1a9)]('');}_0x2e5b06(await _0x313260());}(this);}[_0x3c1f60(0x176)](){const _0x36ba93=_0x3c1f60,_0x22bf39=this[_0x36ba93(0x178)][_0x36ba93(0x197)][_0x36ba93(0x1aa)];_0x22bf39[_0x36ba93(0x17c)](_0x36ba93(0x184))&&_0x22bf39[_0x36ba93(0x19a)](_0x36ba93(0x184),{'allowAttributes':[_0x36ba93(0x174)]}),_0x22bf39[_0x36ba93(0x17c)](_0x36ba93(0x1b6))&&_0x22bf39[_0x36ba93(0x19a)](_0x36ba93(0x1b6),{'allowAttributes':[_0x36ba93(0x174)]});}[_0x3c1f60(0x1b3)](){const _0x23b8bf=_0x3c1f60,_0x1f8aa6=this[_0x23b8bf(0x178)];_0x1f8aa6[_0x23b8bf(0x1a7)][_0x23b8bf(0x182)](_0x23b8bf(0x1c3))[_0x23b8bf(0x1b8)]({'model':_0x23b8bf(0x174),'view':_0x23b8bf(0x196)}),_0x1f8aa6[_0x23b8bf(0x1a7)][_0x23b8bf(0x182)](_0x23b8bf(0x199))[_0x23b8bf(0x183)]({'model':{'key':_0x23b8bf(0x174),'value':_0x1c710a=>_0x1c710a[_0x23b8bf(0x193)](_0x23b8bf(0x196))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5117d6=_0x1f8aa6[_0x23b8bf(0x1bf)][_0x23b8bf(0x1c2)](_0x23b8bf(0x1c1));_0x5117d6&&this[_0x23b8bf(0x179)](_0x5117d6,_0x23b8bf(0x16e),(_0x420e31,[_0x2a16f9,_0x1d0553])=>{const _0x500ce7=_0x23b8bf;_0x2a16f9[_0x500ce7(0x1bd)](_0x500ce7(0x174),_0x1d0553);});}[_0x3c1f60(0x18c)](){const _0x52cb7d=_0x3c1f60,_0x1ff28a=this[_0x52cb7d(0x178)][_0x52cb7d(0x1ae)][_0x52cb7d(0x1c2)](_0x52cb7d(0x181))||{},_0x30c0af=this[_0x52cb7d(0x178)][_0x52cb7d(0x1ae)][_0x52cb7d(0x1c2)](_0x52cb7d(0x18e))||'';this[_0x52cb7d(0x1ac)]=_0xb0520d(_0x3263c2[_0x52cb7d(0x192)],_0x52cb7d(0x17e),{..._0x1ff28a,'pubkey':_0x30c0af,'ctx-name':_0x52cb7d(0x198)+this[_0x52cb7d(0x1b7)],'sourceList':'','imgOnly':_0x52cb7d(0x1b4),'removeCopyright':_0x52cb7d(0x1b4),'localeName':this[_0x52cb7d(0x178)][_0x52cb7d(0x188)][_0x52cb7d(0x17d)],'externalSourcesEmbedCss':_0x52cb7d(0x195)}),this[_0x52cb7d(0x1ac)][_0x52cb7d(0x1bb)]=_0x398206=>{const _0x29330a=_0x52cb7d;if(_0x29330a(0x1c4)==_0x398206)return _0x29330a(0x18f);},_0x3263c2[_0x52cb7d(0x192)][_0x52cb7d(0x1a6)][_0x52cb7d(0x1a2)](this[_0x52cb7d(0x1ac)]);}[_0x3c1f60(0x1c0)](){const _0x1c6ef9=_0x3c1f60;this[_0x1c6ef9(0x1b1)]=_0xb0520d(_0x3263c2[_0x1c6ef9(0x192)],_0x1c6ef9(0x1ba),{'ctx-name':_0x1c6ef9(0x198)+this[_0x1c6ef9(0x1b7)]}),_0x3263c2[_0x1c6ef9(0x192)][_0x1c6ef9(0x1a6)][_0x1c6ef9(0x1a2)](this[_0x1c6ef9(0x1b1)]);}[_0x3c1f60(0x1a1)](){const _0x23e6ec=_0x3c1f60,_0x925a53=this[_0x23e6ec(0x178)][_0x23e6ec(0x1bf)][_0x23e6ec(0x1c2)](_0x23e6ec(0x1b9));_0x925a53&&this[_0x23e6ec(0x179)](_0x925a53,_0x23e6ec(0x1a5),()=>{const _0x113ac4=_0x23e6ec,_0x2b8c37=this[_0x113ac4(0x178)][_0x113ac4(0x197)][_0x113ac4(0x192)][_0x113ac4(0x180)][_0x113ac4(0x189)]();_0x2b8c37&&_0x2b8c37[_0x113ac4(0x193)](_0x113ac4(0x174))&&this[_0x113ac4(0x178)][_0x113ac4(0x1a0)][_0x113ac4(0x1a3)][_0x113ac4(0x1ad)](_0x113ac4(0x187),()=>{const _0x44f418=_0x113ac4;_0x4845d9(this[_0x44f418(0x178)],_0x2b8c37);});});const _0x2c8e4f=this[_0x23e6ec(0x178)][_0x23e6ec(0x1bf)][_0x23e6ec(0x1c2)](_0x23e6ec(0x172));_0x2c8e4f&&this[_0x23e6ec(0x179)](_0x2c8e4f,_0x23e6ec(0x1a5),()=>{const _0x22626d=_0x23e6ec,_0x58f3cb=this[_0x22626d(0x178)][_0x22626d(0x197)][_0x22626d(0x192)][_0x22626d(0x180)][_0x22626d(0x189)]();_0x58f3cb&&_0x58f3cb[_0x22626d(0x193)](_0x22626d(0x174))&&this[_0x22626d(0x178)][_0x22626d(0x1a0)][_0x22626d(0x1a3)][_0x22626d(0x1ad)](_0x22626d(0x187),()=>{const _0x493e22=_0x22626d;_0x4845d9(this[_0x493e22(0x178)],_0x58f3cb);});});}}function _0x213d(){const _0x4c8095=['getAttribute','add','\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','data-uc-image-id','model','uploader-','upcast','extend','ctxElement','afterInit','6281072NfZopu','href','input[uploadcare-file-input]','editing','_initImageProcessingIndicator','appendChild','view','12yOkMJo','execute','body','conversion','1538gxQSFl','join','schema','configElement','_configElement','once','config','11oXTQUM','15154008OxLINy','_ctxElement','UploadcareEditing','_initConversion','true','6934745DBCGgg','imageInline','ucContextId','attributeToAttribute','insertImage','uc-upload-ctx-provider','iconHrefResolver','destroy','removeAttribute','6erzoND','commands','_initCtx','replaceImageSource','get','downcast','closeMax','cleanupImage','init','pluginName','uploadcare','uploadcareImageReplace','remove','uploadcareImageId','isOfficialPlugin','_initSchema','14332930IwuZbm','editor','listenTo','984sKoXNO','fromCharCode','isRegistered','contentLanguage','uc-config','1084dvxmOA','selection','uploadcare.uploader','for','elementToAttribute','imageBlock','544416HLXQCD','map','render','locale','getSelectedElement','isPremiumPlugin','querySelector','_initConfig','requires','uploadcare.pubkey','#uc-icon-arrow-down','PictureEditing','30321XwHGPb','document'];_0x213d=function(){return _0x4c8095;};return _0x213d();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x122b58,ObservableMixin as _0x1c5fd3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x332d1b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5d96a6}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3f8c89}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xd8deb1}from'../../utils/uploadutils.js';import{getImageUrls as _0x34c4d0,getImageDimension as _0x3a84ab}from'../../utils/editingutils.js';import{isAncestor as _0x7c1744}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c5fd3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x7c9b11,_0x56ceee,_0x3e922e){super(),this['_editor']=_0x7c9b11,this['_dialog']=_0x56ceee,this['_imageElement']=_0x3e922e,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 _0x5bacd8=this['_imageElement'],_0x46fb2d=_0x5bacd8['getAttribute']('uploadcareImageId'),_0x322e6d=_0x5bacd8['getAttribute']('src');if(_0x46fb2d)await this['_loadImageInfo'](_0x46fb2d,_0x322e6d);else{if(this['_imageCache']['has'](_0x322e6d)){const _0x453cfa=this['_imageCache']['get'](_0x322e6d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x453cfa['url'],this['imageDimension']=_0x453cfa['dimension'],this['imageId']=_0x453cfa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ed961}=this['_editor'],t=_0x1ed961['t'],_0x54d5e1=new _0x3f8c89(_0x1ed961,this['imageStatus'],this['_attributes']);_0x54d5e1['bind']('status')['to'](this,'imageStatus'),_0x54d5e1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54d5e1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54d5e1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54d5e1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d96a6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54d5e1,'position':_0x332d1b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54d5e1['focus']();},'onHide':()=>{_0x54d5e1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x220558=>!_0x7c1744(_0x220558,_0x54d5e1['element'])}});}['_loadImageInfo'](_0x17d31d,_0x3fa39b){return _0xd8deb1['getInfo'](_0x17d31d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x406f7b=>{const {width:_0x47e8cb,height:_0x577ca7}=_0x406f7b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fa39b,this['imageDimension']={'width':_0x47e8cb,'height':_0x577ca7},this['imageId']=_0x17d31d;})['catch'](_0x58b016=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58b016['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37ac74,_0x20cf71){return this['_getImageAsFile'](_0x37ac74)['then'](_0x5915bb=>_0xd8deb1['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':_0x20cf71['signal'],'file':_0x5915bb,'onProgress':_0x307f0a=>{_0x307f0a&&_0x307f0a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x307f0a['value']));}}))['then'](_0x63d460=>{const {width:_0x5ede66,height:_0x238d54}=_0x63d460['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x63d460['cdnUrl'],this['imageDimension']={'width':_0x5ede66,'height':_0x238d54},this['imageId']=_0x63d460['uuid'],this['imageUploadProgress']=null;const _0x27579b=_0x37ac74['getAttribute']('src');this['_imageCache']['set'](_0x27579b,{'id':_0x63d460['uuid'],'url':_0x63d460['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x749170=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x749170['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x40615e,_0x14a389){_0x40615e['on']('apply',(_0x43631c,_0xdb0241)=>{this['_replaceImage'](_0x14a389,_0xdb0241['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x40615e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x40615e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x46f41b,_0x2ed761,_0x4ec168){const _0x27e909=this['_editor'],{width:_0x439ea0,height:_0x5c5f14}=_0x3a84ab(_0x2ed761,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x209946,imageSources:_0x53ac0f}=_0x34c4d0(_0x2ed761,_0x439ea0);_0x27e909['model']['change'](_0xa368cb=>{if('$graveyard'===_0x46f41b['root']['rootName']){_0x27e909['execute']('insertImage',{'imageType':_0x46f41b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x46f41b['getAttributes']()),'uploadcareImageId':_0x4ec168,'src':_0x209946,'sources':_0x53ac0f,'width':_0x439ea0,'height':_0x5c5f14}});const _0x4d794a=_0x46f41b['getChildren']();_0x46f41b=_0x27e909['model']['document']['selection']['getSelectedElement']();for(const _0x322344 of _0x4d794a)_0xa368cb['append'](_0xa368cb['cloneElement'](_0x322344),_0x46f41b);}else _0xa368cb['setSelection'](_0x46f41b,'on'),_0x27e909['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x46f41b['getAttributes']()),'uploadcareImageId':_0x4ec168,'src':_0x209946,'sources':_0x53ac0f,'width':_0x439ea0,'height':_0x5c5f14},_0x46f41b);_0xa368cb['setSelection'](_0x46f41b,'on');});}async['_getImageAsFile'](_0x5b7325){const _0x135a7a=_0x122b58['window'],_0x269a48=_0x122b58['document']['location']['href'],_0x28ccc3=new _0x135a7a['URL'](_0x5b7325['getAttribute']('src'),_0x269a48);if('data:'===_0x28ccc3['protocol']){const _0x341433=_0x28ccc3['href']['split'](','),_0x571e52=_0x341433[0x0]['match'](/:(.*?);/)[0x1],_0x53b151=_0x571e52['split']('/')[0x1],_0x3a43f9=_0x135a7a['atob'](_0x341433[_0x341433['length']-0x1]);let _0xc7d929=_0x3a43f9['length'];const _0x25ad74=new _0x135a7a['Uint8Array'](_0xc7d929);for(;_0xc7d929--;)_0x25ad74[_0xc7d929]=_0x3a43f9['charCodeAt'](_0xc7d929);return new _0x135a7a['File']([_0x25ad74],'image.'+_0x53b151,{'type':_0x571e52});}const _0x4e8eb7=_0x28ccc3['href']['split']('/'),_0x45f7da=_0x4e8eb7[_0x4e8eb7['length']-0x1],_0xa048eb=_0x45f7da['split']('.')[0x1];return _0x135a7a['fetch'](_0x28ccc3['href'])['then'](_0x370bb9=>_0x370bb9['clone']()['blob']())['then'](_0x191731=>new _0x135a7a['File']([_0x191731],_0x45f7da,{'type':'image/'+_0xa048eb}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4e4c(_0x17d8df,_0x414b6e){const _0x3b32f8=_0x3b32();return _0x4e4c=function(_0x4e4c0d,_0x259208){_0x4e4c0d=_0x4e4c0d-0x1e6;let _0x9359fc=_0x3b32f8[_0x4e4c0d];return _0x9359fc;},_0x4e4c(_0x17d8df,_0x414b6e);}(function(_0x1dcd5a,_0x366e9d){const _0x1e5f92=_0x4e4c,_0x1e5667=_0x1dcd5a();while(!![]){try{const _0xfc027d=-parseInt(_0x1e5f92(0x1ee))/0x1*(-parseInt(_0x1e5f92(0x1f7))/0x2)+parseInt(_0x1e5f92(0x1e7))/0x3+-parseInt(_0x1e5f92(0x1f9))/0x4*(-parseInt(_0x1e5f92(0x1eb))/0x5)+-parseInt(_0x1e5f92(0x1e6))/0x6+-parseInt(_0x1e5f92(0x1f4))/0x7*(parseInt(_0x1e5f92(0x1ef))/0x8)+parseInt(_0x1e5f92(0x1f3))/0x9*(-parseInt(_0x1e5f92(0x1ea))/0xa)+-parseInt(_0x1e5f92(0x1f6))/0xb*(-parseInt(_0x1e5f92(0x1e9))/0xc);if(_0xfc027d===_0x366e9d)break;else _0x1e5667['push'](_0x1e5667['shift']());}catch(_0x3d8dea){_0x1e5667['push'](_0x1e5667['shift']());}}}(_0x3b32,0xc1de9));function _0x3b32(){const _0x2da114=['84908DPPMbT','4423650PhboRZ','1881528dRwbrL','image-edit','12UOBddq','360KhzQzu','205wSKebk','set','ck-uploadcare-theme','3MPyFcm','24qMQXyh','setTemplate','uc-cloud-image-editor','uc-light','199431asAGEy','2652965bXiJlw','imageSrc','4941343XcTENS','1012918dBxkgR','bindTemplate'];_0x3b32=function(){return _0x2da114;};return _0x3b32();}import{View as _0x3b16f5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3b16f5{constructor(_0x5243b2,_0x12a7bb){const _0x5def19=_0x4e4c;super(_0x5243b2);const _0x50f709=this[_0x5def19(0x1f8)];this[_0x5def19(0x1ec)](_0x5def19(0x1f5),''),this[_0x5def19(0x1f0)]({'tag':_0x5def19(0x1f1),'attributes':{..._0x12a7bb,'class':[_0x5def19(0x1f2),_0x5def19(0x1ed)],'ctx-name':_0x5def19(0x1e8),'cdn-url':_0x50f709['to'](_0x5def19(0x1f5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2d2db1}from'ckeditor5/src/icons.js';import{ButtonView as _0x15544f,IconView as _0x219666,View as _0x338555}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x338555{constructor(_0x3e85e3){super(_0x3e85e3);const t=_0x3e85e3['t'];this['set']('errorType',null);const _0x378e9b=new _0x15544f(_0x3e85e3);_0x378e9b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x378e9b['withText']=!0x0,_0x378e9b['class']='ck-button-action',_0x378e9b['on']('execute',()=>{this['fire']('retry');}),_0x378e9b['bind']('isVisible')['to'](this,'errorType',_0x59f1bc=>'NotFound'!==_0x59f1bc);const _0x217536=new _0x219666();_0x217536['content']=_0x2d2db1,_0x217536['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1a07d7=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':[_0x217536,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1a07d7['to']('errorType',_0x579b36=>t('NotFound'!==_0x579b36?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x378e9b]},{'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 _0x2a15d4,View as _0x1ae3dd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1ae3dd{constructor(_0x4f3efd){super(_0x4f3efd);const t=_0x4f3efd['t'],_0x5f58e3=this['bindTemplate'],_0x45a915=new _0x2a15d4();_0x45a915['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':[_0x45a915,{'text':_0x5f58e3['to']('imageUploadProgress',_0x254483=>t('Loading\x20image...')+'\x20('+(_0x254483||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 _0x3e577f=_0x5e95;function _0x5e95(_0x1eff3a,_0x1f32d2){const _0x16ba74=_0x16ba();return _0x5e95=function(_0x5e9574,_0x220e3d){_0x5e9574=_0x5e9574-0xec;let _0x25024f=_0x16ba74[_0x5e9574];return _0x25024f;},_0x5e95(_0x1eff3a,_0x1f32d2);}(function(_0x5da342,_0x520095){const _0x30df51=_0x5e95,_0x4e151f=_0x5da342();while(!![]){try{const _0x554b89=parseInt(_0x30df51(0x101))/0x1*(-parseInt(_0x30df51(0x121))/0x2)+-parseInt(_0x30df51(0xf2))/0x3*(parseInt(_0x30df51(0x11c))/0x4)+-parseInt(_0x30df51(0x10c))/0x5+parseInt(_0x30df51(0xfe))/0x6+-parseInt(_0x30df51(0xf7))/0x7+parseInt(_0x30df51(0xee))/0x8*(parseInt(_0x30df51(0xfd))/0x9)+parseInt(_0x30df51(0xff))/0xa;if(_0x554b89===_0x520095)break;else _0x4e151f['push'](_0x4e151f['shift']());}catch(_0x49c42a){_0x4e151f['push'](_0x4e151f['shift']());}}}(_0x16ba,0x35ee5));import{View as _0x42a75c}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2959b0}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3be5cf}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1c6c17}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5bd5e3}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x16ba(){const _0x390cce=['_loadingView','_errorView','createCollection','_addErrorViewListeners','uc-cloud-image-editor','_items','status','_setView','querySelector','change:status','setTemplate','uploading','11056rdqStn','toLowerCase','addedNodes','detail','apply','31308sKySTQ','getFocusableElement','_waitForImageEditorComponent','render','984056qEJbSD','set','_addUploadcareImageEditorListeners','element','201tUZfiR','nodeName','focus','addEventListener','addMany','1089207aDEGmm','disconnect','clear','target','length','cancel','27qnuqov','881226NicjNr','2391210GIFEiD','_editingView','2IAaRXH','observe','ck-uploadcare-form','error','_focusableView','div','ready','cdnUrl','ck-reset_all-excluded','filter','once','810075UtSeNp','retry','add','fire'];_0x16ba=function(){return _0x390cce;};return _0x16ba();}export class UploadcareImageEditFormView extends _0x5bd5e3{[_0x3e577f(0x115)];[_0x3e577f(0x110)];[_0x3e577f(0x111)];[_0x3e577f(0x100)];[_0x3e577f(0x105)];constructor(_0x2d73c6,_0x40c19f,_0x194c8d){const _0x3bfed0=_0x3e577f;super(_0x2d73c6),this[_0x3bfed0(0x115)]=this[_0x3bfed0(0x112)](),this[_0x3bfed0(0x110)]=new _0x2959b0(_0x2d73c6),this[_0x3bfed0(0x111)]=new _0x3be5cf(_0x2d73c6),this[_0x3bfed0(0x100)]=new _0x1c6c17(_0x2d73c6,_0x194c8d),this[_0x3bfed0(0x105)]=new _0x42a75c(_0x2d73c6),this[_0x3bfed0(0x105)][_0x3bfed0(0x11a)](this[_0x3bfed0(0x122)]()),this[_0x3bfed0(0xef)](_0x3bfed0(0x116),_0x40c19f),this[_0x3bfed0(0x11a)]({'tag':_0x3bfed0(0x106),'attributes':{'class':['ck',_0x3bfed0(0x109),_0x3bfed0(0x103)],'tabindex':'-1'},'children':this[_0x3bfed0(0x115)]}),this[_0x3bfed0(0x117)](),this[_0x3bfed0(0x10b)](_0x3bfed0(0xed),()=>{const _0xa3139=_0x3bfed0;this[_0xa3139(0xec)](this[_0xa3139(0xf1)],_0x205534=>{const _0x4f0029=_0xa3139;this[_0x4f0029(0xf0)](_0x205534);});}),this['on'](_0x3bfed0(0x119),()=>{const _0x4d414d=_0x3bfed0;this[_0x4d414d(0x117)]();}),this[_0x3bfed0(0x113)]();}[_0x3e577f(0xf4)](){const _0x3a6205=_0x3e577f;this[_0x3a6205(0xf1)][_0x3a6205(0xf4)]();}[_0x3e577f(0x117)](){const _0x138387=_0x3e577f;switch(this[_0x138387(0x115)][_0x138387(0xf9)](),this[_0x138387(0x116)]){case _0x138387(0x11b):this[_0x138387(0x115)][_0x138387(0x10e)](this[_0x138387(0x110)]);break;case _0x138387(0x104):this[_0x138387(0x115)][_0x138387(0x10e)](this[_0x138387(0x111)]);break;case _0x138387(0x107):this[_0x138387(0x115)][_0x138387(0xf6)]([this[_0x138387(0x100)],this[_0x138387(0x105)]]);}}[_0x3e577f(0xec)](_0x2f1086,_0x58940a){const _0x8d6b39=_0x3e577f,_0x581a2e=_0x8d6b39(0x114),_0x1eb6d3=_0x2f1086[_0x8d6b39(0x118)](_0x581a2e);if(_0x1eb6d3)return _0x58940a(_0x1eb6d3);const _0x2ed321=new MutationObserver(_0x23ee2e=>{const _0x2519cc=_0x8d6b39,_0x44d20f=_0x23ee2e[_0x2519cc(0x10a)](_0x5b4cd9=>_0x5b4cd9[_0x2519cc(0xfa)]===_0x2f1086&&_0x5b4cd9[_0x2519cc(0x11e)][_0x2519cc(0xfb)]>0x0&&_0x5b4cd9[_0x2519cc(0x11e)][0x0][_0x2519cc(0xf3)][_0x2519cc(0x11d)]()===_0x581a2e);_0x44d20f[_0x2519cc(0xfb)]&&(_0x2ed321[_0x2519cc(0xf8)](),_0x58940a(_0x44d20f[0x0][_0x2519cc(0x11e)][0x0]));});_0x2ed321[_0x8d6b39(0x102)](_0x2f1086,{'childList':!0x0,'subtree':!0x0});}[_0x3e577f(0xf0)](_0x5250d1){const _0xdfc3f9=_0x3e577f;_0x5250d1[_0xdfc3f9(0xf5)](_0xdfc3f9(0x120),_0x203504=>{const _0x330dbc=_0xdfc3f9;this[_0x330dbc(0x10f)](_0x330dbc(0x120),{'imageSrc':_0x203504[_0x330dbc(0x11f)][_0x330dbc(0x108)]});}),_0x5250d1[_0xdfc3f9(0xf5)](_0xdfc3f9(0xfc),()=>{const _0x2e08fc=_0xdfc3f9;this[_0x2e08fc(0x10f)](_0x2e08fc(0xfc));});}[_0x3e577f(0x113)](){const _0x58d3b9=_0x3e577f;this[_0x58d3b9(0x111)]['on'](_0x58d3b9(0x10d),()=>{const _0x3c7f59=_0x58d3b9;this[_0x3c7f59(0x10f)](_0x3c7f59(0x10d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4f01(){const _0x54f909=['151050ngrQZt','bind','get','document','imageInline','30tHQSKM','1501576iNCmwK','42gXVkjc','isActive','requires','imageBlock','selection','editor','config','234421uEuVGL','unbind','1488776RFNHNn','311124oRFOaj','model','element','230993TlRDXF','plugins','execute','refresh','isEnabled','1818sHiKkw','_isEditable','imageEditController','718saVGev','9SueyTe','uploadcare.allowExternalImagesEditing','set','getSelectedElement'];_0x4f01=function(){return _0x54f909;};return _0x4f01();}const _0x579a07=_0x252e;(function(_0xe84672,_0x437e25){const _0x512c66=_0x252e,_0x5489bd=_0xe84672();while(!![]){try{const _0x48a85b=parseInt(_0x512c66(0x82))/0x1+parseInt(_0x512c66(0x69))/0x2*(-parseInt(_0x512c66(0x87))/0x3)+parseInt(_0x512c66(0x74))/0x4+parseInt(_0x512c66(0x6e))/0x5+parseInt(_0x512c66(0x7f))/0x6*(-parseInt(_0x512c66(0x75))/0x7)+parseInt(_0x512c66(0x7e))/0x8*(parseInt(_0x512c66(0x6a))/0x9)+-parseInt(_0x512c66(0x73))/0xa*(parseInt(_0x512c66(0x7c))/0xb);if(_0x48a85b===_0x437e25)break;else _0x5489bd['push'](_0x5489bd['shift']());}catch(_0xc0302b){_0x5489bd['push'](_0x5489bd['shift']());}}}(_0x4f01,0x382c3));import{Command as _0x3a774f}from'ckeditor5/src/core.js';import{Dialog as _0x2bc66a}from'ckeditor5/src/ui.js';function _0x252e(_0x5d6e7e,_0x2814e3){const _0x4f014a=_0x4f01();return _0x252e=function(_0x252e1e,_0x171521){_0x252e1e=_0x252e1e-0x69;let _0x1f8832=_0x4f014a[_0x252e1e];return _0x1f8832;},_0x252e(_0x5d6e7e,_0x2814e3);}import{UploadcareImageEditController as _0x4da785}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x458714}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3a774f{[_0x579a07(0x89)];static get[_0x579a07(0x77)](){return[_0x2bc66a];}[_0x579a07(0x88)];constructor(_0x77b686){const _0x4e366a=_0x579a07;super(_0x77b686),this[_0x4e366a(0x89)]=void 0x0,this[_0x4e366a(0x88)]=_0x458714(_0x77b686[_0x4e366a(0x7b)][_0x4e366a(0x70)](_0x4e366a(0x6b))||[]),this[_0x4e366a(0x6c)]({'isActive':!0x1});}[_0x579a07(0x85)](){const _0x3349ab=_0x579a07,_0x25de04=this[_0x3349ab(0x7a)][_0x3349ab(0x80)][_0x3349ab(0x71)][_0x3349ab(0x79)][_0x3349ab(0x6d)]();this[_0x3349ab(0x86)]=this[_0x3349ab(0x88)](_0x25de04);}[_0x579a07(0x84)](){const _0x1a3892=_0x579a07;this[_0x1a3892(0x89)]&&(this[_0x1a3892(0x7d)](_0x1a3892(0x76)),this[_0x1a3892(0x89)]=void 0x0);const _0x121d04=this[_0x1a3892(0x7a)][_0x1a3892(0x80)][_0x1a3892(0x71)][_0x1a3892(0x79)][_0x1a3892(0x6d)]();_0x121d04&&(_0x121d04['is'](_0x1a3892(0x81),_0x1a3892(0x78))||_0x121d04['is'](_0x1a3892(0x81),_0x1a3892(0x72)))&&(this[_0x1a3892(0x89)]=new _0x4da785(this[_0x1a3892(0x7a)],this[_0x1a3892(0x7a)][_0x1a3892(0x83)][_0x1a3892(0x70)](_0x2bc66a),_0x121d04),this[_0x1a3892(0x6f)](_0x1a3892(0x76))['to'](this[_0x1a3892(0x89)],_0x1a3892(0x76)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32f7da=_0x4e51;(function(_0x3caf40,_0x38578f){const _0x50f659=_0x4e51,_0x5898d8=_0x3caf40();while(!![]){try{const _0x4cb723=parseInt(_0x50f659(0xec))/0x1+parseInt(_0x50f659(0xf1))/0x2+-parseInt(_0x50f659(0xfd))/0x3*(-parseInt(_0x50f659(0xf5))/0x4)+-parseInt(_0x50f659(0xfe))/0x5*(parseInt(_0x50f659(0xf8))/0x6)+parseInt(_0x50f659(0xfc))/0x7*(-parseInt(_0x50f659(0xf2))/0x8)+-parseInt(_0x50f659(0xee))/0x9*(parseInt(_0x50f659(0xfb))/0xa)+-parseInt(_0x50f659(0xf9))/0xb*(-parseInt(_0x50f659(0xf6))/0xc);if(_0x4cb723===_0x38578f)break;else _0x5898d8['push'](_0x5898d8['shift']());}catch(_0x350bc7){_0x5898d8['push'](_0x5898d8['shift']());}}}(_0x218a,0xa4de2));import{Plugin as _0x92dd79}from'ckeditor5/src/core.js';import{Notification as _0x52198d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x34e284}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2f3368}from'./uploadcareimagereplacecommand.js';function _0x4e51(_0x2df4f8,_0x2ddff1){const _0x218aff=_0x218a();return _0x4e51=function(_0x4e515e,_0x1aa295){_0x4e515e=_0x4e515e-0xe8;let _0x4fcce4=_0x218aff[_0x4e515e];return _0x4fcce4;},_0x4e51(_0x2df4f8,_0x2ddff1);}import{UploadcareEditing as _0x24cd50}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x92dd79{static get[_0x32f7da(0xef)](){const _0x3ade21=_0x32f7da;return _0x3ade21(0xe9);}static get[_0x32f7da(0xf0)](){const _0x59d8e1=_0x32f7da;return[_0x24cd50,_0x52198d,_0x59d8e1(0xeb),_0x59d8e1(0xff)];}static get[_0x32f7da(0xe8)](){return!0x0;}static get[_0x32f7da(0xf4)](){return!0x0;}[_0x32f7da(0xf7)](){const _0x4161cd=_0x32f7da,{editor:_0x7829cf}=this;_0x7829cf[_0x4161cd(0xea)][_0x4161cd(0xfa)](_0x4161cd(0xed),new _0x34e284(_0x7829cf)),_0x7829cf[_0x4161cd(0xea)][_0x4161cd(0xfa)](_0x4161cd(0xf3),new _0x2f3368(_0x7829cf));}}function _0x218a(){const _0x24aa88=['3036720jRlzGo','1979929QkrHwv','3XvQREC','30gFBBfY','ImageEditing','isOfficialPlugin','UploadcareImageEditEditing','commands','ImageUtils','798542mcWUZX','uploadcareImageEdit','36PlxBEr','pluginName','requires','534138FsVpLn','8KEIhrA','uploadcareImageReplace','isPremiumPlugin','655364KsjNLo','1308gxgqTO','init','736854mRniID','169565eobSDq','add'];_0x218a=function(){return _0x24aa88;};return _0x218a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x25282e}from'ckeditor5/src/core.js';import{ButtonView as _0x2f9aeb}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3409e3}from'ckeditor5/src/icons.js';import{createElement as _0x232485}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 _0x25282e{['_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 _0x12be79=this['editor'];_0x12be79['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4435d1=>{const _0xc826f8=_0x12be79['commands']['get']('uploadcareImageEdit'),_0x29165a=new _0x2f9aeb(_0x4435d1),t=_0x4435d1['t'];return _0x29165a['set']({'icon':_0x3409e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x29165a['bind']('isEnabled')['to'](_0xc826f8),_0x29165a['bind']('isOn')['to'](_0xc826f8,'isActive'),this['listenTo'](_0x29165a,'execute',()=>{_0x12be79['execute']('uploadcareImageEdit'),_0x12be79['editing']['view']['focus']();}),_0x29165a;}),this['_initConfig']();}['_initConfig'](){const _0x17f618=_0x232485(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x17f618),this['listenTo'](this['editor'],'destroy',()=>{_0x17f618['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2927bf=_0x4ba7;(function(_0x545aa7,_0x229c0e){const _0x594dd3=_0x4ba7,_0x656ca9=_0x545aa7();while(!![]){try{const _0x3e5b84=parseInt(_0x594dd3(0x8d))/0x1*(parseInt(_0x594dd3(0x9b))/0x2)+parseInt(_0x594dd3(0x8b))/0x3+-parseInt(_0x594dd3(0x98))/0x4+-parseInt(_0x594dd3(0x9f))/0x5+parseInt(_0x594dd3(0x97))/0x6*(-parseInt(_0x594dd3(0x99))/0x7)+parseInt(_0x594dd3(0x96))/0x8+parseInt(_0x594dd3(0x9e))/0x9;if(_0x3e5b84===_0x229c0e)break;else _0x656ca9['push'](_0x656ca9['shift']());}catch(_0x35d3e4){_0x656ca9['push'](_0x656ca9['shift']());}}}(_0x205b,0x414cf));function _0x4ba7(_0xf1712c,_0x4329d6){const _0x205bad=_0x205b();return _0x4ba7=function(_0x4ba77b,_0x196f36){_0x4ba77b=_0x4ba77b-0x87;let _0x44c8eb=_0x205bad[_0x4ba77b];return _0x44c8eb;},_0x4ba7(_0xf1712c,_0x4329d6);}function _0x205b(){const _0x5b1ca6=['execute','refresh','1807664nxQEvR','1366158XaInDt','764064pFIkUJ','7frxxjx','imageInline','6362qmgtLk','editor','removeAttribute','1042542jvwLxu','976785CkUIes','model','srcset','setAttributes','document','788982NsTVhk','sizes','87fDfnLG','element','change','selection','getSelectedElement','isEnabled','imageBlock'];_0x205b=function(){return _0x5b1ca6;};return _0x205b();}import{Command as _0x534045}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x534045{[_0x2927bf(0x95)](){const _0x5a8c86=_0x2927bf,_0x63ca96=this[_0x5a8c86(0x9c)][_0x5a8c86(0x87)][_0x5a8c86(0x8a)][_0x5a8c86(0x90)][_0x5a8c86(0x91)]();this[_0x5a8c86(0x92)]=Boolean(_0x63ca96&&(_0x63ca96['is'](_0x5a8c86(0x8e),_0x5a8c86(0x93))||_0x63ca96['is'](_0x5a8c86(0x8e),_0x5a8c86(0x9a))));}[_0x2927bf(0x94)](_0x51ef26){const _0x2baf61=_0x2927bf,_0x5a80e3=this[_0x2baf61(0x9c)][_0x2baf61(0x87)][_0x2baf61(0x8a)][_0x2baf61(0x90)][_0x2baf61(0x91)]();this[_0x2baf61(0x9c)][_0x2baf61(0x87)][_0x2baf61(0x8f)](_0xa0a3ec=>{const _0xc1a3b2=_0x2baf61;_0xa0a3ec[_0xc1a3b2(0x89)](_0x51ef26,_0x5a80e3),_0xa0a3ec[_0xc1a3b2(0x9d)](_0xc1a3b2(0x88),_0x5a80e3),_0xa0a3ec[_0xc1a3b2(0x9d)](_0xc1a3b2(0x8c),_0x5a80e3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ab17c=_0x160e;function _0x1890(){var _0x5ac11b=['isOfficialPlugin','609840efRqnM','pluginName','677910HUkheA','1759614TXJzIC','48zLZjYp','isPremiumPlugin','4471038voPEgq','UploadcareImageEdit','2762344NZnBAB','requires','586013dbdOms','117930tCywVF','7dAyTgS'];_0x1890=function(){return _0x5ac11b;};return _0x1890();}function _0x160e(_0x502ab7,_0x2d3b71){var _0x1890c1=_0x1890();return _0x160e=function(_0x160efb,_0x38855e){_0x160efb=_0x160efb-0x1e3;var _0x1d772c=_0x1890c1[_0x160efb];return _0x1d772c;},_0x160e(_0x502ab7,_0x2d3b71);}(function(_0x3adee8,_0x371ded){var _0x944c70=_0x160e,_0x2a87ea=_0x3adee8();while(!![]){try{var _0x2a0e4c=-parseInt(_0x944c70(0x1f0))/0x1+parseInt(_0x944c70(0x1e8))/0x2+parseInt(_0x944c70(0x1e6))/0x3+-parseInt(_0x944c70(0x1ea))/0x4*(-parseInt(_0x944c70(0x1e3))/0x5)+parseInt(_0x944c70(0x1e9))/0x6*(parseInt(_0x944c70(0x1e4))/0x7)+parseInt(_0x944c70(0x1ee))/0x8+-parseInt(_0x944c70(0x1ec))/0x9;if(_0x2a0e4c===_0x371ded)break;else _0x2a87ea['push'](_0x2a87ea['shift']());}catch(_0x53aee1){_0x2a87ea['push'](_0x2a87ea['shift']());}}}(_0x1890,0x5d06a));import{Plugin as _0x6133e0}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x397873}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x4470df}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x6133e0{static get[_0x3ab17c(0x1e7)](){var _0x4e3e52=_0x3ab17c;return _0x4e3e52(0x1ed);}static get[_0x3ab17c(0x1ef)](){return[_0x397873,_0x4470df];}static get[_0x3ab17c(0x1e5)](){return!0x0;}static get[_0x3ab17c(0x1eb)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1478d9=_0x1317;function _0x38a9(){const _0x249df9=['13256XtwTQt','plugins','bind','UploadcareUI','expired','assetManager','entries','2sSgbXj','domainLimit','upload','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyNotAllowed','config','tooltip','998541rfkcHA','uploadcareLicenseKeyExpired','Facebook','Local','isImageSelected','destroy','execute','Replace','GDrive','isPremiumPlugin','GPhotos','url','isOfficialPlugin','ImageInsertUI','icon','invalid','push','11aAJCmq','69191grPNmo','_licenseKeyCheckInterval','uploadcareLicenseKeyEvaluationLimit','featureNotAllowed','reduce','_createMenuBarButtons','type','648177MhzAdy','withText','text','_createDropdownButtons','Dropbox','_createToolbarButton','pluginName','Uploadcare','_normalizeConfigSourceList','usageLimit','evaluationLimit','editor','has','commands','12ltDdhy','init','Insert','_showLicenseError','registerIntegration','map','licenseKey','6333170ZkoiBC','shortText','_createButton','isEnabled','OneDrive','get','afterInit','_getIntegrationKey','label','URL','forEach','locale','uploadcareLicenseKeyUsageLimit','3655kPtAza','uploadcare.uploader.sourceList','11502792syJTnr','4062KdYwIm','uploadcareLicenseKeyValid','uploadcare','105AuAtEn','uploadcareLicenseKeyInvalid'];_0x38a9=function(){return _0x249df9;};return _0x38a9();}(function(_0x304dda,_0x479dbf){const _0x1f5d28=_0x1317,_0x126729=_0x304dda();while(!![]){try{const _0x5033b2=-parseInt(_0x1f5d28(0xfd))/0x1*(-parseInt(_0x1f5d28(0x135))/0x2)+-parseInt(_0x1f5d28(0x104))/0x3*(parseInt(_0x1f5d28(0x112))/0x4)+parseInt(_0x1f5d28(0x126))/0x5*(parseInt(_0x1f5d28(0x129))/0x6)+-parseInt(_0x1f5d28(0x12c))/0x7*(parseInt(_0x1f5d28(0x12e))/0x8)+parseInt(_0x1f5d28(0x13c))/0x9+parseInt(_0x1f5d28(0x119))/0xa*(-parseInt(_0x1f5d28(0xfc))/0xb)+parseInt(_0x1f5d28(0x128))/0xc;if(_0x5033b2===_0x479dbf)break;else _0x126729['push'](_0x126729['shift']());}catch(_0x485e23){_0x126729['push'](_0x126729['shift']());}}}(_0x38a9,0x4fe4c));import{Plugin as _0x503f8d}from'ckeditor5/src/core.js';function _0x1317(_0x4c9e82,_0x25845e){const _0x38a9ae=_0x38a9();return _0x1317=function(_0x1317d3,_0x25ce99){_0x1317d3=_0x1317d3-0xf8;let _0x2b5338=_0x38a9ae[_0x1317d3];return _0x2b5338;},_0x1317(_0x4c9e82,_0x25845e);}import{IconDropbox as _0x4122c9,IconFacebook as _0x2113c7,IconGoogleDrive as _0x515b27,IconGooglePhotos as _0x1f6eb2,IconUploadcareImageUpload as _0x4403f7,IconUploadcareLink as _0x38f83b,IconOneDrive as _0xca1231}from'ckeditor5/src/icons.js';import{ButtonView as _0x180897,MenuBarMenuListItemButtonView as _0x33a4e5}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2361ab}from'./uploadcareconfig.js';import{getTranslation as _0x4c46ca}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 _0x503f8d{[_0x1478d9(0x118)];[_0x1478d9(0xfe)];static get[_0x1478d9(0x10a)](){const _0x44dc6f=_0x1478d9;return _0x44dc6f(0x131);}static get[_0x1478d9(0x148)](){return!0x0;}static get[_0x1478d9(0x145)](){return!0x0;}[_0x1478d9(0x113)](){const _0x4e48bb=_0x1478d9;this[_0x4e48bb(0x118)]=this[_0x4e48bb(0x10f)][_0x4e48bb(0x13a)][_0x4e48bb(0x11e)](_0x4e48bb(0x118));const _0x3962c2=this[_0x4e48bb(0x10f)];this[_0x4e48bb(0xfe)]=setInterval(()=>{const _0x5ea072=_0x4e48bb;let _0xef5023;for(const _0x19a1f9 in _0x3962c2){const _0x36193c=_0x19a1f9,_0x13b18f=_0x3962c2[_0x36193c];if(_0x5ea072(0x12a)==_0x13b18f||_0x5ea072(0x12d)==_0x13b18f||_0x5ea072(0x13d)==_0x13b18f||_0x5ea072(0x138)==_0x13b18f||_0x5ea072(0x139)==_0x13b18f||_0x5ea072(0xff)==_0x13b18f||_0x5ea072(0x125)==_0x13b18f){delete _0x3962c2[_0x36193c],_0xef5023=_0x13b18f,clearInterval(this[_0x5ea072(0xfe)]),this[_0x5ea072(0xfe)]=void 0x0;break;}}_0x5ea072(0x12d)==_0xef5023&&_0x3962c2[_0x5ea072(0x115)](_0x5ea072(0xfa)),_0x5ea072(0x13d)==_0xef5023&&_0x3962c2[_0x5ea072(0x115)](_0x5ea072(0x132)),_0x5ea072(0x138)==_0xef5023&&_0x3962c2[_0x5ea072(0x115)](_0x5ea072(0x136)),_0x5ea072(0x139)==_0xef5023&&_0x3962c2[_0x5ea072(0x115)](_0x5ea072(0x100),_0x5ea072(0x10b)),_0x5ea072(0xff)==_0xef5023&&_0x3962c2[_0x5ea072(0x115)](_0x5ea072(0x10e)),_0x5ea072(0x125)==_0xef5023&&_0x3962c2[_0x5ea072(0x115)](_0x5ea072(0x10d));},0x3e8);}[_0x1478d9(0x11f)](){const _0x1bc095=_0x1478d9,{editor:_0x44a2d2}=this,_0x18285d=_0x44a2d2[_0x1bc095(0x111)][_0x1bc095(0x11e)](_0x1bc095(0x12b));if(!_0x18285d)return;const _0x1ed3ae=this[_0x1bc095(0x10c)](_0x44a2d2[_0x1bc095(0x13a)][_0x1bc095(0x11e)](_0x1bc095(0x127)))[_0x1bc095(0x101)]((_0x18c928,_0x32ab7f)=>{const _0x1456cd=_0x1bc095,_0x10adde=this[_0x1456cd(0x120)](_0x32ab7f[_0x1456cd(0x103)]);return _0x18c928[_0x10adde]||(_0x18c928[_0x10adde]=[]),_0x18c928[_0x10adde][_0x1456cd(0xfb)](_0x32ab7f),_0x18c928;},{});_0x44a2d2[_0x1bc095(0x12f)][_0x1bc095(0x110)](_0x1bc095(0xf8))&&_0x44a2d2[_0x1bc095(0x111)][_0x1bc095(0x11e)](_0x1bc095(0x12b))&&Object[_0x1bc095(0x134)](_0x1ed3ae)[_0x1bc095(0x123)](([_0x1c6c3c,_0x5bf019])=>{const _0x4ec283=_0x1bc095;_0x44a2d2[_0x4ec283(0x12f)][_0x4ec283(0x11e)](_0x4ec283(0xf8))[_0x4ec283(0x116)]({'name':_0x1c6c3c,'observable':()=>_0x18285d,'buttonViewCreator':()=>this[_0x4ec283(0x109)](_0x5bf019),'formViewCreator':()=>this[_0x4ec283(0x107)](_0x5bf019),'menuBarButtonViewCreator':()=>this[_0x4ec283(0x102)](_0x5bf019),'override':_0x4ec283(0x133)!==_0x1c6c3c});});}[_0x1478d9(0x141)](){const _0x5def19=_0x1478d9;super[_0x5def19(0x141)](),this[_0x5def19(0xfe)]&&clearInterval(this[_0x5def19(0xfe)]);}[_0x1478d9(0x10c)](_0x4dce42){const _0x2b8d58=_0x1478d9,{locale:_0x123210}=this[_0x2b8d58(0x10f)];return _0x4dce42[_0x2b8d58(0x117)](_0x64da24=>{const _0x57e9a7=_0x2b8d58,_0x38e90c=_0x4c46ca(_0x123210,_0x64da24,_0x57e9a7(0x114));switch(_0x64da24){case _0x2361ab[_0x57e9a7(0x13f)]:return{'icon':_0x4403f7,'type':_0x2361ab[_0x57e9a7(0x13f)],..._0x38e90c};case _0x2361ab[_0x57e9a7(0x122)]:return{'icon':_0x38f83b,'type':_0x2361ab[_0x57e9a7(0x122)],..._0x38e90c};case _0x2361ab[_0x57e9a7(0x108)]:return{'icon':_0x4122c9,'type':_0x2361ab[_0x57e9a7(0x108)],..._0x38e90c};case _0x2361ab[_0x57e9a7(0x13e)]:return{'icon':_0x2113c7,'type':_0x2361ab[_0x57e9a7(0x13e)],..._0x38e90c};case _0x2361ab[_0x57e9a7(0x144)]:return{'icon':_0x515b27,'type':_0x2361ab[_0x57e9a7(0x144)],..._0x38e90c};case _0x2361ab[_0x57e9a7(0x146)]:return{'icon':_0x1f6eb2,'type':_0x2361ab[_0x57e9a7(0x146)],..._0x38e90c};case _0x2361ab[_0x57e9a7(0x11d)]:return{'icon':_0xca1231,'type':_0x2361ab[_0x57e9a7(0x11d)],..._0x38e90c};}});}[_0x1478d9(0x120)](_0x1c9035){const _0x5dc379=_0x1478d9;switch(_0x1c9035){case _0x2361ab[_0x5dc379(0x13f)]:return _0x5dc379(0x137);case _0x2361ab[_0x5dc379(0x122)]:return _0x5dc379(0x147);default:return _0x5dc379(0x133);}}[_0x1478d9(0x11b)](_0x1307b6,_0x20a059){const _0x5a3af5=_0x1478d9,_0x36a3a3=this[_0x5a3af5(0x10f)],_0x24fbac=new _0x1307b6(_0x36a3a3[_0x5a3af5(0x124)]),_0x144925=_0x36a3a3[_0x5a3af5(0x111)][_0x5a3af5(0x11e)](_0x5a3af5(0x12b));return _0x24fbac[_0x5a3af5(0x130)](_0x5a3af5(0x11c))['to'](_0x144925),_0x24fbac['on'](_0x5a3af5(0x142),()=>{const _0x2ebb02=_0x5a3af5;_0x144925[_0x2ebb02(0x142)](_0x20a059);}),_0x24fbac;}[_0x1478d9(0x109)](_0x268b08){const _0x2451f7=_0x1478d9,{locale:_0x3f1e44}=this[_0x2451f7(0x10f)],_0x40e857=this[_0x2451f7(0x10f)][_0x2451f7(0x12f)][_0x2451f7(0x11e)](_0x2451f7(0xf8)),_0x48fb23=_0x268b08[0x0],_0x4d2e8a=this[_0x2451f7(0x11b)](_0x180897,_0x48fb23[_0x2451f7(0x103)]);return _0x4d2e8a[_0x2451f7(0xf9)]=_0x48fb23[_0x2451f7(0xf9)],_0x4d2e8a[_0x2451f7(0x130)](_0x2451f7(0x121))['to'](_0x40e857,_0x2451f7(0x140),_0x61cdd9=>_0x4c46ca(_0x3f1e44,_0x48fb23[_0x2451f7(0x103)],_0x61cdd9?_0x2451f7(0x143):_0x2451f7(0x114))[_0x2451f7(0x106)]),_0x4d2e8a[_0x2451f7(0x13b)]=!0x0,_0x4d2e8a;}[_0x1478d9(0x107)](_0x5da6dd){const _0x31d2c3=_0x1478d9,{locale:_0x38b17b}=this[_0x31d2c3(0x10f)],_0x2d2132=this[_0x31d2c3(0x10f)][_0x31d2c3(0x12f)][_0x31d2c3(0x11e)](_0x31d2c3(0xf8));return _0x5da6dd[_0x31d2c3(0x117)](_0x2500e7=>{const _0x47a4a8=_0x31d2c3,_0x1126ba=this[_0x47a4a8(0x11b)](_0x180897,_0x2500e7[_0x47a4a8(0x103)]);return _0x1126ba[_0x47a4a8(0x105)]=!0x0,_0x1126ba[_0x47a4a8(0xf9)]=_0x2500e7[_0x47a4a8(0xf9)],_0x1126ba[_0x47a4a8(0x130)](_0x47a4a8(0x121))['to'](_0x2d2132,_0x47a4a8(0x140),_0x17a1e7=>_0x4c46ca(_0x38b17b,_0x2500e7[_0x47a4a8(0x103)],_0x17a1e7?_0x47a4a8(0x143):_0x47a4a8(0x114))[_0x47a4a8(0x106)]),_0x1126ba;});}[_0x1478d9(0x102)](_0x4fea33){const _0xc13c3a=_0x1478d9;return _0x4fea33[_0xc13c3a(0x117)](_0x6f96a3=>{const _0xe33e2f=_0xc13c3a,_0x260f8d=this[_0xe33e2f(0x11b)](_0x33a4e5,_0x6f96a3[_0xe33e2f(0x103)]);return _0x260f8d[_0xe33e2f(0xf9)]=_0x6f96a3[_0xe33e2f(0xf9)],_0x260f8d[_0xe33e2f(0x121)]=_0x6f96a3[_0xe33e2f(0x11a)],_0x260f8d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5e8796}from'ckeditor5/src/core.js';import{FileRepository as _0x59610f}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x16eca3}from'./uploadcareediting.js';import{UploadUtils as _0x5eb597}from'./utils/uploadutils.js';import{getImageUrls as _0x379798}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5e8796{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x59610f,_0x16eca3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x123419=this['editor'];if(!!!_0x123419['config']['get']('uploadcare'))return;_0x123419['plugins']['get'](_0x59610f)['createUploadAdapter']=_0xb9db4b=>new Adapter(_0xb9db4b,_0x123419),_0x123419['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x439bd8,{imageElement:_0x264dae,data:_0x37a29d})=>{_0x123419['model']['change'](_0xb5eb54=>{_0xb5eb54['setAttribute']('uploadcareImageId',_0x37a29d['uploadcareImageId'],_0x264dae);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x4642e7,_0x3d5722){this['loader']=_0x4642e7,this['editor']=_0x3d5722,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2b962c=await this['loader']['file'];return _0x5eb597['upload']({'file':_0x2b962c,'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':_0x3e7da7=>{_0x3e7da7&&_0x3e7da7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e7da7['value']);}})['then'](async _0x1c7f54=>{const {imageFallbackUrl:_0x541cdb,imageSources:_0x26baa6}=_0x379798(_0x1c7f54['cdnUrl'],_0x1c7f54['imageInfo']['width']);return{'uploadcareImageId':_0x1c7f54['uuid'],'default':_0x541cdb,'sources':_0x26baa6};})['catch'](()=>{const _0x5f9455=t('Cannot\x20upload\x20file:')+('\x20'+_0x2b962c['name']+'.');return Promise['reject'](_0x5f9455);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x50bcae}from'../uploadcareconfig.js';export function getTranslation(_0xc81f15,_0x1b1b2f,_0x3d853f){const t=_0xc81f15['t'],_0x20f3b3=_0xc81f15['t'];switch(_0x1b1b2f){case _0x50bcae['Local']:return{'text':_0x20f3b3('Insert'===_0x3d853f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x20f3b3('From\x20computer')};case _0x50bcae['URL']:return{'text':'Insert'===_0x3d853f?_0x20f3b3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x20f3b3('Via\x20URL')};case _0x50bcae['Dropbox']:return{'text':t('Insert'===_0x3d853f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x50bcae['Facebook']:return{'text':t('Insert'===_0x3d853f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x50bcae['GDrive']:return{'text':t('Insert'===_0x3d853f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x50bcae['GPhotos']:return{'text':t('Insert'===_0x3d853f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x50bcae['OneDrive']:return{'text':t('Insert'===_0x3d853f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1b1b2f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4a0a81=_0x23f3;function _0x5a99(){var _0x33bdce=['createCollection','1632GAquJW','36LxCMDX','fire','27MlPoar','466404MKcBQR','focusTracker','4477310kfsNbz','true','46613nyKhIE','9689712rRFPhk','1750HgYOeV','getFocusableElement','forwardCycle','36IWcJob','4203860dWzczS','26848393NsgwPI','focusCycler','div','bindTemplate'];_0x5a99=function(){return _0x33bdce;};return _0x5a99();}(function(_0xdaae4e,_0x1f1cf1){var _0xf575fb=_0x23f3,_0x2395cf=_0xdaae4e();while(!![]){try{var _0x2e28ee=parseInt(_0xf575fb(0x127))/0x1*(parseInt(_0xf575fb(0x12c))/0x2)+parseInt(_0xf575fb(0x134))/0x3*(parseInt(_0xf575fb(0x123))/0x4)+parseInt(_0xf575fb(0x12d))/0x5+parseInt(_0xf575fb(0x133))/0x6*(-parseInt(_0xf575fb(0x129))/0x7)+-parseInt(_0xf575fb(0x128))/0x8+parseInt(_0xf575fb(0x136))/0x9*(parseInt(_0xf575fb(0x125))/0xa)+-parseInt(_0xf575fb(0x12e))/0xb;if(_0x2e28ee===_0x1f1cf1)break;else _0x2395cf['push'](_0x2395cf['shift']());}catch(_0x4d6602){_0x2395cf['push'](_0x2395cf['shift']());}}}(_0x5a99,0xab71a));function _0x23f3(_0x58bea6,_0x5b6c40){var _0x5a9972=_0x5a99();return _0x23f3=function(_0x23f3f8,_0x207a3f){_0x23f3f8=_0x23f3f8-0x123;var _0xb9ce1c=_0x5a9972[_0x23f3f8];return _0xb9ce1c;},_0x23f3(_0x58bea6,_0x5b6c40);}import{FocusTracker as _0x578ec7}from'ckeditor5/src/utils.js';import{View as _0x35d517,FocusCycler as _0x15b35d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x35d517{[_0x4a0a81(0x124)];[_0x4a0a81(0x12f)];constructor(_0x434246){var _0xaaa7b7=_0x4a0a81;super(_0x434246),this[_0xaaa7b7(0x124)]=new _0x578ec7(),this[_0xaaa7b7(0x12f)]=new _0x15b35d({'focusables':this[_0xaaa7b7(0x132)](),'focusTracker':this[_0xaaa7b7(0x124)]});}[_0x4a0a81(0x12a)](){var _0x438d8b=_0x4a0a81;return{'tag':_0x438d8b(0x130),'attributes':{'aria-hidden':_0x438d8b(0x126),'tabindex':'0'},'on':{'focus':this[_0x438d8b(0x131)]['to'](()=>{var _0x4f4c33=_0x438d8b;this[_0x4f4c33(0x12f)][_0x4f4c33(0x135)](_0x4f4c33(0x12b));})}};}}
|