@ckeditor/ckeditor5-uploadcare 46.1.1-alpha.3 → 46.1.1
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 _0x5afa72=_0x2e3a;(function(_0xe2dea7,_0x22bbb5){const _0x362cbb=_0x2e3a,_0x4ebe7c=_0xe2dea7();while(!![]){try{const _0x586b59=parseInt(_0x362cbb(0x1cc))/0x1+parseInt(_0x362cbb(0x200))/0x2+parseInt(_0x362cbb(0x21d))/0x3*(-parseInt(_0x362cbb(0x1f3))/0x4)+-parseInt(_0x362cbb(0x1e9))/0x5*(parseInt(_0x362cbb(0x212))/0x6)+-parseInt(_0x362cbb(0x21a))/0x7*(-parseInt(_0x362cbb(0x20d))/0x8)+parseInt(_0x362cbb(0x203))/0x9*(parseInt(_0x362cbb(0x1f5))/0xa)+parseInt(_0x362cbb(0x1fb))/0xb*(-parseInt(_0x362cbb(0x211))/0xc);if(_0x586b59===_0x22bbb5)break;else _0x4ebe7c['push'](_0x4ebe7c['shift']());}catch(_0x14461e){_0x4ebe7c['push'](_0x4ebe7c['shift']());}}}(_0x3c45,0x2b956));import{Plugin as _0x5720f9}from'ckeditor5/src/core.js';import{Dialog as _0x25cd1d}from'ckeditor5/src/ui.js';function _0x2e3a(_0x785aec,_0x4fceb7){const _0x3c45e2=_0x3c45();return _0x2e3a=function(_0x2e3a84,_0x27a014){_0x2e3a84=_0x2e3a84-0x1c7;let _0x1b601c=_0x3c45e2[_0x2e3a84];return _0x1b601c;},_0x2e3a(_0x785aec,_0x4fceb7);}import{createElement as _0x557634,global as _0x5a6d4e,uid as _0xbda6e4}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1924ae}from'./uploadcarecommand.js';function _0x3c45(){const _0x6b81c4=['isOfficialPlugin','pluginName','selection','uc-config','854584JSmQqj','href','isPremiumPlugin','join','578112PAFrsZ','860514aIMseT','_ctxElement','view','_initCtx','listenTo','uploadcare.uploader','elementToAttribute','configElement','21axGXIq','editor','uc-upload-ctx-provider','3zebAuR','for','ucContextId','editing','_initConversion','document','58331APHMKm','\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','config','locale','extend','querySelector','get','PictureEditing','once','getAttribute','UploadcareEditing','contentLanguage','model','imageBlock','_configElement','add','iconHrefResolver','ctxElement','map','_initConfig','imageInline','execute','closeMax','downcast','getSelectedElement','destroy','afterInit','cleanupImage','uploadcare.pubkey','5pLWjDa','commands','#uc-icon-arrow-down','_initImageProcessingIndicator','body','uploader-','uploadcareImageId','data-uc-image-id','upcast','fromCharCode','1232492jCmLas','uploadcareImageReplace','20dHZMXg','init','uploadcare','removeAttribute','appendChild','_initSchema','55dkkZuK','attributeToAttribute','schema','insertImage','requires','384236Deafdc','conversion','render','1350099vKhedt','input[uploadcare-file-input]','true','isRegistered','replaceImageSource','remove'];_0x3c45=function(){return _0x6b81c4;};return _0x3c45();}import{UploadcareUploadAdapter as _0x3d316e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x391cf0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5720f9{[_0x5afa72(0x1da)]=null;[_0x5afa72(0x213)]=null;static get[_0x5afa72(0x20a)](){const _0x3818b7=_0x5afa72;return _0x3818b7(0x1d6);}static get[_0x5afa72(0x1ff)](){const _0x3e9ec6=_0x5afa72;return[_0x3e9ec6(0x1d3),_0x3d316e,_0x25cd1d];}static get[_0x5afa72(0x209)](){return!0x0;}static get[_0x5afa72(0x20f)](){return!0x0;}[_0x5afa72(0x1c8)];get[_0x5afa72(0x219)](){const _0x1d87f3=_0x5afa72;return this[_0x1d87f3(0x1da)];}get[_0x5afa72(0x1dd)](){const _0x645f32=_0x5afa72;return this[_0x645f32(0x213)];}constructor(_0x5cc74d){const _0x47b442=_0x5afa72;super(_0x5cc74d),this[_0x47b442(0x1c8)]=_0xbda6e4();}[_0x5afa72(0x1f6)](){const _0x20573e=_0x5afa72,_0x13aa07=this[_0x20573e(0x21b)];_0x13aa07[_0x20573e(0x1ea)][_0x20573e(0x1db)](_0x20573e(0x1f7),new _0x1924ae(_0x13aa07));}[_0x5afa72(0x1e6)](){const _0x253cc1=_0x5afa72;this[_0x253cc1(0x1fa)](),this[_0x253cc1(0x1ca)](),this[_0x253cc1(0x1df)](),this[_0x253cc1(0x215)](),this[_0x253cc1(0x1ec)](),this[_0x253cc1(0x216)](this[_0x253cc1(0x21b)],_0x253cc1(0x1e5),()=>{const _0x5c01ad=_0x253cc1;this[_0x5c01ad(0x1da)]&&(this[_0x5c01ad(0x1da)][_0x5c01ad(0x208)](),this[_0x5c01ad(0x1da)]=null),this[_0x5c01ad(0x213)]&&(this[_0x5c01ad(0x213)][_0x5c01ad(0x208)](),this[_0x5c01ad(0x213)]=null);const _0x5181df=_0x5a6d4e[_0x5c01ad(0x1cb)][_0x5c01ad(0x1d1)](_0x5c01ad(0x204));_0x5181df&&_0x5181df[_0x5c01ad(0x208)]();}),async function(_0x1ec85f){const _0x205dd3=_0x5580d3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x488b19=0x3d8d0df,_0x2cd6d9=0x3dfa3af^_0x488b19,_0x47bd0a=window[_0x5580d3([0x44,0x61,0x74,0x65])][_0x5580d3([0x6e,0x6f,0x77])](),_0x4fa2d=_0x1ec85f[_0x5580d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4534ca=new window[(_0x5580d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x467995=>{_0x4fa2d[_0x5580d3([0x6f,0x6e,0x63,0x65])](_0x5580d3([0x72,0x65,0x61,0x64,0x79]),_0x467995);}),_0x5d2806={[_0x5580d3([0x6b,0x74,0x79])]:_0x5580d3([0x45,0x43]),[_0x5580d3([0x75,0x73,0x65])]:_0x5580d3([0x73,0x69,0x67]),[_0x5580d3([0x63,0x72,0x76])]:_0x5580d3([0x50,0x2d,0x32,0x35,0x36]),[_0x5580d3([0x78])]:_0x5580d3([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]),[_0x5580d3([0x79])]:_0x5580d3([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]),[_0x5580d3([0x61,0x6c,0x67])]:_0x5580d3([0x45,0x53,0x32,0x35,0x36])},_0x49f04f=_0x4fa2d[_0x5580d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5580d3([0x67,0x65,0x74])](_0x5580d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x426917(){let _0x8c9e17,_0x328f0b=null,_0x55e677=null;try{if(_0x49f04f==_0x5580d3([0x47,0x50,0x4c]))return _0x5580d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8c9e17=_0x2d5ba8(),!_0x8c9e17)return _0x5580d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8c9e17[_0x5580d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55e677=_0x30a6a2(_0x8c9e17[_0x5580d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8c9e17[_0x5580d3([0x6a,0x74,0x69])])),await _0x4686f2()?_0x4dd47b()?_0x48d8e3()?_0x5580d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e4f7c()?(_0x8c9e17[_0x5580d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5580d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x328f0b=_0x36235f(_0x5580d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8c9e17[_0x5580d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5580d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x328f0b=_0x36235f(_0x5580d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4455e4()):_0x5580d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5580d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5580d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5580d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48d8e3(){const _0x101db7=[_0x5580d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5580d3([0x74,0x72,0x69,0x61,0x6c])][_0x5580d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c9e17[_0x5580d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47bd0a/0x3e8:0xe10*_0x2cd6d9;return _0x8c9e17[_0x5580d3([0x65,0x78,0x70])]<_0x101db7;}function _0x4dd47b(){const _0x25b74d=_0x8c9e17[_0x5580d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25b74d&&(!!_0x25b74d[_0x5580d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5580d3([0x2a]))||!!_0x25b74d[_0x5580d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5580d3([0x55,0x50,0x4c,0x43])));}function _0x4e4f7c(){const _0x41675d=_0x2e3a,_0x4d7d5d=_0x8c9e17[_0x5580d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d7d5d||0x0==_0x4d7d5d[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x219afa}=new URL(window[_0x5580d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41675d(0x20e)]);if(_0x4d7d5d[_0x5580d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219afa))return!0x0;const _0x9ef68=_0x219afa[_0x5580d3([0x73,0x70,0x6c,0x69,0x74])](_0x5580d3([0x2e]));return _0x4d7d5d[_0x5580d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e509a=>_0x1e509a[_0x5580d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5580d3([0x2a])))[_0x5580d3([0x6d,0x61,0x70])](_0x763e0=>_0x763e0[_0x5580d3([0x73,0x70,0x6c,0x69,0x74])](_0x5580d3([0x2e])))[_0x5580d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11836c=>_0x11836c[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9ef68[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5580d3([0x6d,0x61,0x70])](_0x17ce5a=>Array(_0x9ef68[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17ce5a[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5580d3([0x66,0x69,0x6c,0x6c])](_0x17ce5a[0x0]===_0x5580d3([0x2a])?_0x5580d3([0x2a]):'')[_0x5580d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17ce5a))[_0x5580d3([0x73,0x6f,0x6d,0x65])](_0x54a261=>_0x9ef68[_0x5580d3([0x65,0x76,0x65,0x72,0x79])]((_0x41000c,_0x55362a)=>_0x54a261[_0x55362a]===_0x41000c||_0x54a261[_0x55362a]===_0x5580d3([0x2a])));}function _0x4455e4(){return _0x328f0b&&_0x55e677?new window[(_0x5580d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2916a7,_0x28777b)=>{_0x328f0b[_0x5580d3([0x74,0x68,0x65,0x6e])](_0x2916a7,_0x28777b),_0x55e677[_0x5580d3([0x74,0x68,0x65,0x6e])](_0x1c9652=>{_0x1c9652!=_0x5580d3([0x56,0x61,0x6c,0x69,0x64])&&_0x2916a7(_0x1c9652);},_0x28777b);}):_0x328f0b||_0x55e677||_0x5580d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30a6a2(_0x37e848,_0x4c99dd){return new window[(_0x5580d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1148cf=>{if(_0x42545c())return _0x1148cf(_0x5580d3([0x56,0x61,0x6c,0x69,0x64]));_0x3b6a6e(),_0x4fa2d[_0x5580d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5580d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x330b7a=!0x1;const _0xf3d53b=_0xbda6e4();function _0x5c74f0(_0x28d913){return!!_0x28d913&&(typeof _0x28d913===_0x5580d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28d913===_0x5580d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28d913[_0x5580d3([0x74,0x68,0x65,0x6e])]===_0x5580d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28d913[_0x5580d3([0x63,0x61,0x74,0x63,0x68])]===_0x5580d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37fcd3(_0x1d4084){_0x2d6f8a(_0x1d4084)[_0x5580d3([0x74,0x68,0x65,0x6e])](_0x3d3d4b=>{if(!_0x3d3d4b||_0x3d3d4b[_0x5580d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5580d3([0x6f,0x6b]))return _0x5580d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d9de6(_0x1bc484(_0xf3d53b+_0x4c99dd))!=_0x3d3d4b[_0x5580d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5580d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5580d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5580d3([0x74,0x68,0x65,0x6e])](_0x117a27=>(_0x36b335(),_0x117a27),()=>{const _0x273c52=_0x2e1085();return null==_0x273c52?(_0x36b335(),_0x5580d3([0x56,0x61,0x6c,0x69,0x64])):_0x5580d3(_0x47bd0a-_0x273c52>(0x27d454df^_0x488b19)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5580d3([0x74,0x68,0x65,0x6e])](_0x1148cf)[_0x5580d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1148cf(_0x5580d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb9e223=0x3ee3e5f^_0x488b19;function _0x36b335(){const _0x1b78d7=_0x5580d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d9de6(_0x1bc484(_0x37e848)),_0xd0ae66=_0x4012e6(_0x1d9de6(window[_0x5580d3([0x4d,0x61,0x74,0x68])][_0x5580d3([0x63,0x65,0x69,0x6c])](_0x47bd0a/_0xb9e223)));window[_0x5580d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5580d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b78d7,_0xd0ae66);}function _0x2e1085(){const _0x649ea0=_0x5580d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d9de6(_0x1bc484(_0x37e848)),_0x330326=window[_0x5580d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5580d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x649ea0);return _0x330326?window[_0x5580d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4012e6(_0x330326),0x10)*_0xb9e223:null;}function _0x2d6f8a(_0x3580d7){return new window[(_0x5580d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f0a82,_0x59728d)=>{_0x3580d7[_0x5580d3([0x74,0x68,0x65,0x6e])](_0x5f0a82,_0x59728d),window[_0x5580d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59728d,0x3d9041f^_0x488b19);});}}_0x4fa2d[_0x5580d3([0x6f,0x6e])](_0x5580d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c8468,_0x234b3c)=>{if(_0x234b3c[0x0]!=_0x37e848)return _0x1148cf(_0x5580d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x234b3c[0x1]={..._0x234b3c[0x1],[_0x5580d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf3d53b};},{[_0x5580d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5580d3([0x68,0x69,0x67,0x68])}),_0x4fa2d[_0x5580d3([0x6f,0x6e])](_0x5580d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b1de5=>{_0x5c74f0(_0x5b1de5[_0x5580d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x330b7a=!0x0,_0x37fcd3(_0x5b1de5[_0x5580d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5580d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5580d3([0x6c,0x6f,0x77])}),_0x4534ca[_0x5580d3([0x74,0x68,0x65,0x6e])](()=>{_0x330b7a||_0x1148cf(_0x5580d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42545c(){return _0x4fa2d[_0x5580d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5580d3([0x76,0x69,0x65,0x77])][_0x5580d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5580d3([0x61,0x75,0x74,0x6f]);}function _0x3b6a6e(){_0x4fa2d[_0x5580d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5580d3([0x76,0x69,0x65,0x77])][_0x5580d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5580d3([0x61,0x75,0x74,0x6f]);}}function _0x36235f(_0x4e70b9){const _0x4cadc2=[new window[(_0x5580d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442922=>setTimeout(_0x442922,0x3d1ee13^_0x488b19)),_0x4534ca[_0x5580d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5580d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110cd0=>{let _0x30f97b=0x0;_0x4fa2d[_0x5580d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5580d3([0x6f,0x6e])](_0x5580d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c8fdc,_0x4a7f1c)=>{_0x4a7f1c[0x0][_0x5580d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30f97b++,_0x30f97b==(0x3d8d127^_0x488b19)&&(_0x110cd0(),_0x3c8fdc[_0x5580d3([0x6f,0x66,0x66])]());});}))];return window[_0x5580d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5580d3([0x72,0x61,0x63,0x65])](_0x4cadc2)[_0x5580d3([0x74,0x68,0x65,0x6e])](()=>_0x4e70b9);}async function _0x5817d8(){await _0x4534ca,_0x4fa2d[_0x5580d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5580d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x330b37,_0x4fa2d[_0x5580d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5580d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x330b37,_0x4fa2d[_0x5580d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5580d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3edd3c(_0x43a24e){const _0x3b148d=_0x16fb6a();_0x4fa2d[_0x3b148d]=_0x5580d3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43a24e,_0x43a24e!=_0x5580d3([0x56,0x61,0x6c,0x69,0x64])&&_0x5817d8();}function _0x16fb6a(){const _0x46c9cf=window[_0x5580d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5580d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5580d3([0x6e,0x6f,0x77])]())[_0x5580d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5580d3([0x2e]),'');let _0x4d1c31=_0x5580d3([0x52]);for(let _0x15f400=0x0;_0x15f400<_0x46c9cf[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15f400+=0x2){let _0x4ff43c=window[_0x5580d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46c9cf[_0x5580d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15f400,_0x15f400+0x2));_0x4ff43c>=_0x205dd3[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ff43c-=_0x205dd3[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d1c31+=_0x205dd3[_0x4ff43c];}return _0x4d1c31;}function _0x2d5ba8(){const _0x4c3bff=_0x49f04f[_0x5580d3([0x73,0x70,0x6c,0x69,0x74])](_0x5580d3([0x2e]));if(0x3!=_0x4c3bff[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9b1547(_0x4c3bff[0x1]);function _0x9b1547(_0x44475f){const _0x1998fb=_0x50a882(_0x44475f);return _0x1998fb&&_0xf760aa()?_0x1998fb:null;function _0xf760aa(){const _0xc345a0=_0x1998fb[_0x5580d3([0x6a,0x74,0x69])],_0x135201=window[_0x5580d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc345a0[_0x5580d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc345a0[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cc5aa={..._0x1998fb,[_0x5580d3([0x6a,0x74,0x69])]:_0xc345a0[_0x5580d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc345a0[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cc5aa[_0x5580d3([0x76,0x63])],_0x1bc484(_0x5cc5aa)==_0x135201;}}}async function _0x4686f2(){let _0xc6f4ec=!0x0;try{const _0x158249=_0x49f04f[_0x5580d3([0x73,0x70,0x6c,0x69,0x74])](_0x5580d3([0x2e])),[_0x47962c,_0x8ac34e,_0x40db2b]=_0x158249;return _0x3c51c0(_0x47962c),await _0x513ba5(_0x47962c,_0x8ac34e,_0x40db2b),_0xc6f4ec;}catch{return!0x1;}function _0x3c51c0(_0x33d926){const _0x2f74c8=_0x50a882(_0x33d926);_0x2f74c8&&_0x2f74c8[_0x5580d3([0x61,0x6c,0x67])]==_0x5580d3([0x45,0x53,0x32,0x35,0x36])||(_0xc6f4ec=!0x1);}async function _0x513ba5(_0x3c4413,_0x35c219,_0x9a87c4){const _0x3ad04c=window[_0x5580d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5580d3([0x66,0x72,0x6f,0x6d])](_0x4f9356(_0x9a87c4),_0xc0c516=>_0xc0c516[_0x5580d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x181328=new window[(_0x5580d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5580d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c4413+_0x5580d3([0x2e])+_0x35c219),_0x35e70e=window[_0x5580d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5580d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35e70e)return;const _0x196d14=await _0x35e70e[_0x5580d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5580d3([0x6a,0x77,0x6b]),_0x5d2806,{[_0x5580d3([0x6e,0x61,0x6d,0x65])]:_0x5580d3([0x45,0x43,0x44,0x53,0x41]),[_0x5580d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5580d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5580d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35e70e[_0x5580d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5580d3([0x6e,0x61,0x6d,0x65])]:_0x5580d3([0x45,0x43,0x44,0x53,0x41]),[_0x5580d3([0x68,0x61,0x73,0x68])]:{[_0x5580d3([0x6e,0x61,0x6d,0x65])]:_0x5580d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x196d14,_0x3ad04c,_0x181328)||(_0xc6f4ec=!0x1);}}function _0x50a882(_0x28ec12){return _0x28ec12[_0x5580d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5580d3([0x65,0x79]))?JSON[_0x5580d3([0x70,0x61,0x72,0x73,0x65])](_0x4f9356(_0x28ec12)):null;}function _0x4f9356(_0x3b08de){return window[_0x5580d3([0x61,0x74,0x6f,0x62])](_0x3b08de[_0x5580d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5580d3([0x2b]))[_0x5580d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5580d3([0x2f])));}function _0x1bc484(_0x42b31d){let _0x1f8271=0x1505;function _0x44d4dd(_0x5759ad){for(let _0x2f1d1d=0x0;_0x2f1d1d<_0x5759ad[_0x5580d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f1d1d++){const _0xd49f34=_0x5759ad[_0x5580d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f1d1d);_0x1f8271=(_0x1f8271<<0x5)+_0x1f8271+_0xd49f34,_0x1f8271&=_0x1f8271;}}function _0x5c88d4(_0x2e5716){Array[_0x5580d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e5716)?_0x2e5716[_0x5580d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c88d4):_0x2e5716&&typeof _0x2e5716==_0x5580d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5580d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e5716)[_0x5580d3([0x73,0x6f,0x72,0x74])]()[_0x5580d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c91a3,_0x59a4ce])=>{_0x44d4dd(_0x4c91a3),_0x5c88d4(_0x59a4ce);}):_0x44d4dd(window[_0x5580d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e5716));}return _0x5c88d4(_0x42b31d),_0x1f8271>>>0x0;}function _0x1d9de6(_0x423617){return _0x423617[_0x5580d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5580d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5580d3([0x30]));}function _0x4012e6(_0x5bfc55){return _0x5bfc55[_0x5580d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5580d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5580d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x330b37(){}function _0x5580d3(_0x291da8){const _0x1738cb=_0x2e3a;return _0x291da8[_0x1738cb(0x1de)](_0x3919e3=>String[_0x1738cb(0x1f2)](_0x3919e3))[_0x1738cb(0x210)]('');}_0x3edd3c(await _0x426917());}(this);}[_0x5afa72(0x1fa)](){const _0x3957b5=_0x5afa72,_0x34228b=this[_0x3957b5(0x21b)][_0x3957b5(0x1d8)][_0x3957b5(0x1fd)];_0x34228b[_0x3957b5(0x206)](_0x3957b5(0x1d9))&&_0x34228b[_0x3957b5(0x1d0)](_0x3957b5(0x1d9),{'allowAttributes':[_0x3957b5(0x1ef)]}),_0x34228b[_0x3957b5(0x206)](_0x3957b5(0x1e0))&&_0x34228b[_0x3957b5(0x1d0)](_0x3957b5(0x1e0),{'allowAttributes':[_0x3957b5(0x1ef)]});}[_0x5afa72(0x1ca)](){const _0x4e3982=_0x5afa72,_0x1198fe=this[_0x4e3982(0x21b)];_0x1198fe[_0x4e3982(0x201)][_0x4e3982(0x1c7)](_0x4e3982(0x1e3))[_0x4e3982(0x1fc)]({'model':_0x4e3982(0x1ef),'view':_0x4e3982(0x1f0)}),_0x1198fe[_0x4e3982(0x201)][_0x4e3982(0x1c7)](_0x4e3982(0x1f1))[_0x4e3982(0x218)]({'model':{'key':_0x4e3982(0x1ef),'value':_0x5ce574=>_0x5ce574[_0x4e3982(0x1d5)](_0x4e3982(0x1f0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f6c14=_0x1198fe[_0x4e3982(0x1ea)][_0x4e3982(0x1d2)](_0x4e3982(0x207));_0x2f6c14&&this[_0x4e3982(0x216)](_0x2f6c14,_0x4e3982(0x1e7),(_0x390e8a,[_0x2028a2,_0x442338])=>{const _0x4db181=_0x4e3982;_0x2028a2[_0x4db181(0x1f8)](_0x4db181(0x1ef),_0x442338);});}[_0x5afa72(0x1df)](){const _0x51d7c7=_0x5afa72,_0x33e4cc=this[_0x51d7c7(0x21b)][_0x51d7c7(0x1ce)][_0x51d7c7(0x1d2)](_0x51d7c7(0x217))||{},_0x2aebbb=this[_0x51d7c7(0x21b)][_0x51d7c7(0x1ce)][_0x51d7c7(0x1d2)](_0x51d7c7(0x1e8))||'';this[_0x51d7c7(0x1da)]=_0x557634(_0x5a6d4e[_0x51d7c7(0x1cb)],_0x51d7c7(0x20c),{..._0x33e4cc,'pubkey':_0x2aebbb,'ctx-name':_0x51d7c7(0x1ee)+this[_0x51d7c7(0x1c8)],'sourceList':'','imgOnly':_0x51d7c7(0x205),'removeCopyright':_0x51d7c7(0x205),'localeName':this[_0x51d7c7(0x21b)][_0x51d7c7(0x1cf)][_0x51d7c7(0x1d7)],'externalSourcesEmbedCss':_0x51d7c7(0x1cd)}),this[_0x51d7c7(0x1da)][_0x51d7c7(0x1dc)]=_0x5c5530=>{const _0x7d0d9=_0x51d7c7;if(_0x7d0d9(0x1e2)==_0x5c5530)return _0x7d0d9(0x1eb);},_0x5a6d4e[_0x51d7c7(0x1cb)][_0x51d7c7(0x1ed)][_0x51d7c7(0x1f9)](this[_0x51d7c7(0x1da)]);}[_0x5afa72(0x215)](){const _0x960d92=_0x5afa72;this[_0x960d92(0x213)]=_0x557634(_0x5a6d4e[_0x960d92(0x1cb)],_0x960d92(0x21c),{'ctx-name':_0x960d92(0x1ee)+this[_0x960d92(0x1c8)]}),_0x5a6d4e[_0x960d92(0x1cb)][_0x960d92(0x1ed)][_0x960d92(0x1f9)](this[_0x960d92(0x213)]);}[_0x5afa72(0x1ec)](){const _0x1519c3=_0x5afa72,_0xa81390=this[_0x1519c3(0x21b)][_0x1519c3(0x1ea)][_0x1519c3(0x1d2)](_0x1519c3(0x1fe));_0xa81390&&this[_0x1519c3(0x216)](_0xa81390,_0x1519c3(0x1e1),()=>{const _0x3e1d76=_0x1519c3,_0x4ac8a4=this[_0x3e1d76(0x21b)][_0x3e1d76(0x1d8)][_0x3e1d76(0x1cb)][_0x3e1d76(0x20b)][_0x3e1d76(0x1e4)]();_0x4ac8a4&&_0x4ac8a4[_0x3e1d76(0x1d5)](_0x3e1d76(0x1ef))&&this[_0x3e1d76(0x21b)][_0x3e1d76(0x1c9)][_0x3e1d76(0x214)][_0x3e1d76(0x1d4)](_0x3e1d76(0x202),()=>{const _0x34a00c=_0x3e1d76;_0x391cf0(this[_0x34a00c(0x21b)],_0x4ac8a4);});});const _0x3582fe=this[_0x1519c3(0x21b)][_0x1519c3(0x1ea)][_0x1519c3(0x1d2)](_0x1519c3(0x1f4));_0x3582fe&&this[_0x1519c3(0x216)](_0x3582fe,_0x1519c3(0x1e1),()=>{const _0x5cc767=_0x1519c3,_0x26b4c4=this[_0x5cc767(0x21b)][_0x5cc767(0x1d8)][_0x5cc767(0x1cb)][_0x5cc767(0x20b)][_0x5cc767(0x1e4)]();_0x26b4c4&&_0x26b4c4[_0x5cc767(0x1d5)](_0x5cc767(0x1ef))&&this[_0x5cc767(0x21b)][_0x5cc767(0x1c9)][_0x5cc767(0x214)][_0x5cc767(0x1d4)](_0x5cc767(0x202),()=>{const _0x40e045=_0x5cc767;_0x391cf0(this[_0x40e045(0x21b)],_0x26b4c4);});});}}
|
|
23
|
+
function _0x1034(_0x54975f,_0xde45ee){const _0x2ffdc0=_0x2ffd();return _0x1034=function(_0x103482,_0x46c5fc){_0x103482=_0x103482-0x16c;let _0x166fa0=_0x2ffdc0[_0x103482];return _0x166fa0;},_0x1034(_0x54975f,_0xde45ee);}function _0x2ffd(){const _0x550d61=['map','pluginName','true','href','locale','317885JZytAr','commands','cleanupImage','ctxElement','schema','join','fromCharCode','requires','getAttribute','model','uploadcareImageReplace','uc-config','1409414gpHrbO','uc-upload-ctx-provider','uploader-','isPremiumPlugin','30NNpmuB','init','67360JLyEFw','uploadcareImageId','view','editing','destroy','uploadcare.uploader','_configElement','attributeToAttribute','iconHrefResolver','config','elementToAttribute','execute','conversion','render','remove','6075256zFPFsn','for','configElement','1XPfAIM','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','uploadcare.pubkey','ucContextId','data-uc-image-id','isOfficialPlugin','replaceImageSource','uploadcare','imageInline','getSelectedElement','4drayhA','_initConfig','1967924ObjmgF','132UucogH','isRegistered','#uc-icon-arrow-down','selection','body','305634MbxihN','imageBlock','removeAttribute','querySelector','4110219jSgzmj','_initConversion','PictureEditing','appendChild','once','insertImage','_initSchema','editor','downcast','get','closeMax','UploadcareEditing','_initCtx','extend','document','upcast','afterInit','input[uploadcare-file-input]','contentLanguage','listenTo','_ctxElement','_initImageProcessingIndicator'];_0x2ffd=function(){return _0x550d61;};return _0x2ffd();}const _0x256724=_0x1034;(function(_0x669e26,_0x6b8296){const _0x370bfe=_0x1034,_0x52734a=_0x669e26();while(!![]){try{const _0x20e9e2=-parseInt(_0x370bfe(0x193))/0x1*(-parseInt(_0x370bfe(0x17b))/0x2)+-parseInt(_0x370bfe(0x1a6))/0x3*(-parseInt(_0x370bfe(0x19e))/0x4)+parseInt(_0x370bfe(0x16f))/0x5*(-parseInt(_0x370bfe(0x17f))/0x6)+parseInt(_0x370bfe(0x1a0))/0x7+-parseInt(_0x370bfe(0x190))/0x8+parseInt(_0x370bfe(0x1aa))/0x9+parseInt(_0x370bfe(0x181))/0xa*(-parseInt(_0x370bfe(0x1a1))/0xb);if(_0x20e9e2===_0x6b8296)break;else _0x52734a['push'](_0x52734a['shift']());}catch(_0x3c7256){_0x52734a['push'](_0x52734a['shift']());}}}(_0x2ffd,0x5e4ec));import{Plugin as _0x206fc5}from'ckeditor5/src/core.js';import{Dialog as _0x53b489}from'ckeditor5/src/ui.js';import{createElement as _0x234948,global as _0x3d5e9e,uid as _0x38a821}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x16e40a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x31f173}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x343b47}from'./utils/editingutils.js';export class UploadcareEditing extends _0x206fc5{[_0x256724(0x187)]=null;[_0x256724(0x1be)]=null;static get[_0x256724(0x1c1)](){const _0x1450f8=_0x256724;return _0x1450f8(0x1b5);}static get[_0x256724(0x176)](){const _0x54089c=_0x256724;return[_0x54089c(0x1ac),_0x31f173,_0x53b489];}static get[_0x256724(0x199)](){return!0x0;}static get[_0x256724(0x17e)](){return!0x0;}[_0x256724(0x197)];get[_0x256724(0x192)](){const _0x1a7dc4=_0x256724;return this[_0x1a7dc4(0x187)];}get[_0x256724(0x172)](){const _0x3d282f=_0x256724;return this[_0x3d282f(0x1be)];}constructor(_0x319b83){const _0x356c9e=_0x256724;super(_0x319b83),this[_0x356c9e(0x197)]=_0x38a821();}[_0x256724(0x180)](){const _0x50579b=_0x256724,_0x499722=this[_0x50579b(0x1b1)];_0x499722[_0x50579b(0x170)][_0x50579b(0x194)](_0x50579b(0x19b),new _0x16e40a(_0x499722));}[_0x256724(0x1ba)](){const _0x5d1341=_0x256724;this[_0x5d1341(0x1b0)](),this[_0x5d1341(0x1ab)](),this[_0x5d1341(0x19f)](),this[_0x5d1341(0x1b6)](),this[_0x5d1341(0x1bf)](),this[_0x5d1341(0x1bd)](this[_0x5d1341(0x1b1)],_0x5d1341(0x185),()=>{const _0x12619f=_0x5d1341;this[_0x12619f(0x187)]&&(this[_0x12619f(0x187)][_0x12619f(0x18f)](),this[_0x12619f(0x187)]=null),this[_0x12619f(0x1be)]&&(this[_0x12619f(0x1be)][_0x12619f(0x18f)](),this[_0x12619f(0x1be)]=null);const _0x539564=_0x3d5e9e[_0x12619f(0x1b8)][_0x12619f(0x1a9)](_0x12619f(0x1bb));_0x539564&&_0x539564[_0x12619f(0x18f)]();}),async function(_0x314006){const _0x24ee69=_0x3adc16([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2d4094=0x3d8d0df,_0xe9ca5f=0x3dfa3af^_0x2d4094,_0x25244d=window[_0x3adc16([0x44,0x61,0x74,0x65])][_0x3adc16([0x6e,0x6f,0x77])](),_0x947ca7=_0x314006[_0x3adc16([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4319d2=new window[(_0x3adc16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33f833=>{_0x947ca7[_0x3adc16([0x6f,0x6e,0x63,0x65])](_0x3adc16([0x72,0x65,0x61,0x64,0x79]),_0x33f833);}),_0x381864={[_0x3adc16([0x6b,0x74,0x79])]:_0x3adc16([0x45,0x43]),[_0x3adc16([0x75,0x73,0x65])]:_0x3adc16([0x73,0x69,0x67]),[_0x3adc16([0x63,0x72,0x76])]:_0x3adc16([0x50,0x2d,0x32,0x35,0x36]),[_0x3adc16([0x78])]:_0x3adc16([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]),[_0x3adc16([0x79])]:_0x3adc16([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]),[_0x3adc16([0x61,0x6c,0x67])]:_0x3adc16([0x45,0x53,0x32,0x35,0x36])},_0xeb3ec3=_0x947ca7[_0x3adc16([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3adc16([0x67,0x65,0x74])](_0x3adc16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfe18a6(){let _0x3cfba6,_0x19e39a=null,_0x4c3504=null;try{if(_0xeb3ec3==_0x3adc16([0x47,0x50,0x4c]))return _0x3adc16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cfba6=_0x4c37a0(),!_0x3cfba6)return _0x3adc16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cfba6[_0x3adc16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c3504=_0x4fa117(_0x3cfba6[_0x3adc16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cfba6[_0x3adc16([0x6a,0x74,0x69])])),await _0x4f5886()?_0x154fb8()?_0x5d8e6c()?_0x3adc16([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x310275()?(_0x3cfba6[_0x3adc16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adc16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19e39a=_0x2889b6(_0x3adc16([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cfba6[_0x3adc16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adc16([0x74,0x72,0x69,0x61,0x6c])&&(_0x19e39a=_0x2889b6(_0x3adc16([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33ebcd()):_0x3adc16([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3adc16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3adc16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3adc16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d8e6c(){const _0x4e09f5=[_0x3adc16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3adc16([0x74,0x72,0x69,0x61,0x6c])][_0x3adc16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cfba6[_0x3adc16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25244d/0x3e8:0xe10*_0xe9ca5f;return _0x3cfba6[_0x3adc16([0x65,0x78,0x70])]<_0x4e09f5;}function _0x154fb8(){const _0x4b50cd=_0x3cfba6[_0x3adc16([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b50cd&&(!!_0x4b50cd[_0x3adc16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adc16([0x2a]))||!!_0x4b50cd[_0x3adc16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adc16([0x55,0x50,0x4c,0x43])));}function _0x310275(){const _0x4b74ed=_0x1034,_0x210c71=_0x3cfba6[_0x3adc16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x210c71||0x0==_0x210c71[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58b8cd}=new URL(window[_0x3adc16([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b74ed(0x16d)]);if(_0x210c71[_0x3adc16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b8cd))return!0x0;const _0x20b6ee=_0x58b8cd[_0x3adc16([0x73,0x70,0x6c,0x69,0x74])](_0x3adc16([0x2e]));return _0x210c71[_0x3adc16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x184c9d=>_0x184c9d[_0x3adc16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adc16([0x2a])))[_0x3adc16([0x6d,0x61,0x70])](_0x10803d=>_0x10803d[_0x3adc16([0x73,0x70,0x6c,0x69,0x74])](_0x3adc16([0x2e])))[_0x3adc16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x403f0d=>_0x403f0d[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20b6ee[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adc16([0x6d,0x61,0x70])](_0x3781ac=>Array(_0x20b6ee[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3781ac[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adc16([0x66,0x69,0x6c,0x6c])](_0x3781ac[0x0]===_0x3adc16([0x2a])?_0x3adc16([0x2a]):'')[_0x3adc16([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3781ac))[_0x3adc16([0x73,0x6f,0x6d,0x65])](_0x577cfe=>_0x20b6ee[_0x3adc16([0x65,0x76,0x65,0x72,0x79])]((_0x232a5c,_0x39e498)=>_0x577cfe[_0x39e498]===_0x232a5c||_0x577cfe[_0x39e498]===_0x3adc16([0x2a])));}function _0x33ebcd(){return _0x19e39a&&_0x4c3504?new window[(_0x3adc16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x355425,_0x2f8ef8)=>{_0x19e39a[_0x3adc16([0x74,0x68,0x65,0x6e])](_0x355425,_0x2f8ef8),_0x4c3504[_0x3adc16([0x74,0x68,0x65,0x6e])](_0x3e1586=>{_0x3e1586!=_0x3adc16([0x56,0x61,0x6c,0x69,0x64])&&_0x355425(_0x3e1586);},_0x2f8ef8);}):_0x19e39a||_0x4c3504||_0x3adc16([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4fa117(_0x14c045,_0xf152f6){return new window[(_0x3adc16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25b886=>{if(_0x5b2ca1())return _0x25b886(_0x3adc16([0x56,0x61,0x6c,0x69,0x64]));_0x1bfd97(),_0x947ca7[_0x3adc16([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3adc16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f0a5e=!0x1;const _0x2ae232=_0x38a821();function _0x5cb470(_0x45a9c1){return!!_0x45a9c1&&(typeof _0x45a9c1===_0x3adc16([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45a9c1===_0x3adc16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45a9c1[_0x3adc16([0x74,0x68,0x65,0x6e])]===_0x3adc16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45a9c1[_0x3adc16([0x63,0x61,0x74,0x63,0x68])]===_0x3adc16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cfc43(_0x5e1a95){_0x34ae59(_0x5e1a95)[_0x3adc16([0x74,0x68,0x65,0x6e])](_0xccd7fe=>{if(!_0xccd7fe||_0xccd7fe[_0x3adc16([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3adc16([0x6f,0x6b]))return _0x3adc16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xed733c(_0x4ea8ff(_0x2ae232+_0xf152f6))!=_0xccd7fe[_0x3adc16([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3adc16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3adc16([0x56,0x61,0x6c,0x69,0x64]);})[_0x3adc16([0x74,0x68,0x65,0x6e])](_0x73ad11=>(_0x189435(),_0x73ad11),()=>{const _0x3e9871=_0xc62b56();return null==_0x3e9871?(_0x189435(),_0x3adc16([0x56,0x61,0x6c,0x69,0x64])):_0x3adc16(_0x25244d-_0x3e9871>(0x27d454df^_0x2d4094)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3adc16([0x74,0x68,0x65,0x6e])](_0x25b886)[_0x3adc16([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25b886(_0x3adc16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x25713a=0x3ee3e5f^_0x2d4094;function _0x189435(){const _0x344960=_0x3adc16([0x6c,0x6c,0x63,0x74,0x2d])+_0xed733c(_0x4ea8ff(_0x14c045)),_0x3b50fa=_0x1d72c7(_0xed733c(window[_0x3adc16([0x4d,0x61,0x74,0x68])][_0x3adc16([0x63,0x65,0x69,0x6c])](_0x25244d/_0x25713a)));window[_0x3adc16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adc16([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x344960,_0x3b50fa);}function _0xc62b56(){const _0x15f75b=_0x3adc16([0x6c,0x6c,0x63,0x74,0x2d])+_0xed733c(_0x4ea8ff(_0x14c045)),_0x2b144e=window[_0x3adc16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adc16([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15f75b);return _0x2b144e?window[_0x3adc16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d72c7(_0x2b144e),0x10)*_0x25713a:null;}function _0x34ae59(_0x1ddbcd){return new window[(_0x3adc16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb6f9e9,_0x72a8ec)=>{_0x1ddbcd[_0x3adc16([0x74,0x68,0x65,0x6e])](_0xb6f9e9,_0x72a8ec),window[_0x3adc16([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x72a8ec,0x3d9041f^_0x2d4094);});}}_0x947ca7[_0x3adc16([0x6f,0x6e])](_0x3adc16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48cfea,_0x358517)=>{if(_0x358517[0x0]!=_0x14c045)return _0x25b886(_0x3adc16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x358517[0x1]={..._0x358517[0x1],[_0x3adc16([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ae232};},{[_0x3adc16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adc16([0x68,0x69,0x67,0x68])}),_0x947ca7[_0x3adc16([0x6f,0x6e])](_0x3adc16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x465262=>{_0x5cb470(_0x465262[_0x3adc16([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f0a5e=!0x0,_0x3cfc43(_0x465262[_0x3adc16([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3adc16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adc16([0x6c,0x6f,0x77])}),_0x4319d2[_0x3adc16([0x74,0x68,0x65,0x6e])](()=>{_0x2f0a5e||_0x25b886(_0x3adc16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b2ca1(){return _0x947ca7[_0x3adc16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adc16([0x76,0x69,0x65,0x77])][_0x3adc16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3adc16([0x61,0x75,0x74,0x6f]);}function _0x1bfd97(){_0x947ca7[_0x3adc16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adc16([0x76,0x69,0x65,0x77])][_0x3adc16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3adc16([0x61,0x75,0x74,0x6f]);}}function _0x2889b6(_0x1f5812){const _0x514949=[new window[(_0x3adc16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e9f76=>setTimeout(_0x4e9f76,0x3d1ee13^_0x2d4094)),_0x4319d2[_0x3adc16([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3adc16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x392381=>{let _0x38ba43=0x0;_0x947ca7[_0x3adc16([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adc16([0x6f,0x6e])](_0x3adc16([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x122c89,_0x454cf5)=>{_0x454cf5[0x0][_0x3adc16([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38ba43++,_0x38ba43==(0x3d8d127^_0x2d4094)&&(_0x392381(),_0x122c89[_0x3adc16([0x6f,0x66,0x66])]());});}))];return window[_0x3adc16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3adc16([0x72,0x61,0x63,0x65])](_0x514949)[_0x3adc16([0x74,0x68,0x65,0x6e])](()=>_0x1f5812);}async function _0x219122(){await _0x4319d2,_0x947ca7[_0x3adc16([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adc16([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc62c,_0x947ca7[_0x3adc16([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adc16([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc62c,_0x947ca7[_0x3adc16([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3adc16([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfa49cb(_0x462b77){const _0x31d4cf=_0x398428();_0x947ca7[_0x31d4cf]=_0x3adc16([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x462b77,_0x462b77!=_0x3adc16([0x56,0x61,0x6c,0x69,0x64])&&_0x219122();}function _0x398428(){const _0x5378a8=window[_0x3adc16([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3adc16([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3adc16([0x6e,0x6f,0x77])]())[_0x3adc16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3adc16([0x2e]),'');let _0x5acc8f=_0x3adc16([0x52]);for(let _0x32f30=0x0;_0x32f30<_0x5378a8[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f30+=0x2){let _0x30e461=window[_0x3adc16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5378a8[_0x3adc16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f30,_0x32f30+0x2));_0x30e461>=_0x24ee69[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30e461-=_0x24ee69[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5acc8f+=_0x24ee69[_0x30e461];}return _0x5acc8f;}function _0x4c37a0(){const _0x389934=_0xeb3ec3[_0x3adc16([0x73,0x70,0x6c,0x69,0x74])](_0x3adc16([0x2e]));if(0x3!=_0x389934[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x479c26(_0x389934[0x1]);function _0x479c26(_0x579f51){const _0x57b4e0=_0x28518b(_0x579f51);return _0x57b4e0&&_0x5ec378()?_0x57b4e0:null;function _0x5ec378(){const _0x22d605=_0x57b4e0[_0x3adc16([0x6a,0x74,0x69])],_0x4bfdd4=window[_0x3adc16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22d605[_0x3adc16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22d605[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46b53a={..._0x57b4e0,[_0x3adc16([0x6a,0x74,0x69])]:_0x22d605[_0x3adc16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22d605[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46b53a[_0x3adc16([0x76,0x63])],_0x4ea8ff(_0x46b53a)==_0x4bfdd4;}}}async function _0x4f5886(){let _0x504774=!0x0;try{const _0x211e6c=_0xeb3ec3[_0x3adc16([0x73,0x70,0x6c,0x69,0x74])](_0x3adc16([0x2e])),[_0x356962,_0x290b56,_0xf97bfe]=_0x211e6c;return _0x54cc6b(_0x356962),await _0x4db2e8(_0x356962,_0x290b56,_0xf97bfe),_0x504774;}catch{return!0x1;}function _0x54cc6b(_0x60fde9){const _0x3e05f0=_0x28518b(_0x60fde9);_0x3e05f0&&_0x3e05f0[_0x3adc16([0x61,0x6c,0x67])]==_0x3adc16([0x45,0x53,0x32,0x35,0x36])||(_0x504774=!0x1);}async function _0x4db2e8(_0x16e61b,_0x4b22a4,_0x76722a){const _0x3bc63c=window[_0x3adc16([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3adc16([0x66,0x72,0x6f,0x6d])](_0x3f814f(_0x76722a),_0xe16396=>_0xe16396[_0x3adc16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbe13b2=new window[(_0x3adc16([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3adc16([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16e61b+_0x3adc16([0x2e])+_0x4b22a4),_0x17f6b8=window[_0x3adc16([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3adc16([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17f6b8)return;const _0x2e27ef=await _0x17f6b8[_0x3adc16([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3adc16([0x6a,0x77,0x6b]),_0x381864,{[_0x3adc16([0x6e,0x61,0x6d,0x65])]:_0x3adc16([0x45,0x43,0x44,0x53,0x41]),[_0x3adc16([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3adc16([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3adc16([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17f6b8[_0x3adc16([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3adc16([0x6e,0x61,0x6d,0x65])]:_0x3adc16([0x45,0x43,0x44,0x53,0x41]),[_0x3adc16([0x68,0x61,0x73,0x68])]:{[_0x3adc16([0x6e,0x61,0x6d,0x65])]:_0x3adc16([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e27ef,_0x3bc63c,_0xbe13b2)||(_0x504774=!0x1);}}function _0x28518b(_0x3e8efd){return _0x3e8efd[_0x3adc16([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3adc16([0x65,0x79]))?JSON[_0x3adc16([0x70,0x61,0x72,0x73,0x65])](_0x3f814f(_0x3e8efd)):null;}function _0x3f814f(_0x49ef38){return window[_0x3adc16([0x61,0x74,0x6f,0x62])](_0x49ef38[_0x3adc16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3adc16([0x2b]))[_0x3adc16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3adc16([0x2f])));}function _0x4ea8ff(_0x35726d){let _0x203c57=0x1505;function _0x1600a7(_0x5d4385){for(let _0x7b0bca=0x0;_0x7b0bca<_0x5d4385[_0x3adc16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7b0bca++){const _0x4cc434=_0x5d4385[_0x3adc16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7b0bca);_0x203c57=(_0x203c57<<0x5)+_0x203c57+_0x4cc434,_0x203c57&=_0x203c57;}}function _0x113257(_0x43c3d8){Array[_0x3adc16([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43c3d8)?_0x43c3d8[_0x3adc16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x113257):_0x43c3d8&&typeof _0x43c3d8==_0x3adc16([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3adc16([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43c3d8)[_0x3adc16([0x73,0x6f,0x72,0x74])]()[_0x3adc16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x487dbe,_0x13781b])=>{_0x1600a7(_0x487dbe),_0x113257(_0x13781b);}):_0x1600a7(window[_0x3adc16([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43c3d8));}return _0x113257(_0x35726d),_0x203c57>>>0x0;}function _0xed733c(_0x44bd6c){return _0x44bd6c[_0x3adc16([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3adc16([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3adc16([0x30]));}function _0x1d72c7(_0x485623){return _0x485623[_0x3adc16([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3adc16([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3adc16([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fc62c(){}function _0x3adc16(_0x5ee347){const _0x4bd4f3=_0x1034;return _0x5ee347[_0x4bd4f3(0x1c0)](_0x555cc7=>String[_0x4bd4f3(0x175)](_0x555cc7))[_0x4bd4f3(0x174)]('');}_0xfa49cb(await _0xfe18a6());}(this);}[_0x256724(0x1b0)](){const _0x343ad4=_0x256724,_0x1c2170=this[_0x343ad4(0x1b1)][_0x343ad4(0x178)][_0x343ad4(0x173)];_0x1c2170[_0x343ad4(0x1a2)](_0x343ad4(0x1a7))&&_0x1c2170[_0x343ad4(0x1b7)](_0x343ad4(0x1a7),{'allowAttributes':[_0x343ad4(0x182)]}),_0x1c2170[_0x343ad4(0x1a2)](_0x343ad4(0x19c))&&_0x1c2170[_0x343ad4(0x1b7)](_0x343ad4(0x19c),{'allowAttributes':[_0x343ad4(0x182)]});}[_0x256724(0x1ab)](){const _0x4c1ccc=_0x256724,_0x517bd3=this[_0x4c1ccc(0x1b1)];_0x517bd3[_0x4c1ccc(0x18d)][_0x4c1ccc(0x191)](_0x4c1ccc(0x1b2))[_0x4c1ccc(0x188)]({'model':_0x4c1ccc(0x182),'view':_0x4c1ccc(0x198)}),_0x517bd3[_0x4c1ccc(0x18d)][_0x4c1ccc(0x191)](_0x4c1ccc(0x1b9))[_0x4c1ccc(0x18b)]({'model':{'key':_0x4c1ccc(0x182),'value':_0x8d7d36=>_0x8d7d36[_0x4c1ccc(0x177)](_0x4c1ccc(0x198))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x475831=_0x517bd3[_0x4c1ccc(0x170)][_0x4c1ccc(0x1b3)](_0x4c1ccc(0x19a));_0x475831&&this[_0x4c1ccc(0x1bd)](_0x475831,_0x4c1ccc(0x171),(_0x595f52,[_0x27b10f,_0x5977fd])=>{const _0x517a3e=_0x4c1ccc;_0x27b10f[_0x517a3e(0x1a8)](_0x517a3e(0x182),_0x5977fd);});}[_0x256724(0x19f)](){const _0x5107f6=_0x256724,_0x5b2d18=this[_0x5107f6(0x1b1)][_0x5107f6(0x18a)][_0x5107f6(0x1b3)](_0x5107f6(0x186))||{},_0x116bb3=this[_0x5107f6(0x1b1)][_0x5107f6(0x18a)][_0x5107f6(0x1b3)](_0x5107f6(0x196))||'';this[_0x5107f6(0x187)]=_0x234948(_0x3d5e9e[_0x5107f6(0x1b8)],_0x5107f6(0x17a),{..._0x5b2d18,'pubkey':_0x116bb3,'ctx-name':_0x5107f6(0x17d)+this[_0x5107f6(0x197)],'sourceList':'','imgOnly':_0x5107f6(0x16c),'removeCopyright':_0x5107f6(0x16c),'localeName':this[_0x5107f6(0x1b1)][_0x5107f6(0x16e)][_0x5107f6(0x1bc)],'externalSourcesEmbedCss':_0x5107f6(0x195)}),this[_0x5107f6(0x187)][_0x5107f6(0x189)]=_0xb6c78e=>{const _0x57777b=_0x5107f6;if(_0x57777b(0x1b4)==_0xb6c78e)return _0x57777b(0x1a3);},_0x3d5e9e[_0x5107f6(0x1b8)][_0x5107f6(0x1a5)][_0x5107f6(0x1ad)](this[_0x5107f6(0x187)]);}[_0x256724(0x1b6)](){const _0x4d8b7a=_0x256724;this[_0x4d8b7a(0x1be)]=_0x234948(_0x3d5e9e[_0x4d8b7a(0x1b8)],_0x4d8b7a(0x17c),{'ctx-name':_0x4d8b7a(0x17d)+this[_0x4d8b7a(0x197)]}),_0x3d5e9e[_0x4d8b7a(0x1b8)][_0x4d8b7a(0x1a5)][_0x4d8b7a(0x1ad)](this[_0x4d8b7a(0x1be)]);}[_0x256724(0x1bf)](){const _0x7b4f34=_0x256724,_0x24375a=this[_0x7b4f34(0x1b1)][_0x7b4f34(0x170)][_0x7b4f34(0x1b3)](_0x7b4f34(0x1af));_0x24375a&&this[_0x7b4f34(0x1bd)](_0x24375a,_0x7b4f34(0x18c),()=>{const _0xec150a=_0x7b4f34,_0x3be03b=this[_0xec150a(0x1b1)][_0xec150a(0x178)][_0xec150a(0x1b8)][_0xec150a(0x1a4)][_0xec150a(0x19d)]();_0x3be03b&&_0x3be03b[_0xec150a(0x177)](_0xec150a(0x182))&&this[_0xec150a(0x1b1)][_0xec150a(0x184)][_0xec150a(0x183)][_0xec150a(0x1ae)](_0xec150a(0x18e),()=>{const _0x8a7578=_0xec150a;_0x343b47(this[_0x8a7578(0x1b1)],_0x3be03b);});});const _0xb24855=this[_0x7b4f34(0x1b1)][_0x7b4f34(0x170)][_0x7b4f34(0x1b3)](_0x7b4f34(0x179));_0xb24855&&this[_0x7b4f34(0x1bd)](_0xb24855,_0x7b4f34(0x18c),()=>{const _0x229ad6=_0x7b4f34,_0x3b7458=this[_0x229ad6(0x1b1)][_0x229ad6(0x178)][_0x229ad6(0x1b8)][_0x229ad6(0x1a4)][_0x229ad6(0x19d)]();_0x3b7458&&_0x3b7458[_0x229ad6(0x177)](_0x229ad6(0x182))&&this[_0x229ad6(0x1b1)][_0x229ad6(0x184)][_0x229ad6(0x183)][_0x229ad6(0x1ae)](_0x229ad6(0x18e),()=>{const _0x140e24=_0x229ad6;_0x343b47(this[_0x140e24(0x1b1)],_0x3b7458);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1ed0d4,ObservableMixin as _0x452dc5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1b9b07}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1b4ac0}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x23bbc8}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x30d8ed}from'../../utils/uploadutils.js';import{getImageUrls as _0x34f3eb,getImageDimension as _0xe1e4aa}from'../../utils/editingutils.js';import{isAncestor as _0x3d77e9}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x452dc5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2dcea0,_0x5935e7,_0x2050f2){super(),this['_editor']=_0x2dcea0,this['_dialog']=_0x5935e7,this['_imageElement']=_0x2050f2,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 _0x436d49=this['_imageElement'],_0x4e7969=_0x436d49['getAttribute']('uploadcareImageId'),_0x315998=_0x436d49['getAttribute']('src');if(_0x4e7969)await this['_loadImageInfo'](_0x4e7969,_0x315998);else{if(this['_imageCache']['has'](_0x315998)){const _0x4457b2=this['_imageCache']['get'](_0x315998);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4457b2['url'],this['imageDimension']=_0x4457b2['dimension'],this['imageId']=_0x4457b2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1c11bb}=this['_editor'],t=_0x1c11bb['t'],_0x8e1835=new _0x23bbc8(_0x1c11bb,this['imageStatus'],this['_attributes']);_0x8e1835['bind']('status')['to'](this,'imageStatus'),_0x8e1835['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x8e1835['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x8e1835['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x8e1835,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b4ac0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x8e1835,'position':_0x1b9b07['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x8e1835['focus']();},'onHide':()=>{_0x8e1835['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x457691=>!_0x3d77e9(_0x457691,_0x8e1835['element'])}});}['_loadImageInfo'](_0x60839b,_0x26a548){return _0x30d8ed['getInfo'](_0x60839b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4f2e69=>{const {width:_0x13783a,height:_0x46e609}=_0x4f2e69['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26a548,this['imageDimension']={'width':_0x13783a,'height':_0x46e609},this['imageId']=_0x60839b;})['catch'](_0x5b0830=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b0830['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x26bc4b,_0x44ba9e){return this['_getImageAsFile'](_0x26bc4b)['then'](_0x416bfd=>_0x30d8ed['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':_0x44ba9e['signal'],'file':_0x416bfd,'onProgress':_0x167fb0=>{_0x167fb0&&_0x167fb0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x167fb0['value']));}}))['then'](_0x26c359=>{const {width:_0x1a4710,height:_0x5507a1}=_0x26c359['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26c359['cdnUrl'],this['imageDimension']={'width':_0x1a4710,'height':_0x5507a1},this['imageId']=_0x26c359['uuid'],this['imageUploadProgress']=null;const _0x5e8849=_0x26bc4b['getAttribute']('src');this['_imageCache']['set'](_0x5e8849,{'id':_0x26c359['uuid'],'url':_0x26c359['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x369729=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x369729['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1324c4,_0x9793b7){_0x1324c4['on']('apply',(_0x98134e,_0x23a1f7)=>{this['_replaceImage'](_0x9793b7,_0x23a1f7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1324c4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1324c4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x10ba61,_0x5c0d23,_0x7022b9){const _0x400961=this['_editor'],{width:_0x465e6a,height:_0x4cdf54}=_0xe1e4aa(_0x5c0d23,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2e9fe9,imageSources:_0x1bdaf6}=_0x34f3eb(_0x5c0d23,_0x465e6a);_0x400961['model']['change'](_0x1aeb29=>{if('$graveyard'===_0x10ba61['root']['rootName']){_0x400961['execute']('insertImage',{'imageType':_0x10ba61['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x10ba61['getAttributes']()),'uploadcareImageId':_0x7022b9,'src':_0x2e9fe9,'sources':_0x1bdaf6,'width':_0x465e6a,'height':_0x4cdf54}});const _0x182ef6=_0x10ba61['getChildren']();_0x10ba61=_0x400961['model']['document']['selection']['getSelectedElement']();for(const _0x2c1c3d of _0x182ef6)_0x1aeb29['append'](_0x1aeb29['cloneElement'](_0x2c1c3d),_0x10ba61);}else _0x1aeb29['setSelection'](_0x10ba61,'on'),_0x400961['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x10ba61['getAttributes']()),'uploadcareImageId':_0x7022b9,'src':_0x2e9fe9,'sources':_0x1bdaf6,'width':_0x465e6a,'height':_0x4cdf54},_0x10ba61);_0x1aeb29['setSelection'](_0x10ba61,'on');});}async['_getImageAsFile'](_0x5972d3){const _0x4fdd3a=_0x1ed0d4['window'],_0x3ff631=_0x1ed0d4['document']['location']['href'],_0x21bb61=new _0x4fdd3a['URL'](_0x5972d3['getAttribute']('src'),_0x3ff631);if('data:'===_0x21bb61['protocol']){const _0x117554=_0x21bb61['href']['split'](','),_0x27e328=_0x117554[0x0]['match'](/:(.*?);/)[0x1],_0x257562=_0x27e328['split']('/')[0x1],_0x382c99=_0x4fdd3a['atob'](_0x117554[_0x117554['length']-0x1]);let _0x24f059=_0x382c99['length'];const _0x353396=new _0x4fdd3a['Uint8Array'](_0x24f059);for(;_0x24f059--;)_0x353396[_0x24f059]=_0x382c99['charCodeAt'](_0x24f059);return new _0x4fdd3a['File']([_0x353396],'image.'+_0x257562,{'type':_0x27e328});}const _0x27ed22=_0x21bb61['href']['split']('/'),_0x5eb417=_0x27ed22[_0x27ed22['length']-0x1],_0x4580c1=_0x5eb417['split']('.')[0x1];return _0x4fdd3a['fetch'](_0x21bb61['href'])['then'](_0x30debe=>_0x30debe['clone']()['blob']())['then'](_0x122666=>new _0x4fdd3a['File']([_0x122666],_0x5eb417,{'type':'image/'+_0x4580c1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1405(){const _0x1a03cb=['8zIOCKT','6258705bAxGEs','image-edit','uc-light','uc-cloud-image-editor','1038dYkdjW','17332ToWDzT','47614SgfFTO','imageSrc','set','2665638UXWdgc','243tpqHMx','884381UBPNMw','964XLmUQI','ck-uploadcare-theme','bindTemplate','setTemplate','18035710UMwobY'];_0x1405=function(){return _0x1a03cb;};return _0x1405();}(function(_0x16cd95,_0x3e17dd){const _0x2aa282=_0x23c2,_0x2f9ba0=_0x16cd95();while(!![]){try{const _0x5daa75=-parseInt(_0x2aa282(0xb9))/0x1+-parseInt(_0x2aa282(0xc5))/0x2+parseInt(_0x2aa282(0xb8))/0x3*(-parseInt(_0x2aa282(0xba))/0x4)+parseInt(_0x2aa282(0xc0))/0x5+-parseInt(_0x2aa282(0xc4))/0x6*(parseInt(_0x2aa282(0xb4))/0x7)+parseInt(_0x2aa282(0xbf))/0x8*(-parseInt(_0x2aa282(0xb7))/0x9)+parseInt(_0x2aa282(0xbe))/0xa;if(_0x5daa75===_0x3e17dd)break;else _0x2f9ba0['push'](_0x2f9ba0['shift']());}catch(_0x3bbf78){_0x2f9ba0['push'](_0x2f9ba0['shift']());}}}(_0x1405,0xa3878));import{View as _0x401220}from'ckeditor5/src/ui.js';function _0x23c2(_0xda62a3,_0x2dc485){const _0x14051f=_0x1405();return _0x23c2=function(_0x23c2d9,_0x5af3f3){_0x23c2d9=_0x23c2d9-0xb4;let _0x11af6e=_0x14051f[_0x23c2d9];return _0x11af6e;},_0x23c2(_0xda62a3,_0x2dc485);}export class UploadcareImageEditFormEditingView extends _0x401220{constructor(_0xb47b75,_0x29f2db){const _0x20098d=_0x23c2;super(_0xb47b75);const _0x52bffb=this[_0x20098d(0xbc)];this[_0x20098d(0xb6)](_0x20098d(0xb5),''),this[_0x20098d(0xbd)]({'tag':_0x20098d(0xc3),'attributes':{..._0x29f2db,'class':[_0x20098d(0xc2),_0x20098d(0xbb)],'ctx-name':_0x20098d(0xc1),'cdn-url':_0x52bffb['to'](_0x20098d(0xb5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x5dac12}from'ckeditor5/src/icons.js';import{ButtonView as _0x1f2421,IconView as _0x5bcff2,View as _0x16c080}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x16c080{constructor(_0x378c55){super(_0x378c55);const t=_0x378c55['t'];this['set']('errorType',null);const _0x49b7db=new _0x1f2421(_0x378c55);_0x49b7db['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49b7db['withText']=!0x0,_0x49b7db['class']='ck-button-action',_0x49b7db['on']('execute',()=>{this['fire']('retry');}),_0x49b7db['bind']('isVisible')['to'](this,'errorType',_0x454f8a=>'NotFound'!==_0x454f8a);const _0x1ba016=new _0x5bcff2();_0x1ba016['content']=_0x5dac12,_0x1ba016['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47cfc7=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':[_0x1ba016,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47cfc7['to']('errorType',_0x496e02=>t('NotFound'!==_0x496e02?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49b7db]},{'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 _0x48fbca,View as _0x3dd740}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3dd740{constructor(_0x13ec94){super(_0x13ec94);const t=_0x13ec94['t'],_0x3b061c=this['bindTemplate'],_0x57477a=new _0x48fbca();_0x57477a['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':[_0x57477a,{'text':_0x3b061c['to']('imageUploadProgress',_0x44a8a5=>t('Loading\x20image...')+'\x20('+(_0x44a8a5||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 _0x1e51df=_0x57bb;(function(_0x34cc53,_0x5e97d8){const _0x3ce3c7=_0x57bb,_0xeee0e5=_0x34cc53();while(!![]){try{const _0x277af9=parseInt(_0x3ce3c7(0xce))/0x1+parseInt(_0x3ce3c7(0xc9))/0x2+-parseInt(_0x3ce3c7(0xdc))/0x3+-parseInt(_0x3ce3c7(0xc7))/0x4+-parseInt(_0x3ce3c7(0xbc))/0x5*(parseInt(_0x3ce3c7(0xbd))/0x6)+-parseInt(_0x3ce3c7(0xb8))/0x7*(-parseInt(_0x3ce3c7(0xe7))/0x8)+parseInt(_0x3ce3c7(0xcc))/0x9*(-parseInt(_0x3ce3c7(0xc3))/0xa);if(_0x277af9===_0x5e97d8)break;else _0xeee0e5['push'](_0xeee0e5['shift']());}catch(_0x45ceaa){_0xeee0e5['push'](_0xeee0e5['shift']());}}}(_0x2129,0xf188c));import{View as _0x2f2ec8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x392656}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x242893}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x33e578}from'./uploadcareimageeditformeditingview.js';function _0x2129(){const _0x37b569=['2348472tFLFkI','ck-uploadcare-form','2238966PlbHop','toLowerCase','_loadingView','153RuSvyS','uc-cloud-image-editor','996652HCNGxn','div','_errorView','detail','_addErrorViewListeners','ck-reset_all-excluded','change:status','disconnect','_addUploadcareImageEditorListeners','setTemplate','render','set','retry','ready','837606vQywmm','add','error','focus','cdnUrl','querySelector','length','addedNodes','target','apply','getFocusableElement','32dyDffX','element','status','clear','cancel','_editingView','addEventListener','addMany','2124318rJQlDk','uploading','createCollection','_focusableView','1035QjeChF','3252CGckiT','_items','_waitForImageEditorComponent','_setView','once','fire','801290ioIIUj','observe','filter','nodeName'];_0x2129=function(){return _0x37b569;};return _0x2129();}import{DialogFocusManagerView as _0xc4e02d}from'../../utils/dialogfocusmanagerview.js';function _0x57bb(_0x4f9167,_0x416e8f){const _0x212945=_0x2129();return _0x57bb=function(_0x57bb6a,_0x28d06f){_0x57bb6a=_0x57bb6a-0xb1;let _0x114f45=_0x212945[_0x57bb6a];return _0x114f45;},_0x57bb(_0x4f9167,_0x416e8f);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xc4e02d{[_0x1e51df(0xbe)];[_0x1e51df(0xcb)];[_0x1e51df(0xd0)];[_0x1e51df(0xb5)];[_0x1e51df(0xbb)];constructor(_0x31668f,_0xed10c,_0x2c808b){const _0x501c35=_0x1e51df;super(_0x31668f),this[_0x501c35(0xbe)]=this[_0x501c35(0xba)](),this[_0x501c35(0xcb)]=new _0x392656(_0x31668f),this[_0x501c35(0xd0)]=new _0x242893(_0x31668f),this[_0x501c35(0xb5)]=new _0x33e578(_0x31668f,_0x2c808b),this[_0x501c35(0xbb)]=new _0x2f2ec8(_0x31668f),this[_0x501c35(0xbb)][_0x501c35(0xd7)](this[_0x501c35(0xe6)]()),this[_0x501c35(0xd9)](_0x501c35(0xb2),_0xed10c),this[_0x501c35(0xd7)]({'tag':_0x501c35(0xcf),'attributes':{'class':['ck',_0x501c35(0xd3),_0x501c35(0xc8)],'tabindex':'-1'},'children':this[_0x501c35(0xbe)]}),this[_0x501c35(0xc0)](),this[_0x501c35(0xc1)](_0x501c35(0xd8),()=>{const _0x3c9f3f=_0x501c35;this[_0x3c9f3f(0xbf)](this[_0x3c9f3f(0xb1)],_0x47d382=>{const _0x2e6361=_0x3c9f3f;this[_0x2e6361(0xd6)](_0x47d382);});}),this['on'](_0x501c35(0xd4),()=>{const _0x6d5bc6=_0x501c35;this[_0x6d5bc6(0xc0)]();}),this[_0x501c35(0xd2)]();}[_0x1e51df(0xdf)](){const _0x347b4e=_0x1e51df;this[_0x347b4e(0xb1)][_0x347b4e(0xdf)]();}[_0x1e51df(0xc0)](){const _0x127caa=_0x1e51df;switch(this[_0x127caa(0xbe)][_0x127caa(0xb3)](),this[_0x127caa(0xb2)]){case _0x127caa(0xb9):this[_0x127caa(0xbe)][_0x127caa(0xdd)](this[_0x127caa(0xcb)]);break;case _0x127caa(0xde):this[_0x127caa(0xbe)][_0x127caa(0xdd)](this[_0x127caa(0xd0)]);break;case _0x127caa(0xdb):this[_0x127caa(0xbe)][_0x127caa(0xb7)]([this[_0x127caa(0xb5)],this[_0x127caa(0xbb)]]);}}[_0x1e51df(0xbf)](_0x4641fd,_0x449b2e){const _0x2b38ce=_0x1e51df,_0x5ed8ea=_0x2b38ce(0xcd),_0x4d1ce0=_0x4641fd[_0x2b38ce(0xe1)](_0x5ed8ea);if(_0x4d1ce0)return _0x449b2e(_0x4d1ce0);const _0x37c69f=new MutationObserver(_0x303d70=>{const _0x484ee6=_0x2b38ce,_0x59828a=_0x303d70[_0x484ee6(0xc5)](_0x5e1d0c=>_0x5e1d0c[_0x484ee6(0xe4)]===_0x4641fd&&_0x5e1d0c[_0x484ee6(0xe3)][_0x484ee6(0xe2)]>0x0&&_0x5e1d0c[_0x484ee6(0xe3)][0x0][_0x484ee6(0xc6)][_0x484ee6(0xca)]()===_0x5ed8ea);_0x59828a[_0x484ee6(0xe2)]&&(_0x37c69f[_0x484ee6(0xd5)](),_0x449b2e(_0x59828a[0x0][_0x484ee6(0xe3)][0x0]));});_0x37c69f[_0x2b38ce(0xc4)](_0x4641fd,{'childList':!0x0,'subtree':!0x0});}[_0x1e51df(0xd6)](_0x411b94){const _0x2e087b=_0x1e51df;_0x411b94[_0x2e087b(0xb6)](_0x2e087b(0xe5),_0x521373=>{const _0x1a1ed9=_0x2e087b;this[_0x1a1ed9(0xc2)](_0x1a1ed9(0xe5),{'imageSrc':_0x521373[_0x1a1ed9(0xd1)][_0x1a1ed9(0xe0)]});}),_0x411b94[_0x2e087b(0xb6)](_0x2e087b(0xb4),()=>{const _0x339463=_0x2e087b;this[_0x339463(0xc2)](_0x339463(0xb4));});}[_0x1e51df(0xd2)](){const _0x37ca32=_0x1e51df;this[_0x37ca32(0xd0)]['on'](_0x37ca32(0xda),()=>{const _0x412465=_0x37ca32;this[_0x412465(0xc2)](_0x412465(0xda));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2b2134=_0x1449;(function(_0x223cdb,_0x53b3f0){const _0x1cb021=_0x1449,_0x54d9b4=_0x223cdb();while(!![]){try{const _0x3b7db2=-parseInt(_0x1cb021(0xed))/0x1*(-parseInt(_0x1cb021(0xf9))/0x2)+-parseInt(_0x1cb021(0x10d))/0x3*(parseInt(_0x1cb021(0xf5))/0x4)+parseInt(_0x1cb021(0xf7))/0x5*(-parseInt(_0x1cb021(0xfa))/0x6)+-parseInt(_0x1cb021(0xf6))/0x7*(-parseInt(_0x1cb021(0xfb))/0x8)+-parseInt(_0x1cb021(0xf4))/0x9+-parseInt(_0x1cb021(0xf1))/0xa*(parseInt(_0x1cb021(0xee))/0xb)+parseInt(_0x1cb021(0x101))/0xc;if(_0x3b7db2===_0x53b3f0)break;else _0x54d9b4['push'](_0x54d9b4['shift']());}catch(_0x4a747d){_0x54d9b4['push'](_0x54d9b4['shift']());}}}(_0x5136,0x92e42));import{Command as _0x5ca139}from'ckeditor5/src/core.js';import{Dialog as _0x9f0961}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x160433}from'./ui/uploadcareimageeditcontroller.js';function _0x1449(_0x492526,_0x40e6d5){const _0x5136c6=_0x5136();return _0x1449=function(_0x1449d1,_0x5a7d6a){_0x1449d1=_0x1449d1-0xed;let _0x218fe0=_0x5136c6[_0x1449d1];return _0x218fe0;},_0x1449(_0x492526,_0x40e6d5);}function _0x5136(){const _0x33a929=['310715jMafFI','editor','94568TwyCoo','66DPbqrI','2508432SMonHQ','selection','requires','imageInline','model','document','25929888SfqTTw','unbind','refresh','element','imageBlock','imageEditController','get','getSelectedElement','uploadcare.allowExternalImagesEditing','isActive','isEnabled','plugins','129EWCFcH','bind','15cEhjtr','9427Pdncvg','config','set','13110WQgqeM','_isEditable','execute','7514856OzhYba','23576xIjptD','14YKmdpn'];_0x5136=function(){return _0x33a929;};return _0x5136();}import{createEditabilityChecker as _0xf505a}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5ca139{[_0x2b2134(0x106)];static get[_0x2b2134(0xfd)](){return[_0x9f0961];}[_0x2b2134(0xf2)];constructor(_0x6c686d){const _0x333d10=_0x2b2134;super(_0x6c686d),this[_0x333d10(0x106)]=void 0x0,this[_0x333d10(0xf2)]=_0xf505a(_0x6c686d[_0x333d10(0xef)][_0x333d10(0x107)](_0x333d10(0x109))||[]),this[_0x333d10(0xf0)]({'isActive':!0x1});}[_0x2b2134(0x103)](){const _0x1f26d5=_0x2b2134,_0x44885a=this[_0x1f26d5(0xf8)][_0x1f26d5(0xff)][_0x1f26d5(0x100)][_0x1f26d5(0xfc)][_0x1f26d5(0x108)]();this[_0x1f26d5(0x10b)]=this[_0x1f26d5(0xf2)](_0x44885a);}[_0x2b2134(0xf3)](){const _0x18c651=_0x2b2134;this[_0x18c651(0x106)]&&(this[_0x18c651(0x102)](_0x18c651(0x10a)),this[_0x18c651(0x106)]=void 0x0);const _0x2a68f4=this[_0x18c651(0xf8)][_0x18c651(0xff)][_0x18c651(0x100)][_0x18c651(0xfc)][_0x18c651(0x108)]();_0x2a68f4&&(_0x2a68f4['is'](_0x18c651(0x104),_0x18c651(0x105))||_0x2a68f4['is'](_0x18c651(0x104),_0x18c651(0xfe)))&&(this[_0x18c651(0x106)]=new _0x160433(this[_0x18c651(0xf8)],this[_0x18c651(0xf8)][_0x18c651(0x10c)][_0x18c651(0x107)](_0x9f0961),_0x2a68f4),this[_0x18c651(0x10e)](_0x18c651(0x10a))['to'](this[_0x18c651(0x106)],_0x18c651(0x10a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x291a16=_0x15bb;(function(_0x56ae0f,_0x19950a){const _0x3121ed=_0x15bb,_0x3ac48d=_0x56ae0f();while(!![]){try{const _0x2391fb=-parseInt(_0x3121ed(0x1ae))/0x1*(parseInt(_0x3121ed(0x1b4))/0x2)+-parseInt(_0x3121ed(0x1ab))/0x3*(-parseInt(_0x3121ed(0x1b5))/0x4)+-parseInt(_0x3121ed(0x1ba))/0x5+-parseInt(_0x3121ed(0x1af))/0x6*(-parseInt(_0x3121ed(0x1a8))/0x7)+parseInt(_0x3121ed(0x1b6))/0x8+parseInt(_0x3121ed(0x1ac))/0x9+-parseInt(_0x3121ed(0x1b1))/0xa*(parseInt(_0x3121ed(0x1b0))/0xb);if(_0x2391fb===_0x19950a)break;else _0x3ac48d['push'](_0x3ac48d['shift']());}catch(_0x23e96e){_0x3ac48d['push'](_0x3ac48d['shift']());}}}(_0x232e,0x69c4f));import{Plugin as _0x901435}from'ckeditor5/src/core.js';function _0x15bb(_0x1cfb9c,_0x1fed20){const _0x232e0b=_0x232e();return _0x15bb=function(_0x15bb59,_0x2adbdd){_0x15bb59=_0x15bb59-0x1a8;let _0x3c838b=_0x232e0b[_0x15bb59];return _0x3c838b;},_0x15bb(_0x1cfb9c,_0x1fed20);}import{Notification as _0x4bdf1f}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x355fb7}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2e5661}from'./uploadcareimagereplacecommand.js';function _0x232e(){const _0x315421=['7663491ndErBm','uploadcareImageReplace','2491pNieKI','561048fmqoWE','10012013hEizPo','10YvcVIM','UploadcareImageEditEditing','uploadcareImageEdit','662vQBjgR','578868GaeEkL','5630048rKbztm','isOfficialPlugin','requires','ImageUtils','2124090PBskIZ','ImageEditing','pluginName','isPremiumPlugin','init','56WiyjPm','add','commands','6MXawsU'];_0x232e=function(){return _0x315421;};return _0x232e();}import{UploadcareEditing as _0x35c2a1}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x901435{static get[_0x291a16(0x1bc)](){const _0x2ed171=_0x291a16;return _0x2ed171(0x1b2);}static get[_0x291a16(0x1b8)](){const _0x58af7b=_0x291a16;return[_0x35c2a1,_0x4bdf1f,_0x58af7b(0x1b9),_0x58af7b(0x1bb)];}static get[_0x291a16(0x1b7)](){return!0x0;}static get[_0x291a16(0x1bd)](){return!0x0;}[_0x291a16(0x1be)](){const _0x405bdc=_0x291a16,{editor:_0x5e4d1c}=this;_0x5e4d1c[_0x405bdc(0x1aa)][_0x405bdc(0x1a9)](_0x405bdc(0x1b3),new _0x355fb7(_0x5e4d1c)),_0x5e4d1c[_0x405bdc(0x1aa)][_0x405bdc(0x1a9)](_0x405bdc(0x1ad),new _0x2e5661(_0x5e4d1c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x829bec}from'ckeditor5/src/core.js';import{ButtonView as _0x55b751}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x589465}from'ckeditor5/src/icons.js';import{createElement as _0x14d51c}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 _0x829bec{['_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 _0x4b4117=this['editor'];_0x4b4117['ui']['componentFactory']['add']('uploadcareImageEdit',_0x586dc8=>{const _0x40dc16=_0x4b4117['commands']['get']('uploadcareImageEdit'),_0x8133ba=new _0x55b751(_0x586dc8),t=_0x586dc8['t'];return _0x8133ba['set']({'icon':_0x589465,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x8133ba['bind']('isEnabled')['to'](_0x40dc16),_0x8133ba['bind']('isOn')['to'](_0x40dc16,'isActive'),this['listenTo'](_0x8133ba,'execute',()=>{_0x4b4117['execute']('uploadcareImageEdit'),_0x4b4117['editing']['view']['focus']();}),_0x8133ba;}),this['_initConfig']();}['_initConfig'](){const _0x2e19c2=_0x14d51c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e19c2),this['listenTo'](this['editor'],'destroy',()=>{_0x2e19c2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x442e(){const _0x259f3a=['1875122gAPoIb','53256wBfIvx','isEnabled','getSelectedElement','6599442psqyJw','removeAttribute','change','imageInline','sizes','45YWvmlr','editor','7lEONij','3588370bfInWM','document','setAttributes','2870975sBtGUp','293452onOiRv','imageBlock','selection','refresh','1pkKuAD','16703424mNUjXN','864VQIykZ','element','model','execute','11EssLkm','srcset'];_0x442e=function(){return _0x259f3a;};return _0x442e();}const _0x7cf9b0=_0x3f94;function _0x3f94(_0x2b6061,_0x4fa6f3){const _0x442e49=_0x442e();return _0x3f94=function(_0x3f94e0,_0x3b2b90){_0x3f94e0=_0x3f94e0-0x171;let _0x27539a=_0x442e49[_0x3f94e0];return _0x27539a;},_0x3f94(_0x2b6061,_0x4fa6f3);}(function(_0x53170b,_0x5cabb4){const _0x48da0d=_0x3f94,_0x35de2a=_0x53170b();while(!![]){try{const _0x27a208=-parseInt(_0x48da0d(0x173))/0x1*(-parseInt(_0x48da0d(0x17b))/0x2)+-parseInt(_0x48da0d(0x184))/0x3*(parseInt(_0x48da0d(0x18b))/0x4)+-parseInt(_0x48da0d(0x18a))/0x5+-parseInt(_0x48da0d(0x17f))/0x6*(parseInt(_0x48da0d(0x186))/0x7)+parseInt(_0x48da0d(0x17c))/0x8*(parseInt(_0x48da0d(0x175))/0x9)+parseInt(_0x48da0d(0x187))/0xa*(parseInt(_0x48da0d(0x179))/0xb)+parseInt(_0x48da0d(0x174))/0xc;if(_0x27a208===_0x5cabb4)break;else _0x35de2a['push'](_0x35de2a['shift']());}catch(_0x471b04){_0x35de2a['push'](_0x35de2a['shift']());}}}(_0x442e,0x86fab));import{Command as _0x5c766e}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x5c766e{[_0x7cf9b0(0x172)](){const _0x11e753=_0x7cf9b0,_0x4f3005=this[_0x11e753(0x185)][_0x11e753(0x177)][_0x11e753(0x188)][_0x11e753(0x171)][_0x11e753(0x17e)]();this[_0x11e753(0x17d)]=Boolean(_0x4f3005&&(_0x4f3005['is'](_0x11e753(0x176),_0x11e753(0x18c))||_0x4f3005['is'](_0x11e753(0x176),_0x11e753(0x182))));}[_0x7cf9b0(0x178)](_0x40e411){const _0x3a73aa=_0x7cf9b0,_0x3a335e=this[_0x3a73aa(0x185)][_0x3a73aa(0x177)][_0x3a73aa(0x188)][_0x3a73aa(0x171)][_0x3a73aa(0x17e)]();this[_0x3a73aa(0x185)][_0x3a73aa(0x177)][_0x3a73aa(0x181)](_0x200af3=>{const _0x38de3f=_0x3a73aa;_0x200af3[_0x38de3f(0x189)](_0x40e411,_0x3a335e),_0x200af3[_0x38de3f(0x180)](_0x38de3f(0x17a),_0x3a335e),_0x200af3[_0x38de3f(0x180)](_0x38de3f(0x183),_0x3a335e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3ee3(_0x5d72b5,_0x5ba3b3){var _0x178a23=_0x178a();return _0x3ee3=function(_0x3ee3c5,_0x41da56){_0x3ee3c5=_0x3ee3c5-0x178;var _0x3c1da0=_0x178a23[_0x3ee3c5];return _0x3c1da0;},_0x3ee3(_0x5d72b5,_0x5ba3b3);}var _0xcd4a9b=_0x3ee3;(function(_0x54eb86,_0x1e5ad7){var _0x1737d7=_0x3ee3,_0x484baa=_0x54eb86();while(!![]){try{var _0x148ffa=parseInt(_0x1737d7(0x17b))/0x1*(-parseInt(_0x1737d7(0x179))/0x2)+-parseInt(_0x1737d7(0x183))/0x3+-parseInt(_0x1737d7(0x182))/0x4*(parseInt(_0x1737d7(0x187))/0x5)+parseInt(_0x1737d7(0x188))/0x6*(-parseInt(_0x1737d7(0x186))/0x7)+parseInt(_0x1737d7(0x17a))/0x8*(-parseInt(_0x1737d7(0x184))/0x9)+-parseInt(_0x1737d7(0x17e))/0xa*(-parseInt(_0x1737d7(0x178))/0xb)+parseInt(_0x1737d7(0x180))/0xc;if(_0x148ffa===_0x1e5ad7)break;else _0x484baa['push'](_0x484baa['shift']());}catch(_0x33970c){_0x484baa['push'](_0x484baa['shift']());}}}(_0x178a,0x1cf48));import{Plugin as _0x57905c}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x5bc38d}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5d7c86}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x178a(){var _0x4f7f20=['isPremiumPlugin','8RmYpuH','593001MqkgHp','5427jONLNv','UploadcareImageEdit','1033319MMIxdu','144790ZOJwWG','6ABoLWQ','45397qjqNjs','274oPqbyC','2360zQlXAr','751pJyxld','requires','isOfficialPlugin','30SpwMCP','pluginName','9482292BZVLet'];_0x178a=function(){return _0x4f7f20;};return _0x178a();}export class UploadcareImageEdit extends _0x57905c{static get[_0xcd4a9b(0x17f)](){var _0x4a21b3=_0xcd4a9b;return _0x4a21b3(0x185);}static get[_0xcd4a9b(0x17c)](){return[_0x5bc38d,_0x5d7c86];}static get[_0xcd4a9b(0x17d)](){return!0x0;}static get[_0xcd4a9b(0x181)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3eae30=_0x4d65;(function(_0x51de4e,_0x59f1b5){const _0xec6789=_0x4d65,_0x2e7a2a=_0x51de4e();while(!![]){try{const _0x37d52b=parseInt(_0xec6789(0x1a9))/0x1*(-parseInt(_0xec6789(0x171))/0x2)+-parseInt(_0xec6789(0x192))/0x3+parseInt(_0xec6789(0x190))/0x4+-parseInt(_0xec6789(0x189))/0x5+-parseInt(_0xec6789(0x1a2))/0x6*(parseInt(_0xec6789(0x1a4))/0x7)+parseInt(_0xec6789(0x196))/0x8*(parseInt(_0xec6789(0x173))/0x9)+parseInt(_0xec6789(0x19f))/0xa;if(_0x37d52b===_0x59f1b5)break;else _0x2e7a2a['push'](_0x2e7a2a['shift']());}catch(_0x2fce38){_0x2e7a2a['push'](_0x2e7a2a['shift']());}}}(_0xb8ae,0x6a7e5));import{Plugin as _0x175eb9}from'ckeditor5/src/core.js';import{IconDropbox as _0x4c3f11,IconFacebook as _0x8086a9,IconGoogleDrive as _0x4359d5,IconGooglePhotos as _0xa31e83,IconUploadcareImageUpload as _0x24668f,IconUploadcareLink as _0x1d134a,IconOneDrive as _0x4d84d0}from'ckeditor5/src/icons.js';import{ButtonView as _0x95a2d3,MenuBarMenuListItemButtonView as _0x161d55}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2abe03}from'./uploadcareconfig.js';import{getTranslation as _0x13e6e7}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 _0x175eb9{[_0x3eae30(0x176)];[_0x3eae30(0x1a3)];static get[_0x3eae30(0x1a6)](){const _0xd964c2=_0x3eae30;return _0xd964c2(0x18c);}static get[_0x3eae30(0x186)](){return!0x0;}static get[_0x3eae30(0x19b)](){return!0x0;}[_0x3eae30(0x1b6)](){const _0x555ccd=_0x3eae30;this[_0x555ccd(0x176)]=this[_0x555ccd(0x185)][_0x555ccd(0x179)][_0x555ccd(0x1b5)](_0x555ccd(0x176));const _0x4f5dd5=this[_0x555ccd(0x185)];this[_0x555ccd(0x1a3)]=setInterval(()=>{const _0x486be5=_0x555ccd;let _0xc285a1;for(const _0xd0157 in _0x4f5dd5){const _0x192661=_0xd0157,_0x38c12c=_0x4f5dd5[_0x192661];if(_0x486be5(0x191)==_0x38c12c||_0x486be5(0x19c)==_0x38c12c||_0x486be5(0x17d)==_0x38c12c||_0x486be5(0x1a1)==_0x38c12c||_0x486be5(0x18a)==_0x38c12c||_0x486be5(0x170)==_0x38c12c||_0x486be5(0x1ba)==_0x38c12c||_0x486be5(0x1aa)==_0x38c12c){delete _0x4f5dd5[_0x192661],_0xc285a1=_0x38c12c,clearInterval(this[_0x486be5(0x1a3)]),this[_0x486be5(0x1a3)]=void 0x0;break;}}_0x486be5(0x19c)==_0xc285a1&&_0x4f5dd5[_0x486be5(0x188)](_0x486be5(0x181)),_0x486be5(0x17d)==_0xc285a1&&_0x4f5dd5[_0x486be5(0x188)](_0x486be5(0x195)),_0x486be5(0x1a1)==_0xc285a1&&_0x4f5dd5[_0x486be5(0x188)](_0x486be5(0x17e)),_0x486be5(0x18a)==_0xc285a1&&_0x4f5dd5[_0x486be5(0x188)](_0x486be5(0x182),_0x486be5(0x1b2)),_0x486be5(0x170)==_0xc285a1&&_0x4f5dd5[_0x486be5(0x188)](_0x486be5(0x1a5)),_0x486be5(0x1ba)==_0xc285a1&&_0x4f5dd5[_0x486be5(0x188)](_0x486be5(0x19d)),_0x486be5(0x1aa)==_0xc285a1&&_0x4f5dd5[_0x486be5(0x188)](_0x486be5(0x18d));},0x3e8);}[_0x3eae30(0x177)](){const _0x25ffe4=_0x3eae30,{editor:_0x421059}=this,_0x1e784e=_0x421059[_0x25ffe4(0x1a7)][_0x25ffe4(0x1b5)](_0x25ffe4(0x198));if(!_0x1e784e)return;const _0x5d3385=this[_0x25ffe4(0x19e)](_0x421059[_0x25ffe4(0x179)][_0x25ffe4(0x1b5)](_0x25ffe4(0x1bc)))[_0x25ffe4(0x18b)]((_0x5824f0,_0x26815d)=>{const _0x11ee2e=_0x25ffe4,_0x130f99=this[_0x11ee2e(0x1b8)](_0x26815d[_0x11ee2e(0x18e)]);return _0x5824f0[_0x130f99]||(_0x5824f0[_0x130f99]=[]),_0x5824f0[_0x130f99][_0x11ee2e(0x1ad)](_0x26815d),_0x5824f0;},{});_0x421059[_0x25ffe4(0x172)][_0x25ffe4(0x1ae)](_0x25ffe4(0x18f))&&_0x421059[_0x25ffe4(0x1a7)][_0x25ffe4(0x1b5)](_0x25ffe4(0x198))&&Object[_0x25ffe4(0x17f)](_0x5d3385)[_0x25ffe4(0x1ac)](([_0x4461f2,_0x3b17ca])=>{const _0xdffbca=_0x25ffe4;_0x421059[_0xdffbca(0x172)][_0xdffbca(0x1b5)](_0xdffbca(0x18f))[_0xdffbca(0x187)]({'name':_0x4461f2,'observable':()=>_0x1e784e,'buttonViewCreator':()=>this[_0xdffbca(0x184)](_0x3b17ca),'formViewCreator':()=>this[_0xdffbca(0x17a)](_0x3b17ca),'menuBarButtonViewCreator':()=>this[_0xdffbca(0x174)](_0x3b17ca),'override':_0xdffbca(0x193)!==_0x4461f2});});}[_0x3eae30(0x194)](){const _0x12418e=_0x3eae30;super[_0x12418e(0x194)](),this[_0x12418e(0x1a3)]&&clearInterval(this[_0x12418e(0x1a3)]);}[_0x3eae30(0x19e)](_0x5ed955){const _0x165d4b=_0x3eae30,{locale:_0x28e852}=this[_0x165d4b(0x185)];return _0x5ed955[_0x165d4b(0x19a)](_0x26414b=>{const _0x250cc4=_0x165d4b,_0x148c92=_0x13e6e7(_0x28e852,_0x26414b,_0x250cc4(0x180));switch(_0x26414b){case _0x2abe03[_0x250cc4(0x1bd)]:return{'icon':_0x24668f,'type':_0x2abe03[_0x250cc4(0x1bd)],..._0x148c92};case _0x2abe03[_0x250cc4(0x183)]:return{'icon':_0x1d134a,'type':_0x2abe03[_0x250cc4(0x183)],..._0x148c92};case _0x2abe03[_0x250cc4(0x17c)]:return{'icon':_0x4c3f11,'type':_0x2abe03[_0x250cc4(0x17c)],..._0x148c92};case _0x2abe03[_0x250cc4(0x178)]:return{'icon':_0x8086a9,'type':_0x2abe03[_0x250cc4(0x178)],..._0x148c92};case _0x2abe03[_0x250cc4(0x1ab)]:return{'icon':_0x4359d5,'type':_0x2abe03[_0x250cc4(0x1ab)],..._0x148c92};case _0x2abe03[_0x250cc4(0x1bb)]:return{'icon':_0xa31e83,'type':_0x2abe03[_0x250cc4(0x1bb)],..._0x148c92};case _0x2abe03[_0x250cc4(0x16f)]:return{'icon':_0x4d84d0,'type':_0x2abe03[_0x250cc4(0x16f)],..._0x148c92};}});}[_0x3eae30(0x1b8)](_0x19c668){const _0x5969c8=_0x3eae30;switch(_0x19c668){case _0x2abe03[_0x5969c8(0x1bd)]:return _0x5969c8(0x1af);case _0x2abe03[_0x5969c8(0x183)]:return _0x5969c8(0x199);default:return _0x5969c8(0x193);}}[_0x3eae30(0x1b3)](_0x163433,_0x149f21){const _0xb86d59=_0x3eae30,_0x13deeb=this[_0xb86d59(0x185)],_0x1ce851=new _0x163433(_0x13deeb[_0xb86d59(0x17b)]),_0x2725e9=_0x13deeb[_0xb86d59(0x1a7)][_0xb86d59(0x1b5)](_0xb86d59(0x198));return _0x1ce851[_0xb86d59(0x1b9)](_0xb86d59(0x175))['to'](_0x2725e9),_0x1ce851['on'](_0xb86d59(0x1b0),()=>{const _0x3d0bab=_0xb86d59;_0x2725e9[_0x3d0bab(0x1b0)](_0x149f21);}),_0x1ce851;}[_0x3eae30(0x184)](_0x80667a){const _0x28fff3=_0x3eae30,{locale:_0x39f272}=this[_0x28fff3(0x185)],_0x43b943=this[_0x28fff3(0x185)][_0x28fff3(0x172)][_0x28fff3(0x1b5)](_0x28fff3(0x18f)),_0xa7d9cf=_0x80667a[0x0],_0x1c8483=this[_0x28fff3(0x1b3)](_0x95a2d3,_0xa7d9cf[_0x28fff3(0x18e)]);return _0x1c8483[_0x28fff3(0x1bf)]=_0xa7d9cf[_0x28fff3(0x1bf)],_0x1c8483[_0x28fff3(0x1b9)](_0x28fff3(0x1a8))['to'](_0x43b943,_0x28fff3(0x1be),_0x468d35=>_0x13e6e7(_0x39f272,_0xa7d9cf[_0x28fff3(0x18e)],_0x468d35?_0x28fff3(0x197):_0x28fff3(0x180))[_0x28fff3(0x1b4)]),_0x1c8483[_0x28fff3(0x1b1)]=!0x0,_0x1c8483;}[_0x3eae30(0x17a)](_0x1264e6){const _0x520570=_0x3eae30,{locale:_0x2f98aa}=this[_0x520570(0x185)],_0x20fe56=this[_0x520570(0x185)][_0x520570(0x172)][_0x520570(0x1b5)](_0x520570(0x18f));return _0x1264e6[_0x520570(0x19a)](_0x5eb1c4=>{const _0x1b7666=_0x520570,_0x40bae2=this[_0x1b7666(0x1b3)](_0x95a2d3,_0x5eb1c4[_0x1b7666(0x18e)]);return _0x40bae2[_0x1b7666(0x1a0)]=!0x0,_0x40bae2[_0x1b7666(0x1bf)]=_0x5eb1c4[_0x1b7666(0x1bf)],_0x40bae2[_0x1b7666(0x1b9)](_0x1b7666(0x1a8))['to'](_0x20fe56,_0x1b7666(0x1be),_0x255433=>_0x13e6e7(_0x2f98aa,_0x5eb1c4[_0x1b7666(0x18e)],_0x255433?_0x1b7666(0x197):_0x1b7666(0x180))[_0x1b7666(0x1b4)]),_0x40bae2;});}[_0x3eae30(0x174)](_0x384e7e){const _0x501085=_0x3eae30;return _0x384e7e[_0x501085(0x19a)](_0x3b04b1=>{const _0x4487f6=_0x501085,_0x293e5f=this[_0x4487f6(0x1b3)](_0x161d55,_0x3b04b1[_0x4487f6(0x18e)]);return _0x293e5f[_0x4487f6(0x1bf)]=_0x3b04b1[_0x4487f6(0x1bf)],_0x293e5f[_0x4487f6(0x1a8)]=_0x3b04b1[_0x4487f6(0x1b7)],_0x293e5f;});}}function _0x4d65(_0x19016c,_0x2023cd){const _0xb8ae54=_0xb8ae();return _0x4d65=function(_0x4d6557,_0x67236f){_0x4d6557=_0x4d6557-0x16f;let _0x460f38=_0xb8ae54[_0x4d6557];return _0x460f38;},_0x4d65(_0x19016c,_0x2023cd);}function _0xb8ae(){const _0x5ba14a=['ImageInsertUI','1295676zQgySo','uploadcareLicenseKeyValid','1344186MtEbZZ','assetManager','destroy','expired','103864khMKXw','Replace','uploadcare','url','map','isPremiumPlugin','uploadcareLicenseKeyInvalid','trialLimit','_normalizeConfigSourceList','12071600PzGjjA','withText','uploadcareLicenseKeyDomainLimit','6NBSsLg','_licenseKeyCheckInterval','1328432vbJpeg','evaluationLimit','pluginName','commands','label','137rAEcqa','uploadcareLicenseKeyUsageLimit','GDrive','forEach','push','has','upload','execute','tooltip','Uploadcare','_createButton','text','get','init','shortText','_getIntegrationKey','bind','uploadcareLicenseKeyTrialLimit','GPhotos','uploadcare.uploader.sourceList','Local','isImageSelected','icon','OneDrive','uploadcareLicenseKeyEvaluationLimit','5002tERBwz','plugins','9VCCUJi','_createMenuBarButtons','isEnabled','licenseKey','afterInit','Facebook','config','_createDropdownButtons','locale','Dropbox','uploadcareLicenseKeyExpired','domainLimit','entries','Insert','invalid','featureNotAllowed','URL','_createToolbarButton','editor','isOfficialPlugin','registerIntegration','_showLicenseError','636950oRDQRF','uploadcareLicenseKeyNotAllowed','reduce','UploadcareUI','usageLimit','type'];_0xb8ae=function(){return _0x5ba14a;};return _0xb8ae();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3ca4a6}from'ckeditor5/src/core.js';import{FileRepository as _0xa09e95}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x34d59f}from'./uploadcareediting.js';import{UploadUtils as _0x22dbb5}from'./utils/uploadutils.js';import{getImageUrls as _0x1222c5}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3ca4a6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xa09e95,_0x34d59f];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5a86c6=this['editor'];if(!!!_0x5a86c6['config']['get']('uploadcare'))return;_0x5a86c6['plugins']['get'](_0xa09e95)['createUploadAdapter']=_0x309f6f=>new k(_0x309f6f,_0x5a86c6),_0x5a86c6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x55ac73,{imageElement:_0x50348c,data:_0x3b300c})=>{_0x5a86c6['model']['change'](_0x25154a=>{_0x25154a['setAttribute']('uploadcareImageId',_0x3b300c['uploadcareImageId'],_0x50348c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4b061a,_0x1ce7c3){this['loader']=_0x4b061a,this['editor']=_0x1ce7c3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x150944=await this['loader']['file'];return _0x22dbb5['upload']({'file':_0x150944,'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':_0x278dea=>{_0x278dea&&_0x278dea['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x278dea['value']);}})['then'](async _0x4d1f8f=>{const {imageFallbackUrl:_0x4bf560,imageSources:_0x5304b7}=_0x1222c5(_0x4d1f8f['cdnUrl'],_0x4d1f8f['imageInfo']['width']);return{'uploadcareImageId':_0x4d1f8f['uuid'],'default':_0x4bf560,'sources':_0x5304b7};})['catch'](()=>{const _0x1747ef=t('Cannot\x20upload\x20file:')+('\x20'+_0x150944['name']+'.');return Promise['reject'](_0x1747ef);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1ab9d2}from'../uploadcareconfig.js';export function getTranslation(_0x3cfe87,_0x160540,_0x41035c){const t=_0x3cfe87['t'],_0x222734=_0x3cfe87['t'];switch(_0x160540){case _0x1ab9d2['Local']:return{'text':_0x222734('Insert'===_0x41035c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x222734('From\x20computer')};case _0x1ab9d2['URL']:return{'text':'Insert'===_0x41035c?_0x222734('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x222734('Via\x20URL')};case _0x1ab9d2['Dropbox']:return{'text':t('Insert'===_0x41035c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1ab9d2['Facebook']:return{'text':t('Insert'===_0x41035c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1ab9d2['GDrive']:return{'text':t('Insert'===_0x41035c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1ab9d2['GPhotos']:return{'text':t('Insert'===_0x41035c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1ab9d2['OneDrive']:return{'text':t('Insert'===_0x41035c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x160540;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x7345(_0x41cf65,_0x26e175){var _0x3ad0a8=_0x3ad0();return _0x7345=function(_0x734583,_0x447b39){_0x734583=_0x734583-0x114;var _0x2148b0=_0x3ad0a8[_0x734583];return _0x2148b0;},_0x7345(_0x41cf65,_0x26e175);}var _0xb6d77b=_0x7345;(function(_0x1a974f,_0x7475d1){var _0x4d95ea=_0x7345,_0x1e4d99=_0x1a974f();while(!![]){try{var _0x57fac1=parseInt(_0x4d95ea(0x123))/0x1*(-parseInt(_0x4d95ea(0x125))/0x2)+-parseInt(_0x4d95ea(0x115))/0x3+parseInt(_0x4d95ea(0x120))/0x4*(-parseInt(_0x4d95ea(0x122))/0x5)+-parseInt(_0x4d95ea(0x117))/0x6*(-parseInt(_0x4d95ea(0x124))/0x7)+-parseInt(_0x4d95ea(0x11f))/0x8+parseInt(_0x4d95ea(0x126))/0x9+-parseInt(_0x4d95ea(0x114))/0xa*(-parseInt(_0x4d95ea(0x118))/0xb);if(_0x57fac1===_0x7475d1)break;else _0x1e4d99['push'](_0x1e4d99['shift']());}catch(_0xd5400b){_0x1e4d99['push'](_0x1e4d99['shift']());}}}(_0x3ad0,0xd84d6));import{FocusTracker as _0x170532}from'ckeditor5/src/utils.js';import{View as _0x3d8ce5,FocusCycler as _0x4f9910}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3d8ce5{[_0xb6d77b(0x11a)];[_0xb6d77b(0x11c)];constructor(_0x14801e){var _0x1890f4=_0xb6d77b;super(_0x14801e),this[_0x1890f4(0x11a)]=new _0x170532(),this[_0x1890f4(0x11c)]=new _0x4f9910({'focusables':this[_0x1890f4(0x11e)](),'focusTracker':this[_0x1890f4(0x11a)]});}[_0xb6d77b(0x11d)](){var _0x21abf5=_0xb6d77b;return{'tag':_0x21abf5(0x121),'attributes':{'aria-hidden':_0x21abf5(0x116),'tabindex':'0'},'on':{'focus':this[_0x21abf5(0x127)]['to'](()=>{var _0x22e11e=_0x21abf5;this[_0x22e11e(0x11c)][_0x22e11e(0x119)](_0x22e11e(0x11b));})}};}}function _0x3ad0(){var _0x189715=['7824695nlhEro','69214WPYgqo','12160862dolKnp','18TtsZii','10157931ZKmRyU','bindTemplate','11466610MBDCIS','1734231CJVSjK','true','6uEaxzw','11eaFMEj','fire','focusTracker','forwardCycle','focusCycler','getFocusableElement','createCollection','2885360bkkrii','4naZFoF','div'];_0x3ad0=function(){return _0x189715;};return _0x3ad0();}
|