@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250916.0 → 0.0.0-nightly-20250918.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x13c3b2=_0x57d3;(function(_0x1fc22e,_0x7473d){const _0x3137f8=_0x57d3,_0x2f3cae=_0x1fc22e();while(!![]){try{const _0x5b1c8f=-parseInt(_0x3137f8(0x1ba))/0x1*(-parseInt(_0x3137f8(0x1dc))/0x2)+-parseInt(_0x3137f8(0x19e))/0x3*(parseInt(_0x3137f8(0x19b))/0x4)+-parseInt(_0x3137f8(0x1a4))/0x5+parseInt(_0x3137f8(0x1ef))/0x6+parseInt(_0x3137f8(0x1cc))/0x7*(-parseInt(_0x3137f8(0x1e9))/0x8)+-parseInt(_0x3137f8(0x1ed))/0x9*(parseInt(_0x3137f8(0x1b2))/0xa)+parseInt(_0x3137f8(0x1a0))/0xb;if(_0x5b1c8f===_0x7473d)break;else _0x2f3cae['push'](_0x2f3cae['shift']());}catch(_0x1d3d67){_0x2f3cae['push'](_0x2f3cae['shift']());}}}(_0x5d2e,0xca6f5));import{Plugin as _0x11e9f3}from'ckeditor5/src/core.js';function _0x57d3(_0x17e865,_0x561794){const _0x5d2e70=_0x5d2e();return _0x57d3=function(_0x57d3a2,_0xa91145){_0x57d3a2=_0x57d3a2-0x19b;let _0x451a0b=_0x5d2e70[_0x57d3a2];return _0x451a0b;},_0x57d3(_0x17e865,_0x561794);}import{Dialog as _0x1bcab9}from'ckeditor5/src/ui.js';import{createElement as _0x256282,global as _0x4039ab,uid as _0x4b4fea}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4be052}from'./uploadcarecommand.js';function _0x5d2e(){const _0x5057f8=['appendChild','remove','getAttribute','for','_initImageProcessingIndicator','_configElement','isOfficialPlugin','selection','fromCharCode','5970BeqOPI','conversion','_initSchema','map','requires','model','uploadcare','input[uploadcare-file-input]','6vjyQfL','uc-upload-ctx-provider','body','getSelectedElement','data-uc-image-id','isPremiumPlugin','PictureEditing','locale','get','imageBlock','render','downcast','uploadcareImageReplace','elementToAttribute','upcast','true','add','config','1475656ClEMOB','_initConversion','listenTo','document','afterInit','pluginName','imageInline','extend','once','closeMax','schema','editor','isRegistered','ctxElement','uploader-','configElement','360994hFbyuc','uploadcareImageId','#uc-icon-arrow-down','iconHrefResolver','join','commands','_ctxElement','view','uploadcare.pubkey','uc-config','editing','execute','href','24ENXDSt','uploadcare.uploader','querySelector','cleanupImage','24921kSnUGO','destroy','9106050WCeDqL','_initConfig','67484gOVABP','contentLanguage','init','75txzNXJ','\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','12803703aTPvQs','ucContextId','UploadcareEditing','insertImage','1140825nTgVSM','replaceImageSource','_initCtx','removeAttribute','attributeToAttribute'];_0x5d2e=function(){return _0x5057f8;};return _0x5d2e();}import{UploadcareUploadAdapter as _0xca19bd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x393173}from'./utils/editingutils.js';export class UploadcareEditing extends _0x11e9f3{[_0x13c3b2(0x1ae)]=null;[_0x13c3b2(0x1e2)]=null;static get[_0x13c3b2(0x1d1)](){const _0x1d284a=_0x13c3b2;return _0x1d284a(0x1a2);}static get[_0x13c3b2(0x1b6)](){const _0x574af8=_0x13c3b2;return[_0x574af8(0x1c0),_0xca19bd,_0x1bcab9];}static get[_0x13c3b2(0x1af)](){return!0x0;}static get[_0x13c3b2(0x1bf)](){return!0x0;}[_0x13c3b2(0x1a1)];get[_0x13c3b2(0x1db)](){const _0x498954=_0x13c3b2;return this[_0x498954(0x1ae)];}get[_0x13c3b2(0x1d9)](){const _0x2e275b=_0x13c3b2;return this[_0x2e275b(0x1e2)];}constructor(_0x2f7a88){const _0xe1982=_0x13c3b2;super(_0x2f7a88),this[_0xe1982(0x1a1)]=_0x4b4fea();}[_0x13c3b2(0x19d)](){const _0x2c83c0=_0x13c3b2,_0x5b69d8=this[_0x2c83c0(0x1d7)];_0x5b69d8[_0x2c83c0(0x1e1)][_0x2c83c0(0x1ca)](_0x2c83c0(0x1b8),new _0x4be052(_0x5b69d8));}[_0x13c3b2(0x1d0)](){const _0x3ef552=_0x13c3b2;this[_0x3ef552(0x1b4)](),this[_0x3ef552(0x1cd)](),this[_0x3ef552(0x1f0)](),this[_0x3ef552(0x1a6)](),this[_0x3ef552(0x1ad)](),this[_0x3ef552(0x1ce)](this[_0x3ef552(0x1d7)],_0x3ef552(0x1ee),()=>{const _0x274195=_0x3ef552;this[_0x274195(0x1ae)]&&(this[_0x274195(0x1ae)][_0x274195(0x1aa)](),this[_0x274195(0x1ae)]=null),this[_0x274195(0x1e2)]&&(this[_0x274195(0x1e2)][_0x274195(0x1aa)](),this[_0x274195(0x1e2)]=null);const _0xf72fce=_0x4039ab[_0x274195(0x1cf)][_0x274195(0x1eb)](_0x274195(0x1b9));_0xf72fce&&_0xf72fce[_0x274195(0x1aa)]();}),async function(_0x175125){const _0x42092f=_0x58a3ed([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]),_0x38fff8=0x3d8d0df,_0x502322=0x3dfa357^_0x38fff8,_0xbc02d0=window[_0x58a3ed([0x44,0x61,0x74,0x65])][_0x58a3ed([0x6e,0x6f,0x77])](),_0x2e7c85=_0x175125[_0x58a3ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xed54ca=new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5de30e=>{_0x2e7c85[_0x58a3ed([0x6f,0x6e,0x63,0x65])](_0x58a3ed([0x72,0x65,0x61,0x64,0x79]),_0x5de30e);}),_0x5e81c0={[_0x58a3ed([0x6b,0x74,0x79])]:_0x58a3ed([0x45,0x43]),[_0x58a3ed([0x75,0x73,0x65])]:_0x58a3ed([0x73,0x69,0x67]),[_0x58a3ed([0x63,0x72,0x76])]:_0x58a3ed([0x50,0x2d,0x32,0x35,0x36]),[_0x58a3ed([0x78])]:_0x58a3ed([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]),[_0x58a3ed([0x79])]:_0x58a3ed([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]),[_0x58a3ed([0x61,0x6c,0x67])]:_0x58a3ed([0x45,0x53,0x32,0x35,0x36])},_0x5c0966=_0x2e7c85[_0x58a3ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58a3ed([0x67,0x65,0x74])](_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc8815d(){let _0xbcc4c6,_0x4feda7=null,_0x17f8fb=null;try{if(_0x5c0966==_0x58a3ed([0x47,0x50,0x4c]))return _0x58a3ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbcc4c6=_0x19a477(),!_0xbcc4c6)return _0x58a3ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbcc4c6[_0x58a3ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17f8fb=_0x408d5e(_0xbcc4c6[_0x58a3ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbcc4c6[_0x58a3ed([0x6a,0x74,0x69])])),await _0x1bdaef()?_0x6eac82()?_0x150e08()?_0x58a3ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29bd87()?(_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58a3ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4feda7=_0x5e533f(_0x58a3ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58a3ed([0x74,0x72,0x69,0x61,0x6c])&&(_0x4feda7=_0x5e533f(_0x58a3ed([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xac426b()):_0x58a3ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58a3ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58a3ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58a3ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x150e08(){const _0xfbba67=[_0x58a3ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58a3ed([0x74,0x72,0x69,0x61,0x6c])][_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbc02d0/0x3e8:0xe10*_0x502322;return _0xbcc4c6[_0x58a3ed([0x65,0x78,0x70])]<_0xfbba67;}function _0x6eac82(){const _0x3eb7de=_0xbcc4c6[_0x58a3ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3eb7de&&(!!_0x3eb7de[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58a3ed([0x2a]))||!!_0x3eb7de[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58a3ed([0x55,0x50,0x4c,0x43])));}function _0x29bd87(){const _0x2d0446=_0x57d3,_0x325649=_0xbcc4c6[_0x58a3ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x325649||0x0==_0x325649[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a8bbd}=new URL(window[_0x58a3ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d0446(0x1e8)]);if(_0x325649[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8bbd))return!0x0;const _0x662560=_0x4a8bbd[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e]));return _0x325649[_0x58a3ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5f2d=>_0xe5f2d[_0x58a3ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58a3ed([0x2a])))[_0x58a3ed([0x6d,0x61,0x70])](_0x20b05f=>_0x20b05f[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e])))[_0x58a3ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x194d56=>_0x194d56[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x662560[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58a3ed([0x6d,0x61,0x70])](_0x469db7=>Array(_0x662560[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x469db7[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58a3ed([0x66,0x69,0x6c,0x6c])](_0x469db7[0x0]===_0x58a3ed([0x2a])?_0x58a3ed([0x2a]):'')[_0x58a3ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x469db7))[_0x58a3ed([0x73,0x6f,0x6d,0x65])](_0x1fa053=>_0x662560[_0x58a3ed([0x65,0x76,0x65,0x72,0x79])]((_0x17db78,_0x321a21)=>_0x1fa053[_0x321a21]===_0x17db78||_0x1fa053[_0x321a21]===_0x58a3ed([0x2a])));}function _0xac426b(){return _0x4feda7&&_0x17f8fb?new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ed92b,_0x368ec5)=>{_0x4feda7[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x3ed92b,_0x368ec5),_0x17f8fb[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x422154=>{_0x422154!=_0x58a3ed([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed92b(_0x422154);},_0x368ec5);}):_0x4feda7||_0x17f8fb||_0x58a3ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408d5e(_0x305777,_0x33c809){return new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4310=>{if(_0x502242())return _0x5f4310(_0x58a3ed([0x56,0x61,0x6c,0x69,0x64]));_0x47f477(),_0x2e7c85[_0x58a3ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58a3ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a9d7b=!0x1;const _0x2d9280=_0x4b4fea();function _0x66a2f5(_0x48c880){return!!_0x48c880&&(typeof _0x48c880===_0x58a3ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48c880===_0x58a3ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48c880[_0x58a3ed([0x74,0x68,0x65,0x6e])]===_0x58a3ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48c880[_0x58a3ed([0x63,0x61,0x74,0x63,0x68])]===_0x58a3ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42d4f2(_0x2b3b67){_0x2811be(_0x2b3b67)[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x5e58fe=>{if(!_0x5e58fe||_0x5e58fe[_0x58a3ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58a3ed([0x6f,0x6b]))return _0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4733f7(_0xd4ccb2(_0x2d9280+_0x33c809))!=_0x5e58fe[_0x58a3ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58a3ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x317648=>(_0x3bd5dd(),_0x317648),()=>{const _0x37f587=_0x1e2531();return null==_0x37f587?(_0x3bd5dd(),_0x58a3ed([0x56,0x61,0x6c,0x69,0x64])):_0x58a3ed(_0xbc02d0-_0x37f587>(0x27d454df^_0x38fff8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x5f4310)[_0x58a3ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f4310(_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f5066=0x3ee3e5f^_0x38fff8;function _0x3bd5dd(){const _0x2a96a3=_0x58a3ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x4733f7(_0xd4ccb2(_0x305777)),_0x27f249=_0xf5fc28(_0x4733f7(window[_0x58a3ed([0x4d,0x61,0x74,0x68])][_0x58a3ed([0x63,0x65,0x69,0x6c])](_0xbc02d0/_0x3f5066)));window[_0x58a3ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58a3ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a96a3,_0x27f249);}function _0x1e2531(){const _0x41a5f1=_0x58a3ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x4733f7(_0xd4ccb2(_0x305777)),_0x3ac753=window[_0x58a3ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58a3ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41a5f1);return _0x3ac753?window[_0x58a3ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf5fc28(_0x3ac753),0x10)*_0x3f5066:null;}function _0x2811be(_0x2caeeb){return new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31dfe1,_0x52b0a4)=>{_0x2caeeb[_0x58a3ed([0x74,0x68,0x65,0x6e])](_0x31dfe1,_0x52b0a4),window[_0x58a3ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52b0a4,0x3d9041f^_0x38fff8);});}}_0x2e7c85[_0x58a3ed([0x6f,0x6e])](_0x58a3ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fb27d,_0x91402c)=>{if(_0x91402c[0x0]!=_0x305777)return _0x5f4310(_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x91402c[0x1]={..._0x91402c[0x1],[_0x58a3ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d9280};},{[_0x58a3ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58a3ed([0x68,0x69,0x67,0x68])}),_0x2e7c85[_0x58a3ed([0x6f,0x6e])](_0x58a3ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42989f=>{_0x66a2f5(_0x42989f[_0x58a3ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a9d7b=!0x0,_0x42d4f2(_0x42989f[_0x58a3ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58a3ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58a3ed([0x6c,0x6f,0x77])}),_0xed54ca[_0x58a3ed([0x74,0x68,0x65,0x6e])](()=>{_0x3a9d7b||_0x5f4310(_0x58a3ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x502242(){return _0x2e7c85[_0x58a3ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58a3ed([0x76,0x69,0x65,0x77])][_0x58a3ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58a3ed([0x61,0x75,0x74,0x6f]);}function _0x47f477(){_0x2e7c85[_0x58a3ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58a3ed([0x76,0x69,0x65,0x77])][_0x58a3ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58a3ed([0x61,0x75,0x74,0x6f]);}}function _0x5e533f(_0x1493ec){const _0x50923a=[new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40fe50=>setTimeout(_0x40fe50,0x3d1ee13^_0x38fff8)),_0xed54ca[_0x58a3ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220a22=>{let _0x55ccfb=0x0;_0x2e7c85[_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x58a3ed([0x6f,0x6e])](_0x58a3ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d3f9c,_0x4f8c7c)=>{_0x4f8c7c[0x0][_0x58a3ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55ccfb++,_0x55ccfb==(0x3d8d127^_0x38fff8)&&(_0x220a22(),_0x1d3f9c[_0x58a3ed([0x6f,0x66,0x66])]());});}))];return window[_0x58a3ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58a3ed([0x72,0x61,0x63,0x65])](_0x50923a)[_0x58a3ed([0x74,0x68,0x65,0x6e])](()=>_0x1493ec);}async function _0x406b67(){await _0xed54ca,_0x2e7c85[_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x58a3ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x178ac4,_0x2e7c85[_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x58a3ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x178ac4,_0x2e7c85[_0x58a3ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58a3ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x205575(_0x506b45){const _0xa78b2e=_0x22e9dc();_0x2e7c85[_0xa78b2e]=_0x58a3ed([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x506b45,_0x506b45!=_0x58a3ed([0x56,0x61,0x6c,0x69,0x64])&&_0x406b67();}function _0x22e9dc(){const _0x30e75f=window[_0x58a3ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58a3ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58a3ed([0x6e,0x6f,0x77])]())[_0x58a3ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58a3ed([0x2e]),'');let _0x4cfd53=_0x58a3ed([0x52]);for(let _0xc7fd35=0x0;_0xc7fd35<_0x30e75f[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc7fd35+=0x2){let _0x304e4a=window[_0x58a3ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e75f[_0x58a3ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc7fd35,_0xc7fd35+0x2));_0x304e4a>=_0x42092f[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x304e4a-=_0x42092f[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cfd53+=_0x42092f[_0x304e4a];}return _0x4cfd53;}function _0x19a477(){const _0x3277b2=_0x5c0966[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e]));if(0x3!=_0x3277b2[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44b087(_0x3277b2[0x1]);function _0x44b087(_0x59681a){const _0x234f50=_0x5a5ccf(_0x59681a);return _0x234f50&&_0x3b56d6()?_0x234f50:null;function _0x3b56d6(){const _0x2b68bd=_0x234f50[_0x58a3ed([0x6a,0x74,0x69])],_0x5c20e5=window[_0x58a3ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b68bd[_0x58a3ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b68bd[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x67b27e={..._0x234f50,[_0x58a3ed([0x6a,0x74,0x69])]:_0x2b68bd[_0x58a3ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b68bd[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x67b27e[_0x58a3ed([0x76,0x63])],_0xd4ccb2(_0x67b27e)==_0x5c20e5;}}}async function _0x1bdaef(){let _0x379d05=!0x0;try{const _0x5f414b=_0x5c0966[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])](_0x58a3ed([0x2e])),[_0x5d2bea,_0x43b798,_0xd6d174]=_0x5f414b;return _0x350b10(_0x5d2bea),await _0x5e6b6c(_0x5d2bea,_0x43b798,_0xd6d174),_0x379d05;}catch{return!0x1;}function _0x350b10(_0x13c857){const _0x28eca9=_0x5a5ccf(_0x13c857);_0x28eca9&&_0x28eca9[_0x58a3ed([0x61,0x6c,0x67])]==_0x58a3ed([0x45,0x53,0x32,0x35,0x36])||(_0x379d05=!0x1);}async function _0x5e6b6c(_0x19be5d,_0x386a42,_0x35279c){const _0x9b80a6=window[_0x58a3ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58a3ed([0x66,0x72,0x6f,0x6d])](_0x45899b(_0x35279c),_0x254923=>_0x254923[_0x58a3ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5156ba=new window[(_0x58a3ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58a3ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19be5d+_0x58a3ed([0x2e])+_0x386a42),_0xbc6135=window[_0x58a3ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58a3ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbc6135)return;const _0x34ff77=await _0xbc6135[_0x58a3ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58a3ed([0x6a,0x77,0x6b]),_0x5e81c0,{[_0x58a3ed([0x6e,0x61,0x6d,0x65])]:_0x58a3ed([0x45,0x43,0x44,0x53,0x41]),[_0x58a3ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58a3ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58a3ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbc6135[_0x58a3ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58a3ed([0x6e,0x61,0x6d,0x65])]:_0x58a3ed([0x45,0x43,0x44,0x53,0x41]),[_0x58a3ed([0x68,0x61,0x73,0x68])]:{[_0x58a3ed([0x6e,0x61,0x6d,0x65])]:_0x58a3ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34ff77,_0x9b80a6,_0x5156ba)||(_0x379d05=!0x1);}}function _0x5a5ccf(_0x20c4cb){return _0x20c4cb[_0x58a3ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58a3ed([0x65,0x79]))?JSON[_0x58a3ed([0x70,0x61,0x72,0x73,0x65])](_0x45899b(_0x20c4cb)):null;}function _0x45899b(_0x353fbf){return window[_0x58a3ed([0x61,0x74,0x6f,0x62])](_0x353fbf[_0x58a3ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58a3ed([0x2b]))[_0x58a3ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58a3ed([0x2f])));}function _0xd4ccb2(_0x5cef12){let _0x39df51=0x1505;function _0x1e46c1(_0x289755){for(let _0x5c652e=0x0;_0x5c652e<_0x289755[_0x58a3ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c652e++){const _0x594efb=_0x289755[_0x58a3ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c652e);_0x39df51=(_0x39df51<<0x5)+_0x39df51+_0x594efb,_0x39df51&=_0x39df51;}}function _0x2bf585(_0x202e6c){Array[_0x58a3ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x202e6c)?_0x202e6c[_0x58a3ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bf585):_0x202e6c&&typeof _0x202e6c==_0x58a3ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58a3ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x202e6c)[_0x58a3ed([0x73,0x6f,0x72,0x74])]()[_0x58a3ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x566787,_0x364df0])=>{_0x1e46c1(_0x566787),_0x2bf585(_0x364df0);}):_0x1e46c1(window[_0x58a3ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x202e6c));}return _0x2bf585(_0x5cef12),_0x39df51>>>0x0;}function _0x4733f7(_0x5a789f){return _0x5a789f[_0x58a3ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58a3ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58a3ed([0x30]));}function _0xf5fc28(_0x391540){return _0x391540[_0x58a3ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58a3ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58a3ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x178ac4(){}function _0x58a3ed(_0x3e69a1){const _0xcbb5e3=_0x57d3;return _0x3e69a1[_0xcbb5e3(0x1b5)](_0x4a3cb4=>String[_0xcbb5e3(0x1b1)](_0x4a3cb4))[_0xcbb5e3(0x1e0)]('');}_0x205575(await _0xc8815d());}(this);}[_0x13c3b2(0x1b4)](){const _0x3aacb3=_0x13c3b2,_0x28fa96=this[_0x3aacb3(0x1d7)][_0x3aacb3(0x1b7)][_0x3aacb3(0x1d6)];_0x28fa96[_0x3aacb3(0x1d8)](_0x3aacb3(0x1c3))&&_0x28fa96[_0x3aacb3(0x1d3)](_0x3aacb3(0x1c3),{'allowAttributes':[_0x3aacb3(0x1dd)]}),_0x28fa96[_0x3aacb3(0x1d8)](_0x3aacb3(0x1d2))&&_0x28fa96[_0x3aacb3(0x1d3)](_0x3aacb3(0x1d2),{'allowAttributes':[_0x3aacb3(0x1dd)]});}[_0x13c3b2(0x1cd)](){const _0x408a4b=_0x13c3b2,_0x4e0ea9=this[_0x408a4b(0x1d7)];_0x4e0ea9[_0x408a4b(0x1b3)][_0x408a4b(0x1ac)](_0x408a4b(0x1c5))[_0x408a4b(0x1a8)]({'model':_0x408a4b(0x1dd),'view':_0x408a4b(0x1be)}),_0x4e0ea9[_0x408a4b(0x1b3)][_0x408a4b(0x1ac)](_0x408a4b(0x1c8))[_0x408a4b(0x1c7)]({'model':{'key':_0x408a4b(0x1dd),'value':_0x2ad39d=>_0x2ad39d[_0x408a4b(0x1ab)](_0x408a4b(0x1be))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ad179=_0x4e0ea9[_0x408a4b(0x1e1)][_0x408a4b(0x1c2)](_0x408a4b(0x1a5));_0x5ad179&&this[_0x408a4b(0x1ce)](_0x5ad179,_0x408a4b(0x1ec),(_0x289c45,[_0x57d37b,_0x7df868])=>{const _0x98ba28=_0x408a4b;_0x57d37b[_0x98ba28(0x1a7)](_0x98ba28(0x1dd),_0x7df868);});}[_0x13c3b2(0x1f0)](){const _0x319482=_0x13c3b2,_0x304ce9=this[_0x319482(0x1d7)][_0x319482(0x1cb)][_0x319482(0x1c2)](_0x319482(0x1ea))||{},_0x34ba35=this[_0x319482(0x1d7)][_0x319482(0x1cb)][_0x319482(0x1c2)](_0x319482(0x1e4))||'';this[_0x319482(0x1ae)]=_0x256282(_0x4039ab[_0x319482(0x1cf)],_0x319482(0x1e5),{..._0x304ce9,'pubkey':_0x34ba35,'ctx-name':_0x319482(0x1da)+this[_0x319482(0x1a1)],'sourceList':'','imgOnly':_0x319482(0x1c9),'removeCopyright':_0x319482(0x1c9),'localeName':this[_0x319482(0x1d7)][_0x319482(0x1c1)][_0x319482(0x19c)],'externalSourcesEmbedCss':_0x319482(0x19f)}),this[_0x319482(0x1ae)][_0x319482(0x1df)]=_0x33824c=>{const _0x4672e5=_0x319482;if(_0x4672e5(0x1d5)==_0x33824c)return _0x4672e5(0x1de);},_0x4039ab[_0x319482(0x1cf)][_0x319482(0x1bc)][_0x319482(0x1a9)](this[_0x319482(0x1ae)]);}[_0x13c3b2(0x1a6)](){const _0x549288=_0x13c3b2;this[_0x549288(0x1e2)]=_0x256282(_0x4039ab[_0x549288(0x1cf)],_0x549288(0x1bb),{'ctx-name':_0x549288(0x1da)+this[_0x549288(0x1a1)]}),_0x4039ab[_0x549288(0x1cf)][_0x549288(0x1bc)][_0x549288(0x1a9)](this[_0x549288(0x1e2)]);}[_0x13c3b2(0x1ad)](){const _0x40fa08=_0x13c3b2,_0x3451cc=this[_0x40fa08(0x1d7)][_0x40fa08(0x1e1)][_0x40fa08(0x1c2)](_0x40fa08(0x1a3));_0x3451cc&&this[_0x40fa08(0x1ce)](_0x3451cc,_0x40fa08(0x1e7),()=>{const _0x5f4bc4=_0x40fa08,_0x3a897f=this[_0x5f4bc4(0x1d7)][_0x5f4bc4(0x1b7)][_0x5f4bc4(0x1cf)][_0x5f4bc4(0x1b0)][_0x5f4bc4(0x1bd)]();_0x3a897f&&_0x3a897f[_0x5f4bc4(0x1ab)](_0x5f4bc4(0x1dd))&&this[_0x5f4bc4(0x1d7)][_0x5f4bc4(0x1e6)][_0x5f4bc4(0x1e3)][_0x5f4bc4(0x1d4)](_0x5f4bc4(0x1c4),()=>{const _0x3dd306=_0x5f4bc4;_0x393173(this[_0x3dd306(0x1d7)],_0x3a897f);});});const _0x319d82=this[_0x40fa08(0x1d7)][_0x40fa08(0x1e1)][_0x40fa08(0x1c2)](_0x40fa08(0x1c6));_0x319d82&&this[_0x40fa08(0x1ce)](_0x319d82,_0x40fa08(0x1e7),()=>{const _0x214a0b=_0x40fa08,_0x4e4d85=this[_0x214a0b(0x1d7)][_0x214a0b(0x1b7)][_0x214a0b(0x1cf)][_0x214a0b(0x1b0)][_0x214a0b(0x1bd)]();_0x4e4d85&&_0x4e4d85[_0x214a0b(0x1ab)](_0x214a0b(0x1dd))&&this[_0x214a0b(0x1d7)][_0x214a0b(0x1e6)][_0x214a0b(0x1e3)][_0x214a0b(0x1d4)](_0x214a0b(0x1c4),()=>{const _0x2ff01c=_0x214a0b;_0x393173(this[_0x2ff01c(0x1d7)],_0x4e4d85);});});}}
|
|
23
|
+
const _0x47dbfd=_0x16aa;(function(_0x2391b6,_0x4085f0){const _0x1f7e5e=_0x16aa,_0x51a04f=_0x2391b6();while(!![]){try{const _0x58e190=parseInt(_0x1f7e5e(0x183))/0x1*(parseInt(_0x1f7e5e(0x15e))/0x2)+parseInt(_0x1f7e5e(0x195))/0x3+parseInt(_0x1f7e5e(0x1a0))/0x4*(-parseInt(_0x1f7e5e(0x1ab))/0x5)+parseInt(_0x1f7e5e(0x194))/0x6+-parseInt(_0x1f7e5e(0x16d))/0x7+-parseInt(_0x1f7e5e(0x186))/0x8*(parseInt(_0x1f7e5e(0x15d))/0x9)+parseInt(_0x1f7e5e(0x17e))/0xa*(parseInt(_0x1f7e5e(0x175))/0xb);if(_0x58e190===_0x4085f0)break;else _0x51a04f['push'](_0x51a04f['shift']());}catch(_0x2d4c80){_0x51a04f['push'](_0x51a04f['shift']());}}}(_0x365b,0xbbfe0));import{Plugin as _0x3c60ee}from'ckeditor5/src/core.js';import{Dialog as _0x1d9a07}from'ckeditor5/src/ui.js';function _0x16aa(_0x4fe7e8,_0x1de710){const _0x365b5a=_0x365b();return _0x16aa=function(_0x16aa80,_0x50fbe1){_0x16aa80=_0x16aa80-0x15c;let _0x13b5b6=_0x365b5a[_0x16aa80];return _0x13b5b6;},_0x16aa(_0x4fe7e8,_0x1de710);}import{createElement as _0xc4f14e,global as _0x55f668,uid as _0x2f0fcb}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5223f1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x48a38a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4026c0}from'./utils/editingutils.js';function _0x365b(){const _0x2cdcd3=['commands','downcast','_initConversion','configElement','uc-config','true','execute','27aJUhAl','2425310IQOlfX','contentLanguage','uc-upload-ctx-provider','imageInline','isRegistered','schema','_configElement','elementToAttribute','#uc-icon-arrow-down','getSelectedElement','add','imageBlock','editing','get','ctxElement','4323046yDiBoF','model','selection','data-uc-image-id','replaceImageSource','PictureEditing','fromCharCode','_initConfig','143JPEKXk','upcast','_initSchema','closeMax','appendChild','document','cleanupImage','_initImageProcessingIndicator','extend','176660UeKYdf','input[uploadcare-file-input]','getAttribute','\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.uploader','1pbjYMF','join','href','3078312AAPgGL','uploadcareImageId','UploadcareEditing','body','locale','requires','editor','once','insertImage','uploadcareImageReplace','config','ucContextId','conversion','map','8286756awKkxg','2873364MvcgtB','isOfficialPlugin','_ctxElement','querySelector','view','pluginName','remove','iconHrefResolver','_initCtx','attributeToAttribute','listenTo','3556ivOVSB','render','uploader-','uploadcare','afterInit','isPremiumPlugin','uploadcare.pubkey','removeAttribute','init','for','destroy','6970yxayDw'];_0x365b=function(){return _0x2cdcd3;};return _0x365b();}export class UploadcareEditing extends _0x3c60ee{[_0x47dbfd(0x164)]=null;[_0x47dbfd(0x197)]=null;static get[_0x47dbfd(0x19a)](){const _0x5d8da8=_0x47dbfd;return _0x5d8da8(0x188);}static get[_0x47dbfd(0x18b)](){const _0x2449bd=_0x47dbfd;return[_0x2449bd(0x172),_0x48a38a,_0x1d9a07];}static get[_0x47dbfd(0x196)](){return!0x0;}static get[_0x47dbfd(0x1a5)](){return!0x0;}[_0x47dbfd(0x191)];get[_0x47dbfd(0x1af)](){const _0x58ad64=_0x47dbfd;return this[_0x58ad64(0x164)];}get[_0x47dbfd(0x16c)](){const _0xdc673f=_0x47dbfd;return this[_0xdc673f(0x197)];}constructor(_0x507e9a){const _0x53f820=_0x47dbfd;super(_0x507e9a),this[_0x53f820(0x191)]=_0x2f0fcb();}[_0x47dbfd(0x1a8)](){const _0x415a09=_0x47dbfd,_0xb9e033=this[_0x415a09(0x18c)];_0xb9e033[_0x415a09(0x1ac)][_0x415a09(0x168)](_0x415a09(0x1a3),new _0x5223f1(_0xb9e033));}[_0x47dbfd(0x1a4)](){const _0x5f27a4=_0x47dbfd;this[_0x5f27a4(0x177)](),this[_0x5f27a4(0x1ae)](),this[_0x5f27a4(0x174)](),this[_0x5f27a4(0x19d)](),this[_0x5f27a4(0x17c)](),this[_0x5f27a4(0x19f)](this[_0x5f27a4(0x18c)],_0x5f27a4(0x1aa),()=>{const _0x18eca3=_0x5f27a4;this[_0x18eca3(0x164)]&&(this[_0x18eca3(0x164)][_0x18eca3(0x19b)](),this[_0x18eca3(0x164)]=null),this[_0x18eca3(0x197)]&&(this[_0x18eca3(0x197)][_0x18eca3(0x19b)](),this[_0x18eca3(0x197)]=null);const _0x57214c=_0x55f668[_0x18eca3(0x17a)][_0x18eca3(0x198)](_0x18eca3(0x17f));_0x57214c&&_0x57214c[_0x18eca3(0x19b)]();}),async function(_0x2bd434){const _0x4b435c=_0xba0dac([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]),_0x3fa3a7=0x3d8d0df,_0x163d1f=0x3dfa367^_0x3fa3a7,_0x551d93=window[_0xba0dac([0x44,0x61,0x74,0x65])][_0xba0dac([0x6e,0x6f,0x77])](),_0x4da01d=_0x2bd434[_0xba0dac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e43b1=new window[(_0xba0dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x262339=>{_0x4da01d[_0xba0dac([0x6f,0x6e,0x63,0x65])](_0xba0dac([0x72,0x65,0x61,0x64,0x79]),_0x262339);}),_0x4afd1f={[_0xba0dac([0x6b,0x74,0x79])]:_0xba0dac([0x45,0x43]),[_0xba0dac([0x75,0x73,0x65])]:_0xba0dac([0x73,0x69,0x67]),[_0xba0dac([0x63,0x72,0x76])]:_0xba0dac([0x50,0x2d,0x32,0x35,0x36]),[_0xba0dac([0x78])]:_0xba0dac([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]),[_0xba0dac([0x79])]:_0xba0dac([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]),[_0xba0dac([0x61,0x6c,0x67])]:_0xba0dac([0x45,0x53,0x32,0x35,0x36])},_0x5afc29=_0x4da01d[_0xba0dac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xba0dac([0x67,0x65,0x74])](_0xba0dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d64da(){let _0xa4724f,_0x2ea791=null,_0x1f1dd8=null;try{if(_0x5afc29==_0xba0dac([0x47,0x50,0x4c]))return _0xba0dac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa4724f=_0x1296b0(),!_0xa4724f)return _0xba0dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa4724f[_0xba0dac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f1dd8=_0xda76e1(_0xa4724f[_0xba0dac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa4724f[_0xba0dac([0x6a,0x74,0x69])])),await _0x262b56()?_0x59e8a9()?_0x3f7993()?_0xba0dac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x404480()?(_0xa4724f[_0xba0dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xba0dac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ea791=_0x628c4b(_0xba0dac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa4724f[_0xba0dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xba0dac([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ea791=_0x628c4b(_0xba0dac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3bfb65()):_0xba0dac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xba0dac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xba0dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xba0dac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f7993(){const _0x326d33=[_0xba0dac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xba0dac([0x74,0x72,0x69,0x61,0x6c])][_0xba0dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa4724f[_0xba0dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x551d93/0x3e8:0xe10*_0x163d1f;return _0xa4724f[_0xba0dac([0x65,0x78,0x70])]<_0x326d33;}function _0x59e8a9(){const _0x2647f6=_0xa4724f[_0xba0dac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2647f6&&(!!_0x2647f6[_0xba0dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba0dac([0x2a]))||!!_0x2647f6[_0xba0dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba0dac([0x55,0x50,0x4c,0x43])));}function _0x404480(){const _0x5d2d3d=_0x16aa,_0xc847fa=_0xa4724f[_0xba0dac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc847fa||0x0==_0xc847fa[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d83ed}=new URL(window[_0xba0dac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d2d3d(0x185)]);if(_0xc847fa[_0xba0dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d83ed))return!0x0;const _0x2335fe=_0x2d83ed[_0xba0dac([0x73,0x70,0x6c,0x69,0x74])](_0xba0dac([0x2e]));return _0xc847fa[_0xba0dac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27b6ad=>_0x27b6ad[_0xba0dac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba0dac([0x2a])))[_0xba0dac([0x6d,0x61,0x70])](_0x570dad=>_0x570dad[_0xba0dac([0x73,0x70,0x6c,0x69,0x74])](_0xba0dac([0x2e])))[_0xba0dac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522797=>_0x522797[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2335fe[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xba0dac([0x6d,0x61,0x70])](_0x387c57=>Array(_0x2335fe[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x387c57[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xba0dac([0x66,0x69,0x6c,0x6c])](_0x387c57[0x0]===_0xba0dac([0x2a])?_0xba0dac([0x2a]):'')[_0xba0dac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x387c57))[_0xba0dac([0x73,0x6f,0x6d,0x65])](_0x316680=>_0x2335fe[_0xba0dac([0x65,0x76,0x65,0x72,0x79])]((_0x551bcc,_0x23899b)=>_0x316680[_0x23899b]===_0x551bcc||_0x316680[_0x23899b]===_0xba0dac([0x2a])));}function _0x3bfb65(){return _0x2ea791&&_0x1f1dd8?new window[(_0xba0dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x390a36,_0xab5361)=>{_0x2ea791[_0xba0dac([0x74,0x68,0x65,0x6e])](_0x390a36,_0xab5361),_0x1f1dd8[_0xba0dac([0x74,0x68,0x65,0x6e])](_0x35c18e=>{_0x35c18e!=_0xba0dac([0x56,0x61,0x6c,0x69,0x64])&&_0x390a36(_0x35c18e);},_0xab5361);}):_0x2ea791||_0x1f1dd8||_0xba0dac([0x56,0x61,0x6c,0x69,0x64]);}}function _0xda76e1(_0x42bae8,_0xd5dac2){return new window[(_0xba0dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1de337=>{if(_0x1125b1())return _0x1de337(_0xba0dac([0x56,0x61,0x6c,0x69,0x64]));_0x159553(),_0x4da01d[_0xba0dac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xba0dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x539b49=!0x1;const _0x274687=_0x2f0fcb();function _0x562a02(_0x31f6cd){return!!_0x31f6cd&&(typeof _0x31f6cd===_0xba0dac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31f6cd===_0xba0dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31f6cd[_0xba0dac([0x74,0x68,0x65,0x6e])]===_0xba0dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31f6cd[_0xba0dac([0x63,0x61,0x74,0x63,0x68])]===_0xba0dac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2622a9(_0xe8e1cd){_0x3acea7(_0xe8e1cd)[_0xba0dac([0x74,0x68,0x65,0x6e])](_0xab7188=>{if(!_0xab7188||_0xab7188[_0xba0dac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xba0dac([0x6f,0x6b]))return _0xba0dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x296ac0(_0x5cf759(_0x274687+_0xd5dac2))!=_0xab7188[_0xba0dac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xba0dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xba0dac([0x56,0x61,0x6c,0x69,0x64]);})[_0xba0dac([0x74,0x68,0x65,0x6e])](_0x1f14b0=>(_0x3f8445(),_0x1f14b0),()=>{const _0x3555f3=_0xff2246();return null==_0x3555f3?(_0x3f8445(),_0xba0dac([0x56,0x61,0x6c,0x69,0x64])):_0xba0dac(_0x551d93-_0x3555f3>(0x27d454df^_0x3fa3a7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xba0dac([0x74,0x68,0x65,0x6e])](_0x1de337)[_0xba0dac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1de337(_0xba0dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e4aa6=0x3ee3e5f^_0x3fa3a7;function _0x3f8445(){const _0x3ec0f0=_0xba0dac([0x6c,0x6c,0x63,0x74,0x2d])+_0x296ac0(_0x5cf759(_0x42bae8)),_0x79582e=_0x14bfda(_0x296ac0(window[_0xba0dac([0x4d,0x61,0x74,0x68])][_0xba0dac([0x63,0x65,0x69,0x6c])](_0x551d93/_0x1e4aa6)));window[_0xba0dac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba0dac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ec0f0,_0x79582e);}function _0xff2246(){const _0x85e14a=_0xba0dac([0x6c,0x6c,0x63,0x74,0x2d])+_0x296ac0(_0x5cf759(_0x42bae8)),_0x327553=window[_0xba0dac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba0dac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x85e14a);return _0x327553?window[_0xba0dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14bfda(_0x327553),0x10)*_0x1e4aa6:null;}function _0x3acea7(_0x25a0dc){return new window[(_0xba0dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35b6dd,_0x3d05d1)=>{_0x25a0dc[_0xba0dac([0x74,0x68,0x65,0x6e])](_0x35b6dd,_0x3d05d1),window[_0xba0dac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d05d1,0x3d9041f^_0x3fa3a7);});}}_0x4da01d[_0xba0dac([0x6f,0x6e])](_0xba0dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f0907,_0x5535e2)=>{if(_0x5535e2[0x0]!=_0x42bae8)return _0x1de337(_0xba0dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5535e2[0x1]={..._0x5535e2[0x1],[_0xba0dac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x274687};},{[_0xba0dac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba0dac([0x68,0x69,0x67,0x68])}),_0x4da01d[_0xba0dac([0x6f,0x6e])](_0xba0dac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x170b11=>{_0x562a02(_0x170b11[_0xba0dac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x539b49=!0x0,_0x2622a9(_0x170b11[_0xba0dac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xba0dac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba0dac([0x6c,0x6f,0x77])}),_0x4e43b1[_0xba0dac([0x74,0x68,0x65,0x6e])](()=>{_0x539b49||_0x1de337(_0xba0dac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1125b1(){return _0x4da01d[_0xba0dac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba0dac([0x76,0x69,0x65,0x77])][_0xba0dac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xba0dac([0x61,0x75,0x74,0x6f]);}function _0x159553(){_0x4da01d[_0xba0dac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba0dac([0x76,0x69,0x65,0x77])][_0xba0dac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xba0dac([0x61,0x75,0x74,0x6f]);}}function _0x628c4b(_0x386273){const _0x4599b3=[new window[(_0xba0dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5185=>setTimeout(_0x2b5185,0x3d1ee13^_0x3fa3a7)),_0x4e43b1[_0xba0dac([0x74,0x68,0x65,0x6e])](()=>new window[(_0xba0dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a24e4=>{let _0x526603=0x0;_0x4da01d[_0xba0dac([0x6d,0x6f,0x64,0x65,0x6c])][_0xba0dac([0x6f,0x6e])](_0xba0dac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d45ed,_0x29e9fa)=>{_0x29e9fa[0x0][_0xba0dac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x526603++,_0x526603==(0x3d8d127^_0x3fa3a7)&&(_0x2a24e4(),_0x4d45ed[_0xba0dac([0x6f,0x66,0x66])]());});}))];return window[_0xba0dac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xba0dac([0x72,0x61,0x63,0x65])](_0x4599b3)[_0xba0dac([0x74,0x68,0x65,0x6e])](()=>_0x386273);}async function _0x89899c(){await _0x4e43b1,_0x4da01d[_0xba0dac([0x6d,0x6f,0x64,0x65,0x6c])][_0xba0dac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27acc5,_0x4da01d[_0xba0dac([0x6d,0x6f,0x64,0x65,0x6c])][_0xba0dac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27acc5,_0x4da01d[_0xba0dac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xba0dac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x112a13(_0x1e83f5){const _0x2780cb=_0x1d4af8();_0x4da01d[_0x2780cb]=_0xba0dac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e83f5,_0x1e83f5!=_0xba0dac([0x56,0x61,0x6c,0x69,0x64])&&_0x89899c();}function _0x1d4af8(){const _0xa0681c=window[_0xba0dac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xba0dac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xba0dac([0x6e,0x6f,0x77])]())[_0xba0dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xba0dac([0x2e]),'');let _0x45e8b0=_0xba0dac([0x52]);for(let _0x256f91=0x0;_0x256f91<_0xa0681c[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x256f91+=0x2){let _0x857031=window[_0xba0dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa0681c[_0xba0dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x256f91,_0x256f91+0x2));_0x857031>=_0x4b435c[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x857031-=_0x4b435c[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45e8b0+=_0x4b435c[_0x857031];}return _0x45e8b0;}function _0x1296b0(){const _0x576a9f=_0x5afc29[_0xba0dac([0x73,0x70,0x6c,0x69,0x74])](_0xba0dac([0x2e]));if(0x3!=_0x576a9f[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f3236(_0x576a9f[0x1]);function _0x4f3236(_0x32841e){const _0xa5f11b=_0x15be7f(_0x32841e);return _0xa5f11b&&_0x2779fb()?_0xa5f11b:null;function _0x2779fb(){const _0x5de735=_0xa5f11b[_0xba0dac([0x6a,0x74,0x69])],_0x5b0188=window[_0xba0dac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5de735[_0xba0dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5de735[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a5000={..._0xa5f11b,[_0xba0dac([0x6a,0x74,0x69])]:_0x5de735[_0xba0dac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5de735[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a5000[_0xba0dac([0x76,0x63])],_0x5cf759(_0x3a5000)==_0x5b0188;}}}async function _0x262b56(){let _0x13e7c7=!0x0;try{const _0x5e72da=_0x5afc29[_0xba0dac([0x73,0x70,0x6c,0x69,0x74])](_0xba0dac([0x2e])),[_0x1253d0,_0x18ed3a,_0x2a25e4]=_0x5e72da;return _0x1b66f3(_0x1253d0),await _0x4cd37e(_0x1253d0,_0x18ed3a,_0x2a25e4),_0x13e7c7;}catch{return!0x1;}function _0x1b66f3(_0x4b5530){const _0x548860=_0x15be7f(_0x4b5530);_0x548860&&_0x548860[_0xba0dac([0x61,0x6c,0x67])]==_0xba0dac([0x45,0x53,0x32,0x35,0x36])||(_0x13e7c7=!0x1);}async function _0x4cd37e(_0x41059a,_0x2a1ae8,_0x564df3){const _0x2cd26d=window[_0xba0dac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xba0dac([0x66,0x72,0x6f,0x6d])](_0x337f9e(_0x564df3),_0x187f6b=>_0x187f6b[_0xba0dac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3afc6d=new window[(_0xba0dac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xba0dac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41059a+_0xba0dac([0x2e])+_0x2a1ae8),_0x36b1ca=window[_0xba0dac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xba0dac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36b1ca)return;const _0x2a3116=await _0x36b1ca[_0xba0dac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xba0dac([0x6a,0x77,0x6b]),_0x4afd1f,{[_0xba0dac([0x6e,0x61,0x6d,0x65])]:_0xba0dac([0x45,0x43,0x44,0x53,0x41]),[_0xba0dac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xba0dac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xba0dac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36b1ca[_0xba0dac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xba0dac([0x6e,0x61,0x6d,0x65])]:_0xba0dac([0x45,0x43,0x44,0x53,0x41]),[_0xba0dac([0x68,0x61,0x73,0x68])]:{[_0xba0dac([0x6e,0x61,0x6d,0x65])]:_0xba0dac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a3116,_0x2cd26d,_0x3afc6d)||(_0x13e7c7=!0x1);}}function _0x15be7f(_0x339174){return _0x339174[_0xba0dac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xba0dac([0x65,0x79]))?JSON[_0xba0dac([0x70,0x61,0x72,0x73,0x65])](_0x337f9e(_0x339174)):null;}function _0x337f9e(_0x3f9a1c){return window[_0xba0dac([0x61,0x74,0x6f,0x62])](_0x3f9a1c[_0xba0dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xba0dac([0x2b]))[_0xba0dac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xba0dac([0x2f])));}function _0x5cf759(_0x4fa5b8){let _0x21f7bb=0x1505;function _0x40f25d(_0x1c78ef){for(let _0x2cbb39=0x0;_0x2cbb39<_0x1c78ef[_0xba0dac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cbb39++){const _0x195af4=_0x1c78ef[_0xba0dac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cbb39);_0x21f7bb=(_0x21f7bb<<0x5)+_0x21f7bb+_0x195af4,_0x21f7bb&=_0x21f7bb;}}function _0x37b1da(_0x59eaa5){Array[_0xba0dac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59eaa5)?_0x59eaa5[_0xba0dac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37b1da):_0x59eaa5&&typeof _0x59eaa5==_0xba0dac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xba0dac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59eaa5)[_0xba0dac([0x73,0x6f,0x72,0x74])]()[_0xba0dac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d6bcb,_0x457cc9])=>{_0x40f25d(_0x3d6bcb),_0x37b1da(_0x457cc9);}):_0x40f25d(window[_0xba0dac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59eaa5));}return _0x37b1da(_0x4fa5b8),_0x21f7bb>>>0x0;}function _0x296ac0(_0x5c4b34){return _0x5c4b34[_0xba0dac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xba0dac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xba0dac([0x30]));}function _0x14bfda(_0x32688a){return _0x32688a[_0xba0dac([0x73,0x70,0x6c,0x69,0x74])]('')[_0xba0dac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xba0dac([0x6a,0x6f,0x69,0x6e])]('');}function _0x27acc5(){}function _0xba0dac(_0x128fd9){const _0x1c0516=_0x16aa;return _0x128fd9[_0x1c0516(0x193)](_0x1ba4e3=>String[_0x1c0516(0x173)](_0x1ba4e3))[_0x1c0516(0x184)]('');}_0x112a13(await _0x1d64da());}(this);}[_0x47dbfd(0x177)](){const _0x4909be=_0x47dbfd,_0x44ae6a=this[_0x4909be(0x18c)][_0x4909be(0x16e)][_0x4909be(0x163)];_0x44ae6a[_0x4909be(0x162)](_0x4909be(0x169))&&_0x44ae6a[_0x4909be(0x17d)](_0x4909be(0x169),{'allowAttributes':[_0x4909be(0x187)]}),_0x44ae6a[_0x4909be(0x162)](_0x4909be(0x161))&&_0x44ae6a[_0x4909be(0x17d)](_0x4909be(0x161),{'allowAttributes':[_0x4909be(0x187)]});}[_0x47dbfd(0x1ae)](){const _0x447719=_0x47dbfd,_0x44f996=this[_0x447719(0x18c)];_0x44f996[_0x447719(0x192)][_0x447719(0x1a9)](_0x447719(0x1ad))[_0x447719(0x19e)]({'model':_0x447719(0x187),'view':_0x447719(0x170)}),_0x44f996[_0x447719(0x192)][_0x447719(0x1a9)](_0x447719(0x176))[_0x447719(0x165)]({'model':{'key':_0x447719(0x187),'value':_0x3a5a5f=>_0x3a5a5f[_0x447719(0x180)](_0x447719(0x170))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d2e8a=_0x44f996[_0x447719(0x1ac)][_0x447719(0x16b)](_0x447719(0x171));_0x3d2e8a&&this[_0x447719(0x19f)](_0x3d2e8a,_0x447719(0x17b),(_0x20565a,[_0x3db771,_0x6198d3])=>{const _0x1fd239=_0x447719;_0x3db771[_0x1fd239(0x1a7)](_0x1fd239(0x187),_0x6198d3);});}[_0x47dbfd(0x174)](){const _0x3e1b24=_0x47dbfd,_0x23316d=this[_0x3e1b24(0x18c)][_0x3e1b24(0x190)][_0x3e1b24(0x16b)](_0x3e1b24(0x182))||{},_0x4666af=this[_0x3e1b24(0x18c)][_0x3e1b24(0x190)][_0x3e1b24(0x16b)](_0x3e1b24(0x1a6))||'';this[_0x3e1b24(0x164)]=_0xc4f14e(_0x55f668[_0x3e1b24(0x17a)],_0x3e1b24(0x1b0),{..._0x23316d,'pubkey':_0x4666af,'ctx-name':_0x3e1b24(0x1a2)+this[_0x3e1b24(0x191)],'sourceList':'','imgOnly':_0x3e1b24(0x1b1),'removeCopyright':_0x3e1b24(0x1b1),'localeName':this[_0x3e1b24(0x18c)][_0x3e1b24(0x18a)][_0x3e1b24(0x15f)],'externalSourcesEmbedCss':_0x3e1b24(0x181)}),this[_0x3e1b24(0x164)][_0x3e1b24(0x19c)]=_0x2415f9=>{const _0x388cdd=_0x3e1b24;if(_0x388cdd(0x178)==_0x2415f9)return _0x388cdd(0x166);},_0x55f668[_0x3e1b24(0x17a)][_0x3e1b24(0x189)][_0x3e1b24(0x179)](this[_0x3e1b24(0x164)]);}[_0x47dbfd(0x19d)](){const _0x1af885=_0x47dbfd;this[_0x1af885(0x197)]=_0xc4f14e(_0x55f668[_0x1af885(0x17a)],_0x1af885(0x160),{'ctx-name':_0x1af885(0x1a2)+this[_0x1af885(0x191)]}),_0x55f668[_0x1af885(0x17a)][_0x1af885(0x189)][_0x1af885(0x179)](this[_0x1af885(0x197)]);}[_0x47dbfd(0x17c)](){const _0x307fc1=_0x47dbfd,_0x216480=this[_0x307fc1(0x18c)][_0x307fc1(0x1ac)][_0x307fc1(0x16b)](_0x307fc1(0x18e));_0x216480&&this[_0x307fc1(0x19f)](_0x216480,_0x307fc1(0x15c),()=>{const _0x5b7f6c=_0x307fc1,_0x209d62=this[_0x5b7f6c(0x18c)][_0x5b7f6c(0x16e)][_0x5b7f6c(0x17a)][_0x5b7f6c(0x16f)][_0x5b7f6c(0x167)]();_0x209d62&&_0x209d62[_0x5b7f6c(0x180)](_0x5b7f6c(0x187))&&this[_0x5b7f6c(0x18c)][_0x5b7f6c(0x16a)][_0x5b7f6c(0x199)][_0x5b7f6c(0x18d)](_0x5b7f6c(0x1a1),()=>{const _0x2c5ad7=_0x5b7f6c;_0x4026c0(this[_0x2c5ad7(0x18c)],_0x209d62);});});const _0xbb9767=this[_0x307fc1(0x18c)][_0x307fc1(0x1ac)][_0x307fc1(0x16b)](_0x307fc1(0x18f));_0xbb9767&&this[_0x307fc1(0x19f)](_0xbb9767,_0x307fc1(0x15c),()=>{const _0x539402=_0x307fc1,_0x11fe96=this[_0x539402(0x18c)][_0x539402(0x16e)][_0x539402(0x17a)][_0x539402(0x16f)][_0x539402(0x167)]();_0x11fe96&&_0x11fe96[_0x539402(0x180)](_0x539402(0x187))&&this[_0x539402(0x18c)][_0x539402(0x16a)][_0x539402(0x199)][_0x539402(0x18d)](_0x539402(0x1a1),()=>{const _0x87446=_0x539402;_0x4026c0(this[_0x87446(0x18c)],_0x11fe96);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5e6686,ObservableMixin as _0x3ae729}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1e8cef}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x8042a8}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x299c3f}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xf9a02e}from'../../utils/uploadutils.js';import{getImageUrls as _0x3c8e04,getImageDimension as _0x54459d}from'../../utils/editingutils.js';import{isAncestor as _0x104e8f}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ae729(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x29c7ab,_0x291d9d,_0x4368cb){super(),this['_editor']=_0x29c7ab,this['_dialog']=_0x291d9d,this['_imageElement']=_0x4368cb,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 _0x4b3de7=this['_imageElement'],_0x34c88b=_0x4b3de7['getAttribute']('uploadcareImageId'),_0x3af090=_0x4b3de7['getAttribute']('src');if(_0x34c88b)await this['_loadImageInfo'](_0x34c88b,_0x3af090);else{if(this['_imageCache']['has'](_0x3af090)){const _0xaecddf=this['_imageCache']['get'](_0x3af090);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xaecddf['url'],this['imageDimension']=_0xaecddf['dimension'],this['imageId']=_0xaecddf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4911a5}=this['_editor'],t=_0x4911a5['t'],_0x159484=new _0x299c3f(_0x4911a5,this['imageStatus'],this['_attributes']);_0x159484['bind']('status')['to'](this,'imageStatus'),_0x159484['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x159484['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x159484['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x159484,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x8042a8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x159484,'position':_0x1e8cef['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x159484['focus']();},'onHide':()=>{_0x159484['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b3ec4=>!_0x104e8f(_0x3b3ec4,_0x159484['element'])}});}['_loadImageInfo'](_0x1d7d65,_0x7f183a){return _0xf9a02e['getInfo'](_0x1d7d65,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x90675f=>{const {width:_0x274a47,height:_0x5a10c7}=_0x90675f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7f183a,this['imageDimension']={'width':_0x274a47,'height':_0x5a10c7},this['imageId']=_0x1d7d65;})['catch'](_0x191271=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x191271['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e53ba,_0x38e091){return this['_getImageAsFile'](_0x1e53ba)['then'](_0x49c8e1=>_0xf9a02e['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':_0x38e091['signal'],'file':_0x49c8e1,'onProgress':_0x5b3416=>{_0x5b3416&&_0x5b3416['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b3416['value']));}}))['then'](_0x3bed14=>{const {width:_0x49f149,height:_0x335114}=_0x3bed14['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bed14['cdnUrl'],this['imageDimension']={'width':_0x49f149,'height':_0x335114},this['imageId']=_0x3bed14['uuid'],this['imageUploadProgress']=null;const _0x51c5df=_0x1e53ba['getAttribute']('src');this['_imageCache']['set'](_0x51c5df,{'id':_0x3bed14['uuid'],'url':_0x3bed14['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x242ecf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x242ecf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x25563d,_0x222364){_0x25563d['on']('apply',(_0x74607f,_0x1c7292)=>{this['_replaceImage'](_0x222364,_0x1c7292['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x25563d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x25563d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1fa274,_0x55b6f7,_0x39123f){const _0x4b4f38=this['_editor'],{width:_0x2ee13f,height:_0x1e3749}=_0x54459d(_0x55b6f7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xd6ccd0,imageSources:_0x2d95bd}=_0x3c8e04(_0x55b6f7,_0x2ee13f);_0x4b4f38['model']['change'](_0x380545=>{if('$graveyard'===_0x1fa274['root']['rootName']){_0x4b4f38['execute']('insertImage',{'imageType':_0x1fa274['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1fa274['getAttributes']()),'uploadcareImageId':_0x39123f,'src':_0xd6ccd0,'sources':_0x2d95bd,'width':_0x2ee13f,'height':_0x1e3749}});const _0x39e7a5=_0x1fa274['getChildren']();_0x1fa274=_0x4b4f38['model']['document']['selection']['getSelectedElement']();for(const _0x4400ee of _0x39e7a5)_0x380545['append'](_0x380545['cloneElement'](_0x4400ee),_0x1fa274);}else _0x380545['setSelection'](_0x1fa274,'on'),_0x4b4f38['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1fa274['getAttributes']()),'uploadcareImageId':_0x39123f,'src':_0xd6ccd0,'sources':_0x2d95bd,'width':_0x2ee13f,'height':_0x1e3749},_0x1fa274);_0x380545['setSelection'](_0x1fa274,'on');});}async['_getImageAsFile'](_0x343fb3){const _0x3798ba=_0x5e6686['window'],_0x3c06de=_0x5e6686['document']['location']['href'],_0xbfe34e=new _0x3798ba['URL'](_0x343fb3['getAttribute']('src'),_0x3c06de);if('data:'===_0xbfe34e['protocol']){const _0x5af267=_0xbfe34e['href']['split'](','),_0x121288=_0x5af267[0x0]['match'](/:(.*?);/)[0x1],_0x2e2020=_0x121288['split']('/')[0x1],_0x5c9202=_0x3798ba['atob'](_0x5af267[_0x5af267['length']-0x1]);let _0x5d06db=_0x5c9202['length'];const _0x1b2321=new _0x3798ba['Uint8Array'](_0x5d06db);for(;_0x5d06db--;)_0x1b2321[_0x5d06db]=_0x5c9202['charCodeAt'](_0x5d06db);return new _0x3798ba['File']([_0x1b2321],'image.'+_0x2e2020,{'type':_0x121288});}const _0x6b544e=_0xbfe34e['href']['split']('/'),_0x2d8106=_0x6b544e[_0x6b544e['length']-0x1],_0xce13a=_0x2d8106['split']('.')[0x1];return _0x3798ba['fetch'](_0xbfe34e['href'])['then'](_0x388581=>_0x388581['clone']()['blob']())['then'](_0x1f3956=>new _0x3798ba['File']([_0x1f3956],_0x2d8106,{'type':'image/'+_0xce13a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5969(_0x1b0c1e,_0x2c707f){const _0xb324f1=_0xb324();return _0x5969=function(_0x5969de,_0x145f81){_0x5969de=_0x5969de-0x138;let _0x58e712=_0xb324f1[_0x5969de];return _0x58e712;},_0x5969(_0x1b0c1e,_0x2c707f);}function _0xb324(){const _0x4ba016=['227482EyGSSj','uc-cloud-image-editor','696TgDUQN','1512768DvqGFf','set','1844214VZZRSa','bindTemplate','6lwpytN','11NNbqKi','734410zSbCED','image-edit','1765785vZZuGd','uc-light','20tWhUkv','ck-uploadcare-theme','setTemplate','19291510glBBsj','89172CZowFn','imageSrc'];_0xb324=function(){return _0x4ba016;};return _0xb324();}(function(_0x175411,_0x3dfd4e){const _0x6a3e04=_0x5969,_0x754223=_0x175411();while(!![]){try{const _0x4e2810=-parseInt(_0x6a3e04(0x143))/0x1*(parseInt(_0x6a3e04(0x14a))/0x2)+-parseInt(_0x6a3e04(0x148))/0x3+parseInt(_0x6a3e04(0x13d))/0x4*(parseInt(_0x6a3e04(0x139))/0x5)+-parseInt(_0x6a3e04(0x146))/0x6+parseInt(_0x6a3e04(0x13b))/0x7+-parseInt(_0x6a3e04(0x145))/0x8*(parseInt(_0x6a3e04(0x141))/0x9)+-parseInt(_0x6a3e04(0x140))/0xa*(-parseInt(_0x6a3e04(0x138))/0xb);if(_0x4e2810===_0x3dfd4e)break;else _0x754223['push'](_0x754223['shift']());}catch(_0x1283f8){_0x754223['push'](_0x754223['shift']());}}}(_0xb324,0x7b2bc));import{View as _0x405e3b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x405e3b{constructor(_0x17ea5c,_0x477cb7){const _0x53b0b6=_0x5969;super(_0x17ea5c);const _0x2d4d43=this[_0x53b0b6(0x149)];this[_0x53b0b6(0x147)](_0x53b0b6(0x142),''),this[_0x53b0b6(0x13f)]({'tag':_0x53b0b6(0x144),'attributes':{..._0x477cb7,'class':[_0x53b0b6(0x13c),_0x53b0b6(0x13e)],'ctx-name':_0x53b0b6(0x13a),'cdn-url':_0x2d4d43['to'](_0x53b0b6(0x142))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x20f9d5}from'ckeditor5/src/icons.js';import{ButtonView as _0x356cfd,IconView as _0x38f7bf,View as _0x4eb14e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x4eb14e{constructor(_0xe5965c){super(_0xe5965c);const t=_0xe5965c['t'];this['set']('errorType',null);const _0x999a63=new _0x356cfd(_0xe5965c);_0x999a63['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x999a63['withText']=!0x0,_0x999a63['class']='ck-button-action',_0x999a63['on']('execute',()=>{this['fire']('retry');}),_0x999a63['bind']('isVisible')['to'](this,'errorType',_0x34ea5c=>'NotFound'!==_0x34ea5c);const _0x436706=new _0x38f7bf();_0x436706['content']=_0x20f9d5,_0x436706['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x38798d=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':[_0x436706,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x38798d['to']('errorType',_0x1bd68d=>t('NotFound'!==_0x1bd68d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x999a63]},{'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 _0x2a3e99,View as _0xc7021f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xc7021f{constructor(_0x319759){super(_0x319759);const t=_0x319759['t'],_0x2c505a=this['bindTemplate'],_0xd5e15a=new _0x2a3e99();_0xd5e15a['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':[_0xd5e15a,{'text':_0x2c505a['to']('imageUploadProgress',_0x2c644d=>t('Loading\x20image...')+'\x20('+(_0x2c644d||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 _0x512e2d=_0x475e;function _0x475e(_0x304b49,_0x10d05f){const _0x48b345=_0x48b3();return _0x475e=function(_0x475e4e,_0x2d6dff){_0x475e4e=_0x475e4e-0xe0;let _0x29b3d4=_0x48b345[_0x475e4e];return _0x29b3d4;},_0x475e(_0x304b49,_0x10d05f);}(function(_0x1af352,_0x10b5df){const _0x4be937=_0x475e,_0x5dfff3=_0x1af352();while(!![]){try{const _0x5657ed=parseInt(_0x4be937(0x113))/0x1*(-parseInt(_0x4be937(0x100))/0x2)+-parseInt(_0x4be937(0xfc))/0x3*(parseInt(_0x4be937(0x105))/0x4)+parseInt(_0x4be937(0xfa))/0x5+parseInt(_0x4be937(0xf1))/0x6*(parseInt(_0x4be937(0xff))/0x7)+parseInt(_0x4be937(0xed))/0x8*(parseInt(_0x4be937(0xe5))/0x9)+-parseInt(_0x4be937(0xef))/0xa+parseInt(_0x4be937(0xe9))/0xb*(parseInt(_0x4be937(0x10d))/0xc);if(_0x5657ed===_0x10b5df)break;else _0x5dfff3['push'](_0x5dfff3['shift']());}catch(_0x4c1b59){_0x5dfff3['push'](_0x5dfff3['shift']());}}}(_0x48b3,0xbd53c));import{View as _0x539a08}from'ckeditor5/src/ui.js';function _0x48b3(){const _0x2fa4cc=['14919130tBqTna','_loadingView','2306862VzWYFJ','clear','focus','error','_setView','uc-cloud-image-editor','createCollection','add','_items','5244015vqtUMq','set','4749LhmyuX','addedNodes','addEventListener','21ZSwqDR','514nYdhoG','ready','observe','ck-uploadcare-form','ck-reset_all-excluded','1124KPufKu','length','cdnUrl','target','apply','_addErrorViewListeners','once','_focusableView','12TWLuCP','getFocusableElement','filter','element','_waitForImageEditorComponent','render','5687KnHgSF','change:status','retry','detail','_editingView','cancel','_errorView','fire','addMany','div','uploading','61911aCbcUf','querySelector','toLowerCase','setTemplate','7990906BZxROG','status','nodeName','disconnect','1448eGyJqq','_addUploadcareImageEditorListeners'];_0x48b3=function(){return _0x2fa4cc;};return _0x48b3();}import{UploadcareImageEditFormLoadingView as _0x3ed480}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2ad9a5}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4384f6}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5a488c}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5a488c{[_0x512e2d(0xf9)];[_0x512e2d(0xf0)];[_0x512e2d(0xe0)];[_0x512e2d(0x117)];[_0x512e2d(0x10c)];constructor(_0x4957a9,_0x38c817,_0xfc676a){const _0x372035=_0x512e2d;super(_0x4957a9),this[_0x372035(0xf9)]=this[_0x372035(0xf7)](),this[_0x372035(0xf0)]=new _0x3ed480(_0x4957a9),this[_0x372035(0xe0)]=new _0x2ad9a5(_0x4957a9),this[_0x372035(0x117)]=new _0x4384f6(_0x4957a9,_0xfc676a),this[_0x372035(0x10c)]=new _0x539a08(_0x4957a9),this[_0x372035(0x10c)][_0x372035(0xe8)](this[_0x372035(0x10e)]()),this[_0x372035(0xfb)](_0x372035(0xea),_0x38c817),this[_0x372035(0xe8)]({'tag':_0x372035(0xe3),'attributes':{'class':['ck',_0x372035(0x104),_0x372035(0x103)],'tabindex':'-1'},'children':this[_0x372035(0xf9)]}),this[_0x372035(0xf5)](),this[_0x372035(0x10b)](_0x372035(0x112),()=>{const _0x33c60a=_0x372035;this[_0x33c60a(0x111)](this[_0x33c60a(0x110)],_0x5c5670=>{const _0x431cde=_0x33c60a;this[_0x431cde(0xee)](_0x5c5670);});}),this['on'](_0x372035(0x114),()=>{const _0x3cdb92=_0x372035;this[_0x3cdb92(0xf5)]();}),this[_0x372035(0x10a)]();}[_0x512e2d(0xf3)](){const _0x4ce73c=_0x512e2d;this[_0x4ce73c(0x110)][_0x4ce73c(0xf3)]();}[_0x512e2d(0xf5)](){const _0x11fb6f=_0x512e2d;switch(this[_0x11fb6f(0xf9)][_0x11fb6f(0xf2)](),this[_0x11fb6f(0xea)]){case _0x11fb6f(0xe4):this[_0x11fb6f(0xf9)][_0x11fb6f(0xf8)](this[_0x11fb6f(0xf0)]);break;case _0x11fb6f(0xf4):this[_0x11fb6f(0xf9)][_0x11fb6f(0xf8)](this[_0x11fb6f(0xe0)]);break;case _0x11fb6f(0x101):this[_0x11fb6f(0xf9)][_0x11fb6f(0xe2)]([this[_0x11fb6f(0x117)],this[_0x11fb6f(0x10c)]]);}}[_0x512e2d(0x111)](_0x31d699,_0x2a85a0){const _0x1f725d=_0x512e2d,_0x573b14=_0x1f725d(0xf6),_0x4875a4=_0x31d699[_0x1f725d(0xe6)](_0x573b14);if(_0x4875a4)return _0x2a85a0(_0x4875a4);const _0x2144f1=new MutationObserver(_0xb438c1=>{const _0x3946c6=_0x1f725d,_0x355dea=_0xb438c1[_0x3946c6(0x10f)](_0x13faa6=>_0x13faa6[_0x3946c6(0x108)]===_0x31d699&&_0x13faa6[_0x3946c6(0xfd)][_0x3946c6(0x106)]>0x0&&_0x13faa6[_0x3946c6(0xfd)][0x0][_0x3946c6(0xeb)][_0x3946c6(0xe7)]()===_0x573b14);_0x355dea[_0x3946c6(0x106)]&&(_0x2144f1[_0x3946c6(0xec)](),_0x2a85a0(_0x355dea[0x0][_0x3946c6(0xfd)][0x0]));});_0x2144f1[_0x1f725d(0x102)](_0x31d699,{'childList':!0x0,'subtree':!0x0});}[_0x512e2d(0xee)](_0x5eecc6){const _0x286eaf=_0x512e2d;_0x5eecc6[_0x286eaf(0xfe)](_0x286eaf(0x109),_0x17e1ff=>{const _0x5c044f=_0x286eaf;this[_0x5c044f(0xe1)](_0x5c044f(0x109),{'imageSrc':_0x17e1ff[_0x5c044f(0x116)][_0x5c044f(0x107)]});}),_0x5eecc6[_0x286eaf(0xfe)](_0x286eaf(0x118),()=>{const _0x2e0bc1=_0x286eaf;this[_0x2e0bc1(0xe1)](_0x2e0bc1(0x118));});}[_0x512e2d(0x10a)](){const _0x1898c9=_0x512e2d;this[_0x1898c9(0xe0)]['on'](_0x1898c9(0x115),()=>{const _0xf810fb=_0x1898c9;this[_0xf810fb(0xe1)](_0xf810fb(0x115));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa429a2=_0x512b;(function(_0xfa838c,_0x2d46af){const _0x2bb408=_0x512b,_0x321cbf=_0xfa838c();while(!![]){try{const _0x178468=parseInt(_0x2bb408(0xcd))/0x1+-parseInt(_0x2bb408(0xde))/0x2+parseInt(_0x2bb408(0xce))/0x3+parseInt(_0x2bb408(0xcf))/0x4+parseInt(_0x2bb408(0xdc))/0x5+parseInt(_0x2bb408(0xd4))/0x6+-parseInt(_0x2bb408(0xc6))/0x7*(parseInt(_0x2bb408(0xcb))/0x8);if(_0x178468===_0x2d46af)break;else _0x321cbf['push'](_0x321cbf['shift']());}catch(_0xfc34f5){_0x321cbf['push'](_0x321cbf['shift']());}}}(_0x30b3,0xc6db8));import{Command as _0x51bdcf}from'ckeditor5/src/core.js';import{Dialog as _0x510fde}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5b8399}from'./ui/uploadcareimageeditcontroller.js';function _0x512b(_0x328d75,_0x1702bd){const _0x30b325=_0x30b3();return _0x512b=function(_0x512b95,_0x1ef772){_0x512b95=_0x512b95-0xc2;let _0x1627e0=_0x30b325[_0x512b95];return _0x1627e0;},_0x512b(_0x328d75,_0x1702bd);}function _0x30b3(){const _0x191d97=['220407UIdkMT','5151316QFsgNc','set','execute','model','requires','7490766mtnPhO','config','selection','isActive','imageEditController','_isEditable','bind','getSelectedElement','2651040TyaLcn','refresh','2820902fUjklX','get','unbind','plugins','uploadcare.allowExternalImagesEditing','imageBlock','7ZgPXHb','imageInline','document','editor','element','10038304KcysKm','isEnabled','339792DBmvCl'];_0x30b3=function(){return _0x191d97;};return _0x30b3();}import{createEditabilityChecker as _0x4b3a67}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x51bdcf{[_0xa429a2(0xd8)];static get[_0xa429a2(0xd3)](){return[_0x510fde];}[_0xa429a2(0xd9)];constructor(_0x36ac1f){const _0x375656=_0xa429a2;super(_0x36ac1f),this[_0x375656(0xd8)]=void 0x0,this[_0x375656(0xd9)]=_0x4b3a67(_0x36ac1f[_0x375656(0xd5)][_0x375656(0xdf)](_0x375656(0xc4))||[]),this[_0x375656(0xd0)]({'isActive':!0x1});}[_0xa429a2(0xdd)](){const _0x136715=_0xa429a2,_0x34f6e9=this[_0x136715(0xc9)][_0x136715(0xd2)][_0x136715(0xc8)][_0x136715(0xd6)][_0x136715(0xdb)]();this[_0x136715(0xcc)]=this[_0x136715(0xd9)](_0x34f6e9);}[_0xa429a2(0xd1)](){const _0xf32182=_0xa429a2;this[_0xf32182(0xd8)]&&(this[_0xf32182(0xc2)](_0xf32182(0xd7)),this[_0xf32182(0xd8)]=void 0x0);const _0x3862e5=this[_0xf32182(0xc9)][_0xf32182(0xd2)][_0xf32182(0xc8)][_0xf32182(0xd6)][_0xf32182(0xdb)]();_0x3862e5&&(_0x3862e5['is'](_0xf32182(0xca),_0xf32182(0xc5))||_0x3862e5['is'](_0xf32182(0xca),_0xf32182(0xc7)))&&(this[_0xf32182(0xd8)]=new _0x5b8399(this[_0xf32182(0xc9)],this[_0xf32182(0xc9)][_0xf32182(0xc3)][_0xf32182(0xdf)](_0x510fde),_0x3862e5),this[_0xf32182(0xda)](_0xf32182(0xd7))['to'](this[_0xf32182(0xd8)],_0xf32182(0xd7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dbeef=_0xdee7;(function(_0x34319f,_0x303a14){const _0x5ee255=_0xdee7,_0x57740c=_0x34319f();while(!![]){try{const _0x46228d=-parseInt(_0x5ee255(0x1d8))/0x1*(parseInt(_0x5ee255(0x1de))/0x2)+parseInt(_0x5ee255(0x1d2))/0x3+parseInt(_0x5ee255(0x1d1))/0x4*(parseInt(_0x5ee255(0x1d4))/0x5)+parseInt(_0x5ee255(0x1d3))/0x6*(parseInt(_0x5ee255(0x1e3))/0x7)+-parseInt(_0x5ee255(0x1e6))/0x8*(-parseInt(_0x5ee255(0x1e2))/0x9)+parseInt(_0x5ee255(0x1e4))/0xa+-parseInt(_0x5ee255(0x1dd))/0xb;if(_0x46228d===_0x303a14)break;else _0x57740c['push'](_0x57740c['shift']());}catch(_0x837a13){_0x57740c['push'](_0x57740c['shift']());}}}(_0x1915,0x359d1));import{Plugin as _0x1a1a9d}from'ckeditor5/src/core.js';import{Notification as _0x4af000}from'ckeditor5/src/ui.js';function _0xdee7(_0xda8944,_0x26cd58){const _0x191595=_0x1915();return _0xdee7=function(_0xdee715,_0x30508b){_0xdee715=_0xdee715-0x1d1;let _0x27d6bf=_0x191595[_0xdee715];return _0x27d6bf;},_0xdee7(_0xda8944,_0x26cd58);}import{UploadcareImageEditCommand as _0x3b3059}from'./uploadcareimageeditcommand.js';function _0x1915(){const _0x5b4a8e=['isPremiumPlugin','63YBZiuM','7qghGkk','1044980xOQkpR','pluginName','357560wtJcmZ','uploadcareImageEdit','16BikCkl','1130073tlockH','1997514dSwSFh','302095xTEtdX','add','commands','ImageEditing','3369UnUfVF','UploadcareImageEditEditing','isOfficialPlugin','ImageUtils','init','9711867BAEEln','158MxXBaA','uploadcareImageReplace','requires'];_0x1915=function(){return _0x5b4a8e;};return _0x1915();}import{UploadcareImageReplaceCommand as _0x30d463}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x58dcf8}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1a1a9d{static get[_0x3dbeef(0x1e5)](){const _0xb43389=_0x3dbeef;return _0xb43389(0x1d9);}static get[_0x3dbeef(0x1e0)](){const _0x29d7be=_0x3dbeef;return[_0x58dcf8,_0x4af000,_0x29d7be(0x1db),_0x29d7be(0x1d7)];}static get[_0x3dbeef(0x1da)](){return!0x0;}static get[_0x3dbeef(0x1e1)](){return!0x0;}[_0x3dbeef(0x1dc)](){const _0x243ee2=_0x3dbeef,{editor:_0x2b4712}=this;_0x2b4712[_0x243ee2(0x1d6)][_0x243ee2(0x1d5)](_0x243ee2(0x1e7),new _0x3b3059(_0x2b4712)),_0x2b4712[_0x243ee2(0x1d6)][_0x243ee2(0x1d5)](_0x243ee2(0x1df),new _0x30d463(_0x2b4712));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3ffbc4}from'ckeditor5/src/core.js';import{ButtonView as _0x37f871}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4f2466}from'ckeditor5/src/icons.js';import{createElement as _0x390a5d}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 _0x3ffbc4{['_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 _0xaeb689=this['editor'];_0xaeb689['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa9b5c3=>{const _0x2e6e53=_0xaeb689['commands']['get']('uploadcareImageEdit'),_0x3fc928=new _0x37f871(_0xa9b5c3),t=_0xa9b5c3['t'];return _0x3fc928['set']({'icon':_0x4f2466,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3fc928['bind']('isEnabled')['to'](_0x2e6e53),_0x3fc928['bind']('isOn')['to'](_0x2e6e53,'isActive'),this['listenTo'](_0x3fc928,'execute',()=>{_0xaeb689['execute']('uploadcareImageEdit'),_0xaeb689['editing']['view']['focus']();}),_0x3fc928;}),this['_initConfig']();}['_initConfig'](){const _0x5bad3e=_0x390a5d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5bad3e),this['listenTo'](this['editor'],'destroy',()=>{_0x5bad3e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4b33(){const _0x528290=['isEnabled','21jadjmG','refresh','srcset','change','execute','176NTsRIg','model','element','document','89064taiiTK','sizes','imageInline','selection','getSelectedElement','1580RqUIfH','editor','setAttributes','2665765dsfDhN','135773THJtMY','133944XZjZWq','12841LhdBAK','1115193hwBdKg','removeAttribute','1762314HVWLRr','imageBlock','152WIloWT'];_0x4b33=function(){return _0x528290;};return _0x4b33();}const _0x5f401b=_0x5f53;function _0x5f53(_0x4cbb1b,_0x44a318){const _0x4b3370=_0x4b33();return _0x5f53=function(_0x5f5373,_0x5efcbf){_0x5f5373=_0x5f5373-0x89;let _0x3d338c=_0x4b3370[_0x5f5373];return _0x3d338c;},_0x5f53(_0x4cbb1b,_0x44a318);}(function(_0x24319c,_0x3f873f){const _0x33cc21=_0x5f53,_0x5c6d30=_0x24319c();while(!![]){try{const _0x177087=parseInt(_0x33cc21(0xa3))/0x1*(parseInt(_0x33cc21(0x8d))/0x2)+parseInt(_0x33cc21(0x89))/0x3+parseInt(_0x33cc21(0xa2))/0x4+parseInt(_0x33cc21(0xa0))/0x5+-parseInt(_0x33cc21(0x8b))/0x6*(-parseInt(_0x33cc21(0x8f))/0x7)+parseInt(_0x33cc21(0x94))/0x8*(-parseInt(_0x33cc21(0x98))/0x9)+-parseInt(_0x33cc21(0x9d))/0xa*(parseInt(_0x33cc21(0xa1))/0xb);if(_0x177087===_0x3f873f)break;else _0x5c6d30['push'](_0x5c6d30['shift']());}catch(_0x1211f9){_0x5c6d30['push'](_0x5c6d30['shift']());}}}(_0x4b33,0x99351));import{Command as _0xd0f295}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0xd0f295{[_0x5f401b(0x90)](){const _0xf16b4a=_0x5f401b,_0x29abbb=this[_0xf16b4a(0x9e)][_0xf16b4a(0x95)][_0xf16b4a(0x97)][_0xf16b4a(0x9b)][_0xf16b4a(0x9c)]();this[_0xf16b4a(0x8e)]=Boolean(_0x29abbb&&(_0x29abbb['is'](_0xf16b4a(0x96),_0xf16b4a(0x8c))||_0x29abbb['is'](_0xf16b4a(0x96),_0xf16b4a(0x9a))));}[_0x5f401b(0x93)](_0x208dd7){const _0x49b522=_0x5f401b,_0x118024=this[_0x49b522(0x9e)][_0x49b522(0x95)][_0x49b522(0x97)][_0x49b522(0x9b)][_0x49b522(0x9c)]();this[_0x49b522(0x9e)][_0x49b522(0x95)][_0x49b522(0x92)](_0x4a5240=>{const _0x1b0f09=_0x49b522;_0x4a5240[_0x1b0f09(0x9f)](_0x208dd7,_0x118024),_0x4a5240[_0x1b0f09(0x8a)](_0x1b0f09(0x91),_0x118024),_0x4a5240[_0x1b0f09(0x8a)](_0x1b0f09(0x99),_0x118024);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x386026=_0x4fc0;(function(_0x50924d,_0x2ade34){var _0x2ea0ac=_0x4fc0,_0x14b661=_0x50924d();while(!![]){try{var _0x16a526=-parseInt(_0x2ea0ac(0xfe))/0x1+-parseInt(_0x2ea0ac(0xf5))/0x2+parseInt(_0x2ea0ac(0xf7))/0x3*(parseInt(_0x2ea0ac(0xf6))/0x4)+parseInt(_0x2ea0ac(0xf1))/0x5*(-parseInt(_0x2ea0ac(0xf8))/0x6)+parseInt(_0x2ea0ac(0xfa))/0x7+parseInt(_0x2ea0ac(0xf3))/0x8*(-parseInt(_0x2ea0ac(0xf4))/0x9)+-parseInt(_0x2ea0ac(0xff))/0xa*(-parseInt(_0x2ea0ac(0xfc))/0xb);if(_0x16a526===_0x2ade34)break;else _0x14b661['push'](_0x14b661['shift']());}catch(_0x59796e){_0x14b661['push'](_0x14b661['shift']());}}}(_0x985a,0x28061));import{Plugin as _0x1c8b09}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x364ca1}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x43e676}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x4fc0(_0x2c7d17,_0x16a5a6){var _0x985a4b=_0x985a();return _0x4fc0=function(_0x4fc03f,_0xa614f4){_0x4fc03f=_0x4fc03f-0xf1;var _0x5f21aa=_0x985a4b[_0x4fc03f];return _0x5f21aa;},_0x4fc0(_0x2c7d17,_0x16a5a6);}export class UploadcareImageEdit extends _0x1c8b09{static get[_0x386026(0xfb)](){var _0x55e98f=_0x386026;return _0x55e98f(0x100);}static get[_0x386026(0xfd)](){return[_0x364ca1,_0x43e676];}static get[_0x386026(0xf2)](){return!0x0;}static get[_0x386026(0xf9)](){return!0x0;}}function _0x985a(){var _0x443cce=['isOfficialPlugin','80hCophI','107685FastCZ','367332KRKorB','30284EerKmE','123cHshJs','1147242eGNrYC','isPremiumPlugin','1471645EPyxNd','pluginName','16819QbRcsr','requires','161870aJePZC','1960KsUSFc','UploadcareImageEdit','5cUPDnL'];_0x985a=function(){return _0x443cce;};return _0x985a();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x298a(){const _0x45adf8=['registerIntegration','791272PiamCb','Dropbox','uploadcareLicenseKeyEvaluationLimit','map','UploadcareUI','config','ImageInsertUI','uploadcareLicenseKeyUsageLimit','upload','label','GDrive','type','locale','_showLicenseError','24644gSvelu','expired','init','isOfficialPlugin','URL','isEnabled','OneDrive','_licenseKeyCheckInterval','uploadcare.uploader.sourceList','30ToWbyl','1525194iERNhC','withText','uploadcareLicenseKeyExpired','get','icon','licenseKey','3599001pUXBxW','_createButton','text','destroy','invalid','entries','isPremiumPlugin','uploadcareLicenseKeyDomainLimit','Facebook','usageLimit','GPhotos','uploadcare','pluginName','Replace','trialLimit','forEach','295465jKwhik','Uploadcare','uploadcareLicenseKeyValid','domainLimit','_normalizeConfigSourceList','commands','featureNotAllowed','Insert','Local','execute','plugins','2522200wGawPt','reduce','bind','uploadcareLicenseKeyTrialLimit','url','_createDropdownButtons','isImageSelected','shortText','543806BKwSgC','editor','96kBmeTA','1IBBskf','tooltip','_createToolbarButton','push','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyInvalid','_createMenuBarButtons','assetManager','afterInit','_getIntegrationKey','evaluationLimit','42FVdXMB','has'];_0x298a=function(){return _0x45adf8;};return _0x298a();}const _0x32a810=_0x10fc;(function(_0x442276,_0x4cb19b){const _0x397067=_0x10fc,_0x5c9ff8=_0x442276();while(!![]){try{const _0x1e407d=-parseInt(_0x397067(0x1bc))/0x1*(-parseInt(_0x397067(0x1b9))/0x2)+parseInt(_0x397067(0x1bb))/0x3*(-parseInt(_0x397067(0x186))/0x4)+parseInt(_0x397067(0x1a6))/0x5*(-parseInt(_0x397067(0x18f))/0x6)+-parseInt(_0x397067(0x1c7))/0x7*(-parseInt(_0x397067(0x1ca))/0x8)+-parseInt(_0x397067(0x196))/0x9+parseInt(_0x397067(0x1b1))/0xa+parseInt(_0x397067(0x190))/0xb;if(_0x1e407d===_0x4cb19b)break;else _0x5c9ff8['push'](_0x5c9ff8['shift']());}catch(_0x42f5f9){_0x5c9ff8['push'](_0x5c9ff8['shift']());}}}(_0x298a,0x58ccd));import{Plugin as _0x583b89}from'ckeditor5/src/core.js';import{IconDropbox as _0x58cc65,IconFacebook as _0x3f9bea,IconGoogleDrive as _0x15229c,IconGooglePhotos as _0x554d2a,IconUploadcareImageUpload as _0x506332,IconUploadcareLink as _0x58f228,IconOneDrive as _0x47a63a}from'ckeditor5/src/icons.js';import{ButtonView as _0x381d13,MenuBarMenuListItemButtonView as _0x40902a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x330b26}from'./uploadcareconfig.js';import{getTranslation as _0x543ca9}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x10fc(_0x5d71a3,_0x214d31){const _0x298a2d=_0x298a();return _0x10fc=function(_0x10fca0,_0x1999eb){_0x10fca0=_0x10fca0-0x186;let _0x1c4b79=_0x298a2d[_0x10fca0];return _0x1c4b79;},_0x10fc(_0x5d71a3,_0x214d31);}export class UploadcareUI extends _0x583b89{[_0x32a810(0x195)];[_0x32a810(0x18d)];static get[_0x32a810(0x1a2)](){const _0x1b70f5=_0x32a810;return _0x1b70f5(0x1ce);}static get[_0x32a810(0x189)](){return!0x0;}static get[_0x32a810(0x19c)](){return!0x0;}[_0x32a810(0x188)](){const _0x3a46cd=_0x32a810;this[_0x3a46cd(0x195)]=this[_0x3a46cd(0x1ba)][_0x3a46cd(0x1cf)][_0x3a46cd(0x193)](_0x3a46cd(0x195));const _0x42b9c5=this[_0x3a46cd(0x1ba)];this[_0x3a46cd(0x18d)]=setInterval(()=>{const _0x159e5c=_0x3a46cd;let _0x3ad48d;for(const _0x31923a in _0x42b9c5){const _0x4a4f35=_0x31923a,_0x37c74b=_0x42b9c5[_0x4a4f35];if(_0x159e5c(0x1a8)==_0x37c74b||_0x159e5c(0x1c1)==_0x37c74b||_0x159e5c(0x192)==_0x37c74b||_0x159e5c(0x19d)==_0x37c74b||_0x159e5c(0x1c0)==_0x37c74b||_0x159e5c(0x1cc)==_0x37c74b||_0x159e5c(0x1b4)==_0x37c74b||_0x159e5c(0x1d1)==_0x37c74b){delete _0x42b9c5[_0x4a4f35],_0x3ad48d=_0x37c74b,clearInterval(this[_0x159e5c(0x18d)]),this[_0x159e5c(0x18d)]=void 0x0;break;}}_0x159e5c(0x1c1)==_0x3ad48d&&_0x42b9c5[_0x159e5c(0x1d7)](_0x159e5c(0x19a)),_0x159e5c(0x192)==_0x3ad48d&&_0x42b9c5[_0x159e5c(0x1d7)](_0x159e5c(0x187)),_0x159e5c(0x19d)==_0x3ad48d&&_0x42b9c5[_0x159e5c(0x1d7)](_0x159e5c(0x1a9)),_0x159e5c(0x1c0)==_0x3ad48d&&_0x42b9c5[_0x159e5c(0x1d7)](_0x159e5c(0x1ac),_0x159e5c(0x1a7)),_0x159e5c(0x1cc)==_0x3ad48d&&_0x42b9c5[_0x159e5c(0x1d7)](_0x159e5c(0x1c6)),_0x159e5c(0x1b4)==_0x3ad48d&&_0x42b9c5[_0x159e5c(0x1d7)](_0x159e5c(0x1a4)),_0x159e5c(0x1d1)==_0x3ad48d&&_0x42b9c5[_0x159e5c(0x1d7)](_0x159e5c(0x19f));},0x3e8);}[_0x32a810(0x1c4)](){const _0x5f2c7c=_0x32a810,{editor:_0x5191d8}=this,_0x41f53e=_0x5191d8[_0x5f2c7c(0x1ab)][_0x5f2c7c(0x193)](_0x5f2c7c(0x1a1));if(!_0x41f53e)return;const _0x3e5851=this[_0x5f2c7c(0x1aa)](_0x5191d8[_0x5f2c7c(0x1cf)][_0x5f2c7c(0x193)](_0x5f2c7c(0x18e)))[_0x5f2c7c(0x1b2)]((_0x1b6cc0,_0x430c06)=>{const _0x3a2200=_0x5f2c7c,_0x4d6f46=this[_0x3a2200(0x1c5)](_0x430c06[_0x3a2200(0x1d5)]);return _0x1b6cc0[_0x4d6f46]||(_0x1b6cc0[_0x4d6f46]=[]),_0x1b6cc0[_0x4d6f46][_0x3a2200(0x1bf)](_0x430c06),_0x1b6cc0;},{});_0x5191d8[_0x5f2c7c(0x1b0)][_0x5f2c7c(0x1c8)](_0x5f2c7c(0x1d0))&&_0x5191d8[_0x5f2c7c(0x1ab)][_0x5f2c7c(0x193)](_0x5f2c7c(0x1a1))&&Object[_0x5f2c7c(0x19b)](_0x3e5851)[_0x5f2c7c(0x1a5)](([_0x2381b4,_0x2728c0])=>{const _0x5980f1=_0x5f2c7c;_0x5191d8[_0x5980f1(0x1b0)][_0x5980f1(0x193)](_0x5980f1(0x1d0))[_0x5980f1(0x1c9)]({'name':_0x2381b4,'observable':()=>_0x41f53e,'buttonViewCreator':()=>this[_0x5980f1(0x1be)](_0x2728c0),'formViewCreator':()=>this[_0x5980f1(0x1b6)](_0x2728c0),'menuBarButtonViewCreator':()=>this[_0x5980f1(0x1c2)](_0x2728c0),'override':_0x5980f1(0x1c3)!==_0x2381b4});});}[_0x32a810(0x199)](){const _0x5daa9e=_0x32a810;super[_0x5daa9e(0x199)](),this[_0x5daa9e(0x18d)]&&clearInterval(this[_0x5daa9e(0x18d)]);}[_0x32a810(0x1aa)](_0x9e4d5a){const _0xc2781=_0x32a810,{locale:_0x5d7858}=this[_0xc2781(0x1ba)];return _0x9e4d5a[_0xc2781(0x1cd)](_0x4cb2d9=>{const _0x36d3e1=_0xc2781,_0x5d0c2f=_0x543ca9(_0x5d7858,_0x4cb2d9,_0x36d3e1(0x1ad));switch(_0x4cb2d9){case _0x330b26[_0x36d3e1(0x1ae)]:return{'icon':_0x506332,'type':_0x330b26[_0x36d3e1(0x1ae)],..._0x5d0c2f};case _0x330b26[_0x36d3e1(0x18a)]:return{'icon':_0x58f228,'type':_0x330b26[_0x36d3e1(0x18a)],..._0x5d0c2f};case _0x330b26[_0x36d3e1(0x1cb)]:return{'icon':_0x58cc65,'type':_0x330b26[_0x36d3e1(0x1cb)],..._0x5d0c2f};case _0x330b26[_0x36d3e1(0x19e)]:return{'icon':_0x3f9bea,'type':_0x330b26[_0x36d3e1(0x19e)],..._0x5d0c2f};case _0x330b26[_0x36d3e1(0x1d4)]:return{'icon':_0x15229c,'type':_0x330b26[_0x36d3e1(0x1d4)],..._0x5d0c2f};case _0x330b26[_0x36d3e1(0x1a0)]:return{'icon':_0x554d2a,'type':_0x330b26[_0x36d3e1(0x1a0)],..._0x5d0c2f};case _0x330b26[_0x36d3e1(0x18c)]:return{'icon':_0x47a63a,'type':_0x330b26[_0x36d3e1(0x18c)],..._0x5d0c2f};}});}[_0x32a810(0x1c5)](_0x5b7522){const _0x42a71e=_0x32a810;switch(_0x5b7522){case _0x330b26[_0x42a71e(0x1ae)]:return _0x42a71e(0x1d2);case _0x330b26[_0x42a71e(0x18a)]:return _0x42a71e(0x1b5);default:return _0x42a71e(0x1c3);}}[_0x32a810(0x197)](_0x4061ba,_0x32505b){const _0x33ae23=_0x32a810,_0x428e34=this[_0x33ae23(0x1ba)],_0x439fe3=new _0x4061ba(_0x428e34[_0x33ae23(0x1d6)]),_0x43087a=_0x428e34[_0x33ae23(0x1ab)][_0x33ae23(0x193)](_0x33ae23(0x1a1));return _0x439fe3[_0x33ae23(0x1b3)](_0x33ae23(0x18b))['to'](_0x43087a),_0x439fe3['on'](_0x33ae23(0x1af),()=>{const _0x3bf1f0=_0x33ae23;_0x43087a[_0x3bf1f0(0x1af)](_0x32505b);}),_0x439fe3;}[_0x32a810(0x1be)](_0x4ec446){const _0x1fd017=_0x32a810,{locale:_0x48eb71}=this[_0x1fd017(0x1ba)],_0x511d39=this[_0x1fd017(0x1ba)][_0x1fd017(0x1b0)][_0x1fd017(0x193)](_0x1fd017(0x1d0)),_0x1c4d19=_0x4ec446[0x0],_0x111929=this[_0x1fd017(0x197)](_0x381d13,_0x1c4d19[_0x1fd017(0x1d5)]);return _0x111929[_0x1fd017(0x194)]=_0x1c4d19[_0x1fd017(0x194)],_0x111929[_0x1fd017(0x1b3)](_0x1fd017(0x1d3))['to'](_0x511d39,_0x1fd017(0x1b7),_0x1d3031=>_0x543ca9(_0x48eb71,_0x1c4d19[_0x1fd017(0x1d5)],_0x1d3031?_0x1fd017(0x1a3):_0x1fd017(0x1ad))[_0x1fd017(0x198)]),_0x111929[_0x1fd017(0x1bd)]=!0x0,_0x111929;}[_0x32a810(0x1b6)](_0x2ad4d1){const _0xd2fc38=_0x32a810,{locale:_0x63c2eb}=this[_0xd2fc38(0x1ba)],_0x490f0e=this[_0xd2fc38(0x1ba)][_0xd2fc38(0x1b0)][_0xd2fc38(0x193)](_0xd2fc38(0x1d0));return _0x2ad4d1[_0xd2fc38(0x1cd)](_0x5b23a5=>{const _0x5ab10f=_0xd2fc38,_0x1bf18c=this[_0x5ab10f(0x197)](_0x381d13,_0x5b23a5[_0x5ab10f(0x1d5)]);return _0x1bf18c[_0x5ab10f(0x191)]=!0x0,_0x1bf18c[_0x5ab10f(0x194)]=_0x5b23a5[_0x5ab10f(0x194)],_0x1bf18c[_0x5ab10f(0x1b3)](_0x5ab10f(0x1d3))['to'](_0x490f0e,_0x5ab10f(0x1b7),_0x4c655c=>_0x543ca9(_0x63c2eb,_0x5b23a5[_0x5ab10f(0x1d5)],_0x4c655c?_0x5ab10f(0x1a3):_0x5ab10f(0x1ad))[_0x5ab10f(0x198)]),_0x1bf18c;});}[_0x32a810(0x1c2)](_0x2f4f04){const _0x167fe9=_0x32a810;return _0x2f4f04[_0x167fe9(0x1cd)](_0x451a2b=>{const _0x572fa3=_0x167fe9,_0x376eee=this[_0x572fa3(0x197)](_0x40902a,_0x451a2b[_0x572fa3(0x1d5)]);return _0x376eee[_0x572fa3(0x194)]=_0x451a2b[_0x572fa3(0x194)],_0x376eee[_0x572fa3(0x1d3)]=_0x451a2b[_0x572fa3(0x1b8)],_0x376eee;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2ff333}from'ckeditor5/src/core.js';import{FileRepository as _0x233f85}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x47d851}from'./uploadcareediting.js';import{UploadUtils as _0x2c7445}from'./utils/uploadutils.js';import{getImageUrls as _0x181b26}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2ff333{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x233f85,_0x47d851];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b5b51=this['editor'];if(!!!_0x3b5b51['config']['get']('uploadcare'))return;_0x3b5b51['plugins']['get'](_0x233f85)['createUploadAdapter']=_0x4de81b=>new k(_0x4de81b,_0x3b5b51),_0x3b5b51['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3097ff,{imageElement:_0x3c0766,data:_0x4675bf})=>{_0x3b5b51['model']['change'](_0x2ab7b0=>{_0x2ab7b0['setAttribute']('uploadcareImageId',_0x4675bf['uploadcareImageId'],_0x3c0766);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x134bfc,_0x250e7a){this['loader']=_0x134bfc,this['editor']=_0x250e7a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59d581=await this['loader']['file'];return _0x2c7445['upload']({'file':_0x59d581,'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':_0x262415=>{_0x262415&&_0x262415['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x262415['value']);}})['then'](async _0x6b54a4=>{const {imageFallbackUrl:_0x546765,imageSources:_0x4d0062}=_0x181b26(_0x6b54a4['cdnUrl'],_0x6b54a4['imageInfo']['width']);return{'uploadcareImageId':_0x6b54a4['uuid'],'default':_0x546765,'sources':_0x4d0062};})['catch'](()=>{const _0x2a624d=t('Cannot\x20upload\x20file:')+('\x20'+_0x59d581['name']+'.');return Promise['reject'](_0x2a624d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x317f74}from'../uploadcareconfig.js';export function getTranslation(_0x2d9586,_0xccb394,_0x397bfe){const t=_0x2d9586['t'],_0x25999c=_0x2d9586['t'];switch(_0xccb394){case _0x317f74['Local']:return{'text':_0x25999c('Insert'===_0x397bfe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x25999c('From\x20computer')};case _0x317f74['URL']:return{'text':'Insert'===_0x397bfe?_0x25999c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x25999c('Via\x20URL')};case _0x317f74['Dropbox']:return{'text':t('Insert'===_0x397bfe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x317f74['Facebook']:return{'text':t('Insert'===_0x397bfe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x317f74['GDrive']:return{'text':t('Insert'===_0x397bfe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x317f74['GPhotos']:return{'text':t('Insert'===_0x397bfe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x317f74['OneDrive']:return{'text':t('Insert'===_0x397bfe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xccb394;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5510ae=_0x894c;(function(_0x228300,_0xa02ecc){var _0x29a35e=_0x894c,_0x49a15e=_0x228300();while(!![]){try{var _0x5c1a81=-parseInt(_0x29a35e(0x194))/0x1+-parseInt(_0x29a35e(0x193))/0x2*(parseInt(_0x29a35e(0x189))/0x3)+parseInt(_0x29a35e(0x187))/0x4*(-parseInt(_0x29a35e(0x185))/0x5)+-parseInt(_0x29a35e(0x18b))/0x6*(-parseInt(_0x29a35e(0x192))/0x7)+parseInt(_0x29a35e(0x190))/0x8*(-parseInt(_0x29a35e(0x18c))/0x9)+parseInt(_0x29a35e(0x191))/0xa+parseInt(_0x29a35e(0x184))/0xb;if(_0x5c1a81===_0xa02ecc)break;else _0x49a15e['push'](_0x49a15e['shift']());}catch(_0x1ec1bf){_0x49a15e['push'](_0x49a15e['shift']());}}}(_0x57de,0xa1f8f));import{FocusTracker as _0x34e345}from'ckeditor5/src/utils.js';function _0x57de(){var _0x484b97=['div','36632zBPkQS','11121290qkUtff','9160529qYdhAA','35954TVENGo','870635GbDFNF','createCollection','focusTracker','true','13122791XFitik','40DuxQdk','bindTemplate','502148ULqmYN','fire','6HZhIze','getFocusableElement','6lhpHQH','2043KZKtba','forwardCycle','focusCycler'];_0x57de=function(){return _0x484b97;};return _0x57de();}import{View as _0x12730d,FocusCycler as _0x2b59e2}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x894c(_0x37d299,_0x46e03e){var _0x57dec8=_0x57de();return _0x894c=function(_0x894c89,_0x5413f1){_0x894c89=_0x894c89-0x182;var _0x30b503=_0x57dec8[_0x894c89];return _0x30b503;},_0x894c(_0x37d299,_0x46e03e);}export class DialogFocusManagerView extends _0x12730d{[_0x5510ae(0x182)];[_0x5510ae(0x18e)];constructor(_0x92391a){var _0x3de716=_0x5510ae;super(_0x92391a),this[_0x3de716(0x182)]=new _0x34e345(),this[_0x3de716(0x18e)]=new _0x2b59e2({'focusables':this[_0x3de716(0x195)](),'focusTracker':this[_0x3de716(0x182)]});}[_0x5510ae(0x18a)](){var _0x3cea99=_0x5510ae;return{'tag':_0x3cea99(0x18f),'attributes':{'aria-hidden':_0x3cea99(0x183),'tabindex':'0'},'on':{'focus':this[_0x3cea99(0x186)]['to'](()=>{var _0x1e5902=_0x3cea99;this[_0x1e5902(0x18e)][_0x1e5902(0x188)](_0x1e5902(0x18d));})}};}}
|